user32: Added GetMenuBarInfo implementation.
[wine] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for Wine 1.4.
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 as_myself=
95 case $0 in #((
96   *[\\/]* ) as_myself=$0 ;;
97   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100   IFS=$as_save_IFS
101   test -z "$as_dir" && as_dir=.
102     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103   done
104 IFS=$as_save_IFS
105
106      ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111   as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115   exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there.  '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 if test "x$CONFIG_SHELL" = x; then
140   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141   emulate sh
142   NULLCMD=:
143   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144   # is contrary to our usage.  Disable this feature.
145   alias -g '\${1+\"\$@\"}'='\"\$@\"'
146   setopt NO_GLOB_SUBST
147 else
148   case \`(set -o) 2>/dev/null\` in #(
149   *posix*) :
150     set -o posix ;; #(
151   *) :
152      ;;
153 esac
154 fi
155 "
156   as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
161
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169 else
170   exitcode=1; echo positional parameters were not saved.
171 fi
172 test x\$exitcode = x0 || exit 1"
173   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1"
178   if (eval "$as_required") 2>/dev/null; then :
179   as_have_required=yes
180 else
181   as_have_required=no
182 fi
183   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184
185 else
186   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187 as_found=false
188 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189 do
190   IFS=$as_save_IFS
191   test -z "$as_dir" && as_dir=.
192   as_found=:
193   case $as_dir in #(
194          /*)
195            for as_base in sh bash ksh sh5; do
196              # Try only shells that exist, to save several forks.
197              as_shell=$as_dir/$as_base
198              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200   CONFIG_SHELL=$as_shell as_have_required=yes
201                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
202   break 2
203 fi
204 fi
205            done;;
206        esac
207   as_found=false
208 done
209 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211   CONFIG_SHELL=$SHELL as_have_required=yes
212 fi; }
213 IFS=$as_save_IFS
214
215
216       if test "x$CONFIG_SHELL" != x; then :
217   # We cannot yet assume a decent shell, so we have to provide a
218         # neutralization value for shells without unset; and this also
219         # works around shells that cannot unset nonexistent variables.
220         # Preserve -v and -x to the replacement shell.
221         BASH_ENV=/dev/null
222         ENV=/dev/null
223         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224         export CONFIG_SHELL
225         case $- in # ((((
226           *v*x* | *x*v* ) as_opts=-vx ;;
227           *v* ) as_opts=-v ;;
228           *x* ) as_opts=-x ;;
229           * ) as_opts= ;;
230         esac
231         exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232 fi
233
234     if test x$as_have_required = xno; then :
235   $as_echo "$0: This script requires a shell more modern than all"
236   $as_echo "$0: the shells that I found on your system."
237   if test x${ZSH_VERSION+set} = xset ; then
238     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240   else
241     $as_echo "$0: Please tell bug-autoconf@gnu.org and
242 $0: wine-devel@winehq.org about your system, including any
243 $0: error possibly output before this message. Then install
244 $0: a modern shell, or manually run the script under such a
245 $0: shell if you do have one."
246   fi
247   exit 1
248 fi
249 fi
250 fi
251 SHELL=${CONFIG_SHELL-/bin/sh}
252 export SHELL
253 # Unset more variables known to interfere with behavior of common tools.
254 CLICOLOR_FORCE= GREP_OPTIONS=
255 unset CLICOLOR_FORCE GREP_OPTIONS
256
257 ## --------------------- ##
258 ## M4sh Shell Functions. ##
259 ## --------------------- ##
260 # as_fn_unset VAR
261 # ---------------
262 # Portably unset VAR.
263 as_fn_unset ()
264 {
265   { eval $1=; unset $1;}
266 }
267 as_unset=as_fn_unset
268
269 # as_fn_set_status STATUS
270 # -----------------------
271 # Set $? to STATUS, without forking.
272 as_fn_set_status ()
273 {
274   return $1
275 } # as_fn_set_status
276
277 # as_fn_exit STATUS
278 # -----------------
279 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
280 as_fn_exit ()
281 {
282   set +e
283   as_fn_set_status $1
284   exit $1
285 } # as_fn_exit
286
287 # as_fn_mkdir_p
288 # -------------
289 # Create "$as_dir" as a directory, including parents if necessary.
290 as_fn_mkdir_p ()
291 {
292
293   case $as_dir in #(
294   -*) as_dir=./$as_dir;;
295   esac
296   test -d "$as_dir" || eval $as_mkdir_p || {
297     as_dirs=
298     while :; do
299       case $as_dir in #(
300       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
301       *) as_qdir=$as_dir;;
302       esac
303       as_dirs="'$as_qdir' $as_dirs"
304       as_dir=`$as_dirname -- "$as_dir" ||
305 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
306          X"$as_dir" : 'X\(//\)[^/]' \| \
307          X"$as_dir" : 'X\(//\)$' \| \
308          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
309 $as_echo X"$as_dir" |
310     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
311             s//\1/
312             q
313           }
314           /^X\(\/\/\)[^/].*/{
315             s//\1/
316             q
317           }
318           /^X\(\/\/\)$/{
319             s//\1/
320             q
321           }
322           /^X\(\/\).*/{
323             s//\1/
324             q
325           }
326           s/.*/./; q'`
327       test -d "$as_dir" && break
328     done
329     test -z "$as_dirs" || eval "mkdir $as_dirs"
330   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
331
332
333 } # as_fn_mkdir_p
334 # as_fn_append VAR VALUE
335 # ----------------------
336 # Append the text in VALUE to the end of the definition contained in VAR. Take
337 # advantage of any shell optimizations that allow amortized linear growth over
338 # repeated appends, instead of the typical quadratic growth present in naive
339 # implementations.
340 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
341   eval 'as_fn_append ()
342   {
343     eval $1+=\$2
344   }'
345 else
346   as_fn_append ()
347   {
348     eval $1=\$$1\$2
349   }
350 fi # as_fn_append
351
352 # as_fn_arith ARG...
353 # ------------------
354 # Perform arithmetic evaluation on the ARGs, and store the result in the
355 # global $as_val. Take advantage of shells that can avoid forks. The arguments
356 # must be portable across $(()) and expr.
357 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
358   eval 'as_fn_arith ()
359   {
360     as_val=$(( $* ))
361   }'
362 else
363   as_fn_arith ()
364   {
365     as_val=`expr "$@" || test $? -eq 1`
366   }
367 fi # as_fn_arith
368
369
370 # as_fn_error STATUS ERROR [LINENO LOG_FD]
371 # ----------------------------------------
372 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
373 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
374 # script with STATUS, using 1 if that was 0.
375 as_fn_error ()
376 {
377   as_status=$1; test $as_status -eq 0 && as_status=1
378   if test "$4"; then
379     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
380     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
381   fi
382   $as_echo "$as_me: error: $2" >&2
383   as_fn_exit $as_status
384 } # as_fn_error
385
386 if expr a : '\(a\)' >/dev/null 2>&1 &&
387    test "X`expr 00001 : '.*\(...\)'`" = X001; then
388   as_expr=expr
389 else
390   as_expr=false
391 fi
392
393 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
394   as_basename=basename
395 else
396   as_basename=false
397 fi
398
399 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
400   as_dirname=dirname
401 else
402   as_dirname=false
403 fi
404
405 as_me=`$as_basename -- "$0" ||
406 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
407          X"$0" : 'X\(//\)$' \| \
408          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
409 $as_echo X/"$0" |
410     sed '/^.*\/\([^/][^/]*\)\/*$/{
411             s//\1/
412             q
413           }
414           /^X\/\(\/\/\)$/{
415             s//\1/
416             q
417           }
418           /^X\/\(\/\).*/{
419             s//\1/
420             q
421           }
422           s/.*/./; q'`
423
424 # Avoid depending upon Character Ranges.
425 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
426 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
427 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
428 as_cr_digits='0123456789'
429 as_cr_alnum=$as_cr_Letters$as_cr_digits
430
431
432   as_lineno_1=$LINENO as_lineno_1a=$LINENO
433   as_lineno_2=$LINENO as_lineno_2a=$LINENO
434   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
435   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
436   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
437   sed -n '
438     p
439     /[$]LINENO/=
440   ' <$as_myself |
441     sed '
442       s/[$]LINENO.*/&-/
443       t lineno
444       b
445       :lineno
446       N
447       :loop
448       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449       t loop
450       s/-\n.*//
451     ' >$as_me.lineno &&
452   chmod +x "$as_me.lineno" ||
453     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
454
455   # Don't try to exec as it changes $[0], causing all sort of problems
456   # (the dirname of $[0] is not the place where we might find the
457   # original and so on.  Autoconf is especially sensitive to this).
458   . "./$as_me.lineno"
459   # Exit status is that of the last command.
460   exit
461 }
462
463 ECHO_C= ECHO_N= ECHO_T=
464 case `echo -n x` in #(((((
465 -n*)
466   case `echo 'xy\c'` in
467   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
468   xy)  ECHO_C='\c';;
469   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
470        ECHO_T=' ';;
471   esac;;
472 *)
473   ECHO_N='-n';;
474 esac
475
476 rm -f conf$$ conf$$.exe conf$$.file
477 if test -d conf$$.dir; then
478   rm -f conf$$.dir/conf$$.file
479 else
480   rm -f conf$$.dir
481   mkdir conf$$.dir 2>/dev/null
482 fi
483 if (echo >conf$$.file) 2>/dev/null; then
484   if ln -s conf$$.file conf$$ 2>/dev/null; then
485     as_ln_s='ln -s'
486     # ... but there are two gotchas:
487     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
488     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
489     # In both cases, we have to default to `cp -p'.
490     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
491       as_ln_s='cp -p'
492   elif ln conf$$.file conf$$ 2>/dev/null; then
493     as_ln_s=ln
494   else
495     as_ln_s='cp -p'
496   fi
497 else
498   as_ln_s='cp -p'
499 fi
500 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
501 rmdir conf$$.dir 2>/dev/null
502
503 if mkdir -p . 2>/dev/null; then
504   as_mkdir_p='mkdir -p "$as_dir"'
505 else
506   test -d ./-p && rmdir ./-p
507   as_mkdir_p=false
508 fi
509
510 if test -x / >/dev/null 2>&1; then
511   as_test_x='test -x'
512 else
513   if ls -dL / >/dev/null 2>&1; then
514     as_ls_L_option=L
515   else
516     as_ls_L_option=
517   fi
518   as_test_x='
519     eval sh -c '\''
520       if test -d "$1"; then
521         test -d "$1/.";
522       else
523         case $1 in #(
524         -*)set "./$1";;
525         esac;
526         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
527         ???[sx]*):;;*)false;;esac;fi
528     '\'' sh
529   '
530 fi
531 as_executable_p=$as_test_x
532
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538
539
540 test -n "$DJDIR" || exec 7<&0 </dev/null
541 exec 6>&1
542
543 # Name of the host.
544 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
545 # so uname gets run too.
546 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547
548 #
549 # Initializations.
550 #
551 ac_default_prefix=/usr/local
552 ac_clean_files=
553 ac_config_libobj_dir=.
554 LIBOBJS=
555 cross_compiling=no
556 subdirs=
557 MFLAGS=
558 MAKEFLAGS=
559
560 # Identity of this package.
561 PACKAGE_NAME='Wine'
562 PACKAGE_TARNAME='wine'
563 PACKAGE_VERSION='1.4'
564 PACKAGE_STRING='Wine 1.4'
565 PACKAGE_BUGREPORT='wine-devel@winehq.org'
566 PACKAGE_URL='http://www.winehq.org'
567
568 ac_unique_file="server/atom.c"
569 # Factoring default headers for most tests.
570 ac_includes_default="\
571 #include <stdio.h>
572 #ifdef HAVE_SYS_TYPES_H
573 # include <sys/types.h>
574 #endif
575 #ifdef HAVE_SYS_STAT_H
576 # include <sys/stat.h>
577 #endif
578 #ifdef STDC_HEADERS
579 # include <stdlib.h>
580 # include <stddef.h>
581 #else
582 # ifdef HAVE_STDLIB_H
583 #  include <stdlib.h>
584 # endif
585 #endif
586 #ifdef HAVE_STRING_H
587 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
588 #  include <memory.h>
589 # endif
590 # include <string.h>
591 #endif
592 #ifdef HAVE_STRINGS_H
593 # include <strings.h>
594 #endif
595 #ifdef HAVE_INTTYPES_H
596 # include <inttypes.h>
597 #endif
598 #ifdef HAVE_STDINT_H
599 # include <stdint.h>
600 #endif
601 #ifdef HAVE_UNISTD_H
602 # include <unistd.h>
603 #endif"
604
605 ac_subst_vars='LTLIBOBJS
606 LIBOBJS
607 PORCFLAGS
608 LINGUAS
609 ALL_TEST_RESOURCES
610 LDAPLIBS
611 LIBPOLL
612 LIBDL
613 EXTRA_BINARIES
614 MAIN_BINARY
615 SOCKETLIBS
616 CRTLIBS
617 TOOLSEXT
618 LDPATH
619 UNWINDFLAGS
620 BUILTINFLAG
621 EXTRACFLAGS
622 LIBKSTAT
623 LIBOPENAL
624 LIBMPG123
625 PNGINCL
626 FONTCONFIGINCL
627 CUPSINCL
628 OSS4INCL
629 ALSALIBS
630 GSTREAMER_INCL
631 GSTREAMER_LIBS
632 LIBGETTEXTPO
633 ZLIB
634 FREETYPEINCL
635 FREETYPELIBS
636 ft_devel
637 LCMSLIBS
638 RESOLVLIBS
639 GPHOTO2INCL
640 GPHOTO2LIBS
641 gphoto2port_devel
642 gphoto2_devel
643 SANEINCL
644 sane_devel
645 GNUTLSINCL
646 HALINCL
647 DBUSINCL
648 XSLTINCL
649 XML2INCL
650 XML2LIBS
651 X_EXTRA_LIBS
652 X_LIBS
653 X_PRE_LIBS
654 X_CFLAGS
655 XMKMF
656 LIBPTHREAD
657 CROSSTARGET
658 CROSSCC
659 CROSSTEST_DISABLE
660 PRELINK
661 CARBONLIB
662 QUICKTIMELIB
663 LIBOPENCL
664 FRAMEWORK_OPENAL
665 COREAUDIO
666 SECURITYLIB
667 DISKARBITRATIONLIB
668 LDEXECFLAGS
669 CORESERVICESLIB
670 APPLICATIONSERVICESLIB
671 IOKITLIB
672 COREFOUNDATIONLIB
673 DLLWRAP
674 DLLTOOL
675 LDD
676 LDRPATH_LOCAL
677 LDRPATH_INSTALL
678 IMPLIBEXT
679 LIBEXT
680 LDDLLFLAGS
681 LDSHARED
682 DLLFLAGS
683 DLLEXT
684 CPP
685 OPENGL_LIBS
686 XLIB
687 MAINTAINER_MODE
688 MSGFMT
689 ICOTOOL
690 CONVERT
691 RSVG
692 PKG_CONFIG
693 FONTFORGE
694 LINTFLAGS
695 LINT
696 INSTALL_DATA
697 INSTALL_SCRIPT
698 INSTALL_PROGRAM
699 LDCONFIG
700 EGREP
701 GREP
702 LN_S
703 RANLIB
704 ARFLAGS
705 ac_ct_AR
706 AR
707 BISON
708 FLEX
709 TOOLSDIR
710 WOW64_DISABLE
711 TARGETFLAGS
712 CPPBIN
713 ac_ct_CXX
714 CXXFLAGS
715 CXX
716 OBJEXT
717 EXEEXT
718 ac_ct_CC
719 CPPFLAGS
720 LDFLAGS
721 CFLAGS
722 CC
723 SET_MAKE
724 host_os
725 host_vendor
726 host_cpu
727 host
728 build_os
729 build_vendor
730 build_cpu
731 build
732 target_alias
733 host_alias
734 build_alias
735 LIBS
736 ECHO_T
737 ECHO_N
738 ECHO_C
739 DEFS
740 mandir
741 localedir
742 libdir
743 psdir
744 pdfdir
745 dvidir
746 htmldir
747 infodir
748 docdir
749 oldincludedir
750 includedir
751 localstatedir
752 sharedstatedir
753 sysconfdir
754 datadir
755 datarootdir
756 libexecdir
757 sbindir
758 bindir
759 program_transform_name
760 prefix
761 exec_prefix
762 PACKAGE_URL
763 PACKAGE_BUGREPORT
764 PACKAGE_STRING
765 PACKAGE_VERSION
766 PACKAGE_TARNAME
767 PACKAGE_NAME
768 PATH_SEPARATOR
769 SHELL'
770 ac_subst_files='MAKE_RULES
771 MAKE_TEST_RULES
772 MAKE_DLL_RULES
773 MAKE_IMPLIB_RULES
774 MAKE_PROG_RULES'
775 ac_user_opts='
776 enable_option_checking
777 enable_win16
778 enable_win64
779 enable_tests
780 enable_maintainer_mode
781 with_alsa
782 with_capi
783 with_cms
784 with_coreaudio
785 with_cups
786 with_curses
787 with_dbus
788 with_fontconfig
789 with_freetype
790 with_gettext
791 with_gettextpo
792 with_gphoto
793 with_glu
794 with_gnutls
795 with_gsm
796 with_gstreamer
797 with_hal
798 with_jpeg
799 with_ldap
800 with_mpg123
801 with_openal
802 with_opencl
803 with_opengl
804 with_openssl
805 with_oss
806 with_png
807 with_pthread
808 with_sane
809 with_tiff
810 with_v4l
811 with_xcomposite
812 with_xcursor
813 with_xinerama
814 with_xinput
815 with_xinput2
816 with_xml
817 with_xrandr
818 with_xrender
819 with_xshape
820 with_xslt
821 with_xxf86vm
822 with_zlib
823 with_wine_tools
824 with_wine64
825 enable_largefile
826 with_x
827 '
828       ac_precious_vars='build_alias
829 host_alias
830 target_alias
831 CC
832 CFLAGS
833 LDFLAGS
834 LIBS
835 CPPFLAGS
836 CXX
837 CXXFLAGS
838 CCC
839 CPP
840 XMKMF'
841
842
843 # Initialize some variables set by options.
844 ac_init_help=
845 ac_init_version=false
846 ac_unrecognized_opts=
847 ac_unrecognized_sep=
848 # The variables have the same names as the options, with
849 # dashes changed to underlines.
850 cache_file=/dev/null
851 exec_prefix=NONE
852 no_create=
853 no_recursion=
854 prefix=NONE
855 program_prefix=NONE
856 program_suffix=NONE
857 program_transform_name=s,x,x,
858 silent=
859 site=
860 srcdir=
861 verbose=
862 x_includes=NONE
863 x_libraries=NONE
864
865 # Installation directory options.
866 # These are left unexpanded so users can "make install exec_prefix=/foo"
867 # and all the variables that are supposed to be based on exec_prefix
868 # by default will actually change.
869 # Use braces instead of parens because sh, perl, etc. also accept them.
870 # (The list follows the same order as the GNU Coding Standards.)
871 bindir='${exec_prefix}/bin'
872 sbindir='${exec_prefix}/sbin'
873 libexecdir='${exec_prefix}/libexec'
874 datarootdir='${prefix}/share'
875 datadir='${datarootdir}'
876 sysconfdir='${prefix}/etc'
877 sharedstatedir='${prefix}/com'
878 localstatedir='${prefix}/var'
879 includedir='${prefix}/include'
880 oldincludedir='/usr/include'
881 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
882 infodir='${datarootdir}/info'
883 htmldir='${docdir}'
884 dvidir='${docdir}'
885 pdfdir='${docdir}'
886 psdir='${docdir}'
887 libdir='${exec_prefix}/lib'
888 localedir='${datarootdir}/locale'
889 mandir='${datarootdir}/man'
890
891 ac_prev=
892 ac_dashdash=
893 for ac_option
894 do
895   # If the previous option needs an argument, assign it.
896   if test -n "$ac_prev"; then
897     eval $ac_prev=\$ac_option
898     ac_prev=
899     continue
900   fi
901
902   case $ac_option in
903   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
904   *=)   ac_optarg= ;;
905   *)    ac_optarg=yes ;;
906   esac
907
908   # Accept the important Cygnus configure options, so we can diagnose typos.
909
910   case $ac_dashdash$ac_option in
911   --)
912     ac_dashdash=yes ;;
913
914   -bindir | --bindir | --bindi | --bind | --bin | --bi)
915     ac_prev=bindir ;;
916   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
917     bindir=$ac_optarg ;;
918
919   -build | --build | --buil | --bui | --bu)
920     ac_prev=build_alias ;;
921   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
922     build_alias=$ac_optarg ;;
923
924   -cache-file | --cache-file | --cache-fil | --cache-fi \
925   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
926     ac_prev=cache_file ;;
927   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
928   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
929     cache_file=$ac_optarg ;;
930
931   --config-cache | -C)
932     cache_file=config.cache ;;
933
934   -datadir | --datadir | --datadi | --datad)
935     ac_prev=datadir ;;
936   -datadir=* | --datadir=* | --datadi=* | --datad=*)
937     datadir=$ac_optarg ;;
938
939   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
940   | --dataroo | --dataro | --datar)
941     ac_prev=datarootdir ;;
942   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
943   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
944     datarootdir=$ac_optarg ;;
945
946   -disable-* | --disable-*)
947     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
948     # Reject names that are not valid shell variable names.
949     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
950       as_fn_error $? "invalid feature name: $ac_useropt"
951     ac_useropt_orig=$ac_useropt
952     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
953     case $ac_user_opts in
954       *"
955 "enable_$ac_useropt"
956 "*) ;;
957       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
958          ac_unrecognized_sep=', ';;
959     esac
960     eval enable_$ac_useropt=no ;;
961
962   -docdir | --docdir | --docdi | --doc | --do)
963     ac_prev=docdir ;;
964   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
965     docdir=$ac_optarg ;;
966
967   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
968     ac_prev=dvidir ;;
969   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
970     dvidir=$ac_optarg ;;
971
972   -enable-* | --enable-*)
973     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
974     # Reject names that are not valid shell variable names.
975     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
976       as_fn_error $? "invalid feature name: $ac_useropt"
977     ac_useropt_orig=$ac_useropt
978     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
979     case $ac_user_opts in
980       *"
981 "enable_$ac_useropt"
982 "*) ;;
983       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
984          ac_unrecognized_sep=', ';;
985     esac
986     eval enable_$ac_useropt=\$ac_optarg ;;
987
988   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
989   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
990   | --exec | --exe | --ex)
991     ac_prev=exec_prefix ;;
992   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
993   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
994   | --exec=* | --exe=* | --ex=*)
995     exec_prefix=$ac_optarg ;;
996
997   -gas | --gas | --ga | --g)
998     # Obsolete; use --with-gas.
999     with_gas=yes ;;
1000
1001   -help | --help | --hel | --he | -h)
1002     ac_init_help=long ;;
1003   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1004     ac_init_help=recursive ;;
1005   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1006     ac_init_help=short ;;
1007
1008   -host | --host | --hos | --ho)
1009     ac_prev=host_alias ;;
1010   -host=* | --host=* | --hos=* | --ho=*)
1011     host_alias=$ac_optarg ;;
1012
1013   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1014     ac_prev=htmldir ;;
1015   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1016   | --ht=*)
1017     htmldir=$ac_optarg ;;
1018
1019   -includedir | --includedir | --includedi | --included | --include \
1020   | --includ | --inclu | --incl | --inc)
1021     ac_prev=includedir ;;
1022   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1023   | --includ=* | --inclu=* | --incl=* | --inc=*)
1024     includedir=$ac_optarg ;;
1025
1026   -infodir | --infodir | --infodi | --infod | --info | --inf)
1027     ac_prev=infodir ;;
1028   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1029     infodir=$ac_optarg ;;
1030
1031   -libdir | --libdir | --libdi | --libd)
1032     ac_prev=libdir ;;
1033   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1034     libdir=$ac_optarg ;;
1035
1036   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1037   | --libexe | --libex | --libe)
1038     ac_prev=libexecdir ;;
1039   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1040   | --libexe=* | --libex=* | --libe=*)
1041     libexecdir=$ac_optarg ;;
1042
1043   -localedir | --localedir | --localedi | --localed | --locale)
1044     ac_prev=localedir ;;
1045   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1046     localedir=$ac_optarg ;;
1047
1048   -localstatedir | --localstatedir | --localstatedi | --localstated \
1049   | --localstate | --localstat | --localsta | --localst | --locals)
1050     ac_prev=localstatedir ;;
1051   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1052   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1053     localstatedir=$ac_optarg ;;
1054
1055   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1056     ac_prev=mandir ;;
1057   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1058     mandir=$ac_optarg ;;
1059
1060   -nfp | --nfp | --nf)
1061     # Obsolete; use --without-fp.
1062     with_fp=no ;;
1063
1064   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1065   | --no-cr | --no-c | -n)
1066     no_create=yes ;;
1067
1068   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1069   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1070     no_recursion=yes ;;
1071
1072   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1073   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1074   | --oldin | --oldi | --old | --ol | --o)
1075     ac_prev=oldincludedir ;;
1076   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1077   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1078   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1079     oldincludedir=$ac_optarg ;;
1080
1081   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1082     ac_prev=prefix ;;
1083   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1084     prefix=$ac_optarg ;;
1085
1086   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1087   | --program-pre | --program-pr | --program-p)
1088     ac_prev=program_prefix ;;
1089   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1090   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1091     program_prefix=$ac_optarg ;;
1092
1093   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1094   | --program-suf | --program-su | --program-s)
1095     ac_prev=program_suffix ;;
1096   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1097   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1098     program_suffix=$ac_optarg ;;
1099
1100   -program-transform-name | --program-transform-name \
1101   | --program-transform-nam | --program-transform-na \
1102   | --program-transform-n | --program-transform- \
1103   | --program-transform | --program-transfor \
1104   | --program-transfo | --program-transf \
1105   | --program-trans | --program-tran \
1106   | --progr-tra | --program-tr | --program-t)
1107     ac_prev=program_transform_name ;;
1108   -program-transform-name=* | --program-transform-name=* \
1109   | --program-transform-nam=* | --program-transform-na=* \
1110   | --program-transform-n=* | --program-transform-=* \
1111   | --program-transform=* | --program-transfor=* \
1112   | --program-transfo=* | --program-transf=* \
1113   | --program-trans=* | --program-tran=* \
1114   | --progr-tra=* | --program-tr=* | --program-t=*)
1115     program_transform_name=$ac_optarg ;;
1116
1117   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1118     ac_prev=pdfdir ;;
1119   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1120     pdfdir=$ac_optarg ;;
1121
1122   -psdir | --psdir | --psdi | --psd | --ps)
1123     ac_prev=psdir ;;
1124   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1125     psdir=$ac_optarg ;;
1126
1127   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1128   | -silent | --silent | --silen | --sile | --sil)
1129     silent=yes ;;
1130
1131   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1132     ac_prev=sbindir ;;
1133   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1134   | --sbi=* | --sb=*)
1135     sbindir=$ac_optarg ;;
1136
1137   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1138   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1139   | --sharedst | --shareds | --shared | --share | --shar \
1140   | --sha | --sh)
1141     ac_prev=sharedstatedir ;;
1142   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1143   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1144   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1145   | --sha=* | --sh=*)
1146     sharedstatedir=$ac_optarg ;;
1147
1148   -site | --site | --sit)
1149     ac_prev=site ;;
1150   -site=* | --site=* | --sit=*)
1151     site=$ac_optarg ;;
1152
1153   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1154     ac_prev=srcdir ;;
1155   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1156     srcdir=$ac_optarg ;;
1157
1158   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1159   | --syscon | --sysco | --sysc | --sys | --sy)
1160     ac_prev=sysconfdir ;;
1161   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1162   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1163     sysconfdir=$ac_optarg ;;
1164
1165   -target | --target | --targe | --targ | --tar | --ta | --t)
1166     ac_prev=target_alias ;;
1167   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1168     target_alias=$ac_optarg ;;
1169
1170   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1171     verbose=yes ;;
1172
1173   -version | --version | --versio | --versi | --vers | -V)
1174     ac_init_version=: ;;
1175
1176   -with-* | --with-*)
1177     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1178     # Reject names that are not valid shell variable names.
1179     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1180       as_fn_error $? "invalid package name: $ac_useropt"
1181     ac_useropt_orig=$ac_useropt
1182     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1183     case $ac_user_opts in
1184       *"
1185 "with_$ac_useropt"
1186 "*) ;;
1187       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1188          ac_unrecognized_sep=', ';;
1189     esac
1190     eval with_$ac_useropt=\$ac_optarg ;;
1191
1192   -without-* | --without-*)
1193     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1194     # Reject names that are not valid shell variable names.
1195     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1196       as_fn_error $? "invalid package name: $ac_useropt"
1197     ac_useropt_orig=$ac_useropt
1198     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1199     case $ac_user_opts in
1200       *"
1201 "with_$ac_useropt"
1202 "*) ;;
1203       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1204          ac_unrecognized_sep=', ';;
1205     esac
1206     eval with_$ac_useropt=no ;;
1207
1208   --x)
1209     # Obsolete; use --with-x.
1210     with_x=yes ;;
1211
1212   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1213   | --x-incl | --x-inc | --x-in | --x-i)
1214     ac_prev=x_includes ;;
1215   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1216   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1217     x_includes=$ac_optarg ;;
1218
1219   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1220   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1221     ac_prev=x_libraries ;;
1222   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1223   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1224     x_libraries=$ac_optarg ;;
1225
1226   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1227 Try \`$0 --help' for more information"
1228     ;;
1229
1230   *=*)
1231     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1232     # Reject names that are not valid shell variable names.
1233     case $ac_envvar in #(
1234       '' | [0-9]* | *[!_$as_cr_alnum]* )
1235       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1236     esac
1237     eval $ac_envvar=\$ac_optarg
1238     export $ac_envvar ;;
1239
1240   *)
1241     # FIXME: should be removed in autoconf 3.0.
1242     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1243     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1244       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1245     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1246     ;;
1247
1248   esac
1249 done
1250
1251 if test -n "$ac_prev"; then
1252   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1253   as_fn_error $? "missing argument to $ac_option"
1254 fi
1255
1256 if test -n "$ac_unrecognized_opts"; then
1257   case $enable_option_checking in
1258     no) ;;
1259     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1260     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1261   esac
1262 fi
1263
1264 # Check all directory arguments for consistency.
1265 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1266                 datadir sysconfdir sharedstatedir localstatedir includedir \
1267                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1268                 libdir localedir mandir
1269 do
1270   eval ac_val=\$$ac_var
1271   # Remove trailing slashes.
1272   case $ac_val in
1273     */ )
1274       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1275       eval $ac_var=\$ac_val;;
1276   esac
1277   # Be sure to have absolute directory names.
1278   case $ac_val in
1279     [\\/$]* | ?:[\\/]* )  continue;;
1280     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1281   esac
1282   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1283 done
1284
1285 # There might be people who depend on the old broken behavior: `$host'
1286 # used to hold the argument of --host etc.
1287 # FIXME: To remove some day.
1288 build=$build_alias
1289 host=$host_alias
1290 target=$target_alias
1291
1292 # FIXME: To remove some day.
1293 if test "x$host_alias" != x; then
1294   if test "x$build_alias" = x; then
1295     cross_compiling=maybe
1296     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1297     If a cross compiler is detected then cross compile mode will be used" >&2
1298   elif test "x$build_alias" != "x$host_alias"; then
1299     cross_compiling=yes
1300   fi
1301 fi
1302
1303 ac_tool_prefix=
1304 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1305
1306 test "$silent" = yes && exec 6>/dev/null
1307
1308
1309 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1310 ac_ls_di=`ls -di .` &&
1311 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1312   as_fn_error $? "working directory cannot be determined"
1313 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1314   as_fn_error $? "pwd does not report name of working directory"
1315
1316
1317 # Find the source files, if location was not specified.
1318 if test -z "$srcdir"; then
1319   ac_srcdir_defaulted=yes
1320   # Try the directory containing this script, then the parent directory.
1321   ac_confdir=`$as_dirname -- "$as_myself" ||
1322 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1323          X"$as_myself" : 'X\(//\)[^/]' \| \
1324          X"$as_myself" : 'X\(//\)$' \| \
1325          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1326 $as_echo X"$as_myself" |
1327     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1328             s//\1/
1329             q
1330           }
1331           /^X\(\/\/\)[^/].*/{
1332             s//\1/
1333             q
1334           }
1335           /^X\(\/\/\)$/{
1336             s//\1/
1337             q
1338           }
1339           /^X\(\/\).*/{
1340             s//\1/
1341             q
1342           }
1343           s/.*/./; q'`
1344   srcdir=$ac_confdir
1345   if test ! -r "$srcdir/$ac_unique_file"; then
1346     srcdir=..
1347   fi
1348 else
1349   ac_srcdir_defaulted=no
1350 fi
1351 if test ! -r "$srcdir/$ac_unique_file"; then
1352   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1353   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1354 fi
1355 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1356 ac_abs_confdir=`(
1357         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1358         pwd)`
1359 # When building in place, set srcdir=.
1360 if test "$ac_abs_confdir" = "$ac_pwd"; then
1361   srcdir=.
1362 fi
1363 # Remove unnecessary trailing slashes from srcdir.
1364 # Double slashes in file names in object file debugging info
1365 # mess up M-x gdb in Emacs.
1366 case $srcdir in
1367 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1368 esac
1369 for ac_var in $ac_precious_vars; do
1370   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1371   eval ac_env_${ac_var}_value=\$${ac_var}
1372   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1373   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1374 done
1375
1376 #
1377 # Report the --help message.
1378 #
1379 if test "$ac_init_help" = "long"; then
1380   # Omit some internal or obsolete options to make the list less imposing.
1381   # This message is too long to be a string in the A/UX 3.1 sh.
1382   cat <<_ACEOF
1383 \`configure' configures Wine 1.4 to adapt to many kinds of systems.
1384
1385 Usage: $0 [OPTION]... [VAR=VALUE]...
1386
1387 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1388 VAR=VALUE.  See below for descriptions of some of the useful variables.
1389
1390 Defaults for the options are specified in brackets.
1391
1392 Configuration:
1393   -h, --help              display this help and exit
1394       --help=short        display options specific to this package
1395       --help=recursive    display the short help of all the included packages
1396   -V, --version           display version information and exit
1397   -q, --quiet, --silent   do not print \`checking ...' messages
1398       --cache-file=FILE   cache test results in FILE [disabled]
1399   -C, --config-cache      alias for \`--cache-file=config.cache'
1400   -n, --no-create         do not create output files
1401       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1402
1403 Installation directories:
1404   --prefix=PREFIX         install architecture-independent files in PREFIX
1405                           [$ac_default_prefix]
1406   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1407                           [PREFIX]
1408
1409 By default, \`make install' will install all the files in
1410 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1411 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1412 for instance \`--prefix=\$HOME'.
1413
1414 For better control, use the options below.
1415
1416 Fine tuning of the installation directories:
1417   --bindir=DIR            user executables [EPREFIX/bin]
1418   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1419   --libexecdir=DIR        program executables [EPREFIX/libexec]
1420   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1421   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1422   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1423   --libdir=DIR            object code libraries [EPREFIX/lib]
1424   --includedir=DIR        C header files [PREFIX/include]
1425   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1426   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1427   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1428   --infodir=DIR           info documentation [DATAROOTDIR/info]
1429   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1430   --mandir=DIR            man documentation [DATAROOTDIR/man]
1431   --docdir=DIR            documentation root [DATAROOTDIR/doc/wine]
1432   --htmldir=DIR           html documentation [DOCDIR]
1433   --dvidir=DIR            dvi documentation [DOCDIR]
1434   --pdfdir=DIR            pdf documentation [DOCDIR]
1435   --psdir=DIR             ps documentation [DOCDIR]
1436 _ACEOF
1437
1438   cat <<\_ACEOF
1439
1440 X features:
1441   --x-includes=DIR    X include files are in DIR
1442   --x-libraries=DIR   X library files are in DIR
1443
1444 System types:
1445   --build=BUILD     configure for building on BUILD [guessed]
1446   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1447 _ACEOF
1448 fi
1449
1450 if test -n "$ac_init_help"; then
1451   case $ac_init_help in
1452      short | recursive ) echo "Configuration of Wine 1.4:";;
1453    esac
1454   cat <<\_ACEOF
1455
1456 Optional Features:
1457   --disable-option-checking  ignore unrecognized --enable/--with options
1458   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1459   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1460   --disable-win16         do not include Win16 support
1461   --enable-win64          build a Win64 emulator on AMD64 (won't run Win32
1462                           binaries)
1463   --disable-tests         do not build the regression tests
1464   --enable-maintainer-mode
1465                           enable maintainer-specific build rules
1466   --disable-largefile     omit support for large files
1467
1468 Optional Packages:
1469   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1470   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1471   --without-alsa          do not use the Alsa sound support
1472   --without-capi          do not use CAPI (ISDN support)
1473   --without-cms           do not use CMS (color management support)
1474   --without-coreaudio     do not use the CoreAudio sound support
1475   --without-cups          do not use CUPS
1476   --without-curses        do not use (n)curses
1477   --without-dbus          do not use DBus (dynamic device support)
1478   --without-fontconfig    do not use fontconfig
1479   --without-freetype      do not use the FreeType library
1480   --without-gettext       do not use gettext
1481   --with-gettextpo        use the GetTextPO library to rebuild po files
1482   --without-gphoto        do not use gphoto (Digital Camera support)
1483   --without-glu           do not use the GLU library
1484   --without-gnutls        do not use GnuTLS (schannel support)
1485   --without-gsm           do not use libgsm (GSM 06.10 codec support)
1486   --without-gstreamer     do not use GStreamer (codecs support)
1487   --without-hal           do not use HAL (dynamic device support)
1488   --without-jpeg          do not use JPEG
1489   --without-ldap          do not use LDAP
1490   --without-mpg123        do not use the mpg123 library
1491   --without-openal        do not use OpenAL
1492   --without-opencl        do not use OpenCL
1493   --without-opengl        do not use OpenGL
1494   --without-openssl       do not use OpenSSL
1495   --without-oss           do not use the OSS sound support
1496   --without-png           do not use PNG
1497   --without-pthread       do not use the pthread library
1498   --without-sane          do not use SANE (scanner support)
1499   --without-tiff          do not use TIFF
1500   --without-v4l           do not use v4l1 (v4l support)
1501   --without-xcomposite    do not use the Xcomposite extension
1502   --without-xcursor       do not use the Xcursor extension
1503   --without-xinerama      do not use Xinerama (multi-monitor support)
1504   --without-xinput        do not use the Xinput extension
1505   --without-xinput2       do not use the Xinput 2 extension
1506   --without-xml           do not use XML
1507   --without-xrandr        do not use Xrandr (resolution changes)
1508   --without-xrender       do not use the Xrender extension
1509   --without-xshape        do not use the Xshape extension
1510   --without-xslt          do not use XSLT
1511   --without-xxf86vm       do not use XFree video mode extension
1512   --without-zlib          do not use Zlib (data compression)
1513   --with-wine-tools=DIR   use Wine tools from directory DIR
1514   --with-wine64=DIR       use the 64-bit Wine in DIR for a Wow64 build
1515   --with-x                use the X Window System
1516
1517 Some influential environment variables:
1518   CC          C compiler command
1519   CFLAGS      C compiler flags
1520   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1521               nonstandard directory <lib dir>
1522   LIBS        libraries to pass to the linker, e.g. -l<library>
1523   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1524               you have headers in a nonstandard directory <include dir>
1525   CXX         C++ compiler command
1526   CXXFLAGS    C++ compiler flags
1527   CPP         C preprocessor
1528   XMKMF       Path to xmkmf, Makefile generator for X Window System
1529
1530 Use these variables to override the choices made by `configure' or to help
1531 it to find libraries and programs with nonstandard names/locations.
1532
1533 Report bugs to <wine-devel@winehq.org>.
1534 Wine home page: <http://www.winehq.org>.
1535 _ACEOF
1536 ac_status=$?
1537 fi
1538
1539 if test "$ac_init_help" = "recursive"; then
1540   # If there are subdirs, report their specific --help.
1541   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1542     test -d "$ac_dir" ||
1543       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1544       continue
1545     ac_builddir=.
1546
1547 case "$ac_dir" in
1548 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1549 *)
1550   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1551   # A ".." for each directory in $ac_dir_suffix.
1552   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1553   case $ac_top_builddir_sub in
1554   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1555   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1556   esac ;;
1557 esac
1558 ac_abs_top_builddir=$ac_pwd
1559 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1560 # for backward compatibility:
1561 ac_top_builddir=$ac_top_build_prefix
1562
1563 case $srcdir in
1564   .)  # We are building in place.
1565     ac_srcdir=.
1566     ac_top_srcdir=$ac_top_builddir_sub
1567     ac_abs_top_srcdir=$ac_pwd ;;
1568   [\\/]* | ?:[\\/]* )  # Absolute name.
1569     ac_srcdir=$srcdir$ac_dir_suffix;
1570     ac_top_srcdir=$srcdir
1571     ac_abs_top_srcdir=$srcdir ;;
1572   *) # Relative name.
1573     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1574     ac_top_srcdir=$ac_top_build_prefix$srcdir
1575     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1576 esac
1577 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1578
1579     cd "$ac_dir" || { ac_status=$?; continue; }
1580     # Check for guested configure.
1581     if test -f "$ac_srcdir/configure.gnu"; then
1582       echo &&
1583       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1584     elif test -f "$ac_srcdir/configure"; then
1585       echo &&
1586       $SHELL "$ac_srcdir/configure" --help=recursive
1587     else
1588       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1589     fi || ac_status=$?
1590     cd "$ac_pwd" || { ac_status=$?; break; }
1591   done
1592 fi
1593
1594 test -n "$ac_init_help" && exit $ac_status
1595 if $ac_init_version; then
1596   cat <<\_ACEOF
1597 Wine configure 1.4
1598 generated by GNU Autoconf 2.68
1599
1600 Copyright (C) 2010 Free Software Foundation, Inc.
1601 This configure script is free software; the Free Software Foundation
1602 gives unlimited permission to copy, distribute and modify it.
1603 _ACEOF
1604   exit
1605 fi
1606
1607 ## ------------------------ ##
1608 ## Autoconf initialization. ##
1609 ## ------------------------ ##
1610
1611 # ac_fn_c_try_compile LINENO
1612 # --------------------------
1613 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1614 ac_fn_c_try_compile ()
1615 {
1616   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1617   rm -f conftest.$ac_objext
1618   if { { ac_try="$ac_compile"
1619 case "(($ac_try" in
1620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1621   *) ac_try_echo=$ac_try;;
1622 esac
1623 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1624 $as_echo "$ac_try_echo"; } >&5
1625   (eval "$ac_compile") 2>conftest.err
1626   ac_status=$?
1627   if test -s conftest.err; then
1628     grep -v '^ *+' conftest.err >conftest.er1
1629     cat conftest.er1 >&5
1630     mv -f conftest.er1 conftest.err
1631   fi
1632   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1633   test $ac_status = 0; } && {
1634          test -z "$ac_c_werror_flag" ||
1635          test ! -s conftest.err
1636        } && test -s conftest.$ac_objext; then :
1637   ac_retval=0
1638 else
1639   $as_echo "$as_me: failed program was:" >&5
1640 sed 's/^/| /' conftest.$ac_ext >&5
1641
1642         ac_retval=1
1643 fi
1644   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1645   as_fn_set_status $ac_retval
1646
1647 } # ac_fn_c_try_compile
1648
1649 # ac_fn_cxx_try_compile LINENO
1650 # ----------------------------
1651 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1652 ac_fn_cxx_try_compile ()
1653 {
1654   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1655   rm -f conftest.$ac_objext
1656   if { { ac_try="$ac_compile"
1657 case "(($ac_try" in
1658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1659   *) ac_try_echo=$ac_try;;
1660 esac
1661 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1662 $as_echo "$ac_try_echo"; } >&5
1663   (eval "$ac_compile") 2>conftest.err
1664   ac_status=$?
1665   if test -s conftest.err; then
1666     grep -v '^ *+' conftest.err >conftest.er1
1667     cat conftest.er1 >&5
1668     mv -f conftest.er1 conftest.err
1669   fi
1670   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1671   test $ac_status = 0; } && {
1672          test -z "$ac_cxx_werror_flag" ||
1673          test ! -s conftest.err
1674        } && test -s conftest.$ac_objext; then :
1675   ac_retval=0
1676 else
1677   $as_echo "$as_me: failed program was:" >&5
1678 sed 's/^/| /' conftest.$ac_ext >&5
1679
1680         ac_retval=1
1681 fi
1682   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1683   as_fn_set_status $ac_retval
1684
1685 } # ac_fn_cxx_try_compile
1686
1687 # ac_fn_c_try_link LINENO
1688 # -----------------------
1689 # Try to link conftest.$ac_ext, and return whether this succeeded.
1690 ac_fn_c_try_link ()
1691 {
1692   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1693   rm -f conftest.$ac_objext conftest$ac_exeext
1694   if { { ac_try="$ac_link"
1695 case "(($ac_try" in
1696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1697   *) ac_try_echo=$ac_try;;
1698 esac
1699 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1700 $as_echo "$ac_try_echo"; } >&5
1701   (eval "$ac_link") 2>conftest.err
1702   ac_status=$?
1703   if test -s conftest.err; then
1704     grep -v '^ *+' conftest.err >conftest.er1
1705     cat conftest.er1 >&5
1706     mv -f conftest.er1 conftest.err
1707   fi
1708   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1709   test $ac_status = 0; } && {
1710          test -z "$ac_c_werror_flag" ||
1711          test ! -s conftest.err
1712        } && test -s conftest$ac_exeext && {
1713          test "$cross_compiling" = yes ||
1714          $as_test_x conftest$ac_exeext
1715        }; then :
1716   ac_retval=0
1717 else
1718   $as_echo "$as_me: failed program was:" >&5
1719 sed 's/^/| /' conftest.$ac_ext >&5
1720
1721         ac_retval=1
1722 fi
1723   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1724   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1725   # interfere with the next link command; also delete a directory that is
1726   # left behind by Apple's compiler.  We do this before executing the actions.
1727   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1728   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1729   as_fn_set_status $ac_retval
1730
1731 } # ac_fn_c_try_link
1732
1733 # ac_fn_c_try_cpp LINENO
1734 # ----------------------
1735 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1736 ac_fn_c_try_cpp ()
1737 {
1738   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1739   if { { ac_try="$ac_cpp conftest.$ac_ext"
1740 case "(($ac_try" in
1741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1742   *) ac_try_echo=$ac_try;;
1743 esac
1744 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1745 $as_echo "$ac_try_echo"; } >&5
1746   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1747   ac_status=$?
1748   if test -s conftest.err; then
1749     grep -v '^ *+' conftest.err >conftest.er1
1750     cat conftest.er1 >&5
1751     mv -f conftest.er1 conftest.err
1752   fi
1753   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1754   test $ac_status = 0; } > conftest.i && {
1755          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1756          test ! -s conftest.err
1757        }; then :
1758   ac_retval=0
1759 else
1760   $as_echo "$as_me: failed program was:" >&5
1761 sed 's/^/| /' conftest.$ac_ext >&5
1762
1763     ac_retval=1
1764 fi
1765   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1766   as_fn_set_status $ac_retval
1767
1768 } # ac_fn_c_try_cpp
1769
1770 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1771 # -------------------------------------------------------
1772 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1773 # the include files in INCLUDES and setting the cache variable VAR
1774 # accordingly.
1775 ac_fn_c_check_header_mongrel ()
1776 {
1777   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1778   if eval \${$3+:} false; then :
1779   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1780 $as_echo_n "checking for $2... " >&6; }
1781 if eval \${$3+:} false; then :
1782   $as_echo_n "(cached) " >&6
1783 fi
1784 eval ac_res=\$$3
1785                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1786 $as_echo "$ac_res" >&6; }
1787 else
1788   # Is the header compilable?
1789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1790 $as_echo_n "checking $2 usability... " >&6; }
1791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1792 /* end confdefs.h.  */
1793 $4
1794 #include <$2>
1795 _ACEOF
1796 if ac_fn_c_try_compile "$LINENO"; then :
1797   ac_header_compiler=yes
1798 else
1799   ac_header_compiler=no
1800 fi
1801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1803 $as_echo "$ac_header_compiler" >&6; }
1804
1805 # Is the header present?
1806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1807 $as_echo_n "checking $2 presence... " >&6; }
1808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1809 /* end confdefs.h.  */
1810 #include <$2>
1811 _ACEOF
1812 if ac_fn_c_try_cpp "$LINENO"; then :
1813   ac_header_preproc=yes
1814 else
1815   ac_header_preproc=no
1816 fi
1817 rm -f conftest.err conftest.i conftest.$ac_ext
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1819 $as_echo "$ac_header_preproc" >&6; }
1820
1821 # So?  What about this header?
1822 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1823   yes:no: )
1824     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1825 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1826     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1827 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1828     ;;
1829   no:yes:* )
1830     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1831 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1832     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1833 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1834     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1835 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1836     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1837 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1838     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1839 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1840 ( $as_echo "## ------------------------------------ ##
1841 ## Report this to wine-devel@winehq.org ##
1842 ## ------------------------------------ ##"
1843      ) | sed "s/^/$as_me: WARNING:     /" >&2
1844     ;;
1845 esac
1846   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1847 $as_echo_n "checking for $2... " >&6; }
1848 if eval \${$3+:} false; then :
1849   $as_echo_n "(cached) " >&6
1850 else
1851   eval "$3=\$ac_header_compiler"
1852 fi
1853 eval ac_res=\$$3
1854                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1855 $as_echo "$ac_res" >&6; }
1856 fi
1857   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1858
1859 } # ac_fn_c_check_header_mongrel
1860
1861 # ac_fn_c_try_run LINENO
1862 # ----------------------
1863 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1864 # that executables *can* be run.
1865 ac_fn_c_try_run ()
1866 {
1867   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1868   if { { ac_try="$ac_link"
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_link") 2>&5
1876   ac_status=$?
1877   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1878   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1879   { { case "(($ac_try" in
1880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1881   *) ac_try_echo=$ac_try;;
1882 esac
1883 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1884 $as_echo "$ac_try_echo"; } >&5
1885   (eval "$ac_try") 2>&5
1886   ac_status=$?
1887   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1888   test $ac_status = 0; }; }; then :
1889   ac_retval=0
1890 else
1891   $as_echo "$as_me: program exited with status $ac_status" >&5
1892        $as_echo "$as_me: failed program was:" >&5
1893 sed 's/^/| /' conftest.$ac_ext >&5
1894
1895        ac_retval=$ac_status
1896 fi
1897   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1898   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1899   as_fn_set_status $ac_retval
1900
1901 } # ac_fn_c_try_run
1902
1903 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1904 # -------------------------------------------------------
1905 # Tests whether HEADER exists and can be compiled using the include files in
1906 # INCLUDES, setting the cache variable VAR accordingly.
1907 ac_fn_c_check_header_compile ()
1908 {
1909   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1910   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1911 $as_echo_n "checking for $2... " >&6; }
1912 if eval \${$3+:} false; then :
1913   $as_echo_n "(cached) " >&6
1914 else
1915   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1916 /* end confdefs.h.  */
1917 $4
1918 #include <$2>
1919 _ACEOF
1920 if ac_fn_c_try_compile "$LINENO"; then :
1921   eval "$3=yes"
1922 else
1923   eval "$3=no"
1924 fi
1925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1926 fi
1927 eval ac_res=\$$3
1928                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1929 $as_echo "$ac_res" >&6; }
1930   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1931
1932 } # ac_fn_c_check_header_compile
1933
1934 # ac_fn_c_check_func LINENO FUNC VAR
1935 # ----------------------------------
1936 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1937 ac_fn_c_check_func ()
1938 {
1939   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1940   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1941 $as_echo_n "checking for $2... " >&6; }
1942 if eval \${$3+:} false; then :
1943   $as_echo_n "(cached) " >&6
1944 else
1945   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1946 /* end confdefs.h.  */
1947 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1948    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1949 #define $2 innocuous_$2
1950
1951 /* System header to define __stub macros and hopefully few prototypes,
1952     which can conflict with char $2 (); below.
1953     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1954     <limits.h> exists even on freestanding compilers.  */
1955
1956 #ifdef __STDC__
1957 # include <limits.h>
1958 #else
1959 # include <assert.h>
1960 #endif
1961
1962 #undef $2
1963
1964 /* Override any GCC internal prototype to avoid an error.
1965    Use char because int might match the return type of a GCC
1966    builtin and then its argument prototype would still apply.  */
1967 #ifdef __cplusplus
1968 extern "C"
1969 #endif
1970 char $2 ();
1971 /* The GNU C library defines this for functions which it implements
1972     to always fail with ENOSYS.  Some functions are actually named
1973     something starting with __ and the normal name is an alias.  */
1974 #if defined __stub_$2 || defined __stub___$2
1975 choke me
1976 #endif
1977
1978 int
1979 main ()
1980 {
1981 return $2 ();
1982   ;
1983   return 0;
1984 }
1985 _ACEOF
1986 if ac_fn_c_try_link "$LINENO"; then :
1987   eval "$3=yes"
1988 else
1989   eval "$3=no"
1990 fi
1991 rm -f core conftest.err conftest.$ac_objext \
1992     conftest$ac_exeext conftest.$ac_ext
1993 fi
1994 eval ac_res=\$$3
1995                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1996 $as_echo "$ac_res" >&6; }
1997   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1998
1999 } # ac_fn_c_check_func
2000
2001 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2002 # ----------------------------------------------------
2003 # Tries to find if the field MEMBER exists in type AGGR, after including
2004 # INCLUDES, setting cache variable VAR accordingly.
2005 ac_fn_c_check_member ()
2006 {
2007   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2008   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2009 $as_echo_n "checking for $2.$3... " >&6; }
2010 if eval \${$4+:} false; then :
2011   $as_echo_n "(cached) " >&6
2012 else
2013   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2014 /* end confdefs.h.  */
2015 $5
2016 int
2017 main ()
2018 {
2019 static $2 ac_aggr;
2020 if (ac_aggr.$3)
2021 return 0;
2022   ;
2023   return 0;
2024 }
2025 _ACEOF
2026 if ac_fn_c_try_compile "$LINENO"; then :
2027   eval "$4=yes"
2028 else
2029   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2030 /* end confdefs.h.  */
2031 $5
2032 int
2033 main ()
2034 {
2035 static $2 ac_aggr;
2036 if (sizeof ac_aggr.$3)
2037 return 0;
2038   ;
2039   return 0;
2040 }
2041 _ACEOF
2042 if ac_fn_c_try_compile "$LINENO"; then :
2043   eval "$4=yes"
2044 else
2045   eval "$4=no"
2046 fi
2047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2048 fi
2049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2050 fi
2051 eval ac_res=\$$4
2052                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2053 $as_echo "$ac_res" >&6; }
2054   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2055
2056 } # ac_fn_c_check_member
2057
2058 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2059 # -------------------------------------------
2060 # Tests whether TYPE exists after having included INCLUDES, setting cache
2061 # variable VAR accordingly.
2062 ac_fn_c_check_type ()
2063 {
2064   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2065   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2066 $as_echo_n "checking for $2... " >&6; }
2067 if eval \${$3+:} false; then :
2068   $as_echo_n "(cached) " >&6
2069 else
2070   eval "$3=no"
2071   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2072 /* end confdefs.h.  */
2073 $4
2074 int
2075 main ()
2076 {
2077 if (sizeof ($2))
2078          return 0;
2079   ;
2080   return 0;
2081 }
2082 _ACEOF
2083 if ac_fn_c_try_compile "$LINENO"; then :
2084   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2085 /* end confdefs.h.  */
2086 $4
2087 int
2088 main ()
2089 {
2090 if (sizeof (($2)))
2091             return 0;
2092   ;
2093   return 0;
2094 }
2095 _ACEOF
2096 if ac_fn_c_try_compile "$LINENO"; then :
2097
2098 else
2099   eval "$3=yes"
2100 fi
2101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2102 fi
2103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2104 fi
2105 eval ac_res=\$$3
2106                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2107 $as_echo "$ac_res" >&6; }
2108   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2109
2110 } # ac_fn_c_check_type
2111 cat >config.log <<_ACEOF
2112 This file contains any messages produced by compilers while
2113 running configure, to aid debugging if configure makes a mistake.
2114
2115 It was created by Wine $as_me 1.4, which was
2116 generated by GNU Autoconf 2.68.  Invocation command line was
2117
2118   $ $0 $@
2119
2120 _ACEOF
2121 exec 5>>config.log
2122 {
2123 cat <<_ASUNAME
2124 ## --------- ##
2125 ## Platform. ##
2126 ## --------- ##
2127
2128 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2129 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2130 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2131 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2132 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2133
2134 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2135 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2136
2137 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2138 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2139 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2140 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2141 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2142 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2143 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2144
2145 _ASUNAME
2146
2147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2148 for as_dir in $PATH
2149 do
2150   IFS=$as_save_IFS
2151   test -z "$as_dir" && as_dir=.
2152     $as_echo "PATH: $as_dir"
2153   done
2154 IFS=$as_save_IFS
2155
2156 } >&5
2157
2158 cat >&5 <<_ACEOF
2159
2160
2161 ## ----------- ##
2162 ## Core tests. ##
2163 ## ----------- ##
2164
2165 _ACEOF
2166
2167
2168 # Keep a trace of the command line.
2169 # Strip out --no-create and --no-recursion so they do not pile up.
2170 # Strip out --silent because we don't want to record it for future runs.
2171 # Also quote any args containing shell meta-characters.
2172 # Make two passes to allow for proper duplicate-argument suppression.
2173 ac_configure_args=
2174 ac_configure_args0=
2175 ac_configure_args1=
2176 ac_must_keep_next=false
2177 for ac_pass in 1 2
2178 do
2179   for ac_arg
2180   do
2181     case $ac_arg in
2182     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2183     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2184     | -silent | --silent | --silen | --sile | --sil)
2185       continue ;;
2186     *\'*)
2187       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2188     esac
2189     case $ac_pass in
2190     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2191     2)
2192       as_fn_append ac_configure_args1 " '$ac_arg'"
2193       if test $ac_must_keep_next = true; then
2194         ac_must_keep_next=false # Got value, back to normal.
2195       else
2196         case $ac_arg in
2197           *=* | --config-cache | -C | -disable-* | --disable-* \
2198           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2199           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2200           | -with-* | --with-* | -without-* | --without-* | --x)
2201             case "$ac_configure_args0 " in
2202               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2203             esac
2204             ;;
2205           -* ) ac_must_keep_next=true ;;
2206         esac
2207       fi
2208       as_fn_append ac_configure_args " '$ac_arg'"
2209       ;;
2210     esac
2211   done
2212 done
2213 { ac_configure_args0=; unset ac_configure_args0;}
2214 { ac_configure_args1=; unset ac_configure_args1;}
2215
2216 # When interrupted or exit'd, cleanup temporary files, and complete
2217 # config.log.  We remove comments because anyway the quotes in there
2218 # would cause problems or look ugly.
2219 # WARNING: Use '\'' to represent an apostrophe within the trap.
2220 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2221 trap 'exit_status=$?
2222   # Save into config.log some information that might help in debugging.
2223   {
2224     echo
2225
2226     $as_echo "## ---------------- ##
2227 ## Cache variables. ##
2228 ## ---------------- ##"
2229     echo
2230     # The following way of writing the cache mishandles newlines in values,
2231 (
2232   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2233     eval ac_val=\$$ac_var
2234     case $ac_val in #(
2235     *${as_nl}*)
2236       case $ac_var in #(
2237       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2238 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2239       esac
2240       case $ac_var in #(
2241       _ | IFS | as_nl) ;; #(
2242       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2243       *) { eval $ac_var=; unset $ac_var;} ;;
2244       esac ;;
2245     esac
2246   done
2247   (set) 2>&1 |
2248     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2249     *${as_nl}ac_space=\ *)
2250       sed -n \
2251         "s/'\''/'\''\\\\'\'''\''/g;
2252           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2253       ;; #(
2254     *)
2255       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2256       ;;
2257     esac |
2258     sort
2259 )
2260     echo
2261
2262     $as_echo "## ----------------- ##
2263 ## Output variables. ##
2264 ## ----------------- ##"
2265     echo
2266     for ac_var in $ac_subst_vars
2267     do
2268       eval ac_val=\$$ac_var
2269       case $ac_val in
2270       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2271       esac
2272       $as_echo "$ac_var='\''$ac_val'\''"
2273     done | sort
2274     echo
2275
2276     if test -n "$ac_subst_files"; then
2277       $as_echo "## ------------------- ##
2278 ## File substitutions. ##
2279 ## ------------------- ##"
2280       echo
2281       for ac_var in $ac_subst_files
2282       do
2283         eval ac_val=\$$ac_var
2284         case $ac_val in
2285         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2286         esac
2287         $as_echo "$ac_var='\''$ac_val'\''"
2288       done | sort
2289       echo
2290     fi
2291
2292     if test -s confdefs.h; then
2293       $as_echo "## ----------- ##
2294 ## confdefs.h. ##
2295 ## ----------- ##"
2296       echo
2297       cat confdefs.h
2298       echo
2299     fi
2300     test "$ac_signal" != 0 &&
2301       $as_echo "$as_me: caught signal $ac_signal"
2302     $as_echo "$as_me: exit $exit_status"
2303   } >&5
2304   rm -f core *.core core.conftest.* &&
2305     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2306     exit $exit_status
2307 ' 0
2308 for ac_signal in 1 2 13 15; do
2309   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2310 done
2311 ac_signal=0
2312
2313 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2314 rm -f -r conftest* confdefs.h
2315
2316 $as_echo "/* confdefs.h */" > confdefs.h
2317
2318 # Predefined preprocessor variables.
2319
2320 cat >>confdefs.h <<_ACEOF
2321 #define PACKAGE_NAME "$PACKAGE_NAME"
2322 _ACEOF
2323
2324 cat >>confdefs.h <<_ACEOF
2325 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2326 _ACEOF
2327
2328 cat >>confdefs.h <<_ACEOF
2329 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2330 _ACEOF
2331
2332 cat >>confdefs.h <<_ACEOF
2333 #define PACKAGE_STRING "$PACKAGE_STRING"
2334 _ACEOF
2335
2336 cat >>confdefs.h <<_ACEOF
2337 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2338 _ACEOF
2339
2340 cat >>confdefs.h <<_ACEOF
2341 #define PACKAGE_URL "$PACKAGE_URL"
2342 _ACEOF
2343
2344
2345 # Let the site file select an alternate cache file if it wants to.
2346 # Prefer an explicitly selected file to automatically selected ones.
2347 ac_site_file1=NONE
2348 ac_site_file2=NONE
2349 if test -n "$CONFIG_SITE"; then
2350   # We do not want a PATH search for config.site.
2351   case $CONFIG_SITE in #((
2352     -*)  ac_site_file1=./$CONFIG_SITE;;
2353     */*) ac_site_file1=$CONFIG_SITE;;
2354     *)   ac_site_file1=./$CONFIG_SITE;;
2355   esac
2356 elif test "x$prefix" != xNONE; then
2357   ac_site_file1=$prefix/share/config.site
2358   ac_site_file2=$prefix/etc/config.site
2359 else
2360   ac_site_file1=$ac_default_prefix/share/config.site
2361   ac_site_file2=$ac_default_prefix/etc/config.site
2362 fi
2363 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2364 do
2365   test "x$ac_site_file" = xNONE && continue
2366   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2367     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2368 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2369     sed 's/^/| /' "$ac_site_file" >&5
2370     . "$ac_site_file" \
2371       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2372 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2373 as_fn_error $? "failed to load site script $ac_site_file
2374 See \`config.log' for more details" "$LINENO" 5; }
2375   fi
2376 done
2377
2378 if test -r "$cache_file"; then
2379   # Some versions of bash will fail to source /dev/null (special files
2380   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2381   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2382     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2383 $as_echo "$as_me: loading cache $cache_file" >&6;}
2384     case $cache_file in
2385       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2386       *)                      . "./$cache_file";;
2387     esac
2388   fi
2389 else
2390   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2391 $as_echo "$as_me: creating cache $cache_file" >&6;}
2392   >$cache_file
2393 fi
2394
2395 # Check that the precious variables saved in the cache have kept the same
2396 # value.
2397 ac_cache_corrupted=false
2398 for ac_var in $ac_precious_vars; do
2399   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2400   eval ac_new_set=\$ac_env_${ac_var}_set
2401   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2402   eval ac_new_val=\$ac_env_${ac_var}_value
2403   case $ac_old_set,$ac_new_set in
2404     set,)
2405       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2406 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2407       ac_cache_corrupted=: ;;
2408     ,set)
2409       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2410 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2411       ac_cache_corrupted=: ;;
2412     ,);;
2413     *)
2414       if test "x$ac_old_val" != "x$ac_new_val"; then
2415         # differences in whitespace do not lead to failure.
2416         ac_old_val_w=`echo x $ac_old_val`
2417         ac_new_val_w=`echo x $ac_new_val`
2418         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2419           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2420 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2421           ac_cache_corrupted=:
2422         else
2423           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2424 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2425           eval $ac_var=\$ac_old_val
2426         fi
2427         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2428 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2429         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2430 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2431       fi;;
2432   esac
2433   # Pass precious variables to config.status.
2434   if test "$ac_new_set" = set; then
2435     case $ac_new_val in
2436     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2437     *) ac_arg=$ac_var=$ac_new_val ;;
2438     esac
2439     case " $ac_configure_args " in
2440       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2441       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2442     esac
2443   fi
2444 done
2445 if $ac_cache_corrupted; then
2446   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2447 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2448   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2449 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2450   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2451 fi
2452 ## -------------------- ##
2453 ## Main body of script. ##
2454 ## -------------------- ##
2455
2456 ac_ext=c
2457 ac_cpp='$CPP $CPPFLAGS'
2458 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2459 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2460 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2461
2462
2463
2464 ac_config_headers="$ac_config_headers include/config.h"
2465
2466 ac_aux_dir=
2467 for ac_dir in tools "$srcdir"/tools; do
2468   if test -f "$ac_dir/install-sh"; then
2469     ac_aux_dir=$ac_dir
2470     ac_install_sh="$ac_aux_dir/install-sh -c"
2471     break
2472   elif test -f "$ac_dir/install.sh"; then
2473     ac_aux_dir=$ac_dir
2474     ac_install_sh="$ac_aux_dir/install.sh -c"
2475     break
2476   elif test -f "$ac_dir/shtool"; then
2477     ac_aux_dir=$ac_dir
2478     ac_install_sh="$ac_aux_dir/shtool install -c"
2479     break
2480   fi
2481 done
2482 if test -z "$ac_aux_dir"; then
2483   as_fn_error $? "cannot find install-sh, install.sh, or shtool in tools \"$srcdir\"/tools" "$LINENO" 5
2484 fi
2485
2486 # These three variables are undocumented and unsupported,
2487 # and are intended to be withdrawn in a future Autoconf release.
2488 # They can cause serious problems if a builder's source tree is in a directory
2489 # whose full name contains unusual characters.
2490 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2491 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2492 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2493
2494
2495
2496
2497
2498 # Check whether --enable-win16 was given.
2499 if test "${enable_win16+set}" = set; then :
2500   enableval=$enable_win16;
2501 fi
2502
2503 # Check whether --enable-win64 was given.
2504 if test "${enable_win64+set}" = set; then :
2505   enableval=$enable_win64;
2506 fi
2507
2508 # Check whether --enable-tests was given.
2509 if test "${enable_tests+set}" = set; then :
2510   enableval=$enable_tests;
2511 fi
2512
2513 # Check whether --enable-maintainer-mode was given.
2514 if test "${enable_maintainer_mode+set}" = set; then :
2515   enableval=$enable_maintainer_mode;
2516 fi
2517
2518
2519
2520 # Check whether --with-alsa was given.
2521 if test "${with_alsa+set}" = set; then :
2522   withval=$with_alsa; if test "x$withval" = "xno"; then ac_cv_header_sys_asoundlib_h=no; ac_cv_header_alsa_asoundlib_h=no; fi
2523 fi
2524
2525
2526 # Check whether --with-capi was given.
2527 if test "${with_capi+set}" = set; then :
2528   withval=$with_capi; if test "x$withval" = "xno"; then ac_cv_header_capi20_h=no; ac_cv_header_linux_capi_h=no; fi
2529 fi
2530
2531
2532 # Check whether --with-cms was given.
2533 if test "${with_cms+set}" = set; then :
2534   withval=$with_cms; if test "x$withval" = "xno"; then ac_cv_header_lcms_h=no; ac_cv_header_lcms_lcms_h=no; fi
2535 fi
2536
2537
2538 # Check whether --with-coreaudio was given.
2539 if test "${with_coreaudio+set}" = set; then :
2540   withval=$with_coreaudio; if test "x$withval" = "xno"; then ac_cv_header_CoreAudio_CoreAudio_h=no; fi
2541 fi
2542
2543
2544 # Check whether --with-cups was given.
2545 if test "${with_cups+set}" = set; then :
2546   withval=$with_cups;
2547 fi
2548
2549
2550 # Check whether --with-curses was given.
2551 if test "${with_curses+set}" = set; then :
2552   withval=$with_curses; if test "x$withval" = "xno"; then ac_cv_header_ncurses_h=no; ac_cv_header_curses_h=no; fi
2553 fi
2554
2555
2556 # Check whether --with-dbus was given.
2557 if test "${with_dbus+set}" = set; then :
2558   withval=$with_dbus;
2559 fi
2560
2561
2562 # Check whether --with-fontconfig was given.
2563 if test "${with_fontconfig+set}" = set; then :
2564   withval=$with_fontconfig;
2565 fi
2566
2567
2568 # Check whether --with-freetype was given.
2569 if test "${with_freetype+set}" = set; then :
2570   withval=$with_freetype;
2571 fi
2572
2573
2574 # Check whether --with-gettext was given.
2575 if test "${with_gettext+set}" = set; then :
2576   withval=$with_gettext;
2577 fi
2578
2579
2580 # Check whether --with-gettextpo was given.
2581 if test "${with_gettextpo+set}" = set; then :
2582   withval=$with_gettextpo; if test "x$withval" = "xno"; then ac_cv_header_gettext_po_h=no; fi
2583 fi
2584
2585
2586 # Check whether --with-gphoto was given.
2587 if test "${with_gphoto+set}" = set; then :
2588   withval=$with_gphoto;
2589 fi
2590
2591
2592 # Check whether --with-glu was given.
2593 if test "${with_glu+set}" = set; then :
2594   withval=$with_glu; if test "x$withval" = "xno"; then ac_cv_header_GL_glu_h=no; fi
2595 fi
2596
2597
2598 # Check whether --with-gnutls was given.
2599 if test "${with_gnutls+set}" = set; then :
2600   withval=$with_gnutls;
2601 fi
2602
2603
2604 # Check whether --with-gsm was given.
2605 if test "${with_gsm+set}" = set; then :
2606   withval=$with_gsm; if test "x$withval" = "xno"; then ac_cv_header_gsm_h=no; ac_cv_header_gsm_gsm_h=no; fi
2607 fi
2608
2609
2610 # Check whether --with-gstreamer was given.
2611 if test "${with_gstreamer+set}" = set; then :
2612   withval=$with_gstreamer;
2613 fi
2614
2615
2616 # Check whether --with-hal was given.
2617 if test "${with_hal+set}" = set; then :
2618   withval=$with_hal;
2619 fi
2620
2621
2622 # Check whether --with-jpeg was given.
2623 if test "${with_jpeg+set}" = set; then :
2624   withval=$with_jpeg; if test "x$withval" = "xno"; then ac_cv_header_jpeglib_h=no; fi
2625 fi
2626
2627
2628 # Check whether --with-ldap was given.
2629 if test "${with_ldap+set}" = set; then :
2630   withval=$with_ldap; if test "x$withval" = "xno"; then ac_cv_header_ldap_h=no; ac_cv_header_lber_h=no; fi
2631 fi
2632
2633
2634 # Check whether --with-mpg123 was given.
2635 if test "${with_mpg123+set}" = set; then :
2636   withval=$with_mpg123; if test "x$withval" = "xno"; then ac_cv_header_mpg123_h=no; fi
2637 fi
2638
2639
2640 # Check whether --with-openal was given.
2641 if test "${with_openal+set}" = set; then :
2642   withval=$with_openal; if test "x$withval" = "xno"; then ac_cv_header_AL_al_h=no; ac_cv_header_OpenAL_al_h=no; fi
2643 fi
2644
2645
2646 # Check whether --with-opencl was given.
2647 if test "${with_opencl+set}" = set; then :
2648   withval=$with_opencl; if test "x$withval" = "xno"; then ac_cv_header_CL_cl_h=no; ac_cv_header_OpenCL_opencl_h=no; fi
2649 fi
2650
2651
2652 # Check whether --with-opengl was given.
2653 if test "${with_opengl+set}" = set; then :
2654   withval=$with_opengl;
2655 fi
2656
2657
2658 # Check whether --with-openssl was given.
2659 if test "${with_openssl+set}" = set; then :
2660   withval=$with_openssl; if test "x$withval" = "xno"; then ac_cv_header_openssl_err_h=no; ac_cv_header_openssl_ssl_h=no; fi
2661 fi
2662
2663
2664 # Check whether --with-oss was given.
2665 if test "${with_oss+set}" = set; then :
2666   withval=$with_oss;
2667 fi
2668
2669
2670 # Check whether --with-png was given.
2671 if test "${with_png+set}" = set; then :
2672   withval=$with_png; if test "x$withval" = "xno"; then ac_cv_header_png_h=no; fi
2673 fi
2674
2675
2676 # Check whether --with-pthread was given.
2677 if test "${with_pthread+set}" = set; then :
2678   withval=$with_pthread; if test "x$withval" = "xno"; then ac_cv_header_pthread_h=no; fi
2679 fi
2680
2681
2682 # Check whether --with-sane was given.
2683 if test "${with_sane+set}" = set; then :
2684   withval=$with_sane;
2685 fi
2686
2687
2688 # Check whether --with-tiff was given.
2689 if test "${with_tiff+set}" = set; then :
2690   withval=$with_tiff; if test "x$withval" = "xno"; then ac_cv_header_tiffio_h=no; fi
2691 fi
2692
2693
2694 # Check whether --with-v4l was given.
2695 if test "${with_v4l+set}" = set; then :
2696   withval=$with_v4l;
2697 fi
2698
2699
2700 # Check whether --with-xcomposite was given.
2701 if test "${with_xcomposite+set}" = set; then :
2702   withval=$with_xcomposite; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xcomposite_h=no; fi
2703 fi
2704
2705
2706 # Check whether --with-xcursor was given.
2707 if test "${with_xcursor+set}" = set; then :
2708   withval=$with_xcursor; if test "x$withval" = "xno"; then ac_cv_header_X11_Xcursor_Xcursor_h=no; fi
2709 fi
2710
2711
2712 # Check whether --with-xinerama was given.
2713 if test "${with_xinerama+set}" = set; then :
2714   withval=$with_xinerama; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xinerama_h=no; fi
2715 fi
2716
2717
2718 # Check whether --with-xinput was given.
2719 if test "${with_xinput+set}" = set; then :
2720   withval=$with_xinput; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput_h=no; fi
2721 fi
2722
2723
2724 # Check whether --with-xinput2 was given.
2725 if test "${with_xinput2+set}" = set; then :
2726   withval=$with_xinput2; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput2_h=no; fi
2727 fi
2728
2729
2730 # Check whether --with-xml was given.
2731 if test "${with_xml+set}" = set; then :
2732   withval=$with_xml;
2733 fi
2734
2735
2736 # Check whether --with-xrandr was given.
2737 if test "${with_xrandr+set}" = set; then :
2738   withval=$with_xrandr; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrandr_h=no; fi
2739 fi
2740
2741
2742 # Check whether --with-xrender was given.
2743 if test "${with_xrender+set}" = set; then :
2744   withval=$with_xrender; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrender_h=no; fi
2745 fi
2746
2747
2748 # Check whether --with-xshape was given.
2749 if test "${with_xshape+set}" = set; then :
2750   withval=$with_xshape; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_shape_h=no; fi
2751 fi
2752
2753
2754 # Check whether --with-xslt was given.
2755 if test "${with_xslt+set}" = set; then :
2756   withval=$with_xslt;
2757 fi
2758
2759
2760 # Check whether --with-xxf86vm was given.
2761 if test "${with_xxf86vm+set}" = set; then :
2762   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
2763 fi
2764
2765
2766 # Check whether --with-zlib was given.
2767 if test "${with_zlib+set}" = set; then :
2768   withval=$with_zlib; if test "x$withval" = "xno"; then ac_cv_header_zlib_h=no; fi
2769 fi
2770
2771
2772
2773 # Check whether --with-wine-tools was given.
2774 if test "${with_wine_tools+set}" = set; then :
2775   withval=$with_wine_tools;
2776 fi
2777
2778
2779 # Check whether --with-wine64 was given.
2780 if test "${with_wine64+set}" = set; then :
2781   withval=$with_wine64;
2782 fi
2783
2784
2785 # Make sure we can run config.sub.
2786 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2787   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2788
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2790 $as_echo_n "checking build system type... " >&6; }
2791 if ${ac_cv_build+:} false; then :
2792   $as_echo_n "(cached) " >&6
2793 else
2794   ac_build_alias=$build_alias
2795 test "x$ac_build_alias" = x &&
2796   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2797 test "x$ac_build_alias" = x &&
2798   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2799 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2800   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2801
2802 fi
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2804 $as_echo "$ac_cv_build" >&6; }
2805 case $ac_cv_build in
2806 *-*-*) ;;
2807 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2808 esac
2809 build=$ac_cv_build
2810 ac_save_IFS=$IFS; IFS='-'
2811 set x $ac_cv_build
2812 shift
2813 build_cpu=$1
2814 build_vendor=$2
2815 shift; shift
2816 # Remember, the first character of IFS is used to create $*,
2817 # except with old shells:
2818 build_os=$*
2819 IFS=$ac_save_IFS
2820 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2821
2822
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2824 $as_echo_n "checking host system type... " >&6; }
2825 if ${ac_cv_host+:} false; then :
2826   $as_echo_n "(cached) " >&6
2827 else
2828   if test "x$host_alias" = x; then
2829   ac_cv_host=$ac_cv_build
2830 else
2831   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2832     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2833 fi
2834
2835 fi
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2837 $as_echo "$ac_cv_host" >&6; }
2838 case $ac_cv_host in
2839 *-*-*) ;;
2840 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2841 esac
2842 host=$ac_cv_host
2843 ac_save_IFS=$IFS; IFS='-'
2844 set x $ac_cv_host
2845 shift
2846 host_cpu=$1
2847 host_vendor=$2
2848 shift; shift
2849 # Remember, the first character of IFS is used to create $*,
2850 # except with old shells:
2851 host_os=$*
2852 IFS=$ac_save_IFS
2853 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2854
2855
2856
2857 case "$srcdir" in
2858  .) ;;
2859  *) if test -f "$srcdir/Makefile" -o -f "$srcdir/include/config.h"; then
2860       as_fn_error $? "you are building out of the source tree, but the source tree contains object files.
2861 You need to run 'make distclean' in the source tree first." "$LINENO" 5
2862     fi ;;
2863 esac
2864
2865
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2867 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2868 set x ${MAKE-make}
2869 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2870 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2871   $as_echo_n "(cached) " >&6
2872 else
2873   cat >conftest.make <<\_ACEOF
2874 SHELL = /bin/sh
2875 all:
2876         @echo '@@@%%%=$(MAKE)=@@@%%%'
2877 _ACEOF
2878 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2879 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2880   *@@@%%%=?*=@@@%%%*)
2881     eval ac_cv_prog_make_${ac_make}_set=yes;;
2882   *)
2883     eval ac_cv_prog_make_${ac_make}_set=no;;
2884 esac
2885 rm -f conftest.make
2886 fi
2887 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2888   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2889 $as_echo "yes" >&6; }
2890   SET_MAKE=
2891 else
2892   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2893 $as_echo "no" >&6; }
2894   SET_MAKE="MAKE=${MAKE-make}"
2895 fi
2896
2897 ac_ext=c
2898 ac_cpp='$CPP $CPPFLAGS'
2899 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2900 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2901 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2902 if test -n "$ac_tool_prefix"; then
2903   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2904 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2906 $as_echo_n "checking for $ac_word... " >&6; }
2907 if ${ac_cv_prog_CC+:} false; then :
2908   $as_echo_n "(cached) " >&6
2909 else
2910   if test -n "$CC"; then
2911   ac_cv_prog_CC="$CC" # Let the user override the test.
2912 else
2913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2914 for as_dir in $PATH
2915 do
2916   IFS=$as_save_IFS
2917   test -z "$as_dir" && as_dir=.
2918     for ac_exec_ext in '' $ac_executable_extensions; do
2919   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2920     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2921     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2922     break 2
2923   fi
2924 done
2925   done
2926 IFS=$as_save_IFS
2927
2928 fi
2929 fi
2930 CC=$ac_cv_prog_CC
2931 if test -n "$CC"; then
2932   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2933 $as_echo "$CC" >&6; }
2934 else
2935   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2936 $as_echo "no" >&6; }
2937 fi
2938
2939
2940 fi
2941 if test -z "$ac_cv_prog_CC"; then
2942   ac_ct_CC=$CC
2943   # Extract the first word of "gcc", so it can be a program name with args.
2944 set dummy gcc; ac_word=$2
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2946 $as_echo_n "checking for $ac_word... " >&6; }
2947 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2948   $as_echo_n "(cached) " >&6
2949 else
2950   if test -n "$ac_ct_CC"; then
2951   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2952 else
2953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2954 for as_dir in $PATH
2955 do
2956   IFS=$as_save_IFS
2957   test -z "$as_dir" && as_dir=.
2958     for ac_exec_ext in '' $ac_executable_extensions; do
2959   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2960     ac_cv_prog_ac_ct_CC="gcc"
2961     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2962     break 2
2963   fi
2964 done
2965   done
2966 IFS=$as_save_IFS
2967
2968 fi
2969 fi
2970 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2971 if test -n "$ac_ct_CC"; then
2972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2973 $as_echo "$ac_ct_CC" >&6; }
2974 else
2975   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2976 $as_echo "no" >&6; }
2977 fi
2978
2979   if test "x$ac_ct_CC" = x; then
2980     CC=""
2981   else
2982     case $cross_compiling:$ac_tool_warned in
2983 yes:)
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2985 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2986 ac_tool_warned=yes ;;
2987 esac
2988     CC=$ac_ct_CC
2989   fi
2990 else
2991   CC="$ac_cv_prog_CC"
2992 fi
2993
2994 if test -z "$CC"; then
2995           if test -n "$ac_tool_prefix"; then
2996     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2997 set dummy ${ac_tool_prefix}cc; ac_word=$2
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2999 $as_echo_n "checking for $ac_word... " >&6; }
3000 if ${ac_cv_prog_CC+:} false; then :
3001   $as_echo_n "(cached) " >&6
3002 else
3003   if test -n "$CC"; then
3004   ac_cv_prog_CC="$CC" # Let the user override the test.
3005 else
3006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3007 for as_dir in $PATH
3008 do
3009   IFS=$as_save_IFS
3010   test -z "$as_dir" && as_dir=.
3011     for ac_exec_ext in '' $ac_executable_extensions; do
3012   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3013     ac_cv_prog_CC="${ac_tool_prefix}cc"
3014     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3015     break 2
3016   fi
3017 done
3018   done
3019 IFS=$as_save_IFS
3020
3021 fi
3022 fi
3023 CC=$ac_cv_prog_CC
3024 if test -n "$CC"; then
3025   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3026 $as_echo "$CC" >&6; }
3027 else
3028   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3029 $as_echo "no" >&6; }
3030 fi
3031
3032
3033   fi
3034 fi
3035 if test -z "$CC"; then
3036   # Extract the first word of "cc", so it can be a program name with args.
3037 set dummy cc; ac_word=$2
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3039 $as_echo_n "checking for $ac_word... " >&6; }
3040 if ${ac_cv_prog_CC+:} false; then :
3041   $as_echo_n "(cached) " >&6
3042 else
3043   if test -n "$CC"; then
3044   ac_cv_prog_CC="$CC" # Let the user override the test.
3045 else
3046   ac_prog_rejected=no
3047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3048 for as_dir in $PATH
3049 do
3050   IFS=$as_save_IFS
3051   test -z "$as_dir" && as_dir=.
3052     for ac_exec_ext in '' $ac_executable_extensions; do
3053   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3054     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3055        ac_prog_rejected=yes
3056        continue
3057      fi
3058     ac_cv_prog_CC="cc"
3059     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3060     break 2
3061   fi
3062 done
3063   done
3064 IFS=$as_save_IFS
3065
3066 if test $ac_prog_rejected = yes; then
3067   # We found a bogon in the path, so make sure we never use it.
3068   set dummy $ac_cv_prog_CC
3069   shift
3070   if test $# != 0; then
3071     # We chose a different compiler from the bogus one.
3072     # However, it has the same basename, so the bogon will be chosen
3073     # first if we set CC to just the basename; use the full file name.
3074     shift
3075     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3076   fi
3077 fi
3078 fi
3079 fi
3080 CC=$ac_cv_prog_CC
3081 if test -n "$CC"; then
3082   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3083 $as_echo "$CC" >&6; }
3084 else
3085   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3086 $as_echo "no" >&6; }
3087 fi
3088
3089
3090 fi
3091 if test -z "$CC"; then
3092   if test -n "$ac_tool_prefix"; then
3093   for ac_prog in cl.exe
3094   do
3095     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3096 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3098 $as_echo_n "checking for $ac_word... " >&6; }
3099 if ${ac_cv_prog_CC+:} false; then :
3100   $as_echo_n "(cached) " >&6
3101 else
3102   if test -n "$CC"; then
3103   ac_cv_prog_CC="$CC" # Let the user override the test.
3104 else
3105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3106 for as_dir in $PATH
3107 do
3108   IFS=$as_save_IFS
3109   test -z "$as_dir" && as_dir=.
3110     for ac_exec_ext in '' $ac_executable_extensions; do
3111   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3112     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3113     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3114     break 2
3115   fi
3116 done
3117   done
3118 IFS=$as_save_IFS
3119
3120 fi
3121 fi
3122 CC=$ac_cv_prog_CC
3123 if test -n "$CC"; then
3124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3125 $as_echo "$CC" >&6; }
3126 else
3127   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3128 $as_echo "no" >&6; }
3129 fi
3130
3131
3132     test -n "$CC" && break
3133   done
3134 fi
3135 if test -z "$CC"; then
3136   ac_ct_CC=$CC
3137   for ac_prog in cl.exe
3138 do
3139   # Extract the first word of "$ac_prog", so it can be a program name with args.
3140 set dummy $ac_prog; ac_word=$2
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3142 $as_echo_n "checking for $ac_word... " >&6; }
3143 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3144   $as_echo_n "(cached) " >&6
3145 else
3146   if test -n "$ac_ct_CC"; then
3147   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3148 else
3149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3150 for as_dir in $PATH
3151 do
3152   IFS=$as_save_IFS
3153   test -z "$as_dir" && as_dir=.
3154     for ac_exec_ext in '' $ac_executable_extensions; do
3155   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3156     ac_cv_prog_ac_ct_CC="$ac_prog"
3157     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3158     break 2
3159   fi
3160 done
3161   done
3162 IFS=$as_save_IFS
3163
3164 fi
3165 fi
3166 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3167 if test -n "$ac_ct_CC"; then
3168   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3169 $as_echo "$ac_ct_CC" >&6; }
3170 else
3171   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3172 $as_echo "no" >&6; }
3173 fi
3174
3175
3176   test -n "$ac_ct_CC" && break
3177 done
3178
3179   if test "x$ac_ct_CC" = x; then
3180     CC=""
3181   else
3182     case $cross_compiling:$ac_tool_warned in
3183 yes:)
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3185 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3186 ac_tool_warned=yes ;;
3187 esac
3188     CC=$ac_ct_CC
3189   fi
3190 fi
3191
3192 fi
3193
3194
3195 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3196 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3197 as_fn_error $? "no acceptable C compiler found in \$PATH
3198 See \`config.log' for more details" "$LINENO" 5; }
3199
3200 # Provide some information about the compiler.
3201 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3202 set X $ac_compile
3203 ac_compiler=$2
3204 for ac_option in --version -v -V -qversion; do
3205   { { ac_try="$ac_compiler $ac_option >&5"
3206 case "(($ac_try" in
3207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3208   *) ac_try_echo=$ac_try;;
3209 esac
3210 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3211 $as_echo "$ac_try_echo"; } >&5
3212   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3213   ac_status=$?
3214   if test -s conftest.err; then
3215     sed '10a\
3216 ... rest of stderr output deleted ...
3217          10q' conftest.err >conftest.er1
3218     cat conftest.er1 >&5
3219   fi
3220   rm -f conftest.er1 conftest.err
3221   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3222   test $ac_status = 0; }
3223 done
3224
3225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3226 /* end confdefs.h.  */
3227
3228 int
3229 main ()
3230 {
3231
3232   ;
3233   return 0;
3234 }
3235 _ACEOF
3236 ac_clean_files_save=$ac_clean_files
3237 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3238 # Try to create an executable without -o first, disregard a.out.
3239 # It will help us diagnose broken compilers, and finding out an intuition
3240 # of exeext.
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3242 $as_echo_n "checking whether the C compiler works... " >&6; }
3243 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3244
3245 # The possible output files:
3246 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3247
3248 ac_rmfiles=
3249 for ac_file in $ac_files
3250 do
3251   case $ac_file in
3252     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3253     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3254   esac
3255 done
3256 rm -f $ac_rmfiles
3257
3258 if { { ac_try="$ac_link_default"
3259 case "(($ac_try" in
3260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3261   *) ac_try_echo=$ac_try;;
3262 esac
3263 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3264 $as_echo "$ac_try_echo"; } >&5
3265   (eval "$ac_link_default") 2>&5
3266   ac_status=$?
3267   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3268   test $ac_status = 0; }; then :
3269   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3270 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3271 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3272 # so that the user can short-circuit this test for compilers unknown to
3273 # Autoconf.
3274 for ac_file in $ac_files ''
3275 do
3276   test -f "$ac_file" || continue
3277   case $ac_file in
3278     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3279         ;;
3280     [ab].out )
3281         # We found the default executable, but exeext='' is most
3282         # certainly right.
3283         break;;
3284     *.* )
3285         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3286         then :; else
3287            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3288         fi
3289         # We set ac_cv_exeext here because the later test for it is not
3290         # safe: cross compilers may not add the suffix if given an `-o'
3291         # argument, so we may need to know it at that point already.
3292         # Even if this section looks crufty: it has the advantage of
3293         # actually working.
3294         break;;
3295     * )
3296         break;;
3297   esac
3298 done
3299 test "$ac_cv_exeext" = no && ac_cv_exeext=
3300
3301 else
3302   ac_file=''
3303 fi
3304 if test -z "$ac_file"; then :
3305   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3306 $as_echo "no" >&6; }
3307 $as_echo "$as_me: failed program was:" >&5
3308 sed 's/^/| /' conftest.$ac_ext >&5
3309
3310 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3311 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3312 as_fn_error 77 "C compiler cannot create executables
3313 See \`config.log' for more details" "$LINENO" 5; }
3314 else
3315   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3316 $as_echo "yes" >&6; }
3317 fi
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3319 $as_echo_n "checking for C compiler default output file name... " >&6; }
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3321 $as_echo "$ac_file" >&6; }
3322 ac_exeext=$ac_cv_exeext
3323
3324 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3325 ac_clean_files=$ac_clean_files_save
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3327 $as_echo_n "checking for suffix of executables... " >&6; }
3328 if { { ac_try="$ac_link"
3329 case "(($ac_try" in
3330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3331   *) ac_try_echo=$ac_try;;
3332 esac
3333 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3334 $as_echo "$ac_try_echo"; } >&5
3335   (eval "$ac_link") 2>&5
3336   ac_status=$?
3337   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3338   test $ac_status = 0; }; then :
3339   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3340 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3341 # work properly (i.e., refer to `conftest.exe'), while it won't with
3342 # `rm'.
3343 for ac_file in conftest.exe conftest conftest.*; do
3344   test -f "$ac_file" || continue
3345   case $ac_file in
3346     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3347     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3348           break;;
3349     * ) break;;
3350   esac
3351 done
3352 else
3353   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3354 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3355 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3356 See \`config.log' for more details" "$LINENO" 5; }
3357 fi
3358 rm -f conftest conftest$ac_cv_exeext
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3360 $as_echo "$ac_cv_exeext" >&6; }
3361
3362 rm -f conftest.$ac_ext
3363 EXEEXT=$ac_cv_exeext
3364 ac_exeext=$EXEEXT
3365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3366 /* end confdefs.h.  */
3367 #include <stdio.h>
3368 int
3369 main ()
3370 {
3371 FILE *f = fopen ("conftest.out", "w");
3372  return ferror (f) || fclose (f) != 0;
3373
3374   ;
3375   return 0;
3376 }
3377 _ACEOF
3378 ac_clean_files="$ac_clean_files conftest.out"
3379 # Check that the compiler produces executables we can run.  If not, either
3380 # the compiler is broken, or we cross compile.
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3382 $as_echo_n "checking whether we are cross compiling... " >&6; }
3383 if test "$cross_compiling" != yes; then
3384   { { ac_try="$ac_link"
3385 case "(($ac_try" in
3386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3387   *) ac_try_echo=$ac_try;;
3388 esac
3389 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3390 $as_echo "$ac_try_echo"; } >&5
3391   (eval "$ac_link") 2>&5
3392   ac_status=$?
3393   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3394   test $ac_status = 0; }
3395   if { ac_try='./conftest$ac_cv_exeext'
3396   { { case "(($ac_try" in
3397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3398   *) ac_try_echo=$ac_try;;
3399 esac
3400 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3401 $as_echo "$ac_try_echo"; } >&5
3402   (eval "$ac_try") 2>&5
3403   ac_status=$?
3404   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3405   test $ac_status = 0; }; }; then
3406     cross_compiling=no
3407   else
3408     if test "$cross_compiling" = maybe; then
3409         cross_compiling=yes
3410     else
3411         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3412 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3413 as_fn_error $? "cannot run C compiled programs.
3414 If you meant to cross compile, use \`--host'.
3415 See \`config.log' for more details" "$LINENO" 5; }
3416     fi
3417   fi
3418 fi
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3420 $as_echo "$cross_compiling" >&6; }
3421
3422 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3423 ac_clean_files=$ac_clean_files_save
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3425 $as_echo_n "checking for suffix of object files... " >&6; }
3426 if ${ac_cv_objext+:} false; then :
3427   $as_echo_n "(cached) " >&6
3428 else
3429   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3430 /* end confdefs.h.  */
3431
3432 int
3433 main ()
3434 {
3435
3436   ;
3437   return 0;
3438 }
3439 _ACEOF
3440 rm -f conftest.o conftest.obj
3441 if { { ac_try="$ac_compile"
3442 case "(($ac_try" in
3443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3444   *) ac_try_echo=$ac_try;;
3445 esac
3446 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3447 $as_echo "$ac_try_echo"; } >&5
3448   (eval "$ac_compile") 2>&5
3449   ac_status=$?
3450   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3451   test $ac_status = 0; }; then :
3452   for ac_file in conftest.o conftest.obj conftest.*; do
3453   test -f "$ac_file" || continue;
3454   case $ac_file in
3455     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3456     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3457        break;;
3458   esac
3459 done
3460 else
3461   $as_echo "$as_me: failed program was:" >&5
3462 sed 's/^/| /' conftest.$ac_ext >&5
3463
3464 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3465 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3466 as_fn_error $? "cannot compute suffix of object files: cannot compile
3467 See \`config.log' for more details" "$LINENO" 5; }
3468 fi
3469 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3470 fi
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3472 $as_echo "$ac_cv_objext" >&6; }
3473 OBJEXT=$ac_cv_objext
3474 ac_objext=$OBJEXT
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3476 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3477 if ${ac_cv_c_compiler_gnu+:} false; then :
3478   $as_echo_n "(cached) " >&6
3479 else
3480   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3481 /* end confdefs.h.  */
3482
3483 int
3484 main ()
3485 {
3486 #ifndef __GNUC__
3487        choke me
3488 #endif
3489
3490   ;
3491   return 0;
3492 }
3493 _ACEOF
3494 if ac_fn_c_try_compile "$LINENO"; then :
3495   ac_compiler_gnu=yes
3496 else
3497   ac_compiler_gnu=no
3498 fi
3499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3500 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3501
3502 fi
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3504 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3505 if test $ac_compiler_gnu = yes; then
3506   GCC=yes
3507 else
3508   GCC=
3509 fi
3510 ac_test_CFLAGS=${CFLAGS+set}
3511 ac_save_CFLAGS=$CFLAGS
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3513 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3514 if ${ac_cv_prog_cc_g+:} false; then :
3515   $as_echo_n "(cached) " >&6
3516 else
3517   ac_save_c_werror_flag=$ac_c_werror_flag
3518    ac_c_werror_flag=yes
3519    ac_cv_prog_cc_g=no
3520    CFLAGS="-g"
3521    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3522 /* end confdefs.h.  */
3523
3524 int
3525 main ()
3526 {
3527
3528   ;
3529   return 0;
3530 }
3531 _ACEOF
3532 if ac_fn_c_try_compile "$LINENO"; then :
3533   ac_cv_prog_cc_g=yes
3534 else
3535   CFLAGS=""
3536       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3537 /* end confdefs.h.  */
3538
3539 int
3540 main ()
3541 {
3542
3543   ;
3544   return 0;
3545 }
3546 _ACEOF
3547 if ac_fn_c_try_compile "$LINENO"; then :
3548
3549 else
3550   ac_c_werror_flag=$ac_save_c_werror_flag
3551          CFLAGS="-g"
3552          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3553 /* end confdefs.h.  */
3554
3555 int
3556 main ()
3557 {
3558
3559   ;
3560   return 0;
3561 }
3562 _ACEOF
3563 if ac_fn_c_try_compile "$LINENO"; then :
3564   ac_cv_prog_cc_g=yes
3565 fi
3566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3567 fi
3568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3569 fi
3570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3571    ac_c_werror_flag=$ac_save_c_werror_flag
3572 fi
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3574 $as_echo "$ac_cv_prog_cc_g" >&6; }
3575 if test "$ac_test_CFLAGS" = set; then
3576   CFLAGS=$ac_save_CFLAGS
3577 elif test $ac_cv_prog_cc_g = yes; then
3578   if test "$GCC" = yes; then
3579     CFLAGS="-g -O2"
3580   else
3581     CFLAGS="-g"
3582   fi
3583 else
3584   if test "$GCC" = yes; then
3585     CFLAGS="-O2"
3586   else
3587     CFLAGS=
3588   fi
3589 fi
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3591 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3592 if ${ac_cv_prog_cc_c89+:} false; then :
3593   $as_echo_n "(cached) " >&6
3594 else
3595   ac_cv_prog_cc_c89=no
3596 ac_save_CC=$CC
3597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3598 /* end confdefs.h.  */
3599 #include <stdarg.h>
3600 #include <stdio.h>
3601 #include <sys/types.h>
3602 #include <sys/stat.h>
3603 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3604 struct buf { int x; };
3605 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3606 static char *e (p, i)
3607      char **p;
3608      int i;
3609 {
3610   return p[i];
3611 }
3612 static char *f (char * (*g) (char **, int), char **p, ...)
3613 {
3614   char *s;
3615   va_list v;
3616   va_start (v,p);
3617   s = g (p, va_arg (v,int));
3618   va_end (v);
3619   return s;
3620 }
3621
3622 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3623    function prototypes and stuff, but not '\xHH' hex character constants.
3624    These don't provoke an error unfortunately, instead are silently treated
3625    as 'x'.  The following induces an error, until -std is added to get
3626    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3627    array size at least.  It's necessary to write '\x00'==0 to get something
3628    that's true only with -std.  */
3629 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3630
3631 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3632    inside strings and character constants.  */
3633 #define FOO(x) 'x'
3634 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3635
3636 int test (int i, double x);
3637 struct s1 {int (*f) (int a);};
3638 struct s2 {int (*f) (double a);};
3639 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3640 int argc;
3641 char **argv;
3642 int
3643 main ()
3644 {
3645 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3646   ;
3647   return 0;
3648 }
3649 _ACEOF
3650 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3651         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3652 do
3653   CC="$ac_save_CC $ac_arg"
3654   if ac_fn_c_try_compile "$LINENO"; then :
3655   ac_cv_prog_cc_c89=$ac_arg
3656 fi
3657 rm -f core conftest.err conftest.$ac_objext
3658   test "x$ac_cv_prog_cc_c89" != "xno" && break
3659 done
3660 rm -f conftest.$ac_ext
3661 CC=$ac_save_CC
3662
3663 fi
3664 # AC_CACHE_VAL
3665 case "x$ac_cv_prog_cc_c89" in
3666   x)
3667     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3668 $as_echo "none needed" >&6; } ;;
3669   xno)
3670     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3671 $as_echo "unsupported" >&6; } ;;
3672   *)
3673     CC="$CC $ac_cv_prog_cc_c89"
3674     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3675 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3676 esac
3677 if test "x$ac_cv_prog_cc_c89" != xno; then :
3678
3679 fi
3680
3681 ac_ext=c
3682 ac_cpp='$CPP $CPPFLAGS'
3683 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3684 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3685 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3686
3687 ac_ext=cpp
3688 ac_cpp='$CXXCPP $CPPFLAGS'
3689 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3690 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3691 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3692 if test -z "$CXX"; then
3693   if test -n "$CCC"; then
3694     CXX=$CCC
3695   else
3696     if test -n "$ac_tool_prefix"; then
3697   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3698   do
3699     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3700 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3702 $as_echo_n "checking for $ac_word... " >&6; }
3703 if ${ac_cv_prog_CXX+:} false; then :
3704   $as_echo_n "(cached) " >&6
3705 else
3706   if test -n "$CXX"; then
3707   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3708 else
3709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3710 for as_dir in $PATH
3711 do
3712   IFS=$as_save_IFS
3713   test -z "$as_dir" && as_dir=.
3714     for ac_exec_ext in '' $ac_executable_extensions; do
3715   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3716     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3717     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3718     break 2
3719   fi
3720 done
3721   done
3722 IFS=$as_save_IFS
3723
3724 fi
3725 fi
3726 CXX=$ac_cv_prog_CXX
3727 if test -n "$CXX"; then
3728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3729 $as_echo "$CXX" >&6; }
3730 else
3731   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3732 $as_echo "no" >&6; }
3733 fi
3734
3735
3736     test -n "$CXX" && break
3737   done
3738 fi
3739 if test -z "$CXX"; then
3740   ac_ct_CXX=$CXX
3741   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3742 do
3743   # Extract the first word of "$ac_prog", so it can be a program name with args.
3744 set dummy $ac_prog; ac_word=$2
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3746 $as_echo_n "checking for $ac_word... " >&6; }
3747 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3748   $as_echo_n "(cached) " >&6
3749 else
3750   if test -n "$ac_ct_CXX"; then
3751   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3752 else
3753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3754 for as_dir in $PATH
3755 do
3756   IFS=$as_save_IFS
3757   test -z "$as_dir" && as_dir=.
3758     for ac_exec_ext in '' $ac_executable_extensions; do
3759   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3760     ac_cv_prog_ac_ct_CXX="$ac_prog"
3761     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3762     break 2
3763   fi
3764 done
3765   done
3766 IFS=$as_save_IFS
3767
3768 fi
3769 fi
3770 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3771 if test -n "$ac_ct_CXX"; then
3772   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3773 $as_echo "$ac_ct_CXX" >&6; }
3774 else
3775   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3776 $as_echo "no" >&6; }
3777 fi
3778
3779
3780   test -n "$ac_ct_CXX" && break
3781 done
3782
3783   if test "x$ac_ct_CXX" = x; then
3784     CXX="g++"
3785   else
3786     case $cross_compiling:$ac_tool_warned in
3787 yes:)
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3789 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3790 ac_tool_warned=yes ;;
3791 esac
3792     CXX=$ac_ct_CXX
3793   fi
3794 fi
3795
3796   fi
3797 fi
3798 # Provide some information about the compiler.
3799 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3800 set X $ac_compile
3801 ac_compiler=$2
3802 for ac_option in --version -v -V -qversion; do
3803   { { ac_try="$ac_compiler $ac_option >&5"
3804 case "(($ac_try" in
3805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3806   *) ac_try_echo=$ac_try;;
3807 esac
3808 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3809 $as_echo "$ac_try_echo"; } >&5
3810   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3811   ac_status=$?
3812   if test -s conftest.err; then
3813     sed '10a\
3814 ... rest of stderr output deleted ...
3815          10q' conftest.err >conftest.er1
3816     cat conftest.er1 >&5
3817   fi
3818   rm -f conftest.er1 conftest.err
3819   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3820   test $ac_status = 0; }
3821 done
3822
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3824 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3825 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3826   $as_echo_n "(cached) " >&6
3827 else
3828   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3829 /* end confdefs.h.  */
3830
3831 int
3832 main ()
3833 {
3834 #ifndef __GNUC__
3835        choke me
3836 #endif
3837
3838   ;
3839   return 0;
3840 }
3841 _ACEOF
3842 if ac_fn_cxx_try_compile "$LINENO"; then :
3843   ac_compiler_gnu=yes
3844 else
3845   ac_compiler_gnu=no
3846 fi
3847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3848 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3849
3850 fi
3851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3852 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3853 if test $ac_compiler_gnu = yes; then
3854   GXX=yes
3855 else
3856   GXX=
3857 fi
3858 ac_test_CXXFLAGS=${CXXFLAGS+set}
3859 ac_save_CXXFLAGS=$CXXFLAGS
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3861 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3862 if ${ac_cv_prog_cxx_g+:} false; then :
3863   $as_echo_n "(cached) " >&6
3864 else
3865   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3866    ac_cxx_werror_flag=yes
3867    ac_cv_prog_cxx_g=no
3868    CXXFLAGS="-g"
3869    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3870 /* end confdefs.h.  */
3871
3872 int
3873 main ()
3874 {
3875
3876   ;
3877   return 0;
3878 }
3879 _ACEOF
3880 if ac_fn_cxx_try_compile "$LINENO"; then :
3881   ac_cv_prog_cxx_g=yes
3882 else
3883   CXXFLAGS=""
3884       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3885 /* end confdefs.h.  */
3886
3887 int
3888 main ()
3889 {
3890
3891   ;
3892   return 0;
3893 }
3894 _ACEOF
3895 if ac_fn_cxx_try_compile "$LINENO"; then :
3896
3897 else
3898   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3899          CXXFLAGS="-g"
3900          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3901 /* end confdefs.h.  */
3902
3903 int
3904 main ()
3905 {
3906
3907   ;
3908   return 0;
3909 }
3910 _ACEOF
3911 if ac_fn_cxx_try_compile "$LINENO"; then :
3912   ac_cv_prog_cxx_g=yes
3913 fi
3914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3915 fi
3916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3917 fi
3918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3919    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3920 fi
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3922 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3923 if test "$ac_test_CXXFLAGS" = set; then
3924   CXXFLAGS=$ac_save_CXXFLAGS
3925 elif test $ac_cv_prog_cxx_g = yes; then
3926   if test "$GXX" = yes; then
3927     CXXFLAGS="-g -O2"
3928   else
3929     CXXFLAGS="-g"
3930   fi
3931 else
3932   if test "$GXX" = yes; then
3933     CXXFLAGS="-O2"
3934   else
3935     CXXFLAGS=
3936   fi
3937 fi
3938 ac_ext=c
3939 ac_cpp='$CPP $CPPFLAGS'
3940 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3941 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3942 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3943
3944 if test -n "$ac_tool_prefix"; then
3945   # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
3946 set dummy ${ac_tool_prefix}cpp; ac_word=$2
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3948 $as_echo_n "checking for $ac_word... " >&6; }
3949 if ${ac_cv_prog_CPPBIN+:} false; then :
3950   $as_echo_n "(cached) " >&6
3951 else
3952   if test -n "$CPPBIN"; then
3953   ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test.
3954 else
3955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3956 for as_dir in $PATH
3957 do
3958   IFS=$as_save_IFS
3959   test -z "$as_dir" && as_dir=.
3960     for ac_exec_ext in '' $ac_executable_extensions; do
3961   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3962     ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp"
3963     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3964     break 2
3965   fi
3966 done
3967   done
3968 IFS=$as_save_IFS
3969
3970 fi
3971 fi
3972 CPPBIN=$ac_cv_prog_CPPBIN
3973 if test -n "$CPPBIN"; then
3974   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPPBIN" >&5
3975 $as_echo "$CPPBIN" >&6; }
3976 else
3977   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3978 $as_echo "no" >&6; }
3979 fi
3980
3981
3982 fi
3983 if test -z "$ac_cv_prog_CPPBIN"; then
3984   ac_ct_CPPBIN=$CPPBIN
3985   # Extract the first word of "cpp", so it can be a program name with args.
3986 set dummy cpp; ac_word=$2
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3988 $as_echo_n "checking for $ac_word... " >&6; }
3989 if ${ac_cv_prog_ac_ct_CPPBIN+:} false; then :
3990   $as_echo_n "(cached) " >&6
3991 else
3992   if test -n "$ac_ct_CPPBIN"; then
3993   ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test.
3994 else
3995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3996 for as_dir in $PATH
3997 do
3998   IFS=$as_save_IFS
3999   test -z "$as_dir" && as_dir=.
4000     for ac_exec_ext in '' $ac_executable_extensions; do
4001   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4002     ac_cv_prog_ac_ct_CPPBIN="cpp"
4003     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4004     break 2
4005   fi
4006 done
4007   done
4008 IFS=$as_save_IFS
4009
4010 fi
4011 fi
4012 ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN
4013 if test -n "$ac_ct_CPPBIN"; then
4014   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CPPBIN" >&5
4015 $as_echo "$ac_ct_CPPBIN" >&6; }
4016 else
4017   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4018 $as_echo "no" >&6; }
4019 fi
4020
4021   if test "x$ac_ct_CPPBIN" = x; then
4022     CPPBIN="cpp"
4023   else
4024     case $cross_compiling:$ac_tool_warned in
4025 yes:)
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4027 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4028 ac_tool_warned=yes ;;
4029 esac
4030     CPPBIN=$ac_ct_CPPBIN
4031   fi
4032 else
4033   CPPBIN="$ac_cv_prog_CPPBIN"
4034 fi
4035
4036
4037 cat >>confdefs.h <<_ACEOF
4038 #define EXEEXT "$ac_exeext"
4039 _ACEOF
4040
4041
4042 case $host in
4043   *-darwin*)
4044     if test "x$enable_win64" = "xyes"
4045     then
4046       CC="$CC -m64"
4047       CXX="$CXX -m64"
4048       host_cpu="x86_64"
4049       notice_platform="64-bit "
4050       TARGETFLAGS="-m64"
4051
4052     else
4053       CC="$CC -m32"
4054       CXX="$CXX -m32"
4055       host_cpu="i386"
4056       notice_platform="32-bit "
4057       TARGETFLAGS="-m32"
4058
4059       enable_win16=${enable_win16:-yes}
4060     fi
4061     with_fontconfig=${with_fontconfig:-no}
4062     ;;
4063   x86_64*)
4064     if test "x$enable_win64" != "xyes" -a "$cross_compiling" != "yes"
4065     then
4066       CC="$CC -m32"
4067       CXX="$CXX -m32"
4068       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC works" >&5
4069 $as_echo_n "checking whether $CC works... " >&6; }
4070
4071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4072 /* end confdefs.h.  */
4073
4074 int
4075 main ()
4076 {
4077
4078   ;
4079   return 0;
4080 }
4081 _ACEOF
4082 if ac_fn_c_try_link "$LINENO"; then :
4083   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4084 $as_echo "yes" >&6; }
4085 else
4086   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4087 $as_echo "no" >&6; }
4088                       as_fn_error $? "Cannot build a 32-bit program, you need to install 32-bit development libraries." "$LINENO" 5
4089 fi
4090 rm -f core conftest.err conftest.$ac_objext \
4091     conftest$ac_exeext conftest.$ac_ext
4092       host_cpu="i386"
4093       notice_platform="32-bit "
4094       TARGETFLAGS="-m32"
4095
4096       enable_win16=${enable_win16:-yes}
4097     else
4098       if test "x${GCC}" = "xyes"
4099       then
4100         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports __builtin_ms_va_list" >&5
4101 $as_echo_n "checking whether $CC supports __builtin_ms_va_list... " >&6; }
4102         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4103 /* end confdefs.h.  */
4104 #include <stdarg.h>
4105 int
4106 main ()
4107 {
4108 void func(__builtin_ms_va_list *args);
4109   ;
4110   return 0;
4111 }
4112 _ACEOF
4113 if ac_fn_c_try_compile "$LINENO"; then :
4114   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4115 $as_echo "yes" >&6; }
4116 else
4117   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4118 $as_echo "no" >&6; }
4119                            as_fn_error $? "You need gcc >= 4.4 to build Wine as 64-bit." "$LINENO" 5
4120 fi
4121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4122       fi
4123       TARGETFLAGS="-m64"
4124
4125     fi
4126     ;;
4127   *-mingw32*|*-cygwin*)
4128     enable_win16=${enable_win16:-no}
4129     CFLAGS="$CFLAGS -D_WIN32"
4130     ;;
4131   i[3456789]86*)
4132     enable_win16=${enable_win16:-yes}
4133     ;;
4134 esac
4135
4136 enable_win16=${enable_win16:-no}
4137 enable_win64=${enable_win64:-no}
4138
4139 enable_winetest=${enable_winetest:-$enable_tests}
4140
4141 if test -n "$with_wine64"
4142 then
4143     if test "x$enable_win64" = "xyes"
4144     then
4145         as_fn_error $? "--enable-win64 and --with-wine64 are mutually exclusive.
4146 --enable-win64 should be used in the 64-bit build tree, --with-wine64 in the 32-bit Wow64 build tree." "$LINENO" 5
4147     fi
4148     WOW64_DISABLE=\#
4149
4150     enable_fonts=${enable_fonts:-no}
4151     enable_server=${enable_server:-no}
4152     enable_tools=${enable_tools:-no}
4153 elif test "x$enable_win64" = "xyes"
4154 then
4155     test "x$libdir" != "x\${exec_prefix}/lib" || libdir="\${exec_prefix}/lib64"
4156 fi
4157
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the directory containing the Wine tools" >&5
4159 $as_echo_n "checking for the directory containing the Wine tools... " >&6; }
4160 if ${wine_cv_toolsdir+:} false; then :
4161   $as_echo_n "(cached) " >&6
4162 else
4163   wine_cv_toolsdir="$with_wine_tools"
4164    if test -z "$with_wine_tools"; then
4165      if test "$cross_compiling" = "yes"; then
4166        as_fn_error $? "you must use the --with-wine-tools option when cross-compiling." "$LINENO" 5
4167      elif test -n "$with_wine64"; then
4168        wine_cv_toolsdir="$with_wine64"
4169      fi
4170    fi
4171    if test -z "$wine_cv_toolsdir"; then
4172      wine_cv_toolsdir="\$(top_builddir)"
4173    elif test -d "$wine_cv_toolsdir/tools/winebuild"; then
4174      case "$wine_cv_toolsdir" in
4175        /*) ;;
4176        *)  wine_cv_toolsdir="\$(top_builddir)/$wine_cv_toolsdir" ;;
4177      esac
4178    else
4179      as_fn_error $? "could not find Wine tools in $wine_cv_toolsdir" "$LINENO" 5
4180    fi
4181 fi
4182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_toolsdir" >&5
4183 $as_echo "$wine_cv_toolsdir" >&6; }
4184 TOOLSDIR=$wine_cv_toolsdir
4185
4186 if test -n "$host_alias" -a "$host_alias" != "$build_alias"
4187 then
4188     TARGETFLAGS="-b $host_alias $TARGETFLAGS"
4189
4190 fi
4191
4192 for ac_prog in flex
4193 do
4194   # Extract the first word of "$ac_prog", so it can be a program name with args.
4195 set dummy $ac_prog; ac_word=$2
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4197 $as_echo_n "checking for $ac_word... " >&6; }
4198 if ${ac_cv_prog_FLEX+:} false; then :
4199   $as_echo_n "(cached) " >&6
4200 else
4201   if test -n "$FLEX"; then
4202   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
4203 else
4204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4205 for as_dir in $PATH
4206 do
4207   IFS=$as_save_IFS
4208   test -z "$as_dir" && as_dir=.
4209     for ac_exec_ext in '' $ac_executable_extensions; do
4210   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4211     ac_cv_prog_FLEX="$ac_prog"
4212     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4213     break 2
4214   fi
4215 done
4216   done
4217 IFS=$as_save_IFS
4218
4219 fi
4220 fi
4221 FLEX=$ac_cv_prog_FLEX
4222 if test -n "$FLEX"; then
4223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
4224 $as_echo "$FLEX" >&6; }
4225 else
4226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4227 $as_echo "no" >&6; }
4228 fi
4229
4230
4231   test -n "$FLEX" && break
4232 done
4233 test -n "$FLEX" || FLEX="none"
4234
4235 if test "$FLEX" = "none"
4236 then
4237   as_fn_error $? "no suitable flex found. Please install the 'flex' package." "$LINENO" 5
4238 fi
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether flex is recent enough" >&5
4240 $as_echo_n "checking whether flex is recent enough... " >&6; }
4241 cat >conftest.l <<EOF
4242 %top{
4243 #include "prediluvian.h"
4244 }
4245 %%
4246 EOF
4247 if $FLEX -t conftest.l >/dev/null 2>&5
4248 then
4249   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4250 $as_echo "yes" >&6; }
4251 else
4252   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4253 $as_echo "no" >&6; }
4254   as_fn_error $? "Your flex version is too old. Please install flex version 2.5.33 or newer." "$LINENO" 5
4255 fi
4256
4257 for ac_prog in bison
4258 do
4259   # Extract the first word of "$ac_prog", so it can be a program name with args.
4260 set dummy $ac_prog; ac_word=$2
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4262 $as_echo_n "checking for $ac_word... " >&6; }
4263 if ${ac_cv_prog_BISON+:} false; then :
4264   $as_echo_n "(cached) " >&6
4265 else
4266   if test -n "$BISON"; then
4267   ac_cv_prog_BISON="$BISON" # Let the user override the test.
4268 else
4269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4270 for as_dir in $PATH
4271 do
4272   IFS=$as_save_IFS
4273   test -z "$as_dir" && as_dir=.
4274     for ac_exec_ext in '' $ac_executable_extensions; do
4275   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4276     ac_cv_prog_BISON="$ac_prog"
4277     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4278     break 2
4279   fi
4280 done
4281   done
4282 IFS=$as_save_IFS
4283
4284 fi
4285 fi
4286 BISON=$ac_cv_prog_BISON
4287 if test -n "$BISON"; then
4288   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
4289 $as_echo "$BISON" >&6; }
4290 else
4291   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4292 $as_echo "no" >&6; }
4293 fi
4294
4295
4296   test -n "$BISON" && break
4297 done
4298 test -n "$BISON" || BISON="none"
4299
4300 if test "$BISON" = "none"
4301 then
4302   as_fn_error $? "no suitable bison found. Please install the 'bison' package." "$LINENO" 5
4303 fi
4304
4305 if test -n "$ac_tool_prefix"; then
4306   for ac_prog in ar gar
4307   do
4308     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4309 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4311 $as_echo_n "checking for $ac_word... " >&6; }
4312 if ${ac_cv_prog_AR+:} false; then :
4313   $as_echo_n "(cached) " >&6
4314 else
4315   if test -n "$AR"; then
4316   ac_cv_prog_AR="$AR" # Let the user override the test.
4317 else
4318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4319 for as_dir in $PATH
4320 do
4321   IFS=$as_save_IFS
4322   test -z "$as_dir" && as_dir=.
4323     for ac_exec_ext in '' $ac_executable_extensions; do
4324   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4325     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4326     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4327     break 2
4328   fi
4329 done
4330   done
4331 IFS=$as_save_IFS
4332
4333 fi
4334 fi
4335 AR=$ac_cv_prog_AR
4336 if test -n "$AR"; then
4337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4338 $as_echo "$AR" >&6; }
4339 else
4340   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4341 $as_echo "no" >&6; }
4342 fi
4343
4344
4345     test -n "$AR" && break
4346   done
4347 fi
4348 if test -z "$AR"; then
4349   ac_ct_AR=$AR
4350   for ac_prog in ar gar
4351 do
4352   # Extract the first word of "$ac_prog", so it can be a program name with args.
4353 set dummy $ac_prog; ac_word=$2
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4355 $as_echo_n "checking for $ac_word... " >&6; }
4356 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4357   $as_echo_n "(cached) " >&6
4358 else
4359   if test -n "$ac_ct_AR"; then
4360   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4361 else
4362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4363 for as_dir in $PATH
4364 do
4365   IFS=$as_save_IFS
4366   test -z "$as_dir" && as_dir=.
4367     for ac_exec_ext in '' $ac_executable_extensions; do
4368   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4369     ac_cv_prog_ac_ct_AR="$ac_prog"
4370     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4371     break 2
4372   fi
4373 done
4374   done
4375 IFS=$as_save_IFS
4376
4377 fi
4378 fi
4379 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4380 if test -n "$ac_ct_AR"; then
4381   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4382 $as_echo "$ac_ct_AR" >&6; }
4383 else
4384   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4385 $as_echo "no" >&6; }
4386 fi
4387
4388
4389   test -n "$ac_ct_AR" && break
4390 done
4391
4392   if test "x$ac_ct_AR" = x; then
4393     AR="ar"
4394   else
4395     case $cross_compiling:$ac_tool_warned in
4396 yes:)
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4398 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4399 ac_tool_warned=yes ;;
4400 esac
4401     AR=$ac_ct_AR
4402   fi
4403 fi
4404
4405 ARFLAGS=rc
4406
4407 if test -n "$ac_tool_prefix"; then
4408   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4409 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4411 $as_echo_n "checking for $ac_word... " >&6; }
4412 if ${ac_cv_prog_RANLIB+:} false; then :
4413   $as_echo_n "(cached) " >&6
4414 else
4415   if test -n "$RANLIB"; then
4416   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4417 else
4418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4419 for as_dir in $PATH
4420 do
4421   IFS=$as_save_IFS
4422   test -z "$as_dir" && as_dir=.
4423     for ac_exec_ext in '' $ac_executable_extensions; do
4424   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4425     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4426     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4427     break 2
4428   fi
4429 done
4430   done
4431 IFS=$as_save_IFS
4432
4433 fi
4434 fi
4435 RANLIB=$ac_cv_prog_RANLIB
4436 if test -n "$RANLIB"; then
4437   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4438 $as_echo "$RANLIB" >&6; }
4439 else
4440   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4441 $as_echo "no" >&6; }
4442 fi
4443
4444
4445 fi
4446 if test -z "$ac_cv_prog_RANLIB"; then
4447   ac_ct_RANLIB=$RANLIB
4448   # Extract the first word of "ranlib", so it can be a program name with args.
4449 set dummy ranlib; ac_word=$2
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4451 $as_echo_n "checking for $ac_word... " >&6; }
4452 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4453   $as_echo_n "(cached) " >&6
4454 else
4455   if test -n "$ac_ct_RANLIB"; then
4456   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4457 else
4458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4459 for as_dir in $PATH
4460 do
4461   IFS=$as_save_IFS
4462   test -z "$as_dir" && as_dir=.
4463     for ac_exec_ext in '' $ac_executable_extensions; do
4464   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4465     ac_cv_prog_ac_ct_RANLIB="ranlib"
4466     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4467     break 2
4468   fi
4469 done
4470   done
4471 IFS=$as_save_IFS
4472
4473 fi
4474 fi
4475 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4476 if test -n "$ac_ct_RANLIB"; then
4477   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4478 $as_echo "$ac_ct_RANLIB" >&6; }
4479 else
4480   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4481 $as_echo "no" >&6; }
4482 fi
4483
4484   if test "x$ac_ct_RANLIB" = x; then
4485     RANLIB=":"
4486   else
4487     case $cross_compiling:$ac_tool_warned in
4488 yes:)
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4490 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4491 ac_tool_warned=yes ;;
4492 esac
4493     RANLIB=$ac_ct_RANLIB
4494   fi
4495 else
4496   RANLIB="$ac_cv_prog_RANLIB"
4497 fi
4498
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4500 $as_echo_n "checking whether ln -s works... " >&6; }
4501 LN_S=$as_ln_s
4502 if test "$LN_S" = "ln -s"; then
4503   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4504 $as_echo "yes" >&6; }
4505 else
4506   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4507 $as_echo "no, using $LN_S" >&6; }
4508 fi
4509
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4511 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4512 if ${ac_cv_path_GREP+:} false; then :
4513   $as_echo_n "(cached) " >&6
4514 else
4515   if test -z "$GREP"; then
4516   ac_path_GREP_found=false
4517   # Loop through the user's path and test for each of PROGNAME-LIST
4518   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4519 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4520 do
4521   IFS=$as_save_IFS
4522   test -z "$as_dir" && as_dir=.
4523     for ac_prog in grep ggrep; do
4524     for ac_exec_ext in '' $ac_executable_extensions; do
4525       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4526       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4527 # Check for GNU ac_path_GREP and select it if it is found.
4528   # Check for GNU $ac_path_GREP
4529 case `"$ac_path_GREP" --version 2>&1` in
4530 *GNU*)
4531   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4532 *)
4533   ac_count=0
4534   $as_echo_n 0123456789 >"conftest.in"
4535   while :
4536   do
4537     cat "conftest.in" "conftest.in" >"conftest.tmp"
4538     mv "conftest.tmp" "conftest.in"
4539     cp "conftest.in" "conftest.nl"
4540     $as_echo 'GREP' >> "conftest.nl"
4541     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4542     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4543     as_fn_arith $ac_count + 1 && ac_count=$as_val
4544     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4545       # Best one so far, save it but keep looking for a better one
4546       ac_cv_path_GREP="$ac_path_GREP"
4547       ac_path_GREP_max=$ac_count
4548     fi
4549     # 10*(2^10) chars as input seems more than enough
4550     test $ac_count -gt 10 && break
4551   done
4552   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4553 esac
4554
4555       $ac_path_GREP_found && break 3
4556     done
4557   done
4558   done
4559 IFS=$as_save_IFS
4560   if test -z "$ac_cv_path_GREP"; then
4561     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4562   fi
4563 else
4564   ac_cv_path_GREP=$GREP
4565 fi
4566
4567 fi
4568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4569 $as_echo "$ac_cv_path_GREP" >&6; }
4570  GREP="$ac_cv_path_GREP"
4571
4572
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4574 $as_echo_n "checking for egrep... " >&6; }
4575 if ${ac_cv_path_EGREP+:} false; then :
4576   $as_echo_n "(cached) " >&6
4577 else
4578   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4579    then ac_cv_path_EGREP="$GREP -E"
4580    else
4581      if test -z "$EGREP"; then
4582   ac_path_EGREP_found=false
4583   # Loop through the user's path and test for each of PROGNAME-LIST
4584   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4585 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4586 do
4587   IFS=$as_save_IFS
4588   test -z "$as_dir" && as_dir=.
4589     for ac_prog in egrep; do
4590     for ac_exec_ext in '' $ac_executable_extensions; do
4591       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4592       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4593 # Check for GNU ac_path_EGREP and select it if it is found.
4594   # Check for GNU $ac_path_EGREP
4595 case `"$ac_path_EGREP" --version 2>&1` in
4596 *GNU*)
4597   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4598 *)
4599   ac_count=0
4600   $as_echo_n 0123456789 >"conftest.in"
4601   while :
4602   do
4603     cat "conftest.in" "conftest.in" >"conftest.tmp"
4604     mv "conftest.tmp" "conftest.in"
4605     cp "conftest.in" "conftest.nl"
4606     $as_echo 'EGREP' >> "conftest.nl"
4607     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4608     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4609     as_fn_arith $ac_count + 1 && ac_count=$as_val
4610     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4611       # Best one so far, save it but keep looking for a better one
4612       ac_cv_path_EGREP="$ac_path_EGREP"
4613       ac_path_EGREP_max=$ac_count
4614     fi
4615     # 10*(2^10) chars as input seems more than enough
4616     test $ac_count -gt 10 && break
4617   done
4618   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4619 esac
4620
4621       $ac_path_EGREP_found && break 3
4622     done
4623   done
4624   done
4625 IFS=$as_save_IFS
4626   if test -z "$ac_cv_path_EGREP"; then
4627     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4628   fi
4629 else
4630   ac_cv_path_EGREP=$EGREP
4631 fi
4632
4633    fi
4634 fi
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4636 $as_echo "$ac_cv_path_EGREP" >&6; }
4637  EGREP="$ac_cv_path_EGREP"
4638
4639
4640 # Extract the first word of "ldconfig", so it can be a program name with args.
4641 set dummy ldconfig; ac_word=$2
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4643 $as_echo_n "checking for $ac_word... " >&6; }
4644 if ${ac_cv_path_LDCONFIG+:} false; then :
4645   $as_echo_n "(cached) " >&6
4646 else
4647   case $LDCONFIG in
4648   [\\/]* | ?:[\\/]*)
4649   ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
4650   ;;
4651   *)
4652   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4653 for as_dir in /sbin /usr/sbin $PATH
4654 do
4655   IFS=$as_save_IFS
4656   test -z "$as_dir" && as_dir=.
4657     for ac_exec_ext in '' $ac_executable_extensions; do
4658   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4659     ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
4660     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4661     break 2
4662   fi
4663 done
4664   done
4665 IFS=$as_save_IFS
4666
4667   test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
4668   ;;
4669 esac
4670 fi
4671 LDCONFIG=$ac_cv_path_LDCONFIG
4672 if test -n "$LDCONFIG"; then
4673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
4674 $as_echo "$LDCONFIG" >&6; }
4675 else
4676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4677 $as_echo "no" >&6; }
4678 fi
4679
4680
4681 # Find a good install program.  We prefer a C program (faster),
4682 # so one script is as good as another.  But avoid the broken or
4683 # incompatible versions:
4684 # SysV /etc/install, /usr/sbin/install
4685 # SunOS /usr/etc/install
4686 # IRIX /sbin/install
4687 # AIX /bin/install
4688 # AmigaOS /C/install, which installs bootblocks on floppy discs
4689 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4690 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4691 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4692 # OS/2's system install, which has a completely different semantic
4693 # ./install, which can be erroneously created by make from ./install.sh.
4694 # Reject install programs that cannot install multiple files.
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4696 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4697 if test -z "$INSTALL"; then
4698 if ${ac_cv_path_install+:} false; then :
4699   $as_echo_n "(cached) " >&6
4700 else
4701   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4702 for as_dir in $PATH
4703 do
4704   IFS=$as_save_IFS
4705   test -z "$as_dir" && as_dir=.
4706     # Account for people who put trailing slashes in PATH elements.
4707 case $as_dir/ in #((
4708   ./ | .// | /[cC]/* | \
4709   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4710   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4711   /usr/ucb/* ) ;;
4712   *)
4713     # OSF1 and SCO ODT 3.0 have their own names for install.
4714     # Don't use installbsd from OSF since it installs stuff as root
4715     # by default.
4716     for ac_prog in ginstall scoinst install; do
4717       for ac_exec_ext in '' $ac_executable_extensions; do
4718         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4719           if test $ac_prog = install &&
4720             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4721             # AIX install.  It has an incompatible calling convention.
4722             :
4723           elif test $ac_prog = install &&
4724             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4725             # program-specific install script used by HP pwplus--don't use.
4726             :
4727           else
4728             rm -rf conftest.one conftest.two conftest.dir
4729             echo one > conftest.one
4730             echo two > conftest.two
4731             mkdir conftest.dir
4732             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4733               test -s conftest.one && test -s conftest.two &&
4734               test -s conftest.dir/conftest.one &&
4735               test -s conftest.dir/conftest.two
4736             then
4737               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4738               break 3
4739             fi
4740           fi
4741         fi
4742       done
4743     done
4744     ;;
4745 esac
4746
4747   done
4748 IFS=$as_save_IFS
4749
4750 rm -rf conftest.one conftest.two conftest.dir
4751
4752 fi
4753   if test "${ac_cv_path_install+set}" = set; then
4754     INSTALL=$ac_cv_path_install
4755   else
4756     # As a last resort, use the slow shell script.  Don't cache a
4757     # value for INSTALL within a source directory, because that will
4758     # break other packages using the cache if that directory is
4759     # removed, or if the value is a relative name.
4760     INSTALL=$ac_install_sh
4761   fi
4762 fi
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4764 $as_echo "$INSTALL" >&6; }
4765
4766 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4767 # It thinks the first close brace ends the variable substitution.
4768 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4769
4770 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4771
4772 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4773
4774 case "$INSTALL" in
4775   [\\/$]* | ?:[\\/]* ) ;;
4776   *)  INSTALL="\\\$(top_srcdir)/$INSTALL" ;;
4777 esac
4778
4779 for ac_prog in lclint lint
4780 do
4781   # Extract the first word of "$ac_prog", so it can be a program name with args.
4782 set dummy $ac_prog; ac_word=$2
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4784 $as_echo_n "checking for $ac_word... " >&6; }
4785 if ${ac_cv_prog_LINT+:} false; then :
4786   $as_echo_n "(cached) " >&6
4787 else
4788   if test -n "$LINT"; then
4789   ac_cv_prog_LINT="$LINT" # Let the user override the test.
4790 else
4791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4792 for as_dir in $PATH
4793 do
4794   IFS=$as_save_IFS
4795   test -z "$as_dir" && as_dir=.
4796     for ac_exec_ext in '' $ac_executable_extensions; do
4797   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4798     ac_cv_prog_LINT="$ac_prog"
4799     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4800     break 2
4801   fi
4802 done
4803   done
4804 IFS=$as_save_IFS
4805
4806 fi
4807 fi
4808 LINT=$ac_cv_prog_LINT
4809 if test -n "$LINT"; then
4810   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
4811 $as_echo "$LINT" >&6; }
4812 else
4813   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4814 $as_echo "no" >&6; }
4815 fi
4816
4817
4818   test -n "$LINT" && break
4819 done
4820
4821 if test "$LINT" = "lint"
4822 then
4823   LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
4824   fi
4825
4826
4827 for ac_prog in fontforge
4828 do
4829   # Extract the first word of "$ac_prog", so it can be a program name with args.
4830 set dummy $ac_prog; ac_word=$2
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4832 $as_echo_n "checking for $ac_word... " >&6; }
4833 if ${ac_cv_prog_FONTFORGE+:} false; then :
4834   $as_echo_n "(cached) " >&6
4835 else
4836   if test -n "$FONTFORGE"; then
4837   ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
4838 else
4839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4840 for as_dir in $PATH
4841 do
4842   IFS=$as_save_IFS
4843   test -z "$as_dir" && as_dir=.
4844     for ac_exec_ext in '' $ac_executable_extensions; do
4845   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4846     ac_cv_prog_FONTFORGE="$ac_prog"
4847     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4848     break 2
4849   fi
4850 done
4851   done
4852 IFS=$as_save_IFS
4853
4854 fi
4855 fi
4856 FONTFORGE=$ac_cv_prog_FONTFORGE
4857 if test -n "$FONTFORGE"; then
4858   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTFORGE" >&5
4859 $as_echo "$FONTFORGE" >&6; }
4860 else
4861   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4862 $as_echo "no" >&6; }
4863 fi
4864
4865
4866   test -n "$FONTFORGE" && break
4867 done
4868 test -n "$FONTFORGE" || FONTFORGE="false"
4869
4870 for ac_prog in pkg-config
4871 do
4872   # Extract the first word of "$ac_prog", so it can be a program name with args.
4873 set dummy $ac_prog; ac_word=$2
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4875 $as_echo_n "checking for $ac_word... " >&6; }
4876 if ${ac_cv_prog_PKG_CONFIG+:} false; then :
4877   $as_echo_n "(cached) " >&6
4878 else
4879   if test -n "$PKG_CONFIG"; then
4880   ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
4881 else
4882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4883 for as_dir in $PATH
4884 do
4885   IFS=$as_save_IFS
4886   test -z "$as_dir" && as_dir=.
4887     for ac_exec_ext in '' $ac_executable_extensions; do
4888   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4889     ac_cv_prog_PKG_CONFIG="$ac_prog"
4890     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4891     break 2
4892   fi
4893 done
4894   done
4895 IFS=$as_save_IFS
4896
4897 fi
4898 fi
4899 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
4900 if test -n "$PKG_CONFIG"; then
4901   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4902 $as_echo "$PKG_CONFIG" >&6; }
4903 else
4904   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4905 $as_echo "no" >&6; }
4906 fi
4907
4908
4909   test -n "$PKG_CONFIG" && break
4910 done
4911 test -n "$PKG_CONFIG" || PKG_CONFIG="false"
4912
4913 for ac_prog in rsvg
4914 do
4915   # Extract the first word of "$ac_prog", so it can be a program name with args.
4916 set dummy $ac_prog; ac_word=$2
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4918 $as_echo_n "checking for $ac_word... " >&6; }
4919 if ${ac_cv_prog_RSVG+:} false; then :
4920   $as_echo_n "(cached) " >&6
4921 else
4922   if test -n "$RSVG"; then
4923   ac_cv_prog_RSVG="$RSVG" # Let the user override the test.
4924 else
4925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4926 for as_dir in $PATH
4927 do
4928   IFS=$as_save_IFS
4929   test -z "$as_dir" && as_dir=.
4930     for ac_exec_ext in '' $ac_executable_extensions; do
4931   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4932     ac_cv_prog_RSVG="$ac_prog"
4933     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4934     break 2
4935   fi
4936 done
4937   done
4938 IFS=$as_save_IFS
4939
4940 fi
4941 fi
4942 RSVG=$ac_cv_prog_RSVG
4943 if test -n "$RSVG"; then
4944   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG" >&5
4945 $as_echo "$RSVG" >&6; }
4946 else
4947   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4948 $as_echo "no" >&6; }
4949 fi
4950
4951
4952   test -n "$RSVG" && break
4953 done
4954 test -n "$RSVG" || RSVG="false"
4955
4956 for ac_prog in convert
4957 do
4958   # Extract the first word of "$ac_prog", so it can be a program name with args.
4959 set dummy $ac_prog; ac_word=$2
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4961 $as_echo_n "checking for $ac_word... " >&6; }
4962 if ${ac_cv_prog_CONVERT+:} false; then :
4963   $as_echo_n "(cached) " >&6
4964 else
4965   if test -n "$CONVERT"; then
4966   ac_cv_prog_CONVERT="$CONVERT" # Let the user override the test.
4967 else
4968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4969 for as_dir in $PATH
4970 do
4971   IFS=$as_save_IFS
4972   test -z "$as_dir" && as_dir=.
4973     for ac_exec_ext in '' $ac_executable_extensions; do
4974   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4975     ac_cv_prog_CONVERT="$ac_prog"
4976     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4977     break 2
4978   fi
4979 done
4980   done
4981 IFS=$as_save_IFS
4982
4983 fi
4984 fi
4985 CONVERT=$ac_cv_prog_CONVERT
4986 if test -n "$CONVERT"; then
4987   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONVERT" >&5
4988 $as_echo "$CONVERT" >&6; }
4989 else
4990   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4991 $as_echo "no" >&6; }
4992 fi
4993
4994
4995   test -n "$CONVERT" && break
4996 done
4997 test -n "$CONVERT" || CONVERT="false"
4998
4999 for ac_prog in icotool
5000 do
5001   # Extract the first word of "$ac_prog", so it can be a program name with args.
5002 set dummy $ac_prog; ac_word=$2
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5004 $as_echo_n "checking for $ac_word... " >&6; }
5005 if ${ac_cv_prog_ICOTOOL+:} false; then :
5006   $as_echo_n "(cached) " >&6
5007 else
5008   if test -n "$ICOTOOL"; then
5009   ac_cv_prog_ICOTOOL="$ICOTOOL" # Let the user override the test.
5010 else
5011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5012 for as_dir in $PATH
5013 do
5014   IFS=$as_save_IFS
5015   test -z "$as_dir" && as_dir=.
5016     for ac_exec_ext in '' $ac_executable_extensions; do
5017   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5018     ac_cv_prog_ICOTOOL="$ac_prog"
5019     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5020     break 2
5021   fi
5022 done
5023   done
5024 IFS=$as_save_IFS
5025
5026 fi
5027 fi
5028 ICOTOOL=$ac_cv_prog_ICOTOOL
5029 if test -n "$ICOTOOL"; then
5030   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICOTOOL" >&5
5031 $as_echo "$ICOTOOL" >&6; }
5032 else
5033   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5034 $as_echo "no" >&6; }
5035 fi
5036
5037
5038   test -n "$ICOTOOL" && break
5039 done
5040 test -n "$ICOTOOL" || ICOTOOL="false"
5041
5042 for ac_prog in msgfmt
5043 do
5044   # Extract the first word of "$ac_prog", so it can be a program name with args.
5045 set dummy $ac_prog; ac_word=$2
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5047 $as_echo_n "checking for $ac_word... " >&6; }
5048 if ${ac_cv_prog_MSGFMT+:} false; then :
5049   $as_echo_n "(cached) " >&6
5050 else
5051   if test -n "$MSGFMT"; then
5052   ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
5053 else
5054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5055 for as_dir in $PATH
5056 do
5057   IFS=$as_save_IFS
5058   test -z "$as_dir" && as_dir=.
5059     for ac_exec_ext in '' $ac_executable_extensions; do
5060   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5061     ac_cv_prog_MSGFMT="$ac_prog"
5062     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5063     break 2
5064   fi
5065 done
5066   done
5067 IFS=$as_save_IFS
5068
5069 fi
5070 fi
5071 MSGFMT=$ac_cv_prog_MSGFMT
5072 if test -n "$MSGFMT"; then
5073   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5074 $as_echo "$MSGFMT" >&6; }
5075 else
5076   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5077 $as_echo "no" >&6; }
5078 fi
5079
5080
5081   test -n "$MSGFMT" && break
5082 done
5083 test -n "$MSGFMT" || MSGFMT="false"
5084
5085
5086 if test "x$enable_maintainer_mode" != "xyes"
5087 then
5088   MAINTAINER_MODE=\#
5089
5090 else
5091   if test "$FONTFORGE" = "false"; then as_fn_error $? "You need fontforge to rebuild fonts in maintainer mode." "$LINENO" 5; fi
5092   if test "$RSVG" = "false"; then as_fn_error $? "You need rsvg to rebuild icons in maintainer mode." "$LINENO" 5; fi
5093
5094     if test "$CONVERT" = false
5095   then
5096     as_fn_error $? "You need imagemagick to rebuild icons in maintainer mode." "$LINENO" 5
5097   else
5098     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough imagemagick" >&5
5099 $as_echo_n "checking for recent enough imagemagick... " >&6; }
5100     convert_version=`convert --version | head -n1`
5101     if test "x$convert_version" != "x"
5102     then
5103       convert_version_major=`expr "$convert_version" : '.* \([0-9]*\)\.[0-9]*'`
5104       convert_version_minor=`expr "$convert_version" : '.* [0-9]*\.\([0-9]*\)'`
5105       if test "$convert_version_major" -eq 6 -a "$convert_version_minor" -lt 6
5106       then
5107         CONVERT=false
5108       fi
5109     fi
5110     if test "$CONVERT" = false
5111     then
5112       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($convert_version_major.$convert_version_minor)" >&5
5113 $as_echo "no ($convert_version_major.$convert_version_minor)" >&6; }
5114       as_fn_error $? "You need imagemagick version 6.6 or newer to rebuild icons in maintainer mode." "$LINENO" 5
5115     else
5116       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($convert_version_major.$convert_version_minor)" >&5
5117 $as_echo "yes ($convert_version_major.$convert_version_minor)" >&6; }
5118     fi
5119   fi
5120
5121     if test "$ICOTOOL" = false
5122   then
5123     as_fn_error $? "You need icotool to rebuild icons in maintainer mode." "$LINENO" 5
5124   else
5125     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough icotool" >&5
5126 $as_echo_n "checking for recent enough icotool... " >&6; }
5127     icotool_version=`icotool --version | head -n1`
5128     if test "x$icotool_version" != "x"
5129     then
5130       icotool_version_major=`expr "$icotool_version" : '.* \([0-9]*\)\.[0-9]*'`
5131       icotool_version_minor=`expr "$icotool_version" : '.* [0-9]*\.\([0-9]*\)'`
5132       if test "$icotool_version_major" -eq 0 -a "$icotool_version_minor" -lt 29
5133       then
5134         ICOTOOL=false
5135         as_fn_append wine_warnings "|icotool version 0.29.0 or newer is needed to rebuild icons."
5136       fi
5137     fi
5138     if test "$ICOTOOL" = false
5139     then
5140       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($icotool_version_major.$icotool_version_minor)" >&5
5141 $as_echo "no ($icotool_version_major.$icotool_version_minor)" >&6; }
5142       as_fn_error $? "You need icotool version 0.29.0 or newer to rebuild icons in maintainer mode." "$LINENO" 5
5143     else
5144       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($icotool_version_major.$icotool_version_minor)" >&5
5145 $as_echo "yes ($icotool_version_major.$icotool_version_minor)" >&6; }
5146     fi
5147   fi
5148
5149     with_gettext=yes
5150   with_gettextpo=yes
5151   { ac_cv_header_gettext_po_h=; unset ac_cv_header_gettext_po_h;}
5152 fi
5153
5154 test "x$with_gettext" != xno || MSGFMT=false
5155 if test "$MSGFMT" != "false"
5156 then
5157   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether msgfmt supports contexts" >&5
5158 $as_echo_n "checking whether msgfmt supports contexts... " >&6; }
5159   cat >conftest.po <<EOF
5160 # comment
5161 msgctxt "ctxt"
5162 msgid "id"
5163 msgstr "str"
5164 EOF
5165   if $MSGFMT -o /dev/null conftest.po 2>&5
5166   then
5167     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5168 $as_echo "yes" >&6; }
5169   else
5170     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5171 $as_echo "no" >&6; }
5172     MSGFMT=false
5173   fi
5174 fi
5175 if test "$MSGFMT" = false; then :
5176   case "x$with_gettext" in
5177   x)   as_fn_append wine_warnings "|gettext tools not found (or too old), translations won't be built." ;;
5178   xno) ;;
5179   *)   as_fn_error $? "gettext tools not found (or too old), translations won't be built.
5180 This is an error since --with-gettext was requested." "$LINENO" 5 ;;
5181 esac
5182 fi
5183
5184
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for i386_set_ldt in -li386" >&5
5186 $as_echo_n "checking for i386_set_ldt in -li386... " >&6; }
5187 if ${ac_cv_lib_i386_i386_set_ldt+:} false; then :
5188   $as_echo_n "(cached) " >&6
5189 else
5190   ac_check_lib_save_LIBS=$LIBS
5191 LIBS="-li386  $LIBS"
5192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5193 /* end confdefs.h.  */
5194
5195 /* Override any GCC internal prototype to avoid an error.
5196    Use char because int might match the return type of a GCC
5197    builtin and then its argument prototype would still apply.  */
5198 #ifdef __cplusplus
5199 extern "C"
5200 #endif
5201 char i386_set_ldt ();
5202 int
5203 main ()
5204 {
5205 return i386_set_ldt ();
5206   ;
5207   return 0;
5208 }
5209 _ACEOF
5210 if ac_fn_c_try_link "$LINENO"; then :
5211   ac_cv_lib_i386_i386_set_ldt=yes
5212 else
5213   ac_cv_lib_i386_i386_set_ldt=no
5214 fi
5215 rm -f core conftest.err conftest.$ac_objext \
5216     conftest$ac_exeext conftest.$ac_ext
5217 LIBS=$ac_check_lib_save_LIBS
5218 fi
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_i386_i386_set_ldt" >&5
5220 $as_echo "$ac_cv_lib_i386_i386_set_ldt" >&6; }
5221 if test "x$ac_cv_lib_i386_i386_set_ldt" = xyes; then :
5222   cat >>confdefs.h <<_ACEOF
5223 #define HAVE_LIBI386 1
5224 _ACEOF
5225
5226   LIBS="-li386 $LIBS"
5227
5228 fi
5229
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
5231 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
5232 if ${ac_cv_lib_ossaudio__oss_ioctl+:} false; then :
5233   $as_echo_n "(cached) " >&6
5234 else
5235   ac_check_lib_save_LIBS=$LIBS
5236 LIBS="-lossaudio  $LIBS"
5237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5238 /* end confdefs.h.  */
5239
5240 /* Override any GCC internal prototype to avoid an error.
5241    Use char because int might match the return type of a GCC
5242    builtin and then its argument prototype would still apply.  */
5243 #ifdef __cplusplus
5244 extern "C"
5245 #endif
5246 char _oss_ioctl ();
5247 int
5248 main ()
5249 {
5250 return _oss_ioctl ();
5251   ;
5252   return 0;
5253 }
5254 _ACEOF
5255 if ac_fn_c_try_link "$LINENO"; then :
5256   ac_cv_lib_ossaudio__oss_ioctl=yes
5257 else
5258   ac_cv_lib_ossaudio__oss_ioctl=no
5259 fi
5260 rm -f core conftest.err conftest.$ac_objext \
5261     conftest$ac_exeext conftest.$ac_ext
5262 LIBS=$ac_check_lib_save_LIBS
5263 fi
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5265 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
5266 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = xyes; then :
5267   cat >>confdefs.h <<_ACEOF
5268 #define HAVE_LIBOSSAUDIO 1
5269 _ACEOF
5270
5271   LIBS="-lossaudio $LIBS"
5272
5273 fi
5274
5275
5276 XLIB=""
5277
5278 OPENGL_LIBS=""
5279
5280
5281
5282 test "x$with_fontconfig" != "xno" || ac_cv_header_fontconfig_fontconfig_h=no
5283
5284 # Check whether --enable-largefile was given.
5285 if test "${enable_largefile+set}" = set; then :
5286   enableval=$enable_largefile;
5287 fi
5288
5289 if test "$enable_largefile" != no; then
5290
5291   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5292 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5293 if ${ac_cv_sys_largefile_CC+:} false; then :
5294   $as_echo_n "(cached) " >&6
5295 else
5296   ac_cv_sys_largefile_CC=no
5297      if test "$GCC" != yes; then
5298        ac_save_CC=$CC
5299        while :; do
5300          # IRIX 6.2 and later do not support large files by default,
5301          # so use the C compiler's -n32 option if that helps.
5302          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5303 /* end confdefs.h.  */
5304 #include <sys/types.h>
5305  /* Check that off_t can represent 2**63 - 1 correctly.
5306     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5307     since some C++ compilers masquerading as C compilers
5308     incorrectly reject 9223372036854775807.  */
5309 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5310   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5311                        && LARGE_OFF_T % 2147483647 == 1)
5312                       ? 1 : -1];
5313 int
5314 main ()
5315 {
5316
5317   ;
5318   return 0;
5319 }
5320 _ACEOF
5321          if ac_fn_c_try_compile "$LINENO"; then :
5322   break
5323 fi
5324 rm -f core conftest.err conftest.$ac_objext
5325          CC="$CC -n32"
5326          if ac_fn_c_try_compile "$LINENO"; then :
5327   ac_cv_sys_largefile_CC=' -n32'; break
5328 fi
5329 rm -f core conftest.err conftest.$ac_objext
5330          break
5331        done
5332        CC=$ac_save_CC
5333        rm -f conftest.$ac_ext
5334     fi
5335 fi
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5337 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5338   if test "$ac_cv_sys_largefile_CC" != no; then
5339     CC=$CC$ac_cv_sys_largefile_CC
5340   fi
5341
5342   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5343 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5344 if ${ac_cv_sys_file_offset_bits+:} false; then :
5345   $as_echo_n "(cached) " >&6
5346 else
5347   while :; do
5348   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5349 /* end confdefs.h.  */
5350 #include <sys/types.h>
5351  /* Check that off_t can represent 2**63 - 1 correctly.
5352     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5353     since some C++ compilers masquerading as C compilers
5354     incorrectly reject 9223372036854775807.  */
5355 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5356   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5357                        && LARGE_OFF_T % 2147483647 == 1)
5358                       ? 1 : -1];
5359 int
5360 main ()
5361 {
5362
5363   ;
5364   return 0;
5365 }
5366 _ACEOF
5367 if ac_fn_c_try_compile "$LINENO"; then :
5368   ac_cv_sys_file_offset_bits=no; break
5369 fi
5370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5371   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5372 /* end confdefs.h.  */
5373 #define _FILE_OFFSET_BITS 64
5374 #include <sys/types.h>
5375  /* Check that off_t can represent 2**63 - 1 correctly.
5376     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5377     since some C++ compilers masquerading as C compilers
5378     incorrectly reject 9223372036854775807.  */
5379 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5380   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5381                        && LARGE_OFF_T % 2147483647 == 1)
5382                       ? 1 : -1];
5383 int
5384 main ()
5385 {
5386
5387   ;
5388   return 0;
5389 }
5390 _ACEOF
5391 if ac_fn_c_try_compile "$LINENO"; then :
5392   ac_cv_sys_file_offset_bits=64; break
5393 fi
5394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5395   ac_cv_sys_file_offset_bits=unknown
5396   break
5397 done
5398 fi
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5400 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5401 case $ac_cv_sys_file_offset_bits in #(
5402   no | unknown) ;;
5403   *)
5404 cat >>confdefs.h <<_ACEOF
5405 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5406 _ACEOF
5407 ;;
5408 esac
5409 rm -rf conftest*
5410   if test $ac_cv_sys_file_offset_bits = unknown; then
5411     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5412 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5413 if ${ac_cv_sys_large_files+:} false; then :
5414   $as_echo_n "(cached) " >&6
5415 else
5416   while :; do
5417   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5418 /* end confdefs.h.  */
5419 #include <sys/types.h>
5420  /* Check that off_t can represent 2**63 - 1 correctly.
5421     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5422     since some C++ compilers masquerading as C compilers
5423     incorrectly reject 9223372036854775807.  */
5424 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5425   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5426                        && LARGE_OFF_T % 2147483647 == 1)
5427                       ? 1 : -1];
5428 int
5429 main ()
5430 {
5431
5432   ;
5433   return 0;
5434 }
5435 _ACEOF
5436 if ac_fn_c_try_compile "$LINENO"; then :
5437   ac_cv_sys_large_files=no; break
5438 fi
5439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5440   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5441 /* end confdefs.h.  */
5442 #define _LARGE_FILES 1
5443 #include <sys/types.h>
5444  /* Check that off_t can represent 2**63 - 1 correctly.
5445     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5446     since some C++ compilers masquerading as C compilers
5447     incorrectly reject 9223372036854775807.  */
5448 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5449   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5450                        && LARGE_OFF_T % 2147483647 == 1)
5451                       ? 1 : -1];
5452 int
5453 main ()
5454 {
5455
5456   ;
5457   return 0;
5458 }
5459 _ACEOF
5460 if ac_fn_c_try_compile "$LINENO"; then :
5461   ac_cv_sys_large_files=1; break
5462 fi
5463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5464   ac_cv_sys_large_files=unknown
5465   break
5466 done
5467 fi
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5469 $as_echo "$ac_cv_sys_large_files" >&6; }
5470 case $ac_cv_sys_large_files in #(
5471   no | unknown) ;;
5472   *)
5473 cat >>confdefs.h <<_ACEOF
5474 #define _LARGE_FILES $ac_cv_sys_large_files
5475 _ACEOF
5476 ;;
5477 esac
5478 rm -rf conftest*
5479   fi
5480 fi
5481
5482
5483 ac_ext=c
5484 ac_cpp='$CPP $CPPFLAGS'
5485 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5486 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5487 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5489 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5490 # On Suns, sometimes $CPP names a directory.
5491 if test -n "$CPP" && test -d "$CPP"; then
5492   CPP=
5493 fi
5494 if test -z "$CPP"; then
5495   if ${ac_cv_prog_CPP+:} false; then :
5496   $as_echo_n "(cached) " >&6
5497 else
5498       # Double quotes because CPP needs to be expanded
5499     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5500     do
5501       ac_preproc_ok=false
5502 for ac_c_preproc_warn_flag in '' yes
5503 do
5504   # Use a header file that comes with gcc, so configuring glibc
5505   # with a fresh cross-compiler works.
5506   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5507   # <limits.h> exists even on freestanding compilers.
5508   # On the NeXT, cc -E runs the code through the compiler's parser,
5509   # not just through cpp. "Syntax error" is here to catch this case.
5510   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5511 /* end confdefs.h.  */
5512 #ifdef __STDC__
5513 # include <limits.h>
5514 #else
5515 # include <assert.h>
5516 #endif
5517                      Syntax error
5518 _ACEOF
5519 if ac_fn_c_try_cpp "$LINENO"; then :
5520
5521 else
5522   # Broken: fails on valid input.
5523 continue
5524 fi
5525 rm -f conftest.err conftest.i conftest.$ac_ext
5526
5527   # OK, works on sane cases.  Now check whether nonexistent headers
5528   # can be detected and how.
5529   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5530 /* end confdefs.h.  */
5531 #include <ac_nonexistent.h>
5532 _ACEOF
5533 if ac_fn_c_try_cpp "$LINENO"; then :
5534   # Broken: success on invalid input.
5535 continue
5536 else
5537   # Passes both tests.
5538 ac_preproc_ok=:
5539 break
5540 fi
5541 rm -f conftest.err conftest.i conftest.$ac_ext
5542
5543 done
5544 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5545 rm -f conftest.i conftest.err conftest.$ac_ext
5546 if $ac_preproc_ok; then :
5547   break
5548 fi
5549
5550     done
5551     ac_cv_prog_CPP=$CPP
5552
5553 fi
5554   CPP=$ac_cv_prog_CPP
5555 else
5556   ac_cv_prog_CPP=$CPP
5557 fi
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5559 $as_echo "$CPP" >&6; }
5560 ac_preproc_ok=false
5561 for ac_c_preproc_warn_flag in '' yes
5562 do
5563   # Use a header file that comes with gcc, so configuring glibc
5564   # with a fresh cross-compiler works.
5565   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5566   # <limits.h> exists even on freestanding compilers.
5567   # On the NeXT, cc -E runs the code through the compiler's parser,
5568   # not just through cpp. "Syntax error" is here to catch this case.
5569   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5570 /* end confdefs.h.  */
5571 #ifdef __STDC__
5572 # include <limits.h>
5573 #else
5574 # include <assert.h>
5575 #endif
5576                      Syntax error
5577 _ACEOF
5578 if ac_fn_c_try_cpp "$LINENO"; then :
5579
5580 else
5581   # Broken: fails on valid input.
5582 continue
5583 fi
5584 rm -f conftest.err conftest.i conftest.$ac_ext
5585
5586   # OK, works on sane cases.  Now check whether nonexistent headers
5587   # can be detected and how.
5588   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5589 /* end confdefs.h.  */
5590 #include <ac_nonexistent.h>
5591 _ACEOF
5592 if ac_fn_c_try_cpp "$LINENO"; then :
5593   # Broken: success on invalid input.
5594 continue
5595 else
5596   # Passes both tests.
5597 ac_preproc_ok=:
5598 break
5599 fi
5600 rm -f conftest.err conftest.i conftest.$ac_ext
5601
5602 done
5603 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5604 rm -f conftest.i conftest.err conftest.$ac_ext
5605 if $ac_preproc_ok; then :
5606
5607 else
5608   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5609 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5610 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5611 See \`config.log' for more details" "$LINENO" 5; }
5612 fi
5613
5614 ac_ext=c
5615 ac_cpp='$CPP $CPPFLAGS'
5616 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5617 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5618 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5619
5620
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5622 $as_echo_n "checking for ANSI C header files... " >&6; }
5623 if ${ac_cv_header_stdc+:} false; then :
5624   $as_echo_n "(cached) " >&6
5625 else
5626   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5627 /* end confdefs.h.  */
5628 #include <stdlib.h>
5629 #include <stdarg.h>
5630 #include <string.h>
5631 #include <float.h>
5632
5633 int
5634 main ()
5635 {
5636
5637   ;
5638   return 0;
5639 }
5640 _ACEOF
5641 if ac_fn_c_try_compile "$LINENO"; then :
5642   ac_cv_header_stdc=yes
5643 else
5644   ac_cv_header_stdc=no
5645 fi
5646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5647
5648 if test $ac_cv_header_stdc = yes; then
5649   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5650   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5651 /* end confdefs.h.  */
5652 #include <string.h>
5653
5654 _ACEOF
5655 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5656   $EGREP "memchr" >/dev/null 2>&1; then :
5657
5658 else
5659   ac_cv_header_stdc=no
5660 fi
5661 rm -f conftest*
5662
5663 fi
5664
5665 if test $ac_cv_header_stdc = yes; then
5666   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5667   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5668 /* end confdefs.h.  */
5669 #include <stdlib.h>
5670
5671 _ACEOF
5672 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5673   $EGREP "free" >/dev/null 2>&1; then :
5674
5675 else
5676   ac_cv_header_stdc=no
5677 fi
5678 rm -f conftest*
5679
5680 fi
5681
5682 if test $ac_cv_header_stdc = yes; then
5683   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5684   if test "$cross_compiling" = yes; then :
5685   :
5686 else
5687   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5688 /* end confdefs.h.  */
5689 #include <ctype.h>
5690 #include <stdlib.h>
5691 #if ((' ' & 0x0FF) == 0x020)
5692 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5693 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5694 #else
5695 # define ISLOWER(c) \
5696                    (('a' <= (c) && (c) <= 'i') \
5697                      || ('j' <= (c) && (c) <= 'r') \
5698                      || ('s' <= (c) && (c) <= 'z'))
5699 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5700 #endif
5701
5702 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5703 int
5704 main ()
5705 {
5706   int i;
5707   for (i = 0; i < 256; i++)
5708     if (XOR (islower (i), ISLOWER (i))
5709         || toupper (i) != TOUPPER (i))
5710       return 2;
5711   return 0;
5712 }
5713 _ACEOF
5714 if ac_fn_c_try_run "$LINENO"; then :
5715
5716 else
5717   ac_cv_header_stdc=no
5718 fi
5719 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5720   conftest.$ac_objext conftest.beam conftest.$ac_ext
5721 fi
5722
5723 fi
5724 fi
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5726 $as_echo "$ac_cv_header_stdc" >&6; }
5727 if test $ac_cv_header_stdc = yes; then
5728
5729 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5730
5731 fi
5732
5733 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5734 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5735                   inttypes.h stdint.h unistd.h
5736 do :
5737   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5738 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5739 "
5740 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5741   cat >>confdefs.h <<_ACEOF
5742 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5743 _ACEOF
5744
5745 fi
5746
5747 done
5748
5749
5750 for ac_header in \
5751         AL/al.h \
5752         ApplicationServices/ApplicationServices.h \
5753         AudioToolbox/AudioConverter.h \
5754         AudioUnit/AudioUnit.h \
5755         AudioUnit/AudioComponent.h \
5756         CL/cl.h \
5757         Carbon/Carbon.h \
5758         CoreAudio/CoreAudio.h \
5759         CoreServices/CoreServices.h \
5760         DiskArbitration/DiskArbitration.h \
5761         IOKit/IOKitLib.h \
5762         IOKit/hid/IOHIDLib.h \
5763         OpenAL/al.h \
5764         OpenCL/opencl.h \
5765         QuickTime/ImageCompression.h \
5766         Security/Security.h \
5767         alias.h \
5768         alsa/asoundlib.h \
5769         arpa/inet.h \
5770         arpa/nameser.h \
5771         asm/types.h \
5772         capi20.h \
5773         curses.h \
5774         direct.h \
5775         dirent.h \
5776         dlfcn.h \
5777         elf.h \
5778         float.h \
5779         fnmatch.h \
5780         fontconfig/fontconfig.h \
5781         getopt.h \
5782         gettext-po.h \
5783         grp.h \
5784         gsm.h \
5785         gsm/gsm.h \
5786         ieeefp.h \
5787         inet/mib2.h \
5788         io.h \
5789         jpeglib.h \
5790         kstat.h \
5791         lber.h \
5792         lcms.h \
5793         lcms/lcms.h \
5794         ldap.h \
5795         link.h \
5796         linux/cdrom.h \
5797         linux/compiler.h \
5798         linux/hdreg.h \
5799         linux/input.h \
5800         linux/ioctl.h \
5801         linux/joystick.h \
5802         linux/major.h \
5803         linux/param.h \
5804         linux/serial.h \
5805         linux/types.h \
5806         linux/ucdrom.h \
5807         mach-o/nlist.h \
5808         mach-o/loader.h \
5809         mach/mach.h \
5810         mach/machine.h \
5811         machine/cpu.h \
5812         machine/limits.h \
5813         machine/sysarch.h \
5814         mntent.h \
5815         mpg123.h \
5816         ncurses.h \
5817         netdb.h \
5818         netinet/in.h \
5819         netinet/in_systm.h \
5820         netinet/tcp.h \
5821         netinet/tcp_fsm.h \
5822         openssl/err.h \
5823         openssl/ssl.h \
5824         png.h \
5825         poll.h \
5826         port.h \
5827         process.h \
5828         pthread.h \
5829         pwd.h \
5830         sched.h \
5831         scsi/scsi.h \
5832         scsi/scsi_ioctl.h \
5833         scsi/sg.h \
5834         stdbool.h \
5835         stdint.h \
5836         strings.h \
5837         stropts.h \
5838         sys/asoundlib.h \
5839         sys/attr.h \
5840         sys/cdio.h \
5841         sys/elf32.h \
5842         sys/epoll.h \
5843         sys/event.h \
5844         sys/exec_elf.h \
5845         sys/filio.h \
5846         sys/inotify.h \
5847         sys/ioctl.h \
5848         sys/ipc.h \
5849         sys/limits.h \
5850         sys/link.h \
5851         sys/mman.h \
5852         sys/modem.h \
5853         sys/msg.h \
5854         sys/mtio.h \
5855         sys/param.h \
5856         sys/poll.h \
5857         sys/prctl.h \
5858         sys/protosw.h \
5859         sys/ptrace.h \
5860         sys/resource.h \
5861         sys/scsiio.h \
5862         sys/shm.h \
5863         sys/signal.h \
5864         sys/socket.h \
5865         sys/socketvar.h \
5866         sys/sockio.h \
5867         sys/statvfs.h \
5868         sys/strtio.h \
5869         sys/syscall.h \
5870         sys/tihdr.h \
5871         sys/time.h \
5872         sys/timeout.h \
5873         sys/times.h \
5874         sys/uio.h \
5875         sys/un.h \
5876         sys/utsname.h \
5877         sys/vm86.h \
5878         sys/wait.h \
5879         syscall.h \
5880         termios.h \
5881         tiffio.h \
5882         unistd.h \
5883         utime.h \
5884         valgrind/memcheck.h \
5885         valgrind/valgrind.h \
5886         zlib.h
5887
5888 do :
5889   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5890 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5891 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5892   cat >>confdefs.h <<_ACEOF
5893 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5894 _ACEOF
5895
5896 fi
5897
5898 done
5899
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
5901 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
5902 if ${ac_cv_header_stat_broken+:} false; then :
5903   $as_echo_n "(cached) " >&6
5904 else
5905   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5906 /* end confdefs.h.  */
5907 #include <sys/types.h>
5908 #include <sys/stat.h>
5909
5910 #if defined S_ISBLK && defined S_IFDIR
5911 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
5912 #endif
5913
5914 #if defined S_ISBLK && defined S_IFCHR
5915 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
5916 #endif
5917
5918 #if defined S_ISLNK && defined S_IFREG
5919 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
5920 #endif
5921
5922 #if defined S_ISSOCK && defined S_IFREG
5923 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
5924 #endif
5925
5926 _ACEOF
5927 if ac_fn_c_try_compile "$LINENO"; then :
5928   ac_cv_header_stat_broken=no
5929 else
5930   ac_cv_header_stat_broken=yes
5931 fi
5932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5933 fi
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
5935 $as_echo "$ac_cv_header_stat_broken" >&6; }
5936 if test $ac_cv_header_stat_broken = yes; then
5937
5938 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
5939
5940 fi
5941
5942
5943
5944 for ac_header in sys/mount.h sys/statfs.h sys/sysctl.h sys/user.h sys/vfs.h
5945 do :
5946   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5947 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
5948      #ifdef HAVE_SYS_PARAM_H
5949      # include <sys/param.h>
5950      #endif
5951 "
5952 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5953   cat >>confdefs.h <<_ACEOF
5954 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5955 _ACEOF
5956
5957 fi
5958
5959 done
5960
5961
5962 for ac_header in \
5963         netinet/ip.h \
5964         net/if.h \
5965         net/if_arp.h \
5966         net/if_dl.h \
5967         net/if_types.h \
5968         net/route.h \
5969         netinet/if_ether.h \
5970         netinet/if_inarp.h \
5971         netinet/in_pcb.h \
5972         netinet/ip_icmp.h \
5973         netinet/ip_var.h \
5974         netinet/udp.h \
5975         netipx/ipx.h \
5976
5977 do :
5978   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5979 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
5980      #ifdef HAVE_SYS_SOCKET_H
5981      # include <sys/socket.h>
5982      #endif
5983      #ifdef HAVE_SYS_SOCKETVAR_H
5984      # include <sys/socketvar.h>
5985      #endif
5986      #ifdef HAVE_NET_ROUTE_H
5987      # include <net/route.h>
5988      #endif
5989      #ifdef HAVE_NETINET_IN_H
5990      # include <netinet/in.h>
5991      #endif
5992      #ifdef HAVE_NETINET_IN_SYSTM_H
5993      # include <netinet/in_systm.h>
5994      #endif
5995      #ifdef HAVE_NET_IF_H
5996      # include <net/if.h>
5997      #endif
5998      #ifdef HAVE_NETINET_IP_H
5999      # include <netinet/ip.h>
6000      #endif
6001 "
6002 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6003   cat >>confdefs.h <<_ACEOF
6004 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6005 _ACEOF
6006
6007 fi
6008
6009 done
6010
6011
6012 for ac_header in netinet/tcp_timer.h netinet/udp_var.h netinet/icmp_var.h netinet/tcp_var.h
6013 do :
6014   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6015 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6016      #ifdef HAVE_ALIAS_H
6017      # include <alias.h>
6018      #endif
6019      #ifdef HAVE_SYS_SOCKET_H
6020      # include <sys/socket.h>
6021      #endif
6022      #ifdef HAVE_SYS_SOCKETVAR_H
6023      # include <sys/socketvar.h>
6024      #endif
6025      #ifdef HAVE_SYS_TIMEOUT_H
6026      # include <sys/timeout.h>
6027      #endif
6028      #ifdef HAVE_NETINET_IN_H
6029      # include <netinet/in.h>
6030      #endif
6031      #ifdef HAVE_NETINET_IN_SYSTM_H
6032      # include <netinet/in_systm.h>
6033      #endif
6034      #ifdef HAVE_NETINET_IP_H
6035      # include <netinet/ip.h>
6036      #endif
6037      #ifdef HAVE_NETINET_IP_VAR_H
6038      # include <netinet/ip_var.h>
6039      #endif
6040      #ifdef HAVE_NETINET_IP_ICMP_H
6041      # include <netinet/ip_icmp.h>
6042      #endif
6043      #ifdef HAVE_NETINET_UDP_H
6044      # include <netinet/udp.h>
6045      #endif
6046      #ifdef HAVE_NETINET_TCP_H
6047      # include <netinet/tcp.h>
6048      #endif
6049      #ifdef HAVE_NETINET_TCP_TIMER_H
6050      #include <netinet/tcp_timer.h>
6051      #endif
6052 "
6053 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6054   cat >>confdefs.h <<_ACEOF
6055 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6056 _ACEOF
6057
6058 fi
6059
6060 done
6061
6062
6063 for ac_header in linux/ipx.h linux/irda.h
6064 do :
6065   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6066 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6067      #ifdef HAVE_ASM_TYPES_H
6068      # include <asm/types.h>
6069      #endif
6070      #ifdef HAVE_SYS_SOCKET_H
6071      # include <sys/socket.h>
6072      #endif
6073      #ifdef HAVE_LINUX_TYPES_H
6074      # include <linux/types.h>
6075      #endif
6076 "
6077 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6078   cat >>confdefs.h <<_ACEOF
6079 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6080 _ACEOF
6081
6082 fi
6083
6084 done
6085
6086
6087 for ac_header in mach-o/dyld_images.h
6088 do :
6089   ac_fn_c_check_header_compile "$LINENO" "mach-o/dyld_images.h" "ac_cv_header_mach_o_dyld_images_h" "#ifdef HAVE_STDBOOL_H
6090      # include <stdbool.h>
6091      #endif
6092      #ifdef HAVE_STDINT_H
6093      # include <stdint.h>
6094      #endif
6095 "
6096 if test "x$ac_cv_header_mach_o_dyld_images_h" = xyes; then :
6097   cat >>confdefs.h <<_ACEOF
6098 #define HAVE_MACH_O_DYLD_IMAGES_H 1
6099 _ACEOF
6100
6101 fi
6102
6103 done
6104
6105
6106 for ac_header in resolv.h
6107 do :
6108   ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "#include <sys/types.h>
6109      #ifdef HAVE_SYS_SOCKET_H
6110      # include <sys/socket.h>
6111      #endif
6112      #ifdef HAVE_NETINET_IN_H
6113      # include <netinet/in.h>
6114      #endif
6115      #ifdef HAVE_ARPA_NAMESER_H
6116      # include <arpa/nameser.h>
6117      #endif
6118 "
6119 if test "x$ac_cv_header_resolv_h" = xyes; then :
6120   cat >>confdefs.h <<_ACEOF
6121 #define HAVE_RESOLV_H 1
6122 _ACEOF
6123
6124 fi
6125
6126 done
6127
6128
6129 for ac_header in ifaddrs.h
6130 do :
6131   ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "#include <sys/types.h>
6132 "
6133 if test "x$ac_cv_header_ifaddrs_h" = xyes; then :
6134   cat >>confdefs.h <<_ACEOF
6135 #define HAVE_IFADDRS_H 1
6136 _ACEOF
6137
6138 fi
6139
6140 done
6141
6142
6143 for ac_header in ucontext.h
6144 do :
6145   ac_fn_c_check_header_compile "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "#include <signal.h>
6146 "
6147 if test "x$ac_cv_header_ucontext_h" = xyes; then :
6148   cat >>confdefs.h <<_ACEOF
6149 #define HAVE_UCONTEXT_H 1
6150 _ACEOF
6151
6152 fi
6153
6154 done
6155
6156
6157 for ac_header in sys/thr.h
6158 do :
6159   ac_fn_c_check_header_compile "$LINENO" "sys/thr.h" "ac_cv_header_sys_thr_h" "#include <sys/types.h>
6160 #ifdef HAVE_UCONTEXT_H
6161 #include <ucontext.h>
6162 #endif
6163 "
6164 if test "x$ac_cv_header_sys_thr_h" = xyes; then :
6165   cat >>confdefs.h <<_ACEOF
6166 #define HAVE_SYS_THR_H 1
6167 _ACEOF
6168
6169 fi
6170
6171 done
6172
6173
6174 for ac_header in pthread_np.h
6175 do :
6176   ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" "#ifdef HAVE_PTHREAD_H
6177 #include <pthread.h>
6178 #endif
6179 "
6180 if test "x$ac_cv_header_pthread_np_h" = xyes; then :
6181   cat >>confdefs.h <<_ACEOF
6182 #define HAVE_PTHREAD_NP_H 1
6183 _ACEOF
6184
6185 fi
6186
6187 done
6188
6189
6190 for ac_header in linux/videodev.h linux/videodev2.h
6191 do :
6192   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6193 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_TIME_H
6194 #include <sys/time.h>
6195 #endif
6196 #include <sys/types.h>
6197 #ifdef HAVE_ASM_TYPES_H
6198 #include <asm/types.h>
6199 #endif
6200 "
6201 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6202   cat >>confdefs.h <<_ACEOF
6203 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6204 _ACEOF
6205
6206 fi
6207
6208 done
6209
6210
6211 for ac_header in linux/capi.h
6212 do :
6213   ac_fn_c_check_header_compile "$LINENO" "linux/capi.h" "ac_cv_header_linux_capi_h" "#define __user
6214 "
6215 if test "x$ac_cv_header_linux_capi_h" = xyes; then :
6216   cat >>confdefs.h <<_ACEOF
6217 #define HAVE_LINUX_CAPI_H 1
6218 _ACEOF
6219
6220 fi
6221
6222 done
6223
6224
6225
6226 DLLEXT=""
6227
6228 DLLFLAGS="-D_REENTRANT"
6229
6230 LDSHARED=""
6231
6232 LDDLLFLAGS=""
6233
6234 LIBEXT="so"
6235
6236 IMPLIBEXT="def"
6237
6238 LDRPATH_INSTALL=""
6239
6240 LDRPATH_LOCAL=""
6241
6242 STATIC_IMPLIBEXT="def.a"
6243 # Extract the first word of "ldd", so it can be a program name with args.
6244 set dummy ldd; ac_word=$2
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6246 $as_echo_n "checking for $ac_word... " >&6; }
6247 if ${ac_cv_path_LDD+:} false; then :
6248   $as_echo_n "(cached) " >&6
6249 else
6250   case $LDD in
6251   [\\/]* | ?:[\\/]*)
6252   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
6253   ;;
6254   *)
6255   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6256 as_dummy="/sbin:/usr/sbin:$PATH"
6257 for as_dir in $as_dummy
6258 do
6259   IFS=$as_save_IFS
6260   test -z "$as_dir" && as_dir=.
6261     for ac_exec_ext in '' $ac_executable_extensions; do
6262   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6263     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
6264     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6265     break 2
6266   fi
6267 done
6268   done
6269 IFS=$as_save_IFS
6270
6271   test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
6272   ;;
6273 esac
6274 fi
6275 LDD=$ac_cv_path_LDD
6276 if test -n "$LDD"; then
6277   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
6278 $as_echo "$LDD" >&6; }
6279 else
6280   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6281 $as_echo "no" >&6; }
6282 fi
6283
6284
6285
6286 case $host_os in
6287   cygwin*|mingw32*)
6288     if test -n "$ac_tool_prefix"; then
6289   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6290 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6292 $as_echo_n "checking for $ac_word... " >&6; }
6293 if ${ac_cv_prog_DLLTOOL+:} false; then :
6294   $as_echo_n "(cached) " >&6
6295 else
6296   if test -n "$DLLTOOL"; then
6297   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6298 else
6299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6300 for as_dir in $PATH
6301 do
6302   IFS=$as_save_IFS
6303   test -z "$as_dir" && as_dir=.
6304     for ac_exec_ext in '' $ac_executable_extensions; do
6305   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6306     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6307     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6308     break 2
6309   fi
6310 done
6311   done
6312 IFS=$as_save_IFS
6313
6314 fi
6315 fi
6316 DLLTOOL=$ac_cv_prog_DLLTOOL
6317 if test -n "$DLLTOOL"; then
6318   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6319 $as_echo "$DLLTOOL" >&6; }
6320 else
6321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6322 $as_echo "no" >&6; }
6323 fi
6324
6325
6326 fi
6327 if test -z "$ac_cv_prog_DLLTOOL"; then
6328   ac_ct_DLLTOOL=$DLLTOOL
6329   # Extract the first word of "dlltool", so it can be a program name with args.
6330 set dummy dlltool; ac_word=$2
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6332 $as_echo_n "checking for $ac_word... " >&6; }
6333 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6334   $as_echo_n "(cached) " >&6
6335 else
6336   if test -n "$ac_ct_DLLTOOL"; then
6337   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6338 else
6339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6340 for as_dir in $PATH
6341 do
6342   IFS=$as_save_IFS
6343   test -z "$as_dir" && as_dir=.
6344     for ac_exec_ext in '' $ac_executable_extensions; do
6345   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6346     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6347     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6348     break 2
6349   fi
6350 done
6351   done
6352 IFS=$as_save_IFS
6353
6354 fi
6355 fi
6356 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6357 if test -n "$ac_ct_DLLTOOL"; then
6358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6359 $as_echo "$ac_ct_DLLTOOL" >&6; }
6360 else
6361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6362 $as_echo "no" >&6; }
6363 fi
6364
6365   if test "x$ac_ct_DLLTOOL" = x; then
6366     DLLTOOL="false"
6367   else
6368     case $cross_compiling:$ac_tool_warned in
6369 yes:)
6370 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6371 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6372 ac_tool_warned=yes ;;
6373 esac
6374     DLLTOOL=$ac_ct_DLLTOOL
6375   fi
6376 else
6377   DLLTOOL="$ac_cv_prog_DLLTOOL"
6378 fi
6379
6380     if test -n "$ac_tool_prefix"; then
6381   # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
6382 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
6383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6384 $as_echo_n "checking for $ac_word... " >&6; }
6385 if ${ac_cv_prog_DLLWRAP+:} false; then :
6386   $as_echo_n "(cached) " >&6
6387 else
6388   if test -n "$DLLWRAP"; then
6389   ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
6390 else
6391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6392 for as_dir in $PATH
6393 do
6394   IFS=$as_save_IFS
6395   test -z "$as_dir" && as_dir=.
6396     for ac_exec_ext in '' $ac_executable_extensions; do
6397   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6398     ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
6399     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6400     break 2
6401   fi
6402 done
6403   done
6404 IFS=$as_save_IFS
6405
6406 fi
6407 fi
6408 DLLWRAP=$ac_cv_prog_DLLWRAP
6409 if test -n "$DLLWRAP"; then
6410   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLWRAP" >&5
6411 $as_echo "$DLLWRAP" >&6; }
6412 else
6413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6414 $as_echo "no" >&6; }
6415 fi
6416
6417
6418 fi
6419 if test -z "$ac_cv_prog_DLLWRAP"; then
6420   ac_ct_DLLWRAP=$DLLWRAP
6421   # Extract the first word of "dllwrap", so it can be a program name with args.
6422 set dummy dllwrap; ac_word=$2
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6424 $as_echo_n "checking for $ac_word... " >&6; }
6425 if ${ac_cv_prog_ac_ct_DLLWRAP+:} false; then :
6426   $as_echo_n "(cached) " >&6
6427 else
6428   if test -n "$ac_ct_DLLWRAP"; then
6429   ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
6430 else
6431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6432 for as_dir in $PATH
6433 do
6434   IFS=$as_save_IFS
6435   test -z "$as_dir" && as_dir=.
6436     for ac_exec_ext in '' $ac_executable_extensions; do
6437   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6438     ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
6439     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6440     break 2
6441   fi
6442 done
6443   done
6444 IFS=$as_save_IFS
6445
6446 fi
6447 fi
6448 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
6449 if test -n "$ac_ct_DLLWRAP"; then
6450   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLWRAP" >&5
6451 $as_echo "$ac_ct_DLLWRAP" >&6; }
6452 else
6453   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6454 $as_echo "no" >&6; }
6455 fi
6456
6457   if test "x$ac_ct_DLLWRAP" = x; then
6458     DLLWRAP="false"
6459   else
6460     case $cross_compiling:$ac_tool_warned in
6461 yes:)
6462 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6463 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6464 ac_tool_warned=yes ;;
6465 esac
6466     DLLWRAP=$ac_ct_DLLWRAP
6467   fi
6468 else
6469   DLLWRAP="$ac_cv_prog_DLLWRAP"
6470 fi
6471
6472     if test "$DLLWRAP" = "false"; then
6473       LIBEXT="a"
6474     else
6475             LIBEXT="dll"
6476     fi
6477     IMPLIBEXT="a"
6478     STATIC_IMPLIBEXT="a"
6479         enable_iphlpapi=${enable_iphlpapi:-no}
6480     enable_kernel32=${enable_kernel32:-no}
6481     enable_msvcrt=${enable_msvcrt:-no}
6482     enable_ntdll=${enable_ntdll:-no}
6483     enable_ws2_32=${enable_ws2_32:-no}
6484     enable_loader=${enable_loader:-no}
6485     enable_server=${enable_server:-no}
6486         with_x=${with_x:-no}
6487     with_pthread=${with_pthread:-no}
6488     ;;
6489   darwin*|macosx*)
6490     DLLEXT=".so"
6491     LIBEXT="dylib"
6492     DLLFLAGS="$DLLFLAGS -fPIC"
6493     LDDLLFLAGS="-bundle -multiply_defined suppress"
6494     LIBWINE_LDFLAGS="-multiply_defined suppress"
6495     LDSHARED="\$(CC) -dynamiclib"
6496     LDRPATH_LOCAL="&& install_name_tool -change @executable_path/\`\$(RELPATH) \$(bindir) \$(libdir)\`/libwine.1.dylib @executable_path/\$(top_builddir)/libs/wine/libwine.1.dylib \$@ || \$(RM) \$@"
6497         COREFOUNDATIONLIB="-framework CoreFoundation"
6498
6499     IOKITLIB="-framework IOKit -framework CoreFoundation"
6500
6501     APPLICATIONSERVICESLIB="-framework ApplicationServices"
6502
6503     CORESERVICESLIB="-framework CoreServices"
6504
6505     case $host_os in
6506       darwin11*)
6507         LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-macosx_version_min,10.6,-segaddr,WINE_DOS,0x00001000,-segaddr,WINE_SHAREDHEAP,0x7f000000"
6508  ;;
6509       *)
6510         LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00001000,-segaddr,WINE_SHAREDHEAP,0x7f000000"
6511  ;;
6512     esac
6513     if test "$ac_cv_header_DiskArbitration_DiskArbitration_h" = "yes"
6514     then
6515                 DISKARBITRATIONLIB="-framework DiskArbitration -framework CoreFoundation"
6516
6517     fi
6518     if test "$ac_cv_header_Security_Security_h" = "yes"
6519     then
6520         SECURITYLIB="-framework Security -framework CoreFoundation"
6521
6522                 ac_save_LIBS="$LIBS"
6523         LIBS="$LIBS $SECURITYLIB"
6524         for ac_func in SSLCopyPeerCertificates
6525 do :
6526   ac_fn_c_check_func "$LINENO" "SSLCopyPeerCertificates" "ac_cv_func_SSLCopyPeerCertificates"
6527 if test "x$ac_cv_func_SSLCopyPeerCertificates" = xyes; then :
6528   cat >>confdefs.h <<_ACEOF
6529 #define HAVE_SSLCOPYPEERCERTIFICATES 1
6530 _ACEOF
6531
6532 fi
6533 done
6534
6535         LIBS="$ac_save_LIBS"
6536         with_gnutls=${with_gnutls:-no}
6537     fi
6538     if test "$ac_cv_header_CoreAudio_CoreAudio_h" = "yes" -a "$ac_cv_header_AudioUnit_AudioUnit_h" = "yes"
6539     then
6540         if test "$ac_cv_header_AudioUnit_AudioComponent_h" = "yes"
6541         then
6542             COREAUDIO="-framework CoreFoundation -framework CoreAudio -framework AudioUnit -framework AudioToolbox -framework CoreMIDI"
6543
6544         else
6545                         COREAUDIO="-framework CoreAudio -framework AudioUnit -framework CoreServices -framework AudioToolbox -framework CoreMIDI"
6546
6547         fi
6548                 ac_save_LIBS="$LIBS"
6549         LIBS="$LIBS $COREAUDIO"
6550         for ac_func in AUGraphAddNode
6551 do :
6552   ac_fn_c_check_func "$LINENO" "AUGraphAddNode" "ac_cv_func_AUGraphAddNode"
6553 if test "x$ac_cv_func_AUGraphAddNode" = xyes; then :
6554   cat >>confdefs.h <<_ACEOF
6555 #define HAVE_AUGRAPHADDNODE 1
6556 _ACEOF
6557
6558 fi
6559 done
6560
6561         LIBS="$ac_save_LIBS"
6562     fi
6563     if test "$ac_cv_header_OpenAL_al_h" = "yes"
6564     then
6565         FRAMEWORK_OPENAL="-framework OpenAL"
6566
6567
6568 cat >>confdefs.h <<_ACEOF
6569 #define HAVE_OPENAL 1
6570 _ACEOF
6571
6572         ac_cv_lib_openal=yes
6573     fi
6574     if test "$ac_cv_header_OpenCL_opencl_h" = "yes"
6575     then
6576         LIBOPENCL="-framework OpenCL"
6577
6578         ac_cv_lib_OpenCL_clGetPlatformInfo=yes
6579     fi
6580     if test "$ac_cv_header_IOKit_hid_IOHIDLib_h" = "yes"
6581     then
6582         ac_save_LIBS="$LIBS"
6583         LIBS="$LIBS $IOKITLIB"
6584         for ac_func in IOHIDManagerCreate
6585 do :
6586   ac_fn_c_check_func "$LINENO" "IOHIDManagerCreate" "ac_cv_func_IOHIDManagerCreate"
6587 if test "x$ac_cv_func_IOHIDManagerCreate" = xyes; then :
6588   cat >>confdefs.h <<_ACEOF
6589 #define HAVE_IOHIDMANAGERCREATE 1
6590 _ACEOF
6591
6592 fi
6593 done
6594
6595         LIBS="$ac_save_LIBS"
6596     fi
6597     case $host_cpu in
6598       *powerpc*)
6599         LDDLLFLAGS="$LDDLLFLAGS -read_only_relocs warning"          ;;
6600     esac
6601     if test "$ac_cv_header_QuickTime_ImageCompression_h" = "yes"
6602     then
6603         QUICKTIMELIB="-framework QuickTime -framework ApplicationServices -framework CoreVideo"
6604
6605         enable_wineqtdecoder=${enable_wineqtdecoder:-yes}
6606     else
6607         as_fn_append wine_notices "|QuickTime ${notice_platform}development files not found, video decoding won't be supported."
6608     fi
6609         if test "$ac_cv_header_Carbon_Carbon_h" = "yes"
6610     then
6611         CARBONLIB="-framework Carbon"
6612
6613         enable_winequartz_drv=${enable_winequartz_drv:-yes}
6614     fi
6615         if test "x$enable_win16" = "xyes"
6616     then
6617         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 16-bit code can be built correctly" >&5
6618 $as_echo_n "checking whether 16-bit code can be built correctly... " >&6; }
6619         if test "$cross_compiling" = yes; then :
6620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5
6621 $as_echo "cross-compiling, assuming yes" >&6; }
6622 else
6623   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6624 /* end confdefs.h.  */
6625 asm(".text\n"
6626                                             "bad:\tnop;nop\n"
6627                                             "good:\tnop;nop\n\t"
6628                                             ".globl _testfunc\n"
6629                                             "_testfunc:\tcallw good");
6630                                         extern void testfunc();
6631 int
6632 main ()
6633 {
6634 unsigned short *p = (unsigned short *)testfunc;
6635                                         return p[0] != 0xe866 || p[1] != 0xfffa
6636   ;
6637   return 0;
6638 }
6639 _ACEOF
6640 if ac_fn_c_try_run "$LINENO"; then :
6641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6642 $as_echo "yes" >&6; }
6643 else
6644   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6645 $as_echo "no" >&6; }
6646                                        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
6647 fi
6648 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6649   conftest.$ac_objext conftest.beam conftest.$ac_ext
6650 fi
6651
6652     fi
6653     ;;
6654   *)
6655     DLLFLAGS="$DLLFLAGS -fPIC"
6656     DLLEXT=".so"
6657     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a GNU style ELF dll" >&5
6658 $as_echo_n "checking whether we can build a GNU style ELF dll... " >&6; }
6659 if ${ac_cv_c_dll_gnuelf+:} false; then :
6660   $as_echo_n "(cached) " >&6
6661 else
6662   ac_wine_try_cflags_saved=$CFLAGS
6663 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic"
6664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6665 /* end confdefs.h.  */
6666 void myfunc() {}
6667 _ACEOF
6668 if ac_fn_c_try_link "$LINENO"; then :
6669   ac_cv_c_dll_gnuelf="yes"
6670 else
6671   ac_cv_c_dll_gnuelf="no"
6672 fi
6673 rm -f core conftest.err conftest.$ac_objext \
6674     conftest$ac_exeext conftest.$ac_ext
6675 CFLAGS=$ac_wine_try_cflags_saved
6676 fi
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_gnuelf" >&5
6678 $as_echo "$ac_cv_c_dll_gnuelf" >&6; }
6679     if test "$ac_cv_c_dll_gnuelf" = "yes"
6680     then
6681       LDSHARED="\$(CC) -shared"
6682       LDDLLFLAGS="-shared -Wl,-Bsymbolic"
6683       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1" >&5
6684 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1... " >&6; }
6685 if ${ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1+:} false; then :
6686   $as_echo_n "(cached) " >&6
6687 else
6688   ac_wine_try_cflags_saved=$CFLAGS
6689 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,confest.so.1"
6690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6691 /* end confdefs.h.  */
6692 int main(int argc, char **argv) { return 0; }
6693 _ACEOF
6694 if ac_fn_c_try_link "$LINENO"; then :
6695   ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=yes
6696 else
6697   ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=no
6698 fi
6699 rm -f core conftest.err conftest.$ac_objext \
6700     conftest$ac_exeext conftest.$ac_ext
6701 CFLAGS=$ac_wine_try_cflags_saved
6702 fi
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&5
6704 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&6; }
6705 if test $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1 = yes; then :
6706   LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
6707 else
6708   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1" >&5
6709 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1... " >&6; }
6710 if ${ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1+:} false; then :
6711   $as_echo_n "(cached) " >&6
6712 else
6713   ac_wine_try_cflags_saved=$CFLAGS
6714 CFLAGS="$CFLAGS -fPIC -shared -Wl,-h,confest.so.1"
6715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6716 /* end confdefs.h.  */
6717 int main(int argc, char **argv) { return 0; }
6718 _ACEOF
6719 if ac_fn_c_try_link "$LINENO"; then :
6720   ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=yes
6721 else
6722   ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=no
6723 fi
6724 rm -f core conftest.err conftest.$ac_objext \
6725     conftest$ac_exeext conftest.$ac_ext
6726 CFLAGS=$ac_wine_try_cflags_saved
6727 fi
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&5
6729 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&6; }
6730 if test $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1 = yes; then :
6731   LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-h,%)"
6732 fi
6733 fi
6734
6735       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs" >&5
6736 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs... " >&6; }
6737 if ${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs+:} false; then :
6738   $as_echo_n "(cached) " >&6
6739 else
6740   ac_wine_try_cflags_saved=$CFLAGS
6741 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
6742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6743 /* end confdefs.h.  */
6744 int main(int argc, char **argv) { return 0; }
6745 _ACEOF
6746 if ac_fn_c_try_link "$LINENO"; then :
6747   ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=yes
6748 else
6749   ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=no
6750 fi
6751 rm -f core conftest.err conftest.$ac_objext \
6752     conftest$ac_exeext conftest.$ac_ext
6753 CFLAGS=$ac_wine_try_cflags_saved
6754 fi
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&5
6756 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&6; }
6757 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs = yes; then :
6758   LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
6759 fi
6760
6761       { $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
6762 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini... " >&6; }
6763 if ${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini+:} false; then :
6764   $as_echo_n "(cached) " >&6
6765 else
6766   ac_wine_try_cflags_saved=$CFLAGS
6767 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
6768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6769 /* end confdefs.h.  */
6770 int main(int argc, char **argv) { return 0; }
6771 _ACEOF
6772 if ac_fn_c_try_link "$LINENO"; then :
6773   ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=yes
6774 else
6775   ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=no
6776 fi
6777 rm -f core conftest.err conftest.$ac_objext \
6778     conftest$ac_exeext conftest.$ac_ext
6779 CFLAGS=$ac_wine_try_cflags_saved
6780 fi
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&5
6782 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&6; }
6783 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini = yes; then :
6784   LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
6785 fi
6786
6787       echo '{ global: *; };' >conftest.map
6788       as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -shared -Wl,--version-script=conftest.map" | $as_tr_sh`
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map" >&5
6790 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map... " >&6; }
6791 if eval \${$as_ac_var+:} false; then :
6792   $as_echo_n "(cached) " >&6
6793 else
6794   ac_wine_try_cflags_saved=$CFLAGS
6795 CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
6796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6797 /* end confdefs.h.  */
6798 int main(int argc, char **argv) { return 0; }
6799 _ACEOF
6800 if ac_fn_c_try_link "$LINENO"; then :
6801   eval "$as_ac_var=yes"
6802 else
6803   eval "$as_ac_var=no"
6804 fi
6805 rm -f core conftest.err conftest.$ac_objext \
6806     conftest$ac_exeext conftest.$ac_ext
6807 CFLAGS=$ac_wine_try_cflags_saved
6808 fi
6809 eval ac_res=\$$as_ac_var
6810                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6811 $as_echo "$ac_res" >&6; }
6812 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6813   LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)"
6814 fi
6815       rm -f conftest.map
6816
6817       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5
6818 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--export-dynamic... " >&6; }
6819 if ${ac_cv_cflags__fPIC__Wl___export_dynamic+:} false; then :
6820   $as_echo_n "(cached) " >&6
6821 else
6822   ac_wine_try_cflags_saved=$CFLAGS
6823 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
6824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6825 /* end confdefs.h.  */
6826 int main(int argc, char **argv) { return 0; }
6827 _ACEOF
6828 if ac_fn_c_try_link "$LINENO"; then :
6829   ac_cv_cflags__fPIC__Wl___export_dynamic=yes
6830 else
6831   ac_cv_cflags__fPIC__Wl___export_dynamic=no
6832 fi
6833 rm -f core conftest.err conftest.$ac_objext \
6834     conftest$ac_exeext conftest.$ac_ext
6835 CFLAGS=$ac_wine_try_cflags_saved
6836 fi
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__Wl___export_dynamic" >&5
6838 $as_echo "$ac_cv_cflags__fPIC__Wl___export_dynamic" >&6; }
6839 if test $ac_cv_cflags__fPIC__Wl___export_dynamic = yes; then :
6840   LDEXECFLAGS="-Wl,--export-dynamic"
6841
6842 fi
6843
6844       as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,--rpath,\\$ORIGIN/../lib" | $as_tr_sh`
6845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib" >&5
6846 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... " >&6; }
6847 if eval \${$as_ac_var+:} false; then :
6848   $as_echo_n "(cached) " >&6
6849 else
6850   ac_wine_try_cflags_saved=$CFLAGS
6851 CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
6852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6853 /* end confdefs.h.  */
6854 int main(int argc, char **argv) { return 0; }
6855 _ACEOF
6856 if ac_fn_c_try_link "$LINENO"; then :
6857   eval "$as_ac_var=yes"
6858 else
6859   eval "$as_ac_var=no"
6860 fi
6861 rm -f core conftest.err conftest.$ac_objext \
6862     conftest$ac_exeext conftest.$ac_ext
6863 CFLAGS=$ac_wine_try_cflags_saved
6864 fi
6865 eval ac_res=\$$as_ac_var
6866                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6867 $as_echo "$ac_res" >&6; }
6868 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6869   LDRPATH_INSTALL="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
6870                        LDRPATH_LOCAL="-Wl,--rpath,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
6871 else
6872   as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,-R,\\$ORIGIN/../lib" | $as_tr_sh`
6873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib" >&5
6874 $as_echo_n "checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib... " >&6; }
6875 if eval \${$as_ac_var+:} false; then :
6876   $as_echo_n "(cached) " >&6
6877 else
6878   ac_wine_try_cflags_saved=$CFLAGS
6879 CFLAGS="$CFLAGS -fPIC -Wl,-R,\$ORIGIN/../lib"
6880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6881 /* end confdefs.h.  */
6882 int main(int argc, char **argv) { return 0; }
6883 _ACEOF
6884 if ac_fn_c_try_link "$LINENO"; then :
6885   eval "$as_ac_var=yes"
6886 else
6887   eval "$as_ac_var=no"
6888 fi
6889 rm -f core conftest.err conftest.$ac_objext \
6890     conftest$ac_exeext conftest.$ac_ext
6891 CFLAGS=$ac_wine_try_cflags_saved
6892 fi
6893 eval ac_res=\$$as_ac_var
6894                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6895 $as_echo "$ac_res" >&6; }
6896 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6897   LDRPATH_INSTALL="-Wl,-R,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
6898                             LDRPATH_LOCAL="-Wl,-R,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
6899 fi
6900 fi
6901
6902       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--enable-new-dtags" >&5
6903 $as_echo_n "checking whether the compiler supports -Wl,--enable-new-dtags... " >&6; }
6904 if ${ac_cv_cflags__Wl___enable_new_dtags+:} false; then :
6905   $as_echo_n "(cached) " >&6
6906 else
6907   ac_wine_try_cflags_saved=$CFLAGS
6908 CFLAGS="$CFLAGS -Wl,--enable-new-dtags"
6909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6910 /* end confdefs.h.  */
6911 int main(int argc, char **argv) { return 0; }
6912 _ACEOF
6913 if ac_fn_c_try_link "$LINENO"; then :
6914   ac_cv_cflags__Wl___enable_new_dtags=yes
6915 else
6916   ac_cv_cflags__Wl___enable_new_dtags=no
6917 fi
6918 rm -f core conftest.err conftest.$ac_objext \
6919     conftest$ac_exeext conftest.$ac_ext
6920 CFLAGS=$ac_wine_try_cflags_saved
6921 fi
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___enable_new_dtags" >&5
6923 $as_echo "$ac_cv_cflags__Wl___enable_new_dtags" >&6; }
6924 if test $ac_cv_cflags__Wl___enable_new_dtags = yes; then :
6925   LDRPATH_INSTALL="$LDRPATH_INSTALL -Wl,--enable-new-dtags"
6926 fi
6927
6928       case $host_cpu in
6929         *i[3456789]86* | x86_64)
6930           as_ac_var=`$as_echo "ac_cv_cflags_-Wl,--section-start,.interp=0x7bf00400" | $as_tr_sh`
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400" >&5
6932 $as_echo_n "checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... " >&6; }
6933 if eval \${$as_ac_var+:} false; then :
6934   $as_echo_n "(cached) " >&6
6935 else
6936   ac_wine_try_cflags_saved=$CFLAGS
6937 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
6938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6939 /* end confdefs.h.  */
6940 int main(int argc, char **argv) { return 0; }
6941 _ACEOF
6942 if ac_fn_c_try_link "$LINENO"; then :
6943   eval "$as_ac_var=yes"
6944 else
6945   eval "$as_ac_var=no"
6946 fi
6947 rm -f core conftest.err conftest.$ac_objext \
6948     conftest$ac_exeext conftest.$ac_ext
6949 CFLAGS=$ac_wine_try_cflags_saved
6950 fi
6951 eval ac_res=\$$as_ac_var
6952                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6953 $as_echo "$ac_res" >&6; }
6954 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6955   case $host_os in
6956                            freebsd* | kfreebsd*-gnu) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x60000400" ;;
6957                            *) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400" ;;
6958                            esac
6959
6960 fi
6961           # Extract the first word of "prelink", so it can be a program name with args.
6962 set dummy prelink; ac_word=$2
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6964 $as_echo_n "checking for $ac_word... " >&6; }
6965 if ${ac_cv_path_PRELINK+:} false; then :
6966   $as_echo_n "(cached) " >&6
6967 else
6968   case $PRELINK in
6969   [\\/]* | ?:[\\/]*)
6970   ac_cv_path_PRELINK="$PRELINK" # Let the user override the test with a path.
6971   ;;
6972   *)
6973   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6974 for as_dir in /sbin /usr/sbin $PATH
6975 do
6976   IFS=$as_save_IFS
6977   test -z "$as_dir" && as_dir=.
6978     for ac_exec_ext in '' $ac_executable_extensions; do
6979   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6980     ac_cv_path_PRELINK="$as_dir/$ac_word$ac_exec_ext"
6981     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6982     break 2
6983   fi
6984 done
6985   done
6986 IFS=$as_save_IFS
6987
6988   test -z "$ac_cv_path_PRELINK" && ac_cv_path_PRELINK="false"
6989   ;;
6990 esac
6991 fi
6992 PRELINK=$ac_cv_path_PRELINK
6993 if test -n "$PRELINK"; then
6994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRELINK" >&5
6995 $as_echo "$PRELINK" >&6; }
6996 else
6997   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6998 $as_echo "no" >&6; }
6999 fi
7000
7001
7002           if test "x$PRELINK" = xfalse
7003           then
7004               as_fn_append wine_warnings "|prelink not found, base address of core dlls won't be set correctly."
7005           fi
7006           ;;
7007       esac
7008
7009     else
7010       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a UnixWare (Solaris) dll" >&5
7011 $as_echo_n "checking whether we can build a UnixWare (Solaris) dll... " >&6; }
7012 if ${ac_cv_c_dll_unixware+:} false; then :
7013   $as_echo_n "(cached) " >&6
7014 else
7015   ac_wine_try_cflags_saved=$CFLAGS
7016 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
7017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7018 /* end confdefs.h.  */
7019 void myfunc() {}
7020 _ACEOF
7021 if ac_fn_c_try_link "$LINENO"; then :
7022   ac_cv_c_dll_unixware="yes"
7023 else
7024   ac_cv_c_dll_unixware="no"
7025 fi
7026 rm -f core conftest.err conftest.$ac_objext \
7027     conftest$ac_exeext conftest.$ac_ext
7028 CFLAGS=$ac_wine_try_cflags_saved
7029 fi
7030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_unixware" >&5
7031 $as_echo "$ac_cv_c_dll_unixware" >&6; }
7032       if test "$ac_cv_c_dll_unixware" = "yes"
7033       then
7034         LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
7035         LDDLLFLAGS="-Wl,-G,-B,symbolic"
7036
7037       else
7038         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build an HP-UX dll" >&5
7039 $as_echo_n "checking whether we can build an HP-UX dll... " >&6; }
7040 if ${ac_cv_c_dll_hpux+:} false; then :
7041   $as_echo_n "(cached) " >&6
7042 else
7043   ac_wine_try_cflags_saved=$CFLAGS
7044 CFLAGS="$CFLAGS -shared"
7045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7046 /* end confdefs.h.  */
7047 void myfunc() {}
7048 _ACEOF
7049 if ac_fn_c_try_link "$LINENO"; then :
7050   ac_cv_c_dll_hpux="yes"
7051 else
7052   ac_cv_c_dll_hpux="no"
7053 fi
7054 rm -f core conftest.err conftest.$ac_objext \
7055     conftest$ac_exeext conftest.$ac_ext
7056 CFLAGS=$ac_wine_try_cflags_saved
7057 fi
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_hpux" >&5
7059 $as_echo "$ac_cv_c_dll_hpux" >&6; }
7060         if test "$ac_cv_c_dll_hpux" = "yes"
7061         then
7062           LIBEXT="sl"
7063           DLLEXT=".sl"
7064           LDDLLFLAGS="-shared -fPIC"
7065           LDSHARED="\$(CC) -shared"
7066         fi
7067       fi
7068     fi
7069     ;;
7070 esac
7071
7072 enable_wineqtdecoder=${enable_wineqtdecoder:-no}
7073 enable_winequartz_drv=${enable_winequartz_drv:-no}
7074
7075 if test "$LIBEXT" = "a"; then
7076   as_fn_error $? "could not find a way to build shared libraries.
7077 It is currently not possible to build Wine without shared library
7078 (.so) support to allow transparent switch between .so and .dll files.
7079 If you are using Linux, you will need a newer binutils.
7080 " "$LINENO" 5
7081 fi
7082
7083 CROSSTEST_DISABLE=\#
7084
7085 if test "$cross_compiling" = "no" -a "x$enable_tests" != xno -a "$LIBEXT" != "dll"
7086 then
7087     case "$host_cpu" in
7088   i[3456789]86*)
7089     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 " ;;
7090   x86_64)
7091     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 " ;;
7092   *)
7093     ac_prefix_list="" ;;
7094 esac
7095 for ac_prog in $ac_prefix_list
7096 do
7097   # Extract the first word of "$ac_prog", so it can be a program name with args.
7098 set dummy $ac_prog; ac_word=$2
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7100 $as_echo_n "checking for $ac_word... " >&6; }
7101 if ${ac_cv_prog_CROSSCC+:} false; then :
7102   $as_echo_n "(cached) " >&6
7103 else
7104   if test -n "$CROSSCC"; then
7105   ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
7106 else
7107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7108 for as_dir in $PATH
7109 do
7110   IFS=$as_save_IFS
7111   test -z "$as_dir" && as_dir=.
7112     for ac_exec_ext in '' $ac_executable_extensions; do
7113   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7114     ac_cv_prog_CROSSCC="$ac_prog"
7115     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7116     break 2
7117   fi
7118 done
7119   done
7120 IFS=$as_save_IFS
7121
7122 fi
7123 fi
7124 CROSSCC=$ac_cv_prog_CROSSCC
7125 if test -n "$CROSSCC"; then
7126   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CROSSCC" >&5
7127 $as_echo "$CROSSCC" >&6; }
7128 else
7129   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7130 $as_echo "no" >&6; }
7131 fi
7132
7133
7134   test -n "$CROSSCC" && break
7135 done
7136 test -n "$CROSSCC" || CROSSCC="false"
7137
7138     if test "$CROSSCC" != "false"
7139     then
7140         ac_save_CC="$CC"
7141         CC="$CROSSCC"
7142         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CROSSCC works" >&5
7143 $as_echo_n "checking whether $CROSSCC works... " >&6; }
7144         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7145 /* end confdefs.h.  */
7146
7147 int
7148 main ()
7149 {
7150
7151   ;
7152   return 0;
7153 }
7154 _ACEOF
7155 if ac_fn_c_try_compile "$LINENO"; then :
7156   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7157 $as_echo "yes" >&6; }
7158                            set x $CROSSCC
7159                            shift
7160                            target=""
7161                            while test $# -ge 1
7162                            do
7163                                case "$1" in
7164                                  *-gcc) target=`expr "$1" : '\(.*\)-gcc'` ;;
7165                                esac
7166                                shift
7167                            done
7168                            if test -n "$target"
7169                            then
7170                                CROSSTEST_DISABLE=""
7171                                CROSSTARGET="$target"
7172
7173                            fi
7174 else
7175   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7176 $as_echo "no" >&6; }
7177 fi
7178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7179         CC="$ac_save_CC"
7180     fi
7181 fi
7182
7183
7184 if test "$ac_cv_header_pthread_h" = "yes"
7185 then
7186     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
7187 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
7188 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
7189   $as_echo_n "(cached) " >&6
7190 else
7191   ac_check_lib_save_LIBS=$LIBS
7192 LIBS="-lpthread  $LIBS"
7193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7194 /* end confdefs.h.  */
7195
7196 /* Override any GCC internal prototype to avoid an error.
7197    Use char because int might match the return type of a GCC
7198    builtin and then its argument prototype would still apply.  */
7199 #ifdef __cplusplus
7200 extern "C"
7201 #endif
7202 char pthread_create ();
7203 int
7204 main ()
7205 {
7206 return pthread_create ();
7207   ;
7208   return 0;
7209 }
7210 _ACEOF
7211 if ac_fn_c_try_link "$LINENO"; then :
7212   ac_cv_lib_pthread_pthread_create=yes
7213 else
7214   ac_cv_lib_pthread_pthread_create=no
7215 fi
7216 rm -f core conftest.err conftest.$ac_objext \
7217     conftest$ac_exeext conftest.$ac_ext
7218 LIBS=$ac_check_lib_save_LIBS
7219 fi
7220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
7221 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
7222 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
7223   LIBPTHREAD="-lpthread"
7224
7225 fi
7226
7227 fi
7228 if test "x$LIBPTHREAD" = "x"; then :
7229   case "x$with_pthread" in
7230   xno) ;;
7231   *)   as_fn_error $? "pthread ${notice_platform}development files not found.
7232 Wine cannot support threads without libpthread.
7233 Use the --without-pthread option if you really want this." "$LINENO" 5 ;;
7234 esac
7235 fi
7236
7237
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
7239 $as_echo_n "checking for X... " >&6; }
7240
7241
7242 # Check whether --with-x was given.
7243 if test "${with_x+set}" = set; then :
7244   withval=$with_x;
7245 fi
7246
7247 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7248 if test "x$with_x" = xno; then
7249   # The user explicitly disabled X.
7250   have_x=disabled
7251 else
7252   case $x_includes,$x_libraries in #(
7253     *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
7254     *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
7255   $as_echo_n "(cached) " >&6
7256 else
7257   # One or both of the vars are not set, and there is no cached value.
7258 ac_x_includes=no ac_x_libraries=no
7259 rm -f -r conftest.dir
7260 if mkdir conftest.dir; then
7261   cd conftest.dir
7262   cat >Imakefile <<'_ACEOF'
7263 incroot:
7264         @echo incroot='${INCROOT}'
7265 usrlibdir:
7266         @echo usrlibdir='${USRLIBDIR}'
7267 libdir:
7268         @echo libdir='${LIBDIR}'
7269 _ACEOF
7270   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
7271     # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7272     for ac_var in incroot usrlibdir libdir; do
7273       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
7274     done
7275     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7276     for ac_extension in a so sl dylib la dll; do
7277       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
7278          test -f "$ac_im_libdir/libX11.$ac_extension"; then
7279         ac_im_usrlibdir=$ac_im_libdir; break
7280       fi
7281     done
7282     # Screen out bogus values from the imake configuration.  They are
7283     # bogus both because they are the default anyway, and because
7284     # using them would break gcc on systems where it needs fixed includes.
7285     case $ac_im_incroot in
7286         /usr/include) ac_x_includes= ;;
7287         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7288     esac
7289     case $ac_im_usrlibdir in
7290         /usr/lib | /usr/lib64 | /lib | /lib64) ;;
7291         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7292     esac
7293   fi
7294   cd ..
7295   rm -f -r conftest.dir
7296 fi
7297
7298 # Standard set of common directories for X headers.
7299 # Check X11 before X11Rn because it is often a symlink to the current release.
7300 ac_x_header_dirs='
7301 /usr/X11/include
7302 /usr/X11R7/include
7303 /usr/X11R6/include
7304 /usr/X11R5/include
7305 /usr/X11R4/include
7306
7307 /usr/include/X11
7308 /usr/include/X11R7
7309 /usr/include/X11R6
7310 /usr/include/X11R5
7311 /usr/include/X11R4
7312
7313 /usr/local/X11/include
7314 /usr/local/X11R7/include
7315 /usr/local/X11R6/include
7316 /usr/local/X11R5/include
7317 /usr/local/X11R4/include
7318
7319 /usr/local/include/X11
7320 /usr/local/include/X11R7
7321 /usr/local/include/X11R6
7322 /usr/local/include/X11R5
7323 /usr/local/include/X11R4
7324
7325 /usr/X386/include
7326 /usr/x386/include
7327 /usr/XFree86/include/X11
7328
7329 /usr/include
7330 /usr/local/include
7331 /usr/unsupported/include
7332 /usr/athena/include
7333 /usr/local/x11r5/include
7334 /usr/lpp/Xamples/include
7335
7336 /usr/openwin/include
7337 /usr/openwin/share/include'
7338
7339 if test "$ac_x_includes" = no; then
7340   # Guess where to find include files, by looking for Xlib.h.
7341   # First, try using that file with no special directory specified.
7342   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7343 /* end confdefs.h.  */
7344 #include <X11/Xlib.h>
7345 _ACEOF
7346 if ac_fn_c_try_cpp "$LINENO"; then :
7347   # We can compile using X headers with no special include directory.
7348 ac_x_includes=
7349 else
7350   for ac_dir in $ac_x_header_dirs; do
7351   if test -r "$ac_dir/X11/Xlib.h"; then
7352     ac_x_includes=$ac_dir
7353     break
7354   fi
7355 done
7356 fi
7357 rm -f conftest.err conftest.i conftest.$ac_ext
7358 fi # $ac_x_includes = no
7359
7360 if test "$ac_x_libraries" = no; then
7361   # Check for the libraries.
7362   # See if we find them without any special options.
7363   # Don't add to $LIBS permanently.
7364   ac_save_LIBS=$LIBS
7365   LIBS="-lX11 $LIBS"
7366   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7367 /* end confdefs.h.  */
7368 #include <X11/Xlib.h>
7369 int
7370 main ()
7371 {
7372 XrmInitialize ()
7373   ;
7374   return 0;
7375 }
7376 _ACEOF
7377 if ac_fn_c_try_link "$LINENO"; then :
7378   LIBS=$ac_save_LIBS
7379 # We can link X programs with no special library path.
7380 ac_x_libraries=
7381 else
7382   LIBS=$ac_save_LIBS
7383 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7384 do
7385   # Don't even attempt the hair of trying to link an X program!
7386   for ac_extension in a so sl dylib la dll; do
7387     if test -r "$ac_dir/libX11.$ac_extension"; then
7388       ac_x_libraries=$ac_dir
7389       break 2
7390     fi
7391   done
7392 done
7393 fi
7394 rm -f core conftest.err conftest.$ac_objext \
7395     conftest$ac_exeext conftest.$ac_ext
7396 fi # $ac_x_libraries = no
7397
7398 case $ac_x_includes,$ac_x_libraries in #(
7399   no,* | *,no | *\'*)
7400     # Didn't find X, or a directory has "'" in its name.
7401     ac_cv_have_x="have_x=no";; #(
7402   *)
7403     # Record where we found X for the cache.
7404     ac_cv_have_x="have_x=yes\
7405         ac_x_includes='$ac_x_includes'\
7406         ac_x_libraries='$ac_x_libraries'"
7407 esac
7408 fi
7409 ;; #(
7410     *) have_x=yes;;
7411   esac
7412   eval "$ac_cv_have_x"
7413 fi # $with_x != no
7414
7415 if test "$have_x" != yes; then
7416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
7417 $as_echo "$have_x" >&6; }
7418   no_x=yes
7419 else
7420   # If each of the values was on the command line, it overrides each guess.
7421   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7422   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7423   # Update the cache value to reflect the command line values.
7424   ac_cv_have_x="have_x=yes\
7425         ac_x_includes='$x_includes'\
7426         ac_x_libraries='$x_libraries'"
7427   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
7428 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
7429 fi
7430
7431 if test "$no_x" = yes; then
7432   # Not all programs may use this symbol, but it does not hurt to define it.
7433
7434 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
7435
7436   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7437 else
7438   if test -n "$x_includes"; then
7439     X_CFLAGS="$X_CFLAGS -I$x_includes"
7440   fi
7441
7442   # It would also be nice to do this for all -L options, not just this one.
7443   if test -n "$x_libraries"; then
7444     X_LIBS="$X_LIBS -L$x_libraries"
7445     # For Solaris; some versions of Sun CC require a space after -R and
7446     # others require no space.  Words are not sufficient . . . .
7447     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
7448 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
7449     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7450     ac_xsave_c_werror_flag=$ac_c_werror_flag
7451     ac_c_werror_flag=yes
7452     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7453 /* end confdefs.h.  */
7454
7455 int
7456 main ()
7457 {
7458
7459   ;
7460   return 0;
7461 }
7462 _ACEOF
7463 if ac_fn_c_try_link "$LINENO"; then :
7464   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7465 $as_echo "no" >&6; }
7466        X_LIBS="$X_LIBS -R$x_libraries"
7467 else
7468   LIBS="$ac_xsave_LIBS -R $x_libraries"
7469        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7470 /* end confdefs.h.  */
7471
7472 int
7473 main ()
7474 {
7475
7476   ;
7477   return 0;
7478 }
7479 _ACEOF
7480 if ac_fn_c_try_link "$LINENO"; then :
7481   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7482 $as_echo "yes" >&6; }
7483           X_LIBS="$X_LIBS -R $x_libraries"
7484 else
7485   { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
7486 $as_echo "neither works" >&6; }
7487 fi
7488 rm -f core conftest.err conftest.$ac_objext \
7489     conftest$ac_exeext conftest.$ac_ext
7490 fi
7491 rm -f core conftest.err conftest.$ac_objext \
7492     conftest$ac_exeext conftest.$ac_ext
7493     ac_c_werror_flag=$ac_xsave_c_werror_flag
7494     LIBS=$ac_xsave_LIBS
7495   fi
7496
7497   # Check for system-dependent libraries X programs must link with.
7498   # Do this before checking for the system-independent R6 libraries
7499   # (-lICE), since we may need -lsocket or whatever for X linking.
7500
7501   if test "$ISC" = yes; then
7502     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7503   else
7504     # Martyn Johnson says this is needed for Ultrix, if the X
7505     # libraries were built with DECnet support.  And Karl Berry says
7506     # the Alpha needs dnet_stub (dnet does not exist).
7507     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
7508     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7509 /* end confdefs.h.  */
7510
7511 /* Override any GCC internal prototype to avoid an error.
7512    Use char because int might match the return type of a GCC
7513    builtin and then its argument prototype would still apply.  */
7514 #ifdef __cplusplus
7515 extern "C"
7516 #endif
7517 char XOpenDisplay ();
7518 int
7519 main ()
7520 {
7521 return XOpenDisplay ();
7522   ;
7523   return 0;
7524 }
7525 _ACEOF
7526 if ac_fn_c_try_link "$LINENO"; then :
7527
7528 else
7529   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
7530 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
7531 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
7532   $as_echo_n "(cached) " >&6
7533 else
7534   ac_check_lib_save_LIBS=$LIBS
7535 LIBS="-ldnet  $LIBS"
7536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7537 /* end confdefs.h.  */
7538
7539 /* Override any GCC internal prototype to avoid an error.
7540    Use char because int might match the return type of a GCC
7541    builtin and then its argument prototype would still apply.  */
7542 #ifdef __cplusplus
7543 extern "C"
7544 #endif
7545 char dnet_ntoa ();
7546 int
7547 main ()
7548 {
7549 return dnet_ntoa ();
7550   ;
7551   return 0;
7552 }
7553 _ACEOF
7554 if ac_fn_c_try_link "$LINENO"; then :
7555   ac_cv_lib_dnet_dnet_ntoa=yes
7556 else
7557   ac_cv_lib_dnet_dnet_ntoa=no
7558 fi
7559 rm -f core conftest.err conftest.$ac_objext \
7560     conftest$ac_exeext conftest.$ac_ext
7561 LIBS=$ac_check_lib_save_LIBS
7562 fi
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7564 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
7565 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
7566   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7567 fi
7568
7569     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7570       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
7571 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
7572 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
7573   $as_echo_n "(cached) " >&6
7574 else
7575   ac_check_lib_save_LIBS=$LIBS
7576 LIBS="-ldnet_stub  $LIBS"
7577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7578 /* end confdefs.h.  */
7579
7580 /* Override any GCC internal prototype to avoid an error.
7581    Use char because int might match the return type of a GCC
7582    builtin and then its argument prototype would still apply.  */
7583 #ifdef __cplusplus
7584 extern "C"
7585 #endif
7586 char dnet_ntoa ();
7587 int
7588 main ()
7589 {
7590 return dnet_ntoa ();
7591   ;
7592   return 0;
7593 }
7594 _ACEOF
7595 if ac_fn_c_try_link "$LINENO"; then :
7596   ac_cv_lib_dnet_stub_dnet_ntoa=yes
7597 else
7598   ac_cv_lib_dnet_stub_dnet_ntoa=no
7599 fi
7600 rm -f core conftest.err conftest.$ac_objext \
7601     conftest$ac_exeext conftest.$ac_ext
7602 LIBS=$ac_check_lib_save_LIBS
7603 fi
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
7605 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
7606 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
7607   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7608 fi
7609
7610     fi
7611 fi
7612 rm -f core conftest.err conftest.$ac_objext \
7613     conftest$ac_exeext conftest.$ac_ext
7614     LIBS="$ac_xsave_LIBS"
7615
7616     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7617     # to get the SysV transport functions.
7618     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7619     # needs -lnsl.
7620     # The nsl library prevents programs from opening the X display
7621     # on Irix 5.2, according to T.E. Dickey.
7622     # The functions gethostbyname, getservbyname, and inet_addr are
7623     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
7624     ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
7625 if test "x$ac_cv_func_gethostbyname" = xyes; then :
7626
7627 fi
7628
7629     if test $ac_cv_func_gethostbyname = no; then
7630       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
7631 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
7632 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
7633   $as_echo_n "(cached) " >&6
7634 else
7635   ac_check_lib_save_LIBS=$LIBS
7636 LIBS="-lnsl  $LIBS"
7637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7638 /* end confdefs.h.  */
7639
7640 /* Override any GCC internal prototype to avoid an error.
7641    Use char because int might match the return type of a GCC
7642    builtin and then its argument prototype would still apply.  */
7643 #ifdef __cplusplus
7644 extern "C"
7645 #endif
7646 char gethostbyname ();
7647 int
7648 main ()
7649 {
7650 return gethostbyname ();
7651   ;
7652   return 0;
7653 }
7654 _ACEOF
7655 if ac_fn_c_try_link "$LINENO"; then :
7656   ac_cv_lib_nsl_gethostbyname=yes
7657 else
7658   ac_cv_lib_nsl_gethostbyname=no
7659 fi
7660 rm -f core conftest.err conftest.$ac_objext \
7661     conftest$ac_exeext conftest.$ac_ext
7662 LIBS=$ac_check_lib_save_LIBS
7663 fi
7664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
7665 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
7666 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
7667   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7668 fi
7669
7670       if test $ac_cv_lib_nsl_gethostbyname = no; then
7671         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
7672 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
7673 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
7674   $as_echo_n "(cached) " >&6
7675 else
7676   ac_check_lib_save_LIBS=$LIBS
7677 LIBS="-lbsd  $LIBS"
7678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7679 /* end confdefs.h.  */
7680
7681 /* Override any GCC internal prototype to avoid an error.
7682    Use char because int might match the return type of a GCC
7683    builtin and then its argument prototype would still apply.  */
7684 #ifdef __cplusplus
7685 extern "C"
7686 #endif
7687 char gethostbyname ();
7688 int
7689 main ()
7690 {
7691 return gethostbyname ();
7692   ;
7693   return 0;
7694 }
7695 _ACEOF
7696 if ac_fn_c_try_link "$LINENO"; then :
7697   ac_cv_lib_bsd_gethostbyname=yes
7698 else
7699   ac_cv_lib_bsd_gethostbyname=no
7700 fi
7701 rm -f core conftest.err conftest.$ac_objext \
7702     conftest$ac_exeext conftest.$ac_ext
7703 LIBS=$ac_check_lib_save_LIBS
7704 fi
7705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
7706 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
7707 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
7708   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
7709 fi
7710
7711       fi
7712     fi
7713
7714     # lieder@skyler.mavd.honeywell.com says without -lsocket,
7715     # socket/setsockopt and other routines are undefined under SCO ODT
7716     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
7717     # on later versions), says Simon Leinen: it contains gethostby*
7718     # variants that don't use the name server (or something).  -lsocket
7719     # must be given before -lnsl if both are needed.  We assume that
7720     # if connect needs -lnsl, so does gethostbyname.
7721     ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
7722 if test "x$ac_cv_func_connect" = xyes; then :
7723
7724 fi
7725
7726     if test $ac_cv_func_connect = no; then
7727       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
7728 $as_echo_n "checking for connect in -lsocket... " >&6; }
7729 if ${ac_cv_lib_socket_connect+:} false; then :
7730   $as_echo_n "(cached) " >&6
7731 else
7732   ac_check_lib_save_LIBS=$LIBS
7733 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7735 /* end confdefs.h.  */
7736
7737 /* Override any GCC internal prototype to avoid an error.
7738    Use char because int might match the return type of a GCC
7739    builtin and then its argument prototype would still apply.  */
7740 #ifdef __cplusplus
7741 extern "C"
7742 #endif
7743 char connect ();
7744 int
7745 main ()
7746 {
7747 return connect ();
7748   ;
7749   return 0;
7750 }
7751 _ACEOF
7752 if ac_fn_c_try_link "$LINENO"; then :
7753   ac_cv_lib_socket_connect=yes
7754 else
7755   ac_cv_lib_socket_connect=no
7756 fi
7757 rm -f core conftest.err conftest.$ac_objext \
7758     conftest$ac_exeext conftest.$ac_ext
7759 LIBS=$ac_check_lib_save_LIBS
7760 fi
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
7762 $as_echo "$ac_cv_lib_socket_connect" >&6; }
7763 if test "x$ac_cv_lib_socket_connect" = xyes; then :
7764   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7765 fi
7766
7767     fi
7768
7769     # Guillermo Gomez says -lposix is necessary on A/UX.
7770     ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
7771 if test "x$ac_cv_func_remove" = xyes; then :
7772
7773 fi
7774
7775     if test $ac_cv_func_remove = no; then
7776       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
7777 $as_echo_n "checking for remove in -lposix... " >&6; }
7778 if ${ac_cv_lib_posix_remove+:} false; then :
7779   $as_echo_n "(cached) " >&6
7780 else
7781   ac_check_lib_save_LIBS=$LIBS
7782 LIBS="-lposix  $LIBS"
7783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7784 /* end confdefs.h.  */
7785
7786 /* Override any GCC internal prototype to avoid an error.
7787    Use char because int might match the return type of a GCC
7788    builtin and then its argument prototype would still apply.  */
7789 #ifdef __cplusplus
7790 extern "C"
7791 #endif
7792 char remove ();
7793 int
7794 main ()
7795 {
7796 return remove ();
7797   ;
7798   return 0;
7799 }
7800 _ACEOF
7801 if ac_fn_c_try_link "$LINENO"; then :
7802   ac_cv_lib_posix_remove=yes
7803 else
7804   ac_cv_lib_posix_remove=no
7805 fi
7806 rm -f core conftest.err conftest.$ac_objext \
7807     conftest$ac_exeext conftest.$ac_ext
7808 LIBS=$ac_check_lib_save_LIBS
7809 fi
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
7811 $as_echo "$ac_cv_lib_posix_remove" >&6; }
7812 if test "x$ac_cv_lib_posix_remove" = xyes; then :
7813   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7814 fi
7815
7816     fi
7817
7818     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7819     ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
7820 if test "x$ac_cv_func_shmat" = xyes; then :
7821
7822 fi
7823
7824     if test $ac_cv_func_shmat = no; then
7825       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
7826 $as_echo_n "checking for shmat in -lipc... " >&6; }
7827 if ${ac_cv_lib_ipc_shmat+:} false; then :
7828   $as_echo_n "(cached) " >&6
7829 else
7830   ac_check_lib_save_LIBS=$LIBS
7831 LIBS="-lipc  $LIBS"
7832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7833 /* end confdefs.h.  */
7834
7835 /* Override any GCC internal prototype to avoid an error.
7836    Use char because int might match the return type of a GCC
7837    builtin and then its argument prototype would still apply.  */
7838 #ifdef __cplusplus
7839 extern "C"
7840 #endif
7841 char shmat ();
7842 int
7843 main ()
7844 {
7845 return shmat ();
7846   ;
7847   return 0;
7848 }
7849 _ACEOF
7850 if ac_fn_c_try_link "$LINENO"; then :
7851   ac_cv_lib_ipc_shmat=yes
7852 else
7853   ac_cv_lib_ipc_shmat=no
7854 fi
7855 rm -f core conftest.err conftest.$ac_objext \
7856     conftest$ac_exeext conftest.$ac_ext
7857 LIBS=$ac_check_lib_save_LIBS
7858 fi
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
7860 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
7861 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
7862   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7863 fi
7864
7865     fi
7866   fi
7867
7868   # Check for libraries that X11R6 Xt/Xaw programs need.
7869   ac_save_LDFLAGS=$LDFLAGS
7870   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7871   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7872   # check for ICE first), but we must link in the order -lSM -lICE or
7873   # we get undefined symbols.  So assume we have SM if we have ICE.
7874   # These have to be linked with before -lX11, unlike the other
7875   # libraries we check for below, so use a different variable.
7876   # John Interrante, Karl Berry
7877   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
7878 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
7879 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
7880   $as_echo_n "(cached) " >&6
7881 else
7882   ac_check_lib_save_LIBS=$LIBS
7883 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7885 /* end confdefs.h.  */
7886
7887 /* Override any GCC internal prototype to avoid an error.
7888    Use char because int might match the return type of a GCC
7889    builtin and then its argument prototype would still apply.  */
7890 #ifdef __cplusplus
7891 extern "C"
7892 #endif
7893 char IceConnectionNumber ();
7894 int
7895 main ()
7896 {
7897 return IceConnectionNumber ();
7898   ;
7899   return 0;
7900 }
7901 _ACEOF
7902 if ac_fn_c_try_link "$LINENO"; then :
7903   ac_cv_lib_ICE_IceConnectionNumber=yes
7904 else
7905   ac_cv_lib_ICE_IceConnectionNumber=no
7906 fi
7907 rm -f core conftest.err conftest.$ac_objext \
7908     conftest$ac_exeext conftest.$ac_ext
7909 LIBS=$ac_check_lib_save_LIBS
7910 fi
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7912 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
7913 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
7914   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7915 fi
7916
7917   LDFLAGS=$ac_save_LDFLAGS
7918
7919 fi
7920
7921
7922 if test "$have_x" = "yes"
7923 then
7924     XLIB="-lX11"
7925     ac_save_CPPFLAGS="$CPPFLAGS"
7926     CPPFLAGS="$CPPFLAGS $X_CFLAGS"
7927
7928     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lX11" >&5
7929 $as_echo_n "checking for -lX11... " >&6; }
7930 if ${ac_cv_lib_soname_X11+:} false; then :
7931   $as_echo_n "(cached) " >&6
7932 else
7933   ac_check_soname_save_LIBS=$LIBS
7934 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
7935   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7936 /* end confdefs.h.  */
7937
7938 /* Override any GCC internal prototype to avoid an error.
7939    Use char because int might match the return type of a GCC
7940    builtin and then its argument prototype would still apply.  */
7941 #ifdef __cplusplus
7942 extern "C"
7943 #endif
7944 char XCreateWindow ();
7945 int
7946 main ()
7947 {
7948 return XCreateWindow ();
7949   ;
7950   return 0;
7951 }
7952 _ACEOF
7953 if ac_fn_c_try_link "$LINENO"; then :
7954   case "$LIBEXT" in
7955     dll) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest.exe | grep "X11" | sed -e "s/dll.*/dll/"';2,$d'` ;;
7956     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'` ;;
7957     *) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep "libX11\\.$LIBEXT" | sed -e "s/^.*\(libX11\.$LIBEXT[^     ]*\).*$/\1/"';2,$d'` ;;
7958   esac
7959 fi
7960 rm -f core conftest.err conftest.$ac_objext \
7961     conftest$ac_exeext conftest.$ac_ext
7962   LIBS=$ac_check_soname_save_LIBS
7963 fi
7964 if test "x$ac_cv_lib_soname_X11" = "x"; then :
7965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7966 $as_echo "not found" >&6; }
7967
7968 else
7969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_X11" >&5
7970 $as_echo "$ac_cv_lib_soname_X11" >&6; }
7971
7972 cat >>confdefs.h <<_ACEOF
7973 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
7974 _ACEOF
7975
7976
7977 fi
7978     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXext" >&5
7979 $as_echo_n "checking for -lXext... " >&6; }
7980 if ${ac_cv_lib_soname_Xext+:} false; then :
7981   $as_echo_n "(cached) " >&6
7982 else
7983   ac_check_soname_save_LIBS=$LIBS
7984 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
7985   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7986 /* end confdefs.h.  */
7987
7988 /* Override any GCC internal prototype to avoid an error.
7989    Use char because int might match the return type of a GCC
7990    builtin and then its argument prototype would still apply.  */
7991 #ifdef __cplusplus
7992 extern "C"
7993 #endif
7994 char XextCreateExtension ();
7995 int
7996 main ()
7997 {
7998 return XextCreateExtension ();
7999   ;
8000   return 0;
8001 }
8002 _ACEOF
8003 if ac_fn_c_try_link "$LINENO"; then :
8004   case "$LIBEXT" in
8005     dll) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest.exe | grep "Xext" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8006     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'` ;;
8007     *) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXext\\.$LIBEXT" | sed -e "s/^.*\(libXext\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
8008   esac
8009 fi
8010 rm -f core conftest.err conftest.$ac_objext \
8011     conftest$ac_exeext conftest.$ac_ext
8012   LIBS=$ac_check_soname_save_LIBS
8013 fi
8014 if test "x$ac_cv_lib_soname_Xext" = "x"; then :
8015   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8016 $as_echo "not found" >&6; }
8017
8018 else
8019   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xext" >&5
8020 $as_echo "$ac_cv_lib_soname_Xext" >&6; }
8021
8022 cat >>confdefs.h <<_ACEOF
8023 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
8024 _ACEOF
8025
8026        XLIB="-lXext $XLIB"
8027 fi
8028
8029         for ac_header in X11/Xlib.h \
8030                       X11/XKBlib.h \
8031                       X11/Xutil.h \
8032                       X11/Xcursor/Xcursor.h \
8033                       X11/extensions/shape.h \
8034                       X11/extensions/XInput.h \
8035                       X11/extensions/XInput2.h \
8036                       X11/extensions/Xcomposite.h \
8037                       X11/extensions/Xinerama.h \
8038                       X11/extensions/Xrandr.h \
8039                       X11/extensions/Xrender.h \
8040                       X11/extensions/xf86vmode.h \
8041                       X11/extensions/xf86vmproto.h
8042 do :
8043   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8044 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_X11_XLIB_H
8045 # include <X11/Xlib.h>
8046 #endif
8047 #ifdef HAVE_X11_XUTIL_H
8048 # include <X11/Xutil.h>
8049 #endif
8050 "
8051 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8052   cat >>confdefs.h <<_ACEOF
8053 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8054 _ACEOF
8055
8056 fi
8057
8058 done
8059
8060
8061                 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
8062         then
8063               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbQueryExtension in -lX11" >&5
8064 $as_echo_n "checking for XkbQueryExtension in -lX11... " >&6; }
8065 if ${ac_cv_lib_X11_XkbQueryExtension+:} false; then :
8066   $as_echo_n "(cached) " >&6
8067 else
8068   ac_check_lib_save_LIBS=$LIBS
8069 LIBS="-lX11 $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8071 /* end confdefs.h.  */
8072
8073 /* Override any GCC internal prototype to avoid an error.
8074    Use char because int might match the return type of a GCC
8075    builtin and then its argument prototype would still apply.  */
8076 #ifdef __cplusplus
8077 extern "C"
8078 #endif
8079 char XkbQueryExtension ();
8080 int
8081 main ()
8082 {
8083 return XkbQueryExtension ();
8084   ;
8085   return 0;
8086 }
8087 _ACEOF
8088 if ac_fn_c_try_link "$LINENO"; then :
8089   ac_cv_lib_X11_XkbQueryExtension=yes
8090 else
8091   ac_cv_lib_X11_XkbQueryExtension=no
8092 fi
8093 rm -f core conftest.err conftest.$ac_objext \
8094     conftest$ac_exeext conftest.$ac_ext
8095 LIBS=$ac_check_lib_save_LIBS
8096 fi
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
8098 $as_echo "$ac_cv_lib_X11_XkbQueryExtension" >&6; }
8099 if test "x$ac_cv_lib_X11_XkbQueryExtension" = xyes; then :
8100
8101 $as_echo "#define HAVE_XKB 1" >>confdefs.h
8102
8103 fi
8104
8105         fi
8106
8107                 if test "$ac_cv_header_X11_Xcursor_Xcursor_h" = "yes"
8108         then
8109             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcursor" >&5
8110 $as_echo_n "checking for -lXcursor... " >&6; }
8111 if ${ac_cv_lib_soname_Xcursor+:} false; then :
8112   $as_echo_n "(cached) " >&6
8113 else
8114   ac_check_soname_save_LIBS=$LIBS
8115 LIBS="-lXcursor $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8116   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8117 /* end confdefs.h.  */
8118
8119 /* Override any GCC internal prototype to avoid an error.
8120    Use char because int might match the return type of a GCC
8121    builtin and then its argument prototype would still apply.  */
8122 #ifdef __cplusplus
8123 extern "C"
8124 #endif
8125 char XcursorImageLoadCursor ();
8126 int
8127 main ()
8128 {
8129 return XcursorImageLoadCursor ();
8130   ;
8131   return 0;
8132 }
8133 _ACEOF
8134 if ac_fn_c_try_link "$LINENO"; then :
8135   case "$LIBEXT" in
8136     dll) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest.exe | grep "Xcursor" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8137     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'` ;;
8138     *) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXcursor\\.$LIBEXT" | sed -e "s/^.*\(libXcursor\.$LIBEXT[^         ]*\).*$/\1/"';2,$d'` ;;
8139   esac
8140 fi
8141 rm -f core conftest.err conftest.$ac_objext \
8142     conftest$ac_exeext conftest.$ac_ext
8143   LIBS=$ac_check_soname_save_LIBS
8144 fi
8145 if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
8146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8147 $as_echo "not found" >&6; }
8148
8149 else
8150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcursor" >&5
8151 $as_echo "$ac_cv_lib_soname_Xcursor" >&6; }
8152
8153 cat >>confdefs.h <<_ACEOF
8154 #define SONAME_LIBXCURSOR "$ac_cv_lib_soname_Xcursor"
8155 _ACEOF
8156
8157
8158 fi
8159         fi
8160         if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
8161   case "x$with_xcursor" in
8162   x)   as_fn_append wine_notices "|libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported." ;;
8163   xno) ;;
8164   *)   as_fn_error $? "libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported.
8165 This is an error since --with-xcursor was requested." "$LINENO" 5 ;;
8166 esac
8167 fi
8168
8169                 if test "$ac_cv_header_X11_extensions_XInput_h" = "yes"
8170         then
8171             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXi" >&5
8172 $as_echo_n "checking for -lXi... " >&6; }
8173 if ${ac_cv_lib_soname_Xi+:} false; then :
8174   $as_echo_n "(cached) " >&6
8175 else
8176   ac_check_soname_save_LIBS=$LIBS
8177 LIBS="-lXi $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8178   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8179 /* end confdefs.h.  */
8180
8181 /* Override any GCC internal prototype to avoid an error.
8182    Use char because int might match the return type of a GCC
8183    builtin and then its argument prototype would still apply.  */
8184 #ifdef __cplusplus
8185 extern "C"
8186 #endif
8187 char XOpenDevice ();
8188 int
8189 main ()
8190 {
8191 return XOpenDevice ();
8192   ;
8193   return 0;
8194 }
8195 _ACEOF
8196 if ac_fn_c_try_link "$LINENO"; then :
8197   case "$LIBEXT" in
8198     dll) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest.exe | grep "Xi" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8199     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'` ;;
8200     *) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXi\\.$LIBEXT" | sed -e "s/^.*\(libXi\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'` ;;
8201   esac
8202 fi
8203 rm -f core conftest.err conftest.$ac_objext \
8204     conftest$ac_exeext conftest.$ac_ext
8205   LIBS=$ac_check_soname_save_LIBS
8206 fi
8207 if test "x$ac_cv_lib_soname_Xi" = "x"; then :
8208   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8209 $as_echo "not found" >&6; }
8210
8211 else
8212   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xi" >&5
8213 $as_echo "$ac_cv_lib_soname_Xi" >&6; }
8214
8215 cat >>confdefs.h <<_ACEOF
8216 #define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
8217 _ACEOF
8218
8219
8220 fi
8221         fi
8222         if test "x$ac_cv_lib_soname_Xi" = "x"; then :
8223   case "x$with_xinput" in
8224   x)   as_fn_append wine_notices "|libxi ${notice_platform}development files not found, the Xinput extension won't be supported." ;;
8225   xno) ;;
8226   *)   as_fn_error $? "libxi ${notice_platform}development files not found, the Xinput extension won't be supported.
8227 This is an error since --with-xinput was requested." "$LINENO" 5 ;;
8228 esac
8229 fi
8230
8231                 if test "x$ac_cv_lib_soname_Xi" != x
8232         then
8233             if test "$ac_cv_header_X11_extensions_XInput2_h" != "yes"; then :
8234   case "x$with_xinput2" in
8235   x)   as_fn_append wine_notices "|XInput2 headers not found, the XInput 2 extension won't be supported." ;;
8236   xno) ;;
8237   *)   as_fn_error $? "XInput2 headers not found, the XInput 2 extension won't be supported.
8238 This is an error since --with-xinput2 was requested." "$LINENO" 5 ;;
8239 esac
8240 fi
8241         fi
8242
8243                 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
8244         then
8245               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
8246 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
8247 if ${ac_cv_lib_Xext_XShapeQueryExtension+:} false; then :
8248   $as_echo_n "(cached) " >&6
8249 else
8250   ac_check_lib_save_LIBS=$LIBS
8251 LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8253 /* end confdefs.h.  */
8254
8255 /* Override any GCC internal prototype to avoid an error.
8256    Use char because int might match the return type of a GCC
8257    builtin and then its argument prototype would still apply.  */
8258 #ifdef __cplusplus
8259 extern "C"
8260 #endif
8261 char XShapeQueryExtension ();
8262 int
8263 main ()
8264 {
8265 return XShapeQueryExtension ();
8266   ;
8267   return 0;
8268 }
8269 _ACEOF
8270 if ac_fn_c_try_link "$LINENO"; then :
8271   ac_cv_lib_Xext_XShapeQueryExtension=yes
8272 else
8273   ac_cv_lib_Xext_XShapeQueryExtension=no
8274 fi
8275 rm -f core conftest.err conftest.$ac_objext \
8276     conftest$ac_exeext conftest.$ac_ext
8277 LIBS=$ac_check_lib_save_LIBS
8278 fi
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8280 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
8281 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = xyes; then :
8282
8283 $as_echo "#define HAVE_LIBXSHAPE 1" >>confdefs.h
8284
8285 fi
8286
8287         fi
8288         if test "$ac_cv_lib_Xext_XShapeQueryExtension" != "yes"; then :
8289   case "x$with_xshape" in
8290   x)   as_fn_append wine_notices "|XShape ${notice_platform}development files not found, XShape won't be supported." ;;
8291   xno) ;;
8292   *)   as_fn_error $? "XShape ${notice_platform}development files not found, XShape won't be supported.
8293 This is an error since --with-xshape was requested." "$LINENO" 5 ;;
8294 esac
8295 fi
8296
8297                 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes" -o "$ac_cv_header_X11_extensions_xf86vmproto_h" = "yes"
8298         then
8299             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXxf86vm" >&5
8300 $as_echo_n "checking for -lXxf86vm... " >&6; }
8301 if ${ac_cv_lib_soname_Xxf86vm+:} false; then :
8302   $as_echo_n "(cached) " >&6
8303 else
8304   ac_check_soname_save_LIBS=$LIBS
8305 LIBS="-lXxf86vm $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8306   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8307 /* end confdefs.h.  */
8308
8309 /* Override any GCC internal prototype to avoid an error.
8310    Use char because int might match the return type of a GCC
8311    builtin and then its argument prototype would still apply.  */
8312 #ifdef __cplusplus
8313 extern "C"
8314 #endif
8315 char XF86VidModeQueryExtension ();
8316 int
8317 main ()
8318 {
8319 return XF86VidModeQueryExtension ();
8320   ;
8321   return 0;
8322 }
8323 _ACEOF
8324 if ac_fn_c_try_link "$LINENO"; then :
8325   case "$LIBEXT" in
8326     dll) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest.exe | grep "Xxf86vm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8327     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'` ;;
8328     *) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXxf86vm\\.$LIBEXT" | sed -e "s/^.*\(libXxf86vm\.$LIBEXT[^         ]*\).*$/\1/"';2,$d'` ;;
8329   esac
8330 fi
8331 rm -f core conftest.err conftest.$ac_objext \
8332     conftest$ac_exeext conftest.$ac_ext
8333   LIBS=$ac_check_soname_save_LIBS
8334 fi
8335 if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
8336   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8337 $as_echo "not found" >&6; }
8338
8339 else
8340   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xxf86vm" >&5
8341 $as_echo "$ac_cv_lib_soname_Xxf86vm" >&6; }
8342
8343 cat >>confdefs.h <<_ACEOF
8344 #define SONAME_LIBXXF86VM "$ac_cv_lib_soname_Xxf86vm"
8345 _ACEOF
8346
8347
8348 fi
8349         fi
8350         if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
8351   case "x$with_xxf86vm" in
8352   x)   as_fn_append wine_notices "|libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported." ;;
8353   xno) ;;
8354   *)   as_fn_error $? "libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported.
8355 This is an error since --with-xxf86vm was requested." "$LINENO" 5 ;;
8356 esac
8357 fi
8358
8359                 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"
8360         then
8361             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrender" >&5
8362 $as_echo_n "checking for -lXrender... " >&6; }
8363 if ${ac_cv_lib_soname_Xrender+:} false; then :
8364   $as_echo_n "(cached) " >&6
8365 else
8366   ac_check_soname_save_LIBS=$LIBS
8367 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8368   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8369 /* end confdefs.h.  */
8370
8371 /* Override any GCC internal prototype to avoid an error.
8372    Use char because int might match the return type of a GCC
8373    builtin and then its argument prototype would still apply.  */
8374 #ifdef __cplusplus
8375 extern "C"
8376 #endif
8377 char XRenderQueryExtension ();
8378 int
8379 main ()
8380 {
8381 return XRenderQueryExtension ();
8382   ;
8383   return 0;
8384 }
8385 _ACEOF
8386 if ac_fn_c_try_link "$LINENO"; then :
8387   case "$LIBEXT" in
8388     dll) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest.exe | grep "Xrender" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8389     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'` ;;
8390     *) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXrender\\.$LIBEXT" | sed -e "s/^.*\(libXrender\.$LIBEXT[^         ]*\).*$/\1/"';2,$d'` ;;
8391   esac
8392 fi
8393 rm -f core conftest.err conftest.$ac_objext \
8394     conftest$ac_exeext conftest.$ac_ext
8395   LIBS=$ac_check_soname_save_LIBS
8396 fi
8397 if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
8398   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8399 $as_echo "not found" >&6; }
8400
8401 else
8402   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrender" >&5
8403 $as_echo "$ac_cv_lib_soname_Xrender" >&6; }
8404
8405 cat >>confdefs.h <<_ACEOF
8406 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
8407 _ACEOF
8408
8409        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderSetPictureTransform in -lXrender" >&5
8410 $as_echo_n "checking for XRenderSetPictureTransform in -lXrender... " >&6; }
8411 if ${ac_cv_lib_Xrender_XRenderSetPictureTransform+:} false; then :
8412   $as_echo_n "(cached) " >&6
8413 else
8414   ac_check_lib_save_LIBS=$LIBS
8415 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8417 /* end confdefs.h.  */
8418
8419 /* Override any GCC internal prototype to avoid an error.
8420    Use char because int might match the return type of a GCC
8421    builtin and then its argument prototype would still apply.  */
8422 #ifdef __cplusplus
8423 extern "C"
8424 #endif
8425 char XRenderSetPictureTransform ();
8426 int
8427 main ()
8428 {
8429 return XRenderSetPictureTransform ();
8430   ;
8431   return 0;
8432 }
8433 _ACEOF
8434 if ac_fn_c_try_link "$LINENO"; then :
8435   ac_cv_lib_Xrender_XRenderSetPictureTransform=yes
8436 else
8437   ac_cv_lib_Xrender_XRenderSetPictureTransform=no
8438 fi
8439 rm -f core conftest.err conftest.$ac_objext \
8440     conftest$ac_exeext conftest.$ac_ext
8441 LIBS=$ac_check_lib_save_LIBS
8442 fi
8443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5
8444 $as_echo "$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6; }
8445 if test "x$ac_cv_lib_Xrender_XRenderSetPictureTransform" = xyes; then :
8446
8447 $as_echo "#define HAVE_XRENDERSETPICTURETRANSFORM 1" >>confdefs.h
8448
8449 fi
8450
8451                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderCreateLinearGradient in -lXrender" >&5
8452 $as_echo_n "checking for XRenderCreateLinearGradient in -lXrender... " >&6; }
8453 if ${ac_cv_lib_Xrender_XRenderCreateLinearGradient+:} false; then :
8454   $as_echo_n "(cached) " >&6
8455 else
8456   ac_check_lib_save_LIBS=$LIBS
8457 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8459 /* end confdefs.h.  */
8460
8461 /* Override any GCC internal prototype to avoid an error.
8462    Use char because int might match the return type of a GCC
8463    builtin and then its argument prototype would still apply.  */
8464 #ifdef __cplusplus
8465 extern "C"
8466 #endif
8467 char XRenderCreateLinearGradient ();
8468 int
8469 main ()
8470 {
8471 return XRenderCreateLinearGradient ();
8472   ;
8473   return 0;
8474 }
8475 _ACEOF
8476 if ac_fn_c_try_link "$LINENO"; then :
8477   ac_cv_lib_Xrender_XRenderCreateLinearGradient=yes
8478 else
8479   ac_cv_lib_Xrender_XRenderCreateLinearGradient=no
8480 fi
8481 rm -f core conftest.err conftest.$ac_objext \
8482     conftest$ac_exeext conftest.$ac_ext
8483 LIBS=$ac_check_lib_save_LIBS
8484 fi
8485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderCreateLinearGradient" >&5
8486 $as_echo "$ac_cv_lib_Xrender_XRenderCreateLinearGradient" >&6; }
8487 if test "x$ac_cv_lib_Xrender_XRenderCreateLinearGradient" = xyes; then :
8488
8489 $as_echo "#define HAVE_XRENDERCREATELINEARGRADIENT 1" >>confdefs.h
8490
8491 fi
8492
8493 fi
8494
8495         fi
8496         if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
8497   case "x$with_xrender" in
8498   x)   as_fn_append wine_warnings "|libxrender ${notice_platform}development files not found, XRender won't be supported." ;;
8499   xno) ;;
8500   *)   as_fn_error $? "libxrender ${notice_platform}development files not found, XRender won't be supported.
8501 This is an error since --with-xrender was requested." "$LINENO" 5 ;;
8502 esac
8503 fi
8504
8505                 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes" -a "x$ac_cv_lib_soname_Xrender" != "x"
8506         then
8507                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8508 /* end confdefs.h.  */
8509 #include <X11/Xlib.h>
8510 #include <X11/extensions/Xrandr.h>
8511 int
8512 main ()
8513 {
8514 static typeof(XRRSetScreenConfigAndRate) * func; if (func) return 0;
8515   ;
8516   return 0;
8517 }
8518 _ACEOF
8519 if ac_fn_c_try_compile "$LINENO"; then :
8520   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrandr" >&5
8521 $as_echo_n "checking for -lXrandr... " >&6; }
8522 if ${ac_cv_lib_soname_Xrandr+:} false; then :
8523   $as_echo_n "(cached) " >&6
8524 else
8525   ac_check_soname_save_LIBS=$LIBS
8526 LIBS="-lXrandr $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8527   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8528 /* end confdefs.h.  */
8529
8530 /* Override any GCC internal prototype to avoid an error.
8531    Use char because int might match the return type of a GCC
8532    builtin and then its argument prototype would still apply.  */
8533 #ifdef __cplusplus
8534 extern "C"
8535 #endif
8536 char XRRQueryExtension ();
8537 int
8538 main ()
8539 {
8540 return XRRQueryExtension ();
8541   ;
8542   return 0;
8543 }
8544 _ACEOF
8545 if ac_fn_c_try_link "$LINENO"; then :
8546   case "$LIBEXT" in
8547     dll) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest.exe | grep "Xrandr" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8548     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'` ;;
8549     *) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXrandr\\.$LIBEXT" | sed -e "s/^.*\(libXrandr\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'` ;;
8550   esac
8551 fi
8552 rm -f core conftest.err conftest.$ac_objext \
8553     conftest$ac_exeext conftest.$ac_ext
8554   LIBS=$ac_check_soname_save_LIBS
8555 fi
8556 if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
8557   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8558 $as_echo "not found" >&6; }
8559
8560 else
8561   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrandr" >&5
8562 $as_echo "$ac_cv_lib_soname_Xrandr" >&6; }
8563
8564 cat >>confdefs.h <<_ACEOF
8565 #define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
8566 _ACEOF
8567
8568
8569 fi
8570 fi
8571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8572         fi
8573         if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
8574   case "x$with_xrandr" in
8575   x)   as_fn_append wine_notices "|libxrandr ${notice_platform}development files not found, XRandr won't be supported." ;;
8576   xno) ;;
8577   *)   as_fn_error $? "libxrandr ${notice_platform}development files not found, XRandr won't be supported.
8578 This is an error since --with-xrandr was requested." "$LINENO" 5 ;;
8579 esac
8580 fi
8581
8582                 if test "$ac_cv_header_X11_extensions_Xinerama_h" = "yes"
8583         then
8584                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8585 /* end confdefs.h.  */
8586 #include <X11/Xlib.h>
8587 #include <X11/extensions/Xinerama.h>
8588 int
8589 main ()
8590 {
8591 static typeof(XineramaQueryScreens) * func; if (func) return 0;
8592   ;
8593   return 0;
8594 }
8595 _ACEOF
8596 if ac_fn_c_try_compile "$LINENO"; then :
8597   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXinerama" >&5
8598 $as_echo_n "checking for -lXinerama... " >&6; }
8599 if ${ac_cv_lib_soname_Xinerama+:} false; then :
8600   $as_echo_n "(cached) " >&6
8601 else
8602   ac_check_soname_save_LIBS=$LIBS
8603 LIBS="-lXinerama $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8604   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8605 /* end confdefs.h.  */
8606
8607 /* Override any GCC internal prototype to avoid an error.
8608    Use char because int might match the return type of a GCC
8609    builtin and then its argument prototype would still apply.  */
8610 #ifdef __cplusplus
8611 extern "C"
8612 #endif
8613 char XineramaQueryScreens ();
8614 int
8615 main ()
8616 {
8617 return XineramaQueryScreens ();
8618   ;
8619   return 0;
8620 }
8621 _ACEOF
8622 if ac_fn_c_try_link "$LINENO"; then :
8623   case "$LIBEXT" in
8624     dll) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest.exe | grep "Xinerama" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8625     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'` ;;
8626     *) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXinerama\\.$LIBEXT" | sed -e "s/^.*\(libXinerama\.$LIBEXT[^      ]*\).*$/\1/"';2,$d'` ;;
8627   esac
8628 fi
8629 rm -f core conftest.err conftest.$ac_objext \
8630     conftest$ac_exeext conftest.$ac_ext
8631   LIBS=$ac_check_soname_save_LIBS
8632 fi
8633 if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
8634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8635 $as_echo "not found" >&6; }
8636
8637 else
8638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xinerama" >&5
8639 $as_echo "$ac_cv_lib_soname_Xinerama" >&6; }
8640
8641 cat >>confdefs.h <<_ACEOF
8642 #define SONAME_LIBXINERAMA "$ac_cv_lib_soname_Xinerama"
8643 _ACEOF
8644
8645
8646 fi
8647 fi
8648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8649         fi
8650         if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
8651   case "x$with_xinerama" in
8652   x)   as_fn_append wine_notices "|libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported." ;;
8653   xno) ;;
8654   *)   as_fn_error $? "libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported.
8655 This is an error since --with-xinerama was requested." "$LINENO" 5 ;;
8656 esac
8657 fi
8658
8659                 if test "$ac_cv_header_X11_extensions_Xcomposite_h" = "yes"
8660         then
8661             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcomposite" >&5
8662 $as_echo_n "checking for -lXcomposite... " >&6; }
8663 if ${ac_cv_lib_soname_Xcomposite+:} false; then :
8664   $as_echo_n "(cached) " >&6
8665 else
8666   ac_check_soname_save_LIBS=$LIBS
8667 LIBS="-lXcomposite $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8668   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8669 /* end confdefs.h.  */
8670
8671 /* Override any GCC internal prototype to avoid an error.
8672    Use char because int might match the return type of a GCC
8673    builtin and then its argument prototype would still apply.  */
8674 #ifdef __cplusplus
8675 extern "C"
8676 #endif
8677 char XCompositeRedirectWindow ();
8678 int
8679 main ()
8680 {
8681 return XCompositeRedirectWindow ();
8682   ;
8683   return 0;
8684 }
8685 _ACEOF
8686 if ac_fn_c_try_link "$LINENO"; then :
8687   case "$LIBEXT" in
8688     dll) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest.exe | grep "Xcomposite" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8689     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'` ;;
8690     *) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXcomposite\\.$LIBEXT" | sed -e "s/^.*\(libXcomposite\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'` ;;
8691   esac
8692 fi
8693 rm -f core conftest.err conftest.$ac_objext \
8694     conftest$ac_exeext conftest.$ac_ext
8695   LIBS=$ac_check_soname_save_LIBS
8696 fi
8697 if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
8698   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8699 $as_echo "not found" >&6; }
8700
8701 else
8702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcomposite" >&5
8703 $as_echo "$ac_cv_lib_soname_Xcomposite" >&6; }
8704
8705 cat >>confdefs.h <<_ACEOF
8706 #define SONAME_LIBXCOMPOSITE "$ac_cv_lib_soname_Xcomposite"
8707 _ACEOF
8708
8709
8710 fi
8711         fi
8712         if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
8713   case "x$with_xcomposite" in
8714   x)   as_fn_append wine_notices "|libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported." ;;
8715   xno) ;;
8716   *)   as_fn_error $? "libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported.
8717 This is an error since --with-xcomposite was requested." "$LINENO" 5 ;;
8718 esac
8719 fi
8720
8721                 ac_fn_c_check_member "$LINENO" "XICCallback" "callback" "ac_cv_member_XICCallback_callback" "#ifdef HAVE_X11_XLIB_H
8722 #include <X11/Xlib.h>
8723 #endif
8724 "
8725 if test "x$ac_cv_member_XICCallback_callback" = xyes; then :
8726
8727 cat >>confdefs.h <<_ACEOF
8728 #define HAVE_XICCALLBACK_CALLBACK 1
8729 _ACEOF
8730
8731
8732 fi
8733 ac_fn_c_check_member "$LINENO" "XEvent" "xcookie" "ac_cv_member_XEvent_xcookie" "#ifdef HAVE_X11_XLIB_H
8734 #include <X11/Xlib.h>
8735 #endif
8736 "
8737 if test "x$ac_cv_member_XEvent_xcookie" = xyes; then :
8738
8739 cat >>confdefs.h <<_ACEOF
8740 #define HAVE_XEVENT_XCOOKIE 1
8741 _ACEOF
8742
8743
8744 fi
8745
8746
8747
8748         opengl_msg=""
8749     if test "x$with_opengl" != "xno"
8750     then
8751         for ac_header in GL/gl.h GL/glx.h GL/glu.h
8752 do :
8753   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8754 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_GL_GLX_H
8755 # include <GL/glx.h>
8756 #endif
8757 "
8758 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8759   cat >>confdefs.h <<_ACEOF
8760 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8761 _ACEOF
8762
8763 fi
8764
8765 done
8766
8767         if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
8768         then
8769                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for up-to-date OpenGL version" >&5
8770 $as_echo_n "checking for up-to-date OpenGL version... " >&6; }
8771 if ${wine_cv_opengl_header_version_OK+:} false; then :
8772   $as_echo_n "(cached) " >&6
8773 else
8774   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8775 /* end confdefs.h.  */
8776 #include <GL/gl.h>
8777 int
8778 main ()
8779 {
8780 GLenum test = GL_UNSIGNED_SHORT_5_6_5;  return (test == GL_UNSIGNED_SHORT_5_6_5);
8781   ;
8782   return 0;
8783 }
8784 _ACEOF
8785 if ac_fn_c_try_compile "$LINENO"; then :
8786   wine_cv_opengl_header_version_OK="yes"
8787 else
8788   wine_cv_opengl_header_version_OK="no"
8789 fi
8790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8791 fi
8792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_opengl_header_version_OK" >&5
8793 $as_echo "$wine_cv_opengl_header_version_OK" >&6; }
8794
8795             if test "$wine_cv_opengl_header_version_OK" = "yes"
8796             then
8797                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
8798 $as_echo_n "checking for -lGL... " >&6; }
8799 if ${ac_cv_lib_soname_GL+:} false; then :
8800   $as_echo_n "(cached) " >&6
8801 else
8802   ac_check_soname_save_LIBS=$LIBS
8803 LIBS="-lGL $X_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
8804   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8805 /* end confdefs.h.  */
8806
8807 /* Override any GCC internal prototype to avoid an error.
8808    Use char because int might match the return type of a GCC
8809    builtin and then its argument prototype would still apply.  */
8810 #ifdef __cplusplus
8811 extern "C"
8812 #endif
8813 char glXCreateContext ();
8814 int
8815 main ()
8816 {
8817 return glXCreateContext ();
8818   ;
8819   return 0;
8820 }
8821 _ACEOF
8822 if ac_fn_c_try_link "$LINENO"; then :
8823   case "$LIBEXT" in
8824     dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8825     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'` ;;
8826     *) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'` ;;
8827   esac
8828 fi
8829 rm -f core conftest.err conftest.$ac_objext \
8830     conftest$ac_exeext conftest.$ac_ext
8831   LIBS=$ac_check_soname_save_LIBS
8832 fi
8833 if test "x$ac_cv_lib_soname_GL" = "x"; then :
8834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8835 $as_echo "not found" >&6; }
8836        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
8837 $as_echo_n "checking for -lGL... " >&6; }
8838 if ${ac_cv_lib_soname_GL+:} false; then :
8839   $as_echo_n "(cached) " >&6
8840 else
8841   ac_check_soname_save_LIBS=$LIBS
8842 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"
8843   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8844 /* end confdefs.h.  */
8845
8846 /* Override any GCC internal prototype to avoid an error.
8847    Use char because int might match the return type of a GCC
8848    builtin and then its argument prototype would still apply.  */
8849 #ifdef __cplusplus
8850 extern "C"
8851 #endif
8852 char glXCreateContext ();
8853 int
8854 main ()
8855 {
8856 return glXCreateContext ();
8857   ;
8858   return 0;
8859 }
8860 _ACEOF
8861 if ac_fn_c_try_link "$LINENO"; then :
8862   case "$LIBEXT" in
8863     dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8864     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'` ;;
8865     *) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'` ;;
8866   esac
8867 fi
8868 rm -f core conftest.err conftest.$ac_objext \
8869     conftest$ac_exeext conftest.$ac_ext
8870   LIBS=$ac_check_soname_save_LIBS
8871 fi
8872 if test "x$ac_cv_lib_soname_GL" = "x"; then :
8873   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8874 $as_echo "not found" >&6; }
8875        if test -f /usr/X11R6/lib/libGL.a
8876                                     then
8877                                         opengl_msg="/usr/X11R6/lib/libGL.a is present on your system.
8878 This probably prevents linking to OpenGL. Try deleting the file and restarting configure."
8879                                     else
8880                                         opengl_msg="No OpenGL library found on this system."
8881                                     fi
8882 else
8883   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
8884 $as_echo "$ac_cv_lib_soname_GL" >&6; }
8885
8886 cat >>confdefs.h <<_ACEOF
8887 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
8888 _ACEOF
8889
8890        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"
8891
8892 $as_echo "#define HAVE_OPENGL 1" >>confdefs.h
8893
8894 fi
8895 else
8896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
8897 $as_echo "$ac_cv_lib_soname_GL" >&6; }
8898
8899 cat >>confdefs.h <<_ACEOF
8900 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
8901 _ACEOF
8902
8903        OPENGL_LIBS="-lGL"
8904
8905 $as_echo "#define HAVE_OPENGL 1" >>confdefs.h
8906
8907 fi
8908                  if test "$ac_cv_header_GL_glu_h" = "yes"
8909                  then
8910                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGLU" >&5
8911 $as_echo_n "checking for -lGLU... " >&6; }
8912 if ${ac_cv_lib_soname_GLU+:} false; then :
8913   $as_echo_n "(cached) " >&6
8914 else
8915   ac_check_soname_save_LIBS=$LIBS
8916 LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
8917   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8918 /* end confdefs.h.  */
8919
8920 /* Override any GCC internal prototype to avoid an error.
8921    Use char because int might match the return type of a GCC
8922    builtin and then its argument prototype would still apply.  */
8923 #ifdef __cplusplus
8924 extern "C"
8925 #endif
8926 char gluLookAt ();
8927 int
8928 main ()
8929 {
8930 return gluLookAt ();
8931   ;
8932   return 0;
8933 }
8934 _ACEOF
8935 if ac_fn_c_try_link "$LINENO"; then :
8936   case "$LIBEXT" in
8937     dll) ac_cv_lib_soname_GLU=`$ac_cv_path_LDD conftest.exe | grep "GLU" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8938     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'` ;;
8939     *) ac_cv_lib_soname_GLU=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGLU\\.$LIBEXT" | sed -e "s/^.*\(libGLU\.$LIBEXT[^     ]*\).*$/\1/"';2,$d'` ;;
8940   esac
8941 fi
8942 rm -f core conftest.err conftest.$ac_objext \
8943     conftest$ac_exeext conftest.$ac_ext
8944   LIBS=$ac_check_soname_save_LIBS
8945 fi
8946 if test "x$ac_cv_lib_soname_GLU" = "x"; then :
8947   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8948 $as_echo "not found" >&6; }
8949
8950 else
8951   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GLU" >&5
8952 $as_echo "$ac_cv_lib_soname_GLU" >&6; }
8953
8954 cat >>confdefs.h <<_ACEOF
8955 #define SONAME_LIBGLU "$ac_cv_lib_soname_GLU"
8956 _ACEOF
8957
8958
8959 fi
8960                  fi
8961                  if test "x$ac_cv_lib_soname_GLU" = "x"; then :
8962   case "x$with_glu" in
8963   x)   as_fn_append wine_notices "|libGLU ${notice_platform}development files not found, GLU won't be supported." ;;
8964   xno) ;;
8965   *)   as_fn_error $? "libGLU ${notice_platform}development files not found, GLU won't be supported.
8966 This is an error since --with-glu was requested." "$LINENO" 5 ;;
8967 esac
8968 fi
8969              else
8970                  opengl_msg="Old Mesa headers detected. Consider upgrading your Mesa libraries."
8971              fi
8972          else
8973              opengl_msg="OpenGL development headers not found."
8974          fi
8975          test -n "$opengl_msg" && enable_opengl32=${enable_opengl32:-no}
8976          test "x$ac_cv_lib_soname_GLU" = "x" && enable_glu32=${enable_glu32:-no}
8977     else
8978          enable_opengl32=${enable_opengl32:-no}
8979          enable_glu32=${enable_glu32:-no}
8980     fi
8981     if test -n "$opengl_msg"; then :
8982   case "x$with_opengl" in
8983   x)   as_fn_append wine_warnings "|$opengl_msg
8984 OpenGL and Direct3D won't be supported." ;;
8985   xno) ;;
8986   *)   as_fn_error $? "$opengl_msg
8987 OpenGL and Direct3D won't be supported.
8988 This is an error since --with-opengl was requested." "$LINENO" 5 ;;
8989 esac
8990 fi
8991
8992     CPPFLAGS="$ac_save_CPPFLAGS"
8993 else
8994     XLIB=""
8995     X_CFLAGS=""
8996     X_LIBS=""
8997     enable_winex11_drv=${enable_winex11_drv:-no}
8998     enable_opengl32=${enable_opengl32:-no}
8999     enable_glu32=${enable_glu32:-no}
9000 fi
9001 if test "x$XLIB" = "x"; then :
9002   case "x$with_x" in
9003   xno) ;;
9004   *)   as_fn_error $? "X ${notice_platform}development files not found. Wine will be built
9005 without X support, which probably isn't what you want. You will need
9006 to install ${notice_platform}development packages of Xlib/Xfree86 at the very least.
9007 Use the --without-x option if you really want this." "$LINENO" 5 ;;
9008 esac
9009 fi
9010
9011 if test "$ac_cv_header_CL_cl_h" = "yes"
9012 then
9013     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clGetPlatformInfo in -lOpenCL" >&5
9014 $as_echo_n "checking for clGetPlatformInfo in -lOpenCL... " >&6; }
9015 if ${ac_cv_lib_OpenCL_clGetPlatformInfo+:} false; then :
9016   $as_echo_n "(cached) " >&6
9017 else
9018   ac_check_lib_save_LIBS=$LIBS
9019 LIBS="-lOpenCL  $LIBS"
9020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9021 /* end confdefs.h.  */
9022
9023 /* Override any GCC internal prototype to avoid an error.
9024    Use char because int might match the return type of a GCC
9025    builtin and then its argument prototype would still apply.  */
9026 #ifdef __cplusplus
9027 extern "C"
9028 #endif
9029 char clGetPlatformInfo ();
9030 int
9031 main ()
9032 {
9033 return clGetPlatformInfo ();
9034   ;
9035   return 0;
9036 }
9037 _ACEOF
9038 if ac_fn_c_try_link "$LINENO"; then :
9039   ac_cv_lib_OpenCL_clGetPlatformInfo=yes
9040 else
9041   ac_cv_lib_OpenCL_clGetPlatformInfo=no
9042 fi
9043 rm -f core conftest.err conftest.$ac_objext \
9044     conftest$ac_exeext conftest.$ac_ext
9045 LIBS=$ac_check_lib_save_LIBS
9046 fi
9047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_OpenCL_clGetPlatformInfo" >&5
9048 $as_echo "$ac_cv_lib_OpenCL_clGetPlatformInfo" >&6; }
9049 if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" = xyes; then :
9050   LIBOPENCL="-lOpenCL"
9051
9052 fi
9053
9054 fi
9055 if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes; then :
9056   case "x$with_opencl" in
9057   x)   as_fn_append wine_notices "|OpenCL ${notice_platform}development files not found, OpenCL won't be supported." ;;
9058   xno) ;;
9059   *)   as_fn_error $? "OpenCL ${notice_platform}development files not found, OpenCL won't be supported.
9060 This is an error since --with-opencl was requested." "$LINENO" 5 ;;
9061 esac
9062 fi
9063 test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes && enable_opencl=${enable_opencl:-no}
9064
9065
9066 XML2LIBS=""
9067
9068 XML2INCL=""
9069
9070 XSLTINCL=""
9071
9072 if test "x$with_xml" != "xno"
9073 then
9074     ac_save_CPPFLAGS="$CPPFLAGS"
9075     if test "$PKG_CONFIG" != "false"
9076     then
9077         ac_xml_libs="`$PKG_CONFIG --libs libxml-2.0 2>/dev/null`"
9078         ac_xml_cflags="`$PKG_CONFIG --cflags libxml-2.0 2>/dev/null`"
9079     else
9080         ac_xml_libs="`xml2-config --libs 2>/dev/null`"
9081         ac_xml_cflags="`xml2-config --cflags  2>/dev/null`"
9082     fi
9083     CPPFLAGS="$CPPFLAGS $ac_xml_cflags"
9084     for ac_header in libxml/parser.h libxml/xmlsave.h libxml/SAX2.h
9085 do :
9086   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9087 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9088 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9089   cat >>confdefs.h <<_ACEOF
9090 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9091 _ACEOF
9092
9093 fi
9094
9095 done
9096
9097     if test "$ac_cv_header_libxml_parser_h" = "yes" -a "$ac_cv_header_libxml_xmlsave_h" = "yes" -a "$ac_cv_header_libxml_SAX2_h" = "yes"
9098     then
9099         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseMemory in -lxml2" >&5
9100 $as_echo_n "checking for xmlParseMemory in -lxml2... " >&6; }
9101 if ${ac_cv_lib_xml2_xmlParseMemory+:} false; then :
9102   $as_echo_n "(cached) " >&6
9103 else
9104   ac_check_lib_save_LIBS=$LIBS
9105 LIBS="-lxml2 $ac_xml_libs $LIBS"
9106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9107 /* end confdefs.h.  */
9108
9109 /* Override any GCC internal prototype to avoid an error.
9110    Use char because int might match the return type of a GCC
9111    builtin and then its argument prototype would still apply.  */
9112 #ifdef __cplusplus
9113 extern "C"
9114 #endif
9115 char xmlParseMemory ();
9116 int
9117 main ()
9118 {
9119 return xmlParseMemory ();
9120   ;
9121   return 0;
9122 }
9123 _ACEOF
9124 if ac_fn_c_try_link "$LINENO"; then :
9125   ac_cv_lib_xml2_xmlParseMemory=yes
9126 else
9127   ac_cv_lib_xml2_xmlParseMemory=no
9128 fi
9129 rm -f core conftest.err conftest.$ac_objext \
9130     conftest$ac_exeext conftest.$ac_ext
9131 LIBS=$ac_check_lib_save_LIBS
9132 fi
9133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseMemory" >&5
9134 $as_echo "$ac_cv_lib_xml2_xmlParseMemory" >&6; }
9135 if test "x$ac_cv_lib_xml2_xmlParseMemory" = xyes; then :
9136
9137 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
9138
9139              XML2LIBS="$ac_xml_libs"
9140              XML2INCL="$ac_xml_cflags"
9141 fi
9142
9143         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlReadMemory in -lxml2" >&5
9144 $as_echo_n "checking for xmlReadMemory in -lxml2... " >&6; }
9145 if ${ac_cv_lib_xml2_xmlReadMemory+:} false; then :
9146   $as_echo_n "(cached) " >&6
9147 else
9148   ac_check_lib_save_LIBS=$LIBS
9149 LIBS="-lxml2 $ac_xml_libs $LIBS"
9150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9151 /* end confdefs.h.  */
9152
9153 /* Override any GCC internal prototype to avoid an error.
9154    Use char because int might match the return type of a GCC
9155    builtin and then its argument prototype would still apply.  */
9156 #ifdef __cplusplus
9157 extern "C"
9158 #endif
9159 char xmlReadMemory ();
9160 int
9161 main ()
9162 {
9163 return xmlReadMemory ();
9164   ;
9165   return 0;
9166 }
9167 _ACEOF
9168 if ac_fn_c_try_link "$LINENO"; then :
9169   ac_cv_lib_xml2_xmlReadMemory=yes
9170 else
9171   ac_cv_lib_xml2_xmlReadMemory=no
9172 fi
9173 rm -f core conftest.err conftest.$ac_objext \
9174     conftest$ac_exeext conftest.$ac_ext
9175 LIBS=$ac_check_lib_save_LIBS
9176 fi
9177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlReadMemory" >&5
9178 $as_echo "$ac_cv_lib_xml2_xmlReadMemory" >&6; }
9179 if test "x$ac_cv_lib_xml2_xmlReadMemory" = xyes; then :
9180
9181 $as_echo "#define HAVE_XMLREADMEMORY 1" >>confdefs.h
9182
9183 fi
9184
9185         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlNewDocPI in -lxml2" >&5
9186 $as_echo_n "checking for xmlNewDocPI in -lxml2... " >&6; }
9187 if ${ac_cv_lib_xml2_xmlNewDocPI+:} false; then :
9188   $as_echo_n "(cached) " >&6
9189 else
9190   ac_check_lib_save_LIBS=$LIBS
9191 LIBS="-lxml2 $ac_xml_libs $LIBS"
9192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9193 /* end confdefs.h.  */
9194
9195 /* Override any GCC internal prototype to avoid an error.
9196    Use char because int might match the return type of a GCC
9197    builtin and then its argument prototype would still apply.  */
9198 #ifdef __cplusplus
9199 extern "C"
9200 #endif
9201 char xmlNewDocPI ();
9202 int
9203 main ()
9204 {
9205 return xmlNewDocPI ();
9206   ;
9207   return 0;
9208 }
9209 _ACEOF
9210 if ac_fn_c_try_link "$LINENO"; then :
9211   ac_cv_lib_xml2_xmlNewDocPI=yes
9212 else
9213   ac_cv_lib_xml2_xmlNewDocPI=no
9214 fi
9215 rm -f core conftest.err conftest.$ac_objext \
9216     conftest$ac_exeext conftest.$ac_ext
9217 LIBS=$ac_check_lib_save_LIBS
9218 fi
9219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlNewDocPI" >&5
9220 $as_echo "$ac_cv_lib_xml2_xmlNewDocPI" >&6; }
9221 if test "x$ac_cv_lib_xml2_xmlNewDocPI" = xyes; then :
9222
9223 $as_echo "#define HAVE_XMLNEWDOCPI 1" >>confdefs.h
9224
9225 fi
9226
9227         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetParserStructuredErrors in -lxml2" >&5
9228 $as_echo_n "checking for xmlSchemaSetParserStructuredErrors in -lxml2... " >&6; }
9229 if ${ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors+:} false; then :
9230   $as_echo_n "(cached) " >&6
9231 else
9232   ac_check_lib_save_LIBS=$LIBS
9233 LIBS="-lxml2 $ac_xml_libs $LIBS"
9234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9235 /* end confdefs.h.  */
9236
9237 /* Override any GCC internal prototype to avoid an error.
9238    Use char because int might match the return type of a GCC
9239    builtin and then its argument prototype would still apply.  */
9240 #ifdef __cplusplus
9241 extern "C"
9242 #endif
9243 char xmlSchemaSetParserStructuredErrors ();
9244 int
9245 main ()
9246 {
9247 return xmlSchemaSetParserStructuredErrors ();
9248   ;
9249   return 0;
9250 }
9251 _ACEOF
9252 if ac_fn_c_try_link "$LINENO"; then :
9253   ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=yes
9254 else
9255   ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=no
9256 fi
9257 rm -f core conftest.err conftest.$ac_objext \
9258     conftest$ac_exeext conftest.$ac_ext
9259 LIBS=$ac_check_lib_save_LIBS
9260 fi
9261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&5
9262 $as_echo "$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&6; }
9263 if test "x$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" = xyes; then :
9264
9265 $as_echo "#define HAVE_XMLSCHEMASSETPARSERSTRUCTUREDERRORS 1" >>confdefs.h
9266
9267 fi
9268
9269         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetValidStructuredErrors in -lxml2" >&5
9270 $as_echo_n "checking for xmlSchemaSetValidStructuredErrors in -lxml2... " >&6; }
9271 if ${ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors+:} false; then :
9272   $as_echo_n "(cached) " >&6
9273 else
9274   ac_check_lib_save_LIBS=$LIBS
9275 LIBS="-lxml2 $ac_xml_libs $LIBS"
9276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9277 /* end confdefs.h.  */
9278
9279 /* Override any GCC internal prototype to avoid an error.
9280    Use char because int might match the return type of a GCC
9281    builtin and then its argument prototype would still apply.  */
9282 #ifdef __cplusplus
9283 extern "C"
9284 #endif
9285 char xmlSchemaSetValidStructuredErrors ();
9286 int
9287 main ()
9288 {
9289 return xmlSchemaSetValidStructuredErrors ();
9290   ;
9291   return 0;
9292 }
9293 _ACEOF
9294 if ac_fn_c_try_link "$LINENO"; then :
9295   ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=yes
9296 else
9297   ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=no
9298 fi
9299 rm -f core conftest.err conftest.$ac_objext \
9300     conftest$ac_exeext conftest.$ac_ext
9301 LIBS=$ac_check_lib_save_LIBS
9302 fi
9303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&5
9304 $as_echo "$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&6; }
9305 if test "x$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" = xyes; then :
9306
9307 $as_echo "#define HAVE_XMLSCHEMASSETVALIDSTRUCTUREDERRORS 1" >>confdefs.h
9308
9309 fi
9310
9311         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlFirstElementChild in -lxml2" >&5
9312 $as_echo_n "checking for xmlFirstElementChild in -lxml2... " >&6; }
9313 if ${ac_cv_lib_xml2_xmlFirstElementChild+:} false; then :
9314   $as_echo_n "(cached) " >&6
9315 else
9316   ac_check_lib_save_LIBS=$LIBS
9317 LIBS="-lxml2 $ac_xml_libs $LIBS"
9318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9319 /* end confdefs.h.  */
9320
9321 /* Override any GCC internal prototype to avoid an error.
9322    Use char because int might match the return type of a GCC
9323    builtin and then its argument prototype would still apply.  */
9324 #ifdef __cplusplus
9325 extern "C"
9326 #endif
9327 char xmlFirstElementChild ();
9328 int
9329 main ()
9330 {
9331 return xmlFirstElementChild ();
9332   ;
9333   return 0;
9334 }
9335 _ACEOF
9336 if ac_fn_c_try_link "$LINENO"; then :
9337   ac_cv_lib_xml2_xmlFirstElementChild=yes
9338 else
9339   ac_cv_lib_xml2_xmlFirstElementChild=no
9340 fi
9341 rm -f core conftest.err conftest.$ac_objext \
9342     conftest$ac_exeext conftest.$ac_ext
9343 LIBS=$ac_check_lib_save_LIBS
9344 fi
9345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlFirstElementChild" >&5
9346 $as_echo "$ac_cv_lib_xml2_xmlFirstElementChild" >&6; }
9347 if test "x$ac_cv_lib_xml2_xmlFirstElementChild" = xyes; then :
9348
9349 $as_echo "#define HAVE_XMLFIRSTELEMENTCHILD 1" >>confdefs.h
9350
9351 fi
9352
9353         ac_fn_c_check_type "$LINENO" "xmlDocProperties" "ac_cv_type_xmlDocProperties" "#include <libxml/tree.h>
9354 "
9355 if test "x$ac_cv_type_xmlDocProperties" = xyes; then :
9356
9357 $as_echo "#define HAVE_XMLDOC_PROPERTIES 1" >>confdefs.h
9358
9359 fi
9360
9361     fi
9362     CPPFLAGS="$ac_save_CPPFLAGS"
9363 fi
9364 if test "$ac_cv_lib_xml2_xmlParseMemory" != "yes"; then :
9365   case "x$with_xml" in
9366   x)   as_fn_append wine_warnings "|libxml2 ${notice_platform}development files not found (or too old), XML won't be supported." ;;
9367   xno) ;;
9368   *)   as_fn_error $? "libxml2 ${notice_platform}development files not found (or too old), XML won't be supported.
9369 This is an error since --with-xml was requested." "$LINENO" 5 ;;
9370 esac
9371 fi
9372
9373 if test "x$with_xslt" != "xno"
9374 then
9375     if test "$PKG_CONFIG" != "false"
9376     then
9377         ac_xslt_libs="`$PKG_CONFIG --libs libxslt 2>/dev/null`"
9378         ac_xslt_cflags="`$PKG_CONFIG --cflags libxslt 2>/dev/null`"
9379     else
9380         ac_xslt_libs="`xslt-config --libs 2>/dev/null`"
9381         ac_xslt_cflags="`xslt-config --cflags 2>/dev/null`"
9382     fi
9383     ac_save_CPPFLAGS="$CPPFLAGS"
9384     CPPFLAGS="$CPPFLAGS $ac_xslt_cflags"
9385     for ac_header in libxslt/pattern.h libxslt/transform.h
9386 do :
9387   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9388 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_LIBXSLT_PATTERN_H
9389 # include <libxslt/pattern.h>
9390 #endif
9391 "
9392 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9393   cat >>confdefs.h <<_ACEOF
9394 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9395 _ACEOF
9396
9397 fi
9398
9399 done
9400
9401     CPPFLAGS="$ac_save_CPPFLAGS"
9402     if test "$ac_cv_header_libxslt_transform_h" = "yes"
9403     then
9404         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lxslt" >&5
9405 $as_echo_n "checking for -lxslt... " >&6; }
9406 if ${ac_cv_lib_soname_xslt+:} false; then :
9407   $as_echo_n "(cached) " >&6
9408 else
9409   ac_check_soname_save_LIBS=$LIBS
9410 LIBS="-lxslt $ac_xslt_libs $LIBS"
9411   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9412 /* end confdefs.h.  */
9413
9414 /* Override any GCC internal prototype to avoid an error.
9415    Use char because int might match the return type of a GCC
9416    builtin and then its argument prototype would still apply.  */
9417 #ifdef __cplusplus
9418 extern "C"
9419 #endif
9420 char xsltCompilePattern ();
9421 int
9422 main ()
9423 {
9424 return xsltCompilePattern ();
9425   ;
9426   return 0;
9427 }
9428 _ACEOF
9429 if ac_fn_c_try_link "$LINENO"; then :
9430   case "$LIBEXT" in
9431     dll) ac_cv_lib_soname_xslt=`$ac_cv_path_LDD conftest.exe | grep "xslt" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9432     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'` ;;
9433     *) ac_cv_lib_soname_xslt=`$ac_cv_path_LDD conftest$ac_exeext | grep "libxslt\\.$LIBEXT" | sed -e "s/^.*\(libxslt\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
9434   esac
9435 fi
9436 rm -f core conftest.err conftest.$ac_objext \
9437     conftest$ac_exeext conftest.$ac_ext
9438   LIBS=$ac_check_soname_save_LIBS
9439 fi
9440 if test "x$ac_cv_lib_soname_xslt" = "x"; then :
9441   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9442 $as_echo "not found" >&6; }
9443
9444 else
9445   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_xslt" >&5
9446 $as_echo "$ac_cv_lib_soname_xslt" >&6; }
9447
9448 cat >>confdefs.h <<_ACEOF
9449 #define SONAME_LIBXSLT "$ac_cv_lib_soname_xslt"
9450 _ACEOF
9451
9452        XSLTINCL="$ac_xslt_cflags"
9453 fi
9454     fi
9455 fi
9456 if test "x$ac_cv_lib_soname_xslt" = "x"; then :
9457   case "x$with_xslt" in
9458   x)   as_fn_append wine_warnings "|libxslt ${notice_platform}development files not found, xslt won't be supported." ;;
9459   xno) ;;
9460   *)   as_fn_error $? "libxslt ${notice_platform}development files not found, xslt won't be supported.
9461 This is an error since --with-xslt was requested." "$LINENO" 5 ;;
9462 esac
9463 fi
9464
9465 if test "x$with_dbus" != "xno"
9466 then
9467     ac_save_CPPFLAGS="$CPPFLAGS"
9468     if test "$PKG_CONFIG" != "false"
9469     then
9470         ac_dbus_libs="`$PKG_CONFIG --libs dbus-1 2>/dev/null`"
9471         ac_dbus_cflags="`$PKG_CONFIG --cflags dbus-1 2>/dev/null`"
9472         CPPFLAGS="$CPPFLAGS $ac_dbus_cflags"
9473     fi
9474     ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
9475 if test "x$ac_cv_header_dbus_dbus_h" = xyes; then :
9476   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ldbus-1" >&5
9477 $as_echo_n "checking for -ldbus-1... " >&6; }
9478 if ${ac_cv_lib_soname_dbus_1+:} false; then :
9479   $as_echo_n "(cached) " >&6
9480 else
9481   ac_check_soname_save_LIBS=$LIBS
9482 LIBS="-ldbus-1 $ac_dbus_libs $LIBS"
9483   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9484 /* end confdefs.h.  */
9485
9486 /* Override any GCC internal prototype to avoid an error.
9487    Use char because int might match the return type of a GCC
9488    builtin and then its argument prototype would still apply.  */
9489 #ifdef __cplusplus
9490 extern "C"
9491 #endif
9492 char dbus_connection_close ();
9493 int
9494 main ()
9495 {
9496 return dbus_connection_close ();
9497   ;
9498   return 0;
9499 }
9500 _ACEOF
9501 if ac_fn_c_try_link "$LINENO"; then :
9502   case "$LIBEXT" in
9503     dll) ac_cv_lib_soname_dbus_1=`$ac_cv_path_LDD conftest.exe | grep "dbus-1" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9504     dylib) ac_cv_lib_soname_dbus_1=`otool -L conftest$ac_exeext | grep "libdbus-1\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libdbus-1\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
9505     *) ac_cv_lib_soname_dbus_1=`$ac_cv_path_LDD conftest$ac_exeext | grep "libdbus-1\\.$LIBEXT" | sed -e "s/^.*\(libdbus-1\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'` ;;
9506   esac
9507 fi
9508 rm -f core conftest.err conftest.$ac_objext \
9509     conftest$ac_exeext conftest.$ac_ext
9510   LIBS=$ac_check_soname_save_LIBS
9511 fi
9512 if test "x$ac_cv_lib_soname_dbus_1" = "x"; then :
9513   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9514 $as_echo "not found" >&6; }
9515
9516 else
9517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_dbus_1" >&5
9518 $as_echo "$ac_cv_lib_soname_dbus_1" >&6; }
9519
9520 cat >>confdefs.h <<_ACEOF
9521 #define SONAME_LIBDBUS_1 "$ac_cv_lib_soname_dbus_1"
9522 _ACEOF
9523
9524        DBUSINCL="$ac_dbus_cflags"
9525
9526 fi
9527 fi
9528
9529
9530     CPPFLAGS="$ac_save_CPPFLAGS"
9531 fi
9532 if test "x$ac_cv_lib_soname_dbus_1" = "x" -a \
9533                             "x$ac_cv_header_DiskArbitration_DiskArbitration_h" != "xyes"; then :
9534   case "x$with_dbus" in
9535   x)   as_fn_append wine_notices "|libdbus ${notice_platform}development files not found, no dynamic device support." ;;
9536   xno) ;;
9537   *)   as_fn_error $? "libdbus ${notice_platform}development files not found, no dynamic device support.
9538 This is an error since --with-dbus was requested." "$LINENO" 5 ;;
9539 esac
9540 fi
9541
9542 if test "x$with_hal" != "xno" -a "x$ac_cv_lib_soname_dbus_1" != x
9543 then
9544     ac_save_CPPFLAGS="$CPPFLAGS"
9545     if test "$PKG_CONFIG" != "false"
9546     then
9547         ac_hal_libs="`$PKG_CONFIG --libs hal 2>/dev/null`"
9548         ac_hal_cflags="`$PKG_CONFIG --cflags hal 2>/dev/null`"
9549         CPPFLAGS="$CPPFLAGS $ac_hal_cflags"
9550     fi
9551     ac_fn_c_check_header_mongrel "$LINENO" "hal/libhal.h" "ac_cv_header_hal_libhal_h" "$ac_includes_default"
9552 if test "x$ac_cv_header_hal_libhal_h" = xyes; then :
9553   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lhal" >&5
9554 $as_echo_n "checking for -lhal... " >&6; }
9555 if ${ac_cv_lib_soname_hal+:} false; then :
9556   $as_echo_n "(cached) " >&6
9557 else
9558   ac_check_soname_save_LIBS=$LIBS
9559 LIBS="-lhal $ac_hal_libs $LIBS"
9560   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9561 /* end confdefs.h.  */
9562
9563 /* Override any GCC internal prototype to avoid an error.
9564    Use char because int might match the return type of a GCC
9565    builtin and then its argument prototype would still apply.  */
9566 #ifdef __cplusplus
9567 extern "C"
9568 #endif
9569 char libhal_ctx_new ();
9570 int
9571 main ()
9572 {
9573 return libhal_ctx_new ();
9574   ;
9575   return 0;
9576 }
9577 _ACEOF
9578 if ac_fn_c_try_link "$LINENO"; then :
9579   case "$LIBEXT" in
9580     dll) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest.exe | grep "hal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9581     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'` ;;
9582     *) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest$ac_exeext | grep "libhal\\.$LIBEXT" | sed -e "s/^.*\(libhal\.$LIBEXT[^     ]*\).*$/\1/"';2,$d'` ;;
9583   esac
9584 fi
9585 rm -f core conftest.err conftest.$ac_objext \
9586     conftest$ac_exeext conftest.$ac_ext
9587   LIBS=$ac_check_soname_save_LIBS
9588 fi
9589 if test "x$ac_cv_lib_soname_hal" = "x"; then :
9590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9591 $as_echo "not found" >&6; }
9592
9593 else
9594   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_hal" >&5
9595 $as_echo "$ac_cv_lib_soname_hal" >&6; }
9596
9597 cat >>confdefs.h <<_ACEOF
9598 #define SONAME_LIBHAL "$ac_cv_lib_soname_hal"
9599 _ACEOF
9600
9601        HALINCL="$ac_hal_cflags"
9602
9603 fi
9604 fi
9605
9606
9607     CPPFLAGS="$ac_save_CPPFLAGS"
9608     if test "x$ac_cv_lib_soname_hal" = "x" -a \
9609                                "x$ac_cv_header_DiskArbitration_DiskArbitration_h" != "xyes"; then :
9610   case "x$with_hal" in
9611   x)   as_fn_append wine_notices "|libhal ${notice_platform}development files not found, no legacy dynamic device support." ;;
9612   xno) ;;
9613   *)   as_fn_error $? "libhal ${notice_platform}development files not found, no legacy dynamic device support.
9614 This is an error since --with-hal was requested." "$LINENO" 5 ;;
9615 esac
9616 fi
9617 fi
9618
9619 if test "x$with_gnutls" != "xno"
9620 then
9621     ac_save_CPPFLAGS="$CPPFLAGS"
9622     if test "$PKG_CONFIG" != "false"
9623     then
9624         ac_gnutls_libs="`$PKG_CONFIG --libs gnutls 2>/dev/null`"
9625         ac_gnutls_cflags="`$PKG_CONFIG --cflags gnutls 2>/dev/null`"
9626         CPPFLAGS="$CPPFLAGS $ac_gnutls_cflags"
9627     fi
9628     ac_fn_c_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default"
9629 if test "x$ac_cv_header_gnutls_gnutls_h" = xyes; then :
9630   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9631 /* end confdefs.h.  */
9632 #include <gnutls/gnutls.h>
9633 int
9634 main ()
9635 {
9636 static typeof(gnutls_mac_get_key_size) *func; if (func) return 0;
9637   ;
9638   return 0;
9639 }
9640 _ACEOF
9641 if ac_fn_c_try_compile "$LINENO"; then :
9642   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgnutls" >&5
9643 $as_echo_n "checking for -lgnutls... " >&6; }
9644 if ${ac_cv_lib_soname_gnutls+:} false; then :
9645   $as_echo_n "(cached) " >&6
9646 else
9647   ac_check_soname_save_LIBS=$LIBS
9648 LIBS="-lgnutls $ac_gnutls_libs $LIBS"
9649   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9650 /* end confdefs.h.  */
9651
9652 /* Override any GCC internal prototype to avoid an error.
9653    Use char because int might match the return type of a GCC
9654    builtin and then its argument prototype would still apply.  */
9655 #ifdef __cplusplus
9656 extern "C"
9657 #endif
9658 char gnutls_global_init ();
9659 int
9660 main ()
9661 {
9662 return gnutls_global_init ();
9663   ;
9664   return 0;
9665 }
9666 _ACEOF
9667 if ac_fn_c_try_link "$LINENO"; then :
9668   case "$LIBEXT" in
9669     dll) ac_cv_lib_soname_gnutls=`$ac_cv_path_LDD conftest.exe | grep "gnutls" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9670     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'` ;;
9671     *) ac_cv_lib_soname_gnutls=`$ac_cv_path_LDD conftest$ac_exeext | grep "libgnutls\\.$LIBEXT" | sed -e "s/^.*\(libgnutls\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'` ;;
9672   esac
9673 fi
9674 rm -f core conftest.err conftest.$ac_objext \
9675     conftest$ac_exeext conftest.$ac_ext
9676   LIBS=$ac_check_soname_save_LIBS
9677 fi
9678 if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
9679   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9680 $as_echo "not found" >&6; }
9681
9682 else
9683   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gnutls" >&5
9684 $as_echo "$ac_cv_lib_soname_gnutls" >&6; }
9685
9686 cat >>confdefs.h <<_ACEOF
9687 #define SONAME_LIBGNUTLS "$ac_cv_lib_soname_gnutls"
9688 _ACEOF
9689
9690        GNUTLSINCL="$ac_gnutls_cflags"
9691
9692 fi
9693 fi
9694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9695 fi
9696
9697
9698     CPPFLAGS="$ac_save_CPPFLAGS"
9699 fi
9700 if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
9701   case "x$with_gnutls" in
9702   x)   as_fn_append wine_notices "|libgnutls ${notice_platform}development files not found, no schannel support." ;;
9703   xno) ;;
9704   *)   as_fn_error $? "libgnutls ${notice_platform}development files not found, no schannel support.
9705 This is an error since --with-gnutls was requested." "$LINENO" 5 ;;
9706 esac
9707 fi
9708
9709 CURSESLIBS=""
9710 if test "$ac_cv_header_ncurses_h" = "yes"
9711 then
9712     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lncurses" >&5
9713 $as_echo_n "checking for -lncurses... " >&6; }
9714 if ${ac_cv_lib_soname_ncurses+:} false; then :
9715   $as_echo_n "(cached) " >&6
9716 else
9717   ac_check_soname_save_LIBS=$LIBS
9718 LIBS="-lncurses  $LIBS"
9719   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9720 /* end confdefs.h.  */
9721
9722 /* Override any GCC internal prototype to avoid an error.
9723    Use char because int might match the return type of a GCC
9724    builtin and then its argument prototype would still apply.  */
9725 #ifdef __cplusplus
9726 extern "C"
9727 #endif
9728 char waddch ();
9729 int
9730 main ()
9731 {
9732 return waddch ();
9733   ;
9734   return 0;
9735 }
9736 _ACEOF
9737 if ac_fn_c_try_link "$LINENO"; then :
9738   case "$LIBEXT" in
9739     dll) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest.exe | grep "ncurses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9740     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'` ;;
9741     *) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest$ac_exeext | grep "libncurses\\.$LIBEXT" | sed -e "s/^.*\(libncurses\.$LIBEXT[^         ]*\).*$/\1/"';2,$d'` ;;
9742   esac
9743 fi
9744 rm -f core conftest.err conftest.$ac_objext \
9745     conftest$ac_exeext conftest.$ac_ext
9746   LIBS=$ac_check_soname_save_LIBS
9747 fi
9748 if test "x$ac_cv_lib_soname_ncurses" = "x"; then :
9749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9750 $as_echo "not found" >&6; }
9751
9752 else
9753   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ncurses" >&5
9754 $as_echo "$ac_cv_lib_soname_ncurses" >&6; }
9755
9756 cat >>confdefs.h <<_ACEOF
9757 #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
9758 _ACEOF
9759
9760        CURSESLIBS="-lncurses"
9761 fi
9762 elif test "$ac_cv_header_curses_h" = "yes"
9763 then
9764     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcurses" >&5
9765 $as_echo_n "checking for -lcurses... " >&6; }
9766 if ${ac_cv_lib_soname_curses+:} false; then :
9767   $as_echo_n "(cached) " >&6
9768 else
9769   ac_check_soname_save_LIBS=$LIBS
9770 LIBS="-lcurses  $LIBS"
9771   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9772 /* end confdefs.h.  */
9773
9774 /* Override any GCC internal prototype to avoid an error.
9775    Use char because int might match the return type of a GCC
9776    builtin and then its argument prototype would still apply.  */
9777 #ifdef __cplusplus
9778 extern "C"
9779 #endif
9780 char waddch ();
9781 int
9782 main ()
9783 {
9784 return waddch ();
9785   ;
9786   return 0;
9787 }
9788 _ACEOF
9789 if ac_fn_c_try_link "$LINENO"; then :
9790   case "$LIBEXT" in
9791     dll) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest.exe | grep "curses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9792     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'` ;;
9793     *) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcurses\\.$LIBEXT" | sed -e "s/^.*\(libcurses\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'` ;;
9794   esac
9795 fi
9796 rm -f core conftest.err conftest.$ac_objext \
9797     conftest$ac_exeext conftest.$ac_ext
9798   LIBS=$ac_check_soname_save_LIBS
9799 fi
9800 if test "x$ac_cv_lib_soname_curses" = "x"; then :
9801   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9802 $as_echo "not found" >&6; }
9803
9804 else
9805   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_curses" >&5
9806 $as_echo "$ac_cv_lib_soname_curses" >&6; }
9807
9808 cat >>confdefs.h <<_ACEOF
9809 #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
9810 _ACEOF
9811
9812        CURSESLIBS="-lcurses"
9813 fi
9814 fi
9815 ac_save_LIBS="$LIBS"
9816 LIBS="$LIBS $CURSESLIBS"
9817 for ac_func in mousemask
9818 do :
9819   ac_fn_c_check_func "$LINENO" "mousemask" "ac_cv_func_mousemask"
9820 if test "x$ac_cv_func_mousemask" = xyes; then :
9821   cat >>confdefs.h <<_ACEOF
9822 #define HAVE_MOUSEMASK 1
9823 _ACEOF
9824
9825 fi
9826 done
9827
9828 LIBS="$ac_save_LIBS"
9829 if test "x$ac_cv_lib_soname_curses$ac_cv_lib_soname_ncurses" = "x"; then :
9830   case "x$with_curses" in
9831   x)   as_fn_append wine_notices "|lib(n)curses ${notice_platform}development files not found, curses won't be supported." ;;
9832   xno) ;;
9833   *)   as_fn_error $? "lib(n)curses ${notice_platform}development files not found, curses won't be supported.
9834 This is an error since --with-curses was requested." "$LINENO" 5 ;;
9835 esac
9836 fi
9837
9838 if test "x$with_sane" != "xno"
9839 then
9840     ac_save_CPPFLAGS="$CPPFLAGS"
9841     # Extract the first word of "sane-config", so it can be a program name with args.
9842 set dummy sane-config; ac_word=$2
9843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9844 $as_echo_n "checking for $ac_word... " >&6; }
9845 if ${ac_cv_prog_sane_devel+:} false; then :
9846   $as_echo_n "(cached) " >&6
9847 else
9848   if test -n "$sane_devel"; then
9849   ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
9850 else
9851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9852 for as_dir in $PATH
9853 do
9854   IFS=$as_save_IFS
9855   test -z "$as_dir" && as_dir=.
9856     for ac_exec_ext in '' $ac_executable_extensions; do
9857   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9858     ac_cv_prog_sane_devel="sane-config"
9859     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9860     break 2
9861   fi
9862 done
9863   done
9864 IFS=$as_save_IFS
9865
9866   test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
9867 fi
9868 fi
9869 sane_devel=$ac_cv_prog_sane_devel
9870 if test -n "$sane_devel"; then
9871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sane_devel" >&5
9872 $as_echo "$sane_devel" >&6; }
9873 else
9874   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9875 $as_echo "no" >&6; }
9876 fi
9877
9878
9879     if test "$sane_devel" != "no"
9880     then
9881         ac_sane_incl="`$sane_devel --cflags`"
9882         ac_sane_libs="`$sane_devel --ldflags`"
9883         CPPFLAGS="$CPPFLAGS $ac_sane_incl"
9884     fi
9885     ac_fn_c_check_header_mongrel "$LINENO" "sane/sane.h" "ac_cv_header_sane_sane_h" "$ac_includes_default"
9886 if test "x$ac_cv_header_sane_sane_h" = xyes; then :
9887   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lsane" >&5
9888 $as_echo_n "checking for -lsane... " >&6; }
9889 if ${ac_cv_lib_soname_sane+:} false; then :
9890   $as_echo_n "(cached) " >&6
9891 else
9892   ac_check_soname_save_LIBS=$LIBS
9893 LIBS="-lsane $ac_sane_libs $LIBS"
9894   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9895 /* end confdefs.h.  */
9896
9897 /* Override any GCC internal prototype to avoid an error.
9898    Use char because int might match the return type of a GCC
9899    builtin and then its argument prototype would still apply.  */
9900 #ifdef __cplusplus
9901 extern "C"
9902 #endif
9903 char sane_init ();
9904 int
9905 main ()
9906 {
9907 return sane_init ();
9908   ;
9909   return 0;
9910 }
9911 _ACEOF
9912 if ac_fn_c_try_link "$LINENO"; then :
9913   case "$LIBEXT" in
9914     dll) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest.exe | grep "sane" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9915     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'` ;;
9916     *) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest$ac_exeext | grep "libsane\\.$LIBEXT" | sed -e "s/^.*\(libsane\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
9917   esac
9918 fi
9919 rm -f core conftest.err conftest.$ac_objext \
9920     conftest$ac_exeext conftest.$ac_ext
9921   LIBS=$ac_check_soname_save_LIBS
9922 fi
9923 if test "x$ac_cv_lib_soname_sane" = "x"; then :
9924   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9925 $as_echo "not found" >&6; }
9926
9927 else
9928   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_sane" >&5
9929 $as_echo "$ac_cv_lib_soname_sane" >&6; }
9930
9931 cat >>confdefs.h <<_ACEOF
9932 #define SONAME_LIBSANE "$ac_cv_lib_soname_sane"
9933 _ACEOF
9934
9935        SANEINCL="$ac_sane_incl"
9936
9937 fi
9938 fi
9939
9940
9941     CPPFLAGS="$ac_save_CPPFLAGS"
9942 fi
9943 if test "x$ac_cv_lib_soname_sane" = "x"; then :
9944   case "x$with_sane" in
9945   x)   as_fn_append wine_notices "|libsane ${notice_platform}development files not found, scanners won't be supported." ;;
9946   xno) ;;
9947   *)   as_fn_error $? "libsane ${notice_platform}development files not found, scanners won't be supported.
9948 This is an error since --with-sane was requested." "$LINENO" 5 ;;
9949 esac
9950 fi
9951
9952 if test "x$with_v4l" != "xno"
9953 then
9954     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lv4l1" >&5
9955 $as_echo_n "checking for -lv4l1... " >&6; }
9956 if ${ac_cv_lib_soname_v4l1+:} false; then :
9957   $as_echo_n "(cached) " >&6
9958 else
9959   ac_check_soname_save_LIBS=$LIBS
9960 LIBS="-lv4l1  $LIBS"
9961   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9962 /* end confdefs.h.  */
9963
9964 /* Override any GCC internal prototype to avoid an error.
9965    Use char because int might match the return type of a GCC
9966    builtin and then its argument prototype would still apply.  */
9967 #ifdef __cplusplus
9968 extern "C"
9969 #endif
9970 char v4l1_open ();
9971 int
9972 main ()
9973 {
9974 return v4l1_open ();
9975   ;
9976   return 0;
9977 }
9978 _ACEOF
9979 if ac_fn_c_try_link "$LINENO"; then :
9980   case "$LIBEXT" in
9981     dll) ac_cv_lib_soname_v4l1=`$ac_cv_path_LDD conftest.exe | grep "v4l1" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9982     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'` ;;
9983     *) ac_cv_lib_soname_v4l1=`$ac_cv_path_LDD conftest$ac_exeext | grep "libv4l1\\.$LIBEXT" | sed -e "s/^.*\(libv4l1\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
9984   esac
9985 fi
9986 rm -f core conftest.err conftest.$ac_objext \
9987     conftest$ac_exeext conftest.$ac_ext
9988   LIBS=$ac_check_soname_save_LIBS
9989 fi
9990 if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
9991   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9992 $as_echo "not found" >&6; }
9993
9994 else
9995   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_v4l1" >&5
9996 $as_echo "$ac_cv_lib_soname_v4l1" >&6; }
9997
9998 cat >>confdefs.h <<_ACEOF
9999 #define SONAME_LIBV4L1 "$ac_cv_lib_soname_v4l1"
10000 _ACEOF
10001
10002
10003 fi
10004 fi
10005 if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
10006   case "x$with_v4l" in
10007   x)   as_fn_append wine_notices "|libv4l ${notice_platform}development files not found." ;;
10008   xno) ;;
10009   *)   as_fn_error $? "libv4l ${notice_platform}development files not found.
10010 This is an error since --with-v4l was requested." "$LINENO" 5 ;;
10011 esac
10012 fi
10013
10014 if test "x$with_gphoto" != "xno"
10015 then
10016     ac_save_CPPFLAGS="$CPPFLAGS"
10017     # Extract the first word of "gphoto2-config", so it can be a program name with args.
10018 set dummy gphoto2-config; ac_word=$2
10019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10020 $as_echo_n "checking for $ac_word... " >&6; }
10021 if ${ac_cv_prog_gphoto2_devel+:} false; then :
10022   $as_echo_n "(cached) " >&6
10023 else
10024   if test -n "$gphoto2_devel"; then
10025   ac_cv_prog_gphoto2_devel="$gphoto2_devel" # Let the user override the test.
10026 else
10027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10028 for as_dir in $PATH
10029 do
10030   IFS=$as_save_IFS
10031   test -z "$as_dir" && as_dir=.
10032     for ac_exec_ext in '' $ac_executable_extensions; do
10033   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10034     ac_cv_prog_gphoto2_devel="gphoto2-config"
10035     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10036     break 2
10037   fi
10038 done
10039   done
10040 IFS=$as_save_IFS
10041
10042   test -z "$ac_cv_prog_gphoto2_devel" && ac_cv_prog_gphoto2_devel="no"
10043 fi
10044 fi
10045 gphoto2_devel=$ac_cv_prog_gphoto2_devel
10046 if test -n "$gphoto2_devel"; then
10047   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gphoto2_devel" >&5
10048 $as_echo "$gphoto2_devel" >&6; }
10049 else
10050   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10051 $as_echo "no" >&6; }
10052 fi
10053
10054
10055     # Extract the first word of "gphoto2-port-config", so it can be a program name with args.
10056 set dummy gphoto2-port-config; ac_word=$2
10057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10058 $as_echo_n "checking for $ac_word... " >&6; }
10059 if ${ac_cv_prog_gphoto2port_devel+:} false; then :
10060   $as_echo_n "(cached) " >&6
10061 else
10062   if test -n "$gphoto2port_devel"; then
10063   ac_cv_prog_gphoto2port_devel="$gphoto2port_devel" # Let the user override the test.
10064 else
10065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10066 for as_dir in $PATH
10067 do
10068   IFS=$as_save_IFS
10069   test -z "$as_dir" && as_dir=.
10070     for ac_exec_ext in '' $ac_executable_extensions; do
10071   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10072     ac_cv_prog_gphoto2port_devel="gphoto2-port-config"
10073     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10074     break 2
10075   fi
10076 done
10077   done
10078 IFS=$as_save_IFS
10079
10080   test -z "$ac_cv_prog_gphoto2port_devel" && ac_cv_prog_gphoto2port_devel="no"
10081 fi
10082 fi
10083 gphoto2port_devel=$ac_cv_prog_gphoto2port_devel
10084 if test -n "$gphoto2port_devel"; then
10085   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gphoto2port_devel" >&5
10086 $as_echo "$gphoto2port_devel" >&6; }
10087 else
10088   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10089 $as_echo "no" >&6; }
10090 fi
10091
10092
10093     if test "$gphoto2_devel" != "no" -a "$gphoto2port_devel" != "no"
10094     then
10095         ac_gphoto2_incl="`$gphoto2_devel --cflags` `$gphoto2port_devel --cflags`"
10096         ac_gphoto2_libs=""
10097         for i in `$gphoto2_devel --libs` `$gphoto2port_devel --libs`
10098         do
10099             case "$i" in
10100             -L/usr/lib|-L/usr/lib64) ;;
10101             -L*|-l*) ac_gphoto2_libs="$ac_gphoto2_libs $i";;
10102             esac
10103         done
10104         CPPFLAGS="$CPPFLAGS $ac_gphoto2_incl"
10105     fi
10106     ac_gphoto2_libs=${ac_gphoto2_libs:-"-lgphoto2"}
10107     ac_fn_c_check_header_mongrel "$LINENO" "gphoto2-camera.h" "ac_cv_header_gphoto2_camera_h" "$ac_includes_default"
10108 if test "x$ac_cv_header_gphoto2_camera_h" = xyes; then :
10109   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gp_camera_new in -lgphoto2" >&5
10110 $as_echo_n "checking for gp_camera_new in -lgphoto2... " >&6; }
10111 if ${ac_cv_lib_gphoto2_gp_camera_new+:} false; then :
10112   $as_echo_n "(cached) " >&6
10113 else
10114   ac_check_lib_save_LIBS=$LIBS
10115 LIBS="-lgphoto2 $ac_gphoto2_libs $LIBS"
10116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10117 /* end confdefs.h.  */
10118
10119 /* Override any GCC internal prototype to avoid an error.
10120    Use char because int might match the return type of a GCC
10121    builtin and then its argument prototype would still apply.  */
10122 #ifdef __cplusplus
10123 extern "C"
10124 #endif
10125 char gp_camera_new ();
10126 int
10127 main ()
10128 {
10129 return gp_camera_new ();
10130   ;
10131   return 0;
10132 }
10133 _ACEOF
10134 if ac_fn_c_try_link "$LINENO"; then :
10135   ac_cv_lib_gphoto2_gp_camera_new=yes
10136 else
10137   ac_cv_lib_gphoto2_gp_camera_new=no
10138 fi
10139 rm -f core conftest.err conftest.$ac_objext \
10140     conftest$ac_exeext conftest.$ac_ext
10141 LIBS=$ac_check_lib_save_LIBS
10142 fi
10143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gphoto2_gp_camera_new" >&5
10144 $as_echo "$ac_cv_lib_gphoto2_gp_camera_new" >&6; }
10145 if test "x$ac_cv_lib_gphoto2_gp_camera_new" = xyes; then :
10146
10147 $as_echo "#define HAVE_GPHOTO2 1" >>confdefs.h
10148
10149                                    GPHOTO2LIBS="$ac_gphoto2_libs"
10150
10151                                    GPHOTO2INCL="$ac_gphoto2_incl"
10152
10153 fi
10154
10155 fi
10156
10157
10158     CPPFLAGS="$ac_save_CPPFLAGS"
10159 fi
10160 if test "$ac_cv_lib_gphoto2_gp_camera_new" != "yes"; then :
10161   case "x$with_gphoto" in
10162   x)   as_fn_append wine_notices "|libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported." ;;
10163   xno) ;;
10164   *)   as_fn_error $? "libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported.
10165 This is an error since --with-gphoto was requested." "$LINENO" 5 ;;
10166 esac
10167 fi
10168
10169
10170 if test "$ac_cv_header_resolv_h" = "yes"
10171 then
10172     ac_save_LIBS="$LIBS"
10173     for lib in '' -lresolv
10174     do
10175       LIBS="$lib $ac_save_LIBS"
10176       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10177 /* end confdefs.h.  */
10178 #ifdef HAVE_NETINET_IN_H
10179 #include <netinet/in.h>
10180 #endif
10181 #include <resolv.h>
10182 int
10183 main ()
10184 {
10185 res_query("foo",ns_c_in,0,0,0);
10186   ;
10187   return 0;
10188 }
10189 _ACEOF
10190 if ac_fn_c_try_link "$LINENO"; then :
10191
10192 $as_echo "#define HAVE_RESOLV 1" >>confdefs.h
10193
10194          RESOLVLIBS="$lib"
10195
10196 fi
10197 rm -f core conftest.err conftest.$ac_objext \
10198     conftest$ac_exeext conftest.$ac_ext
10199       if test "${RESOLVLIBS+set}" = set; then
10200         break
10201       fi
10202     done
10203     LIBS="$ac_save_LIBS"
10204 fi
10205
10206 LCMSLIBS=""
10207
10208 if test "$ac_cv_header_lcms_h" = "yes" -o "$ac_cv_header_lcms_lcms_h" = "yes"
10209 then
10210     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromFile in -llcms" >&5
10211 $as_echo_n "checking for cmsOpenProfileFromFile in -llcms... " >&6; }
10212 if ${ac_cv_lib_lcms_cmsOpenProfileFromFile+:} false; then :
10213   $as_echo_n "(cached) " >&6
10214 else
10215   ac_check_lib_save_LIBS=$LIBS
10216 LIBS="-llcms  $LIBS"
10217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10218 /* end confdefs.h.  */
10219
10220 /* Override any GCC internal prototype to avoid an error.
10221    Use char because int might match the return type of a GCC
10222    builtin and then its argument prototype would still apply.  */
10223 #ifdef __cplusplus
10224 extern "C"
10225 #endif
10226 char cmsOpenProfileFromFile ();
10227 int
10228 main ()
10229 {
10230 return cmsOpenProfileFromFile ();
10231   ;
10232   return 0;
10233 }
10234 _ACEOF
10235 if ac_fn_c_try_link "$LINENO"; then :
10236   ac_cv_lib_lcms_cmsOpenProfileFromFile=yes
10237 else
10238   ac_cv_lib_lcms_cmsOpenProfileFromFile=no
10239 fi
10240 rm -f core conftest.err conftest.$ac_objext \
10241     conftest$ac_exeext conftest.$ac_ext
10242 LIBS=$ac_check_lib_save_LIBS
10243 fi
10244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsOpenProfileFromFile" >&5
10245 $as_echo "$ac_cv_lib_lcms_cmsOpenProfileFromFile" >&6; }
10246 if test "x$ac_cv_lib_lcms_cmsOpenProfileFromFile" = xyes; then :
10247
10248 $as_echo "#define HAVE_LCMS 1" >>confdefs.h
10249
10250          LCMSLIBS="-llcms"
10251 fi
10252
10253 fi
10254 if test "$ac_cv_lib_lcms_cmsOpenProfileFromFile" != "yes"; then :
10255   case "x$with_cms" in
10256   x)   as_fn_append wine_notices "|liblcms ${notice_platform}development files not found, Color Management won't be supported." ;;
10257   xno) ;;
10258   *)   as_fn_error $? "liblcms ${notice_platform}development files not found, Color Management won't be supported.
10259 This is an error since --with-cms was requested." "$LINENO" 5 ;;
10260 esac
10261 fi
10262
10263 if test "x$with_freetype" != "xno"
10264 then
10265     if test "$PKG_CONFIG" != "false"
10266     then
10267         ac_freetype_incl="`$PKG_CONFIG --cflags freetype2 2>/dev/null`"
10268         ac_freetype_libs="`$PKG_CONFIG --libs freetype2 2>/dev/null`"
10269     else
10270         for ac_prog in freetype-config freetype2-config
10271 do
10272   # Extract the first word of "$ac_prog", so it can be a program name with args.
10273 set dummy $ac_prog; ac_word=$2
10274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10275 $as_echo_n "checking for $ac_word... " >&6; }
10276 if ${ac_cv_prog_ft_devel+:} false; then :
10277   $as_echo_n "(cached) " >&6
10278 else
10279   if test -n "$ft_devel"; then
10280   ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
10281 else
10282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10283 for as_dir in $PATH
10284 do
10285   IFS=$as_save_IFS
10286   test -z "$as_dir" && as_dir=.
10287     for ac_exec_ext in '' $ac_executable_extensions; do
10288   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10289     ac_cv_prog_ft_devel="$ac_prog"
10290     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10291     break 2
10292   fi
10293 done
10294   done
10295 IFS=$as_save_IFS
10296
10297 fi
10298 fi
10299 ft_devel=$ac_cv_prog_ft_devel
10300 if test -n "$ft_devel"; then
10301   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ft_devel" >&5
10302 $as_echo "$ft_devel" >&6; }
10303 else
10304   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10305 $as_echo "no" >&6; }
10306 fi
10307
10308
10309   test -n "$ft_devel" && break
10310 done
10311 test -n "$ft_devel" || ft_devel="no"
10312
10313         if test "$ft_devel" != "no"
10314         then
10315             ac_freetype_incl=`$ft_devel --cflags`
10316             ac_freetype_libs=`$ft_devel --libs`
10317         fi
10318     fi
10319     ac_freetype_libs=${ac_freetype_libs:-"-lfreetype"}
10320     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfreetype" >&5
10321 $as_echo_n "checking for -lfreetype... " >&6; }
10322 if ${ac_cv_lib_soname_freetype+:} false; then :
10323   $as_echo_n "(cached) " >&6
10324 else
10325   ac_check_soname_save_LIBS=$LIBS
10326 LIBS="-lfreetype $ac_freetype_libs $LIBS"
10327   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10328 /* end confdefs.h.  */
10329
10330 /* Override any GCC internal prototype to avoid an error.
10331    Use char because int might match the return type of a GCC
10332    builtin and then its argument prototype would still apply.  */
10333 #ifdef __cplusplus
10334 extern "C"
10335 #endif
10336 char FT_Init_FreeType ();
10337 int
10338 main ()
10339 {
10340 return FT_Init_FreeType ();
10341   ;
10342   return 0;
10343 }
10344 _ACEOF
10345 if ac_fn_c_try_link "$LINENO"; then :
10346   case "$LIBEXT" in
10347     dll) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest.exe | grep "freetype" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10348     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'` ;;
10349     *) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfreetype\\.$LIBEXT" | sed -e "s/^.*\(libfreetype\.$LIBEXT[^      ]*\).*$/\1/"';2,$d'` ;;
10350   esac
10351 fi
10352 rm -f core conftest.err conftest.$ac_objext \
10353     conftest$ac_exeext conftest.$ac_ext
10354   LIBS=$ac_check_soname_save_LIBS
10355 fi
10356 if test "x$ac_cv_lib_soname_freetype" = "x"; then :
10357   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10358 $as_echo "not found" >&6; }
10359        ft_lib=no
10360 else
10361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_freetype" >&5
10362 $as_echo "$ac_cv_lib_soname_freetype" >&6; }
10363
10364 cat >>confdefs.h <<_ACEOF
10365 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
10366 _ACEOF
10367
10368        ft_lib=yes
10369 fi
10370     if test "$ft_lib" = "yes"
10371     then
10372         ac_save_CPPFLAGS="$CPPFLAGS"
10373         CPPFLAGS="$ac_freetype_incl $CPPFLAGS"
10374         for ac_header in ft2build.h \
10375                          freetype/freetype.h \
10376                          freetype/ftglyph.h \
10377                          freetype/fttypes.h \
10378                          freetype/tttables.h \
10379                          freetype/ftsnames.h \
10380                          freetype/ttnameid.h \
10381                          freetype/ftoutln.h \
10382                          freetype/ftwinfnt.h \
10383                          freetype/ftmodapi.h \
10384                          freetype/ftlcdfil.h
10385 do :
10386   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10387 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_FT2BUILD_H
10388                           # include <ft2build.h>
10389                           #endif
10390 "
10391 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10392   cat >>confdefs.h <<_ACEOF
10393 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10394 _ACEOF
10395
10396 fi
10397
10398 done
10399
10400         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10401 /* end confdefs.h.  */
10402 #include <ft2build.h>
10403                     #include <freetype/fttrigon.h>
10404 _ACEOF
10405 if ac_fn_c_try_cpp "$LINENO"; then :
10406
10407 $as_echo "#define HAVE_FREETYPE_FTTRIGON_H 1" >>confdefs.h
10408
10409                     wine_cv_fttrigon=yes
10410 else
10411   wine_cv_fttrigon=no
10412 fi
10413 rm -f conftest.err conftest.i conftest.$ac_ext
10414         ac_fn_c_check_type "$LINENO" "FT_TrueTypeEngineType" "ac_cv_type_FT_TrueTypeEngineType" "#include <freetype/ftmodapi.h>
10415 "
10416 if test "x$ac_cv_type_FT_TrueTypeEngineType" = xyes; then :
10417
10418 cat >>confdefs.h <<_ACEOF
10419 #define HAVE_FT_TRUETYPEENGINETYPE 1
10420 _ACEOF
10421
10422
10423 fi
10424
10425                 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
10426         then
10427
10428 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
10429
10430             FREETYPELIBS="$ac_freetype_libs"
10431
10432             FREETYPEINCL="$ac_freetype_incl"
10433
10434         fi
10435     fi
10436 fi
10437 if test "x$FREETYPELIBS" = "x"; then :
10438   case "x$with_freetype" in
10439   xno) ;;
10440   *)   as_fn_error $? "FreeType ${notice_platform}development files not found. Fonts will not be built.
10441 Use the --without-freetype option if you really want this." "$LINENO" 5 ;;
10442 esac
10443 fi
10444 test "x$FREETYPELIBS" = "x" && enable_fonts=${enable_fonts:-no}
10445
10446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for parport header/ppdev.h" >&5
10447 $as_echo_n "checking for parport header/ppdev.h... " >&6; }
10448 if ${ac_cv_c_ppdev+:} false; then :
10449   $as_echo_n "(cached) " >&6
10450 else
10451   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10452 /* end confdefs.h.  */
10453 #ifdef HAVE_SYS_IOCTL_H
10454 # include <sys/ioctl.h>
10455 #endif
10456 #include <linux/ppdev.h>
10457 int
10458 main ()
10459 {
10460 ioctl (1,PPCLAIM,0)
10461   ;
10462   return 0;
10463 }
10464 _ACEOF
10465 if ac_fn_c_try_compile "$LINENO"; then :
10466   ac_cv_c_ppdev="yes"
10467 else
10468   ac_cv_c_ppdev="no"
10469 fi
10470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10471 fi
10472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_ppdev" >&5
10473 $as_echo "$ac_cv_c_ppdev" >&6; }
10474 if test "$ac_cv_c_ppdev" = "yes"
10475 then
10476
10477 $as_echo "#define HAVE_PPDEV 1" >>confdefs.h
10478
10479 fi
10480
10481 ac_wine_check_funcs_save_LIBS="$LIBS"
10482 LIBS="$LIBS $LIBPTHREAD"
10483 for ac_func in \
10484         pthread_attr_get_np \
10485         pthread_getattr_np \
10486         pthread_get_stackaddr_np \
10487         pthread_get_stacksize_np
10488 do :
10489   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10490 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10491 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10492   cat >>confdefs.h <<_ACEOF
10493 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10494 _ACEOF
10495
10496 fi
10497 done
10498
10499 LIBS="$ac_wine_check_funcs_save_LIBS"
10500
10501 if test "$ac_cv_header_zlib_h" = "yes"
10502 then
10503     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
10504 $as_echo_n "checking for inflate in -lz... " >&6; }
10505 if ${ac_cv_lib_z_inflate+:} false; then :
10506   $as_echo_n "(cached) " >&6
10507 else
10508   ac_check_lib_save_LIBS=$LIBS
10509 LIBS="-lz  $LIBS"
10510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10511 /* end confdefs.h.  */
10512
10513 /* Override any GCC internal prototype to avoid an error.
10514    Use char because int might match the return type of a GCC
10515    builtin and then its argument prototype would still apply.  */
10516 #ifdef __cplusplus
10517 extern "C"
10518 #endif
10519 char inflate ();
10520 int
10521 main ()
10522 {
10523 return inflate ();
10524   ;
10525   return 0;
10526 }
10527 _ACEOF
10528 if ac_fn_c_try_link "$LINENO"; then :
10529   ac_cv_lib_z_inflate=yes
10530 else
10531   ac_cv_lib_z_inflate=no
10532 fi
10533 rm -f core conftest.err conftest.$ac_objext \
10534     conftest$ac_exeext conftest.$ac_ext
10535 LIBS=$ac_check_lib_save_LIBS
10536 fi
10537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
10538 $as_echo "$ac_cv_lib_z_inflate" >&6; }
10539 if test "x$ac_cv_lib_z_inflate" = xyes; then :
10540
10541 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
10542
10543                             ZLIB="-lz"
10544
10545 fi
10546
10547 fi
10548 if test "x$ZLIB" = "x"; then :
10549   case "x$with_zlib" in
10550   x)   as_fn_append wine_notices "|libz ${notice_platform}development files not found, data compression won't be supported." ;;
10551   xno) ;;
10552   *)   as_fn_error $? "libz ${notice_platform}development files not found, data compression won't be supported.
10553 This is an error since --with-zlib was requested." "$LINENO" 5 ;;
10554 esac
10555 fi
10556
10557 if test "x$enable_tools" != xno
10558 then
10559     if test "$ac_cv_header_gettext_po_h" = "yes"
10560     then
10561         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for po_message_msgctxt in -lgettextpo" >&5
10562 $as_echo_n "checking for po_message_msgctxt in -lgettextpo... " >&6; }
10563 if ${ac_cv_lib_gettextpo_po_message_msgctxt+:} false; then :
10564   $as_echo_n "(cached) " >&6
10565 else
10566   ac_check_lib_save_LIBS=$LIBS
10567 LIBS="-lgettextpo  $LIBS"
10568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10569 /* end confdefs.h.  */
10570
10571 /* Override any GCC internal prototype to avoid an error.
10572    Use char because int might match the return type of a GCC
10573    builtin and then its argument prototype would still apply.  */
10574 #ifdef __cplusplus
10575 extern "C"
10576 #endif
10577 char po_message_msgctxt ();
10578 int
10579 main ()
10580 {
10581 return po_message_msgctxt ();
10582   ;
10583   return 0;
10584 }
10585 _ACEOF
10586 if ac_fn_c_try_link "$LINENO"; then :
10587   ac_cv_lib_gettextpo_po_message_msgctxt=yes
10588 else
10589   ac_cv_lib_gettextpo_po_message_msgctxt=no
10590 fi
10591 rm -f core conftest.err conftest.$ac_objext \
10592     conftest$ac_exeext conftest.$ac_ext
10593 LIBS=$ac_check_lib_save_LIBS
10594 fi
10595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gettextpo_po_message_msgctxt" >&5
10596 $as_echo "$ac_cv_lib_gettextpo_po_message_msgctxt" >&6; }
10597 if test "x$ac_cv_lib_gettextpo_po_message_msgctxt" = xyes; then :
10598
10599 $as_echo "#define HAVE_LIBGETTEXTPO 1" >>confdefs.h
10600
10601                       LIBGETTEXTPO="-lgettextpo"
10602
10603 fi
10604
10605     fi
10606     test "x$with_gettextpo" != xyes || if test "x$LIBGETTEXTPO" = "x"; then :
10607   case "x$with_gettextpo" in
10608   x)   as_fn_append wine_notices "|GetText ${notice_platform}development files not found (or too old), po files can't be rebuilt." ;;
10609   xno) ;;
10610   *)   as_fn_error $? "GetText ${notice_platform}development files not found (or too old), po files can't be rebuilt.
10611 This is an error since --with-gettextpo was requested." "$LINENO" 5 ;;
10612 esac
10613 fi
10614 fi
10615
10616 if test "x$with_gstreamer" != "xno"
10617 then
10618     ac_save_CPPFLAGS="$CPPFLAGS"
10619     if test "$PKG_CONFIG" != "false"; then
10620         ac_gst_incl=""
10621         for i in `$PKG_CONFIG --cflags gstreamer-app-0.10 2>/dev/null`
10622         do
10623             case "$i" in
10624                 -I*) ac_gst_incl="$ac_gst_incl $i";;
10625             esac
10626         done
10627         ac_gst_libs="`$PKG_CONFIG --libs gstreamer-app-0.10 2>/dev/null`"
10628         CPPFLAGS="$CPPFLAGS $ac_gst_incl"
10629         ac_fn_c_check_header_mongrel "$LINENO" "gst/gstpad.h" "ac_cv_header_gst_gstpad_h" "$ac_includes_default"
10630 if test "x$ac_cv_header_gst_gstpad_h" = xyes; then :
10631   ac_fn_c_check_header_mongrel "$LINENO" "gst/app/gstappsink.h" "ac_cv_header_gst_app_gstappsink_h" "$ac_includes_default"
10632 if test "x$ac_cv_header_gst_app_gstappsink_h" = xyes; then :
10633   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gint64 defined by gst/app/gstappsink.h is indeed 64-bit" >&5
10634 $as_echo_n "checking whether gint64 defined by gst/app/gstappsink.h is indeed 64-bit... " >&6; }
10635               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10636 /* end confdefs.h.  */
10637 #include <gst/app/gstappsink.h>
10638 int
10639 main ()
10640 {
10641 static int a[sizeof(gint64) > 4 ? 1 : -1]; if (a[0]) return 0;
10642   ;
10643   return 0;
10644 }
10645 _ACEOF
10646 if ac_fn_c_try_compile "$LINENO"; then :
10647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10648 $as_echo "yes" >&6; }
10649                  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_pad_get_caps_reffed in -lgstreamer-0.10" >&5
10650 $as_echo_n "checking for gst_pad_get_caps_reffed in -lgstreamer-0.10... " >&6; }
10651 if ${ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed+:} false; then :
10652   $as_echo_n "(cached) " >&6
10653 else
10654   ac_check_lib_save_LIBS=$LIBS
10655 LIBS="-lgstreamer-0.10  $LIBS"
10656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10657 /* end confdefs.h.  */
10658
10659 /* Override any GCC internal prototype to avoid an error.
10660    Use char because int might match the return type of a GCC
10661    builtin and then its argument prototype would still apply.  */
10662 #ifdef __cplusplus
10663 extern "C"
10664 #endif
10665 char gst_pad_get_caps_reffed ();
10666 int
10667 main ()
10668 {
10669 return gst_pad_get_caps_reffed ();
10670   ;
10671   return 0;
10672 }
10673 _ACEOF
10674 if ac_fn_c_try_link "$LINENO"; then :
10675   ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=yes
10676 else
10677   ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=no
10678 fi
10679 rm -f core conftest.err conftest.$ac_objext \
10680     conftest$ac_exeext conftest.$ac_ext
10681 LIBS=$ac_check_lib_save_LIBS
10682 fi
10683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&5
10684 $as_echo "$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&6; }
10685 if test "x$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" = xyes; then :
10686   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_app_buffer_new in -lgstapp-0.10" >&5
10687 $as_echo_n "checking for gst_app_buffer_new in -lgstapp-0.10... " >&6; }
10688 if ${ac_cv_lib_gstapp_0_10_gst_app_buffer_new+:} false; then :
10689   $as_echo_n "(cached) " >&6
10690 else
10691   ac_check_lib_save_LIBS=$LIBS
10692 LIBS="-lgstapp-0.10 $ac_gst_libs $LIBS"
10693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10694 /* end confdefs.h.  */
10695
10696 /* Override any GCC internal prototype to avoid an error.
10697    Use char because int might match the return type of a GCC
10698    builtin and then its argument prototype would still apply.  */
10699 #ifdef __cplusplus
10700 extern "C"
10701 #endif
10702 char gst_app_buffer_new ();
10703 int
10704 main ()
10705 {
10706 return gst_app_buffer_new ();
10707   ;
10708   return 0;
10709 }
10710 _ACEOF
10711 if ac_fn_c_try_link "$LINENO"; then :
10712   ac_cv_lib_gstapp_0_10_gst_app_buffer_new=yes
10713 else
10714   ac_cv_lib_gstapp_0_10_gst_app_buffer_new=no
10715 fi
10716 rm -f core conftest.err conftest.$ac_objext \
10717     conftest$ac_exeext conftest.$ac_ext
10718 LIBS=$ac_check_lib_save_LIBS
10719 fi
10720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&5
10721 $as_echo "$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&6; }
10722 if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = xyes; then :
10723   GSTREAMER_LIBS="$ac_gst_libs"
10724
10725                        GSTREAMER_INCL="$ac_gst_incl"
10726
10727 fi
10728
10729 fi
10730
10731 else
10732   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10733 $as_echo "no" >&6; }
10734 fi
10735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10736 fi
10737
10738
10739 fi
10740
10741
10742     fi
10743     CPPFLAGS="$ac_save_CPPFLAGS"
10744 fi
10745 if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" != xyes -a "x$ac_cv_header_QuickTime_ImageCompression_h" != xyes; then :
10746   case "x$with_gstreamer" in
10747   x)   as_fn_append wine_notices "|gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled" ;;
10748   xno) ;;
10749   *)   as_fn_error $? "gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled
10750 This is an error since --with-gstreamer was requested." "$LINENO" 5 ;;
10751 esac
10752 fi
10753 test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = xyes || enable_winegstreamer=${enable_winegstreamer:-no}
10754
10755 ALSALIBS=""
10756
10757 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
10758 then
10759     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_hw_params_get_access_mask in -lasound" >&5
10760 $as_echo_n "checking for snd_pcm_hw_params_get_access_mask in -lasound... " >&6; }
10761 if ${ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask+:} false; then :
10762   $as_echo_n "(cached) " >&6
10763 else
10764   ac_check_lib_save_LIBS=$LIBS
10765 LIBS="-lasound  $LIBS"
10766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10767 /* end confdefs.h.  */
10768
10769 /* Override any GCC internal prototype to avoid an error.
10770    Use char because int might match the return type of a GCC
10771    builtin and then its argument prototype would still apply.  */
10772 #ifdef __cplusplus
10773 extern "C"
10774 #endif
10775 char snd_pcm_hw_params_get_access_mask ();
10776 int
10777 main ()
10778 {
10779 return snd_pcm_hw_params_get_access_mask ();
10780   ;
10781   return 0;
10782 }
10783 _ACEOF
10784 if ac_fn_c_try_link "$LINENO"; then :
10785   ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=yes
10786 else
10787   ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=no
10788 fi
10789 rm -f core conftest.err conftest.$ac_objext \
10790     conftest$ac_exeext conftest.$ac_ext
10791 LIBS=$ac_check_lib_save_LIBS
10792 fi
10793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&5
10794 $as_echo "$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&6; }
10795 if test "x$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" = xyes; then :
10796   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10797 /* end confdefs.h.  */
10798 #ifdef HAVE_ALSA_ASOUNDLIB_H
10799 #include <alsa/asoundlib.h>
10800 #elif defined(HAVE_SYS_ASOUNDLIB_H)
10801 #include <sys/asoundlib.h>
10802 #endif
10803 int
10804 main ()
10805 {
10806 snd_pcm_hw_params_get_access_mask(NULL, NULL)
10807   ;
10808   return 0;
10809 }
10810 _ACEOF
10811 if ac_fn_c_try_compile "$LINENO"; then :
10812   ALSALIBS="-lasound"
10813 fi
10814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10815 fi
10816
10817 fi
10818
10819 if test "x$with_oss" != xno
10820 then
10821     ac_save_CPPFLAGS="$CPPFLAGS"
10822     if test -f /etc/oss.conf
10823     then
10824         . /etc/oss.conf
10825     fi
10826     ac_oss_incl="-I${OSSLIBDIR:-/usr/lib/oss}/include"
10827     CPPFLAGS="$CPPFLAGS $ac_oss_incl"
10828     ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
10829 if test "x$ac_cv_header_sys_soundcard_h" = xyes; then :
10830   ac_fn_c_check_member "$LINENO" "oss_sysinfo" "numaudioengines" "ac_cv_member_oss_sysinfo_numaudioengines" "#include <sys/soundcard.h>
10831 "
10832 if test "x$ac_cv_member_oss_sysinfo_numaudioengines" = xyes; then :
10833
10834 cat >>confdefs.h <<_ACEOF
10835 #define HAVE_OSS_SYSINFO_NUMAUDIOENGINES 1
10836 _ACEOF
10837
10838 OSS4INCL="$ac_oss_incl"
10839
10840 fi
10841
10842 fi
10843
10844
10845     CPPFLAGS="$ac_save_CPPFLAGS"
10846     if test "x$ac_cv_member_oss_sysinfo_numaudioengines" != xyes
10847     then
10848         as_fn_append wine_notices "|OSS sound system found but too old (OSSv4 needed), OSS won't be supported."
10849     fi
10850 fi
10851
10852
10853 if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes"
10854 then
10855     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcapi20" >&5
10856 $as_echo_n "checking for -lcapi20... " >&6; }
10857 if ${ac_cv_lib_soname_capi20+:} false; then :
10858   $as_echo_n "(cached) " >&6
10859 else
10860   ac_check_soname_save_LIBS=$LIBS
10861 LIBS="-lcapi20  $LIBS"
10862   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10863 /* end confdefs.h.  */
10864
10865 /* Override any GCC internal prototype to avoid an error.
10866    Use char because int might match the return type of a GCC
10867    builtin and then its argument prototype would still apply.  */
10868 #ifdef __cplusplus
10869 extern "C"
10870 #endif
10871 char capi20_register ();
10872 int
10873 main ()
10874 {
10875 return capi20_register ();
10876   ;
10877   return 0;
10878 }
10879 _ACEOF
10880 if ac_fn_c_try_link "$LINENO"; then :
10881   case "$LIBEXT" in
10882     dll) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest.exe | grep "capi20" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10883     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'` ;;
10884     *) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcapi20\\.$LIBEXT" | sed -e "s/^.*\(libcapi20\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'` ;;
10885   esac
10886 fi
10887 rm -f core conftest.err conftest.$ac_objext \
10888     conftest$ac_exeext conftest.$ac_ext
10889   LIBS=$ac_check_soname_save_LIBS
10890 fi
10891 if test "x$ac_cv_lib_soname_capi20" = "x"; then :
10892   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10893 $as_echo "not found" >&6; }
10894
10895 else
10896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_capi20" >&5
10897 $as_echo "$ac_cv_lib_soname_capi20" >&6; }
10898
10899 cat >>confdefs.h <<_ACEOF
10900 #define SONAME_LIBCAPI20 "$ac_cv_lib_soname_capi20"
10901 _ACEOF
10902
10903
10904 fi
10905 fi
10906 if test "x$ac_cv_lib_soname_capi20" = "x"; then :
10907   case "x$with_capi" in
10908   x)   as_fn_append wine_notices "|libcapi20 ${notice_platform}development files not found, ISDN won't be supported." ;;
10909   xno) ;;
10910   *)   as_fn_error $? "libcapi20 ${notice_platform}development files not found, ISDN won't be supported.
10911 This is an error since --with-capi was requested." "$LINENO" 5 ;;
10912 esac
10913 fi
10914
10915 CUPSINCL=""
10916
10917 if test "x$with_cups" != "xno"
10918 then
10919     ac_save_CPPFLAGS="$CPPFLAGS"
10920     ac_cups_cflags=`cups-config --cflags 2>/dev/null`
10921     ac_cups_libs=`cups-config --ldflags 2>/dev/null`
10922     CPPFLAGS="$CPPFLAGS $ac_cups_cflags"
10923     for ac_header in cups/cups.h
10924 do :
10925   ac_fn_c_check_header_mongrel "$LINENO" "cups/cups.h" "ac_cv_header_cups_cups_h" "$ac_includes_default"
10926 if test "x$ac_cv_header_cups_cups_h" = xyes; then :
10927   cat >>confdefs.h <<_ACEOF
10928 #define HAVE_CUPS_CUPS_H 1
10929 _ACEOF
10930  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcups" >&5
10931 $as_echo_n "checking for -lcups... " >&6; }
10932 if ${ac_cv_lib_soname_cups+:} false; then :
10933   $as_echo_n "(cached) " >&6
10934 else
10935   ac_check_soname_save_LIBS=$LIBS
10936 LIBS="-lcups $ac_cups_libs $LIBS"
10937   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10938 /* end confdefs.h.  */
10939
10940 /* Override any GCC internal prototype to avoid an error.
10941    Use char because int might match the return type of a GCC
10942    builtin and then its argument prototype would still apply.  */
10943 #ifdef __cplusplus
10944 extern "C"
10945 #endif
10946 char cupsGetDefault ();
10947 int
10948 main ()
10949 {
10950 return cupsGetDefault ();
10951   ;
10952   return 0;
10953 }
10954 _ACEOF
10955 if ac_fn_c_try_link "$LINENO"; then :
10956   case "$LIBEXT" in
10957     dll) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest.exe | grep "cups" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10958     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'` ;;
10959     *) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcups\\.$LIBEXT" | sed -e "s/^.*\(libcups\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
10960   esac
10961 fi
10962 rm -f core conftest.err conftest.$ac_objext \
10963     conftest$ac_exeext conftest.$ac_ext
10964   LIBS=$ac_check_soname_save_LIBS
10965 fi
10966 if test "x$ac_cv_lib_soname_cups" = "x"; then :
10967   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10968 $as_echo "not found" >&6; }
10969
10970 else
10971   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_cups" >&5
10972 $as_echo "$ac_cv_lib_soname_cups" >&6; }
10973
10974 cat >>confdefs.h <<_ACEOF
10975 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
10976 _ACEOF
10977
10978        CUPSINCL="$ac_cups_cflags"
10979 fi
10980 fi
10981
10982 done
10983
10984     CPPFLAGS="$ac_save_CPPFLAGS"
10985 fi
10986 if test "x$ac_cv_lib_soname_cups" = "x"; then :
10987   case "x$with_cups" in
10988   x)   as_fn_append wine_notices "|libcups ${notice_platform}development files not found, CUPS won't be supported." ;;
10989   xno) ;;
10990   *)   as_fn_error $? "libcups ${notice_platform}development files not found, CUPS won't be supported.
10991 This is an error since --with-cups was requested." "$LINENO" 5 ;;
10992 esac
10993 fi
10994
10995 if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
10996 then
10997     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
10998 $as_echo_n "checking for -lfontconfig... " >&6; }
10999 if ${ac_cv_lib_soname_fontconfig+:} false; then :
11000   $as_echo_n "(cached) " >&6
11001 else
11002   ac_check_soname_save_LIBS=$LIBS
11003 LIBS="-lfontconfig  $LIBS"
11004   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11005 /* end confdefs.h.  */
11006
11007 /* Override any GCC internal prototype to avoid an error.
11008    Use char because int might match the return type of a GCC
11009    builtin and then its argument prototype would still apply.  */
11010 #ifdef __cplusplus
11011 extern "C"
11012 #endif
11013 char FcInit ();
11014 int
11015 main ()
11016 {
11017 return FcInit ();
11018   ;
11019   return 0;
11020 }
11021 _ACEOF
11022 if ac_fn_c_try_link "$LINENO"; then :
11023   case "$LIBEXT" in
11024     dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11025     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'` ;;
11026     *) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'` ;;
11027   esac
11028 fi
11029 rm -f core conftest.err conftest.$ac_objext \
11030     conftest$ac_exeext conftest.$ac_ext
11031   LIBS=$ac_check_soname_save_LIBS
11032 fi
11033 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11034   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11035 $as_echo "not found" >&6; }
11036
11037 else
11038   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
11039 $as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
11040
11041 cat >>confdefs.h <<_ACEOF
11042 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
11043 _ACEOF
11044
11045
11046 fi
11047 elif test -n "$X_CFLAGS" -a "x$with_fontconfig" != "xno"
11048 then
11049         ac_save_CPPFLAGS="$CPPFLAGS"
11050     CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11051     $as_unset ac_cv_header_fontconfig_fontconfig_h
11052     for ac_header in fontconfig/fontconfig.h
11053 do :
11054   ac_fn_c_check_header_mongrel "$LINENO" "fontconfig/fontconfig.h" "ac_cv_header_fontconfig_fontconfig_h" "$ac_includes_default"
11055 if test "x$ac_cv_header_fontconfig_fontconfig_h" = xyes; then :
11056   cat >>confdefs.h <<_ACEOF
11057 #define HAVE_FONTCONFIG_FONTCONFIG_H 1
11058 _ACEOF
11059
11060 fi
11061
11062 done
11063
11064     CPPFLAGS="$ac_save_CPPFLAGS"
11065     if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
11066     then
11067         FONTCONFIGINCL="$X_CFLAGS"
11068
11069         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
11070 $as_echo_n "checking for -lfontconfig... " >&6; }
11071 if ${ac_cv_lib_soname_fontconfig+:} false; then :
11072   $as_echo_n "(cached) " >&6
11073 else
11074   ac_check_soname_save_LIBS=$LIBS
11075 LIBS="-lfontconfig $X_LIBS $LIBS"
11076   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11077 /* end confdefs.h.  */
11078
11079 /* Override any GCC internal prototype to avoid an error.
11080    Use char because int might match the return type of a GCC
11081    builtin and then its argument prototype would still apply.  */
11082 #ifdef __cplusplus
11083 extern "C"
11084 #endif
11085 char FcInit ();
11086 int
11087 main ()
11088 {
11089 return FcInit ();
11090   ;
11091   return 0;
11092 }
11093 _ACEOF
11094 if ac_fn_c_try_link "$LINENO"; then :
11095   case "$LIBEXT" in
11096     dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11097     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'` ;;
11098     *) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'` ;;
11099   esac
11100 fi
11101 rm -f core conftest.err conftest.$ac_objext \
11102     conftest$ac_exeext conftest.$ac_ext
11103   LIBS=$ac_check_soname_save_LIBS
11104 fi
11105 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11107 $as_echo "not found" >&6; }
11108
11109 else
11110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
11111 $as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
11112
11113 cat >>confdefs.h <<_ACEOF
11114 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
11115 _ACEOF
11116
11117
11118 fi
11119     fi
11120 fi
11121 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11122   case "x$with_fontconfig" in
11123   x)   as_fn_append wine_notices "|fontconfig ${notice_platform}development files not found, fontconfig won't be supported." ;;
11124   xno) ;;
11125   *)   as_fn_error $? "fontconfig ${notice_platform}development files not found, fontconfig won't be supported.
11126 This is an error since --with-fontconfig was requested." "$LINENO" 5 ;;
11127 esac
11128 fi
11129
11130 if test "$ac_cv_header_openssl_err_h" = "yes" -a "$ac_cv_header_openssl_ssl_h" = "yes"
11131 then
11132     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lssl" >&5
11133 $as_echo_n "checking for -lssl... " >&6; }
11134 if ${ac_cv_lib_soname_ssl+:} false; then :
11135   $as_echo_n "(cached) " >&6
11136 else
11137   ac_check_soname_save_LIBS=$LIBS
11138 LIBS="-lssl  $LIBS"
11139   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11140 /* end confdefs.h.  */
11141
11142 /* Override any GCC internal prototype to avoid an error.
11143    Use char because int might match the return type of a GCC
11144    builtin and then its argument prototype would still apply.  */
11145 #ifdef __cplusplus
11146 extern "C"
11147 #endif
11148 char SSL_library_init ();
11149 int
11150 main ()
11151 {
11152 return SSL_library_init ();
11153   ;
11154   return 0;
11155 }
11156 _ACEOF
11157 if ac_fn_c_try_link "$LINENO"; then :
11158   case "$LIBEXT" in
11159     dll) ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest.exe | grep "ssl" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11160     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'` ;;
11161     *) ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep "libssl\\.$LIBEXT" | sed -e "s/^.*\(libssl\.$LIBEXT[^     ]*\).*$/\1/"';2,$d'` ;;
11162   esac
11163 fi
11164 rm -f core conftest.err conftest.$ac_objext \
11165     conftest$ac_exeext conftest.$ac_ext
11166   LIBS=$ac_check_soname_save_LIBS
11167 fi
11168 if test "x$ac_cv_lib_soname_ssl" = "x"; then :
11169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11170 $as_echo "not found" >&6; }
11171
11172 else
11173   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ssl" >&5
11174 $as_echo "$ac_cv_lib_soname_ssl" >&6; }
11175
11176 cat >>confdefs.h <<_ACEOF
11177 #define SONAME_LIBSSL "$ac_cv_lib_soname_ssl"
11178 _ACEOF
11179
11180
11181 fi
11182     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcrypto" >&5
11183 $as_echo_n "checking for -lcrypto... " >&6; }
11184 if ${ac_cv_lib_soname_crypto+:} false; then :
11185   $as_echo_n "(cached) " >&6
11186 else
11187   ac_check_soname_save_LIBS=$LIBS
11188 LIBS="-lcrypto  $LIBS"
11189   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11190 /* end confdefs.h.  */
11191
11192 /* Override any GCC internal prototype to avoid an error.
11193    Use char because int might match the return type of a GCC
11194    builtin and then its argument prototype would still apply.  */
11195 #ifdef __cplusplus
11196 extern "C"
11197 #endif
11198 char BIO_new_socket ();
11199 int
11200 main ()
11201 {
11202 return BIO_new_socket ();
11203   ;
11204   return 0;
11205 }
11206 _ACEOF
11207 if ac_fn_c_try_link "$LINENO"; then :
11208   case "$LIBEXT" in
11209     dll) ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest.exe | grep "crypto" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11210     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'` ;;
11211     *) ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcrypto\\.$LIBEXT" | sed -e "s/^.*\(libcrypto\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'` ;;
11212   esac
11213 fi
11214 rm -f core conftest.err conftest.$ac_objext \
11215     conftest$ac_exeext conftest.$ac_ext
11216   LIBS=$ac_check_soname_save_LIBS
11217 fi
11218 if test "x$ac_cv_lib_soname_crypto" = "x"; then :
11219   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11220 $as_echo "not found" >&6; }
11221
11222 else
11223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_crypto" >&5
11224 $as_echo "$ac_cv_lib_soname_crypto" >&6; }
11225
11226 cat >>confdefs.h <<_ACEOF
11227 #define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto"
11228 _ACEOF
11229
11230
11231 fi
11232 fi
11233 if test "x$ac_cv_lib_soname_ssl" = "x" -o "x$ac_cv_lib_soname_crypto" = "x"; then :
11234   case "x$with_openssl" in
11235   x)   as_fn_append wine_warnings "|OpenSSL ${notice_platform}development files not found, SSL won't be supported." ;;
11236   xno) ;;
11237   *)   as_fn_error $? "OpenSSL ${notice_platform}development files not found, SSL won't be supported.
11238 This is an error since --with-openssl was requested." "$LINENO" 5 ;;
11239 esac
11240 fi
11241
11242 if test "$ac_cv_header_gsm_h" = "yes" -o "$ac_cv_header_gsm_gsm_h" = "yes"
11243 then
11244     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgsm" >&5
11245 $as_echo_n "checking for -lgsm... " >&6; }
11246 if ${ac_cv_lib_soname_gsm+:} false; then :
11247   $as_echo_n "(cached) " >&6
11248 else
11249   ac_check_soname_save_LIBS=$LIBS
11250 LIBS="-lgsm  $LIBS"
11251   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11252 /* end confdefs.h.  */
11253
11254 /* Override any GCC internal prototype to avoid an error.
11255    Use char because int might match the return type of a GCC
11256    builtin and then its argument prototype would still apply.  */
11257 #ifdef __cplusplus
11258 extern "C"
11259 #endif
11260 char gsm_create ();
11261 int
11262 main ()
11263 {
11264 return gsm_create ();
11265   ;
11266   return 0;
11267 }
11268 _ACEOF
11269 if ac_fn_c_try_link "$LINENO"; then :
11270   case "$LIBEXT" in
11271     dll) ac_cv_lib_soname_gsm=`$ac_cv_path_LDD conftest.exe | grep "gsm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11272     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'` ;;
11273     *) ac_cv_lib_soname_gsm=`$ac_cv_path_LDD conftest$ac_exeext | grep "libgsm\\.$LIBEXT" | sed -e "s/^.*\(libgsm\.$LIBEXT[^     ]*\).*$/\1/"';2,$d'` ;;
11274   esac
11275 fi
11276 rm -f core conftest.err conftest.$ac_objext \
11277     conftest$ac_exeext conftest.$ac_ext
11278   LIBS=$ac_check_soname_save_LIBS
11279 fi
11280 if test "x$ac_cv_lib_soname_gsm" = "x"; then :
11281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11282 $as_echo "not found" >&6; }
11283
11284 else
11285   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gsm" >&5
11286 $as_echo "$ac_cv_lib_soname_gsm" >&6; }
11287
11288 cat >>confdefs.h <<_ACEOF
11289 #define SONAME_LIBGSM "$ac_cv_lib_soname_gsm"
11290 _ACEOF
11291
11292
11293 fi
11294 fi
11295 if test "x$ac_cv_lib_soname_gsm" = "x"; then :
11296   case "x$with_gsm" in
11297   x)   as_fn_append wine_notices "|libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported." ;;
11298   xno) ;;
11299   *)   as_fn_error $? "libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported.
11300 This is an error since --with-gsm was requested." "$LINENO" 5 ;;
11301 esac
11302 fi
11303
11304 if test "$ac_cv_header_jpeglib_h" = "yes"
11305 then
11306     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ljpeg" >&5
11307 $as_echo_n "checking for -ljpeg... " >&6; }
11308 if ${ac_cv_lib_soname_jpeg+:} false; then :
11309   $as_echo_n "(cached) " >&6
11310 else
11311   ac_check_soname_save_LIBS=$LIBS
11312 LIBS="-ljpeg  $LIBS"
11313   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11314 /* end confdefs.h.  */
11315
11316 /* Override any GCC internal prototype to avoid an error.
11317    Use char because int might match the return type of a GCC
11318    builtin and then its argument prototype would still apply.  */
11319 #ifdef __cplusplus
11320 extern "C"
11321 #endif
11322 char jpeg_start_decompress ();
11323 int
11324 main ()
11325 {
11326 return jpeg_start_decompress ();
11327   ;
11328   return 0;
11329 }
11330 _ACEOF
11331 if ac_fn_c_try_link "$LINENO"; then :
11332   case "$LIBEXT" in
11333     dll) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest.exe | grep "jpeg" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11334     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'` ;;
11335     *) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest$ac_exeext | grep "libjpeg\\.$LIBEXT" | sed -e "s/^.*\(libjpeg\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
11336   esac
11337 fi
11338 rm -f core conftest.err conftest.$ac_objext \
11339     conftest$ac_exeext conftest.$ac_ext
11340   LIBS=$ac_check_soname_save_LIBS
11341 fi
11342 if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
11343   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11344 $as_echo "not found" >&6; }
11345
11346 else
11347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_jpeg" >&5
11348 $as_echo "$ac_cv_lib_soname_jpeg" >&6; }
11349
11350 cat >>confdefs.h <<_ACEOF
11351 #define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg"
11352 _ACEOF
11353
11354
11355 fi
11356 fi
11357 if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
11358   case "x$with_jpeg" in
11359   x)   as_fn_append wine_warnings "|libjpeg ${notice_platform}development files not found, JPEG won't be supported." ;;
11360   xno) ;;
11361   *)   as_fn_error $? "libjpeg ${notice_platform}development files not found, JPEG won't be supported.
11362 This is an error since --with-jpeg was requested." "$LINENO" 5 ;;
11363 esac
11364 fi
11365
11366 if test "$ac_cv_header_png_h" = "yes"
11367 then
11368     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
11369 $as_echo_n "checking for -lpng... " >&6; }
11370 if ${ac_cv_lib_soname_png+:} false; then :
11371   $as_echo_n "(cached) " >&6
11372 else
11373   ac_check_soname_save_LIBS=$LIBS
11374 LIBS="-lpng -lm -lz $LIBS"
11375   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11376 /* end confdefs.h.  */
11377
11378 /* Override any GCC internal prototype to avoid an error.
11379    Use char because int might match the return type of a GCC
11380    builtin and then its argument prototype would still apply.  */
11381 #ifdef __cplusplus
11382 extern "C"
11383 #endif
11384 char png_create_read_struct ();
11385 int
11386 main ()
11387 {
11388 return png_create_read_struct ();
11389   ;
11390   return 0;
11391 }
11392 _ACEOF
11393 if ac_fn_c_try_link "$LINENO"; then :
11394   case "$LIBEXT" in
11395     dll) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest.exe | grep "png" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11396     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'` ;;
11397     *) 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'` ;;
11398   esac
11399 fi
11400 rm -f core conftest.err conftest.$ac_objext \
11401     conftest$ac_exeext conftest.$ac_ext
11402   LIBS=$ac_check_soname_save_LIBS
11403 fi
11404 if test "x$ac_cv_lib_soname_png" = "x"; then :
11405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11406 $as_echo "not found" >&6; }
11407
11408 else
11409   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
11410 $as_echo "$ac_cv_lib_soname_png" >&6; }
11411
11412 cat >>confdefs.h <<_ACEOF
11413 #define SONAME_LIBPNG "$ac_cv_lib_soname_png"
11414 _ACEOF
11415
11416
11417 fi
11418     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5
11419 $as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; }
11420 if ${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+:} false; then :
11421   $as_echo_n "(cached) " >&6
11422 else
11423   ac_check_lib_save_LIBS=$LIBS
11424 LIBS="-lpng -lm -lz $LIBS"
11425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11426 /* end confdefs.h.  */
11427
11428 /* Override any GCC internal prototype to avoid an error.
11429    Use char because int might match the return type of a GCC
11430    builtin and then its argument prototype would still apply.  */
11431 #ifdef __cplusplus
11432 extern "C"
11433 #endif
11434 char png_set_expand_gray_1_2_4_to_8 ();
11435 int
11436 main ()
11437 {
11438 return png_set_expand_gray_1_2_4_to_8 ();
11439   ;
11440   return 0;
11441 }
11442 _ACEOF
11443 if ac_fn_c_try_link "$LINENO"; then :
11444   ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes
11445 else
11446   ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no
11447 fi
11448 rm -f core conftest.err conftest.$ac_objext \
11449     conftest$ac_exeext conftest.$ac_ext
11450 LIBS=$ac_check_lib_save_LIBS
11451 fi
11452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5
11453 $as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; }
11454 if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = xyes; then :
11455
11456 $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
11457
11458
11459 fi
11460
11461 elif test -n "$X_CFLAGS" -a "x$with_png" != "xno"
11462 then
11463         ac_save_CPPFLAGS="$CPPFLAGS"
11464     CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11465     $as_unset ac_cv_header_png_h
11466     for ac_header in png.h
11467 do :
11468   ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
11469 if test "x$ac_cv_header_png_h" = xyes; then :
11470   cat >>confdefs.h <<_ACEOF
11471 #define HAVE_PNG_H 1
11472 _ACEOF
11473
11474 fi
11475
11476 done
11477
11478     CPPFLAGS="$ac_save_CPPFLAGS"
11479     if test "$ac_cv_header_png_h" = "yes"
11480     then
11481         PNGINCL="$X_CFLAGS"
11482
11483         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
11484 $as_echo_n "checking for -lpng... " >&6; }
11485 if ${ac_cv_lib_soname_png+:} false; then :
11486   $as_echo_n "(cached) " >&6
11487 else
11488   ac_check_soname_save_LIBS=$LIBS
11489 LIBS="-lpng $X_LIBS -lm -lz $LIBS"
11490   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11491 /* end confdefs.h.  */
11492
11493 /* Override any GCC internal prototype to avoid an error.
11494    Use char because int might match the return type of a GCC
11495    builtin and then its argument prototype would still apply.  */
11496 #ifdef __cplusplus
11497 extern "C"
11498 #endif
11499 char png_create_read_struct ();
11500 int
11501 main ()
11502 {
11503 return png_create_read_struct ();
11504   ;
11505   return 0;
11506 }
11507 _ACEOF
11508 if ac_fn_c_try_link "$LINENO"; then :
11509   case "$LIBEXT" in
11510     dll) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest.exe | grep "png" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11511     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'` ;;
11512     *) 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'` ;;
11513   esac
11514 fi
11515 rm -f core conftest.err conftest.$ac_objext \
11516     conftest$ac_exeext conftest.$ac_ext
11517   LIBS=$ac_check_soname_save_LIBS
11518 fi
11519 if test "x$ac_cv_lib_soname_png" = "x"; then :
11520   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11521 $as_echo "not found" >&6; }
11522
11523 else
11524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
11525 $as_echo "$ac_cv_lib_soname_png" >&6; }
11526
11527 cat >>confdefs.h <<_ACEOF
11528 #define SONAME_LIBPNG "$ac_cv_lib_soname_png"
11529 _ACEOF
11530
11531
11532 fi
11533         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5
11534 $as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; }
11535 if ${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+:} false; then :
11536   $as_echo_n "(cached) " >&6
11537 else
11538   ac_check_lib_save_LIBS=$LIBS
11539 LIBS="-lpng $X_LIBS -lm -lz $LIBS"
11540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11541 /* end confdefs.h.  */
11542
11543 /* Override any GCC internal prototype to avoid an error.
11544    Use char because int might match the return type of a GCC
11545    builtin and then its argument prototype would still apply.  */
11546 #ifdef __cplusplus
11547 extern "C"
11548 #endif
11549 char png_set_expand_gray_1_2_4_to_8 ();
11550 int
11551 main ()
11552 {
11553 return png_set_expand_gray_1_2_4_to_8 ();
11554   ;
11555   return 0;
11556 }
11557 _ACEOF
11558 if ac_fn_c_try_link "$LINENO"; then :
11559   ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes
11560 else
11561   ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no
11562 fi
11563 rm -f core conftest.err conftest.$ac_objext \
11564     conftest$ac_exeext conftest.$ac_ext
11565 LIBS=$ac_check_lib_save_LIBS
11566 fi
11567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5
11568 $as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; }
11569 if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = xyes; then :
11570   $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
11571
11572 fi
11573
11574     fi
11575 fi
11576 if test "x$ac_cv_lib_soname_png" = "x"; then :
11577   case "x$with_png" in
11578   x)   as_fn_append wine_warnings "|libpng ${notice_platform}development files not found, PNG won't be supported." ;;
11579   xno) ;;
11580   *)   as_fn_error $? "libpng ${notice_platform}development files not found, PNG won't be supported.
11581 This is an error since --with-png was requested." "$LINENO" 5 ;;
11582 esac
11583 fi
11584
11585 if test "$ac_cv_header_tiffio_h" = "yes"
11586 then
11587     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ltiff" >&5
11588 $as_echo_n "checking for -ltiff... " >&6; }
11589 if ${ac_cv_lib_soname_tiff+:} false; then :
11590   $as_echo_n "(cached) " >&6
11591 else
11592   ac_check_soname_save_LIBS=$LIBS
11593 LIBS="-ltiff  $LIBS"
11594   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11595 /* end confdefs.h.  */
11596
11597 /* Override any GCC internal prototype to avoid an error.
11598    Use char because int might match the return type of a GCC
11599    builtin and then its argument prototype would still apply.  */
11600 #ifdef __cplusplus
11601 extern "C"
11602 #endif
11603 char TIFFClientOpen ();
11604 int
11605 main ()
11606 {
11607 return TIFFClientOpen ();
11608   ;
11609   return 0;
11610 }
11611 _ACEOF
11612 if ac_fn_c_try_link "$LINENO"; then :
11613   case "$LIBEXT" in
11614     dll) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest.exe | grep "tiff" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11615     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'` ;;
11616     *) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest$ac_exeext | grep "libtiff\\.$LIBEXT" | sed -e "s/^.*\(libtiff\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
11617   esac
11618 fi
11619 rm -f core conftest.err conftest.$ac_objext \
11620     conftest$ac_exeext conftest.$ac_ext
11621   LIBS=$ac_check_soname_save_LIBS
11622 fi
11623 if test "x$ac_cv_lib_soname_tiff" = "x"; then :
11624   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11625 $as_echo "not found" >&6; }
11626
11627 else
11628   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_tiff" >&5
11629 $as_echo "$ac_cv_lib_soname_tiff" >&6; }
11630
11631 cat >>confdefs.h <<_ACEOF
11632 #define SONAME_LIBTIFF "$ac_cv_lib_soname_tiff"
11633 _ACEOF
11634
11635
11636 fi
11637 fi
11638 if test "x$ac_cv_lib_soname_tiff" = "x"; then :
11639   case "x$with_tiff" in
11640   x)   as_fn_append wine_notices "|libtiff ${notice_platform}development files not found, TIFF won't be supported." ;;
11641   xno) ;;
11642   *)   as_fn_error $? "libtiff ${notice_platform}development files not found, TIFF won't be supported.
11643 This is an error since --with-tiff was requested." "$LINENO" 5 ;;
11644 esac
11645 fi
11646
11647 if test "$ac_cv_header_mpg123_h" = "yes"
11648 then
11649     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpg123_feed in -lmpg123" >&5
11650 $as_echo_n "checking for mpg123_feed in -lmpg123... " >&6; }
11651 if ${ac_cv_lib_mpg123_mpg123_feed+:} false; then :
11652   $as_echo_n "(cached) " >&6
11653 else
11654   ac_check_lib_save_LIBS=$LIBS
11655 LIBS="-lmpg123  $LIBS"
11656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11657 /* end confdefs.h.  */
11658
11659 /* Override any GCC internal prototype to avoid an error.
11660    Use char because int might match the return type of a GCC
11661    builtin and then its argument prototype would still apply.  */
11662 #ifdef __cplusplus
11663 extern "C"
11664 #endif
11665 char mpg123_feed ();
11666 int
11667 main ()
11668 {
11669 return mpg123_feed ();
11670   ;
11671   return 0;
11672 }
11673 _ACEOF
11674 if ac_fn_c_try_link "$LINENO"; then :
11675   ac_cv_lib_mpg123_mpg123_feed=yes
11676 else
11677   ac_cv_lib_mpg123_mpg123_feed=no
11678 fi
11679 rm -f core conftest.err conftest.$ac_objext \
11680     conftest$ac_exeext conftest.$ac_ext
11681 LIBS=$ac_check_lib_save_LIBS
11682 fi
11683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpg123_mpg123_feed" >&5
11684 $as_echo "$ac_cv_lib_mpg123_mpg123_feed" >&6; }
11685 if test "x$ac_cv_lib_mpg123_mpg123_feed" = xyes; then :
11686   LIBMPG123="-lmpg123"
11687
11688 fi
11689
11690 fi
11691 if test "x$ac_cv_lib_mpg123_mpg123_feed" != xyes -a x"$ac_cv_header_CoreAudio_CoreAudio_h" != xyes; then :
11692   case "x$with_mpg123" in
11693   x)   as_fn_append wine_notices "|libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported." ;;
11694   xno) ;;
11695   *)   as_fn_error $? "libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported.
11696 This is an error since --with-mpg123 was requested." "$LINENO" 5 ;;
11697 esac
11698 fi
11699 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}
11700
11701 if test "$ac_cv_header_AL_al_h" = "yes"
11702 then
11703     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lopenal" >&5
11704 $as_echo_n "checking for -lopenal... " >&6; }
11705 if ${ac_cv_lib_soname_openal+:} false; then :
11706   $as_echo_n "(cached) " >&6
11707 else
11708   ac_check_soname_save_LIBS=$LIBS
11709 LIBS="-lopenal  $LIBS"
11710   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11711 /* end confdefs.h.  */
11712
11713 /* Override any GCC internal prototype to avoid an error.
11714    Use char because int might match the return type of a GCC
11715    builtin and then its argument prototype would still apply.  */
11716 #ifdef __cplusplus
11717 extern "C"
11718 #endif
11719 char alGetSource3i ();
11720 int
11721 main ()
11722 {
11723 return alGetSource3i ();
11724   ;
11725   return 0;
11726 }
11727 _ACEOF
11728 if ac_fn_c_try_link "$LINENO"; then :
11729   case "$LIBEXT" in
11730     dll) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest.exe | grep "openal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11731     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'` ;;
11732     *) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest$ac_exeext | grep "libopenal\\.$LIBEXT" | sed -e "s/^.*\(libopenal\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'` ;;
11733   esac
11734 fi
11735 rm -f core conftest.err conftest.$ac_objext \
11736     conftest$ac_exeext conftest.$ac_ext
11737   LIBS=$ac_check_soname_save_LIBS
11738 fi
11739 if test "x$ac_cv_lib_soname_openal" = "x"; then :
11740   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11741 $as_echo "not found" >&6; }
11742
11743 else
11744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_openal" >&5
11745 $as_echo "$ac_cv_lib_soname_openal" >&6; }
11746
11747 cat >>confdefs.h <<_ACEOF
11748 #define SONAME_LIBOPENAL "$ac_cv_lib_soname_openal"
11749 _ACEOF
11750
11751        LIBOPENAL="-lopenal"
11752
11753                       ac_cv_lib_openal=yes
11754
11755 cat >>confdefs.h <<_ACEOF
11756 #define HAVE_OPENAL 1
11757 _ACEOF
11758
11759 fi
11760 fi
11761 if test "x$ac_cv_lib_openal" != xyes; then :
11762   case "x$with_openal" in
11763   x)   as_fn_append wine_notices "|libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported." ;;
11764   xno) ;;
11765   *)   as_fn_error $? "libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported.
11766 This is an error since --with-openal was requested." "$LINENO" 5 ;;
11767 esac
11768 fi
11769 test "x$ac_cv_lib_openal" = xyes || enable_openal32=${enable_openal32:-no}
11770
11771 if test "$ac_cv_header_kstat_h" = "yes"
11772 then
11773     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
11774 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
11775 if ${ac_cv_lib_kstat_kstat_open+:} false; then :
11776   $as_echo_n "(cached) " >&6
11777 else
11778   ac_check_lib_save_LIBS=$LIBS
11779 LIBS="-lkstat  $LIBS"
11780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11781 /* end confdefs.h.  */
11782
11783 /* Override any GCC internal prototype to avoid an error.
11784    Use char because int might match the return type of a GCC
11785    builtin and then its argument prototype would still apply.  */
11786 #ifdef __cplusplus
11787 extern "C"
11788 #endif
11789 char kstat_open ();
11790 int
11791 main ()
11792 {
11793 return kstat_open ();
11794   ;
11795   return 0;
11796 }
11797 _ACEOF
11798 if ac_fn_c_try_link "$LINENO"; then :
11799   ac_cv_lib_kstat_kstat_open=yes
11800 else
11801   ac_cv_lib_kstat_kstat_open=no
11802 fi
11803 rm -f core conftest.err conftest.$ac_objext \
11804     conftest$ac_exeext conftest.$ac_ext
11805 LIBS=$ac_check_lib_save_LIBS
11806 fi
11807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
11808 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
11809 if test "x$ac_cv_lib_kstat_kstat_open" = xyes; then :
11810
11811 $as_echo "#define HAVE_LIBKSTAT 1" >>confdefs.h
11812
11813                   LIBKSTAT="-lkstat"
11814
11815 fi
11816
11817 fi
11818
11819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lodbc" >&5
11820 $as_echo_n "checking for -lodbc... " >&6; }
11821 if ${ac_cv_lib_soname_odbc+:} false; then :
11822   $as_echo_n "(cached) " >&6
11823 else
11824   ac_check_soname_save_LIBS=$LIBS
11825 LIBS="-lodbc  $LIBS"
11826   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11827 /* end confdefs.h.  */
11828
11829 /* Override any GCC internal prototype to avoid an error.
11830    Use char because int might match the return type of a GCC
11831    builtin and then its argument prototype would still apply.  */
11832 #ifdef __cplusplus
11833 extern "C"
11834 #endif
11835 char SQLConnect ();
11836 int
11837 main ()
11838 {
11839 return SQLConnect ();
11840   ;
11841   return 0;
11842 }
11843 _ACEOF
11844 if ac_fn_c_try_link "$LINENO"; then :
11845   case "$LIBEXT" in
11846     dll) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest.exe | grep "odbc" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11847     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'` ;;
11848     *) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest$ac_exeext | grep "libodbc\\.$LIBEXT" | sed -e "s/^.*\(libodbc\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
11849   esac
11850 fi
11851 rm -f core conftest.err conftest.$ac_objext \
11852     conftest$ac_exeext conftest.$ac_ext
11853   LIBS=$ac_check_soname_save_LIBS
11854 fi
11855 if test "x$ac_cv_lib_soname_odbc" = "x"; then :
11856   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11857 $as_echo "not found" >&6; }
11858        cat >>confdefs.h <<_ACEOF
11859 #define SONAME_LIBODBC "libodbc.$LIBEXT"
11860 _ACEOF
11861
11862 else
11863   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_odbc" >&5
11864 $as_echo "$ac_cv_lib_soname_odbc" >&6; }
11865
11866 cat >>confdefs.h <<_ACEOF
11867 #define SONAME_LIBODBC "$ac_cv_lib_soname_odbc"
11868 _ACEOF
11869
11870
11871 fi
11872
11873 test -n "$ALSALIBS" || enable_winealsa_drv=${enable_winealsa_drv:-no}
11874 test -n "$COREAUDIO" || enable_winecoreaudio_drv=${enable_winecoreaudio_drv:-no}
11875 test "x$ac_cv_member_oss_sysinfo_numaudioengines" = xyes || enable_wineoss_drv=${enable_wineoss_drv:-no}
11876 test "$ac_cv_header_linux_joystick_h" = "yes" || enable_winejoystick_drv=${enable_winejoystick_drv:-no}
11877
11878 if test "x$ALSALIBS$COREAUDIO" = "x" -a \
11879         "x$ac_cv_member_oss_sysinfo_numaudioengines" != xyes -a \
11880         "x$with_alsa$with_coreaudio$with_oss" != xnonono
11881 then
11882     as_fn_append wine_warnings "|No sound system was found. Windows applications will be silent."
11883 fi
11884
11885
11886 EXTRACFLAGS=""
11887
11888 if test "x${GCC}" = "xyes"
11889 then
11890   EXTRACFLAGS="-Wall -pipe"
11891
11892     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc strength-reduce bug" >&5
11893 $as_echo_n "checking for gcc strength-reduce bug... " >&6; }
11894 if ${ac_cv_c_gcc_strength_bug+:} false; then :
11895   $as_echo_n "(cached) " >&6
11896 else
11897   if test "$cross_compiling" = yes; then :
11898   ac_cv_c_gcc_strength_bug="yes"
11899 else
11900   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11901 /* end confdefs.h.  */
11902 int L[4] = {0,1,2,3};
11903 int
11904 main ()
11905 {
11906 static int Array[3];
11907   unsigned int B = 3;
11908   int i;
11909   for(i=0; i<B; i++) Array[i] = i - 3;
11910   for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
11911   L[i] = 4;
11912   return (Array[1] != -2 || L[2] != 3)
11913   ;
11914   return 0;
11915 }
11916 _ACEOF
11917 if ac_fn_c_try_run "$LINENO"; then :
11918   ac_cv_c_gcc_strength_bug="no"
11919 else
11920   ac_cv_c_gcc_strength_bug="yes"
11921 fi
11922 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11923   conftest.$ac_objext conftest.beam conftest.$ac_ext
11924 fi
11925
11926 fi
11927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gcc_strength_bug" >&5
11928 $as_echo "$ac_cv_c_gcc_strength_bug" >&6; }
11929   if test "$ac_cv_c_gcc_strength_bug" = "yes"
11930   then
11931     EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
11932   fi
11933
11934     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-builtin" >&5
11935 $as_echo_n "checking whether the compiler supports -fno-builtin... " >&6; }
11936 if ${ac_cv_cflags__fno_builtin+:} false; then :
11937   $as_echo_n "(cached) " >&6
11938 else
11939   ac_wine_try_cflags_saved=$CFLAGS
11940 CFLAGS="$CFLAGS -fno-builtin"
11941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11942 /* end confdefs.h.  */
11943 int main(int argc, char **argv) { return 0; }
11944 _ACEOF
11945 if ac_fn_c_try_link "$LINENO"; then :
11946   ac_cv_cflags__fno_builtin=yes
11947 else
11948   ac_cv_cflags__fno_builtin=no
11949 fi
11950 rm -f core conftest.err conftest.$ac_objext \
11951     conftest$ac_exeext conftest.$ac_ext
11952 CFLAGS=$ac_wine_try_cflags_saved
11953 fi
11954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_builtin" >&5
11955 $as_echo "$ac_cv_cflags__fno_builtin" >&6; }
11956 if test $ac_cv_cflags__fno_builtin = yes; then :
11957   BUILTINFLAG="-fno-builtin"
11958
11959 fi
11960   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-strict-aliasing" >&5
11961 $as_echo_n "checking whether the compiler supports -fno-strict-aliasing... " >&6; }
11962 if ${ac_cv_cflags__fno_strict_aliasing+:} false; then :
11963   $as_echo_n "(cached) " >&6
11964 else
11965   ac_wine_try_cflags_saved=$CFLAGS
11966 CFLAGS="$CFLAGS -fno-strict-aliasing"
11967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11968 /* end confdefs.h.  */
11969 int main(int argc, char **argv) { return 0; }
11970 _ACEOF
11971 if ac_fn_c_try_link "$LINENO"; then :
11972   ac_cv_cflags__fno_strict_aliasing=yes
11973 else
11974   ac_cv_cflags__fno_strict_aliasing=no
11975 fi
11976 rm -f core conftest.err conftest.$ac_objext \
11977     conftest$ac_exeext conftest.$ac_ext
11978 CFLAGS=$ac_wine_try_cflags_saved
11979 fi
11980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_strict_aliasing" >&5
11981 $as_echo "$ac_cv_cflags__fno_strict_aliasing" >&6; }
11982 if test $ac_cv_cflags__fno_strict_aliasing = yes; then :
11983   EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
11984 fi
11985   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wdeclaration-after-statement" >&5
11986 $as_echo_n "checking whether the compiler supports -Wdeclaration-after-statement... " >&6; }
11987 if ${ac_cv_cflags__Wdeclaration_after_statement+:} false; then :
11988   $as_echo_n "(cached) " >&6
11989 else
11990   ac_wine_try_cflags_saved=$CFLAGS
11991 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
11992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11993 /* end confdefs.h.  */
11994 int main(int argc, char **argv) { return 0; }
11995 _ACEOF
11996 if ac_fn_c_try_link "$LINENO"; then :
11997   ac_cv_cflags__Wdeclaration_after_statement=yes
11998 else
11999   ac_cv_cflags__Wdeclaration_after_statement=no
12000 fi
12001 rm -f core conftest.err conftest.$ac_objext \
12002     conftest$ac_exeext conftest.$ac_ext
12003 CFLAGS=$ac_wine_try_cflags_saved
12004 fi
12005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wdeclaration_after_statement" >&5
12006 $as_echo "$ac_cv_cflags__Wdeclaration_after_statement" >&6; }
12007 if test $ac_cv_cflags__Wdeclaration_after_statement = yes; then :
12008   EXTRACFLAGS="$EXTRACFLAGS -Wdeclaration-after-statement"
12009 fi
12010   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wempty-body" >&5
12011 $as_echo_n "checking whether the compiler supports -Wempty-body... " >&6; }
12012 if ${ac_cv_cflags__Wempty_body+:} false; then :
12013   $as_echo_n "(cached) " >&6
12014 else
12015   ac_wine_try_cflags_saved=$CFLAGS
12016 CFLAGS="$CFLAGS -Wempty-body"
12017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12018 /* end confdefs.h.  */
12019 int main(int argc, char **argv) { return 0; }
12020 _ACEOF
12021 if ac_fn_c_try_link "$LINENO"; then :
12022   ac_cv_cflags__Wempty_body=yes
12023 else
12024   ac_cv_cflags__Wempty_body=no
12025 fi
12026 rm -f core conftest.err conftest.$ac_objext \
12027     conftest$ac_exeext conftest.$ac_ext
12028 CFLAGS=$ac_wine_try_cflags_saved
12029 fi
12030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wempty_body" >&5
12031 $as_echo "$ac_cv_cflags__Wempty_body" >&6; }
12032 if test $ac_cv_cflags__Wempty_body = yes; then :
12033   EXTRACFLAGS="$EXTRACFLAGS -Wempty-body"
12034 fi
12035   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wignored-qualifiers" >&5
12036 $as_echo_n "checking whether the compiler supports -Wignored-qualifiers... " >&6; }
12037 if ${ac_cv_cflags__Wignored_qualifiers+:} false; then :
12038   $as_echo_n "(cached) " >&6
12039 else
12040   ac_wine_try_cflags_saved=$CFLAGS
12041 CFLAGS="$CFLAGS -Wignored-qualifiers"
12042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12043 /* end confdefs.h.  */
12044 int main(int argc, char **argv) { return 0; }
12045 _ACEOF
12046 if ac_fn_c_try_link "$LINENO"; then :
12047   ac_cv_cflags__Wignored_qualifiers=yes
12048 else
12049   ac_cv_cflags__Wignored_qualifiers=no
12050 fi
12051 rm -f core conftest.err conftest.$ac_objext \
12052     conftest$ac_exeext conftest.$ac_ext
12053 CFLAGS=$ac_wine_try_cflags_saved
12054 fi
12055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wignored_qualifiers" >&5
12056 $as_echo "$ac_cv_cflags__Wignored_qualifiers" >&6; }
12057 if test $ac_cv_cflags__Wignored_qualifiers = yes; then :
12058   EXTRACFLAGS="$EXTRACFLAGS -Wignored-qualifiers"
12059 fi
12060   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wstrict-prototypes" >&5
12061 $as_echo_n "checking whether the compiler supports -Wstrict-prototypes... " >&6; }
12062 if ${ac_cv_cflags__Wstrict_prototypes+:} false; then :
12063   $as_echo_n "(cached) " >&6
12064 else
12065   ac_wine_try_cflags_saved=$CFLAGS
12066 CFLAGS="$CFLAGS -Wstrict-prototypes"
12067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12068 /* end confdefs.h.  */
12069 int main(int argc, char **argv) { return 0; }
12070 _ACEOF
12071 if ac_fn_c_try_link "$LINENO"; then :
12072   ac_cv_cflags__Wstrict_prototypes=yes
12073 else
12074   ac_cv_cflags__Wstrict_prototypes=no
12075 fi
12076 rm -f core conftest.err conftest.$ac_objext \
12077     conftest$ac_exeext conftest.$ac_ext
12078 CFLAGS=$ac_wine_try_cflags_saved
12079 fi
12080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wstrict_prototypes" >&5
12081 $as_echo "$ac_cv_cflags__Wstrict_prototypes" >&6; }
12082 if test $ac_cv_cflags__Wstrict_prototypes = yes; then :
12083   EXTRACFLAGS="$EXTRACFLAGS -Wstrict-prototypes"
12084 fi
12085   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wtype-limits" >&5
12086 $as_echo_n "checking whether the compiler supports -Wtype-limits... " >&6; }
12087 if ${ac_cv_cflags__Wtype_limits+:} false; then :
12088   $as_echo_n "(cached) " >&6
12089 else
12090   ac_wine_try_cflags_saved=$CFLAGS
12091 CFLAGS="$CFLAGS -Wtype-limits"
12092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12093 /* end confdefs.h.  */
12094 int main(int argc, char **argv) { return 0; }
12095 _ACEOF
12096 if ac_fn_c_try_link "$LINENO"; then :
12097   ac_cv_cflags__Wtype_limits=yes
12098 else
12099   ac_cv_cflags__Wtype_limits=no
12100 fi
12101 rm -f core conftest.err conftest.$ac_objext \
12102     conftest$ac_exeext conftest.$ac_ext
12103 CFLAGS=$ac_wine_try_cflags_saved
12104 fi
12105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wtype_limits" >&5
12106 $as_echo "$ac_cv_cflags__Wtype_limits" >&6; }
12107 if test $ac_cv_cflags__Wtype_limits = yes; then :
12108   EXTRACFLAGS="$EXTRACFLAGS -Wtype-limits"
12109 fi
12110   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wunused-but-set-parameter" >&5
12111 $as_echo_n "checking whether the compiler supports -Wunused-but-set-parameter... " >&6; }
12112 if ${ac_cv_cflags__Wunused_but_set_parameter+:} false; then :
12113   $as_echo_n "(cached) " >&6
12114 else
12115   ac_wine_try_cflags_saved=$CFLAGS
12116 CFLAGS="$CFLAGS -Wunused-but-set-parameter"
12117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12118 /* end confdefs.h.  */
12119 int main(int argc, char **argv) { return 0; }
12120 _ACEOF
12121 if ac_fn_c_try_link "$LINENO"; then :
12122   ac_cv_cflags__Wunused_but_set_parameter=yes
12123 else
12124   ac_cv_cflags__Wunused_but_set_parameter=no
12125 fi
12126 rm -f core conftest.err conftest.$ac_objext \
12127     conftest$ac_exeext conftest.$ac_ext
12128 CFLAGS=$ac_wine_try_cflags_saved
12129 fi
12130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wunused_but_set_parameter" >&5
12131 $as_echo "$ac_cv_cflags__Wunused_but_set_parameter" >&6; }
12132 if test $ac_cv_cflags__Wunused_but_set_parameter = yes; then :
12133   EXTRACFLAGS="$EXTRACFLAGS -Wunused-but-set-parameter"
12134 fi
12135   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wwrite-strings" >&5
12136 $as_echo_n "checking whether the compiler supports -Wwrite-strings... " >&6; }
12137 if ${ac_cv_cflags__Wwrite_strings+:} false; then :
12138   $as_echo_n "(cached) " >&6
12139 else
12140   ac_wine_try_cflags_saved=$CFLAGS
12141 CFLAGS="$CFLAGS -Wwrite-strings"
12142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12143 /* end confdefs.h.  */
12144 int main(int argc, char **argv) { return 0; }
12145 _ACEOF
12146 if ac_fn_c_try_link "$LINENO"; then :
12147   ac_cv_cflags__Wwrite_strings=yes
12148 else
12149   ac_cv_cflags__Wwrite_strings=no
12150 fi
12151 rm -f core conftest.err conftest.$ac_objext \
12152     conftest$ac_exeext conftest.$ac_ext
12153 CFLAGS=$ac_wine_try_cflags_saved
12154 fi
12155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wwrite_strings" >&5
12156 $as_echo "$ac_cv_cflags__Wwrite_strings" >&6; }
12157 if test $ac_cv_cflags__Wwrite_strings = yes; then :
12158   EXTRACFLAGS="$EXTRACFLAGS -Wwrite-strings"
12159 fi
12160
12161     case $host_cpu in
12162     *i[3456789]86*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-omit-frame-pointer" >&5
12163 $as_echo_n "checking whether the compiler supports -fno-omit-frame-pointer... " >&6; }
12164 if ${ac_cv_cflags__fno_omit_frame_pointer+:} false; then :
12165   $as_echo_n "(cached) " >&6
12166 else
12167   ac_wine_try_cflags_saved=$CFLAGS
12168 CFLAGS="$CFLAGS -fno-omit-frame-pointer"
12169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12170 /* end confdefs.h.  */
12171 int main(int argc, char **argv) { return 0; }
12172 _ACEOF
12173 if ac_fn_c_try_link "$LINENO"; then :
12174   ac_cv_cflags__fno_omit_frame_pointer=yes
12175 else
12176   ac_cv_cflags__fno_omit_frame_pointer=no
12177 fi
12178 rm -f core conftest.err conftest.$ac_objext \
12179     conftest$ac_exeext conftest.$ac_ext
12180 CFLAGS=$ac_wine_try_cflags_saved
12181 fi
12182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_omit_frame_pointer" >&5
12183 $as_echo "$ac_cv_cflags__fno_omit_frame_pointer" >&6; }
12184 if test $ac_cv_cflags__fno_omit_frame_pointer = yes; then :
12185   EXTRACFLAGS="$EXTRACFLAGS -fno-omit-frame-pointer"
12186 fi ;;
12187   esac
12188
12189     case $host in
12190     x86_64-*mingw32*|x86_64-*cygwin*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wno-format" >&5
12191 $as_echo_n "checking whether the compiler supports -Wno-format... " >&6; }
12192 if ${ac_cv_cflags__Wno_format+:} false; then :
12193   $as_echo_n "(cached) " >&6
12194 else
12195   ac_wine_try_cflags_saved=$CFLAGS
12196 CFLAGS="$CFLAGS -Wno-format"
12197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12198 /* end confdefs.h.  */
12199 int main(int argc, char **argv) { return 0; }
12200 _ACEOF
12201 if ac_fn_c_try_link "$LINENO"; then :
12202   ac_cv_cflags__Wno_format=yes
12203 else
12204   ac_cv_cflags__Wno_format=no
12205 fi
12206 rm -f core conftest.err conftest.$ac_objext \
12207     conftest$ac_exeext conftest.$ac_ext
12208 CFLAGS=$ac_wine_try_cflags_saved
12209 fi
12210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wno_format" >&5
12211 $as_echo "$ac_cv_cflags__Wno_format" >&6; }
12212 if test $ac_cv_cflags__Wno_format = yes; then :
12213   EXTRACFLAGS="$EXTRACFLAGS -Wno-format"
12214 fi ;;
12215   esac
12216
12217     saved_CFLAGS="$CFLAGS"
12218   CFLAGS="$CFLAGS -Wpointer-arith -Werror"
12219   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wpointer-arith" >&5
12220 $as_echo_n "checking for broken string.h that generates warnings with -Wpointer-arith... " >&6; }
12221 if ${ac_cv_c_string_h_warnings+:} false; then :
12222   $as_echo_n "(cached) " >&6
12223 else
12224   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12225 /* end confdefs.h.  */
12226 #include <string.h>
12227 int
12228 main ()
12229 {
12230
12231   ;
12232   return 0;
12233 }
12234 _ACEOF
12235 if ac_fn_c_try_compile "$LINENO"; then :
12236   ac_cv_c_string_h_warnings=no
12237 else
12238   ac_cv_c_string_h_warnings=yes
12239 fi
12240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12241 fi
12242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_string_h_warnings" >&5
12243 $as_echo "$ac_cv_c_string_h_warnings" >&6; }
12244   CFLAGS="$saved_CFLAGS"
12245   if test "$ac_cv_c_string_h_warnings" = "no"
12246   then
12247     EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
12248   fi
12249
12250     saved_CFLAGS="$CFLAGS"
12251   CFLAGS="$CFLAGS -Wlogical-op -Werror"
12252   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wlogical-op" >&5
12253 $as_echo_n "checking for broken string.h that generates warnings with -Wlogical-op... " >&6; }
12254 if ${ac_cv_c_logicalop_noisy+:} false; then :
12255   $as_echo_n "(cached) " >&6
12256 else
12257   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12258 /* end confdefs.h.  */
12259 #include <string.h>
12260 int
12261 main ()
12262 {
12263 char*f(const char *h,char n) {return strchr(h,n);}
12264   ;
12265   return 0;
12266 }
12267 _ACEOF
12268 if ac_fn_c_try_compile "$LINENO"; then :
12269   ac_cv_c_logicalop_noisy=no
12270 else
12271   ac_cv_c_logicalop_noisy=yes
12272 fi
12273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12274 fi
12275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_logicalop_noisy" >&5
12276 $as_echo "$ac_cv_c_logicalop_noisy" >&6; }
12277   CFLAGS="$saved_CFLAGS"
12278   if test "$ac_cv_c_logicalop_noisy" = "no"
12279   then
12280     EXTRACFLAGS="$EXTRACFLAGS -Wlogical-op"
12281   fi
12282
12283     if test "x$enable_maintainer_mode" = "xyes"
12284   then
12285       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Werror" >&5
12286 $as_echo_n "checking whether the compiler supports -Werror... " >&6; }
12287 if ${ac_cv_cflags__Werror+:} false; then :
12288   $as_echo_n "(cached) " >&6
12289 else
12290   ac_wine_try_cflags_saved=$CFLAGS
12291 CFLAGS="$CFLAGS -Werror"
12292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12293 /* end confdefs.h.  */
12294 int main(int argc, char **argv) { return 0; }
12295 _ACEOF
12296 if ac_fn_c_try_link "$LINENO"; then :
12297   ac_cv_cflags__Werror=yes
12298 else
12299   ac_cv_cflags__Werror=no
12300 fi
12301 rm -f core conftest.err conftest.$ac_objext \
12302     conftest$ac_exeext conftest.$ac_ext
12303 CFLAGS=$ac_wine_try_cflags_saved
12304 fi
12305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Werror" >&5
12306 $as_echo "$ac_cv_cflags__Werror" >&6; }
12307 if test $ac_cv_cflags__Werror = yes; then :
12308   EXTRACFLAGS="$EXTRACFLAGS -Werror"
12309 fi
12310   fi
12311
12312     saved_CFLAGS="$CFLAGS"
12313   CFLAGS="$CFLAGS -Werror"
12314   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ms_hook_prologue attribute" >&5
12315 $as_echo_n "checking for ms_hook_prologue attribute... " >&6; }
12316 if ${ac_cv_have_ms_hook_prologue+:} false; then :
12317   $as_echo_n "(cached) " >&6
12318 else
12319   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12320 /* end confdefs.h.  */
12321 int __attribute__((__ms_hook_prologue__)) test(void) { return 0; }
12322 int
12323 main ()
12324 {
12325
12326   ;
12327   return 0;
12328 }
12329 _ACEOF
12330 if ac_fn_c_try_compile "$LINENO"; then :
12331   ac_cv_have_ms_hook_prologue="yes"
12332 else
12333   ac_cv_have_ms_hook_prologue="no"
12334 fi
12335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12336 fi
12337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ms_hook_prologue" >&5
12338 $as_echo "$ac_cv_have_ms_hook_prologue" >&6; }
12339   CFLAGS="$saved_CFLAGS"
12340   if test "$ac_cv_have_ms_hook_prologue" = "yes"
12341   then
12342
12343 $as_echo "#define DECLSPEC_HOTPATCH __attribute__((__ms_hook_prologue__))" >>confdefs.h
12344
12345   else
12346       $as_echo "#define DECLSPEC_HOTPATCH /* */" >>confdefs.h
12347
12348   fi
12349 fi
12350
12351
12352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the need to disable Fortify" >&5
12353 $as_echo_n "checking for the need to disable Fortify... " >&6; }
12354 if ${ac_cv_c_fortify_enabled+:} false; then :
12355   $as_echo_n "(cached) " >&6
12356 else
12357   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12358 /* end confdefs.h.  */
12359 #include <string.h>
12360 int
12361 main ()
12362 {
12363 #if defined(__USE_FORTIFY_LEVEL) && __USE_FORTIFY_LEVEL > 0
12364 #error Fortify enabled
12365 #endif
12366   ;
12367   return 0;
12368 }
12369 _ACEOF
12370 if ac_fn_c_try_compile "$LINENO"; then :
12371   ac_cv_c_fortify_enabled=no
12372 else
12373   ac_cv_c_fortify_enabled=yes
12374 fi
12375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12376 fi
12377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_fortify_enabled" >&5
12378 $as_echo "$ac_cv_c_fortify_enabled" >&6; }
12379 if test "$ac_cv_c_fortify_enabled" = yes
12380 then
12381     CFLAGS="$CFLAGS -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0"
12382 fi
12383
12384
12385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need an underscore prefix" >&5
12386 $as_echo_n "checking whether external symbols need an underscore prefix... " >&6; }
12387 if ${ac_cv_c_extern_prefix+:} false; then :
12388   $as_echo_n "(cached) " >&6
12389 else
12390   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12391 /* end confdefs.h.  */
12392 extern int ac_test;
12393 int
12394 main ()
12395 {
12396 asm(".globl _ac_test\n_ac_test:\t.long 0"); if (ac_test) return 1
12397   ;
12398   return 0;
12399 }
12400 _ACEOF
12401 if ac_fn_c_try_link "$LINENO"; then :
12402   ac_cv_c_extern_prefix="yes"
12403 else
12404   ac_cv_c_extern_prefix="no"
12405 fi
12406 rm -f core conftest.err conftest.$ac_objext \
12407     conftest$ac_exeext conftest.$ac_ext
12408 fi
12409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_extern_prefix" >&5
12410 $as_echo "$ac_cv_c_extern_prefix" >&6; }
12411
12412 case $host_cpu in
12413   *i[3456789]86*)
12414     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need stdcall decoration" >&5
12415 $as_echo_n "checking whether external symbols need stdcall decoration... " >&6; }
12416 if ${ac_cv_c_stdcall_suffix+:} false; then :
12417   $as_echo_n "(cached) " >&6
12418 else
12419   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12420 /* end confdefs.h.  */
12421 #ifndef _MSC_VER
12422 #define __stdcall __attribute__((__stdcall__))
12423 #endif
12424 int __stdcall ac_test(int i) { return i; }
12425 int
12426 main ()
12427 {
12428 asm("jmp _ac_test@4"); if (ac_test(1)) return 1
12429   ;
12430   return 0;
12431 }
12432 _ACEOF
12433 if ac_fn_c_try_link "$LINENO"; then :
12434   ac_cv_c_stdcall_suffix="yes"
12435 else
12436   ac_cv_c_stdcall_suffix="no"
12437 fi
12438 rm -f core conftest.err conftest.$ac_objext \
12439     conftest$ac_exeext conftest.$ac_ext
12440 fi
12441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stdcall_suffix" >&5
12442 $as_echo "$ac_cv_c_stdcall_suffix" >&6; } ;;
12443   *) ac_cv_c_stdcall_suffix="no" ;;
12444 esac
12445
12446
12447 if test "$ac_cv_c_extern_prefix" = "yes"
12448 then
12449     $as_echo "#define __ASM_NAME(name) \"_\" name" >>confdefs.h
12450
12451     asm_name_prefix="_"
12452 else
12453     $as_echo "#define __ASM_NAME(name) name" >>confdefs.h
12454
12455     asm_name_prefix=""
12456 fi
12457
12458
12459 if test "$ac_cv_c_stdcall_suffix" = "yes"
12460 then
12461     $as_echo "#define __ASM_STDCALL(args) \"@\" #args" >>confdefs.h
12462
12463 else
12464     $as_echo "#define __ASM_STDCALL(args) \"\"" >>confdefs.h
12465
12466 fi
12467
12468
12469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to define a function in assembly code" >&5
12470 $as_echo_n "checking how to define a function in assembly code... " >&6; }
12471 if ${ac_cv_asm_func_def+:} false; then :
12472   $as_echo_n "(cached) " >&6
12473 else
12474   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12475 /* end confdefs.h.  */
12476
12477 int
12478 main ()
12479 {
12480 asm("\t.globl _ac_test\n\t.def _ac_test; .scl 2; .type 32; .endef\n_ac_test:\t.long 0");
12481   ;
12482   return 0;
12483 }
12484 _ACEOF
12485 if ac_fn_c_try_link "$LINENO"; then :
12486   ac_cv_asm_func_def=".def"
12487 else
12488   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12489 /* end confdefs.h.  */
12490
12491 int
12492 main ()
12493 {
12494 asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0");
12495   ;
12496   return 0;
12497 }
12498 _ACEOF
12499 if ac_fn_c_try_link "$LINENO"; then :
12500   ac_cv_asm_func_def=".type @function"
12501 else
12502   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12503 /* end confdefs.h.  */
12504
12505 int
12506 main ()
12507 {
12508 asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0");
12509   ;
12510   return 0;
12511 }
12512 _ACEOF
12513 if ac_fn_c_try_link "$LINENO"; then :
12514   ac_cv_asm_func_def=".type 2"
12515 else
12516   ac_cv_asm_func_def="unknown"
12517 fi
12518 rm -f core conftest.err conftest.$ac_objext \
12519     conftest$ac_exeext conftest.$ac_ext
12520 fi
12521 rm -f core conftest.err conftest.$ac_objext \
12522     conftest$ac_exeext conftest.$ac_ext
12523 fi
12524 rm -f core conftest.err conftest.$ac_objext \
12525     conftest$ac_exeext conftest.$ac_ext
12526 fi
12527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_asm_func_def" >&5
12528 $as_echo "$ac_cv_asm_func_def" >&6; }
12529
12530
12531 case "$ac_cv_asm_func_def" in
12532   ".def")
12533      $as_echo "#define __ASM_FUNC(name) \".def \" __ASM_NAME(name) \"; .scl 2; .type 32; .endef\"" >>confdefs.h
12534
12535      asm_func_header=".def $asm_name_prefix\" #name suffix \"; .scl 2; .type 32; .endef" ;;
12536   ".type @function")
12537      $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",@function\"" >>confdefs.h
12538
12539      asm_func_header=".type $asm_name_prefix\" #name suffix \",@function" ;;
12540   ".type 2")
12541      $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",2\"" >>confdefs.h
12542
12543      asm_func_header=".type $asm_name_prefix\" #name suffix \",2" ;;
12544   *)
12545      $as_echo "#define __ASM_FUNC(name) \"\"" >>confdefs.h
12546
12547      asm_func_header="" ;;
12548 esac
12549
12550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether asm() works outside of functions" >&5
12551 $as_echo_n "checking whether asm() works outside of functions... " >&6; }
12552 if ${ac_cv_c_asm_outside_funcs+:} false; then :
12553   $as_echo_n "(cached) " >&6
12554 else
12555   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12556 /* end confdefs.h.  */
12557 asm(".text\n\t.long 0");
12558 int
12559 main ()
12560 {
12561
12562   ;
12563   return 0;
12564 }
12565 _ACEOF
12566 if ac_fn_c_try_compile "$LINENO"; then :
12567   ac_cv_c_asm_outside_funcs="yes"
12568 else
12569   ac_cv_c_asm_outside_funcs="no"
12570 fi
12571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12572 fi
12573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_asm_outside_funcs" >&5
12574 $as_echo "$ac_cv_c_asm_outside_funcs" >&6; }
12575
12576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .previous is supported in assembly code" >&5
12577 $as_echo_n "checking whether .previous is supported in assembly code... " >&6; }
12578 if ${ac_cv_c_dot_previous+:} false; then :
12579   $as_echo_n "(cached) " >&6
12580 else
12581   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12582 /* end confdefs.h.  */
12583
12584 int
12585 main ()
12586 {
12587 asm(".text\nac_test:\t.long 0\n\t.previous");
12588   ;
12589   return 0;
12590 }
12591 _ACEOF
12592 if ac_fn_c_try_link "$LINENO"; then :
12593   ac_cv_c_dot_previous="yes"
12594 else
12595   ac_cv_c_dot_previous="no"
12596 fi
12597 rm -f core conftest.err conftest.$ac_objext \
12598     conftest$ac_exeext conftest.$ac_ext
12599 fi
12600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dot_previous" >&5
12601 $as_echo "$ac_cv_c_dot_previous" >&6; }
12602
12603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CFI directives are supported in assembly code" >&5
12604 $as_echo_n "checking whether CFI directives are supported in assembly code... " >&6; }
12605 if ${ac_cv_c_cfi_support+:} false; then :
12606   $as_echo_n "(cached) " >&6
12607 else
12608   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12609 /* end confdefs.h.  */
12610 asm(".text\nac_test:\t.cfi_startproc\n\t.long 0\n\t.cfi_endproc");
12611 int
12612 main ()
12613 {
12614
12615   ;
12616   return 0;
12617 }
12618 _ACEOF
12619 if ac_fn_c_try_compile "$LINENO"; then :
12620   ac_cv_c_cfi_support="yes"
12621 else
12622   ac_cv_c_cfi_support="no"
12623 fi
12624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12625 fi
12626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_cfi_support" >&5
12627 $as_echo "$ac_cv_c_cfi_support" >&6; }
12628
12629 asm_func_header=".globl $asm_name_prefix\" #name suffix \"\\n\\t$asm_func_header\\n$asm_name_prefix\" #name suffix \":\\n\\t"
12630 asm_func_trailer=""
12631 if test "$ac_cv_c_dot_previous" = "yes"
12632 then
12633    asm_func_trailer="\\n\\t.previous"
12634 fi
12635 if test "$ac_cv_c_cfi_support" = "yes"
12636 then
12637    asm_func_header="$asm_func_header.cfi_startproc\\n\\t"
12638    asm_func_trailer="\\n\\t.cfi_endproc$asm_func_trailer"
12639
12640 $as_echo "#define __ASM_CFI(str) str" >>confdefs.h
12641
12642    UNWINDFLAGS=-fasynchronous-unwind-tables
12643
12644 else
12645    $as_echo "#define __ASM_CFI(str) \"\"" >>confdefs.h
12646
12647 fi
12648
12649 asm_func_code="$asm_func_header\" code \"$asm_func_trailer"
12650
12651
12652 if test "$ac_cv_c_asm_outside_funcs" = "yes"
12653 then
12654     cat >>confdefs.h <<_ACEOF
12655 #define __ASM_DEFINE_FUNC(name,suffix,code) asm(".text\n\t.align 4\n\t$asm_func_code");
12656 _ACEOF
12657
12658 else
12659     cat >>confdefs.h <<_ACEOF
12660 #define __ASM_DEFINE_FUNC(name,suffix,code) void __asm_dummy_##name(void) { asm(".text\n\t.align 4\n\t$asm_func_code"); }
12661 _ACEOF
12662
12663 fi
12664
12665 $as_echo "#define __ASM_GLOBAL_FUNC(name,code) __ASM_DEFINE_FUNC(name,\"\",code)" >>confdefs.h
12666
12667
12668 $as_echo "#define __ASM_STDCALL_FUNC(name,args,code) __ASM_DEFINE_FUNC(name,__ASM_STDCALL(args),code)" >>confdefs.h
12669
12670
12671
12672 LDPATH=""
12673
12674 case $build_os in
12675   cygwin*|mingw32*)
12676     TOOLSEXT=".exe"
12677
12678     LDPATH="PATH=\"\$(TOOLSDIR)/libs/wine:\$\$PATH\""
12679     ;;
12680   darwin*|macosx*)
12681     ;;
12682   *)
12683     LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$LD_LIBRARY_PATH\""
12684     ;;
12685 esac
12686
12687 case $host_os in
12688   mingw32*)
12689     CRTLIBS="-lmsvcrt"
12690
12691     SOCKETLIBS="-L\$(top_builddir)/dlls/ws2_32 -lws2_32"
12692
12693     ;;
12694 esac
12695
12696 MAIN_BINARY="wine"
12697
12698 test "x$enable_win64" != "xyes" || MAIN_BINARY="wine64"
12699
12700 case $host_os in
12701   linux*)
12702     case $host_cpu in
12703       *i[3456789]86*) EXTRA_BINARIES="wine-preloader"
12704  ;;
12705       x86_64*) EXTRA_BINARIES="wine64-preloader"
12706  ;;
12707     esac
12708     ;;
12709 esac
12710
12711
12712 ac_save_CFLAGS="$CFLAGS"
12713 CFLAGS="$CFLAGS $BUILTINFLAG"
12714 for ac_func in \
12715         _finite \
12716         _isnan \
12717         _pclose \
12718         _popen \
12719         _snprintf \
12720         _spawnvp \
12721         _strdup \
12722         _stricmp \
12723         _strnicmp \
12724         _strtoi64 \
12725         _strtoui64 \
12726         _vsnprintf \
12727         asctime_r \
12728         chsize \
12729         dlopen \
12730         epoll_create \
12731         ffs \
12732         finite \
12733         fnmatch \
12734         fork \
12735         fpclass \
12736         fstatfs \
12737         fstatvfs \
12738         ftruncate \
12739         futimes \
12740         futimesat \
12741         getattrlist \
12742         getdirentries \
12743         getopt_long \
12744         getpagesize \
12745         getpwuid \
12746         gettimeofday \
12747         getuid \
12748         kqueue \
12749         lstat \
12750         memmove \
12751         mmap \
12752         pclose \
12753         pipe2 \
12754         poll \
12755         popen \
12756         port_create \
12757         prctl \
12758         pread \
12759         pwrite \
12760         readdir \
12761         readlink \
12762         sched_yield \
12763         select \
12764         setproctitle \
12765         setrlimit \
12766         settimeofday \
12767         sigaltstack \
12768         sigprocmask \
12769         snprintf \
12770         spawnvp \
12771         statfs \
12772         statvfs \
12773         strcasecmp \
12774         strdup \
12775         strerror \
12776         strncasecmp \
12777         strtold \
12778         strtoll \
12779         strtoull \
12780         symlink \
12781         tcgetattr \
12782         thr_kill2 \
12783         timegm \
12784         usleep \
12785         vsnprintf \
12786         wait4 \
12787         waitpid \
12788
12789 do :
12790   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12791 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12792 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12793   cat >>confdefs.h <<_ACEOF
12794 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12795 _ACEOF
12796
12797 fi
12798 done
12799
12800 CFLAGS="$ac_save_CFLAGS"
12801
12802 if test "$ac_cv_func_dlopen" = no
12803 then
12804     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12805 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12806 if ${ac_cv_lib_dl_dlopen+:} false; then :
12807   $as_echo_n "(cached) " >&6
12808 else
12809   ac_check_lib_save_LIBS=$LIBS
12810 LIBS="-ldl  $LIBS"
12811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12812 /* end confdefs.h.  */
12813
12814 /* Override any GCC internal prototype to avoid an error.
12815    Use char because int might match the return type of a GCC
12816    builtin and then its argument prototype would still apply.  */
12817 #ifdef __cplusplus
12818 extern "C"
12819 #endif
12820 char dlopen ();
12821 int
12822 main ()
12823 {
12824 return dlopen ();
12825   ;
12826   return 0;
12827 }
12828 _ACEOF
12829 if ac_fn_c_try_link "$LINENO"; then :
12830   ac_cv_lib_dl_dlopen=yes
12831 else
12832   ac_cv_lib_dl_dlopen=no
12833 fi
12834 rm -f core conftest.err conftest.$ac_objext \
12835     conftest$ac_exeext conftest.$ac_ext
12836 LIBS=$ac_check_lib_save_LIBS
12837 fi
12838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12839 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12840 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12841   $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
12842  LIBDL="-ldl"
12843
12844 fi
12845
12846 fi
12847 ac_wine_check_funcs_save_LIBS="$LIBS"
12848 LIBS="$LIBS $LIBDL"
12849 for ac_func in dladdr
12850 do :
12851   ac_fn_c_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr"
12852 if test "x$ac_cv_func_dladdr" = xyes; then :
12853   cat >>confdefs.h <<_ACEOF
12854 #define HAVE_DLADDR 1
12855 _ACEOF
12856
12857 fi
12858 done
12859
12860 LIBS="$ac_wine_check_funcs_save_LIBS"
12861
12862 if test "$ac_cv_func_poll" = no
12863 then
12864     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for poll in -lpoll" >&5
12865 $as_echo_n "checking for poll in -lpoll... " >&6; }
12866 if ${ac_cv_lib_poll_poll+:} false; then :
12867   $as_echo_n "(cached) " >&6
12868 else
12869   ac_check_lib_save_LIBS=$LIBS
12870 LIBS="-lpoll  $LIBS"
12871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12872 /* end confdefs.h.  */
12873
12874 /* Override any GCC internal prototype to avoid an error.
12875    Use char because int might match the return type of a GCC
12876    builtin and then its argument prototype would still apply.  */
12877 #ifdef __cplusplus
12878 extern "C"
12879 #endif
12880 char poll ();
12881 int
12882 main ()
12883 {
12884 return poll ();
12885   ;
12886   return 0;
12887 }
12888 _ACEOF
12889 if ac_fn_c_try_link "$LINENO"; then :
12890   ac_cv_lib_poll_poll=yes
12891 else
12892   ac_cv_lib_poll_poll=no
12893 fi
12894 rm -f core conftest.err conftest.$ac_objext \
12895     conftest$ac_exeext conftest.$ac_ext
12896 LIBS=$ac_check_lib_save_LIBS
12897 fi
12898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_poll_poll" >&5
12899 $as_echo "$ac_cv_lib_poll_poll" >&6; }
12900 if test "x$ac_cv_lib_poll_poll" = xyes; then :
12901   $as_echo "#define HAVE_POLL 1" >>confdefs.h
12902  LIBPOLL="-lpoll"
12903
12904 fi
12905
12906 fi
12907
12908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
12909 $as_echo_n "checking for library containing gethostbyname... " >&6; }
12910 if ${ac_cv_search_gethostbyname+:} false; then :
12911   $as_echo_n "(cached) " >&6
12912 else
12913   ac_func_search_save_LIBS=$LIBS
12914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12915 /* end confdefs.h.  */
12916
12917 /* Override any GCC internal prototype to avoid an error.
12918    Use char because int might match the return type of a GCC
12919    builtin and then its argument prototype would still apply.  */
12920 #ifdef __cplusplus
12921 extern "C"
12922 #endif
12923 char gethostbyname ();
12924 int
12925 main ()
12926 {
12927 return gethostbyname ();
12928   ;
12929   return 0;
12930 }
12931 _ACEOF
12932 for ac_lib in '' nsl; do
12933   if test -z "$ac_lib"; then
12934     ac_res="none required"
12935   else
12936     ac_res=-l$ac_lib
12937     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12938   fi
12939   if ac_fn_c_try_link "$LINENO"; then :
12940   ac_cv_search_gethostbyname=$ac_res
12941 fi
12942 rm -f core conftest.err conftest.$ac_objext \
12943     conftest$ac_exeext
12944   if ${ac_cv_search_gethostbyname+:} false; then :
12945   break
12946 fi
12947 done
12948 if ${ac_cv_search_gethostbyname+:} false; then :
12949
12950 else
12951   ac_cv_search_gethostbyname=no
12952 fi
12953 rm conftest.$ac_ext
12954 LIBS=$ac_func_search_save_LIBS
12955 fi
12956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
12957 $as_echo "$ac_cv_search_gethostbyname" >&6; }
12958 ac_res=$ac_cv_search_gethostbyname
12959 if test "$ac_res" != no; then :
12960   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12961
12962 fi
12963
12964
12965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5
12966 $as_echo_n "checking for library containing connect... " >&6; }
12967 if ${ac_cv_search_connect+:} false; then :
12968   $as_echo_n "(cached) " >&6
12969 else
12970   ac_func_search_save_LIBS=$LIBS
12971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12972 /* end confdefs.h.  */
12973
12974 /* Override any GCC internal prototype to avoid an error.
12975    Use char because int might match the return type of a GCC
12976    builtin and then its argument prototype would still apply.  */
12977 #ifdef __cplusplus
12978 extern "C"
12979 #endif
12980 char connect ();
12981 int
12982 main ()
12983 {
12984 return connect ();
12985   ;
12986   return 0;
12987 }
12988 _ACEOF
12989 for ac_lib in '' socket; do
12990   if test -z "$ac_lib"; then
12991     ac_res="none required"
12992   else
12993     ac_res=-l$ac_lib
12994     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12995   fi
12996   if ac_fn_c_try_link "$LINENO"; then :
12997   ac_cv_search_connect=$ac_res
12998 fi
12999 rm -f core conftest.err conftest.$ac_objext \
13000     conftest$ac_exeext
13001   if ${ac_cv_search_connect+:} false; then :
13002   break
13003 fi
13004 done
13005 if ${ac_cv_search_connect+:} false; then :
13006
13007 else
13008   ac_cv_search_connect=no
13009 fi
13010 rm conftest.$ac_ext
13011 LIBS=$ac_func_search_save_LIBS
13012 fi
13013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5
13014 $as_echo "$ac_cv_search_connect" >&6; }
13015 ac_res=$ac_cv_search_connect
13016 if test "$ac_res" != no; then :
13017   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13018
13019 fi
13020
13021
13022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
13023 $as_echo_n "checking for library containing inet_aton... " >&6; }
13024 if ${ac_cv_search_inet_aton+:} false; then :
13025   $as_echo_n "(cached) " >&6
13026 else
13027   ac_func_search_save_LIBS=$LIBS
13028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13029 /* end confdefs.h.  */
13030
13031 /* Override any GCC internal prototype to avoid an error.
13032    Use char because int might match the return type of a GCC
13033    builtin and then its argument prototype would still apply.  */
13034 #ifdef __cplusplus
13035 extern "C"
13036 #endif
13037 char inet_aton ();
13038 int
13039 main ()
13040 {
13041 return inet_aton ();
13042   ;
13043   return 0;
13044 }
13045 _ACEOF
13046 for ac_lib in '' resolv; do
13047   if test -z "$ac_lib"; then
13048     ac_res="none required"
13049   else
13050     ac_res=-l$ac_lib
13051     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13052   fi
13053   if ac_fn_c_try_link "$LINENO"; then :
13054   ac_cv_search_inet_aton=$ac_res
13055 fi
13056 rm -f core conftest.err conftest.$ac_objext \
13057     conftest$ac_exeext
13058   if ${ac_cv_search_inet_aton+:} false; then :
13059   break
13060 fi
13061 done
13062 if ${ac_cv_search_inet_aton+:} false; then :
13063
13064 else
13065   ac_cv_search_inet_aton=no
13066 fi
13067 rm conftest.$ac_ext
13068 LIBS=$ac_func_search_save_LIBS
13069 fi
13070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
13071 $as_echo "$ac_cv_search_inet_aton" >&6; }
13072 ac_res=$ac_cv_search_inet_aton
13073 if test "$ac_res" != no; then :
13074   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13075
13076 fi
13077
13078
13079 for ac_func in \
13080         getaddrinfo \
13081         getnameinfo \
13082         getnetbyname \
13083         getprotobyname \
13084         getprotobynumber \
13085         getservbyport \
13086         inet_network \
13087         inet_ntop \
13088         inet_pton \
13089         sendmsg \
13090         socketpair \
13091
13092 do :
13093   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13094 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13095 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13096   cat >>confdefs.h <<_ACEOF
13097 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13098 _ACEOF
13099
13100 fi
13101 done
13102
13103
13104 LDAPLIBS=""
13105
13106 if test "$ac_cv_header_ldap_h" = "yes" -a "$ac_cv_header_lber_h" = "yes"
13107 then
13108     ac_fn_c_check_type "$LINENO" "LDAPSortKey" "ac_cv_type_LDAPSortKey" "#include <ldap.h>
13109 "
13110 if test "x$ac_cv_type_LDAPSortKey" = xyes; then :
13111   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap_r" >&5
13112 $as_echo_n "checking for ldap_initialize in -lldap_r... " >&6; }
13113 if ${ac_cv_lib_ldap_r_ldap_initialize+:} false; then :
13114   $as_echo_n "(cached) " >&6
13115 else
13116   ac_check_lib_save_LIBS=$LIBS
13117 LIBS="-lldap_r $LIBPTHREAD $LIBS"
13118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13119 /* end confdefs.h.  */
13120
13121 /* Override any GCC internal prototype to avoid an error.
13122    Use char because int might match the return type of a GCC
13123    builtin and then its argument prototype would still apply.  */
13124 #ifdef __cplusplus
13125 extern "C"
13126 #endif
13127 char ldap_initialize ();
13128 int
13129 main ()
13130 {
13131 return ldap_initialize ();
13132   ;
13133   return 0;
13134 }
13135 _ACEOF
13136 if ac_fn_c_try_link "$LINENO"; then :
13137   ac_cv_lib_ldap_r_ldap_initialize=yes
13138 else
13139   ac_cv_lib_ldap_r_ldap_initialize=no
13140 fi
13141 rm -f core conftest.err conftest.$ac_objext \
13142     conftest$ac_exeext conftest.$ac_ext
13143 LIBS=$ac_check_lib_save_LIBS
13144 fi
13145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_r_ldap_initialize" >&5
13146 $as_echo "$ac_cv_lib_ldap_r_ldap_initialize" >&6; }
13147 if test "x$ac_cv_lib_ldap_r_ldap_initialize" = xyes; then :
13148   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_init in -llber" >&5
13149 $as_echo_n "checking for ber_init in -llber... " >&6; }
13150 if ${ac_cv_lib_lber_ber_init+:} false; then :
13151   $as_echo_n "(cached) " >&6
13152 else
13153   ac_check_lib_save_LIBS=$LIBS
13154 LIBS="-llber $LIBPTHREAD $LIBS"
13155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13156 /* end confdefs.h.  */
13157
13158 /* Override any GCC internal prototype to avoid an error.
13159    Use char because int might match the return type of a GCC
13160    builtin and then its argument prototype would still apply.  */
13161 #ifdef __cplusplus
13162 extern "C"
13163 #endif
13164 char ber_init ();
13165 int
13166 main ()
13167 {
13168 return ber_init ();
13169   ;
13170   return 0;
13171 }
13172 _ACEOF
13173 if ac_fn_c_try_link "$LINENO"; then :
13174   ac_cv_lib_lber_ber_init=yes
13175 else
13176   ac_cv_lib_lber_ber_init=no
13177 fi
13178 rm -f core conftest.err conftest.$ac_objext \
13179     conftest$ac_exeext conftest.$ac_ext
13180 LIBS=$ac_check_lib_save_LIBS
13181 fi
13182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_init" >&5
13183 $as_echo "$ac_cv_lib_lber_ber_init" >&6; }
13184 if test "x$ac_cv_lib_lber_ber_init" = xyes; then :
13185
13186 $as_echo "#define HAVE_LDAP 1" >>confdefs.h
13187
13188                  LDAPLIBS="-lldap_r -llber"
13189 fi
13190
13191 fi
13192
13193 fi
13194
13195     ac_wine_check_funcs_save_LIBS="$LIBS"
13196 LIBS="$LIBS $LDAPLIBS $LIBPTHREAD"
13197 for ac_func in \
13198         ldap_count_references \
13199         ldap_first_reference \
13200         ldap_next_reference \
13201         ldap_parse_reference \
13202         ldap_parse_sort_control \
13203         ldap_parse_sortresponse_control \
13204         ldap_parse_vlv_control \
13205         ldap_parse_vlvresponse_control
13206 do :
13207   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13208 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13209 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13210   cat >>confdefs.h <<_ACEOF
13211 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13212 _ACEOF
13213
13214 fi
13215 done
13216
13217 LIBS="$ac_wine_check_funcs_save_LIBS"
13218 fi
13219 if test "x$LDAPLIBS" = "x"; then :
13220   case "x$with_ldap" in
13221   x)   as_fn_append wine_notices "|libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported." ;;
13222   xno) ;;
13223   *)   as_fn_error $? "libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported.
13224 This is an error since --with-ldap was requested." "$LINENO" 5 ;;
13225 esac
13226 fi
13227
13228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir takes only one argument" >&5
13229 $as_echo_n "checking whether mkdir takes only one argument... " >&6; }
13230 if ${wine_cv_one_arg_mkdir+:} false; then :
13231   $as_echo_n "(cached) " >&6
13232 else
13233   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13234 /* end confdefs.h.  */
13235 #include <sys/stat.h>
13236 int
13237 main ()
13238 {
13239 mkdir("foo");
13240   ;
13241   return 0;
13242 }
13243 _ACEOF
13244 if ac_fn_c_try_compile "$LINENO"; then :
13245   wine_cv_one_arg_mkdir=yes
13246 else
13247   wine_cv_one_arg_mkdir=no
13248 fi
13249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13250 fi
13251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_one_arg_mkdir" >&5
13252 $as_echo "$wine_cv_one_arg_mkdir" >&6; }
13253 if test "$wine_cv_one_arg_mkdir" = "yes"
13254 then
13255
13256 $as_echo "#define HAVE_ONE_ARG_MKDIR 1" >>confdefs.h
13257
13258 fi
13259
13260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_setaffinity" >&5
13261 $as_echo_n "checking for sched_setaffinity... " >&6; }
13262 if ${wine_cv_have_sched_setaffinity+:} false; then :
13263   $as_echo_n "(cached) " >&6
13264 else
13265   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13266 /* end confdefs.h.  */
13267 #define _GNU_SOURCE
13268 #include <sched.h>
13269 int
13270 main ()
13271 {
13272 sched_setaffinity(0, 0, 0);
13273   ;
13274   return 0;
13275 }
13276 _ACEOF
13277 if ac_fn_c_try_link "$LINENO"; then :
13278   wine_cv_have_sched_setaffinity=yes
13279 else
13280   wine_cv_have_sched_setaffinity=no
13281 fi
13282 rm -f core conftest.err conftest.$ac_objext \
13283     conftest$ac_exeext conftest.$ac_ext
13284 fi
13285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sched_setaffinity" >&5
13286 $as_echo "$wine_cv_have_sched_setaffinity" >&6; }
13287 if test "$wine_cv_have_sched_setaffinity" = "yes"
13288 then
13289
13290 $as_echo "#define HAVE_SCHED_SETAFFINITY 1" >>confdefs.h
13291
13292 fi
13293
13294
13295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13296 $as_echo_n "checking for inline... " >&6; }
13297 if ${ac_cv_c_inline+:} false; then :
13298   $as_echo_n "(cached) " >&6
13299 else
13300   ac_cv_c_inline=no
13301 for ac_kw in inline __inline__ __inline; do
13302   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13303 /* end confdefs.h.  */
13304 #ifndef __cplusplus
13305 typedef int foo_t;
13306 static $ac_kw foo_t static_foo () {return 0; }
13307 $ac_kw foo_t foo () {return 0; }
13308 #endif
13309
13310 _ACEOF
13311 if ac_fn_c_try_compile "$LINENO"; then :
13312   ac_cv_c_inline=$ac_kw
13313 fi
13314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13315   test "$ac_cv_c_inline" != no && break
13316 done
13317
13318 fi
13319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13320 $as_echo "$ac_cv_c_inline" >&6; }
13321
13322 case $ac_cv_c_inline in
13323   inline | yes) ;;
13324   *)
13325     case $ac_cv_c_inline in
13326       no) ac_val=;;
13327       *) ac_val=$ac_cv_c_inline;;
13328     esac
13329     cat >>confdefs.h <<_ACEOF
13330 #ifndef __cplusplus
13331 #define inline $ac_val
13332 #endif
13333 _ACEOF
13334     ;;
13335 esac
13336
13337 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
13338 if test "x$ac_cv_type_mode_t" = xyes; then :
13339
13340 cat >>confdefs.h <<_ACEOF
13341 #define HAVE_MODE_T 1
13342 _ACEOF
13343
13344
13345 fi
13346 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
13347 if test "x$ac_cv_type_off_t" = xyes; then :
13348
13349 cat >>confdefs.h <<_ACEOF
13350 #define HAVE_OFF_T 1
13351 _ACEOF
13352
13353
13354 fi
13355 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13356 if test "x$ac_cv_type_pid_t" = xyes; then :
13357
13358 cat >>confdefs.h <<_ACEOF
13359 #define HAVE_PID_T 1
13360 _ACEOF
13361
13362
13363 fi
13364 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13365 if test "x$ac_cv_type_size_t" = xyes; then :
13366
13367 cat >>confdefs.h <<_ACEOF
13368 #define HAVE_SIZE_T 1
13369 _ACEOF
13370
13371
13372 fi
13373 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
13374 if test "x$ac_cv_type_ssize_t" = xyes; then :
13375
13376 cat >>confdefs.h <<_ACEOF
13377 #define HAVE_SSIZE_T 1
13378 _ACEOF
13379
13380
13381 fi
13382 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
13383 if test "x$ac_cv_type_long_long" = xyes; then :
13384
13385 cat >>confdefs.h <<_ACEOF
13386 #define HAVE_LONG_LONG 1
13387 _ACEOF
13388
13389
13390 fi
13391 ac_fn_c_check_type "$LINENO" "fsblkcnt_t" "ac_cv_type_fsblkcnt_t" "$ac_includes_default"
13392 if test "x$ac_cv_type_fsblkcnt_t" = xyes; then :
13393
13394 cat >>confdefs.h <<_ACEOF
13395 #define HAVE_FSBLKCNT_T 1
13396 _ACEOF
13397
13398
13399 fi
13400 ac_fn_c_check_type "$LINENO" "fsfilcnt_t" "ac_cv_type_fsfilcnt_t" "$ac_includes_default"
13401 if test "x$ac_cv_type_fsfilcnt_t" = xyes; then :
13402
13403 cat >>confdefs.h <<_ACEOF
13404 #define HAVE_FSFILCNT_T 1
13405 _ACEOF
13406
13407
13408 fi
13409
13410 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "#include <sys/types.h>
13411 #include <signal.h>
13412 "
13413 if test "x$ac_cv_type_sigset_t" = xyes; then :
13414
13415 cat >>confdefs.h <<_ACEOF
13416 #define HAVE_SIGSET_T 1
13417 _ACEOF
13418
13419
13420 fi
13421
13422 ac_fn_c_check_type "$LINENO" "request_sense" "ac_cv_type_request_sense" "#include <linux/cdrom.h>
13423 "
13424 if test "x$ac_cv_type_request_sense" = xyes; then :
13425
13426 cat >>confdefs.h <<_ACEOF
13427 #define HAVE_REQUEST_SENSE 1
13428 _ACEOF
13429
13430
13431 fi
13432
13433
13434 ac_fn_c_check_type "$LINENO" "struct xinpgen" "ac_cv_type_struct_xinpgen" "#include <sys/types.h>
13435 #ifdef HAVE_SYS_SOCKET_H
13436 #include <sys/socket.h>
13437 #endif
13438 #ifdef HAVE_SYS_SOCKETVAR_H
13439 #include <sys/socketvar.h>
13440 #endif
13441 #ifdef HAVE_NET_ROUTE_H
13442 #include <net/route.h>
13443 #endif
13444 #ifdef HAVE_NETINET_IN_H
13445 #include <netinet/in.h>
13446 #endif
13447 #ifdef HAVE_NETINET_IN_SYSTM_H
13448 #include <netinet/in_systm.h>
13449 #endif
13450 #ifdef HAVE_NETINET_IP_H
13451 #include <netinet/ip.h>
13452 #endif
13453 #ifdef HAVE_NETINET_IN_PCB_H
13454 #include <netinet/in_pcb.h>
13455 #endif
13456 "
13457 if test "x$ac_cv_type_struct_xinpgen" = xyes; then :
13458
13459 cat >>confdefs.h <<_ACEOF
13460 #define HAVE_STRUCT_XINPGEN 1
13461 _ACEOF
13462
13463
13464 fi
13465
13466
13467 ac_fn_c_check_member "$LINENO" "struct ff_effect" "direction" "ac_cv_member_struct_ff_effect_direction" "#ifdef HAVE_LINUX_INPUT_H
13468 #include <linux/input.h>
13469 #endif
13470 "
13471 if test "x$ac_cv_member_struct_ff_effect_direction" = xyes; then :
13472
13473 cat >>confdefs.h <<_ACEOF
13474 #define HAVE_STRUCT_FF_EFFECT_DIRECTION 1
13475 _ACEOF
13476
13477
13478 fi
13479
13480
13481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigaddset" >&5
13482 $as_echo_n "checking for sigaddset... " >&6; }
13483 if ${wine_cv_have_sigaddset+:} false; then :
13484   $as_echo_n "(cached) " >&6
13485 else
13486   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13487 /* end confdefs.h.  */
13488 #include <signal.h>
13489 int
13490 main ()
13491 {
13492 sigset_t set; sigaddset(&set,SIGTERM);
13493   ;
13494   return 0;
13495 }
13496 _ACEOF
13497 if ac_fn_c_try_link "$LINENO"; then :
13498   wine_cv_have_sigaddset=yes
13499 else
13500   wine_cv_have_sigaddset=no
13501 fi
13502 rm -f core conftest.err conftest.$ac_objext \
13503     conftest$ac_exeext conftest.$ac_ext
13504 fi
13505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sigaddset" >&5
13506 $as_echo "$wine_cv_have_sigaddset" >&6; }
13507 if test "$wine_cv_have_sigaddset" = "yes"
13508 then
13509
13510 $as_echo "#define HAVE_SIGADDSET 1" >>confdefs.h
13511
13512 fi
13513
13514
13515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
13516 $as_echo_n "checking whether we can use re-entrant gethostbyname_r Linux style... " >&6; }
13517 if ${wine_cv_linux_gethostbyname_r_6+:} false; then :
13518   $as_echo_n "(cached) " >&6
13519 else
13520   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13521 /* end confdefs.h.  */
13522 #include <netdb.h>
13523 int
13524 main ()
13525 {
13526
13527     char *name=0;
13528     struct hostent he;
13529     struct hostent *result;
13530     char *buf=0;
13531     int bufsize=0;
13532     int errnr;
13533     char *addr=0;
13534     int addrlen=0;
13535     int addrtype=0;
13536     gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
13537     gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
13538
13539   ;
13540   return 0;
13541 }
13542 _ACEOF
13543 if ac_fn_c_try_link "$LINENO"; then :
13544   wine_cv_linux_gethostbyname_r_6=yes
13545 else
13546   wine_cv_linux_gethostbyname_r_6=no
13547
13548 fi
13549 rm -f core conftest.err conftest.$ac_objext \
13550     conftest$ac_exeext conftest.$ac_ext
13551
13552 fi
13553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_gethostbyname_r_6" >&5
13554 $as_echo "$wine_cv_linux_gethostbyname_r_6" >&6; }
13555    if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
13556    then
13557
13558 $as_echo "#define HAVE_LINUX_GETHOSTBYNAME_R_6 1" >>confdefs.h
13559
13560    fi
13561
13562 if test "$ac_cv_header_linux_joystick_h" = "yes"
13563 then
13564    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
13565 $as_echo_n "checking whether linux/joystick.h uses the Linux 2.2+ API... " >&6; }
13566 if ${wine_cv_linux_joystick_22_api+:} false; then :
13567   $as_echo_n "(cached) " >&6
13568 else
13569   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13570 /* end confdefs.h.  */
13571
13572         #include <sys/ioctl.h>
13573         #include <sys/types.h>
13574         #include <linux/joystick.h>
13575
13576         struct js_event blub;
13577         #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
13578         #error "no 2.2 header"
13579         #endif
13580
13581 int
13582 main ()
13583 {
13584 /*empty*/
13585   ;
13586   return 0;
13587 }
13588 _ACEOF
13589 if ac_fn_c_try_compile "$LINENO"; then :
13590   wine_cv_linux_joystick_22_api=yes
13591 else
13592   wine_cv_linux_joystick_22_api=no
13593 fi
13594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13595
13596 fi
13597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_joystick_22_api" >&5
13598 $as_echo "$wine_cv_linux_joystick_22_api" >&6; }
13599    if test "$wine_cv_linux_joystick_22_api" = "yes"
13600    then
13601
13602 $as_echo "#define HAVE_LINUX_22_JOYSTICK_API 1" >>confdefs.h
13603
13604    fi
13605 fi
13606
13607
13608 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bfree" "ac_cv_member_struct_statfs_f_bfree" "#include <sys/types.h>
13609 #ifdef HAVE_SYS_PARAM_H
13610 # include <sys/param.h>
13611 #endif
13612 #ifdef HAVE_SYS_MOUNT_H
13613 # include <sys/mount.h>
13614 #endif
13615 #ifdef HAVE_SYS_VFS_H
13616 # include <sys/vfs.h>
13617 #endif
13618 #ifdef HAVE_SYS_STATFS_H
13619 # include <sys/statfs.h>
13620 #endif
13621 "
13622 if test "x$ac_cv_member_struct_statfs_f_bfree" = xyes; then :
13623
13624 cat >>confdefs.h <<_ACEOF
13625 #define HAVE_STRUCT_STATFS_F_BFREE 1
13626 _ACEOF
13627
13628
13629 fi
13630 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bavail" "ac_cv_member_struct_statfs_f_bavail" "#include <sys/types.h>
13631 #ifdef HAVE_SYS_PARAM_H
13632 # include <sys/param.h>
13633 #endif
13634 #ifdef HAVE_SYS_MOUNT_H
13635 # include <sys/mount.h>
13636 #endif
13637 #ifdef HAVE_SYS_VFS_H
13638 # include <sys/vfs.h>
13639 #endif
13640 #ifdef HAVE_SYS_STATFS_H
13641 # include <sys/statfs.h>
13642 #endif
13643 "
13644 if test "x$ac_cv_member_struct_statfs_f_bavail" = xyes; then :
13645
13646 cat >>confdefs.h <<_ACEOF
13647 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
13648 _ACEOF
13649
13650
13651 fi
13652 ac_fn_c_check_member "$LINENO" "struct statfs" "f_frsize" "ac_cv_member_struct_statfs_f_frsize" "#include <sys/types.h>
13653 #ifdef HAVE_SYS_PARAM_H
13654 # include <sys/param.h>
13655 #endif
13656 #ifdef HAVE_SYS_MOUNT_H
13657 # include <sys/mount.h>
13658 #endif
13659 #ifdef HAVE_SYS_VFS_H
13660 # include <sys/vfs.h>
13661 #endif
13662 #ifdef HAVE_SYS_STATFS_H
13663 # include <sys/statfs.h>
13664 #endif
13665 "
13666 if test "x$ac_cv_member_struct_statfs_f_frsize" = xyes; then :
13667
13668 cat >>confdefs.h <<_ACEOF
13669 #define HAVE_STRUCT_STATFS_F_FRSIZE 1
13670 _ACEOF
13671
13672
13673 fi
13674 ac_fn_c_check_member "$LINENO" "struct statfs" "f_ffree" "ac_cv_member_struct_statfs_f_ffree" "#include <sys/types.h>
13675 #ifdef HAVE_SYS_PARAM_H
13676 # include <sys/param.h>
13677 #endif
13678 #ifdef HAVE_SYS_MOUNT_H
13679 # include <sys/mount.h>
13680 #endif
13681 #ifdef HAVE_SYS_VFS_H
13682 # include <sys/vfs.h>
13683 #endif
13684 #ifdef HAVE_SYS_STATFS_H
13685 # include <sys/statfs.h>
13686 #endif
13687 "
13688 if test "x$ac_cv_member_struct_statfs_f_ffree" = xyes; then :
13689
13690 cat >>confdefs.h <<_ACEOF
13691 #define HAVE_STRUCT_STATFS_F_FFREE 1
13692 _ACEOF
13693
13694
13695 fi
13696 ac_fn_c_check_member "$LINENO" "struct statfs" "f_favail" "ac_cv_member_struct_statfs_f_favail" "#include <sys/types.h>
13697 #ifdef HAVE_SYS_PARAM_H
13698 # include <sys/param.h>
13699 #endif
13700 #ifdef HAVE_SYS_MOUNT_H
13701 # include <sys/mount.h>
13702 #endif
13703 #ifdef HAVE_SYS_VFS_H
13704 # include <sys/vfs.h>
13705 #endif
13706 #ifdef HAVE_SYS_STATFS_H
13707 # include <sys/statfs.h>
13708 #endif
13709 "
13710 if test "x$ac_cv_member_struct_statfs_f_favail" = xyes; then :
13711
13712 cat >>confdefs.h <<_ACEOF
13713 #define HAVE_STRUCT_STATFS_F_FAVAIL 1
13714 _ACEOF
13715
13716
13717 fi
13718 ac_fn_c_check_member "$LINENO" "struct statfs" "f_namelen" "ac_cv_member_struct_statfs_f_namelen" "#include <sys/types.h>
13719 #ifdef HAVE_SYS_PARAM_H
13720 # include <sys/param.h>
13721 #endif
13722 #ifdef HAVE_SYS_MOUNT_H
13723 # include <sys/mount.h>
13724 #endif
13725 #ifdef HAVE_SYS_VFS_H
13726 # include <sys/vfs.h>
13727 #endif
13728 #ifdef HAVE_SYS_STATFS_H
13729 # include <sys/statfs.h>
13730 #endif
13731 "
13732 if test "x$ac_cv_member_struct_statfs_f_namelen" = xyes; then :
13733
13734 cat >>confdefs.h <<_ACEOF
13735 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
13736 _ACEOF
13737
13738
13739 fi
13740
13741
13742 ac_fn_c_check_member "$LINENO" "struct statvfs" "f_blocks" "ac_cv_member_struct_statvfs_f_blocks" "#ifdef HAVE_SYS_STATVFS_H
13743 #include <sys/statvfs.h>
13744 #endif
13745 "
13746 if test "x$ac_cv_member_struct_statvfs_f_blocks" = xyes; then :
13747
13748 cat >>confdefs.h <<_ACEOF
13749 #define HAVE_STRUCT_STATVFS_F_BLOCKS 1
13750 _ACEOF
13751
13752
13753 fi
13754
13755
13756 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_accrights" "ac_cv_member_struct_msghdr_msg_accrights" "#include <sys/types.h>
13757 #ifdef HAVE_SYS_SOCKET_H
13758 # include <sys/socket.h>
13759 #endif
13760 #ifdef HAVE_SYS_UN_H
13761 # include <sys/un.h>
13762 #endif
13763 "
13764 if test "x$ac_cv_member_struct_msghdr_msg_accrights" = xyes; then :
13765
13766 cat >>confdefs.h <<_ACEOF
13767 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
13768 _ACEOF
13769
13770
13771 fi
13772 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
13773 #ifdef HAVE_SYS_SOCKET_H
13774 # include <sys/socket.h>
13775 #endif
13776 #ifdef HAVE_SYS_UN_H
13777 # include <sys/un.h>
13778 #endif
13779 "
13780 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
13781
13782 cat >>confdefs.h <<_ACEOF
13783 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
13784 _ACEOF
13785
13786
13787 fi
13788 ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" "#include <sys/types.h>
13789 #ifdef HAVE_SYS_SOCKET_H
13790 # include <sys/socket.h>
13791 #endif
13792 #ifdef HAVE_SYS_UN_H
13793 # include <sys/un.h>
13794 #endif
13795 "
13796 if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes; then :
13797
13798 cat >>confdefs.h <<_ACEOF
13799 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
13800 _ACEOF
13801
13802
13803 fi
13804
13805
13806 ac_fn_c_check_member "$LINENO" "scsireq_t" "cmd" "ac_cv_member_scsireq_t_cmd" "#include <sys/types.h>
13807 #ifdef HAVE_SCSI_SG_H
13808 #include <scsi/sg.h>
13809 #endif
13810 "
13811 if test "x$ac_cv_member_scsireq_t_cmd" = xyes; then :
13812
13813 cat >>confdefs.h <<_ACEOF
13814 #define HAVE_SCSIREQ_T_CMD 1
13815 _ACEOF
13816
13817
13818 fi
13819 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>
13820 #ifdef HAVE_SCSI_SG_H
13821 #include <scsi/sg.h>
13822 #endif
13823 "
13824 if test "x$ac_cv_member_sg_io_hdr_t_interface_id" = xyes; then :
13825
13826 cat >>confdefs.h <<_ACEOF
13827 #define HAVE_SG_IO_HDR_T_INTERFACE_ID 1
13828 _ACEOF
13829
13830
13831 fi
13832
13833
13834 ac_fn_c_check_member "$LINENO" "siginfo_t" "si_fd" "ac_cv_member_siginfo_t_si_fd" "#include <signal.h>
13835 "
13836 if test "x$ac_cv_member_siginfo_t_si_fd" = xyes; then :
13837
13838 cat >>confdefs.h <<_ACEOF
13839 #define HAVE_SIGINFO_T_SI_FD 1
13840 _ACEOF
13841
13842
13843 fi
13844
13845
13846 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blksiz" "ac_cv_member_struct_mtget_mt_blksiz" "#include <sys/types.h>
13847 #ifdef HAVE_SYS_MTIO_H
13848 #include <sys/mtio.h>
13849 #endif
13850 "
13851 if test "x$ac_cv_member_struct_mtget_mt_blksiz" = xyes; then :
13852
13853 cat >>confdefs.h <<_ACEOF
13854 #define HAVE_STRUCT_MTGET_MT_BLKSIZ 1
13855 _ACEOF
13856
13857
13858 fi
13859 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_gstat" "ac_cv_member_struct_mtget_mt_gstat" "#include <sys/types.h>
13860 #ifdef HAVE_SYS_MTIO_H
13861 #include <sys/mtio.h>
13862 #endif
13863 "
13864 if test "x$ac_cv_member_struct_mtget_mt_gstat" = xyes; then :
13865
13866 cat >>confdefs.h <<_ACEOF
13867 #define HAVE_STRUCT_MTGET_MT_GSTAT 1
13868 _ACEOF
13869
13870
13871 fi
13872 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blkno" "ac_cv_member_struct_mtget_mt_blkno" "#include <sys/types.h>
13873 #ifdef HAVE_SYS_MTIO_H
13874 #include <sys/mtio.h>
13875 #endif
13876 "
13877 if test "x$ac_cv_member_struct_mtget_mt_blkno" = xyes; then :
13878
13879 cat >>confdefs.h <<_ACEOF
13880 #define HAVE_STRUCT_MTGET_MT_BLKNO 1
13881 _ACEOF
13882
13883
13884 fi
13885
13886
13887 ac_fn_c_check_member "$LINENO" "struct option" "name" "ac_cv_member_struct_option_name" "#ifdef HAVE_GETOPT_H
13888 #include <getopt.h>
13889 #endif
13890 "
13891 if test "x$ac_cv_member_struct_option_name" = xyes; then :
13892
13893 cat >>confdefs.h <<_ACEOF
13894 #define HAVE_STRUCT_OPTION_NAME 1
13895 _ACEOF
13896
13897
13898 fi
13899
13900
13901 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
13902 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
13903
13904 cat >>confdefs.h <<_ACEOF
13905 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
13906 _ACEOF
13907
13908
13909 fi
13910 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
13911 if test "x$ac_cv_member_struct_stat_st_mtim" = xyes; then :
13912
13913 cat >>confdefs.h <<_ACEOF
13914 #define HAVE_STRUCT_STAT_ST_MTIM 1
13915 _ACEOF
13916
13917
13918 fi
13919 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctim" "ac_cv_member_struct_stat_st_ctim" "$ac_includes_default"
13920 if test "x$ac_cv_member_struct_stat_st_ctim" = xyes; then :
13921
13922 cat >>confdefs.h <<_ACEOF
13923 #define HAVE_STRUCT_STAT_ST_CTIM 1
13924 _ACEOF
13925
13926
13927 fi
13928 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
13929 if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
13930
13931 cat >>confdefs.h <<_ACEOF
13932 #define HAVE_STRUCT_STAT_ST_ATIM 1
13933 _ACEOF
13934
13935
13936 fi
13937
13938
13939 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
13940 #include <sys/types.h>
13941 #endif
13942 #ifdef HAVE_NETINET_IN_H
13943 #include <netinet/in.h>
13944 #endif
13945 "
13946 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = xyes; then :
13947
13948 cat >>confdefs.h <<_ACEOF
13949 #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
13950 _ACEOF
13951
13952
13953 fi
13954
13955
13956 ac_fn_c_check_member "$LINENO" "ns_msg" "_msg_ptr" "ac_cv_member_ns_msg__msg_ptr" "#ifdef HAVE_SYS_TYPES_H
13957 #include <sys/types.h>
13958 #endif
13959 #ifdef HAVE_NETINET_IN_H
13960 # include <netinet/in.h>
13961 #endif
13962 #ifdef HAVE_ARPA_NAMESER_H
13963 # include <arpa/nameser.h>
13964 #endif
13965 "
13966 if test "x$ac_cv_member_ns_msg__msg_ptr" = xyes; then :
13967
13968 cat >>confdefs.h <<_ACEOF
13969 #define HAVE_NS_MSG__MSG_PTR 1
13970 _ACEOF
13971
13972
13973 fi
13974
13975
13976 ac_fn_c_check_member "$LINENO" "struct icmpstat" "icps_outhist" "ac_cv_member_struct_icmpstat_icps_outhist" "#ifdef HAVE_SYS_TYPES_H
13977 #include <sys/types.h>
13978 #endif
13979 #ifdef HAVE_ALIAS_H
13980 #include <alias.h>
13981 #endif
13982 #ifdef HAVE_SYS_SOCKET_H
13983 #include <sys/socket.h>
13984 #endif
13985 #ifdef HAVE_SYS_SOCKETVAR_H
13986 #include <sys/socketvar.h>
13987 #endif
13988 #ifdef HAVE_SYS_TIMEOUT_H
13989 #include <sys/timeout.h>
13990 #endif
13991 #ifdef HAVE_NETINET_IN_H
13992 #include <netinet/in.h>
13993 #endif
13994 #ifdef HAVE_NETINET_IN_SYSTM_H
13995 #include <netinet/in_systm.h>
13996 #endif
13997 #ifdef HAVE_NETINET_IP_H
13998 #include <netinet/ip.h>
13999 #endif
14000 #ifdef HAVE_NETINET_IP_VAR_H
14001 #include <netinet/ip_var.h>
14002 #endif
14003 #ifdef HAVE_NETINET_IP_ICMP_H
14004 #include <netinet/ip_icmp.h>
14005 #endif
14006 #ifdef HAVE_NETINET_ICMP_VAR
14007 #include <netinet/icmp_var.h>
14008 #endif
14009 "
14010 if test "x$ac_cv_member_struct_icmpstat_icps_outhist" = xyes; then :
14011
14012 cat >>confdefs.h <<_ACEOF
14013 #define HAVE_STRUCT_ICMPSTAT_ICPS_OUTHIST 1
14014 _ACEOF
14015
14016
14017 fi
14018
14019
14020 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "#ifdef HAVE_SYS_TYPES_H
14021 #include <sys/types.h>
14022 #endif
14023 #ifdef HAVE_NET_IF_H
14024 # include <net/if.h>
14025 #endif
14026 "
14027 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = xyes; then :
14028
14029 cat >>confdefs.h <<_ACEOF
14030 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
14031 _ACEOF
14032
14033
14034 fi
14035
14036
14037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone variable" >&5
14038 $as_echo_n "checking for timezone variable... " >&6; }
14039 if ${ac_cv_have_timezone+:} false; then :
14040   $as_echo_n "(cached) " >&6
14041 else
14042   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14043 /* end confdefs.h.  */
14044 #include <time.h>
14045 int
14046 main ()
14047 {
14048 timezone = 1
14049   ;
14050   return 0;
14051 }
14052 _ACEOF
14053 if ac_fn_c_try_link "$LINENO"; then :
14054   ac_cv_have_timezone="yes"
14055 else
14056   ac_cv_have_timezone="no"
14057 fi
14058 rm -f core conftest.err conftest.$ac_objext \
14059     conftest$ac_exeext conftest.$ac_ext
14060 fi
14061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_timezone" >&5
14062 $as_echo "$ac_cv_have_timezone" >&6; }
14063 if test "$ac_cv_have_timezone" = "yes"
14064 then
14065
14066 $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
14067
14068 fi
14069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daylight variable" >&5
14070 $as_echo_n "checking for daylight variable... " >&6; }
14071 if ${ac_cv_have_daylight+:} false; then :
14072   $as_echo_n "(cached) " >&6
14073 else
14074   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14075 /* end confdefs.h.  */
14076 #include <time.h>
14077 int
14078 main ()
14079 {
14080 daylight = 1
14081   ;
14082   return 0;
14083 }
14084 _ACEOF
14085 if ac_fn_c_try_link "$LINENO"; then :
14086   ac_cv_have_daylight="yes"
14087 else
14088   ac_cv_have_daylight="no"
14089 fi
14090 rm -f core conftest.err conftest.$ac_objext \
14091     conftest$ac_exeext conftest.$ac_ext
14092 fi
14093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_daylight" >&5
14094 $as_echo "$ac_cv_have_daylight" >&6; }
14095 if test "$ac_cv_have_daylight" = "yes"
14096 then
14097
14098 $as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h
14099
14100 fi
14101
14102 ac_save_LIBS="$LIBS"
14103 LIBS="$LIBS -lm"
14104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf" >&5
14105 $as_echo_n "checking for isinf... " >&6; }
14106 if ${ac_cv_have_isinf+:} false; then :
14107   $as_echo_n "(cached) " >&6
14108 else
14109   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14110 /* end confdefs.h.  */
14111 #include <math.h>
14112 int
14113 main ()
14114 {
14115 float f = 0.0; return isinf(f)
14116   ;
14117   return 0;
14118 }
14119 _ACEOF
14120 if ac_fn_c_try_link "$LINENO"; then :
14121   ac_cv_have_isinf="yes"
14122 else
14123   ac_cv_have_isinf="no"
14124 fi
14125 rm -f core conftest.err conftest.$ac_objext \
14126     conftest$ac_exeext conftest.$ac_ext
14127 fi
14128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isinf" >&5
14129 $as_echo "$ac_cv_have_isinf" >&6; }
14130 if test "$ac_cv_have_isinf" = "yes"
14131 then
14132
14133 $as_echo "#define HAVE_ISINF 1" >>confdefs.h
14134
14135 fi
14136
14137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan" >&5
14138 $as_echo_n "checking for isnan... " >&6; }
14139 if ${ac_cv_have_isnan+:} false; then :
14140   $as_echo_n "(cached) " >&6
14141 else
14142   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14143 /* end confdefs.h.  */
14144 #include <math.h>
14145 int
14146 main ()
14147 {
14148 float f = 0.0; return isnan(f)
14149   ;
14150   return 0;
14151 }
14152 _ACEOF
14153 if ac_fn_c_try_link "$LINENO"; then :
14154   ac_cv_have_isnan="yes"
14155 else
14156   ac_cv_have_isnan="no"
14157 fi
14158 rm -f core conftest.err conftest.$ac_objext \
14159     conftest$ac_exeext conftest.$ac_ext
14160 fi
14161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isnan" >&5
14162 $as_echo "$ac_cv_have_isnan" >&6; }
14163 if test "$ac_cv_have_isnan" = "yes"
14164 then
14165
14166 $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
14167
14168 fi
14169 LIBS="$ac_save_LIBS"
14170
14171
14172 case $host_cpu in
14173   *i[3456789]86*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __i386__" >&5
14174 $as_echo_n "checking whether we need to define __i386__... " >&6; }
14175 if ${ac_cv_cpp_def___i386__+:} false; then :
14176   $as_echo_n "(cached) " >&6
14177 else
14178   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14179 /* end confdefs.h.  */
14180 #ifndef __i386__
14181 yes
14182 #endif
14183 _ACEOF
14184 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14185   $EGREP "yes" >/dev/null 2>&1; then :
14186   ac_cv_cpp_def___i386__=yes
14187 else
14188   ac_cv_cpp_def___i386__=no
14189 fi
14190 rm -f conftest*
14191
14192 fi
14193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___i386__" >&5
14194 $as_echo "$ac_cv_cpp_def___i386__" >&6; }
14195 if test $ac_cv_cpp_def___i386__ = yes; then :
14196   CFLAGS="$CFLAGS -D__i386__"
14197   LINTFLAGS="$LINTFLAGS -D__i386__"
14198 fi ;;
14199   *x86_64*)         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __x86_64__" >&5
14200 $as_echo_n "checking whether we need to define __x86_64__... " >&6; }
14201 if ${ac_cv_cpp_def___x86_64__+:} false; then :
14202   $as_echo_n "(cached) " >&6
14203 else
14204   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14205 /* end confdefs.h.  */
14206 #ifndef __x86_64__
14207 yes
14208 #endif
14209 _ACEOF
14210 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14211   $EGREP "yes" >/dev/null 2>&1; then :
14212   ac_cv_cpp_def___x86_64__=yes
14213 else
14214   ac_cv_cpp_def___x86_64__=no
14215 fi
14216 rm -f conftest*
14217
14218 fi
14219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___x86_64__" >&5
14220 $as_echo "$ac_cv_cpp_def___x86_64__" >&6; }
14221 if test $ac_cv_cpp_def___x86_64__ = yes; then :
14222   CFLAGS="$CFLAGS -D__x86_64__"
14223   LINTFLAGS="$LINTFLAGS -D__x86_64__"
14224 fi ;;
14225   *sparc64*)        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sparc64__" >&5
14226 $as_echo_n "checking whether we need to define __sparc64__... " >&6; }
14227 if ${ac_cv_cpp_def___sparc64__+:} false; then :
14228   $as_echo_n "(cached) " >&6
14229 else
14230   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14231 /* end confdefs.h.  */
14232 #ifndef __sparc64__
14233 yes
14234 #endif
14235 _ACEOF
14236 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14237   $EGREP "yes" >/dev/null 2>&1; then :
14238   ac_cv_cpp_def___sparc64__=yes
14239 else
14240   ac_cv_cpp_def___sparc64__=no
14241 fi
14242 rm -f conftest*
14243
14244 fi
14245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sparc64__" >&5
14246 $as_echo "$ac_cv_cpp_def___sparc64__" >&6; }
14247 if test $ac_cv_cpp_def___sparc64__ = yes; then :
14248   CFLAGS="$CFLAGS -D__sparc64__"
14249   LINTFLAGS="$LINTFLAGS -D__sparc64__"
14250 fi ;;
14251   *sparc*)          { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sparc__" >&5
14252 $as_echo_n "checking whether we need to define __sparc__... " >&6; }
14253 if ${ac_cv_cpp_def___sparc__+:} false; then :
14254   $as_echo_n "(cached) " >&6
14255 else
14256   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14257 /* end confdefs.h.  */
14258 #ifndef __sparc__
14259 yes
14260 #endif
14261 _ACEOF
14262 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14263   $EGREP "yes" >/dev/null 2>&1; then :
14264   ac_cv_cpp_def___sparc__=yes
14265 else
14266   ac_cv_cpp_def___sparc__=no
14267 fi
14268 rm -f conftest*
14269
14270 fi
14271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sparc__" >&5
14272 $as_echo "$ac_cv_cpp_def___sparc__" >&6; }
14273 if test $ac_cv_cpp_def___sparc__ = yes; then :
14274   CFLAGS="$CFLAGS -D__sparc__"
14275   LINTFLAGS="$LINTFLAGS -D__sparc__"
14276 fi ;;
14277   *powerpc64*)      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __powerpc64__" >&5
14278 $as_echo_n "checking whether we need to define __powerpc64__... " >&6; }
14279 if ${ac_cv_cpp_def___powerpc64__+:} false; then :
14280   $as_echo_n "(cached) " >&6
14281 else
14282   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14283 /* end confdefs.h.  */
14284 #ifndef __powerpc64__
14285 yes
14286 #endif
14287 _ACEOF
14288 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14289   $EGREP "yes" >/dev/null 2>&1; then :
14290   ac_cv_cpp_def___powerpc64__=yes
14291 else
14292   ac_cv_cpp_def___powerpc64__=no
14293 fi
14294 rm -f conftest*
14295
14296 fi
14297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___powerpc64__" >&5
14298 $as_echo "$ac_cv_cpp_def___powerpc64__" >&6; }
14299 if test $ac_cv_cpp_def___powerpc64__ = yes; then :
14300   CFLAGS="$CFLAGS -D__powerpc64__"
14301   LINTFLAGS="$LINTFLAGS -D__powerpc64__"
14302 fi ;;
14303   *powerpc*)        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __powerpc__" >&5
14304 $as_echo_n "checking whether we need to define __powerpc__... " >&6; }
14305 if ${ac_cv_cpp_def___powerpc__+:} false; then :
14306   $as_echo_n "(cached) " >&6
14307 else
14308   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14309 /* end confdefs.h.  */
14310 #ifndef __powerpc__
14311 yes
14312 #endif
14313 _ACEOF
14314 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14315   $EGREP "yes" >/dev/null 2>&1; then :
14316   ac_cv_cpp_def___powerpc__=yes
14317 else
14318   ac_cv_cpp_def___powerpc__=no
14319 fi
14320 rm -f conftest*
14321
14322 fi
14323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___powerpc__" >&5
14324 $as_echo "$ac_cv_cpp_def___powerpc__" >&6; }
14325 if test $ac_cv_cpp_def___powerpc__ = yes; then :
14326   CFLAGS="$CFLAGS -D__powerpc__"
14327   LINTFLAGS="$LINTFLAGS -D__powerpc__"
14328 fi ;;
14329   *arm*)            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __arm__" >&5
14330 $as_echo_n "checking whether we need to define __arm__... " >&6; }
14331 if ${ac_cv_cpp_def___arm__+:} false; then :
14332   $as_echo_n "(cached) " >&6
14333 else
14334   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14335 /* end confdefs.h.  */
14336 #ifndef __arm__
14337 yes
14338 #endif
14339 _ACEOF
14340 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14341   $EGREP "yes" >/dev/null 2>&1; then :
14342   ac_cv_cpp_def___arm__=yes
14343 else
14344   ac_cv_cpp_def___arm__=no
14345 fi
14346 rm -f conftest*
14347
14348 fi
14349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___arm__" >&5
14350 $as_echo "$ac_cv_cpp_def___arm__" >&6; }
14351 if test $ac_cv_cpp_def___arm__ = yes; then :
14352   CFLAGS="$CFLAGS -D__arm__"
14353   LINTFLAGS="$LINTFLAGS -D__arm__"
14354 fi ;;
14355 esac
14356
14357 case $host_vendor in
14358   *sun*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sun__" >&5
14359 $as_echo_n "checking whether we need to define __sun__... " >&6; }
14360 if ${ac_cv_cpp_def___sun__+:} false; then :
14361   $as_echo_n "(cached) " >&6
14362 else
14363   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14364 /* end confdefs.h.  */
14365 #ifndef __sun__
14366 yes
14367 #endif
14368 _ACEOF
14369 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14370   $EGREP "yes" >/dev/null 2>&1; then :
14371   ac_cv_cpp_def___sun__=yes
14372 else
14373   ac_cv_cpp_def___sun__=no
14374 fi
14375 rm -f conftest*
14376
14377 fi
14378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sun__" >&5
14379 $as_echo "$ac_cv_cpp_def___sun__" >&6; }
14380 if test $ac_cv_cpp_def___sun__ = yes; then :
14381   CFLAGS="$CFLAGS -D__sun__"
14382   LINTFLAGS="$LINTFLAGS -D__sun__"
14383 fi ;;
14384 esac
14385
14386
14387
14388
14389
14390 ac_config_commands="$ac_config_commands include/stamp-h"
14391
14392
14393 ALL_MAKEFILE_DEPENDS="
14394 # Rules automatically generated by configure
14395
14396 .INIT: Makefile
14397 .MAKEFILEDEPS:
14398 all: Makefile
14399 Makefile: Makefile.in Make.vars.in Make.rules config.status
14400         @./config.status Make.tmp Makefile"
14401
14402 ALL_POT_FILES=""
14403 ALL_TEST_RESOURCES=""
14404
14405
14406 wine_fn_append_file ()
14407 {
14408     as_fn_append $1 " \\$as_nl  $2"
14409 }
14410
14411 wine_fn_append_rule ()
14412 {
14413     as_fn_append $1 "$as_nl$2"
14414 }
14415
14416 wine_fn_has_flag ()
14417 {
14418     expr ",$2," : ".*,$1,.*" >/dev/null
14419 }
14420
14421 wine_fn_all_dir_rules ()
14422 {
14423     ac_dir=$1
14424     ac_alldeps=$2
14425     ac_makedep="\$(MAKEDEP)"
14426     ac_input=Make.vars.in:$ac_dir/Makefile.in
14427     if test $ac_dir != tools
14428     then
14429                 ac_alldeps="$2 $ac_makedep"
14430     fi
14431     case $2 in
14432       *.in) ac_input=$ac_input:$2 ;;
14433       *) ac_makedep="$2 $ac_makedep" ;;
14434     esac
14435
14436     wine_fn_append_file ALL_DIRS $ac_dir
14437     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14438 "__clean__: $ac_dir/__clean__
14439 .PHONY: $ac_dir/__clean__
14440 $ac_dir/__clean__: $ac_dir/Makefile
14441         @cd $ac_dir && \$(MAKE) clean
14442         \$(RM) $ac_dir/Makefile
14443 $ac_dir/Makefile: $ac_dir/Makefile.in Make.vars.in config.status $ac_alldeps
14444         @./config.status --file $ac_dir/Makefile:$ac_input && cd $ac_dir && \$(MAKE) depend
14445 depend: $ac_dir/__depend__
14446 .PHONY: $ac_dir/__depend__
14447 $ac_dir/__depend__: $ac_makedep dummy
14448         @./config.status --file $ac_dir/Makefile:$ac_input && cd $ac_dir && \$(MAKE) depend"
14449 }
14450
14451 wine_fn_pot_rules ()
14452 {
14453     ac_dir=$1
14454     ac_flags=$2
14455
14456     test "x$with_gettextpo" = xyes || return
14457
14458     if wine_fn_has_flag mc $ac_flags
14459     then
14460         wine_fn_append_file ALL_POT_FILES $ac_dir/msg.pot
14461         wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14462 "$ac_dir/msg.pot: $ac_dir/Makefile dummy
14463         @cd $ac_dir && \$(MAKE) msg.pot
14464 $ac_dir/msg.pot: tools/wmc include"
14465     fi
14466     if wine_fn_has_flag po $ac_flags
14467     then
14468         wine_fn_append_file ALL_POT_FILES $ac_dir/rsrc.pot
14469         wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14470 "$ac_dir/rsrc.pot: $ac_dir/Makefile dummy
14471         @cd $ac_dir && \$(MAKE) rsrc.pot
14472 $ac_dir/rsrc.pot: tools/wrc include"
14473     fi
14474 }
14475
14476 wine_fn_config_makefile ()
14477 {
14478     ac_dir=$1
14479     ac_enable=$2
14480     ac_flags=$3
14481     ac_rules=$4
14482     if eval test \"x\$"$ac_enable"\" = x"no"; then :
14483   return 0
14484 fi
14485
14486     wine_fn_all_dir_rules $ac_dir ${ac_rules:-Make.rules}
14487     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14488 "all: $ac_dir
14489 .PHONY: $ac_dir
14490 $ac_dir: $ac_dir/Makefile dummy
14491         @cd $ac_dir && \$(MAKE)"
14492
14493     wine_fn_has_flag install-lib $ac_flags || wine_fn_has_flag install-dev $ac_flags || return
14494
14495     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14496 ".PHONY: $ac_dir/__install__ $ac_dir/__uninstall__
14497 $ac_dir/__install__:: $ac_dir
14498         @cd $ac_dir && \$(MAKE) install
14499 $ac_dir/__uninstall__:: $ac_dir/Makefile
14500         @cd $ac_dir && \$(MAKE) uninstall
14501 install:: $ac_dir/__install__
14502 __uninstall__: $ac_dir/__uninstall__"
14503
14504     if wine_fn_has_flag install-lib $ac_flags
14505     then
14506         wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14507 ".PHONY: $ac_dir/__install-lib__
14508 $ac_dir/__install-lib__:: $ac_dir
14509         @cd $ac_dir && \$(MAKE) install-lib
14510 install-lib:: $ac_dir/__install-lib__"
14511     fi
14512
14513     if wine_fn_has_flag install-dev $ac_flags
14514     then
14515         wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14516 ".PHONY: $ac_dir/__install-dev
14517 $ac_dir/__install-dev__:: $ac_dir
14518         @cd $ac_dir && \$(MAKE) install-dev
14519 install-dev:: $ac_dir/__install-dev__"
14520     fi
14521 }
14522
14523 wine_fn_config_lib ()
14524 {
14525     ac_name=$1
14526     ac_flags=$2
14527     ac_dir=dlls/$ac_name
14528     wine_fn_config_makefile $ac_dir enable_$ac_name "$ac_flags" dlls/Makeimplib.rules
14529
14530     if wine_fn_has_flag install-dev $ac_flags
14531     then :
14532     else
14533         wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14534 ".PHONY: $ac_dir/__install__ $ac_dir/__uninstall__
14535 $ac_dir/__install__:: $ac_dir \$(DESTDIR)\$(dlldir)
14536         \$(INSTALL_DATA) $ac_dir/lib$ac_name.a \$(DESTDIR)\$(dlldir)/lib$ac_name.a
14537 $ac_dir/__uninstall__::
14538         \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_name.a
14539 install install-dev:: $ac_dir/__install__
14540 __uninstall__: $ac_dir/__uninstall__"
14541     fi
14542
14543     wine_fn_append_rule ALL_MAKEFILE_DEPENDS "__builddeps__: $ac_dir"
14544     wine_fn_append_rule ALL_MAKEFILE_DEPENDS "$ac_dir: tools/widl tools/winebuild tools/winegcc include"
14545 }
14546
14547 wine_fn_config_dll ()
14548 {
14549     ac_name=$1
14550     ac_dir=dlls/$ac_name
14551     ac_enable=$2
14552     ac_flags=$3
14553     ac_implib=${4:-$ac_name}
14554     ac_file=$ac_dir/lib$ac_implib
14555     ac_dll=$ac_name
14556     ac_deps="tools/widl tools/winebuild tools/winegcc include"
14557     ac_implibflags=""
14558
14559     case $ac_name in
14560       *16) ac_implibflags=" -m16" ;;
14561       *.*) ;;
14562       *)   ac_dll=$ac_dll.dll ;;
14563     esac
14564
14565     wine_fn_config_makefile $ac_dir $ac_enable "$ac_flags" dlls/Makedll.rules
14566
14567     if eval test \"x\$"$ac_enable"\" = x"no"; then :
14568                 test "$ac_enable" != enable_win16 || return 0
14569                wine_fn_has_flag implib $ac_flags && wine_fn_all_dir_rules $ac_dir dlls/Makedll.rules
14570 else
14571   wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14572 "$ac_dir: __builddeps__
14573 manpages htmlpages sgmlpages xmlpages:: $ac_dir/Makefile
14574         @cd $ac_dir && \$(MAKE) \$@"
14575
14576         if wine_fn_has_flag install-lib $ac_flags
14577         then :
14578         else
14579             wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14580 ".PHONY: $ac_dir/__install-lib__ $ac_dir/__uninstall__
14581 install install-lib:: $ac_dir/__install-lib__
14582 __uninstall__: $ac_dir/__uninstall__"
14583             if test -n "$DLLEXT"
14584             then
14585                 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14586 "$ac_dir/__install-lib__:: $ac_dir \$(DESTDIR)\$(dlldir) \$(DESTDIR)\$(fakedlldir)
14587         \$(INSTALL_PROGRAM) $ac_dir/$ac_dll$DLLEXT \$(DESTDIR)\$(dlldir)/$ac_dll$DLLEXT
14588         \$(INSTALL_DATA) $ac_dir/$ac_dll.fake \$(DESTDIR)\$(fakedlldir)/$ac_dll
14589 $ac_dir/__uninstall__::
14590         \$(RM) \$(DESTDIR)\$(dlldir)/$ac_dll$DLLEXT \$(DESTDIR)\$(fakedlldir)/$ac_dll"
14591             else
14592                 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14593 "$ac_dir/__install-lib__:: $ac_dir \$(DESTDIR)\$(dlldir)
14594         \$(INSTALL_PROGRAM) $ac_dir/$ac_dll \$(DESTDIR)\$(dlldir)/$ac_dll
14595 $ac_dir/__uninstall__::
14596         \$(RM) \$(DESTDIR)\$(dlldir)/$ac_dll"
14597             fi
14598         fi
14599
14600         wine_fn_pot_rules $ac_dir $ac_flags
14601 fi
14602
14603     if wine_fn_has_flag staticimplib $ac_flags
14604     then
14605         wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14606 "__builddeps__: $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT
14607 $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT $ac_file.cross.a: $ac_deps
14608 $ac_file.def: $ac_dir/$ac_name.spec $ac_dir/Makefile
14609         @cd $ac_dir && \$(MAKE) lib$ac_implib.def
14610 $ac_file.$STATIC_IMPLIBEXT: $ac_dir/Makefile dummy
14611         @cd $ac_dir && \$(MAKE) lib$ac_implib.$STATIC_IMPLIBEXT
14612 .PHONY: $ac_dir/__install-dev__ $ac_dir/__uninstall__
14613 $ac_dir/__install-dev__:: $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)
14614         \$(INSTALL_DATA) $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
14615 $ac_dir/__uninstall__::
14616         \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
14617 install install-dev:: $ac_dir/__install-dev__
14618 __uninstall__: $ac_dir/__uninstall__"
14619
14620         if test "$IMPLIBEXT" != "$STATIC_IMPLIBEXT"
14621         then
14622             wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14623 "$ac_dir/__install-dev__:: $ac_file.$STATIC_IMPLIBEXT \$(DESTDIR)\$(dlldir) __builddeps__
14624         \$(INSTALL_DATA) $ac_file.$STATIC_IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$STATIC_IMPLIBEXT
14625 $ac_dir/__uninstall__::
14626         \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$STATIC_IMPLIBEXT"
14627         fi
14628
14629         if test "x$CROSSTEST_DISABLE" = x
14630         then
14631             wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14632 "__builddeps__: $ac_file.cross.a
14633 $ac_file.cross.a: $ac_dir/Makefile dummy
14634         @cd $ac_dir && \$(MAKE) lib$ac_implib.cross.a"
14635         fi
14636
14637     elif wine_fn_has_flag implib $ac_flags
14638     then
14639         wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14640 "__builddeps__: $ac_file.$IMPLIBEXT
14641 $ac_file.def: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
14642         \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --def -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec
14643 $ac_file.a: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
14644         \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --implib -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec
14645 .PHONY: $ac_dir/__install-dev__ $ac_dir/__uninstall__
14646 $ac_dir/__install-dev__:: $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)
14647         \$(INSTALL_DATA) $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
14648 $ac_dir/__uninstall__::
14649         \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
14650 install install-dev:: $ac_dir/__install-dev__
14651 __uninstall__: $ac_dir/__uninstall__"
14652         if test "x$CROSSTEST_DISABLE" = x
14653         then
14654             wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14655 "__builddeps__: $ac_file.cross.a
14656 $ac_file.cross.a: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
14657         \$(WINEBUILD) \$(CROSSTARGET:%=-b %)$ac_implibflags -w --implib -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec"
14658         fi
14659
14660         if test "$ac_name" != "$ac_implib"
14661         then
14662             wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14663 "__builddeps__: dlls/lib$ac_implib.$IMPLIBEXT
14664 dlls/lib$ac_implib.$IMPLIBEXT: $ac_file.$IMPLIBEXT
14665         \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.$IMPLIBEXT \$@
14666 clean::
14667         \$(RM) dlls/lib$ac_implib.$IMPLIBEXT"
14668             if test "x$CROSSTEST_DISABLE" = x
14669             then
14670                 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14671 "__builddeps__: dlls/lib$ac_implib.cross.a
14672 dlls/lib$ac_implib.cross.a: $ac_file.cross.a
14673         \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.cross.a \$@"
14674             fi
14675         fi
14676     fi
14677 }
14678
14679 wine_fn_config_program ()
14680 {
14681     ac_name=$1
14682     ac_dir=programs/$ac_name
14683     ac_enable=$2
14684     ac_flags=$3
14685     ac_program=$ac_name
14686
14687     case $ac_name in
14688       *.*) ;;
14689       *)   ac_program=$ac_program.exe ;;
14690     esac
14691
14692     wine_fn_config_makefile $ac_dir $ac_enable "$ac_flags" programs/Makeprog.rules
14693
14694     if eval test \"x\$"$ac_enable"\" = x"no"; then :
14695
14696 else
14697   wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14698 "$ac_dir: __builddeps__"
14699
14700     wine_fn_pot_rules $ac_dir $ac_flags
14701
14702     wine_fn_has_flag install $ac_flags || return
14703     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14704 ".PHONY: $ac_dir/__install__ $ac_dir/__uninstall__
14705 install install-lib:: $ac_dir/__install__
14706 __uninstall__: $ac_dir/__uninstall__"
14707
14708     if test -n "$DLLEXT"
14709     then
14710         wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14711 "$ac_dir/__install__:: $ac_dir \$(DESTDIR)\$(dlldir) \$(DESTDIR)\$(fakedlldir)
14712         \$(INSTALL_PROGRAM) $ac_dir/$ac_program$DLLEXT \$(DESTDIR)\$(dlldir)/$ac_program$DLLEXT
14713         \$(INSTALL_DATA) $ac_dir/$ac_program.fake \$(DESTDIR)\$(fakedlldir)/$ac_program
14714 $ac_dir/__uninstall__::
14715         \$(RM) \$(DESTDIR)\$(dlldir)/$ac_program$DLLEXT \$(DESTDIR)\$(fakedlldir)/$ac_program"
14716
14717         if test "x$enable_tools" != xno && wine_fn_has_flag installbin $ac_flags
14718         then
14719             wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14720 "$ac_dir/__install__:: tools \$(DESTDIR)\$(bindir)
14721         \$(INSTALL_SCRIPT) tools/wineapploader \$(DESTDIR)\$(bindir)/$ac_name
14722 $ac_dir/__uninstall__::
14723         \$(RM) \$(DESTDIR)\$(bindir)/$ac_name"
14724         fi
14725     else
14726         wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14727 "$ac_dir/__install-lib__:: $ac_dir \$(DESTDIR)\$(dlldir)
14728         \$(INSTALL_PROGRAM) $ac_dir/$ac_program \$(DESTDIR)\$(dlldir)/$ac_program
14729 $ac_dir/__uninstall__::
14730         \$(RM) \$(DESTDIR)\$(dlldir)/$ac_program"
14731     fi
14732
14733     if test "x$enable_tools" != xno && wine_fn_has_flag manpage $ac_flags
14734     then
14735         wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14736 "$ac_dir/__install__:: $ac_dir \$(DESTDIR)\$(mandir)/man\$(prog_manext)
14737         \$(INSTALL_DATA) $ac_dir/$ac_name.man \$(DESTDIR)\$(mandir)/man\$(prog_manext)/$ac_name.\$(prog_manext)
14738 $ac_dir/__uninstall__::
14739         \$(RM) \$(DESTDIR)\$(mandir)/man\$(prog_manext)/$ac_name.\$(prog_manext)"
14740     fi
14741 fi
14742 }
14743
14744 wine_fn_config_test ()
14745 {
14746     ac_dir=$1
14747     ac_name=$2
14748     ac_flags=$3
14749     wine_fn_append_file ALL_TEST_RESOURCES $ac_name.res
14750     wine_fn_all_dir_rules $ac_dir Maketest.rules
14751
14752     if test "x$enable_tests" = xno; then :
14753
14754 else
14755   wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14756 "all: $ac_dir
14757 .PHONY: $ac_dir
14758 $ac_dir: $ac_dir/Makefile programs/winetest/Makefile __builddeps__ dummy
14759         @cd $ac_dir && \$(MAKE)
14760 programs/winetest: $ac_dir
14761 check test: $ac_dir/__test__
14762 .PHONY: $ac_dir/__test__
14763 $ac_dir/__test__: dummy
14764         @cd $ac_dir && \$(MAKE) test
14765 testclean::
14766         \$(RM) $ac_dir/*.ok"
14767
14768         if test "x$CROSSTEST_DISABLE" = x
14769         then
14770             wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14771 "crosstest: $ac_dir/__crosstest__
14772 .PHONY: $ac_dir/__crosstest__
14773 $ac_dir/__crosstest__: $ac_dir/Makefile __builddeps__ dummy
14774         @cd $ac_dir && \$(MAKE) crosstest"
14775         fi
14776 fi
14777 }
14778
14779 wine_fn_config_tool ()
14780 {
14781     ac_dir=$1
14782     ac_flags=$2
14783     if test "x$enable_tools" = xno; then :
14784   return 0
14785 fi
14786
14787     wine_fn_config_makefile $ac_dir enable_tools $ac_flags
14788
14789     wine_fn_append_rule ALL_MAKEFILE_DEPENDS "__tooldeps__: $ac_dir"
14790     wine_fn_append_rule ALL_MAKEFILE_DEPENDS "$ac_dir: libs/port"
14791     case $ac_dir in
14792       tools/winebuild) wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(WINEBUILD): $ac_dir" ;;
14793     esac
14794 }
14795
14796 wine_fn_config_makerules ()
14797 {
14798     ac_rules=$1
14799     ac_deps=$2
14800     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14801 "$ac_rules: $ac_rules.in $ac_deps config.status
14802         @./config.status $ac_rules
14803 distclean::
14804         \$(RM) $ac_rules"
14805 }
14806
14807 wine_fn_config_symlink ()
14808 {
14809     ac_link=$1
14810     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14811 "$ac_link:
14812         @./config.status $ac_link
14813 distclean::
14814         \$(RM) $ac_link"
14815 }
14816
14817 if test "x$CROSSTEST_DISABLE" != x
14818 then
14819     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14820 "crosstest:
14821         @echo \"crosstest is not supported (mingw not installed?)\" && false"
14822 fi
14823 ac_config_links="$ac_config_links dlls/shell32/AUTHORS:AUTHORS"
14824 wine_fn_config_symlink dlls/shell32/AUTHORS
14825 ac_config_links="$ac_config_links dlls/wineps.drv/generic.ppd:dlls/wineps.drv/generic.ppd"
14826 test "$srcdir" = "." || wine_fn_config_symlink dlls/wineps.drv/generic.ppd
14827 if test "x$enable_fonts" != xno; then
14828 ac_config_links="$ac_config_links fonts/marlett.ttf:fonts/marlett.ttf"
14829 test "$srcdir" = "." || wine_fn_config_symlink fonts/marlett.ttf
14830 fi
14831 if test "x$enable_fonts" != xno; then
14832 ac_config_links="$ac_config_links fonts/symbol.ttf:fonts/symbol.ttf"
14833 test "$srcdir" = "." || wine_fn_config_symlink fonts/symbol.ttf
14834 fi
14835 if test "x$enable_fonts" != xno; then
14836 ac_config_links="$ac_config_links fonts/tahoma.ttf:fonts/tahoma.ttf"
14837 test "$srcdir" = "." || wine_fn_config_symlink fonts/tahoma.ttf
14838 fi
14839 if test "x$enable_fonts" != xno; then
14840 ac_config_links="$ac_config_links fonts/tahomabd.ttf:fonts/tahomabd.ttf"
14841 test "$srcdir" = "." || wine_fn_config_symlink fonts/tahomabd.ttf
14842 fi
14843 ac_config_links="$ac_config_links po/LINGUAS:po/LINGUAS"
14844 test "$srcdir" = "." || wine_fn_config_symlink po/LINGUAS
14845 if test "x$enable_tools" != xno; then
14846 ac_config_links="$ac_config_links tools/l_intl.nls:tools/l_intl.nls"
14847 test "$srcdir" = "." || wine_fn_config_symlink tools/l_intl.nls
14848 fi
14849 ac_config_links="$ac_config_links wine:tools/winewrapper"
14850 wine_fn_config_symlink wine
14851 if test "x$enable_win64" != xno; then
14852 ac_config_links="$ac_config_links wine64:tools/winewrapper"
14853 wine_fn_config_symlink wine64
14854 fi
14855
14856 ac_config_commands="$ac_config_commands dlls/gdi32/dibdrv"
14857
14858 ac_config_commands="$ac_config_commands dlls/gdi32/enhmfdrv"
14859
14860 ac_config_commands="$ac_config_commands dlls/gdi32/mfdrv"
14861
14862 ac_config_commands="$ac_config_commands dlls/kernel32/nls"
14863
14864 ac_config_commands="$ac_config_commands dlls/user32/resources"
14865
14866 ac_config_commands="$ac_config_commands dlls/wineps.drv/data"
14867
14868 ac_config_commands="$ac_config_commands include/wine"
14869
14870
14871 wine_fn_config_makerules Make.rules
14872 MAKE_RULES=Make.rules
14873 ac_config_files="$ac_config_files Make.rules"
14874
14875 wine_fn_config_makerules Maketest.rules Make.rules
14876 MAKE_TEST_RULES=Maketest.rules
14877 ac_config_files="$ac_config_files Maketest.rules"
14878
14879 wine_fn_config_makerules dlls/Makedll.rules Make.rules
14880 MAKE_DLL_RULES=dlls/Makedll.rules
14881 ac_config_files="$ac_config_files dlls/Makedll.rules"
14882
14883 wine_fn_config_makerules dlls/Makeimplib.rules Make.rules
14884 MAKE_IMPLIB_RULES=dlls/Makeimplib.rules
14885 ac_config_files="$ac_config_files dlls/Makeimplib.rules"
14886
14887 wine_fn_config_makerules programs/Makeprog.rules Make.rules
14888 MAKE_PROG_RULES=programs/Makeprog.rules
14889 ac_config_files="$ac_config_files programs/Makeprog.rules"
14890
14891
14892 wine_fn_config_dll acledit enable_acledit
14893 wine_fn_config_dll aclui enable_aclui implib
14894 wine_fn_config_dll activeds enable_activeds implib
14895 wine_fn_config_dll actxprxy enable_actxprxy
14896 wine_fn_config_lib adsiid
14897 wine_fn_config_dll advapi32 enable_advapi32 implib
14898 wine_fn_config_test dlls/advapi32/tests advapi32_test
14899 wine_fn_config_dll advpack enable_advpack implib
14900 wine_fn_config_test dlls/advpack/tests advpack_test
14901 wine_fn_config_dll amstream enable_amstream
14902 wine_fn_config_test dlls/amstream/tests amstream_test
14903 wine_fn_config_dll apphelp enable_apphelp
14904 wine_fn_config_dll appwiz.cpl enable_appwiz_cpl po
14905 wine_fn_config_dll atl enable_atl implib
14906 wine_fn_config_test dlls/atl/tests atl_test
14907 wine_fn_config_dll authz enable_authz
14908 wine_fn_config_dll avicap32 enable_avicap32 implib
14909 wine_fn_config_dll avifil32 enable_avifil32 implib,po
14910 wine_fn_config_test dlls/avifil32/tests avifil32_test
14911 wine_fn_config_dll avifile.dll16 enable_win16
14912 wine_fn_config_dll avrt enable_avrt implib
14913 wine_fn_config_dll bcrypt enable_bcrypt
14914 wine_fn_config_dll browseui enable_browseui po
14915 wine_fn_config_test dlls/browseui/tests browseui_test
14916 wine_fn_config_dll cabinet enable_cabinet implib
14917 wine_fn_config_test dlls/cabinet/tests cabinet_test
14918 wine_fn_config_dll capi2032 enable_capi2032 implib
14919 wine_fn_config_dll cards enable_cards implib
14920 wine_fn_config_dll cfgmgr32 enable_cfgmgr32 implib
14921 wine_fn_config_dll clusapi enable_clusapi implib
14922 wine_fn_config_dll comcat enable_comcat
14923 wine_fn_config_test dlls/comcat/tests comcat_test
14924 wine_fn_config_dll comctl32 enable_comctl32 implib,po
14925 wine_fn_config_test dlls/comctl32/tests comctl32_test
14926 wine_fn_config_dll comdlg32 enable_comdlg32 implib,po
14927 wine_fn_config_test dlls/comdlg32/tests comdlg32_test
14928 wine_fn_config_dll comm.drv16 enable_win16
14929 wine_fn_config_dll commdlg.dll16 enable_win16
14930 wine_fn_config_dll compobj.dll16 enable_win16
14931 wine_fn_config_dll compstui enable_compstui implib
14932 wine_fn_config_dll credui enable_credui implib,po
14933 wine_fn_config_test dlls/credui/tests credui_test
14934 wine_fn_config_dll crtdll enable_crtdll implib
14935 wine_fn_config_dll crypt32 enable_crypt32 implib,po
14936 wine_fn_config_test dlls/crypt32/tests crypt32_test
14937 wine_fn_config_dll cryptdlg enable_cryptdlg po
14938 wine_fn_config_dll cryptdll enable_cryptdll implib
14939 wine_fn_config_dll cryptnet enable_cryptnet implib
14940 wine_fn_config_test dlls/cryptnet/tests cryptnet_test
14941 wine_fn_config_dll cryptui enable_cryptui implib,po
14942 wine_fn_config_test dlls/cryptui/tests cryptui_test
14943 wine_fn_config_dll ctapi32 enable_ctapi32
14944 wine_fn_config_dll ctl3d.dll16 enable_win16
14945 wine_fn_config_dll ctl3d32 enable_ctl3d32 implib
14946 wine_fn_config_dll ctl3dv2.dll16 enable_win16
14947 wine_fn_config_dll d3d10 enable_d3d10 implib
14948 wine_fn_config_test dlls/d3d10/tests d3d10_test
14949 wine_fn_config_dll d3d10core enable_d3d10core implib
14950 wine_fn_config_test dlls/d3d10core/tests d3d10core_test
14951 wine_fn_config_dll d3d8 enable_d3d8 implib
14952 wine_fn_config_test dlls/d3d8/tests d3d8_test
14953 wine_fn_config_dll d3d9 enable_d3d9 implib
14954 wine_fn_config_test dlls/d3d9/tests d3d9_test
14955 wine_fn_config_dll d3dcompiler_33 enable_d3dcompiler_33
14956 wine_fn_config_dll d3dcompiler_34 enable_d3dcompiler_34
14957 wine_fn_config_dll d3dcompiler_35 enable_d3dcompiler_35
14958 wine_fn_config_dll d3dcompiler_36 enable_d3dcompiler_36
14959 wine_fn_config_dll d3dcompiler_37 enable_d3dcompiler_37
14960 wine_fn_config_dll d3dcompiler_38 enable_d3dcompiler_38
14961 wine_fn_config_dll d3dcompiler_39 enable_d3dcompiler_39
14962 wine_fn_config_dll d3dcompiler_40 enable_d3dcompiler_40
14963 wine_fn_config_dll d3dcompiler_41 enable_d3dcompiler_41
14964 wine_fn_config_dll d3dcompiler_42 enable_d3dcompiler_42
14965 wine_fn_config_dll d3dcompiler_43 enable_d3dcompiler_43 implib d3dcompiler
14966 wine_fn_config_test dlls/d3dcompiler_43/tests d3dcompiler_43_test
14967 wine_fn_config_dll d3dim enable_d3dim implib
14968 wine_fn_config_dll d3drm enable_d3drm implib
14969 wine_fn_config_test dlls/d3drm/tests d3drm_test
14970 wine_fn_config_dll d3dx10_33 enable_d3dx10_33
14971 wine_fn_config_dll d3dx10_34 enable_d3dx10_34
14972 wine_fn_config_dll d3dx10_35 enable_d3dx10_35
14973 wine_fn_config_dll d3dx10_36 enable_d3dx10_36
14974 wine_fn_config_dll d3dx10_37 enable_d3dx10_37
14975 wine_fn_config_dll d3dx10_38 enable_d3dx10_38
14976 wine_fn_config_dll d3dx10_39 enable_d3dx10_39
14977 wine_fn_config_dll d3dx10_40 enable_d3dx10_40
14978 wine_fn_config_dll d3dx10_41 enable_d3dx10_41
14979 wine_fn_config_dll d3dx10_42 enable_d3dx10_42
14980 wine_fn_config_dll d3dx10_43 enable_d3dx10_43
14981 wine_fn_config_dll d3dx9_24 enable_d3dx9_24
14982 wine_fn_config_dll d3dx9_25 enable_d3dx9_25
14983 wine_fn_config_dll d3dx9_26 enable_d3dx9_26
14984 wine_fn_config_dll d3dx9_27 enable_d3dx9_27
14985 wine_fn_config_dll d3dx9_28 enable_d3dx9_28
14986 wine_fn_config_dll d3dx9_29 enable_d3dx9_29
14987 wine_fn_config_dll d3dx9_30 enable_d3dx9_30
14988 wine_fn_config_dll d3dx9_31 enable_d3dx9_31
14989 wine_fn_config_dll d3dx9_32 enable_d3dx9_32
14990 wine_fn_config_dll d3dx9_33 enable_d3dx9_33
14991 wine_fn_config_dll d3dx9_34 enable_d3dx9_34
14992 wine_fn_config_dll d3dx9_35 enable_d3dx9_35
14993 wine_fn_config_dll d3dx9_36 enable_d3dx9_36 implib d3dx9
14994 wine_fn_config_test dlls/d3dx9_36/tests d3dx9_36_test
14995 wine_fn_config_dll d3dx9_37 enable_d3dx9_37
14996 wine_fn_config_dll d3dx9_38 enable_d3dx9_38
14997 wine_fn_config_dll d3dx9_39 enable_d3dx9_39
14998 wine_fn_config_dll d3dx9_40 enable_d3dx9_40
14999 wine_fn_config_dll d3dx9_41 enable_d3dx9_41
15000 wine_fn_config_dll d3dx9_42 enable_d3dx9_42
15001 wine_fn_config_dll d3dx9_43 enable_d3dx9_43
15002 wine_fn_config_dll d3dxof enable_d3dxof implib
15003 wine_fn_config_test dlls/d3dxof/tests d3dxof_test
15004 wine_fn_config_dll dbgeng enable_dbgeng implib
15005 wine_fn_config_dll dbghelp enable_dbghelp implib
15006 wine_fn_config_dll dciman32 enable_dciman32 implib
15007 wine_fn_config_dll ddeml.dll16 enable_win16
15008 wine_fn_config_dll ddraw enable_ddraw implib
15009 wine_fn_config_test dlls/ddraw/tests ddraw_test
15010 wine_fn_config_dll ddrawex enable_ddrawex
15011 wine_fn_config_test dlls/ddrawex/tests ddrawex_test
15012 wine_fn_config_dll devenum enable_devenum po
15013 wine_fn_config_dll dhcpcsvc enable_dhcpcsvc
15014 wine_fn_config_dll dinput enable_dinput implib,po,staticimplib
15015 wine_fn_config_test dlls/dinput/tests dinput_test
15016 wine_fn_config_dll dinput8 enable_dinput8 implib
15017 wine_fn_config_test dlls/dinput8/tests dinput8_test
15018 wine_fn_config_dll dispdib.dll16 enable_win16
15019 wine_fn_config_dll dispex enable_dispex
15020 wine_fn_config_test dlls/dispex/tests dispex_test
15021 wine_fn_config_dll display.drv16 enable_win16
15022 wine_fn_config_dll dmband enable_dmband
15023 wine_fn_config_dll dmcompos enable_dmcompos
15024 wine_fn_config_dll dmime enable_dmime
15025 wine_fn_config_test dlls/dmime/tests dmime_test
15026 wine_fn_config_dll dmloader enable_dmloader
15027 wine_fn_config_test dlls/dmloader/tests dmloader_test
15028 wine_fn_config_dll dmscript enable_dmscript
15029 wine_fn_config_dll dmstyle enable_dmstyle
15030 wine_fn_config_dll dmsynth enable_dmsynth
15031 wine_fn_config_dll dmusic enable_dmusic
15032 wine_fn_config_dll dmusic32 enable_dmusic32 implib
15033 wine_fn_config_dll dnsapi enable_dnsapi implib
15034 wine_fn_config_test dlls/dnsapi/tests dnsapi_test
15035 wine_fn_config_dll dplay enable_dplay implib
15036 wine_fn_config_dll dplayx enable_dplayx implib
15037 wine_fn_config_test dlls/dplayx/tests dplayx_test
15038 wine_fn_config_dll dpnaddr enable_dpnaddr
15039 wine_fn_config_dll dpnet enable_dpnet implib
15040 wine_fn_config_test dlls/dpnet/tests dpnet_test
15041 wine_fn_config_dll dpnhpast enable_dpnhpast
15042 wine_fn_config_dll dpnlobby enable_dpnlobby
15043 wine_fn_config_dll dpwsockx enable_dpwsockx
15044 wine_fn_config_dll drmclien enable_drmclien
15045 wine_fn_config_dll dsound enable_dsound implib
15046 wine_fn_config_test dlls/dsound/tests dsound_test
15047 wine_fn_config_dll dssenh enable_dssenh
15048 wine_fn_config_dll dswave enable_dswave
15049 wine_fn_config_dll dwmapi enable_dwmapi implib
15050 wine_fn_config_dll dxdiagn enable_dxdiagn po
15051 wine_fn_config_test dlls/dxdiagn/tests dxdiagn_test
15052 wine_fn_config_lib dxerr8
15053 wine_fn_config_lib dxerr9
15054 wine_fn_config_dll dxgi enable_dxgi implib
15055 wine_fn_config_test dlls/dxgi/tests dxgi_test
15056 wine_fn_config_lib dxguid
15057 wine_fn_config_dll explorerframe enable_explorerframe
15058 wine_fn_config_test dlls/explorerframe/tests explorerframe_test
15059 wine_fn_config_dll faultrep enable_faultrep implib
15060 wine_fn_config_test dlls/faultrep/tests faultrep_test
15061 wine_fn_config_dll fltlib enable_fltlib
15062 wine_fn_config_dll fusion enable_fusion
15063 wine_fn_config_test dlls/fusion/tests fusion_test
15064 wine_fn_config_dll fwpuclnt enable_fwpuclnt
15065 wine_fn_config_dll gameux enable_gameux
15066 wine_fn_config_test dlls/gameux/tests gameux_test
15067 wine_fn_config_dll gdi.exe16 enable_win16
15068 wine_fn_config_dll gdi32 enable_gdi32 implib,po
15069 wine_fn_config_test dlls/gdi32/tests gdi32_test
15070 wine_fn_config_dll gdiplus enable_gdiplus implib
15071 wine_fn_config_test dlls/gdiplus/tests gdiplus_test
15072 wine_fn_config_dll glu32 enable_glu32 implib
15073 wine_fn_config_dll gphoto2.ds enable_gphoto2_ds po
15074 wine_fn_config_dll gpkcsp enable_gpkcsp
15075 wine_fn_config_dll hal enable_hal
15076 wine_fn_config_dll hhctrl.ocx enable_hhctrl_ocx po
15077 wine_fn_config_dll hid enable_hid implib
15078 wine_fn_config_dll hlink enable_hlink implib
15079 wine_fn_config_test dlls/hlink/tests hlink_test
15080 wine_fn_config_dll hnetcfg enable_hnetcfg
15081 wine_fn_config_dll httpapi enable_httpapi
15082 wine_fn_config_dll iccvid enable_iccvid po
15083 wine_fn_config_dll icmp enable_icmp
15084 wine_fn_config_dll ieframe enable_ieframe implib,po
15085 wine_fn_config_test dlls/ieframe/tests ieframe_test
15086 wine_fn_config_dll ifsmgr.vxd enable_win16
15087 wine_fn_config_dll imaadp32.acm enable_imaadp32_acm
15088 wine_fn_config_dll imagehlp enable_imagehlp implib
15089 wine_fn_config_test dlls/imagehlp/tests imagehlp_test
15090 wine_fn_config_dll imm.dll16 enable_win16
15091 wine_fn_config_dll imm32 enable_imm32 implib
15092 wine_fn_config_test dlls/imm32/tests imm32_test
15093 wine_fn_config_dll inetcomm enable_inetcomm implib
15094 wine_fn_config_test dlls/inetcomm/tests inetcomm_test
15095 wine_fn_config_dll inetcpl.cpl enable_inetcpl_cpl po
15096 wine_fn_config_dll inetmib1 enable_inetmib1
15097 wine_fn_config_test dlls/inetmib1/tests inetmib1_test
15098 wine_fn_config_dll infosoft enable_infosoft
15099 wine_fn_config_test dlls/infosoft/tests infosoft_test
15100 wine_fn_config_dll initpki enable_initpki
15101 wine_fn_config_dll inkobj enable_inkobj
15102 wine_fn_config_dll inseng enable_inseng
15103 wine_fn_config_dll iphlpapi enable_iphlpapi implib
15104 wine_fn_config_test dlls/iphlpapi/tests iphlpapi_test
15105 wine_fn_config_dll itircl enable_itircl
15106 wine_fn_config_dll itss enable_itss
15107 wine_fn_config_test dlls/itss/tests itss_test
15108 wine_fn_config_dll jscript enable_jscript po
15109 wine_fn_config_test dlls/jscript/tests jscript_test
15110 wine_fn_config_dll kernel32 enable_kernel32 implib,mc
15111 wine_fn_config_test dlls/kernel32/tests kernel32_test
15112 wine_fn_config_dll keyboard.drv16 enable_win16
15113 wine_fn_config_dll krnl386.exe16 enable_win16 implib kernel
15114 wine_fn_config_dll ktmw32 enable_ktmw32
15115 wine_fn_config_dll loadperf enable_loadperf implib
15116 wine_fn_config_dll localspl enable_localspl po
15117 wine_fn_config_test dlls/localspl/tests localspl_test
15118 wine_fn_config_dll localui enable_localui po
15119 wine_fn_config_test dlls/localui/tests localui_test
15120 wine_fn_config_dll lz32 enable_lz32 implib
15121 wine_fn_config_test dlls/lz32/tests lz32_test
15122 wine_fn_config_dll lzexpand.dll16 enable_win16
15123 wine_fn_config_dll mapi32 enable_mapi32 implib,po
15124 wine_fn_config_test dlls/mapi32/tests mapi32_test
15125 wine_fn_config_dll mapistub enable_mapistub
15126 wine_fn_config_dll mciavi32 enable_mciavi32
15127 wine_fn_config_dll mcicda enable_mcicda
15128 wine_fn_config_dll mciqtz32 enable_mciqtz32
15129 wine_fn_config_dll mciseq enable_mciseq
15130 wine_fn_config_dll mciwave enable_mciwave
15131 wine_fn_config_dll midimap enable_midimap
15132 wine_fn_config_dll mlang enable_mlang implib
15133 wine_fn_config_test dlls/mlang/tests mlang_test
15134 wine_fn_config_dll mmcndmgr enable_mmcndmgr
15135 wine_fn_config_dll mmdevapi enable_mmdevapi
15136 wine_fn_config_test dlls/mmdevapi/tests mmdevapi_test
15137 wine_fn_config_dll mmdevldr.vxd enable_win16
15138 wine_fn_config_dll mmsystem.dll16 enable_win16
15139 wine_fn_config_dll monodebg.vxd enable_win16
15140 wine_fn_config_dll mountmgr.sys enable_mountmgr_sys
15141 wine_fn_config_dll mouse.drv16 enable_win16
15142 wine_fn_config_dll mpr enable_mpr implib,po
15143 wine_fn_config_dll mprapi enable_mprapi implib
15144 wine_fn_config_dll msacm.dll16 enable_win16
15145 wine_fn_config_dll msacm32.drv enable_msacm32_drv
15146 wine_fn_config_dll msacm32 enable_msacm32 implib,po
15147 wine_fn_config_test dlls/msacm32/tests msacm32_test
15148 wine_fn_config_dll msadp32.acm enable_msadp32_acm
15149 wine_fn_config_dll mscat32 enable_mscat32
15150 wine_fn_config_dll mscms enable_mscms implib
15151 wine_fn_config_test dlls/mscms/tests mscms_test
15152 wine_fn_config_dll mscoree enable_mscoree
15153 wine_fn_config_test dlls/mscoree/tests mscoree_test
15154 wine_fn_config_dll msctf enable_msctf
15155 wine_fn_config_test dlls/msctf/tests msctf_test
15156 wine_fn_config_dll msdaps enable_msdaps
15157 wine_fn_config_dll msdmo enable_msdmo implib
15158 wine_fn_config_dll msftedit enable_msftedit
15159 wine_fn_config_dll msg711.acm enable_msg711_acm
15160 wine_fn_config_dll msgsm32.acm enable_msgsm32_acm
15161 wine_fn_config_dll mshtml.tlb enable_mshtml_tlb
15162 wine_fn_config_dll mshtml enable_mshtml implib,po
15163 wine_fn_config_test dlls/mshtml/tests mshtml_test
15164 wine_fn_config_dll msi enable_msi implib,po
15165 wine_fn_config_test dlls/msi/tests msi_test
15166 wine_fn_config_dll msimg32 enable_msimg32 implib
15167 wine_fn_config_dll msimsg enable_msimsg
15168 wine_fn_config_dll msimtf enable_msimtf
15169 wine_fn_config_dll msisip enable_msisip
15170 wine_fn_config_dll msisys.ocx enable_msisys_ocx
15171 wine_fn_config_dll msnet32 enable_msnet32
15172 wine_fn_config_dll mspatcha enable_mspatcha
15173 wine_fn_config_dll msrle32 enable_msrle32 po
15174 wine_fn_config_dll mssign32 enable_mssign32
15175 wine_fn_config_dll mssip32 enable_mssip32
15176 wine_fn_config_dll mstask enable_mstask
15177 wine_fn_config_test dlls/mstask/tests mstask_test
15178 wine_fn_config_dll msvcirt enable_msvcirt
15179 wine_fn_config_dll msvcp100 enable_msvcp100
15180 wine_fn_config_dll msvcp60 enable_msvcp60
15181 wine_fn_config_dll msvcp70 enable_msvcp70
15182 wine_fn_config_dll msvcp71 enable_msvcp71
15183 wine_fn_config_dll msvcp80 enable_msvcp80
15184 wine_fn_config_dll msvcp90 enable_msvcp90
15185 wine_fn_config_test dlls/msvcp90/tests msvcp90_test
15186 wine_fn_config_dll msvcr100 enable_msvcr100
15187 wine_fn_config_dll msvcr70 enable_msvcr70 implib
15188 wine_fn_config_dll msvcr71 enable_msvcr71 implib
15189 wine_fn_config_dll msvcr80 enable_msvcr80
15190 wine_fn_config_dll msvcr90 enable_msvcr90
15191 wine_fn_config_test dlls/msvcr90/tests msvcr90_test
15192 wine_fn_config_dll msvcrt enable_msvcrt implib
15193 wine_fn_config_test dlls/msvcrt/tests msvcrt_test
15194 wine_fn_config_dll msvcrt20 enable_msvcrt20 implib
15195 wine_fn_config_dll msvcrt40 enable_msvcrt40 implib
15196 wine_fn_config_dll msvcrtd enable_msvcrtd implib
15197 wine_fn_config_test dlls/msvcrtd/tests msvcrtd_test
15198 wine_fn_config_dll msvfw32 enable_msvfw32 implib,po
15199 wine_fn_config_test dlls/msvfw32/tests msvfw32_test
15200 wine_fn_config_dll msvidc32 enable_msvidc32 po
15201 wine_fn_config_dll msvideo.dll16 enable_win16
15202 wine_fn_config_dll mswsock enable_mswsock implib
15203 wine_fn_config_dll msxml enable_msxml
15204 wine_fn_config_dll msxml2 enable_msxml2
15205 wine_fn_config_dll msxml3 enable_msxml3
15206 wine_fn_config_test dlls/msxml3/tests msxml3_test
15207 wine_fn_config_dll msxml4 enable_msxml4
15208 wine_fn_config_dll msxml6 enable_msxml6
15209 wine_fn_config_dll nddeapi enable_nddeapi implib
15210 wine_fn_config_dll netapi32 enable_netapi32 implib
15211 wine_fn_config_test dlls/netapi32/tests netapi32_test
15212 wine_fn_config_dll newdev enable_newdev implib
15213 wine_fn_config_dll normaliz enable_normaliz implib
15214 wine_fn_config_dll npmshtml enable_npmshtml
15215 wine_fn_config_dll ntdll enable_ntdll implib
15216 wine_fn_config_test dlls/ntdll/tests ntdll_test
15217 wine_fn_config_dll ntdsapi enable_ntdsapi implib
15218 wine_fn_config_test dlls/ntdsapi/tests ntdsapi_test
15219 wine_fn_config_dll ntoskrnl.exe enable_ntoskrnl_exe implib
15220 wine_fn_config_dll ntprint enable_ntprint
15221 wine_fn_config_test dlls/ntprint/tests ntprint_test
15222 wine_fn_config_dll objsel enable_objsel
15223 wine_fn_config_dll odbc32 enable_odbc32 implib
15224 wine_fn_config_dll odbccp32 enable_odbccp32 implib
15225 wine_fn_config_test dlls/odbccp32/tests odbccp32_test
15226 wine_fn_config_dll ole2.dll16 enable_win16
15227 wine_fn_config_dll ole2conv.dll16 enable_win16
15228 wine_fn_config_dll ole2disp.dll16 enable_win16
15229 wine_fn_config_dll ole2nls.dll16 enable_win16
15230 wine_fn_config_dll ole2prox.dll16 enable_win16
15231 wine_fn_config_dll ole2thk.dll16 enable_win16
15232 wine_fn_config_dll ole32 enable_ole32 implib
15233 wine_fn_config_test dlls/ole32/tests ole32_test
15234 wine_fn_config_dll oleacc enable_oleacc implib,po
15235 wine_fn_config_test dlls/oleacc/tests oleacc_test
15236 wine_fn_config_dll oleaut32 enable_oleaut32 implib,po
15237 wine_fn_config_test dlls/oleaut32/tests oleaut32_test
15238 wine_fn_config_dll olecli.dll16 enable_win16
15239 wine_fn_config_dll olecli32 enable_olecli32 implib
15240 wine_fn_config_dll oledb32 enable_oledb32
15241 wine_fn_config_test dlls/oledb32/tests oledb32_test
15242 wine_fn_config_dll oledlg enable_oledlg implib,po
15243 wine_fn_config_dll olepro32 enable_olepro32 implib
15244 wine_fn_config_dll olesvr.dll16 enable_win16
15245 wine_fn_config_dll olesvr32 enable_olesvr32 implib
15246 wine_fn_config_dll olethk32 enable_olethk32
15247 wine_fn_config_dll openal32 enable_openal32
15248 wine_fn_config_dll opencl enable_opencl
15249 wine_fn_config_dll opengl32 enable_opengl32 implib
15250 wine_fn_config_test dlls/opengl32/tests opengl32_test
15251 wine_fn_config_dll pdh enable_pdh implib
15252 wine_fn_config_test dlls/pdh/tests pdh_test
15253 wine_fn_config_dll photometadatahandler enable_photometadatahandler
15254 wine_fn_config_dll pidgen enable_pidgen
15255 wine_fn_config_dll powrprof enable_powrprof implib
15256 wine_fn_config_dll printui enable_printui
15257 wine_fn_config_dll propsys enable_propsys implib
15258 wine_fn_config_test dlls/propsys/tests propsys_test
15259 wine_fn_config_dll psapi enable_psapi implib
15260 wine_fn_config_test dlls/psapi/tests psapi_test
15261 wine_fn_config_dll pstorec enable_pstorec
15262 wine_fn_config_dll qcap enable_qcap
15263 wine_fn_config_dll qedit enable_qedit
15264 wine_fn_config_test dlls/qedit/tests qedit_test
15265 wine_fn_config_dll qmgr enable_qmgr
15266 wine_fn_config_test dlls/qmgr/tests qmgr_test
15267 wine_fn_config_dll qmgrprxy enable_qmgrprxy
15268 wine_fn_config_dll quartz enable_quartz implib
15269 wine_fn_config_test dlls/quartz/tests quartz_test
15270 wine_fn_config_dll query enable_query
15271 wine_fn_config_dll rasapi16.dll16 enable_win16
15272 wine_fn_config_dll rasapi32 enable_rasapi32 implib
15273 wine_fn_config_test dlls/rasapi32/tests rasapi32_test
15274 wine_fn_config_dll rasdlg enable_rasdlg implib
15275 wine_fn_config_dll regapi enable_regapi
15276 wine_fn_config_dll resutils enable_resutils implib
15277 wine_fn_config_dll riched20 enable_riched20 implib
15278 wine_fn_config_test dlls/riched20/tests riched20_test
15279 wine_fn_config_dll riched32 enable_riched32
15280 wine_fn_config_test dlls/riched32/tests riched32_test
15281 wine_fn_config_dll rpcrt4 enable_rpcrt4 implib
15282 wine_fn_config_test dlls/rpcrt4/tests rpcrt4_test
15283 wine_fn_config_dll rsabase enable_rsabase
15284 wine_fn_config_dll rsaenh enable_rsaenh implib
15285 wine_fn_config_test dlls/rsaenh/tests rsaenh_test
15286 wine_fn_config_dll rstrtmgr enable_rstrtmgr
15287 wine_fn_config_dll rtutils enable_rtutils implib
15288 wine_fn_config_dll samlib enable_samlib
15289 wine_fn_config_dll sane.ds enable_sane_ds po
15290 wine_fn_config_dll scarddlg enable_scarddlg
15291 wine_fn_config_dll sccbase enable_sccbase
15292 wine_fn_config_dll schannel enable_schannel
15293 wine_fn_config_test dlls/schannel/tests schannel_test
15294 wine_fn_config_dll scrrun enable_scrrun
15295 wine_fn_config_dll secur32 enable_secur32 implib
15296 wine_fn_config_test dlls/secur32/tests secur32_test
15297 wine_fn_config_dll security enable_security
15298 wine_fn_config_dll sensapi enable_sensapi implib
15299 wine_fn_config_dll serialui enable_serialui implib,po
15300 wine_fn_config_test dlls/serialui/tests serialui_test
15301 wine_fn_config_dll setupapi enable_setupapi implib,po
15302 wine_fn_config_test dlls/setupapi/tests setupapi_test
15303 wine_fn_config_dll setupx.dll16 enable_win16
15304 wine_fn_config_dll sfc enable_sfc implib
15305 wine_fn_config_dll sfc_os enable_sfc_os implib
15306 wine_fn_config_dll shdoclc enable_shdoclc po
15307 wine_fn_config_dll shdocvw enable_shdocvw implib
15308 wine_fn_config_test dlls/shdocvw/tests shdocvw_test
15309 wine_fn_config_dll shell.dll16 enable_win16
15310 wine_fn_config_dll shell32 enable_shell32 implib,po
15311 wine_fn_config_test dlls/shell32/tests shell32_test
15312 wine_fn_config_dll shfolder enable_shfolder implib
15313 wine_fn_config_dll shlwapi enable_shlwapi implib,po
15314 wine_fn_config_test dlls/shlwapi/tests shlwapi_test
15315 wine_fn_config_dll slbcsp enable_slbcsp
15316 wine_fn_config_dll slc enable_slc implib
15317 wine_fn_config_dll snmpapi enable_snmpapi implib
15318 wine_fn_config_test dlls/snmpapi/tests snmpapi_test
15319 wine_fn_config_dll softpub enable_softpub
15320 wine_fn_config_dll sound.drv16 enable_win16
15321 wine_fn_config_dll spoolss enable_spoolss implib
15322 wine_fn_config_test dlls/spoolss/tests spoolss_test
15323 wine_fn_config_dll stdole2.tlb enable_stdole2_tlb
15324 wine_fn_config_dll stdole32.tlb enable_stdole32_tlb
15325 wine_fn_config_dll sti enable_sti implib
15326 wine_fn_config_test dlls/sti/tests sti_test
15327 wine_fn_config_dll storage.dll16 enable_win16
15328 wine_fn_config_dll stress.dll16 enable_win16
15329 wine_fn_config_lib strmbase
15330 wine_fn_config_lib strmiids
15331 wine_fn_config_dll svrapi enable_svrapi
15332 wine_fn_config_dll sxs enable_sxs
15333 wine_fn_config_dll system.drv16 enable_win16
15334 wine_fn_config_dll t2embed enable_t2embed
15335 wine_fn_config_dll tapi32 enable_tapi32 implib
15336 wine_fn_config_dll toolhelp.dll16 enable_win16
15337 wine_fn_config_dll traffic enable_traffic
15338 wine_fn_config_dll twain.dll16 enable_win16
15339 wine_fn_config_dll twain_32 enable_twain_32
15340 wine_fn_config_test dlls/twain_32/tests twain_32_test
15341 wine_fn_config_dll typelib.dll16 enable_win16
15342 wine_fn_config_dll unicows enable_unicows implib
15343 wine_fn_config_dll updspapi enable_updspapi
15344 wine_fn_config_dll url enable_url implib
15345 wine_fn_config_dll urlmon enable_urlmon implib
15346 wine_fn_config_test dlls/urlmon/tests urlmon_test
15347 wine_fn_config_dll usbd.sys enable_usbd_sys implib
15348 wine_fn_config_dll user.exe16 enable_win16
15349 wine_fn_config_dll user32 enable_user32 implib,po
15350 wine_fn_config_test dlls/user32/tests user32_test
15351 wine_fn_config_dll userenv enable_userenv implib
15352 wine_fn_config_test dlls/userenv/tests userenv_test
15353 wine_fn_config_dll usp10 enable_usp10 implib
15354 wine_fn_config_test dlls/usp10/tests usp10_test
15355 wine_fn_config_lib uuid
15356 wine_fn_config_dll uxtheme enable_uxtheme implib
15357 wine_fn_config_test dlls/uxtheme/tests uxtheme_test
15358 wine_fn_config_dll vbscript enable_vbscript
15359 wine_fn_config_test dlls/vbscript/tests vbscript_test
15360 wine_fn_config_dll vcomp enable_vcomp
15361 wine_fn_config_dll vdhcp.vxd enable_win16
15362 wine_fn_config_dll vdmdbg enable_vdmdbg implib
15363 wine_fn_config_dll ver.dll16 enable_win16
15364 wine_fn_config_dll version enable_version implib
15365 wine_fn_config_test dlls/version/tests version_test
15366 wine_fn_config_dll vmm.vxd enable_win16
15367 wine_fn_config_dll vnbt.vxd enable_win16
15368 wine_fn_config_dll vnetbios.vxd enable_win16
15369 wine_fn_config_dll vtdapi.vxd enable_win16
15370 wine_fn_config_dll vwin32.vxd enable_win16
15371 wine_fn_config_dll w32skrnl enable_win16
15372 wine_fn_config_dll w32sys.dll16 enable_win16
15373 wine_fn_config_dll wbemprox enable_wbemprox
15374 wine_fn_config_dll wer enable_wer implib
15375 wine_fn_config_test dlls/wer/tests wer_test
15376 wine_fn_config_dll wiaservc enable_wiaservc
15377 wine_fn_config_dll win32s16.dll16 enable_win16
15378 wine_fn_config_dll win87em.dll16 enable_win16
15379 wine_fn_config_dll winaspi.dll16 enable_win16
15380 wine_fn_config_dll windebug.dll16 enable_win16
15381 wine_fn_config_dll windowscodecs enable_windowscodecs implib
15382 wine_fn_config_test dlls/windowscodecs/tests windowscodecs_test
15383 wine_fn_config_dll winealsa.drv enable_winealsa_drv
15384 wine_fn_config_dll winecoreaudio.drv enable_winecoreaudio_drv
15385 wine_fn_config_lib winecrt0
15386 wine_fn_config_dll wined3d enable_wined3d implib
15387 wine_fn_config_dll winegstreamer enable_winegstreamer
15388 wine_fn_config_dll winejoystick.drv enable_winejoystick_drv
15389 wine_fn_config_dll winemapi enable_winemapi
15390 wine_fn_config_dll winemp3.acm enable_winemp3_acm
15391 wine_fn_config_dll wineoss.drv enable_wineoss_drv
15392 wine_fn_config_dll wineps.drv enable_wineps_drv install-lib,po
15393 wine_fn_config_dll wineps16.drv16 enable_win16
15394 wine_fn_config_dll wineqtdecoder enable_wineqtdecoder
15395 wine_fn_config_dll winequartz.drv enable_winequartz_drv
15396 wine_fn_config_dll winex11.drv enable_winex11_drv
15397 wine_fn_config_dll wing.dll16 enable_win16
15398 wine_fn_config_dll wing32 enable_wing32
15399 wine_fn_config_dll winhttp enable_winhttp implib
15400 wine_fn_config_test dlls/winhttp/tests winhttp_test
15401 wine_fn_config_dll wininet enable_wininet implib,po
15402 wine_fn_config_test dlls/wininet/tests wininet_test
15403 wine_fn_config_dll winmm enable_winmm implib,po
15404 wine_fn_config_test dlls/winmm/tests winmm_test
15405 wine_fn_config_dll winnls.dll16 enable_win16
15406 wine_fn_config_dll winnls32 enable_winnls32 implib
15407 wine_fn_config_dll winscard enable_winscard implib
15408 wine_fn_config_dll winsock.dll16 enable_win16
15409 wine_fn_config_dll winspool.drv enable_winspool_drv implib,po winspool
15410 wine_fn_config_test dlls/winspool.drv/tests winspool.drv_test
15411 wine_fn_config_dll winsta enable_winsta
15412 wine_fn_config_dll wintab.dll16 enable_win16
15413 wine_fn_config_dll wintab32 enable_wintab32 implib
15414 wine_fn_config_test dlls/wintab32/tests wintab32_test
15415 wine_fn_config_dll wintrust enable_wintrust implib
15416 wine_fn_config_test dlls/wintrust/tests wintrust_test
15417 wine_fn_config_dll wlanapi enable_wlanapi
15418 wine_fn_config_dll wldap32 enable_wldap32 implib,po
15419 wine_fn_config_test dlls/wldap32/tests wldap32_test
15420 wine_fn_config_dll wmi enable_wmi
15421 wine_fn_config_dll wmiutils enable_wmiutils
15422 wine_fn_config_dll wnaspi32 enable_wnaspi32 implib
15423 wine_fn_config_dll wow32 enable_win16 implib
15424 wine_fn_config_dll ws2_32 enable_ws2_32 implib
15425 wine_fn_config_test dlls/ws2_32/tests ws2_32_test
15426 wine_fn_config_dll wshom.ocx enable_wshom_ocx
15427 wine_fn_config_test dlls/wshom.ocx/tests wshom.ocx_test
15428 wine_fn_config_dll wsock32 enable_wsock32 implib
15429 wine_fn_config_dll wtsapi32 enable_wtsapi32 implib
15430 wine_fn_config_dll wuapi enable_wuapi
15431 wine_fn_config_dll wuaueng enable_wuaueng
15432 wine_fn_config_dll xapofx1_1 enable_xapofx1_1
15433 wine_fn_config_dll xinput1_1 enable_xinput1_1
15434 wine_fn_config_dll xinput1_2 enable_xinput1_2
15435 wine_fn_config_dll xinput1_3 enable_xinput1_3 implib xinput
15436 wine_fn_config_test dlls/xinput1_3/tests xinput1_3_test
15437 wine_fn_config_dll xinput9_1_0 enable_xinput9_1_0
15438 wine_fn_config_dll xmllite enable_xmllite
15439 wine_fn_config_test dlls/xmllite/tests xmllite_test
15440 wine_fn_config_dll xolehlp enable_xolehlp
15441 wine_fn_config_dll xpsprint enable_xpsprint
15442 wine_fn_config_makefile documentation enable_documentation
15443 wine_fn_config_makefile fonts enable_fonts install-lib
15444 wine_fn_config_makefile include enable_include install-dev
15445 wine_fn_config_makefile libs/port enable_libs_port
15446 wine_fn_config_makefile libs/wine enable_libs_wine install-dev,install-lib
15447 wine_fn_config_makefile libs/wpp enable_libs_wpp
15448 wine_fn_config_makefile loader enable_loader install-lib,manpage
15449 wine_fn_config_program aspnet_regiis enable_aspnet_regiis install
15450 wine_fn_config_program attrib enable_attrib install,po
15451 wine_fn_config_program cabarc enable_cabarc install
15452 wine_fn_config_program cacls enable_cacls install
15453 wine_fn_config_program clock enable_clock install,po
15454 wine_fn_config_program cmd enable_cmd install,po
15455 wine_fn_config_test programs/cmd/tests cmd.exe_test
15456 wine_fn_config_program control enable_control install
15457 wine_fn_config_program cscript enable_cscript install
15458 wine_fn_config_program dxdiag enable_dxdiag install,po
15459 wine_fn_config_program eject enable_eject install
15460 wine_fn_config_program expand enable_expand install
15461 wine_fn_config_program explorer enable_explorer install,po
15462 wine_fn_config_program extrac32 enable_extrac32 install
15463 wine_fn_config_program hh enable_hh install
15464 wine_fn_config_program hostname enable_hostname install,po
15465 wine_fn_config_program icinfo enable_icinfo install
15466 wine_fn_config_program iexplore enable_iexplore install
15467 wine_fn_config_program ipconfig enable_ipconfig install,po
15468 wine_fn_config_program lodctr enable_lodctr install
15469 wine_fn_config_program mofcomp enable_mofcomp install
15470 wine_fn_config_program mshta enable_mshta install
15471 wine_fn_config_program msiexec enable_msiexec install,installbin,manpage
15472 wine_fn_config_program net enable_net install,po
15473 wine_fn_config_program netsh enable_netsh install
15474 wine_fn_config_program ngen enable_ngen install
15475 wine_fn_config_program notepad enable_notepad install,installbin,manpage,po
15476 wine_fn_config_program oleview enable_oleview install,po
15477 wine_fn_config_program ping enable_ping install
15478 wine_fn_config_program plugplay enable_plugplay install
15479 wine_fn_config_program presentationfontcache enable_presentationfontcache install
15480 wine_fn_config_program progman enable_progman install,po
15481 wine_fn_config_program reg enable_reg install,po
15482 wine_fn_config_program regasm enable_regasm install
15483 wine_fn_config_program regedit enable_regedit install,installbin,manpage,po
15484 wine_fn_config_test programs/regedit/tests regedit.exe_test
15485 wine_fn_config_program regsvcs enable_regsvcs install
15486 wine_fn_config_program regsvr32 enable_regsvr32 install,installbin,manpage
15487 wine_fn_config_program rpcss enable_rpcss install
15488 wine_fn_config_program rundll.exe16 enable_win16 install
15489 wine_fn_config_program rundll32 enable_rundll32 install
15490 wine_fn_config_program sc enable_sc install
15491 wine_fn_config_program secedit enable_secedit install
15492 wine_fn_config_program servicemodelreg enable_servicemodelreg install
15493 wine_fn_config_program services enable_services install
15494 wine_fn_config_program spoolsv enable_spoolsv install
15495 wine_fn_config_program start enable_start install,po
15496 wine_fn_config_program svchost enable_svchost install
15497 wine_fn_config_program taskkill enable_taskkill install,po
15498 wine_fn_config_program taskmgr enable_taskmgr install,po
15499 wine_fn_config_program termsv enable_termsv install
15500 wine_fn_config_program uninstaller enable_uninstaller install,po
15501 wine_fn_config_program unlodctr enable_unlodctr install
15502 wine_fn_config_program view enable_view install,po
15503 wine_fn_config_program wineboot enable_wineboot install,installbin,manpage,po
15504 wine_fn_config_program winebrowser enable_winebrowser install
15505 wine_fn_config_program winecfg enable_winecfg install,installbin,manpage,po
15506 wine_fn_config_program wineconsole enable_wineconsole install,installbin,manpage,po
15507 wine_fn_config_program winedbg enable_winedbg install,installbin,manpage,po
15508 wine_fn_config_program winedevice enable_winedevice install
15509 wine_fn_config_program winefile enable_winefile install,installbin,manpage,po
15510 wine_fn_config_program winemenubuilder enable_winemenubuilder install
15511 wine_fn_config_program winemine enable_winemine install,installbin,manpage,po
15512 wine_fn_config_program winemsibuilder enable_winemsibuilder install
15513 wine_fn_config_program winepath enable_winepath install,installbin,manpage
15514 wine_fn_config_program winetest enable_winetest
15515 wine_fn_config_program winevdm enable_win16 install
15516 wine_fn_config_program winhelp.exe16 enable_win16 install
15517 wine_fn_config_program winhlp32 enable_winhlp32 install,po
15518 wine_fn_config_program winoldap.mod16 enable_win16 install
15519 wine_fn_config_program winver enable_winver install
15520 wine_fn_config_program wmic enable_wmic install
15521 wine_fn_config_program wordpad enable_wordpad install,po
15522 wine_fn_config_program write enable_write install,po
15523 wine_fn_config_program wscript enable_wscript install
15524 wine_fn_config_test programs/wscript/tests wscript.exe_test
15525 wine_fn_config_program xcopy enable_xcopy install,po
15526 wine_fn_config_makefile server enable_server install-lib,manpage
15527 wine_fn_config_tool tools install-dev,install-lib,manpage
15528 wine_fn_config_tool tools/widl install-dev,manpage
15529 wine_fn_config_tool tools/winebuild install-dev,manpage
15530 wine_fn_config_tool tools/winedump install-dev,manpage
15531 wine_fn_config_tool tools/winegcc install-dev,manpage
15532 wine_fn_config_tool tools/wmc install-dev,manpage
15533 wine_fn_config_tool tools/wrc install-dev,manpage
15534
15535 LINGUAS="\
15536 ar \
15537 bg \
15538 ca \
15539 cs \
15540 da \
15541 de \
15542 el \
15543 en \
15544 en_US \
15545 eo \
15546 es \
15547 fa \
15548 fi \
15549 fr \
15550 he \
15551 hi \
15552 hu \
15553 it \
15554 ja \
15555 ko \
15556 lt \
15557 ml \
15558 nb_NO \
15559 nl \
15560 or \
15561 pa \
15562 pl \
15563 pt_BR \
15564 pt_PT \
15565 rm \
15566 ro \
15567 ru \
15568 sk \
15569 sl \
15570 sr_RS@cyrillic \
15571 sr_RS@latin \
15572 sv \
15573 te \
15574 th \
15575 tr \
15576 uk \
15577 wa \
15578 zh_CN \
15579 zh_TW"
15580
15581
15582
15583 ac_config_commands="$ac_config_commands Makefile"
15584
15585
15586 ac_config_files="$ac_config_files Make.tmp:Make.vars.in:Makefile.in"
15587
15588
15589
15590 if test "x$enable_maintainer_mode" = xyes
15591 then
15592     wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(srcdir)/configure: configure.ac aclocal.m4
15593         cd \$(srcdir) && autoconf --warnings=all
15594 \$(srcdir)/include/config.h.in: include/stamp-h.in
15595 \$(srcdir)/include/stamp-h.in: configure.ac aclocal.m4
15596         cd \$(srcdir) && autoheader --warnings=all
15597         @echo timestamp > \$@"
15598 fi
15599
15600 if test "x$with_gettextpo" = xyes
15601 then
15602     test "$srcdir" = . || as_fn_error $? "Rebuilding po files is not supported for out of tree builds." "$LINENO" 5
15603     wine_fn_append_rule ALL_MAKEFILE_DEPENDS "ALL_POT_FILES =$ALL_POT_FILES
15604 \$(LINGUAS:%=po/%.po): \$(srcdir)/po/wine.pot
15605         msgmerge -q \$@ \$(srcdir)/po/wine.pot | msgattrib --no-obsolete -o \$@.new && mv \$@.new \$@
15606 \$(srcdir)/po/wine.pot: \$(ALL_POT_FILES)
15607         msgcat -o \$@ \$(ALL_POT_FILES)"
15608 fi
15609
15610 if test "$MSGFMT" != false
15611 then
15612     PORCFLAGS="--po-dir=\$(top_builddir)/po"
15613
15614     wine_fn_append_rule ALL_MAKEFILE_DEPENDS "__builddeps__: \$(ALL_MO_FILES)"
15615 else
15616     LINGUAS=
15617 fi
15618
15619 if test "x$enable_tools" != xno
15620 then
15621     wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(MAKEDEP): tools/Makefile
15622 clean:: __clean__
15623         \$(RM) tools/makedep\$(EXEEXT)"
15624 fi
15625
15626 if test -n "$with_wine64"
15627 then
15628 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "all: fonts server tools $with_wine64/loader/wine $with_wine64/loader/wine-preloader
15629 fonts server tools:
15630         \$(RM) \$@ && \$(LN_S) $with_wine64/\$@ \$@
15631 $with_wine64/loader/wine:
15632         \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine \$@
15633 $with_wine64/loader/wine-preloader:
15634         \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine-preloader \$@
15635 clean::
15636         \$(RM) fonts server tools $with_wine64/loader/wine $with_wine64/loader/wine-preloader"
15637 fi
15638
15639 cat >confcache <<\_ACEOF
15640 # This file is a shell script that caches the results of configure
15641 # tests run on this system so they can be shared between configure
15642 # scripts and configure runs, see configure's option --config-cache.
15643 # It is not useful on other systems.  If it contains results you don't
15644 # want to keep, you may remove or edit it.
15645 #
15646 # config.status only pays attention to the cache file if you give it
15647 # the --recheck option to rerun configure.
15648 #
15649 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15650 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15651 # following values.
15652
15653 _ACEOF
15654
15655 # The following way of writing the cache mishandles newlines in values,
15656 # but we know of no workaround that is simple, portable, and efficient.
15657 # So, we kill variables containing newlines.
15658 # Ultrix sh set writes to stderr and can't be redirected directly,
15659 # and sets the high bit in the cache file unless we assign to the vars.
15660 (
15661   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15662     eval ac_val=\$$ac_var
15663     case $ac_val in #(
15664     *${as_nl}*)
15665       case $ac_var in #(
15666       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15667 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15668       esac
15669       case $ac_var in #(
15670       _ | IFS | as_nl) ;; #(
15671       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15672       *) { eval $ac_var=; unset $ac_var;} ;;
15673       esac ;;
15674     esac
15675   done
15676
15677   (set) 2>&1 |
15678     case $as_nl`(ac_space=' '; set) 2>&1` in #(
15679     *${as_nl}ac_space=\ *)
15680       # `set' does not quote correctly, so add quotes: double-quote
15681       # substitution turns \\\\ into \\, and sed turns \\ into \.
15682       sed -n \
15683         "s/'/'\\\\''/g;
15684           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15685       ;; #(
15686     *)
15687       # `set' quotes correctly as required by POSIX, so do not add quotes.
15688       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15689       ;;
15690     esac |
15691     sort
15692 ) |
15693   sed '
15694      /^ac_cv_env_/b end
15695      t clear
15696      :clear
15697      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15698      t end
15699      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15700      :end' >>confcache
15701 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15702   if test -w "$cache_file"; then
15703     if test "x$cache_file" != "x/dev/null"; then
15704       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15705 $as_echo "$as_me: updating cache $cache_file" >&6;}
15706       if test ! -f "$cache_file" || test -h "$cache_file"; then
15707         cat confcache >"$cache_file"
15708       else
15709         case $cache_file in #(
15710         */* | ?:*)
15711           mv -f confcache "$cache_file"$$ &&
15712           mv -f "$cache_file"$$ "$cache_file" ;; #(
15713         *)
15714           mv -f confcache "$cache_file" ;;
15715         esac
15716       fi
15717     fi
15718   else
15719     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15720 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15721   fi
15722 fi
15723 rm -f confcache
15724
15725 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15726 # Let make expand exec_prefix.
15727 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15728
15729 DEFS=-DHAVE_CONFIG_H
15730
15731 ac_libobjs=
15732 ac_ltlibobjs=
15733 U=
15734 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15735   # 1. Remove the extension, and $U if already installed.
15736   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15737   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15738   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15739   #    will be set to the directory where LIBOBJS objects are built.
15740   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15741   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15742 done
15743 LIBOBJS=$ac_libobjs
15744
15745 LTLIBOBJS=$ac_ltlibobjs
15746
15747
15748
15749 : "${CONFIG_STATUS=./config.status}"
15750 ac_write_fail=0
15751 ac_clean_files_save=$ac_clean_files
15752 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15753 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15754 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15755 as_write_fail=0
15756 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15757 #! $SHELL
15758 # Generated by $as_me.
15759 # Run this file to recreate the current configuration.
15760 # Compiler output produced by configure, useful for debugging
15761 # configure, is in config.log if it exists.
15762
15763 debug=false
15764 ac_cs_recheck=false
15765 ac_cs_silent=false
15766
15767 SHELL=\${CONFIG_SHELL-$SHELL}
15768 export SHELL
15769 _ASEOF
15770 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15771 ## -------------------- ##
15772 ## M4sh Initialization. ##
15773 ## -------------------- ##
15774
15775 # Be more Bourne compatible
15776 DUALCASE=1; export DUALCASE # for MKS sh
15777 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15778   emulate sh
15779   NULLCMD=:
15780   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15781   # is contrary to our usage.  Disable this feature.
15782   alias -g '${1+"$@"}'='"$@"'
15783   setopt NO_GLOB_SUBST
15784 else
15785   case `(set -o) 2>/dev/null` in #(
15786   *posix*) :
15787     set -o posix ;; #(
15788   *) :
15789      ;;
15790 esac
15791 fi
15792
15793
15794 as_nl='
15795 '
15796 export as_nl
15797 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15798 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15799 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15800 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15801 # Prefer a ksh shell builtin over an external printf program on Solaris,
15802 # but without wasting forks for bash or zsh.
15803 if test -z "$BASH_VERSION$ZSH_VERSION" \
15804     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15805   as_echo='print -r --'
15806   as_echo_n='print -rn --'
15807 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15808   as_echo='printf %s\n'
15809   as_echo_n='printf %s'
15810 else
15811   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15812     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15813     as_echo_n='/usr/ucb/echo -n'
15814   else
15815     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15816     as_echo_n_body='eval
15817       arg=$1;
15818       case $arg in #(
15819       *"$as_nl"*)
15820         expr "X$arg" : "X\\(.*\\)$as_nl";
15821         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15822       esac;
15823       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15824     '
15825     export as_echo_n_body
15826     as_echo_n='sh -c $as_echo_n_body as_echo'
15827   fi
15828   export as_echo_body
15829   as_echo='sh -c $as_echo_body as_echo'
15830 fi
15831
15832 # The user is always right.
15833 if test "${PATH_SEPARATOR+set}" != set; then
15834   PATH_SEPARATOR=:
15835   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15836     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15837       PATH_SEPARATOR=';'
15838   }
15839 fi
15840
15841
15842 # IFS
15843 # We need space, tab and new line, in precisely that order.  Quoting is
15844 # there to prevent editors from complaining about space-tab.
15845 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15846 # splitting by setting IFS to empty value.)
15847 IFS=" ""        $as_nl"
15848
15849 # Find who we are.  Look in the path if we contain no directory separator.
15850 as_myself=
15851 case $0 in #((
15852   *[\\/]* ) as_myself=$0 ;;
15853   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15854 for as_dir in $PATH
15855 do
15856   IFS=$as_save_IFS
15857   test -z "$as_dir" && as_dir=.
15858     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15859   done
15860 IFS=$as_save_IFS
15861
15862      ;;
15863 esac
15864 # We did not find ourselves, most probably we were run as `sh COMMAND'
15865 # in which case we are not to be found in the path.
15866 if test "x$as_myself" = x; then
15867   as_myself=$0
15868 fi
15869 if test ! -f "$as_myself"; then
15870   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15871   exit 1
15872 fi
15873
15874 # Unset variables that we do not need and which cause bugs (e.g. in
15875 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15876 # suppresses any "Segmentation fault" message there.  '((' could
15877 # trigger a bug in pdksh 5.2.14.
15878 for as_var in BASH_ENV ENV MAIL MAILPATH
15879 do eval test x\${$as_var+set} = xset \
15880   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15881 done
15882 PS1='$ '
15883 PS2='> '
15884 PS4='+ '
15885
15886 # NLS nuisances.
15887 LC_ALL=C
15888 export LC_ALL
15889 LANGUAGE=C
15890 export LANGUAGE
15891
15892 # CDPATH.
15893 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15894
15895
15896 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15897 # ----------------------------------------
15898 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15899 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15900 # script with STATUS, using 1 if that was 0.
15901 as_fn_error ()
15902 {
15903   as_status=$1; test $as_status -eq 0 && as_status=1
15904   if test "$4"; then
15905     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15906     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15907   fi
15908   $as_echo "$as_me: error: $2" >&2
15909   as_fn_exit $as_status
15910 } # as_fn_error
15911
15912
15913 # as_fn_set_status STATUS
15914 # -----------------------
15915 # Set $? to STATUS, without forking.
15916 as_fn_set_status ()
15917 {
15918   return $1
15919 } # as_fn_set_status
15920
15921 # as_fn_exit STATUS
15922 # -----------------
15923 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15924 as_fn_exit ()
15925 {
15926   set +e
15927   as_fn_set_status $1
15928   exit $1
15929 } # as_fn_exit
15930
15931 # as_fn_unset VAR
15932 # ---------------
15933 # Portably unset VAR.
15934 as_fn_unset ()
15935 {
15936   { eval $1=; unset $1;}
15937 }
15938 as_unset=as_fn_unset
15939 # as_fn_append VAR VALUE
15940 # ----------------------
15941 # Append the text in VALUE to the end of the definition contained in VAR. Take
15942 # advantage of any shell optimizations that allow amortized linear growth over
15943 # repeated appends, instead of the typical quadratic growth present in naive
15944 # implementations.
15945 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15946   eval 'as_fn_append ()
15947   {
15948     eval $1+=\$2
15949   }'
15950 else
15951   as_fn_append ()
15952   {
15953     eval $1=\$$1\$2
15954   }
15955 fi # as_fn_append
15956
15957 # as_fn_arith ARG...
15958 # ------------------
15959 # Perform arithmetic evaluation on the ARGs, and store the result in the
15960 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15961 # must be portable across $(()) and expr.
15962 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15963   eval 'as_fn_arith ()
15964   {
15965     as_val=$(( $* ))
15966   }'
15967 else
15968   as_fn_arith ()
15969   {
15970     as_val=`expr "$@" || test $? -eq 1`
15971   }
15972 fi # as_fn_arith
15973
15974
15975 if expr a : '\(a\)' >/dev/null 2>&1 &&
15976    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15977   as_expr=expr
15978 else
15979   as_expr=false
15980 fi
15981
15982 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15983   as_basename=basename
15984 else
15985   as_basename=false
15986 fi
15987
15988 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15989   as_dirname=dirname
15990 else
15991   as_dirname=false
15992 fi
15993
15994 as_me=`$as_basename -- "$0" ||
15995 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15996          X"$0" : 'X\(//\)$' \| \
15997          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15998 $as_echo X/"$0" |
15999     sed '/^.*\/\([^/][^/]*\)\/*$/{
16000             s//\1/
16001             q
16002           }
16003           /^X\/\(\/\/\)$/{
16004             s//\1/
16005             q
16006           }
16007           /^X\/\(\/\).*/{
16008             s//\1/
16009             q
16010           }
16011           s/.*/./; q'`
16012
16013 # Avoid depending upon Character Ranges.
16014 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16015 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16016 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16017 as_cr_digits='0123456789'
16018 as_cr_alnum=$as_cr_Letters$as_cr_digits
16019
16020 ECHO_C= ECHO_N= ECHO_T=
16021 case `echo -n x` in #(((((
16022 -n*)
16023   case `echo 'xy\c'` in
16024   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
16025   xy)  ECHO_C='\c';;
16026   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
16027        ECHO_T=' ';;
16028   esac;;
16029 *)
16030   ECHO_N='-n';;
16031 esac
16032
16033 rm -f conf$$ conf$$.exe conf$$.file
16034 if test -d conf$$.dir; then
16035   rm -f conf$$.dir/conf$$.file
16036 else
16037   rm -f conf$$.dir
16038   mkdir conf$$.dir 2>/dev/null
16039 fi
16040 if (echo >conf$$.file) 2>/dev/null; then
16041   if ln -s conf$$.file conf$$ 2>/dev/null; then
16042     as_ln_s='ln -s'
16043     # ... but there are two gotchas:
16044     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16045     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16046     # In both cases, we have to default to `cp -p'.
16047     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16048       as_ln_s='cp -p'
16049   elif ln conf$$.file conf$$ 2>/dev/null; then
16050     as_ln_s=ln
16051   else
16052     as_ln_s='cp -p'
16053   fi
16054 else
16055   as_ln_s='cp -p'
16056 fi
16057 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16058 rmdir conf$$.dir 2>/dev/null
16059
16060
16061 # as_fn_mkdir_p
16062 # -------------
16063 # Create "$as_dir" as a directory, including parents if necessary.
16064 as_fn_mkdir_p ()
16065 {
16066
16067   case $as_dir in #(
16068   -*) as_dir=./$as_dir;;
16069   esac
16070   test -d "$as_dir" || eval $as_mkdir_p || {
16071     as_dirs=
16072     while :; do
16073       case $as_dir in #(
16074       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16075       *) as_qdir=$as_dir;;
16076       esac
16077       as_dirs="'$as_qdir' $as_dirs"
16078       as_dir=`$as_dirname -- "$as_dir" ||
16079 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16080          X"$as_dir" : 'X\(//\)[^/]' \| \
16081          X"$as_dir" : 'X\(//\)$' \| \
16082          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16083 $as_echo X"$as_dir" |
16084     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16085             s//\1/
16086             q
16087           }
16088           /^X\(\/\/\)[^/].*/{
16089             s//\1/
16090             q
16091           }
16092           /^X\(\/\/\)$/{
16093             s//\1/
16094             q
16095           }
16096           /^X\(\/\).*/{
16097             s//\1/
16098             q
16099           }
16100           s/.*/./; q'`
16101       test -d "$as_dir" && break
16102     done
16103     test -z "$as_dirs" || eval "mkdir $as_dirs"
16104   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16105
16106
16107 } # as_fn_mkdir_p
16108 if mkdir -p . 2>/dev/null; then
16109   as_mkdir_p='mkdir -p "$as_dir"'
16110 else
16111   test -d ./-p && rmdir ./-p
16112   as_mkdir_p=false
16113 fi
16114
16115 if test -x / >/dev/null 2>&1; then
16116   as_test_x='test -x'
16117 else
16118   if ls -dL / >/dev/null 2>&1; then
16119     as_ls_L_option=L
16120   else
16121     as_ls_L_option=
16122   fi
16123   as_test_x='
16124     eval sh -c '\''
16125       if test -d "$1"; then
16126         test -d "$1/.";
16127       else
16128         case $1 in #(
16129         -*)set "./$1";;
16130         esac;
16131         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16132         ???[sx]*):;;*)false;;esac;fi
16133     '\'' sh
16134   '
16135 fi
16136 as_executable_p=$as_test_x
16137
16138 # Sed expression to map a string onto a valid CPP name.
16139 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16140
16141 # Sed expression to map a string onto a valid variable name.
16142 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16143
16144
16145 exec 6>&1
16146 ## ----------------------------------- ##
16147 ## Main body of $CONFIG_STATUS script. ##
16148 ## ----------------------------------- ##
16149 _ASEOF
16150 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16151
16152 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16153 # Save the log message, to keep $0 and so on meaningful, and to
16154 # report actual input values of CONFIG_FILES etc. instead of their
16155 # values after options handling.
16156 ac_log="
16157 This file was extended by Wine $as_me 1.4, which was
16158 generated by GNU Autoconf 2.68.  Invocation command line was
16159
16160   CONFIG_FILES    = $CONFIG_FILES
16161   CONFIG_HEADERS  = $CONFIG_HEADERS
16162   CONFIG_LINKS    = $CONFIG_LINKS
16163   CONFIG_COMMANDS = $CONFIG_COMMANDS
16164   $ $0 $@
16165
16166 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16167 "
16168
16169 _ACEOF
16170
16171 case $ac_config_files in *"
16172 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16173 esac
16174
16175 case $ac_config_headers in *"
16176 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16177 esac
16178
16179
16180 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16181 # Files that config.status was made for.
16182 config_files="$ac_config_files"
16183 config_headers="$ac_config_headers"
16184 config_links="$ac_config_links"
16185 config_commands="$ac_config_commands"
16186
16187 _ACEOF
16188
16189 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16190 ac_cs_usage="\
16191 \`$as_me' instantiates files and other configuration actions
16192 from templates according to the current configuration.  Unless the files
16193 and actions are specified as TAGs, all are instantiated by default.
16194
16195 Usage: $0 [OPTION]... [TAG]...
16196
16197   -h, --help       print this help, then exit
16198   -V, --version    print version number and configuration settings, then exit
16199       --config     print configuration, then exit
16200   -q, --quiet, --silent
16201                    do not print progress messages
16202   -d, --debug      don't remove temporary files
16203       --recheck    update $as_me by reconfiguring in the same conditions
16204       --file=FILE[:TEMPLATE]
16205                    instantiate the configuration file FILE
16206       --header=FILE[:TEMPLATE]
16207                    instantiate the configuration header FILE
16208
16209 Configuration files:
16210 $config_files
16211
16212 Configuration headers:
16213 $config_headers
16214
16215 Configuration links:
16216 $config_links
16217
16218 Configuration commands:
16219 $config_commands
16220
16221 Report bugs to <wine-devel@winehq.org>.
16222 Wine home page: <http://www.winehq.org>."
16223
16224 _ACEOF
16225 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16226 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16227 ac_cs_version="\\
16228 Wine config.status 1.4
16229 configured by $0, generated by GNU Autoconf 2.68,
16230   with options \\"\$ac_cs_config\\"
16231
16232 Copyright (C) 2010 Free Software Foundation, Inc.
16233 This config.status script is free software; the Free Software Foundation
16234 gives unlimited permission to copy, distribute and modify it."
16235
16236 ac_pwd='$ac_pwd'
16237 srcdir='$srcdir'
16238 INSTALL='$INSTALL'
16239 test -n "\$AWK" || AWK=awk
16240 _ACEOF
16241
16242 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16243 # The default lists apply if the user does not specify any file.
16244 ac_need_defaults=:
16245 while test $# != 0
16246 do
16247   case $1 in
16248   --*=?*)
16249     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16250     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16251     ac_shift=:
16252     ;;
16253   --*=)
16254     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16255     ac_optarg=
16256     ac_shift=:
16257     ;;
16258   *)
16259     ac_option=$1
16260     ac_optarg=$2
16261     ac_shift=shift
16262     ;;
16263   esac
16264
16265   case $ac_option in
16266   # Handling of the options.
16267   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16268     ac_cs_recheck=: ;;
16269   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16270     $as_echo "$ac_cs_version"; exit ;;
16271   --config | --confi | --conf | --con | --co | --c )
16272     $as_echo "$ac_cs_config"; exit ;;
16273   --debug | --debu | --deb | --de | --d | -d )
16274     debug=: ;;
16275   --file | --fil | --fi | --f )
16276     $ac_shift
16277     case $ac_optarg in
16278     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16279     '') as_fn_error $? "missing file argument" ;;
16280     esac
16281     as_fn_append CONFIG_FILES " '$ac_optarg'"
16282     ac_need_defaults=false;;
16283   --header | --heade | --head | --hea )
16284     $ac_shift
16285     case $ac_optarg in
16286     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16287     esac
16288     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16289     ac_need_defaults=false;;
16290   --he | --h)
16291     # Conflict between --help and --header
16292     as_fn_error $? "ambiguous option: \`$1'
16293 Try \`$0 --help' for more information.";;
16294   --help | --hel | -h )
16295     $as_echo "$ac_cs_usage"; exit ;;
16296   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16297   | -silent | --silent | --silen | --sile | --sil | --si | --s)
16298     ac_cs_silent=: ;;
16299
16300   # This is an error.
16301   -*) as_fn_error $? "unrecognized option: \`$1'
16302 Try \`$0 --help' for more information." ;;
16303
16304   *) as_fn_append ac_config_targets " $1"
16305      ac_need_defaults=false ;;
16306
16307   esac
16308   shift
16309 done
16310
16311 ac_configure_extra_args=
16312
16313 if $ac_cs_silent; then
16314   exec 6>/dev/null
16315   ac_configure_extra_args="$ac_configure_extra_args --silent"
16316 fi
16317
16318 _ACEOF
16319 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16320 if \$ac_cs_recheck; then
16321   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16322   shift
16323   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16324   CONFIG_SHELL='$SHELL'
16325   export CONFIG_SHELL
16326   exec "\$@"
16327 fi
16328
16329 _ACEOF
16330 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16331 exec 5>>config.log
16332 {
16333   echo
16334   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16335 ## Running $as_me. ##
16336 _ASBOX
16337   $as_echo "$ac_log"
16338 } >&5
16339
16340 _ACEOF
16341 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16342 #
16343 # INIT-COMMANDS
16344 #
16345 wine_fn_output_makefile ()
16346 {
16347     cat Make.tmp - <<\_WINE_EOF >\$tmp/makefile && mv -f \$tmp/makefile \$1 && rm -f Make.tmp && return
16348 $ALL_MAKEFILE_DEPENDS
16349 _WINE_EOF
16350     as_fn_error $? "could not create Makefile" "$LINENO" 5
16351 }
16352
16353 _ACEOF
16354
16355 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16356
16357 # Handling of arguments.
16358 for ac_config_target in $ac_config_targets
16359 do
16360   case $ac_config_target in
16361     "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
16362     "include/stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/stamp-h" ;;
16363     "dlls/shell32/AUTHORS") CONFIG_LINKS="$CONFIG_LINKS dlls/shell32/AUTHORS:AUTHORS" ;;
16364     "dlls/wineps.drv/generic.ppd") CONFIG_LINKS="$CONFIG_LINKS dlls/wineps.drv/generic.ppd:dlls/wineps.drv/generic.ppd" ;;
16365     "fonts/marlett.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/marlett.ttf:fonts/marlett.ttf" ;;
16366     "fonts/symbol.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/symbol.ttf:fonts/symbol.ttf" ;;
16367     "fonts/tahoma.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahoma.ttf:fonts/tahoma.ttf" ;;
16368     "fonts/tahomabd.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahomabd.ttf:fonts/tahomabd.ttf" ;;
16369     "po/LINGUAS") CONFIG_LINKS="$CONFIG_LINKS po/LINGUAS:po/LINGUAS" ;;
16370     "tools/l_intl.nls") CONFIG_LINKS="$CONFIG_LINKS tools/l_intl.nls:tools/l_intl.nls" ;;
16371     "wine") CONFIG_LINKS="$CONFIG_LINKS wine:tools/winewrapper" ;;
16372     "wine64") CONFIG_LINKS="$CONFIG_LINKS wine64:tools/winewrapper" ;;
16373     "dlls/gdi32/dibdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/dibdrv" ;;
16374     "dlls/gdi32/enhmfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/enhmfdrv" ;;
16375     "dlls/gdi32/mfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/mfdrv" ;;
16376     "dlls/kernel32/nls") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel32/nls" ;;
16377     "dlls/user32/resources") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user32/resources" ;;
16378     "dlls/wineps.drv/data") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps.drv/data" ;;
16379     "include/wine") CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
16380     "Make.rules") CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
16381     "Maketest.rules") CONFIG_FILES="$CONFIG_FILES Maketest.rules" ;;
16382     "dlls/Makedll.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
16383     "dlls/Makeimplib.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makeimplib.rules" ;;
16384     "programs/Makeprog.rules") CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
16385     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
16386     "Make.tmp") CONFIG_FILES="$CONFIG_FILES Make.tmp:Make.vars.in:Makefile.in" ;;
16387
16388   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16389   esac
16390 done
16391
16392
16393 # If the user did not use the arguments to specify the items to instantiate,
16394 # then the envvar interface is used.  Set only those that are not.
16395 # We use the long form for the default assignment because of an extremely
16396 # bizarre bug on SunOS 4.1.3.
16397 if $ac_need_defaults; then
16398   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16399   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16400   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
16401   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16402 fi
16403
16404 # Have a temporary directory for convenience.  Make it in the build tree
16405 # simply because there is no reason against having it here, and in addition,
16406 # creating and moving files from /tmp can sometimes cause problems.
16407 # Hook for its removal unless debugging.
16408 # Note that there is a small window in which the directory will not be cleaned:
16409 # after its creation but before its name has been assigned to `$tmp'.
16410 $debug ||
16411 {
16412   tmp= ac_tmp=
16413   trap 'exit_status=$?
16414   : "${ac_tmp:=$tmp}"
16415   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16416 ' 0
16417   trap 'as_fn_exit 1' 1 2 13 15
16418 }
16419 # Create a (secure) tmp directory for tmp files.
16420
16421 {
16422   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16423   test -d "$tmp"
16424 }  ||
16425 {
16426   tmp=./conf$$-$RANDOM
16427   (umask 077 && mkdir "$tmp")
16428 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16429 ac_tmp=$tmp
16430
16431 # Set up the scripts for CONFIG_FILES section.
16432 # No need to generate them if there are no CONFIG_FILES.
16433 # This happens for instance with `./config.status config.h'.
16434 if test -n "$CONFIG_FILES"; then
16435
16436 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16437   ac_cs_awk_getline=:
16438   ac_cs_awk_pipe_init=
16439   ac_cs_awk_read_file='
16440       while ((getline aline < (F[key])) > 0)
16441         print(aline)
16442       close(F[key])'
16443   ac_cs_awk_pipe_fini=
16444 else
16445   ac_cs_awk_getline=false
16446   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16447   ac_cs_awk_read_file='
16448       print "|#_!!_#|"
16449       print "cat " F[key] " &&"
16450       '$ac_cs_awk_pipe_init
16451   # The final `:' finishes the AND list.
16452   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16453 fi
16454 ac_cr=`echo X | tr X '\015'`
16455 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16456 # But we know of no other shell where ac_cr would be empty at this
16457 # point, so we can use a bashism as a fallback.
16458 if test "x$ac_cr" = x; then
16459   eval ac_cr=\$\'\\r\'
16460 fi
16461 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16462 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16463   ac_cs_awk_cr='\\r'
16464 else
16465   ac_cs_awk_cr=$ac_cr
16466 fi
16467
16468 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16469 _ACEOF
16470
16471 # Create commands to substitute file output variables.
16472 {
16473   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16474   echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
16475   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16476   echo "_ACAWK" &&
16477   echo "_ACEOF"
16478 } >conf$$files.sh &&
16479 . ./conf$$files.sh ||
16480   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16481 rm -f conf$$files.sh
16482
16483 {
16484   echo "cat >conf$$subs.awk <<_ACEOF" &&
16485   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16486   echo "_ACEOF"
16487 } >conf$$subs.sh ||
16488   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16489 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16490 ac_delim='%!_!# '
16491 for ac_last_try in false false false false false :; do
16492   . ./conf$$subs.sh ||
16493     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16494
16495   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16496   if test $ac_delim_n = $ac_delim_num; then
16497     break
16498   elif $ac_last_try; then
16499     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16500   else
16501     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16502   fi
16503 done
16504 rm -f conf$$subs.sh
16505
16506 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16507 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16508 _ACEOF
16509 sed -n '
16510 h
16511 s/^/S["/; s/!.*/"]=/
16512 p
16513 g
16514 s/^[^!]*!//
16515 :repl
16516 t repl
16517 s/'"$ac_delim"'$//
16518 t delim
16519 :nl
16520 h
16521 s/\(.\{148\}\)..*/\1/
16522 t more1
16523 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16524 p
16525 n
16526 b repl
16527 :more1
16528 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16529 p
16530 g
16531 s/.\{148\}//
16532 t nl
16533 :delim
16534 h
16535 s/\(.\{148\}\)..*/\1/
16536 t more2
16537 s/["\\]/\\&/g; s/^/"/; s/$/"/
16538 p
16539 b
16540 :more2
16541 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16542 p
16543 g
16544 s/.\{148\}//
16545 t delim
16546 ' <conf$$subs.awk | sed '
16547 /^[^""]/{
16548   N
16549   s/\n//
16550 }
16551 ' >>$CONFIG_STATUS || ac_write_fail=1
16552 rm -f conf$$subs.awk
16553 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16554 _ACAWK
16555 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16556   for (key in S) S_is_set[key] = 1
16557   FS = "\a"
16558   \$ac_cs_awk_pipe_init
16559 }
16560 {
16561   line = $ 0
16562   nfields = split(line, field, "@")
16563   substed = 0
16564   len = length(field[1])
16565   for (i = 2; i < nfields; i++) {
16566     key = field[i]
16567     keylen = length(key)
16568     if (S_is_set[key]) {
16569       value = S[key]
16570       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16571       len += length(value) + length(field[++i])
16572       substed = 1
16573     } else
16574       len += 1 + keylen
16575   }
16576   if (nfields == 3 && !substed) {
16577     key = field[2]
16578     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
16579       \$ac_cs_awk_read_file
16580       next
16581     }
16582   }
16583   print line
16584 }
16585 \$ac_cs_awk_pipe_fini
16586 _ACAWK
16587 _ACEOF
16588 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16589 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16590   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16591 else
16592   cat
16593 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16594   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16595 _ACEOF
16596
16597 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16598 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16599 # trailing colons and then remove the whole line if VPATH becomes empty
16600 # (actually we leave an empty line to preserve line numbers).
16601 if test "x$srcdir" = x.; then
16602   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
16603 h
16604 s///
16605 s/^/:/
16606 s/[      ]*$/:/
16607 s/:\$(srcdir):/:/g
16608 s/:\${srcdir}:/:/g
16609 s/:@srcdir@:/:/g
16610 s/^:*//
16611 s/:*$//
16612 x
16613 s/\(=[   ]*\).*/\1/
16614 G
16615 s/\n//
16616 s/^[^=]*=[       ]*$//
16617 }'
16618 fi
16619
16620 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16621 fi # test -n "$CONFIG_FILES"
16622
16623 # Set up the scripts for CONFIG_HEADERS section.
16624 # No need to generate them if there are no CONFIG_HEADERS.
16625 # This happens for instance with `./config.status Makefile'.
16626 if test -n "$CONFIG_HEADERS"; then
16627 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16628 BEGIN {
16629 _ACEOF
16630
16631 # Transform confdefs.h into an awk script `defines.awk', embedded as
16632 # here-document in config.status, that substitutes the proper values into
16633 # config.h.in to produce config.h.
16634
16635 # Create a delimiter string that does not exist in confdefs.h, to ease
16636 # handling of long lines.
16637 ac_delim='%!_!# '
16638 for ac_last_try in false false :; do
16639   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16640   if test -z "$ac_tt"; then
16641     break
16642   elif $ac_last_try; then
16643     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16644   else
16645     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16646   fi
16647 done
16648
16649 # For the awk script, D is an array of macro values keyed by name,
16650 # likewise P contains macro parameters if any.  Preserve backslash
16651 # newline sequences.
16652
16653 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16654 sed -n '
16655 s/.\{148\}/&'"$ac_delim"'/g
16656 t rset
16657 :rset
16658 s/^[     ]*#[    ]*define[       ][      ]*/ /
16659 t def
16660 d
16661 :def
16662 s/\\$//
16663 t bsnl
16664 s/["\\]/\\&/g
16665 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16666 D["\1"]=" \3"/p
16667 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
16668 d
16669 :bsnl
16670 s/["\\]/\\&/g
16671 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16672 D["\1"]=" \3\\\\\\n"\\/p
16673 t cont
16674 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16675 t cont
16676 d
16677 :cont
16678 n
16679 s/.\{148\}/&'"$ac_delim"'/g
16680 t clear
16681 :clear
16682 s/\\$//
16683 t bsnlc
16684 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16685 d
16686 :bsnlc
16687 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16688 b cont
16689 ' <confdefs.h | sed '
16690 s/'"$ac_delim"'/"\\\
16691 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16692
16693 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16694   for (key in D) D_is_set[key] = 1
16695   FS = "\a"
16696 }
16697 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16698   line = \$ 0
16699   split(line, arg, " ")
16700   if (arg[1] == "#") {
16701     defundef = arg[2]
16702     mac1 = arg[3]
16703   } else {
16704     defundef = substr(arg[1], 2)
16705     mac1 = arg[2]
16706   }
16707   split(mac1, mac2, "(") #)
16708   macro = mac2[1]
16709   prefix = substr(line, 1, index(line, defundef) - 1)
16710   if (D_is_set[macro]) {
16711     # Preserve the white space surrounding the "#".
16712     print prefix "define", macro P[macro] D[macro]
16713     next
16714   } else {
16715     # Replace #undef with comments.  This is necessary, for example,
16716     # in the case of _POSIX_SOURCE, which is predefined and required
16717     # on some systems where configure will not decide to define it.
16718     if (defundef == "undef") {
16719       print "/*", prefix defundef, macro, "*/"
16720       next
16721     }
16722   }
16723 }
16724 { print }
16725 _ACAWK
16726 _ACEOF
16727 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16728   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16729 fi # test -n "$CONFIG_HEADERS"
16730
16731
16732 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
16733 shift
16734 for ac_tag
16735 do
16736   case $ac_tag in
16737   :[FHLC]) ac_mode=$ac_tag; continue;;
16738   esac
16739   case $ac_mode$ac_tag in
16740   :[FHL]*:*);;
16741   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16742   :[FH]-) ac_tag=-:-;;
16743   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16744   esac
16745   ac_save_IFS=$IFS
16746   IFS=:
16747   set x $ac_tag
16748   IFS=$ac_save_IFS
16749   shift
16750   ac_file=$1
16751   shift
16752
16753   case $ac_mode in
16754   :L) ac_source=$1;;
16755   :[FH])
16756     ac_file_inputs=
16757     for ac_f
16758     do
16759       case $ac_f in
16760       -) ac_f="$ac_tmp/stdin";;
16761       *) # Look for the file first in the build tree, then in the source tree
16762          # (if the path is not absolute).  The absolute path cannot be DOS-style,
16763          # because $ac_f cannot contain `:'.
16764          test -f "$ac_f" ||
16765            case $ac_f in
16766            [\\/$]*) false;;
16767            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16768            esac ||
16769            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16770       esac
16771       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16772       as_fn_append ac_file_inputs " '$ac_f'"
16773     done
16774
16775     # Let's still pretend it is `configure' which instantiates (i.e., don't
16776     # use $as_me), people would be surprised to read:
16777     #    /* config.h.  Generated by config.status.  */
16778     configure_input='Generated from '`
16779           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16780         `' by configure.'
16781     if test x"$ac_file" != x-; then
16782       configure_input="$ac_file.  $configure_input"
16783       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16784 $as_echo "$as_me: creating $ac_file" >&6;}
16785     fi
16786     # Neutralize special characters interpreted by sed in replacement strings.
16787     case $configure_input in #(
16788     *\&* | *\|* | *\\* )
16789        ac_sed_conf_input=`$as_echo "$configure_input" |
16790        sed 's/[\\\\&|]/\\\\&/g'`;; #(
16791     *) ac_sed_conf_input=$configure_input;;
16792     esac
16793
16794     case $ac_tag in
16795     *:-:* | *:-) cat >"$ac_tmp/stdin" \
16796       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16797     esac
16798     ;;
16799   esac
16800
16801   ac_dir=`$as_dirname -- "$ac_file" ||
16802 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16803          X"$ac_file" : 'X\(//\)[^/]' \| \
16804          X"$ac_file" : 'X\(//\)$' \| \
16805          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16806 $as_echo X"$ac_file" |
16807     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16808             s//\1/
16809             q
16810           }
16811           /^X\(\/\/\)[^/].*/{
16812             s//\1/
16813             q
16814           }
16815           /^X\(\/\/\)$/{
16816             s//\1/
16817             q
16818           }
16819           /^X\(\/\).*/{
16820             s//\1/
16821             q
16822           }
16823           s/.*/./; q'`
16824   as_dir="$ac_dir"; as_fn_mkdir_p
16825   ac_builddir=.
16826
16827 case "$ac_dir" in
16828 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16829 *)
16830   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16831   # A ".." for each directory in $ac_dir_suffix.
16832   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16833   case $ac_top_builddir_sub in
16834   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16835   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16836   esac ;;
16837 esac
16838 ac_abs_top_builddir=$ac_pwd
16839 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16840 # for backward compatibility:
16841 ac_top_builddir=$ac_top_build_prefix
16842
16843 case $srcdir in
16844   .)  # We are building in place.
16845     ac_srcdir=.
16846     ac_top_srcdir=$ac_top_builddir_sub
16847     ac_abs_top_srcdir=$ac_pwd ;;
16848   [\\/]* | ?:[\\/]* )  # Absolute name.
16849     ac_srcdir=$srcdir$ac_dir_suffix;
16850     ac_top_srcdir=$srcdir
16851     ac_abs_top_srcdir=$srcdir ;;
16852   *) # Relative name.
16853     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16854     ac_top_srcdir=$ac_top_build_prefix$srcdir
16855     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16856 esac
16857 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16858
16859
16860   case $ac_mode in
16861   :F)
16862   #
16863   # CONFIG_FILE
16864   #
16865
16866   case $INSTALL in
16867   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16868   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16869   esac
16870 _ACEOF
16871
16872 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16873 # If the template does not know about datarootdir, expand it.
16874 # FIXME: This hack should be removed a few years after 2.60.
16875 ac_datarootdir_hack=; ac_datarootdir_seen=
16876 ac_sed_dataroot='
16877 /datarootdir/ {
16878   p
16879   q
16880 }
16881 /@datadir@/p
16882 /@docdir@/p
16883 /@infodir@/p
16884 /@localedir@/p
16885 /@mandir@/p'
16886 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16887 *datarootdir*) ac_datarootdir_seen=yes;;
16888 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16889   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16890 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16891 _ACEOF
16892 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16893   ac_datarootdir_hack='
16894   s&@datadir@&$datadir&g
16895   s&@docdir@&$docdir&g
16896   s&@infodir@&$infodir&g
16897   s&@localedir@&$localedir&g
16898   s&@mandir@&$mandir&g
16899   s&\\\${datarootdir}&$datarootdir&g' ;;
16900 esac
16901 _ACEOF
16902
16903 # Neutralize VPATH when `$srcdir' = `.'.
16904 # Shell code in configure.ac might set extrasub.
16905 # FIXME: do we really want to maintain this feature?
16906 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16907 ac_sed_extra="$ac_vpsub
16908 $extrasub
16909 _ACEOF
16910 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16911 :t
16912 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16913 s|@configure_input@|$ac_sed_conf_input|;t t
16914 s&@top_builddir@&$ac_top_builddir_sub&;t t
16915 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16916 s&@srcdir@&$ac_srcdir&;t t
16917 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16918 s&@top_srcdir@&$ac_top_srcdir&;t t
16919 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16920 s&@builddir@&$ac_builddir&;t t
16921 s&@abs_builddir@&$ac_abs_builddir&;t t
16922 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16923 s&@INSTALL@&$ac_INSTALL&;t t
16924 $ac_datarootdir_hack
16925 "
16926 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16927 if $ac_cs_awk_getline; then
16928   $AWK -f "$ac_tmp/subs.awk"
16929 else
16930   $AWK -f "$ac_tmp/subs.awk" | $SHELL
16931 fi \
16932   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16933
16934 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16935   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16936   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
16937       "$ac_tmp/out"`; test -z "$ac_out"; } &&
16938   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16939 which seems to be undefined.  Please make sure it is defined" >&5
16940 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16941 which seems to be undefined.  Please make sure it is defined" >&2;}
16942
16943   rm -f "$ac_tmp/stdin"
16944   case $ac_file in
16945   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16946   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16947   esac \
16948   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16949  ;;
16950   :H)
16951   #
16952   # CONFIG_HEADER
16953   #
16954   if test x"$ac_file" != x-; then
16955     {
16956       $as_echo "/* $configure_input  */" \
16957       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16958     } >"$ac_tmp/config.h" \
16959       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16960     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16961       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16962 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16963     else
16964       rm -f "$ac_file"
16965       mv "$ac_tmp/config.h" "$ac_file" \
16966         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16967     fi
16968   else
16969     $as_echo "/* $configure_input  */" \
16970       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16971       || as_fn_error $? "could not create -" "$LINENO" 5
16972   fi
16973  ;;
16974   :L)
16975   #
16976   # CONFIG_LINK
16977   #
16978
16979   if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
16980     :
16981   else
16982     # Prefer the file from the source tree if names are identical.
16983     if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
16984       ac_source=$srcdir/$ac_source
16985     fi
16986
16987     { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
16988 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
16989
16990     if test ! -r "$ac_source"; then
16991       as_fn_error $? "$ac_source: file not found" "$LINENO" 5
16992     fi
16993     rm -f "$ac_file"
16994
16995     # Try a relative symlink, then a hard link, then a copy.
16996     case $ac_source in
16997     [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
16998         *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
16999     esac
17000     ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
17001       ln "$ac_source" "$ac_file" 2>/dev/null ||
17002       cp -p "$ac_source" "$ac_file" ||
17003       as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
17004   fi
17005  ;;
17006   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17007 $as_echo "$as_me: executing $ac_file commands" >&6;}
17008  ;;
17009   esac
17010
17011
17012   case $ac_file$ac_mode in
17013     "include/stamp-h":C) echo timestamp > include/stamp-h ;;
17014     "dlls/gdi32/dibdrv":C) test -d "dlls/gdi32/dibdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/dibdrv" >&5
17015 $as_echo "$as_me: creating dlls/gdi32/dibdrv" >&6;}; as_dir="dlls/gdi32/dibdrv"; as_fn_mkdir_p; } ;;
17016     "dlls/gdi32/enhmfdrv":C) test -d "dlls/gdi32/enhmfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/enhmfdrv" >&5
17017 $as_echo "$as_me: creating dlls/gdi32/enhmfdrv" >&6;}; as_dir="dlls/gdi32/enhmfdrv"; as_fn_mkdir_p; } ;;
17018     "dlls/gdi32/mfdrv":C) test -d "dlls/gdi32/mfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/mfdrv" >&5
17019 $as_echo "$as_me: creating dlls/gdi32/mfdrv" >&6;}; as_dir="dlls/gdi32/mfdrv"; as_fn_mkdir_p; } ;;
17020     "dlls/kernel32/nls":C) test -d "dlls/kernel32/nls" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/kernel32/nls" >&5
17021 $as_echo "$as_me: creating dlls/kernel32/nls" >&6;}; as_dir="dlls/kernel32/nls"; as_fn_mkdir_p; } ;;
17022     "dlls/user32/resources":C) test -d "dlls/user32/resources" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/user32/resources" >&5
17023 $as_echo "$as_me: creating dlls/user32/resources" >&6;}; as_dir="dlls/user32/resources"; as_fn_mkdir_p; } ;;
17024     "dlls/wineps.drv/data":C) test -d "dlls/wineps.drv/data" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/wineps.drv/data" >&5
17025 $as_echo "$as_me: creating dlls/wineps.drv/data" >&6;}; as_dir="dlls/wineps.drv/data"; as_fn_mkdir_p; } ;;
17026     "include/wine":C) test -d "include/wine" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating include/wine" >&5
17027 $as_echo "$as_me: creating include/wine" >&6;}; as_dir="include/wine"; as_fn_mkdir_p; } ;;
17028     "Makefile":C) wine_fn_output_makefile Makefile ;;
17029
17030   esac
17031 done # for ac_tag
17032
17033
17034 as_fn_exit 0
17035 _ACEOF
17036 ac_clean_files=$ac_clean_files_save
17037
17038 test $ac_write_fail = 0 ||
17039   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17040
17041
17042 # configure is writing to config.log, and then calls config.status.
17043 # config.status does its own redirection, appending to config.log.
17044 # Unfortunately, on DOS this fails, as config.log is still kept open
17045 # by configure, so config.status won't be able to write to it; its
17046 # output is simply discarded.  So we exec the FD to /dev/null,
17047 # effectively closing config.log, so it can be properly (re)opened and
17048 # appended to by config.status.  When coming back to configure, we
17049 # need to make the FD available again.
17050 if test "$no_create" != yes; then
17051   ac_cs_success=:
17052   ac_config_status_args=
17053   test "$silent" = yes &&
17054     ac_config_status_args="$ac_config_status_args --quiet"
17055   exec 5>/dev/null
17056   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17057   exec 5>>config.log
17058   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17059   # would make configure fail if this is the last instruction.
17060   $ac_cs_success || as_fn_exit 1
17061 fi
17062 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17063   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17064 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17065 fi
17066
17067
17068 if test "$no_create" = "yes"
17069 then
17070   exit 0
17071 fi
17072
17073 ac_save_IFS="$IFS"
17074 if test "x$wine_notices != "x; then
17075     echo >&6
17076     IFS="|"
17077     for msg in $wine_notices; do
17078         IFS="$ac_save_IFS"
17079         if test -n "$msg"; then
17080             { $as_echo "$as_me:${as_lineno-$LINENO}: $msg" >&5
17081 $as_echo "$as_me: $msg" >&6;}
17082         fi
17083     done
17084 fi
17085 IFS="|"
17086 for msg in $wine_warnings; do
17087     IFS="$ac_save_IFS"
17088     if test -n "$msg"; then
17089         echo >&2
17090         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $msg" >&5
17091 $as_echo "$as_me: WARNING: $msg" >&2;}
17092     fi
17093 done
17094 IFS="$ac_save_IFS"
17095
17096 echo "
17097 $as_me: Finished.  Do '${ac_make}' to compile Wine.
17098 " >&6
17099