winealsa: Ignore failure to notify winmm wave clients.
[wine] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.67 for Wine 1.3.15.
4 #
5 # Report bugs to <wine-devel@winehq.org>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22   emulate sh
23   NULLCMD=:
24   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25   # is contrary to our usage.  Disable this feature.
26   alias -g '${1+"$@"}'='"$@"'
27   setopt NO_GLOB_SUBST
28 else
29   case `(set -o) 2>/dev/null` in #(
30   *posix*) :
31     set -o posix ;; #(
32   *) :
33      ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49   as_echo='print -r --'
50   as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52   as_echo='printf %s\n'
53   as_echo_n='printf %s'
54 else
55   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57     as_echo_n='/usr/ucb/echo -n'
58   else
59     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60     as_echo_n_body='eval
61       arg=$1;
62       case $arg in #(
63       *"$as_nl"*)
64         expr "X$arg" : "X\\(.*\\)$as_nl";
65         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66       esac;
67       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68     '
69     export as_echo_n_body
70     as_echo_n='sh -c $as_echo_n_body as_echo'
71   fi
72   export as_echo_body
73   as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78   PATH_SEPARATOR=:
79   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81       PATH_SEPARATOR=';'
82   }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order.  Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" ""        $as_nl"
92
93 # Find who we are.  Look in the path if we contain no directory separator.
94 case $0 in #((
95   *[\\/]* ) as_myself=$0 ;;
96   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 for as_dir in $PATH
98 do
99   IFS=$as_save_IFS
100   test -z "$as_dir" && as_dir=.
101     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102   done
103 IFS=$as_save_IFS
104
105      ;;
106 esac
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
110   as_myself=$0
111 fi
112 if test ! -f "$as_myself"; then
113   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114   exit 1
115 fi
116
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there.  '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124 done
125 PS1='$ '
126 PS2='> '
127 PS4='+ '
128
129 # NLS nuisances.
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export LANGUAGE
134
135 # CDPATH.
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138 if test "x$CONFIG_SHELL" = x; then
139   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140   emulate sh
141   NULLCMD=:
142   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143   # is contrary to our usage.  Disable this feature.
144   alias -g '\${1+\"\$@\"}'='\"\$@\"'
145   setopt NO_GLOB_SUBST
146 else
147   case \`(set -o) 2>/dev/null\` in #(
148   *posix*) :
149     set -o posix ;; #(
150   *) :
151      ;;
152 esac
153 fi
154 "
155   as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
160
161 exitcode=0
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168 else
169   exitcode=1; echo positional parameters were not saved.
170 fi
171 test x\$exitcode = x0 || exit 1"
172   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 test \$(( 1 + 1 )) = 2 || exit 1"
177   if (eval "$as_required") 2>/dev/null; then :
178   as_have_required=yes
179 else
180   as_have_required=no
181 fi
182   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183
184 else
185   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186 as_found=false
187 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188 do
189   IFS=$as_save_IFS
190   test -z "$as_dir" && as_dir=.
191   as_found=:
192   case $as_dir in #(
193          /*)
194            for as_base in sh bash ksh sh5; do
195              # Try only shells that exist, to save several forks.
196              as_shell=$as_dir/$as_base
197              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199   CONFIG_SHELL=$as_shell as_have_required=yes
200                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201   break 2
202 fi
203 fi
204            done;;
205        esac
206   as_found=false
207 done
208 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210   CONFIG_SHELL=$SHELL as_have_required=yes
211 fi; }
212 IFS=$as_save_IFS
213
214
215       if test "x$CONFIG_SHELL" != x; then :
216   # We cannot yet assume a decent shell, so we have to provide a
217         # neutralization value for shells without unset; and this also
218         # works around shells that cannot unset nonexistent variables.
219         BASH_ENV=/dev/null
220         ENV=/dev/null
221         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222         export CONFIG_SHELL
223         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 fi
225
226     if test x$as_have_required = xno; then :
227   $as_echo "$0: This script requires a shell more modern than all"
228   $as_echo "$0: the shells that I found on your system."
229   if test x${ZSH_VERSION+set} = xset ; then
230     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232   else
233     $as_echo "$0: Please tell bug-autoconf@gnu.org and
234 $0: wine-devel@winehq.org about your system, including any
235 $0: error possibly output before this message. Then install
236 $0: a modern shell, or manually run the script under such a
237 $0: shell if you do have one."
238   fi
239   exit 1
240 fi
241 fi
242 fi
243 SHELL=${CONFIG_SHELL-/bin/sh}
244 export SHELL
245 # Unset more variables known to interfere with behavior of common tools.
246 CLICOLOR_FORCE= GREP_OPTIONS=
247 unset CLICOLOR_FORCE GREP_OPTIONS
248
249 ## --------------------- ##
250 ## M4sh Shell Functions. ##
251 ## --------------------- ##
252 # as_fn_unset VAR
253 # ---------------
254 # Portably unset VAR.
255 as_fn_unset ()
256 {
257   { eval $1=; unset $1;}
258 }
259 as_unset=as_fn_unset
260
261 # as_fn_set_status STATUS
262 # -----------------------
263 # Set $? to STATUS, without forking.
264 as_fn_set_status ()
265 {
266   return $1
267 } # as_fn_set_status
268
269 # as_fn_exit STATUS
270 # -----------------
271 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
272 as_fn_exit ()
273 {
274   set +e
275   as_fn_set_status $1
276   exit $1
277 } # as_fn_exit
278
279 # as_fn_mkdir_p
280 # -------------
281 # Create "$as_dir" as a directory, including parents if necessary.
282 as_fn_mkdir_p ()
283 {
284
285   case $as_dir in #(
286   -*) as_dir=./$as_dir;;
287   esac
288   test -d "$as_dir" || eval $as_mkdir_p || {
289     as_dirs=
290     while :; do
291       case $as_dir in #(
292       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293       *) as_qdir=$as_dir;;
294       esac
295       as_dirs="'$as_qdir' $as_dirs"
296       as_dir=`$as_dirname -- "$as_dir" ||
297 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298          X"$as_dir" : 'X\(//\)[^/]' \| \
299          X"$as_dir" : 'X\(//\)$' \| \
300          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301 $as_echo X"$as_dir" |
302     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
303             s//\1/
304             q
305           }
306           /^X\(\/\/\)[^/].*/{
307             s//\1/
308             q
309           }
310           /^X\(\/\/\)$/{
311             s//\1/
312             q
313           }
314           /^X\(\/\).*/{
315             s//\1/
316             q
317           }
318           s/.*/./; q'`
319       test -d "$as_dir" && break
320     done
321     test -z "$as_dirs" || eval "mkdir $as_dirs"
322   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
323
324
325 } # as_fn_mkdir_p
326 # as_fn_append VAR VALUE
327 # ----------------------
328 # Append the text in VALUE to the end of the definition contained in VAR. Take
329 # advantage of any shell optimizations that allow amortized linear growth over
330 # repeated appends, instead of the typical quadratic growth present in naive
331 # implementations.
332 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333   eval 'as_fn_append ()
334   {
335     eval $1+=\$2
336   }'
337 else
338   as_fn_append ()
339   {
340     eval $1=\$$1\$2
341   }
342 fi # as_fn_append
343
344 # as_fn_arith ARG...
345 # ------------------
346 # Perform arithmetic evaluation on the ARGs, and store the result in the
347 # global $as_val. Take advantage of shells that can avoid forks. The arguments
348 # must be portable across $(()) and expr.
349 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
350   eval 'as_fn_arith ()
351   {
352     as_val=$(( $* ))
353   }'
354 else
355   as_fn_arith ()
356   {
357     as_val=`expr "$@" || test $? -eq 1`
358   }
359 fi # as_fn_arith
360
361
362 # as_fn_error STATUS ERROR [LINENO LOG_FD]
363 # ----------------------------------------
364 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366 # script with STATUS, using 1 if that was 0.
367 as_fn_error ()
368 {
369   as_status=$1; test $as_status -eq 0 && as_status=1
370   if test "$4"; then
371     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
373   fi
374   $as_echo "$as_me: error: $2" >&2
375   as_fn_exit $as_status
376 } # as_fn_error
377
378 if expr a : '\(a\)' >/dev/null 2>&1 &&
379    test "X`expr 00001 : '.*\(...\)'`" = X001; then
380   as_expr=expr
381 else
382   as_expr=false
383 fi
384
385 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386   as_basename=basename
387 else
388   as_basename=false
389 fi
390
391 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392   as_dirname=dirname
393 else
394   as_dirname=false
395 fi
396
397 as_me=`$as_basename -- "$0" ||
398 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399          X"$0" : 'X\(//\)$' \| \
400          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
401 $as_echo X/"$0" |
402     sed '/^.*\/\([^/][^/]*\)\/*$/{
403             s//\1/
404             q
405           }
406           /^X\/\(\/\/\)$/{
407             s//\1/
408             q
409           }
410           /^X\/\(\/\).*/{
411             s//\1/
412             q
413           }
414           s/.*/./; q'`
415
416 # Avoid depending upon Character Ranges.
417 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420 as_cr_digits='0123456789'
421 as_cr_alnum=$as_cr_Letters$as_cr_digits
422
423
424   as_lineno_1=$LINENO as_lineno_1a=$LINENO
425   as_lineno_2=$LINENO as_lineno_2a=$LINENO
426   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
429   sed -n '
430     p
431     /[$]LINENO/=
432   ' <$as_myself |
433     sed '
434       s/[$]LINENO.*/&-/
435       t lineno
436       b
437       :lineno
438       N
439       :loop
440       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441       t loop
442       s/-\n.*//
443     ' >$as_me.lineno &&
444   chmod +x "$as_me.lineno" ||
445     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
446
447   # Don't try to exec as it changes $[0], causing all sort of problems
448   # (the dirname of $[0] is not the place where we might find the
449   # original and so on.  Autoconf is especially sensitive to this).
450   . "./$as_me.lineno"
451   # Exit status is that of the last command.
452   exit
453 }
454
455 ECHO_C= ECHO_N= ECHO_T=
456 case `echo -n x` in #(((((
457 -n*)
458   case `echo 'xy\c'` in
459   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
460   xy)  ECHO_C='\c';;
461   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
462        ECHO_T=' ';;
463   esac;;
464 *)
465   ECHO_N='-n';;
466 esac
467
468 rm -f conf$$ conf$$.exe conf$$.file
469 if test -d conf$$.dir; then
470   rm -f conf$$.dir/conf$$.file
471 else
472   rm -f conf$$.dir
473   mkdir conf$$.dir 2>/dev/null
474 fi
475 if (echo >conf$$.file) 2>/dev/null; then
476   if ln -s conf$$.file conf$$ 2>/dev/null; then
477     as_ln_s='ln -s'
478     # ... but there are two gotchas:
479     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481     # In both cases, we have to default to `cp -p'.
482     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
483       as_ln_s='cp -p'
484   elif ln conf$$.file conf$$ 2>/dev/null; then
485     as_ln_s=ln
486   else
487     as_ln_s='cp -p'
488   fi
489 else
490   as_ln_s='cp -p'
491 fi
492 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493 rmdir conf$$.dir 2>/dev/null
494
495 if mkdir -p . 2>/dev/null; then
496   as_mkdir_p='mkdir -p "$as_dir"'
497 else
498   test -d ./-p && rmdir ./-p
499   as_mkdir_p=false
500 fi
501
502 if test -x / >/dev/null 2>&1; then
503   as_test_x='test -x'
504 else
505   if ls -dL / >/dev/null 2>&1; then
506     as_ls_L_option=L
507   else
508     as_ls_L_option=
509   fi
510   as_test_x='
511     eval sh -c '\''
512       if test -d "$1"; then
513         test -d "$1/.";
514       else
515         case $1 in #(
516         -*)set "./$1";;
517         esac;
518         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519         ???[sx]*):;;*)false;;esac;fi
520     '\'' sh
521   '
522 fi
523 as_executable_p=$as_test_x
524
525 # Sed expression to map a string onto a valid CPP name.
526 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
527
528 # Sed expression to map a string onto a valid variable name.
529 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530
531
532 test -n "$DJDIR" || exec 7<&0 </dev/null
533 exec 6>&1
534
535 # Name of the host.
536 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
537 # so uname gets run too.
538 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
539
540 #
541 # Initializations.
542 #
543 ac_default_prefix=/usr/local
544 ac_clean_files=
545 ac_config_libobj_dir=.
546 LIBOBJS=
547 cross_compiling=no
548 subdirs=
549 MFLAGS=
550 MAKEFLAGS=
551
552 # Identity of this package.
553 PACKAGE_NAME='Wine'
554 PACKAGE_TARNAME='wine'
555 PACKAGE_VERSION='1.3.15'
556 PACKAGE_STRING='Wine 1.3.15'
557 PACKAGE_BUGREPORT='wine-devel@winehq.org'
558 PACKAGE_URL='http://www.winehq.org'
559
560 ac_unique_file="server/atom.c"
561 # Factoring default headers for most tests.
562 ac_includes_default="\
563 #include <stdio.h>
564 #ifdef HAVE_SYS_TYPES_H
565 # include <sys/types.h>
566 #endif
567 #ifdef HAVE_SYS_STAT_H
568 # include <sys/stat.h>
569 #endif
570 #ifdef STDC_HEADERS
571 # include <stdlib.h>
572 # include <stddef.h>
573 #else
574 # ifdef HAVE_STDLIB_H
575 #  include <stdlib.h>
576 # endif
577 #endif
578 #ifdef HAVE_STRING_H
579 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
580 #  include <memory.h>
581 # endif
582 # include <string.h>
583 #endif
584 #ifdef HAVE_STRINGS_H
585 # include <strings.h>
586 #endif
587 #ifdef HAVE_INTTYPES_H
588 # include <inttypes.h>
589 #endif
590 #ifdef HAVE_STDINT_H
591 # include <stdint.h>
592 #endif
593 #ifdef HAVE_UNISTD_H
594 # include <unistd.h>
595 #endif"
596
597 ac_subst_vars='LTLIBOBJS
598 LIBOBJS
599 LINGUAS
600 ALL_TEST_BINARIES
601 ALL_WINETEST_DEPENDS
602 LDAPLIBS
603 LIBPOLL
604 LIBDL
605 EXTRA_BINARIES
606 MAIN_BINARY
607 SOCKETLIBS
608 CRTLIBS
609 TOOLSEXT
610 LDPATH
611 UNWINDFLAGS
612 BUILTINFLAG
613 EXTRACFLAGS
614 LIBKSTAT
615 LIBOPENAL
616 LIBMPG123
617 PNGINCL
618 FONTCONFIGINCL
619 CUPSINCL
620 ALSALIBS
621 GSTREAMER_INCL
622 GSTREAMER_LIBS
623 ESDLIBS
624 ESDINCL
625 ESDCONFIG
626 LIBGETTEXTPO
627 ZLIB
628 FREETYPEINCL
629 FREETYPELIBS
630 ft_devel
631 LCMSLIBS
632 RESOLVLIBS
633 GPHOTO2INCL
634 GPHOTO2LIBS
635 gphoto2port_devel
636 gphoto2_devel
637 SANEINCL
638 sane_devel
639 GNUTLSINCL
640 HALINCL
641 XSLTINCL
642 XML2INCL
643 XML2LIBS
644 NASLIBS
645 X_EXTRA_LIBS
646 X_LIBS
647 X_PRE_LIBS
648 X_CFLAGS
649 XMKMF
650 LIBPTHREAD
651 CROSSTARGET
652 CROSSCC
653 CROSSTEST_DISABLE
654 PRELINK
655 CARBONLIB
656 QUICKTIMELIB
657 LIBOPENCL
658 FRAMEWORK_OPENAL
659 COREAUDIO
660 SECURITYLIB
661 DISKARBITRATIONLIB
662 LDEXECFLAGS
663 APPLICATIONSERVICESLIB
664 IOKITLIB
665 COREFOUNDATIONLIB
666 DLLWRAP
667 DLLTOOL
668 LDD
669 LDRPATH_LOCAL
670 LDRPATH_INSTALL
671 IMPLIBEXT
672 LIBEXT
673 LDDLLFLAGS
674 LDSHARED
675 DLLFLAGS
676 DLLEXT
677 CPP
678 OPENGL_LIBS
679 XLIB
680 MAINTAINER_MODE
681 ICOTOOL
682 CONVERT
683 RSVG
684 PKG_CONFIG
685 FONTFORGE
686 LINTFLAGS
687 LINT
688 INSTALL_DATA
689 INSTALL_SCRIPT
690 INSTALL_PROGRAM
691 LDCONFIG
692 EGREP
693 GREP
694 LN_S
695 STRIP
696 RANLIB
697 ARFLAGS
698 ac_ct_AR
699 AR
700 BISON
701 FLEX
702 TOOLSDIR
703 WOW64_DISABLE
704 TARGETFLAGS
705 CPPBIN
706 ac_ct_CXX
707 CXXFLAGS
708 CXX
709 OBJEXT
710 EXEEXT
711 ac_ct_CC
712 CPPFLAGS
713 LDFLAGS
714 CFLAGS
715 CC
716 SET_MAKE
717 host_os
718 host_vendor
719 host_cpu
720 host
721 build_os
722 build_vendor
723 build_cpu
724 build
725 target_alias
726 host_alias
727 build_alias
728 LIBS
729 ECHO_T
730 ECHO_N
731 ECHO_C
732 DEFS
733 mandir
734 localedir
735 libdir
736 psdir
737 pdfdir
738 dvidir
739 htmldir
740 infodir
741 docdir
742 oldincludedir
743 includedir
744 localstatedir
745 sharedstatedir
746 sysconfdir
747 datadir
748 datarootdir
749 libexecdir
750 sbindir
751 bindir
752 program_transform_name
753 prefix
754 exec_prefix
755 PACKAGE_URL
756 PACKAGE_BUGREPORT
757 PACKAGE_STRING
758 PACKAGE_VERSION
759 PACKAGE_TARNAME
760 PACKAGE_NAME
761 PATH_SEPARATOR
762 SHELL'
763 ac_subst_files='MAKE_RULES
764 MAKE_TEST_RULES
765 MAKE_DLL_RULES
766 MAKE_IMPLIB_RULES
767 MAKE_PROG_RULES'
768 ac_user_opts='
769 enable_option_checking
770 enable_win16
771 enable_win64
772 enable_tests
773 enable_maintainer_mode
774 with_alsa
775 with_capi
776 with_cms
777 with_coreaudio
778 with_cups
779 with_curses
780 with_esd
781 with_fontconfig
782 with_freetype
783 with_gettextpo
784 with_gphoto
785 with_glu
786 with_gnutls
787 with_gsm
788 with_gstreamer
789 with_hal
790 with_jack
791 with_jpeg
792 with_ldap
793 with_mpg123
794 with_nas
795 with_openal
796 with_opencl
797 with_opengl
798 with_openssl
799 with_oss
800 with_png
801 with_pthread
802 with_sane
803 with_tiff
804 with_v4l
805 with_xcomposite
806 with_xcursor
807 with_xinerama
808 with_xinput
809 with_xml
810 with_xrandr
811 with_xrender
812 with_xshape
813 with_xshm
814 with_xslt
815 with_xxf86vm
816 with_zlib
817 with_wine_tools
818 with_wine64
819 enable_largefile
820 with_x
821 '
822       ac_precious_vars='build_alias
823 host_alias
824 target_alias
825 CC
826 CFLAGS
827 LDFLAGS
828 LIBS
829 CPPFLAGS
830 CXX
831 CXXFLAGS
832 CCC
833 CPP
834 XMKMF'
835
836
837 # Initialize some variables set by options.
838 ac_init_help=
839 ac_init_version=false
840 ac_unrecognized_opts=
841 ac_unrecognized_sep=
842 # The variables have the same names as the options, with
843 # dashes changed to underlines.
844 cache_file=/dev/null
845 exec_prefix=NONE
846 no_create=
847 no_recursion=
848 prefix=NONE
849 program_prefix=NONE
850 program_suffix=NONE
851 program_transform_name=s,x,x,
852 silent=
853 site=
854 srcdir=
855 verbose=
856 x_includes=NONE
857 x_libraries=NONE
858
859 # Installation directory options.
860 # These are left unexpanded so users can "make install exec_prefix=/foo"
861 # and all the variables that are supposed to be based on exec_prefix
862 # by default will actually change.
863 # Use braces instead of parens because sh, perl, etc. also accept them.
864 # (The list follows the same order as the GNU Coding Standards.)
865 bindir='${exec_prefix}/bin'
866 sbindir='${exec_prefix}/sbin'
867 libexecdir='${exec_prefix}/libexec'
868 datarootdir='${prefix}/share'
869 datadir='${datarootdir}'
870 sysconfdir='${prefix}/etc'
871 sharedstatedir='${prefix}/com'
872 localstatedir='${prefix}/var'
873 includedir='${prefix}/include'
874 oldincludedir='/usr/include'
875 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
876 infodir='${datarootdir}/info'
877 htmldir='${docdir}'
878 dvidir='${docdir}'
879 pdfdir='${docdir}'
880 psdir='${docdir}'
881 libdir='${exec_prefix}/lib'
882 localedir='${datarootdir}/locale'
883 mandir='${datarootdir}/man'
884
885 ac_prev=
886 ac_dashdash=
887 for ac_option
888 do
889   # If the previous option needs an argument, assign it.
890   if test -n "$ac_prev"; then
891     eval $ac_prev=\$ac_option
892     ac_prev=
893     continue
894   fi
895
896   case $ac_option in
897   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
898   *=)   ac_optarg= ;;
899   *)    ac_optarg=yes ;;
900   esac
901
902   # Accept the important Cygnus configure options, so we can diagnose typos.
903
904   case $ac_dashdash$ac_option in
905   --)
906     ac_dashdash=yes ;;
907
908   -bindir | --bindir | --bindi | --bind | --bin | --bi)
909     ac_prev=bindir ;;
910   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
911     bindir=$ac_optarg ;;
912
913   -build | --build | --buil | --bui | --bu)
914     ac_prev=build_alias ;;
915   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
916     build_alias=$ac_optarg ;;
917
918   -cache-file | --cache-file | --cache-fil | --cache-fi \
919   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
920     ac_prev=cache_file ;;
921   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
922   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
923     cache_file=$ac_optarg ;;
924
925   --config-cache | -C)
926     cache_file=config.cache ;;
927
928   -datadir | --datadir | --datadi | --datad)
929     ac_prev=datadir ;;
930   -datadir=* | --datadir=* | --datadi=* | --datad=*)
931     datadir=$ac_optarg ;;
932
933   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
934   | --dataroo | --dataro | --datar)
935     ac_prev=datarootdir ;;
936   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
937   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
938     datarootdir=$ac_optarg ;;
939
940   -disable-* | --disable-*)
941     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
942     # Reject names that are not valid shell variable names.
943     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
944       as_fn_error $? "invalid feature name: $ac_useropt"
945     ac_useropt_orig=$ac_useropt
946     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
947     case $ac_user_opts in
948       *"
949 "enable_$ac_useropt"
950 "*) ;;
951       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
952          ac_unrecognized_sep=', ';;
953     esac
954     eval enable_$ac_useropt=no ;;
955
956   -docdir | --docdir | --docdi | --doc | --do)
957     ac_prev=docdir ;;
958   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
959     docdir=$ac_optarg ;;
960
961   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
962     ac_prev=dvidir ;;
963   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
964     dvidir=$ac_optarg ;;
965
966   -enable-* | --enable-*)
967     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
968     # Reject names that are not valid shell variable names.
969     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
970       as_fn_error $? "invalid feature name: $ac_useropt"
971     ac_useropt_orig=$ac_useropt
972     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
973     case $ac_user_opts in
974       *"
975 "enable_$ac_useropt"
976 "*) ;;
977       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
978          ac_unrecognized_sep=', ';;
979     esac
980     eval enable_$ac_useropt=\$ac_optarg ;;
981
982   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
983   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
984   | --exec | --exe | --ex)
985     ac_prev=exec_prefix ;;
986   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
987   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
988   | --exec=* | --exe=* | --ex=*)
989     exec_prefix=$ac_optarg ;;
990
991   -gas | --gas | --ga | --g)
992     # Obsolete; use --with-gas.
993     with_gas=yes ;;
994
995   -help | --help | --hel | --he | -h)
996     ac_init_help=long ;;
997   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
998     ac_init_help=recursive ;;
999   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1000     ac_init_help=short ;;
1001
1002   -host | --host | --hos | --ho)
1003     ac_prev=host_alias ;;
1004   -host=* | --host=* | --hos=* | --ho=*)
1005     host_alias=$ac_optarg ;;
1006
1007   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1008     ac_prev=htmldir ;;
1009   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1010   | --ht=*)
1011     htmldir=$ac_optarg ;;
1012
1013   -includedir | --includedir | --includedi | --included | --include \
1014   | --includ | --inclu | --incl | --inc)
1015     ac_prev=includedir ;;
1016   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1017   | --includ=* | --inclu=* | --incl=* | --inc=*)
1018     includedir=$ac_optarg ;;
1019
1020   -infodir | --infodir | --infodi | --infod | --info | --inf)
1021     ac_prev=infodir ;;
1022   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1023     infodir=$ac_optarg ;;
1024
1025   -libdir | --libdir | --libdi | --libd)
1026     ac_prev=libdir ;;
1027   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1028     libdir=$ac_optarg ;;
1029
1030   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1031   | --libexe | --libex | --libe)
1032     ac_prev=libexecdir ;;
1033   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1034   | --libexe=* | --libex=* | --libe=*)
1035     libexecdir=$ac_optarg ;;
1036
1037   -localedir | --localedir | --localedi | --localed | --locale)
1038     ac_prev=localedir ;;
1039   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1040     localedir=$ac_optarg ;;
1041
1042   -localstatedir | --localstatedir | --localstatedi | --localstated \
1043   | --localstate | --localstat | --localsta | --localst | --locals)
1044     ac_prev=localstatedir ;;
1045   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1046   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1047     localstatedir=$ac_optarg ;;
1048
1049   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1050     ac_prev=mandir ;;
1051   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1052     mandir=$ac_optarg ;;
1053
1054   -nfp | --nfp | --nf)
1055     # Obsolete; use --without-fp.
1056     with_fp=no ;;
1057
1058   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1059   | --no-cr | --no-c | -n)
1060     no_create=yes ;;
1061
1062   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1063   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1064     no_recursion=yes ;;
1065
1066   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1067   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1068   | --oldin | --oldi | --old | --ol | --o)
1069     ac_prev=oldincludedir ;;
1070   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1071   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1072   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1073     oldincludedir=$ac_optarg ;;
1074
1075   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1076     ac_prev=prefix ;;
1077   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1078     prefix=$ac_optarg ;;
1079
1080   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1081   | --program-pre | --program-pr | --program-p)
1082     ac_prev=program_prefix ;;
1083   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1084   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1085     program_prefix=$ac_optarg ;;
1086
1087   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1088   | --program-suf | --program-su | --program-s)
1089     ac_prev=program_suffix ;;
1090   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1091   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1092     program_suffix=$ac_optarg ;;
1093
1094   -program-transform-name | --program-transform-name \
1095   | --program-transform-nam | --program-transform-na \
1096   | --program-transform-n | --program-transform- \
1097   | --program-transform | --program-transfor \
1098   | --program-transfo | --program-transf \
1099   | --program-trans | --program-tran \
1100   | --progr-tra | --program-tr | --program-t)
1101     ac_prev=program_transform_name ;;
1102   -program-transform-name=* | --program-transform-name=* \
1103   | --program-transform-nam=* | --program-transform-na=* \
1104   | --program-transform-n=* | --program-transform-=* \
1105   | --program-transform=* | --program-transfor=* \
1106   | --program-transfo=* | --program-transf=* \
1107   | --program-trans=* | --program-tran=* \
1108   | --progr-tra=* | --program-tr=* | --program-t=*)
1109     program_transform_name=$ac_optarg ;;
1110
1111   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1112     ac_prev=pdfdir ;;
1113   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1114     pdfdir=$ac_optarg ;;
1115
1116   -psdir | --psdir | --psdi | --psd | --ps)
1117     ac_prev=psdir ;;
1118   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1119     psdir=$ac_optarg ;;
1120
1121   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1122   | -silent | --silent | --silen | --sile | --sil)
1123     silent=yes ;;
1124
1125   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1126     ac_prev=sbindir ;;
1127   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1128   | --sbi=* | --sb=*)
1129     sbindir=$ac_optarg ;;
1130
1131   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1132   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1133   | --sharedst | --shareds | --shared | --share | --shar \
1134   | --sha | --sh)
1135     ac_prev=sharedstatedir ;;
1136   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1137   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1138   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1139   | --sha=* | --sh=*)
1140     sharedstatedir=$ac_optarg ;;
1141
1142   -site | --site | --sit)
1143     ac_prev=site ;;
1144   -site=* | --site=* | --sit=*)
1145     site=$ac_optarg ;;
1146
1147   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1148     ac_prev=srcdir ;;
1149   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1150     srcdir=$ac_optarg ;;
1151
1152   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1153   | --syscon | --sysco | --sysc | --sys | --sy)
1154     ac_prev=sysconfdir ;;
1155   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1156   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1157     sysconfdir=$ac_optarg ;;
1158
1159   -target | --target | --targe | --targ | --tar | --ta | --t)
1160     ac_prev=target_alias ;;
1161   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1162     target_alias=$ac_optarg ;;
1163
1164   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1165     verbose=yes ;;
1166
1167   -version | --version | --versio | --versi | --vers | -V)
1168     ac_init_version=: ;;
1169
1170   -with-* | --with-*)
1171     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1172     # Reject names that are not valid shell variable names.
1173     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1174       as_fn_error $? "invalid package name: $ac_useropt"
1175     ac_useropt_orig=$ac_useropt
1176     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1177     case $ac_user_opts in
1178       *"
1179 "with_$ac_useropt"
1180 "*) ;;
1181       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1182          ac_unrecognized_sep=', ';;
1183     esac
1184     eval with_$ac_useropt=\$ac_optarg ;;
1185
1186   -without-* | --without-*)
1187     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1188     # Reject names that are not valid shell variable names.
1189     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1190       as_fn_error $? "invalid package name: $ac_useropt"
1191     ac_useropt_orig=$ac_useropt
1192     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1193     case $ac_user_opts in
1194       *"
1195 "with_$ac_useropt"
1196 "*) ;;
1197       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1198          ac_unrecognized_sep=', ';;
1199     esac
1200     eval with_$ac_useropt=no ;;
1201
1202   --x)
1203     # Obsolete; use --with-x.
1204     with_x=yes ;;
1205
1206   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1207   | --x-incl | --x-inc | --x-in | --x-i)
1208     ac_prev=x_includes ;;
1209   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1210   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1211     x_includes=$ac_optarg ;;
1212
1213   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1214   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1215     ac_prev=x_libraries ;;
1216   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1217   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1218     x_libraries=$ac_optarg ;;
1219
1220   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1221 Try \`$0 --help' for more information"
1222     ;;
1223
1224   *=*)
1225     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1226     # Reject names that are not valid shell variable names.
1227     case $ac_envvar in #(
1228       '' | [0-9]* | *[!_$as_cr_alnum]* )
1229       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1230     esac
1231     eval $ac_envvar=\$ac_optarg
1232     export $ac_envvar ;;
1233
1234   *)
1235     # FIXME: should be removed in autoconf 3.0.
1236     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1237     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1238       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1239     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1240     ;;
1241
1242   esac
1243 done
1244
1245 if test -n "$ac_prev"; then
1246   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1247   as_fn_error $? "missing argument to $ac_option"
1248 fi
1249
1250 if test -n "$ac_unrecognized_opts"; then
1251   case $enable_option_checking in
1252     no) ;;
1253     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1254     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1255   esac
1256 fi
1257
1258 # Check all directory arguments for consistency.
1259 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1260                 datadir sysconfdir sharedstatedir localstatedir includedir \
1261                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1262                 libdir localedir mandir
1263 do
1264   eval ac_val=\$$ac_var
1265   # Remove trailing slashes.
1266   case $ac_val in
1267     */ )
1268       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1269       eval $ac_var=\$ac_val;;
1270   esac
1271   # Be sure to have absolute directory names.
1272   case $ac_val in
1273     [\\/$]* | ?:[\\/]* )  continue;;
1274     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1275   esac
1276   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1277 done
1278
1279 # There might be people who depend on the old broken behavior: `$host'
1280 # used to hold the argument of --host etc.
1281 # FIXME: To remove some day.
1282 build=$build_alias
1283 host=$host_alias
1284 target=$target_alias
1285
1286 # FIXME: To remove some day.
1287 if test "x$host_alias" != x; then
1288   if test "x$build_alias" = x; then
1289     cross_compiling=maybe
1290     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1291     If a cross compiler is detected then cross compile mode will be used" >&2
1292   elif test "x$build_alias" != "x$host_alias"; then
1293     cross_compiling=yes
1294   fi
1295 fi
1296
1297 ac_tool_prefix=
1298 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1299
1300 test "$silent" = yes && exec 6>/dev/null
1301
1302
1303 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1304 ac_ls_di=`ls -di .` &&
1305 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1306   as_fn_error $? "working directory cannot be determined"
1307 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1308   as_fn_error $? "pwd does not report name of working directory"
1309
1310
1311 # Find the source files, if location was not specified.
1312 if test -z "$srcdir"; then
1313   ac_srcdir_defaulted=yes
1314   # Try the directory containing this script, then the parent directory.
1315   ac_confdir=`$as_dirname -- "$as_myself" ||
1316 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1317          X"$as_myself" : 'X\(//\)[^/]' \| \
1318          X"$as_myself" : 'X\(//\)$' \| \
1319          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1320 $as_echo X"$as_myself" |
1321     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1322             s//\1/
1323             q
1324           }
1325           /^X\(\/\/\)[^/].*/{
1326             s//\1/
1327             q
1328           }
1329           /^X\(\/\/\)$/{
1330             s//\1/
1331             q
1332           }
1333           /^X\(\/\).*/{
1334             s//\1/
1335             q
1336           }
1337           s/.*/./; q'`
1338   srcdir=$ac_confdir
1339   if test ! -r "$srcdir/$ac_unique_file"; then
1340     srcdir=..
1341   fi
1342 else
1343   ac_srcdir_defaulted=no
1344 fi
1345 if test ! -r "$srcdir/$ac_unique_file"; then
1346   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1347   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1348 fi
1349 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1350 ac_abs_confdir=`(
1351         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1352         pwd)`
1353 # When building in place, set srcdir=.
1354 if test "$ac_abs_confdir" = "$ac_pwd"; then
1355   srcdir=.
1356 fi
1357 # Remove unnecessary trailing slashes from srcdir.
1358 # Double slashes in file names in object file debugging info
1359 # mess up M-x gdb in Emacs.
1360 case $srcdir in
1361 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1362 esac
1363 for ac_var in $ac_precious_vars; do
1364   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1365   eval ac_env_${ac_var}_value=\$${ac_var}
1366   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1367   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1368 done
1369
1370 #
1371 # Report the --help message.
1372 #
1373 if test "$ac_init_help" = "long"; then
1374   # Omit some internal or obsolete options to make the list less imposing.
1375   # This message is too long to be a string in the A/UX 3.1 sh.
1376   cat <<_ACEOF
1377 \`configure' configures Wine 1.3.15 to adapt to many kinds of systems.
1378
1379 Usage: $0 [OPTION]... [VAR=VALUE]...
1380
1381 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1382 VAR=VALUE.  See below for descriptions of some of the useful variables.
1383
1384 Defaults for the options are specified in brackets.
1385
1386 Configuration:
1387   -h, --help              display this help and exit
1388       --help=short        display options specific to this package
1389       --help=recursive    display the short help of all the included packages
1390   -V, --version           display version information and exit
1391   -q, --quiet, --silent   do not print \`checking ...' messages
1392       --cache-file=FILE   cache test results in FILE [disabled]
1393   -C, --config-cache      alias for \`--cache-file=config.cache'
1394   -n, --no-create         do not create output files
1395       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1396
1397 Installation directories:
1398   --prefix=PREFIX         install architecture-independent files in PREFIX
1399                           [$ac_default_prefix]
1400   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1401                           [PREFIX]
1402
1403 By default, \`make install' will install all the files in
1404 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1405 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1406 for instance \`--prefix=\$HOME'.
1407
1408 For better control, use the options below.
1409
1410 Fine tuning of the installation directories:
1411   --bindir=DIR            user executables [EPREFIX/bin]
1412   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1413   --libexecdir=DIR        program executables [EPREFIX/libexec]
1414   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1415   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1416   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1417   --libdir=DIR            object code libraries [EPREFIX/lib]
1418   --includedir=DIR        C header files [PREFIX/include]
1419   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1420   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1421   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1422   --infodir=DIR           info documentation [DATAROOTDIR/info]
1423   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1424   --mandir=DIR            man documentation [DATAROOTDIR/man]
1425   --docdir=DIR            documentation root [DATAROOTDIR/doc/wine]
1426   --htmldir=DIR           html documentation [DOCDIR]
1427   --dvidir=DIR            dvi documentation [DOCDIR]
1428   --pdfdir=DIR            pdf documentation [DOCDIR]
1429   --psdir=DIR             ps documentation [DOCDIR]
1430 _ACEOF
1431
1432   cat <<\_ACEOF
1433
1434 X features:
1435   --x-includes=DIR    X include files are in DIR
1436   --x-libraries=DIR   X library files are in DIR
1437
1438 System types:
1439   --build=BUILD     configure for building on BUILD [guessed]
1440   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1441 _ACEOF
1442 fi
1443
1444 if test -n "$ac_init_help"; then
1445   case $ac_init_help in
1446      short | recursive ) echo "Configuration of Wine 1.3.15:";;
1447    esac
1448   cat <<\_ACEOF
1449
1450 Optional Features:
1451   --disable-option-checking  ignore unrecognized --enable/--with options
1452   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1453   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1454   --disable-win16         do not include Win16 support
1455   --enable-win64          build a Win64 emulator on AMD64 (won't run Win32
1456                           binaries)
1457   --disable-tests         do not build the regression tests
1458   --enable-maintainer-mode
1459                           enable maintainer-specific build rules
1460   --disable-largefile     omit support for large files
1461
1462 Optional Packages:
1463   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1464   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1465   --without-alsa          do not use the Alsa sound support
1466   --without-capi          do not use CAPI (ISDN support)
1467   --without-cms           do not use CMS (color management support)
1468   --without-coreaudio     do not use the CoreAudio sound support
1469   --without-cups          do not use CUPS
1470   --without-curses        do not use (n)curses
1471   --without-esd           do not use the EsounD sound support
1472   --without-fontconfig    do not use fontconfig
1473   --without-freetype      do not use the FreeType library
1474   --without-gettextpo     do not use the GetTextPO library
1475   --without-gphoto        do not use gphoto (Digital Camera support)
1476   --without-glu           do not use the GLU library
1477   --without-gnutls        do not use GnuTLS (schannel support)
1478   --without-gsm           do not use libgsm (GSM 06.10 codec support)
1479   --without-gstreamer     do not use GStreamer (codecs support)
1480   --without-hal           do not use HAL (dynamic device support)
1481   --without-jack          do not use the Jack sound support
1482   --without-jpeg          do not use JPEG
1483   --without-ldap          do not use LDAP
1484   --without-mpg123        do not use the mpg123 library
1485   --without-nas           do not use the NAS sound support
1486   --without-openal        do not use OpenAL
1487   --without-opencl        do not use OpenCL
1488   --without-opengl        do not use OpenGL
1489   --without-openssl       do not use OpenSSL
1490   --without-oss           do not use the OSS sound support
1491   --without-png           do not use PNG
1492   --without-pthread       do not use the pthread library
1493   --without-sane          do not use SANE (scanner support)
1494   --without-tiff          do not use TIFF
1495   --without-v4l           do not use v4l1 (v4l support)
1496   --without-xcomposite    do not use the Xcomposite extension
1497   --without-xcursor       do not use the Xcursor extension
1498   --without-xinerama      do not use Xinerama (multi-monitor support)
1499   --without-xinput        do not use the Xinput extension
1500   --without-xml           do not use XML
1501   --without-xrandr        do not use Xrandr (resolution changes)
1502   --without-xrender       do not use the Xrender extension
1503   --without-xshape        do not use the Xshape extension
1504   --without-xshm          do not use XShm (shared memory extension)
1505   --without-xslt          do not use XSLT
1506   --without-xxf86vm       do not use XFree video mode extension
1507   --without-zlib          do not use Zlib (data compression)
1508   --with-wine-tools=DIR   use Wine tools from directory DIR
1509   --with-wine64=DIR       use the 64-bit Wine in DIR for a Wow64 build
1510   --with-x                use the X Window System
1511
1512 Some influential environment variables:
1513   CC          C compiler command
1514   CFLAGS      C compiler flags
1515   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1516               nonstandard directory <lib dir>
1517   LIBS        libraries to pass to the linker, e.g. -l<library>
1518   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1519               you have headers in a nonstandard directory <include dir>
1520   CXX         C++ compiler command
1521   CXXFLAGS    C++ compiler flags
1522   CPP         C preprocessor
1523   XMKMF       Path to xmkmf, Makefile generator for X Window System
1524
1525 Use these variables to override the choices made by `configure' or to help
1526 it to find libraries and programs with nonstandard names/locations.
1527
1528 Report bugs to <wine-devel@winehq.org>.
1529 Wine home page: <http://www.winehq.org>.
1530 _ACEOF
1531 ac_status=$?
1532 fi
1533
1534 if test "$ac_init_help" = "recursive"; then
1535   # If there are subdirs, report their specific --help.
1536   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1537     test -d "$ac_dir" ||
1538       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1539       continue
1540     ac_builddir=.
1541
1542 case "$ac_dir" in
1543 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1544 *)
1545   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1546   # A ".." for each directory in $ac_dir_suffix.
1547   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1548   case $ac_top_builddir_sub in
1549   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1550   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1551   esac ;;
1552 esac
1553 ac_abs_top_builddir=$ac_pwd
1554 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1555 # for backward compatibility:
1556 ac_top_builddir=$ac_top_build_prefix
1557
1558 case $srcdir in
1559   .)  # We are building in place.
1560     ac_srcdir=.
1561     ac_top_srcdir=$ac_top_builddir_sub
1562     ac_abs_top_srcdir=$ac_pwd ;;
1563   [\\/]* | ?:[\\/]* )  # Absolute name.
1564     ac_srcdir=$srcdir$ac_dir_suffix;
1565     ac_top_srcdir=$srcdir
1566     ac_abs_top_srcdir=$srcdir ;;
1567   *) # Relative name.
1568     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1569     ac_top_srcdir=$ac_top_build_prefix$srcdir
1570     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1571 esac
1572 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1573
1574     cd "$ac_dir" || { ac_status=$?; continue; }
1575     # Check for guested configure.
1576     if test -f "$ac_srcdir/configure.gnu"; then
1577       echo &&
1578       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1579     elif test -f "$ac_srcdir/configure"; then
1580       echo &&
1581       $SHELL "$ac_srcdir/configure" --help=recursive
1582     else
1583       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1584     fi || ac_status=$?
1585     cd "$ac_pwd" || { ac_status=$?; break; }
1586   done
1587 fi
1588
1589 test -n "$ac_init_help" && exit $ac_status
1590 if $ac_init_version; then
1591   cat <<\_ACEOF
1592 Wine configure 1.3.15
1593 generated by GNU Autoconf 2.67
1594
1595 Copyright (C) 2010 Free Software Foundation, Inc.
1596 This configure script is free software; the Free Software Foundation
1597 gives unlimited permission to copy, distribute and modify it.
1598 _ACEOF
1599   exit
1600 fi
1601
1602 ## ------------------------ ##
1603 ## Autoconf initialization. ##
1604 ## ------------------------ ##
1605
1606 # ac_fn_c_try_compile LINENO
1607 # --------------------------
1608 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1609 ac_fn_c_try_compile ()
1610 {
1611   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1612   rm -f conftest.$ac_objext
1613   if { { ac_try="$ac_compile"
1614 case "(($ac_try" in
1615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1616   *) ac_try_echo=$ac_try;;
1617 esac
1618 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1619 $as_echo "$ac_try_echo"; } >&5
1620   (eval "$ac_compile") 2>conftest.err
1621   ac_status=$?
1622   if test -s conftest.err; then
1623     grep -v '^ *+' conftest.err >conftest.er1
1624     cat conftest.er1 >&5
1625     mv -f conftest.er1 conftest.err
1626   fi
1627   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1628   test $ac_status = 0; } && {
1629          test -z "$ac_c_werror_flag" ||
1630          test ! -s conftest.err
1631        } && test -s conftest.$ac_objext; then :
1632   ac_retval=0
1633 else
1634   $as_echo "$as_me: failed program was:" >&5
1635 sed 's/^/| /' conftest.$ac_ext >&5
1636
1637         ac_retval=1
1638 fi
1639   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1640   as_fn_set_status $ac_retval
1641
1642 } # ac_fn_c_try_compile
1643
1644 # ac_fn_cxx_try_compile LINENO
1645 # ----------------------------
1646 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1647 ac_fn_cxx_try_compile ()
1648 {
1649   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1650   rm -f conftest.$ac_objext
1651   if { { ac_try="$ac_compile"
1652 case "(($ac_try" in
1653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1654   *) ac_try_echo=$ac_try;;
1655 esac
1656 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1657 $as_echo "$ac_try_echo"; } >&5
1658   (eval "$ac_compile") 2>conftest.err
1659   ac_status=$?
1660   if test -s conftest.err; then
1661     grep -v '^ *+' conftest.err >conftest.er1
1662     cat conftest.er1 >&5
1663     mv -f conftest.er1 conftest.err
1664   fi
1665   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1666   test $ac_status = 0; } && {
1667          test -z "$ac_cxx_werror_flag" ||
1668          test ! -s conftest.err
1669        } && test -s conftest.$ac_objext; then :
1670   ac_retval=0
1671 else
1672   $as_echo "$as_me: failed program was:" >&5
1673 sed 's/^/| /' conftest.$ac_ext >&5
1674
1675         ac_retval=1
1676 fi
1677   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1678   as_fn_set_status $ac_retval
1679
1680 } # ac_fn_cxx_try_compile
1681
1682 # ac_fn_c_try_link LINENO
1683 # -----------------------
1684 # Try to link conftest.$ac_ext, and return whether this succeeded.
1685 ac_fn_c_try_link ()
1686 {
1687   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1688   rm -f conftest.$ac_objext conftest$ac_exeext
1689   if { { ac_try="$ac_link"
1690 case "(($ac_try" in
1691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1692   *) ac_try_echo=$ac_try;;
1693 esac
1694 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1695 $as_echo "$ac_try_echo"; } >&5
1696   (eval "$ac_link") 2>conftest.err
1697   ac_status=$?
1698   if test -s conftest.err; then
1699     grep -v '^ *+' conftest.err >conftest.er1
1700     cat conftest.er1 >&5
1701     mv -f conftest.er1 conftest.err
1702   fi
1703   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1704   test $ac_status = 0; } && {
1705          test -z "$ac_c_werror_flag" ||
1706          test ! -s conftest.err
1707        } && test -s conftest$ac_exeext && {
1708          test "$cross_compiling" = yes ||
1709          $as_test_x conftest$ac_exeext
1710        }; then :
1711   ac_retval=0
1712 else
1713   $as_echo "$as_me: failed program was:" >&5
1714 sed 's/^/| /' conftest.$ac_ext >&5
1715
1716         ac_retval=1
1717 fi
1718   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1719   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1720   # interfere with the next link command; also delete a directory that is
1721   # left behind by Apple's compiler.  We do this before executing the actions.
1722   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1723   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1724   as_fn_set_status $ac_retval
1725
1726 } # ac_fn_c_try_link
1727
1728 # ac_fn_c_try_cpp LINENO
1729 # ----------------------
1730 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1731 ac_fn_c_try_cpp ()
1732 {
1733   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1734   if { { ac_try="$ac_cpp conftest.$ac_ext"
1735 case "(($ac_try" in
1736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1737   *) ac_try_echo=$ac_try;;
1738 esac
1739 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1740 $as_echo "$ac_try_echo"; } >&5
1741   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1742   ac_status=$?
1743   if test -s conftest.err; then
1744     grep -v '^ *+' conftest.err >conftest.er1
1745     cat conftest.er1 >&5
1746     mv -f conftest.er1 conftest.err
1747   fi
1748   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1749   test $ac_status = 0; } > conftest.i && {
1750          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1751          test ! -s conftest.err
1752        }; then :
1753   ac_retval=0
1754 else
1755   $as_echo "$as_me: failed program was:" >&5
1756 sed 's/^/| /' conftest.$ac_ext >&5
1757
1758     ac_retval=1
1759 fi
1760   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1761   as_fn_set_status $ac_retval
1762
1763 } # ac_fn_c_try_cpp
1764
1765 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1766 # -------------------------------------------------------
1767 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1768 # the include files in INCLUDES and setting the cache variable VAR
1769 # accordingly.
1770 ac_fn_c_check_header_mongrel ()
1771 {
1772   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1773   if eval "test \"\${$3+set}\"" = set; then :
1774   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1775 $as_echo_n "checking for $2... " >&6; }
1776 if eval "test \"\${$3+set}\"" = set; then :
1777   $as_echo_n "(cached) " >&6
1778 fi
1779 eval ac_res=\$$3
1780                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1781 $as_echo "$ac_res" >&6; }
1782 else
1783   # Is the header compilable?
1784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1785 $as_echo_n "checking $2 usability... " >&6; }
1786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1787 /* end confdefs.h.  */
1788 $4
1789 #include <$2>
1790 _ACEOF
1791 if ac_fn_c_try_compile "$LINENO"; then :
1792   ac_header_compiler=yes
1793 else
1794   ac_header_compiler=no
1795 fi
1796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1798 $as_echo "$ac_header_compiler" >&6; }
1799
1800 # Is the header present?
1801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1802 $as_echo_n "checking $2 presence... " >&6; }
1803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1804 /* end confdefs.h.  */
1805 #include <$2>
1806 _ACEOF
1807 if ac_fn_c_try_cpp "$LINENO"; then :
1808   ac_header_preproc=yes
1809 else
1810   ac_header_preproc=no
1811 fi
1812 rm -f conftest.err conftest.i conftest.$ac_ext
1813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1814 $as_echo "$ac_header_preproc" >&6; }
1815
1816 # So?  What about this header?
1817 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1818   yes:no: )
1819     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1820 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1821     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1822 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1823     ;;
1824   no:yes:* )
1825     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1826 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1827     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1828 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1829     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1830 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1831     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1832 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1833     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1834 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1835 ( $as_echo "## ------------------------------------ ##
1836 ## Report this to wine-devel@winehq.org ##
1837 ## ------------------------------------ ##"
1838      ) | sed "s/^/$as_me: WARNING:     /" >&2
1839     ;;
1840 esac
1841   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1842 $as_echo_n "checking for $2... " >&6; }
1843 if eval "test \"\${$3+set}\"" = set; then :
1844   $as_echo_n "(cached) " >&6
1845 else
1846   eval "$3=\$ac_header_compiler"
1847 fi
1848 eval ac_res=\$$3
1849                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1850 $as_echo "$ac_res" >&6; }
1851 fi
1852   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1853
1854 } # ac_fn_c_check_header_mongrel
1855
1856 # ac_fn_c_try_run LINENO
1857 # ----------------------
1858 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1859 # that executables *can* be run.
1860 ac_fn_c_try_run ()
1861 {
1862   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1863   if { { ac_try="$ac_link"
1864 case "(($ac_try" in
1865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1866   *) ac_try_echo=$ac_try;;
1867 esac
1868 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1869 $as_echo "$ac_try_echo"; } >&5
1870   (eval "$ac_link") 2>&5
1871   ac_status=$?
1872   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1873   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1874   { { case "(($ac_try" in
1875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1876   *) ac_try_echo=$ac_try;;
1877 esac
1878 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1879 $as_echo "$ac_try_echo"; } >&5
1880   (eval "$ac_try") 2>&5
1881   ac_status=$?
1882   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1883   test $ac_status = 0; }; }; then :
1884   ac_retval=0
1885 else
1886   $as_echo "$as_me: program exited with status $ac_status" >&5
1887        $as_echo "$as_me: failed program was:" >&5
1888 sed 's/^/| /' conftest.$ac_ext >&5
1889
1890        ac_retval=$ac_status
1891 fi
1892   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1893   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1894   as_fn_set_status $ac_retval
1895
1896 } # ac_fn_c_try_run
1897
1898 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1899 # -------------------------------------------------------
1900 # Tests whether HEADER exists and can be compiled using the include files in
1901 # INCLUDES, setting the cache variable VAR accordingly.
1902 ac_fn_c_check_header_compile ()
1903 {
1904   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1905   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1906 $as_echo_n "checking for $2... " >&6; }
1907 if eval "test \"\${$3+set}\"" = set; then :
1908   $as_echo_n "(cached) " >&6
1909 else
1910   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1911 /* end confdefs.h.  */
1912 $4
1913 #include <$2>
1914 _ACEOF
1915 if ac_fn_c_try_compile "$LINENO"; then :
1916   eval "$3=yes"
1917 else
1918   eval "$3=no"
1919 fi
1920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1921 fi
1922 eval ac_res=\$$3
1923                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1924 $as_echo "$ac_res" >&6; }
1925   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1926
1927 } # ac_fn_c_check_header_compile
1928
1929 # ac_fn_c_check_func LINENO FUNC VAR
1930 # ----------------------------------
1931 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1932 ac_fn_c_check_func ()
1933 {
1934   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1935   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1936 $as_echo_n "checking for $2... " >&6; }
1937 if eval "test \"\${$3+set}\"" = set; then :
1938   $as_echo_n "(cached) " >&6
1939 else
1940   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1941 /* end confdefs.h.  */
1942 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1943    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1944 #define $2 innocuous_$2
1945
1946 /* System header to define __stub macros and hopefully few prototypes,
1947     which can conflict with char $2 (); below.
1948     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1949     <limits.h> exists even on freestanding compilers.  */
1950
1951 #ifdef __STDC__
1952 # include <limits.h>
1953 #else
1954 # include <assert.h>
1955 #endif
1956
1957 #undef $2
1958
1959 /* Override any GCC internal prototype to avoid an error.
1960    Use char because int might match the return type of a GCC
1961    builtin and then its argument prototype would still apply.  */
1962 #ifdef __cplusplus
1963 extern "C"
1964 #endif
1965 char $2 ();
1966 /* The GNU C library defines this for functions which it implements
1967     to always fail with ENOSYS.  Some functions are actually named
1968     something starting with __ and the normal name is an alias.  */
1969 #if defined __stub_$2 || defined __stub___$2
1970 choke me
1971 #endif
1972
1973 int
1974 main ()
1975 {
1976 return $2 ();
1977   ;
1978   return 0;
1979 }
1980 _ACEOF
1981 if ac_fn_c_try_link "$LINENO"; then :
1982   eval "$3=yes"
1983 else
1984   eval "$3=no"
1985 fi
1986 rm -f core conftest.err conftest.$ac_objext \
1987     conftest$ac_exeext conftest.$ac_ext
1988 fi
1989 eval ac_res=\$$3
1990                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1991 $as_echo "$ac_res" >&6; }
1992   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1993
1994 } # ac_fn_c_check_func
1995
1996 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1997 # ----------------------------------------------------
1998 # Tries to find if the field MEMBER exists in type AGGR, after including
1999 # INCLUDES, setting cache variable VAR accordingly.
2000 ac_fn_c_check_member ()
2001 {
2002   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2003   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2004 $as_echo_n "checking for $2.$3... " >&6; }
2005 if eval "test \"\${$4+set}\"" = set; then :
2006   $as_echo_n "(cached) " >&6
2007 else
2008   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2009 /* end confdefs.h.  */
2010 $5
2011 int
2012 main ()
2013 {
2014 static $2 ac_aggr;
2015 if (ac_aggr.$3)
2016 return 0;
2017   ;
2018   return 0;
2019 }
2020 _ACEOF
2021 if ac_fn_c_try_compile "$LINENO"; then :
2022   eval "$4=yes"
2023 else
2024   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2025 /* end confdefs.h.  */
2026 $5
2027 int
2028 main ()
2029 {
2030 static $2 ac_aggr;
2031 if (sizeof ac_aggr.$3)
2032 return 0;
2033   ;
2034   return 0;
2035 }
2036 _ACEOF
2037 if ac_fn_c_try_compile "$LINENO"; then :
2038   eval "$4=yes"
2039 else
2040   eval "$4=no"
2041 fi
2042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2043 fi
2044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2045 fi
2046 eval ac_res=\$$4
2047                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2048 $as_echo "$ac_res" >&6; }
2049   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2050
2051 } # ac_fn_c_check_member
2052
2053 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2054 # -------------------------------------------
2055 # Tests whether TYPE exists after having included INCLUDES, setting cache
2056 # variable VAR accordingly.
2057 ac_fn_c_check_type ()
2058 {
2059   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2060   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2061 $as_echo_n "checking for $2... " >&6; }
2062 if eval "test \"\${$3+set}\"" = set; then :
2063   $as_echo_n "(cached) " >&6
2064 else
2065   eval "$3=no"
2066   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2067 /* end confdefs.h.  */
2068 $4
2069 int
2070 main ()
2071 {
2072 if (sizeof ($2))
2073          return 0;
2074   ;
2075   return 0;
2076 }
2077 _ACEOF
2078 if ac_fn_c_try_compile "$LINENO"; then :
2079   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2080 /* end confdefs.h.  */
2081 $4
2082 int
2083 main ()
2084 {
2085 if (sizeof (($2)))
2086             return 0;
2087   ;
2088   return 0;
2089 }
2090 _ACEOF
2091 if ac_fn_c_try_compile "$LINENO"; then :
2092
2093 else
2094   eval "$3=yes"
2095 fi
2096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2097 fi
2098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2099 fi
2100 eval ac_res=\$$3
2101                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2102 $as_echo "$ac_res" >&6; }
2103   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2104
2105 } # ac_fn_c_check_type
2106 cat >config.log <<_ACEOF
2107 This file contains any messages produced by compilers while
2108 running configure, to aid debugging if configure makes a mistake.
2109
2110 It was created by Wine $as_me 1.3.15, which was
2111 generated by GNU Autoconf 2.67.  Invocation command line was
2112
2113   $ $0 $@
2114
2115 _ACEOF
2116 exec 5>>config.log
2117 {
2118 cat <<_ASUNAME
2119 ## --------- ##
2120 ## Platform. ##
2121 ## --------- ##
2122
2123 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2124 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2125 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2126 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2127 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2128
2129 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2130 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2131
2132 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2133 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2134 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2135 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2136 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2137 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2138 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2139
2140 _ASUNAME
2141
2142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2143 for as_dir in $PATH
2144 do
2145   IFS=$as_save_IFS
2146   test -z "$as_dir" && as_dir=.
2147     $as_echo "PATH: $as_dir"
2148   done
2149 IFS=$as_save_IFS
2150
2151 } >&5
2152
2153 cat >&5 <<_ACEOF
2154
2155
2156 ## ----------- ##
2157 ## Core tests. ##
2158 ## ----------- ##
2159
2160 _ACEOF
2161
2162
2163 # Keep a trace of the command line.
2164 # Strip out --no-create and --no-recursion so they do not pile up.
2165 # Strip out --silent because we don't want to record it for future runs.
2166 # Also quote any args containing shell meta-characters.
2167 # Make two passes to allow for proper duplicate-argument suppression.
2168 ac_configure_args=
2169 ac_configure_args0=
2170 ac_configure_args1=
2171 ac_must_keep_next=false
2172 for ac_pass in 1 2
2173 do
2174   for ac_arg
2175   do
2176     case $ac_arg in
2177     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2178     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2179     | -silent | --silent | --silen | --sile | --sil)
2180       continue ;;
2181     *\'*)
2182       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2183     esac
2184     case $ac_pass in
2185     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2186     2)
2187       as_fn_append ac_configure_args1 " '$ac_arg'"
2188       if test $ac_must_keep_next = true; then
2189         ac_must_keep_next=false # Got value, back to normal.
2190       else
2191         case $ac_arg in
2192           *=* | --config-cache | -C | -disable-* | --disable-* \
2193           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2194           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2195           | -with-* | --with-* | -without-* | --without-* | --x)
2196             case "$ac_configure_args0 " in
2197               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2198             esac
2199             ;;
2200           -* ) ac_must_keep_next=true ;;
2201         esac
2202       fi
2203       as_fn_append ac_configure_args " '$ac_arg'"
2204       ;;
2205     esac
2206   done
2207 done
2208 { ac_configure_args0=; unset ac_configure_args0;}
2209 { ac_configure_args1=; unset ac_configure_args1;}
2210
2211 # When interrupted or exit'd, cleanup temporary files, and complete
2212 # config.log.  We remove comments because anyway the quotes in there
2213 # would cause problems or look ugly.
2214 # WARNING: Use '\'' to represent an apostrophe within the trap.
2215 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2216 trap 'exit_status=$?
2217   # Save into config.log some information that might help in debugging.
2218   {
2219     echo
2220
2221     $as_echo "## ---------------- ##
2222 ## Cache variables. ##
2223 ## ---------------- ##"
2224     echo
2225     # The following way of writing the cache mishandles newlines in values,
2226 (
2227   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2228     eval ac_val=\$$ac_var
2229     case $ac_val in #(
2230     *${as_nl}*)
2231       case $ac_var in #(
2232       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2233 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2234       esac
2235       case $ac_var in #(
2236       _ | IFS | as_nl) ;; #(
2237       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2238       *) { eval $ac_var=; unset $ac_var;} ;;
2239       esac ;;
2240     esac
2241   done
2242   (set) 2>&1 |
2243     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2244     *${as_nl}ac_space=\ *)
2245       sed -n \
2246         "s/'\''/'\''\\\\'\'''\''/g;
2247           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2248       ;; #(
2249     *)
2250       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2251       ;;
2252     esac |
2253     sort
2254 )
2255     echo
2256
2257     $as_echo "## ----------------- ##
2258 ## Output variables. ##
2259 ## ----------------- ##"
2260     echo
2261     for ac_var in $ac_subst_vars
2262     do
2263       eval ac_val=\$$ac_var
2264       case $ac_val in
2265       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2266       esac
2267       $as_echo "$ac_var='\''$ac_val'\''"
2268     done | sort
2269     echo
2270
2271     if test -n "$ac_subst_files"; then
2272       $as_echo "## ------------------- ##
2273 ## File substitutions. ##
2274 ## ------------------- ##"
2275       echo
2276       for ac_var in $ac_subst_files
2277       do
2278         eval ac_val=\$$ac_var
2279         case $ac_val in
2280         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2281         esac
2282         $as_echo "$ac_var='\''$ac_val'\''"
2283       done | sort
2284       echo
2285     fi
2286
2287     if test -s confdefs.h; then
2288       $as_echo "## ----------- ##
2289 ## confdefs.h. ##
2290 ## ----------- ##"
2291       echo
2292       cat confdefs.h
2293       echo
2294     fi
2295     test "$ac_signal" != 0 &&
2296       $as_echo "$as_me: caught signal $ac_signal"
2297     $as_echo "$as_me: exit $exit_status"
2298   } >&5
2299   rm -f core *.core core.conftest.* &&
2300     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2301     exit $exit_status
2302 ' 0
2303 for ac_signal in 1 2 13 15; do
2304   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2305 done
2306 ac_signal=0
2307
2308 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2309 rm -f -r conftest* confdefs.h
2310
2311 $as_echo "/* confdefs.h */" > confdefs.h
2312
2313 # Predefined preprocessor variables.
2314
2315 cat >>confdefs.h <<_ACEOF
2316 #define PACKAGE_NAME "$PACKAGE_NAME"
2317 _ACEOF
2318
2319 cat >>confdefs.h <<_ACEOF
2320 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2321 _ACEOF
2322
2323 cat >>confdefs.h <<_ACEOF
2324 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2325 _ACEOF
2326
2327 cat >>confdefs.h <<_ACEOF
2328 #define PACKAGE_STRING "$PACKAGE_STRING"
2329 _ACEOF
2330
2331 cat >>confdefs.h <<_ACEOF
2332 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2333 _ACEOF
2334
2335 cat >>confdefs.h <<_ACEOF
2336 #define PACKAGE_URL "$PACKAGE_URL"
2337 _ACEOF
2338
2339
2340 # Let the site file select an alternate cache file if it wants to.
2341 # Prefer an explicitly selected file to automatically selected ones.
2342 ac_site_file1=NONE
2343 ac_site_file2=NONE
2344 if test -n "$CONFIG_SITE"; then
2345   # We do not want a PATH search for config.site.
2346   case $CONFIG_SITE in #((
2347     -*)  ac_site_file1=./$CONFIG_SITE;;
2348     */*) ac_site_file1=$CONFIG_SITE;;
2349     *)   ac_site_file1=./$CONFIG_SITE;;
2350   esac
2351 elif test "x$prefix" != xNONE; then
2352   ac_site_file1=$prefix/share/config.site
2353   ac_site_file2=$prefix/etc/config.site
2354 else
2355   ac_site_file1=$ac_default_prefix/share/config.site
2356   ac_site_file2=$ac_default_prefix/etc/config.site
2357 fi
2358 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2359 do
2360   test "x$ac_site_file" = xNONE && continue
2361   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2362     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2363 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2364     sed 's/^/| /' "$ac_site_file" >&5
2365     . "$ac_site_file" \
2366       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2367 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2368 as_fn_error $? "failed to load site script $ac_site_file
2369 See \`config.log' for more details" "$LINENO" 5 ; }
2370   fi
2371 done
2372
2373 if test -r "$cache_file"; then
2374   # Some versions of bash will fail to source /dev/null (special files
2375   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2376   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2377     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2378 $as_echo "$as_me: loading cache $cache_file" >&6;}
2379     case $cache_file in
2380       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2381       *)                      . "./$cache_file";;
2382     esac
2383   fi
2384 else
2385   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2386 $as_echo "$as_me: creating cache $cache_file" >&6;}
2387   >$cache_file
2388 fi
2389
2390 # Check that the precious variables saved in the cache have kept the same
2391 # value.
2392 ac_cache_corrupted=false
2393 for ac_var in $ac_precious_vars; do
2394   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2395   eval ac_new_set=\$ac_env_${ac_var}_set
2396   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2397   eval ac_new_val=\$ac_env_${ac_var}_value
2398   case $ac_old_set,$ac_new_set in
2399     set,)
2400       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2401 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2402       ac_cache_corrupted=: ;;
2403     ,set)
2404       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2405 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2406       ac_cache_corrupted=: ;;
2407     ,);;
2408     *)
2409       if test "x$ac_old_val" != "x$ac_new_val"; then
2410         # differences in whitespace do not lead to failure.
2411         ac_old_val_w=`echo x $ac_old_val`
2412         ac_new_val_w=`echo x $ac_new_val`
2413         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2414           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2415 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2416           ac_cache_corrupted=:
2417         else
2418           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2419 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2420           eval $ac_var=\$ac_old_val
2421         fi
2422         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2423 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2424         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2425 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2426       fi;;
2427   esac
2428   # Pass precious variables to config.status.
2429   if test "$ac_new_set" = set; then
2430     case $ac_new_val in
2431     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2432     *) ac_arg=$ac_var=$ac_new_val ;;
2433     esac
2434     case " $ac_configure_args " in
2435       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2436       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2437     esac
2438   fi
2439 done
2440 if $ac_cache_corrupted; then
2441   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2442 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2443   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2444 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2445   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2446 fi
2447 ## -------------------- ##
2448 ## Main body of script. ##
2449 ## -------------------- ##
2450
2451 ac_ext=c
2452 ac_cpp='$CPP $CPPFLAGS'
2453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2456
2457
2458
2459 ac_config_headers="$ac_config_headers include/config.h"
2460
2461 ac_aux_dir=
2462 for ac_dir in tools "$srcdir"/tools; do
2463   if test -f "$ac_dir/install-sh"; then
2464     ac_aux_dir=$ac_dir
2465     ac_install_sh="$ac_aux_dir/install-sh -c"
2466     break
2467   elif test -f "$ac_dir/install.sh"; then
2468     ac_aux_dir=$ac_dir
2469     ac_install_sh="$ac_aux_dir/install.sh -c"
2470     break
2471   elif test -f "$ac_dir/shtool"; then
2472     ac_aux_dir=$ac_dir
2473     ac_install_sh="$ac_aux_dir/shtool install -c"
2474     break
2475   fi
2476 done
2477 if test -z "$ac_aux_dir"; then
2478   as_fn_error $? "cannot find install-sh, install.sh, or shtool in tools \"$srcdir\"/tools" "$LINENO" 5
2479 fi
2480
2481 # These three variables are undocumented and unsupported,
2482 # and are intended to be withdrawn in a future Autoconf release.
2483 # They can cause serious problems if a builder's source tree is in a directory
2484 # whose full name contains unusual characters.
2485 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2486 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2487 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2488
2489
2490
2491
2492
2493 # Check whether --enable-win16 was given.
2494 if test "${enable_win16+set}" = set; then :
2495   enableval=$enable_win16;
2496 fi
2497
2498 # Check whether --enable-win64 was given.
2499 if test "${enable_win64+set}" = set; then :
2500   enableval=$enable_win64;
2501 fi
2502
2503 # Check whether --enable-tests was given.
2504 if test "${enable_tests+set}" = set; then :
2505   enableval=$enable_tests;
2506 fi
2507
2508 # Check whether --enable-maintainer-mode was given.
2509 if test "${enable_maintainer_mode+set}" = set; then :
2510   enableval=$enable_maintainer_mode;
2511 fi
2512
2513
2514
2515 # Check whether --with-alsa was given.
2516 if test "${with_alsa+set}" = set; then :
2517   withval=$with_alsa; if test "x$withval" = "xno"; then ac_cv_header_sys_asoundlib_h=no; ac_cv_header_alsa_asoundlib_h=no; fi
2518 fi
2519
2520
2521 # Check whether --with-capi was given.
2522 if test "${with_capi+set}" = set; then :
2523   withval=$with_capi; if test "x$withval" = "xno"; then ac_cv_header_capi20_h=no; ac_cv_header_linux_capi_h=no; fi
2524 fi
2525
2526
2527 # Check whether --with-cms was given.
2528 if test "${with_cms+set}" = set; then :
2529   withval=$with_cms; if test "x$withval" = "xno"; then ac_cv_header_lcms_h=no; ac_cv_header_lcms_lcms_h=no; fi
2530 fi
2531
2532
2533 # Check whether --with-coreaudio was given.
2534 if test "${with_coreaudio+set}" = set; then :
2535   withval=$with_coreaudio; if test "x$withval" = "xno"; then ac_cv_header_CoreAudio_CoreAudio_h=no; fi
2536 fi
2537
2538
2539 # Check whether --with-cups was given.
2540 if test "${with_cups+set}" = set; then :
2541   withval=$with_cups;
2542 fi
2543
2544
2545 # Check whether --with-curses was given.
2546 if test "${with_curses+set}" = set; then :
2547   withval=$with_curses; if test "x$withval" = "xno"; then ac_cv_header_ncurses_h=no; ac_cv_header_curses_h=no; fi
2548 fi
2549
2550
2551 # Check whether --with-esd was given.
2552 if test "${with_esd+set}" = set; then :
2553   withval=$with_esd;
2554 fi
2555
2556
2557 # Check whether --with-fontconfig was given.
2558 if test "${with_fontconfig+set}" = set; then :
2559   withval=$with_fontconfig; if test "x$withval" = "xno"; then ac_cv_header_fontconfig_fontconfig_h=no; fi
2560 fi
2561
2562
2563 # Check whether --with-freetype was given.
2564 if test "${with_freetype+set}" = set; then :
2565   withval=$with_freetype;
2566 fi
2567
2568
2569 # Check whether --with-gettextpo was given.
2570 if test "${with_gettextpo+set}" = set; then :
2571   withval=$with_gettextpo; if test "x$withval" = "xno"; then ac_cv_header_gettext_po_h=no; fi
2572 fi
2573
2574
2575 # Check whether --with-gphoto was given.
2576 if test "${with_gphoto+set}" = set; then :
2577   withval=$with_gphoto;
2578 fi
2579
2580
2581 # Check whether --with-glu was given.
2582 if test "${with_glu+set}" = set; then :
2583   withval=$with_glu; if test "x$withval" = "xno"; then ac_cv_header_GL_glu_h=no; fi
2584 fi
2585
2586
2587 # Check whether --with-gnutls was given.
2588 if test "${with_gnutls+set}" = set; then :
2589   withval=$with_gnutls;
2590 fi
2591
2592
2593 # Check whether --with-gsm was given.
2594 if test "${with_gsm+set}" = set; then :
2595   withval=$with_gsm; if test "x$withval" = "xno"; then ac_cv_header_gsm_h=no; ac_cv_header_gsm_gsm_h=no; fi
2596 fi
2597
2598
2599 # Check whether --with-gstreamer was given.
2600 if test "${with_gstreamer+set}" = set; then :
2601   withval=$with_gstreamer;
2602 fi
2603
2604
2605 # Check whether --with-hal was given.
2606 if test "${with_hal+set}" = set; then :
2607   withval=$with_hal;
2608 fi
2609
2610
2611 # Check whether --with-jack was given.
2612 if test "${with_jack+set}" = set; then :
2613   withval=$with_jack; if test "x$withval" = "xno"; then ac_cv_header_jack_jack_h=no; fi
2614 fi
2615
2616
2617 # Check whether --with-jpeg was given.
2618 if test "${with_jpeg+set}" = set; then :
2619   withval=$with_jpeg; if test "x$withval" = "xno"; then ac_cv_header_jpeglib_h=no; fi
2620 fi
2621
2622
2623 # Check whether --with-ldap was given.
2624 if test "${with_ldap+set}" = set; then :
2625   withval=$with_ldap; if test "x$withval" = "xno"; then ac_cv_header_ldap_h=no; ac_cv_header_lber_h=no; fi
2626 fi
2627
2628
2629 # Check whether --with-mpg123 was given.
2630 if test "${with_mpg123+set}" = set; then :
2631   withval=$with_mpg123; if test "x$withval" = "xno"; then ac_cv_header_mpg123_h=no; fi
2632 fi
2633
2634
2635 # Check whether --with-nas was given.
2636 if test "${with_nas+set}" = set; then :
2637   withval=$with_nas; if test "x$withval" = "xno"; then ac_cv_header_audio_audiolib_h=no; fi
2638 fi
2639
2640
2641 # Check whether --with-openal was given.
2642 if test "${with_openal+set}" = set; then :
2643   withval=$with_openal; if test "x$withval" = "xno"; then ac_cv_header_AL_al_h=no; ac_cv_header_OpenAL_al_h=no; fi
2644 fi
2645
2646
2647 # Check whether --with-opencl was given.
2648 if test "${with_opencl+set}" = set; then :
2649   withval=$with_opencl; if test "x$withval" = "xno"; then ac_cv_header_CL_cl_h=no; ac_cv_header_OpenCL_opencl_h=no; fi
2650 fi
2651
2652
2653 # Check whether --with-opengl was given.
2654 if test "${with_opengl+set}" = set; then :
2655   withval=$with_opengl;
2656 fi
2657
2658
2659 # Check whether --with-openssl was given.
2660 if test "${with_openssl+set}" = set; then :
2661   withval=$with_openssl; if test "x$withval" = "xno"; then ac_cv_header_openssl_err_h=no; ac_cv_header_openssl_ssl_h=no; fi
2662 fi
2663
2664
2665 # Check whether --with-oss was given.
2666 if test "${with_oss+set}" = set; then :
2667   withval=$with_oss; if test "x$withval" = "xno"; then ac_cv_header_soundcard_h=no; ac_cv_header_sys_soundcard_h=no; ac_cv_header_machine_soundcard_h=no; fi
2668 fi
2669
2670
2671 # Check whether --with-png was given.
2672 if test "${with_png+set}" = set; then :
2673   withval=$with_png; if test "x$withval" = "xno"; then ac_cv_header_png_h=no; fi
2674 fi
2675
2676
2677 # Check whether --with-pthread was given.
2678 if test "${with_pthread+set}" = set; then :
2679   withval=$with_pthread; if test "x$withval" = "xno"; then ac_cv_header_pthread_h=no; fi
2680 fi
2681
2682
2683 # Check whether --with-sane was given.
2684 if test "${with_sane+set}" = set; then :
2685   withval=$with_sane;
2686 fi
2687
2688
2689 # Check whether --with-tiff was given.
2690 if test "${with_tiff+set}" = set; then :
2691   withval=$with_tiff; if test "x$withval" = "xno"; then ac_cv_header_tiffio_h=no; fi
2692 fi
2693
2694
2695 # Check whether --with-v4l was given.
2696 if test "${with_v4l+set}" = set; then :
2697   withval=$with_v4l;
2698 fi
2699
2700
2701 # Check whether --with-xcomposite was given.
2702 if test "${with_xcomposite+set}" = set; then :
2703   withval=$with_xcomposite; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xcomposite_h=no; fi
2704 fi
2705
2706
2707 # Check whether --with-xcursor was given.
2708 if test "${with_xcursor+set}" = set; then :
2709   withval=$with_xcursor; if test "x$withval" = "xno"; then ac_cv_header_X11_Xcursor_Xcursor_h=no; fi
2710 fi
2711
2712
2713 # Check whether --with-xinerama was given.
2714 if test "${with_xinerama+set}" = set; then :
2715   withval=$with_xinerama; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xinerama_h=no; fi
2716 fi
2717
2718
2719 # Check whether --with-xinput was given.
2720 if test "${with_xinput+set}" = set; then :
2721   withval=$with_xinput; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput_h=no; fi
2722 fi
2723
2724
2725 # Check whether --with-xml was given.
2726 if test "${with_xml+set}" = set; then :
2727   withval=$with_xml;
2728 fi
2729
2730
2731 # Check whether --with-xrandr was given.
2732 if test "${with_xrandr+set}" = set; then :
2733   withval=$with_xrandr; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrandr_h=no; fi
2734 fi
2735
2736
2737 # Check whether --with-xrender was given.
2738 if test "${with_xrender+set}" = set; then :
2739   withval=$with_xrender; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrender_h=no; fi
2740 fi
2741
2742
2743 # Check whether --with-xshape was given.
2744 if test "${with_xshape+set}" = set; then :
2745   withval=$with_xshape; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_shape_h=no; fi
2746 fi
2747
2748
2749 # Check whether --with-xshm was given.
2750 if test "${with_xshm+set}" = set; then :
2751   withval=$with_xshm; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XShm_h=no; fi
2752 fi
2753
2754
2755 # Check whether --with-xslt was given.
2756 if test "${with_xslt+set}" = set; then :
2757   withval=$with_xslt;
2758 fi
2759
2760
2761 # Check whether --with-xxf86vm was given.
2762 if test "${with_xxf86vm+set}" = set; then :
2763   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
2764 fi
2765
2766
2767 # Check whether --with-zlib was given.
2768 if test "${with_zlib+set}" = set; then :
2769   withval=$with_zlib; if test "x$withval" = "xno"; then ac_cv_header_zlib_h=no; fi
2770 fi
2771
2772
2773
2774 # Check whether --with-wine-tools was given.
2775 if test "${with_wine_tools+set}" = set; then :
2776   withval=$with_wine_tools;
2777 fi
2778
2779
2780 # Check whether --with-wine64 was given.
2781 if test "${with_wine64+set}" = set; then :
2782   withval=$with_wine64;
2783 fi
2784
2785
2786 # Make sure we can run config.sub.
2787 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2788   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2789
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2791 $as_echo_n "checking build system type... " >&6; }
2792 if test "${ac_cv_build+set}" = set; then :
2793   $as_echo_n "(cached) " >&6
2794 else
2795   ac_build_alias=$build_alias
2796 test "x$ac_build_alias" = x &&
2797   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2798 test "x$ac_build_alias" = x &&
2799   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2800 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2801   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2802
2803 fi
2804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2805 $as_echo "$ac_cv_build" >&6; }
2806 case $ac_cv_build in
2807 *-*-*) ;;
2808 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
2809 esac
2810 build=$ac_cv_build
2811 ac_save_IFS=$IFS; IFS='-'
2812 set x $ac_cv_build
2813 shift
2814 build_cpu=$1
2815 build_vendor=$2
2816 shift; shift
2817 # Remember, the first character of IFS is used to create $*,
2818 # except with old shells:
2819 build_os=$*
2820 IFS=$ac_save_IFS
2821 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2822
2823
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2825 $as_echo_n "checking host system type... " >&6; }
2826 if test "${ac_cv_host+set}" = set; then :
2827   $as_echo_n "(cached) " >&6
2828 else
2829   if test "x$host_alias" = x; then
2830   ac_cv_host=$ac_cv_build
2831 else
2832   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2833     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2834 fi
2835
2836 fi
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2838 $as_echo "$ac_cv_host" >&6; }
2839 case $ac_cv_host in
2840 *-*-*) ;;
2841 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
2842 esac
2843 host=$ac_cv_host
2844 ac_save_IFS=$IFS; IFS='-'
2845 set x $ac_cv_host
2846 shift
2847 host_cpu=$1
2848 host_vendor=$2
2849 shift; shift
2850 # Remember, the first character of IFS is used to create $*,
2851 # except with old shells:
2852 host_os=$*
2853 IFS=$ac_save_IFS
2854 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2855
2856
2857
2858 case "$srcdir" in
2859  .) ;;
2860  *) if test -f "$srcdir/Makefile" -o -f "$srcdir/include/config.h"; then
2861       as_fn_error $? "you are building out of the source tree, but the source tree contains object files.
2862 You need to run 'make distclean' in the source tree first." "$LINENO" 5
2863     fi ;;
2864 esac
2865
2866
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2868 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2869 set x ${MAKE-make}
2870 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2871 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
2872   $as_echo_n "(cached) " >&6
2873 else
2874   cat >conftest.make <<\_ACEOF
2875 SHELL = /bin/sh
2876 all:
2877         @echo '@@@%%%=$(MAKE)=@@@%%%'
2878 _ACEOF
2879 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2880 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2881   *@@@%%%=?*=@@@%%%*)
2882     eval ac_cv_prog_make_${ac_make}_set=yes;;
2883   *)
2884     eval ac_cv_prog_make_${ac_make}_set=no;;
2885 esac
2886 rm -f conftest.make
2887 fi
2888 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2890 $as_echo "yes" >&6; }
2891   SET_MAKE=
2892 else
2893   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2894 $as_echo "no" >&6; }
2895   SET_MAKE="MAKE=${MAKE-make}"
2896 fi
2897
2898 ac_ext=c
2899 ac_cpp='$CPP $CPPFLAGS'
2900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2903 if test -n "$ac_tool_prefix"; then
2904   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2905 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2907 $as_echo_n "checking for $ac_word... " >&6; }
2908 if test "${ac_cv_prog_CC+set}" = set; then :
2909   $as_echo_n "(cached) " >&6
2910 else
2911   if test -n "$CC"; then
2912   ac_cv_prog_CC="$CC" # Let the user override the test.
2913 else
2914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2915 for as_dir in $PATH
2916 do
2917   IFS=$as_save_IFS
2918   test -z "$as_dir" && as_dir=.
2919     for ac_exec_ext in '' $ac_executable_extensions; do
2920   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2921     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2922     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2923     break 2
2924   fi
2925 done
2926   done
2927 IFS=$as_save_IFS
2928
2929 fi
2930 fi
2931 CC=$ac_cv_prog_CC
2932 if test -n "$CC"; then
2933   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2934 $as_echo "$CC" >&6; }
2935 else
2936   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2937 $as_echo "no" >&6; }
2938 fi
2939
2940
2941 fi
2942 if test -z "$ac_cv_prog_CC"; then
2943   ac_ct_CC=$CC
2944   # Extract the first word of "gcc", so it can be a program name with args.
2945 set dummy gcc; ac_word=$2
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2947 $as_echo_n "checking for $ac_word... " >&6; }
2948 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2949   $as_echo_n "(cached) " >&6
2950 else
2951   if test -n "$ac_ct_CC"; then
2952   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2953 else
2954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2955 for as_dir in $PATH
2956 do
2957   IFS=$as_save_IFS
2958   test -z "$as_dir" && as_dir=.
2959     for ac_exec_ext in '' $ac_executable_extensions; do
2960   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2961     ac_cv_prog_ac_ct_CC="gcc"
2962     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2963     break 2
2964   fi
2965 done
2966   done
2967 IFS=$as_save_IFS
2968
2969 fi
2970 fi
2971 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2972 if test -n "$ac_ct_CC"; then
2973   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2974 $as_echo "$ac_ct_CC" >&6; }
2975 else
2976   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2977 $as_echo "no" >&6; }
2978 fi
2979
2980   if test "x$ac_ct_CC" = x; then
2981     CC=""
2982   else
2983     case $cross_compiling:$ac_tool_warned in
2984 yes:)
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2986 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2987 ac_tool_warned=yes ;;
2988 esac
2989     CC=$ac_ct_CC
2990   fi
2991 else
2992   CC="$ac_cv_prog_CC"
2993 fi
2994
2995 if test -z "$CC"; then
2996           if test -n "$ac_tool_prefix"; then
2997     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2998 set dummy ${ac_tool_prefix}cc; ac_word=$2
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3000 $as_echo_n "checking for $ac_word... " >&6; }
3001 if test "${ac_cv_prog_CC+set}" = set; then :
3002   $as_echo_n "(cached) " >&6
3003 else
3004   if test -n "$CC"; then
3005   ac_cv_prog_CC="$CC" # Let the user override the test.
3006 else
3007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3008 for as_dir in $PATH
3009 do
3010   IFS=$as_save_IFS
3011   test -z "$as_dir" && as_dir=.
3012     for ac_exec_ext in '' $ac_executable_extensions; do
3013   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3014     ac_cv_prog_CC="${ac_tool_prefix}cc"
3015     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3016     break 2
3017   fi
3018 done
3019   done
3020 IFS=$as_save_IFS
3021
3022 fi
3023 fi
3024 CC=$ac_cv_prog_CC
3025 if test -n "$CC"; then
3026   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3027 $as_echo "$CC" >&6; }
3028 else
3029   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3030 $as_echo "no" >&6; }
3031 fi
3032
3033
3034   fi
3035 fi
3036 if test -z "$CC"; then
3037   # Extract the first word of "cc", so it can be a program name with args.
3038 set dummy cc; ac_word=$2
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3040 $as_echo_n "checking for $ac_word... " >&6; }
3041 if test "${ac_cv_prog_CC+set}" = set; then :
3042   $as_echo_n "(cached) " >&6
3043 else
3044   if test -n "$CC"; then
3045   ac_cv_prog_CC="$CC" # Let the user override the test.
3046 else
3047   ac_prog_rejected=no
3048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3049 for as_dir in $PATH
3050 do
3051   IFS=$as_save_IFS
3052   test -z "$as_dir" && as_dir=.
3053     for ac_exec_ext in '' $ac_executable_extensions; do
3054   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3055     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3056        ac_prog_rejected=yes
3057        continue
3058      fi
3059     ac_cv_prog_CC="cc"
3060     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3061     break 2
3062   fi
3063 done
3064   done
3065 IFS=$as_save_IFS
3066
3067 if test $ac_prog_rejected = yes; then
3068   # We found a bogon in the path, so make sure we never use it.
3069   set dummy $ac_cv_prog_CC
3070   shift
3071   if test $# != 0; then
3072     # We chose a different compiler from the bogus one.
3073     # However, it has the same basename, so the bogon will be chosen
3074     # first if we set CC to just the basename; use the full file name.
3075     shift
3076     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3077   fi
3078 fi
3079 fi
3080 fi
3081 CC=$ac_cv_prog_CC
3082 if test -n "$CC"; then
3083   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3084 $as_echo "$CC" >&6; }
3085 else
3086   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3087 $as_echo "no" >&6; }
3088 fi
3089
3090
3091 fi
3092 if test -z "$CC"; then
3093   if test -n "$ac_tool_prefix"; then
3094   for ac_prog in cl.exe
3095   do
3096     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3097 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3099 $as_echo_n "checking for $ac_word... " >&6; }
3100 if test "${ac_cv_prog_CC+set}" = set; then :
3101   $as_echo_n "(cached) " >&6
3102 else
3103   if test -n "$CC"; then
3104   ac_cv_prog_CC="$CC" # Let the user override the test.
3105 else
3106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3107 for as_dir in $PATH
3108 do
3109   IFS=$as_save_IFS
3110   test -z "$as_dir" && as_dir=.
3111     for ac_exec_ext in '' $ac_executable_extensions; do
3112   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3113     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3114     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3115     break 2
3116   fi
3117 done
3118   done
3119 IFS=$as_save_IFS
3120
3121 fi
3122 fi
3123 CC=$ac_cv_prog_CC
3124 if test -n "$CC"; then
3125   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3126 $as_echo "$CC" >&6; }
3127 else
3128   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3129 $as_echo "no" >&6; }
3130 fi
3131
3132
3133     test -n "$CC" && break
3134   done
3135 fi
3136 if test -z "$CC"; then
3137   ac_ct_CC=$CC
3138   for ac_prog in cl.exe
3139 do
3140   # Extract the first word of "$ac_prog", so it can be a program name with args.
3141 set dummy $ac_prog; ac_word=$2
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3143 $as_echo_n "checking for $ac_word... " >&6; }
3144 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3145   $as_echo_n "(cached) " >&6
3146 else
3147   if test -n "$ac_ct_CC"; then
3148   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3149 else
3150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3151 for as_dir in $PATH
3152 do
3153   IFS=$as_save_IFS
3154   test -z "$as_dir" && as_dir=.
3155     for ac_exec_ext in '' $ac_executable_extensions; do
3156   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3157     ac_cv_prog_ac_ct_CC="$ac_prog"
3158     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3159     break 2
3160   fi
3161 done
3162   done
3163 IFS=$as_save_IFS
3164
3165 fi
3166 fi
3167 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3168 if test -n "$ac_ct_CC"; then
3169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3170 $as_echo "$ac_ct_CC" >&6; }
3171 else
3172   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3173 $as_echo "no" >&6; }
3174 fi
3175
3176
3177   test -n "$ac_ct_CC" && break
3178 done
3179
3180   if test "x$ac_ct_CC" = x; then
3181     CC=""
3182   else
3183     case $cross_compiling:$ac_tool_warned in
3184 yes:)
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3186 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3187 ac_tool_warned=yes ;;
3188 esac
3189     CC=$ac_ct_CC
3190   fi
3191 fi
3192
3193 fi
3194
3195
3196 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3197 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3198 as_fn_error $? "no acceptable C compiler found in \$PATH
3199 See \`config.log' for more details" "$LINENO" 5 ; }
3200
3201 # Provide some information about the compiler.
3202 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3203 set X $ac_compile
3204 ac_compiler=$2
3205 for ac_option in --version -v -V -qversion; do
3206   { { ac_try="$ac_compiler $ac_option >&5"
3207 case "(($ac_try" in
3208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3209   *) ac_try_echo=$ac_try;;
3210 esac
3211 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3212 $as_echo "$ac_try_echo"; } >&5
3213   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3214   ac_status=$?
3215   if test -s conftest.err; then
3216     sed '10a\
3217 ... rest of stderr output deleted ...
3218          10q' conftest.err >conftest.er1
3219     cat conftest.er1 >&5
3220   fi
3221   rm -f conftest.er1 conftest.err
3222   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3223   test $ac_status = 0; }
3224 done
3225
3226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3227 /* end confdefs.h.  */
3228
3229 int
3230 main ()
3231 {
3232
3233   ;
3234   return 0;
3235 }
3236 _ACEOF
3237 ac_clean_files_save=$ac_clean_files
3238 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3239 # Try to create an executable without -o first, disregard a.out.
3240 # It will help us diagnose broken compilers, and finding out an intuition
3241 # of exeext.
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3243 $as_echo_n "checking whether the C compiler works... " >&6; }
3244 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3245
3246 # The possible output files:
3247 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3248
3249 ac_rmfiles=
3250 for ac_file in $ac_files
3251 do
3252   case $ac_file in
3253     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3254     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3255   esac
3256 done
3257 rm -f $ac_rmfiles
3258
3259 if { { ac_try="$ac_link_default"
3260 case "(($ac_try" in
3261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3262   *) ac_try_echo=$ac_try;;
3263 esac
3264 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3265 $as_echo "$ac_try_echo"; } >&5
3266   (eval "$ac_link_default") 2>&5
3267   ac_status=$?
3268   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3269   test $ac_status = 0; }; then :
3270   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3271 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3272 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3273 # so that the user can short-circuit this test for compilers unknown to
3274 # Autoconf.
3275 for ac_file in $ac_files ''
3276 do
3277   test -f "$ac_file" || continue
3278   case $ac_file in
3279     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3280         ;;
3281     [ab].out )
3282         # We found the default executable, but exeext='' is most
3283         # certainly right.
3284         break;;
3285     *.* )
3286         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3287         then :; else
3288            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3289         fi
3290         # We set ac_cv_exeext here because the later test for it is not
3291         # safe: cross compilers may not add the suffix if given an `-o'
3292         # argument, so we may need to know it at that point already.
3293         # Even if this section looks crufty: it has the advantage of
3294         # actually working.
3295         break;;
3296     * )
3297         break;;
3298   esac
3299 done
3300 test "$ac_cv_exeext" = no && ac_cv_exeext=
3301
3302 else
3303   ac_file=''
3304 fi
3305 if test -z "$ac_file"; then :
3306   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3307 $as_echo "no" >&6; }
3308 $as_echo "$as_me: failed program was:" >&5
3309 sed 's/^/| /' conftest.$ac_ext >&5
3310
3311 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3312 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3313 as_fn_error 77 "C compiler cannot create executables
3314 See \`config.log' for more details" "$LINENO" 5 ; }
3315 else
3316   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3317 $as_echo "yes" >&6; }
3318 fi
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3320 $as_echo_n "checking for C compiler default output file name... " >&6; }
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3322 $as_echo "$ac_file" >&6; }
3323 ac_exeext=$ac_cv_exeext
3324
3325 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3326 ac_clean_files=$ac_clean_files_save
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3328 $as_echo_n "checking for suffix of executables... " >&6; }
3329 if { { ac_try="$ac_link"
3330 case "(($ac_try" in
3331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3332   *) ac_try_echo=$ac_try;;
3333 esac
3334 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3335 $as_echo "$ac_try_echo"; } >&5
3336   (eval "$ac_link") 2>&5
3337   ac_status=$?
3338   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3339   test $ac_status = 0; }; then :
3340   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3341 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3342 # work properly (i.e., refer to `conftest.exe'), while it won't with
3343 # `rm'.
3344 for ac_file in conftest.exe conftest conftest.*; do
3345   test -f "$ac_file" || continue
3346   case $ac_file in
3347     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3348     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3349           break;;
3350     * ) break;;
3351   esac
3352 done
3353 else
3354   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3355 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3356 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3357 See \`config.log' for more details" "$LINENO" 5 ; }
3358 fi
3359 rm -f conftest conftest$ac_cv_exeext
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3361 $as_echo "$ac_cv_exeext" >&6; }
3362
3363 rm -f conftest.$ac_ext
3364 EXEEXT=$ac_cv_exeext
3365 ac_exeext=$EXEEXT
3366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3367 /* end confdefs.h.  */
3368 #include <stdio.h>
3369 int
3370 main ()
3371 {
3372 FILE *f = fopen ("conftest.out", "w");
3373  return ferror (f) || fclose (f) != 0;
3374
3375   ;
3376   return 0;
3377 }
3378 _ACEOF
3379 ac_clean_files="$ac_clean_files conftest.out"
3380 # Check that the compiler produces executables we can run.  If not, either
3381 # the compiler is broken, or we cross compile.
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3383 $as_echo_n "checking whether we are cross compiling... " >&6; }
3384 if test "$cross_compiling" != yes; then
3385   { { ac_try="$ac_link"
3386 case "(($ac_try" in
3387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3388   *) ac_try_echo=$ac_try;;
3389 esac
3390 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3391 $as_echo "$ac_try_echo"; } >&5
3392   (eval "$ac_link") 2>&5
3393   ac_status=$?
3394   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3395   test $ac_status = 0; }
3396   if { ac_try='./conftest$ac_cv_exeext'
3397   { { case "(($ac_try" in
3398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3399   *) ac_try_echo=$ac_try;;
3400 esac
3401 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3402 $as_echo "$ac_try_echo"; } >&5
3403   (eval "$ac_try") 2>&5
3404   ac_status=$?
3405   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3406   test $ac_status = 0; }; }; then
3407     cross_compiling=no
3408   else
3409     if test "$cross_compiling" = maybe; then
3410         cross_compiling=yes
3411     else
3412         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3413 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3414 as_fn_error $? "cannot run C compiled programs.
3415 If you meant to cross compile, use \`--host'.
3416 See \`config.log' for more details" "$LINENO" 5 ; }
3417     fi
3418   fi
3419 fi
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3421 $as_echo "$cross_compiling" >&6; }
3422
3423 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3424 ac_clean_files=$ac_clean_files_save
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3426 $as_echo_n "checking for suffix of object files... " >&6; }
3427 if test "${ac_cv_objext+set}" = set; then :
3428   $as_echo_n "(cached) " >&6
3429 else
3430   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3431 /* end confdefs.h.  */
3432
3433 int
3434 main ()
3435 {
3436
3437   ;
3438   return 0;
3439 }
3440 _ACEOF
3441 rm -f conftest.o conftest.obj
3442 if { { ac_try="$ac_compile"
3443 case "(($ac_try" in
3444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3445   *) ac_try_echo=$ac_try;;
3446 esac
3447 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3448 $as_echo "$ac_try_echo"; } >&5
3449   (eval "$ac_compile") 2>&5
3450   ac_status=$?
3451   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3452   test $ac_status = 0; }; then :
3453   for ac_file in conftest.o conftest.obj conftest.*; do
3454   test -f "$ac_file" || continue;
3455   case $ac_file in
3456     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3457     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3458        break;;
3459   esac
3460 done
3461 else
3462   $as_echo "$as_me: failed program was:" >&5
3463 sed 's/^/| /' conftest.$ac_ext >&5
3464
3465 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3466 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3467 as_fn_error $? "cannot compute suffix of object files: cannot compile
3468 See \`config.log' for more details" "$LINENO" 5 ; }
3469 fi
3470 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3471 fi
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3473 $as_echo "$ac_cv_objext" >&6; }
3474 OBJEXT=$ac_cv_objext
3475 ac_objext=$OBJEXT
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3477 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3478 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3479   $as_echo_n "(cached) " >&6
3480 else
3481   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3482 /* end confdefs.h.  */
3483
3484 int
3485 main ()
3486 {
3487 #ifndef __GNUC__
3488        choke me
3489 #endif
3490
3491   ;
3492   return 0;
3493 }
3494 _ACEOF
3495 if ac_fn_c_try_compile "$LINENO"; then :
3496   ac_compiler_gnu=yes
3497 else
3498   ac_compiler_gnu=no
3499 fi
3500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3501 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3502
3503 fi
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3505 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3506 if test $ac_compiler_gnu = yes; then
3507   GCC=yes
3508 else
3509   GCC=
3510 fi
3511 ac_test_CFLAGS=${CFLAGS+set}
3512 ac_save_CFLAGS=$CFLAGS
3513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3514 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3515 if test "${ac_cv_prog_cc_g+set}" = set; then :
3516   $as_echo_n "(cached) " >&6
3517 else
3518   ac_save_c_werror_flag=$ac_c_werror_flag
3519    ac_c_werror_flag=yes
3520    ac_cv_prog_cc_g=no
3521    CFLAGS="-g"
3522    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3523 /* end confdefs.h.  */
3524
3525 int
3526 main ()
3527 {
3528
3529   ;
3530   return 0;
3531 }
3532 _ACEOF
3533 if ac_fn_c_try_compile "$LINENO"; then :
3534   ac_cv_prog_cc_g=yes
3535 else
3536   CFLAGS=""
3537       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3538 /* end confdefs.h.  */
3539
3540 int
3541 main ()
3542 {
3543
3544   ;
3545   return 0;
3546 }
3547 _ACEOF
3548 if ac_fn_c_try_compile "$LINENO"; then :
3549
3550 else
3551   ac_c_werror_flag=$ac_save_c_werror_flag
3552          CFLAGS="-g"
3553          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3554 /* end confdefs.h.  */
3555
3556 int
3557 main ()
3558 {
3559
3560   ;
3561   return 0;
3562 }
3563 _ACEOF
3564 if ac_fn_c_try_compile "$LINENO"; then :
3565   ac_cv_prog_cc_g=yes
3566 fi
3567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3568 fi
3569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3570 fi
3571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3572    ac_c_werror_flag=$ac_save_c_werror_flag
3573 fi
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3575 $as_echo "$ac_cv_prog_cc_g" >&6; }
3576 if test "$ac_test_CFLAGS" = set; then
3577   CFLAGS=$ac_save_CFLAGS
3578 elif test $ac_cv_prog_cc_g = yes; then
3579   if test "$GCC" = yes; then
3580     CFLAGS="-g -O2"
3581   else
3582     CFLAGS="-g"
3583   fi
3584 else
3585   if test "$GCC" = yes; then
3586     CFLAGS="-O2"
3587   else
3588     CFLAGS=
3589   fi
3590 fi
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3592 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3593 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3594   $as_echo_n "(cached) " >&6
3595 else
3596   ac_cv_prog_cc_c89=no
3597 ac_save_CC=$CC
3598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3599 /* end confdefs.h.  */
3600 #include <stdarg.h>
3601 #include <stdio.h>
3602 #include <sys/types.h>
3603 #include <sys/stat.h>
3604 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3605 struct buf { int x; };
3606 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3607 static char *e (p, i)
3608      char **p;
3609      int i;
3610 {
3611   return p[i];
3612 }
3613 static char *f (char * (*g) (char **, int), char **p, ...)
3614 {
3615   char *s;
3616   va_list v;
3617   va_start (v,p);
3618   s = g (p, va_arg (v,int));
3619   va_end (v);
3620   return s;
3621 }
3622
3623 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3624    function prototypes and stuff, but not '\xHH' hex character constants.
3625    These don't provoke an error unfortunately, instead are silently treated
3626    as 'x'.  The following induces an error, until -std is added to get
3627    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3628    array size at least.  It's necessary to write '\x00'==0 to get something
3629    that's true only with -std.  */
3630 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3631
3632 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3633    inside strings and character constants.  */
3634 #define FOO(x) 'x'
3635 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3636
3637 int test (int i, double x);
3638 struct s1 {int (*f) (int a);};
3639 struct s2 {int (*f) (double a);};
3640 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3641 int argc;
3642 char **argv;
3643 int
3644 main ()
3645 {
3646 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3647   ;
3648   return 0;
3649 }
3650 _ACEOF
3651 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3652         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3653 do
3654   CC="$ac_save_CC $ac_arg"
3655   if ac_fn_c_try_compile "$LINENO"; then :
3656   ac_cv_prog_cc_c89=$ac_arg
3657 fi
3658 rm -f core conftest.err conftest.$ac_objext
3659   test "x$ac_cv_prog_cc_c89" != "xno" && break
3660 done
3661 rm -f conftest.$ac_ext
3662 CC=$ac_save_CC
3663
3664 fi
3665 # AC_CACHE_VAL
3666 case "x$ac_cv_prog_cc_c89" in
3667   x)
3668     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3669 $as_echo "none needed" >&6; } ;;
3670   xno)
3671     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3672 $as_echo "unsupported" >&6; } ;;
3673   *)
3674     CC="$CC $ac_cv_prog_cc_c89"
3675     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3676 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3677 esac
3678 if test "x$ac_cv_prog_cc_c89" != xno; then :
3679
3680 fi
3681
3682 ac_ext=c
3683 ac_cpp='$CPP $CPPFLAGS'
3684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3686 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3687
3688 ac_ext=cpp
3689 ac_cpp='$CXXCPP $CPPFLAGS'
3690 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3691 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3692 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3693 if test -z "$CXX"; then
3694   if test -n "$CCC"; then
3695     CXX=$CCC
3696   else
3697     if test -n "$ac_tool_prefix"; then
3698   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3699   do
3700     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3701 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3703 $as_echo_n "checking for $ac_word... " >&6; }
3704 if test "${ac_cv_prog_CXX+set}" = set; then :
3705   $as_echo_n "(cached) " >&6
3706 else
3707   if test -n "$CXX"; then
3708   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3709 else
3710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3711 for as_dir in $PATH
3712 do
3713   IFS=$as_save_IFS
3714   test -z "$as_dir" && as_dir=.
3715     for ac_exec_ext in '' $ac_executable_extensions; do
3716   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3717     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3718     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3719     break 2
3720   fi
3721 done
3722   done
3723 IFS=$as_save_IFS
3724
3725 fi
3726 fi
3727 CXX=$ac_cv_prog_CXX
3728 if test -n "$CXX"; then
3729   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3730 $as_echo "$CXX" >&6; }
3731 else
3732   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3733 $as_echo "no" >&6; }
3734 fi
3735
3736
3737     test -n "$CXX" && break
3738   done
3739 fi
3740 if test -z "$CXX"; then
3741   ac_ct_CXX=$CXX
3742   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3743 do
3744   # Extract the first word of "$ac_prog", so it can be a program name with args.
3745 set dummy $ac_prog; ac_word=$2
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3747 $as_echo_n "checking for $ac_word... " >&6; }
3748 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3749   $as_echo_n "(cached) " >&6
3750 else
3751   if test -n "$ac_ct_CXX"; then
3752   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3753 else
3754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3755 for as_dir in $PATH
3756 do
3757   IFS=$as_save_IFS
3758   test -z "$as_dir" && as_dir=.
3759     for ac_exec_ext in '' $ac_executable_extensions; do
3760   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3761     ac_cv_prog_ac_ct_CXX="$ac_prog"
3762     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3763     break 2
3764   fi
3765 done
3766   done
3767 IFS=$as_save_IFS
3768
3769 fi
3770 fi
3771 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3772 if test -n "$ac_ct_CXX"; then
3773   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3774 $as_echo "$ac_ct_CXX" >&6; }
3775 else
3776   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3777 $as_echo "no" >&6; }
3778 fi
3779
3780
3781   test -n "$ac_ct_CXX" && break
3782 done
3783
3784   if test "x$ac_ct_CXX" = x; then
3785     CXX="g++"
3786   else
3787     case $cross_compiling:$ac_tool_warned in
3788 yes:)
3789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3790 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3791 ac_tool_warned=yes ;;
3792 esac
3793     CXX=$ac_ct_CXX
3794   fi
3795 fi
3796
3797   fi
3798 fi
3799 # Provide some information about the compiler.
3800 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3801 set X $ac_compile
3802 ac_compiler=$2
3803 for ac_option in --version -v -V -qversion; do
3804   { { ac_try="$ac_compiler $ac_option >&5"
3805 case "(($ac_try" in
3806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3807   *) ac_try_echo=$ac_try;;
3808 esac
3809 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3810 $as_echo "$ac_try_echo"; } >&5
3811   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3812   ac_status=$?
3813   if test -s conftest.err; then
3814     sed '10a\
3815 ... rest of stderr output deleted ...
3816          10q' conftest.err >conftest.er1
3817     cat conftest.er1 >&5
3818   fi
3819   rm -f conftest.er1 conftest.err
3820   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3821   test $ac_status = 0; }
3822 done
3823
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3825 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3826 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3827   $as_echo_n "(cached) " >&6
3828 else
3829   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3830 /* end confdefs.h.  */
3831
3832 int
3833 main ()
3834 {
3835 #ifndef __GNUC__
3836        choke me
3837 #endif
3838
3839   ;
3840   return 0;
3841 }
3842 _ACEOF
3843 if ac_fn_cxx_try_compile "$LINENO"; then :
3844   ac_compiler_gnu=yes
3845 else
3846   ac_compiler_gnu=no
3847 fi
3848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3849 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3850
3851 fi
3852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3853 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3854 if test $ac_compiler_gnu = yes; then
3855   GXX=yes
3856 else
3857   GXX=
3858 fi
3859 ac_test_CXXFLAGS=${CXXFLAGS+set}
3860 ac_save_CXXFLAGS=$CXXFLAGS
3861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3862 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3863 if test "${ac_cv_prog_cxx_g+set}" = set; then :
3864   $as_echo_n "(cached) " >&6
3865 else
3866   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3867    ac_cxx_werror_flag=yes
3868    ac_cv_prog_cxx_g=no
3869    CXXFLAGS="-g"
3870    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3871 /* end confdefs.h.  */
3872
3873 int
3874 main ()
3875 {
3876
3877   ;
3878   return 0;
3879 }
3880 _ACEOF
3881 if ac_fn_cxx_try_compile "$LINENO"; then :
3882   ac_cv_prog_cxx_g=yes
3883 else
3884   CXXFLAGS=""
3885       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3886 /* end confdefs.h.  */
3887
3888 int
3889 main ()
3890 {
3891
3892   ;
3893   return 0;
3894 }
3895 _ACEOF
3896 if ac_fn_cxx_try_compile "$LINENO"; then :
3897
3898 else
3899   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3900          CXXFLAGS="-g"
3901          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3902 /* end confdefs.h.  */
3903
3904 int
3905 main ()
3906 {
3907
3908   ;
3909   return 0;
3910 }
3911 _ACEOF
3912 if ac_fn_cxx_try_compile "$LINENO"; then :
3913   ac_cv_prog_cxx_g=yes
3914 fi
3915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3916 fi
3917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3918 fi
3919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3920    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3921 fi
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3923 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3924 if test "$ac_test_CXXFLAGS" = set; then
3925   CXXFLAGS=$ac_save_CXXFLAGS
3926 elif test $ac_cv_prog_cxx_g = yes; then
3927   if test "$GXX" = yes; then
3928     CXXFLAGS="-g -O2"
3929   else
3930     CXXFLAGS="-g"
3931   fi
3932 else
3933   if test "$GXX" = yes; then
3934     CXXFLAGS="-O2"
3935   else
3936     CXXFLAGS=
3937   fi
3938 fi
3939 ac_ext=c
3940 ac_cpp='$CPP $CPPFLAGS'
3941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3943 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3944
3945 if test -n "$ac_tool_prefix"; then
3946   # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
3947 set dummy ${ac_tool_prefix}cpp; ac_word=$2
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3949 $as_echo_n "checking for $ac_word... " >&6; }
3950 if test "${ac_cv_prog_CPPBIN+set}" = set; then :
3951   $as_echo_n "(cached) " >&6
3952 else
3953   if test -n "$CPPBIN"; then
3954   ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test.
3955 else
3956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3957 for as_dir in $PATH
3958 do
3959   IFS=$as_save_IFS
3960   test -z "$as_dir" && as_dir=.
3961     for ac_exec_ext in '' $ac_executable_extensions; do
3962   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3963     ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp"
3964     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3965     break 2
3966   fi
3967 done
3968   done
3969 IFS=$as_save_IFS
3970
3971 fi
3972 fi
3973 CPPBIN=$ac_cv_prog_CPPBIN
3974 if test -n "$CPPBIN"; then
3975   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPPBIN" >&5
3976 $as_echo "$CPPBIN" >&6; }
3977 else
3978   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3979 $as_echo "no" >&6; }
3980 fi
3981
3982
3983 fi
3984 if test -z "$ac_cv_prog_CPPBIN"; then
3985   ac_ct_CPPBIN=$CPPBIN
3986   # Extract the first word of "cpp", so it can be a program name with args.
3987 set dummy cpp; ac_word=$2
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3989 $as_echo_n "checking for $ac_word... " >&6; }
3990 if test "${ac_cv_prog_ac_ct_CPPBIN+set}" = set; then :
3991   $as_echo_n "(cached) " >&6
3992 else
3993   if test -n "$ac_ct_CPPBIN"; then
3994   ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test.
3995 else
3996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3997 for as_dir in $PATH
3998 do
3999   IFS=$as_save_IFS
4000   test -z "$as_dir" && as_dir=.
4001     for ac_exec_ext in '' $ac_executable_extensions; do
4002   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4003     ac_cv_prog_ac_ct_CPPBIN="cpp"
4004     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4005     break 2
4006   fi
4007 done
4008   done
4009 IFS=$as_save_IFS
4010
4011 fi
4012 fi
4013 ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN
4014 if test -n "$ac_ct_CPPBIN"; then
4015   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CPPBIN" >&5
4016 $as_echo "$ac_ct_CPPBIN" >&6; }
4017 else
4018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4019 $as_echo "no" >&6; }
4020 fi
4021
4022   if test "x$ac_ct_CPPBIN" = x; then
4023     CPPBIN="cpp"
4024   else
4025     case $cross_compiling:$ac_tool_warned in
4026 yes:)
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4028 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4029 ac_tool_warned=yes ;;
4030 esac
4031     CPPBIN=$ac_ct_CPPBIN
4032   fi
4033 else
4034   CPPBIN="$ac_cv_prog_CPPBIN"
4035 fi
4036
4037
4038 cat >>confdefs.h <<_ACEOF
4039 #define EXEEXT "$ac_exeext"
4040 _ACEOF
4041
4042
4043 case $host in
4044   *-darwin*)
4045     if test "x$enable_win64" = "xyes"
4046     then
4047       CC="$CC -m64"
4048       CXX="$CXX -m64"
4049       LD="${LD:-ld} -arch x86_64"
4050       AS="${AS:-as} -arch x86_64"
4051       host_cpu="x86_64"
4052       notice_platform="64-bit "
4053       TARGETFLAGS="-m64"
4054
4055     else
4056       CC="$CC -m32"
4057       CXX="$CXX -m32"
4058       LD="${LD:-ld} -arch i386"
4059       AS="${AS:-as} -arch i386"
4060       host_cpu="i386"
4061       notice_platform="32-bit "
4062       TARGETFLAGS="-m32"
4063
4064       enable_win16=${enable_win16:-yes}
4065     fi
4066     ;;
4067   x86_64*)
4068     if test "x$enable_win64" != "xyes" -a "$cross_compiling" != "yes"
4069     then
4070       CC="$CC -m32"
4071       CXX="$CXX -m32"
4072       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC works" >&5
4073 $as_echo_n "checking whether $CC works... " >&6; }
4074
4075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4076 /* end confdefs.h.  */
4077
4078 int
4079 main ()
4080 {
4081
4082   ;
4083   return 0;
4084 }
4085 _ACEOF
4086 if ac_fn_c_try_link "$LINENO"; then :
4087   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4088 $as_echo "yes" >&6; }
4089 else
4090   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4091 $as_echo "no" >&6; }
4092                       as_fn_error $? "Cannot build a 32-bit program, you need to install 32-bit development libraries." "$LINENO" 5
4093 fi
4094 rm -f core conftest.err conftest.$ac_objext \
4095     conftest$ac_exeext conftest.$ac_ext
4096       LD="${LD:-ld} -m elf_i386"
4097       AS="${AS:-as} --32"
4098       host_cpu="i386"
4099       notice_platform="32-bit "
4100       TARGETFLAGS="-m32"
4101
4102       enable_win16=${enable_win16:-yes}
4103     else
4104       if test "x${GCC}" = "xyes"
4105       then
4106         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports __builtin_ms_va_list" >&5
4107 $as_echo_n "checking whether $CC supports __builtin_ms_va_list... " >&6; }
4108         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4109 /* end confdefs.h.  */
4110 #include <stdarg.h>
4111 int
4112 main ()
4113 {
4114 void func(__builtin_ms_va_list *args);
4115   ;
4116   return 0;
4117 }
4118 _ACEOF
4119 if ac_fn_c_try_compile "$LINENO"; then :
4120   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4121 $as_echo "yes" >&6; }
4122 else
4123   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4124 $as_echo "no" >&6; }
4125                            as_fn_error $? "You need gcc >= 4.4 to build Wine as 64-bit." "$LINENO" 5
4126 fi
4127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4128       fi
4129       TARGETFLAGS="-m64"
4130
4131     fi
4132     ;;
4133   *-mingw32*|*-cygwin*)
4134     enable_win16=${enable_win16:-no}
4135     CFLAGS="$CFLAGS -D_WIN32"
4136     ;;
4137   i[3456789]86*)
4138     enable_win16=${enable_win16:-yes}
4139     ;;
4140 esac
4141
4142 enable_win16=${enable_win16:-no}
4143
4144 enable_winetest=${enable_winetest:-$enable_tests}
4145
4146 if test -n "$with_wine64"
4147 then
4148     if test "x$enable_win64" = "xyes"
4149     then
4150         as_fn_error $? "--enable-win64 and --with-wine64 are mutually exclusive.
4151 --enable-win64 should be used in the 64-bit build tree, --with-wine64 in the 32-bit Wow64 build tree." "$LINENO" 5
4152     fi
4153     WOW64_DISABLE=\#
4154
4155     enable_fonts=${enable_fonts:-no}
4156     enable_server=${enable_server:-no}
4157     enable_tools=${enable_tools:-no}
4158 elif test "x$enable_win64" = "xyes"
4159 then
4160     test "x$libdir" != "x\${exec_prefix}/lib" || libdir="\${exec_prefix}/lib64"
4161 fi
4162
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the directory containing the Wine tools" >&5
4164 $as_echo_n "checking for the directory containing the Wine tools... " >&6; }
4165 if test "${wine_cv_toolsdir+set}" = set; then :
4166   $as_echo_n "(cached) " >&6
4167 else
4168   wine_cv_toolsdir="$with_wine_tools"
4169    if test -z "$with_wine_tools"; then
4170      if test "$cross_compiling" = "yes"; then
4171        as_fn_error $? "you must use the --with-wine-tools option when cross-compiling." "$LINENO" 5
4172      elif test -n "$with_wine64"; then
4173        wine_cv_toolsdir="$with_wine64"
4174      fi
4175    fi
4176    if test -z "$wine_cv_toolsdir"; then
4177      wine_cv_toolsdir="\$(top_builddir)"
4178    elif test -d "$wine_cv_toolsdir/tools/winebuild"; then
4179      case "$wine_cv_toolsdir" in
4180        /*) ;;
4181        *)  wine_cv_toolsdir="\$(top_builddir)/$wine_cv_toolsdir" ;;
4182      esac
4183    else
4184      as_fn_error $? "could not find Wine tools in $wine_cv_toolsdir" "$LINENO" 5
4185    fi
4186 fi
4187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_toolsdir" >&5
4188 $as_echo "$wine_cv_toolsdir" >&6; }
4189 TOOLSDIR=$wine_cv_toolsdir
4190
4191 if test -n "$host_alias" -a "$host_alias" != "$build_alias"
4192 then
4193     TARGETFLAGS="-b $host_alias $TARGETFLAGS"
4194
4195 fi
4196
4197 for ac_prog in flex
4198 do
4199   # Extract the first word of "$ac_prog", so it can be a program name with args.
4200 set dummy $ac_prog; ac_word=$2
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4202 $as_echo_n "checking for $ac_word... " >&6; }
4203 if test "${ac_cv_prog_FLEX+set}" = set; then :
4204   $as_echo_n "(cached) " >&6
4205 else
4206   if test -n "$FLEX"; then
4207   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
4208 else
4209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4210 for as_dir in $PATH
4211 do
4212   IFS=$as_save_IFS
4213   test -z "$as_dir" && as_dir=.
4214     for ac_exec_ext in '' $ac_executable_extensions; do
4215   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4216     ac_cv_prog_FLEX="$ac_prog"
4217     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4218     break 2
4219   fi
4220 done
4221   done
4222 IFS=$as_save_IFS
4223
4224 fi
4225 fi
4226 FLEX=$ac_cv_prog_FLEX
4227 if test -n "$FLEX"; then
4228   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
4229 $as_echo "$FLEX" >&6; }
4230 else
4231   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4232 $as_echo "no" >&6; }
4233 fi
4234
4235
4236   test -n "$FLEX" && break
4237 done
4238 test -n "$FLEX" || FLEX="none"
4239
4240 if test "$FLEX" = "none"
4241 then
4242   as_fn_error $? "no suitable flex found. Please install the 'flex' package." "$LINENO" 5
4243 fi
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether flex is recent enough" >&5
4245 $as_echo_n "checking whether flex is recent enough... " >&6; }
4246 cat >conftest.l <<EOF
4247 %top{
4248 #include "prediluvian.h"
4249 }
4250 %%
4251 EOF
4252 if $FLEX -t conftest.l >/dev/null 2>&5
4253 then
4254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4255 $as_echo "yes" >&6; }
4256 else
4257   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4258 $as_echo "no" >&6; }
4259   as_fn_error $? "Your flex version is too old. Please install flex version 2.5.33 or newer." "$LINENO" 5
4260 fi
4261
4262 for ac_prog in bison
4263 do
4264   # Extract the first word of "$ac_prog", so it can be a program name with args.
4265 set dummy $ac_prog; ac_word=$2
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4267 $as_echo_n "checking for $ac_word... " >&6; }
4268 if test "${ac_cv_prog_BISON+set}" = set; then :
4269   $as_echo_n "(cached) " >&6
4270 else
4271   if test -n "$BISON"; then
4272   ac_cv_prog_BISON="$BISON" # Let the user override the test.
4273 else
4274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4275 for as_dir in $PATH
4276 do
4277   IFS=$as_save_IFS
4278   test -z "$as_dir" && as_dir=.
4279     for ac_exec_ext in '' $ac_executable_extensions; do
4280   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4281     ac_cv_prog_BISON="$ac_prog"
4282     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4283     break 2
4284   fi
4285 done
4286   done
4287 IFS=$as_save_IFS
4288
4289 fi
4290 fi
4291 BISON=$ac_cv_prog_BISON
4292 if test -n "$BISON"; then
4293   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
4294 $as_echo "$BISON" >&6; }
4295 else
4296   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4297 $as_echo "no" >&6; }
4298 fi
4299
4300
4301   test -n "$BISON" && break
4302 done
4303 test -n "$BISON" || BISON="none"
4304
4305 if test "$BISON" = "none"
4306 then
4307   as_fn_error $? "no suitable bison found. Please install the 'bison' package." "$LINENO" 5
4308 fi
4309
4310 if test -n "$ac_tool_prefix"; then
4311   for ac_prog in ar gar
4312   do
4313     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4314 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4316 $as_echo_n "checking for $ac_word... " >&6; }
4317 if test "${ac_cv_prog_AR+set}" = set; then :
4318   $as_echo_n "(cached) " >&6
4319 else
4320   if test -n "$AR"; then
4321   ac_cv_prog_AR="$AR" # Let the user override the test.
4322 else
4323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4324 for as_dir in $PATH
4325 do
4326   IFS=$as_save_IFS
4327   test -z "$as_dir" && as_dir=.
4328     for ac_exec_ext in '' $ac_executable_extensions; do
4329   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4330     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4331     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4332     break 2
4333   fi
4334 done
4335   done
4336 IFS=$as_save_IFS
4337
4338 fi
4339 fi
4340 AR=$ac_cv_prog_AR
4341 if test -n "$AR"; then
4342   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4343 $as_echo "$AR" >&6; }
4344 else
4345   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4346 $as_echo "no" >&6; }
4347 fi
4348
4349
4350     test -n "$AR" && break
4351   done
4352 fi
4353 if test -z "$AR"; then
4354   ac_ct_AR=$AR
4355   for ac_prog in ar gar
4356 do
4357   # Extract the first word of "$ac_prog", so it can be a program name with args.
4358 set dummy $ac_prog; ac_word=$2
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4360 $as_echo_n "checking for $ac_word... " >&6; }
4361 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4362   $as_echo_n "(cached) " >&6
4363 else
4364   if test -n "$ac_ct_AR"; then
4365   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4366 else
4367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4368 for as_dir in $PATH
4369 do
4370   IFS=$as_save_IFS
4371   test -z "$as_dir" && as_dir=.
4372     for ac_exec_ext in '' $ac_executable_extensions; do
4373   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4374     ac_cv_prog_ac_ct_AR="$ac_prog"
4375     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4376     break 2
4377   fi
4378 done
4379   done
4380 IFS=$as_save_IFS
4381
4382 fi
4383 fi
4384 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4385 if test -n "$ac_ct_AR"; then
4386   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4387 $as_echo "$ac_ct_AR" >&6; }
4388 else
4389   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4390 $as_echo "no" >&6; }
4391 fi
4392
4393
4394   test -n "$ac_ct_AR" && break
4395 done
4396
4397   if test "x$ac_ct_AR" = x; then
4398     AR="ar"
4399   else
4400     case $cross_compiling:$ac_tool_warned in
4401 yes:)
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4403 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4404 ac_tool_warned=yes ;;
4405 esac
4406     AR=$ac_ct_AR
4407   fi
4408 fi
4409
4410 ARFLAGS=rc
4411
4412 if test -n "$ac_tool_prefix"; then
4413   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4414 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4416 $as_echo_n "checking for $ac_word... " >&6; }
4417 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4418   $as_echo_n "(cached) " >&6
4419 else
4420   if test -n "$RANLIB"; then
4421   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4422 else
4423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4424 for as_dir in $PATH
4425 do
4426   IFS=$as_save_IFS
4427   test -z "$as_dir" && as_dir=.
4428     for ac_exec_ext in '' $ac_executable_extensions; do
4429   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4430     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4431     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4432     break 2
4433   fi
4434 done
4435   done
4436 IFS=$as_save_IFS
4437
4438 fi
4439 fi
4440 RANLIB=$ac_cv_prog_RANLIB
4441 if test -n "$RANLIB"; then
4442   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4443 $as_echo "$RANLIB" >&6; }
4444 else
4445   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4446 $as_echo "no" >&6; }
4447 fi
4448
4449
4450 fi
4451 if test -z "$ac_cv_prog_RANLIB"; then
4452   ac_ct_RANLIB=$RANLIB
4453   # Extract the first word of "ranlib", so it can be a program name with args.
4454 set dummy ranlib; ac_word=$2
4455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4456 $as_echo_n "checking for $ac_word... " >&6; }
4457 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4458   $as_echo_n "(cached) " >&6
4459 else
4460   if test -n "$ac_ct_RANLIB"; then
4461   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4462 else
4463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4464 for as_dir in $PATH
4465 do
4466   IFS=$as_save_IFS
4467   test -z "$as_dir" && as_dir=.
4468     for ac_exec_ext in '' $ac_executable_extensions; do
4469   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4470     ac_cv_prog_ac_ct_RANLIB="ranlib"
4471     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4472     break 2
4473   fi
4474 done
4475   done
4476 IFS=$as_save_IFS
4477
4478 fi
4479 fi
4480 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4481 if test -n "$ac_ct_RANLIB"; then
4482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4483 $as_echo "$ac_ct_RANLIB" >&6; }
4484 else
4485   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4486 $as_echo "no" >&6; }
4487 fi
4488
4489   if test "x$ac_ct_RANLIB" = x; then
4490     RANLIB=":"
4491   else
4492     case $cross_compiling:$ac_tool_warned in
4493 yes:)
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4495 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4496 ac_tool_warned=yes ;;
4497 esac
4498     RANLIB=$ac_ct_RANLIB
4499   fi
4500 else
4501   RANLIB="$ac_cv_prog_RANLIB"
4502 fi
4503
4504 if test -n "$ac_tool_prefix"; then
4505   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4506 set dummy ${ac_tool_prefix}strip; ac_word=$2
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4508 $as_echo_n "checking for $ac_word... " >&6; }
4509 if test "${ac_cv_prog_STRIP+set}" = set; then :
4510   $as_echo_n "(cached) " >&6
4511 else
4512   if test -n "$STRIP"; then
4513   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4514 else
4515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4516 for as_dir in $PATH
4517 do
4518   IFS=$as_save_IFS
4519   test -z "$as_dir" && as_dir=.
4520     for ac_exec_ext in '' $ac_executable_extensions; do
4521   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4522     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4523     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4524     break 2
4525   fi
4526 done
4527   done
4528 IFS=$as_save_IFS
4529
4530 fi
4531 fi
4532 STRIP=$ac_cv_prog_STRIP
4533 if test -n "$STRIP"; then
4534   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4535 $as_echo "$STRIP" >&6; }
4536 else
4537   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4538 $as_echo "no" >&6; }
4539 fi
4540
4541
4542 fi
4543 if test -z "$ac_cv_prog_STRIP"; then
4544   ac_ct_STRIP=$STRIP
4545   # Extract the first word of "strip", so it can be a program name with args.
4546 set dummy strip; ac_word=$2
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4548 $as_echo_n "checking for $ac_word... " >&6; }
4549 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4550   $as_echo_n "(cached) " >&6
4551 else
4552   if test -n "$ac_ct_STRIP"; then
4553   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4554 else
4555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4556 for as_dir in $PATH
4557 do
4558   IFS=$as_save_IFS
4559   test -z "$as_dir" && as_dir=.
4560     for ac_exec_ext in '' $ac_executable_extensions; do
4561   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4562     ac_cv_prog_ac_ct_STRIP="strip"
4563     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4564     break 2
4565   fi
4566 done
4567   done
4568 IFS=$as_save_IFS
4569
4570 fi
4571 fi
4572 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4573 if test -n "$ac_ct_STRIP"; then
4574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4575 $as_echo "$ac_ct_STRIP" >&6; }
4576 else
4577   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4578 $as_echo "no" >&6; }
4579 fi
4580
4581   if test "x$ac_ct_STRIP" = x; then
4582     STRIP="strip"
4583   else
4584     case $cross_compiling:$ac_tool_warned in
4585 yes:)
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4587 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4588 ac_tool_warned=yes ;;
4589 esac
4590     STRIP=$ac_ct_STRIP
4591   fi
4592 else
4593   STRIP="$ac_cv_prog_STRIP"
4594 fi
4595
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4597 $as_echo_n "checking whether ln -s works... " >&6; }
4598 LN_S=$as_ln_s
4599 if test "$LN_S" = "ln -s"; then
4600   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4601 $as_echo "yes" >&6; }
4602 else
4603   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4604 $as_echo "no, using $LN_S" >&6; }
4605 fi
4606
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4608 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4609 if test "${ac_cv_path_GREP+set}" = set; then :
4610   $as_echo_n "(cached) " >&6
4611 else
4612   if test -z "$GREP"; then
4613   ac_path_GREP_found=false
4614   # Loop through the user's path and test for each of PROGNAME-LIST
4615   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4616 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4617 do
4618   IFS=$as_save_IFS
4619   test -z "$as_dir" && as_dir=.
4620     for ac_prog in grep ggrep; do
4621     for ac_exec_ext in '' $ac_executable_extensions; do
4622       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4623       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4624 # Check for GNU ac_path_GREP and select it if it is found.
4625   # Check for GNU $ac_path_GREP
4626 case `"$ac_path_GREP" --version 2>&1` in
4627 *GNU*)
4628   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4629 *)
4630   ac_count=0
4631   $as_echo_n 0123456789 >"conftest.in"
4632   while :
4633   do
4634     cat "conftest.in" "conftest.in" >"conftest.tmp"
4635     mv "conftest.tmp" "conftest.in"
4636     cp "conftest.in" "conftest.nl"
4637     $as_echo 'GREP' >> "conftest.nl"
4638     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4639     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4640     as_fn_arith $ac_count + 1 && ac_count=$as_val
4641     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4642       # Best one so far, save it but keep looking for a better one
4643       ac_cv_path_GREP="$ac_path_GREP"
4644       ac_path_GREP_max=$ac_count
4645     fi
4646     # 10*(2^10) chars as input seems more than enough
4647     test $ac_count -gt 10 && break
4648   done
4649   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4650 esac
4651
4652       $ac_path_GREP_found && break 3
4653     done
4654   done
4655   done
4656 IFS=$as_save_IFS
4657   if test -z "$ac_cv_path_GREP"; then
4658     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4659   fi
4660 else
4661   ac_cv_path_GREP=$GREP
4662 fi
4663
4664 fi
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4666 $as_echo "$ac_cv_path_GREP" >&6; }
4667  GREP="$ac_cv_path_GREP"
4668
4669
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4671 $as_echo_n "checking for egrep... " >&6; }
4672 if test "${ac_cv_path_EGREP+set}" = set; then :
4673   $as_echo_n "(cached) " >&6
4674 else
4675   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4676    then ac_cv_path_EGREP="$GREP -E"
4677    else
4678      if test -z "$EGREP"; then
4679   ac_path_EGREP_found=false
4680   # Loop through the user's path and test for each of PROGNAME-LIST
4681   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4682 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4683 do
4684   IFS=$as_save_IFS
4685   test -z "$as_dir" && as_dir=.
4686     for ac_prog in egrep; do
4687     for ac_exec_ext in '' $ac_executable_extensions; do
4688       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4689       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4690 # Check for GNU ac_path_EGREP and select it if it is found.
4691   # Check for GNU $ac_path_EGREP
4692 case `"$ac_path_EGREP" --version 2>&1` in
4693 *GNU*)
4694   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4695 *)
4696   ac_count=0
4697   $as_echo_n 0123456789 >"conftest.in"
4698   while :
4699   do
4700     cat "conftest.in" "conftest.in" >"conftest.tmp"
4701     mv "conftest.tmp" "conftest.in"
4702     cp "conftest.in" "conftest.nl"
4703     $as_echo 'EGREP' >> "conftest.nl"
4704     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4705     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4706     as_fn_arith $ac_count + 1 && ac_count=$as_val
4707     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4708       # Best one so far, save it but keep looking for a better one
4709       ac_cv_path_EGREP="$ac_path_EGREP"
4710       ac_path_EGREP_max=$ac_count
4711     fi
4712     # 10*(2^10) chars as input seems more than enough
4713     test $ac_count -gt 10 && break
4714   done
4715   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4716 esac
4717
4718       $ac_path_EGREP_found && break 3
4719     done
4720   done
4721   done
4722 IFS=$as_save_IFS
4723   if test -z "$ac_cv_path_EGREP"; then
4724     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4725   fi
4726 else
4727   ac_cv_path_EGREP=$EGREP
4728 fi
4729
4730    fi
4731 fi
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4733 $as_echo "$ac_cv_path_EGREP" >&6; }
4734  EGREP="$ac_cv_path_EGREP"
4735
4736
4737 # Extract the first word of "ldconfig", so it can be a program name with args.
4738 set dummy ldconfig; ac_word=$2
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4740 $as_echo_n "checking for $ac_word... " >&6; }
4741 if test "${ac_cv_path_LDCONFIG+set}" = set; then :
4742   $as_echo_n "(cached) " >&6
4743 else
4744   case $LDCONFIG in
4745   [\\/]* | ?:[\\/]*)
4746   ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
4747   ;;
4748   *)
4749   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4750 for as_dir in /sbin /usr/sbin $PATH
4751 do
4752   IFS=$as_save_IFS
4753   test -z "$as_dir" && as_dir=.
4754     for ac_exec_ext in '' $ac_executable_extensions; do
4755   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4756     ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
4757     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4758     break 2
4759   fi
4760 done
4761   done
4762 IFS=$as_save_IFS
4763
4764   test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
4765   ;;
4766 esac
4767 fi
4768 LDCONFIG=$ac_cv_path_LDCONFIG
4769 if test -n "$LDCONFIG"; then
4770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
4771 $as_echo "$LDCONFIG" >&6; }
4772 else
4773   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4774 $as_echo "no" >&6; }
4775 fi
4776
4777
4778 # Find a good install program.  We prefer a C program (faster),
4779 # so one script is as good as another.  But avoid the broken or
4780 # incompatible versions:
4781 # SysV /etc/install, /usr/sbin/install
4782 # SunOS /usr/etc/install
4783 # IRIX /sbin/install
4784 # AIX /bin/install
4785 # AmigaOS /C/install, which installs bootblocks on floppy discs
4786 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4787 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4788 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4789 # OS/2's system install, which has a completely different semantic
4790 # ./install, which can be erroneously created by make from ./install.sh.
4791 # Reject install programs that cannot install multiple files.
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4793 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4794 if test -z "$INSTALL"; then
4795 if test "${ac_cv_path_install+set}" = set; then :
4796   $as_echo_n "(cached) " >&6
4797 else
4798   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4799 for as_dir in $PATH
4800 do
4801   IFS=$as_save_IFS
4802   test -z "$as_dir" && as_dir=.
4803     # Account for people who put trailing slashes in PATH elements.
4804 case $as_dir/ in #((
4805   ./ | .// | /[cC]/* | \
4806   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4807   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4808   /usr/ucb/* ) ;;
4809   *)
4810     # OSF1 and SCO ODT 3.0 have their own names for install.
4811     # Don't use installbsd from OSF since it installs stuff as root
4812     # by default.
4813     for ac_prog in ginstall scoinst install; do
4814       for ac_exec_ext in '' $ac_executable_extensions; do
4815         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4816           if test $ac_prog = install &&
4817             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4818             # AIX install.  It has an incompatible calling convention.
4819             :
4820           elif test $ac_prog = install &&
4821             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4822             # program-specific install script used by HP pwplus--don't use.
4823             :
4824           else
4825             rm -rf conftest.one conftest.two conftest.dir
4826             echo one > conftest.one
4827             echo two > conftest.two
4828             mkdir conftest.dir
4829             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4830               test -s conftest.one && test -s conftest.two &&
4831               test -s conftest.dir/conftest.one &&
4832               test -s conftest.dir/conftest.two
4833             then
4834               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4835               break 3
4836             fi
4837           fi
4838         fi
4839       done
4840     done
4841     ;;
4842 esac
4843
4844   done
4845 IFS=$as_save_IFS
4846
4847 rm -rf conftest.one conftest.two conftest.dir
4848
4849 fi
4850   if test "${ac_cv_path_install+set}" = set; then
4851     INSTALL=$ac_cv_path_install
4852   else
4853     # As a last resort, use the slow shell script.  Don't cache a
4854     # value for INSTALL within a source directory, because that will
4855     # break other packages using the cache if that directory is
4856     # removed, or if the value is a relative name.
4857     INSTALL=$ac_install_sh
4858   fi
4859 fi
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4861 $as_echo "$INSTALL" >&6; }
4862
4863 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4864 # It thinks the first close brace ends the variable substitution.
4865 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4866
4867 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4868
4869 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4870
4871 case "$INSTALL" in
4872   [\\/$]* | ?:[\\/]* ) ;;
4873   *)  INSTALL="\\\$(top_srcdir)/$INSTALL" ;;
4874 esac
4875
4876 for ac_prog in lclint lint
4877 do
4878   # Extract the first word of "$ac_prog", so it can be a program name with args.
4879 set dummy $ac_prog; ac_word=$2
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4881 $as_echo_n "checking for $ac_word... " >&6; }
4882 if test "${ac_cv_prog_LINT+set}" = set; then :
4883   $as_echo_n "(cached) " >&6
4884 else
4885   if test -n "$LINT"; then
4886   ac_cv_prog_LINT="$LINT" # Let the user override the test.
4887 else
4888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4889 for as_dir in $PATH
4890 do
4891   IFS=$as_save_IFS
4892   test -z "$as_dir" && as_dir=.
4893     for ac_exec_ext in '' $ac_executable_extensions; do
4894   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4895     ac_cv_prog_LINT="$ac_prog"
4896     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4897     break 2
4898   fi
4899 done
4900   done
4901 IFS=$as_save_IFS
4902
4903 fi
4904 fi
4905 LINT=$ac_cv_prog_LINT
4906 if test -n "$LINT"; then
4907   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
4908 $as_echo "$LINT" >&6; }
4909 else
4910   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4911 $as_echo "no" >&6; }
4912 fi
4913
4914
4915   test -n "$LINT" && break
4916 done
4917
4918 if test "$LINT" = "lint"
4919 then
4920   LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
4921   fi
4922
4923
4924
4925 for ac_prog in fontforge
4926 do
4927   # Extract the first word of "$ac_prog", so it can be a program name with args.
4928 set dummy $ac_prog; ac_word=$2
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4930 $as_echo_n "checking for $ac_word... " >&6; }
4931 if test "${ac_cv_prog_FONTFORGE+set}" = set; then :
4932   $as_echo_n "(cached) " >&6
4933 else
4934   if test -n "$FONTFORGE"; then
4935   ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
4936 else
4937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4938 for as_dir in $PATH
4939 do
4940   IFS=$as_save_IFS
4941   test -z "$as_dir" && as_dir=.
4942     for ac_exec_ext in '' $ac_executable_extensions; do
4943   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4944     ac_cv_prog_FONTFORGE="$ac_prog"
4945     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4946     break 2
4947   fi
4948 done
4949   done
4950 IFS=$as_save_IFS
4951
4952 fi
4953 fi
4954 FONTFORGE=$ac_cv_prog_FONTFORGE
4955 if test -n "$FONTFORGE"; then
4956   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTFORGE" >&5
4957 $as_echo "$FONTFORGE" >&6; }
4958 else
4959   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4960 $as_echo "no" >&6; }
4961 fi
4962
4963
4964   test -n "$FONTFORGE" && break
4965 done
4966 test -n "$FONTFORGE" || FONTFORGE="false"
4967
4968 for ac_prog in pkg-config
4969 do
4970   # Extract the first word of "$ac_prog", so it can be a program name with args.
4971 set dummy $ac_prog; ac_word=$2
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4973 $as_echo_n "checking for $ac_word... " >&6; }
4974 if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then :
4975   $as_echo_n "(cached) " >&6
4976 else
4977   if test -n "$PKG_CONFIG"; then
4978   ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
4979 else
4980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4981 for as_dir in $PATH
4982 do
4983   IFS=$as_save_IFS
4984   test -z "$as_dir" && as_dir=.
4985     for ac_exec_ext in '' $ac_executable_extensions; do
4986   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4987     ac_cv_prog_PKG_CONFIG="$ac_prog"
4988     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4989     break 2
4990   fi
4991 done
4992   done
4993 IFS=$as_save_IFS
4994
4995 fi
4996 fi
4997 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
4998 if test -n "$PKG_CONFIG"; then
4999   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5000 $as_echo "$PKG_CONFIG" >&6; }
5001 else
5002   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5003 $as_echo "no" >&6; }
5004 fi
5005
5006
5007   test -n "$PKG_CONFIG" && break
5008 done
5009 test -n "$PKG_CONFIG" || PKG_CONFIG="false"
5010
5011 for ac_prog in rsvg
5012 do
5013   # Extract the first word of "$ac_prog", so it can be a program name with args.
5014 set dummy $ac_prog; ac_word=$2
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5016 $as_echo_n "checking for $ac_word... " >&6; }
5017 if test "${ac_cv_prog_RSVG+set}" = set; then :
5018   $as_echo_n "(cached) " >&6
5019 else
5020   if test -n "$RSVG"; then
5021   ac_cv_prog_RSVG="$RSVG" # Let the user override the test.
5022 else
5023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5024 for as_dir in $PATH
5025 do
5026   IFS=$as_save_IFS
5027   test -z "$as_dir" && as_dir=.
5028     for ac_exec_ext in '' $ac_executable_extensions; do
5029   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5030     ac_cv_prog_RSVG="$ac_prog"
5031     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5032     break 2
5033   fi
5034 done
5035   done
5036 IFS=$as_save_IFS
5037
5038 fi
5039 fi
5040 RSVG=$ac_cv_prog_RSVG
5041 if test -n "$RSVG"; then
5042   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG" >&5
5043 $as_echo "$RSVG" >&6; }
5044 else
5045   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5046 $as_echo "no" >&6; }
5047 fi
5048
5049
5050   test -n "$RSVG" && break
5051 done
5052 test -n "$RSVG" || RSVG="false"
5053
5054 for ac_prog in convert
5055 do
5056   # Extract the first word of "$ac_prog", so it can be a program name with args.
5057 set dummy $ac_prog; ac_word=$2
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5059 $as_echo_n "checking for $ac_word... " >&6; }
5060 if test "${ac_cv_prog_CONVERT+set}" = set; then :
5061   $as_echo_n "(cached) " >&6
5062 else
5063   if test -n "$CONVERT"; then
5064   ac_cv_prog_CONVERT="$CONVERT" # Let the user override the test.
5065 else
5066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5067 for as_dir in $PATH
5068 do
5069   IFS=$as_save_IFS
5070   test -z "$as_dir" && as_dir=.
5071     for ac_exec_ext in '' $ac_executable_extensions; do
5072   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5073     ac_cv_prog_CONVERT="$ac_prog"
5074     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5075     break 2
5076   fi
5077 done
5078   done
5079 IFS=$as_save_IFS
5080
5081 fi
5082 fi
5083 CONVERT=$ac_cv_prog_CONVERT
5084 if test -n "$CONVERT"; then
5085   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONVERT" >&5
5086 $as_echo "$CONVERT" >&6; }
5087 else
5088   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5089 $as_echo "no" >&6; }
5090 fi
5091
5092
5093   test -n "$CONVERT" && break
5094 done
5095 test -n "$CONVERT" || CONVERT="false"
5096
5097 for ac_prog in icotool
5098 do
5099   # Extract the first word of "$ac_prog", so it can be a program name with args.
5100 set dummy $ac_prog; ac_word=$2
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5102 $as_echo_n "checking for $ac_word... " >&6; }
5103 if test "${ac_cv_prog_ICOTOOL+set}" = set; then :
5104   $as_echo_n "(cached) " >&6
5105 else
5106   if test -n "$ICOTOOL"; then
5107   ac_cv_prog_ICOTOOL="$ICOTOOL" # Let the user override the test.
5108 else
5109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5110 for as_dir in $PATH
5111 do
5112   IFS=$as_save_IFS
5113   test -z "$as_dir" && as_dir=.
5114     for ac_exec_ext in '' $ac_executable_extensions; do
5115   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5116     ac_cv_prog_ICOTOOL="$ac_prog"
5117     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5118     break 2
5119   fi
5120 done
5121   done
5122 IFS=$as_save_IFS
5123
5124 fi
5125 fi
5126 ICOTOOL=$ac_cv_prog_ICOTOOL
5127 if test -n "$ICOTOOL"; then
5128   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICOTOOL" >&5
5129 $as_echo "$ICOTOOL" >&6; }
5130 else
5131   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5132 $as_echo "no" >&6; }
5133 fi
5134
5135
5136   test -n "$ICOTOOL" && break
5137 done
5138 test -n "$ICOTOOL" || ICOTOOL="false"
5139
5140
5141 if test "x$enable_maintainer_mode" != "xyes"
5142 then
5143   MAINTAINER_MODE=\#
5144
5145 else
5146   if test "$FONTFORGE" = "false"; then as_fn_error $? "You need fontforge to rebuild fonts in maintainer mode." "$LINENO" 5 ; fi
5147   if test "$RSVG" = "false"; then as_fn_error $? "You need rsvg to rebuild icons in maintainer mode." "$LINENO" 5 ; fi
5148
5149     if test "$CONVERT" = false
5150   then
5151     as_fn_error $? "You need imagemagick to rebuild icons in maintainer mode." "$LINENO" 5
5152   else
5153     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough imagemagick" >&5
5154 $as_echo_n "checking for recent enough imagemagick... " >&6; }
5155     convert_version=`convert --version | head -n1`
5156     if test "x$convert_version" != "x"
5157     then
5158       convert_version_major=`expr "$convert_version" : '.* \([0-9]*\)\.[0-9]*'`
5159       convert_version_minor=`expr "$convert_version" : '.* [0-9]*\.\([0-9]*\)'`
5160       if test "$convert_version_major" -eq 6 -a "$convert_version_minor" -lt 6
5161       then
5162         CONVERT=false
5163       fi
5164     fi
5165     if test "$CONVERT" = false
5166     then
5167       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($convert_version_major.$convert_version_minor)" >&5
5168 $as_echo "no ($convert_version_major.$convert_version_minor)" >&6; }
5169       as_fn_error $? "You need imagemagick version 6.6 or newer to rebuild icons in maintainer mode." "$LINENO" 5
5170     else
5171       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($convert_version_major.$convert_version_minor)" >&5
5172 $as_echo "yes ($convert_version_major.$convert_version_minor)" >&6; }
5173     fi
5174   fi
5175
5176     if test "$ICOTOOL" = false
5177   then
5178     as_fn_error $? "You need icotool to rebuild icons in maintainer mode." "$LINENO" 5
5179   else
5180     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough icotool" >&5
5181 $as_echo_n "checking for recent enough icotool... " >&6; }
5182     icotool_version=`icotool --version | head -n1`
5183     if test "x$icotool_version" != "x"
5184     then
5185       icotool_version_major=`expr "$icotool_version" : '.* \([0-9]*\)\.[0-9]*'`
5186       icotool_version_minor=`expr "$icotool_version" : '.* [0-9]*\.\([0-9]*\)'`
5187       if test "$icotool_version_major" -eq 0 -a "$icotool_version_minor" -lt 29
5188       then
5189         ICOTOOL=false
5190         as_fn_append wine_warnings "|icotool version 0.29.0 or newer is needed to rebuild icons."
5191       fi
5192     fi
5193     if test "$ICOTOOL" = false
5194     then
5195       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($icotool_version_major.$icotool_version_minor)" >&5
5196 $as_echo "no ($icotool_version_major.$icotool_version_minor)" >&6; }
5197       as_fn_error $? "You need icotool version 0.29.0 or newer to rebuild icons in maintainer mode." "$LINENO" 5
5198     else
5199       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($icotool_version_major.$icotool_version_minor)" >&5
5200 $as_echo "yes ($icotool_version_major.$icotool_version_minor)" >&6; }
5201     fi
5202   fi
5203
5204 fi
5205
5206
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for i386_set_ldt in -li386" >&5
5208 $as_echo_n "checking for i386_set_ldt in -li386... " >&6; }
5209 if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then :
5210   $as_echo_n "(cached) " >&6
5211 else
5212   ac_check_lib_save_LIBS=$LIBS
5213 LIBS="-li386  $LIBS"
5214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5215 /* end confdefs.h.  */
5216
5217 /* Override any GCC internal prototype to avoid an error.
5218    Use char because int might match the return type of a GCC
5219    builtin and then its argument prototype would still apply.  */
5220 #ifdef __cplusplus
5221 extern "C"
5222 #endif
5223 char i386_set_ldt ();
5224 int
5225 main ()
5226 {
5227 return i386_set_ldt ();
5228   ;
5229   return 0;
5230 }
5231 _ACEOF
5232 if ac_fn_c_try_link "$LINENO"; then :
5233   ac_cv_lib_i386_i386_set_ldt=yes
5234 else
5235   ac_cv_lib_i386_i386_set_ldt=no
5236 fi
5237 rm -f core conftest.err conftest.$ac_objext \
5238     conftest$ac_exeext conftest.$ac_ext
5239 LIBS=$ac_check_lib_save_LIBS
5240 fi
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_i386_i386_set_ldt" >&5
5242 $as_echo "$ac_cv_lib_i386_i386_set_ldt" >&6; }
5243 if test "x$ac_cv_lib_i386_i386_set_ldt" = x""yes; then :
5244   cat >>confdefs.h <<_ACEOF
5245 #define HAVE_LIBI386 1
5246 _ACEOF
5247
5248   LIBS="-li386 $LIBS"
5249
5250 fi
5251
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
5253 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
5254 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
5255   $as_echo_n "(cached) " >&6
5256 else
5257   ac_check_lib_save_LIBS=$LIBS
5258 LIBS="-lossaudio  $LIBS"
5259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5260 /* end confdefs.h.  */
5261
5262 /* Override any GCC internal prototype to avoid an error.
5263    Use char because int might match the return type of a GCC
5264    builtin and then its argument prototype would still apply.  */
5265 #ifdef __cplusplus
5266 extern "C"
5267 #endif
5268 char _oss_ioctl ();
5269 int
5270 main ()
5271 {
5272 return _oss_ioctl ();
5273   ;
5274   return 0;
5275 }
5276 _ACEOF
5277 if ac_fn_c_try_link "$LINENO"; then :
5278   ac_cv_lib_ossaudio__oss_ioctl=yes
5279 else
5280   ac_cv_lib_ossaudio__oss_ioctl=no
5281 fi
5282 rm -f core conftest.err conftest.$ac_objext \
5283     conftest$ac_exeext conftest.$ac_ext
5284 LIBS=$ac_check_lib_save_LIBS
5285 fi
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5287 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
5288 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
5289   cat >>confdefs.h <<_ACEOF
5290 #define HAVE_LIBOSSAUDIO 1
5291 _ACEOF
5292
5293   LIBS="-lossaudio $LIBS"
5294
5295 fi
5296
5297
5298 XLIB=""
5299
5300 OPENGL_LIBS=""
5301
5302
5303
5304 # Check whether --enable-largefile was given.
5305 if test "${enable_largefile+set}" = set; then :
5306   enableval=$enable_largefile;
5307 fi
5308
5309 if test "$enable_largefile" != no; then
5310
5311   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5312 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5313 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5314   $as_echo_n "(cached) " >&6
5315 else
5316   ac_cv_sys_largefile_CC=no
5317      if test "$GCC" != yes; then
5318        ac_save_CC=$CC
5319        while :; do
5320          # IRIX 6.2 and later do not support large files by default,
5321          # so use the C compiler's -n32 option if that helps.
5322          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5323 /* end confdefs.h.  */
5324 #include <sys/types.h>
5325  /* Check that off_t can represent 2**63 - 1 correctly.
5326     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5327     since some C++ compilers masquerading as C compilers
5328     incorrectly reject 9223372036854775807.  */
5329 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5330   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5331                        && LARGE_OFF_T % 2147483647 == 1)
5332                       ? 1 : -1];
5333 int
5334 main ()
5335 {
5336
5337   ;
5338   return 0;
5339 }
5340 _ACEOF
5341          if ac_fn_c_try_compile "$LINENO"; then :
5342   break
5343 fi
5344 rm -f core conftest.err conftest.$ac_objext
5345          CC="$CC -n32"
5346          if ac_fn_c_try_compile "$LINENO"; then :
5347   ac_cv_sys_largefile_CC=' -n32'; break
5348 fi
5349 rm -f core conftest.err conftest.$ac_objext
5350          break
5351        done
5352        CC=$ac_save_CC
5353        rm -f conftest.$ac_ext
5354     fi
5355 fi
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5357 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5358   if test "$ac_cv_sys_largefile_CC" != no; then
5359     CC=$CC$ac_cv_sys_largefile_CC
5360   fi
5361
5362   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5363 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5364 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5365   $as_echo_n "(cached) " >&6
5366 else
5367   while :; do
5368   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5369 /* end confdefs.h.  */
5370 #include <sys/types.h>
5371  /* Check that off_t can represent 2**63 - 1 correctly.
5372     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5373     since some C++ compilers masquerading as C compilers
5374     incorrectly reject 9223372036854775807.  */
5375 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5376   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5377                        && LARGE_OFF_T % 2147483647 == 1)
5378                       ? 1 : -1];
5379 int
5380 main ()
5381 {
5382
5383   ;
5384   return 0;
5385 }
5386 _ACEOF
5387 if ac_fn_c_try_compile "$LINENO"; then :
5388   ac_cv_sys_file_offset_bits=no; break
5389 fi
5390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5391   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5392 /* end confdefs.h.  */
5393 #define _FILE_OFFSET_BITS 64
5394 #include <sys/types.h>
5395  /* Check that off_t can represent 2**63 - 1 correctly.
5396     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5397     since some C++ compilers masquerading as C compilers
5398     incorrectly reject 9223372036854775807.  */
5399 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5400   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5401                        && LARGE_OFF_T % 2147483647 == 1)
5402                       ? 1 : -1];
5403 int
5404 main ()
5405 {
5406
5407   ;
5408   return 0;
5409 }
5410 _ACEOF
5411 if ac_fn_c_try_compile "$LINENO"; then :
5412   ac_cv_sys_file_offset_bits=64; break
5413 fi
5414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5415   ac_cv_sys_file_offset_bits=unknown
5416   break
5417 done
5418 fi
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5420 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5421 case $ac_cv_sys_file_offset_bits in #(
5422   no | unknown) ;;
5423   *)
5424 cat >>confdefs.h <<_ACEOF
5425 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5426 _ACEOF
5427 ;;
5428 esac
5429 rm -rf conftest*
5430   if test $ac_cv_sys_file_offset_bits = unknown; then
5431     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5432 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5433 if test "${ac_cv_sys_large_files+set}" = set; then :
5434   $as_echo_n "(cached) " >&6
5435 else
5436   while :; do
5437   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5438 /* end confdefs.h.  */
5439 #include <sys/types.h>
5440  /* Check that off_t can represent 2**63 - 1 correctly.
5441     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5442     since some C++ compilers masquerading as C compilers
5443     incorrectly reject 9223372036854775807.  */
5444 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5445   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5446                        && LARGE_OFF_T % 2147483647 == 1)
5447                       ? 1 : -1];
5448 int
5449 main ()
5450 {
5451
5452   ;
5453   return 0;
5454 }
5455 _ACEOF
5456 if ac_fn_c_try_compile "$LINENO"; then :
5457   ac_cv_sys_large_files=no; break
5458 fi
5459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5460   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5461 /* end confdefs.h.  */
5462 #define _LARGE_FILES 1
5463 #include <sys/types.h>
5464  /* Check that off_t can represent 2**63 - 1 correctly.
5465     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5466     since some C++ compilers masquerading as C compilers
5467     incorrectly reject 9223372036854775807.  */
5468 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5469   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5470                        && LARGE_OFF_T % 2147483647 == 1)
5471                       ? 1 : -1];
5472 int
5473 main ()
5474 {
5475
5476   ;
5477   return 0;
5478 }
5479 _ACEOF
5480 if ac_fn_c_try_compile "$LINENO"; then :
5481   ac_cv_sys_large_files=1; break
5482 fi
5483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5484   ac_cv_sys_large_files=unknown
5485   break
5486 done
5487 fi
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5489 $as_echo "$ac_cv_sys_large_files" >&6; }
5490 case $ac_cv_sys_large_files in #(
5491   no | unknown) ;;
5492   *)
5493 cat >>confdefs.h <<_ACEOF
5494 #define _LARGE_FILES $ac_cv_sys_large_files
5495 _ACEOF
5496 ;;
5497 esac
5498 rm -rf conftest*
5499   fi
5500 fi
5501
5502
5503 ac_ext=c
5504 ac_cpp='$CPP $CPPFLAGS'
5505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5509 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5510 # On Suns, sometimes $CPP names a directory.
5511 if test -n "$CPP" && test -d "$CPP"; then
5512   CPP=
5513 fi
5514 if test -z "$CPP"; then
5515   if test "${ac_cv_prog_CPP+set}" = set; then :
5516   $as_echo_n "(cached) " >&6
5517 else
5518       # Double quotes because CPP needs to be expanded
5519     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5520     do
5521       ac_preproc_ok=false
5522 for ac_c_preproc_warn_flag in '' yes
5523 do
5524   # Use a header file that comes with gcc, so configuring glibc
5525   # with a fresh cross-compiler works.
5526   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5527   # <limits.h> exists even on freestanding compilers.
5528   # On the NeXT, cc -E runs the code through the compiler's parser,
5529   # not just through cpp. "Syntax error" is here to catch this case.
5530   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5531 /* end confdefs.h.  */
5532 #ifdef __STDC__
5533 # include <limits.h>
5534 #else
5535 # include <assert.h>
5536 #endif
5537                      Syntax error
5538 _ACEOF
5539 if ac_fn_c_try_cpp "$LINENO"; then :
5540
5541 else
5542   # Broken: fails on valid input.
5543 continue
5544 fi
5545 rm -f conftest.err conftest.i conftest.$ac_ext
5546
5547   # OK, works on sane cases.  Now check whether nonexistent headers
5548   # can be detected and how.
5549   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5550 /* end confdefs.h.  */
5551 #include <ac_nonexistent.h>
5552 _ACEOF
5553 if ac_fn_c_try_cpp "$LINENO"; then :
5554   # Broken: success on invalid input.
5555 continue
5556 else
5557   # Passes both tests.
5558 ac_preproc_ok=:
5559 break
5560 fi
5561 rm -f conftest.err conftest.i conftest.$ac_ext
5562
5563 done
5564 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5565 rm -f conftest.i conftest.err conftest.$ac_ext
5566 if $ac_preproc_ok; then :
5567   break
5568 fi
5569
5570     done
5571     ac_cv_prog_CPP=$CPP
5572
5573 fi
5574   CPP=$ac_cv_prog_CPP
5575 else
5576   ac_cv_prog_CPP=$CPP
5577 fi
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5579 $as_echo "$CPP" >&6; }
5580 ac_preproc_ok=false
5581 for ac_c_preproc_warn_flag in '' yes
5582 do
5583   # Use a header file that comes with gcc, so configuring glibc
5584   # with a fresh cross-compiler works.
5585   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5586   # <limits.h> exists even on freestanding compilers.
5587   # On the NeXT, cc -E runs the code through the compiler's parser,
5588   # not just through cpp. "Syntax error" is here to catch this case.
5589   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5590 /* end confdefs.h.  */
5591 #ifdef __STDC__
5592 # include <limits.h>
5593 #else
5594 # include <assert.h>
5595 #endif
5596                      Syntax error
5597 _ACEOF
5598 if ac_fn_c_try_cpp "$LINENO"; then :
5599
5600 else
5601   # Broken: fails on valid input.
5602 continue
5603 fi
5604 rm -f conftest.err conftest.i conftest.$ac_ext
5605
5606   # OK, works on sane cases.  Now check whether nonexistent headers
5607   # can be detected and how.
5608   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5609 /* end confdefs.h.  */
5610 #include <ac_nonexistent.h>
5611 _ACEOF
5612 if ac_fn_c_try_cpp "$LINENO"; then :
5613   # Broken: success on invalid input.
5614 continue
5615 else
5616   # Passes both tests.
5617 ac_preproc_ok=:
5618 break
5619 fi
5620 rm -f conftest.err conftest.i conftest.$ac_ext
5621
5622 done
5623 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5624 rm -f conftest.i conftest.err conftest.$ac_ext
5625 if $ac_preproc_ok; then :
5626
5627 else
5628   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5629 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5630 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5631 See \`config.log' for more details" "$LINENO" 5 ; }
5632 fi
5633
5634 ac_ext=c
5635 ac_cpp='$CPP $CPPFLAGS'
5636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5639
5640
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5642 $as_echo_n "checking for ANSI C header files... " >&6; }
5643 if test "${ac_cv_header_stdc+set}" = set; then :
5644   $as_echo_n "(cached) " >&6
5645 else
5646   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5647 /* end confdefs.h.  */
5648 #include <stdlib.h>
5649 #include <stdarg.h>
5650 #include <string.h>
5651 #include <float.h>
5652
5653 int
5654 main ()
5655 {
5656
5657   ;
5658   return 0;
5659 }
5660 _ACEOF
5661 if ac_fn_c_try_compile "$LINENO"; then :
5662   ac_cv_header_stdc=yes
5663 else
5664   ac_cv_header_stdc=no
5665 fi
5666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5667
5668 if test $ac_cv_header_stdc = yes; then
5669   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5670   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5671 /* end confdefs.h.  */
5672 #include <string.h>
5673
5674 _ACEOF
5675 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5676   $EGREP "memchr" >/dev/null 2>&1; then :
5677
5678 else
5679   ac_cv_header_stdc=no
5680 fi
5681 rm -f conftest*
5682
5683 fi
5684
5685 if test $ac_cv_header_stdc = yes; then
5686   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5687   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5688 /* end confdefs.h.  */
5689 #include <stdlib.h>
5690
5691 _ACEOF
5692 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5693   $EGREP "free" >/dev/null 2>&1; then :
5694
5695 else
5696   ac_cv_header_stdc=no
5697 fi
5698 rm -f conftest*
5699
5700 fi
5701
5702 if test $ac_cv_header_stdc = yes; then
5703   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5704   if test "$cross_compiling" = yes; then :
5705   :
5706 else
5707   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5708 /* end confdefs.h.  */
5709 #include <ctype.h>
5710 #include <stdlib.h>
5711 #if ((' ' & 0x0FF) == 0x020)
5712 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5713 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5714 #else
5715 # define ISLOWER(c) \
5716                    (('a' <= (c) && (c) <= 'i') \
5717                      || ('j' <= (c) && (c) <= 'r') \
5718                      || ('s' <= (c) && (c) <= 'z'))
5719 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5720 #endif
5721
5722 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5723 int
5724 main ()
5725 {
5726   int i;
5727   for (i = 0; i < 256; i++)
5728     if (XOR (islower (i), ISLOWER (i))
5729         || toupper (i) != TOUPPER (i))
5730       return 2;
5731   return 0;
5732 }
5733 _ACEOF
5734 if ac_fn_c_try_run "$LINENO"; then :
5735
5736 else
5737   ac_cv_header_stdc=no
5738 fi
5739 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5740   conftest.$ac_objext conftest.beam conftest.$ac_ext
5741 fi
5742
5743 fi
5744 fi
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5746 $as_echo "$ac_cv_header_stdc" >&6; }
5747 if test $ac_cv_header_stdc = yes; then
5748
5749 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5750
5751 fi
5752
5753 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5754 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5755                   inttypes.h stdint.h unistd.h
5756 do :
5757   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5758 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5759 "
5760 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5761   cat >>confdefs.h <<_ACEOF
5762 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5763 _ACEOF
5764
5765 fi
5766
5767 done
5768
5769
5770 for ac_header in \
5771         AL/al.h \
5772         ApplicationServices/ApplicationServices.h \
5773         AudioToolbox/AudioConverter.h \
5774         AudioUnit/AudioUnit.h \
5775         AudioUnit/AudioComponent.h \
5776         CL/cl.h \
5777         Carbon/Carbon.h \
5778         CoreAudio/CoreAudio.h \
5779         DiskArbitration/DiskArbitration.h \
5780         IOKit/IOKitLib.h \
5781         IOKit/hid/IOHIDLib.h \
5782         OpenAL/al.h \
5783         OpenCL/opencl.h \
5784         QuickTime/ImageCompression.h \
5785         Security/Security.h \
5786         alias.h \
5787         alsa/asoundlib.h \
5788         arpa/inet.h \
5789         arpa/nameser.h \
5790         asm/types.h \
5791         capi20.h \
5792         curses.h \
5793         direct.h \
5794         dirent.h \
5795         dlfcn.h \
5796         elf.h \
5797         float.h \
5798         fnmatch.h \
5799         fontconfig/fontconfig.h \
5800         getopt.h \
5801         gettext-po.h \
5802         grp.h \
5803         gsm.h \
5804         gsm/gsm.h \
5805         ieeefp.h \
5806         inet/mib2.h \
5807         io.h \
5808         jack/jack.h \
5809         jpeglib.h \
5810         kstat.h \
5811         lber.h \
5812         lcms.h \
5813         lcms/lcms.h \
5814         ldap.h \
5815         link.h \
5816         linux/cdrom.h \
5817         linux/compiler.h \
5818         linux/hdreg.h \
5819         linux/input.h \
5820         linux/ioctl.h \
5821         linux/joystick.h \
5822         linux/major.h \
5823         linux/param.h \
5824         linux/serial.h \
5825         linux/types.h \
5826         linux/ucdrom.h \
5827         mach-o/nlist.h \
5828         mach-o/loader.h \
5829         mach/mach.h \
5830         mach/machine.h \
5831         machine/cpu.h \
5832         machine/limits.h \
5833         machine/soundcard.h \
5834         machine/sysarch.h \
5835         mntent.h \
5836         mpg123.h \
5837         ncurses.h \
5838         netdb.h \
5839         netinet/in.h \
5840         netinet/in_systm.h \
5841         netinet/tcp.h \
5842         netinet/tcp_fsm.h \
5843         openssl/err.h \
5844         openssl/ssl.h \
5845         png.h \
5846         poll.h \
5847         port.h \
5848         process.h \
5849         pthread.h \
5850         pwd.h \
5851         regex.h \
5852         sched.h \
5853         scsi/scsi.h \
5854         scsi/scsi_ioctl.h \
5855         scsi/sg.h \
5856         soundcard.h \
5857         stdbool.h \
5858         stdint.h \
5859         strings.h \
5860         stropts.h \
5861         sys/asoundlib.h \
5862         sys/attr.h \
5863         sys/cdio.h \
5864         sys/elf32.h \
5865         sys/epoll.h \
5866         sys/errno.h \
5867         sys/event.h \
5868         sys/exec_elf.h \
5869         sys/filio.h \
5870         sys/inotify.h \
5871         sys/ioctl.h \
5872         sys/ipc.h \
5873         sys/limits.h \
5874         sys/link.h \
5875         sys/mman.h \
5876         sys/modem.h \
5877         sys/msg.h \
5878         sys/mtio.h \
5879         sys/param.h \
5880         sys/poll.h \
5881         sys/prctl.h \
5882         sys/protosw.h \
5883         sys/ptrace.h \
5884         sys/resource.h \
5885         sys/scsiio.h \
5886         sys/shm.h \
5887         sys/signal.h \
5888         sys/socket.h \
5889         sys/socketvar.h \
5890         sys/sockio.h \
5891         sys/soundcard.h \
5892         sys/statvfs.h \
5893         sys/strtio.h \
5894         sys/syscall.h \
5895         sys/tihdr.h \
5896         sys/time.h \
5897         sys/timeout.h \
5898         sys/times.h \
5899         sys/uio.h \
5900         sys/un.h \
5901         sys/utsname.h \
5902         sys/vm86.h \
5903         sys/wait.h \
5904         syscall.h \
5905         termios.h \
5906         tiffio.h \
5907         unistd.h \
5908         utime.h \
5909         valgrind/memcheck.h \
5910         valgrind/valgrind.h \
5911         zlib.h
5912
5913 do :
5914   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5915 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5916 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5917   cat >>confdefs.h <<_ACEOF
5918 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5919 _ACEOF
5920
5921 fi
5922
5923 done
5924
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
5926 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
5927 if test "${ac_cv_header_stat_broken+set}" = set; then :
5928   $as_echo_n "(cached) " >&6
5929 else
5930   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5931 /* end confdefs.h.  */
5932 #include <sys/types.h>
5933 #include <sys/stat.h>
5934
5935 #if defined S_ISBLK && defined S_IFDIR
5936 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
5937 #endif
5938
5939 #if defined S_ISBLK && defined S_IFCHR
5940 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
5941 #endif
5942
5943 #if defined S_ISLNK && defined S_IFREG
5944 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
5945 #endif
5946
5947 #if defined S_ISSOCK && defined S_IFREG
5948 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
5949 #endif
5950
5951 _ACEOF
5952 if ac_fn_c_try_compile "$LINENO"; then :
5953   ac_cv_header_stat_broken=no
5954 else
5955   ac_cv_header_stat_broken=yes
5956 fi
5957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5958 fi
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
5960 $as_echo "$ac_cv_header_stat_broken" >&6; }
5961 if test $ac_cv_header_stat_broken = yes; then
5962
5963 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
5964
5965 fi
5966
5967
5968
5969 for ac_header in sys/mount.h sys/statfs.h sys/sysctl.h sys/user.h sys/vfs.h
5970 do :
5971   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5972 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
5973      #ifdef HAVE_SYS_PARAM_H
5974      # include <sys/param.h>
5975      #endif
5976 "
5977 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5978   cat >>confdefs.h <<_ACEOF
5979 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5980 _ACEOF
5981
5982 fi
5983
5984 done
5985
5986
5987 for ac_header in \
5988         netinet/ip.h \
5989         net/if.h \
5990         net/if_arp.h \
5991         net/if_dl.h \
5992         net/if_types.h \
5993         net/route.h \
5994         netinet/if_ether.h \
5995         netinet/if_inarp.h \
5996         netinet/in_pcb.h \
5997         netinet/ip_icmp.h \
5998         netinet/ip_var.h \
5999         netinet/udp.h \
6000         netipx/ipx.h \
6001
6002 do :
6003   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6004 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6005      #ifdef HAVE_SYS_SOCKET_H
6006      # include <sys/socket.h>
6007      #endif
6008      #ifdef HAVE_SYS_SOCKETVAR_H
6009      # include <sys/socketvar.h>
6010      #endif
6011      #ifdef HAVE_NET_ROUTE_H
6012      # include <net/route.h>
6013      #endif
6014      #ifdef HAVE_NETINET_IN_H
6015      # include <netinet/in.h>
6016      #endif
6017      #ifdef HAVE_NETINET_IN_SYSTM_H
6018      # include <netinet/in_systm.h>
6019      #endif
6020      #ifdef HAVE_NET_IF_H
6021      # include <net/if.h>
6022      #endif
6023      #ifdef HAVE_NETINET_IP_H
6024      # include <netinet/ip.h>
6025      #endif
6026 "
6027 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6028   cat >>confdefs.h <<_ACEOF
6029 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6030 _ACEOF
6031
6032 fi
6033
6034 done
6035
6036
6037 for ac_header in netinet/tcp_timer.h netinet/udp_var.h netinet/icmp_var.h netinet/tcp_var.h
6038 do :
6039   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6040 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6041      #ifdef HAVE_ALIAS_H
6042      # include <alias.h>
6043      #endif
6044      #ifdef HAVE_SYS_SOCKET_H
6045      # include <sys/socket.h>
6046      #endif
6047      #ifdef HAVE_SYS_SOCKETVAR_H
6048      # include <sys/socketvar.h>
6049      #endif
6050      #ifdef HAVE_SYS_TIMEOUT_H
6051      # include <sys/timeout.h>
6052      #endif
6053      #ifdef HAVE_NETINET_IN_H
6054      # include <netinet/in.h>
6055      #endif
6056      #ifdef HAVE_NETINET_IN_SYSTM_H
6057      # include <netinet/in_systm.h>
6058      #endif
6059      #ifdef HAVE_NETINET_IP_H
6060      # include <netinet/ip.h>
6061      #endif
6062      #ifdef HAVE_NETINET_IP_VAR_H
6063      # include <netinet/ip_var.h>
6064      #endif
6065      #ifdef HAVE_NETINET_IP_ICMP_H
6066      # include <netinet/ip_icmp.h>
6067      #endif
6068      #ifdef HAVE_NETINET_UDP_H
6069      # include <netinet/udp.h>
6070      #endif
6071      #ifdef HAVE_NETINET_TCP_H
6072      # include <netinet/tcp.h>
6073      #endif
6074      #ifdef HAVE_NETINET_TCP_TIMER_H
6075      #include <netinet/tcp_timer.h>
6076      #endif
6077 "
6078 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6079   cat >>confdefs.h <<_ACEOF
6080 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6081 _ACEOF
6082
6083 fi
6084
6085 done
6086
6087
6088 for ac_header in linux/ipx.h linux/irda.h
6089 do :
6090   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6091 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6092      #ifdef HAVE_ASM_TYPES_H
6093      # include <asm/types.h>
6094      #endif
6095      #ifdef HAVE_SYS_SOCKET_H
6096      # include <sys/socket.h>
6097      #endif
6098      #ifdef HAVE_LINUX_TYPES_H
6099      # include <linux/types.h>
6100      #endif
6101 "
6102 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6103   cat >>confdefs.h <<_ACEOF
6104 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6105 _ACEOF
6106
6107 fi
6108
6109 done
6110
6111
6112 for ac_header in mach-o/dyld_images.h
6113 do :
6114   ac_fn_c_check_header_compile "$LINENO" "mach-o/dyld_images.h" "ac_cv_header_mach_o_dyld_images_h" "#ifdef HAVE_STDBOOL_H
6115      # include <stdbool.h>
6116      #endif
6117      #ifdef HAVE_STDINT_H
6118      # include <stdint.h>
6119      #endif
6120 "
6121 if test "x$ac_cv_header_mach_o_dyld_images_h" = x""yes; then :
6122   cat >>confdefs.h <<_ACEOF
6123 #define HAVE_MACH_O_DYLD_IMAGES_H 1
6124 _ACEOF
6125
6126 fi
6127
6128 done
6129
6130
6131 for ac_header in resolv.h
6132 do :
6133   ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "#include <sys/types.h>
6134      #ifdef HAVE_SYS_SOCKET_H
6135      # include <sys/socket.h>
6136      #endif
6137      #ifdef HAVE_NETINET_IN_H
6138      # include <netinet/in.h>
6139      #endif
6140      #ifdef HAVE_ARPA_NAMESER_H
6141      # include <arpa/nameser.h>
6142      #endif
6143 "
6144 if test "x$ac_cv_header_resolv_h" = x""yes; then :
6145   cat >>confdefs.h <<_ACEOF
6146 #define HAVE_RESOLV_H 1
6147 _ACEOF
6148
6149 fi
6150
6151 done
6152
6153
6154 for ac_header in ifaddrs.h
6155 do :
6156   ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "#include <sys/types.h>
6157 "
6158 if test "x$ac_cv_header_ifaddrs_h" = x""yes; then :
6159   cat >>confdefs.h <<_ACEOF
6160 #define HAVE_IFADDRS_H 1
6161 _ACEOF
6162
6163 fi
6164
6165 done
6166
6167
6168 for ac_header in ucontext.h
6169 do :
6170   ac_fn_c_check_header_compile "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "#include <signal.h>
6171 "
6172 if test "x$ac_cv_header_ucontext_h" = x""yes; then :
6173   cat >>confdefs.h <<_ACEOF
6174 #define HAVE_UCONTEXT_H 1
6175 _ACEOF
6176
6177 fi
6178
6179 done
6180
6181
6182 for ac_header in sys/thr.h
6183 do :
6184   ac_fn_c_check_header_compile "$LINENO" "sys/thr.h" "ac_cv_header_sys_thr_h" "#include <sys/types.h>
6185 #ifdef HAVE_UCONTEXT_H
6186 #include <ucontext.h>
6187 #endif
6188 "
6189 if test "x$ac_cv_header_sys_thr_h" = x""yes; then :
6190   cat >>confdefs.h <<_ACEOF
6191 #define HAVE_SYS_THR_H 1
6192 _ACEOF
6193
6194 fi
6195
6196 done
6197
6198
6199 for ac_header in pthread_np.h
6200 do :
6201   ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" "#ifdef HAVE_PTHREAD_H
6202 #include <pthread.h>
6203 #endif
6204 "
6205 if test "x$ac_cv_header_pthread_np_h" = x""yes; then :
6206   cat >>confdefs.h <<_ACEOF
6207 #define HAVE_PTHREAD_NP_H 1
6208 _ACEOF
6209
6210 fi
6211
6212 done
6213
6214
6215 for ac_header in linux/videodev.h
6216 do :
6217   ac_fn_c_check_header_compile "$LINENO" "linux/videodev.h" "ac_cv_header_linux_videodev_h" "#ifdef HAVE_SYS_TIME_H
6218 #include <sys/time.h>
6219 #endif
6220 #include <sys/types.h>
6221 #ifdef HAVE_ASM_TYPES_H
6222 #include <asm/types.h>
6223 #endif
6224 "
6225 if test "x$ac_cv_header_linux_videodev_h" = x""yes; then :
6226   cat >>confdefs.h <<_ACEOF
6227 #define HAVE_LINUX_VIDEODEV_H 1
6228 _ACEOF
6229
6230 fi
6231
6232 done
6233
6234
6235 for ac_header in linux/capi.h
6236 do :
6237   ac_fn_c_check_header_compile "$LINENO" "linux/capi.h" "ac_cv_header_linux_capi_h" "#define __user
6238 "
6239 if test "x$ac_cv_header_linux_capi_h" = x""yes; then :
6240   cat >>confdefs.h <<_ACEOF
6241 #define HAVE_LINUX_CAPI_H 1
6242 _ACEOF
6243
6244 fi
6245
6246 done
6247
6248
6249
6250 DLLEXT=""
6251
6252 DLLFLAGS="-D_REENTRANT"
6253
6254 LDSHARED=""
6255
6256 LDDLLFLAGS=""
6257
6258 LIBEXT="so"
6259
6260 IMPLIBEXT="def"
6261
6262 LDRPATH_INSTALL=""
6263
6264 LDRPATH_LOCAL=""
6265
6266 STATIC_IMPLIBEXT="def.a"
6267 # Extract the first word of "ldd", so it can be a program name with args.
6268 set dummy ldd; ac_word=$2
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6270 $as_echo_n "checking for $ac_word... " >&6; }
6271 if test "${ac_cv_path_LDD+set}" = set; then :
6272   $as_echo_n "(cached) " >&6
6273 else
6274   case $LDD in
6275   [\\/]* | ?:[\\/]*)
6276   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
6277   ;;
6278   *)
6279   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6280 as_dummy="/sbin:/usr/sbin:$PATH"
6281 for as_dir in $as_dummy
6282 do
6283   IFS=$as_save_IFS
6284   test -z "$as_dir" && as_dir=.
6285     for ac_exec_ext in '' $ac_executable_extensions; do
6286   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6287     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
6288     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6289     break 2
6290   fi
6291 done
6292   done
6293 IFS=$as_save_IFS
6294
6295   test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
6296   ;;
6297 esac
6298 fi
6299 LDD=$ac_cv_path_LDD
6300 if test -n "$LDD"; then
6301   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
6302 $as_echo "$LDD" >&6; }
6303 else
6304   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6305 $as_echo "no" >&6; }
6306 fi
6307
6308
6309
6310 case $host_os in
6311   cygwin*|mingw32*)
6312     if test -n "$ac_tool_prefix"; then
6313   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6314 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6316 $as_echo_n "checking for $ac_word... " >&6; }
6317 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
6318   $as_echo_n "(cached) " >&6
6319 else
6320   if test -n "$DLLTOOL"; then
6321   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6322 else
6323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6324 for as_dir in $PATH
6325 do
6326   IFS=$as_save_IFS
6327   test -z "$as_dir" && as_dir=.
6328     for ac_exec_ext in '' $ac_executable_extensions; do
6329   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6330     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6331     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6332     break 2
6333   fi
6334 done
6335   done
6336 IFS=$as_save_IFS
6337
6338 fi
6339 fi
6340 DLLTOOL=$ac_cv_prog_DLLTOOL
6341 if test -n "$DLLTOOL"; then
6342   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6343 $as_echo "$DLLTOOL" >&6; }
6344 else
6345   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6346 $as_echo "no" >&6; }
6347 fi
6348
6349
6350 fi
6351 if test -z "$ac_cv_prog_DLLTOOL"; then
6352   ac_ct_DLLTOOL=$DLLTOOL
6353   # Extract the first word of "dlltool", so it can be a program name with args.
6354 set dummy dlltool; ac_word=$2
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6356 $as_echo_n "checking for $ac_word... " >&6; }
6357 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
6358   $as_echo_n "(cached) " >&6
6359 else
6360   if test -n "$ac_ct_DLLTOOL"; then
6361   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6362 else
6363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6364 for as_dir in $PATH
6365 do
6366   IFS=$as_save_IFS
6367   test -z "$as_dir" && as_dir=.
6368     for ac_exec_ext in '' $ac_executable_extensions; do
6369   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6370     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6371     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6372     break 2
6373   fi
6374 done
6375   done
6376 IFS=$as_save_IFS
6377
6378 fi
6379 fi
6380 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6381 if test -n "$ac_ct_DLLTOOL"; then
6382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6383 $as_echo "$ac_ct_DLLTOOL" >&6; }
6384 else
6385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6386 $as_echo "no" >&6; }
6387 fi
6388
6389   if test "x$ac_ct_DLLTOOL" = x; then
6390     DLLTOOL="false"
6391   else
6392     case $cross_compiling:$ac_tool_warned in
6393 yes:)
6394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6395 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6396 ac_tool_warned=yes ;;
6397 esac
6398     DLLTOOL=$ac_ct_DLLTOOL
6399   fi
6400 else
6401   DLLTOOL="$ac_cv_prog_DLLTOOL"
6402 fi
6403
6404     if test -n "$ac_tool_prefix"; then
6405   # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
6406 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
6407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6408 $as_echo_n "checking for $ac_word... " >&6; }
6409 if test "${ac_cv_prog_DLLWRAP+set}" = set; then :
6410   $as_echo_n "(cached) " >&6
6411 else
6412   if test -n "$DLLWRAP"; then
6413   ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
6414 else
6415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6416 for as_dir in $PATH
6417 do
6418   IFS=$as_save_IFS
6419   test -z "$as_dir" && as_dir=.
6420     for ac_exec_ext in '' $ac_executable_extensions; do
6421   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6422     ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
6423     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6424     break 2
6425   fi
6426 done
6427   done
6428 IFS=$as_save_IFS
6429
6430 fi
6431 fi
6432 DLLWRAP=$ac_cv_prog_DLLWRAP
6433 if test -n "$DLLWRAP"; then
6434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLWRAP" >&5
6435 $as_echo "$DLLWRAP" >&6; }
6436 else
6437   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6438 $as_echo "no" >&6; }
6439 fi
6440
6441
6442 fi
6443 if test -z "$ac_cv_prog_DLLWRAP"; then
6444   ac_ct_DLLWRAP=$DLLWRAP
6445   # Extract the first word of "dllwrap", so it can be a program name with args.
6446 set dummy dllwrap; ac_word=$2
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6448 $as_echo_n "checking for $ac_word... " >&6; }
6449 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then :
6450   $as_echo_n "(cached) " >&6
6451 else
6452   if test -n "$ac_ct_DLLWRAP"; then
6453   ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
6454 else
6455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6456 for as_dir in $PATH
6457 do
6458   IFS=$as_save_IFS
6459   test -z "$as_dir" && as_dir=.
6460     for ac_exec_ext in '' $ac_executable_extensions; do
6461   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6462     ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
6463     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6464     break 2
6465   fi
6466 done
6467   done
6468 IFS=$as_save_IFS
6469
6470 fi
6471 fi
6472 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
6473 if test -n "$ac_ct_DLLWRAP"; then
6474   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLWRAP" >&5
6475 $as_echo "$ac_ct_DLLWRAP" >&6; }
6476 else
6477   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6478 $as_echo "no" >&6; }
6479 fi
6480
6481   if test "x$ac_ct_DLLWRAP" = x; then
6482     DLLWRAP="false"
6483   else
6484     case $cross_compiling:$ac_tool_warned in
6485 yes:)
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6487 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6488 ac_tool_warned=yes ;;
6489 esac
6490     DLLWRAP=$ac_ct_DLLWRAP
6491   fi
6492 else
6493   DLLWRAP="$ac_cv_prog_DLLWRAP"
6494 fi
6495
6496     if test "$DLLWRAP" = "false"; then
6497       LIBEXT="a"
6498     else
6499             LIBEXT="dll"
6500     fi
6501     IMPLIBEXT="a"
6502     STATIC_IMPLIBEXT="a"
6503         enable_iphlpapi=${enable_iphlpapi:-no}
6504     enable_kernel32=${enable_kernel32:-no}
6505     enable_msvcrt=${enable_msvcrt:-no}
6506     enable_ntdll=${enable_ntdll:-no}
6507     enable_ws2_32=${enable_ws2_32:-no}
6508     enable_loader=${enable_loader:-no}
6509     enable_server=${enable_server:-no}
6510         with_x=${with_x:-no}
6511     with_pthread=${with_pthread:-no}
6512     ;;
6513   darwin*|macosx*)
6514     DLLEXT=".so"
6515     LIBEXT="dylib"
6516     DLLFLAGS="$DLLFLAGS -fPIC"
6517     LDDLLFLAGS="-bundle -multiply_defined suppress"
6518     LIBWINE_LDFLAGS="-multiply_defined suppress"
6519     LDSHARED="\$(CC) -dynamiclib"
6520     STRIP="$STRIP -x"
6521     LDRPATH_LOCAL="&& install_name_tool -change @executable_path/\`\$(RELPATH) \$(bindir) \$(libdir)\`/libwine.1.dylib @executable_path/\$(top_builddir)/libs/wine/libwine.1.dylib \$@ || \$(RM) \$@"
6522         COREFOUNDATIONLIB="-framework CoreFoundation"
6523
6524     IOKITLIB="-framework IOKit -framework CoreFoundation"
6525
6526     APPLICATIONSERVICESLIB="-framework ApplicationServices"
6527
6528     LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00000000,-segaddr,WINE_SHAREDHEAP,0x7f000000"
6529
6530     if test "$ac_cv_header_DiskArbitration_DiskArbitration_h" = "yes"
6531     then
6532                 DISKARBITRATIONLIB="-framework DiskArbitration -framework CoreFoundation"
6533
6534     fi
6535     if test "$ac_cv_header_Security_Security_h" = "yes"
6536     then
6537         SECURITYLIB="-framework Security -framework CoreFoundation"
6538
6539         with_gnutls=${with_gnutls:-no}
6540     fi
6541     if test "$ac_cv_header_CoreAudio_CoreAudio_h" = "yes" -a "$ac_cv_header_AudioUnit_AudioUnit_h" = "yes"
6542     then
6543         if test "$ac_cv_header_AudioUnit_AudioComponent_h" = "yes"
6544         then
6545             COREAUDIO="-framework CoreFoundation -framework CoreAudio -framework AudioUnit -framework AudioToolbox -framework CoreMIDI"
6546
6547         else
6548                         COREAUDIO="-framework CoreAudio -framework AudioUnit -framework CoreServices -framework AudioToolbox -framework CoreMIDI"
6549
6550         fi
6551                 ac_save_LIBS="$LIBS"
6552         LIBS="$LIBS $COREAUDIO"
6553         for ac_func in AUGraphAddNode
6554 do :
6555   ac_fn_c_check_func "$LINENO" "AUGraphAddNode" "ac_cv_func_AUGraphAddNode"
6556 if test "x$ac_cv_func_AUGraphAddNode" = x""yes; then :
6557   cat >>confdefs.h <<_ACEOF
6558 #define HAVE_AUGRAPHADDNODE 1
6559 _ACEOF
6560
6561 fi
6562 done
6563
6564         LIBS="$ac_save_LIBS"
6565     fi
6566     if test "$ac_cv_header_OpenAL_al_h" = "yes"
6567     then
6568         FRAMEWORK_OPENAL="-framework OpenAL"
6569
6570
6571 cat >>confdefs.h <<_ACEOF
6572 #define HAVE_OPENAL 1
6573 _ACEOF
6574
6575         ac_cv_lib_openal=yes
6576     fi
6577     if test "$ac_cv_header_OpenCL_opencl_h" = "yes"
6578     then
6579         LIBOPENCL="-framework OpenCL"
6580
6581         ac_cv_lib_OpenCL_clGetPlatformInfo=yes
6582     fi
6583     if test "$ac_cv_header_IOKit_hid_IOHIDLib_h" = "yes"
6584     then
6585         ac_save_LIBS="$LIBS"
6586         LIBS="$LIBS $IOKITLIB"
6587         for ac_func in IOHIDManagerCreate
6588 do :
6589   ac_fn_c_check_func "$LINENO" "IOHIDManagerCreate" "ac_cv_func_IOHIDManagerCreate"
6590 if test "x$ac_cv_func_IOHIDManagerCreate" = x""yes; then :
6591   cat >>confdefs.h <<_ACEOF
6592 #define HAVE_IOHIDMANAGERCREATE 1
6593 _ACEOF
6594
6595 fi
6596 done
6597
6598         LIBS="$ac_save_LIBS"
6599     fi
6600     case $host_cpu in
6601       *powerpc*)
6602         LDDLLFLAGS="$LDDLLFLAGS -read_only_relocs warning"          ;;
6603     esac
6604     if test "$ac_cv_header_QuickTime_ImageCompression_h" = "yes"
6605     then
6606         QUICKTIMELIB="-framework QuickTime -framework ApplicationServices -framework CoreVideo"
6607
6608         enable_wineqtdecoder=${enable_wineqtdecoder:-yes}
6609     else
6610         as_fn_append wine_notices "|QuickTime ${notice_platform}development files not found, video decoding won't be supported."
6611     fi
6612         if test "$ac_cv_header_Carbon_Carbon_h" = "yes"
6613     then
6614         CARBONLIB="-framework Carbon"
6615
6616         enable_winequartz_drv=${enable_winequartz_drv:-yes}
6617     fi
6618         if test "x$enable_win16" = "xyes"
6619     then
6620         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 16-bit code can be built correctly" >&5
6621 $as_echo_n "checking whether 16-bit code can be built correctly... " >&6; }
6622         if test "$cross_compiling" = yes; then :
6623   { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5
6624 $as_echo "cross-compiling, assuming yes" >&6; }
6625 else
6626   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6627 /* end confdefs.h.  */
6628 asm(".text\n"
6629                                             "bad:\tnop;nop\n"
6630                                             "good:\tnop;nop\n\t"
6631                                             ".globl _testfunc\n"
6632                                             "_testfunc:\tcallw good");
6633                                         extern void testfunc();
6634 int
6635 main ()
6636 {
6637 unsigned short *p = (unsigned short *)testfunc;
6638                                         return p[0] != 0xe866 || p[1] != 0xfffa
6639   ;
6640   return 0;
6641 }
6642 _ACEOF
6643 if ac_fn_c_try_run "$LINENO"; then :
6644   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6645 $as_echo "yes" >&6; }
6646 else
6647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6648 $as_echo "no" >&6; }
6649                                        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
6650 fi
6651 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6652   conftest.$ac_objext conftest.beam conftest.$ac_ext
6653 fi
6654
6655     fi
6656     ;;
6657   *)
6658     DLLFLAGS="$DLLFLAGS -fPIC"
6659     DLLEXT=".so"
6660     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a GNU style ELF dll" >&5
6661 $as_echo_n "checking whether we can build a GNU style ELF dll... " >&6; }
6662 if test "${ac_cv_c_dll_gnuelf+set}" = set; then :
6663   $as_echo_n "(cached) " >&6
6664 else
6665   ac_wine_try_cflags_saved=$CFLAGS
6666 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic"
6667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6668 /* end confdefs.h.  */
6669 void myfunc() {}
6670 _ACEOF
6671 if ac_fn_c_try_link "$LINENO"; then :
6672   ac_cv_c_dll_gnuelf="yes"
6673 else
6674   ac_cv_c_dll_gnuelf="no"
6675 fi
6676 rm -f core conftest.err conftest.$ac_objext \
6677     conftest$ac_exeext conftest.$ac_ext
6678 CFLAGS=$ac_wine_try_cflags_saved
6679 fi
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_gnuelf" >&5
6681 $as_echo "$ac_cv_c_dll_gnuelf" >&6; }
6682     if test "$ac_cv_c_dll_gnuelf" = "yes"
6683     then
6684       LDSHARED="\$(CC) -shared"
6685       LDDLLFLAGS="-shared -Wl,-Bsymbolic"
6686       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1" >&5
6687 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1... " >&6; }
6688 if test "${ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1+set}" = set; then :
6689   $as_echo_n "(cached) " >&6
6690 else
6691   ac_wine_try_cflags_saved=$CFLAGS
6692 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,confest.so.1"
6693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6694 /* end confdefs.h.  */
6695 int main(int argc, char **argv) { return 0; }
6696 _ACEOF
6697 if ac_fn_c_try_link "$LINENO"; then :
6698   ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=yes
6699 else
6700   ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=no
6701 fi
6702 rm -f core conftest.err conftest.$ac_objext \
6703     conftest$ac_exeext conftest.$ac_ext
6704 CFLAGS=$ac_wine_try_cflags_saved
6705 fi
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&5
6707 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&6; }
6708 if test $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1 = yes; then :
6709   LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
6710 else
6711   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1" >&5
6712 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1... " >&6; }
6713 if test "${ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1+set}" = set; then :
6714   $as_echo_n "(cached) " >&6
6715 else
6716   ac_wine_try_cflags_saved=$CFLAGS
6717 CFLAGS="$CFLAGS -fPIC -shared -Wl,-h,confest.so.1"
6718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6719 /* end confdefs.h.  */
6720 int main(int argc, char **argv) { return 0; }
6721 _ACEOF
6722 if ac_fn_c_try_link "$LINENO"; then :
6723   ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=yes
6724 else
6725   ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=no
6726 fi
6727 rm -f core conftest.err conftest.$ac_objext \
6728     conftest$ac_exeext conftest.$ac_ext
6729 CFLAGS=$ac_wine_try_cflags_saved
6730 fi
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&5
6732 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&6; }
6733 if test $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1 = yes; then :
6734   LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-h,%)"
6735 fi
6736 fi
6737
6738       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs" >&5
6739 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs... " >&6; }
6740 if test "${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs+set}" = set; then :
6741   $as_echo_n "(cached) " >&6
6742 else
6743   ac_wine_try_cflags_saved=$CFLAGS
6744 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
6745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6746 /* end confdefs.h.  */
6747 int main(int argc, char **argv) { return 0; }
6748 _ACEOF
6749 if ac_fn_c_try_link "$LINENO"; then :
6750   ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=yes
6751 else
6752   ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=no
6753 fi
6754 rm -f core conftest.err conftest.$ac_objext \
6755     conftest$ac_exeext conftest.$ac_ext
6756 CFLAGS=$ac_wine_try_cflags_saved
6757 fi
6758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&5
6759 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&6; }
6760 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs = yes; then :
6761   LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
6762 fi
6763
6764       { $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
6765 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini... " >&6; }
6766 if test "${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini+set}" = set; then :
6767   $as_echo_n "(cached) " >&6
6768 else
6769   ac_wine_try_cflags_saved=$CFLAGS
6770 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
6771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6772 /* end confdefs.h.  */
6773 int main(int argc, char **argv) { return 0; }
6774 _ACEOF
6775 if ac_fn_c_try_link "$LINENO"; then :
6776   ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=yes
6777 else
6778   ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=no
6779 fi
6780 rm -f core conftest.err conftest.$ac_objext \
6781     conftest$ac_exeext conftest.$ac_ext
6782 CFLAGS=$ac_wine_try_cflags_saved
6783 fi
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&5
6785 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&6; }
6786 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini = yes; then :
6787   LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
6788 fi
6789
6790       echo '{ global: *; };' >conftest.map
6791       as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -shared -Wl,--version-script=conftest.map" | $as_tr_sh`
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map" >&5
6793 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map... " >&6; }
6794 if eval "test \"\${$as_ac_var+set}\"" = set; then :
6795   $as_echo_n "(cached) " >&6
6796 else
6797   ac_wine_try_cflags_saved=$CFLAGS
6798 CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
6799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6800 /* end confdefs.h.  */
6801 int main(int argc, char **argv) { return 0; }
6802 _ACEOF
6803 if ac_fn_c_try_link "$LINENO"; then :
6804   eval "$as_ac_var=yes"
6805 else
6806   eval "$as_ac_var=no"
6807 fi
6808 rm -f core conftest.err conftest.$ac_objext \
6809     conftest$ac_exeext conftest.$ac_ext
6810 CFLAGS=$ac_wine_try_cflags_saved
6811 fi
6812 eval ac_res=\$$as_ac_var
6813                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6814 $as_echo "$ac_res" >&6; }
6815 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6816   LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)"
6817 fi
6818       rm -f conftest.map
6819
6820       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5
6821 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--export-dynamic... " >&6; }
6822 if test "${ac_cv_cflags__fPIC__Wl___export_dynamic+set}" = set; then :
6823   $as_echo_n "(cached) " >&6
6824 else
6825   ac_wine_try_cflags_saved=$CFLAGS
6826 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
6827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6828 /* end confdefs.h.  */
6829 int main(int argc, char **argv) { return 0; }
6830 _ACEOF
6831 if ac_fn_c_try_link "$LINENO"; then :
6832   ac_cv_cflags__fPIC__Wl___export_dynamic=yes
6833 else
6834   ac_cv_cflags__fPIC__Wl___export_dynamic=no
6835 fi
6836 rm -f core conftest.err conftest.$ac_objext \
6837     conftest$ac_exeext conftest.$ac_ext
6838 CFLAGS=$ac_wine_try_cflags_saved
6839 fi
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__Wl___export_dynamic" >&5
6841 $as_echo "$ac_cv_cflags__fPIC__Wl___export_dynamic" >&6; }
6842 if test $ac_cv_cflags__fPIC__Wl___export_dynamic = yes; then :
6843   LDEXECFLAGS="-Wl,--export-dynamic"
6844
6845 fi
6846
6847       as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,--rpath,\\$ORIGIN/../lib" | $as_tr_sh`
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib" >&5
6849 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... " >&6; }
6850 if eval "test \"\${$as_ac_var+set}\"" = set; then :
6851   $as_echo_n "(cached) " >&6
6852 else
6853   ac_wine_try_cflags_saved=$CFLAGS
6854 CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
6855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6856 /* end confdefs.h.  */
6857 int main(int argc, char **argv) { return 0; }
6858 _ACEOF
6859 if ac_fn_c_try_link "$LINENO"; then :
6860   eval "$as_ac_var=yes"
6861 else
6862   eval "$as_ac_var=no"
6863 fi
6864 rm -f core conftest.err conftest.$ac_objext \
6865     conftest$ac_exeext conftest.$ac_ext
6866 CFLAGS=$ac_wine_try_cflags_saved
6867 fi
6868 eval ac_res=\$$as_ac_var
6869                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6870 $as_echo "$ac_res" >&6; }
6871 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6872   LDRPATH_INSTALL="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
6873                        LDRPATH_LOCAL="-Wl,--rpath,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
6874 else
6875   as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,-R,\\$ORIGIN/../lib" | $as_tr_sh`
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib" >&5
6877 $as_echo_n "checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib... " >&6; }
6878 if eval "test \"\${$as_ac_var+set}\"" = set; then :
6879   $as_echo_n "(cached) " >&6
6880 else
6881   ac_wine_try_cflags_saved=$CFLAGS
6882 CFLAGS="$CFLAGS -fPIC -Wl,-R,\$ORIGIN/../lib"
6883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6884 /* end confdefs.h.  */
6885 int main(int argc, char **argv) { return 0; }
6886 _ACEOF
6887 if ac_fn_c_try_link "$LINENO"; then :
6888   eval "$as_ac_var=yes"
6889 else
6890   eval "$as_ac_var=no"
6891 fi
6892 rm -f core conftest.err conftest.$ac_objext \
6893     conftest$ac_exeext conftest.$ac_ext
6894 CFLAGS=$ac_wine_try_cflags_saved
6895 fi
6896 eval ac_res=\$$as_ac_var
6897                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6898 $as_echo "$ac_res" >&6; }
6899 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6900   LDRPATH_INSTALL="-Wl,-R,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
6901                             LDRPATH_LOCAL="-Wl,-R,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
6902 fi
6903 fi
6904
6905       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--enable-new-dtags" >&5
6906 $as_echo_n "checking whether the compiler supports -Wl,--enable-new-dtags... " >&6; }
6907 if test "${ac_cv_cflags__Wl___enable_new_dtags+set}" = set; then :
6908   $as_echo_n "(cached) " >&6
6909 else
6910   ac_wine_try_cflags_saved=$CFLAGS
6911 CFLAGS="$CFLAGS -Wl,--enable-new-dtags"
6912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6913 /* end confdefs.h.  */
6914 int main(int argc, char **argv) { return 0; }
6915 _ACEOF
6916 if ac_fn_c_try_link "$LINENO"; then :
6917   ac_cv_cflags__Wl___enable_new_dtags=yes
6918 else
6919   ac_cv_cflags__Wl___enable_new_dtags=no
6920 fi
6921 rm -f core conftest.err conftest.$ac_objext \
6922     conftest$ac_exeext conftest.$ac_ext
6923 CFLAGS=$ac_wine_try_cflags_saved
6924 fi
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___enable_new_dtags" >&5
6926 $as_echo "$ac_cv_cflags__Wl___enable_new_dtags" >&6; }
6927 if test $ac_cv_cflags__Wl___enable_new_dtags = yes; then :
6928   LDRPATH_INSTALL="$LDRPATH_INSTALL -Wl,--enable-new-dtags"
6929 fi
6930
6931       case $host_cpu in
6932         *i[3456789]86* | x86_64)
6933           as_ac_var=`$as_echo "ac_cv_cflags_-Wl,--section-start,.interp=0x7bf00400" | $as_tr_sh`
6934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400" >&5
6935 $as_echo_n "checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... " >&6; }
6936 if eval "test \"\${$as_ac_var+set}\"" = set; then :
6937   $as_echo_n "(cached) " >&6
6938 else
6939   ac_wine_try_cflags_saved=$CFLAGS
6940 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
6941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6942 /* end confdefs.h.  */
6943 int main(int argc, char **argv) { return 0; }
6944 _ACEOF
6945 if ac_fn_c_try_link "$LINENO"; then :
6946   eval "$as_ac_var=yes"
6947 else
6948   eval "$as_ac_var=no"
6949 fi
6950 rm -f core conftest.err conftest.$ac_objext \
6951     conftest$ac_exeext conftest.$ac_ext
6952 CFLAGS=$ac_wine_try_cflags_saved
6953 fi
6954 eval ac_res=\$$as_ac_var
6955                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6956 $as_echo "$ac_res" >&6; }
6957 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6958   case $host_os in
6959                            freebsd*)  LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x60000400" ;;
6960                            *) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400" ;;
6961                            esac
6962
6963 fi
6964           # Extract the first word of "prelink", so it can be a program name with args.
6965 set dummy prelink; ac_word=$2
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6967 $as_echo_n "checking for $ac_word... " >&6; }
6968 if test "${ac_cv_path_PRELINK+set}" = set; then :
6969   $as_echo_n "(cached) " >&6
6970 else
6971   case $PRELINK in
6972   [\\/]* | ?:[\\/]*)
6973   ac_cv_path_PRELINK="$PRELINK" # Let the user override the test with a path.
6974   ;;
6975   *)
6976   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6977 for as_dir in /sbin /usr/sbin $PATH
6978 do
6979   IFS=$as_save_IFS
6980   test -z "$as_dir" && as_dir=.
6981     for ac_exec_ext in '' $ac_executable_extensions; do
6982   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6983     ac_cv_path_PRELINK="$as_dir/$ac_word$ac_exec_ext"
6984     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6985     break 2
6986   fi
6987 done
6988   done
6989 IFS=$as_save_IFS
6990
6991   test -z "$ac_cv_path_PRELINK" && ac_cv_path_PRELINK="false"
6992   ;;
6993 esac
6994 fi
6995 PRELINK=$ac_cv_path_PRELINK
6996 if test -n "$PRELINK"; then
6997   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRELINK" >&5
6998 $as_echo "$PRELINK" >&6; }
6999 else
7000   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7001 $as_echo "no" >&6; }
7002 fi
7003
7004
7005           if test "x$PRELINK" = xfalse
7006           then
7007               as_fn_append wine_warnings "|prelink not found, base address of core dlls won't be set correctly."
7008           fi
7009           ;;
7010       esac
7011
7012     else
7013       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a UnixWare (Solaris) dll" >&5
7014 $as_echo_n "checking whether we can build a UnixWare (Solaris) dll... " >&6; }
7015 if test "${ac_cv_c_dll_unixware+set}" = set; then :
7016   $as_echo_n "(cached) " >&6
7017 else
7018   ac_wine_try_cflags_saved=$CFLAGS
7019 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
7020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7021 /* end confdefs.h.  */
7022 void myfunc() {}
7023 _ACEOF
7024 if ac_fn_c_try_link "$LINENO"; then :
7025   ac_cv_c_dll_unixware="yes"
7026 else
7027   ac_cv_c_dll_unixware="no"
7028 fi
7029 rm -f core conftest.err conftest.$ac_objext \
7030     conftest$ac_exeext conftest.$ac_ext
7031 CFLAGS=$ac_wine_try_cflags_saved
7032 fi
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_unixware" >&5
7034 $as_echo "$ac_cv_c_dll_unixware" >&6; }
7035       if test "$ac_cv_c_dll_unixware" = "yes"
7036       then
7037         LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
7038         LDDLLFLAGS="-Wl,-G,-B,symbolic"
7039
7040       else
7041         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build an HP-UX dll" >&5
7042 $as_echo_n "checking whether we can build an HP-UX dll... " >&6; }
7043 if test "${ac_cv_c_dll_hpux+set}" = set; then :
7044   $as_echo_n "(cached) " >&6
7045 else
7046   ac_wine_try_cflags_saved=$CFLAGS
7047 CFLAGS="$CFLAGS -shared"
7048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7049 /* end confdefs.h.  */
7050 void myfunc() {}
7051 _ACEOF
7052 if ac_fn_c_try_link "$LINENO"; then :
7053   ac_cv_c_dll_hpux="yes"
7054 else
7055   ac_cv_c_dll_hpux="no"
7056 fi
7057 rm -f core conftest.err conftest.$ac_objext \
7058     conftest$ac_exeext conftest.$ac_ext
7059 CFLAGS=$ac_wine_try_cflags_saved
7060 fi
7061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_hpux" >&5
7062 $as_echo "$ac_cv_c_dll_hpux" >&6; }
7063         if test "$ac_cv_c_dll_hpux" = "yes"
7064         then
7065           LIBEXT="sl"
7066           DLLEXT=".sl"
7067           LDDLLFLAGS="-shared -fPIC"
7068           LDSHARED="\$(CC) -shared"
7069         fi
7070       fi
7071     fi
7072     ;;
7073 esac
7074
7075 enable_wineqtdecoder=${enable_wineqtdecoder:-no}
7076 enable_winequartz_drv=${enable_winequartz_drv:-no}
7077
7078 if test "$LIBEXT" = "a"; then
7079   as_fn_error $? "could not find a way to build shared libraries.
7080 It is currently not possible to build Wine without shared library
7081 (.so) support to allow transparent switch between .so and .dll files.
7082 If you are using Linux, you will need a newer binutils.
7083 " "$LINENO" 5
7084 fi
7085
7086 CROSSTEST_DISABLE=\#
7087
7088 if test "$cross_compiling" = "no" -a "x$enable_tests" != xno -a "$LIBEXT" != "dll"
7089 then
7090     case "$host_cpu" in
7091   i[3456789]86*)
7092     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 " ;;
7093   x86_64)
7094     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 " ;;
7095   *)
7096     ac_prefix_list="" ;;
7097 esac
7098 for ac_prog in $ac_prefix_list
7099 do
7100   # Extract the first word of "$ac_prog", so it can be a program name with args.
7101 set dummy $ac_prog; ac_word=$2
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7103 $as_echo_n "checking for $ac_word... " >&6; }
7104 if test "${ac_cv_prog_CROSSCC+set}" = set; then :
7105   $as_echo_n "(cached) " >&6
7106 else
7107   if test -n "$CROSSCC"; then
7108   ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
7109 else
7110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7111 for as_dir in $PATH
7112 do
7113   IFS=$as_save_IFS
7114   test -z "$as_dir" && as_dir=.
7115     for ac_exec_ext in '' $ac_executable_extensions; do
7116   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7117     ac_cv_prog_CROSSCC="$ac_prog"
7118     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7119     break 2
7120   fi
7121 done
7122   done
7123 IFS=$as_save_IFS
7124
7125 fi
7126 fi
7127 CROSSCC=$ac_cv_prog_CROSSCC
7128 if test -n "$CROSSCC"; then
7129   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CROSSCC" >&5
7130 $as_echo "$CROSSCC" >&6; }
7131 else
7132   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7133 $as_echo "no" >&6; }
7134 fi
7135
7136
7137   test -n "$CROSSCC" && break
7138 done
7139 test -n "$CROSSCC" || CROSSCC="false"
7140
7141     if test "$CROSSCC" != "false"
7142     then
7143         ac_save_CC="$CC"
7144         CC="$CROSSCC"
7145         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CROSSCC works" >&5
7146 $as_echo_n "checking whether $CROSSCC works... " >&6; }
7147         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7148 /* end confdefs.h.  */
7149
7150 int
7151 main ()
7152 {
7153
7154   ;
7155   return 0;
7156 }
7157 _ACEOF
7158 if ac_fn_c_try_compile "$LINENO"; then :
7159   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7160 $as_echo "yes" >&6; }
7161                            set x $CROSSCC
7162                            shift
7163                            target=""
7164                            while test $# -ge 1
7165                            do
7166                                case "$1" in
7167                                  *-gcc) target=`expr "$1" : '\(.*\)-gcc'` ;;
7168                                esac
7169                                shift
7170                            done
7171                            if test -n "$target"
7172                            then
7173                                CROSSTEST_DISABLE=""
7174                                CROSSTARGET="$target"
7175
7176                            fi
7177 else
7178   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7179 $as_echo "no" >&6; }
7180 fi
7181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7182         CC="$ac_save_CC"
7183     fi
7184 fi
7185
7186
7187 if test "$ac_cv_header_pthread_h" = "yes"
7188 then
7189     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
7190 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
7191 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
7192   $as_echo_n "(cached) " >&6
7193 else
7194   ac_check_lib_save_LIBS=$LIBS
7195 LIBS="-lpthread  $LIBS"
7196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7197 /* end confdefs.h.  */
7198
7199 /* Override any GCC internal prototype to avoid an error.
7200    Use char because int might match the return type of a GCC
7201    builtin and then its argument prototype would still apply.  */
7202 #ifdef __cplusplus
7203 extern "C"
7204 #endif
7205 char pthread_create ();
7206 int
7207 main ()
7208 {
7209 return pthread_create ();
7210   ;
7211   return 0;
7212 }
7213 _ACEOF
7214 if ac_fn_c_try_link "$LINENO"; then :
7215   ac_cv_lib_pthread_pthread_create=yes
7216 else
7217   ac_cv_lib_pthread_pthread_create=no
7218 fi
7219 rm -f core conftest.err conftest.$ac_objext \
7220     conftest$ac_exeext conftest.$ac_ext
7221 LIBS=$ac_check_lib_save_LIBS
7222 fi
7223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
7224 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
7225 if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
7226   LIBPTHREAD="-lpthread"
7227
7228 fi
7229
7230 fi
7231 if test "x$LIBPTHREAD" = "x"; then :
7232   case "x$with_pthread" in
7233   xno) ;;
7234   *)   as_fn_error $? "pthread ${notice_platform}development files not found.
7235 Wine cannot support threads without libpthread.
7236 Use the --without-pthread option if you really want this." "$LINENO" 5  ;;
7237 esac
7238 fi
7239
7240
7241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
7242 $as_echo_n "checking for X... " >&6; }
7243
7244
7245 # Check whether --with-x was given.
7246 if test "${with_x+set}" = set; then :
7247   withval=$with_x;
7248 fi
7249
7250 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7251 if test "x$with_x" = xno; then
7252   # The user explicitly disabled X.
7253   have_x=disabled
7254 else
7255   case $x_includes,$x_libraries in #(
7256     *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5 ;; #(
7257     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
7258   $as_echo_n "(cached) " >&6
7259 else
7260   # One or both of the vars are not set, and there is no cached value.
7261 ac_x_includes=no ac_x_libraries=no
7262 rm -f -r conftest.dir
7263 if mkdir conftest.dir; then
7264   cd conftest.dir
7265   cat >Imakefile <<'_ACEOF'
7266 incroot:
7267         @echo incroot='${INCROOT}'
7268 usrlibdir:
7269         @echo usrlibdir='${USRLIBDIR}'
7270 libdir:
7271         @echo libdir='${LIBDIR}'
7272 _ACEOF
7273   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
7274     # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7275     for ac_var in incroot usrlibdir libdir; do
7276       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
7277     done
7278     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7279     for ac_extension in a so sl dylib la dll; do
7280       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
7281          test -f "$ac_im_libdir/libX11.$ac_extension"; then
7282         ac_im_usrlibdir=$ac_im_libdir; break
7283       fi
7284     done
7285     # Screen out bogus values from the imake configuration.  They are
7286     # bogus both because they are the default anyway, and because
7287     # using them would break gcc on systems where it needs fixed includes.
7288     case $ac_im_incroot in
7289         /usr/include) ac_x_includes= ;;
7290         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7291     esac
7292     case $ac_im_usrlibdir in
7293         /usr/lib | /usr/lib64 | /lib | /lib64) ;;
7294         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7295     esac
7296   fi
7297   cd ..
7298   rm -f -r conftest.dir
7299 fi
7300
7301 # Standard set of common directories for X headers.
7302 # Check X11 before X11Rn because it is often a symlink to the current release.
7303 ac_x_header_dirs='
7304 /usr/X11/include
7305 /usr/X11R7/include
7306 /usr/X11R6/include
7307 /usr/X11R5/include
7308 /usr/X11R4/include
7309
7310 /usr/include/X11
7311 /usr/include/X11R7
7312 /usr/include/X11R6
7313 /usr/include/X11R5
7314 /usr/include/X11R4
7315
7316 /usr/local/X11/include
7317 /usr/local/X11R7/include
7318 /usr/local/X11R6/include
7319 /usr/local/X11R5/include
7320 /usr/local/X11R4/include
7321
7322 /usr/local/include/X11
7323 /usr/local/include/X11R7
7324 /usr/local/include/X11R6
7325 /usr/local/include/X11R5
7326 /usr/local/include/X11R4
7327
7328 /usr/X386/include
7329 /usr/x386/include
7330 /usr/XFree86/include/X11
7331
7332 /usr/include
7333 /usr/local/include
7334 /usr/unsupported/include
7335 /usr/athena/include
7336 /usr/local/x11r5/include
7337 /usr/lpp/Xamples/include
7338
7339 /usr/openwin/include
7340 /usr/openwin/share/include'
7341
7342 if test "$ac_x_includes" = no; then
7343   # Guess where to find include files, by looking for Xlib.h.
7344   # First, try using that file with no special directory specified.
7345   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7346 /* end confdefs.h.  */
7347 #include <X11/Xlib.h>
7348 _ACEOF
7349 if ac_fn_c_try_cpp "$LINENO"; then :
7350   # We can compile using X headers with no special include directory.
7351 ac_x_includes=
7352 else
7353   for ac_dir in $ac_x_header_dirs; do
7354   if test -r "$ac_dir/X11/Xlib.h"; then
7355     ac_x_includes=$ac_dir
7356     break
7357   fi
7358 done
7359 fi
7360 rm -f conftest.err conftest.i conftest.$ac_ext
7361 fi # $ac_x_includes = no
7362
7363 if test "$ac_x_libraries" = no; then
7364   # Check for the libraries.
7365   # See if we find them without any special options.
7366   # Don't add to $LIBS permanently.
7367   ac_save_LIBS=$LIBS
7368   LIBS="-lX11 $LIBS"
7369   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7370 /* end confdefs.h.  */
7371 #include <X11/Xlib.h>
7372 int
7373 main ()
7374 {
7375 XrmInitialize ()
7376   ;
7377   return 0;
7378 }
7379 _ACEOF
7380 if ac_fn_c_try_link "$LINENO"; then :
7381   LIBS=$ac_save_LIBS
7382 # We can link X programs with no special library path.
7383 ac_x_libraries=
7384 else
7385   LIBS=$ac_save_LIBS
7386 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7387 do
7388   # Don't even attempt the hair of trying to link an X program!
7389   for ac_extension in a so sl dylib la dll; do
7390     if test -r "$ac_dir/libX11.$ac_extension"; then
7391       ac_x_libraries=$ac_dir
7392       break 2
7393     fi
7394   done
7395 done
7396 fi
7397 rm -f core conftest.err conftest.$ac_objext \
7398     conftest$ac_exeext conftest.$ac_ext
7399 fi # $ac_x_libraries = no
7400
7401 case $ac_x_includes,$ac_x_libraries in #(
7402   no,* | *,no | *\'*)
7403     # Didn't find X, or a directory has "'" in its name.
7404     ac_cv_have_x="have_x=no";; #(
7405   *)
7406     # Record where we found X for the cache.
7407     ac_cv_have_x="have_x=yes\
7408         ac_x_includes='$ac_x_includes'\
7409         ac_x_libraries='$ac_x_libraries'"
7410 esac
7411 fi
7412 ;; #(
7413     *) have_x=yes;;
7414   esac
7415   eval "$ac_cv_have_x"
7416 fi # $with_x != no
7417
7418 if test "$have_x" != yes; then
7419   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
7420 $as_echo "$have_x" >&6; }
7421   no_x=yes
7422 else
7423   # If each of the values was on the command line, it overrides each guess.
7424   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7425   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7426   # Update the cache value to reflect the command line values.
7427   ac_cv_have_x="have_x=yes\
7428         ac_x_includes='$x_includes'\
7429         ac_x_libraries='$x_libraries'"
7430   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
7431 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
7432 fi
7433
7434 if test "$no_x" = yes; then
7435   # Not all programs may use this symbol, but it does not hurt to define it.
7436
7437 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
7438
7439   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7440 else
7441   if test -n "$x_includes"; then
7442     X_CFLAGS="$X_CFLAGS -I$x_includes"
7443   fi
7444
7445   # It would also be nice to do this for all -L options, not just this one.
7446   if test -n "$x_libraries"; then
7447     X_LIBS="$X_LIBS -L$x_libraries"
7448     # For Solaris; some versions of Sun CC require a space after -R and
7449     # others require no space.  Words are not sufficient . . . .
7450     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
7451 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
7452     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7453     ac_xsave_c_werror_flag=$ac_c_werror_flag
7454     ac_c_werror_flag=yes
7455     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7456 /* end confdefs.h.  */
7457
7458 int
7459 main ()
7460 {
7461
7462   ;
7463   return 0;
7464 }
7465 _ACEOF
7466 if ac_fn_c_try_link "$LINENO"; then :
7467   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7468 $as_echo "no" >&6; }
7469        X_LIBS="$X_LIBS -R$x_libraries"
7470 else
7471   LIBS="$ac_xsave_LIBS -R $x_libraries"
7472        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7473 /* end confdefs.h.  */
7474
7475 int
7476 main ()
7477 {
7478
7479   ;
7480   return 0;
7481 }
7482 _ACEOF
7483 if ac_fn_c_try_link "$LINENO"; then :
7484   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7485 $as_echo "yes" >&6; }
7486           X_LIBS="$X_LIBS -R $x_libraries"
7487 else
7488   { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
7489 $as_echo "neither works" >&6; }
7490 fi
7491 rm -f core conftest.err conftest.$ac_objext \
7492     conftest$ac_exeext conftest.$ac_ext
7493 fi
7494 rm -f core conftest.err conftest.$ac_objext \
7495     conftest$ac_exeext conftest.$ac_ext
7496     ac_c_werror_flag=$ac_xsave_c_werror_flag
7497     LIBS=$ac_xsave_LIBS
7498   fi
7499
7500   # Check for system-dependent libraries X programs must link with.
7501   # Do this before checking for the system-independent R6 libraries
7502   # (-lICE), since we may need -lsocket or whatever for X linking.
7503
7504   if test "$ISC" = yes; then
7505     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7506   else
7507     # Martyn Johnson says this is needed for Ultrix, if the X
7508     # libraries were built with DECnet support.  And Karl Berry says
7509     # the Alpha needs dnet_stub (dnet does not exist).
7510     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
7511     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7512 /* end confdefs.h.  */
7513
7514 /* Override any GCC internal prototype to avoid an error.
7515    Use char because int might match the return type of a GCC
7516    builtin and then its argument prototype would still apply.  */
7517 #ifdef __cplusplus
7518 extern "C"
7519 #endif
7520 char XOpenDisplay ();
7521 int
7522 main ()
7523 {
7524 return XOpenDisplay ();
7525   ;
7526   return 0;
7527 }
7528 _ACEOF
7529 if ac_fn_c_try_link "$LINENO"; then :
7530
7531 else
7532   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
7533 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
7534 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
7535   $as_echo_n "(cached) " >&6
7536 else
7537   ac_check_lib_save_LIBS=$LIBS
7538 LIBS="-ldnet  $LIBS"
7539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7540 /* end confdefs.h.  */
7541
7542 /* Override any GCC internal prototype to avoid an error.
7543    Use char because int might match the return type of a GCC
7544    builtin and then its argument prototype would still apply.  */
7545 #ifdef __cplusplus
7546 extern "C"
7547 #endif
7548 char dnet_ntoa ();
7549 int
7550 main ()
7551 {
7552 return dnet_ntoa ();
7553   ;
7554   return 0;
7555 }
7556 _ACEOF
7557 if ac_fn_c_try_link "$LINENO"; then :
7558   ac_cv_lib_dnet_dnet_ntoa=yes
7559 else
7560   ac_cv_lib_dnet_dnet_ntoa=no
7561 fi
7562 rm -f core conftest.err conftest.$ac_objext \
7563     conftest$ac_exeext conftest.$ac_ext
7564 LIBS=$ac_check_lib_save_LIBS
7565 fi
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7567 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
7568 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
7569   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7570 fi
7571
7572     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7573       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
7574 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
7575 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
7576   $as_echo_n "(cached) " >&6
7577 else
7578   ac_check_lib_save_LIBS=$LIBS
7579 LIBS="-ldnet_stub  $LIBS"
7580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7581 /* end confdefs.h.  */
7582
7583 /* Override any GCC internal prototype to avoid an error.
7584    Use char because int might match the return type of a GCC
7585    builtin and then its argument prototype would still apply.  */
7586 #ifdef __cplusplus
7587 extern "C"
7588 #endif
7589 char dnet_ntoa ();
7590 int
7591 main ()
7592 {
7593 return dnet_ntoa ();
7594   ;
7595   return 0;
7596 }
7597 _ACEOF
7598 if ac_fn_c_try_link "$LINENO"; then :
7599   ac_cv_lib_dnet_stub_dnet_ntoa=yes
7600 else
7601   ac_cv_lib_dnet_stub_dnet_ntoa=no
7602 fi
7603 rm -f core conftest.err conftest.$ac_objext \
7604     conftest$ac_exeext conftest.$ac_ext
7605 LIBS=$ac_check_lib_save_LIBS
7606 fi
7607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
7608 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
7609 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
7610   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7611 fi
7612
7613     fi
7614 fi
7615 rm -f core conftest.err conftest.$ac_objext \
7616     conftest$ac_exeext conftest.$ac_ext
7617     LIBS="$ac_xsave_LIBS"
7618
7619     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7620     # to get the SysV transport functions.
7621     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7622     # needs -lnsl.
7623     # The nsl library prevents programs from opening the X display
7624     # on Irix 5.2, according to T.E. Dickey.
7625     # The functions gethostbyname, getservbyname, and inet_addr are
7626     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
7627     ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
7628 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
7629
7630 fi
7631
7632     if test $ac_cv_func_gethostbyname = no; then
7633       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
7634 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
7635 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
7636   $as_echo_n "(cached) " >&6
7637 else
7638   ac_check_lib_save_LIBS=$LIBS
7639 LIBS="-lnsl  $LIBS"
7640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7641 /* end confdefs.h.  */
7642
7643 /* Override any GCC internal prototype to avoid an error.
7644    Use char because int might match the return type of a GCC
7645    builtin and then its argument prototype would still apply.  */
7646 #ifdef __cplusplus
7647 extern "C"
7648 #endif
7649 char gethostbyname ();
7650 int
7651 main ()
7652 {
7653 return gethostbyname ();
7654   ;
7655   return 0;
7656 }
7657 _ACEOF
7658 if ac_fn_c_try_link "$LINENO"; then :
7659   ac_cv_lib_nsl_gethostbyname=yes
7660 else
7661   ac_cv_lib_nsl_gethostbyname=no
7662 fi
7663 rm -f core conftest.err conftest.$ac_objext \
7664     conftest$ac_exeext conftest.$ac_ext
7665 LIBS=$ac_check_lib_save_LIBS
7666 fi
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
7668 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
7669 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
7670   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7671 fi
7672
7673       if test $ac_cv_lib_nsl_gethostbyname = no; then
7674         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
7675 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
7676 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
7677   $as_echo_n "(cached) " >&6
7678 else
7679   ac_check_lib_save_LIBS=$LIBS
7680 LIBS="-lbsd  $LIBS"
7681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7682 /* end confdefs.h.  */
7683
7684 /* Override any GCC internal prototype to avoid an error.
7685    Use char because int might match the return type of a GCC
7686    builtin and then its argument prototype would still apply.  */
7687 #ifdef __cplusplus
7688 extern "C"
7689 #endif
7690 char gethostbyname ();
7691 int
7692 main ()
7693 {
7694 return gethostbyname ();
7695   ;
7696   return 0;
7697 }
7698 _ACEOF
7699 if ac_fn_c_try_link "$LINENO"; then :
7700   ac_cv_lib_bsd_gethostbyname=yes
7701 else
7702   ac_cv_lib_bsd_gethostbyname=no
7703 fi
7704 rm -f core conftest.err conftest.$ac_objext \
7705     conftest$ac_exeext conftest.$ac_ext
7706 LIBS=$ac_check_lib_save_LIBS
7707 fi
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
7709 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
7710 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
7711   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
7712 fi
7713
7714       fi
7715     fi
7716
7717     # lieder@skyler.mavd.honeywell.com says without -lsocket,
7718     # socket/setsockopt and other routines are undefined under SCO ODT
7719     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
7720     # on later versions), says Simon Leinen: it contains gethostby*
7721     # variants that don't use the name server (or something).  -lsocket
7722     # must be given before -lnsl if both are needed.  We assume that
7723     # if connect needs -lnsl, so does gethostbyname.
7724     ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
7725 if test "x$ac_cv_func_connect" = x""yes; then :
7726
7727 fi
7728
7729     if test $ac_cv_func_connect = no; then
7730       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
7731 $as_echo_n "checking for connect in -lsocket... " >&6; }
7732 if test "${ac_cv_lib_socket_connect+set}" = set; then :
7733   $as_echo_n "(cached) " >&6
7734 else
7735   ac_check_lib_save_LIBS=$LIBS
7736 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7738 /* end confdefs.h.  */
7739
7740 /* Override any GCC internal prototype to avoid an error.
7741    Use char because int might match the return type of a GCC
7742    builtin and then its argument prototype would still apply.  */
7743 #ifdef __cplusplus
7744 extern "C"
7745 #endif
7746 char connect ();
7747 int
7748 main ()
7749 {
7750 return connect ();
7751   ;
7752   return 0;
7753 }
7754 _ACEOF
7755 if ac_fn_c_try_link "$LINENO"; then :
7756   ac_cv_lib_socket_connect=yes
7757 else
7758   ac_cv_lib_socket_connect=no
7759 fi
7760 rm -f core conftest.err conftest.$ac_objext \
7761     conftest$ac_exeext conftest.$ac_ext
7762 LIBS=$ac_check_lib_save_LIBS
7763 fi
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
7765 $as_echo "$ac_cv_lib_socket_connect" >&6; }
7766 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
7767   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7768 fi
7769
7770     fi
7771
7772     # Guillermo Gomez says -lposix is necessary on A/UX.
7773     ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
7774 if test "x$ac_cv_func_remove" = x""yes; then :
7775
7776 fi
7777
7778     if test $ac_cv_func_remove = no; then
7779       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
7780 $as_echo_n "checking for remove in -lposix... " >&6; }
7781 if test "${ac_cv_lib_posix_remove+set}" = set; then :
7782   $as_echo_n "(cached) " >&6
7783 else
7784   ac_check_lib_save_LIBS=$LIBS
7785 LIBS="-lposix  $LIBS"
7786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7787 /* end confdefs.h.  */
7788
7789 /* Override any GCC internal prototype to avoid an error.
7790    Use char because int might match the return type of a GCC
7791    builtin and then its argument prototype would still apply.  */
7792 #ifdef __cplusplus
7793 extern "C"
7794 #endif
7795 char remove ();
7796 int
7797 main ()
7798 {
7799 return remove ();
7800   ;
7801   return 0;
7802 }
7803 _ACEOF
7804 if ac_fn_c_try_link "$LINENO"; then :
7805   ac_cv_lib_posix_remove=yes
7806 else
7807   ac_cv_lib_posix_remove=no
7808 fi
7809 rm -f core conftest.err conftest.$ac_objext \
7810     conftest$ac_exeext conftest.$ac_ext
7811 LIBS=$ac_check_lib_save_LIBS
7812 fi
7813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
7814 $as_echo "$ac_cv_lib_posix_remove" >&6; }
7815 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
7816   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7817 fi
7818
7819     fi
7820
7821     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7822     ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
7823 if test "x$ac_cv_func_shmat" = x""yes; then :
7824
7825 fi
7826
7827     if test $ac_cv_func_shmat = no; then
7828       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
7829 $as_echo_n "checking for shmat in -lipc... " >&6; }
7830 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
7831   $as_echo_n "(cached) " >&6
7832 else
7833   ac_check_lib_save_LIBS=$LIBS
7834 LIBS="-lipc  $LIBS"
7835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7836 /* end confdefs.h.  */
7837
7838 /* Override any GCC internal prototype to avoid an error.
7839    Use char because int might match the return type of a GCC
7840    builtin and then its argument prototype would still apply.  */
7841 #ifdef __cplusplus
7842 extern "C"
7843 #endif
7844 char shmat ();
7845 int
7846 main ()
7847 {
7848 return shmat ();
7849   ;
7850   return 0;
7851 }
7852 _ACEOF
7853 if ac_fn_c_try_link "$LINENO"; then :
7854   ac_cv_lib_ipc_shmat=yes
7855 else
7856   ac_cv_lib_ipc_shmat=no
7857 fi
7858 rm -f core conftest.err conftest.$ac_objext \
7859     conftest$ac_exeext conftest.$ac_ext
7860 LIBS=$ac_check_lib_save_LIBS
7861 fi
7862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
7863 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
7864 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
7865   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7866 fi
7867
7868     fi
7869   fi
7870
7871   # Check for libraries that X11R6 Xt/Xaw programs need.
7872   ac_save_LDFLAGS=$LDFLAGS
7873   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7874   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7875   # check for ICE first), but we must link in the order -lSM -lICE or
7876   # we get undefined symbols.  So assume we have SM if we have ICE.
7877   # These have to be linked with before -lX11, unlike the other
7878   # libraries we check for below, so use a different variable.
7879   # John Interrante, Karl Berry
7880   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
7881 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
7882 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
7883   $as_echo_n "(cached) " >&6
7884 else
7885   ac_check_lib_save_LIBS=$LIBS
7886 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7888 /* end confdefs.h.  */
7889
7890 /* Override any GCC internal prototype to avoid an error.
7891    Use char because int might match the return type of a GCC
7892    builtin and then its argument prototype would still apply.  */
7893 #ifdef __cplusplus
7894 extern "C"
7895 #endif
7896 char IceConnectionNumber ();
7897 int
7898 main ()
7899 {
7900 return IceConnectionNumber ();
7901   ;
7902   return 0;
7903 }
7904 _ACEOF
7905 if ac_fn_c_try_link "$LINENO"; then :
7906   ac_cv_lib_ICE_IceConnectionNumber=yes
7907 else
7908   ac_cv_lib_ICE_IceConnectionNumber=no
7909 fi
7910 rm -f core conftest.err conftest.$ac_objext \
7911     conftest$ac_exeext conftest.$ac_ext
7912 LIBS=$ac_check_lib_save_LIBS
7913 fi
7914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7915 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
7916 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
7917   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7918 fi
7919
7920   LDFLAGS=$ac_save_LDFLAGS
7921
7922 fi
7923
7924
7925 if test "$have_x" = "yes"
7926 then
7927     XLIB="-lX11"
7928     ac_save_CPPFLAGS="$CPPFLAGS"
7929     CPPFLAGS="$CPPFLAGS $X_CFLAGS"
7930
7931     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lX11" >&5
7932 $as_echo_n "checking for -lX11... " >&6; }
7933 if test "${ac_cv_lib_soname_X11+set}" = set; then :
7934   $as_echo_n "(cached) " >&6
7935 else
7936   ac_check_soname_save_LIBS=$LIBS
7937 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
7938   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7939 /* end confdefs.h.  */
7940
7941 /* Override any GCC internal prototype to avoid an error.
7942    Use char because int might match the return type of a GCC
7943    builtin and then its argument prototype would still apply.  */
7944 #ifdef __cplusplus
7945 extern "C"
7946 #endif
7947 char XCreateWindow ();
7948 int
7949 main ()
7950 {
7951 return XCreateWindow ();
7952   ;
7953   return 0;
7954 }
7955 _ACEOF
7956 if ac_fn_c_try_link "$LINENO"; then :
7957   case "$LIBEXT" in
7958     dll) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest.exe | grep "X11" | sed -e "s/dll.*/dll/"';2,$d'` ;;
7959     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'` ;;
7960     *) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep "libX11\\.$LIBEXT" | sed -e "s/^.*\(libX11\.$LIBEXT[^     ]*\).*$/\1/"';2,$d'` ;;
7961   esac
7962 fi
7963 rm -f core conftest.err conftest.$ac_objext \
7964     conftest$ac_exeext conftest.$ac_ext
7965   LIBS=$ac_check_soname_save_LIBS
7966 fi
7967 if test "x$ac_cv_lib_soname_X11" = "x"; then :
7968   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7969 $as_echo "not found" >&6; }
7970
7971 else
7972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_X11" >&5
7973 $as_echo "$ac_cv_lib_soname_X11" >&6; }
7974
7975 cat >>confdefs.h <<_ACEOF
7976 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
7977 _ACEOF
7978
7979
7980 fi
7981     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXext" >&5
7982 $as_echo_n "checking for -lXext... " >&6; }
7983 if test "${ac_cv_lib_soname_Xext+set}" = set; then :
7984   $as_echo_n "(cached) " >&6
7985 else
7986   ac_check_soname_save_LIBS=$LIBS
7987 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
7988   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7989 /* end confdefs.h.  */
7990
7991 /* Override any GCC internal prototype to avoid an error.
7992    Use char because int might match the return type of a GCC
7993    builtin and then its argument prototype would still apply.  */
7994 #ifdef __cplusplus
7995 extern "C"
7996 #endif
7997 char XextCreateExtension ();
7998 int
7999 main ()
8000 {
8001 return XextCreateExtension ();
8002   ;
8003   return 0;
8004 }
8005 _ACEOF
8006 if ac_fn_c_try_link "$LINENO"; then :
8007   case "$LIBEXT" in
8008     dll) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest.exe | grep "Xext" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8009     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'` ;;
8010     *) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXext\\.$LIBEXT" | sed -e "s/^.*\(libXext\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
8011   esac
8012 fi
8013 rm -f core conftest.err conftest.$ac_objext \
8014     conftest$ac_exeext conftest.$ac_ext
8015   LIBS=$ac_check_soname_save_LIBS
8016 fi
8017 if test "x$ac_cv_lib_soname_Xext" = "x"; then :
8018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8019 $as_echo "not found" >&6; }
8020
8021 else
8022   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xext" >&5
8023 $as_echo "$ac_cv_lib_soname_Xext" >&6; }
8024
8025 cat >>confdefs.h <<_ACEOF
8026 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
8027 _ACEOF
8028
8029        XLIB="-lXext $XLIB"
8030 fi
8031
8032         for ac_header in X11/Xlib.h \
8033                       X11/XKBlib.h \
8034                       X11/Xutil.h \
8035                       X11/Xcursor/Xcursor.h \
8036                       X11/extensions/shape.h \
8037                       X11/extensions/XInput.h \
8038                       X11/extensions/XShm.h \
8039                       X11/extensions/Xcomposite.h \
8040                       X11/extensions/Xinerama.h \
8041                       X11/extensions/Xrandr.h \
8042                       X11/extensions/Xrender.h \
8043                       X11/extensions/xf86vmode.h \
8044                       X11/extensions/xf86vmproto.h
8045 do :
8046   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8047 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_X11_XLIB_H
8048 # include <X11/Xlib.h>
8049 #endif
8050 #ifdef HAVE_X11_XUTIL_H
8051 # include <X11/Xutil.h>
8052 #endif
8053 "
8054 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8055   cat >>confdefs.h <<_ACEOF
8056 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8057 _ACEOF
8058
8059 fi
8060
8061 done
8062
8063
8064                 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
8065         then
8066               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbQueryExtension in -lX11" >&5
8067 $as_echo_n "checking for XkbQueryExtension in -lX11... " >&6; }
8068 if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then :
8069   $as_echo_n "(cached) " >&6
8070 else
8071   ac_check_lib_save_LIBS=$LIBS
8072 LIBS="-lX11 $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8074 /* end confdefs.h.  */
8075
8076 /* Override any GCC internal prototype to avoid an error.
8077    Use char because int might match the return type of a GCC
8078    builtin and then its argument prototype would still apply.  */
8079 #ifdef __cplusplus
8080 extern "C"
8081 #endif
8082 char XkbQueryExtension ();
8083 int
8084 main ()
8085 {
8086 return XkbQueryExtension ();
8087   ;
8088   return 0;
8089 }
8090 _ACEOF
8091 if ac_fn_c_try_link "$LINENO"; then :
8092   ac_cv_lib_X11_XkbQueryExtension=yes
8093 else
8094   ac_cv_lib_X11_XkbQueryExtension=no
8095 fi
8096 rm -f core conftest.err conftest.$ac_objext \
8097     conftest$ac_exeext conftest.$ac_ext
8098 LIBS=$ac_check_lib_save_LIBS
8099 fi
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
8101 $as_echo "$ac_cv_lib_X11_XkbQueryExtension" >&6; }
8102 if test "x$ac_cv_lib_X11_XkbQueryExtension" = x""yes; then :
8103
8104 $as_echo "#define HAVE_XKB 1" >>confdefs.h
8105
8106 fi
8107
8108         fi
8109
8110                 if test "$ac_cv_header_X11_Xcursor_Xcursor_h" = "yes"
8111         then
8112             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcursor" >&5
8113 $as_echo_n "checking for -lXcursor... " >&6; }
8114 if test "${ac_cv_lib_soname_Xcursor+set}" = set; then :
8115   $as_echo_n "(cached) " >&6
8116 else
8117   ac_check_soname_save_LIBS=$LIBS
8118 LIBS="-lXcursor $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8119   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8120 /* end confdefs.h.  */
8121
8122 /* Override any GCC internal prototype to avoid an error.
8123    Use char because int might match the return type of a GCC
8124    builtin and then its argument prototype would still apply.  */
8125 #ifdef __cplusplus
8126 extern "C"
8127 #endif
8128 char XcursorImageLoadCursor ();
8129 int
8130 main ()
8131 {
8132 return XcursorImageLoadCursor ();
8133   ;
8134   return 0;
8135 }
8136 _ACEOF
8137 if ac_fn_c_try_link "$LINENO"; then :
8138   case "$LIBEXT" in
8139     dll) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest.exe | grep "Xcursor" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8140     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'` ;;
8141     *) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXcursor\\.$LIBEXT" | sed -e "s/^.*\(libXcursor\.$LIBEXT[^         ]*\).*$/\1/"';2,$d'` ;;
8142   esac
8143 fi
8144 rm -f core conftest.err conftest.$ac_objext \
8145     conftest$ac_exeext conftest.$ac_ext
8146   LIBS=$ac_check_soname_save_LIBS
8147 fi
8148 if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
8149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8150 $as_echo "not found" >&6; }
8151
8152 else
8153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcursor" >&5
8154 $as_echo "$ac_cv_lib_soname_Xcursor" >&6; }
8155
8156 cat >>confdefs.h <<_ACEOF
8157 #define SONAME_LIBXCURSOR "$ac_cv_lib_soname_Xcursor"
8158 _ACEOF
8159
8160
8161 fi
8162         fi
8163         if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
8164   case "x$with_xcursor" in
8165   x)   as_fn_append wine_notices "|libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported." ;;
8166   xno) ;;
8167   *)   as_fn_error $? "libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported.
8168 This is an error since --with-xcursor was requested." "$LINENO" 5  ;;
8169 esac
8170 fi
8171
8172                 if test "$ac_cv_header_X11_extensions_XInput_h" = "yes"
8173         then
8174             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXi" >&5
8175 $as_echo_n "checking for -lXi... " >&6; }
8176 if test "${ac_cv_lib_soname_Xi+set}" = set; then :
8177   $as_echo_n "(cached) " >&6
8178 else
8179   ac_check_soname_save_LIBS=$LIBS
8180 LIBS="-lXi $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8181   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8182 /* end confdefs.h.  */
8183
8184 /* Override any GCC internal prototype to avoid an error.
8185    Use char because int might match the return type of a GCC
8186    builtin and then its argument prototype would still apply.  */
8187 #ifdef __cplusplus
8188 extern "C"
8189 #endif
8190 char XOpenDevice ();
8191 int
8192 main ()
8193 {
8194 return XOpenDevice ();
8195   ;
8196   return 0;
8197 }
8198 _ACEOF
8199 if ac_fn_c_try_link "$LINENO"; then :
8200   case "$LIBEXT" in
8201     dll) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest.exe | grep "Xi" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8202     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'` ;;
8203     *) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXi\\.$LIBEXT" | sed -e "s/^.*\(libXi\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'` ;;
8204   esac
8205 fi
8206 rm -f core conftest.err conftest.$ac_objext \
8207     conftest$ac_exeext conftest.$ac_ext
8208   LIBS=$ac_check_soname_save_LIBS
8209 fi
8210 if test "x$ac_cv_lib_soname_Xi" = "x"; then :
8211   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8212 $as_echo "not found" >&6; }
8213
8214 else
8215   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xi" >&5
8216 $as_echo "$ac_cv_lib_soname_Xi" >&6; }
8217
8218 cat >>confdefs.h <<_ACEOF
8219 #define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
8220 _ACEOF
8221
8222
8223 fi
8224         fi
8225         if test "x$ac_cv_lib_soname_Xi" = "x"; then :
8226   case "x$with_xinput" in
8227   x)   as_fn_append wine_notices "|libxi ${notice_platform}development files not found, the Xinput extension won't be supported." ;;
8228   xno) ;;
8229   *)   as_fn_error $? "libxi ${notice_platform}development files not found, the Xinput extension won't be supported.
8230 This is an error since --with-xinput was requested." "$LINENO" 5  ;;
8231 esac
8232 fi
8233
8234                 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
8235         then
8236               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
8237 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
8238 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then :
8239   $as_echo_n "(cached) " >&6
8240 else
8241   ac_check_lib_save_LIBS=$LIBS
8242 LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8244 /* end confdefs.h.  */
8245
8246 /* Override any GCC internal prototype to avoid an error.
8247    Use char because int might match the return type of a GCC
8248    builtin and then its argument prototype would still apply.  */
8249 #ifdef __cplusplus
8250 extern "C"
8251 #endif
8252 char XShmQueryExtension ();
8253 int
8254 main ()
8255 {
8256 return XShmQueryExtension ();
8257   ;
8258   return 0;
8259 }
8260 _ACEOF
8261 if ac_fn_c_try_link "$LINENO"; then :
8262   ac_cv_lib_Xext_XShmQueryExtension=yes
8263 else
8264   ac_cv_lib_Xext_XShmQueryExtension=no
8265 fi
8266 rm -f core conftest.err conftest.$ac_objext \
8267     conftest$ac_exeext conftest.$ac_ext
8268 LIBS=$ac_check_lib_save_LIBS
8269 fi
8270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
8271 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
8272 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = x""yes; then :
8273
8274 $as_echo "#define HAVE_LIBXXSHM 1" >>confdefs.h
8275
8276 fi
8277
8278         fi
8279         if test "$ac_cv_lib_Xext_XShmQueryExtension" != "yes"; then :
8280   case "x$with_xshm" in
8281   x)   as_fn_append wine_notices "|XShm ${notice_platform}development files not found, X Shared Memory won't be supported." ;;
8282   xno) ;;
8283   *)   as_fn_error $? "XShm ${notice_platform}development files not found, X Shared Memory won't be supported.
8284 This is an error since --with-xshm was requested." "$LINENO" 5  ;;
8285 esac
8286 fi
8287
8288                 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
8289         then
8290               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
8291 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
8292 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
8293   $as_echo_n "(cached) " >&6
8294 else
8295   ac_check_lib_save_LIBS=$LIBS
8296 LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8298 /* end confdefs.h.  */
8299
8300 /* Override any GCC internal prototype to avoid an error.
8301    Use char because int might match the return type of a GCC
8302    builtin and then its argument prototype would still apply.  */
8303 #ifdef __cplusplus
8304 extern "C"
8305 #endif
8306 char XShapeQueryExtension ();
8307 int
8308 main ()
8309 {
8310 return XShapeQueryExtension ();
8311   ;
8312   return 0;
8313 }
8314 _ACEOF
8315 if ac_fn_c_try_link "$LINENO"; then :
8316   ac_cv_lib_Xext_XShapeQueryExtension=yes
8317 else
8318   ac_cv_lib_Xext_XShapeQueryExtension=no
8319 fi
8320 rm -f core conftest.err conftest.$ac_objext \
8321     conftest$ac_exeext conftest.$ac_ext
8322 LIBS=$ac_check_lib_save_LIBS
8323 fi
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8325 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
8326 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
8327
8328 $as_echo "#define HAVE_LIBXSHAPE 1" >>confdefs.h
8329
8330 fi
8331
8332         fi
8333         if test "$ac_cv_lib_Xext_XShapeQueryExtension" != "yes"; then :
8334   case "x$with_xshape" in
8335   x)   as_fn_append wine_notices "|XShape ${notice_platform}development files not found, XShape won't be supported." ;;
8336   xno) ;;
8337   *)   as_fn_error $? "XShape ${notice_platform}development files not found, XShape won't be supported.
8338 This is an error since --with-xshape was requested." "$LINENO" 5  ;;
8339 esac
8340 fi
8341
8342                 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes" -o "$ac_cv_header_X11_extensions_xf86vmproto_h" = "yes"
8343         then
8344             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXxf86vm" >&5
8345 $as_echo_n "checking for -lXxf86vm... " >&6; }
8346 if test "${ac_cv_lib_soname_Xxf86vm+set}" = set; then :
8347   $as_echo_n "(cached) " >&6
8348 else
8349   ac_check_soname_save_LIBS=$LIBS
8350 LIBS="-lXxf86vm $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8351   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8352 /* end confdefs.h.  */
8353
8354 /* Override any GCC internal prototype to avoid an error.
8355    Use char because int might match the return type of a GCC
8356    builtin and then its argument prototype would still apply.  */
8357 #ifdef __cplusplus
8358 extern "C"
8359 #endif
8360 char XF86VidModeQueryExtension ();
8361 int
8362 main ()
8363 {
8364 return XF86VidModeQueryExtension ();
8365   ;
8366   return 0;
8367 }
8368 _ACEOF
8369 if ac_fn_c_try_link "$LINENO"; then :
8370   case "$LIBEXT" in
8371     dll) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest.exe | grep "Xxf86vm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8372     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'` ;;
8373     *) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXxf86vm\\.$LIBEXT" | sed -e "s/^.*\(libXxf86vm\.$LIBEXT[^         ]*\).*$/\1/"';2,$d'` ;;
8374   esac
8375 fi
8376 rm -f core conftest.err conftest.$ac_objext \
8377     conftest$ac_exeext conftest.$ac_ext
8378   LIBS=$ac_check_soname_save_LIBS
8379 fi
8380 if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
8381   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8382 $as_echo "not found" >&6; }
8383
8384 else
8385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xxf86vm" >&5
8386 $as_echo "$ac_cv_lib_soname_Xxf86vm" >&6; }
8387
8388 cat >>confdefs.h <<_ACEOF
8389 #define SONAME_LIBXXF86VM "$ac_cv_lib_soname_Xxf86vm"
8390 _ACEOF
8391
8392
8393 fi
8394         fi
8395         if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
8396   case "x$with_xxf86vm" in
8397   x)   as_fn_append wine_notices "|libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported." ;;
8398   xno) ;;
8399   *)   as_fn_error $? "libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported.
8400 This is an error since --with-xxf86vm was requested." "$LINENO" 5  ;;
8401 esac
8402 fi
8403
8404                 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"
8405         then
8406             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrender" >&5
8407 $as_echo_n "checking for -lXrender... " >&6; }
8408 if test "${ac_cv_lib_soname_Xrender+set}" = set; then :
8409   $as_echo_n "(cached) " >&6
8410 else
8411   ac_check_soname_save_LIBS=$LIBS
8412 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8413   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8414 /* end confdefs.h.  */
8415
8416 /* Override any GCC internal prototype to avoid an error.
8417    Use char because int might match the return type of a GCC
8418    builtin and then its argument prototype would still apply.  */
8419 #ifdef __cplusplus
8420 extern "C"
8421 #endif
8422 char XRenderQueryExtension ();
8423 int
8424 main ()
8425 {
8426 return XRenderQueryExtension ();
8427   ;
8428   return 0;
8429 }
8430 _ACEOF
8431 if ac_fn_c_try_link "$LINENO"; then :
8432   case "$LIBEXT" in
8433     dll) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest.exe | grep "Xrender" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8434     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'` ;;
8435     *) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXrender\\.$LIBEXT" | sed -e "s/^.*\(libXrender\.$LIBEXT[^         ]*\).*$/\1/"';2,$d'` ;;
8436   esac
8437 fi
8438 rm -f core conftest.err conftest.$ac_objext \
8439     conftest$ac_exeext conftest.$ac_ext
8440   LIBS=$ac_check_soname_save_LIBS
8441 fi
8442 if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
8443   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8444 $as_echo "not found" >&6; }
8445
8446 else
8447   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrender" >&5
8448 $as_echo "$ac_cv_lib_soname_Xrender" >&6; }
8449
8450 cat >>confdefs.h <<_ACEOF
8451 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
8452 _ACEOF
8453
8454        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderSetPictureTransform in -lXrender" >&5
8455 $as_echo_n "checking for XRenderSetPictureTransform in -lXrender... " >&6; }
8456 if test "${ac_cv_lib_Xrender_XRenderSetPictureTransform+set}" = set; then :
8457   $as_echo_n "(cached) " >&6
8458 else
8459   ac_check_lib_save_LIBS=$LIBS
8460 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8462 /* end confdefs.h.  */
8463
8464 /* Override any GCC internal prototype to avoid an error.
8465    Use char because int might match the return type of a GCC
8466    builtin and then its argument prototype would still apply.  */
8467 #ifdef __cplusplus
8468 extern "C"
8469 #endif
8470 char XRenderSetPictureTransform ();
8471 int
8472 main ()
8473 {
8474 return XRenderSetPictureTransform ();
8475   ;
8476   return 0;
8477 }
8478 _ACEOF
8479 if ac_fn_c_try_link "$LINENO"; then :
8480   ac_cv_lib_Xrender_XRenderSetPictureTransform=yes
8481 else
8482   ac_cv_lib_Xrender_XRenderSetPictureTransform=no
8483 fi
8484 rm -f core conftest.err conftest.$ac_objext \
8485     conftest$ac_exeext conftest.$ac_ext
8486 LIBS=$ac_check_lib_save_LIBS
8487 fi
8488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5
8489 $as_echo "$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6; }
8490 if test "x$ac_cv_lib_Xrender_XRenderSetPictureTransform" = x""yes; then :
8491
8492 $as_echo "#define HAVE_XRENDERSETPICTURETRANSFORM 1" >>confdefs.h
8493
8494 fi
8495
8496 fi
8497
8498         fi
8499         if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
8500   case "x$with_xrender" in
8501   x)   as_fn_append wine_warnings "|libxrender ${notice_platform}development files not found, XRender won't be supported." ;;
8502   xno) ;;
8503   *)   as_fn_error $? "libxrender ${notice_platform}development files not found, XRender won't be supported.
8504 This is an error since --with-xrender was requested." "$LINENO" 5  ;;
8505 esac
8506 fi
8507
8508                 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes" -a "x$ac_cv_lib_soname_Xrender" != "x"
8509         then
8510                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8511 /* end confdefs.h.  */
8512 #include <X11/Xlib.h>
8513 #include <X11/extensions/Xrandr.h>
8514 int
8515 main ()
8516 {
8517 static typeof(XRRSetScreenConfigAndRate) * func;
8518   ;
8519   return 0;
8520 }
8521 _ACEOF
8522 if ac_fn_c_try_compile "$LINENO"; then :
8523   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrandr" >&5
8524 $as_echo_n "checking for -lXrandr... " >&6; }
8525 if test "${ac_cv_lib_soname_Xrandr+set}" = set; then :
8526   $as_echo_n "(cached) " >&6
8527 else
8528   ac_check_soname_save_LIBS=$LIBS
8529 LIBS="-lXrandr $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8530   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8531 /* end confdefs.h.  */
8532
8533 /* Override any GCC internal prototype to avoid an error.
8534    Use char because int might match the return type of a GCC
8535    builtin and then its argument prototype would still apply.  */
8536 #ifdef __cplusplus
8537 extern "C"
8538 #endif
8539 char XRRQueryExtension ();
8540 int
8541 main ()
8542 {
8543 return XRRQueryExtension ();
8544   ;
8545   return 0;
8546 }
8547 _ACEOF
8548 if ac_fn_c_try_link "$LINENO"; then :
8549   case "$LIBEXT" in
8550     dll) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest.exe | grep "Xrandr" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8551     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'` ;;
8552     *) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXrandr\\.$LIBEXT" | sed -e "s/^.*\(libXrandr\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'` ;;
8553   esac
8554 fi
8555 rm -f core conftest.err conftest.$ac_objext \
8556     conftest$ac_exeext conftest.$ac_ext
8557   LIBS=$ac_check_soname_save_LIBS
8558 fi
8559 if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
8560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8561 $as_echo "not found" >&6; }
8562
8563 else
8564   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrandr" >&5
8565 $as_echo "$ac_cv_lib_soname_Xrandr" >&6; }
8566
8567 cat >>confdefs.h <<_ACEOF
8568 #define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
8569 _ACEOF
8570
8571
8572 fi
8573 fi
8574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8575         fi
8576         if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
8577   case "x$with_xrandr" in
8578   x)   as_fn_append wine_notices "|libxrandr ${notice_platform}development files not found, XRandr won't be supported." ;;
8579   xno) ;;
8580   *)   as_fn_error $? "libxrandr ${notice_platform}development files not found, XRandr won't be supported.
8581 This is an error since --with-xrandr was requested." "$LINENO" 5  ;;
8582 esac
8583 fi
8584
8585                 if test "$ac_cv_header_X11_extensions_Xinerama_h" = "yes"
8586         then
8587                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8588 /* end confdefs.h.  */
8589 #include <X11/Xlib.h>
8590 #include <X11/extensions/Xinerama.h>
8591 int
8592 main ()
8593 {
8594 static typeof(XineramaQueryScreens) * func;
8595   ;
8596   return 0;
8597 }
8598 _ACEOF
8599 if ac_fn_c_try_compile "$LINENO"; then :
8600   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXinerama" >&5
8601 $as_echo_n "checking for -lXinerama... " >&6; }
8602 if test "${ac_cv_lib_soname_Xinerama+set}" = set; then :
8603   $as_echo_n "(cached) " >&6
8604 else
8605   ac_check_soname_save_LIBS=$LIBS
8606 LIBS="-lXinerama $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8607   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8608 /* end confdefs.h.  */
8609
8610 /* Override any GCC internal prototype to avoid an error.
8611    Use char because int might match the return type of a GCC
8612    builtin and then its argument prototype would still apply.  */
8613 #ifdef __cplusplus
8614 extern "C"
8615 #endif
8616 char XineramaQueryScreens ();
8617 int
8618 main ()
8619 {
8620 return XineramaQueryScreens ();
8621   ;
8622   return 0;
8623 }
8624 _ACEOF
8625 if ac_fn_c_try_link "$LINENO"; then :
8626   case "$LIBEXT" in
8627     dll) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest.exe | grep "Xinerama" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8628     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'` ;;
8629     *) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXinerama\\.$LIBEXT" | sed -e "s/^.*\(libXinerama\.$LIBEXT[^      ]*\).*$/\1/"';2,$d'` ;;
8630   esac
8631 fi
8632 rm -f core conftest.err conftest.$ac_objext \
8633     conftest$ac_exeext conftest.$ac_ext
8634   LIBS=$ac_check_soname_save_LIBS
8635 fi
8636 if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
8637   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8638 $as_echo "not found" >&6; }
8639
8640 else
8641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xinerama" >&5
8642 $as_echo "$ac_cv_lib_soname_Xinerama" >&6; }
8643
8644 cat >>confdefs.h <<_ACEOF
8645 #define SONAME_LIBXINERAMA "$ac_cv_lib_soname_Xinerama"
8646 _ACEOF
8647
8648
8649 fi
8650 fi
8651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8652         fi
8653         if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
8654   case "x$with_xinerama" in
8655   x)   as_fn_append wine_notices "|libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported." ;;
8656   xno) ;;
8657   *)   as_fn_error $? "libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported.
8658 This is an error since --with-xinerama was requested." "$LINENO" 5  ;;
8659 esac
8660 fi
8661
8662                 if test "$ac_cv_header_X11_extensions_Xcomposite_h" = "yes"
8663         then
8664             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcomposite" >&5
8665 $as_echo_n "checking for -lXcomposite... " >&6; }
8666 if test "${ac_cv_lib_soname_Xcomposite+set}" = set; then :
8667   $as_echo_n "(cached) " >&6
8668 else
8669   ac_check_soname_save_LIBS=$LIBS
8670 LIBS="-lXcomposite $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8671   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8672 /* end confdefs.h.  */
8673
8674 /* Override any GCC internal prototype to avoid an error.
8675    Use char because int might match the return type of a GCC
8676    builtin and then its argument prototype would still apply.  */
8677 #ifdef __cplusplus
8678 extern "C"
8679 #endif
8680 char XCompositeRedirectWindow ();
8681 int
8682 main ()
8683 {
8684 return XCompositeRedirectWindow ();
8685   ;
8686   return 0;
8687 }
8688 _ACEOF
8689 if ac_fn_c_try_link "$LINENO"; then :
8690   case "$LIBEXT" in
8691     dll) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest.exe | grep "Xcomposite" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8692     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'` ;;
8693     *) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXcomposite\\.$LIBEXT" | sed -e "s/^.*\(libXcomposite\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'` ;;
8694   esac
8695 fi
8696 rm -f core conftest.err conftest.$ac_objext \
8697     conftest$ac_exeext conftest.$ac_ext
8698   LIBS=$ac_check_soname_save_LIBS
8699 fi
8700 if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
8701   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8702 $as_echo "not found" >&6; }
8703
8704 else
8705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcomposite" >&5
8706 $as_echo "$ac_cv_lib_soname_Xcomposite" >&6; }
8707
8708 cat >>confdefs.h <<_ACEOF
8709 #define SONAME_LIBXCOMPOSITE "$ac_cv_lib_soname_Xcomposite"
8710 _ACEOF
8711
8712
8713 fi
8714         fi
8715         if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
8716   case "x$with_xcomposite" in
8717   x)   as_fn_append wine_notices "|libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported." ;;
8718   xno) ;;
8719   *)   as_fn_error $? "libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported.
8720 This is an error since --with-xcomposite was requested." "$LINENO" 5  ;;
8721 esac
8722 fi
8723
8724                 ac_fn_c_check_member "$LINENO" "XICCallback" "callback" "ac_cv_member_XICCallback_callback" "#ifdef HAVE_X11_XLIB_H
8725 #include <X11/Xlib.h>
8726 #endif
8727 "
8728 if test "x$ac_cv_member_XICCallback_callback" = x""yes; then :
8729
8730 cat >>confdefs.h <<_ACEOF
8731 #define HAVE_XICCALLBACK_CALLBACK 1
8732 _ACEOF
8733
8734
8735 fi
8736
8737
8738
8739         opengl_msg=""
8740     if test "x$with_opengl" != "xno"
8741     then
8742         for ac_header in GL/gl.h GL/glx.h GL/glu.h
8743 do :
8744   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8745 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_GL_GLX_H
8746 # include <GL/glx.h>
8747 #endif
8748 "
8749 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8750   cat >>confdefs.h <<_ACEOF
8751 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8752 _ACEOF
8753
8754 fi
8755
8756 done
8757
8758         if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
8759         then
8760                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for up-to-date OpenGL version" >&5
8761 $as_echo_n "checking for up-to-date OpenGL version... " >&6; }
8762 if test "${wine_cv_opengl_header_version_OK+set}" = set; then :
8763   $as_echo_n "(cached) " >&6
8764 else
8765   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8766 /* end confdefs.h.  */
8767 #include <GL/gl.h>
8768 int
8769 main ()
8770 {
8771 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
8772   ;
8773   return 0;
8774 }
8775 _ACEOF
8776 if ac_fn_c_try_compile "$LINENO"; then :
8777   wine_cv_opengl_header_version_OK="yes"
8778 else
8779   wine_cv_opengl_header_version_OK="no"
8780 fi
8781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8782 fi
8783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_opengl_header_version_OK" >&5
8784 $as_echo "$wine_cv_opengl_header_version_OK" >&6; }
8785
8786             if test "$wine_cv_opengl_header_version_OK" = "yes"
8787             then
8788                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
8789 $as_echo_n "checking for -lGL... " >&6; }
8790 if test "${ac_cv_lib_soname_GL+set}" = set; then :
8791   $as_echo_n "(cached) " >&6
8792 else
8793   ac_check_soname_save_LIBS=$LIBS
8794 LIBS="-lGL $X_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
8795   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8796 /* end confdefs.h.  */
8797
8798 /* Override any GCC internal prototype to avoid an error.
8799    Use char because int might match the return type of a GCC
8800    builtin and then its argument prototype would still apply.  */
8801 #ifdef __cplusplus
8802 extern "C"
8803 #endif
8804 char glXCreateContext ();
8805 int
8806 main ()
8807 {
8808 return glXCreateContext ();
8809   ;
8810   return 0;
8811 }
8812 _ACEOF
8813 if ac_fn_c_try_link "$LINENO"; then :
8814   case "$LIBEXT" in
8815     dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8816     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'` ;;
8817     *) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'` ;;
8818   esac
8819 fi
8820 rm -f core conftest.err conftest.$ac_objext \
8821     conftest$ac_exeext conftest.$ac_ext
8822   LIBS=$ac_check_soname_save_LIBS
8823 fi
8824 if test "x$ac_cv_lib_soname_GL" = "x"; then :
8825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8826 $as_echo "not found" >&6; }
8827        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
8828 $as_echo_n "checking for -lGL... " >&6; }
8829 if test "${ac_cv_lib_soname_GL+set}" = set; then :
8830   $as_echo_n "(cached) " >&6
8831 else
8832   ac_check_soname_save_LIBS=$LIBS
8833 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"
8834   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8835 /* end confdefs.h.  */
8836
8837 /* Override any GCC internal prototype to avoid an error.
8838    Use char because int might match the return type of a GCC
8839    builtin and then its argument prototype would still apply.  */
8840 #ifdef __cplusplus
8841 extern "C"
8842 #endif
8843 char glXCreateContext ();
8844 int
8845 main ()
8846 {
8847 return glXCreateContext ();
8848   ;
8849   return 0;
8850 }
8851 _ACEOF
8852 if ac_fn_c_try_link "$LINENO"; then :
8853   case "$LIBEXT" in
8854     dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8855     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'` ;;
8856     *) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'` ;;
8857   esac
8858 fi
8859 rm -f core conftest.err conftest.$ac_objext \
8860     conftest$ac_exeext conftest.$ac_ext
8861   LIBS=$ac_check_soname_save_LIBS
8862 fi
8863 if test "x$ac_cv_lib_soname_GL" = "x"; then :
8864   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8865 $as_echo "not found" >&6; }
8866        if test -f /usr/X11R6/lib/libGL.a
8867                                     then
8868                                         opengl_msg="/usr/X11R6/lib/libGL.a is present on your system.
8869 This probably prevents linking to OpenGL. Try deleting the file and restarting configure."
8870                                     else
8871                                         opengl_msg="No OpenGL library found on this system."
8872                                     fi
8873 else
8874   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
8875 $as_echo "$ac_cv_lib_soname_GL" >&6; }
8876
8877 cat >>confdefs.h <<_ACEOF
8878 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
8879 _ACEOF
8880
8881        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"
8882
8883 $as_echo "#define HAVE_OPENGL 1" >>confdefs.h
8884
8885 fi
8886 else
8887   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
8888 $as_echo "$ac_cv_lib_soname_GL" >&6; }
8889
8890 cat >>confdefs.h <<_ACEOF
8891 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
8892 _ACEOF
8893
8894        OPENGL_LIBS="-lGL"
8895
8896 $as_echo "#define HAVE_OPENGL 1" >>confdefs.h
8897
8898 fi
8899                  if test "$ac_cv_header_GL_glu_h" = "yes"
8900                  then
8901                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGLU" >&5
8902 $as_echo_n "checking for -lGLU... " >&6; }
8903 if test "${ac_cv_lib_soname_GLU+set}" = set; then :
8904   $as_echo_n "(cached) " >&6
8905 else
8906   ac_check_soname_save_LIBS=$LIBS
8907 LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
8908   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8909 /* end confdefs.h.  */
8910
8911 /* Override any GCC internal prototype to avoid an error.
8912    Use char because int might match the return type of a GCC
8913    builtin and then its argument prototype would still apply.  */
8914 #ifdef __cplusplus
8915 extern "C"
8916 #endif
8917 char gluLookAt ();
8918 int
8919 main ()
8920 {
8921 return gluLookAt ();
8922   ;
8923   return 0;
8924 }
8925 _ACEOF
8926 if ac_fn_c_try_link "$LINENO"; then :
8927   case "$LIBEXT" in
8928     dll) ac_cv_lib_soname_GLU=`$ac_cv_path_LDD conftest.exe | grep "GLU" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8929     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'` ;;
8930     *) ac_cv_lib_soname_GLU=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGLU\\.$LIBEXT" | sed -e "s/^.*\(libGLU\.$LIBEXT[^     ]*\).*$/\1/"';2,$d'` ;;
8931   esac
8932 fi
8933 rm -f core conftest.err conftest.$ac_objext \
8934     conftest$ac_exeext conftest.$ac_ext
8935   LIBS=$ac_check_soname_save_LIBS
8936 fi
8937 if test "x$ac_cv_lib_soname_GLU" = "x"; then :
8938   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8939 $as_echo "not found" >&6; }
8940
8941 else
8942   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GLU" >&5
8943 $as_echo "$ac_cv_lib_soname_GLU" >&6; }
8944
8945 cat >>confdefs.h <<_ACEOF
8946 #define SONAME_LIBGLU "$ac_cv_lib_soname_GLU"
8947 _ACEOF
8948
8949
8950 fi
8951                  fi
8952                  if test "x$ac_cv_lib_soname_GLU" = "x"; then :
8953   case "x$with_glu" in
8954   x)   as_fn_append wine_notices "|libGLU ${notice_platform}development files not found, GLU won't be supported." ;;
8955   xno) ;;
8956   *)   as_fn_error $? "libGLU ${notice_platform}development files not found, GLU won't be supported.
8957 This is an error since --with-glu was requested." "$LINENO" 5  ;;
8958 esac
8959 fi
8960              else
8961                  opengl_msg="Old Mesa headers detected. Consider upgrading your Mesa libraries."
8962              fi
8963          else
8964              opengl_msg="OpenGL development headers not found."
8965          fi
8966          test -n "$opengl_msg" && enable_opengl32=${enable_opengl32:-no}
8967          test "x$ac_cv_lib_soname_GLU" = "x" && enable_glu32=${enable_glu32:-no}
8968     else
8969          enable_opengl32=${enable_opengl32:-no}
8970          enable_glu32=${enable_glu32:-no}
8971     fi
8972     if test -n "$opengl_msg"; then :
8973   case "x$with_opengl" in
8974   x)   as_fn_append wine_warnings "|$opengl_msg
8975 OpenGL and Direct3D won't be supported." ;;
8976   xno) ;;
8977   *)   as_fn_error $? "$opengl_msg
8978 OpenGL and Direct3D won't be supported.
8979 This is an error since --with-opengl was requested." "$LINENO" 5  ;;
8980 esac
8981 fi
8982
8983         NASLIBS=""
8984
8985     for ac_header in audio/audiolib.h
8986 do :
8987   ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
8988 if test "x$ac_cv_header_audio_audiolib_h" = x""yes; then :
8989   cat >>confdefs.h <<_ACEOF
8990 #define HAVE_AUDIO_AUDIOLIB_H 1
8991 _ACEOF
8992  for ac_header in audio/soundlib.h
8993 do :
8994   ac_fn_c_check_header_compile "$LINENO" "audio/soundlib.h" "ac_cv_header_audio_soundlib_h" "#include <audio/audiolib.h>
8995 "
8996 if test "x$ac_cv_header_audio_soundlib_h" = x""yes; then :
8997   cat >>confdefs.h <<_ACEOF
8998 #define HAVE_AUDIO_SOUNDLIB_H 1
8999 _ACEOF
9000
9001 fi
9002
9003 done
9004
9005           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AuCreateFlow in -laudio" >&5
9006 $as_echo_n "checking for AuCreateFlow in -laudio... " >&6; }
9007 if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then :
9008   $as_echo_n "(cached) " >&6
9009 else
9010   ac_check_lib_save_LIBS=$LIBS
9011 LIBS="-laudio -lXt $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
9012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9013 /* end confdefs.h.  */
9014
9015 /* Override any GCC internal prototype to avoid an error.
9016    Use char because int might match the return type of a GCC
9017    builtin and then its argument prototype would still apply.  */
9018 #ifdef __cplusplus
9019 extern "C"
9020 #endif
9021 char AuCreateFlow ();
9022 int
9023 main ()
9024 {
9025 return AuCreateFlow ();
9026   ;
9027   return 0;
9028 }
9029 _ACEOF
9030 if ac_fn_c_try_link "$LINENO"; then :
9031   ac_cv_lib_audio_AuCreateFlow=yes
9032 else
9033   ac_cv_lib_audio_AuCreateFlow=no
9034 fi
9035 rm -f core conftest.err conftest.$ac_objext \
9036     conftest$ac_exeext conftest.$ac_ext
9037 LIBS=$ac_check_lib_save_LIBS
9038 fi
9039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuCreateFlow" >&5
9040 $as_echo "$ac_cv_lib_audio_AuCreateFlow" >&6; }
9041 if test "x$ac_cv_lib_audio_AuCreateFlow" = x""yes; then :
9042
9043 $as_echo "#define HAVE_NAS 1" >>confdefs.h
9044
9045                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XauGetBestAuthByAddr in -lXau" >&5
9046 $as_echo_n "checking for XauGetBestAuthByAddr in -lXau... " >&6; }
9047 if test "${ac_cv_lib_Xau_XauGetBestAuthByAddr+set}" = set; then :
9048   $as_echo_n "(cached) " >&6
9049 else
9050   ac_check_lib_save_LIBS=$LIBS
9051 LIBS="-lXau $X_LIBS $LIBS"
9052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9053 /* end confdefs.h.  */
9054
9055 /* Override any GCC internal prototype to avoid an error.
9056    Use char because int might match the return type of a GCC
9057    builtin and then its argument prototype would still apply.  */
9058 #ifdef __cplusplus
9059 extern "C"
9060 #endif
9061 char XauGetBestAuthByAddr ();
9062 int
9063 main ()
9064 {
9065 return XauGetBestAuthByAddr ();
9066   ;
9067   return 0;
9068 }
9069 _ACEOF
9070 if ac_fn_c_try_link "$LINENO"; then :
9071   ac_cv_lib_Xau_XauGetBestAuthByAddr=yes
9072 else
9073   ac_cv_lib_Xau_XauGetBestAuthByAddr=no
9074 fi
9075 rm -f core conftest.err conftest.$ac_objext \
9076     conftest$ac_exeext conftest.$ac_ext
9077 LIBS=$ac_check_lib_save_LIBS
9078 fi
9079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xau_XauGetBestAuthByAddr" >&5
9080 $as_echo "$ac_cv_lib_Xau_XauGetBestAuthByAddr" >&6; }
9081 if test "x$ac_cv_lib_Xau_XauGetBestAuthByAddr" = x""yes; then :
9082   NASLIBS="-lXau -laudio -lXt $X_LIBS $XLIB $X_EXTRA_LIBS"
9083 else
9084   NASLIBS="-laudio -lXt $X_LIBS $XLIB $X_EXTRA_LIBS"
9085 fi
9086
9087
9088 fi
9089
9090 fi
9091
9092 done
9093
9094
9095     CPPFLAGS="$ac_save_CPPFLAGS"
9096 else
9097     XLIB=""
9098     X_CFLAGS=""
9099     X_LIBS=""
9100     enable_winex11_drv=${enable_winex11_drv:-no}
9101     enable_opengl32=${enable_opengl32:-no}
9102     enable_glu32=${enable_glu32:-no}
9103 fi
9104 if test "x$XLIB" = "x"; then :
9105   case "x$with_x" in
9106   xno) ;;
9107   *)   as_fn_error $? "X ${notice_platform}development files not found. Wine will be built
9108 without X support, which probably isn't what you want. You will need
9109 to install ${notice_platform}development packages of Xlib/Xfree86 at the very least.
9110 Use the --without-x option if you really want this." "$LINENO" 5  ;;
9111 esac
9112 fi
9113
9114 if test "$ac_cv_header_CL_cl_h" = "yes"
9115 then
9116     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clGetPlatformInfo in -lOpenCL" >&5
9117 $as_echo_n "checking for clGetPlatformInfo in -lOpenCL... " >&6; }
9118 if test "${ac_cv_lib_OpenCL_clGetPlatformInfo+set}" = set; then :
9119   $as_echo_n "(cached) " >&6
9120 else
9121   ac_check_lib_save_LIBS=$LIBS
9122 LIBS="-lOpenCL  $LIBS"
9123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9124 /* end confdefs.h.  */
9125
9126 /* Override any GCC internal prototype to avoid an error.
9127    Use char because int might match the return type of a GCC
9128    builtin and then its argument prototype would still apply.  */
9129 #ifdef __cplusplus
9130 extern "C"
9131 #endif
9132 char clGetPlatformInfo ();
9133 int
9134 main ()
9135 {
9136 return clGetPlatformInfo ();
9137   ;
9138   return 0;
9139 }
9140 _ACEOF
9141 if ac_fn_c_try_link "$LINENO"; then :
9142   ac_cv_lib_OpenCL_clGetPlatformInfo=yes
9143 else
9144   ac_cv_lib_OpenCL_clGetPlatformInfo=no
9145 fi
9146 rm -f core conftest.err conftest.$ac_objext \
9147     conftest$ac_exeext conftest.$ac_ext
9148 LIBS=$ac_check_lib_save_LIBS
9149 fi
9150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_OpenCL_clGetPlatformInfo" >&5
9151 $as_echo "$ac_cv_lib_OpenCL_clGetPlatformInfo" >&6; }
9152 if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" = x""yes; then :
9153   LIBOPENCL="-lOpenCL"
9154
9155 fi
9156
9157 fi
9158 if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes; then :
9159   case "x$with_opencl" in
9160   x)   as_fn_append wine_notices "|OpenCL ${notice_platform}development files not found, OpenCL won't be supported." ;;
9161   xno) ;;
9162   *)   as_fn_error $? "OpenCL ${notice_platform}development files not found, OpenCL won't be supported.
9163 This is an error since --with-opencl was requested." "$LINENO" 5  ;;
9164 esac
9165 fi
9166 test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes && enable_opencl=${enable_opencl:-no}
9167
9168
9169 XML2LIBS=""
9170
9171 XML2INCL=""
9172
9173 XSLTINCL=""
9174
9175 if test "x$with_xml" != "xno"
9176 then
9177     ac_save_CPPFLAGS="$CPPFLAGS"
9178     if test "$PKG_CONFIG" != "false"
9179     then
9180         ac_xml_libs="`$PKG_CONFIG --libs libxml-2.0 2>/dev/null`"
9181         ac_xml_cflags="`$PKG_CONFIG --cflags libxml-2.0 2>/dev/null`"
9182     else
9183         ac_xml_libs="`xml2-config --libs 2>/dev/null`"
9184         ac_xml_cflags="`xml2-config --cflags  2>/dev/null`"
9185     fi
9186     CPPFLAGS="$CPPFLAGS $ac_xml_cflags"
9187     for ac_header in libxml/parser.h libxml/xmlsave.h libxml/SAX2.h
9188 do :
9189   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9190 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9191 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9192   cat >>confdefs.h <<_ACEOF
9193 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9194 _ACEOF
9195
9196 fi
9197
9198 done
9199
9200     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"
9201     then
9202         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseMemory in -lxml2" >&5
9203 $as_echo_n "checking for xmlParseMemory in -lxml2... " >&6; }
9204 if test "${ac_cv_lib_xml2_xmlParseMemory+set}" = set; then :
9205   $as_echo_n "(cached) " >&6
9206 else
9207   ac_check_lib_save_LIBS=$LIBS
9208 LIBS="-lxml2 $ac_xml_libs $LIBS"
9209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9210 /* end confdefs.h.  */
9211
9212 /* Override any GCC internal prototype to avoid an error.
9213    Use char because int might match the return type of a GCC
9214    builtin and then its argument prototype would still apply.  */
9215 #ifdef __cplusplus
9216 extern "C"
9217 #endif
9218 char xmlParseMemory ();
9219 int
9220 main ()
9221 {
9222 return xmlParseMemory ();
9223   ;
9224   return 0;
9225 }
9226 _ACEOF
9227 if ac_fn_c_try_link "$LINENO"; then :
9228   ac_cv_lib_xml2_xmlParseMemory=yes
9229 else
9230   ac_cv_lib_xml2_xmlParseMemory=no
9231 fi
9232 rm -f core conftest.err conftest.$ac_objext \
9233     conftest$ac_exeext conftest.$ac_ext
9234 LIBS=$ac_check_lib_save_LIBS
9235 fi
9236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseMemory" >&5
9237 $as_echo "$ac_cv_lib_xml2_xmlParseMemory" >&6; }
9238 if test "x$ac_cv_lib_xml2_xmlParseMemory" = x""yes; then :
9239
9240 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
9241
9242              XML2LIBS="$ac_xml_libs"
9243              XML2INCL="$ac_xml_cflags"
9244 fi
9245
9246         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlReadMemory in -lxml2" >&5
9247 $as_echo_n "checking for xmlReadMemory in -lxml2... " >&6; }
9248 if test "${ac_cv_lib_xml2_xmlReadMemory+set}" = set; then :
9249   $as_echo_n "(cached) " >&6
9250 else
9251   ac_check_lib_save_LIBS=$LIBS
9252 LIBS="-lxml2 $ac_xml_libs $LIBS"
9253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9254 /* end confdefs.h.  */
9255
9256 /* Override any GCC internal prototype to avoid an error.
9257    Use char because int might match the return type of a GCC
9258    builtin and then its argument prototype would still apply.  */
9259 #ifdef __cplusplus
9260 extern "C"
9261 #endif
9262 char xmlReadMemory ();
9263 int
9264 main ()
9265 {
9266 return xmlReadMemory ();
9267   ;
9268   return 0;
9269 }
9270 _ACEOF
9271 if ac_fn_c_try_link "$LINENO"; then :
9272   ac_cv_lib_xml2_xmlReadMemory=yes
9273 else
9274   ac_cv_lib_xml2_xmlReadMemory=no
9275 fi
9276 rm -f core conftest.err conftest.$ac_objext \
9277     conftest$ac_exeext conftest.$ac_ext
9278 LIBS=$ac_check_lib_save_LIBS
9279 fi
9280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlReadMemory" >&5
9281 $as_echo "$ac_cv_lib_xml2_xmlReadMemory" >&6; }
9282 if test "x$ac_cv_lib_xml2_xmlReadMemory" = x""yes; then :
9283
9284 $as_echo "#define HAVE_XMLREADMEMORY 1" >>confdefs.h
9285
9286 fi
9287
9288         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlNewDocPI in -lxml2" >&5
9289 $as_echo_n "checking for xmlNewDocPI in -lxml2... " >&6; }
9290 if test "${ac_cv_lib_xml2_xmlNewDocPI+set}" = set; then :
9291   $as_echo_n "(cached) " >&6
9292 else
9293   ac_check_lib_save_LIBS=$LIBS
9294 LIBS="-lxml2 $ac_xml_libs $LIBS"
9295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9296 /* end confdefs.h.  */
9297
9298 /* Override any GCC internal prototype to avoid an error.
9299    Use char because int might match the return type of a GCC
9300    builtin and then its argument prototype would still apply.  */
9301 #ifdef __cplusplus
9302 extern "C"
9303 #endif
9304 char xmlNewDocPI ();
9305 int
9306 main ()
9307 {
9308 return xmlNewDocPI ();
9309   ;
9310   return 0;
9311 }
9312 _ACEOF
9313 if ac_fn_c_try_link "$LINENO"; then :
9314   ac_cv_lib_xml2_xmlNewDocPI=yes
9315 else
9316   ac_cv_lib_xml2_xmlNewDocPI=no
9317 fi
9318 rm -f core conftest.err conftest.$ac_objext \
9319     conftest$ac_exeext conftest.$ac_ext
9320 LIBS=$ac_check_lib_save_LIBS
9321 fi
9322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlNewDocPI" >&5
9323 $as_echo "$ac_cv_lib_xml2_xmlNewDocPI" >&6; }
9324 if test "x$ac_cv_lib_xml2_xmlNewDocPI" = x""yes; then :
9325
9326 $as_echo "#define HAVE_XMLNEWDOCPI 1" >>confdefs.h
9327
9328 fi
9329
9330         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetParserStructuredErrors in -lxml2" >&5
9331 $as_echo_n "checking for xmlSchemaSetParserStructuredErrors in -lxml2... " >&6; }
9332 if test "${ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors+set}" = set; then :
9333   $as_echo_n "(cached) " >&6
9334 else
9335   ac_check_lib_save_LIBS=$LIBS
9336 LIBS="-lxml2 $ac_xml_libs $LIBS"
9337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9338 /* end confdefs.h.  */
9339
9340 /* Override any GCC internal prototype to avoid an error.
9341    Use char because int might match the return type of a GCC
9342    builtin and then its argument prototype would still apply.  */
9343 #ifdef __cplusplus
9344 extern "C"
9345 #endif
9346 char xmlSchemaSetParserStructuredErrors ();
9347 int
9348 main ()
9349 {
9350 return xmlSchemaSetParserStructuredErrors ();
9351   ;
9352   return 0;
9353 }
9354 _ACEOF
9355 if ac_fn_c_try_link "$LINENO"; then :
9356   ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=yes
9357 else
9358   ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=no
9359 fi
9360 rm -f core conftest.err conftest.$ac_objext \
9361     conftest$ac_exeext conftest.$ac_ext
9362 LIBS=$ac_check_lib_save_LIBS
9363 fi
9364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&5
9365 $as_echo "$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&6; }
9366 if test "x$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" = x""yes; then :
9367
9368 $as_echo "#define HAVE_XMLSCHEMASSETPARSERSTRUCTUREDERRORS 1" >>confdefs.h
9369
9370 fi
9371
9372         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetValidStructuredErrors in -lxml2" >&5
9373 $as_echo_n "checking for xmlSchemaSetValidStructuredErrors in -lxml2... " >&6; }
9374 if test "${ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors+set}" = set; then :
9375   $as_echo_n "(cached) " >&6
9376 else
9377   ac_check_lib_save_LIBS=$LIBS
9378 LIBS="-lxml2 $ac_xml_libs $LIBS"
9379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9380 /* end confdefs.h.  */
9381
9382 /* Override any GCC internal prototype to avoid an error.
9383    Use char because int might match the return type of a GCC
9384    builtin and then its argument prototype would still apply.  */
9385 #ifdef __cplusplus
9386 extern "C"
9387 #endif
9388 char xmlSchemaSetValidStructuredErrors ();
9389 int
9390 main ()
9391 {
9392 return xmlSchemaSetValidStructuredErrors ();
9393   ;
9394   return 0;
9395 }
9396 _ACEOF
9397 if ac_fn_c_try_link "$LINENO"; then :
9398   ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=yes
9399 else
9400   ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=no
9401 fi
9402 rm -f core conftest.err conftest.$ac_objext \
9403     conftest$ac_exeext conftest.$ac_ext
9404 LIBS=$ac_check_lib_save_LIBS
9405 fi
9406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&5
9407 $as_echo "$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&6; }
9408 if test "x$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" = x""yes; then :
9409
9410 $as_echo "#define HAVE_XMLSCHEMASSETVALIDSTRUCTUREDERRORS 1" >>confdefs.h
9411
9412 fi
9413
9414         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlFirstElementChild in -lxml2" >&5
9415 $as_echo_n "checking for xmlFirstElementChild in -lxml2... " >&6; }
9416 if test "${ac_cv_lib_xml2_xmlFirstElementChild+set}" = set; then :
9417   $as_echo_n "(cached) " >&6
9418 else
9419   ac_check_lib_save_LIBS=$LIBS
9420 LIBS="-lxml2 $ac_xml_libs $LIBS"
9421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9422 /* end confdefs.h.  */
9423
9424 /* Override any GCC internal prototype to avoid an error.
9425    Use char because int might match the return type of a GCC
9426    builtin and then its argument prototype would still apply.  */
9427 #ifdef __cplusplus
9428 extern "C"
9429 #endif
9430 char xmlFirstElementChild ();
9431 int
9432 main ()
9433 {
9434 return xmlFirstElementChild ();
9435   ;
9436   return 0;
9437 }
9438 _ACEOF
9439 if ac_fn_c_try_link "$LINENO"; then :
9440   ac_cv_lib_xml2_xmlFirstElementChild=yes
9441 else
9442   ac_cv_lib_xml2_xmlFirstElementChild=no
9443 fi
9444 rm -f core conftest.err conftest.$ac_objext \
9445     conftest$ac_exeext conftest.$ac_ext
9446 LIBS=$ac_check_lib_save_LIBS
9447 fi
9448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlFirstElementChild" >&5
9449 $as_echo "$ac_cv_lib_xml2_xmlFirstElementChild" >&6; }
9450 if test "x$ac_cv_lib_xml2_xmlFirstElementChild" = x""yes; then :
9451
9452 $as_echo "#define HAVE_XMLFIRSTELEMENTCHILD 1" >>confdefs.h
9453
9454 fi
9455
9456         ac_fn_c_check_type "$LINENO" "xmlDocProperties" "ac_cv_type_xmlDocProperties" "#include <libxml/tree.h>
9457 "
9458 if test "x$ac_cv_type_xmlDocProperties" = x""yes; then :
9459
9460 $as_echo "#define HAVE_XMLDOC_PROPERTIES 1" >>confdefs.h
9461
9462 fi
9463
9464     fi
9465     CPPFLAGS="$ac_save_CPPFLAGS"
9466 fi
9467 if test "$ac_cv_lib_xml2_xmlParseMemory" != "yes"; then :
9468   case "x$with_xml" in
9469   x)   as_fn_append wine_warnings "|libxml2 ${notice_platform}development files not found (or too old), XML won't be supported." ;;
9470   xno) ;;
9471   *)   as_fn_error $? "libxml2 ${notice_platform}development files not found (or too old), XML won't be supported.
9472 This is an error since --with-xml was requested." "$LINENO" 5  ;;
9473 esac
9474 fi
9475
9476 if test "x$with_xslt" != "xno"
9477 then
9478     if test "$PKG_CONFIG" != "false"
9479     then
9480         ac_xslt_libs="`$PKG_CONFIG --libs libxslt 2>/dev/null`"
9481         ac_xslt_cflags="`$PKG_CONFIG --cflags libxslt 2>/dev/null`"
9482     else
9483         ac_xslt_libs="`xslt-config --libs 2>/dev/null`"
9484         ac_xslt_cflags="`xslt-config --cflags 2>/dev/null`"
9485     fi
9486     ac_save_CPPFLAGS="$CPPFLAGS"
9487     CPPFLAGS="$CPPFLAGS $ac_xslt_cflags"
9488     for ac_header in libxslt/pattern.h libxslt/transform.h
9489 do :
9490   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9491 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_LIBXSLT_PATTERN_H
9492 # include <libxslt/pattern.h>
9493 #endif
9494 "
9495 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9496   cat >>confdefs.h <<_ACEOF
9497 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9498 _ACEOF
9499
9500 fi
9501
9502 done
9503
9504     CPPFLAGS="$ac_save_CPPFLAGS"
9505     if test "$ac_cv_header_libxslt_transform_h" = "yes"
9506     then
9507         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lxslt" >&5
9508 $as_echo_n "checking for -lxslt... " >&6; }
9509 if test "${ac_cv_lib_soname_xslt+set}" = set; then :
9510   $as_echo_n "(cached) " >&6
9511 else
9512   ac_check_soname_save_LIBS=$LIBS
9513 LIBS="-lxslt $ac_xslt_libs $LIBS"
9514   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9515 /* end confdefs.h.  */
9516
9517 /* Override any GCC internal prototype to avoid an error.
9518    Use char because int might match the return type of a GCC
9519    builtin and then its argument prototype would still apply.  */
9520 #ifdef __cplusplus
9521 extern "C"
9522 #endif
9523 char xsltCompilePattern ();
9524 int
9525 main ()
9526 {
9527 return xsltCompilePattern ();
9528   ;
9529   return 0;
9530 }
9531 _ACEOF
9532 if ac_fn_c_try_link "$LINENO"; then :
9533   case "$LIBEXT" in
9534     dll) ac_cv_lib_soname_xslt=`$ac_cv_path_LDD conftest.exe | grep "xslt" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9535     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'` ;;
9536     *) ac_cv_lib_soname_xslt=`$ac_cv_path_LDD conftest$ac_exeext | grep "libxslt\\.$LIBEXT" | sed -e "s/^.*\(libxslt\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
9537   esac
9538 fi
9539 rm -f core conftest.err conftest.$ac_objext \
9540     conftest$ac_exeext conftest.$ac_ext
9541   LIBS=$ac_check_soname_save_LIBS
9542 fi
9543 if test "x$ac_cv_lib_soname_xslt" = "x"; then :
9544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9545 $as_echo "not found" >&6; }
9546
9547 else
9548   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_xslt" >&5
9549 $as_echo "$ac_cv_lib_soname_xslt" >&6; }
9550
9551 cat >>confdefs.h <<_ACEOF
9552 #define SONAME_LIBXSLT "$ac_cv_lib_soname_xslt"
9553 _ACEOF
9554
9555        XSLTINCL="$ac_xslt_cflags"
9556 fi
9557     fi
9558 fi
9559 if test "x$ac_cv_lib_soname_xslt" = "x"; then :
9560   case "x$with_xslt" in
9561   x)   as_fn_append wine_warnings "|libxslt ${notice_platform}development files not found, xslt won't be supported." ;;
9562   xno) ;;
9563   *)   as_fn_error $? "libxslt ${notice_platform}development files not found, xslt won't be supported.
9564 This is an error since --with-xslt was requested." "$LINENO" 5  ;;
9565 esac
9566 fi
9567
9568 HALINCL=""
9569
9570 if test "x$with_hal" != "xno"
9571 then
9572     ac_save_CPPFLAGS="$CPPFLAGS"
9573     if test "$PKG_CONFIG" != "false"
9574     then
9575         ac_hal_libs="`$PKG_CONFIG --libs hal 2>/dev/null`"
9576         ac_hal_cflags="`$PKG_CONFIG --cflags hal 2>/dev/null`"
9577         CPPFLAGS="$CPPFLAGS $ac_hal_cflags"
9578     fi
9579     for ac_header in dbus/dbus.h hal/libhal.h
9580 do :
9581   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9582 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9583 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9584   cat >>confdefs.h <<_ACEOF
9585 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9586 _ACEOF
9587
9588 fi
9589
9590 done
9591
9592     if test "$ac_cv_header_dbus_dbus_h" = "yes" -a "$ac_cv_header_hal_libhal_h" = "yes"
9593     then
9594         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus_connection_close in -ldbus-1" >&5
9595 $as_echo_n "checking for dbus_connection_close in -ldbus-1... " >&6; }
9596 if test "${ac_cv_lib_dbus_1_dbus_connection_close+set}" = set; then :
9597   $as_echo_n "(cached) " >&6
9598 else
9599   ac_check_lib_save_LIBS=$LIBS
9600 LIBS="-ldbus-1 $ac_hal_libs $LIBS"
9601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9602 /* end confdefs.h.  */
9603
9604 /* Override any GCC internal prototype to avoid an error.
9605    Use char because int might match the return type of a GCC
9606    builtin and then its argument prototype would still apply.  */
9607 #ifdef __cplusplus
9608 extern "C"
9609 #endif
9610 char dbus_connection_close ();
9611 int
9612 main ()
9613 {
9614 return dbus_connection_close ();
9615   ;
9616   return 0;
9617 }
9618 _ACEOF
9619 if ac_fn_c_try_link "$LINENO"; then :
9620   ac_cv_lib_dbus_1_dbus_connection_close=yes
9621 else
9622   ac_cv_lib_dbus_1_dbus_connection_close=no
9623 fi
9624 rm -f core conftest.err conftest.$ac_objext \
9625     conftest$ac_exeext conftest.$ac_ext
9626 LIBS=$ac_check_lib_save_LIBS
9627 fi
9628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dbus_1_dbus_connection_close" >&5
9629 $as_echo "$ac_cv_lib_dbus_1_dbus_connection_close" >&6; }
9630 if test "x$ac_cv_lib_dbus_1_dbus_connection_close" = x""yes; then :
9631   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lhal" >&5
9632 $as_echo_n "checking for -lhal... " >&6; }
9633 if test "${ac_cv_lib_soname_hal+set}" = set; then :
9634   $as_echo_n "(cached) " >&6
9635 else
9636   ac_check_soname_save_LIBS=$LIBS
9637 LIBS="-lhal $ac_hal_libs $LIBS"
9638   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9639 /* end confdefs.h.  */
9640
9641 /* Override any GCC internal prototype to avoid an error.
9642    Use char because int might match the return type of a GCC
9643    builtin and then its argument prototype would still apply.  */
9644 #ifdef __cplusplus
9645 extern "C"
9646 #endif
9647 char libhal_ctx_new ();
9648 int
9649 main ()
9650 {
9651 return libhal_ctx_new ();
9652   ;
9653   return 0;
9654 }
9655 _ACEOF
9656 if ac_fn_c_try_link "$LINENO"; then :
9657   case "$LIBEXT" in
9658     dll) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest.exe | grep "hal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9659     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'` ;;
9660     *) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest$ac_exeext | grep "libhal\\.$LIBEXT" | sed -e "s/^.*\(libhal\.$LIBEXT[^     ]*\).*$/\1/"';2,$d'` ;;
9661   esac
9662 fi
9663 rm -f core conftest.err conftest.$ac_objext \
9664     conftest$ac_exeext conftest.$ac_ext
9665   LIBS=$ac_check_soname_save_LIBS
9666 fi
9667 if test "x$ac_cv_lib_soname_hal" = "x"; then :
9668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9669 $as_echo "not found" >&6; }
9670
9671 else
9672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_hal" >&5
9673 $as_echo "$ac_cv_lib_soname_hal" >&6; }
9674
9675 cat >>confdefs.h <<_ACEOF
9676 #define SONAME_LIBHAL "$ac_cv_lib_soname_hal"
9677 _ACEOF
9678
9679        HALINCL="$ac_hal_cflags"
9680 fi
9681 fi
9682
9683     fi
9684     CPPFLAGS="$ac_save_CPPFLAGS"
9685 fi
9686 if test "x$ac_cv_lib_soname_hal" = "x" -a "x$ac_cv_header_DiskArbitration_DiskArbitration_h" != "xyes"; then :
9687   case "x$with_hal" in
9688   x)   as_fn_append wine_notices "|libhal/libdbus ${notice_platform}development files not found, no dynamic device support." ;;
9689   xno) ;;
9690   *)   as_fn_error $? "libhal/libdbus ${notice_platform}development files not found, no dynamic device support.
9691 This is an error since --with-hal was requested." "$LINENO" 5  ;;
9692 esac
9693 fi
9694
9695 if test "x$with_gnutls" != "xno"
9696 then
9697     ac_save_CPPFLAGS="$CPPFLAGS"
9698     if test "$PKG_CONFIG" != "false"
9699     then
9700         ac_gnutls_libs="`$PKG_CONFIG --libs gnutls 2>/dev/null`"
9701         ac_gnutls_cflags="`$PKG_CONFIG --cflags gnutls 2>/dev/null`"
9702         CPPFLAGS="$CPPFLAGS $ac_gnutls_cflags"
9703     fi
9704     ac_fn_c_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default"
9705 if test "x$ac_cv_header_gnutls_gnutls_h" = x""yes; then :
9706   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9707 /* end confdefs.h.  */
9708 #include <gnutls/gnutls.h>
9709 int
9710 main ()
9711 {
9712 typeof(gnutls_mac_get_key_size) *pfunc;
9713   ;
9714   return 0;
9715 }
9716 _ACEOF
9717 if ac_fn_c_try_compile "$LINENO"; then :
9718   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgnutls" >&5
9719 $as_echo_n "checking for -lgnutls... " >&6; }
9720 if test "${ac_cv_lib_soname_gnutls+set}" = set; then :
9721   $as_echo_n "(cached) " >&6
9722 else
9723   ac_check_soname_save_LIBS=$LIBS
9724 LIBS="-lgnutls $ac_gnutls_libs $LIBS"
9725   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9726 /* end confdefs.h.  */
9727
9728 /* Override any GCC internal prototype to avoid an error.
9729    Use char because int might match the return type of a GCC
9730    builtin and then its argument prototype would still apply.  */
9731 #ifdef __cplusplus
9732 extern "C"
9733 #endif
9734 char gnutls_global_init ();
9735 int
9736 main ()
9737 {
9738 return gnutls_global_init ();
9739   ;
9740   return 0;
9741 }
9742 _ACEOF
9743 if ac_fn_c_try_link "$LINENO"; then :
9744   case "$LIBEXT" in
9745     dll) ac_cv_lib_soname_gnutls=`$ac_cv_path_LDD conftest.exe | grep "gnutls" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9746     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'` ;;
9747     *) ac_cv_lib_soname_gnutls=`$ac_cv_path_LDD conftest$ac_exeext | grep "libgnutls\\.$LIBEXT" | sed -e "s/^.*\(libgnutls\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'` ;;
9748   esac
9749 fi
9750 rm -f core conftest.err conftest.$ac_objext \
9751     conftest$ac_exeext conftest.$ac_ext
9752   LIBS=$ac_check_soname_save_LIBS
9753 fi
9754 if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
9755   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9756 $as_echo "not found" >&6; }
9757
9758 else
9759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gnutls" >&5
9760 $as_echo "$ac_cv_lib_soname_gnutls" >&6; }
9761
9762 cat >>confdefs.h <<_ACEOF
9763 #define SONAME_LIBGNUTLS "$ac_cv_lib_soname_gnutls"
9764 _ACEOF
9765
9766        GNUTLSINCL="$ac_gnutls_cflags"
9767
9768 fi
9769 fi
9770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9771 fi
9772
9773
9774     CPPFLAGS="$ac_save_CPPFLAGS"
9775 fi
9776 if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
9777   case "x$with_gnutls" in
9778   x)   as_fn_append wine_notices "|libgnutls ${notice_platform}development files not found, no schannel support." ;;
9779   xno) ;;
9780   *)   as_fn_error $? "libgnutls ${notice_platform}development files not found, no schannel support.
9781 This is an error since --with-gnutls was requested." "$LINENO" 5  ;;
9782 esac
9783 fi
9784
9785 CURSESLIBS=""
9786 if test "$ac_cv_header_ncurses_h" = "yes"
9787 then
9788     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lncurses" >&5
9789 $as_echo_n "checking for -lncurses... " >&6; }
9790 if test "${ac_cv_lib_soname_ncurses+set}" = set; then :
9791   $as_echo_n "(cached) " >&6
9792 else
9793   ac_check_soname_save_LIBS=$LIBS
9794 LIBS="-lncurses  $LIBS"
9795   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9796 /* end confdefs.h.  */
9797
9798 /* Override any GCC internal prototype to avoid an error.
9799    Use char because int might match the return type of a GCC
9800    builtin and then its argument prototype would still apply.  */
9801 #ifdef __cplusplus
9802 extern "C"
9803 #endif
9804 char waddch ();
9805 int
9806 main ()
9807 {
9808 return waddch ();
9809   ;
9810   return 0;
9811 }
9812 _ACEOF
9813 if ac_fn_c_try_link "$LINENO"; then :
9814   case "$LIBEXT" in
9815     dll) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest.exe | grep "ncurses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9816     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'` ;;
9817     *) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest$ac_exeext | grep "libncurses\\.$LIBEXT" | sed -e "s/^.*\(libncurses\.$LIBEXT[^         ]*\).*$/\1/"';2,$d'` ;;
9818   esac
9819 fi
9820 rm -f core conftest.err conftest.$ac_objext \
9821     conftest$ac_exeext conftest.$ac_ext
9822   LIBS=$ac_check_soname_save_LIBS
9823 fi
9824 if test "x$ac_cv_lib_soname_ncurses" = "x"; then :
9825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9826 $as_echo "not found" >&6; }
9827
9828 else
9829   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ncurses" >&5
9830 $as_echo "$ac_cv_lib_soname_ncurses" >&6; }
9831
9832 cat >>confdefs.h <<_ACEOF
9833 #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
9834 _ACEOF
9835
9836        CURSESLIBS="-lncurses"
9837 fi
9838 elif test "$ac_cv_header_curses_h" = "yes"
9839 then
9840     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcurses" >&5
9841 $as_echo_n "checking for -lcurses... " >&6; }
9842 if test "${ac_cv_lib_soname_curses+set}" = set; then :
9843   $as_echo_n "(cached) " >&6
9844 else
9845   ac_check_soname_save_LIBS=$LIBS
9846 LIBS="-lcurses  $LIBS"
9847   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9848 /* end confdefs.h.  */
9849
9850 /* Override any GCC internal prototype to avoid an error.
9851    Use char because int might match the return type of a GCC
9852    builtin and then its argument prototype would still apply.  */
9853 #ifdef __cplusplus
9854 extern "C"
9855 #endif
9856 char waddch ();
9857 int
9858 main ()
9859 {
9860 return waddch ();
9861   ;
9862   return 0;
9863 }
9864 _ACEOF
9865 if ac_fn_c_try_link "$LINENO"; then :
9866   case "$LIBEXT" in
9867     dll) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest.exe | grep "curses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9868     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'` ;;
9869     *) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcurses\\.$LIBEXT" | sed -e "s/^.*\(libcurses\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'` ;;
9870   esac
9871 fi
9872 rm -f core conftest.err conftest.$ac_objext \
9873     conftest$ac_exeext conftest.$ac_ext
9874   LIBS=$ac_check_soname_save_LIBS
9875 fi
9876 if test "x$ac_cv_lib_soname_curses" = "x"; then :
9877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9878 $as_echo "not found" >&6; }
9879
9880 else
9881   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_curses" >&5
9882 $as_echo "$ac_cv_lib_soname_curses" >&6; }
9883
9884 cat >>confdefs.h <<_ACEOF
9885 #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
9886 _ACEOF
9887
9888        CURSESLIBS="-lcurses"
9889 fi
9890 fi
9891 ac_save_LIBS="$LIBS"
9892 LIBS="$LIBS $CURSESLIBS"
9893 for ac_func in mousemask
9894 do :
9895   ac_fn_c_check_func "$LINENO" "mousemask" "ac_cv_func_mousemask"
9896 if test "x$ac_cv_func_mousemask" = x""yes; then :
9897   cat >>confdefs.h <<_ACEOF
9898 #define HAVE_MOUSEMASK 1
9899 _ACEOF
9900
9901 fi
9902 done
9903
9904 LIBS="$ac_save_LIBS"
9905 if test "x$ac_cv_lib_soname_curses$ac_cv_lib_soname_ncurses" = "x"; then :
9906   case "x$with_curses" in
9907   x)   as_fn_append wine_notices "|lib(n)curses ${notice_platform}development files not found, curses won't be supported." ;;
9908   xno) ;;
9909   *)   as_fn_error $? "lib(n)curses ${notice_platform}development files not found, curses won't be supported.
9910 This is an error since --with-curses was requested." "$LINENO" 5  ;;
9911 esac
9912 fi
9913
9914 if test "x$with_sane" != "xno"
9915 then
9916     ac_save_CPPFLAGS="$CPPFLAGS"
9917     # Extract the first word of "sane-config", so it can be a program name with args.
9918 set dummy sane-config; ac_word=$2
9919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9920 $as_echo_n "checking for $ac_word... " >&6; }
9921 if test "${ac_cv_prog_sane_devel+set}" = set; then :
9922   $as_echo_n "(cached) " >&6
9923 else
9924   if test -n "$sane_devel"; then
9925   ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
9926 else
9927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9928 for as_dir in $PATH
9929 do
9930   IFS=$as_save_IFS
9931   test -z "$as_dir" && as_dir=.
9932     for ac_exec_ext in '' $ac_executable_extensions; do
9933   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9934     ac_cv_prog_sane_devel="sane-config"
9935     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9936     break 2
9937   fi
9938 done
9939   done
9940 IFS=$as_save_IFS
9941
9942   test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
9943 fi
9944 fi
9945 sane_devel=$ac_cv_prog_sane_devel
9946 if test -n "$sane_devel"; then
9947   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sane_devel" >&5
9948 $as_echo "$sane_devel" >&6; }
9949 else
9950   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9951 $as_echo "no" >&6; }
9952 fi
9953
9954
9955     if test "$sane_devel" != "no"
9956     then
9957         ac_sane_incl="`$sane_devel --cflags`"
9958         ac_sane_libs="`$sane_devel --ldflags`"
9959         CPPFLAGS="$CPPFLAGS $ac_sane_incl"
9960     fi
9961     ac_fn_c_check_header_mongrel "$LINENO" "sane/sane.h" "ac_cv_header_sane_sane_h" "$ac_includes_default"
9962 if test "x$ac_cv_header_sane_sane_h" = x""yes; then :
9963   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lsane" >&5
9964 $as_echo_n "checking for -lsane... " >&6; }
9965 if test "${ac_cv_lib_soname_sane+set}" = set; then :
9966   $as_echo_n "(cached) " >&6
9967 else
9968   ac_check_soname_save_LIBS=$LIBS
9969 LIBS="-lsane $ac_sane_libs $LIBS"
9970   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9971 /* end confdefs.h.  */
9972
9973 /* Override any GCC internal prototype to avoid an error.
9974    Use char because int might match the return type of a GCC
9975    builtin and then its argument prototype would still apply.  */
9976 #ifdef __cplusplus
9977 extern "C"
9978 #endif
9979 char sane_init ();
9980 int
9981 main ()
9982 {
9983 return sane_init ();
9984   ;
9985   return 0;
9986 }
9987 _ACEOF
9988 if ac_fn_c_try_link "$LINENO"; then :
9989   case "$LIBEXT" in
9990     dll) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest.exe | grep "sane" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9991     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'` ;;
9992     *) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest$ac_exeext | grep "libsane\\.$LIBEXT" | sed -e "s/^.*\(libsane\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
9993   esac
9994 fi
9995 rm -f core conftest.err conftest.$ac_objext \
9996     conftest$ac_exeext conftest.$ac_ext
9997   LIBS=$ac_check_soname_save_LIBS
9998 fi
9999 if test "x$ac_cv_lib_soname_sane" = "x"; then :
10000   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10001 $as_echo "not found" >&6; }
10002
10003 else
10004   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_sane" >&5
10005 $as_echo "$ac_cv_lib_soname_sane" >&6; }
10006
10007 cat >>confdefs.h <<_ACEOF
10008 #define SONAME_LIBSANE "$ac_cv_lib_soname_sane"
10009 _ACEOF
10010
10011        SANEINCL="$ac_sane_incl"
10012
10013 fi
10014 fi
10015
10016
10017     CPPFLAGS="$ac_save_CPPFLAGS"
10018 fi
10019 if test "x$ac_cv_lib_soname_sane" = "x"; then :
10020   case "x$with_sane" in
10021   x)   as_fn_append wine_notices "|libsane ${notice_platform}development files not found, scanners won't be supported." ;;
10022   xno) ;;
10023   *)   as_fn_error $? "libsane ${notice_platform}development files not found, scanners won't be supported.
10024 This is an error since --with-sane was requested." "$LINENO" 5  ;;
10025 esac
10026 fi
10027
10028 if test "x$with_v4l" != "xno"
10029 then
10030     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lv4l1" >&5
10031 $as_echo_n "checking for -lv4l1... " >&6; }
10032 if test "${ac_cv_lib_soname_v4l1+set}" = set; then :
10033   $as_echo_n "(cached) " >&6
10034 else
10035   ac_check_soname_save_LIBS=$LIBS
10036 LIBS="-lv4l1  $LIBS"
10037   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10038 /* end confdefs.h.  */
10039
10040 /* Override any GCC internal prototype to avoid an error.
10041    Use char because int might match the return type of a GCC
10042    builtin and then its argument prototype would still apply.  */
10043 #ifdef __cplusplus
10044 extern "C"
10045 #endif
10046 char v4l1_open ();
10047 int
10048 main ()
10049 {
10050 return v4l1_open ();
10051   ;
10052   return 0;
10053 }
10054 _ACEOF
10055 if ac_fn_c_try_link "$LINENO"; then :
10056   case "$LIBEXT" in
10057     dll) ac_cv_lib_soname_v4l1=`$ac_cv_path_LDD conftest.exe | grep "v4l1" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10058     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'` ;;
10059     *) ac_cv_lib_soname_v4l1=`$ac_cv_path_LDD conftest$ac_exeext | grep "libv4l1\\.$LIBEXT" | sed -e "s/^.*\(libv4l1\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
10060   esac
10061 fi
10062 rm -f core conftest.err conftest.$ac_objext \
10063     conftest$ac_exeext conftest.$ac_ext
10064   LIBS=$ac_check_soname_save_LIBS
10065 fi
10066 if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
10067   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10068 $as_echo "not found" >&6; }
10069
10070 else
10071   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_v4l1" >&5
10072 $as_echo "$ac_cv_lib_soname_v4l1" >&6; }
10073
10074 cat >>confdefs.h <<_ACEOF
10075 #define SONAME_LIBV4L1 "$ac_cv_lib_soname_v4l1"
10076 _ACEOF
10077
10078
10079 fi
10080 fi
10081 if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
10082   case "x$with_v4l" in
10083   x)   as_fn_append wine_notices "|libv4l ${notice_platform}development files not found." ;;
10084   xno) ;;
10085   *)   as_fn_error $? "libv4l ${notice_platform}development files not found.
10086 This is an error since --with-v4l was requested." "$LINENO" 5  ;;
10087 esac
10088 fi
10089
10090 if test "x$with_gphoto" != "xno"
10091 then
10092     ac_save_CPPFLAGS="$CPPFLAGS"
10093     # Extract the first word of "gphoto2-config", so it can be a program name with args.
10094 set dummy gphoto2-config; ac_word=$2
10095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10096 $as_echo_n "checking for $ac_word... " >&6; }
10097 if test "${ac_cv_prog_gphoto2_devel+set}" = set; then :
10098   $as_echo_n "(cached) " >&6
10099 else
10100   if test -n "$gphoto2_devel"; then
10101   ac_cv_prog_gphoto2_devel="$gphoto2_devel" # Let the user override the test.
10102 else
10103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10104 for as_dir in $PATH
10105 do
10106   IFS=$as_save_IFS
10107   test -z "$as_dir" && as_dir=.
10108     for ac_exec_ext in '' $ac_executable_extensions; do
10109   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10110     ac_cv_prog_gphoto2_devel="gphoto2-config"
10111     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10112     break 2
10113   fi
10114 done
10115   done
10116 IFS=$as_save_IFS
10117
10118   test -z "$ac_cv_prog_gphoto2_devel" && ac_cv_prog_gphoto2_devel="no"
10119 fi
10120 fi
10121 gphoto2_devel=$ac_cv_prog_gphoto2_devel
10122 if test -n "$gphoto2_devel"; then
10123   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gphoto2_devel" >&5
10124 $as_echo "$gphoto2_devel" >&6; }
10125 else
10126   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10127 $as_echo "no" >&6; }
10128 fi
10129
10130
10131     # Extract the first word of "gphoto2-port-config", so it can be a program name with args.
10132 set dummy gphoto2-port-config; ac_word=$2
10133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10134 $as_echo_n "checking for $ac_word... " >&6; }
10135 if test "${ac_cv_prog_gphoto2port_devel+set}" = set; then :
10136   $as_echo_n "(cached) " >&6
10137 else
10138   if test -n "$gphoto2port_devel"; then
10139   ac_cv_prog_gphoto2port_devel="$gphoto2port_devel" # Let the user override the test.
10140 else
10141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10142 for as_dir in $PATH
10143 do
10144   IFS=$as_save_IFS
10145   test -z "$as_dir" && as_dir=.
10146     for ac_exec_ext in '' $ac_executable_extensions; do
10147   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10148     ac_cv_prog_gphoto2port_devel="gphoto2-port-config"
10149     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10150     break 2
10151   fi
10152 done
10153   done
10154 IFS=$as_save_IFS
10155
10156   test -z "$ac_cv_prog_gphoto2port_devel" && ac_cv_prog_gphoto2port_devel="no"
10157 fi
10158 fi
10159 gphoto2port_devel=$ac_cv_prog_gphoto2port_devel
10160 if test -n "$gphoto2port_devel"; then
10161   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gphoto2port_devel" >&5
10162 $as_echo "$gphoto2port_devel" >&6; }
10163 else
10164   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10165 $as_echo "no" >&6; }
10166 fi
10167
10168
10169     if test "$gphoto2_devel" != "no" -a "$gphoto2port_devel" != "no"
10170     then
10171         ac_gphoto2_incl="`$gphoto2_devel --cflags` `$gphoto2port_devel --cflags`"
10172         ac_gphoto2_libs=""
10173         for i in `$gphoto2_devel --libs` `$gphoto2port_devel --libs`
10174         do
10175             case "$i" in
10176             -L/usr/lib|-L/usr/lib64) ;;
10177             -L*|-l*) ac_gphoto2_libs="$ac_gphoto2_libs $i";;
10178             esac
10179         done
10180         CPPFLAGS="$CPPFLAGS $ac_gphoto2_incl"
10181     fi
10182     ac_gphoto2_libs=${ac_gphoto2_libs:-"-lgphoto2"}
10183     ac_fn_c_check_header_mongrel "$LINENO" "gphoto2-camera.h" "ac_cv_header_gphoto2_camera_h" "$ac_includes_default"
10184 if test "x$ac_cv_header_gphoto2_camera_h" = x""yes; then :
10185   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gp_camera_new in -lgphoto2" >&5
10186 $as_echo_n "checking for gp_camera_new in -lgphoto2... " >&6; }
10187 if test "${ac_cv_lib_gphoto2_gp_camera_new+set}" = set; then :
10188   $as_echo_n "(cached) " >&6
10189 else
10190   ac_check_lib_save_LIBS=$LIBS
10191 LIBS="-lgphoto2 $ac_gphoto2_libs $LIBS"
10192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10193 /* end confdefs.h.  */
10194
10195 /* Override any GCC internal prototype to avoid an error.
10196    Use char because int might match the return type of a GCC
10197    builtin and then its argument prototype would still apply.  */
10198 #ifdef __cplusplus
10199 extern "C"
10200 #endif
10201 char gp_camera_new ();
10202 int
10203 main ()
10204 {
10205 return gp_camera_new ();
10206   ;
10207   return 0;
10208 }
10209 _ACEOF
10210 if ac_fn_c_try_link "$LINENO"; then :
10211   ac_cv_lib_gphoto2_gp_camera_new=yes
10212 else
10213   ac_cv_lib_gphoto2_gp_camera_new=no
10214 fi
10215 rm -f core conftest.err conftest.$ac_objext \
10216     conftest$ac_exeext conftest.$ac_ext
10217 LIBS=$ac_check_lib_save_LIBS
10218 fi
10219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gphoto2_gp_camera_new" >&5
10220 $as_echo "$ac_cv_lib_gphoto2_gp_camera_new" >&6; }
10221 if test "x$ac_cv_lib_gphoto2_gp_camera_new" = x""yes; then :
10222
10223 $as_echo "#define HAVE_GPHOTO2 1" >>confdefs.h
10224
10225                                    GPHOTO2LIBS="$ac_gphoto2_libs"
10226
10227                                    GPHOTO2INCL="$ac_gphoto2_incl"
10228
10229 fi
10230
10231 fi
10232
10233
10234     CPPFLAGS="$ac_save_CPPFLAGS"
10235 fi
10236 if test "$ac_cv_lib_gphoto2_gp_camera_new" != "yes"; then :
10237   case "x$with_gphoto" in
10238   x)   as_fn_append wine_notices "|libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported." ;;
10239   xno) ;;
10240   *)   as_fn_error $? "libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported.
10241 This is an error since --with-gphoto was requested." "$LINENO" 5  ;;
10242 esac
10243 fi
10244
10245
10246 if test "$ac_cv_header_resolv_h" = "yes"
10247 then
10248     ac_save_LIBS="$LIBS"
10249     for lib in '' -lresolv
10250     do
10251       LIBS="$lib $ac_save_LIBS"
10252       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10253 /* end confdefs.h.  */
10254 #ifdef HAVE_NETINET_IN_H
10255 #include <netinet/in.h>
10256 #endif
10257 #include <resolv.h>
10258 int
10259 main ()
10260 {
10261 res_query("foo",ns_c_in,0,0,0);
10262   ;
10263   return 0;
10264 }
10265 _ACEOF
10266 if ac_fn_c_try_link "$LINENO"; then :
10267
10268 $as_echo "#define HAVE_RESOLV 1" >>confdefs.h
10269
10270          RESOLVLIBS="$lib"
10271
10272 fi
10273 rm -f core conftest.err conftest.$ac_objext \
10274     conftest$ac_exeext conftest.$ac_ext
10275       if test "${RESOLVLIBS+set}" = set; then
10276         break
10277       fi
10278     done
10279     LIBS="$ac_save_LIBS"
10280 fi
10281
10282 LCMSLIBS=""
10283
10284 if test "$ac_cv_header_lcms_h" = "yes" -o "$ac_cv_header_lcms_lcms_h" = "yes"
10285 then
10286     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromFile in -llcms" >&5
10287 $as_echo_n "checking for cmsOpenProfileFromFile in -llcms... " >&6; }
10288 if test "${ac_cv_lib_lcms_cmsOpenProfileFromFile+set}" = set; then :
10289   $as_echo_n "(cached) " >&6
10290 else
10291   ac_check_lib_save_LIBS=$LIBS
10292 LIBS="-llcms  $LIBS"
10293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10294 /* end confdefs.h.  */
10295
10296 /* Override any GCC internal prototype to avoid an error.
10297    Use char because int might match the return type of a GCC
10298    builtin and then its argument prototype would still apply.  */
10299 #ifdef __cplusplus
10300 extern "C"
10301 #endif
10302 char cmsOpenProfileFromFile ();
10303 int
10304 main ()
10305 {
10306 return cmsOpenProfileFromFile ();
10307   ;
10308   return 0;
10309 }
10310 _ACEOF
10311 if ac_fn_c_try_link "$LINENO"; then :
10312   ac_cv_lib_lcms_cmsOpenProfileFromFile=yes
10313 else
10314   ac_cv_lib_lcms_cmsOpenProfileFromFile=no
10315 fi
10316 rm -f core conftest.err conftest.$ac_objext \
10317     conftest$ac_exeext conftest.$ac_ext
10318 LIBS=$ac_check_lib_save_LIBS
10319 fi
10320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsOpenProfileFromFile" >&5
10321 $as_echo "$ac_cv_lib_lcms_cmsOpenProfileFromFile" >&6; }
10322 if test "x$ac_cv_lib_lcms_cmsOpenProfileFromFile" = x""yes; then :
10323
10324 $as_echo "#define HAVE_LCMS 1" >>confdefs.h
10325
10326          LCMSLIBS="-llcms"
10327 fi
10328
10329 fi
10330 if test "$ac_cv_lib_lcms_cmsOpenProfileFromFile" != "yes"; then :
10331   case "x$with_cms" in
10332   x)   as_fn_append wine_notices "|liblcms ${notice_platform}development files not found, Color Management won't be supported." ;;
10333   xno) ;;
10334   *)   as_fn_error $? "liblcms ${notice_platform}development files not found, Color Management won't be supported.
10335 This is an error since --with-cms was requested." "$LINENO" 5  ;;
10336 esac
10337 fi
10338
10339 if test "x$with_freetype" != "xno"
10340 then
10341     for ac_prog in freetype-config freetype2-config
10342 do
10343   # Extract the first word of "$ac_prog", so it can be a program name with args.
10344 set dummy $ac_prog; ac_word=$2
10345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10346 $as_echo_n "checking for $ac_word... " >&6; }
10347 if test "${ac_cv_prog_ft_devel+set}" = set; then :
10348   $as_echo_n "(cached) " >&6
10349 else
10350   if test -n "$ft_devel"; then
10351   ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
10352 else
10353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10354 for as_dir in $PATH
10355 do
10356   IFS=$as_save_IFS
10357   test -z "$as_dir" && as_dir=.
10358     for ac_exec_ext in '' $ac_executable_extensions; do
10359   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10360     ac_cv_prog_ft_devel="$ac_prog"
10361     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10362     break 2
10363   fi
10364 done
10365   done
10366 IFS=$as_save_IFS
10367
10368 fi
10369 fi
10370 ft_devel=$ac_cv_prog_ft_devel
10371 if test -n "$ft_devel"; then
10372   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ft_devel" >&5
10373 $as_echo "$ft_devel" >&6; }
10374 else
10375   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10376 $as_echo "no" >&6; }
10377 fi
10378
10379
10380   test -n "$ft_devel" && break
10381 done
10382 test -n "$ft_devel" || ft_devel="no"
10383
10384     if test "$ft_devel" != "no"
10385     then
10386         ac_freetype_incl=`$ft_devel --cflags`
10387         ac_freetype_libs=`$ft_devel --libs`
10388     fi
10389     ac_freetype_libs=${ac_freetype_libs:-"-lfreetype"}
10390     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfreetype" >&5
10391 $as_echo_n "checking for -lfreetype... " >&6; }
10392 if test "${ac_cv_lib_soname_freetype+set}" = set; then :
10393   $as_echo_n "(cached) " >&6
10394 else
10395   ac_check_soname_save_LIBS=$LIBS
10396 LIBS="-lfreetype $ac_freetype_libs $LIBS"
10397   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10398 /* end confdefs.h.  */
10399
10400 /* Override any GCC internal prototype to avoid an error.
10401    Use char because int might match the return type of a GCC
10402    builtin and then its argument prototype would still apply.  */
10403 #ifdef __cplusplus
10404 extern "C"
10405 #endif
10406 char FT_Init_FreeType ();
10407 int
10408 main ()
10409 {
10410 return FT_Init_FreeType ();
10411   ;
10412   return 0;
10413 }
10414 _ACEOF
10415 if ac_fn_c_try_link "$LINENO"; then :
10416   case "$LIBEXT" in
10417     dll) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest.exe | grep "freetype" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10418     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'` ;;
10419     *) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfreetype\\.$LIBEXT" | sed -e "s/^.*\(libfreetype\.$LIBEXT[^      ]*\).*$/\1/"';2,$d'` ;;
10420   esac
10421 fi
10422 rm -f core conftest.err conftest.$ac_objext \
10423     conftest$ac_exeext conftest.$ac_ext
10424   LIBS=$ac_check_soname_save_LIBS
10425 fi
10426 if test "x$ac_cv_lib_soname_freetype" = "x"; then :
10427   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10428 $as_echo "not found" >&6; }
10429        ft_lib=no
10430 else
10431   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_freetype" >&5
10432 $as_echo "$ac_cv_lib_soname_freetype" >&6; }
10433
10434 cat >>confdefs.h <<_ACEOF
10435 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
10436 _ACEOF
10437
10438        ft_lib=yes
10439 fi
10440     if test "$ft_lib" = "yes"
10441     then
10442         ac_save_CPPFLAGS="$CPPFLAGS"
10443         CPPFLAGS="$ac_freetype_incl $CPPFLAGS"
10444         for ac_header in ft2build.h \
10445                          freetype/freetype.h \
10446                          freetype/ftglyph.h \
10447                          freetype/fttypes.h \
10448                          freetype/tttables.h \
10449                          freetype/ftsnames.h \
10450                          freetype/ttnameid.h \
10451                          freetype/ftoutln.h \
10452                          freetype/ftwinfnt.h \
10453                          freetype/ftmodapi.h \
10454                          freetype/ftlcdfil.h \
10455                          freetype/internal/sfnt.h
10456 do :
10457   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10458 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_FT2BUILD_H
10459                           # include <ft2build.h>
10460                           #endif
10461 "
10462 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10463   cat >>confdefs.h <<_ACEOF
10464 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10465 _ACEOF
10466
10467 fi
10468
10469 done
10470
10471         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10472 /* end confdefs.h.  */
10473 #include <ft2build.h>
10474                     #include <freetype/fttrigon.h>
10475 _ACEOF
10476 if ac_fn_c_try_cpp "$LINENO"; then :
10477
10478 $as_echo "#define HAVE_FREETYPE_FTTRIGON_H 1" >>confdefs.h
10479
10480                     wine_cv_fttrigon=yes
10481 else
10482   wine_cv_fttrigon=no
10483 fi
10484 rm -f conftest.err conftest.i conftest.$ac_ext
10485         ac_fn_c_check_type "$LINENO" "FT_TrueTypeEngineType" "ac_cv_type_FT_TrueTypeEngineType" "#include <freetype/ftmodapi.h>
10486 "
10487 if test "x$ac_cv_type_FT_TrueTypeEngineType" = x""yes; then :
10488
10489 cat >>confdefs.h <<_ACEOF
10490 #define HAVE_FT_TRUETYPEENGINETYPE 1
10491 _ACEOF
10492
10493
10494 fi
10495
10496         ac_save_CFLAGS="$CFLAGS"
10497         CFLAGS="$CFLAGS $ac_freetype_libs"
10498         for ac_func in FT_Load_Sfnt_Table
10499 do :
10500   ac_fn_c_check_func "$LINENO" "FT_Load_Sfnt_Table" "ac_cv_func_FT_Load_Sfnt_Table"
10501 if test "x$ac_cv_func_FT_Load_Sfnt_Table" = x""yes; then :
10502   cat >>confdefs.h <<_ACEOF
10503 #define HAVE_FT_LOAD_SFNT_TABLE 1
10504 _ACEOF
10505
10506 fi
10507 done
10508
10509         CFLAGS="$ac_save_CFLAGS"
10510         CPPFLAGS="$ac_save_CPPFLAGS"
10511                 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
10512         then
10513
10514 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
10515
10516             FREETYPELIBS="$ac_freetype_libs"
10517
10518             FREETYPEINCL="$ac_freetype_incl"
10519
10520         fi
10521     fi
10522 fi
10523 if test "x$FREETYPELIBS" = "x"; then :
10524   case "x$with_freetype" in
10525   xno) ;;
10526   *)   as_fn_error $? "FreeType ${notice_platform}development files not found. Fonts will not be built.
10527 Use the --without-freetype option if you really want this." "$LINENO" 5  ;;
10528 esac
10529 fi
10530 test "x$FREETYPELIBS" = "x" && enable_fonts=${enable_fonts:-no}
10531
10532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for parport header/ppdev.h" >&5
10533 $as_echo_n "checking for parport header/ppdev.h... " >&6; }
10534 if test "${ac_cv_c_ppdev+set}" = set; then :
10535   $as_echo_n "(cached) " >&6
10536 else
10537   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10538 /* end confdefs.h.  */
10539 #ifdef HAVE_SYS_IOCTL_H
10540 # include <sys/ioctl.h>
10541 #endif
10542 #include <linux/ppdev.h>
10543 int
10544 main ()
10545 {
10546 ioctl (1,PPCLAIM,0)
10547   ;
10548   return 0;
10549 }
10550 _ACEOF
10551 if ac_fn_c_try_compile "$LINENO"; then :
10552   ac_cv_c_ppdev="yes"
10553 else
10554   ac_cv_c_ppdev="no"
10555 fi
10556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10557 fi
10558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_ppdev" >&5
10559 $as_echo "$ac_cv_c_ppdev" >&6; }
10560 if test "$ac_cv_c_ppdev" = "yes"
10561 then
10562
10563 $as_echo "#define HAVE_PPDEV 1" >>confdefs.h
10564
10565 fi
10566
10567 ac_wine_check_funcs_save_LIBS="$LIBS"
10568 LIBS="$LIBS $LIBPTHREAD"
10569 for ac_func in \
10570         pthread_attr_get_np \
10571         pthread_getattr_np \
10572         pthread_get_stackaddr_np \
10573         pthread_get_stacksize_np
10574 do :
10575   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10576 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10577 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10578   cat >>confdefs.h <<_ACEOF
10579 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10580 _ACEOF
10581
10582 fi
10583 done
10584
10585 LIBS="$ac_wine_check_funcs_save_LIBS"
10586
10587 if test "$ac_cv_header_zlib_h" = "yes"
10588 then
10589     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
10590 $as_echo_n "checking for inflate in -lz... " >&6; }
10591 if test "${ac_cv_lib_z_inflate+set}" = set; then :
10592   $as_echo_n "(cached) " >&6
10593 else
10594   ac_check_lib_save_LIBS=$LIBS
10595 LIBS="-lz  $LIBS"
10596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10597 /* end confdefs.h.  */
10598
10599 /* Override any GCC internal prototype to avoid an error.
10600    Use char because int might match the return type of a GCC
10601    builtin and then its argument prototype would still apply.  */
10602 #ifdef __cplusplus
10603 extern "C"
10604 #endif
10605 char inflate ();
10606 int
10607 main ()
10608 {
10609 return inflate ();
10610   ;
10611   return 0;
10612 }
10613 _ACEOF
10614 if ac_fn_c_try_link "$LINENO"; then :
10615   ac_cv_lib_z_inflate=yes
10616 else
10617   ac_cv_lib_z_inflate=no
10618 fi
10619 rm -f core conftest.err conftest.$ac_objext \
10620     conftest$ac_exeext conftest.$ac_ext
10621 LIBS=$ac_check_lib_save_LIBS
10622 fi
10623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
10624 $as_echo "$ac_cv_lib_z_inflate" >&6; }
10625 if test "x$ac_cv_lib_z_inflate" = x""yes; then :
10626
10627 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
10628
10629                             ZLIB="-lz"
10630
10631 fi
10632
10633 fi
10634 if test "x$ZLIB" = "x"; then :
10635   case "x$with_zlib" in
10636   x)   as_fn_append wine_notices "|libz ${notice_platform}development files not found, data compression won't be supported." ;;
10637   xno) ;;
10638   *)   as_fn_error $? "libz ${notice_platform}development files not found, data compression won't be supported.
10639 This is an error since --with-zlib was requested." "$LINENO" 5  ;;
10640 esac
10641 fi
10642
10643 if test "x$enable_tools" != xno
10644 then
10645     if test "$ac_cv_header_gettext_po_h" = "yes"
10646     then
10647         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for po_message_msgctxt in -lgettextpo" >&5
10648 $as_echo_n "checking for po_message_msgctxt in -lgettextpo... " >&6; }
10649 if test "${ac_cv_lib_gettextpo_po_message_msgctxt+set}" = set; then :
10650   $as_echo_n "(cached) " >&6
10651 else
10652   ac_check_lib_save_LIBS=$LIBS
10653 LIBS="-lgettextpo  $LIBS"
10654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10655 /* end confdefs.h.  */
10656
10657 /* Override any GCC internal prototype to avoid an error.
10658    Use char because int might match the return type of a GCC
10659    builtin and then its argument prototype would still apply.  */
10660 #ifdef __cplusplus
10661 extern "C"
10662 #endif
10663 char po_message_msgctxt ();
10664 int
10665 main ()
10666 {
10667 return po_message_msgctxt ();
10668   ;
10669   return 0;
10670 }
10671 _ACEOF
10672 if ac_fn_c_try_link "$LINENO"; then :
10673   ac_cv_lib_gettextpo_po_message_msgctxt=yes
10674 else
10675   ac_cv_lib_gettextpo_po_message_msgctxt=no
10676 fi
10677 rm -f core conftest.err conftest.$ac_objext \
10678     conftest$ac_exeext conftest.$ac_ext
10679 LIBS=$ac_check_lib_save_LIBS
10680 fi
10681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gettextpo_po_message_msgctxt" >&5
10682 $as_echo "$ac_cv_lib_gettextpo_po_message_msgctxt" >&6; }
10683 if test "x$ac_cv_lib_gettextpo_po_message_msgctxt" = x""yes; then :
10684
10685 $as_echo "#define HAVE_LIBGETTEXTPO 1" >>confdefs.h
10686
10687                       LIBGETTEXTPO="-lgettextpo"
10688
10689 fi
10690
10691     fi
10692     if test "x$LIBGETTEXTPO" = "x"; then :
10693   case "x$with_gettextpo" in
10694   x)   as_fn_append wine_warnings "|GetText ${notice_platform}development files not found (or too old). Internationalization won't be fully supported." ;;
10695   xno) ;;
10696   *)   as_fn_error $? "GetText ${notice_platform}development files not found (or too old). Internationalization won't be fully supported.
10697 This is an error since --with-gettextpo was requested." "$LINENO" 5  ;;
10698 esac
10699 fi
10700 fi
10701
10702 if test "x$with_esd" != xno
10703 then
10704     save_CFLAGS="$CFLAGS"
10705     # Extract the first word of "esd-config", so it can be a program name with args.
10706 set dummy esd-config; ac_word=$2
10707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10708 $as_echo_n "checking for $ac_word... " >&6; }
10709 if test "${ac_cv_path_ESDCONFIG+set}" = set; then :
10710   $as_echo_n "(cached) " >&6
10711 else
10712   case $ESDCONFIG in
10713   [\\/]* | ?:[\\/]*)
10714   ac_cv_path_ESDCONFIG="$ESDCONFIG" # Let the user override the test with a path.
10715   ;;
10716   *)
10717   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10718 for as_dir in $PATH
10719 do
10720   IFS=$as_save_IFS
10721   test -z "$as_dir" && as_dir=.
10722     for ac_exec_ext in '' $ac_executable_extensions; do
10723   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10724     ac_cv_path_ESDCONFIG="$as_dir/$ac_word$ac_exec_ext"
10725     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10726     break 2
10727   fi
10728 done
10729   done
10730 IFS=$as_save_IFS
10731
10732   test -z "$ac_cv_path_ESDCONFIG" && ac_cv_path_ESDCONFIG="no"
10733   ;;
10734 esac
10735 fi
10736 ESDCONFIG=$ac_cv_path_ESDCONFIG
10737 if test -n "$ESDCONFIG"; then
10738   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ESDCONFIG" >&5
10739 $as_echo "$ESDCONFIG" >&6; }
10740 else
10741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10742 $as_echo "no" >&6; }
10743 fi
10744
10745
10746     if test "x$ESDCONFIG" != "xno"
10747     then
10748         ac_esd_incl=""
10749         for i in `$ESDCONFIG --cflags`
10750         do
10751             case "$i" in
10752                 -I*) ac_esd_incl="$ac_esd_incl $i";;
10753             esac
10754         done
10755         ac_esd_libs=`$ESDCONFIG --libs`
10756         CFLAGS="$CFLAGS $ac_esd_incl"
10757     fi
10758     ac_esd_libs=${ac_esd_libs:-"-lesd"}
10759     ac_fn_c_check_header_mongrel "$LINENO" "esd.h" "ac_cv_header_esd_h" "$ac_includes_default"
10760 if test "x$ac_cv_header_esd_h" = x""yes; then :
10761   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for esd_open_sound in -lesd" >&5
10762 $as_echo_n "checking for esd_open_sound in -lesd... " >&6; }
10763 if test "${ac_cv_lib_esd_esd_open_sound+set}" = set; then :
10764   $as_echo_n "(cached) " >&6
10765 else
10766   ac_check_lib_save_LIBS=$LIBS
10767 LIBS="-lesd $ac_esd_libs $LIBS"
10768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10769 /* end confdefs.h.  */
10770
10771 /* Override any GCC internal prototype to avoid an error.
10772    Use char because int might match the return type of a GCC
10773    builtin and then its argument prototype would still apply.  */
10774 #ifdef __cplusplus
10775 extern "C"
10776 #endif
10777 char esd_open_sound ();
10778 int
10779 main ()
10780 {
10781 return esd_open_sound ();
10782   ;
10783   return 0;
10784 }
10785 _ACEOF
10786 if ac_fn_c_try_link "$LINENO"; then :
10787   ac_cv_lib_esd_esd_open_sound=yes
10788 else
10789   ac_cv_lib_esd_esd_open_sound=no
10790 fi
10791 rm -f core conftest.err conftest.$ac_objext \
10792     conftest$ac_exeext conftest.$ac_ext
10793 LIBS=$ac_check_lib_save_LIBS
10794 fi
10795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_esd_esd_open_sound" >&5
10796 $as_echo "$ac_cv_lib_esd_esd_open_sound" >&6; }
10797 if test "x$ac_cv_lib_esd_esd_open_sound" = x""yes; then :
10798   ESDINCL="$ac_esd_incl"
10799
10800              ESDLIBS="$ac_esd_libs"
10801
10802
10803 $as_echo "#define HAVE_ESD 1" >>confdefs.h
10804
10805 fi
10806
10807 fi
10808
10809
10810     CFLAGS="$save_CFLAGS"
10811 fi
10812
10813 if test "x$with_gstreamer" != "xno"
10814 then
10815     ac_save_CPPFLAGS="$CPPFLAGS"
10816     if test "$PKG_CONFIG" != "false"; then
10817         ac_gst_incl=""
10818         for i in `$PKG_CONFIG --cflags gstreamer-app-0.10 2>/dev/null`
10819         do
10820             case "$i" in
10821                 -I*) ac_gst_incl="$ac_gst_incl $i";;
10822             esac
10823         done
10824         ac_gst_libs="`$PKG_CONFIG --libs gstreamer-app-0.10 2>/dev/null`"
10825         CPPFLAGS="$CPPFLAGS $ac_gst_incl"
10826         ac_fn_c_check_header_mongrel "$LINENO" "gst/gstpad.h" "ac_cv_header_gst_gstpad_h" "$ac_includes_default"
10827 if test "x$ac_cv_header_gst_gstpad_h" = x""yes; then :
10828   ac_fn_c_check_header_mongrel "$LINENO" "gst/app/gstappsink.h" "ac_cv_header_gst_app_gstappsink_h" "$ac_includes_default"
10829 if test "x$ac_cv_header_gst_app_gstappsink_h" = x""yes; then :
10830   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_pad_get_caps_reffed in -lgstreamer-0.10" >&5
10831 $as_echo_n "checking for gst_pad_get_caps_reffed in -lgstreamer-0.10... " >&6; }
10832 if test "${ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed+set}" = set; then :
10833   $as_echo_n "(cached) " >&6
10834 else
10835   ac_check_lib_save_LIBS=$LIBS
10836 LIBS="-lgstreamer-0.10  $LIBS"
10837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10838 /* end confdefs.h.  */
10839
10840 /* Override any GCC internal prototype to avoid an error.
10841    Use char because int might match the return type of a GCC
10842    builtin and then its argument prototype would still apply.  */
10843 #ifdef __cplusplus
10844 extern "C"
10845 #endif
10846 char gst_pad_get_caps_reffed ();
10847 int
10848 main ()
10849 {
10850 return gst_pad_get_caps_reffed ();
10851   ;
10852   return 0;
10853 }
10854 _ACEOF
10855 if ac_fn_c_try_link "$LINENO"; then :
10856   ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=yes
10857 else
10858   ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=no
10859 fi
10860 rm -f core conftest.err conftest.$ac_objext \
10861     conftest$ac_exeext conftest.$ac_ext
10862 LIBS=$ac_check_lib_save_LIBS
10863 fi
10864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&5
10865 $as_echo "$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&6; }
10866 if test "x$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" = x""yes; then :
10867   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_app_buffer_new in -lgstapp-0.10" >&5
10868 $as_echo_n "checking for gst_app_buffer_new in -lgstapp-0.10... " >&6; }
10869 if test "${ac_cv_lib_gstapp_0_10_gst_app_buffer_new+set}" = set; then :
10870   $as_echo_n "(cached) " >&6
10871 else
10872   ac_check_lib_save_LIBS=$LIBS
10873 LIBS="-lgstapp-0.10 $ac_gst_libs $LIBS"
10874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10875 /* end confdefs.h.  */
10876
10877 /* Override any GCC internal prototype to avoid an error.
10878    Use char because int might match the return type of a GCC
10879    builtin and then its argument prototype would still apply.  */
10880 #ifdef __cplusplus
10881 extern "C"
10882 #endif
10883 char gst_app_buffer_new ();
10884 int
10885 main ()
10886 {
10887 return gst_app_buffer_new ();
10888   ;
10889   return 0;
10890 }
10891 _ACEOF
10892 if ac_fn_c_try_link "$LINENO"; then :
10893   ac_cv_lib_gstapp_0_10_gst_app_buffer_new=yes
10894 else
10895   ac_cv_lib_gstapp_0_10_gst_app_buffer_new=no
10896 fi
10897 rm -f core conftest.err conftest.$ac_objext \
10898     conftest$ac_exeext conftest.$ac_ext
10899 LIBS=$ac_check_lib_save_LIBS
10900 fi
10901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&5
10902 $as_echo "$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&6; }
10903 if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = x""yes; then :
10904   GSTREAMER_LIBS="$ac_gst_libs"
10905
10906                      GSTREAMER_INCL="$ac_gst_incl"
10907
10908 fi
10909
10910 fi
10911
10912 fi
10913
10914
10915 fi
10916
10917
10918     fi
10919     CPPFLAGS="$ac_save_CPPFLAGS"
10920 fi
10921 if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" != xyes -a "x$ac_cv_header_QuickTime_ImageCompression_h" != xyes; then :
10922   case "x$with_gstreamer" in
10923   x)   as_fn_append wine_notices "|gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled" ;;
10924   xno) ;;
10925   *)   as_fn_error $? "gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled
10926 This is an error since --with-gstreamer was requested." "$LINENO" 5  ;;
10927 esac
10928 fi
10929 test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = xyes || enable_winegstreamer=${enable_winegstreamer:-no}
10930
10931 ALSALIBS=""
10932
10933 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
10934 then
10935     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_hw_params_get_access_mask in -lasound" >&5
10936 $as_echo_n "checking for snd_pcm_hw_params_get_access_mask in -lasound... " >&6; }
10937 if test "${ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask+set}" = set; then :
10938   $as_echo_n "(cached) " >&6
10939 else
10940   ac_check_lib_save_LIBS=$LIBS
10941 LIBS="-lasound  $LIBS"
10942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10943 /* end confdefs.h.  */
10944
10945 /* Override any GCC internal prototype to avoid an error.
10946    Use char because int might match the return type of a GCC
10947    builtin and then its argument prototype would still apply.  */
10948 #ifdef __cplusplus
10949 extern "C"
10950 #endif
10951 char snd_pcm_hw_params_get_access_mask ();
10952 int
10953 main ()
10954 {
10955 return snd_pcm_hw_params_get_access_mask ();
10956   ;
10957   return 0;
10958 }
10959 _ACEOF
10960 if ac_fn_c_try_link "$LINENO"; then :
10961   ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=yes
10962 else
10963   ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=no
10964 fi
10965 rm -f core conftest.err conftest.$ac_objext \
10966     conftest$ac_exeext conftest.$ac_ext
10967 LIBS=$ac_check_lib_save_LIBS
10968 fi
10969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&5
10970 $as_echo "$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&6; }
10971 if test "x$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" = x""yes; then :
10972   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10973 /* end confdefs.h.  */
10974 #ifdef HAVE_ALSA_ASOUNDLIB_H
10975 #include <alsa/asoundlib.h>
10976 #elif defined(HAVE_SYS_ASOUNDLIB_H)
10977 #include <sys/asoundlib.h>
10978 #endif
10979 int
10980 main ()
10981 {
10982 int ret = snd_pcm_hw_params_get_access_mask(NULL, NULL)
10983   ;
10984   return 0;
10985 }
10986 _ACEOF
10987 if ac_fn_c_try_compile "$LINENO"; then :
10988
10989 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
10990
10991                          ALSALIBS="-lasound"
10992 fi
10993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10994 fi
10995
10996 fi
10997
10998
10999 if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes"
11000 then
11001     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcapi20" >&5
11002 $as_echo_n "checking for -lcapi20... " >&6; }
11003 if test "${ac_cv_lib_soname_capi20+set}" = set; then :
11004   $as_echo_n "(cached) " >&6
11005 else
11006   ac_check_soname_save_LIBS=$LIBS
11007 LIBS="-lcapi20  $LIBS"
11008   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11009 /* end confdefs.h.  */
11010
11011 /* Override any GCC internal prototype to avoid an error.
11012    Use char because int might match the return type of a GCC
11013    builtin and then its argument prototype would still apply.  */
11014 #ifdef __cplusplus
11015 extern "C"
11016 #endif
11017 char capi20_register ();
11018 int
11019 main ()
11020 {
11021 return capi20_register ();
11022   ;
11023   return 0;
11024 }
11025 _ACEOF
11026 if ac_fn_c_try_link "$LINENO"; then :
11027   case "$LIBEXT" in
11028     dll) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest.exe | grep "capi20" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11029     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'` ;;
11030     *) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcapi20\\.$LIBEXT" | sed -e "s/^.*\(libcapi20\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'` ;;
11031   esac
11032 fi
11033 rm -f core conftest.err conftest.$ac_objext \
11034     conftest$ac_exeext conftest.$ac_ext
11035   LIBS=$ac_check_soname_save_LIBS
11036 fi
11037 if test "x$ac_cv_lib_soname_capi20" = "x"; then :
11038   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11039 $as_echo "not found" >&6; }
11040
11041 else
11042   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_capi20" >&5
11043 $as_echo "$ac_cv_lib_soname_capi20" >&6; }
11044
11045 cat >>confdefs.h <<_ACEOF
11046 #define SONAME_LIBCAPI20 "$ac_cv_lib_soname_capi20"
11047 _ACEOF
11048
11049
11050 fi
11051 fi
11052 if test "x$ac_cv_lib_soname_capi20" = "x"; then :
11053   case "x$with_capi" in
11054   x)   as_fn_append wine_notices "|libcapi20 ${notice_platform}development files not found, ISDN won't be supported." ;;
11055   xno) ;;
11056   *)   as_fn_error $? "libcapi20 ${notice_platform}development files not found, ISDN won't be supported.
11057 This is an error since --with-capi was requested." "$LINENO" 5  ;;
11058 esac
11059 fi
11060
11061 CUPSINCL=""
11062
11063 if test "x$with_cups" != "xno"
11064 then
11065     ac_save_CPPFLAGS="$CPPFLAGS"
11066     ac_cups_cflags=`cups-config --cflags 2>/dev/null`
11067     ac_cups_libs=`cups-config --ldflags 2>/dev/null`
11068     CPPFLAGS="$CPPFLAGS $ac_cups_cflags"
11069     for ac_header in cups/cups.h
11070 do :
11071   ac_fn_c_check_header_mongrel "$LINENO" "cups/cups.h" "ac_cv_header_cups_cups_h" "$ac_includes_default"
11072 if test "x$ac_cv_header_cups_cups_h" = x""yes; then :
11073   cat >>confdefs.h <<_ACEOF
11074 #define HAVE_CUPS_CUPS_H 1
11075 _ACEOF
11076  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcups" >&5
11077 $as_echo_n "checking for -lcups... " >&6; }
11078 if test "${ac_cv_lib_soname_cups+set}" = set; then :
11079   $as_echo_n "(cached) " >&6
11080 else
11081   ac_check_soname_save_LIBS=$LIBS
11082 LIBS="-lcups $ac_cups_libs $LIBS"
11083   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11084 /* end confdefs.h.  */
11085
11086 /* Override any GCC internal prototype to avoid an error.
11087    Use char because int might match the return type of a GCC
11088    builtin and then its argument prototype would still apply.  */
11089 #ifdef __cplusplus
11090 extern "C"
11091 #endif
11092 char cupsGetDefault ();
11093 int
11094 main ()
11095 {
11096 return cupsGetDefault ();
11097   ;
11098   return 0;
11099 }
11100 _ACEOF
11101 if ac_fn_c_try_link "$LINENO"; then :
11102   case "$LIBEXT" in
11103     dll) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest.exe | grep "cups" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11104     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'` ;;
11105     *) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcups\\.$LIBEXT" | sed -e "s/^.*\(libcups\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
11106   esac
11107 fi
11108 rm -f core conftest.err conftest.$ac_objext \
11109     conftest$ac_exeext conftest.$ac_ext
11110   LIBS=$ac_check_soname_save_LIBS
11111 fi
11112 if test "x$ac_cv_lib_soname_cups" = "x"; then :
11113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11114 $as_echo "not found" >&6; }
11115
11116 else
11117   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_cups" >&5
11118 $as_echo "$ac_cv_lib_soname_cups" >&6; }
11119
11120 cat >>confdefs.h <<_ACEOF
11121 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
11122 _ACEOF
11123
11124        CUPSINCL="$ac_cups_cflags"
11125 fi
11126 fi
11127
11128 done
11129
11130     CPPFLAGS="$ac_save_CPPFLAGS"
11131 fi
11132 if test "x$ac_cv_lib_soname_cups" = "x"; then :
11133   case "x$with_cups" in
11134   x)   as_fn_append wine_notices "|libcups ${notice_platform}development files not found, CUPS won't be supported." ;;
11135   xno) ;;
11136   *)   as_fn_error $? "libcups ${notice_platform}development files not found, CUPS won't be supported.
11137 This is an error since --with-cups was requested." "$LINENO" 5  ;;
11138 esac
11139 fi
11140
11141 if test "$ac_cv_header_jack_jack_h" = "yes"
11142 then
11143     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ljack" >&5
11144 $as_echo_n "checking for -ljack... " >&6; }
11145 if test "${ac_cv_lib_soname_jack+set}" = set; then :
11146   $as_echo_n "(cached) " >&6
11147 else
11148   ac_check_soname_save_LIBS=$LIBS
11149 LIBS="-ljack  $LIBS"
11150   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11151 /* end confdefs.h.  */
11152
11153 /* Override any GCC internal prototype to avoid an error.
11154    Use char because int might match the return type of a GCC
11155    builtin and then its argument prototype would still apply.  */
11156 #ifdef __cplusplus
11157 extern "C"
11158 #endif
11159 char jack_client_new ();
11160 int
11161 main ()
11162 {
11163 return jack_client_new ();
11164   ;
11165   return 0;
11166 }
11167 _ACEOF
11168 if ac_fn_c_try_link "$LINENO"; then :
11169   case "$LIBEXT" in
11170     dll) ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest.exe | grep "jack" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11171     dylib) ac_cv_lib_soname_jack=`otool -L conftest$ac_exeext | grep "libjack-*[0-9.]*\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libjack-*[0-9.]*\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
11172     *) ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest$ac_exeext | grep "libjack-*[0-9.]*\\.$LIBEXT" | sed -e "s/^.*\(libjack-*[0-9.]*\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'` ;;
11173   esac
11174 fi
11175 rm -f core conftest.err conftest.$ac_objext \
11176     conftest$ac_exeext conftest.$ac_ext
11177   LIBS=$ac_check_soname_save_LIBS
11178 fi
11179 if test "x$ac_cv_lib_soname_jack" = "x"; then :
11180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11181 $as_echo "not found" >&6; }
11182
11183 else
11184   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_jack" >&5
11185 $as_echo "$ac_cv_lib_soname_jack" >&6; }
11186
11187 cat >>confdefs.h <<_ACEOF
11188 #define SONAME_LIBJACK "$ac_cv_lib_soname_jack"
11189 _ACEOF
11190
11191
11192 fi
11193 fi
11194
11195 if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
11196 then
11197     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
11198 $as_echo_n "checking for -lfontconfig... " >&6; }
11199 if test "${ac_cv_lib_soname_fontconfig+set}" = set; then :
11200   $as_echo_n "(cached) " >&6
11201 else
11202   ac_check_soname_save_LIBS=$LIBS
11203 LIBS="-lfontconfig  $LIBS"
11204   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11205 /* end confdefs.h.  */
11206
11207 /* Override any GCC internal prototype to avoid an error.
11208    Use char because int might match the return type of a GCC
11209    builtin and then its argument prototype would still apply.  */
11210 #ifdef __cplusplus
11211 extern "C"
11212 #endif
11213 char FcInit ();
11214 int
11215 main ()
11216 {
11217 return FcInit ();
11218   ;
11219   return 0;
11220 }
11221 _ACEOF
11222 if ac_fn_c_try_link "$LINENO"; then :
11223   case "$LIBEXT" in
11224     dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11225     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'` ;;
11226     *) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'` ;;
11227   esac
11228 fi
11229 rm -f core conftest.err conftest.$ac_objext \
11230     conftest$ac_exeext conftest.$ac_ext
11231   LIBS=$ac_check_soname_save_LIBS
11232 fi
11233 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11234   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11235 $as_echo "not found" >&6; }
11236
11237 else
11238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
11239 $as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
11240
11241 cat >>confdefs.h <<_ACEOF
11242 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
11243 _ACEOF
11244
11245
11246 fi
11247 elif test -n "$X_CFLAGS" -a "x$with_fontconfig" != "xno"
11248 then
11249         ac_save_CPPFLAGS="$CPPFLAGS"
11250     CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11251     $as_unset ac_cv_header_fontconfig_fontconfig_h
11252     for ac_header in fontconfig/fontconfig.h
11253 do :
11254   ac_fn_c_check_header_mongrel "$LINENO" "fontconfig/fontconfig.h" "ac_cv_header_fontconfig_fontconfig_h" "$ac_includes_default"
11255 if test "x$ac_cv_header_fontconfig_fontconfig_h" = x""yes; then :
11256   cat >>confdefs.h <<_ACEOF
11257 #define HAVE_FONTCONFIG_FONTCONFIG_H 1
11258 _ACEOF
11259
11260 fi
11261
11262 done
11263
11264     CPPFLAGS="$ac_save_CPPFLAGS"
11265     if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
11266     then
11267         FONTCONFIGINCL="$X_CFLAGS"
11268
11269         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
11270 $as_echo_n "checking for -lfontconfig... " >&6; }
11271 if test "${ac_cv_lib_soname_fontconfig+set}" = set; then :
11272   $as_echo_n "(cached) " >&6
11273 else
11274   ac_check_soname_save_LIBS=$LIBS
11275 LIBS="-lfontconfig $X_LIBS $LIBS"
11276   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11277 /* end confdefs.h.  */
11278
11279 /* Override any GCC internal prototype to avoid an error.
11280    Use char because int might match the return type of a GCC
11281    builtin and then its argument prototype would still apply.  */
11282 #ifdef __cplusplus
11283 extern "C"
11284 #endif
11285 char FcInit ();
11286 int
11287 main ()
11288 {
11289 return FcInit ();
11290   ;
11291   return 0;
11292 }
11293 _ACEOF
11294 if ac_fn_c_try_link "$LINENO"; then :
11295   case "$LIBEXT" in
11296     dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11297     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'` ;;
11298     *) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'` ;;
11299   esac
11300 fi
11301 rm -f core conftest.err conftest.$ac_objext \
11302     conftest$ac_exeext conftest.$ac_ext
11303   LIBS=$ac_check_soname_save_LIBS
11304 fi
11305 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11306   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11307 $as_echo "not found" >&6; }
11308
11309 else
11310   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
11311 $as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
11312
11313 cat >>confdefs.h <<_ACEOF
11314 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
11315 _ACEOF
11316
11317
11318 fi
11319     fi
11320 fi
11321 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11322   case "x$with_fontconfig" in
11323   x)   as_fn_append wine_notices "|fontconfig ${notice_platform}development files not found, fontconfig won't be supported." ;;
11324   xno) ;;
11325   *)   as_fn_error $? "fontconfig ${notice_platform}development files not found, fontconfig won't be supported.
11326 This is an error since --with-fontconfig was requested." "$LINENO" 5  ;;
11327 esac
11328 fi
11329
11330 if test "$ac_cv_header_openssl_err_h" = "yes" -a "$ac_cv_header_openssl_ssl_h" = "yes"
11331 then
11332     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lssl" >&5
11333 $as_echo_n "checking for -lssl... " >&6; }
11334 if test "${ac_cv_lib_soname_ssl+set}" = set; then :
11335   $as_echo_n "(cached) " >&6
11336 else
11337   ac_check_soname_save_LIBS=$LIBS
11338 LIBS="-lssl  $LIBS"
11339   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11340 /* end confdefs.h.  */
11341
11342 /* Override any GCC internal prototype to avoid an error.
11343    Use char because int might match the return type of a GCC
11344    builtin and then its argument prototype would still apply.  */
11345 #ifdef __cplusplus
11346 extern "C"
11347 #endif
11348 char SSL_library_init ();
11349 int
11350 main ()
11351 {
11352 return SSL_library_init ();
11353   ;
11354   return 0;
11355 }
11356 _ACEOF
11357 if ac_fn_c_try_link "$LINENO"; then :
11358   case "$LIBEXT" in
11359     dll) ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest.exe | grep "ssl" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11360     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'` ;;
11361     *) ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep "libssl\\.$LIBEXT" | sed -e "s/^.*\(libssl\.$LIBEXT[^     ]*\).*$/\1/"';2,$d'` ;;
11362   esac
11363 fi
11364 rm -f core conftest.err conftest.$ac_objext \
11365     conftest$ac_exeext conftest.$ac_ext
11366   LIBS=$ac_check_soname_save_LIBS
11367 fi
11368 if test "x$ac_cv_lib_soname_ssl" = "x"; then :
11369   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11370 $as_echo "not found" >&6; }
11371
11372 else
11373   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ssl" >&5
11374 $as_echo "$ac_cv_lib_soname_ssl" >&6; }
11375
11376 cat >>confdefs.h <<_ACEOF
11377 #define SONAME_LIBSSL "$ac_cv_lib_soname_ssl"
11378 _ACEOF
11379
11380
11381 fi
11382     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcrypto" >&5
11383 $as_echo_n "checking for -lcrypto... " >&6; }
11384 if test "${ac_cv_lib_soname_crypto+set}" = set; then :
11385   $as_echo_n "(cached) " >&6
11386 else
11387   ac_check_soname_save_LIBS=$LIBS
11388 LIBS="-lcrypto  $LIBS"
11389   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11390 /* end confdefs.h.  */
11391
11392 /* Override any GCC internal prototype to avoid an error.
11393    Use char because int might match the return type of a GCC
11394    builtin and then its argument prototype would still apply.  */
11395 #ifdef __cplusplus
11396 extern "C"
11397 #endif
11398 char BIO_new_socket ();
11399 int
11400 main ()
11401 {
11402 return BIO_new_socket ();
11403   ;
11404   return 0;
11405 }
11406 _ACEOF
11407 if ac_fn_c_try_link "$LINENO"; then :
11408   case "$LIBEXT" in
11409     dll) ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest.exe | grep "crypto" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11410     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'` ;;
11411     *) ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcrypto\\.$LIBEXT" | sed -e "s/^.*\(libcrypto\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'` ;;
11412   esac
11413 fi
11414 rm -f core conftest.err conftest.$ac_objext \
11415     conftest$ac_exeext conftest.$ac_ext
11416   LIBS=$ac_check_soname_save_LIBS
11417 fi
11418 if test "x$ac_cv_lib_soname_crypto" = "x"; then :
11419   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11420 $as_echo "not found" >&6; }
11421
11422 else
11423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_crypto" >&5
11424 $as_echo "$ac_cv_lib_soname_crypto" >&6; }
11425
11426 cat >>confdefs.h <<_ACEOF
11427 #define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto"
11428 _ACEOF
11429
11430
11431 fi
11432 fi
11433 if test "x$ac_cv_lib_soname_ssl" = "x" -o "x$ac_cv_lib_soname_crypto" = "x"; then :
11434   case "x$with_openssl" in
11435   x)   as_fn_append wine_warnings "|OpenSSL ${notice_platform}development files not found, SSL won't be supported." ;;
11436   xno) ;;
11437   *)   as_fn_error $? "OpenSSL ${notice_platform}development files not found, SSL won't be supported.
11438 This is an error since --with-openssl was requested." "$LINENO" 5  ;;
11439 esac
11440 fi
11441
11442 if test "$ac_cv_header_gsm_h" = "yes" -o "$ac_cv_header_gsm_gsm_h" = "yes"
11443 then
11444     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgsm" >&5
11445 $as_echo_n "checking for -lgsm... " >&6; }
11446 if test "${ac_cv_lib_soname_gsm+set}" = set; then :
11447   $as_echo_n "(cached) " >&6
11448 else
11449   ac_check_soname_save_LIBS=$LIBS
11450 LIBS="-lgsm  $LIBS"
11451   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11452 /* end confdefs.h.  */
11453
11454 /* Override any GCC internal prototype to avoid an error.
11455    Use char because int might match the return type of a GCC
11456    builtin and then its argument prototype would still apply.  */
11457 #ifdef __cplusplus
11458 extern "C"
11459 #endif
11460 char gsm_create ();
11461 int
11462 main ()
11463 {
11464 return gsm_create ();
11465   ;
11466   return 0;
11467 }
11468 _ACEOF
11469 if ac_fn_c_try_link "$LINENO"; then :
11470   case "$LIBEXT" in
11471     dll) ac_cv_lib_soname_gsm=`$ac_cv_path_LDD conftest.exe | grep "gsm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11472     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'` ;;
11473     *) ac_cv_lib_soname_gsm=`$ac_cv_path_LDD conftest$ac_exeext | grep "libgsm\\.$LIBEXT" | sed -e "s/^.*\(libgsm\.$LIBEXT[^     ]*\).*$/\1/"';2,$d'` ;;
11474   esac
11475 fi
11476 rm -f core conftest.err conftest.$ac_objext \
11477     conftest$ac_exeext conftest.$ac_ext
11478   LIBS=$ac_check_soname_save_LIBS
11479 fi
11480 if test "x$ac_cv_lib_soname_gsm" = "x"; then :
11481   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11482 $as_echo "not found" >&6; }
11483
11484 else
11485   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gsm" >&5
11486 $as_echo "$ac_cv_lib_soname_gsm" >&6; }
11487
11488 cat >>confdefs.h <<_ACEOF
11489 #define SONAME_LIBGSM "$ac_cv_lib_soname_gsm"
11490 _ACEOF
11491
11492
11493 fi
11494 fi
11495 if test "x$ac_cv_lib_soname_gsm" = "x"; then :
11496   case "x$with_gsm" in
11497   x)   as_fn_append wine_notices "|libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported." ;;
11498   xno) ;;
11499   *)   as_fn_error $? "libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported.
11500 This is an error since --with-gsm was requested." "$LINENO" 5  ;;
11501 esac
11502 fi
11503
11504 if test "$ac_cv_header_jpeglib_h" = "yes"
11505 then
11506     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ljpeg" >&5
11507 $as_echo_n "checking for -ljpeg... " >&6; }
11508 if test "${ac_cv_lib_soname_jpeg+set}" = set; then :
11509   $as_echo_n "(cached) " >&6
11510 else
11511   ac_check_soname_save_LIBS=$LIBS
11512 LIBS="-ljpeg  $LIBS"
11513   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11514 /* end confdefs.h.  */
11515
11516 /* Override any GCC internal prototype to avoid an error.
11517    Use char because int might match the return type of a GCC
11518    builtin and then its argument prototype would still apply.  */
11519 #ifdef __cplusplus
11520 extern "C"
11521 #endif
11522 char jpeg_start_decompress ();
11523 int
11524 main ()
11525 {
11526 return jpeg_start_decompress ();
11527   ;
11528   return 0;
11529 }
11530 _ACEOF
11531 if ac_fn_c_try_link "$LINENO"; then :
11532   case "$LIBEXT" in
11533     dll) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest.exe | grep "jpeg" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11534     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'` ;;
11535     *) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest$ac_exeext | grep "libjpeg\\.$LIBEXT" | sed -e "s/^.*\(libjpeg\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
11536   esac
11537 fi
11538 rm -f core conftest.err conftest.$ac_objext \
11539     conftest$ac_exeext conftest.$ac_ext
11540   LIBS=$ac_check_soname_save_LIBS
11541 fi
11542 if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
11543   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11544 $as_echo "not found" >&6; }
11545
11546 else
11547   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_jpeg" >&5
11548 $as_echo "$ac_cv_lib_soname_jpeg" >&6; }
11549
11550 cat >>confdefs.h <<_ACEOF
11551 #define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg"
11552 _ACEOF
11553
11554
11555 fi
11556 fi
11557 if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
11558   case "x$with_jpeg" in
11559   x)   as_fn_append wine_warnings "|libjpeg ${notice_platform}development files not found, JPEG won't be supported." ;;
11560   xno) ;;
11561   *)   as_fn_error $? "libjpeg ${notice_platform}development files not found, JPEG won't be supported.
11562 This is an error since --with-jpeg was requested." "$LINENO" 5  ;;
11563 esac
11564 fi
11565
11566 if test "$ac_cv_header_png_h" = "yes"
11567 then
11568     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
11569 $as_echo_n "checking for -lpng... " >&6; }
11570 if test "${ac_cv_lib_soname_png+set}" = set; then :
11571   $as_echo_n "(cached) " >&6
11572 else
11573   ac_check_soname_save_LIBS=$LIBS
11574 LIBS="-lpng -lm -lz $LIBS"
11575   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11576 /* end confdefs.h.  */
11577
11578 /* Override any GCC internal prototype to avoid an error.
11579    Use char because int might match the return type of a GCC
11580    builtin and then its argument prototype would still apply.  */
11581 #ifdef __cplusplus
11582 extern "C"
11583 #endif
11584 char png_create_read_struct ();
11585 int
11586 main ()
11587 {
11588 return png_create_read_struct ();
11589   ;
11590   return 0;
11591 }
11592 _ACEOF
11593 if ac_fn_c_try_link "$LINENO"; then :
11594   case "$LIBEXT" in
11595     dll) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest.exe | grep "png" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11596     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'` ;;
11597     *) 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'` ;;
11598   esac
11599 fi
11600 rm -f core conftest.err conftest.$ac_objext \
11601     conftest$ac_exeext conftest.$ac_ext
11602   LIBS=$ac_check_soname_save_LIBS
11603 fi
11604 if test "x$ac_cv_lib_soname_png" = "x"; then :
11605   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11606 $as_echo "not found" >&6; }
11607
11608 else
11609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
11610 $as_echo "$ac_cv_lib_soname_png" >&6; }
11611
11612 cat >>confdefs.h <<_ACEOF
11613 #define SONAME_LIBPNG "$ac_cv_lib_soname_png"
11614 _ACEOF
11615
11616
11617 fi
11618     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5
11619 $as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; }
11620 if test "${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+set}" = set; then :
11621   $as_echo_n "(cached) " >&6
11622 else
11623   ac_check_lib_save_LIBS=$LIBS
11624 LIBS="-lpng -lm -lz $LIBS"
11625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11626 /* end confdefs.h.  */
11627
11628 /* Override any GCC internal prototype to avoid an error.
11629    Use char because int might match the return type of a GCC
11630    builtin and then its argument prototype would still apply.  */
11631 #ifdef __cplusplus
11632 extern "C"
11633 #endif
11634 char png_set_expand_gray_1_2_4_to_8 ();
11635 int
11636 main ()
11637 {
11638 return png_set_expand_gray_1_2_4_to_8 ();
11639   ;
11640   return 0;
11641 }
11642 _ACEOF
11643 if ac_fn_c_try_link "$LINENO"; then :
11644   ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes
11645 else
11646   ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no
11647 fi
11648 rm -f core conftest.err conftest.$ac_objext \
11649     conftest$ac_exeext conftest.$ac_ext
11650 LIBS=$ac_check_lib_save_LIBS
11651 fi
11652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5
11653 $as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; }
11654 if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = x""yes; then :
11655
11656 $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
11657
11658
11659 fi
11660
11661 elif test -n "$X_CFLAGS" -a "x$with_png" != "xno"
11662 then
11663         ac_save_CPPFLAGS="$CPPFLAGS"
11664     CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11665     $as_unset ac_cv_header_png_h
11666     for ac_header in png.h
11667 do :
11668   ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
11669 if test "x$ac_cv_header_png_h" = x""yes; then :
11670   cat >>confdefs.h <<_ACEOF
11671 #define HAVE_PNG_H 1
11672 _ACEOF
11673
11674 fi
11675
11676 done
11677
11678     CPPFLAGS="$ac_save_CPPFLAGS"
11679     if test "$ac_cv_header_png_h" = "yes"
11680     then
11681         PNGINCL="$X_CFLAGS"
11682
11683         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
11684 $as_echo_n "checking for -lpng... " >&6; }
11685 if test "${ac_cv_lib_soname_png+set}" = set; then :
11686   $as_echo_n "(cached) " >&6
11687 else
11688   ac_check_soname_save_LIBS=$LIBS
11689 LIBS="-lpng $X_LIBS -lm -lz $LIBS"
11690   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11691 /* end confdefs.h.  */
11692
11693 /* Override any GCC internal prototype to avoid an error.
11694    Use char because int might match the return type of a GCC
11695    builtin and then its argument prototype would still apply.  */
11696 #ifdef __cplusplus
11697 extern "C"
11698 #endif
11699 char png_create_read_struct ();
11700 int
11701 main ()
11702 {
11703 return png_create_read_struct ();
11704   ;
11705   return 0;
11706 }
11707 _ACEOF
11708 if ac_fn_c_try_link "$LINENO"; then :
11709   case "$LIBEXT" in
11710     dll) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest.exe | grep "png" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11711     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'` ;;
11712     *) 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'` ;;
11713   esac
11714 fi
11715 rm -f core conftest.err conftest.$ac_objext \
11716     conftest$ac_exeext conftest.$ac_ext
11717   LIBS=$ac_check_soname_save_LIBS
11718 fi
11719 if test "x$ac_cv_lib_soname_png" = "x"; then :
11720   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11721 $as_echo "not found" >&6; }
11722
11723 else
11724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
11725 $as_echo "$ac_cv_lib_soname_png" >&6; }
11726
11727 cat >>confdefs.h <<_ACEOF
11728 #define SONAME_LIBPNG "$ac_cv_lib_soname_png"
11729 _ACEOF
11730
11731
11732 fi
11733         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5
11734 $as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; }
11735 if test "${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+set}" = set; then :
11736   $as_echo_n "(cached) " >&6
11737 else
11738   ac_check_lib_save_LIBS=$LIBS
11739 LIBS="-lpng $X_LIBS -lm -lz $LIBS"
11740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11741 /* end confdefs.h.  */
11742
11743 /* Override any GCC internal prototype to avoid an error.
11744    Use char because int might match the return type of a GCC
11745    builtin and then its argument prototype would still apply.  */
11746 #ifdef __cplusplus
11747 extern "C"
11748 #endif
11749 char png_set_expand_gray_1_2_4_to_8 ();
11750 int
11751 main ()
11752 {
11753 return png_set_expand_gray_1_2_4_to_8 ();
11754   ;
11755   return 0;
11756 }
11757 _ACEOF
11758 if ac_fn_c_try_link "$LINENO"; then :
11759   ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes
11760 else
11761   ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no
11762 fi
11763 rm -f core conftest.err conftest.$ac_objext \
11764     conftest$ac_exeext conftest.$ac_ext
11765 LIBS=$ac_check_lib_save_LIBS
11766 fi
11767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5
11768 $as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; }
11769 if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = x""yes; then :
11770   $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
11771
11772 fi
11773
11774     fi
11775 fi
11776 if test "x$ac_cv_lib_soname_png" = "x"; then :
11777   case "x$with_png" in
11778   x)   as_fn_append wine_warnings "|libpng ${notice_platform}development files not found, PNG won't be supported." ;;
11779   xno) ;;
11780   *)   as_fn_error $? "libpng ${notice_platform}development files not found, PNG won't be supported.
11781 This is an error since --with-png was requested." "$LINENO" 5  ;;
11782 esac
11783 fi
11784
11785 if test "$ac_cv_header_tiffio_h" = "yes"
11786 then
11787     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ltiff" >&5
11788 $as_echo_n "checking for -ltiff... " >&6; }
11789 if test "${ac_cv_lib_soname_tiff+set}" = set; then :
11790   $as_echo_n "(cached) " >&6
11791 else
11792   ac_check_soname_save_LIBS=$LIBS
11793 LIBS="-ltiff  $LIBS"
11794   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11795 /* end confdefs.h.  */
11796
11797 /* Override any GCC internal prototype to avoid an error.
11798    Use char because int might match the return type of a GCC
11799    builtin and then its argument prototype would still apply.  */
11800 #ifdef __cplusplus
11801 extern "C"
11802 #endif
11803 char TIFFClientOpen ();
11804 int
11805 main ()
11806 {
11807 return TIFFClientOpen ();
11808   ;
11809   return 0;
11810 }
11811 _ACEOF
11812 if ac_fn_c_try_link "$LINENO"; then :
11813   case "$LIBEXT" in
11814     dll) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest.exe | grep "tiff" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11815     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'` ;;
11816     *) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest$ac_exeext | grep "libtiff\\.$LIBEXT" | sed -e "s/^.*\(libtiff\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
11817   esac
11818 fi
11819 rm -f core conftest.err conftest.$ac_objext \
11820     conftest$ac_exeext conftest.$ac_ext
11821   LIBS=$ac_check_soname_save_LIBS
11822 fi
11823 if test "x$ac_cv_lib_soname_tiff" = "x"; then :
11824   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11825 $as_echo "not found" >&6; }
11826
11827 else
11828   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_tiff" >&5
11829 $as_echo "$ac_cv_lib_soname_tiff" >&6; }
11830
11831 cat >>confdefs.h <<_ACEOF
11832 #define SONAME_LIBTIFF "$ac_cv_lib_soname_tiff"
11833 _ACEOF
11834
11835
11836 fi
11837 fi
11838 if test "x$ac_cv_lib_soname_tiff" = "x"; then :
11839   case "x$with_tiff" in
11840   x)   as_fn_append wine_notices "|libtiff ${notice_platform}development files not found, TIFF won't be supported." ;;
11841   xno) ;;
11842   *)   as_fn_error $? "libtiff ${notice_platform}development files not found, TIFF won't be supported.
11843 This is an error since --with-tiff was requested." "$LINENO" 5  ;;
11844 esac
11845 fi
11846
11847 if test "$ac_cv_header_mpg123_h" = "yes"
11848 then
11849     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpg123_feed in -lmpg123" >&5
11850 $as_echo_n "checking for mpg123_feed in -lmpg123... " >&6; }
11851 if test "${ac_cv_lib_mpg123_mpg123_feed+set}" = set; then :
11852   $as_echo_n "(cached) " >&6
11853 else
11854   ac_check_lib_save_LIBS=$LIBS
11855 LIBS="-lmpg123  $LIBS"
11856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11857 /* end confdefs.h.  */
11858
11859 /* Override any GCC internal prototype to avoid an error.
11860    Use char because int might match the return type of a GCC
11861    builtin and then its argument prototype would still apply.  */
11862 #ifdef __cplusplus
11863 extern "C"
11864 #endif
11865 char mpg123_feed ();
11866 int
11867 main ()
11868 {
11869 return mpg123_feed ();
11870   ;
11871   return 0;
11872 }
11873 _ACEOF
11874 if ac_fn_c_try_link "$LINENO"; then :
11875   ac_cv_lib_mpg123_mpg123_feed=yes
11876 else
11877   ac_cv_lib_mpg123_mpg123_feed=no
11878 fi
11879 rm -f core conftest.err conftest.$ac_objext \
11880     conftest$ac_exeext conftest.$ac_ext
11881 LIBS=$ac_check_lib_save_LIBS
11882 fi
11883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpg123_mpg123_feed" >&5
11884 $as_echo "$ac_cv_lib_mpg123_mpg123_feed" >&6; }
11885 if test "x$ac_cv_lib_mpg123_mpg123_feed" = x""yes; then :
11886   LIBMPG123="-lmpg123"
11887
11888 fi
11889
11890 fi
11891 if test "x$ac_cv_lib_mpg123_mpg123_feed" != xyes -a x"$ac_cv_header_CoreAudio_CoreAudio_h" != xyes; then :
11892   case "x$with_mpg123" in
11893   x)   as_fn_append wine_notices "|libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported." ;;
11894   xno) ;;
11895   *)   as_fn_error $? "libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported.
11896 This is an error since --with-mpg123 was requested." "$LINENO" 5  ;;
11897 esac
11898 fi
11899 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}
11900
11901 if test "$ac_cv_header_AL_al_h" = "yes"
11902 then
11903     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lopenal" >&5
11904 $as_echo_n "checking for -lopenal... " >&6; }
11905 if test "${ac_cv_lib_soname_openal+set}" = set; then :
11906   $as_echo_n "(cached) " >&6
11907 else
11908   ac_check_soname_save_LIBS=$LIBS
11909 LIBS="-lopenal  $LIBS"
11910   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11911 /* end confdefs.h.  */
11912
11913 /* Override any GCC internal prototype to avoid an error.
11914    Use char because int might match the return type of a GCC
11915    builtin and then its argument prototype would still apply.  */
11916 #ifdef __cplusplus
11917 extern "C"
11918 #endif
11919 char alGetSource3i ();
11920 int
11921 main ()
11922 {
11923 return alGetSource3i ();
11924   ;
11925   return 0;
11926 }
11927 _ACEOF
11928 if ac_fn_c_try_link "$LINENO"; then :
11929   case "$LIBEXT" in
11930     dll) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest.exe | grep "openal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11931     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'` ;;
11932     *) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest$ac_exeext | grep "libopenal\\.$LIBEXT" | sed -e "s/^.*\(libopenal\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'` ;;
11933   esac
11934 fi
11935 rm -f core conftest.err conftest.$ac_objext \
11936     conftest$ac_exeext conftest.$ac_ext
11937   LIBS=$ac_check_soname_save_LIBS
11938 fi
11939 if test "x$ac_cv_lib_soname_openal" = "x"; then :
11940   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11941 $as_echo "not found" >&6; }
11942
11943 else
11944   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_openal" >&5
11945 $as_echo "$ac_cv_lib_soname_openal" >&6; }
11946
11947 cat >>confdefs.h <<_ACEOF
11948 #define SONAME_LIBOPENAL "$ac_cv_lib_soname_openal"
11949 _ACEOF
11950
11951        LIBOPENAL="-lopenal"
11952
11953                       ac_cv_lib_openal=yes
11954
11955 cat >>confdefs.h <<_ACEOF
11956 #define HAVE_OPENAL 1
11957 _ACEOF
11958
11959 fi
11960 fi
11961 if test "x$ac_cv_lib_openal" != xyes; then :
11962   case "x$with_openal" in
11963   x)   as_fn_append wine_notices "|libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported." ;;
11964   xno) ;;
11965   *)   as_fn_error $? "libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported.
11966 This is an error since --with-openal was requested." "$LINENO" 5  ;;
11967 esac
11968 fi
11969 test "x$ac_cv_lib_openal" = xyes || enable_openal32=${enable_openal32:-no}
11970
11971 if test "$ac_cv_header_kstat_h" = "yes"
11972 then
11973     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
11974 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
11975 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
11976   $as_echo_n "(cached) " >&6
11977 else
11978   ac_check_lib_save_LIBS=$LIBS
11979 LIBS="-lkstat  $LIBS"
11980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11981 /* end confdefs.h.  */
11982
11983 /* Override any GCC internal prototype to avoid an error.
11984    Use char because int might match the return type of a GCC
11985    builtin and then its argument prototype would still apply.  */
11986 #ifdef __cplusplus
11987 extern "C"
11988 #endif
11989 char kstat_open ();
11990 int
11991 main ()
11992 {
11993 return kstat_open ();
11994   ;
11995   return 0;
11996 }
11997 _ACEOF
11998 if ac_fn_c_try_link "$LINENO"; then :
11999   ac_cv_lib_kstat_kstat_open=yes
12000 else
12001   ac_cv_lib_kstat_kstat_open=no
12002 fi
12003 rm -f core conftest.err conftest.$ac_objext \
12004     conftest$ac_exeext conftest.$ac_ext
12005 LIBS=$ac_check_lib_save_LIBS
12006 fi
12007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
12008 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
12009 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
12010
12011 $as_echo "#define HAVE_LIBKSTAT 1" >>confdefs.h
12012
12013                   LIBKSTAT="-lkstat"
12014
12015 fi
12016
12017 fi
12018
12019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lodbc" >&5
12020 $as_echo_n "checking for -lodbc... " >&6; }
12021 if test "${ac_cv_lib_soname_odbc+set}" = set; then :
12022   $as_echo_n "(cached) " >&6
12023 else
12024   ac_check_soname_save_LIBS=$LIBS
12025 LIBS="-lodbc  $LIBS"
12026   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12027 /* end confdefs.h.  */
12028
12029 /* Override any GCC internal prototype to avoid an error.
12030    Use char because int might match the return type of a GCC
12031    builtin and then its argument prototype would still apply.  */
12032 #ifdef __cplusplus
12033 extern "C"
12034 #endif
12035 char SQLConnect ();
12036 int
12037 main ()
12038 {
12039 return SQLConnect ();
12040   ;
12041   return 0;
12042 }
12043 _ACEOF
12044 if ac_fn_c_try_link "$LINENO"; then :
12045   case "$LIBEXT" in
12046     dll) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest.exe | grep "odbc" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12047     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'` ;;
12048     *) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest$ac_exeext | grep "libodbc\\.$LIBEXT" | sed -e "s/^.*\(libodbc\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
12049   esac
12050 fi
12051 rm -f core conftest.err conftest.$ac_objext \
12052     conftest$ac_exeext conftest.$ac_ext
12053   LIBS=$ac_check_soname_save_LIBS
12054 fi
12055 if test "x$ac_cv_lib_soname_odbc" = "x"; then :
12056   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12057 $as_echo "not found" >&6; }
12058        cat >>confdefs.h <<_ACEOF
12059 #define SONAME_LIBODBC "libodbc.$LIBEXT"
12060 _ACEOF
12061
12062 else
12063   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_odbc" >&5
12064 $as_echo "$ac_cv_lib_soname_odbc" >&6; }
12065
12066 cat >>confdefs.h <<_ACEOF
12067 #define SONAME_LIBODBC "$ac_cv_lib_soname_odbc"
12068 _ACEOF
12069
12070
12071 fi
12072
12073 if test "x$ALSALIBS$COREAUDIO$NASLIBS$ESDLIBS$ac_cv_lib_soname_jack" = "x" -a \
12074         "$ac_cv_header_sys_soundcard_h" != "yes" -a \
12075         "$ac_cv_header_machine_soundcard_h" != "yes" -a \
12076         "$ac_cv_header_soundcard_h" != "yes" -a \
12077         "x$with_alsa$with_coreaudio$with_nas$with_esd$with_jack$with_oss" != xnononononono
12078 then
12079     as_fn_append wine_warnings "|No sound system was found. Windows applications will be silent."
12080 fi
12081
12082
12083 EXTRACFLAGS=""
12084
12085 if test "x${GCC}" = "xyes"
12086 then
12087   EXTRACFLAGS="-Wall -pipe"
12088
12089     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc strength-reduce bug" >&5
12090 $as_echo_n "checking for gcc strength-reduce bug... " >&6; }
12091 if test "${ac_cv_c_gcc_strength_bug+set}" = set; then :
12092   $as_echo_n "(cached) " >&6
12093 else
12094   if test "$cross_compiling" = yes; then :
12095   ac_cv_c_gcc_strength_bug="yes"
12096 else
12097   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12098 /* end confdefs.h.  */
12099 int L[4] = {0,1,2,3};
12100 int
12101 main ()
12102 {
12103 static int Array[3];
12104   unsigned int B = 3;
12105   int i;
12106   for(i=0; i<B; i++) Array[i] = i - 3;
12107   for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
12108   L[i] = 4;
12109   return (Array[1] != -2 || L[2] != 3)
12110   ;
12111   return 0;
12112 }
12113 _ACEOF
12114 if ac_fn_c_try_run "$LINENO"; then :
12115   ac_cv_c_gcc_strength_bug="no"
12116 else
12117   ac_cv_c_gcc_strength_bug="yes"
12118 fi
12119 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12120   conftest.$ac_objext conftest.beam conftest.$ac_ext
12121 fi
12122
12123 fi
12124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gcc_strength_bug" >&5
12125 $as_echo "$ac_cv_c_gcc_strength_bug" >&6; }
12126   if test "$ac_cv_c_gcc_strength_bug" = "yes"
12127   then
12128     EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
12129   fi
12130
12131     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-builtin" >&5
12132 $as_echo_n "checking whether the compiler supports -fno-builtin... " >&6; }
12133 if test "${ac_cv_cflags__fno_builtin+set}" = set; then :
12134   $as_echo_n "(cached) " >&6
12135 else
12136   ac_wine_try_cflags_saved=$CFLAGS
12137 CFLAGS="$CFLAGS -fno-builtin"
12138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12139 /* end confdefs.h.  */
12140 int main(int argc, char **argv) { return 0; }
12141 _ACEOF
12142 if ac_fn_c_try_link "$LINENO"; then :
12143   ac_cv_cflags__fno_builtin=yes
12144 else
12145   ac_cv_cflags__fno_builtin=no
12146 fi
12147 rm -f core conftest.err conftest.$ac_objext \
12148     conftest$ac_exeext conftest.$ac_ext
12149 CFLAGS=$ac_wine_try_cflags_saved
12150 fi
12151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_builtin" >&5
12152 $as_echo "$ac_cv_cflags__fno_builtin" >&6; }
12153 if test $ac_cv_cflags__fno_builtin = yes; then :
12154   BUILTINFLAG="-fno-builtin"
12155
12156 fi
12157   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-strict-aliasing" >&5
12158 $as_echo_n "checking whether the compiler supports -fno-strict-aliasing... " >&6; }
12159 if test "${ac_cv_cflags__fno_strict_aliasing+set}" = set; then :
12160   $as_echo_n "(cached) " >&6
12161 else
12162   ac_wine_try_cflags_saved=$CFLAGS
12163 CFLAGS="$CFLAGS -fno-strict-aliasing"
12164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12165 /* end confdefs.h.  */
12166 int main(int argc, char **argv) { return 0; }
12167 _ACEOF
12168 if ac_fn_c_try_link "$LINENO"; then :
12169   ac_cv_cflags__fno_strict_aliasing=yes
12170 else
12171   ac_cv_cflags__fno_strict_aliasing=no
12172 fi
12173 rm -f core conftest.err conftest.$ac_objext \
12174     conftest$ac_exeext conftest.$ac_ext
12175 CFLAGS=$ac_wine_try_cflags_saved
12176 fi
12177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_strict_aliasing" >&5
12178 $as_echo "$ac_cv_cflags__fno_strict_aliasing" >&6; }
12179 if test $ac_cv_cflags__fno_strict_aliasing = yes; then :
12180   EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
12181 fi
12182   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wdeclaration-after-statement" >&5
12183 $as_echo_n "checking whether the compiler supports -Wdeclaration-after-statement... " >&6; }
12184 if test "${ac_cv_cflags__Wdeclaration_after_statement+set}" = set; then :
12185   $as_echo_n "(cached) " >&6
12186 else
12187   ac_wine_try_cflags_saved=$CFLAGS
12188 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
12189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12190 /* end confdefs.h.  */
12191 int main(int argc, char **argv) { return 0; }
12192 _ACEOF
12193 if ac_fn_c_try_link "$LINENO"; then :
12194   ac_cv_cflags__Wdeclaration_after_statement=yes
12195 else
12196   ac_cv_cflags__Wdeclaration_after_statement=no
12197 fi
12198 rm -f core conftest.err conftest.$ac_objext \
12199     conftest$ac_exeext conftest.$ac_ext
12200 CFLAGS=$ac_wine_try_cflags_saved
12201 fi
12202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wdeclaration_after_statement" >&5
12203 $as_echo "$ac_cv_cflags__Wdeclaration_after_statement" >&6; }
12204 if test $ac_cv_cflags__Wdeclaration_after_statement = yes; then :
12205   EXTRACFLAGS="$EXTRACFLAGS -Wdeclaration-after-statement"
12206 fi
12207   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wstrict-prototypes" >&5
12208 $as_echo_n "checking whether the compiler supports -Wstrict-prototypes... " >&6; }
12209 if test "${ac_cv_cflags__Wstrict_prototypes+set}" = set; then :
12210   $as_echo_n "(cached) " >&6
12211 else
12212   ac_wine_try_cflags_saved=$CFLAGS
12213 CFLAGS="$CFLAGS -Wstrict-prototypes"
12214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12215 /* end confdefs.h.  */
12216 int main(int argc, char **argv) { return 0; }
12217 _ACEOF
12218 if ac_fn_c_try_link "$LINENO"; then :
12219   ac_cv_cflags__Wstrict_prototypes=yes
12220 else
12221   ac_cv_cflags__Wstrict_prototypes=no
12222 fi
12223 rm -f core conftest.err conftest.$ac_objext \
12224     conftest$ac_exeext conftest.$ac_ext
12225 CFLAGS=$ac_wine_try_cflags_saved
12226 fi
12227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wstrict_prototypes" >&5
12228 $as_echo "$ac_cv_cflags__Wstrict_prototypes" >&6; }
12229 if test $ac_cv_cflags__Wstrict_prototypes = yes; then :
12230   EXTRACFLAGS="$EXTRACFLAGS -Wstrict-prototypes"
12231 fi
12232   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wtype-limits" >&5
12233 $as_echo_n "checking whether the compiler supports -Wtype-limits... " >&6; }
12234 if test "${ac_cv_cflags__Wtype_limits+set}" = set; then :
12235   $as_echo_n "(cached) " >&6
12236 else
12237   ac_wine_try_cflags_saved=$CFLAGS
12238 CFLAGS="$CFLAGS -Wtype-limits"
12239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12240 /* end confdefs.h.  */
12241 int main(int argc, char **argv) { return 0; }
12242 _ACEOF
12243 if ac_fn_c_try_link "$LINENO"; then :
12244   ac_cv_cflags__Wtype_limits=yes
12245 else
12246   ac_cv_cflags__Wtype_limits=no
12247 fi
12248 rm -f core conftest.err conftest.$ac_objext \
12249     conftest$ac_exeext conftest.$ac_ext
12250 CFLAGS=$ac_wine_try_cflags_saved
12251 fi
12252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wtype_limits" >&5
12253 $as_echo "$ac_cv_cflags__Wtype_limits" >&6; }
12254 if test $ac_cv_cflags__Wtype_limits = yes; then :
12255   EXTRACFLAGS="$EXTRACFLAGS -Wtype-limits"
12256 fi
12257   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wwrite-strings" >&5
12258 $as_echo_n "checking whether the compiler supports -Wwrite-strings... " >&6; }
12259 if test "${ac_cv_cflags__Wwrite_strings+set}" = set; then :
12260   $as_echo_n "(cached) " >&6
12261 else
12262   ac_wine_try_cflags_saved=$CFLAGS
12263 CFLAGS="$CFLAGS -Wwrite-strings"
12264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12265 /* end confdefs.h.  */
12266 int main(int argc, char **argv) { return 0; }
12267 _ACEOF
12268 if ac_fn_c_try_link "$LINENO"; then :
12269   ac_cv_cflags__Wwrite_strings=yes
12270 else
12271   ac_cv_cflags__Wwrite_strings=no
12272 fi
12273 rm -f core conftest.err conftest.$ac_objext \
12274     conftest$ac_exeext conftest.$ac_ext
12275 CFLAGS=$ac_wine_try_cflags_saved
12276 fi
12277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wwrite_strings" >&5
12278 $as_echo "$ac_cv_cflags__Wwrite_strings" >&6; }
12279 if test $ac_cv_cflags__Wwrite_strings = yes; then :
12280   EXTRACFLAGS="$EXTRACFLAGS -Wwrite-strings"
12281 fi
12282
12283     saved_CFLAGS="$CFLAGS"
12284   CFLAGS="$CFLAGS -Wpointer-arith -Werror"
12285   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wpointer-arith" >&5
12286 $as_echo_n "checking for broken string.h that generates warnings with -Wpointer-arith... " >&6; }
12287 if test "${ac_cv_c_string_h_warnings+set}" = set; then :
12288   $as_echo_n "(cached) " >&6
12289 else
12290   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12291 /* end confdefs.h.  */
12292 #include <string.h>
12293 int
12294 main ()
12295 {
12296
12297   ;
12298   return 0;
12299 }
12300 _ACEOF
12301 if ac_fn_c_try_compile "$LINENO"; then :
12302   ac_cv_c_string_h_warnings=no
12303 else
12304   ac_cv_c_string_h_warnings=yes
12305 fi
12306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12307 fi
12308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_string_h_warnings" >&5
12309 $as_echo "$ac_cv_c_string_h_warnings" >&6; }
12310   CFLAGS="$saved_CFLAGS"
12311   if test "$ac_cv_c_string_h_warnings" = "no"
12312   then
12313     EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
12314   fi
12315
12316     saved_CFLAGS="$CFLAGS"
12317   CFLAGS="$CFLAGS -Wlogical-op -Werror"
12318   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wlogical-op" >&5
12319 $as_echo_n "checking for broken string.h that generates warnings with -Wlogical-op... " >&6; }
12320 if test "${ac_cv_c_logicalop_noisy+set}" = set; then :
12321   $as_echo_n "(cached) " >&6
12322 else
12323   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12324 /* end confdefs.h.  */
12325 #include <string.h>
12326 int
12327 main ()
12328 {
12329 char*f(const char *h,char n) {return strchr(h,n);}
12330   ;
12331   return 0;
12332 }
12333 _ACEOF
12334 if ac_fn_c_try_compile "$LINENO"; then :
12335   ac_cv_c_logicalop_noisy=no
12336 else
12337   ac_cv_c_logicalop_noisy=yes
12338 fi
12339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12340 fi
12341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_logicalop_noisy" >&5
12342 $as_echo "$ac_cv_c_logicalop_noisy" >&6; }
12343   CFLAGS="$saved_CFLAGS"
12344   if test "$ac_cv_c_logicalop_noisy" = "no"
12345   then
12346     EXTRACFLAGS="$EXTRACFLAGS -Wlogical-op"
12347   fi
12348
12349     if test "x$enable_maintainer_mode" = "xyes"
12350   then
12351       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Werror" >&5
12352 $as_echo_n "checking whether the compiler supports -Werror... " >&6; }
12353 if test "${ac_cv_cflags__Werror+set}" = set; then :
12354   $as_echo_n "(cached) " >&6
12355 else
12356   ac_wine_try_cflags_saved=$CFLAGS
12357 CFLAGS="$CFLAGS -Werror"
12358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12359 /* end confdefs.h.  */
12360 int main(int argc, char **argv) { return 0; }
12361 _ACEOF
12362 if ac_fn_c_try_link "$LINENO"; then :
12363   ac_cv_cflags__Werror=yes
12364 else
12365   ac_cv_cflags__Werror=no
12366 fi
12367 rm -f core conftest.err conftest.$ac_objext \
12368     conftest$ac_exeext conftest.$ac_ext
12369 CFLAGS=$ac_wine_try_cflags_saved
12370 fi
12371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Werror" >&5
12372 $as_echo "$ac_cv_cflags__Werror" >&6; }
12373 if test $ac_cv_cflags__Werror = yes; then :
12374   EXTRACFLAGS="$EXTRACFLAGS -Werror"
12375 fi
12376   fi
12377
12378     saved_CFLAGS="$CFLAGS"
12379   CFLAGS="$CFLAGS -Werror"
12380   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ms_hook_prologue attribute" >&5
12381 $as_echo_n "checking for ms_hook_prologue attribute... " >&6; }
12382 if test "${ac_cv_have_ms_hook_prologue+set}" = set; then :
12383   $as_echo_n "(cached) " >&6
12384 else
12385   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12386 /* end confdefs.h.  */
12387 int __attribute__((__ms_hook_prologue__)) test(void) { return 0; }
12388 int
12389 main ()
12390 {
12391
12392   ;
12393   return 0;
12394 }
12395 _ACEOF
12396 if ac_fn_c_try_compile "$LINENO"; then :
12397   ac_cv_have_ms_hook_prologue="yes"
12398 else
12399   ac_cv_have_ms_hook_prologue="no"
12400 fi
12401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12402 fi
12403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ms_hook_prologue" >&5
12404 $as_echo "$ac_cv_have_ms_hook_prologue" >&6; }
12405   CFLAGS="$saved_CFLAGS"
12406   if test "$ac_cv_have_ms_hook_prologue" = "yes"
12407   then
12408
12409 $as_echo "#define DECLSPEC_HOTPATCH __attribute__((__ms_hook_prologue__))" >>confdefs.h
12410
12411   else
12412       $as_echo "#define DECLSPEC_HOTPATCH /* */" >>confdefs.h
12413
12414   fi
12415 fi
12416
12417
12418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the need to disable Fortify" >&5
12419 $as_echo_n "checking for the need to disable Fortify... " >&6; }
12420 if test "${ac_cv_c_fortify_enabled+set}" = set; then :
12421   $as_echo_n "(cached) " >&6
12422 else
12423   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12424 /* end confdefs.h.  */
12425 #include <string.h>
12426 int
12427 main ()
12428 {
12429 #if defined(__USE_FORTIFY_LEVEL) && __USE_FORTIFY_LEVEL > 0
12430 #error Fortify enabled
12431 #endif
12432   ;
12433   return 0;
12434 }
12435 _ACEOF
12436 if ac_fn_c_try_compile "$LINENO"; then :
12437   ac_cv_c_fortify_enabled=no
12438 else
12439   ac_cv_c_fortify_enabled=yes
12440 fi
12441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12442 fi
12443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_fortify_enabled" >&5
12444 $as_echo "$ac_cv_c_fortify_enabled" >&6; }
12445 if test "$ac_cv_c_fortify_enabled" = yes
12446 then
12447     CFLAGS="$CFLAGS -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0"
12448 fi
12449
12450
12451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need an underscore prefix" >&5
12452 $as_echo_n "checking whether external symbols need an underscore prefix... " >&6; }
12453 if test "${ac_cv_c_extern_prefix+set}" = set; then :
12454   $as_echo_n "(cached) " >&6
12455 else
12456   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12457 /* end confdefs.h.  */
12458 extern int ac_test;
12459 int
12460 main ()
12461 {
12462 asm(".globl _ac_test\n_ac_test:\t.long 0"); if (ac_test) return 1
12463   ;
12464   return 0;
12465 }
12466 _ACEOF
12467 if ac_fn_c_try_link "$LINENO"; then :
12468   ac_cv_c_extern_prefix="yes"
12469 else
12470   ac_cv_c_extern_prefix="no"
12471 fi
12472 rm -f core conftest.err conftest.$ac_objext \
12473     conftest$ac_exeext conftest.$ac_ext
12474 fi
12475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_extern_prefix" >&5
12476 $as_echo "$ac_cv_c_extern_prefix" >&6; }
12477
12478 case $host_cpu in
12479   *i[3456789]86*)
12480     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need stdcall decoration" >&5
12481 $as_echo_n "checking whether external symbols need stdcall decoration... " >&6; }
12482 if test "${ac_cv_c_stdcall_suffix+set}" = set; then :
12483   $as_echo_n "(cached) " >&6
12484 else
12485   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12486 /* end confdefs.h.  */
12487 #ifndef _MSC_VER
12488 #define __stdcall __attribute__((__stdcall__))
12489 #endif
12490 int __stdcall ac_test(int i) { return i; }
12491 int
12492 main ()
12493 {
12494 asm("jmp _ac_test@4"); if (ac_test(1)) return 1
12495   ;
12496   return 0;
12497 }
12498 _ACEOF
12499 if ac_fn_c_try_link "$LINENO"; then :
12500   ac_cv_c_stdcall_suffix="yes"
12501 else
12502   ac_cv_c_stdcall_suffix="no"
12503 fi
12504 rm -f core conftest.err conftest.$ac_objext \
12505     conftest$ac_exeext conftest.$ac_ext
12506 fi
12507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stdcall_suffix" >&5
12508 $as_echo "$ac_cv_c_stdcall_suffix" >&6; } ;;
12509   *) ac_cv_c_stdcall_suffix="no" ;;
12510 esac
12511
12512
12513 if test "$ac_cv_c_extern_prefix" = "yes"
12514 then
12515     $as_echo "#define __ASM_NAME(name) \"_\" name" >>confdefs.h
12516
12517     asm_name_prefix="_"
12518 else
12519     $as_echo "#define __ASM_NAME(name) name" >>confdefs.h
12520
12521     asm_name_prefix=""
12522 fi
12523
12524
12525 if test "$ac_cv_c_stdcall_suffix" = "yes"
12526 then
12527     $as_echo "#define __ASM_STDCALL(args) \"@\" #args" >>confdefs.h
12528
12529 else
12530     $as_echo "#define __ASM_STDCALL(args) \"\"" >>confdefs.h
12531
12532 fi
12533
12534
12535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to define a function in assembly code" >&5
12536 $as_echo_n "checking how to define a function in assembly code... " >&6; }
12537 if test "${ac_cv_asm_func_def+set}" = set; then :
12538   $as_echo_n "(cached) " >&6
12539 else
12540   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12541 /* end confdefs.h.  */
12542
12543 int
12544 main ()
12545 {
12546 asm("\t.globl _ac_test\n\t.def _ac_test; .scl 2; .type 32; .endef\n_ac_test:\t.long 0");
12547   ;
12548   return 0;
12549 }
12550 _ACEOF
12551 if ac_fn_c_try_link "$LINENO"; then :
12552   ac_cv_asm_func_def=".def"
12553 else
12554   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12555 /* end confdefs.h.  */
12556
12557 int
12558 main ()
12559 {
12560 asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0");
12561   ;
12562   return 0;
12563 }
12564 _ACEOF
12565 if ac_fn_c_try_link "$LINENO"; then :
12566   ac_cv_asm_func_def=".type @function"
12567 else
12568   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12569 /* end confdefs.h.  */
12570
12571 int
12572 main ()
12573 {
12574 asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0");
12575   ;
12576   return 0;
12577 }
12578 _ACEOF
12579 if ac_fn_c_try_link "$LINENO"; then :
12580   ac_cv_asm_func_def=".type 2"
12581 else
12582   ac_cv_asm_func_def="unknown"
12583 fi
12584 rm -f core conftest.err conftest.$ac_objext \
12585     conftest$ac_exeext conftest.$ac_ext
12586 fi
12587 rm -f core conftest.err conftest.$ac_objext \
12588     conftest$ac_exeext conftest.$ac_ext
12589 fi
12590 rm -f core conftest.err conftest.$ac_objext \
12591     conftest$ac_exeext conftest.$ac_ext
12592 fi
12593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_asm_func_def" >&5
12594 $as_echo "$ac_cv_asm_func_def" >&6; }
12595
12596
12597 case "$ac_cv_asm_func_def" in
12598   ".def")
12599      $as_echo "#define __ASM_FUNC(name) \".def \" __ASM_NAME(name) \"; .scl 2; .type 32; .endef\"" >>confdefs.h
12600
12601      asm_func_header=".def $asm_name_prefix\" #name suffix \"; .scl 2; .type 32; .endef" ;;
12602   ".type @function")
12603      $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",@function\"" >>confdefs.h
12604
12605      asm_func_header=".type $asm_name_prefix\" #name suffix \",@function" ;;
12606   ".type 2")
12607      $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",2\"" >>confdefs.h
12608
12609      asm_func_header=".type $asm_name_prefix\" #name suffix \",2" ;;
12610   *)
12611      $as_echo "#define __ASM_FUNC(name) \"\"" >>confdefs.h
12612
12613      asm_func_header="" ;;
12614 esac
12615
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether asm() works outside of functions" >&5
12617 $as_echo_n "checking whether asm() works outside of functions... " >&6; }
12618 if test "${ac_cv_c_asm_outside_funcs+set}" = set; then :
12619   $as_echo_n "(cached) " >&6
12620 else
12621   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12622 /* end confdefs.h.  */
12623 asm(".text\n\t.long 0");
12624 int
12625 main ()
12626 {
12627
12628   ;
12629   return 0;
12630 }
12631 _ACEOF
12632 if ac_fn_c_try_compile "$LINENO"; then :
12633   ac_cv_c_asm_outside_funcs="yes"
12634 else
12635   ac_cv_c_asm_outside_funcs="no"
12636 fi
12637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12638 fi
12639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_asm_outside_funcs" >&5
12640 $as_echo "$ac_cv_c_asm_outside_funcs" >&6; }
12641
12642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .previous is supported in assembly code" >&5
12643 $as_echo_n "checking whether .previous is supported in assembly code... " >&6; }
12644 if test "${ac_cv_c_dot_previous+set}" = set; then :
12645   $as_echo_n "(cached) " >&6
12646 else
12647   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12648 /* end confdefs.h.  */
12649
12650 int
12651 main ()
12652 {
12653 asm(".text\nac_test:\t.long 0\n\t.previous");
12654   ;
12655   return 0;
12656 }
12657 _ACEOF
12658 if ac_fn_c_try_link "$LINENO"; then :
12659   ac_cv_c_dot_previous="yes"
12660 else
12661   ac_cv_c_dot_previous="no"
12662 fi
12663 rm -f core conftest.err conftest.$ac_objext \
12664     conftest$ac_exeext conftest.$ac_ext
12665 fi
12666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dot_previous" >&5
12667 $as_echo "$ac_cv_c_dot_previous" >&6; }
12668
12669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CFI directives are supported in assembly code" >&5
12670 $as_echo_n "checking whether CFI directives are supported in assembly code... " >&6; }
12671 if test "${ac_cv_c_cfi_support+set}" = set; then :
12672   $as_echo_n "(cached) " >&6
12673 else
12674   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12675 /* end confdefs.h.  */
12676 asm(".text\nac_test:\t.cfi_startproc\n\t.long 0\n\t.cfi_endproc");
12677 int
12678 main ()
12679 {
12680
12681   ;
12682   return 0;
12683 }
12684 _ACEOF
12685 if ac_fn_c_try_compile "$LINENO"; then :
12686   ac_cv_c_cfi_support="yes"
12687 else
12688   ac_cv_c_cfi_support="no"
12689 fi
12690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12691 fi
12692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_cfi_support" >&5
12693 $as_echo "$ac_cv_c_cfi_support" >&6; }
12694
12695 asm_func_header=".globl $asm_name_prefix\" #name suffix \"\\n\\t$asm_func_header\\n$asm_name_prefix\" #name suffix \":\\n\\t"
12696 asm_func_trailer=""
12697 if test "$ac_cv_c_dot_previous" = "yes"
12698 then
12699    asm_func_trailer="\\n\\t.previous"
12700 fi
12701 if test "$ac_cv_c_cfi_support" = "yes"
12702 then
12703    asm_func_header="$asm_func_header.cfi_startproc\\n\\t"
12704    asm_func_trailer="\\n\\t.cfi_endproc$asm_func_trailer"
12705
12706 $as_echo "#define __ASM_CFI(str) str" >>confdefs.h
12707
12708    UNWINDFLAGS=-fasynchronous-unwind-tables
12709
12710 else
12711    $as_echo "#define __ASM_CFI(str) \"\"" >>confdefs.h
12712
12713 fi
12714
12715 asm_func_code="$asm_func_header\" code \"$asm_func_trailer"
12716
12717
12718 if test "$ac_cv_c_asm_outside_funcs" = "yes"
12719 then
12720     cat >>confdefs.h <<_ACEOF
12721 #define __ASM_DEFINE_FUNC(name,suffix,code) asm(".text\n\t.align 4\n\t$asm_func_code");
12722 _ACEOF
12723
12724 else
12725     cat >>confdefs.h <<_ACEOF
12726 #define __ASM_DEFINE_FUNC(name,suffix,code) void __asm_dummy_##name(void) { asm(".text\n\t.align 4\n\t$asm_func_code"); }
12727 _ACEOF
12728
12729 fi
12730
12731 $as_echo "#define __ASM_GLOBAL_FUNC(name,code) __ASM_DEFINE_FUNC(name,\"\",code)" >>confdefs.h
12732
12733
12734 $as_echo "#define __ASM_STDCALL_FUNC(name,args,code) __ASM_DEFINE_FUNC(name,__ASM_STDCALL(args),code)" >>confdefs.h
12735
12736
12737
12738 LDPATH=""
12739
12740 case $build_os in
12741   cygwin*|mingw32*)
12742     TOOLSEXT=".exe"
12743
12744     LDPATH="PATH=\"\$(TOOLSDIR)/libs/wine:\$\$PATH\""
12745     ;;
12746   darwin*|macosx*)
12747     ;;
12748   *)
12749     LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$LD_LIBRARY_PATH\""
12750     ;;
12751 esac
12752
12753 case $host_os in
12754   mingw32*)
12755     CRTLIBS="-lmsvcrt"
12756
12757     SOCKETLIBS="-L\$(top_builddir)/dlls/ws2_32 -lws2_32"
12758
12759     ;;
12760 esac
12761
12762 MAIN_BINARY="wine"
12763
12764 test "x$enable_win64" != "xyes" || MAIN_BINARY="wine64"
12765
12766 case $host_os in
12767   linux*)
12768     case $host_cpu in
12769       *i[3456789]86*) EXTRA_BINARIES="wine-preloader"
12770  ;;
12771       x86_64*) EXTRA_BINARIES="wine64-preloader"
12772  ;;
12773     esac
12774     ;;
12775 esac
12776
12777
12778 ac_save_CFLAGS="$CFLAGS"
12779 CFLAGS="$CFLAGS $BUILTINFLAG"
12780 for ac_func in \
12781         _pclose \
12782         _popen \
12783         _snprintf \
12784         _spawnvp \
12785         _strdup \
12786         _stricmp \
12787         _strnicmp \
12788         _strtoi64 \
12789         _strtoui64 \
12790         _vsnprintf \
12791         asctime_r \
12792         chsize \
12793         dlopen \
12794         epoll_create \
12795         ffs \
12796         finite \
12797         fnmatch \
12798         fork \
12799         fpclass \
12800         fstatfs \
12801         fstatvfs \
12802         ftruncate \
12803         futimes \
12804         futimesat \
12805         getattrlist \
12806         getdirentries \
12807         getopt_long \
12808         getpagesize \
12809         getpwuid \
12810         gettimeofday \
12811         getuid \
12812         kqueue \
12813         lstat \
12814         memmove \
12815         mmap \
12816         pclose \
12817         pipe2 \
12818         poll \
12819         popen \
12820         port_create \
12821         prctl \
12822         pread \
12823         pwrite \
12824         readdir \
12825         readlink \
12826         sched_yield \
12827         select \
12828         setproctitle \
12829         setrlimit \
12830         settimeofday \
12831         sigaltstack \
12832         sigprocmask \
12833         snprintf \
12834         spawnvp \
12835         statfs \
12836         statvfs \
12837         strcasecmp \
12838         strdup \
12839         strerror \
12840         strncasecmp \
12841         strtold \
12842         strtoll \
12843         strtoull \
12844         symlink \
12845         tcgetattr \
12846         thr_kill2 \
12847         timegm \
12848         usleep \
12849         vsnprintf \
12850         wait4 \
12851         waitpid \
12852
12853 do :
12854   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12855 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12856 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12857   cat >>confdefs.h <<_ACEOF
12858 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12859 _ACEOF
12860
12861 fi
12862 done
12863
12864 CFLAGS="$ac_save_CFLAGS"
12865
12866 if test "$ac_cv_func_dlopen" = no
12867 then
12868     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12869 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12870 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12871   $as_echo_n "(cached) " >&6
12872 else
12873   ac_check_lib_save_LIBS=$LIBS
12874 LIBS="-ldl  $LIBS"
12875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12876 /* end confdefs.h.  */
12877
12878 /* Override any GCC internal prototype to avoid an error.
12879    Use char because int might match the return type of a GCC
12880    builtin and then its argument prototype would still apply.  */
12881 #ifdef __cplusplus
12882 extern "C"
12883 #endif
12884 char dlopen ();
12885 int
12886 main ()
12887 {
12888 return dlopen ();
12889   ;
12890   return 0;
12891 }
12892 _ACEOF
12893 if ac_fn_c_try_link "$LINENO"; then :
12894   ac_cv_lib_dl_dlopen=yes
12895 else
12896   ac_cv_lib_dl_dlopen=no
12897 fi
12898 rm -f core conftest.err conftest.$ac_objext \
12899     conftest$ac_exeext conftest.$ac_ext
12900 LIBS=$ac_check_lib_save_LIBS
12901 fi
12902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12903 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12904 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12905   $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
12906  LIBDL="-ldl"
12907
12908 fi
12909
12910 fi
12911 ac_wine_check_funcs_save_LIBS="$LIBS"
12912 LIBS="$LIBS $LIBDL"
12913 for ac_func in dladdr
12914 do :
12915   ac_fn_c_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr"
12916 if test "x$ac_cv_func_dladdr" = x""yes; then :
12917   cat >>confdefs.h <<_ACEOF
12918 #define HAVE_DLADDR 1
12919 _ACEOF
12920
12921 fi
12922 done
12923
12924 LIBS="$ac_wine_check_funcs_save_LIBS"
12925
12926 if test "$ac_cv_func_poll" = no
12927 then
12928     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for poll in -lpoll" >&5
12929 $as_echo_n "checking for poll in -lpoll... " >&6; }
12930 if test "${ac_cv_lib_poll_poll+set}" = set; then :
12931   $as_echo_n "(cached) " >&6
12932 else
12933   ac_check_lib_save_LIBS=$LIBS
12934 LIBS="-lpoll  $LIBS"
12935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12936 /* end confdefs.h.  */
12937
12938 /* Override any GCC internal prototype to avoid an error.
12939    Use char because int might match the return type of a GCC
12940    builtin and then its argument prototype would still apply.  */
12941 #ifdef __cplusplus
12942 extern "C"
12943 #endif
12944 char poll ();
12945 int
12946 main ()
12947 {
12948 return poll ();
12949   ;
12950   return 0;
12951 }
12952 _ACEOF
12953 if ac_fn_c_try_link "$LINENO"; then :
12954   ac_cv_lib_poll_poll=yes
12955 else
12956   ac_cv_lib_poll_poll=no
12957 fi
12958 rm -f core conftest.err conftest.$ac_objext \
12959     conftest$ac_exeext conftest.$ac_ext
12960 LIBS=$ac_check_lib_save_LIBS
12961 fi
12962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_poll_poll" >&5
12963 $as_echo "$ac_cv_lib_poll_poll" >&6; }
12964 if test "x$ac_cv_lib_poll_poll" = x""yes; then :
12965   $as_echo "#define HAVE_POLL 1" >>confdefs.h
12966  LIBPOLL="-lpoll"
12967
12968 fi
12969
12970 fi
12971
12972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
12973 $as_echo_n "checking for library containing gethostbyname... " >&6; }
12974 if test "${ac_cv_search_gethostbyname+set}" = set; then :
12975   $as_echo_n "(cached) " >&6
12976 else
12977   ac_func_search_save_LIBS=$LIBS
12978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12979 /* end confdefs.h.  */
12980
12981 /* Override any GCC internal prototype to avoid an error.
12982    Use char because int might match the return type of a GCC
12983    builtin and then its argument prototype would still apply.  */
12984 #ifdef __cplusplus
12985 extern "C"
12986 #endif
12987 char gethostbyname ();
12988 int
12989 main ()
12990 {
12991 return gethostbyname ();
12992   ;
12993   return 0;
12994 }
12995 _ACEOF
12996 for ac_lib in '' nsl; do
12997   if test -z "$ac_lib"; then
12998     ac_res="none required"
12999   else
13000     ac_res=-l$ac_lib
13001     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13002   fi
13003   if ac_fn_c_try_link "$LINENO"; then :
13004   ac_cv_search_gethostbyname=$ac_res
13005 fi
13006 rm -f core conftest.err conftest.$ac_objext \
13007     conftest$ac_exeext
13008   if test "${ac_cv_search_gethostbyname+set}" = set; then :
13009   break
13010 fi
13011 done
13012 if test "${ac_cv_search_gethostbyname+set}" = set; then :
13013
13014 else
13015   ac_cv_search_gethostbyname=no
13016 fi
13017 rm conftest.$ac_ext
13018 LIBS=$ac_func_search_save_LIBS
13019 fi
13020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
13021 $as_echo "$ac_cv_search_gethostbyname" >&6; }
13022 ac_res=$ac_cv_search_gethostbyname
13023 if test "$ac_res" != no; then :
13024   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13025
13026 fi
13027
13028
13029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5
13030 $as_echo_n "checking for library containing connect... " >&6; }
13031 if test "${ac_cv_search_connect+set}" = set; then :
13032   $as_echo_n "(cached) " >&6
13033 else
13034   ac_func_search_save_LIBS=$LIBS
13035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13036 /* end confdefs.h.  */
13037
13038 /* Override any GCC internal prototype to avoid an error.
13039    Use char because int might match the return type of a GCC
13040    builtin and then its argument prototype would still apply.  */
13041 #ifdef __cplusplus
13042 extern "C"
13043 #endif
13044 char connect ();
13045 int
13046 main ()
13047 {
13048 return connect ();
13049   ;
13050   return 0;
13051 }
13052 _ACEOF
13053 for ac_lib in '' socket; do
13054   if test -z "$ac_lib"; then
13055     ac_res="none required"
13056   else
13057     ac_res=-l$ac_lib
13058     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13059   fi
13060   if ac_fn_c_try_link "$LINENO"; then :
13061   ac_cv_search_connect=$ac_res
13062 fi
13063 rm -f core conftest.err conftest.$ac_objext \
13064     conftest$ac_exeext
13065   if test "${ac_cv_search_connect+set}" = set; then :
13066   break
13067 fi
13068 done
13069 if test "${ac_cv_search_connect+set}" = set; then :
13070
13071 else
13072   ac_cv_search_connect=no
13073 fi
13074 rm conftest.$ac_ext
13075 LIBS=$ac_func_search_save_LIBS
13076 fi
13077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5
13078 $as_echo "$ac_cv_search_connect" >&6; }
13079 ac_res=$ac_cv_search_connect
13080 if test "$ac_res" != no; then :
13081   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13082
13083 fi
13084
13085
13086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
13087 $as_echo_n "checking for library containing inet_aton... " >&6; }
13088 if test "${ac_cv_search_inet_aton+set}" = set; then :
13089   $as_echo_n "(cached) " >&6
13090 else
13091   ac_func_search_save_LIBS=$LIBS
13092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13093 /* end confdefs.h.  */
13094
13095 /* Override any GCC internal prototype to avoid an error.
13096    Use char because int might match the return type of a GCC
13097    builtin and then its argument prototype would still apply.  */
13098 #ifdef __cplusplus
13099 extern "C"
13100 #endif
13101 char inet_aton ();
13102 int
13103 main ()
13104 {
13105 return inet_aton ();
13106   ;
13107   return 0;
13108 }
13109 _ACEOF
13110 for ac_lib in '' resolv; do
13111   if test -z "$ac_lib"; then
13112     ac_res="none required"
13113   else
13114     ac_res=-l$ac_lib
13115     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13116   fi
13117   if ac_fn_c_try_link "$LINENO"; then :
13118   ac_cv_search_inet_aton=$ac_res
13119 fi
13120 rm -f core conftest.err conftest.$ac_objext \
13121     conftest$ac_exeext
13122   if test "${ac_cv_search_inet_aton+set}" = set; then :
13123   break
13124 fi
13125 done
13126 if test "${ac_cv_search_inet_aton+set}" = set; then :
13127
13128 else
13129   ac_cv_search_inet_aton=no
13130 fi
13131 rm conftest.$ac_ext
13132 LIBS=$ac_func_search_save_LIBS
13133 fi
13134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
13135 $as_echo "$ac_cv_search_inet_aton" >&6; }
13136 ac_res=$ac_cv_search_inet_aton
13137 if test "$ac_res" != no; then :
13138   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13139
13140 fi
13141
13142
13143 for ac_func in \
13144         getaddrinfo \
13145         getnameinfo \
13146         getnetbyname \
13147         getprotobyname \
13148         getprotobynumber \
13149         getservbyport \
13150         inet_network \
13151         inet_ntop \
13152         inet_pton \
13153         sendmsg \
13154         socketpair \
13155
13156 do :
13157   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13158 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13159 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13160   cat >>confdefs.h <<_ACEOF
13161 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13162 _ACEOF
13163
13164 fi
13165 done
13166
13167
13168 LDAPLIBS=""
13169
13170 if test "$ac_cv_header_ldap_h" = "yes" -a "$ac_cv_header_lber_h" = "yes"
13171 then
13172     ac_fn_c_check_type "$LINENO" "LDAPSortKey" "ac_cv_type_LDAPSortKey" "#include <ldap.h>
13173 "
13174 if test "x$ac_cv_type_LDAPSortKey" = x""yes; then :
13175   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap_r" >&5
13176 $as_echo_n "checking for ldap_initialize in -lldap_r... " >&6; }
13177 if test "${ac_cv_lib_ldap_r_ldap_initialize+set}" = set; then :
13178   $as_echo_n "(cached) " >&6
13179 else
13180   ac_check_lib_save_LIBS=$LIBS
13181 LIBS="-lldap_r $LIBPTHREAD $LIBS"
13182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13183 /* end confdefs.h.  */
13184
13185 /* Override any GCC internal prototype to avoid an error.
13186    Use char because int might match the return type of a GCC
13187    builtin and then its argument prototype would still apply.  */
13188 #ifdef __cplusplus
13189 extern "C"
13190 #endif
13191 char ldap_initialize ();
13192 int
13193 main ()
13194 {
13195 return ldap_initialize ();
13196   ;
13197   return 0;
13198 }
13199 _ACEOF
13200 if ac_fn_c_try_link "$LINENO"; then :
13201   ac_cv_lib_ldap_r_ldap_initialize=yes
13202 else
13203   ac_cv_lib_ldap_r_ldap_initialize=no
13204 fi
13205 rm -f core conftest.err conftest.$ac_objext \
13206     conftest$ac_exeext conftest.$ac_ext
13207 LIBS=$ac_check_lib_save_LIBS
13208 fi
13209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_r_ldap_initialize" >&5
13210 $as_echo "$ac_cv_lib_ldap_r_ldap_initialize" >&6; }
13211 if test "x$ac_cv_lib_ldap_r_ldap_initialize" = x""yes; then :
13212   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_init in -llber" >&5
13213 $as_echo_n "checking for ber_init in -llber... " >&6; }
13214 if test "${ac_cv_lib_lber_ber_init+set}" = set; then :
13215   $as_echo_n "(cached) " >&6
13216 else
13217   ac_check_lib_save_LIBS=$LIBS
13218 LIBS="-llber $LIBPTHREAD $LIBS"
13219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13220 /* end confdefs.h.  */
13221
13222 /* Override any GCC internal prototype to avoid an error.
13223    Use char because int might match the return type of a GCC
13224    builtin and then its argument prototype would still apply.  */
13225 #ifdef __cplusplus
13226 extern "C"
13227 #endif
13228 char ber_init ();
13229 int
13230 main ()
13231 {
13232 return ber_init ();
13233   ;
13234   return 0;
13235 }
13236 _ACEOF
13237 if ac_fn_c_try_link "$LINENO"; then :
13238   ac_cv_lib_lber_ber_init=yes
13239 else
13240   ac_cv_lib_lber_ber_init=no
13241 fi
13242 rm -f core conftest.err conftest.$ac_objext \
13243     conftest$ac_exeext conftest.$ac_ext
13244 LIBS=$ac_check_lib_save_LIBS
13245 fi
13246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_init" >&5
13247 $as_echo "$ac_cv_lib_lber_ber_init" >&6; }
13248 if test "x$ac_cv_lib_lber_ber_init" = x""yes; then :
13249
13250 $as_echo "#define HAVE_LDAP 1" >>confdefs.h
13251
13252                  LDAPLIBS="-lldap_r -llber"
13253 fi
13254
13255 fi
13256
13257 fi
13258
13259     ac_wine_check_funcs_save_LIBS="$LIBS"
13260 LIBS="$LIBS $LDAPLIBS $LIBPTHREAD"
13261 for ac_func in \
13262         ldap_count_references \
13263         ldap_first_reference \
13264         ldap_next_reference \
13265         ldap_parse_reference \
13266         ldap_parse_sort_control \
13267         ldap_parse_sortresponse_control \
13268         ldap_parse_vlv_control \
13269         ldap_parse_vlvresponse_control
13270 do :
13271   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13272 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13273 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13274   cat >>confdefs.h <<_ACEOF
13275 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13276 _ACEOF
13277
13278 fi
13279 done
13280
13281 LIBS="$ac_wine_check_funcs_save_LIBS"
13282 fi
13283 if test "x$LDAPLIBS" = "x"; then :
13284   case "x$with_ldap" in
13285   x)   as_fn_append wine_notices "|libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported." ;;
13286   xno) ;;
13287   *)   as_fn_error $? "libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported.
13288 This is an error since --with-ldap was requested." "$LINENO" 5  ;;
13289 esac
13290 fi
13291
13292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir takes only one argument" >&5
13293 $as_echo_n "checking whether mkdir takes only one argument... " >&6; }
13294 if test "${wine_cv_one_arg_mkdir+set}" = set; then :
13295   $as_echo_n "(cached) " >&6
13296 else
13297   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13298 /* end confdefs.h.  */
13299 #include <sys/stat.h>
13300 int
13301 main ()
13302 {
13303 mkdir("foo");
13304   ;
13305   return 0;
13306 }
13307 _ACEOF
13308 if ac_fn_c_try_compile "$LINENO"; then :
13309   wine_cv_one_arg_mkdir=yes
13310 else
13311   wine_cv_one_arg_mkdir=no
13312 fi
13313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13314 fi
13315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_one_arg_mkdir" >&5
13316 $as_echo "$wine_cv_one_arg_mkdir" >&6; }
13317 if test "$wine_cv_one_arg_mkdir" = "yes"
13318 then
13319
13320 $as_echo "#define HAVE_ONE_ARG_MKDIR 1" >>confdefs.h
13321
13322 fi
13323
13324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_setaffinity" >&5
13325 $as_echo_n "checking for sched_setaffinity... " >&6; }
13326 if test "${wine_cv_have_sched_setaffinity+set}" = set; then :
13327   $as_echo_n "(cached) " >&6
13328 else
13329   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13330 /* end confdefs.h.  */
13331 #define _GNU_SOURCE
13332 #include <sched.h>
13333 int
13334 main ()
13335 {
13336 sched_setaffinity(0, 0, 0);
13337   ;
13338   return 0;
13339 }
13340 _ACEOF
13341 if ac_fn_c_try_link "$LINENO"; then :
13342   wine_cv_have_sched_setaffinity=yes
13343 else
13344   wine_cv_have_sched_setaffinity=no
13345 fi
13346 rm -f core conftest.err conftest.$ac_objext \
13347     conftest$ac_exeext conftest.$ac_ext
13348 fi
13349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sched_setaffinity" >&5
13350 $as_echo "$wine_cv_have_sched_setaffinity" >&6; }
13351 if test "$wine_cv_have_sched_setaffinity" = "yes"
13352 then
13353
13354 $as_echo "#define HAVE_SCHED_SETAFFINITY 1" >>confdefs.h
13355
13356 fi
13357
13358
13359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13360 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13361 if test "${ac_cv_c_const+set}" = set; then :
13362   $as_echo_n "(cached) " >&6
13363 else
13364   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13365 /* end confdefs.h.  */
13366
13367 int
13368 main ()
13369 {
13370 /* FIXME: Include the comments suggested by Paul. */
13371 #ifndef __cplusplus
13372   /* Ultrix mips cc rejects this.  */
13373   typedef int charset[2];
13374   const charset cs;
13375   /* SunOS 4.1.1 cc rejects this.  */
13376   char const *const *pcpcc;
13377   char **ppc;
13378   /* NEC SVR4.0.2 mips cc rejects this.  */
13379   struct point {int x, y;};
13380   static struct point const zero = {0,0};
13381   /* AIX XL C 1.02.0.0 rejects this.
13382      It does not let you subtract one const X* pointer from another in
13383      an arm of an if-expression whose if-part is not a constant
13384      expression */
13385   const char *g = "string";
13386   pcpcc = &g + (g ? g-g : 0);
13387   /* HPUX 7.0 cc rejects these. */
13388   ++pcpcc;
13389   ppc = (char**) pcpcc;
13390   pcpcc = (char const *const *) ppc;
13391   { /* SCO 3.2v4 cc rejects this.  */
13392     char *t;
13393     char const *s = 0 ? (char *) 0 : (char const *) 0;
13394
13395     *t++ = 0;
13396     if (s) return 0;
13397   }
13398   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
13399     int x[] = {25, 17};
13400     const int *foo = &x[0];
13401     ++foo;
13402   }
13403   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13404     typedef const int *iptr;
13405     iptr p = 0;
13406     ++p;
13407   }
13408   { /* AIX XL C 1.02.0.0 rejects this saying
13409        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13410     struct s { int j; const int *ap[3]; };
13411     struct s *b; b->j = 5;
13412   }
13413   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13414     const int foo = 10;
13415     if (!foo) return 0;
13416   }
13417   return !cs[0] && !zero.x;
13418 #endif
13419
13420   ;
13421   return 0;
13422 }
13423 _ACEOF
13424 if ac_fn_c_try_compile "$LINENO"; then :
13425   ac_cv_c_const=yes
13426 else
13427   ac_cv_c_const=no
13428 fi
13429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13430 fi
13431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13432 $as_echo "$ac_cv_c_const" >&6; }
13433 if test $ac_cv_c_const = no; then
13434
13435 $as_echo "#define const /**/" >>confdefs.h
13436
13437 fi
13438
13439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13440 $as_echo_n "checking for inline... " >&6; }
13441 if test "${ac_cv_c_inline+set}" = set; then :
13442   $as_echo_n "(cached) " >&6
13443 else
13444   ac_cv_c_inline=no
13445 for ac_kw in inline __inline__ __inline; do
13446   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13447 /* end confdefs.h.  */
13448 #ifndef __cplusplus
13449 typedef int foo_t;
13450 static $ac_kw foo_t static_foo () {return 0; }
13451 $ac_kw foo_t foo () {return 0; }
13452 #endif
13453
13454 _ACEOF
13455 if ac_fn_c_try_compile "$LINENO"; then :
13456   ac_cv_c_inline=$ac_kw
13457 fi
13458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13459   test "$ac_cv_c_inline" != no && break
13460 done
13461
13462 fi
13463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13464 $as_echo "$ac_cv_c_inline" >&6; }
13465
13466 case $ac_cv_c_inline in
13467   inline | yes) ;;
13468   *)
13469     case $ac_cv_c_inline in
13470       no) ac_val=;;
13471       *) ac_val=$ac_cv_c_inline;;
13472     esac
13473     cat >>confdefs.h <<_ACEOF
13474 #ifndef __cplusplus
13475 #define inline $ac_val
13476 #endif
13477 _ACEOF
13478     ;;
13479 esac
13480
13481 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
13482 if test "x$ac_cv_type_mode_t" = x""yes; then :
13483
13484 cat >>confdefs.h <<_ACEOF
13485 #define HAVE_MODE_T 1
13486 _ACEOF
13487
13488
13489 fi
13490 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
13491 if test "x$ac_cv_type_off_t" = x""yes; then :
13492
13493 cat >>confdefs.h <<_ACEOF
13494 #define HAVE_OFF_T 1
13495 _ACEOF
13496
13497
13498 fi
13499 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13500 if test "x$ac_cv_type_pid_t" = x""yes; then :
13501
13502 cat >>confdefs.h <<_ACEOF
13503 #define HAVE_PID_T 1
13504 _ACEOF
13505
13506
13507 fi
13508 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13509 if test "x$ac_cv_type_size_t" = x""yes; then :
13510
13511 cat >>confdefs.h <<_ACEOF
13512 #define HAVE_SIZE_T 1
13513 _ACEOF
13514
13515
13516 fi
13517 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
13518 if test "x$ac_cv_type_ssize_t" = x""yes; then :
13519
13520 cat >>confdefs.h <<_ACEOF
13521 #define HAVE_SSIZE_T 1
13522 _ACEOF
13523
13524
13525 fi
13526 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
13527 if test "x$ac_cv_type_long_long" = x""yes; then :
13528
13529 cat >>confdefs.h <<_ACEOF
13530 #define HAVE_LONG_LONG 1
13531 _ACEOF
13532
13533
13534 fi
13535 ac_fn_c_check_type "$LINENO" "fsblkcnt_t" "ac_cv_type_fsblkcnt_t" "$ac_includes_default"
13536 if test "x$ac_cv_type_fsblkcnt_t" = x""yes; then :
13537
13538 cat >>confdefs.h <<_ACEOF
13539 #define HAVE_FSBLKCNT_T 1
13540 _ACEOF
13541
13542
13543 fi
13544 ac_fn_c_check_type "$LINENO" "fsfilcnt_t" "ac_cv_type_fsfilcnt_t" "$ac_includes_default"
13545 if test "x$ac_cv_type_fsfilcnt_t" = x""yes; then :
13546
13547 cat >>confdefs.h <<_ACEOF
13548 #define HAVE_FSFILCNT_T 1
13549 _ACEOF
13550
13551
13552 fi
13553
13554 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "#include <sys/types.h>
13555 #include <signal.h>
13556 "
13557 if test "x$ac_cv_type_sigset_t" = x""yes; then :
13558
13559 cat >>confdefs.h <<_ACEOF
13560 #define HAVE_SIGSET_T 1
13561 _ACEOF
13562
13563
13564 fi
13565
13566 ac_fn_c_check_type "$LINENO" "request_sense" "ac_cv_type_request_sense" "#include <linux/cdrom.h>
13567 "
13568 if test "x$ac_cv_type_request_sense" = x""yes; then :
13569
13570 cat >>confdefs.h <<_ACEOF
13571 #define HAVE_REQUEST_SENSE 1
13572 _ACEOF
13573
13574
13575 fi
13576
13577
13578 ac_fn_c_check_type "$LINENO" "struct xinpgen" "ac_cv_type_struct_xinpgen" "#include <sys/types.h>
13579 #ifdef HAVE_SYS_SOCKET_H
13580 #include <sys/socket.h>
13581 #endif
13582 #ifdef HAVE_SYS_SOCKETVAR_H
13583 #include <sys/socketvar.h>
13584 #endif
13585 #ifdef HAVE_NET_ROUTE_H
13586 #include <net/route.h>
13587 #endif
13588 #ifdef HAVE_NETINET_IN_H
13589 #include <netinet/in.h>
13590 #endif
13591 #ifdef HAVE_NETINET_IN_SYSTM_H
13592 #include <netinet/in_systm.h>
13593 #endif
13594 #ifdef HAVE_NETINET_IP_H
13595 #include <netinet/ip.h>
13596 #endif
13597 #ifdef HAVE_NETINET_IN_PCB_H
13598 #include <netinet/in_pcb.h>
13599 #endif
13600 "
13601 if test "x$ac_cv_type_struct_xinpgen" = x""yes; then :
13602
13603 cat >>confdefs.h <<_ACEOF
13604 #define HAVE_STRUCT_XINPGEN 1
13605 _ACEOF
13606
13607
13608 fi
13609
13610
13611 ac_fn_c_check_member "$LINENO" "struct ff_effect" "direction" "ac_cv_member_struct_ff_effect_direction" "#ifdef HAVE_LINUX_INPUT_H
13612 #include <linux/input.h>
13613 #endif
13614 "
13615 if test "x$ac_cv_member_struct_ff_effect_direction" = x""yes; then :
13616
13617 cat >>confdefs.h <<_ACEOF
13618 #define HAVE_STRUCT_FF_EFFECT_DIRECTION 1
13619 _ACEOF
13620
13621
13622 fi
13623
13624
13625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigaddset" >&5
13626 $as_echo_n "checking for sigaddset... " >&6; }
13627 if test "${wine_cv_have_sigaddset+set}" = set; then :
13628   $as_echo_n "(cached) " >&6
13629 else
13630   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13631 /* end confdefs.h.  */
13632 #include <signal.h>
13633 int
13634 main ()
13635 {
13636 sigset_t set; sigaddset(&set,SIGTERM);
13637   ;
13638   return 0;
13639 }
13640 _ACEOF
13641 if ac_fn_c_try_link "$LINENO"; then :
13642   wine_cv_have_sigaddset=yes
13643 else
13644   wine_cv_have_sigaddset=no
13645 fi
13646 rm -f core conftest.err conftest.$ac_objext \
13647     conftest$ac_exeext conftest.$ac_ext
13648 fi
13649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sigaddset" >&5
13650 $as_echo "$wine_cv_have_sigaddset" >&6; }
13651 if test "$wine_cv_have_sigaddset" = "yes"
13652 then
13653
13654 $as_echo "#define HAVE_SIGADDSET 1" >>confdefs.h
13655
13656 fi
13657
13658
13659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
13660 $as_echo_n "checking whether we can use re-entrant gethostbyname_r Linux style... " >&6; }
13661 if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then :
13662   $as_echo_n "(cached) " >&6
13663 else
13664   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13665 /* end confdefs.h.  */
13666 #include <netdb.h>
13667 int
13668 main ()
13669 {
13670
13671     char *name=0;
13672     struct hostent he;
13673     struct hostent *result;
13674     char *buf=0;
13675     int bufsize=0;
13676     int res,errnr;
13677     char *addr=0;
13678     int addrlen=0;
13679     int addrtype=0;
13680     res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
13681     res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
13682
13683   ;
13684   return 0;
13685 }
13686 _ACEOF
13687 if ac_fn_c_try_link "$LINENO"; then :
13688   wine_cv_linux_gethostbyname_r_6=yes
13689 else
13690   wine_cv_linux_gethostbyname_r_6=no
13691
13692 fi
13693 rm -f core conftest.err conftest.$ac_objext \
13694     conftest$ac_exeext conftest.$ac_ext
13695
13696 fi
13697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_gethostbyname_r_6" >&5
13698 $as_echo "$wine_cv_linux_gethostbyname_r_6" >&6; }
13699    if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
13700    then
13701
13702 $as_echo "#define HAVE_LINUX_GETHOSTBYNAME_R_6 1" >>confdefs.h
13703
13704    fi
13705
13706 if test "$ac_cv_header_linux_joystick_h" = "yes"
13707 then
13708    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
13709 $as_echo_n "checking whether linux/joystick.h uses the Linux 2.2+ API... " >&6; }
13710 if test "${wine_cv_linux_joystick_22_api+set}" = set; then :
13711   $as_echo_n "(cached) " >&6
13712 else
13713   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13714 /* end confdefs.h.  */
13715
13716         #include <sys/ioctl.h>
13717         #include <sys/types.h>
13718         #include <linux/joystick.h>
13719
13720         struct js_event blub;
13721         #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
13722         #error "no 2.2 header"
13723         #endif
13724
13725 int
13726 main ()
13727 {
13728 /*empty*/
13729   ;
13730   return 0;
13731 }
13732 _ACEOF
13733 if ac_fn_c_try_compile "$LINENO"; then :
13734   wine_cv_linux_joystick_22_api=yes
13735 else
13736   wine_cv_linux_joystick_22_api=no
13737 fi
13738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13739
13740 fi
13741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_joystick_22_api" >&5
13742 $as_echo "$wine_cv_linux_joystick_22_api" >&6; }
13743    if test "$wine_cv_linux_joystick_22_api" = "yes"
13744    then
13745
13746 $as_echo "#define HAVE_LINUX_22_JOYSTICK_API 1" >>confdefs.h
13747
13748    fi
13749 fi
13750
13751
13752 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bfree" "ac_cv_member_struct_statfs_f_bfree" "#include <sys/types.h>
13753 #ifdef HAVE_SYS_PARAM_H
13754 # include <sys/param.h>
13755 #endif
13756 #ifdef HAVE_SYS_MOUNT_H
13757 # include <sys/mount.h>
13758 #endif
13759 #ifdef HAVE_SYS_VFS_H
13760 # include <sys/vfs.h>
13761 #endif
13762 #ifdef HAVE_SYS_STATFS_H
13763 # include <sys/statfs.h>
13764 #endif
13765 "
13766 if test "x$ac_cv_member_struct_statfs_f_bfree" = x""yes; then :
13767
13768 cat >>confdefs.h <<_ACEOF
13769 #define HAVE_STRUCT_STATFS_F_BFREE 1
13770 _ACEOF
13771
13772
13773 fi
13774 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bavail" "ac_cv_member_struct_statfs_f_bavail" "#include <sys/types.h>
13775 #ifdef HAVE_SYS_PARAM_H
13776 # include <sys/param.h>
13777 #endif
13778 #ifdef HAVE_SYS_MOUNT_H
13779 # include <sys/mount.h>
13780 #endif
13781 #ifdef HAVE_SYS_VFS_H
13782 # include <sys/vfs.h>
13783 #endif
13784 #ifdef HAVE_SYS_STATFS_H
13785 # include <sys/statfs.h>
13786 #endif
13787 "
13788 if test "x$ac_cv_member_struct_statfs_f_bavail" = x""yes; then :
13789
13790 cat >>confdefs.h <<_ACEOF
13791 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
13792 _ACEOF
13793
13794
13795 fi
13796 ac_fn_c_check_member "$LINENO" "struct statfs" "f_frsize" "ac_cv_member_struct_statfs_f_frsize" "#include <sys/types.h>
13797 #ifdef HAVE_SYS_PARAM_H
13798 # include <sys/param.h>
13799 #endif
13800 #ifdef HAVE_SYS_MOUNT_H
13801 # include <sys/mount.h>
13802 #endif
13803 #ifdef HAVE_SYS_VFS_H
13804 # include <sys/vfs.h>
13805 #endif
13806 #ifdef HAVE_SYS_STATFS_H
13807 # include <sys/statfs.h>
13808 #endif
13809 "
13810 if test "x$ac_cv_member_struct_statfs_f_frsize" = x""yes; then :
13811
13812 cat >>confdefs.h <<_ACEOF
13813 #define HAVE_STRUCT_STATFS_F_FRSIZE 1
13814 _ACEOF
13815
13816
13817 fi
13818 ac_fn_c_check_member "$LINENO" "struct statfs" "f_ffree" "ac_cv_member_struct_statfs_f_ffree" "#include <sys/types.h>
13819 #ifdef HAVE_SYS_PARAM_H
13820 # include <sys/param.h>
13821 #endif
13822 #ifdef HAVE_SYS_MOUNT_H
13823 # include <sys/mount.h>
13824 #endif
13825 #ifdef HAVE_SYS_VFS_H
13826 # include <sys/vfs.h>
13827 #endif
13828 #ifdef HAVE_SYS_STATFS_H
13829 # include <sys/statfs.h>
13830 #endif
13831 "
13832 if test "x$ac_cv_member_struct_statfs_f_ffree" = x""yes; then :
13833
13834 cat >>confdefs.h <<_ACEOF
13835 #define HAVE_STRUCT_STATFS_F_FFREE 1
13836 _ACEOF
13837
13838
13839 fi
13840 ac_fn_c_check_member "$LINENO" "struct statfs" "f_favail" "ac_cv_member_struct_statfs_f_favail" "#include <sys/types.h>
13841 #ifdef HAVE_SYS_PARAM_H
13842 # include <sys/param.h>
13843 #endif
13844 #ifdef HAVE_SYS_MOUNT_H
13845 # include <sys/mount.h>
13846 #endif
13847 #ifdef HAVE_SYS_VFS_H
13848 # include <sys/vfs.h>
13849 #endif
13850 #ifdef HAVE_SYS_STATFS_H
13851 # include <sys/statfs.h>
13852 #endif
13853 "
13854 if test "x$ac_cv_member_struct_statfs_f_favail" = x""yes; then :
13855
13856 cat >>confdefs.h <<_ACEOF
13857 #define HAVE_STRUCT_STATFS_F_FAVAIL 1
13858 _ACEOF
13859
13860
13861 fi
13862 ac_fn_c_check_member "$LINENO" "struct statfs" "f_namelen" "ac_cv_member_struct_statfs_f_namelen" "#include <sys/types.h>
13863 #ifdef HAVE_SYS_PARAM_H
13864 # include <sys/param.h>
13865 #endif
13866 #ifdef HAVE_SYS_MOUNT_H
13867 # include <sys/mount.h>
13868 #endif
13869 #ifdef HAVE_SYS_VFS_H
13870 # include <sys/vfs.h>
13871 #endif
13872 #ifdef HAVE_SYS_STATFS_H
13873 # include <sys/statfs.h>
13874 #endif
13875 "
13876 if test "x$ac_cv_member_struct_statfs_f_namelen" = x""yes; then :
13877
13878 cat >>confdefs.h <<_ACEOF
13879 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
13880 _ACEOF
13881
13882
13883 fi
13884
13885
13886 ac_fn_c_check_member "$LINENO" "struct statvfs" "f_blocks" "ac_cv_member_struct_statvfs_f_blocks" "#ifdef HAVE_SYS_STATVFS_H
13887 #include <sys/statvfs.h>
13888 #endif
13889 "
13890 if test "x$ac_cv_member_struct_statvfs_f_blocks" = x""yes; then :
13891
13892 cat >>confdefs.h <<_ACEOF
13893 #define HAVE_STRUCT_STATVFS_F_BLOCKS 1
13894 _ACEOF
13895
13896
13897 fi
13898
13899
13900 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_accrights" "ac_cv_member_struct_msghdr_msg_accrights" "#include <sys/types.h>
13901 #ifdef HAVE_SYS_SOCKET_H
13902 # include <sys/socket.h>
13903 #endif
13904 #ifdef HAVE_SYS_UN_H
13905 # include <sys/un.h>
13906 #endif
13907 "
13908 if test "x$ac_cv_member_struct_msghdr_msg_accrights" = x""yes; then :
13909
13910 cat >>confdefs.h <<_ACEOF
13911 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
13912 _ACEOF
13913
13914
13915 fi
13916 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
13917 #ifdef HAVE_SYS_SOCKET_H
13918 # include <sys/socket.h>
13919 #endif
13920 #ifdef HAVE_SYS_UN_H
13921 # include <sys/un.h>
13922 #endif
13923 "
13924 if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then :
13925
13926 cat >>confdefs.h <<_ACEOF
13927 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
13928 _ACEOF
13929
13930
13931 fi
13932 ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" "#include <sys/types.h>
13933 #ifdef HAVE_SYS_SOCKET_H
13934 # include <sys/socket.h>
13935 #endif
13936 #ifdef HAVE_SYS_UN_H
13937 # include <sys/un.h>
13938 #endif
13939 "
13940 if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = x""yes; then :
13941
13942 cat >>confdefs.h <<_ACEOF
13943 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
13944 _ACEOF
13945
13946
13947 fi
13948
13949
13950 ac_fn_c_check_member "$LINENO" "scsireq_t" "cmd" "ac_cv_member_scsireq_t_cmd" "#include <sys/types.h>
13951 #ifdef HAVE_SCSI_SG_H
13952 #include <scsi/sg.h>
13953 #endif
13954 "
13955 if test "x$ac_cv_member_scsireq_t_cmd" = x""yes; then :
13956
13957 cat >>confdefs.h <<_ACEOF
13958 #define HAVE_SCSIREQ_T_CMD 1
13959 _ACEOF
13960
13961
13962 fi
13963 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>
13964 #ifdef HAVE_SCSI_SG_H
13965 #include <scsi/sg.h>
13966 #endif
13967 "
13968 if test "x$ac_cv_member_sg_io_hdr_t_interface_id" = x""yes; then :
13969
13970 cat >>confdefs.h <<_ACEOF
13971 #define HAVE_SG_IO_HDR_T_INTERFACE_ID 1
13972 _ACEOF
13973
13974
13975 fi
13976
13977
13978 ac_fn_c_check_member "$LINENO" "siginfo_t" "si_fd" "ac_cv_member_siginfo_t_si_fd" "#include <signal.h>
13979 "
13980 if test "x$ac_cv_member_siginfo_t_si_fd" = x""yes; then :
13981
13982 cat >>confdefs.h <<_ACEOF
13983 #define HAVE_SIGINFO_T_SI_FD 1
13984 _ACEOF
13985
13986
13987 fi
13988
13989
13990 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blksiz" "ac_cv_member_struct_mtget_mt_blksiz" "#include <sys/types.h>
13991 #ifdef HAVE_SYS_MTIO_H
13992 #include <sys/mtio.h>
13993 #endif
13994 "
13995 if test "x$ac_cv_member_struct_mtget_mt_blksiz" = x""yes; then :
13996
13997 cat >>confdefs.h <<_ACEOF
13998 #define HAVE_STRUCT_MTGET_MT_BLKSIZ 1
13999 _ACEOF
14000
14001
14002 fi
14003 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_gstat" "ac_cv_member_struct_mtget_mt_gstat" "#include <sys/types.h>
14004 #ifdef HAVE_SYS_MTIO_H
14005 #include <sys/mtio.h>
14006 #endif
14007 "
14008 if test "x$ac_cv_member_struct_mtget_mt_gstat" = x""yes; then :
14009
14010 cat >>confdefs.h <<_ACEOF
14011 #define HAVE_STRUCT_MTGET_MT_GSTAT 1
14012 _ACEOF
14013
14014
14015 fi
14016 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blkno" "ac_cv_member_struct_mtget_mt_blkno" "#include <sys/types.h>
14017 #ifdef HAVE_SYS_MTIO_H
14018 #include <sys/mtio.h>
14019 #endif
14020 "
14021 if test "x$ac_cv_member_struct_mtget_mt_blkno" = x""yes; then :
14022
14023 cat >>confdefs.h <<_ACEOF
14024 #define HAVE_STRUCT_MTGET_MT_BLKNO 1
14025 _ACEOF
14026
14027
14028 fi
14029
14030
14031 ac_fn_c_check_member "$LINENO" "struct option" "name" "ac_cv_member_struct_option_name" "#ifdef HAVE_GETOPT_H
14032 #include <getopt.h>
14033 #endif
14034 "
14035 if test "x$ac_cv_member_struct_option_name" = x""yes; then :
14036
14037 cat >>confdefs.h <<_ACEOF
14038 #define HAVE_STRUCT_OPTION_NAME 1
14039 _ACEOF
14040
14041
14042 fi
14043
14044
14045 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
14046 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
14047
14048 cat >>confdefs.h <<_ACEOF
14049 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
14050 _ACEOF
14051
14052
14053 fi
14054 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
14055 if test "x$ac_cv_member_struct_stat_st_mtim" = x""yes; then :
14056
14057 cat >>confdefs.h <<_ACEOF
14058 #define HAVE_STRUCT_STAT_ST_MTIM 1
14059 _ACEOF
14060
14061
14062 fi
14063 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctim" "ac_cv_member_struct_stat_st_ctim" "$ac_includes_default"
14064 if test "x$ac_cv_member_struct_stat_st_ctim" = x""yes; then :
14065
14066 cat >>confdefs.h <<_ACEOF
14067 #define HAVE_STRUCT_STAT_ST_CTIM 1
14068 _ACEOF
14069
14070
14071 fi
14072 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
14073 if test "x$ac_cv_member_struct_stat_st_atim" = x""yes; then :
14074
14075 cat >>confdefs.h <<_ACEOF
14076 #define HAVE_STRUCT_STAT_ST_ATIM 1
14077 _ACEOF
14078
14079
14080 fi
14081
14082
14083 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
14084 #include <sys/types.h>
14085 #endif
14086 #ifdef HAVE_NETINET_IN_H
14087 #include <netinet/in.h>
14088 #endif
14089 "
14090 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = x""yes; then :
14091
14092 cat >>confdefs.h <<_ACEOF
14093 #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
14094 _ACEOF
14095
14096
14097 fi
14098
14099
14100 ac_fn_c_check_member "$LINENO" "ns_msg" "_msg_ptr" "ac_cv_member_ns_msg__msg_ptr" "#ifdef HAVE_SYS_TYPES_H
14101 #include <sys/types.h>
14102 #endif
14103 #ifdef HAVE_NETINET_IN_H
14104 # include <netinet/in.h>
14105 #endif
14106 #ifdef HAVE_ARPA_NAMESER_H
14107 # include <arpa/nameser.h>
14108 #endif
14109 "
14110 if test "x$ac_cv_member_ns_msg__msg_ptr" = x""yes; then :
14111
14112 cat >>confdefs.h <<_ACEOF
14113 #define HAVE_NS_MSG__MSG_PTR 1
14114 _ACEOF
14115
14116
14117 fi
14118
14119
14120 ac_fn_c_check_member "$LINENO" "struct icmpstat" "icps_outhist" "ac_cv_member_struct_icmpstat_icps_outhist" "#ifdef HAVE_SYS_TYPES_H
14121 #include <sys/types.h>
14122 #endif
14123 #ifdef HAVE_ALIAS_H
14124 #include <alias.h>
14125 #endif
14126 #ifdef HAVE_SYS_SOCKET_H
14127 #include <sys/socket.h>
14128 #endif
14129 #ifdef HAVE_SYS_SOCKETVAR_H
14130 #include <sys/socketvar.h>
14131 #endif
14132 #ifdef HAVE_SYS_TIMEOUT_H
14133 #include <sys/timeout.h>
14134 #endif
14135 #ifdef HAVE_NETINET_IN_H
14136 #include <netinet/in.h>
14137 #endif
14138 #ifdef HAVE_NETINET_IN_SYSTM_H
14139 #include <netinet/in_systm.h>
14140 #endif
14141 #ifdef HAVE_NETINET_IP_H
14142 #include <netinet/ip.h>
14143 #endif
14144 #ifdef HAVE_NETINET_IP_VAR_H
14145 #include <netinet/ip_var.h>
14146 #endif
14147 #ifdef HAVE_NETINET_IP_ICMP_H
14148 #include <netinet/ip_icmp.h>
14149 #endif
14150 #ifdef HAVE_NETINET_ICMP_VAR
14151 #include <netinet/icmp_var.h>
14152 #endif
14153 "
14154 if test "x$ac_cv_member_struct_icmpstat_icps_outhist" = x""yes; then :
14155
14156 cat >>confdefs.h <<_ACEOF
14157 #define HAVE_STRUCT_ICMPSTAT_ICPS_OUTHIST 1
14158 _ACEOF
14159
14160
14161 fi
14162
14163
14164 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "#ifdef HAVE_SYS_TYPES_H
14165 #include <sys/types.h>
14166 #endif
14167 #ifdef HAVE_NET_IF_H
14168 # include <net/if.h>
14169 #endif
14170 "
14171 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
14172
14173 cat >>confdefs.h <<_ACEOF
14174 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
14175 _ACEOF
14176
14177
14178 fi
14179
14180
14181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone variable" >&5
14182 $as_echo_n "checking for timezone variable... " >&6; }
14183 if test "${ac_cv_have_timezone+set}" = set; then :
14184   $as_echo_n "(cached) " >&6
14185 else
14186   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14187 /* end confdefs.h.  */
14188 #include <time.h>
14189 int
14190 main ()
14191 {
14192 timezone = 1
14193   ;
14194   return 0;
14195 }
14196 _ACEOF
14197 if ac_fn_c_try_link "$LINENO"; then :
14198   ac_cv_have_timezone="yes"
14199 else
14200   ac_cv_have_timezone="no"
14201 fi
14202 rm -f core conftest.err conftest.$ac_objext \
14203     conftest$ac_exeext conftest.$ac_ext
14204 fi
14205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_timezone" >&5
14206 $as_echo "$ac_cv_have_timezone" >&6; }
14207 if test "$ac_cv_have_timezone" = "yes"
14208 then
14209
14210 $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
14211
14212 fi
14213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daylight variable" >&5
14214 $as_echo_n "checking for daylight variable... " >&6; }
14215 if test "${ac_cv_have_daylight+set}" = set; then :
14216   $as_echo_n "(cached) " >&6
14217 else
14218   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14219 /* end confdefs.h.  */
14220 #include <time.h>
14221 int
14222 main ()
14223 {
14224 daylight = 1
14225   ;
14226   return 0;
14227 }
14228 _ACEOF
14229 if ac_fn_c_try_link "$LINENO"; then :
14230   ac_cv_have_daylight="yes"
14231 else
14232   ac_cv_have_daylight="no"
14233 fi
14234 rm -f core conftest.err conftest.$ac_objext \
14235     conftest$ac_exeext conftest.$ac_ext
14236 fi
14237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_daylight" >&5
14238 $as_echo "$ac_cv_have_daylight" >&6; }
14239 if test "$ac_cv_have_daylight" = "yes"
14240 then
14241
14242 $as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h
14243
14244 fi
14245
14246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf" >&5
14247 $as_echo_n "checking for isinf... " >&6; }
14248 if test "${ac_cv_have_isinf+set}" = set; then :
14249   $as_echo_n "(cached) " >&6
14250 else
14251   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14252 /* end confdefs.h.  */
14253 #include <math.h>
14254 int
14255 main ()
14256 {
14257 float f = 0.0; int i=isinf(f)
14258   ;
14259   return 0;
14260 }
14261 _ACEOF
14262 if ac_fn_c_try_link "$LINENO"; then :
14263   ac_cv_have_isinf="yes"
14264 else
14265   ac_cv_have_isinf="no"
14266 fi
14267 rm -f core conftest.err conftest.$ac_objext \
14268     conftest$ac_exeext conftest.$ac_ext
14269 fi
14270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isinf" >&5
14271 $as_echo "$ac_cv_have_isinf" >&6; }
14272 if test "$ac_cv_have_isinf" = "yes"
14273 then
14274
14275 $as_echo "#define HAVE_ISINF 1" >>confdefs.h
14276
14277 fi
14278
14279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan" >&5
14280 $as_echo_n "checking for isnan... " >&6; }
14281 if test "${ac_cv_have_isnan+set}" = set; then :
14282   $as_echo_n "(cached) " >&6
14283 else
14284   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14285 /* end confdefs.h.  */
14286 #include <math.h>
14287 int
14288 main ()
14289 {
14290 float f = 0.0; int i=isnan(f)
14291   ;
14292   return 0;
14293 }
14294 _ACEOF
14295 if ac_fn_c_try_link "$LINENO"; then :
14296   ac_cv_have_isnan="yes"
14297 else
14298   ac_cv_have_isnan="no"
14299 fi
14300 rm -f core conftest.err conftest.$ac_objext \
14301     conftest$ac_exeext conftest.$ac_ext
14302 fi
14303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isnan" >&5
14304 $as_echo "$ac_cv_have_isnan" >&6; }
14305 if test "$ac_cv_have_isnan" = "yes"
14306 then
14307
14308 $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
14309
14310 fi
14311
14312
14313 case $host_cpu in
14314   *i[3456789]86*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __i386__" >&5
14315 $as_echo_n "checking whether we need to define __i386__... " >&6; }
14316 if test "${ac_cv_cpp_def___i386__+set}" = set; then :
14317   $as_echo_n "(cached) " >&6
14318 else
14319   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14320 /* end confdefs.h.  */
14321 #ifndef __i386__
14322 yes
14323 #endif
14324 _ACEOF
14325 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14326   $EGREP "yes" >/dev/null 2>&1; then :
14327   ac_cv_cpp_def___i386__=yes
14328 else
14329   ac_cv_cpp_def___i386__=no
14330 fi
14331 rm -f conftest*
14332
14333 fi
14334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___i386__" >&5
14335 $as_echo "$ac_cv_cpp_def___i386__" >&6; }
14336 if test $ac_cv_cpp_def___i386__ = yes; then :
14337   CFLAGS="$CFLAGS -D__i386__"
14338   LINTFLAGS="$LINTFLAGS -D__i386__"
14339 fi ;;
14340   *x86_64*)         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __x86_64__" >&5
14341 $as_echo_n "checking whether we need to define __x86_64__... " >&6; }
14342 if test "${ac_cv_cpp_def___x86_64__+set}" = set; then :
14343   $as_echo_n "(cached) " >&6
14344 else
14345   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14346 /* end confdefs.h.  */
14347 #ifndef __x86_64__
14348 yes
14349 #endif
14350 _ACEOF
14351 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14352   $EGREP "yes" >/dev/null 2>&1; then :
14353   ac_cv_cpp_def___x86_64__=yes
14354 else
14355   ac_cv_cpp_def___x86_64__=no
14356 fi
14357 rm -f conftest*
14358
14359 fi
14360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___x86_64__" >&5
14361 $as_echo "$ac_cv_cpp_def___x86_64__" >&6; }
14362 if test $ac_cv_cpp_def___x86_64__ = yes; then :
14363   CFLAGS="$CFLAGS -D__x86_64__"
14364   LINTFLAGS="$LINTFLAGS -D__x86_64__"
14365 fi ;;
14366   *alpha*)          { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __ALPHA__" >&5
14367 $as_echo_n "checking whether we need to define __ALPHA__... " >&6; }
14368 if test "${ac_cv_cpp_def___ALPHA__+set}" = set; then :
14369   $as_echo_n "(cached) " >&6
14370 else
14371   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14372 /* end confdefs.h.  */
14373 #ifndef __ALPHA__
14374 yes
14375 #endif
14376 _ACEOF
14377 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14378   $EGREP "yes" >/dev/null 2>&1; then :
14379   ac_cv_cpp_def___ALPHA__=yes
14380 else
14381   ac_cv_cpp_def___ALPHA__=no
14382 fi
14383 rm -f conftest*
14384
14385 fi
14386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___ALPHA__" >&5
14387 $as_echo "$ac_cv_cpp_def___ALPHA__" >&6; }
14388 if test $ac_cv_cpp_def___ALPHA__ = yes; then :
14389   CFLAGS="$CFLAGS -D__ALPHA__"
14390   LINTFLAGS="$LINTFLAGS -D__ALPHA__"
14391 fi ;;
14392   *sparc*)          { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sparc__" >&5
14393 $as_echo_n "checking whether we need to define __sparc__... " >&6; }
14394 if test "${ac_cv_cpp_def___sparc__+set}" = set; then :
14395   $as_echo_n "(cached) " >&6
14396 else
14397   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14398 /* end confdefs.h.  */
14399 #ifndef __sparc__
14400 yes
14401 #endif
14402 _ACEOF
14403 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14404   $EGREP "yes" >/dev/null 2>&1; then :
14405   ac_cv_cpp_def___sparc__=yes
14406 else
14407   ac_cv_cpp_def___sparc__=no
14408 fi
14409 rm -f conftest*
14410
14411 fi
14412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sparc__" >&5
14413 $as_echo "$ac_cv_cpp_def___sparc__" >&6; }
14414 if test $ac_cv_cpp_def___sparc__ = yes; then :
14415   CFLAGS="$CFLAGS -D__sparc__"
14416   LINTFLAGS="$LINTFLAGS -D__sparc__"
14417 fi ;;
14418   *powerpc*)        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __powerpc__" >&5
14419 $as_echo_n "checking whether we need to define __powerpc__... " >&6; }
14420 if test "${ac_cv_cpp_def___powerpc__+set}" = set; then :
14421   $as_echo_n "(cached) " >&6
14422 else
14423   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14424 /* end confdefs.h.  */
14425 #ifndef __powerpc__
14426 yes
14427 #endif
14428 _ACEOF
14429 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14430   $EGREP "yes" >/dev/null 2>&1; then :
14431   ac_cv_cpp_def___powerpc__=yes
14432 else
14433   ac_cv_cpp_def___powerpc__=no
14434 fi
14435 rm -f conftest*
14436
14437 fi
14438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___powerpc__" >&5
14439 $as_echo "$ac_cv_cpp_def___powerpc__" >&6; }
14440 if test $ac_cv_cpp_def___powerpc__ = yes; then :
14441   CFLAGS="$CFLAGS -D__powerpc__"
14442   LINTFLAGS="$LINTFLAGS -D__powerpc__"
14443 fi ;;
14444 esac
14445
14446 case $host_vendor in
14447   *sun*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sun__" >&5
14448 $as_echo_n "checking whether we need to define __sun__... " >&6; }
14449 if test "${ac_cv_cpp_def___sun__+set}" = set; then :
14450   $as_echo_n "(cached) " >&6
14451 else
14452   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14453 /* end confdefs.h.  */
14454 #ifndef __sun__
14455 yes
14456 #endif
14457 _ACEOF
14458 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14459   $EGREP "yes" >/dev/null 2>&1; then :
14460   ac_cv_cpp_def___sun__=yes
14461 else
14462   ac_cv_cpp_def___sun__=no
14463 fi
14464 rm -f conftest*
14465
14466 fi
14467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sun__" >&5
14468 $as_echo "$ac_cv_cpp_def___sun__" >&6; }
14469 if test $ac_cv_cpp_def___sun__ = yes; then :
14470   CFLAGS="$CFLAGS -D__sun__"
14471   LINTFLAGS="$LINTFLAGS -D__sun__"
14472 fi ;;
14473 esac
14474
14475
14476
14477
14478
14479 ac_config_commands="$ac_config_commands include/stamp-h"
14480
14481
14482 ALL_MAKEFILE_DEPENDS="
14483 # Rules automatically generated by configure
14484
14485 .INIT: Makefile
14486 .MAKEFILEDEPS:
14487 all: Makefile
14488 Makefile: Makefile.in Make.vars.in Make.rules config.status
14489         @./config.status Make.tmp Makefile"
14490
14491 ALL_POT_FILES=""
14492 ALL_WINETEST_DEPENDS="# Test binaries"
14493
14494 ALL_TEST_BINARIES=""
14495
14496
14497 wine_fn_append_file ()
14498 {
14499     as_fn_append $1 " \\$as_nl  $2"
14500 }
14501
14502 wine_fn_append_rule ()
14503 {
14504     as_fn_append $1 "$as_nl$2"
14505 }
14506
14507 wine_fn_has_flag ()
14508 {
14509     expr ",$2," : ".*,$1,.*" >/dev/null
14510 }
14511
14512 wine_fn_all_dir_rules ()
14513 {
14514     ac_dir=$1
14515     ac_alldeps=$2
14516     ac_makedep="\$(MAKEDEP)"
14517     ac_input=Make.vars.in:$ac_dir/Makefile.in
14518     if test $ac_dir != tools
14519     then
14520                 ac_alldeps="$2 $ac_makedep"
14521     fi
14522     case $2 in
14523       *.in) ac_input=$ac_input:$2 ;;
14524       *) ac_makedep="$2 $ac_makedep" ;;
14525     esac
14526
14527     wine_fn_append_file ALL_DIRS $ac_dir
14528     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14529 "__clean__: $ac_dir/__clean__
14530 .PHONY: $ac_dir/__clean__
14531 $ac_dir/__clean__: $ac_dir/Makefile
14532         @cd $ac_dir && \$(MAKE) clean
14533         \$(RM) $ac_dir/Makefile
14534 $ac_dir/Makefile: $ac_dir/Makefile.in Make.vars.in config.status $ac_alldeps
14535         @./config.status --file $ac_dir/Makefile:$ac_input && cd $ac_dir && \$(MAKE) depend
14536 depend: $ac_dir/__depend__
14537 .PHONY: $ac_dir/__depend__
14538 $ac_dir/__depend__: $ac_makedep dummy
14539         @./config.status --file $ac_dir/Makefile:$ac_input && cd $ac_dir && \$(MAKE) depend"
14540 }
14541
14542 wine_fn_config_makefile ()
14543 {
14544     ac_dir=$1
14545     ac_enable=$2
14546     if eval test \"x\$"$ac_enable"\" = x"no"; then :
14547   return 0
14548 fi
14549
14550     wine_fn_all_dir_rules $ac_dir Make.rules
14551     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14552 "all: $ac_dir
14553 .PHONY: $ac_dir
14554 $ac_dir: $ac_dir/Makefile dummy
14555         @cd $ac_dir && \$(MAKE)
14556 install:: $ac_dir
14557         @cd $ac_dir && \$(MAKE) install
14558 install-lib:: $ac_dir
14559         @cd $ac_dir && \$(MAKE) install-lib
14560 install-dev:: $ac_dir
14561         @cd $ac_dir && \$(MAKE) install-dev
14562 uninstall:: $ac_dir/Makefile
14563         @cd $ac_dir && \$(MAKE) uninstall"
14564 }
14565
14566 wine_fn_config_lib ()
14567 {
14568     ac_name=$1
14569     ac_dir=dlls/$ac_name
14570     wine_fn_all_dir_rules $ac_dir dlls/Makeimplib.rules
14571     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14572 "all __builddeps__: $ac_dir
14573 $ac_dir: $ac_dir/Makefile tools/widl tools/winebuild tools/winegcc include dummy
14574         @cd $ac_dir && \$(MAKE)
14575 install install-dev:: $ac_dir
14576         @cd $ac_dir && \$(MAKE) install
14577 uninstall:: $ac_dir/Makefile
14578         @cd $ac_dir && \$(MAKE) uninstall"
14579 }
14580
14581 wine_fn_config_dll ()
14582 {
14583     ac_name=$1
14584     ac_dir=dlls/$ac_name
14585     ac_enable=$2
14586     ac_flags=$3
14587     ac_implib=${4:-$ac_name}
14588     ac_file=$ac_dir/lib$ac_implib
14589     ac_deps="tools/widl tools/winebuild tools/winegcc include"
14590     ac_implibflags=""
14591
14592     case $ac_name in
14593       *16) ac_implibflags=" -m16" ;;
14594     esac
14595
14596     wine_fn_all_dir_rules $ac_dir dlls/Makedll.rules
14597
14598     if eval test \"x\$"$ac_enable"\" = x"no"; then :
14599                 test "$ac_enable" != enable_win16 || return 0
14600 else
14601   wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14602 "all: $ac_dir
14603 .PHONY: $ac_dir
14604 $ac_dir: $ac_dir/Makefile __builddeps__ dummy
14605         @cd $ac_dir && \$(MAKE)
14606 install:: $ac_dir/Makefile __builddeps__
14607         @cd $ac_dir && \$(MAKE) install
14608 install-lib:: $ac_dir/Makefile __builddeps__
14609         @cd $ac_dir && \$(MAKE) install-lib
14610 uninstall manpages htmlpages sgmlpages xmlpages:: $ac_dir/Makefile
14611         @cd $ac_dir && \$(MAKE) \$@"
14612
14613         if test "x$enable_maintainer_mode" = xyes
14614         then
14615             if wine_fn_has_flag mc $ac_flags
14616             then
14617                 wine_fn_append_file ALL_POT_FILES $ac_dir/msg.pot
14618                 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14619 "$ac_dir/msg.pot: $ac_dir"
14620             fi
14621             if wine_fn_has_flag po $ac_flags
14622             then
14623                 wine_fn_append_file ALL_POT_FILES $ac_dir/rsrc.pot
14624                 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14625 "$ac_dir/rsrc.pot: $ac_dir"
14626             fi
14627         fi
14628 fi
14629
14630     if wine_fn_has_flag staticimplib $ac_flags
14631     then
14632         wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14633 "__builddeps__: $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT
14634 $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT $ac_file.cross.a: $ac_deps
14635 $ac_file.def: $ac_dir/$ac_name.spec $ac_dir/Makefile
14636         @cd $ac_dir && \$(MAKE) lib$ac_implib.def
14637 $ac_file.$STATIC_IMPLIBEXT: $ac_dir/Makefile dummy
14638         @cd $ac_dir && \$(MAKE) lib$ac_implib.$STATIC_IMPLIBEXT
14639 install-dev:: $ac_dir/Makefile __builddeps__
14640         @cd $ac_dir && \$(MAKE) install-dev"
14641         if test "x$CROSSTEST_DISABLE" = x
14642         then
14643             wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14644 "__builddeps__: $ac_file.cross.a
14645 $ac_file.cross.a: $ac_dir/Makefile dummy
14646         @cd $ac_dir && \$(MAKE) lib$ac_implib.cross.a"
14647         fi
14648
14649     elif wine_fn_has_flag implib $ac_flags
14650     then
14651         wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14652 "__builddeps__: $ac_file.$IMPLIBEXT
14653 $ac_file.def: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
14654         \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --def -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec
14655 $ac_file.a: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
14656         \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --implib -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec
14657 install-dev:: $ac_dir/Makefile __builddeps__
14658         @cd $ac_dir && \$(MAKE) install-dev"
14659         if test "x$CROSSTEST_DISABLE" = x
14660         then
14661             wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14662 "__builddeps__: $ac_file.cross.a
14663 $ac_file.cross.a: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
14664         \$(WINEBUILD) \$(CROSSTARGET:%=-b %)$ac_implibflags -w --implib -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec"
14665         fi
14666
14667         if test "$ac_name" != "$ac_implib"
14668         then
14669             wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14670 "__builddeps__: dlls/lib$ac_implib.$IMPLIBEXT
14671 dlls/lib$ac_implib.$IMPLIBEXT: $ac_file.$IMPLIBEXT
14672         \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.$IMPLIBEXT \$@
14673 clean::
14674         \$(RM) dlls/lib$ac_implib.$IMPLIBEXT"
14675             if test "x$CROSSTEST_DISABLE" = x
14676             then
14677                 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14678 "__builddeps__: dlls/lib$ac_implib.cross.a
14679 dlls/lib$ac_implib.cross.a: $ac_file.cross.a
14680         \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.cross.a \$@"
14681             fi
14682         fi
14683     fi
14684 }
14685
14686 wine_fn_config_program ()
14687 {
14688     ac_name=$1
14689     ac_dir=programs/$ac_name
14690     ac_enable=$2
14691     ac_flags=$3
14692     wine_fn_all_dir_rules $ac_dir 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 "all: $ac_dir
14699 .PHONY: $ac_dir
14700 $ac_dir: $ac_dir/Makefile __builddeps__ dummy
14701         @cd $ac_dir && \$(MAKE)"
14702
14703     if test "x$enable_maintainer_mode" = xyes
14704     then
14705         if wine_fn_has_flag mc $ac_flags
14706         then
14707             wine_fn_append_file ALL_POT_FILES $ac_dir/msg.pot
14708             wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14709 "$ac_dir/msg.pot: $ac_dir"
14710         fi
14711         if wine_fn_has_flag po $ac_flags
14712         then
14713             wine_fn_append_file ALL_POT_FILES $ac_dir/rsrc.pot
14714             wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14715 "$ac_dir/rsrc.pot: $ac_dir"
14716         fi
14717     fi
14718
14719     wine_fn_has_flag install $ac_flags || return
14720     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14721 "install install-lib:: $ac_dir/Makefile __builddeps__
14722         @cd $ac_dir && \$(MAKE) install
14723 uninstall:: $ac_dir/Makefile
14724         @cd $ac_dir && \$(MAKE) uninstall"
14725     if test -n "$DLLEXT" -a "x$enable_tools" != xno && wine_fn_has_flag installbin $ac_flags
14726     then
14727         wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14728 "install install-lib:: tools \$(DESTDIR)\$(bindir)
14729         \$(INSTALL_SCRIPT) tools/wineapploader \$(DESTDIR)\$(bindir)/$ac_name
14730 uninstall::
14731         \$(RM) \$(DESTDIR)\$(bindir)/$ac_name"
14732     fi
14733 fi
14734 }
14735
14736 wine_fn_config_test ()
14737 {
14738     ac_dir=$1
14739     ac_name=$2
14740     wine_fn_append_file ALL_TEST_BINARIES $ac_name.exe
14741     wine_fn_append_rule ALL_WINETEST_DEPENDS \
14742 "$ac_name.exe: \$(top_builddir)/$ac_dir/$ac_name.exe$DLLEXT
14743         cp \$(top_builddir)/$ac_dir/$ac_name.exe$DLLEXT \$@ && \$(STRIP) \$@
14744 $ac_name.rc:
14745         echo \"$ac_name.exe TESTRES \\\"$ac_name.exe\\\"\" >\$@ || (\$(RM) \$@ && false)
14746 $ac_name.res: $ac_name.rc $ac_name.exe"
14747     wine_fn_all_dir_rules $ac_dir Maketest.rules
14748
14749     if test "x$enable_tests" = x""no; then :
14750
14751 else
14752   wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14753 "all programs/winetest: $ac_dir
14754 .PHONY: $ac_dir
14755 $ac_dir: $ac_dir/Makefile __builddeps__ dummy
14756         @cd $ac_dir && \$(MAKE)
14757 test: $ac_dir/__test__
14758 .PHONY: $ac_dir/__test__
14759 $ac_dir/__test__: dummy
14760         @cd $ac_dir && \$(MAKE) test
14761 testclean::
14762         \$(RM) $ac_dir/*.ok"
14763
14764         if test "x$CROSSTEST_DISABLE" = x
14765         then
14766             wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14767 "crosstest: $ac_dir/__crosstest__
14768 .PHONY: $ac_dir/__crosstest__
14769 $ac_dir/__crosstest__: $ac_dir/Makefile __builddeps__ dummy
14770         @cd $ac_dir && \$(MAKE) crosstest"
14771         fi
14772 fi
14773 }
14774
14775 wine_fn_config_tool ()
14776 {
14777     ac_dir=$1
14778     wine_fn_all_dir_rules $ac_dir Make.rules
14779
14780     if test "x$enable_tools" = x""no; then :
14781
14782 else
14783   case $ac_dir in
14784             tools) wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14785 "install:: $ac_dir
14786         @cd $ac_dir && \$(MAKE) install
14787 install-lib:: $ac_dir
14788         @cd $ac_dir && \$(MAKE) install-lib
14789 install-dev:: $ac_dir
14790         @cd $ac_dir && \$(MAKE) install-dev" ;;
14791       *)     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14792 "install install-dev:: $ac_dir
14793         @cd $ac_dir && \$(MAKE) install" ;;
14794       esac
14795       wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14796 "uninstall:: $ac_dir/Makefile
14797         @cd $ac_dir && \$(MAKE) uninstall
14798 all __tooldeps__: $ac_dir
14799 .PHONY: $ac_dir
14800 $ac_dir: $ac_dir/Makefile libs/port dummy
14801         @cd $ac_dir && \$(MAKE)"
14802       case $ac_dir in
14803         tools/winebuild) wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(WINEBUILD): $ac_dir" ;;
14804       esac
14805 fi
14806 }
14807
14808 wine_fn_config_makerules ()
14809 {
14810     ac_rules=$1
14811     ac_deps=$2
14812     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14813 "$ac_rules: $ac_rules.in $ac_deps config.status
14814         @./config.status $ac_rules
14815 distclean::
14816         \$(RM) $ac_rules"
14817 }
14818
14819 wine_fn_config_symlink ()
14820 {
14821     ac_link=$1
14822     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14823 "$ac_link:
14824         @./config.status $ac_link
14825 distclean::
14826         \$(RM) $ac_link"
14827 }
14828
14829 if test "x$CROSSTEST_DISABLE" != x
14830 then
14831     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14832 "crosstest:
14833         @echo \"crosstest is not supported (mingw not installed?)\" && false"
14834 fi
14835 ac_config_links="$ac_config_links dlls/shell32/AUTHORS:AUTHORS"
14836 wine_fn_config_symlink dlls/shell32/AUTHORS
14837 ac_config_links="$ac_config_links dlls/wineps.drv/generic.ppd:dlls/wineps.drv/generic.ppd"
14838 test "$srcdir" = "." || wine_fn_config_symlink dlls/wineps.drv/generic.ppd
14839 if test "x$enable_fonts" != xno; then
14840 ac_config_links="$ac_config_links fonts/marlett.ttf:fonts/marlett.ttf"
14841 test "$srcdir" = "." || wine_fn_config_symlink fonts/marlett.ttf
14842 fi
14843 if test "x$enable_fonts" != xno; then
14844 ac_config_links="$ac_config_links fonts/symbol.ttf:fonts/symbol.ttf"
14845 test "$srcdir" = "." || wine_fn_config_symlink fonts/symbol.ttf
14846 fi
14847 if test "x$enable_fonts" != xno; then
14848 ac_config_links="$ac_config_links fonts/tahoma.ttf:fonts/tahoma.ttf"
14849 test "$srcdir" = "." || wine_fn_config_symlink fonts/tahoma.ttf
14850 fi
14851 if test "x$enable_fonts" != xno; then
14852 ac_config_links="$ac_config_links fonts/tahomabd.ttf:fonts/tahomabd.ttf"
14853 test "$srcdir" = "." || wine_fn_config_symlink fonts/tahomabd.ttf
14854 fi
14855 ac_config_links="$ac_config_links tools/l_intl.nls:tools/l_intl.nls"
14856 test "$srcdir" = "." || wine_fn_config_symlink tools/l_intl.nls
14857 ac_config_links="$ac_config_links wine:tools/winewrapper"
14858 wine_fn_config_symlink wine
14859
14860 ac_config_commands="$ac_config_commands dlls/gdi32/enhmfdrv"
14861
14862 ac_config_commands="$ac_config_commands dlls/gdi32/mfdrv"
14863
14864 ac_config_commands="$ac_config_commands dlls/kernel32/nls"
14865
14866 ac_config_commands="$ac_config_commands dlls/user32/resources"
14867
14868 ac_config_commands="$ac_config_commands dlls/wineps.drv/data"
14869
14870 ac_config_commands="$ac_config_commands include/wine"
14871
14872
14873 wine_fn_config_makerules Make.rules
14874 MAKE_RULES=Make.rules
14875 ac_config_files="$ac_config_files Make.rules"
14876
14877 wine_fn_config_makerules Maketest.rules Make.rules
14878 MAKE_TEST_RULES=Maketest.rules
14879 ac_config_files="$ac_config_files Maketest.rules"
14880
14881 wine_fn_config_makerules dlls/Makedll.rules Make.rules
14882 MAKE_DLL_RULES=dlls/Makedll.rules
14883 ac_config_files="$ac_config_files dlls/Makedll.rules"
14884
14885 wine_fn_config_makerules dlls/Makeimplib.rules Make.rules
14886 MAKE_IMPLIB_RULES=dlls/Makeimplib.rules
14887 ac_config_files="$ac_config_files dlls/Makeimplib.rules"
14888
14889 wine_fn_config_makerules programs/Makeprog.rules Make.rules
14890 MAKE_PROG_RULES=programs/Makeprog.rules
14891 ac_config_files="$ac_config_files programs/Makeprog.rules"
14892
14893
14894 wine_fn_config_dll acledit enable_acledit
14895 wine_fn_config_dll aclui enable_aclui implib
14896 wine_fn_config_dll activeds enable_activeds implib
14897 wine_fn_config_dll actxprxy enable_actxprxy
14898 wine_fn_config_lib adsiid
14899 wine_fn_config_dll advapi32 enable_advapi32 implib
14900 wine_fn_config_test dlls/advapi32/tests advapi32_test
14901 wine_fn_config_dll advpack enable_advpack implib
14902 wine_fn_config_test dlls/advpack/tests advpack_test
14903 wine_fn_config_dll amstream enable_amstream
14904 wine_fn_config_test dlls/amstream/tests amstream_test
14905 wine_fn_config_dll appwiz.cpl enable_appwiz_cpl po
14906 wine_fn_config_dll atl enable_atl implib
14907 wine_fn_config_test dlls/atl/tests atl_test
14908 wine_fn_config_dll authz enable_authz
14909 wine_fn_config_dll avicap32 enable_avicap32 implib
14910 wine_fn_config_dll avifil32 enable_avifil32 po,implib
14911 wine_fn_config_test dlls/avifil32/tests avifil32_test
14912 wine_fn_config_dll avifile.dll16 enable_win16
14913 wine_fn_config_dll avrt enable_avrt implib
14914 wine_fn_config_dll bcrypt enable_bcrypt
14915 wine_fn_config_dll browseui enable_browseui po
14916 wine_fn_config_test dlls/browseui/tests browseui_test
14917 wine_fn_config_dll cabinet enable_cabinet implib
14918 wine_fn_config_test dlls/cabinet/tests cabinet_test
14919 wine_fn_config_dll capi2032 enable_capi2032 implib
14920 wine_fn_config_dll cards enable_cards implib
14921 wine_fn_config_dll cfgmgr32 enable_cfgmgr32 implib
14922 wine_fn_config_dll clusapi enable_clusapi implib
14923 wine_fn_config_dll comcat enable_comcat
14924 wine_fn_config_test dlls/comcat/tests comcat_test
14925 wine_fn_config_dll comctl32 enable_comctl32 po,implib
14926 wine_fn_config_test dlls/comctl32/tests comctl32_test
14927 wine_fn_config_dll comdlg32 enable_comdlg32 po,implib
14928 wine_fn_config_test dlls/comdlg32/tests comdlg32_test
14929 wine_fn_config_dll comm.drv16 enable_win16
14930 wine_fn_config_dll commdlg.dll16 enable_win16
14931 wine_fn_config_dll compobj.dll16 enable_win16
14932 wine_fn_config_dll compstui enable_compstui implib
14933 wine_fn_config_dll credui enable_credui po,implib
14934 wine_fn_config_test dlls/credui/tests credui_test
14935 wine_fn_config_dll crtdll enable_crtdll implib
14936 wine_fn_config_dll crypt32 enable_crypt32 po,implib
14937 wine_fn_config_test dlls/crypt32/tests crypt32_test
14938 wine_fn_config_dll cryptdlg enable_cryptdlg po
14939 wine_fn_config_dll cryptdll enable_cryptdll implib
14940 wine_fn_config_dll cryptnet enable_cryptnet implib
14941 wine_fn_config_test dlls/cryptnet/tests cryptnet_test
14942 wine_fn_config_dll cryptui enable_cryptui po,implib
14943 wine_fn_config_test dlls/cryptui/tests cryptui_test
14944 wine_fn_config_dll ctapi32 enable_ctapi32
14945 wine_fn_config_dll ctl3d.dll16 enable_win16
14946 wine_fn_config_dll ctl3d32 enable_ctl3d32 implib
14947 wine_fn_config_dll ctl3dv2.dll16 enable_win16
14948 wine_fn_config_dll d3d10 enable_d3d10 implib
14949 wine_fn_config_test dlls/d3d10/tests d3d10_test
14950 wine_fn_config_dll d3d10core enable_d3d10core implib
14951 wine_fn_config_test dlls/d3d10core/tests d3d10core_test
14952 wine_fn_config_dll d3d8 enable_d3d8 implib
14953 wine_fn_config_test dlls/d3d8/tests d3d8_test
14954 wine_fn_config_dll d3d9 enable_d3d9 implib
14955 wine_fn_config_test dlls/d3d9/tests d3d9_test
14956 wine_fn_config_dll d3dcompiler_33 enable_d3dcompiler_33
14957 wine_fn_config_dll d3dcompiler_34 enable_d3dcompiler_34
14958 wine_fn_config_dll d3dcompiler_35 enable_d3dcompiler_35
14959 wine_fn_config_dll d3dcompiler_36 enable_d3dcompiler_36
14960 wine_fn_config_dll d3dcompiler_37 enable_d3dcompiler_37
14961 wine_fn_config_dll d3dcompiler_38 enable_d3dcompiler_38
14962 wine_fn_config_dll d3dcompiler_39 enable_d3dcompiler_39
14963 wine_fn_config_dll d3dcompiler_40 enable_d3dcompiler_40
14964 wine_fn_config_dll d3dcompiler_41 enable_d3dcompiler_41
14965 wine_fn_config_dll d3dcompiler_42 enable_d3dcompiler_42
14966 wine_fn_config_dll d3dcompiler_43 enable_d3dcompiler_43 implib d3dcompiler
14967 wine_fn_config_test dlls/d3dcompiler_43/tests d3dcompiler_43_test
14968 wine_fn_config_dll d3dim enable_d3dim implib
14969 wine_fn_config_dll d3drm enable_d3drm implib
14970 wine_fn_config_test dlls/d3drm/tests d3drm_test
14971 wine_fn_config_dll d3dx10_33 enable_d3dx10_33
14972 wine_fn_config_dll d3dx10_34 enable_d3dx10_34
14973 wine_fn_config_dll d3dx10_35 enable_d3dx10_35
14974 wine_fn_config_dll d3dx10_36 enable_d3dx10_36
14975 wine_fn_config_dll d3dx10_37 enable_d3dx10_37
14976 wine_fn_config_dll d3dx10_38 enable_d3dx10_38
14977 wine_fn_config_dll d3dx10_39 enable_d3dx10_39
14978 wine_fn_config_dll d3dx10_40 enable_d3dx10_40
14979 wine_fn_config_dll d3dx10_41 enable_d3dx10_41
14980 wine_fn_config_dll d3dx10_42 enable_d3dx10_42
14981 wine_fn_config_dll d3dx10_43 enable_d3dx10_43
14982 wine_fn_config_dll d3dx9_24 enable_d3dx9_24
14983 wine_fn_config_dll d3dx9_25 enable_d3dx9_25
14984 wine_fn_config_dll d3dx9_26 enable_d3dx9_26
14985 wine_fn_config_dll d3dx9_27 enable_d3dx9_27
14986 wine_fn_config_dll d3dx9_28 enable_d3dx9_28
14987 wine_fn_config_dll d3dx9_29 enable_d3dx9_29
14988 wine_fn_config_dll d3dx9_30 enable_d3dx9_30
14989 wine_fn_config_dll d3dx9_31 enable_d3dx9_31
14990 wine_fn_config_dll d3dx9_32 enable_d3dx9_32
14991 wine_fn_config_dll d3dx9_33 enable_d3dx9_33
14992 wine_fn_config_dll d3dx9_34 enable_d3dx9_34
14993 wine_fn_config_dll d3dx9_35 enable_d3dx9_35
14994 wine_fn_config_dll d3dx9_36 enable_d3dx9_36 implib d3dx9
14995 wine_fn_config_test dlls/d3dx9_36/tests d3dx9_36_test
14996 wine_fn_config_dll d3dx9_37 enable_d3dx9_37
14997 wine_fn_config_dll d3dx9_38 enable_d3dx9_38
14998 wine_fn_config_dll d3dx9_39 enable_d3dx9_39
14999 wine_fn_config_dll d3dx9_40 enable_d3dx9_40
15000 wine_fn_config_dll d3dx9_41 enable_d3dx9_41
15001 wine_fn_config_dll d3dx9_42 enable_d3dx9_42
15002 wine_fn_config_dll d3dx9_43 enable_d3dx9_43
15003 wine_fn_config_dll d3dxof enable_d3dxof implib
15004 wine_fn_config_test dlls/d3dxof/tests d3dxof_test
15005 wine_fn_config_dll dbgeng enable_dbgeng implib
15006 wine_fn_config_dll dbghelp enable_dbghelp implib
15007 wine_fn_config_dll dciman32 enable_dciman32 implib
15008 wine_fn_config_dll ddeml.dll16 enable_win16
15009 wine_fn_config_dll ddraw enable_ddraw implib
15010 wine_fn_config_test dlls/ddraw/tests ddraw_test
15011 wine_fn_config_dll ddrawex enable_ddrawex
15012 wine_fn_config_test dlls/ddrawex/tests ddrawex_test
15013 wine_fn_config_dll devenum enable_devenum po
15014 wine_fn_config_dll dinput enable_dinput implib,staticimplib
15015 wine_fn_config_test dlls/dinput/tests dinput_test
15016 wine_fn_config_dll dinput8 enable_dinput8 implib
15017 wine_fn_config_dll dispdib.dll16 enable_win16
15018 wine_fn_config_dll dispex enable_dispex
15019 wine_fn_config_test dlls/dispex/tests dispex_test
15020 wine_fn_config_dll display.drv16 enable_win16
15021 wine_fn_config_dll dmband enable_dmband
15022 wine_fn_config_dll dmcompos enable_dmcompos
15023 wine_fn_config_dll dmime enable_dmime
15024 wine_fn_config_test dlls/dmime/tests dmime_test
15025 wine_fn_config_dll dmloader enable_dmloader
15026 wine_fn_config_test dlls/dmloader/tests dmloader_test
15027 wine_fn_config_dll dmscript enable_dmscript
15028 wine_fn_config_dll dmstyle enable_dmstyle
15029 wine_fn_config_dll dmsynth enable_dmsynth
15030 wine_fn_config_dll dmusic enable_dmusic
15031 wine_fn_config_dll dmusic32 enable_dmusic32 implib
15032 wine_fn_config_dll dnsapi enable_dnsapi implib
15033 wine_fn_config_test dlls/dnsapi/tests dnsapi_test
15034 wine_fn_config_dll dplay enable_dplay implib
15035 wine_fn_config_dll dplayx enable_dplayx implib
15036 wine_fn_config_test dlls/dplayx/tests dplayx_test
15037 wine_fn_config_dll dpnaddr enable_dpnaddr
15038 wine_fn_config_dll dpnet enable_dpnet implib
15039 wine_fn_config_dll dpnhpast enable_dpnhpast
15040 wine_fn_config_dll dpnlobby enable_dpnlobby
15041 wine_fn_config_dll dpwsockx enable_dpwsockx
15042 wine_fn_config_dll drmclien enable_drmclien
15043 wine_fn_config_dll dsound enable_dsound implib
15044 wine_fn_config_test dlls/dsound/tests dsound_test
15045 wine_fn_config_dll dssenh enable_dssenh
15046 wine_fn_config_dll dswave enable_dswave
15047 wine_fn_config_dll dwmapi enable_dwmapi implib
15048 wine_fn_config_dll dxdiagn enable_dxdiagn
15049 wine_fn_config_test dlls/dxdiagn/tests dxdiagn_test
15050 wine_fn_config_lib dxerr8
15051 wine_fn_config_lib dxerr9
15052 wine_fn_config_dll dxgi enable_dxgi implib
15053 wine_fn_config_test dlls/dxgi/tests dxgi_test
15054 wine_fn_config_lib dxguid
15055 wine_fn_config_dll explorerframe enable_explorerframe
15056 wine_fn_config_test dlls/explorerframe/tests explorerframe_test
15057 wine_fn_config_dll faultrep enable_faultrep implib
15058 wine_fn_config_test dlls/faultrep/tests faultrep_test
15059 wine_fn_config_dll fltlib enable_fltlib
15060 wine_fn_config_dll fusion enable_fusion
15061 wine_fn_config_test dlls/fusion/tests fusion_test
15062 wine_fn_config_dll fwpuclnt enable_fwpuclnt
15063 wine_fn_config_dll gameux enable_gameux
15064 wine_fn_config_test dlls/gameux/tests gameux_test
15065 wine_fn_config_dll gdi.exe16 enable_win16
15066 wine_fn_config_dll gdi32 enable_gdi32 implib
15067 wine_fn_config_test dlls/gdi32/tests gdi32_test
15068 wine_fn_config_dll gdiplus enable_gdiplus implib
15069 wine_fn_config_test dlls/gdiplus/tests gdiplus_test
15070 wine_fn_config_dll glu32 enable_glu32 implib
15071 wine_fn_config_dll gphoto2.ds enable_gphoto2_ds
15072 wine_fn_config_dll gpkcsp enable_gpkcsp
15073 wine_fn_config_dll hal enable_hal
15074 wine_fn_config_dll hhctrl.ocx enable_hhctrl_ocx po
15075 wine_fn_config_dll hid enable_hid implib
15076 wine_fn_config_dll hlink enable_hlink implib
15077 wine_fn_config_test dlls/hlink/tests hlink_test
15078 wine_fn_config_dll hnetcfg enable_hnetcfg
15079 wine_fn_config_dll httpapi enable_httpapi
15080 wine_fn_config_dll iccvid enable_iccvid po
15081 wine_fn_config_dll icmp enable_icmp
15082 wine_fn_config_dll ifsmgr.vxd enable_win16
15083 wine_fn_config_dll imaadp32.acm enable_imaadp32_acm
15084 wine_fn_config_dll imagehlp enable_imagehlp implib
15085 wine_fn_config_test dlls/imagehlp/tests imagehlp_test
15086 wine_fn_config_dll imm.dll16 enable_win16
15087 wine_fn_config_dll imm32 enable_imm32 implib
15088 wine_fn_config_test dlls/imm32/tests imm32_test
15089 wine_fn_config_dll inetcomm enable_inetcomm implib
15090 wine_fn_config_test dlls/inetcomm/tests inetcomm_test
15091 wine_fn_config_dll inetcpl.cpl enable_inetcpl_cpl po
15092 wine_fn_config_dll inetmib1 enable_inetmib1
15093 wine_fn_config_test dlls/inetmib1/tests inetmib1_test
15094 wine_fn_config_dll infosoft enable_infosoft
15095 wine_fn_config_test dlls/infosoft/tests infosoft_test
15096 wine_fn_config_dll initpki enable_initpki
15097 wine_fn_config_dll inkobj enable_inkobj
15098 wine_fn_config_dll inseng enable_inseng
15099 wine_fn_config_dll iphlpapi enable_iphlpapi implib
15100 wine_fn_config_test dlls/iphlpapi/tests iphlpapi_test
15101 wine_fn_config_dll itircl enable_itircl
15102 wine_fn_config_dll itss enable_itss
15103 wine_fn_config_test dlls/itss/tests itss_test
15104 wine_fn_config_dll jscript enable_jscript po
15105 wine_fn_config_test dlls/jscript/tests jscript_test
15106 wine_fn_config_dll kernel32 enable_kernel32 mc,implib
15107 wine_fn_config_test dlls/kernel32/tests kernel32_test
15108 wine_fn_config_dll keyboard.drv16 enable_win16
15109 wine_fn_config_dll krnl386.exe16 enable_win16 implib kernel
15110 wine_fn_config_dll ktmw32 enable_ktmw32
15111 wine_fn_config_dll loadperf enable_loadperf implib
15112 wine_fn_config_dll localspl enable_localspl po
15113 wine_fn_config_test dlls/localspl/tests localspl_test
15114 wine_fn_config_dll localui enable_localui po
15115 wine_fn_config_test dlls/localui/tests localui_test
15116 wine_fn_config_dll lz32 enable_lz32 implib
15117 wine_fn_config_test dlls/lz32/tests lz32_test
15118 wine_fn_config_dll lzexpand.dll16 enable_win16
15119 wine_fn_config_dll mapi32 enable_mapi32 po,implib
15120 wine_fn_config_test dlls/mapi32/tests mapi32_test
15121 wine_fn_config_dll mapistub enable_mapistub
15122 wine_fn_config_dll mciavi32 enable_mciavi32
15123 wine_fn_config_dll mcicda enable_mcicda
15124 wine_fn_config_dll mciqtz32 enable_mciqtz32
15125 wine_fn_config_dll mciseq enable_mciseq
15126 wine_fn_config_dll mciwave enable_mciwave
15127 wine_fn_config_dll midimap enable_midimap
15128 wine_fn_config_dll mlang enable_mlang implib
15129 wine_fn_config_test dlls/mlang/tests mlang_test
15130 wine_fn_config_dll mmdevapi enable_mmdevapi
15131 wine_fn_config_test dlls/mmdevapi/tests mmdevapi_test
15132 wine_fn_config_dll mmdevldr.vxd enable_win16
15133 wine_fn_config_dll mmsystem.dll16 enable_win16
15134 wine_fn_config_dll monodebg.vxd enable_win16
15135 wine_fn_config_dll mountmgr.sys enable_mountmgr_sys
15136 wine_fn_config_dll mouse.drv16 enable_win16
15137 wine_fn_config_dll mpr enable_mpr po,implib
15138 wine_fn_config_dll mprapi enable_mprapi implib
15139 wine_fn_config_dll msacm.dll16 enable_win16
15140 wine_fn_config_dll msacm32.drv enable_msacm32_drv
15141 wine_fn_config_dll msacm32 enable_msacm32 implib
15142 wine_fn_config_test dlls/msacm32/tests msacm32_test
15143 wine_fn_config_dll msadp32.acm enable_msadp32_acm
15144 wine_fn_config_dll mscat32 enable_mscat32
15145 wine_fn_config_dll mscms enable_mscms implib
15146 wine_fn_config_test dlls/mscms/tests mscms_test
15147 wine_fn_config_dll mscoree enable_mscoree
15148 wine_fn_config_test dlls/mscoree/tests mscoree_test
15149 wine_fn_config_dll msctf enable_msctf
15150 wine_fn_config_test dlls/msctf/tests msctf_test
15151 wine_fn_config_dll msdaps enable_msdaps
15152 wine_fn_config_dll msdmo enable_msdmo implib
15153 wine_fn_config_dll msftedit enable_msftedit
15154 wine_fn_config_dll msg711.acm enable_msg711_acm
15155 wine_fn_config_dll msgsm32.acm enable_msgsm32_acm
15156 wine_fn_config_dll mshtml.tlb enable_mshtml_tlb
15157 wine_fn_config_dll mshtml enable_mshtml po,implib
15158 wine_fn_config_test dlls/mshtml/tests mshtml_test
15159 wine_fn_config_dll msi enable_msi po,implib
15160 wine_fn_config_test dlls/msi/tests msi_test
15161 wine_fn_config_dll msimg32 enable_msimg32 implib
15162 wine_fn_config_dll msimsg enable_msimsg
15163 wine_fn_config_dll msimtf enable_msimtf
15164 wine_fn_config_dll msisip enable_msisip
15165 wine_fn_config_dll msisys.ocx enable_msisys_ocx
15166 wine_fn_config_dll msnet32 enable_msnet32
15167 wine_fn_config_dll msrle32 enable_msrle32 po
15168 wine_fn_config_dll mssign32 enable_mssign32
15169 wine_fn_config_dll mssip32 enable_mssip32
15170 wine_fn_config_dll mstask enable_mstask
15171 wine_fn_config_test dlls/mstask/tests mstask_test
15172 wine_fn_config_dll msvcirt enable_msvcirt
15173 wine_fn_config_dll msvcp80 enable_msvcp80
15174 wine_fn_config_dll msvcp90 enable_msvcp90
15175 wine_fn_config_test dlls/msvcp90/tests msvcp90_test
15176 wine_fn_config_dll msvcr100 enable_msvcr100
15177 wine_fn_config_dll msvcr70 enable_msvcr70 implib
15178 wine_fn_config_dll msvcr71 enable_msvcr71 implib
15179 wine_fn_config_dll msvcr80 enable_msvcr80
15180 wine_fn_config_dll msvcr90 enable_msvcr90
15181 wine_fn_config_test dlls/msvcr90/tests msvcr90_test
15182 wine_fn_config_dll msvcrt enable_msvcrt implib
15183 wine_fn_config_test dlls/msvcrt/tests msvcrt_test
15184 wine_fn_config_dll msvcrt20 enable_msvcrt20 implib
15185 wine_fn_config_dll msvcrt40 enable_msvcrt40 implib
15186 wine_fn_config_dll msvcrtd enable_msvcrtd implib
15187 wine_fn_config_test dlls/msvcrtd/tests msvcrtd_test
15188 wine_fn_config_dll msvfw32 enable_msvfw32 po,implib
15189 wine_fn_config_test dlls/msvfw32/tests msvfw32_test
15190 wine_fn_config_dll msvidc32 enable_msvidc32 po
15191 wine_fn_config_dll msvideo.dll16 enable_win16
15192 wine_fn_config_dll mswsock enable_mswsock implib
15193 wine_fn_config_dll msxml enable_msxml
15194 wine_fn_config_dll msxml2 enable_msxml2
15195 wine_fn_config_dll msxml3 enable_msxml3
15196 wine_fn_config_test dlls/msxml3/tests msxml3_test
15197 wine_fn_config_dll msxml4 enable_msxml4
15198 wine_fn_config_dll msxml6 enable_msxml6
15199 wine_fn_config_dll nddeapi enable_nddeapi implib
15200 wine_fn_config_dll netapi32 enable_netapi32 implib
15201 wine_fn_config_test dlls/netapi32/tests netapi32_test
15202 wine_fn_config_dll newdev enable_newdev implib
15203 wine_fn_config_dll normaliz enable_normaliz implib
15204 wine_fn_config_dll npmshtml enable_npmshtml
15205 wine_fn_config_dll ntdll enable_ntdll implib
15206 wine_fn_config_test dlls/ntdll/tests ntdll_test
15207 wine_fn_config_dll ntdsapi enable_ntdsapi implib
15208 wine_fn_config_test dlls/ntdsapi/tests ntdsapi_test
15209 wine_fn_config_dll ntoskrnl.exe enable_ntoskrnl_exe implib
15210 wine_fn_config_dll ntprint enable_ntprint
15211 wine_fn_config_test dlls/ntprint/tests ntprint_test
15212 wine_fn_config_dll objsel enable_objsel
15213 wine_fn_config_dll odbc32 enable_odbc32 implib
15214 wine_fn_config_dll odbccp32 enable_odbccp32 implib
15215 wine_fn_config_test dlls/odbccp32/tests odbccp32_test
15216 wine_fn_config_dll ole2.dll16 enable_win16
15217 wine_fn_config_dll ole2conv.dll16 enable_win16
15218 wine_fn_config_dll ole2disp.dll16 enable_win16
15219 wine_fn_config_dll ole2nls.dll16 enable_win16
15220 wine_fn_config_dll ole2prox.dll16 enable_win16
15221 wine_fn_config_dll ole2thk.dll16 enable_win16
15222 wine_fn_config_dll ole32 enable_ole32 implib
15223 wine_fn_config_test dlls/ole32/tests ole32_test
15224 wine_fn_config_dll oleacc enable_oleacc po,implib
15225 wine_fn_config_test dlls/oleacc/tests oleacc_test
15226 wine_fn_config_dll oleaut32 enable_oleaut32 po,implib
15227 wine_fn_config_test dlls/oleaut32/tests oleaut32_test
15228 wine_fn_config_dll olecli.dll16 enable_win16
15229 wine_fn_config_dll olecli32 enable_olecli32 implib
15230 wine_fn_config_dll oledb32 enable_oledb32
15231 wine_fn_config_test dlls/oledb32/tests oledb32_test
15232 wine_fn_config_dll oledlg enable_oledlg po,implib
15233 wine_fn_config_dll olepro32 enable_olepro32 implib
15234 wine_fn_config_dll olesvr.dll16 enable_win16
15235 wine_fn_config_dll olesvr32 enable_olesvr32 implib
15236 wine_fn_config_dll olethk32 enable_olethk32
15237 wine_fn_config_dll openal32 enable_openal32
15238 wine_fn_config_dll opencl enable_opencl
15239 wine_fn_config_dll opengl32 enable_opengl32 implib
15240 wine_fn_config_test dlls/opengl32/tests opengl32_test
15241 wine_fn_config_dll pdh enable_pdh implib
15242 wine_fn_config_test dlls/pdh/tests pdh_test
15243 wine_fn_config_dll pidgen enable_pidgen
15244 wine_fn_config_dll powrprof enable_powrprof implib
15245 wine_fn_config_dll printui enable_printui
15246 wine_fn_config_dll propsys enable_propsys implib
15247 wine_fn_config_test dlls/propsys/tests propsys_test
15248 wine_fn_config_dll psapi enable_psapi implib
15249 wine_fn_config_test dlls/psapi/tests psapi_test
15250 wine_fn_config_dll pstorec enable_pstorec
15251 wine_fn_config_dll qcap enable_qcap
15252 wine_fn_config_dll qedit enable_qedit
15253 wine_fn_config_test dlls/qedit/tests qedit_test
15254 wine_fn_config_dll qmgr enable_qmgr
15255 wine_fn_config_test dlls/qmgr/tests qmgr_test
15256 wine_fn_config_dll qmgrprxy enable_qmgrprxy
15257 wine_fn_config_dll quartz enable_quartz implib
15258 wine_fn_config_test dlls/quartz/tests quartz_test
15259 wine_fn_config_dll query enable_query
15260 wine_fn_config_dll rasapi16.dll16 enable_win16
15261 wine_fn_config_dll rasapi32 enable_rasapi32 implib
15262 wine_fn_config_test dlls/rasapi32/tests rasapi32_test
15263 wine_fn_config_dll rasdlg enable_rasdlg implib
15264 wine_fn_config_dll resutils enable_resutils implib
15265 wine_fn_config_dll riched20 enable_riched20 implib
15266 wine_fn_config_test dlls/riched20/tests riched20_test
15267 wine_fn_config_dll riched32 enable_riched32
15268 wine_fn_config_test dlls/riched32/tests riched32_test
15269 wine_fn_config_dll rpcrt4 enable_rpcrt4 implib
15270 wine_fn_config_test dlls/rpcrt4/tests rpcrt4_test
15271 wine_fn_config_dll rsabase enable_rsabase
15272 wine_fn_config_dll rsaenh enable_rsaenh implib
15273 wine_fn_config_test dlls/rsaenh/tests rsaenh_test
15274 wine_fn_config_dll rstrtmgr enable_rstrtmgr
15275 wine_fn_config_dll rtutils enable_rtutils implib
15276 wine_fn_config_dll samlib enable_samlib
15277 wine_fn_config_dll sane.ds enable_sane_ds po
15278 wine_fn_config_dll sccbase enable_sccbase
15279 wine_fn_config_dll schannel enable_schannel
15280 wine_fn_config_test dlls/schannel/tests schannel_test
15281 wine_fn_config_dll secur32 enable_secur32 implib
15282 wine_fn_config_test dlls/secur32/tests secur32_test
15283 wine_fn_config_dll security enable_security
15284 wine_fn_config_dll sensapi enable_sensapi implib
15285 wine_fn_config_dll serialui enable_serialui implib
15286 wine_fn_config_test dlls/serialui/tests serialui_test
15287 wine_fn_config_dll setupapi enable_setupapi po,implib
15288 wine_fn_config_test dlls/setupapi/tests setupapi_test
15289 wine_fn_config_dll setupx.dll16 enable_win16
15290 wine_fn_config_dll sfc enable_sfc implib
15291 wine_fn_config_dll sfc_os enable_sfc_os implib
15292 wine_fn_config_dll shdoclc enable_shdoclc po
15293 wine_fn_config_dll shdocvw enable_shdocvw po,implib
15294 wine_fn_config_test dlls/shdocvw/tests shdocvw_test
15295 wine_fn_config_dll shell.dll16 enable_win16
15296 wine_fn_config_dll shell32 enable_shell32 po,implib
15297 wine_fn_config_test dlls/shell32/tests shell32_test
15298 wine_fn_config_dll shfolder enable_shfolder implib
15299 wine_fn_config_dll shlwapi enable_shlwapi po,implib
15300 wine_fn_config_test dlls/shlwapi/tests shlwapi_test
15301 wine_fn_config_dll slbcsp enable_slbcsp
15302 wine_fn_config_dll slc enable_slc implib
15303 wine_fn_config_dll snmpapi enable_snmpapi implib
15304 wine_fn_config_test dlls/snmpapi/tests snmpapi_test
15305 wine_fn_config_dll softpub enable_softpub
15306 wine_fn_config_dll sound.drv16 enable_win16
15307 wine_fn_config_dll spoolss enable_spoolss implib
15308 wine_fn_config_test dlls/spoolss/tests spoolss_test
15309 wine_fn_config_dll stdole2.tlb enable_stdole2_tlb
15310 wine_fn_config_dll stdole32.tlb enable_stdole32_tlb
15311 wine_fn_config_dll sti enable_sti implib
15312 wine_fn_config_test dlls/sti/tests sti_test
15313 wine_fn_config_dll storage.dll16 enable_win16
15314 wine_fn_config_dll stress.dll16 enable_win16
15315 wine_fn_config_lib strmbase
15316 wine_fn_config_lib strmiids
15317 wine_fn_config_dll svrapi enable_svrapi
15318 wine_fn_config_dll sxs enable_sxs
15319 wine_fn_config_dll system.drv16 enable_win16
15320 wine_fn_config_dll t2embed enable_t2embed
15321 wine_fn_config_dll tapi32 enable_tapi32 implib
15322 wine_fn_config_dll toolhelp.dll16 enable_win16
15323 wine_fn_config_dll traffic enable_traffic
15324 wine_fn_config_dll twain.dll16 enable_win16
15325 wine_fn_config_dll twain_32 enable_twain_32
15326 wine_fn_config_test dlls/twain_32/tests twain_32_test
15327 wine_fn_config_dll typelib.dll16 enable_win16
15328 wine_fn_config_dll unicows enable_unicows implib
15329 wine_fn_config_dll updspapi enable_updspapi
15330 wine_fn_config_dll url enable_url implib
15331 wine_fn_config_dll urlmon enable_urlmon implib
15332 wine_fn_config_test dlls/urlmon/tests urlmon_test
15333 wine_fn_config_dll usbd.sys enable_usbd_sys implib
15334 wine_fn_config_dll user.exe16 enable_win16
15335 wine_fn_config_dll user32 enable_user32 po,implib
15336 wine_fn_config_test dlls/user32/tests user32_test
15337 wine_fn_config_dll userenv enable_userenv implib
15338 wine_fn_config_test dlls/userenv/tests userenv_test
15339 wine_fn_config_dll usp10 enable_usp10 implib
15340 wine_fn_config_test dlls/usp10/tests usp10_test
15341 wine_fn_config_lib uuid
15342 wine_fn_config_dll uxtheme enable_uxtheme implib
15343 wine_fn_config_test dlls/uxtheme/tests uxtheme_test
15344 wine_fn_config_dll vdhcp.vxd enable_win16
15345 wine_fn_config_dll vdmdbg enable_vdmdbg implib
15346 wine_fn_config_dll ver.dll16 enable_win16
15347 wine_fn_config_dll version enable_version implib
15348 wine_fn_config_test dlls/version/tests version_test
15349 wine_fn_config_dll vmm.vxd enable_win16
15350 wine_fn_config_dll vnbt.vxd enable_win16
15351 wine_fn_config_dll vnetbios.vxd enable_win16
15352 wine_fn_config_dll vtdapi.vxd enable_win16
15353 wine_fn_config_dll vwin32.vxd enable_win16
15354 wine_fn_config_dll w32skrnl enable_win16
15355 wine_fn_config_dll w32sys.dll16 enable_win16
15356 wine_fn_config_dll wbemprox enable_wbemprox
15357 wine_fn_config_dll wer enable_wer implib
15358 wine_fn_config_test dlls/wer/tests wer_test
15359 wine_fn_config_dll wiaservc enable_wiaservc
15360 wine_fn_config_dll win32s16.dll16 enable_win16
15361 wine_fn_config_dll win87em.dll16 enable_win16
15362 wine_fn_config_dll winaspi.dll16 enable_win16
15363 wine_fn_config_dll windebug.dll16 enable_win16
15364 wine_fn_config_dll windowscodecs enable_windowscodecs implib
15365 wine_fn_config_test dlls/windowscodecs/tests windowscodecs_test
15366 wine_fn_config_dll winealsa.drv enable_winealsa_drv
15367 wine_fn_config_dll winecoreaudio.drv enable_winecoreaudio_drv
15368 wine_fn_config_lib winecrt0
15369 wine_fn_config_dll wined3d enable_wined3d implib
15370 wine_fn_config_dll wineesd.drv enable_wineesd_drv
15371 wine_fn_config_dll winegstreamer enable_winegstreamer
15372 wine_fn_config_dll winejack.drv enable_winejack_drv
15373 wine_fn_config_dll winejoystick.drv enable_winejoystick_drv
15374 wine_fn_config_dll winemapi enable_winemapi
15375 wine_fn_config_dll winemp3.acm enable_winemp3_acm
15376 wine_fn_config_dll winenas.drv enable_winenas_drv
15377 wine_fn_config_dll wineoss.drv enable_wineoss_drv
15378 wine_fn_config_dll wineps.drv enable_wineps_drv
15379 wine_fn_config_dll wineps16.drv16 enable_win16
15380 wine_fn_config_dll wineqtdecoder enable_wineqtdecoder
15381 wine_fn_config_dll winequartz.drv enable_winequartz_drv
15382 wine_fn_config_dll winex11.drv enable_winex11_drv
15383 wine_fn_config_dll wing.dll16 enable_win16
15384 wine_fn_config_dll wing32 enable_wing32
15385 wine_fn_config_dll winhttp enable_winhttp implib
15386 wine_fn_config_test dlls/winhttp/tests winhttp_test
15387 wine_fn_config_dll wininet enable_wininet po,implib
15388 wine_fn_config_test dlls/wininet/tests wininet_test
15389 wine_fn_config_dll winmm enable_winmm po,implib
15390 wine_fn_config_test dlls/winmm/tests winmm_test
15391 wine_fn_config_dll winnls.dll16 enable_win16
15392 wine_fn_config_dll winnls32 enable_winnls32 implib
15393 wine_fn_config_dll winscard enable_winscard implib
15394 wine_fn_config_dll winsock.dll16 enable_win16
15395 wine_fn_config_dll winspool.drv enable_winspool_drv po,implib winspool
15396 wine_fn_config_test dlls/winspool.drv/tests winspool.drv_test
15397 wine_fn_config_dll wintab.dll16 enable_win16
15398 wine_fn_config_dll wintab32 enable_wintab32 implib
15399 wine_fn_config_test dlls/wintab32/tests wintab32_test
15400 wine_fn_config_dll wintrust enable_wintrust implib
15401 wine_fn_config_test dlls/wintrust/tests wintrust_test
15402 wine_fn_config_dll wlanapi enable_wlanapi
15403 wine_fn_config_dll wldap32 enable_wldap32 po,implib
15404 wine_fn_config_test dlls/wldap32/tests wldap32_test
15405 wine_fn_config_dll wmi enable_wmi
15406 wine_fn_config_dll wmiutils enable_wmiutils
15407 wine_fn_config_dll wnaspi32 enable_wnaspi32 implib
15408 wine_fn_config_dll wow32 enable_win16 implib
15409 wine_fn_config_dll ws2_32 enable_ws2_32 implib
15410 wine_fn_config_test dlls/ws2_32/tests ws2_32_test
15411 wine_fn_config_dll wsock32 enable_wsock32 implib
15412 wine_fn_config_dll wtsapi32 enable_wtsapi32 implib
15413 wine_fn_config_dll wuapi enable_wuapi
15414 wine_fn_config_dll wuaueng enable_wuaueng
15415 wine_fn_config_dll xapofx1_1 enable_xapofx1_1
15416 wine_fn_config_dll xinput1_1 enable_xinput1_1
15417 wine_fn_config_dll xinput1_2 enable_xinput1_2
15418 wine_fn_config_dll xinput1_3 enable_xinput1_3 implib xinput
15419 wine_fn_config_test dlls/xinput1_3/tests xinput1_3_test
15420 wine_fn_config_dll xinput9_1_0 enable_xinput9_1_0
15421 wine_fn_config_dll xmllite enable_xmllite
15422 wine_fn_config_test dlls/xmllite/tests xmllite_test
15423 wine_fn_config_makefile documentation enable_documentation
15424 wine_fn_config_makefile fonts enable_fonts
15425 wine_fn_config_makefile include enable_include
15426 wine_fn_config_makefile libs/port enable_libs_port
15427 wine_fn_config_makefile libs/wine enable_libs_wine
15428 wine_fn_config_makefile libs/wpp enable_libs_wpp
15429 wine_fn_config_makefile loader enable_loader
15430 wine_fn_config_program aspnet_regiis enable_aspnet_regiis install
15431 wine_fn_config_program attrib enable_attrib install
15432 wine_fn_config_program cabarc enable_cabarc install
15433 wine_fn_config_program cacls enable_cacls install
15434 wine_fn_config_program clock enable_clock po,install
15435 wine_fn_config_program cmd enable_cmd po,install
15436 wine_fn_config_test programs/cmd/tests cmd.exe_test
15437 wine_fn_config_program cmdlgtst enable_cmdlgtst
15438 wine_fn_config_program control enable_control install
15439 wine_fn_config_program dxdiag enable_dxdiag install
15440 wine_fn_config_program eject enable_eject install
15441 wine_fn_config_program expand enable_expand install
15442 wine_fn_config_program explorer enable_explorer install
15443 wine_fn_config_program extrac32 enable_extrac32 install
15444 wine_fn_config_program hh enable_hh install
15445 wine_fn_config_program icinfo enable_icinfo install
15446 wine_fn_config_program iexplore enable_iexplore install
15447 wine_fn_config_program ipconfig enable_ipconfig po,install
15448 wine_fn_config_program lodctr enable_lodctr install
15449 wine_fn_config_program mofcomp enable_mofcomp install
15450 wine_fn_config_program mshta enable_mshta install
15451 wine_fn_config_program msiexec enable_msiexec install,installbin
15452 wine_fn_config_program net enable_net po,install
15453 wine_fn_config_program netsh enable_netsh install
15454 wine_fn_config_program ngen enable_ngen install
15455 wine_fn_config_program notepad enable_notepad po,install,installbin
15456 wine_fn_config_program oleview enable_oleview po,install
15457 wine_fn_config_program ping enable_ping install
15458 wine_fn_config_program plugplay enable_plugplay install
15459 wine_fn_config_program progman enable_progman po,install
15460 wine_fn_config_program reg enable_reg po,install
15461 wine_fn_config_program regedit enable_regedit po,install,installbin
15462 wine_fn_config_test programs/regedit/tests regedit.exe_test
15463 wine_fn_config_program regsvcs enable_regsvcs install
15464 wine_fn_config_program regsvr32 enable_regsvr32 install,installbin
15465 wine_fn_config_program rpcss enable_rpcss install
15466 wine_fn_config_program rundll.exe16 enable_win16 install
15467 wine_fn_config_program rundll32 enable_rundll32 install
15468 wine_fn_config_program sc enable_sc install
15469 wine_fn_config_program secedit enable_secedit install
15470 wine_fn_config_program servicemodelreg enable_servicemodelreg install
15471 wine_fn_config_program services enable_services install
15472 wine_fn_config_program spoolsv enable_spoolsv install
15473 wine_fn_config_program start enable_start po,install
15474 wine_fn_config_program svchost enable_svchost install
15475 wine_fn_config_program taskkill enable_taskkill po,install
15476 wine_fn_config_program taskmgr enable_taskmgr po,install
15477 wine_fn_config_program termsv enable_termsv install
15478 wine_fn_config_program uninstaller enable_uninstaller po,install
15479 wine_fn_config_program unlodctr enable_unlodctr install
15480 wine_fn_config_program view enable_view po
15481 wine_fn_config_program wineboot enable_wineboot install,installbin
15482 wine_fn_config_program winebrowser enable_winebrowser install
15483 wine_fn_config_program winecfg enable_winecfg po,install,installbin
15484 wine_fn_config_program wineconsole enable_wineconsole po,install,installbin
15485 wine_fn_config_program winedbg enable_winedbg po,install,installbin
15486 wine_fn_config_program winedevice enable_winedevice install
15487 wine_fn_config_program winefile enable_winefile po,install,installbin
15488 wine_fn_config_program winemenubuilder enable_winemenubuilder install
15489 wine_fn_config_program winemine enable_winemine po,install,installbin
15490 wine_fn_config_program winemsibuilder enable_winemsibuilder install
15491 wine_fn_config_program winepath enable_winepath install,installbin
15492 wine_fn_config_program winetest enable_winetest
15493 wine_fn_config_program winevdm enable_win16 install
15494 wine_fn_config_program winhelp.exe16 enable_win16 install
15495 wine_fn_config_program winhlp32 enable_winhlp32 po,install
15496 wine_fn_config_program winoldap.mod16 enable_win16 install
15497 wine_fn_config_program winver enable_winver install
15498 wine_fn_config_program wmic enable_wmic install
15499 wine_fn_config_program wordpad enable_wordpad po,install
15500 wine_fn_config_program write enable_write po,install
15501 wine_fn_config_program wscript enable_wscript install
15502 wine_fn_config_test programs/wscript/tests wscript.exe_test
15503 wine_fn_config_program xcopy enable_xcopy po,install
15504 wine_fn_config_makefile server enable_server
15505 wine_fn_config_tool tools
15506 wine_fn_config_tool tools/widl
15507 wine_fn_config_tool tools/winebuild
15508 wine_fn_config_tool tools/winedump
15509 wine_fn_config_tool tools/winegcc
15510 wine_fn_config_tool tools/wmc
15511 wine_fn_config_tool tools/wrc
15512
15513 LINGUAS="\
15514 ar \
15515 bg \
15516 ca \
15517 cs \
15518 da \
15519 de \
15520 el \
15521 en \
15522 en_US \
15523 eo \
15524 es \
15525 fa \
15526 fi \
15527 fr \
15528 he \
15529 hi \
15530 hu \
15531 it \
15532 ja \
15533 ko \
15534 lt \
15535 ml \
15536 nb_NO \
15537 nl \
15538 or \
15539 pa \
15540 pl \
15541 pt_BR \
15542 pt_PT \
15543 rm \
15544 ro \
15545 ru \
15546 sk \
15547 sl \
15548 sr_RS@cyrillic \
15549 sr_RS@latin \
15550 sv \
15551 te \
15552 th \
15553 tr \
15554 uk \
15555 wa \
15556 zh_CN \
15557 zh_TW"
15558
15559
15560
15561 ac_config_commands="$ac_config_commands Makefile"
15562
15563
15564 ac_config_files="$ac_config_files Make.tmp:Make.vars.in:Makefile.in"
15565
15566
15567
15568 if test "x$enable_maintainer_mode" = xyes
15569 then
15570     wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(srcdir)/configure: configure.ac aclocal.m4
15571         cd \$(srcdir) && autoconf --warnings=all
15572 \$(srcdir)/include/config.h.in: include/stamp-h.in
15573 \$(srcdir)/include/stamp-h.in: configure.ac aclocal.m4
15574         cd \$(srcdir) && autoheader --warnings=all
15575         @echo timestamp > \$@
15576
15577 ALL_POT_FILES =$ALL_POT_FILES
15578 all: \$(ALL_PO_FILES)
15579 \$(ALL_PO_FILES): \$(srcdir)/po/wine.pot
15580         msgmerge -q \$@ \$(srcdir)/po/wine.pot | msgattrib --no-obsolete -o \$@.new && mv \$@.new \$@
15581 \$(srcdir)/po/wine.pot: \$(ALL_POT_FILES)
15582         msgcat -o \$@ \$(ALL_POT_FILES)"
15583 fi
15584
15585 if test -n "$with_wine64"
15586 then
15587 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "all: fonts server $with_wine64/loader/wine $with_wine64/loader/wine-preloader
15588 fonts server:
15589         \$(RM) \$@ && \$(LN_S) $with_wine64/\$@ \$@
15590 $with_wine64/loader/wine:
15591         \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine \$@
15592 $with_wine64/loader/wine-preloader:
15593         \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine-preloader \$@
15594 clean::
15595         \$(RM) fonts server $with_wine64/loader/wine $with_wine64/loader/wine-preloader"
15596 fi
15597
15598 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "uninstall::
15599         -rmdir \$(DESTDIR)\$(datadir)/wine \$(DESTDIR)\$(fakedlldir) \$(DESTDIR)\$(dlldir)"
15600
15601 cat >confcache <<\_ACEOF
15602 # This file is a shell script that caches the results of configure
15603 # tests run on this system so they can be shared between configure
15604 # scripts and configure runs, see configure's option --config-cache.
15605 # It is not useful on other systems.  If it contains results you don't
15606 # want to keep, you may remove or edit it.
15607 #
15608 # config.status only pays attention to the cache file if you give it
15609 # the --recheck option to rerun configure.
15610 #
15611 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15612 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15613 # following values.
15614
15615 _ACEOF
15616
15617 # The following way of writing the cache mishandles newlines in values,
15618 # but we know of no workaround that is simple, portable, and efficient.
15619 # So, we kill variables containing newlines.
15620 # Ultrix sh set writes to stderr and can't be redirected directly,
15621 # and sets the high bit in the cache file unless we assign to the vars.
15622 (
15623   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15624     eval ac_val=\$$ac_var
15625     case $ac_val in #(
15626     *${as_nl}*)
15627       case $ac_var in #(
15628       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15629 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15630       esac
15631       case $ac_var in #(
15632       _ | IFS | as_nl) ;; #(
15633       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15634       *) { eval $ac_var=; unset $ac_var;} ;;
15635       esac ;;
15636     esac
15637   done
15638
15639   (set) 2>&1 |
15640     case $as_nl`(ac_space=' '; set) 2>&1` in #(
15641     *${as_nl}ac_space=\ *)
15642       # `set' does not quote correctly, so add quotes: double-quote
15643       # substitution turns \\\\ into \\, and sed turns \\ into \.
15644       sed -n \
15645         "s/'/'\\\\''/g;
15646           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15647       ;; #(
15648     *)
15649       # `set' quotes correctly as required by POSIX, so do not add quotes.
15650       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15651       ;;
15652     esac |
15653     sort
15654 ) |
15655   sed '
15656      /^ac_cv_env_/b end
15657      t clear
15658      :clear
15659      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15660      t end
15661      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15662      :end' >>confcache
15663 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15664   if test -w "$cache_file"; then
15665     test "x$cache_file" != "x/dev/null" &&
15666       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15667 $as_echo "$as_me: updating cache $cache_file" >&6;}
15668     cat confcache >$cache_file
15669   else
15670     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15671 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15672   fi
15673 fi
15674 rm -f confcache
15675
15676 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15677 # Let make expand exec_prefix.
15678 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15679
15680 DEFS=-DHAVE_CONFIG_H
15681
15682 ac_libobjs=
15683 ac_ltlibobjs=
15684 U=
15685 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15686   # 1. Remove the extension, and $U if already installed.
15687   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15688   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15689   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15690   #    will be set to the directory where LIBOBJS objects are built.
15691   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15692   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15693 done
15694 LIBOBJS=$ac_libobjs
15695
15696 LTLIBOBJS=$ac_ltlibobjs
15697
15698
15699
15700 : ${CONFIG_STATUS=./config.status}
15701 ac_write_fail=0
15702 ac_clean_files_save=$ac_clean_files
15703 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15704 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15705 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15706 as_write_fail=0
15707 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15708 #! $SHELL
15709 # Generated by $as_me.
15710 # Run this file to recreate the current configuration.
15711 # Compiler output produced by configure, useful for debugging
15712 # configure, is in config.log if it exists.
15713
15714 debug=false
15715 ac_cs_recheck=false
15716 ac_cs_silent=false
15717
15718 SHELL=\${CONFIG_SHELL-$SHELL}
15719 export SHELL
15720 _ASEOF
15721 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15722 ## -------------------- ##
15723 ## M4sh Initialization. ##
15724 ## -------------------- ##
15725
15726 # Be more Bourne compatible
15727 DUALCASE=1; export DUALCASE # for MKS sh
15728 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15729   emulate sh
15730   NULLCMD=:
15731   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15732   # is contrary to our usage.  Disable this feature.
15733   alias -g '${1+"$@"}'='"$@"'
15734   setopt NO_GLOB_SUBST
15735 else
15736   case `(set -o) 2>/dev/null` in #(
15737   *posix*) :
15738     set -o posix ;; #(
15739   *) :
15740      ;;
15741 esac
15742 fi
15743
15744
15745 as_nl='
15746 '
15747 export as_nl
15748 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15749 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15750 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15751 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15752 # Prefer a ksh shell builtin over an external printf program on Solaris,
15753 # but without wasting forks for bash or zsh.
15754 if test -z "$BASH_VERSION$ZSH_VERSION" \
15755     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15756   as_echo='print -r --'
15757   as_echo_n='print -rn --'
15758 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15759   as_echo='printf %s\n'
15760   as_echo_n='printf %s'
15761 else
15762   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15763     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15764     as_echo_n='/usr/ucb/echo -n'
15765   else
15766     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15767     as_echo_n_body='eval
15768       arg=$1;
15769       case $arg in #(
15770       *"$as_nl"*)
15771         expr "X$arg" : "X\\(.*\\)$as_nl";
15772         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15773       esac;
15774       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15775     '
15776     export as_echo_n_body
15777     as_echo_n='sh -c $as_echo_n_body as_echo'
15778   fi
15779   export as_echo_body
15780   as_echo='sh -c $as_echo_body as_echo'
15781 fi
15782
15783 # The user is always right.
15784 if test "${PATH_SEPARATOR+set}" != set; then
15785   PATH_SEPARATOR=:
15786   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15787     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15788       PATH_SEPARATOR=';'
15789   }
15790 fi
15791
15792
15793 # IFS
15794 # We need space, tab and new line, in precisely that order.  Quoting is
15795 # there to prevent editors from complaining about space-tab.
15796 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15797 # splitting by setting IFS to empty value.)
15798 IFS=" ""        $as_nl"
15799
15800 # Find who we are.  Look in the path if we contain no directory separator.
15801 case $0 in #((
15802   *[\\/]* ) as_myself=$0 ;;
15803   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15804 for as_dir in $PATH
15805 do
15806   IFS=$as_save_IFS
15807   test -z "$as_dir" && as_dir=.
15808     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15809   done
15810 IFS=$as_save_IFS
15811
15812      ;;
15813 esac
15814 # We did not find ourselves, most probably we were run as `sh COMMAND'
15815 # in which case we are not to be found in the path.
15816 if test "x$as_myself" = x; then
15817   as_myself=$0
15818 fi
15819 if test ! -f "$as_myself"; then
15820   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15821   exit 1
15822 fi
15823
15824 # Unset variables that we do not need and which cause bugs (e.g. in
15825 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15826 # suppresses any "Segmentation fault" message there.  '((' could
15827 # trigger a bug in pdksh 5.2.14.
15828 for as_var in BASH_ENV ENV MAIL MAILPATH
15829 do eval test x\${$as_var+set} = xset \
15830   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15831 done
15832 PS1='$ '
15833 PS2='> '
15834 PS4='+ '
15835
15836 # NLS nuisances.
15837 LC_ALL=C
15838 export LC_ALL
15839 LANGUAGE=C
15840 export LANGUAGE
15841
15842 # CDPATH.
15843 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15844
15845
15846 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15847 # ----------------------------------------
15848 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15849 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15850 # script with STATUS, using 1 if that was 0.
15851 as_fn_error ()
15852 {
15853   as_status=$1; test $as_status -eq 0 && as_status=1
15854   if test "$4"; then
15855     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15856     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15857   fi
15858   $as_echo "$as_me: error: $2" >&2
15859   as_fn_exit $as_status
15860 } # as_fn_error
15861
15862
15863 # as_fn_set_status STATUS
15864 # -----------------------
15865 # Set $? to STATUS, without forking.
15866 as_fn_set_status ()
15867 {
15868   return $1
15869 } # as_fn_set_status
15870
15871 # as_fn_exit STATUS
15872 # -----------------
15873 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15874 as_fn_exit ()
15875 {
15876   set +e
15877   as_fn_set_status $1
15878   exit $1
15879 } # as_fn_exit
15880
15881 # as_fn_unset VAR
15882 # ---------------
15883 # Portably unset VAR.
15884 as_fn_unset ()
15885 {
15886   { eval $1=; unset $1;}
15887 }
15888 as_unset=as_fn_unset
15889 # as_fn_append VAR VALUE
15890 # ----------------------
15891 # Append the text in VALUE to the end of the definition contained in VAR. Take
15892 # advantage of any shell optimizations that allow amortized linear growth over
15893 # repeated appends, instead of the typical quadratic growth present in naive
15894 # implementations.
15895 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15896   eval 'as_fn_append ()
15897   {
15898     eval $1+=\$2
15899   }'
15900 else
15901   as_fn_append ()
15902   {
15903     eval $1=\$$1\$2
15904   }
15905 fi # as_fn_append
15906
15907 # as_fn_arith ARG...
15908 # ------------------
15909 # Perform arithmetic evaluation on the ARGs, and store the result in the
15910 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15911 # must be portable across $(()) and expr.
15912 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15913   eval 'as_fn_arith ()
15914   {
15915     as_val=$(( $* ))
15916   }'
15917 else
15918   as_fn_arith ()
15919   {
15920     as_val=`expr "$@" || test $? -eq 1`
15921   }
15922 fi # as_fn_arith
15923
15924
15925 if expr a : '\(a\)' >/dev/null 2>&1 &&
15926    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15927   as_expr=expr
15928 else
15929   as_expr=false
15930 fi
15931
15932 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15933   as_basename=basename
15934 else
15935   as_basename=false
15936 fi
15937
15938 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15939   as_dirname=dirname
15940 else
15941   as_dirname=false
15942 fi
15943
15944 as_me=`$as_basename -- "$0" ||
15945 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15946          X"$0" : 'X\(//\)$' \| \
15947          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15948 $as_echo X/"$0" |
15949     sed '/^.*\/\([^/][^/]*\)\/*$/{
15950             s//\1/
15951             q
15952           }
15953           /^X\/\(\/\/\)$/{
15954             s//\1/
15955             q
15956           }
15957           /^X\/\(\/\).*/{
15958             s//\1/
15959             q
15960           }
15961           s/.*/./; q'`
15962
15963 # Avoid depending upon Character Ranges.
15964 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15965 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15966 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15967 as_cr_digits='0123456789'
15968 as_cr_alnum=$as_cr_Letters$as_cr_digits
15969
15970 ECHO_C= ECHO_N= ECHO_T=
15971 case `echo -n x` in #(((((
15972 -n*)
15973   case `echo 'xy\c'` in
15974   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
15975   xy)  ECHO_C='\c';;
15976   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15977        ECHO_T=' ';;
15978   esac;;
15979 *)
15980   ECHO_N='-n';;
15981 esac
15982
15983 rm -f conf$$ conf$$.exe conf$$.file
15984 if test -d conf$$.dir; then
15985   rm -f conf$$.dir/conf$$.file
15986 else
15987   rm -f conf$$.dir
15988   mkdir conf$$.dir 2>/dev/null
15989 fi
15990 if (echo >conf$$.file) 2>/dev/null; then
15991   if ln -s conf$$.file conf$$ 2>/dev/null; then
15992     as_ln_s='ln -s'
15993     # ... but there are two gotchas:
15994     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15995     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15996     # In both cases, we have to default to `cp -p'.
15997     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15998       as_ln_s='cp -p'
15999   elif ln conf$$.file conf$$ 2>/dev/null; then
16000     as_ln_s=ln
16001   else
16002     as_ln_s='cp -p'
16003   fi
16004 else
16005   as_ln_s='cp -p'
16006 fi
16007 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16008 rmdir conf$$.dir 2>/dev/null
16009
16010
16011 # as_fn_mkdir_p
16012 # -------------
16013 # Create "$as_dir" as a directory, including parents if necessary.
16014 as_fn_mkdir_p ()
16015 {
16016
16017   case $as_dir in #(
16018   -*) as_dir=./$as_dir;;
16019   esac
16020   test -d "$as_dir" || eval $as_mkdir_p || {
16021     as_dirs=
16022     while :; do
16023       case $as_dir in #(
16024       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16025       *) as_qdir=$as_dir;;
16026       esac
16027       as_dirs="'$as_qdir' $as_dirs"
16028       as_dir=`$as_dirname -- "$as_dir" ||
16029 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16030          X"$as_dir" : 'X\(//\)[^/]' \| \
16031          X"$as_dir" : 'X\(//\)$' \| \
16032          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16033 $as_echo X"$as_dir" |
16034     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16035             s//\1/
16036             q
16037           }
16038           /^X\(\/\/\)[^/].*/{
16039             s//\1/
16040             q
16041           }
16042           /^X\(\/\/\)$/{
16043             s//\1/
16044             q
16045           }
16046           /^X\(\/\).*/{
16047             s//\1/
16048             q
16049           }
16050           s/.*/./; q'`
16051       test -d "$as_dir" && break
16052     done
16053     test -z "$as_dirs" || eval "mkdir $as_dirs"
16054   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16055
16056
16057 } # as_fn_mkdir_p
16058 if mkdir -p . 2>/dev/null; then
16059   as_mkdir_p='mkdir -p "$as_dir"'
16060 else
16061   test -d ./-p && rmdir ./-p
16062   as_mkdir_p=false
16063 fi
16064
16065 if test -x / >/dev/null 2>&1; then
16066   as_test_x='test -x'
16067 else
16068   if ls -dL / >/dev/null 2>&1; then
16069     as_ls_L_option=L
16070   else
16071     as_ls_L_option=
16072   fi
16073   as_test_x='
16074     eval sh -c '\''
16075       if test -d "$1"; then
16076         test -d "$1/.";
16077       else
16078         case $1 in #(
16079         -*)set "./$1";;
16080         esac;
16081         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16082         ???[sx]*):;;*)false;;esac;fi
16083     '\'' sh
16084   '
16085 fi
16086 as_executable_p=$as_test_x
16087
16088 # Sed expression to map a string onto a valid CPP name.
16089 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16090
16091 # Sed expression to map a string onto a valid variable name.
16092 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16093
16094
16095 exec 6>&1
16096 ## ----------------------------------- ##
16097 ## Main body of $CONFIG_STATUS script. ##
16098 ## ----------------------------------- ##
16099 _ASEOF
16100 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16101
16102 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16103 # Save the log message, to keep $0 and so on meaningful, and to
16104 # report actual input values of CONFIG_FILES etc. instead of their
16105 # values after options handling.
16106 ac_log="
16107 This file was extended by Wine $as_me 1.3.15, which was
16108 generated by GNU Autoconf 2.67.  Invocation command line was
16109
16110   CONFIG_FILES    = $CONFIG_FILES
16111   CONFIG_HEADERS  = $CONFIG_HEADERS
16112   CONFIG_LINKS    = $CONFIG_LINKS
16113   CONFIG_COMMANDS = $CONFIG_COMMANDS
16114   $ $0 $@
16115
16116 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16117 "
16118
16119 _ACEOF
16120
16121 case $ac_config_files in *"
16122 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16123 esac
16124
16125 case $ac_config_headers in *"
16126 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16127 esac
16128
16129
16130 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16131 # Files that config.status was made for.
16132 config_files="$ac_config_files"
16133 config_headers="$ac_config_headers"
16134 config_links="$ac_config_links"
16135 config_commands="$ac_config_commands"
16136
16137 _ACEOF
16138
16139 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16140 ac_cs_usage="\
16141 \`$as_me' instantiates files and other configuration actions
16142 from templates according to the current configuration.  Unless the files
16143 and actions are specified as TAGs, all are instantiated by default.
16144
16145 Usage: $0 [OPTION]... [TAG]...
16146
16147   -h, --help       print this help, then exit
16148   -V, --version    print version number and configuration settings, then exit
16149       --config     print configuration, then exit
16150   -q, --quiet, --silent
16151                    do not print progress messages
16152   -d, --debug      don't remove temporary files
16153       --recheck    update $as_me by reconfiguring in the same conditions
16154       --file=FILE[:TEMPLATE]
16155                    instantiate the configuration file FILE
16156       --header=FILE[:TEMPLATE]
16157                    instantiate the configuration header FILE
16158
16159 Configuration files:
16160 $config_files
16161
16162 Configuration headers:
16163 $config_headers
16164
16165 Configuration links:
16166 $config_links
16167
16168 Configuration commands:
16169 $config_commands
16170
16171 Report bugs to <wine-devel@winehq.org>.
16172 Wine home page: <http://www.winehq.org>."
16173
16174 _ACEOF
16175 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16176 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16177 ac_cs_version="\\
16178 Wine config.status 1.3.15
16179 configured by $0, generated by GNU Autoconf 2.67,
16180   with options \\"\$ac_cs_config\\"
16181
16182 Copyright (C) 2010 Free Software Foundation, Inc.
16183 This config.status script is free software; the Free Software Foundation
16184 gives unlimited permission to copy, distribute and modify it."
16185
16186 ac_pwd='$ac_pwd'
16187 srcdir='$srcdir'
16188 INSTALL='$INSTALL'
16189 test -n "\$AWK" || AWK=awk
16190 _ACEOF
16191
16192 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16193 # The default lists apply if the user does not specify any file.
16194 ac_need_defaults=:
16195 while test $# != 0
16196 do
16197   case $1 in
16198   --*=?*)
16199     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16200     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16201     ac_shift=:
16202     ;;
16203   --*=)
16204     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16205     ac_optarg=
16206     ac_shift=:
16207     ;;
16208   *)
16209     ac_option=$1
16210     ac_optarg=$2
16211     ac_shift=shift
16212     ;;
16213   esac
16214
16215   case $ac_option in
16216   # Handling of the options.
16217   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16218     ac_cs_recheck=: ;;
16219   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16220     $as_echo "$ac_cs_version"; exit ;;
16221   --config | --confi | --conf | --con | --co | --c )
16222     $as_echo "$ac_cs_config"; exit ;;
16223   --debug | --debu | --deb | --de | --d | -d )
16224     debug=: ;;
16225   --file | --fil | --fi | --f )
16226     $ac_shift
16227     case $ac_optarg in
16228     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16229     '') as_fn_error $? "missing file argument" ;;
16230     esac
16231     as_fn_append CONFIG_FILES " '$ac_optarg'"
16232     ac_need_defaults=false;;
16233   --header | --heade | --head | --hea )
16234     $ac_shift
16235     case $ac_optarg in
16236     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16237     esac
16238     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16239     ac_need_defaults=false;;
16240   --he | --h)
16241     # Conflict between --help and --header
16242     as_fn_error $? "ambiguous option: \`$1'
16243 Try \`$0 --help' for more information.";;
16244   --help | --hel | -h )
16245     $as_echo "$ac_cs_usage"; exit ;;
16246   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16247   | -silent | --silent | --silen | --sile | --sil | --si | --s)
16248     ac_cs_silent=: ;;
16249
16250   # This is an error.
16251   -*) as_fn_error $? "unrecognized option: \`$1'
16252 Try \`$0 --help' for more information." ;;
16253
16254   *) as_fn_append ac_config_targets " $1"
16255      ac_need_defaults=false ;;
16256
16257   esac
16258   shift
16259 done
16260
16261 ac_configure_extra_args=
16262
16263 if $ac_cs_silent; then
16264   exec 6>/dev/null
16265   ac_configure_extra_args="$ac_configure_extra_args --silent"
16266 fi
16267
16268 _ACEOF
16269 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16270 if \$ac_cs_recheck; then
16271   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16272   shift
16273   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16274   CONFIG_SHELL='$SHELL'
16275   export CONFIG_SHELL
16276   exec "\$@"
16277 fi
16278
16279 _ACEOF
16280 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16281 exec 5>>config.log
16282 {
16283   echo
16284   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16285 ## Running $as_me. ##
16286 _ASBOX
16287   $as_echo "$ac_log"
16288 } >&5
16289
16290 _ACEOF
16291 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16292 #
16293 # INIT-COMMANDS
16294 #
16295 wine_fn_output_makefile ()
16296 {
16297     cat Make.tmp - <<\_WINE_EOF >\$tmp/makefile && mv -f \$tmp/makefile \$1 && rm -f Make.tmp && return
16298 $ALL_MAKEFILE_DEPENDS
16299 _WINE_EOF
16300     as_fn_error $? "could not create Makefile" "$LINENO" 5
16301 }
16302
16303 _ACEOF
16304
16305 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16306
16307 # Handling of arguments.
16308 for ac_config_target in $ac_config_targets
16309 do
16310   case $ac_config_target in
16311     "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
16312     "include/stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/stamp-h" ;;
16313     "dlls/shell32/AUTHORS") CONFIG_LINKS="$CONFIG_LINKS dlls/shell32/AUTHORS:AUTHORS" ;;
16314     "dlls/wineps.drv/generic.ppd") CONFIG_LINKS="$CONFIG_LINKS dlls/wineps.drv/generic.ppd:dlls/wineps.drv/generic.ppd" ;;
16315     "fonts/marlett.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/marlett.ttf:fonts/marlett.ttf" ;;
16316     "fonts/symbol.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/symbol.ttf:fonts/symbol.ttf" ;;
16317     "fonts/tahoma.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahoma.ttf:fonts/tahoma.ttf" ;;
16318     "fonts/tahomabd.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahomabd.ttf:fonts/tahomabd.ttf" ;;
16319     "tools/l_intl.nls") CONFIG_LINKS="$CONFIG_LINKS tools/l_intl.nls:tools/l_intl.nls" ;;
16320     "wine") CONFIG_LINKS="$CONFIG_LINKS wine:tools/winewrapper" ;;
16321     "dlls/gdi32/enhmfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/enhmfdrv" ;;
16322     "dlls/gdi32/mfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/mfdrv" ;;
16323     "dlls/kernel32/nls") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel32/nls" ;;
16324     "dlls/user32/resources") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user32/resources" ;;
16325     "dlls/wineps.drv/data") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps.drv/data" ;;
16326     "include/wine") CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
16327     "Make.rules") CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
16328     "Maketest.rules") CONFIG_FILES="$CONFIG_FILES Maketest.rules" ;;
16329     "dlls/Makedll.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
16330     "dlls/Makeimplib.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makeimplib.rules" ;;
16331     "programs/Makeprog.rules") CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
16332     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
16333     "Make.tmp") CONFIG_FILES="$CONFIG_FILES Make.tmp:Make.vars.in:Makefile.in" ;;
16334
16335   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
16336   esac
16337 done
16338
16339
16340 # If the user did not use the arguments to specify the items to instantiate,
16341 # then the envvar interface is used.  Set only those that are not.
16342 # We use the long form for the default assignment because of an extremely
16343 # bizarre bug on SunOS 4.1.3.
16344 if $ac_need_defaults; then
16345   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16346   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16347   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
16348   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16349 fi
16350
16351 # Have a temporary directory for convenience.  Make it in the build tree
16352 # simply because there is no reason against having it here, and in addition,
16353 # creating and moving files from /tmp can sometimes cause problems.
16354 # Hook for its removal unless debugging.
16355 # Note that there is a small window in which the directory will not be cleaned:
16356 # after its creation but before its name has been assigned to `$tmp'.
16357 $debug ||
16358 {
16359   tmp=
16360   trap 'exit_status=$?
16361   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16362 ' 0
16363   trap 'as_fn_exit 1' 1 2 13 15
16364 }
16365 # Create a (secure) tmp directory for tmp files.
16366
16367 {
16368   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16369   test -n "$tmp" && test -d "$tmp"
16370 }  ||
16371 {
16372   tmp=./conf$$-$RANDOM
16373   (umask 077 && mkdir "$tmp")
16374 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16375
16376 # Set up the scripts for CONFIG_FILES section.
16377 # No need to generate them if there are no CONFIG_FILES.
16378 # This happens for instance with `./config.status config.h'.
16379 if test -n "$CONFIG_FILES"; then
16380
16381 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16382   ac_cs_awk_getline=:
16383   ac_cs_awk_pipe_init=
16384   ac_cs_awk_read_file='
16385       while ((getline aline < (F[key])) > 0)
16386         print(aline)
16387       close(F[key])'
16388   ac_cs_awk_pipe_fini=
16389 else
16390   ac_cs_awk_getline=false
16391   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16392   ac_cs_awk_read_file='
16393       print "|#_!!_#|"
16394       print "cat " F[key] " &&"
16395       '$ac_cs_awk_pipe_init
16396   # The final `:' finishes the AND list.
16397   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16398 fi
16399 ac_cr=`echo X | tr X '\015'`
16400 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16401 # But we know of no other shell where ac_cr would be empty at this
16402 # point, so we can use a bashism as a fallback.
16403 if test "x$ac_cr" = x; then
16404   eval ac_cr=\$\'\\r\'
16405 fi
16406 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16407 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16408   ac_cs_awk_cr='\\r'
16409 else
16410   ac_cs_awk_cr=$ac_cr
16411 fi
16412
16413 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16414 _ACEOF
16415
16416 # Create commands to substitute file output variables.
16417 {
16418   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16419   echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
16420   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16421   echo "_ACAWK" &&
16422   echo "_ACEOF"
16423 } >conf$$files.sh &&
16424 . ./conf$$files.sh ||
16425   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16426 rm -f conf$$files.sh
16427
16428 {
16429   echo "cat >conf$$subs.awk <<_ACEOF" &&
16430   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16431   echo "_ACEOF"
16432 } >conf$$subs.sh ||
16433   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16434 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16435 ac_delim='%!_!# '
16436 for ac_last_try in false false false false false :; do
16437   . ./conf$$subs.sh ||
16438     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16439
16440   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16441   if test $ac_delim_n = $ac_delim_num; then
16442     break
16443   elif $ac_last_try; then
16444     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16445   else
16446     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16447   fi
16448 done
16449 rm -f conf$$subs.sh
16450
16451 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16452 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16453 _ACEOF
16454 sed -n '
16455 h
16456 s/^/S["/; s/!.*/"]=/
16457 p
16458 g
16459 s/^[^!]*!//
16460 :repl
16461 t repl
16462 s/'"$ac_delim"'$//
16463 t delim
16464 :nl
16465 h
16466 s/\(.\{148\}\)..*/\1/
16467 t more1
16468 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16469 p
16470 n
16471 b repl
16472 :more1
16473 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16474 p
16475 g
16476 s/.\{148\}//
16477 t nl
16478 :delim
16479 h
16480 s/\(.\{148\}\)..*/\1/
16481 t more2
16482 s/["\\]/\\&/g; s/^/"/; s/$/"/
16483 p
16484 b
16485 :more2
16486 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16487 p
16488 g
16489 s/.\{148\}//
16490 t delim
16491 ' <conf$$subs.awk | sed '
16492 /^[^""]/{
16493   N
16494   s/\n//
16495 }
16496 ' >>$CONFIG_STATUS || ac_write_fail=1
16497 rm -f conf$$subs.awk
16498 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16499 _ACAWK
16500 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16501   for (key in S) S_is_set[key] = 1
16502   FS = "\a"
16503   \$ac_cs_awk_pipe_init
16504 }
16505 {
16506   line = $ 0
16507   nfields = split(line, field, "@")
16508   substed = 0
16509   len = length(field[1])
16510   for (i = 2; i < nfields; i++) {
16511     key = field[i]
16512     keylen = length(key)
16513     if (S_is_set[key]) {
16514       value = S[key]
16515       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16516       len += length(value) + length(field[++i])
16517       substed = 1
16518     } else
16519       len += 1 + keylen
16520   }
16521   if (nfields == 3 && !substed) {
16522     key = field[2]
16523     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
16524       \$ac_cs_awk_read_file
16525       next
16526     }
16527   }
16528   print line
16529 }
16530 \$ac_cs_awk_pipe_fini
16531 _ACAWK
16532 _ACEOF
16533 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16534 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16535   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16536 else
16537   cat
16538 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16539   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16540 _ACEOF
16541
16542 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16543 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16544 # trailing colons and then remove the whole line if VPATH becomes empty
16545 # (actually we leave an empty line to preserve line numbers).
16546 if test "x$srcdir" = x.; then
16547   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
16548 h
16549 s///
16550 s/^/:/
16551 s/[      ]*$/:/
16552 s/:\$(srcdir):/:/g
16553 s/:\${srcdir}:/:/g
16554 s/:@srcdir@:/:/g
16555 s/^:*//
16556 s/:*$//
16557 x
16558 s/\(=[   ]*\).*/\1/
16559 G
16560 s/\n//
16561 s/^[^=]*=[       ]*$//
16562 }'
16563 fi
16564
16565 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16566 fi # test -n "$CONFIG_FILES"
16567
16568 # Set up the scripts for CONFIG_HEADERS section.
16569 # No need to generate them if there are no CONFIG_HEADERS.
16570 # This happens for instance with `./config.status Makefile'.
16571 if test -n "$CONFIG_HEADERS"; then
16572 cat >"$tmp/defines.awk" <<\_ACAWK ||
16573 BEGIN {
16574 _ACEOF
16575
16576 # Transform confdefs.h into an awk script `defines.awk', embedded as
16577 # here-document in config.status, that substitutes the proper values into
16578 # config.h.in to produce config.h.
16579
16580 # Create a delimiter string that does not exist in confdefs.h, to ease
16581 # handling of long lines.
16582 ac_delim='%!_!# '
16583 for ac_last_try in false false :; do
16584   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16585   if test -z "$ac_t"; then
16586     break
16587   elif $ac_last_try; then
16588     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16589   else
16590     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16591   fi
16592 done
16593
16594 # For the awk script, D is an array of macro values keyed by name,
16595 # likewise P contains macro parameters if any.  Preserve backslash
16596 # newline sequences.
16597
16598 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16599 sed -n '
16600 s/.\{148\}/&'"$ac_delim"'/g
16601 t rset
16602 :rset
16603 s/^[     ]*#[    ]*define[       ][      ]*/ /
16604 t def
16605 d
16606 :def
16607 s/\\$//
16608 t bsnl
16609 s/["\\]/\\&/g
16610 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16611 D["\1"]=" \3"/p
16612 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
16613 d
16614 :bsnl
16615 s/["\\]/\\&/g
16616 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16617 D["\1"]=" \3\\\\\\n"\\/p
16618 t cont
16619 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16620 t cont
16621 d
16622 :cont
16623 n
16624 s/.\{148\}/&'"$ac_delim"'/g
16625 t clear
16626 :clear
16627 s/\\$//
16628 t bsnlc
16629 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16630 d
16631 :bsnlc
16632 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16633 b cont
16634 ' <confdefs.h | sed '
16635 s/'"$ac_delim"'/"\\\
16636 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16637
16638 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16639   for (key in D) D_is_set[key] = 1
16640   FS = "\a"
16641 }
16642 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16643   line = \$ 0
16644   split(line, arg, " ")
16645   if (arg[1] == "#") {
16646     defundef = arg[2]
16647     mac1 = arg[3]
16648   } else {
16649     defundef = substr(arg[1], 2)
16650     mac1 = arg[2]
16651   }
16652   split(mac1, mac2, "(") #)
16653   macro = mac2[1]
16654   prefix = substr(line, 1, index(line, defundef) - 1)
16655   if (D_is_set[macro]) {
16656     # Preserve the white space surrounding the "#".
16657     print prefix "define", macro P[macro] D[macro]
16658     next
16659   } else {
16660     # Replace #undef with comments.  This is necessary, for example,
16661     # in the case of _POSIX_SOURCE, which is predefined and required
16662     # on some systems where configure will not decide to define it.
16663     if (defundef == "undef") {
16664       print "/*", prefix defundef, macro, "*/"
16665       next
16666     }
16667   }
16668 }
16669 { print }
16670 _ACAWK
16671 _ACEOF
16672 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16673   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16674 fi # test -n "$CONFIG_HEADERS"
16675
16676
16677 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
16678 shift
16679 for ac_tag
16680 do
16681   case $ac_tag in
16682   :[FHLC]) ac_mode=$ac_tag; continue;;
16683   esac
16684   case $ac_mode$ac_tag in
16685   :[FHL]*:*);;
16686   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
16687   :[FH]-) ac_tag=-:-;;
16688   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16689   esac
16690   ac_save_IFS=$IFS
16691   IFS=:
16692   set x $ac_tag
16693   IFS=$ac_save_IFS
16694   shift
16695   ac_file=$1
16696   shift
16697
16698   case $ac_mode in
16699   :L) ac_source=$1;;
16700   :[FH])
16701     ac_file_inputs=
16702     for ac_f
16703     do
16704       case $ac_f in
16705       -) ac_f="$tmp/stdin";;
16706       *) # Look for the file first in the build tree, then in the source tree
16707          # (if the path is not absolute).  The absolute path cannot be DOS-style,
16708          # because $ac_f cannot contain `:'.
16709          test -f "$ac_f" ||
16710            case $ac_f in
16711            [\\/$]*) false;;
16712            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16713            esac ||
16714            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
16715       esac
16716       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16717       as_fn_append ac_file_inputs " '$ac_f'"
16718     done
16719
16720     # Let's still pretend it is `configure' which instantiates (i.e., don't
16721     # use $as_me), people would be surprised to read:
16722     #    /* config.h.  Generated by config.status.  */
16723     configure_input='Generated from '`
16724           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16725         `' by configure.'
16726     if test x"$ac_file" != x-; then
16727       configure_input="$ac_file.  $configure_input"
16728       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16729 $as_echo "$as_me: creating $ac_file" >&6;}
16730     fi
16731     # Neutralize special characters interpreted by sed in replacement strings.
16732     case $configure_input in #(
16733     *\&* | *\|* | *\\* )
16734        ac_sed_conf_input=`$as_echo "$configure_input" |
16735        sed 's/[\\\\&|]/\\\\&/g'`;; #(
16736     *) ac_sed_conf_input=$configure_input;;
16737     esac
16738
16739     case $ac_tag in
16740     *:-:* | *:-) cat >"$tmp/stdin" \
16741       || as_fn_error $? "could not create $ac_file" "$LINENO" 5  ;;
16742     esac
16743     ;;
16744   esac
16745
16746   ac_dir=`$as_dirname -- "$ac_file" ||
16747 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16748          X"$ac_file" : 'X\(//\)[^/]' \| \
16749          X"$ac_file" : 'X\(//\)$' \| \
16750          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16751 $as_echo X"$ac_file" |
16752     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16753             s//\1/
16754             q
16755           }
16756           /^X\(\/\/\)[^/].*/{
16757             s//\1/
16758             q
16759           }
16760           /^X\(\/\/\)$/{
16761             s//\1/
16762             q
16763           }
16764           /^X\(\/\).*/{
16765             s//\1/
16766             q
16767           }
16768           s/.*/./; q'`
16769   as_dir="$ac_dir"; as_fn_mkdir_p
16770   ac_builddir=.
16771
16772 case "$ac_dir" in
16773 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16774 *)
16775   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16776   # A ".." for each directory in $ac_dir_suffix.
16777   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16778   case $ac_top_builddir_sub in
16779   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16780   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16781   esac ;;
16782 esac
16783 ac_abs_top_builddir=$ac_pwd
16784 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16785 # for backward compatibility:
16786 ac_top_builddir=$ac_top_build_prefix
16787
16788 case $srcdir in
16789   .)  # We are building in place.
16790     ac_srcdir=.
16791     ac_top_srcdir=$ac_top_builddir_sub
16792     ac_abs_top_srcdir=$ac_pwd ;;
16793   [\\/]* | ?:[\\/]* )  # Absolute name.
16794     ac_srcdir=$srcdir$ac_dir_suffix;
16795     ac_top_srcdir=$srcdir
16796     ac_abs_top_srcdir=$srcdir ;;
16797   *) # Relative name.
16798     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16799     ac_top_srcdir=$ac_top_build_prefix$srcdir
16800     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16801 esac
16802 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16803
16804
16805   case $ac_mode in
16806   :F)
16807   #
16808   # CONFIG_FILE
16809   #
16810
16811   case $INSTALL in
16812   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16813   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16814   esac
16815 _ACEOF
16816
16817 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16818 # If the template does not know about datarootdir, expand it.
16819 # FIXME: This hack should be removed a few years after 2.60.
16820 ac_datarootdir_hack=; ac_datarootdir_seen=
16821 ac_sed_dataroot='
16822 /datarootdir/ {
16823   p
16824   q
16825 }
16826 /@datadir@/p
16827 /@docdir@/p
16828 /@infodir@/p
16829 /@localedir@/p
16830 /@mandir@/p'
16831 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16832 *datarootdir*) ac_datarootdir_seen=yes;;
16833 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16834   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16835 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16836 _ACEOF
16837 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16838   ac_datarootdir_hack='
16839   s&@datadir@&$datadir&g
16840   s&@docdir@&$docdir&g
16841   s&@infodir@&$infodir&g
16842   s&@localedir@&$localedir&g
16843   s&@mandir@&$mandir&g
16844   s&\\\${datarootdir}&$datarootdir&g' ;;
16845 esac
16846 _ACEOF
16847
16848 # Neutralize VPATH when `$srcdir' = `.'.
16849 # Shell code in configure.ac might set extrasub.
16850 # FIXME: do we really want to maintain this feature?
16851 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16852 ac_sed_extra="$ac_vpsub
16853 $extrasub
16854 _ACEOF
16855 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16856 :t
16857 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16858 s|@configure_input@|$ac_sed_conf_input|;t t
16859 s&@top_builddir@&$ac_top_builddir_sub&;t t
16860 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16861 s&@srcdir@&$ac_srcdir&;t t
16862 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16863 s&@top_srcdir@&$ac_top_srcdir&;t t
16864 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16865 s&@builddir@&$ac_builddir&;t t
16866 s&@abs_builddir@&$ac_abs_builddir&;t t
16867 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16868 s&@INSTALL@&$ac_INSTALL&;t t
16869 $ac_datarootdir_hack
16870 "
16871 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16872 if $ac_cs_awk_getline; then
16873   $AWK -f "$tmp/subs.awk"
16874 else
16875   $AWK -f "$tmp/subs.awk" | $SHELL
16876 fi >$tmp/out \
16877   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16878
16879 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16880   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16881   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16882   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16883 which seems to be undefined.  Please make sure it is defined" >&5
16884 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16885 which seems to be undefined.  Please make sure it is defined" >&2;}
16886
16887   rm -f "$tmp/stdin"
16888   case $ac_file in
16889   -) cat "$tmp/out" && rm -f "$tmp/out";;
16890   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16891   esac \
16892   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16893  ;;
16894   :H)
16895   #
16896   # CONFIG_HEADER
16897   #
16898   if test x"$ac_file" != x-; then
16899     {
16900       $as_echo "/* $configure_input  */" \
16901       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16902     } >"$tmp/config.h" \
16903       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16904     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16905       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16906 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16907     else
16908       rm -f "$ac_file"
16909       mv "$tmp/config.h" "$ac_file" \
16910         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16911     fi
16912   else
16913     $as_echo "/* $configure_input  */" \
16914       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16915       || as_fn_error $? "could not create -" "$LINENO" 5
16916   fi
16917  ;;
16918   :L)
16919   #
16920   # CONFIG_LINK
16921   #
16922
16923   if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
16924     :
16925   else
16926     # Prefer the file from the source tree if names are identical.
16927     if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
16928       ac_source=$srcdir/$ac_source
16929     fi
16930
16931     { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
16932 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
16933
16934     if test ! -r "$ac_source"; then
16935       as_fn_error $? "$ac_source: file not found" "$LINENO" 5
16936     fi
16937     rm -f "$ac_file"
16938
16939     # Try a relative symlink, then a hard link, then a copy.
16940     case $ac_source in
16941     [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
16942         *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
16943     esac
16944     ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
16945       ln "$ac_source" "$ac_file" 2>/dev/null ||
16946       cp -p "$ac_source" "$ac_file" ||
16947       as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
16948   fi
16949  ;;
16950   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16951 $as_echo "$as_me: executing $ac_file commands" >&6;}
16952  ;;
16953   esac
16954
16955
16956   case $ac_file$ac_mode in
16957     "include/stamp-h":C) echo timestamp > include/stamp-h ;;
16958     "dlls/gdi32/enhmfdrv":C) test -d "dlls/gdi32/enhmfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/enhmfdrv" >&5
16959 $as_echo "$as_me: creating dlls/gdi32/enhmfdrv" >&6;}; as_dir="dlls/gdi32/enhmfdrv"; as_fn_mkdir_p; } ;;
16960     "dlls/gdi32/mfdrv":C) test -d "dlls/gdi32/mfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/mfdrv" >&5
16961 $as_echo "$as_me: creating dlls/gdi32/mfdrv" >&6;}; as_dir="dlls/gdi32/mfdrv"; as_fn_mkdir_p; } ;;
16962     "dlls/kernel32/nls":C) test -d "dlls/kernel32/nls" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/kernel32/nls" >&5
16963 $as_echo "$as_me: creating dlls/kernel32/nls" >&6;}; as_dir="dlls/kernel32/nls"; as_fn_mkdir_p; } ;;
16964     "dlls/user32/resources":C) test -d "dlls/user32/resources" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/user32/resources" >&5
16965 $as_echo "$as_me: creating dlls/user32/resources" >&6;}; as_dir="dlls/user32/resources"; as_fn_mkdir_p; } ;;
16966     "dlls/wineps.drv/data":C) test -d "dlls/wineps.drv/data" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/wineps.drv/data" >&5
16967 $as_echo "$as_me: creating dlls/wineps.drv/data" >&6;}; as_dir="dlls/wineps.drv/data"; as_fn_mkdir_p; } ;;
16968     "include/wine":C) test -d "include/wine" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating include/wine" >&5
16969 $as_echo "$as_me: creating include/wine" >&6;}; as_dir="include/wine"; as_fn_mkdir_p; } ;;
16970     "Makefile":C) wine_fn_output_makefile Makefile ;;
16971
16972   esac
16973 done # for ac_tag
16974
16975
16976 as_fn_exit 0
16977 _ACEOF
16978 ac_clean_files=$ac_clean_files_save
16979
16980 test $ac_write_fail = 0 ||
16981   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16982
16983
16984 # configure is writing to config.log, and then calls config.status.
16985 # config.status does its own redirection, appending to config.log.
16986 # Unfortunately, on DOS this fails, as config.log is still kept open
16987 # by configure, so config.status won't be able to write to it; its
16988 # output is simply discarded.  So we exec the FD to /dev/null,
16989 # effectively closing config.log, so it can be properly (re)opened and
16990 # appended to by config.status.  When coming back to configure, we
16991 # need to make the FD available again.
16992 if test "$no_create" != yes; then
16993   ac_cs_success=:
16994   ac_config_status_args=
16995   test "$silent" = yes &&
16996     ac_config_status_args="$ac_config_status_args --quiet"
16997   exec 5>/dev/null
16998   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16999   exec 5>>config.log
17000   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17001   # would make configure fail if this is the last instruction.
17002   $ac_cs_success || as_fn_exit 1
17003 fi
17004 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17005   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17006 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17007 fi
17008
17009
17010 if test "$no_create" = "yes"
17011 then
17012   exit 0
17013 fi
17014
17015 ac_save_IFS="$IFS"
17016 if test "x$wine_notices != "x; then
17017     echo >&6
17018     IFS="|"
17019     for msg in $wine_notices; do
17020         IFS="$ac_save_IFS"
17021         if test -n "$msg"; then
17022             { $as_echo "$as_me:${as_lineno-$LINENO}: $msg" >&5
17023 $as_echo "$as_me: $msg" >&6;}
17024         fi
17025     done
17026 fi
17027 IFS="|"
17028 for msg in $wine_warnings; do
17029     IFS="$ac_save_IFS"
17030     if test -n "$msg"; then
17031         echo >&2
17032         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $msg" >&5
17033 $as_echo "$as_me: WARNING: $msg" >&2;}
17034     fi
17035 done
17036 IFS="$ac_save_IFS"
17037
17038 echo "
17039 $as_me: Finished.  Do '${ac_make}' to compile Wine.
17040 " >&6
17041