ddraw: DDSCL_CREATEDEVICEWINDOW requires DDSCL_EXCLUSIVE.
[wine] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for Wine 1.3.35.
4 #
5 # Report bugs to <wine-devel@winehq.org>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22   emulate sh
23   NULLCMD=:
24   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25   # is contrary to our usage.  Disable this feature.
26   alias -g '${1+"$@"}'='"$@"'
27   setopt NO_GLOB_SUBST
28 else
29   case `(set -o) 2>/dev/null` in #(
30   *posix*) :
31     set -o posix ;; #(
32   *) :
33      ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49   as_echo='print -r --'
50   as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52   as_echo='printf %s\n'
53   as_echo_n='printf %s'
54 else
55   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57     as_echo_n='/usr/ucb/echo -n'
58   else
59     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60     as_echo_n_body='eval
61       arg=$1;
62       case $arg in #(
63       *"$as_nl"*)
64         expr "X$arg" : "X\\(.*\\)$as_nl";
65         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66       esac;
67       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68     '
69     export as_echo_n_body
70     as_echo_n='sh -c $as_echo_n_body as_echo'
71   fi
72   export as_echo_body
73   as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78   PATH_SEPARATOR=:
79   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81       PATH_SEPARATOR=';'
82   }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order.  Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" ""        $as_nl"
92
93 # Find who we are.  Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96   *[\\/]* ) as_myself=$0 ;;
97   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100   IFS=$as_save_IFS
101   test -z "$as_dir" && as_dir=.
102     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103   done
104 IFS=$as_save_IFS
105
106      ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111   as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115   exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there.  '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 if test "x$CONFIG_SHELL" = x; then
140   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141   emulate sh
142   NULLCMD=:
143   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144   # is contrary to our usage.  Disable this feature.
145   alias -g '\${1+\"\$@\"}'='\"\$@\"'
146   setopt NO_GLOB_SUBST
147 else
148   case \`(set -o) 2>/dev/null\` in #(
149   *posix*) :
150     set -o posix ;; #(
151   *) :
152      ;;
153 esac
154 fi
155 "
156   as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
161
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169 else
170   exitcode=1; echo positional parameters were not saved.
171 fi
172 test x\$exitcode = x0 || exit 1"
173   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1"
178   if (eval "$as_required") 2>/dev/null; then :
179   as_have_required=yes
180 else
181   as_have_required=no
182 fi
183   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184
185 else
186   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187 as_found=false
188 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189 do
190   IFS=$as_save_IFS
191   test -z "$as_dir" && as_dir=.
192   as_found=:
193   case $as_dir in #(
194          /*)
195            for as_base in sh bash ksh sh5; do
196              # Try only shells that exist, to save several forks.
197              as_shell=$as_dir/$as_base
198              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200   CONFIG_SHELL=$as_shell as_have_required=yes
201                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
202   break 2
203 fi
204 fi
205            done;;
206        esac
207   as_found=false
208 done
209 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211   CONFIG_SHELL=$SHELL as_have_required=yes
212 fi; }
213 IFS=$as_save_IFS
214
215
216       if test "x$CONFIG_SHELL" != x; then :
217   # We cannot yet assume a decent shell, so we have to provide a
218         # neutralization value for shells without unset; and this also
219         # works around shells that cannot unset nonexistent variables.
220         # Preserve -v and -x to the replacement shell.
221         BASH_ENV=/dev/null
222         ENV=/dev/null
223         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224         export CONFIG_SHELL
225         case $- in # ((((
226           *v*x* | *x*v* ) as_opts=-vx ;;
227           *v* ) as_opts=-v ;;
228           *x* ) as_opts=-x ;;
229           * ) as_opts= ;;
230         esac
231         exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232 fi
233
234     if test x$as_have_required = xno; then :
235   $as_echo "$0: This script requires a shell more modern than all"
236   $as_echo "$0: the shells that I found on your system."
237   if test x${ZSH_VERSION+set} = xset ; then
238     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240   else
241     $as_echo "$0: Please tell bug-autoconf@gnu.org and
242 $0: wine-devel@winehq.org about your system, including any
243 $0: error possibly output before this message. Then install
244 $0: a modern shell, or manually run the script under such a
245 $0: shell if you do have one."
246   fi
247   exit 1
248 fi
249 fi
250 fi
251 SHELL=${CONFIG_SHELL-/bin/sh}
252 export SHELL
253 # Unset more variables known to interfere with behavior of common tools.
254 CLICOLOR_FORCE= GREP_OPTIONS=
255 unset CLICOLOR_FORCE GREP_OPTIONS
256
257 ## --------------------- ##
258 ## M4sh Shell Functions. ##
259 ## --------------------- ##
260 # as_fn_unset VAR
261 # ---------------
262 # Portably unset VAR.
263 as_fn_unset ()
264 {
265   { eval $1=; unset $1;}
266 }
267 as_unset=as_fn_unset
268
269 # as_fn_set_status STATUS
270 # -----------------------
271 # Set $? to STATUS, without forking.
272 as_fn_set_status ()
273 {
274   return $1
275 } # as_fn_set_status
276
277 # as_fn_exit STATUS
278 # -----------------
279 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
280 as_fn_exit ()
281 {
282   set +e
283   as_fn_set_status $1
284   exit $1
285 } # as_fn_exit
286
287 # as_fn_mkdir_p
288 # -------------
289 # Create "$as_dir" as a directory, including parents if necessary.
290 as_fn_mkdir_p ()
291 {
292
293   case $as_dir in #(
294   -*) as_dir=./$as_dir;;
295   esac
296   test -d "$as_dir" || eval $as_mkdir_p || {
297     as_dirs=
298     while :; do
299       case $as_dir in #(
300       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
301       *) as_qdir=$as_dir;;
302       esac
303       as_dirs="'$as_qdir' $as_dirs"
304       as_dir=`$as_dirname -- "$as_dir" ||
305 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
306          X"$as_dir" : 'X\(//\)[^/]' \| \
307          X"$as_dir" : 'X\(//\)$' \| \
308          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
309 $as_echo X"$as_dir" |
310     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
311             s//\1/
312             q
313           }
314           /^X\(\/\/\)[^/].*/{
315             s//\1/
316             q
317           }
318           /^X\(\/\/\)$/{
319             s//\1/
320             q
321           }
322           /^X\(\/\).*/{
323             s//\1/
324             q
325           }
326           s/.*/./; q'`
327       test -d "$as_dir" && break
328     done
329     test -z "$as_dirs" || eval "mkdir $as_dirs"
330   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
331
332
333 } # as_fn_mkdir_p
334 # as_fn_append VAR VALUE
335 # ----------------------
336 # Append the text in VALUE to the end of the definition contained in VAR. Take
337 # advantage of any shell optimizations that allow amortized linear growth over
338 # repeated appends, instead of the typical quadratic growth present in naive
339 # implementations.
340 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
341   eval 'as_fn_append ()
342   {
343     eval $1+=\$2
344   }'
345 else
346   as_fn_append ()
347   {
348     eval $1=\$$1\$2
349   }
350 fi # as_fn_append
351
352 # as_fn_arith ARG...
353 # ------------------
354 # Perform arithmetic evaluation on the ARGs, and store the result in the
355 # global $as_val. Take advantage of shells that can avoid forks. The arguments
356 # must be portable across $(()) and expr.
357 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
358   eval 'as_fn_arith ()
359   {
360     as_val=$(( $* ))
361   }'
362 else
363   as_fn_arith ()
364   {
365     as_val=`expr "$@" || test $? -eq 1`
366   }
367 fi # as_fn_arith
368
369
370 # as_fn_error STATUS ERROR [LINENO LOG_FD]
371 # ----------------------------------------
372 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
373 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
374 # script with STATUS, using 1 if that was 0.
375 as_fn_error ()
376 {
377   as_status=$1; test $as_status -eq 0 && as_status=1
378   if test "$4"; then
379     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
380     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
381   fi
382   $as_echo "$as_me: error: $2" >&2
383   as_fn_exit $as_status
384 } # as_fn_error
385
386 if expr a : '\(a\)' >/dev/null 2>&1 &&
387    test "X`expr 00001 : '.*\(...\)'`" = X001; then
388   as_expr=expr
389 else
390   as_expr=false
391 fi
392
393 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
394   as_basename=basename
395 else
396   as_basename=false
397 fi
398
399 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
400   as_dirname=dirname
401 else
402   as_dirname=false
403 fi
404
405 as_me=`$as_basename -- "$0" ||
406 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
407          X"$0" : 'X\(//\)$' \| \
408          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
409 $as_echo X/"$0" |
410     sed '/^.*\/\([^/][^/]*\)\/*$/{
411             s//\1/
412             q
413           }
414           /^X\/\(\/\/\)$/{
415             s//\1/
416             q
417           }
418           /^X\/\(\/\).*/{
419             s//\1/
420             q
421           }
422           s/.*/./; q'`
423
424 # Avoid depending upon Character Ranges.
425 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
426 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
427 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
428 as_cr_digits='0123456789'
429 as_cr_alnum=$as_cr_Letters$as_cr_digits
430
431
432   as_lineno_1=$LINENO as_lineno_1a=$LINENO
433   as_lineno_2=$LINENO as_lineno_2a=$LINENO
434   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
435   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
436   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
437   sed -n '
438     p
439     /[$]LINENO/=
440   ' <$as_myself |
441     sed '
442       s/[$]LINENO.*/&-/
443       t lineno
444       b
445       :lineno
446       N
447       :loop
448       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449       t loop
450       s/-\n.*//
451     ' >$as_me.lineno &&
452   chmod +x "$as_me.lineno" ||
453     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
454
455   # Don't try to exec as it changes $[0], causing all sort of problems
456   # (the dirname of $[0] is not the place where we might find the
457   # original and so on.  Autoconf is especially sensitive to this).
458   . "./$as_me.lineno"
459   # Exit status is that of the last command.
460   exit
461 }
462
463 ECHO_C= ECHO_N= ECHO_T=
464 case `echo -n x` in #(((((
465 -n*)
466   case `echo 'xy\c'` in
467   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
468   xy)  ECHO_C='\c';;
469   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
470        ECHO_T=' ';;
471   esac;;
472 *)
473   ECHO_N='-n';;
474 esac
475
476 rm -f conf$$ conf$$.exe conf$$.file
477 if test -d conf$$.dir; then
478   rm -f conf$$.dir/conf$$.file
479 else
480   rm -f conf$$.dir
481   mkdir conf$$.dir 2>/dev/null
482 fi
483 if (echo >conf$$.file) 2>/dev/null; then
484   if ln -s conf$$.file conf$$ 2>/dev/null; then
485     as_ln_s='ln -s'
486     # ... but there are two gotchas:
487     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
488     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
489     # In both cases, we have to default to `cp -p'.
490     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
491       as_ln_s='cp -p'
492   elif ln conf$$.file conf$$ 2>/dev/null; then
493     as_ln_s=ln
494   else
495     as_ln_s='cp -p'
496   fi
497 else
498   as_ln_s='cp -p'
499 fi
500 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
501 rmdir conf$$.dir 2>/dev/null
502
503 if mkdir -p . 2>/dev/null; then
504   as_mkdir_p='mkdir -p "$as_dir"'
505 else
506   test -d ./-p && rmdir ./-p
507   as_mkdir_p=false
508 fi
509
510 if test -x / >/dev/null 2>&1; then
511   as_test_x='test -x'
512 else
513   if ls -dL / >/dev/null 2>&1; then
514     as_ls_L_option=L
515   else
516     as_ls_L_option=
517   fi
518   as_test_x='
519     eval sh -c '\''
520       if test -d "$1"; then
521         test -d "$1/.";
522       else
523         case $1 in #(
524         -*)set "./$1";;
525         esac;
526         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
527         ???[sx]*):;;*)false;;esac;fi
528     '\'' sh
529   '
530 fi
531 as_executable_p=$as_test_x
532
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538
539
540 test -n "$DJDIR" || exec 7<&0 </dev/null
541 exec 6>&1
542
543 # Name of the host.
544 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
545 # so uname gets run too.
546 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547
548 #
549 # Initializations.
550 #
551 ac_default_prefix=/usr/local
552 ac_clean_files=
553 ac_config_libobj_dir=.
554 LIBOBJS=
555 cross_compiling=no
556 subdirs=
557 MFLAGS=
558 MAKEFLAGS=
559
560 # Identity of this package.
561 PACKAGE_NAME='Wine'
562 PACKAGE_TARNAME='wine'
563 PACKAGE_VERSION='1.3.35'
564 PACKAGE_STRING='Wine 1.3.35'
565 PACKAGE_BUGREPORT='wine-devel@winehq.org'
566 PACKAGE_URL='http://www.winehq.org'
567
568 ac_unique_file="server/atom.c"
569 # Factoring default headers for most tests.
570 ac_includes_default="\
571 #include <stdio.h>
572 #ifdef HAVE_SYS_TYPES_H
573 # include <sys/types.h>
574 #endif
575 #ifdef HAVE_SYS_STAT_H
576 # include <sys/stat.h>
577 #endif
578 #ifdef STDC_HEADERS
579 # include <stdlib.h>
580 # include <stddef.h>
581 #else
582 # ifdef HAVE_STDLIB_H
583 #  include <stdlib.h>
584 # endif
585 #endif
586 #ifdef HAVE_STRING_H
587 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
588 #  include <memory.h>
589 # endif
590 # include <string.h>
591 #endif
592 #ifdef HAVE_STRINGS_H
593 # include <strings.h>
594 #endif
595 #ifdef HAVE_INTTYPES_H
596 # include <inttypes.h>
597 #endif
598 #ifdef HAVE_STDINT_H
599 # include <stdint.h>
600 #endif
601 #ifdef HAVE_UNISTD_H
602 # include <unistd.h>
603 #endif"
604
605 ac_subst_vars='LTLIBOBJS
606 LIBOBJS
607 PORCFLAGS
608 LINGUAS
609 ALL_TEST_RESOURCES
610 LDAPLIBS
611 LIBPOLL
612 LIBDL
613 EXTRA_BINARIES
614 MAIN_BINARY
615 SOCKETLIBS
616 CRTLIBS
617 TOOLSEXT
618 LDPATH
619 UNWINDFLAGS
620 BUILTINFLAG
621 EXTRACFLAGS
622 LIBKSTAT
623 LIBOPENAL
624 LIBMPG123
625 PNGINCL
626 FONTCONFIGINCL
627 CUPSINCL
628 OSS4INCL
629 ALSALIBS
630 GSTREAMER_INCL
631 GSTREAMER_LIBS
632 LIBGETTEXTPO
633 ZLIB
634 FREETYPEINCL
635 FREETYPELIBS
636 ft_devel
637 LCMSLIBS
638 RESOLVLIBS
639 GPHOTO2INCL
640 GPHOTO2LIBS
641 gphoto2port_devel
642 gphoto2_devel
643 SANEINCL
644 sane_devel
645 GNUTLSINCL
646 HALINCL
647 DBUSINCL
648 XSLTINCL
649 XML2INCL
650 XML2LIBS
651 X_EXTRA_LIBS
652 X_LIBS
653 X_PRE_LIBS
654 X_CFLAGS
655 XMKMF
656 LIBPTHREAD
657 CROSSTARGET
658 CROSSCC
659 CROSSTEST_DISABLE
660 PRELINK
661 CARBONLIB
662 QUICKTIMELIB
663 LIBOPENCL
664 FRAMEWORK_OPENAL
665 COREAUDIO
666 SECURITYLIB
667 DISKARBITRATIONLIB
668 LDEXECFLAGS
669 APPLICATIONSERVICESLIB
670 IOKITLIB
671 COREFOUNDATIONLIB
672 DLLWRAP
673 DLLTOOL
674 LDD
675 LDRPATH_LOCAL
676 LDRPATH_INSTALL
677 IMPLIBEXT
678 LIBEXT
679 LDDLLFLAGS
680 LDSHARED
681 DLLFLAGS
682 DLLEXT
683 CPP
684 OPENGL_LIBS
685 XLIB
686 MAINTAINER_MODE
687 MSGFMT
688 ICOTOOL
689 CONVERT
690 RSVG
691 PKG_CONFIG
692 FONTFORGE
693 LINTFLAGS
694 LINT
695 INSTALL_DATA
696 INSTALL_SCRIPT
697 INSTALL_PROGRAM
698 LDCONFIG
699 EGREP
700 GREP
701 LN_S
702 RANLIB
703 ARFLAGS
704 ac_ct_AR
705 AR
706 BISON
707 FLEX
708 TOOLSDIR
709 WOW64_DISABLE
710 TARGETFLAGS
711 CPPBIN
712 ac_ct_CXX
713 CXXFLAGS
714 CXX
715 OBJEXT
716 EXEEXT
717 ac_ct_CC
718 CPPFLAGS
719 LDFLAGS
720 CFLAGS
721 CC
722 SET_MAKE
723 host_os
724 host_vendor
725 host_cpu
726 host
727 build_os
728 build_vendor
729 build_cpu
730 build
731 target_alias
732 host_alias
733 build_alias
734 LIBS
735 ECHO_T
736 ECHO_N
737 ECHO_C
738 DEFS
739 mandir
740 localedir
741 libdir
742 psdir
743 pdfdir
744 dvidir
745 htmldir
746 infodir
747 docdir
748 oldincludedir
749 includedir
750 localstatedir
751 sharedstatedir
752 sysconfdir
753 datadir
754 datarootdir
755 libexecdir
756 sbindir
757 bindir
758 program_transform_name
759 prefix
760 exec_prefix
761 PACKAGE_URL
762 PACKAGE_BUGREPORT
763 PACKAGE_STRING
764 PACKAGE_VERSION
765 PACKAGE_TARNAME
766 PACKAGE_NAME
767 PATH_SEPARATOR
768 SHELL'
769 ac_subst_files='MAKE_RULES
770 MAKE_TEST_RULES
771 MAKE_DLL_RULES
772 MAKE_IMPLIB_RULES
773 MAKE_PROG_RULES'
774 ac_user_opts='
775 enable_option_checking
776 enable_win16
777 enable_win64
778 enable_tests
779 enable_maintainer_mode
780 with_alsa
781 with_capi
782 with_cms
783 with_coreaudio
784 with_cups
785 with_curses
786 with_dbus
787 with_fontconfig
788 with_freetype
789 with_gettext
790 with_gettextpo
791 with_gphoto
792 with_glu
793 with_gnutls
794 with_gsm
795 with_gstreamer
796 with_hal
797 with_jpeg
798 with_ldap
799 with_mpg123
800 with_openal
801 with_opencl
802 with_opengl
803 with_openssl
804 with_oss
805 with_png
806 with_pthread
807 with_sane
808 with_tiff
809 with_v4l
810 with_xcomposite
811 with_xcursor
812 with_xinerama
813 with_xinput
814 with_xinput2
815 with_xml
816 with_xrandr
817 with_xrender
818 with_xshape
819 with_xshm
820 with_xslt
821 with_xxf86vm
822 with_zlib
823 with_wine_tools
824 with_wine64
825 enable_largefile
826 with_x
827 '
828       ac_precious_vars='build_alias
829 host_alias
830 target_alias
831 CC
832 CFLAGS
833 LDFLAGS
834 LIBS
835 CPPFLAGS
836 CXX
837 CXXFLAGS
838 CCC
839 CPP
840 XMKMF'
841
842
843 # Initialize some variables set by options.
844 ac_init_help=
845 ac_init_version=false
846 ac_unrecognized_opts=
847 ac_unrecognized_sep=
848 # The variables have the same names as the options, with
849 # dashes changed to underlines.
850 cache_file=/dev/null
851 exec_prefix=NONE
852 no_create=
853 no_recursion=
854 prefix=NONE
855 program_prefix=NONE
856 program_suffix=NONE
857 program_transform_name=s,x,x,
858 silent=
859 site=
860 srcdir=
861 verbose=
862 x_includes=NONE
863 x_libraries=NONE
864
865 # Installation directory options.
866 # These are left unexpanded so users can "make install exec_prefix=/foo"
867 # and all the variables that are supposed to be based on exec_prefix
868 # by default will actually change.
869 # Use braces instead of parens because sh, perl, etc. also accept them.
870 # (The list follows the same order as the GNU Coding Standards.)
871 bindir='${exec_prefix}/bin'
872 sbindir='${exec_prefix}/sbin'
873 libexecdir='${exec_prefix}/libexec'
874 datarootdir='${prefix}/share'
875 datadir='${datarootdir}'
876 sysconfdir='${prefix}/etc'
877 sharedstatedir='${prefix}/com'
878 localstatedir='${prefix}/var'
879 includedir='${prefix}/include'
880 oldincludedir='/usr/include'
881 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
882 infodir='${datarootdir}/info'
883 htmldir='${docdir}'
884 dvidir='${docdir}'
885 pdfdir='${docdir}'
886 psdir='${docdir}'
887 libdir='${exec_prefix}/lib'
888 localedir='${datarootdir}/locale'
889 mandir='${datarootdir}/man'
890
891 ac_prev=
892 ac_dashdash=
893 for ac_option
894 do
895   # If the previous option needs an argument, assign it.
896   if test -n "$ac_prev"; then
897     eval $ac_prev=\$ac_option
898     ac_prev=
899     continue
900   fi
901
902   case $ac_option in
903   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
904   *=)   ac_optarg= ;;
905   *)    ac_optarg=yes ;;
906   esac
907
908   # Accept the important Cygnus configure options, so we can diagnose typos.
909
910   case $ac_dashdash$ac_option in
911   --)
912     ac_dashdash=yes ;;
913
914   -bindir | --bindir | --bindi | --bind | --bin | --bi)
915     ac_prev=bindir ;;
916   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
917     bindir=$ac_optarg ;;
918
919   -build | --build | --buil | --bui | --bu)
920     ac_prev=build_alias ;;
921   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
922     build_alias=$ac_optarg ;;
923
924   -cache-file | --cache-file | --cache-fil | --cache-fi \
925   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
926     ac_prev=cache_file ;;
927   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
928   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
929     cache_file=$ac_optarg ;;
930
931   --config-cache | -C)
932     cache_file=config.cache ;;
933
934   -datadir | --datadir | --datadi | --datad)
935     ac_prev=datadir ;;
936   -datadir=* | --datadir=* | --datadi=* | --datad=*)
937     datadir=$ac_optarg ;;
938
939   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
940   | --dataroo | --dataro | --datar)
941     ac_prev=datarootdir ;;
942   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
943   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
944     datarootdir=$ac_optarg ;;
945
946   -disable-* | --disable-*)
947     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
948     # Reject names that are not valid shell variable names.
949     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
950       as_fn_error $? "invalid feature name: $ac_useropt"
951     ac_useropt_orig=$ac_useropt
952     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
953     case $ac_user_opts in
954       *"
955 "enable_$ac_useropt"
956 "*) ;;
957       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
958          ac_unrecognized_sep=', ';;
959     esac
960     eval enable_$ac_useropt=no ;;
961
962   -docdir | --docdir | --docdi | --doc | --do)
963     ac_prev=docdir ;;
964   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
965     docdir=$ac_optarg ;;
966
967   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
968     ac_prev=dvidir ;;
969   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
970     dvidir=$ac_optarg ;;
971
972   -enable-* | --enable-*)
973     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
974     # Reject names that are not valid shell variable names.
975     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
976       as_fn_error $? "invalid feature name: $ac_useropt"
977     ac_useropt_orig=$ac_useropt
978     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
979     case $ac_user_opts in
980       *"
981 "enable_$ac_useropt"
982 "*) ;;
983       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
984          ac_unrecognized_sep=', ';;
985     esac
986     eval enable_$ac_useropt=\$ac_optarg ;;
987
988   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
989   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
990   | --exec | --exe | --ex)
991     ac_prev=exec_prefix ;;
992   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
993   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
994   | --exec=* | --exe=* | --ex=*)
995     exec_prefix=$ac_optarg ;;
996
997   -gas | --gas | --ga | --g)
998     # Obsolete; use --with-gas.
999     with_gas=yes ;;
1000
1001   -help | --help | --hel | --he | -h)
1002     ac_init_help=long ;;
1003   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1004     ac_init_help=recursive ;;
1005   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1006     ac_init_help=short ;;
1007
1008   -host | --host | --hos | --ho)
1009     ac_prev=host_alias ;;
1010   -host=* | --host=* | --hos=* | --ho=*)
1011     host_alias=$ac_optarg ;;
1012
1013   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1014     ac_prev=htmldir ;;
1015   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1016   | --ht=*)
1017     htmldir=$ac_optarg ;;
1018
1019   -includedir | --includedir | --includedi | --included | --include \
1020   | --includ | --inclu | --incl | --inc)
1021     ac_prev=includedir ;;
1022   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1023   | --includ=* | --inclu=* | --incl=* | --inc=*)
1024     includedir=$ac_optarg ;;
1025
1026   -infodir | --infodir | --infodi | --infod | --info | --inf)
1027     ac_prev=infodir ;;
1028   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1029     infodir=$ac_optarg ;;
1030
1031   -libdir | --libdir | --libdi | --libd)
1032     ac_prev=libdir ;;
1033   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1034     libdir=$ac_optarg ;;
1035
1036   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1037   | --libexe | --libex | --libe)
1038     ac_prev=libexecdir ;;
1039   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1040   | --libexe=* | --libex=* | --libe=*)
1041     libexecdir=$ac_optarg ;;
1042
1043   -localedir | --localedir | --localedi | --localed | --locale)
1044     ac_prev=localedir ;;
1045   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1046     localedir=$ac_optarg ;;
1047
1048   -localstatedir | --localstatedir | --localstatedi | --localstated \
1049   | --localstate | --localstat | --localsta | --localst | --locals)
1050     ac_prev=localstatedir ;;
1051   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1052   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1053     localstatedir=$ac_optarg ;;
1054
1055   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1056     ac_prev=mandir ;;
1057   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1058     mandir=$ac_optarg ;;
1059
1060   -nfp | --nfp | --nf)
1061     # Obsolete; use --without-fp.
1062     with_fp=no ;;
1063
1064   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1065   | --no-cr | --no-c | -n)
1066     no_create=yes ;;
1067
1068   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1069   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1070     no_recursion=yes ;;
1071
1072   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1073   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1074   | --oldin | --oldi | --old | --ol | --o)
1075     ac_prev=oldincludedir ;;
1076   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1077   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1078   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1079     oldincludedir=$ac_optarg ;;
1080
1081   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1082     ac_prev=prefix ;;
1083   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1084     prefix=$ac_optarg ;;
1085
1086   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1087   | --program-pre | --program-pr | --program-p)
1088     ac_prev=program_prefix ;;
1089   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1090   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1091     program_prefix=$ac_optarg ;;
1092
1093   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1094   | --program-suf | --program-su | --program-s)
1095     ac_prev=program_suffix ;;
1096   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1097   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1098     program_suffix=$ac_optarg ;;
1099
1100   -program-transform-name | --program-transform-name \
1101   | --program-transform-nam | --program-transform-na \
1102   | --program-transform-n | --program-transform- \
1103   | --program-transform | --program-transfor \
1104   | --program-transfo | --program-transf \
1105   | --program-trans | --program-tran \
1106   | --progr-tra | --program-tr | --program-t)
1107     ac_prev=program_transform_name ;;
1108   -program-transform-name=* | --program-transform-name=* \
1109   | --program-transform-nam=* | --program-transform-na=* \
1110   | --program-transform-n=* | --program-transform-=* \
1111   | --program-transform=* | --program-transfor=* \
1112   | --program-transfo=* | --program-transf=* \
1113   | --program-trans=* | --program-tran=* \
1114   | --progr-tra=* | --program-tr=* | --program-t=*)
1115     program_transform_name=$ac_optarg ;;
1116
1117   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1118     ac_prev=pdfdir ;;
1119   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1120     pdfdir=$ac_optarg ;;
1121
1122   -psdir | --psdir | --psdi | --psd | --ps)
1123     ac_prev=psdir ;;
1124   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1125     psdir=$ac_optarg ;;
1126
1127   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1128   | -silent | --silent | --silen | --sile | --sil)
1129     silent=yes ;;
1130
1131   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1132     ac_prev=sbindir ;;
1133   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1134   | --sbi=* | --sb=*)
1135     sbindir=$ac_optarg ;;
1136
1137   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1138   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1139   | --sharedst | --shareds | --shared | --share | --shar \
1140   | --sha | --sh)
1141     ac_prev=sharedstatedir ;;
1142   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1143   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1144   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1145   | --sha=* | --sh=*)
1146     sharedstatedir=$ac_optarg ;;
1147
1148   -site | --site | --sit)
1149     ac_prev=site ;;
1150   -site=* | --site=* | --sit=*)
1151     site=$ac_optarg ;;
1152
1153   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1154     ac_prev=srcdir ;;
1155   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1156     srcdir=$ac_optarg ;;
1157
1158   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1159   | --syscon | --sysco | --sysc | --sys | --sy)
1160     ac_prev=sysconfdir ;;
1161   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1162   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1163     sysconfdir=$ac_optarg ;;
1164
1165   -target | --target | --targe | --targ | --tar | --ta | --t)
1166     ac_prev=target_alias ;;
1167   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1168     target_alias=$ac_optarg ;;
1169
1170   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1171     verbose=yes ;;
1172
1173   -version | --version | --versio | --versi | --vers | -V)
1174     ac_init_version=: ;;
1175
1176   -with-* | --with-*)
1177     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1178     # Reject names that are not valid shell variable names.
1179     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1180       as_fn_error $? "invalid package name: $ac_useropt"
1181     ac_useropt_orig=$ac_useropt
1182     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1183     case $ac_user_opts in
1184       *"
1185 "with_$ac_useropt"
1186 "*) ;;
1187       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1188          ac_unrecognized_sep=', ';;
1189     esac
1190     eval with_$ac_useropt=\$ac_optarg ;;
1191
1192   -without-* | --without-*)
1193     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1194     # Reject names that are not valid shell variable names.
1195     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1196       as_fn_error $? "invalid package name: $ac_useropt"
1197     ac_useropt_orig=$ac_useropt
1198     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1199     case $ac_user_opts in
1200       *"
1201 "with_$ac_useropt"
1202 "*) ;;
1203       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1204          ac_unrecognized_sep=', ';;
1205     esac
1206     eval with_$ac_useropt=no ;;
1207
1208   --x)
1209     # Obsolete; use --with-x.
1210     with_x=yes ;;
1211
1212   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1213   | --x-incl | --x-inc | --x-in | --x-i)
1214     ac_prev=x_includes ;;
1215   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1216   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1217     x_includes=$ac_optarg ;;
1218
1219   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1220   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1221     ac_prev=x_libraries ;;
1222   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1223   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1224     x_libraries=$ac_optarg ;;
1225
1226   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1227 Try \`$0 --help' for more information"
1228     ;;
1229
1230   *=*)
1231     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1232     # Reject names that are not valid shell variable names.
1233     case $ac_envvar in #(
1234       '' | [0-9]* | *[!_$as_cr_alnum]* )
1235       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1236     esac
1237     eval $ac_envvar=\$ac_optarg
1238     export $ac_envvar ;;
1239
1240   *)
1241     # FIXME: should be removed in autoconf 3.0.
1242     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1243     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1244       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1245     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1246     ;;
1247
1248   esac
1249 done
1250
1251 if test -n "$ac_prev"; then
1252   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1253   as_fn_error $? "missing argument to $ac_option"
1254 fi
1255
1256 if test -n "$ac_unrecognized_opts"; then
1257   case $enable_option_checking in
1258     no) ;;
1259     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1260     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1261   esac
1262 fi
1263
1264 # Check all directory arguments for consistency.
1265 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1266                 datadir sysconfdir sharedstatedir localstatedir includedir \
1267                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1268                 libdir localedir mandir
1269 do
1270   eval ac_val=\$$ac_var
1271   # Remove trailing slashes.
1272   case $ac_val in
1273     */ )
1274       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1275       eval $ac_var=\$ac_val;;
1276   esac
1277   # Be sure to have absolute directory names.
1278   case $ac_val in
1279     [\\/$]* | ?:[\\/]* )  continue;;
1280     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1281   esac
1282   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1283 done
1284
1285 # There might be people who depend on the old broken behavior: `$host'
1286 # used to hold the argument of --host etc.
1287 # FIXME: To remove some day.
1288 build=$build_alias
1289 host=$host_alias
1290 target=$target_alias
1291
1292 # FIXME: To remove some day.
1293 if test "x$host_alias" != x; then
1294   if test "x$build_alias" = x; then
1295     cross_compiling=maybe
1296     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1297     If a cross compiler is detected then cross compile mode will be used" >&2
1298   elif test "x$build_alias" != "x$host_alias"; then
1299     cross_compiling=yes
1300   fi
1301 fi
1302
1303 ac_tool_prefix=
1304 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1305
1306 test "$silent" = yes && exec 6>/dev/null
1307
1308
1309 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1310 ac_ls_di=`ls -di .` &&
1311 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1312   as_fn_error $? "working directory cannot be determined"
1313 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1314   as_fn_error $? "pwd does not report name of working directory"
1315
1316
1317 # Find the source files, if location was not specified.
1318 if test -z "$srcdir"; then
1319   ac_srcdir_defaulted=yes
1320   # Try the directory containing this script, then the parent directory.
1321   ac_confdir=`$as_dirname -- "$as_myself" ||
1322 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1323          X"$as_myself" : 'X\(//\)[^/]' \| \
1324          X"$as_myself" : 'X\(//\)$' \| \
1325          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1326 $as_echo X"$as_myself" |
1327     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1328             s//\1/
1329             q
1330           }
1331           /^X\(\/\/\)[^/].*/{
1332             s//\1/
1333             q
1334           }
1335           /^X\(\/\/\)$/{
1336             s//\1/
1337             q
1338           }
1339           /^X\(\/\).*/{
1340             s//\1/
1341             q
1342           }
1343           s/.*/./; q'`
1344   srcdir=$ac_confdir
1345   if test ! -r "$srcdir/$ac_unique_file"; then
1346     srcdir=..
1347   fi
1348 else
1349   ac_srcdir_defaulted=no
1350 fi
1351 if test ! -r "$srcdir/$ac_unique_file"; then
1352   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1353   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1354 fi
1355 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1356 ac_abs_confdir=`(
1357         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1358         pwd)`
1359 # When building in place, set srcdir=.
1360 if test "$ac_abs_confdir" = "$ac_pwd"; then
1361   srcdir=.
1362 fi
1363 # Remove unnecessary trailing slashes from srcdir.
1364 # Double slashes in file names in object file debugging info
1365 # mess up M-x gdb in Emacs.
1366 case $srcdir in
1367 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1368 esac
1369 for ac_var in $ac_precious_vars; do
1370   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1371   eval ac_env_${ac_var}_value=\$${ac_var}
1372   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1373   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1374 done
1375
1376 #
1377 # Report the --help message.
1378 #
1379 if test "$ac_init_help" = "long"; then
1380   # Omit some internal or obsolete options to make the list less imposing.
1381   # This message is too long to be a string in the A/UX 3.1 sh.
1382   cat <<_ACEOF
1383 \`configure' configures Wine 1.3.35 to adapt to many kinds of systems.
1384
1385 Usage: $0 [OPTION]... [VAR=VALUE]...
1386
1387 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1388 VAR=VALUE.  See below for descriptions of some of the useful variables.
1389
1390 Defaults for the options are specified in brackets.
1391
1392 Configuration:
1393   -h, --help              display this help and exit
1394       --help=short        display options specific to this package
1395       --help=recursive    display the short help of all the included packages
1396   -V, --version           display version information and exit
1397   -q, --quiet, --silent   do not print \`checking ...' messages
1398       --cache-file=FILE   cache test results in FILE [disabled]
1399   -C, --config-cache      alias for \`--cache-file=config.cache'
1400   -n, --no-create         do not create output files
1401       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1402
1403 Installation directories:
1404   --prefix=PREFIX         install architecture-independent files in PREFIX
1405                           [$ac_default_prefix]
1406   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1407                           [PREFIX]
1408
1409 By default, \`make install' will install all the files in
1410 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1411 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1412 for instance \`--prefix=\$HOME'.
1413
1414 For better control, use the options below.
1415
1416 Fine tuning of the installation directories:
1417   --bindir=DIR            user executables [EPREFIX/bin]
1418   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1419   --libexecdir=DIR        program executables [EPREFIX/libexec]
1420   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1421   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1422   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1423   --libdir=DIR            object code libraries [EPREFIX/lib]
1424   --includedir=DIR        C header files [PREFIX/include]
1425   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1426   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1427   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1428   --infodir=DIR           info documentation [DATAROOTDIR/info]
1429   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1430   --mandir=DIR            man documentation [DATAROOTDIR/man]
1431   --docdir=DIR            documentation root [DATAROOTDIR/doc/wine]
1432   --htmldir=DIR           html documentation [DOCDIR]
1433   --dvidir=DIR            dvi documentation [DOCDIR]
1434   --pdfdir=DIR            pdf documentation [DOCDIR]
1435   --psdir=DIR             ps documentation [DOCDIR]
1436 _ACEOF
1437
1438   cat <<\_ACEOF
1439
1440 X features:
1441   --x-includes=DIR    X include files are in DIR
1442   --x-libraries=DIR   X library files are in DIR
1443
1444 System types:
1445   --build=BUILD     configure for building on BUILD [guessed]
1446   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1447 _ACEOF
1448 fi
1449
1450 if test -n "$ac_init_help"; then
1451   case $ac_init_help in
1452      short | recursive ) echo "Configuration of Wine 1.3.35:";;
1453    esac
1454   cat <<\_ACEOF
1455
1456 Optional Features:
1457   --disable-option-checking  ignore unrecognized --enable/--with options
1458   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1459   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1460   --disable-win16         do not include Win16 support
1461   --enable-win64          build a Win64 emulator on AMD64 (won't run Win32
1462                           binaries)
1463   --disable-tests         do not build the regression tests
1464   --enable-maintainer-mode
1465                           enable maintainer-specific build rules
1466   --disable-largefile     omit support for large files
1467
1468 Optional Packages:
1469   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1470   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1471   --without-alsa          do not use the Alsa sound support
1472   --without-capi          do not use CAPI (ISDN support)
1473   --without-cms           do not use CMS (color management support)
1474   --without-coreaudio     do not use the CoreAudio sound support
1475   --without-cups          do not use CUPS
1476   --without-curses        do not use (n)curses
1477   --without-dbus          do not use DBus (dynamic device support)
1478   --without-fontconfig    do not use fontconfig
1479   --without-freetype      do not use the FreeType library
1480   --without-gettext       do not use gettext
1481   --with-gettextpo        use the GetTextPO library to rebuild po files
1482   --without-gphoto        do not use gphoto (Digital Camera support)
1483   --without-glu           do not use the GLU library
1484   --without-gnutls        do not use GnuTLS (schannel support)
1485   --without-gsm           do not use libgsm (GSM 06.10 codec support)
1486   --without-gstreamer     do not use GStreamer (codecs support)
1487   --without-hal           do not use HAL (dynamic device support)
1488   --without-jpeg          do not use JPEG
1489   --without-ldap          do not use LDAP
1490   --without-mpg123        do not use the mpg123 library
1491   --without-openal        do not use OpenAL
1492   --without-opencl        do not use OpenCL
1493   --without-opengl        do not use OpenGL
1494   --without-openssl       do not use OpenSSL
1495   --without-oss           do not use the OSS sound support
1496   --without-png           do not use PNG
1497   --without-pthread       do not use the pthread library
1498   --without-sane          do not use SANE (scanner support)
1499   --without-tiff          do not use TIFF
1500   --without-v4l           do not use v4l1 (v4l support)
1501   --without-xcomposite    do not use the Xcomposite extension
1502   --without-xcursor       do not use the Xcursor extension
1503   --without-xinerama      do not use Xinerama (multi-monitor support)
1504   --without-xinput        do not use the Xinput extension
1505   --without-xinput2       do not use the Xinput 2 extension
1506   --without-xml           do not use XML
1507   --without-xrandr        do not use Xrandr (resolution changes)
1508   --without-xrender       do not use the Xrender extension
1509   --without-xshape        do not use the Xshape extension
1510   --without-xshm          do not use XShm (shared memory extension)
1511   --without-xslt          do not use XSLT
1512   --without-xxf86vm       do not use XFree video mode extension
1513   --without-zlib          do not use Zlib (data compression)
1514   --with-wine-tools=DIR   use Wine tools from directory DIR
1515   --with-wine64=DIR       use the 64-bit Wine in DIR for a Wow64 build
1516   --with-x                use the X Window System
1517
1518 Some influential environment variables:
1519   CC          C compiler command
1520   CFLAGS      C compiler flags
1521   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1522               nonstandard directory <lib dir>
1523   LIBS        libraries to pass to the linker, e.g. -l<library>
1524   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1525               you have headers in a nonstandard directory <include dir>
1526   CXX         C++ compiler command
1527   CXXFLAGS    C++ compiler flags
1528   CPP         C preprocessor
1529   XMKMF       Path to xmkmf, Makefile generator for X Window System
1530
1531 Use these variables to override the choices made by `configure' or to help
1532 it to find libraries and programs with nonstandard names/locations.
1533
1534 Report bugs to <wine-devel@winehq.org>.
1535 Wine home page: <http://www.winehq.org>.
1536 _ACEOF
1537 ac_status=$?
1538 fi
1539
1540 if test "$ac_init_help" = "recursive"; then
1541   # If there are subdirs, report their specific --help.
1542   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1543     test -d "$ac_dir" ||
1544       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1545       continue
1546     ac_builddir=.
1547
1548 case "$ac_dir" in
1549 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1550 *)
1551   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1552   # A ".." for each directory in $ac_dir_suffix.
1553   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1554   case $ac_top_builddir_sub in
1555   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1556   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1557   esac ;;
1558 esac
1559 ac_abs_top_builddir=$ac_pwd
1560 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1561 # for backward compatibility:
1562 ac_top_builddir=$ac_top_build_prefix
1563
1564 case $srcdir in
1565   .)  # We are building in place.
1566     ac_srcdir=.
1567     ac_top_srcdir=$ac_top_builddir_sub
1568     ac_abs_top_srcdir=$ac_pwd ;;
1569   [\\/]* | ?:[\\/]* )  # Absolute name.
1570     ac_srcdir=$srcdir$ac_dir_suffix;
1571     ac_top_srcdir=$srcdir
1572     ac_abs_top_srcdir=$srcdir ;;
1573   *) # Relative name.
1574     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1575     ac_top_srcdir=$ac_top_build_prefix$srcdir
1576     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1577 esac
1578 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1579
1580     cd "$ac_dir" || { ac_status=$?; continue; }
1581     # Check for guested configure.
1582     if test -f "$ac_srcdir/configure.gnu"; then
1583       echo &&
1584       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1585     elif test -f "$ac_srcdir/configure"; then
1586       echo &&
1587       $SHELL "$ac_srcdir/configure" --help=recursive
1588     else
1589       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1590     fi || ac_status=$?
1591     cd "$ac_pwd" || { ac_status=$?; break; }
1592   done
1593 fi
1594
1595 test -n "$ac_init_help" && exit $ac_status
1596 if $ac_init_version; then
1597   cat <<\_ACEOF
1598 Wine configure 1.3.35
1599 generated by GNU Autoconf 2.68
1600
1601 Copyright (C) 2010 Free Software Foundation, Inc.
1602 This configure script is free software; the Free Software Foundation
1603 gives unlimited permission to copy, distribute and modify it.
1604 _ACEOF
1605   exit
1606 fi
1607
1608 ## ------------------------ ##
1609 ## Autoconf initialization. ##
1610 ## ------------------------ ##
1611
1612 # ac_fn_c_try_compile LINENO
1613 # --------------------------
1614 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1615 ac_fn_c_try_compile ()
1616 {
1617   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1618   rm -f conftest.$ac_objext
1619   if { { ac_try="$ac_compile"
1620 case "(($ac_try" in
1621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1622   *) ac_try_echo=$ac_try;;
1623 esac
1624 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1625 $as_echo "$ac_try_echo"; } >&5
1626   (eval "$ac_compile") 2>conftest.err
1627   ac_status=$?
1628   if test -s conftest.err; then
1629     grep -v '^ *+' conftest.err >conftest.er1
1630     cat conftest.er1 >&5
1631     mv -f conftest.er1 conftest.err
1632   fi
1633   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1634   test $ac_status = 0; } && {
1635          test -z "$ac_c_werror_flag" ||
1636          test ! -s conftest.err
1637        } && test -s conftest.$ac_objext; then :
1638   ac_retval=0
1639 else
1640   $as_echo "$as_me: failed program was:" >&5
1641 sed 's/^/| /' conftest.$ac_ext >&5
1642
1643         ac_retval=1
1644 fi
1645   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1646   as_fn_set_status $ac_retval
1647
1648 } # ac_fn_c_try_compile
1649
1650 # ac_fn_cxx_try_compile LINENO
1651 # ----------------------------
1652 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1653 ac_fn_cxx_try_compile ()
1654 {
1655   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1656   rm -f conftest.$ac_objext
1657   if { { ac_try="$ac_compile"
1658 case "(($ac_try" in
1659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1660   *) ac_try_echo=$ac_try;;
1661 esac
1662 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1663 $as_echo "$ac_try_echo"; } >&5
1664   (eval "$ac_compile") 2>conftest.err
1665   ac_status=$?
1666   if test -s conftest.err; then
1667     grep -v '^ *+' conftest.err >conftest.er1
1668     cat conftest.er1 >&5
1669     mv -f conftest.er1 conftest.err
1670   fi
1671   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1672   test $ac_status = 0; } && {
1673          test -z "$ac_cxx_werror_flag" ||
1674          test ! -s conftest.err
1675        } && test -s conftest.$ac_objext; then :
1676   ac_retval=0
1677 else
1678   $as_echo "$as_me: failed program was:" >&5
1679 sed 's/^/| /' conftest.$ac_ext >&5
1680
1681         ac_retval=1
1682 fi
1683   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1684   as_fn_set_status $ac_retval
1685
1686 } # ac_fn_cxx_try_compile
1687
1688 # ac_fn_c_try_link LINENO
1689 # -----------------------
1690 # Try to link conftest.$ac_ext, and return whether this succeeded.
1691 ac_fn_c_try_link ()
1692 {
1693   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1694   rm -f conftest.$ac_objext conftest$ac_exeext
1695   if { { ac_try="$ac_link"
1696 case "(($ac_try" in
1697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1698   *) ac_try_echo=$ac_try;;
1699 esac
1700 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1701 $as_echo "$ac_try_echo"; } >&5
1702   (eval "$ac_link") 2>conftest.err
1703   ac_status=$?
1704   if test -s conftest.err; then
1705     grep -v '^ *+' conftest.err >conftest.er1
1706     cat conftest.er1 >&5
1707     mv -f conftest.er1 conftest.err
1708   fi
1709   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1710   test $ac_status = 0; } && {
1711          test -z "$ac_c_werror_flag" ||
1712          test ! -s conftest.err
1713        } && test -s conftest$ac_exeext && {
1714          test "$cross_compiling" = yes ||
1715          $as_test_x conftest$ac_exeext
1716        }; then :
1717   ac_retval=0
1718 else
1719   $as_echo "$as_me: failed program was:" >&5
1720 sed 's/^/| /' conftest.$ac_ext >&5
1721
1722         ac_retval=1
1723 fi
1724   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1725   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1726   # interfere with the next link command; also delete a directory that is
1727   # left behind by Apple's compiler.  We do this before executing the actions.
1728   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1729   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1730   as_fn_set_status $ac_retval
1731
1732 } # ac_fn_c_try_link
1733
1734 # ac_fn_c_try_cpp LINENO
1735 # ----------------------
1736 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1737 ac_fn_c_try_cpp ()
1738 {
1739   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1740   if { { ac_try="$ac_cpp conftest.$ac_ext"
1741 case "(($ac_try" in
1742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1743   *) ac_try_echo=$ac_try;;
1744 esac
1745 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1746 $as_echo "$ac_try_echo"; } >&5
1747   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1748   ac_status=$?
1749   if test -s conftest.err; then
1750     grep -v '^ *+' conftest.err >conftest.er1
1751     cat conftest.er1 >&5
1752     mv -f conftest.er1 conftest.err
1753   fi
1754   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1755   test $ac_status = 0; } > conftest.i && {
1756          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1757          test ! -s conftest.err
1758        }; then :
1759   ac_retval=0
1760 else
1761   $as_echo "$as_me: failed program was:" >&5
1762 sed 's/^/| /' conftest.$ac_ext >&5
1763
1764     ac_retval=1
1765 fi
1766   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1767   as_fn_set_status $ac_retval
1768
1769 } # ac_fn_c_try_cpp
1770
1771 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1772 # -------------------------------------------------------
1773 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1774 # the include files in INCLUDES and setting the cache variable VAR
1775 # accordingly.
1776 ac_fn_c_check_header_mongrel ()
1777 {
1778   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1779   if eval \${$3+:} false; then :
1780   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1781 $as_echo_n "checking for $2... " >&6; }
1782 if eval \${$3+:} false; then :
1783   $as_echo_n "(cached) " >&6
1784 fi
1785 eval ac_res=\$$3
1786                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1787 $as_echo "$ac_res" >&6; }
1788 else
1789   # Is the header compilable?
1790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1791 $as_echo_n "checking $2 usability... " >&6; }
1792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1793 /* end confdefs.h.  */
1794 $4
1795 #include <$2>
1796 _ACEOF
1797 if ac_fn_c_try_compile "$LINENO"; then :
1798   ac_header_compiler=yes
1799 else
1800   ac_header_compiler=no
1801 fi
1802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1804 $as_echo "$ac_header_compiler" >&6; }
1805
1806 # Is the header present?
1807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1808 $as_echo_n "checking $2 presence... " >&6; }
1809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1810 /* end confdefs.h.  */
1811 #include <$2>
1812 _ACEOF
1813 if ac_fn_c_try_cpp "$LINENO"; then :
1814   ac_header_preproc=yes
1815 else
1816   ac_header_preproc=no
1817 fi
1818 rm -f conftest.err conftest.i conftest.$ac_ext
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1820 $as_echo "$ac_header_preproc" >&6; }
1821
1822 # So?  What about this header?
1823 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1824   yes:no: )
1825     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1826 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1827     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1828 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1829     ;;
1830   no:yes:* )
1831     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1832 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1833     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1834 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1835     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1836 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1837     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1838 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1839     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1840 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1841 ( $as_echo "## ------------------------------------ ##
1842 ## Report this to wine-devel@winehq.org ##
1843 ## ------------------------------------ ##"
1844      ) | sed "s/^/$as_me: WARNING:     /" >&2
1845     ;;
1846 esac
1847   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1848 $as_echo_n "checking for $2... " >&6; }
1849 if eval \${$3+:} false; then :
1850   $as_echo_n "(cached) " >&6
1851 else
1852   eval "$3=\$ac_header_compiler"
1853 fi
1854 eval ac_res=\$$3
1855                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1856 $as_echo "$ac_res" >&6; }
1857 fi
1858   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1859
1860 } # ac_fn_c_check_header_mongrel
1861
1862 # ac_fn_c_try_run LINENO
1863 # ----------------------
1864 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1865 # that executables *can* be run.
1866 ac_fn_c_try_run ()
1867 {
1868   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1869   if { { ac_try="$ac_link"
1870 case "(($ac_try" in
1871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1872   *) ac_try_echo=$ac_try;;
1873 esac
1874 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1875 $as_echo "$ac_try_echo"; } >&5
1876   (eval "$ac_link") 2>&5
1877   ac_status=$?
1878   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1879   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1880   { { case "(($ac_try" in
1881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1882   *) ac_try_echo=$ac_try;;
1883 esac
1884 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1885 $as_echo "$ac_try_echo"; } >&5
1886   (eval "$ac_try") 2>&5
1887   ac_status=$?
1888   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1889   test $ac_status = 0; }; }; then :
1890   ac_retval=0
1891 else
1892   $as_echo "$as_me: program exited with status $ac_status" >&5
1893        $as_echo "$as_me: failed program was:" >&5
1894 sed 's/^/| /' conftest.$ac_ext >&5
1895
1896        ac_retval=$ac_status
1897 fi
1898   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1899   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1900   as_fn_set_status $ac_retval
1901
1902 } # ac_fn_c_try_run
1903
1904 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1905 # -------------------------------------------------------
1906 # Tests whether HEADER exists and can be compiled using the include files in
1907 # INCLUDES, setting the cache variable VAR accordingly.
1908 ac_fn_c_check_header_compile ()
1909 {
1910   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1911   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1912 $as_echo_n "checking for $2... " >&6; }
1913 if eval \${$3+:} false; then :
1914   $as_echo_n "(cached) " >&6
1915 else
1916   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1917 /* end confdefs.h.  */
1918 $4
1919 #include <$2>
1920 _ACEOF
1921 if ac_fn_c_try_compile "$LINENO"; then :
1922   eval "$3=yes"
1923 else
1924   eval "$3=no"
1925 fi
1926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1927 fi
1928 eval ac_res=\$$3
1929                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1930 $as_echo "$ac_res" >&6; }
1931   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1932
1933 } # ac_fn_c_check_header_compile
1934
1935 # ac_fn_c_check_func LINENO FUNC VAR
1936 # ----------------------------------
1937 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1938 ac_fn_c_check_func ()
1939 {
1940   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1941   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1942 $as_echo_n "checking for $2... " >&6; }
1943 if eval \${$3+:} false; then :
1944   $as_echo_n "(cached) " >&6
1945 else
1946   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1947 /* end confdefs.h.  */
1948 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1949    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1950 #define $2 innocuous_$2
1951
1952 /* System header to define __stub macros and hopefully few prototypes,
1953     which can conflict with char $2 (); below.
1954     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1955     <limits.h> exists even on freestanding compilers.  */
1956
1957 #ifdef __STDC__
1958 # include <limits.h>
1959 #else
1960 # include <assert.h>
1961 #endif
1962
1963 #undef $2
1964
1965 /* Override any GCC internal prototype to avoid an error.
1966    Use char because int might match the return type of a GCC
1967    builtin and then its argument prototype would still apply.  */
1968 #ifdef __cplusplus
1969 extern "C"
1970 #endif
1971 char $2 ();
1972 /* The GNU C library defines this for functions which it implements
1973     to always fail with ENOSYS.  Some functions are actually named
1974     something starting with __ and the normal name is an alias.  */
1975 #if defined __stub_$2 || defined __stub___$2
1976 choke me
1977 #endif
1978
1979 int
1980 main ()
1981 {
1982 return $2 ();
1983   ;
1984   return 0;
1985 }
1986 _ACEOF
1987 if ac_fn_c_try_link "$LINENO"; then :
1988   eval "$3=yes"
1989 else
1990   eval "$3=no"
1991 fi
1992 rm -f core conftest.err conftest.$ac_objext \
1993     conftest$ac_exeext conftest.$ac_ext
1994 fi
1995 eval ac_res=\$$3
1996                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1997 $as_echo "$ac_res" >&6; }
1998   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1999
2000 } # ac_fn_c_check_func
2001
2002 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2003 # ----------------------------------------------------
2004 # Tries to find if the field MEMBER exists in type AGGR, after including
2005 # INCLUDES, setting cache variable VAR accordingly.
2006 ac_fn_c_check_member ()
2007 {
2008   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2009   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2010 $as_echo_n "checking for $2.$3... " >&6; }
2011 if eval \${$4+:} false; then :
2012   $as_echo_n "(cached) " >&6
2013 else
2014   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015 /* end confdefs.h.  */
2016 $5
2017 int
2018 main ()
2019 {
2020 static $2 ac_aggr;
2021 if (ac_aggr.$3)
2022 return 0;
2023   ;
2024   return 0;
2025 }
2026 _ACEOF
2027 if ac_fn_c_try_compile "$LINENO"; then :
2028   eval "$4=yes"
2029 else
2030   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2031 /* end confdefs.h.  */
2032 $5
2033 int
2034 main ()
2035 {
2036 static $2 ac_aggr;
2037 if (sizeof ac_aggr.$3)
2038 return 0;
2039   ;
2040   return 0;
2041 }
2042 _ACEOF
2043 if ac_fn_c_try_compile "$LINENO"; then :
2044   eval "$4=yes"
2045 else
2046   eval "$4=no"
2047 fi
2048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2049 fi
2050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2051 fi
2052 eval ac_res=\$$4
2053                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2054 $as_echo "$ac_res" >&6; }
2055   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2056
2057 } # ac_fn_c_check_member
2058
2059 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2060 # -------------------------------------------
2061 # Tests whether TYPE exists after having included INCLUDES, setting cache
2062 # variable VAR accordingly.
2063 ac_fn_c_check_type ()
2064 {
2065   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2066   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2067 $as_echo_n "checking for $2... " >&6; }
2068 if eval \${$3+:} false; then :
2069   $as_echo_n "(cached) " >&6
2070 else
2071   eval "$3=no"
2072   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2073 /* end confdefs.h.  */
2074 $4
2075 int
2076 main ()
2077 {
2078 if (sizeof ($2))
2079          return 0;
2080   ;
2081   return 0;
2082 }
2083 _ACEOF
2084 if ac_fn_c_try_compile "$LINENO"; then :
2085   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2086 /* end confdefs.h.  */
2087 $4
2088 int
2089 main ()
2090 {
2091 if (sizeof (($2)))
2092             return 0;
2093   ;
2094   return 0;
2095 }
2096 _ACEOF
2097 if ac_fn_c_try_compile "$LINENO"; then :
2098
2099 else
2100   eval "$3=yes"
2101 fi
2102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2103 fi
2104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2105 fi
2106 eval ac_res=\$$3
2107                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2108 $as_echo "$ac_res" >&6; }
2109   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2110
2111 } # ac_fn_c_check_type
2112 cat >config.log <<_ACEOF
2113 This file contains any messages produced by compilers while
2114 running configure, to aid debugging if configure makes a mistake.
2115
2116 It was created by Wine $as_me 1.3.35, which was
2117 generated by GNU Autoconf 2.68.  Invocation command line was
2118
2119   $ $0 $@
2120
2121 _ACEOF
2122 exec 5>>config.log
2123 {
2124 cat <<_ASUNAME
2125 ## --------- ##
2126 ## Platform. ##
2127 ## --------- ##
2128
2129 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2130 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2131 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2132 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2133 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2134
2135 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2136 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2137
2138 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2139 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2140 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2141 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2142 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2143 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2144 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2145
2146 _ASUNAME
2147
2148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2149 for as_dir in $PATH
2150 do
2151   IFS=$as_save_IFS
2152   test -z "$as_dir" && as_dir=.
2153     $as_echo "PATH: $as_dir"
2154   done
2155 IFS=$as_save_IFS
2156
2157 } >&5
2158
2159 cat >&5 <<_ACEOF
2160
2161
2162 ## ----------- ##
2163 ## Core tests. ##
2164 ## ----------- ##
2165
2166 _ACEOF
2167
2168
2169 # Keep a trace of the command line.
2170 # Strip out --no-create and --no-recursion so they do not pile up.
2171 # Strip out --silent because we don't want to record it for future runs.
2172 # Also quote any args containing shell meta-characters.
2173 # Make two passes to allow for proper duplicate-argument suppression.
2174 ac_configure_args=
2175 ac_configure_args0=
2176 ac_configure_args1=
2177 ac_must_keep_next=false
2178 for ac_pass in 1 2
2179 do
2180   for ac_arg
2181   do
2182     case $ac_arg in
2183     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2184     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2185     | -silent | --silent | --silen | --sile | --sil)
2186       continue ;;
2187     *\'*)
2188       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2189     esac
2190     case $ac_pass in
2191     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2192     2)
2193       as_fn_append ac_configure_args1 " '$ac_arg'"
2194       if test $ac_must_keep_next = true; then
2195         ac_must_keep_next=false # Got value, back to normal.
2196       else
2197         case $ac_arg in
2198           *=* | --config-cache | -C | -disable-* | --disable-* \
2199           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2200           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2201           | -with-* | --with-* | -without-* | --without-* | --x)
2202             case "$ac_configure_args0 " in
2203               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2204             esac
2205             ;;
2206           -* ) ac_must_keep_next=true ;;
2207         esac
2208       fi
2209       as_fn_append ac_configure_args " '$ac_arg'"
2210       ;;
2211     esac
2212   done
2213 done
2214 { ac_configure_args0=; unset ac_configure_args0;}
2215 { ac_configure_args1=; unset ac_configure_args1;}
2216
2217 # When interrupted or exit'd, cleanup temporary files, and complete
2218 # config.log.  We remove comments because anyway the quotes in there
2219 # would cause problems or look ugly.
2220 # WARNING: Use '\'' to represent an apostrophe within the trap.
2221 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2222 trap 'exit_status=$?
2223   # Save into config.log some information that might help in debugging.
2224   {
2225     echo
2226
2227     $as_echo "## ---------------- ##
2228 ## Cache variables. ##
2229 ## ---------------- ##"
2230     echo
2231     # The following way of writing the cache mishandles newlines in values,
2232 (
2233   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2234     eval ac_val=\$$ac_var
2235     case $ac_val in #(
2236     *${as_nl}*)
2237       case $ac_var in #(
2238       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2239 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2240       esac
2241       case $ac_var in #(
2242       _ | IFS | as_nl) ;; #(
2243       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2244       *) { eval $ac_var=; unset $ac_var;} ;;
2245       esac ;;
2246     esac
2247   done
2248   (set) 2>&1 |
2249     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2250     *${as_nl}ac_space=\ *)
2251       sed -n \
2252         "s/'\''/'\''\\\\'\'''\''/g;
2253           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2254       ;; #(
2255     *)
2256       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2257       ;;
2258     esac |
2259     sort
2260 )
2261     echo
2262
2263     $as_echo "## ----------------- ##
2264 ## Output variables. ##
2265 ## ----------------- ##"
2266     echo
2267     for ac_var in $ac_subst_vars
2268     do
2269       eval ac_val=\$$ac_var
2270       case $ac_val in
2271       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2272       esac
2273       $as_echo "$ac_var='\''$ac_val'\''"
2274     done | sort
2275     echo
2276
2277     if test -n "$ac_subst_files"; then
2278       $as_echo "## ------------------- ##
2279 ## File substitutions. ##
2280 ## ------------------- ##"
2281       echo
2282       for ac_var in $ac_subst_files
2283       do
2284         eval ac_val=\$$ac_var
2285         case $ac_val in
2286         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2287         esac
2288         $as_echo "$ac_var='\''$ac_val'\''"
2289       done | sort
2290       echo
2291     fi
2292
2293     if test -s confdefs.h; then
2294       $as_echo "## ----------- ##
2295 ## confdefs.h. ##
2296 ## ----------- ##"
2297       echo
2298       cat confdefs.h
2299       echo
2300     fi
2301     test "$ac_signal" != 0 &&
2302       $as_echo "$as_me: caught signal $ac_signal"
2303     $as_echo "$as_me: exit $exit_status"
2304   } >&5
2305   rm -f core *.core core.conftest.* &&
2306     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2307     exit $exit_status
2308 ' 0
2309 for ac_signal in 1 2 13 15; do
2310   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2311 done
2312 ac_signal=0
2313
2314 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2315 rm -f -r conftest* confdefs.h
2316
2317 $as_echo "/* confdefs.h */" > confdefs.h
2318
2319 # Predefined preprocessor variables.
2320
2321 cat >>confdefs.h <<_ACEOF
2322 #define PACKAGE_NAME "$PACKAGE_NAME"
2323 _ACEOF
2324
2325 cat >>confdefs.h <<_ACEOF
2326 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2327 _ACEOF
2328
2329 cat >>confdefs.h <<_ACEOF
2330 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2331 _ACEOF
2332
2333 cat >>confdefs.h <<_ACEOF
2334 #define PACKAGE_STRING "$PACKAGE_STRING"
2335 _ACEOF
2336
2337 cat >>confdefs.h <<_ACEOF
2338 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2339 _ACEOF
2340
2341 cat >>confdefs.h <<_ACEOF
2342 #define PACKAGE_URL "$PACKAGE_URL"
2343 _ACEOF
2344
2345
2346 # Let the site file select an alternate cache file if it wants to.
2347 # Prefer an explicitly selected file to automatically selected ones.
2348 ac_site_file1=NONE
2349 ac_site_file2=NONE
2350 if test -n "$CONFIG_SITE"; then
2351   # We do not want a PATH search for config.site.
2352   case $CONFIG_SITE in #((
2353     -*)  ac_site_file1=./$CONFIG_SITE;;
2354     */*) ac_site_file1=$CONFIG_SITE;;
2355     *)   ac_site_file1=./$CONFIG_SITE;;
2356   esac
2357 elif test "x$prefix" != xNONE; then
2358   ac_site_file1=$prefix/share/config.site
2359   ac_site_file2=$prefix/etc/config.site
2360 else
2361   ac_site_file1=$ac_default_prefix/share/config.site
2362   ac_site_file2=$ac_default_prefix/etc/config.site
2363 fi
2364 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2365 do
2366   test "x$ac_site_file" = xNONE && continue
2367   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2368     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2369 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2370     sed 's/^/| /' "$ac_site_file" >&5
2371     . "$ac_site_file" \
2372       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2373 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2374 as_fn_error $? "failed to load site script $ac_site_file
2375 See \`config.log' for more details" "$LINENO" 5; }
2376   fi
2377 done
2378
2379 if test -r "$cache_file"; then
2380   # Some versions of bash will fail to source /dev/null (special files
2381   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2382   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2383     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2384 $as_echo "$as_me: loading cache $cache_file" >&6;}
2385     case $cache_file in
2386       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2387       *)                      . "./$cache_file";;
2388     esac
2389   fi
2390 else
2391   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2392 $as_echo "$as_me: creating cache $cache_file" >&6;}
2393   >$cache_file
2394 fi
2395
2396 # Check that the precious variables saved in the cache have kept the same
2397 # value.
2398 ac_cache_corrupted=false
2399 for ac_var in $ac_precious_vars; do
2400   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2401   eval ac_new_set=\$ac_env_${ac_var}_set
2402   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2403   eval ac_new_val=\$ac_env_${ac_var}_value
2404   case $ac_old_set,$ac_new_set in
2405     set,)
2406       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2407 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2408       ac_cache_corrupted=: ;;
2409     ,set)
2410       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2411 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2412       ac_cache_corrupted=: ;;
2413     ,);;
2414     *)
2415       if test "x$ac_old_val" != "x$ac_new_val"; then
2416         # differences in whitespace do not lead to failure.
2417         ac_old_val_w=`echo x $ac_old_val`
2418         ac_new_val_w=`echo x $ac_new_val`
2419         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2420           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2421 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2422           ac_cache_corrupted=:
2423         else
2424           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2425 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2426           eval $ac_var=\$ac_old_val
2427         fi
2428         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2429 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2430         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2431 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2432       fi;;
2433   esac
2434   # Pass precious variables to config.status.
2435   if test "$ac_new_set" = set; then
2436     case $ac_new_val in
2437     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2438     *) ac_arg=$ac_var=$ac_new_val ;;
2439     esac
2440     case " $ac_configure_args " in
2441       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2442       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2443     esac
2444   fi
2445 done
2446 if $ac_cache_corrupted; then
2447   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2448 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2449   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2450 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2451   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2452 fi
2453 ## -------------------- ##
2454 ## Main body of script. ##
2455 ## -------------------- ##
2456
2457 ac_ext=c
2458 ac_cpp='$CPP $CPPFLAGS'
2459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2462
2463
2464
2465 ac_config_headers="$ac_config_headers include/config.h"
2466
2467 ac_aux_dir=
2468 for ac_dir in tools "$srcdir"/tools; do
2469   if test -f "$ac_dir/install-sh"; then
2470     ac_aux_dir=$ac_dir
2471     ac_install_sh="$ac_aux_dir/install-sh -c"
2472     break
2473   elif test -f "$ac_dir/install.sh"; then
2474     ac_aux_dir=$ac_dir
2475     ac_install_sh="$ac_aux_dir/install.sh -c"
2476     break
2477   elif test -f "$ac_dir/shtool"; then
2478     ac_aux_dir=$ac_dir
2479     ac_install_sh="$ac_aux_dir/shtool install -c"
2480     break
2481   fi
2482 done
2483 if test -z "$ac_aux_dir"; then
2484   as_fn_error $? "cannot find install-sh, install.sh, or shtool in tools \"$srcdir\"/tools" "$LINENO" 5
2485 fi
2486
2487 # These three variables are undocumented and unsupported,
2488 # and are intended to be withdrawn in a future Autoconf release.
2489 # They can cause serious problems if a builder's source tree is in a directory
2490 # whose full name contains unusual characters.
2491 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2492 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2493 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2494
2495
2496
2497
2498
2499 # Check whether --enable-win16 was given.
2500 if test "${enable_win16+set}" = set; then :
2501   enableval=$enable_win16;
2502 fi
2503
2504 # Check whether --enable-win64 was given.
2505 if test "${enable_win64+set}" = set; then :
2506   enableval=$enable_win64;
2507 fi
2508
2509 # Check whether --enable-tests was given.
2510 if test "${enable_tests+set}" = set; then :
2511   enableval=$enable_tests;
2512 fi
2513
2514 # Check whether --enable-maintainer-mode was given.
2515 if test "${enable_maintainer_mode+set}" = set; then :
2516   enableval=$enable_maintainer_mode;
2517 fi
2518
2519
2520
2521 # Check whether --with-alsa was given.
2522 if test "${with_alsa+set}" = set; then :
2523   withval=$with_alsa; if test "x$withval" = "xno"; then ac_cv_header_sys_asoundlib_h=no; ac_cv_header_alsa_asoundlib_h=no; fi
2524 fi
2525
2526
2527 # Check whether --with-capi was given.
2528 if test "${with_capi+set}" = set; then :
2529   withval=$with_capi; if test "x$withval" = "xno"; then ac_cv_header_capi20_h=no; ac_cv_header_linux_capi_h=no; fi
2530 fi
2531
2532
2533 # Check whether --with-cms was given.
2534 if test "${with_cms+set}" = set; then :
2535   withval=$with_cms; if test "x$withval" = "xno"; then ac_cv_header_lcms_h=no; ac_cv_header_lcms_lcms_h=no; fi
2536 fi
2537
2538
2539 # Check whether --with-coreaudio was given.
2540 if test "${with_coreaudio+set}" = set; then :
2541   withval=$with_coreaudio; if test "x$withval" = "xno"; then ac_cv_header_CoreAudio_CoreAudio_h=no; fi
2542 fi
2543
2544
2545 # Check whether --with-cups was given.
2546 if test "${with_cups+set}" = set; then :
2547   withval=$with_cups;
2548 fi
2549
2550
2551 # Check whether --with-curses was given.
2552 if test "${with_curses+set}" = set; then :
2553   withval=$with_curses; if test "x$withval" = "xno"; then ac_cv_header_ncurses_h=no; ac_cv_header_curses_h=no; fi
2554 fi
2555
2556
2557 # Check whether --with-dbus was given.
2558 if test "${with_dbus+set}" = set; then :
2559   withval=$with_dbus;
2560 fi
2561
2562
2563 # Check whether --with-fontconfig was given.
2564 if test "${with_fontconfig+set}" = set; then :
2565   withval=$with_fontconfig; if test "x$withval" = "xno"; then ac_cv_header_fontconfig_fontconfig_h=no; fi
2566 fi
2567
2568
2569 # Check whether --with-freetype was given.
2570 if test "${with_freetype+set}" = set; then :
2571   withval=$with_freetype;
2572 fi
2573
2574
2575 # Check whether --with-gettext was given.
2576 if test "${with_gettext+set}" = set; then :
2577   withval=$with_gettext;
2578 fi
2579
2580
2581 # Check whether --with-gettextpo was given.
2582 if test "${with_gettextpo+set}" = set; then :
2583   withval=$with_gettextpo; if test "x$withval" = "xno"; then ac_cv_header_gettext_po_h=no; fi
2584 fi
2585
2586
2587 # Check whether --with-gphoto was given.
2588 if test "${with_gphoto+set}" = set; then :
2589   withval=$with_gphoto;
2590 fi
2591
2592
2593 # Check whether --with-glu was given.
2594 if test "${with_glu+set}" = set; then :
2595   withval=$with_glu; if test "x$withval" = "xno"; then ac_cv_header_GL_glu_h=no; fi
2596 fi
2597
2598
2599 # Check whether --with-gnutls was given.
2600 if test "${with_gnutls+set}" = set; then :
2601   withval=$with_gnutls;
2602 fi
2603
2604
2605 # Check whether --with-gsm was given.
2606 if test "${with_gsm+set}" = set; then :
2607   withval=$with_gsm; if test "x$withval" = "xno"; then ac_cv_header_gsm_h=no; ac_cv_header_gsm_gsm_h=no; fi
2608 fi
2609
2610
2611 # Check whether --with-gstreamer was given.
2612 if test "${with_gstreamer+set}" = set; then :
2613   withval=$with_gstreamer;
2614 fi
2615
2616
2617 # Check whether --with-hal was given.
2618 if test "${with_hal+set}" = set; then :
2619   withval=$with_hal;
2620 fi
2621
2622
2623 # Check whether --with-jpeg was given.
2624 if test "${with_jpeg+set}" = set; then :
2625   withval=$with_jpeg; if test "x$withval" = "xno"; then ac_cv_header_jpeglib_h=no; fi
2626 fi
2627
2628
2629 # Check whether --with-ldap was given.
2630 if test "${with_ldap+set}" = set; then :
2631   withval=$with_ldap; if test "x$withval" = "xno"; then ac_cv_header_ldap_h=no; ac_cv_header_lber_h=no; fi
2632 fi
2633
2634
2635 # Check whether --with-mpg123 was given.
2636 if test "${with_mpg123+set}" = set; then :
2637   withval=$with_mpg123; if test "x$withval" = "xno"; then ac_cv_header_mpg123_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;
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-xinput2 was given.
2726 if test "${with_xinput2+set}" = set; then :
2727   withval=$with_xinput2; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput2_h=no; fi
2728 fi
2729
2730
2731 # Check whether --with-xml was given.
2732 if test "${with_xml+set}" = set; then :
2733   withval=$with_xml;
2734 fi
2735
2736
2737 # Check whether --with-xrandr was given.
2738 if test "${with_xrandr+set}" = set; then :
2739   withval=$with_xrandr; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrandr_h=no; fi
2740 fi
2741
2742
2743 # Check whether --with-xrender was given.
2744 if test "${with_xrender+set}" = set; then :
2745   withval=$with_xrender; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrender_h=no; fi
2746 fi
2747
2748
2749 # Check whether --with-xshape was given.
2750 if test "${with_xshape+set}" = set; then :
2751   withval=$with_xshape; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_shape_h=no; fi
2752 fi
2753
2754
2755 # Check whether --with-xshm was given.
2756 if test "${with_xshm+set}" = set; then :
2757   withval=$with_xshm; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XShm_h=no; fi
2758 fi
2759
2760
2761 # Check whether --with-xslt was given.
2762 if test "${with_xslt+set}" = set; then :
2763   withval=$with_xslt;
2764 fi
2765
2766
2767 # Check whether --with-xxf86vm was given.
2768 if test "${with_xxf86vm+set}" = set; then :
2769   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
2770 fi
2771
2772
2773 # Check whether --with-zlib was given.
2774 if test "${with_zlib+set}" = set; then :
2775   withval=$with_zlib; if test "x$withval" = "xno"; then ac_cv_header_zlib_h=no; fi
2776 fi
2777
2778
2779
2780 # Check whether --with-wine-tools was given.
2781 if test "${with_wine_tools+set}" = set; then :
2782   withval=$with_wine_tools;
2783 fi
2784
2785
2786 # Check whether --with-wine64 was given.
2787 if test "${with_wine64+set}" = set; then :
2788   withval=$with_wine64;
2789 fi
2790
2791
2792 # Make sure we can run config.sub.
2793 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2794   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2795
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2797 $as_echo_n "checking build system type... " >&6; }
2798 if ${ac_cv_build+:} false; then :
2799   $as_echo_n "(cached) " >&6
2800 else
2801   ac_build_alias=$build_alias
2802 test "x$ac_build_alias" = x &&
2803   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2804 test "x$ac_build_alias" = x &&
2805   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2806 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2807   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2808
2809 fi
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2811 $as_echo "$ac_cv_build" >&6; }
2812 case $ac_cv_build in
2813 *-*-*) ;;
2814 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2815 esac
2816 build=$ac_cv_build
2817 ac_save_IFS=$IFS; IFS='-'
2818 set x $ac_cv_build
2819 shift
2820 build_cpu=$1
2821 build_vendor=$2
2822 shift; shift
2823 # Remember, the first character of IFS is used to create $*,
2824 # except with old shells:
2825 build_os=$*
2826 IFS=$ac_save_IFS
2827 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2828
2829
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2831 $as_echo_n "checking host system type... " >&6; }
2832 if ${ac_cv_host+:} false; then :
2833   $as_echo_n "(cached) " >&6
2834 else
2835   if test "x$host_alias" = x; then
2836   ac_cv_host=$ac_cv_build
2837 else
2838   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2839     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2840 fi
2841
2842 fi
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2844 $as_echo "$ac_cv_host" >&6; }
2845 case $ac_cv_host in
2846 *-*-*) ;;
2847 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2848 esac
2849 host=$ac_cv_host
2850 ac_save_IFS=$IFS; IFS='-'
2851 set x $ac_cv_host
2852 shift
2853 host_cpu=$1
2854 host_vendor=$2
2855 shift; shift
2856 # Remember, the first character of IFS is used to create $*,
2857 # except with old shells:
2858 host_os=$*
2859 IFS=$ac_save_IFS
2860 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2861
2862
2863
2864 case "$srcdir" in
2865  .) ;;
2866  *) if test -f "$srcdir/Makefile" -o -f "$srcdir/include/config.h"; then
2867       as_fn_error $? "you are building out of the source tree, but the source tree contains object files.
2868 You need to run 'make distclean' in the source tree first." "$LINENO" 5
2869     fi ;;
2870 esac
2871
2872
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2874 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2875 set x ${MAKE-make}
2876 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2877 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2878   $as_echo_n "(cached) " >&6
2879 else
2880   cat >conftest.make <<\_ACEOF
2881 SHELL = /bin/sh
2882 all:
2883         @echo '@@@%%%=$(MAKE)=@@@%%%'
2884 _ACEOF
2885 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2886 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2887   *@@@%%%=?*=@@@%%%*)
2888     eval ac_cv_prog_make_${ac_make}_set=yes;;
2889   *)
2890     eval ac_cv_prog_make_${ac_make}_set=no;;
2891 esac
2892 rm -f conftest.make
2893 fi
2894 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2895   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2896 $as_echo "yes" >&6; }
2897   SET_MAKE=
2898 else
2899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2900 $as_echo "no" >&6; }
2901   SET_MAKE="MAKE=${MAKE-make}"
2902 fi
2903
2904 ac_ext=c
2905 ac_cpp='$CPP $CPPFLAGS'
2906 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2907 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2908 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2909 if test -n "$ac_tool_prefix"; then
2910   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2911 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2913 $as_echo_n "checking for $ac_word... " >&6; }
2914 if ${ac_cv_prog_CC+:} false; then :
2915   $as_echo_n "(cached) " >&6
2916 else
2917   if test -n "$CC"; then
2918   ac_cv_prog_CC="$CC" # Let the user override the test.
2919 else
2920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2921 for as_dir in $PATH
2922 do
2923   IFS=$as_save_IFS
2924   test -z "$as_dir" && as_dir=.
2925     for ac_exec_ext in '' $ac_executable_extensions; do
2926   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2927     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2928     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2929     break 2
2930   fi
2931 done
2932   done
2933 IFS=$as_save_IFS
2934
2935 fi
2936 fi
2937 CC=$ac_cv_prog_CC
2938 if test -n "$CC"; then
2939   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2940 $as_echo "$CC" >&6; }
2941 else
2942   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2943 $as_echo "no" >&6; }
2944 fi
2945
2946
2947 fi
2948 if test -z "$ac_cv_prog_CC"; then
2949   ac_ct_CC=$CC
2950   # Extract the first word of "gcc", so it can be a program name with args.
2951 set dummy gcc; ac_word=$2
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2953 $as_echo_n "checking for $ac_word... " >&6; }
2954 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2955   $as_echo_n "(cached) " >&6
2956 else
2957   if test -n "$ac_ct_CC"; then
2958   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2959 else
2960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2961 for as_dir in $PATH
2962 do
2963   IFS=$as_save_IFS
2964   test -z "$as_dir" && as_dir=.
2965     for ac_exec_ext in '' $ac_executable_extensions; do
2966   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2967     ac_cv_prog_ac_ct_CC="gcc"
2968     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2969     break 2
2970   fi
2971 done
2972   done
2973 IFS=$as_save_IFS
2974
2975 fi
2976 fi
2977 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2978 if test -n "$ac_ct_CC"; then
2979   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2980 $as_echo "$ac_ct_CC" >&6; }
2981 else
2982   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2983 $as_echo "no" >&6; }
2984 fi
2985
2986   if test "x$ac_ct_CC" = x; then
2987     CC=""
2988   else
2989     case $cross_compiling:$ac_tool_warned in
2990 yes:)
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2992 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2993 ac_tool_warned=yes ;;
2994 esac
2995     CC=$ac_ct_CC
2996   fi
2997 else
2998   CC="$ac_cv_prog_CC"
2999 fi
3000
3001 if test -z "$CC"; then
3002           if test -n "$ac_tool_prefix"; then
3003     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3004 set dummy ${ac_tool_prefix}cc; ac_word=$2
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3006 $as_echo_n "checking for $ac_word... " >&6; }
3007 if ${ac_cv_prog_CC+:} false; then :
3008   $as_echo_n "(cached) " >&6
3009 else
3010   if test -n "$CC"; then
3011   ac_cv_prog_CC="$CC" # Let the user override the test.
3012 else
3013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3014 for as_dir in $PATH
3015 do
3016   IFS=$as_save_IFS
3017   test -z "$as_dir" && as_dir=.
3018     for ac_exec_ext in '' $ac_executable_extensions; do
3019   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3020     ac_cv_prog_CC="${ac_tool_prefix}cc"
3021     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3022     break 2
3023   fi
3024 done
3025   done
3026 IFS=$as_save_IFS
3027
3028 fi
3029 fi
3030 CC=$ac_cv_prog_CC
3031 if test -n "$CC"; then
3032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3033 $as_echo "$CC" >&6; }
3034 else
3035   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3036 $as_echo "no" >&6; }
3037 fi
3038
3039
3040   fi
3041 fi
3042 if test -z "$CC"; then
3043   # Extract the first word of "cc", so it can be a program name with args.
3044 set dummy cc; ac_word=$2
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3046 $as_echo_n "checking for $ac_word... " >&6; }
3047 if ${ac_cv_prog_CC+:} false; then :
3048   $as_echo_n "(cached) " >&6
3049 else
3050   if test -n "$CC"; then
3051   ac_cv_prog_CC="$CC" # Let the user override the test.
3052 else
3053   ac_prog_rejected=no
3054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3055 for as_dir in $PATH
3056 do
3057   IFS=$as_save_IFS
3058   test -z "$as_dir" && as_dir=.
3059     for ac_exec_ext in '' $ac_executable_extensions; do
3060   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3061     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3062        ac_prog_rejected=yes
3063        continue
3064      fi
3065     ac_cv_prog_CC="cc"
3066     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3067     break 2
3068   fi
3069 done
3070   done
3071 IFS=$as_save_IFS
3072
3073 if test $ac_prog_rejected = yes; then
3074   # We found a bogon in the path, so make sure we never use it.
3075   set dummy $ac_cv_prog_CC
3076   shift
3077   if test $# != 0; then
3078     # We chose a different compiler from the bogus one.
3079     # However, it has the same basename, so the bogon will be chosen
3080     # first if we set CC to just the basename; use the full file name.
3081     shift
3082     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3083   fi
3084 fi
3085 fi
3086 fi
3087 CC=$ac_cv_prog_CC
3088 if test -n "$CC"; then
3089   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3090 $as_echo "$CC" >&6; }
3091 else
3092   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3093 $as_echo "no" >&6; }
3094 fi
3095
3096
3097 fi
3098 if test -z "$CC"; then
3099   if test -n "$ac_tool_prefix"; then
3100   for ac_prog in cl.exe
3101   do
3102     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3103 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3105 $as_echo_n "checking for $ac_word... " >&6; }
3106 if ${ac_cv_prog_CC+:} false; then :
3107   $as_echo_n "(cached) " >&6
3108 else
3109   if test -n "$CC"; then
3110   ac_cv_prog_CC="$CC" # Let the user override the test.
3111 else
3112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3113 for as_dir in $PATH
3114 do
3115   IFS=$as_save_IFS
3116   test -z "$as_dir" && as_dir=.
3117     for ac_exec_ext in '' $ac_executable_extensions; do
3118   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3119     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3120     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3121     break 2
3122   fi
3123 done
3124   done
3125 IFS=$as_save_IFS
3126
3127 fi
3128 fi
3129 CC=$ac_cv_prog_CC
3130 if test -n "$CC"; then
3131   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3132 $as_echo "$CC" >&6; }
3133 else
3134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3135 $as_echo "no" >&6; }
3136 fi
3137
3138
3139     test -n "$CC" && break
3140   done
3141 fi
3142 if test -z "$CC"; then
3143   ac_ct_CC=$CC
3144   for ac_prog in cl.exe
3145 do
3146   # Extract the first word of "$ac_prog", so it can be a program name with args.
3147 set dummy $ac_prog; ac_word=$2
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3149 $as_echo_n "checking for $ac_word... " >&6; }
3150 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3151   $as_echo_n "(cached) " >&6
3152 else
3153   if test -n "$ac_ct_CC"; then
3154   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3155 else
3156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3157 for as_dir in $PATH
3158 do
3159   IFS=$as_save_IFS
3160   test -z "$as_dir" && as_dir=.
3161     for ac_exec_ext in '' $ac_executable_extensions; do
3162   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3163     ac_cv_prog_ac_ct_CC="$ac_prog"
3164     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3165     break 2
3166   fi
3167 done
3168   done
3169 IFS=$as_save_IFS
3170
3171 fi
3172 fi
3173 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3174 if test -n "$ac_ct_CC"; then
3175   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3176 $as_echo "$ac_ct_CC" >&6; }
3177 else
3178   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3179 $as_echo "no" >&6; }
3180 fi
3181
3182
3183   test -n "$ac_ct_CC" && break
3184 done
3185
3186   if test "x$ac_ct_CC" = x; then
3187     CC=""
3188   else
3189     case $cross_compiling:$ac_tool_warned in
3190 yes:)
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3192 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3193 ac_tool_warned=yes ;;
3194 esac
3195     CC=$ac_ct_CC
3196   fi
3197 fi
3198
3199 fi
3200
3201
3202 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3203 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3204 as_fn_error $? "no acceptable C compiler found in \$PATH
3205 See \`config.log' for more details" "$LINENO" 5; }
3206
3207 # Provide some information about the compiler.
3208 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3209 set X $ac_compile
3210 ac_compiler=$2
3211 for ac_option in --version -v -V -qversion; do
3212   { { ac_try="$ac_compiler $ac_option >&5"
3213 case "(($ac_try" in
3214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3215   *) ac_try_echo=$ac_try;;
3216 esac
3217 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3218 $as_echo "$ac_try_echo"; } >&5
3219   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3220   ac_status=$?
3221   if test -s conftest.err; then
3222     sed '10a\
3223 ... rest of stderr output deleted ...
3224          10q' conftest.err >conftest.er1
3225     cat conftest.er1 >&5
3226   fi
3227   rm -f conftest.er1 conftest.err
3228   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3229   test $ac_status = 0; }
3230 done
3231
3232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3233 /* end confdefs.h.  */
3234
3235 int
3236 main ()
3237 {
3238
3239   ;
3240   return 0;
3241 }
3242 _ACEOF
3243 ac_clean_files_save=$ac_clean_files
3244 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3245 # Try to create an executable without -o first, disregard a.out.
3246 # It will help us diagnose broken compilers, and finding out an intuition
3247 # of exeext.
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3249 $as_echo_n "checking whether the C compiler works... " >&6; }
3250 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3251
3252 # The possible output files:
3253 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3254
3255 ac_rmfiles=
3256 for ac_file in $ac_files
3257 do
3258   case $ac_file in
3259     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3260     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3261   esac
3262 done
3263 rm -f $ac_rmfiles
3264
3265 if { { ac_try="$ac_link_default"
3266 case "(($ac_try" in
3267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3268   *) ac_try_echo=$ac_try;;
3269 esac
3270 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3271 $as_echo "$ac_try_echo"; } >&5
3272   (eval "$ac_link_default") 2>&5
3273   ac_status=$?
3274   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3275   test $ac_status = 0; }; then :
3276   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3277 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3278 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3279 # so that the user can short-circuit this test for compilers unknown to
3280 # Autoconf.
3281 for ac_file in $ac_files ''
3282 do
3283   test -f "$ac_file" || continue
3284   case $ac_file in
3285     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3286         ;;
3287     [ab].out )
3288         # We found the default executable, but exeext='' is most
3289         # certainly right.
3290         break;;
3291     *.* )
3292         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3293         then :; else
3294            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3295         fi
3296         # We set ac_cv_exeext here because the later test for it is not
3297         # safe: cross compilers may not add the suffix if given an `-o'
3298         # argument, so we may need to know it at that point already.
3299         # Even if this section looks crufty: it has the advantage of
3300         # actually working.
3301         break;;
3302     * )
3303         break;;
3304   esac
3305 done
3306 test "$ac_cv_exeext" = no && ac_cv_exeext=
3307
3308 else
3309   ac_file=''
3310 fi
3311 if test -z "$ac_file"; then :
3312   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3313 $as_echo "no" >&6; }
3314 $as_echo "$as_me: failed program was:" >&5
3315 sed 's/^/| /' conftest.$ac_ext >&5
3316
3317 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3318 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3319 as_fn_error 77 "C compiler cannot create executables
3320 See \`config.log' for more details" "$LINENO" 5; }
3321 else
3322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3323 $as_echo "yes" >&6; }
3324 fi
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3326 $as_echo_n "checking for C compiler default output file name... " >&6; }
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3328 $as_echo "$ac_file" >&6; }
3329 ac_exeext=$ac_cv_exeext
3330
3331 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3332 ac_clean_files=$ac_clean_files_save
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3334 $as_echo_n "checking for suffix of executables... " >&6; }
3335 if { { ac_try="$ac_link"
3336 case "(($ac_try" in
3337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3338   *) ac_try_echo=$ac_try;;
3339 esac
3340 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3341 $as_echo "$ac_try_echo"; } >&5
3342   (eval "$ac_link") 2>&5
3343   ac_status=$?
3344   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3345   test $ac_status = 0; }; then :
3346   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3347 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3348 # work properly (i.e., refer to `conftest.exe'), while it won't with
3349 # `rm'.
3350 for ac_file in conftest.exe conftest conftest.*; do
3351   test -f "$ac_file" || continue
3352   case $ac_file in
3353     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3354     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3355           break;;
3356     * ) break;;
3357   esac
3358 done
3359 else
3360   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3361 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3362 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3363 See \`config.log' for more details" "$LINENO" 5; }
3364 fi
3365 rm -f conftest conftest$ac_cv_exeext
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3367 $as_echo "$ac_cv_exeext" >&6; }
3368
3369 rm -f conftest.$ac_ext
3370 EXEEXT=$ac_cv_exeext
3371 ac_exeext=$EXEEXT
3372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3373 /* end confdefs.h.  */
3374 #include <stdio.h>
3375 int
3376 main ()
3377 {
3378 FILE *f = fopen ("conftest.out", "w");
3379  return ferror (f) || fclose (f) != 0;
3380
3381   ;
3382   return 0;
3383 }
3384 _ACEOF
3385 ac_clean_files="$ac_clean_files conftest.out"
3386 # Check that the compiler produces executables we can run.  If not, either
3387 # the compiler is broken, or we cross compile.
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3389 $as_echo_n "checking whether we are cross compiling... " >&6; }
3390 if test "$cross_compiling" != yes; then
3391   { { ac_try="$ac_link"
3392 case "(($ac_try" in
3393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3394   *) ac_try_echo=$ac_try;;
3395 esac
3396 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3397 $as_echo "$ac_try_echo"; } >&5
3398   (eval "$ac_link") 2>&5
3399   ac_status=$?
3400   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3401   test $ac_status = 0; }
3402   if { ac_try='./conftest$ac_cv_exeext'
3403   { { case "(($ac_try" in
3404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3405   *) ac_try_echo=$ac_try;;
3406 esac
3407 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3408 $as_echo "$ac_try_echo"; } >&5
3409   (eval "$ac_try") 2>&5
3410   ac_status=$?
3411   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3412   test $ac_status = 0; }; }; then
3413     cross_compiling=no
3414   else
3415     if test "$cross_compiling" = maybe; then
3416         cross_compiling=yes
3417     else
3418         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3419 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3420 as_fn_error $? "cannot run C compiled programs.
3421 If you meant to cross compile, use \`--host'.
3422 See \`config.log' for more details" "$LINENO" 5; }
3423     fi
3424   fi
3425 fi
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3427 $as_echo "$cross_compiling" >&6; }
3428
3429 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3430 ac_clean_files=$ac_clean_files_save
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3432 $as_echo_n "checking for suffix of object files... " >&6; }
3433 if ${ac_cv_objext+:} false; then :
3434   $as_echo_n "(cached) " >&6
3435 else
3436   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3437 /* end confdefs.h.  */
3438
3439 int
3440 main ()
3441 {
3442
3443   ;
3444   return 0;
3445 }
3446 _ACEOF
3447 rm -f conftest.o conftest.obj
3448 if { { ac_try="$ac_compile"
3449 case "(($ac_try" in
3450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3451   *) ac_try_echo=$ac_try;;
3452 esac
3453 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3454 $as_echo "$ac_try_echo"; } >&5
3455   (eval "$ac_compile") 2>&5
3456   ac_status=$?
3457   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3458   test $ac_status = 0; }; then :
3459   for ac_file in conftest.o conftest.obj conftest.*; do
3460   test -f "$ac_file" || continue;
3461   case $ac_file in
3462     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3463     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3464        break;;
3465   esac
3466 done
3467 else
3468   $as_echo "$as_me: failed program was:" >&5
3469 sed 's/^/| /' conftest.$ac_ext >&5
3470
3471 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3472 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3473 as_fn_error $? "cannot compute suffix of object files: cannot compile
3474 See \`config.log' for more details" "$LINENO" 5; }
3475 fi
3476 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3477 fi
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3479 $as_echo "$ac_cv_objext" >&6; }
3480 OBJEXT=$ac_cv_objext
3481 ac_objext=$OBJEXT
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3483 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3484 if ${ac_cv_c_compiler_gnu+:} false; then :
3485   $as_echo_n "(cached) " >&6
3486 else
3487   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3488 /* end confdefs.h.  */
3489
3490 int
3491 main ()
3492 {
3493 #ifndef __GNUC__
3494        choke me
3495 #endif
3496
3497   ;
3498   return 0;
3499 }
3500 _ACEOF
3501 if ac_fn_c_try_compile "$LINENO"; then :
3502   ac_compiler_gnu=yes
3503 else
3504   ac_compiler_gnu=no
3505 fi
3506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3507 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3508
3509 fi
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3511 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3512 if test $ac_compiler_gnu = yes; then
3513   GCC=yes
3514 else
3515   GCC=
3516 fi
3517 ac_test_CFLAGS=${CFLAGS+set}
3518 ac_save_CFLAGS=$CFLAGS
3519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3520 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3521 if ${ac_cv_prog_cc_g+:} false; then :
3522   $as_echo_n "(cached) " >&6
3523 else
3524   ac_save_c_werror_flag=$ac_c_werror_flag
3525    ac_c_werror_flag=yes
3526    ac_cv_prog_cc_g=no
3527    CFLAGS="-g"
3528    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3529 /* end confdefs.h.  */
3530
3531 int
3532 main ()
3533 {
3534
3535   ;
3536   return 0;
3537 }
3538 _ACEOF
3539 if ac_fn_c_try_compile "$LINENO"; then :
3540   ac_cv_prog_cc_g=yes
3541 else
3542   CFLAGS=""
3543       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3544 /* end confdefs.h.  */
3545
3546 int
3547 main ()
3548 {
3549
3550   ;
3551   return 0;
3552 }
3553 _ACEOF
3554 if ac_fn_c_try_compile "$LINENO"; then :
3555
3556 else
3557   ac_c_werror_flag=$ac_save_c_werror_flag
3558          CFLAGS="-g"
3559          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3560 /* end confdefs.h.  */
3561
3562 int
3563 main ()
3564 {
3565
3566   ;
3567   return 0;
3568 }
3569 _ACEOF
3570 if ac_fn_c_try_compile "$LINENO"; then :
3571   ac_cv_prog_cc_g=yes
3572 fi
3573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3574 fi
3575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3576 fi
3577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3578    ac_c_werror_flag=$ac_save_c_werror_flag
3579 fi
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3581 $as_echo "$ac_cv_prog_cc_g" >&6; }
3582 if test "$ac_test_CFLAGS" = set; then
3583   CFLAGS=$ac_save_CFLAGS
3584 elif test $ac_cv_prog_cc_g = yes; then
3585   if test "$GCC" = yes; then
3586     CFLAGS="-g -O2"
3587   else
3588     CFLAGS="-g"
3589   fi
3590 else
3591   if test "$GCC" = yes; then
3592     CFLAGS="-O2"
3593   else
3594     CFLAGS=
3595   fi
3596 fi
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3598 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3599 if ${ac_cv_prog_cc_c89+:} false; then :
3600   $as_echo_n "(cached) " >&6
3601 else
3602   ac_cv_prog_cc_c89=no
3603 ac_save_CC=$CC
3604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3605 /* end confdefs.h.  */
3606 #include <stdarg.h>
3607 #include <stdio.h>
3608 #include <sys/types.h>
3609 #include <sys/stat.h>
3610 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3611 struct buf { int x; };
3612 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3613 static char *e (p, i)
3614      char **p;
3615      int i;
3616 {
3617   return p[i];
3618 }
3619 static char *f (char * (*g) (char **, int), char **p, ...)
3620 {
3621   char *s;
3622   va_list v;
3623   va_start (v,p);
3624   s = g (p, va_arg (v,int));
3625   va_end (v);
3626   return s;
3627 }
3628
3629 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3630    function prototypes and stuff, but not '\xHH' hex character constants.
3631    These don't provoke an error unfortunately, instead are silently treated
3632    as 'x'.  The following induces an error, until -std is added to get
3633    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3634    array size at least.  It's necessary to write '\x00'==0 to get something
3635    that's true only with -std.  */
3636 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3637
3638 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3639    inside strings and character constants.  */
3640 #define FOO(x) 'x'
3641 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3642
3643 int test (int i, double x);
3644 struct s1 {int (*f) (int a);};
3645 struct s2 {int (*f) (double a);};
3646 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3647 int argc;
3648 char **argv;
3649 int
3650 main ()
3651 {
3652 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3653   ;
3654   return 0;
3655 }
3656 _ACEOF
3657 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3658         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3659 do
3660   CC="$ac_save_CC $ac_arg"
3661   if ac_fn_c_try_compile "$LINENO"; then :
3662   ac_cv_prog_cc_c89=$ac_arg
3663 fi
3664 rm -f core conftest.err conftest.$ac_objext
3665   test "x$ac_cv_prog_cc_c89" != "xno" && break
3666 done
3667 rm -f conftest.$ac_ext
3668 CC=$ac_save_CC
3669
3670 fi
3671 # AC_CACHE_VAL
3672 case "x$ac_cv_prog_cc_c89" in
3673   x)
3674     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3675 $as_echo "none needed" >&6; } ;;
3676   xno)
3677     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3678 $as_echo "unsupported" >&6; } ;;
3679   *)
3680     CC="$CC $ac_cv_prog_cc_c89"
3681     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3682 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3683 esac
3684 if test "x$ac_cv_prog_cc_c89" != xno; then :
3685
3686 fi
3687
3688 ac_ext=c
3689 ac_cpp='$CPP $CPPFLAGS'
3690 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3691 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3692 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3693
3694 ac_ext=cpp
3695 ac_cpp='$CXXCPP $CPPFLAGS'
3696 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3697 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3698 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3699 if test -z "$CXX"; then
3700   if test -n "$CCC"; then
3701     CXX=$CCC
3702   else
3703     if test -n "$ac_tool_prefix"; then
3704   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3705   do
3706     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3707 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3709 $as_echo_n "checking for $ac_word... " >&6; }
3710 if ${ac_cv_prog_CXX+:} false; then :
3711   $as_echo_n "(cached) " >&6
3712 else
3713   if test -n "$CXX"; then
3714   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3715 else
3716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3717 for as_dir in $PATH
3718 do
3719   IFS=$as_save_IFS
3720   test -z "$as_dir" && as_dir=.
3721     for ac_exec_ext in '' $ac_executable_extensions; do
3722   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3723     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3724     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3725     break 2
3726   fi
3727 done
3728   done
3729 IFS=$as_save_IFS
3730
3731 fi
3732 fi
3733 CXX=$ac_cv_prog_CXX
3734 if test -n "$CXX"; then
3735   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3736 $as_echo "$CXX" >&6; }
3737 else
3738   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3739 $as_echo "no" >&6; }
3740 fi
3741
3742
3743     test -n "$CXX" && break
3744   done
3745 fi
3746 if test -z "$CXX"; then
3747   ac_ct_CXX=$CXX
3748   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3749 do
3750   # Extract the first word of "$ac_prog", so it can be a program name with args.
3751 set dummy $ac_prog; ac_word=$2
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3753 $as_echo_n "checking for $ac_word... " >&6; }
3754 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3755   $as_echo_n "(cached) " >&6
3756 else
3757   if test -n "$ac_ct_CXX"; then
3758   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3759 else
3760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3761 for as_dir in $PATH
3762 do
3763   IFS=$as_save_IFS
3764   test -z "$as_dir" && as_dir=.
3765     for ac_exec_ext in '' $ac_executable_extensions; do
3766   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3767     ac_cv_prog_ac_ct_CXX="$ac_prog"
3768     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3769     break 2
3770   fi
3771 done
3772   done
3773 IFS=$as_save_IFS
3774
3775 fi
3776 fi
3777 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3778 if test -n "$ac_ct_CXX"; then
3779   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3780 $as_echo "$ac_ct_CXX" >&6; }
3781 else
3782   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3783 $as_echo "no" >&6; }
3784 fi
3785
3786
3787   test -n "$ac_ct_CXX" && break
3788 done
3789
3790   if test "x$ac_ct_CXX" = x; then
3791     CXX="g++"
3792   else
3793     case $cross_compiling:$ac_tool_warned in
3794 yes:)
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3796 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3797 ac_tool_warned=yes ;;
3798 esac
3799     CXX=$ac_ct_CXX
3800   fi
3801 fi
3802
3803   fi
3804 fi
3805 # Provide some information about the compiler.
3806 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3807 set X $ac_compile
3808 ac_compiler=$2
3809 for ac_option in --version -v -V -qversion; do
3810   { { ac_try="$ac_compiler $ac_option >&5"
3811 case "(($ac_try" in
3812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3813   *) ac_try_echo=$ac_try;;
3814 esac
3815 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3816 $as_echo "$ac_try_echo"; } >&5
3817   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3818   ac_status=$?
3819   if test -s conftest.err; then
3820     sed '10a\
3821 ... rest of stderr output deleted ...
3822          10q' conftest.err >conftest.er1
3823     cat conftest.er1 >&5
3824   fi
3825   rm -f conftest.er1 conftest.err
3826   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3827   test $ac_status = 0; }
3828 done
3829
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3831 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3832 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3833   $as_echo_n "(cached) " >&6
3834 else
3835   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3836 /* end confdefs.h.  */
3837
3838 int
3839 main ()
3840 {
3841 #ifndef __GNUC__
3842        choke me
3843 #endif
3844
3845   ;
3846   return 0;
3847 }
3848 _ACEOF
3849 if ac_fn_cxx_try_compile "$LINENO"; then :
3850   ac_compiler_gnu=yes
3851 else
3852   ac_compiler_gnu=no
3853 fi
3854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3855 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3856
3857 fi
3858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3859 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3860 if test $ac_compiler_gnu = yes; then
3861   GXX=yes
3862 else
3863   GXX=
3864 fi
3865 ac_test_CXXFLAGS=${CXXFLAGS+set}
3866 ac_save_CXXFLAGS=$CXXFLAGS
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3868 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3869 if ${ac_cv_prog_cxx_g+:} false; then :
3870   $as_echo_n "(cached) " >&6
3871 else
3872   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3873    ac_cxx_werror_flag=yes
3874    ac_cv_prog_cxx_g=no
3875    CXXFLAGS="-g"
3876    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3877 /* end confdefs.h.  */
3878
3879 int
3880 main ()
3881 {
3882
3883   ;
3884   return 0;
3885 }
3886 _ACEOF
3887 if ac_fn_cxx_try_compile "$LINENO"; then :
3888   ac_cv_prog_cxx_g=yes
3889 else
3890   CXXFLAGS=""
3891       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3892 /* end confdefs.h.  */
3893
3894 int
3895 main ()
3896 {
3897
3898   ;
3899   return 0;
3900 }
3901 _ACEOF
3902 if ac_fn_cxx_try_compile "$LINENO"; then :
3903
3904 else
3905   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3906          CXXFLAGS="-g"
3907          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3908 /* end confdefs.h.  */
3909
3910 int
3911 main ()
3912 {
3913
3914   ;
3915   return 0;
3916 }
3917 _ACEOF
3918 if ac_fn_cxx_try_compile "$LINENO"; then :
3919   ac_cv_prog_cxx_g=yes
3920 fi
3921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3922 fi
3923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3924 fi
3925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3926    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3927 fi
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3929 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3930 if test "$ac_test_CXXFLAGS" = set; then
3931   CXXFLAGS=$ac_save_CXXFLAGS
3932 elif test $ac_cv_prog_cxx_g = yes; then
3933   if test "$GXX" = yes; then
3934     CXXFLAGS="-g -O2"
3935   else
3936     CXXFLAGS="-g"
3937   fi
3938 else
3939   if test "$GXX" = yes; then
3940     CXXFLAGS="-O2"
3941   else
3942     CXXFLAGS=
3943   fi
3944 fi
3945 ac_ext=c
3946 ac_cpp='$CPP $CPPFLAGS'
3947 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3948 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3949 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3950
3951 if test -n "$ac_tool_prefix"; then
3952   # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
3953 set dummy ${ac_tool_prefix}cpp; ac_word=$2
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3955 $as_echo_n "checking for $ac_word... " >&6; }
3956 if ${ac_cv_prog_CPPBIN+:} false; then :
3957   $as_echo_n "(cached) " >&6
3958 else
3959   if test -n "$CPPBIN"; then
3960   ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test.
3961 else
3962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3963 for as_dir in $PATH
3964 do
3965   IFS=$as_save_IFS
3966   test -z "$as_dir" && as_dir=.
3967     for ac_exec_ext in '' $ac_executable_extensions; do
3968   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3969     ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp"
3970     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3971     break 2
3972   fi
3973 done
3974   done
3975 IFS=$as_save_IFS
3976
3977 fi
3978 fi
3979 CPPBIN=$ac_cv_prog_CPPBIN
3980 if test -n "$CPPBIN"; then
3981   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPPBIN" >&5
3982 $as_echo "$CPPBIN" >&6; }
3983 else
3984   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3985 $as_echo "no" >&6; }
3986 fi
3987
3988
3989 fi
3990 if test -z "$ac_cv_prog_CPPBIN"; then
3991   ac_ct_CPPBIN=$CPPBIN
3992   # Extract the first word of "cpp", so it can be a program name with args.
3993 set dummy cpp; ac_word=$2
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3995 $as_echo_n "checking for $ac_word... " >&6; }
3996 if ${ac_cv_prog_ac_ct_CPPBIN+:} false; then :
3997   $as_echo_n "(cached) " >&6
3998 else
3999   if test -n "$ac_ct_CPPBIN"; then
4000   ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test.
4001 else
4002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4003 for as_dir in $PATH
4004 do
4005   IFS=$as_save_IFS
4006   test -z "$as_dir" && as_dir=.
4007     for ac_exec_ext in '' $ac_executable_extensions; do
4008   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4009     ac_cv_prog_ac_ct_CPPBIN="cpp"
4010     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4011     break 2
4012   fi
4013 done
4014   done
4015 IFS=$as_save_IFS
4016
4017 fi
4018 fi
4019 ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN
4020 if test -n "$ac_ct_CPPBIN"; then
4021   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CPPBIN" >&5
4022 $as_echo "$ac_ct_CPPBIN" >&6; }
4023 else
4024   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4025 $as_echo "no" >&6; }
4026 fi
4027
4028   if test "x$ac_ct_CPPBIN" = x; then
4029     CPPBIN="cpp"
4030   else
4031     case $cross_compiling:$ac_tool_warned in
4032 yes:)
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4034 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4035 ac_tool_warned=yes ;;
4036 esac
4037     CPPBIN=$ac_ct_CPPBIN
4038   fi
4039 else
4040   CPPBIN="$ac_cv_prog_CPPBIN"
4041 fi
4042
4043
4044 cat >>confdefs.h <<_ACEOF
4045 #define EXEEXT "$ac_exeext"
4046 _ACEOF
4047
4048
4049 case $host in
4050   *-darwin*)
4051     if test "x$enable_win64" = "xyes"
4052     then
4053       CC="$CC -m64"
4054       CXX="$CXX -m64"
4055       host_cpu="x86_64"
4056       notice_platform="64-bit "
4057       TARGETFLAGS="-m64"
4058
4059     else
4060       CC="$CC -m32"
4061       CXX="$CXX -m32"
4062       host_cpu="i386"
4063       notice_platform="32-bit "
4064       TARGETFLAGS="-m32"
4065
4066       enable_win16=${enable_win16:-yes}
4067     fi
4068     ;;
4069   x86_64*)
4070     if test "x$enable_win64" != "xyes" -a "$cross_compiling" != "yes"
4071     then
4072       CC="$CC -m32"
4073       CXX="$CXX -m32"
4074       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC works" >&5
4075 $as_echo_n "checking whether $CC works... " >&6; }
4076
4077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4078 /* end confdefs.h.  */
4079
4080 int
4081 main ()
4082 {
4083
4084   ;
4085   return 0;
4086 }
4087 _ACEOF
4088 if ac_fn_c_try_link "$LINENO"; then :
4089   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4090 $as_echo "yes" >&6; }
4091 else
4092   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4093 $as_echo "no" >&6; }
4094                       as_fn_error $? "Cannot build a 32-bit program, you need to install 32-bit development libraries." "$LINENO" 5
4095 fi
4096 rm -f core conftest.err conftest.$ac_objext \
4097     conftest$ac_exeext conftest.$ac_ext
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 enable_win64=${enable_win64:-no}
4144
4145 enable_winetest=${enable_winetest:-$enable_tests}
4146
4147 if test -n "$with_wine64"
4148 then
4149     if test "x$enable_win64" = "xyes"
4150     then
4151         as_fn_error $? "--enable-win64 and --with-wine64 are mutually exclusive.
4152 --enable-win64 should be used in the 64-bit build tree, --with-wine64 in the 32-bit Wow64 build tree." "$LINENO" 5
4153     fi
4154     WOW64_DISABLE=\#
4155
4156     enable_fonts=${enable_fonts:-no}
4157     enable_server=${enable_server:-no}
4158     enable_tools=${enable_tools:-no}
4159 elif test "x$enable_win64" = "xyes"
4160 then
4161     test "x$libdir" != "x\${exec_prefix}/lib" || libdir="\${exec_prefix}/lib64"
4162 fi
4163
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the directory containing the Wine tools" >&5
4165 $as_echo_n "checking for the directory containing the Wine tools... " >&6; }
4166 if ${wine_cv_toolsdir+:} false; then :
4167   $as_echo_n "(cached) " >&6
4168 else
4169   wine_cv_toolsdir="$with_wine_tools"
4170    if test -z "$with_wine_tools"; then
4171      if test "$cross_compiling" = "yes"; then
4172        as_fn_error $? "you must use the --with-wine-tools option when cross-compiling." "$LINENO" 5
4173      elif test -n "$with_wine64"; then
4174        wine_cv_toolsdir="$with_wine64"
4175      fi
4176    fi
4177    if test -z "$wine_cv_toolsdir"; then
4178      wine_cv_toolsdir="\$(top_builddir)"
4179    elif test -d "$wine_cv_toolsdir/tools/winebuild"; then
4180      case "$wine_cv_toolsdir" in
4181        /*) ;;
4182        *)  wine_cv_toolsdir="\$(top_builddir)/$wine_cv_toolsdir" ;;
4183      esac
4184    else
4185      as_fn_error $? "could not find Wine tools in $wine_cv_toolsdir" "$LINENO" 5
4186    fi
4187 fi
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_toolsdir" >&5
4189 $as_echo "$wine_cv_toolsdir" >&6; }
4190 TOOLSDIR=$wine_cv_toolsdir
4191
4192 if test -n "$host_alias" -a "$host_alias" != "$build_alias"
4193 then
4194     TARGETFLAGS="-b $host_alias $TARGETFLAGS"
4195
4196 fi
4197
4198 for ac_prog in flex
4199 do
4200   # Extract the first word of "$ac_prog", so it can be a program name with args.
4201 set dummy $ac_prog; ac_word=$2
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4203 $as_echo_n "checking for $ac_word... " >&6; }
4204 if ${ac_cv_prog_FLEX+:} false; then :
4205   $as_echo_n "(cached) " >&6
4206 else
4207   if test -n "$FLEX"; then
4208   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
4209 else
4210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4211 for as_dir in $PATH
4212 do
4213   IFS=$as_save_IFS
4214   test -z "$as_dir" && as_dir=.
4215     for ac_exec_ext in '' $ac_executable_extensions; do
4216   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4217     ac_cv_prog_FLEX="$ac_prog"
4218     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4219     break 2
4220   fi
4221 done
4222   done
4223 IFS=$as_save_IFS
4224
4225 fi
4226 fi
4227 FLEX=$ac_cv_prog_FLEX
4228 if test -n "$FLEX"; then
4229   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
4230 $as_echo "$FLEX" >&6; }
4231 else
4232   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4233 $as_echo "no" >&6; }
4234 fi
4235
4236
4237   test -n "$FLEX" && break
4238 done
4239 test -n "$FLEX" || FLEX="none"
4240
4241 if test "$FLEX" = "none"
4242 then
4243   as_fn_error $? "no suitable flex found. Please install the 'flex' package." "$LINENO" 5
4244 fi
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether flex is recent enough" >&5
4246 $as_echo_n "checking whether flex is recent enough... " >&6; }
4247 cat >conftest.l <<EOF
4248 %top{
4249 #include "prediluvian.h"
4250 }
4251 %%
4252 EOF
4253 if $FLEX -t conftest.l >/dev/null 2>&5
4254 then
4255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4256 $as_echo "yes" >&6; }
4257 else
4258   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4259 $as_echo "no" >&6; }
4260   as_fn_error $? "Your flex version is too old. Please install flex version 2.5.33 or newer." "$LINENO" 5
4261 fi
4262
4263 for ac_prog in bison
4264 do
4265   # Extract the first word of "$ac_prog", so it can be a program name with args.
4266 set dummy $ac_prog; ac_word=$2
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4268 $as_echo_n "checking for $ac_word... " >&6; }
4269 if ${ac_cv_prog_BISON+:} false; then :
4270   $as_echo_n "(cached) " >&6
4271 else
4272   if test -n "$BISON"; then
4273   ac_cv_prog_BISON="$BISON" # Let the user override the test.
4274 else
4275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4276 for as_dir in $PATH
4277 do
4278   IFS=$as_save_IFS
4279   test -z "$as_dir" && as_dir=.
4280     for ac_exec_ext in '' $ac_executable_extensions; do
4281   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4282     ac_cv_prog_BISON="$ac_prog"
4283     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4284     break 2
4285   fi
4286 done
4287   done
4288 IFS=$as_save_IFS
4289
4290 fi
4291 fi
4292 BISON=$ac_cv_prog_BISON
4293 if test -n "$BISON"; then
4294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
4295 $as_echo "$BISON" >&6; }
4296 else
4297   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4298 $as_echo "no" >&6; }
4299 fi
4300
4301
4302   test -n "$BISON" && break
4303 done
4304 test -n "$BISON" || BISON="none"
4305
4306 if test "$BISON" = "none"
4307 then
4308   as_fn_error $? "no suitable bison found. Please install the 'bison' package." "$LINENO" 5
4309 fi
4310
4311 if test -n "$ac_tool_prefix"; then
4312   for ac_prog in ar gar
4313   do
4314     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4315 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4317 $as_echo_n "checking for $ac_word... " >&6; }
4318 if ${ac_cv_prog_AR+:} false; then :
4319   $as_echo_n "(cached) " >&6
4320 else
4321   if test -n "$AR"; then
4322   ac_cv_prog_AR="$AR" # Let the user override the test.
4323 else
4324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4325 for as_dir in $PATH
4326 do
4327   IFS=$as_save_IFS
4328   test -z "$as_dir" && as_dir=.
4329     for ac_exec_ext in '' $ac_executable_extensions; do
4330   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4331     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4332     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4333     break 2
4334   fi
4335 done
4336   done
4337 IFS=$as_save_IFS
4338
4339 fi
4340 fi
4341 AR=$ac_cv_prog_AR
4342 if test -n "$AR"; then
4343   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4344 $as_echo "$AR" >&6; }
4345 else
4346   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4347 $as_echo "no" >&6; }
4348 fi
4349
4350
4351     test -n "$AR" && break
4352   done
4353 fi
4354 if test -z "$AR"; then
4355   ac_ct_AR=$AR
4356   for ac_prog in ar gar
4357 do
4358   # Extract the first word of "$ac_prog", so it can be a program name with args.
4359 set dummy $ac_prog; ac_word=$2
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4361 $as_echo_n "checking for $ac_word... " >&6; }
4362 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4363   $as_echo_n "(cached) " >&6
4364 else
4365   if test -n "$ac_ct_AR"; then
4366   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4367 else
4368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4369 for as_dir in $PATH
4370 do
4371   IFS=$as_save_IFS
4372   test -z "$as_dir" && as_dir=.
4373     for ac_exec_ext in '' $ac_executable_extensions; do
4374   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4375     ac_cv_prog_ac_ct_AR="$ac_prog"
4376     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4377     break 2
4378   fi
4379 done
4380   done
4381 IFS=$as_save_IFS
4382
4383 fi
4384 fi
4385 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4386 if test -n "$ac_ct_AR"; then
4387   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4388 $as_echo "$ac_ct_AR" >&6; }
4389 else
4390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4391 $as_echo "no" >&6; }
4392 fi
4393
4394
4395   test -n "$ac_ct_AR" && break
4396 done
4397
4398   if test "x$ac_ct_AR" = x; then
4399     AR="ar"
4400   else
4401     case $cross_compiling:$ac_tool_warned in
4402 yes:)
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4404 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4405 ac_tool_warned=yes ;;
4406 esac
4407     AR=$ac_ct_AR
4408   fi
4409 fi
4410
4411 ARFLAGS=rc
4412
4413 if test -n "$ac_tool_prefix"; then
4414   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4415 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4417 $as_echo_n "checking for $ac_word... " >&6; }
4418 if ${ac_cv_prog_RANLIB+:} false; then :
4419   $as_echo_n "(cached) " >&6
4420 else
4421   if test -n "$RANLIB"; then
4422   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4423 else
4424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4425 for as_dir in $PATH
4426 do
4427   IFS=$as_save_IFS
4428   test -z "$as_dir" && as_dir=.
4429     for ac_exec_ext in '' $ac_executable_extensions; do
4430   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4431     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4432     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4433     break 2
4434   fi
4435 done
4436   done
4437 IFS=$as_save_IFS
4438
4439 fi
4440 fi
4441 RANLIB=$ac_cv_prog_RANLIB
4442 if test -n "$RANLIB"; then
4443   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4444 $as_echo "$RANLIB" >&6; }
4445 else
4446   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4447 $as_echo "no" >&6; }
4448 fi
4449
4450
4451 fi
4452 if test -z "$ac_cv_prog_RANLIB"; then
4453   ac_ct_RANLIB=$RANLIB
4454   # Extract the first word of "ranlib", so it can be a program name with args.
4455 set dummy ranlib; ac_word=$2
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4457 $as_echo_n "checking for $ac_word... " >&6; }
4458 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4459   $as_echo_n "(cached) " >&6
4460 else
4461   if test -n "$ac_ct_RANLIB"; then
4462   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4463 else
4464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4465 for as_dir in $PATH
4466 do
4467   IFS=$as_save_IFS
4468   test -z "$as_dir" && as_dir=.
4469     for ac_exec_ext in '' $ac_executable_extensions; do
4470   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4471     ac_cv_prog_ac_ct_RANLIB="ranlib"
4472     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4473     break 2
4474   fi
4475 done
4476   done
4477 IFS=$as_save_IFS
4478
4479 fi
4480 fi
4481 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4482 if test -n "$ac_ct_RANLIB"; then
4483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4484 $as_echo "$ac_ct_RANLIB" >&6; }
4485 else
4486   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4487 $as_echo "no" >&6; }
4488 fi
4489
4490   if test "x$ac_ct_RANLIB" = x; then
4491     RANLIB=":"
4492   else
4493     case $cross_compiling:$ac_tool_warned in
4494 yes:)
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4496 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4497 ac_tool_warned=yes ;;
4498 esac
4499     RANLIB=$ac_ct_RANLIB
4500   fi
4501 else
4502   RANLIB="$ac_cv_prog_RANLIB"
4503 fi
4504
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4506 $as_echo_n "checking whether ln -s works... " >&6; }
4507 LN_S=$as_ln_s
4508 if test "$LN_S" = "ln -s"; then
4509   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4510 $as_echo "yes" >&6; }
4511 else
4512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4513 $as_echo "no, using $LN_S" >&6; }
4514 fi
4515
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4517 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4518 if ${ac_cv_path_GREP+:} false; then :
4519   $as_echo_n "(cached) " >&6
4520 else
4521   if test -z "$GREP"; then
4522   ac_path_GREP_found=false
4523   # Loop through the user's path and test for each of PROGNAME-LIST
4524   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4525 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4526 do
4527   IFS=$as_save_IFS
4528   test -z "$as_dir" && as_dir=.
4529     for ac_prog in grep ggrep; do
4530     for ac_exec_ext in '' $ac_executable_extensions; do
4531       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4532       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4533 # Check for GNU ac_path_GREP and select it if it is found.
4534   # Check for GNU $ac_path_GREP
4535 case `"$ac_path_GREP" --version 2>&1` in
4536 *GNU*)
4537   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4538 *)
4539   ac_count=0
4540   $as_echo_n 0123456789 >"conftest.in"
4541   while :
4542   do
4543     cat "conftest.in" "conftest.in" >"conftest.tmp"
4544     mv "conftest.tmp" "conftest.in"
4545     cp "conftest.in" "conftest.nl"
4546     $as_echo 'GREP' >> "conftest.nl"
4547     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4548     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4549     as_fn_arith $ac_count + 1 && ac_count=$as_val
4550     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4551       # Best one so far, save it but keep looking for a better one
4552       ac_cv_path_GREP="$ac_path_GREP"
4553       ac_path_GREP_max=$ac_count
4554     fi
4555     # 10*(2^10) chars as input seems more than enough
4556     test $ac_count -gt 10 && break
4557   done
4558   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4559 esac
4560
4561       $ac_path_GREP_found && break 3
4562     done
4563   done
4564   done
4565 IFS=$as_save_IFS
4566   if test -z "$ac_cv_path_GREP"; then
4567     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4568   fi
4569 else
4570   ac_cv_path_GREP=$GREP
4571 fi
4572
4573 fi
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4575 $as_echo "$ac_cv_path_GREP" >&6; }
4576  GREP="$ac_cv_path_GREP"
4577
4578
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4580 $as_echo_n "checking for egrep... " >&6; }
4581 if ${ac_cv_path_EGREP+:} false; then :
4582   $as_echo_n "(cached) " >&6
4583 else
4584   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4585    then ac_cv_path_EGREP="$GREP -E"
4586    else
4587      if test -z "$EGREP"; then
4588   ac_path_EGREP_found=false
4589   # Loop through the user's path and test for each of PROGNAME-LIST
4590   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4591 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4592 do
4593   IFS=$as_save_IFS
4594   test -z "$as_dir" && as_dir=.
4595     for ac_prog in egrep; do
4596     for ac_exec_ext in '' $ac_executable_extensions; do
4597       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4598       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4599 # Check for GNU ac_path_EGREP and select it if it is found.
4600   # Check for GNU $ac_path_EGREP
4601 case `"$ac_path_EGREP" --version 2>&1` in
4602 *GNU*)
4603   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4604 *)
4605   ac_count=0
4606   $as_echo_n 0123456789 >"conftest.in"
4607   while :
4608   do
4609     cat "conftest.in" "conftest.in" >"conftest.tmp"
4610     mv "conftest.tmp" "conftest.in"
4611     cp "conftest.in" "conftest.nl"
4612     $as_echo 'EGREP' >> "conftest.nl"
4613     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4614     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4615     as_fn_arith $ac_count + 1 && ac_count=$as_val
4616     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4617       # Best one so far, save it but keep looking for a better one
4618       ac_cv_path_EGREP="$ac_path_EGREP"
4619       ac_path_EGREP_max=$ac_count
4620     fi
4621     # 10*(2^10) chars as input seems more than enough
4622     test $ac_count -gt 10 && break
4623   done
4624   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4625 esac
4626
4627       $ac_path_EGREP_found && break 3
4628     done
4629   done
4630   done
4631 IFS=$as_save_IFS
4632   if test -z "$ac_cv_path_EGREP"; then
4633     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4634   fi
4635 else
4636   ac_cv_path_EGREP=$EGREP
4637 fi
4638
4639    fi
4640 fi
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4642 $as_echo "$ac_cv_path_EGREP" >&6; }
4643  EGREP="$ac_cv_path_EGREP"
4644
4645
4646 # Extract the first word of "ldconfig", so it can be a program name with args.
4647 set dummy ldconfig; ac_word=$2
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4649 $as_echo_n "checking for $ac_word... " >&6; }
4650 if ${ac_cv_path_LDCONFIG+:} false; then :
4651   $as_echo_n "(cached) " >&6
4652 else
4653   case $LDCONFIG in
4654   [\\/]* | ?:[\\/]*)
4655   ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
4656   ;;
4657   *)
4658   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4659 for as_dir in /sbin /usr/sbin $PATH
4660 do
4661   IFS=$as_save_IFS
4662   test -z "$as_dir" && as_dir=.
4663     for ac_exec_ext in '' $ac_executable_extensions; do
4664   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4665     ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
4666     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4667     break 2
4668   fi
4669 done
4670   done
4671 IFS=$as_save_IFS
4672
4673   test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
4674   ;;
4675 esac
4676 fi
4677 LDCONFIG=$ac_cv_path_LDCONFIG
4678 if test -n "$LDCONFIG"; then
4679   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
4680 $as_echo "$LDCONFIG" >&6; }
4681 else
4682   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4683 $as_echo "no" >&6; }
4684 fi
4685
4686
4687 # Find a good install program.  We prefer a C program (faster),
4688 # so one script is as good as another.  But avoid the broken or
4689 # incompatible versions:
4690 # SysV /etc/install, /usr/sbin/install
4691 # SunOS /usr/etc/install
4692 # IRIX /sbin/install
4693 # AIX /bin/install
4694 # AmigaOS /C/install, which installs bootblocks on floppy discs
4695 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4696 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4697 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4698 # OS/2's system install, which has a completely different semantic
4699 # ./install, which can be erroneously created by make from ./install.sh.
4700 # Reject install programs that cannot install multiple files.
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4702 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4703 if test -z "$INSTALL"; then
4704 if ${ac_cv_path_install+:} false; then :
4705   $as_echo_n "(cached) " >&6
4706 else
4707   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4708 for as_dir in $PATH
4709 do
4710   IFS=$as_save_IFS
4711   test -z "$as_dir" && as_dir=.
4712     # Account for people who put trailing slashes in PATH elements.
4713 case $as_dir/ in #((
4714   ./ | .// | /[cC]/* | \
4715   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4716   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4717   /usr/ucb/* ) ;;
4718   *)
4719     # OSF1 and SCO ODT 3.0 have their own names for install.
4720     # Don't use installbsd from OSF since it installs stuff as root
4721     # by default.
4722     for ac_prog in ginstall scoinst install; do
4723       for ac_exec_ext in '' $ac_executable_extensions; do
4724         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4725           if test $ac_prog = install &&
4726             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4727             # AIX install.  It has an incompatible calling convention.
4728             :
4729           elif test $ac_prog = install &&
4730             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4731             # program-specific install script used by HP pwplus--don't use.
4732             :
4733           else
4734             rm -rf conftest.one conftest.two conftest.dir
4735             echo one > conftest.one
4736             echo two > conftest.two
4737             mkdir conftest.dir
4738             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4739               test -s conftest.one && test -s conftest.two &&
4740               test -s conftest.dir/conftest.one &&
4741               test -s conftest.dir/conftest.two
4742             then
4743               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4744               break 3
4745             fi
4746           fi
4747         fi
4748       done
4749     done
4750     ;;
4751 esac
4752
4753   done
4754 IFS=$as_save_IFS
4755
4756 rm -rf conftest.one conftest.two conftest.dir
4757
4758 fi
4759   if test "${ac_cv_path_install+set}" = set; then
4760     INSTALL=$ac_cv_path_install
4761   else
4762     # As a last resort, use the slow shell script.  Don't cache a
4763     # value for INSTALL within a source directory, because that will
4764     # break other packages using the cache if that directory is
4765     # removed, or if the value is a relative name.
4766     INSTALL=$ac_install_sh
4767   fi
4768 fi
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4770 $as_echo "$INSTALL" >&6; }
4771
4772 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4773 # It thinks the first close brace ends the variable substitution.
4774 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4775
4776 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4777
4778 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4779
4780 case "$INSTALL" in
4781   [\\/$]* | ?:[\\/]* ) ;;
4782   *)  INSTALL="\\\$(top_srcdir)/$INSTALL" ;;
4783 esac
4784
4785 for ac_prog in lclint lint
4786 do
4787   # Extract the first word of "$ac_prog", so it can be a program name with args.
4788 set dummy $ac_prog; ac_word=$2
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4790 $as_echo_n "checking for $ac_word... " >&6; }
4791 if ${ac_cv_prog_LINT+:} false; then :
4792   $as_echo_n "(cached) " >&6
4793 else
4794   if test -n "$LINT"; then
4795   ac_cv_prog_LINT="$LINT" # Let the user override the test.
4796 else
4797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4798 for as_dir in $PATH
4799 do
4800   IFS=$as_save_IFS
4801   test -z "$as_dir" && as_dir=.
4802     for ac_exec_ext in '' $ac_executable_extensions; do
4803   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4804     ac_cv_prog_LINT="$ac_prog"
4805     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4806     break 2
4807   fi
4808 done
4809   done
4810 IFS=$as_save_IFS
4811
4812 fi
4813 fi
4814 LINT=$ac_cv_prog_LINT
4815 if test -n "$LINT"; then
4816   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
4817 $as_echo "$LINT" >&6; }
4818 else
4819   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4820 $as_echo "no" >&6; }
4821 fi
4822
4823
4824   test -n "$LINT" && break
4825 done
4826
4827 if test "$LINT" = "lint"
4828 then
4829   LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
4830   fi
4831
4832
4833 for ac_prog in fontforge
4834 do
4835   # Extract the first word of "$ac_prog", so it can be a program name with args.
4836 set dummy $ac_prog; ac_word=$2
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4838 $as_echo_n "checking for $ac_word... " >&6; }
4839 if ${ac_cv_prog_FONTFORGE+:} false; then :
4840   $as_echo_n "(cached) " >&6
4841 else
4842   if test -n "$FONTFORGE"; then
4843   ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
4844 else
4845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4846 for as_dir in $PATH
4847 do
4848   IFS=$as_save_IFS
4849   test -z "$as_dir" && as_dir=.
4850     for ac_exec_ext in '' $ac_executable_extensions; do
4851   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4852     ac_cv_prog_FONTFORGE="$ac_prog"
4853     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4854     break 2
4855   fi
4856 done
4857   done
4858 IFS=$as_save_IFS
4859
4860 fi
4861 fi
4862 FONTFORGE=$ac_cv_prog_FONTFORGE
4863 if test -n "$FONTFORGE"; then
4864   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTFORGE" >&5
4865 $as_echo "$FONTFORGE" >&6; }
4866 else
4867   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4868 $as_echo "no" >&6; }
4869 fi
4870
4871
4872   test -n "$FONTFORGE" && break
4873 done
4874 test -n "$FONTFORGE" || FONTFORGE="false"
4875
4876 for ac_prog in pkg-config
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 ${ac_cv_prog_PKG_CONFIG+:} false; then :
4883   $as_echo_n "(cached) " >&6
4884 else
4885   if test -n "$PKG_CONFIG"; then
4886   ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # 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_PKG_CONFIG="$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 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
4906 if test -n "$PKG_CONFIG"; then
4907   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4908 $as_echo "$PKG_CONFIG" >&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 "$PKG_CONFIG" && break
4916 done
4917 test -n "$PKG_CONFIG" || PKG_CONFIG="false"
4918
4919 for ac_prog in rsvg
4920 do
4921   # Extract the first word of "$ac_prog", so it can be a program name with args.
4922 set dummy $ac_prog; ac_word=$2
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4924 $as_echo_n "checking for $ac_word... " >&6; }
4925 if ${ac_cv_prog_RSVG+:} false; then :
4926   $as_echo_n "(cached) " >&6
4927 else
4928   if test -n "$RSVG"; then
4929   ac_cv_prog_RSVG="$RSVG" # Let the user override the test.
4930 else
4931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4932 for as_dir in $PATH
4933 do
4934   IFS=$as_save_IFS
4935   test -z "$as_dir" && as_dir=.
4936     for ac_exec_ext in '' $ac_executable_extensions; do
4937   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4938     ac_cv_prog_RSVG="$ac_prog"
4939     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4940     break 2
4941   fi
4942 done
4943   done
4944 IFS=$as_save_IFS
4945
4946 fi
4947 fi
4948 RSVG=$ac_cv_prog_RSVG
4949 if test -n "$RSVG"; then
4950   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG" >&5
4951 $as_echo "$RSVG" >&6; }
4952 else
4953   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4954 $as_echo "no" >&6; }
4955 fi
4956
4957
4958   test -n "$RSVG" && break
4959 done
4960 test -n "$RSVG" || RSVG="false"
4961
4962 for ac_prog in convert
4963 do
4964   # Extract the first word of "$ac_prog", so it can be a program name with args.
4965 set dummy $ac_prog; ac_word=$2
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4967 $as_echo_n "checking for $ac_word... " >&6; }
4968 if ${ac_cv_prog_CONVERT+:} false; then :
4969   $as_echo_n "(cached) " >&6
4970 else
4971   if test -n "$CONVERT"; then
4972   ac_cv_prog_CONVERT="$CONVERT" # Let the user override the test.
4973 else
4974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4975 for as_dir in $PATH
4976 do
4977   IFS=$as_save_IFS
4978   test -z "$as_dir" && as_dir=.
4979     for ac_exec_ext in '' $ac_executable_extensions; do
4980   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4981     ac_cv_prog_CONVERT="$ac_prog"
4982     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4983     break 2
4984   fi
4985 done
4986   done
4987 IFS=$as_save_IFS
4988
4989 fi
4990 fi
4991 CONVERT=$ac_cv_prog_CONVERT
4992 if test -n "$CONVERT"; then
4993   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONVERT" >&5
4994 $as_echo "$CONVERT" >&6; }
4995 else
4996   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4997 $as_echo "no" >&6; }
4998 fi
4999
5000
5001   test -n "$CONVERT" && break
5002 done
5003 test -n "$CONVERT" || CONVERT="false"
5004
5005 for ac_prog in icotool
5006 do
5007   # Extract the first word of "$ac_prog", so it can be a program name with args.
5008 set dummy $ac_prog; ac_word=$2
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5010 $as_echo_n "checking for $ac_word... " >&6; }
5011 if ${ac_cv_prog_ICOTOOL+:} false; then :
5012   $as_echo_n "(cached) " >&6
5013 else
5014   if test -n "$ICOTOOL"; then
5015   ac_cv_prog_ICOTOOL="$ICOTOOL" # Let the user override the test.
5016 else
5017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5018 for as_dir in $PATH
5019 do
5020   IFS=$as_save_IFS
5021   test -z "$as_dir" && as_dir=.
5022     for ac_exec_ext in '' $ac_executable_extensions; do
5023   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5024     ac_cv_prog_ICOTOOL="$ac_prog"
5025     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5026     break 2
5027   fi
5028 done
5029   done
5030 IFS=$as_save_IFS
5031
5032 fi
5033 fi
5034 ICOTOOL=$ac_cv_prog_ICOTOOL
5035 if test -n "$ICOTOOL"; then
5036   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICOTOOL" >&5
5037 $as_echo "$ICOTOOL" >&6; }
5038 else
5039   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5040 $as_echo "no" >&6; }
5041 fi
5042
5043
5044   test -n "$ICOTOOL" && break
5045 done
5046 test -n "$ICOTOOL" || ICOTOOL="false"
5047
5048 for ac_prog in msgfmt
5049 do
5050   # Extract the first word of "$ac_prog", so it can be a program name with args.
5051 set dummy $ac_prog; ac_word=$2
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5053 $as_echo_n "checking for $ac_word... " >&6; }
5054 if ${ac_cv_prog_MSGFMT+:} false; then :
5055   $as_echo_n "(cached) " >&6
5056 else
5057   if test -n "$MSGFMT"; then
5058   ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
5059 else
5060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5061 for as_dir in $PATH
5062 do
5063   IFS=$as_save_IFS
5064   test -z "$as_dir" && as_dir=.
5065     for ac_exec_ext in '' $ac_executable_extensions; do
5066   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5067     ac_cv_prog_MSGFMT="$ac_prog"
5068     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5069     break 2
5070   fi
5071 done
5072   done
5073 IFS=$as_save_IFS
5074
5075 fi
5076 fi
5077 MSGFMT=$ac_cv_prog_MSGFMT
5078 if test -n "$MSGFMT"; then
5079   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5080 $as_echo "$MSGFMT" >&6; }
5081 else
5082   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5083 $as_echo "no" >&6; }
5084 fi
5085
5086
5087   test -n "$MSGFMT" && break
5088 done
5089 test -n "$MSGFMT" || MSGFMT="false"
5090
5091
5092 if test "x$enable_maintainer_mode" != "xyes"
5093 then
5094   MAINTAINER_MODE=\#
5095
5096 else
5097   if test "$FONTFORGE" = "false"; then as_fn_error $? "You need fontforge to rebuild fonts in maintainer mode." "$LINENO" 5; fi
5098   if test "$RSVG" = "false"; then as_fn_error $? "You need rsvg to rebuild icons in maintainer mode." "$LINENO" 5; fi
5099
5100     if test "$CONVERT" = false
5101   then
5102     as_fn_error $? "You need imagemagick to rebuild icons in maintainer mode." "$LINENO" 5
5103   else
5104     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough imagemagick" >&5
5105 $as_echo_n "checking for recent enough imagemagick... " >&6; }
5106     convert_version=`convert --version | head -n1`
5107     if test "x$convert_version" != "x"
5108     then
5109       convert_version_major=`expr "$convert_version" : '.* \([0-9]*\)\.[0-9]*'`
5110       convert_version_minor=`expr "$convert_version" : '.* [0-9]*\.\([0-9]*\)'`
5111       if test "$convert_version_major" -eq 6 -a "$convert_version_minor" -lt 6
5112       then
5113         CONVERT=false
5114       fi
5115     fi
5116     if test "$CONVERT" = false
5117     then
5118       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($convert_version_major.$convert_version_minor)" >&5
5119 $as_echo "no ($convert_version_major.$convert_version_minor)" >&6; }
5120       as_fn_error $? "You need imagemagick version 6.6 or newer to rebuild icons in maintainer mode." "$LINENO" 5
5121     else
5122       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($convert_version_major.$convert_version_minor)" >&5
5123 $as_echo "yes ($convert_version_major.$convert_version_minor)" >&6; }
5124     fi
5125   fi
5126
5127     if test "$ICOTOOL" = false
5128   then
5129     as_fn_error $? "You need icotool to rebuild icons in maintainer mode." "$LINENO" 5
5130   else
5131     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough icotool" >&5
5132 $as_echo_n "checking for recent enough icotool... " >&6; }
5133     icotool_version=`icotool --version | head -n1`
5134     if test "x$icotool_version" != "x"
5135     then
5136       icotool_version_major=`expr "$icotool_version" : '.* \([0-9]*\)\.[0-9]*'`
5137       icotool_version_minor=`expr "$icotool_version" : '.* [0-9]*\.\([0-9]*\)'`
5138       if test "$icotool_version_major" -eq 0 -a "$icotool_version_minor" -lt 29
5139       then
5140         ICOTOOL=false
5141         as_fn_append wine_warnings "|icotool version 0.29.0 or newer is needed to rebuild icons."
5142       fi
5143     fi
5144     if test "$ICOTOOL" = false
5145     then
5146       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($icotool_version_major.$icotool_version_minor)" >&5
5147 $as_echo "no ($icotool_version_major.$icotool_version_minor)" >&6; }
5148       as_fn_error $? "You need icotool version 0.29.0 or newer to rebuild icons in maintainer mode." "$LINENO" 5
5149     else
5150       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($icotool_version_major.$icotool_version_minor)" >&5
5151 $as_echo "yes ($icotool_version_major.$icotool_version_minor)" >&6; }
5152     fi
5153   fi
5154
5155     with_gettext=yes
5156   with_gettextpo=yes
5157   { ac_cv_header_gettext_po_h=; unset ac_cv_header_gettext_po_h;}
5158 fi
5159
5160 test "x$with_gettext" != xno || MSGFMT=false
5161 if test "$MSGFMT" = false; then :
5162   case "x$with_gettext" in
5163   x)   as_fn_append wine_warnings "|gettext tools not found, translations won't be built." ;;
5164   xno) ;;
5165   *)   as_fn_error $? "gettext tools not found, translations won't be built.
5166 This is an error since --with-gettext was requested." "$LINENO" 5 ;;
5167 esac
5168 fi
5169
5170
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for i386_set_ldt in -li386" >&5
5172 $as_echo_n "checking for i386_set_ldt in -li386... " >&6; }
5173 if ${ac_cv_lib_i386_i386_set_ldt+:} false; then :
5174   $as_echo_n "(cached) " >&6
5175 else
5176   ac_check_lib_save_LIBS=$LIBS
5177 LIBS="-li386  $LIBS"
5178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5179 /* end confdefs.h.  */
5180
5181 /* Override any GCC internal prototype to avoid an error.
5182    Use char because int might match the return type of a GCC
5183    builtin and then its argument prototype would still apply.  */
5184 #ifdef __cplusplus
5185 extern "C"
5186 #endif
5187 char i386_set_ldt ();
5188 int
5189 main ()
5190 {
5191 return i386_set_ldt ();
5192   ;
5193   return 0;
5194 }
5195 _ACEOF
5196 if ac_fn_c_try_link "$LINENO"; then :
5197   ac_cv_lib_i386_i386_set_ldt=yes
5198 else
5199   ac_cv_lib_i386_i386_set_ldt=no
5200 fi
5201 rm -f core conftest.err conftest.$ac_objext \
5202     conftest$ac_exeext conftest.$ac_ext
5203 LIBS=$ac_check_lib_save_LIBS
5204 fi
5205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_i386_i386_set_ldt" >&5
5206 $as_echo "$ac_cv_lib_i386_i386_set_ldt" >&6; }
5207 if test "x$ac_cv_lib_i386_i386_set_ldt" = xyes; then :
5208   cat >>confdefs.h <<_ACEOF
5209 #define HAVE_LIBI386 1
5210 _ACEOF
5211
5212   LIBS="-li386 $LIBS"
5213
5214 fi
5215
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
5217 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
5218 if ${ac_cv_lib_ossaudio__oss_ioctl+:} false; then :
5219   $as_echo_n "(cached) " >&6
5220 else
5221   ac_check_lib_save_LIBS=$LIBS
5222 LIBS="-lossaudio  $LIBS"
5223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5224 /* end confdefs.h.  */
5225
5226 /* Override any GCC internal prototype to avoid an error.
5227    Use char because int might match the return type of a GCC
5228    builtin and then its argument prototype would still apply.  */
5229 #ifdef __cplusplus
5230 extern "C"
5231 #endif
5232 char _oss_ioctl ();
5233 int
5234 main ()
5235 {
5236 return _oss_ioctl ();
5237   ;
5238   return 0;
5239 }
5240 _ACEOF
5241 if ac_fn_c_try_link "$LINENO"; then :
5242   ac_cv_lib_ossaudio__oss_ioctl=yes
5243 else
5244   ac_cv_lib_ossaudio__oss_ioctl=no
5245 fi
5246 rm -f core conftest.err conftest.$ac_objext \
5247     conftest$ac_exeext conftest.$ac_ext
5248 LIBS=$ac_check_lib_save_LIBS
5249 fi
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5251 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
5252 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = xyes; then :
5253   cat >>confdefs.h <<_ACEOF
5254 #define HAVE_LIBOSSAUDIO 1
5255 _ACEOF
5256
5257   LIBS="-lossaudio $LIBS"
5258
5259 fi
5260
5261
5262 XLIB=""
5263
5264 OPENGL_LIBS=""
5265
5266
5267
5268 # Check whether --enable-largefile was given.
5269 if test "${enable_largefile+set}" = set; then :
5270   enableval=$enable_largefile;
5271 fi
5272
5273 if test "$enable_largefile" != no; then
5274
5275   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5276 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5277 if ${ac_cv_sys_largefile_CC+:} false; then :
5278   $as_echo_n "(cached) " >&6
5279 else
5280   ac_cv_sys_largefile_CC=no
5281      if test "$GCC" != yes; then
5282        ac_save_CC=$CC
5283        while :; do
5284          # IRIX 6.2 and later do not support large files by default,
5285          # so use the C compiler's -n32 option if that helps.
5286          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5287 /* end confdefs.h.  */
5288 #include <sys/types.h>
5289  /* Check that off_t can represent 2**63 - 1 correctly.
5290     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5291     since some C++ compilers masquerading as C compilers
5292     incorrectly reject 9223372036854775807.  */
5293 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5294   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5295                        && LARGE_OFF_T % 2147483647 == 1)
5296                       ? 1 : -1];
5297 int
5298 main ()
5299 {
5300
5301   ;
5302   return 0;
5303 }
5304 _ACEOF
5305          if ac_fn_c_try_compile "$LINENO"; then :
5306   break
5307 fi
5308 rm -f core conftest.err conftest.$ac_objext
5309          CC="$CC -n32"
5310          if ac_fn_c_try_compile "$LINENO"; then :
5311   ac_cv_sys_largefile_CC=' -n32'; break
5312 fi
5313 rm -f core conftest.err conftest.$ac_objext
5314          break
5315        done
5316        CC=$ac_save_CC
5317        rm -f conftest.$ac_ext
5318     fi
5319 fi
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5321 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5322   if test "$ac_cv_sys_largefile_CC" != no; then
5323     CC=$CC$ac_cv_sys_largefile_CC
5324   fi
5325
5326   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5327 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5328 if ${ac_cv_sys_file_offset_bits+:} false; then :
5329   $as_echo_n "(cached) " >&6
5330 else
5331   while :; do
5332   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5333 /* end confdefs.h.  */
5334 #include <sys/types.h>
5335  /* Check that off_t can represent 2**63 - 1 correctly.
5336     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5337     since some C++ compilers masquerading as C compilers
5338     incorrectly reject 9223372036854775807.  */
5339 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5340   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5341                        && LARGE_OFF_T % 2147483647 == 1)
5342                       ? 1 : -1];
5343 int
5344 main ()
5345 {
5346
5347   ;
5348   return 0;
5349 }
5350 _ACEOF
5351 if ac_fn_c_try_compile "$LINENO"; then :
5352   ac_cv_sys_file_offset_bits=no; break
5353 fi
5354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5355   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5356 /* end confdefs.h.  */
5357 #define _FILE_OFFSET_BITS 64
5358 #include <sys/types.h>
5359  /* Check that off_t can represent 2**63 - 1 correctly.
5360     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5361     since some C++ compilers masquerading as C compilers
5362     incorrectly reject 9223372036854775807.  */
5363 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5364   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5365                        && LARGE_OFF_T % 2147483647 == 1)
5366                       ? 1 : -1];
5367 int
5368 main ()
5369 {
5370
5371   ;
5372   return 0;
5373 }
5374 _ACEOF
5375 if ac_fn_c_try_compile "$LINENO"; then :
5376   ac_cv_sys_file_offset_bits=64; break
5377 fi
5378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5379   ac_cv_sys_file_offset_bits=unknown
5380   break
5381 done
5382 fi
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5384 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5385 case $ac_cv_sys_file_offset_bits in #(
5386   no | unknown) ;;
5387   *)
5388 cat >>confdefs.h <<_ACEOF
5389 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5390 _ACEOF
5391 ;;
5392 esac
5393 rm -rf conftest*
5394   if test $ac_cv_sys_file_offset_bits = unknown; then
5395     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5396 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5397 if ${ac_cv_sys_large_files+:} false; then :
5398   $as_echo_n "(cached) " >&6
5399 else
5400   while :; do
5401   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5402 /* end confdefs.h.  */
5403 #include <sys/types.h>
5404  /* Check that off_t can represent 2**63 - 1 correctly.
5405     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5406     since some C++ compilers masquerading as C compilers
5407     incorrectly reject 9223372036854775807.  */
5408 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5409   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5410                        && LARGE_OFF_T % 2147483647 == 1)
5411                       ? 1 : -1];
5412 int
5413 main ()
5414 {
5415
5416   ;
5417   return 0;
5418 }
5419 _ACEOF
5420 if ac_fn_c_try_compile "$LINENO"; then :
5421   ac_cv_sys_large_files=no; break
5422 fi
5423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5424   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5425 /* end confdefs.h.  */
5426 #define _LARGE_FILES 1
5427 #include <sys/types.h>
5428  /* Check that off_t can represent 2**63 - 1 correctly.
5429     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5430     since some C++ compilers masquerading as C compilers
5431     incorrectly reject 9223372036854775807.  */
5432 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5433   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5434                        && LARGE_OFF_T % 2147483647 == 1)
5435                       ? 1 : -1];
5436 int
5437 main ()
5438 {
5439
5440   ;
5441   return 0;
5442 }
5443 _ACEOF
5444 if ac_fn_c_try_compile "$LINENO"; then :
5445   ac_cv_sys_large_files=1; break
5446 fi
5447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5448   ac_cv_sys_large_files=unknown
5449   break
5450 done
5451 fi
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5453 $as_echo "$ac_cv_sys_large_files" >&6; }
5454 case $ac_cv_sys_large_files in #(
5455   no | unknown) ;;
5456   *)
5457 cat >>confdefs.h <<_ACEOF
5458 #define _LARGE_FILES $ac_cv_sys_large_files
5459 _ACEOF
5460 ;;
5461 esac
5462 rm -rf conftest*
5463   fi
5464 fi
5465
5466
5467 ac_ext=c
5468 ac_cpp='$CPP $CPPFLAGS'
5469 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5470 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5471 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5473 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5474 # On Suns, sometimes $CPP names a directory.
5475 if test -n "$CPP" && test -d "$CPP"; then
5476   CPP=
5477 fi
5478 if test -z "$CPP"; then
5479   if ${ac_cv_prog_CPP+:} false; then :
5480   $as_echo_n "(cached) " >&6
5481 else
5482       # Double quotes because CPP needs to be expanded
5483     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5484     do
5485       ac_preproc_ok=false
5486 for ac_c_preproc_warn_flag in '' yes
5487 do
5488   # Use a header file that comes with gcc, so configuring glibc
5489   # with a fresh cross-compiler works.
5490   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5491   # <limits.h> exists even on freestanding compilers.
5492   # On the NeXT, cc -E runs the code through the compiler's parser,
5493   # not just through cpp. "Syntax error" is here to catch this case.
5494   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5495 /* end confdefs.h.  */
5496 #ifdef __STDC__
5497 # include <limits.h>
5498 #else
5499 # include <assert.h>
5500 #endif
5501                      Syntax error
5502 _ACEOF
5503 if ac_fn_c_try_cpp "$LINENO"; then :
5504
5505 else
5506   # Broken: fails on valid input.
5507 continue
5508 fi
5509 rm -f conftest.err conftest.i conftest.$ac_ext
5510
5511   # OK, works on sane cases.  Now check whether nonexistent headers
5512   # can be detected and how.
5513   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5514 /* end confdefs.h.  */
5515 #include <ac_nonexistent.h>
5516 _ACEOF
5517 if ac_fn_c_try_cpp "$LINENO"; then :
5518   # Broken: success on invalid input.
5519 continue
5520 else
5521   # Passes both tests.
5522 ac_preproc_ok=:
5523 break
5524 fi
5525 rm -f conftest.err conftest.i conftest.$ac_ext
5526
5527 done
5528 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5529 rm -f conftest.i conftest.err conftest.$ac_ext
5530 if $ac_preproc_ok; then :
5531   break
5532 fi
5533
5534     done
5535     ac_cv_prog_CPP=$CPP
5536
5537 fi
5538   CPP=$ac_cv_prog_CPP
5539 else
5540   ac_cv_prog_CPP=$CPP
5541 fi
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5543 $as_echo "$CPP" >&6; }
5544 ac_preproc_ok=false
5545 for ac_c_preproc_warn_flag in '' yes
5546 do
5547   # Use a header file that comes with gcc, so configuring glibc
5548   # with a fresh cross-compiler works.
5549   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5550   # <limits.h> exists even on freestanding compilers.
5551   # On the NeXT, cc -E runs the code through the compiler's parser,
5552   # not just through cpp. "Syntax error" is here to catch this case.
5553   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5554 /* end confdefs.h.  */
5555 #ifdef __STDC__
5556 # include <limits.h>
5557 #else
5558 # include <assert.h>
5559 #endif
5560                      Syntax error
5561 _ACEOF
5562 if ac_fn_c_try_cpp "$LINENO"; then :
5563
5564 else
5565   # Broken: fails on valid input.
5566 continue
5567 fi
5568 rm -f conftest.err conftest.i conftest.$ac_ext
5569
5570   # OK, works on sane cases.  Now check whether nonexistent headers
5571   # can be detected and how.
5572   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5573 /* end confdefs.h.  */
5574 #include <ac_nonexistent.h>
5575 _ACEOF
5576 if ac_fn_c_try_cpp "$LINENO"; then :
5577   # Broken: success on invalid input.
5578 continue
5579 else
5580   # Passes both tests.
5581 ac_preproc_ok=:
5582 break
5583 fi
5584 rm -f conftest.err conftest.i conftest.$ac_ext
5585
5586 done
5587 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5588 rm -f conftest.i conftest.err conftest.$ac_ext
5589 if $ac_preproc_ok; then :
5590
5591 else
5592   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5593 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5594 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5595 See \`config.log' for more details" "$LINENO" 5; }
5596 fi
5597
5598 ac_ext=c
5599 ac_cpp='$CPP $CPPFLAGS'
5600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5603
5604
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5606 $as_echo_n "checking for ANSI C header files... " >&6; }
5607 if ${ac_cv_header_stdc+:} false; then :
5608   $as_echo_n "(cached) " >&6
5609 else
5610   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5611 /* end confdefs.h.  */
5612 #include <stdlib.h>
5613 #include <stdarg.h>
5614 #include <string.h>
5615 #include <float.h>
5616
5617 int
5618 main ()
5619 {
5620
5621   ;
5622   return 0;
5623 }
5624 _ACEOF
5625 if ac_fn_c_try_compile "$LINENO"; then :
5626   ac_cv_header_stdc=yes
5627 else
5628   ac_cv_header_stdc=no
5629 fi
5630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5631
5632 if test $ac_cv_header_stdc = yes; then
5633   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5634   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5635 /* end confdefs.h.  */
5636 #include <string.h>
5637
5638 _ACEOF
5639 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5640   $EGREP "memchr" >/dev/null 2>&1; then :
5641
5642 else
5643   ac_cv_header_stdc=no
5644 fi
5645 rm -f conftest*
5646
5647 fi
5648
5649 if test $ac_cv_header_stdc = yes; then
5650   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5651   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5652 /* end confdefs.h.  */
5653 #include <stdlib.h>
5654
5655 _ACEOF
5656 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5657   $EGREP "free" >/dev/null 2>&1; then :
5658
5659 else
5660   ac_cv_header_stdc=no
5661 fi
5662 rm -f conftest*
5663
5664 fi
5665
5666 if test $ac_cv_header_stdc = yes; then
5667   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5668   if test "$cross_compiling" = yes; then :
5669   :
5670 else
5671   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5672 /* end confdefs.h.  */
5673 #include <ctype.h>
5674 #include <stdlib.h>
5675 #if ((' ' & 0x0FF) == 0x020)
5676 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5677 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5678 #else
5679 # define ISLOWER(c) \
5680                    (('a' <= (c) && (c) <= 'i') \
5681                      || ('j' <= (c) && (c) <= 'r') \
5682                      || ('s' <= (c) && (c) <= 'z'))
5683 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5684 #endif
5685
5686 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5687 int
5688 main ()
5689 {
5690   int i;
5691   for (i = 0; i < 256; i++)
5692     if (XOR (islower (i), ISLOWER (i))
5693         || toupper (i) != TOUPPER (i))
5694       return 2;
5695   return 0;
5696 }
5697 _ACEOF
5698 if ac_fn_c_try_run "$LINENO"; then :
5699
5700 else
5701   ac_cv_header_stdc=no
5702 fi
5703 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5704   conftest.$ac_objext conftest.beam conftest.$ac_ext
5705 fi
5706
5707 fi
5708 fi
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5710 $as_echo "$ac_cv_header_stdc" >&6; }
5711 if test $ac_cv_header_stdc = yes; then
5712
5713 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5714
5715 fi
5716
5717 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5718 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5719                   inttypes.h stdint.h unistd.h
5720 do :
5721   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5722 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5723 "
5724 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5725   cat >>confdefs.h <<_ACEOF
5726 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5727 _ACEOF
5728
5729 fi
5730
5731 done
5732
5733
5734 for ac_header in \
5735         AL/al.h \
5736         ApplicationServices/ApplicationServices.h \
5737         AudioToolbox/AudioConverter.h \
5738         AudioUnit/AudioUnit.h \
5739         AudioUnit/AudioComponent.h \
5740         CL/cl.h \
5741         Carbon/Carbon.h \
5742         CoreAudio/CoreAudio.h \
5743         DiskArbitration/DiskArbitration.h \
5744         IOKit/IOKitLib.h \
5745         IOKit/hid/IOHIDLib.h \
5746         OpenAL/al.h \
5747         OpenCL/opencl.h \
5748         QuickTime/ImageCompression.h \
5749         Security/Security.h \
5750         alias.h \
5751         alsa/asoundlib.h \
5752         arpa/inet.h \
5753         arpa/nameser.h \
5754         asm/types.h \
5755         capi20.h \
5756         curses.h \
5757         direct.h \
5758         dirent.h \
5759         dlfcn.h \
5760         elf.h \
5761         float.h \
5762         fnmatch.h \
5763         fontconfig/fontconfig.h \
5764         getopt.h \
5765         gettext-po.h \
5766         grp.h \
5767         gsm.h \
5768         gsm/gsm.h \
5769         ieeefp.h \
5770         inet/mib2.h \
5771         io.h \
5772         jpeglib.h \
5773         kstat.h \
5774         lber.h \
5775         lcms.h \
5776         lcms/lcms.h \
5777         ldap.h \
5778         link.h \
5779         linux/cdrom.h \
5780         linux/compiler.h \
5781         linux/hdreg.h \
5782         linux/input.h \
5783         linux/ioctl.h \
5784         linux/joystick.h \
5785         linux/major.h \
5786         linux/param.h \
5787         linux/serial.h \
5788         linux/types.h \
5789         linux/ucdrom.h \
5790         mach-o/nlist.h \
5791         mach-o/loader.h \
5792         mach/mach.h \
5793         mach/machine.h \
5794         machine/cpu.h \
5795         machine/limits.h \
5796         machine/sysarch.h \
5797         mntent.h \
5798         mpg123.h \
5799         ncurses.h \
5800         netdb.h \
5801         netinet/in.h \
5802         netinet/in_systm.h \
5803         netinet/tcp.h \
5804         netinet/tcp_fsm.h \
5805         openssl/err.h \
5806         openssl/ssl.h \
5807         png.h \
5808         poll.h \
5809         port.h \
5810         process.h \
5811         pthread.h \
5812         pwd.h \
5813         regex.h \
5814         sched.h \
5815         scsi/scsi.h \
5816         scsi/scsi_ioctl.h \
5817         scsi/sg.h \
5818         stdbool.h \
5819         stdint.h \
5820         strings.h \
5821         stropts.h \
5822         sys/asoundlib.h \
5823         sys/attr.h \
5824         sys/cdio.h \
5825         sys/elf32.h \
5826         sys/epoll.h \
5827         sys/event.h \
5828         sys/exec_elf.h \
5829         sys/filio.h \
5830         sys/inotify.h \
5831         sys/ioctl.h \
5832         sys/ipc.h \
5833         sys/limits.h \
5834         sys/link.h \
5835         sys/mman.h \
5836         sys/modem.h \
5837         sys/msg.h \
5838         sys/mtio.h \
5839         sys/param.h \
5840         sys/poll.h \
5841         sys/prctl.h \
5842         sys/protosw.h \
5843         sys/ptrace.h \
5844         sys/resource.h \
5845         sys/scsiio.h \
5846         sys/shm.h \
5847         sys/signal.h \
5848         sys/socket.h \
5849         sys/socketvar.h \
5850         sys/sockio.h \
5851         sys/statvfs.h \
5852         sys/strtio.h \
5853         sys/syscall.h \
5854         sys/tihdr.h \
5855         sys/time.h \
5856         sys/timeout.h \
5857         sys/times.h \
5858         sys/uio.h \
5859         sys/un.h \
5860         sys/utsname.h \
5861         sys/vm86.h \
5862         sys/wait.h \
5863         syscall.h \
5864         termios.h \
5865         tiffio.h \
5866         unistd.h \
5867         utime.h \
5868         valgrind/memcheck.h \
5869         valgrind/valgrind.h \
5870         zlib.h
5871
5872 do :
5873   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5874 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5875 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5876   cat >>confdefs.h <<_ACEOF
5877 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5878 _ACEOF
5879
5880 fi
5881
5882 done
5883
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
5885 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
5886 if ${ac_cv_header_stat_broken+:} false; then :
5887   $as_echo_n "(cached) " >&6
5888 else
5889   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5890 /* end confdefs.h.  */
5891 #include <sys/types.h>
5892 #include <sys/stat.h>
5893
5894 #if defined S_ISBLK && defined S_IFDIR
5895 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
5896 #endif
5897
5898 #if defined S_ISBLK && defined S_IFCHR
5899 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
5900 #endif
5901
5902 #if defined S_ISLNK && defined S_IFREG
5903 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
5904 #endif
5905
5906 #if defined S_ISSOCK && defined S_IFREG
5907 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
5908 #endif
5909
5910 _ACEOF
5911 if ac_fn_c_try_compile "$LINENO"; then :
5912   ac_cv_header_stat_broken=no
5913 else
5914   ac_cv_header_stat_broken=yes
5915 fi
5916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5917 fi
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
5919 $as_echo "$ac_cv_header_stat_broken" >&6; }
5920 if test $ac_cv_header_stat_broken = yes; then
5921
5922 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
5923
5924 fi
5925
5926
5927
5928 for ac_header in sys/mount.h sys/statfs.h sys/sysctl.h sys/user.h sys/vfs.h
5929 do :
5930   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5931 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
5932      #ifdef HAVE_SYS_PARAM_H
5933      # include <sys/param.h>
5934      #endif
5935 "
5936 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5937   cat >>confdefs.h <<_ACEOF
5938 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5939 _ACEOF
5940
5941 fi
5942
5943 done
5944
5945
5946 for ac_header in \
5947         netinet/ip.h \
5948         net/if.h \
5949         net/if_arp.h \
5950         net/if_dl.h \
5951         net/if_types.h \
5952         net/route.h \
5953         netinet/if_ether.h \
5954         netinet/if_inarp.h \
5955         netinet/in_pcb.h \
5956         netinet/ip_icmp.h \
5957         netinet/ip_var.h \
5958         netinet/udp.h \
5959         netipx/ipx.h \
5960
5961 do :
5962   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5963 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
5964      #ifdef HAVE_SYS_SOCKET_H
5965      # include <sys/socket.h>
5966      #endif
5967      #ifdef HAVE_SYS_SOCKETVAR_H
5968      # include <sys/socketvar.h>
5969      #endif
5970      #ifdef HAVE_NET_ROUTE_H
5971      # include <net/route.h>
5972      #endif
5973      #ifdef HAVE_NETINET_IN_H
5974      # include <netinet/in.h>
5975      #endif
5976      #ifdef HAVE_NETINET_IN_SYSTM_H
5977      # include <netinet/in_systm.h>
5978      #endif
5979      #ifdef HAVE_NET_IF_H
5980      # include <net/if.h>
5981      #endif
5982      #ifdef HAVE_NETINET_IP_H
5983      # include <netinet/ip.h>
5984      #endif
5985 "
5986 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5987   cat >>confdefs.h <<_ACEOF
5988 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5989 _ACEOF
5990
5991 fi
5992
5993 done
5994
5995
5996 for ac_header in netinet/tcp_timer.h netinet/udp_var.h netinet/icmp_var.h netinet/tcp_var.h
5997 do :
5998   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5999 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6000      #ifdef HAVE_ALIAS_H
6001      # include <alias.h>
6002      #endif
6003      #ifdef HAVE_SYS_SOCKET_H
6004      # include <sys/socket.h>
6005      #endif
6006      #ifdef HAVE_SYS_SOCKETVAR_H
6007      # include <sys/socketvar.h>
6008      #endif
6009      #ifdef HAVE_SYS_TIMEOUT_H
6010      # include <sys/timeout.h>
6011      #endif
6012      #ifdef HAVE_NETINET_IN_H
6013      # include <netinet/in.h>
6014      #endif
6015      #ifdef HAVE_NETINET_IN_SYSTM_H
6016      # include <netinet/in_systm.h>
6017      #endif
6018      #ifdef HAVE_NETINET_IP_H
6019      # include <netinet/ip.h>
6020      #endif
6021      #ifdef HAVE_NETINET_IP_VAR_H
6022      # include <netinet/ip_var.h>
6023      #endif
6024      #ifdef HAVE_NETINET_IP_ICMP_H
6025      # include <netinet/ip_icmp.h>
6026      #endif
6027      #ifdef HAVE_NETINET_UDP_H
6028      # include <netinet/udp.h>
6029      #endif
6030      #ifdef HAVE_NETINET_TCP_H
6031      # include <netinet/tcp.h>
6032      #endif
6033      #ifdef HAVE_NETINET_TCP_TIMER_H
6034      #include <netinet/tcp_timer.h>
6035      #endif
6036 "
6037 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6038   cat >>confdefs.h <<_ACEOF
6039 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6040 _ACEOF
6041
6042 fi
6043
6044 done
6045
6046
6047 for ac_header in linux/ipx.h linux/irda.h
6048 do :
6049   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6050 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6051      #ifdef HAVE_ASM_TYPES_H
6052      # include <asm/types.h>
6053      #endif
6054      #ifdef HAVE_SYS_SOCKET_H
6055      # include <sys/socket.h>
6056      #endif
6057      #ifdef HAVE_LINUX_TYPES_H
6058      # include <linux/types.h>
6059      #endif
6060 "
6061 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6062   cat >>confdefs.h <<_ACEOF
6063 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6064 _ACEOF
6065
6066 fi
6067
6068 done
6069
6070
6071 for ac_header in mach-o/dyld_images.h
6072 do :
6073   ac_fn_c_check_header_compile "$LINENO" "mach-o/dyld_images.h" "ac_cv_header_mach_o_dyld_images_h" "#ifdef HAVE_STDBOOL_H
6074      # include <stdbool.h>
6075      #endif
6076      #ifdef HAVE_STDINT_H
6077      # include <stdint.h>
6078      #endif
6079 "
6080 if test "x$ac_cv_header_mach_o_dyld_images_h" = xyes; then :
6081   cat >>confdefs.h <<_ACEOF
6082 #define HAVE_MACH_O_DYLD_IMAGES_H 1
6083 _ACEOF
6084
6085 fi
6086
6087 done
6088
6089
6090 for ac_header in resolv.h
6091 do :
6092   ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "#include <sys/types.h>
6093      #ifdef HAVE_SYS_SOCKET_H
6094      # include <sys/socket.h>
6095      #endif
6096      #ifdef HAVE_NETINET_IN_H
6097      # include <netinet/in.h>
6098      #endif
6099      #ifdef HAVE_ARPA_NAMESER_H
6100      # include <arpa/nameser.h>
6101      #endif
6102 "
6103 if test "x$ac_cv_header_resolv_h" = xyes; then :
6104   cat >>confdefs.h <<_ACEOF
6105 #define HAVE_RESOLV_H 1
6106 _ACEOF
6107
6108 fi
6109
6110 done
6111
6112
6113 for ac_header in ifaddrs.h
6114 do :
6115   ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "#include <sys/types.h>
6116 "
6117 if test "x$ac_cv_header_ifaddrs_h" = xyes; then :
6118   cat >>confdefs.h <<_ACEOF
6119 #define HAVE_IFADDRS_H 1
6120 _ACEOF
6121
6122 fi
6123
6124 done
6125
6126
6127 for ac_header in ucontext.h
6128 do :
6129   ac_fn_c_check_header_compile "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "#include <signal.h>
6130 "
6131 if test "x$ac_cv_header_ucontext_h" = xyes; then :
6132   cat >>confdefs.h <<_ACEOF
6133 #define HAVE_UCONTEXT_H 1
6134 _ACEOF
6135
6136 fi
6137
6138 done
6139
6140
6141 for ac_header in sys/thr.h
6142 do :
6143   ac_fn_c_check_header_compile "$LINENO" "sys/thr.h" "ac_cv_header_sys_thr_h" "#include <sys/types.h>
6144 #ifdef HAVE_UCONTEXT_H
6145 #include <ucontext.h>
6146 #endif
6147 "
6148 if test "x$ac_cv_header_sys_thr_h" = xyes; then :
6149   cat >>confdefs.h <<_ACEOF
6150 #define HAVE_SYS_THR_H 1
6151 _ACEOF
6152
6153 fi
6154
6155 done
6156
6157
6158 for ac_header in pthread_np.h
6159 do :
6160   ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" "#ifdef HAVE_PTHREAD_H
6161 #include <pthread.h>
6162 #endif
6163 "
6164 if test "x$ac_cv_header_pthread_np_h" = xyes; then :
6165   cat >>confdefs.h <<_ACEOF
6166 #define HAVE_PTHREAD_NP_H 1
6167 _ACEOF
6168
6169 fi
6170
6171 done
6172
6173
6174 for ac_header in linux/videodev.h linux/videodev2.h
6175 do :
6176   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6177 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_TIME_H
6178 #include <sys/time.h>
6179 #endif
6180 #include <sys/types.h>
6181 #ifdef HAVE_ASM_TYPES_H
6182 #include <asm/types.h>
6183 #endif
6184 "
6185 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6186   cat >>confdefs.h <<_ACEOF
6187 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6188 _ACEOF
6189
6190 fi
6191
6192 done
6193
6194
6195 for ac_header in linux/capi.h
6196 do :
6197   ac_fn_c_check_header_compile "$LINENO" "linux/capi.h" "ac_cv_header_linux_capi_h" "#define __user
6198 "
6199 if test "x$ac_cv_header_linux_capi_h" = xyes; then :
6200   cat >>confdefs.h <<_ACEOF
6201 #define HAVE_LINUX_CAPI_H 1
6202 _ACEOF
6203
6204 fi
6205
6206 done
6207
6208
6209
6210 DLLEXT=""
6211
6212 DLLFLAGS="-D_REENTRANT"
6213
6214 LDSHARED=""
6215
6216 LDDLLFLAGS=""
6217
6218 LIBEXT="so"
6219
6220 IMPLIBEXT="def"
6221
6222 LDRPATH_INSTALL=""
6223
6224 LDRPATH_LOCAL=""
6225
6226 STATIC_IMPLIBEXT="def.a"
6227 # Extract the first word of "ldd", so it can be a program name with args.
6228 set dummy ldd; ac_word=$2
6229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6230 $as_echo_n "checking for $ac_word... " >&6; }
6231 if ${ac_cv_path_LDD+:} false; then :
6232   $as_echo_n "(cached) " >&6
6233 else
6234   case $LDD in
6235   [\\/]* | ?:[\\/]*)
6236   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
6237   ;;
6238   *)
6239   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6240 as_dummy="/sbin:/usr/sbin:$PATH"
6241 for as_dir in $as_dummy
6242 do
6243   IFS=$as_save_IFS
6244   test -z "$as_dir" && as_dir=.
6245     for ac_exec_ext in '' $ac_executable_extensions; do
6246   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6247     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
6248     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6249     break 2
6250   fi
6251 done
6252   done
6253 IFS=$as_save_IFS
6254
6255   test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
6256   ;;
6257 esac
6258 fi
6259 LDD=$ac_cv_path_LDD
6260 if test -n "$LDD"; then
6261   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
6262 $as_echo "$LDD" >&6; }
6263 else
6264   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6265 $as_echo "no" >&6; }
6266 fi
6267
6268
6269
6270 case $host_os in
6271   cygwin*|mingw32*)
6272     if test -n "$ac_tool_prefix"; then
6273   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6274 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6276 $as_echo_n "checking for $ac_word... " >&6; }
6277 if ${ac_cv_prog_DLLTOOL+:} false; then :
6278   $as_echo_n "(cached) " >&6
6279 else
6280   if test -n "$DLLTOOL"; then
6281   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6282 else
6283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6284 for as_dir in $PATH
6285 do
6286   IFS=$as_save_IFS
6287   test -z "$as_dir" && as_dir=.
6288     for ac_exec_ext in '' $ac_executable_extensions; do
6289   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6290     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6291     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6292     break 2
6293   fi
6294 done
6295   done
6296 IFS=$as_save_IFS
6297
6298 fi
6299 fi
6300 DLLTOOL=$ac_cv_prog_DLLTOOL
6301 if test -n "$DLLTOOL"; then
6302   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6303 $as_echo "$DLLTOOL" >&6; }
6304 else
6305   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6306 $as_echo "no" >&6; }
6307 fi
6308
6309
6310 fi
6311 if test -z "$ac_cv_prog_DLLTOOL"; then
6312   ac_ct_DLLTOOL=$DLLTOOL
6313   # Extract the first word of "dlltool", so it can be a program name with args.
6314 set dummy 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 ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6318   $as_echo_n "(cached) " >&6
6319 else
6320   if test -n "$ac_ct_DLLTOOL"; then
6321   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_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_ac_ct_DLLTOOL="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 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6341 if test -n "$ac_ct_DLLTOOL"; then
6342   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6343 $as_echo "$ac_ct_DLLTOOL" >&6; }
6344 else
6345   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6346 $as_echo "no" >&6; }
6347 fi
6348
6349   if test "x$ac_ct_DLLTOOL" = x; then
6350     DLLTOOL="false"
6351   else
6352     case $cross_compiling:$ac_tool_warned in
6353 yes:)
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6355 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6356 ac_tool_warned=yes ;;
6357 esac
6358     DLLTOOL=$ac_ct_DLLTOOL
6359   fi
6360 else
6361   DLLTOOL="$ac_cv_prog_DLLTOOL"
6362 fi
6363
6364     if test -n "$ac_tool_prefix"; then
6365   # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
6366 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6368 $as_echo_n "checking for $ac_word... " >&6; }
6369 if ${ac_cv_prog_DLLWRAP+:} false; then :
6370   $as_echo_n "(cached) " >&6
6371 else
6372   if test -n "$DLLWRAP"; then
6373   ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
6374 else
6375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6376 for as_dir in $PATH
6377 do
6378   IFS=$as_save_IFS
6379   test -z "$as_dir" && as_dir=.
6380     for ac_exec_ext in '' $ac_executable_extensions; do
6381   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6382     ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
6383     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6384     break 2
6385   fi
6386 done
6387   done
6388 IFS=$as_save_IFS
6389
6390 fi
6391 fi
6392 DLLWRAP=$ac_cv_prog_DLLWRAP
6393 if test -n "$DLLWRAP"; then
6394   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLWRAP" >&5
6395 $as_echo "$DLLWRAP" >&6; }
6396 else
6397   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6398 $as_echo "no" >&6; }
6399 fi
6400
6401
6402 fi
6403 if test -z "$ac_cv_prog_DLLWRAP"; then
6404   ac_ct_DLLWRAP=$DLLWRAP
6405   # Extract the first word of "dllwrap", so it can be a program name with args.
6406 set dummy 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 ${ac_cv_prog_ac_ct_DLLWRAP+:} false; then :
6410   $as_echo_n "(cached) " >&6
6411 else
6412   if test -n "$ac_ct_DLLWRAP"; then
6413   ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_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_ac_ct_DLLWRAP="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 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
6433 if test -n "$ac_ct_DLLWRAP"; then
6434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLWRAP" >&5
6435 $as_echo "$ac_ct_DLLWRAP" >&6; }
6436 else
6437   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6438 $as_echo "no" >&6; }
6439 fi
6440
6441   if test "x$ac_ct_DLLWRAP" = x; then
6442     DLLWRAP="false"
6443   else
6444     case $cross_compiling:$ac_tool_warned in
6445 yes:)
6446 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6447 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6448 ac_tool_warned=yes ;;
6449 esac
6450     DLLWRAP=$ac_ct_DLLWRAP
6451   fi
6452 else
6453   DLLWRAP="$ac_cv_prog_DLLWRAP"
6454 fi
6455
6456     if test "$DLLWRAP" = "false"; then
6457       LIBEXT="a"
6458     else
6459             LIBEXT="dll"
6460     fi
6461     IMPLIBEXT="a"
6462     STATIC_IMPLIBEXT="a"
6463         enable_iphlpapi=${enable_iphlpapi:-no}
6464     enable_kernel32=${enable_kernel32:-no}
6465     enable_msvcrt=${enable_msvcrt:-no}
6466     enable_ntdll=${enable_ntdll:-no}
6467     enable_ws2_32=${enable_ws2_32:-no}
6468     enable_loader=${enable_loader:-no}
6469     enable_server=${enable_server:-no}
6470         with_x=${with_x:-no}
6471     with_pthread=${with_pthread:-no}
6472     ;;
6473   darwin*|macosx*)
6474     DLLEXT=".so"
6475     LIBEXT="dylib"
6476     DLLFLAGS="$DLLFLAGS -fPIC"
6477     LDDLLFLAGS="-bundle -multiply_defined suppress"
6478     LIBWINE_LDFLAGS="-multiply_defined suppress"
6479     LDSHARED="\$(CC) -dynamiclib"
6480     LDRPATH_LOCAL="&& install_name_tool -change @executable_path/\`\$(RELPATH) \$(bindir) \$(libdir)\`/libwine.1.dylib @executable_path/\$(top_builddir)/libs/wine/libwine.1.dylib \$@ || \$(RM) \$@"
6481         COREFOUNDATIONLIB="-framework CoreFoundation"
6482
6483     IOKITLIB="-framework IOKit -framework CoreFoundation"
6484
6485     APPLICATIONSERVICESLIB="-framework ApplicationServices"
6486
6487     case $host_os in
6488       darwin11*)
6489         LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-macosx_version_min,10.6,-segaddr,WINE_DOS,0x00001000,-segaddr,WINE_SHAREDHEAP,0x7f000000"
6490  ;;
6491       *)
6492         LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00001000,-segaddr,WINE_SHAREDHEAP,0x7f000000"
6493  ;;
6494     esac
6495     if test "$ac_cv_header_DiskArbitration_DiskArbitration_h" = "yes"
6496     then
6497                 DISKARBITRATIONLIB="-framework DiskArbitration -framework CoreFoundation"
6498
6499     fi
6500     if test "$ac_cv_header_Security_Security_h" = "yes"
6501     then
6502         SECURITYLIB="-framework Security -framework CoreFoundation"
6503
6504                 ac_save_LIBS="$LIBS"
6505         LIBS="$LIBS $SECURITYLIB"
6506         for ac_func in SSLCopyPeerCertificates
6507 do :
6508   ac_fn_c_check_func "$LINENO" "SSLCopyPeerCertificates" "ac_cv_func_SSLCopyPeerCertificates"
6509 if test "x$ac_cv_func_SSLCopyPeerCertificates" = xyes; then :
6510   cat >>confdefs.h <<_ACEOF
6511 #define HAVE_SSLCOPYPEERCERTIFICATES 1
6512 _ACEOF
6513
6514 fi
6515 done
6516
6517         LIBS="$ac_save_LIBS"
6518         with_gnutls=${with_gnutls:-no}
6519     fi
6520     if test "$ac_cv_header_CoreAudio_CoreAudio_h" = "yes" -a "$ac_cv_header_AudioUnit_AudioUnit_h" = "yes"
6521     then
6522         if test "$ac_cv_header_AudioUnit_AudioComponent_h" = "yes"
6523         then
6524             COREAUDIO="-framework CoreFoundation -framework CoreAudio -framework AudioUnit -framework AudioToolbox -framework CoreMIDI"
6525
6526         else
6527                         COREAUDIO="-framework CoreAudio -framework AudioUnit -framework CoreServices -framework AudioToolbox -framework CoreMIDI"
6528
6529         fi
6530                 ac_save_LIBS="$LIBS"
6531         LIBS="$LIBS $COREAUDIO"
6532         for ac_func in AUGraphAddNode
6533 do :
6534   ac_fn_c_check_func "$LINENO" "AUGraphAddNode" "ac_cv_func_AUGraphAddNode"
6535 if test "x$ac_cv_func_AUGraphAddNode" = xyes; then :
6536   cat >>confdefs.h <<_ACEOF
6537 #define HAVE_AUGRAPHADDNODE 1
6538 _ACEOF
6539
6540 fi
6541 done
6542
6543         LIBS="$ac_save_LIBS"
6544     fi
6545     if test "$ac_cv_header_OpenAL_al_h" = "yes"
6546     then
6547         FRAMEWORK_OPENAL="-framework OpenAL"
6548
6549
6550 cat >>confdefs.h <<_ACEOF
6551 #define HAVE_OPENAL 1
6552 _ACEOF
6553
6554         ac_cv_lib_openal=yes
6555     fi
6556     if test "$ac_cv_header_OpenCL_opencl_h" = "yes"
6557     then
6558         LIBOPENCL="-framework OpenCL"
6559
6560         ac_cv_lib_OpenCL_clGetPlatformInfo=yes
6561     fi
6562     if test "$ac_cv_header_IOKit_hid_IOHIDLib_h" = "yes"
6563     then
6564         ac_save_LIBS="$LIBS"
6565         LIBS="$LIBS $IOKITLIB"
6566         for ac_func in IOHIDManagerCreate
6567 do :
6568   ac_fn_c_check_func "$LINENO" "IOHIDManagerCreate" "ac_cv_func_IOHIDManagerCreate"
6569 if test "x$ac_cv_func_IOHIDManagerCreate" = xyes; then :
6570   cat >>confdefs.h <<_ACEOF
6571 #define HAVE_IOHIDMANAGERCREATE 1
6572 _ACEOF
6573
6574 fi
6575 done
6576
6577         LIBS="$ac_save_LIBS"
6578     fi
6579     case $host_cpu in
6580       *powerpc*)
6581         LDDLLFLAGS="$LDDLLFLAGS -read_only_relocs warning"          ;;
6582     esac
6583     if test "$ac_cv_header_QuickTime_ImageCompression_h" = "yes"
6584     then
6585         QUICKTIMELIB="-framework QuickTime -framework ApplicationServices -framework CoreVideo"
6586
6587         enable_wineqtdecoder=${enable_wineqtdecoder:-yes}
6588     else
6589         as_fn_append wine_notices "|QuickTime ${notice_platform}development files not found, video decoding won't be supported."
6590     fi
6591         if test "$ac_cv_header_Carbon_Carbon_h" = "yes"
6592     then
6593         CARBONLIB="-framework Carbon"
6594
6595         enable_winequartz_drv=${enable_winequartz_drv:-yes}
6596     fi
6597         if test "x$enable_win16" = "xyes"
6598     then
6599         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 16-bit code can be built correctly" >&5
6600 $as_echo_n "checking whether 16-bit code can be built correctly... " >&6; }
6601         if test "$cross_compiling" = yes; then :
6602   { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5
6603 $as_echo "cross-compiling, assuming yes" >&6; }
6604 else
6605   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6606 /* end confdefs.h.  */
6607 asm(".text\n"
6608                                             "bad:\tnop;nop\n"
6609                                             "good:\tnop;nop\n\t"
6610                                             ".globl _testfunc\n"
6611                                             "_testfunc:\tcallw good");
6612                                         extern void testfunc();
6613 int
6614 main ()
6615 {
6616 unsigned short *p = (unsigned short *)testfunc;
6617                                         return p[0] != 0xe866 || p[1] != 0xfffa
6618   ;
6619   return 0;
6620 }
6621 _ACEOF
6622 if ac_fn_c_try_run "$LINENO"; then :
6623   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6624 $as_echo "yes" >&6; }
6625 else
6626   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6627 $as_echo "no" >&6; }
6628                                        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
6629 fi
6630 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6631   conftest.$ac_objext conftest.beam conftest.$ac_ext
6632 fi
6633
6634     fi
6635     ;;
6636   *)
6637     DLLFLAGS="$DLLFLAGS -fPIC"
6638     DLLEXT=".so"
6639     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a GNU style ELF dll" >&5
6640 $as_echo_n "checking whether we can build a GNU style ELF dll... " >&6; }
6641 if ${ac_cv_c_dll_gnuelf+:} false; then :
6642   $as_echo_n "(cached) " >&6
6643 else
6644   ac_wine_try_cflags_saved=$CFLAGS
6645 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic"
6646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6647 /* end confdefs.h.  */
6648 void myfunc() {}
6649 _ACEOF
6650 if ac_fn_c_try_link "$LINENO"; then :
6651   ac_cv_c_dll_gnuelf="yes"
6652 else
6653   ac_cv_c_dll_gnuelf="no"
6654 fi
6655 rm -f core conftest.err conftest.$ac_objext \
6656     conftest$ac_exeext conftest.$ac_ext
6657 CFLAGS=$ac_wine_try_cflags_saved
6658 fi
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_gnuelf" >&5
6660 $as_echo "$ac_cv_c_dll_gnuelf" >&6; }
6661     if test "$ac_cv_c_dll_gnuelf" = "yes"
6662     then
6663       LDSHARED="\$(CC) -shared"
6664       LDDLLFLAGS="-shared -Wl,-Bsymbolic"
6665       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1" >&5
6666 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1... " >&6; }
6667 if ${ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1+:} false; then :
6668   $as_echo_n "(cached) " >&6
6669 else
6670   ac_wine_try_cflags_saved=$CFLAGS
6671 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,confest.so.1"
6672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6673 /* end confdefs.h.  */
6674 int main(int argc, char **argv) { return 0; }
6675 _ACEOF
6676 if ac_fn_c_try_link "$LINENO"; then :
6677   ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=yes
6678 else
6679   ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=no
6680 fi
6681 rm -f core conftest.err conftest.$ac_objext \
6682     conftest$ac_exeext conftest.$ac_ext
6683 CFLAGS=$ac_wine_try_cflags_saved
6684 fi
6685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&5
6686 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&6; }
6687 if test $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1 = yes; then :
6688   LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
6689 else
6690   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1" >&5
6691 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1... " >&6; }
6692 if ${ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1+:} false; then :
6693   $as_echo_n "(cached) " >&6
6694 else
6695   ac_wine_try_cflags_saved=$CFLAGS
6696 CFLAGS="$CFLAGS -fPIC -shared -Wl,-h,confest.so.1"
6697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6698 /* end confdefs.h.  */
6699 int main(int argc, char **argv) { return 0; }
6700 _ACEOF
6701 if ac_fn_c_try_link "$LINENO"; then :
6702   ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=yes
6703 else
6704   ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=no
6705 fi
6706 rm -f core conftest.err conftest.$ac_objext \
6707     conftest$ac_exeext conftest.$ac_ext
6708 CFLAGS=$ac_wine_try_cflags_saved
6709 fi
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&5
6711 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&6; }
6712 if test $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1 = yes; then :
6713   LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-h,%)"
6714 fi
6715 fi
6716
6717       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs" >&5
6718 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs... " >&6; }
6719 if ${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs+:} false; then :
6720   $as_echo_n "(cached) " >&6
6721 else
6722   ac_wine_try_cflags_saved=$CFLAGS
6723 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
6724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6725 /* end confdefs.h.  */
6726 int main(int argc, char **argv) { return 0; }
6727 _ACEOF
6728 if ac_fn_c_try_link "$LINENO"; then :
6729   ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=yes
6730 else
6731   ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=no
6732 fi
6733 rm -f core conftest.err conftest.$ac_objext \
6734     conftest$ac_exeext conftest.$ac_ext
6735 CFLAGS=$ac_wine_try_cflags_saved
6736 fi
6737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&5
6738 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&6; }
6739 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs = yes; then :
6740   LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
6741 fi
6742
6743       { $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
6744 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini... " >&6; }
6745 if ${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini+:} false; then :
6746   $as_echo_n "(cached) " >&6
6747 else
6748   ac_wine_try_cflags_saved=$CFLAGS
6749 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
6750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6751 /* end confdefs.h.  */
6752 int main(int argc, char **argv) { return 0; }
6753 _ACEOF
6754 if ac_fn_c_try_link "$LINENO"; then :
6755   ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=yes
6756 else
6757   ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=no
6758 fi
6759 rm -f core conftest.err conftest.$ac_objext \
6760     conftest$ac_exeext conftest.$ac_ext
6761 CFLAGS=$ac_wine_try_cflags_saved
6762 fi
6763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&5
6764 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&6; }
6765 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini = yes; then :
6766   LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
6767 fi
6768
6769       echo '{ global: *; };' >conftest.map
6770       as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -shared -Wl,--version-script=conftest.map" | $as_tr_sh`
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map" >&5
6772 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map... " >&6; }
6773 if eval \${$as_ac_var+:} false; then :
6774   $as_echo_n "(cached) " >&6
6775 else
6776   ac_wine_try_cflags_saved=$CFLAGS
6777 CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
6778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6779 /* end confdefs.h.  */
6780 int main(int argc, char **argv) { return 0; }
6781 _ACEOF
6782 if ac_fn_c_try_link "$LINENO"; then :
6783   eval "$as_ac_var=yes"
6784 else
6785   eval "$as_ac_var=no"
6786 fi
6787 rm -f core conftest.err conftest.$ac_objext \
6788     conftest$ac_exeext conftest.$ac_ext
6789 CFLAGS=$ac_wine_try_cflags_saved
6790 fi
6791 eval ac_res=\$$as_ac_var
6792                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6793 $as_echo "$ac_res" >&6; }
6794 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6795   LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)"
6796 fi
6797       rm -f conftest.map
6798
6799       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5
6800 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--export-dynamic... " >&6; }
6801 if ${ac_cv_cflags__fPIC__Wl___export_dynamic+:} false; then :
6802   $as_echo_n "(cached) " >&6
6803 else
6804   ac_wine_try_cflags_saved=$CFLAGS
6805 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
6806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6807 /* end confdefs.h.  */
6808 int main(int argc, char **argv) { return 0; }
6809 _ACEOF
6810 if ac_fn_c_try_link "$LINENO"; then :
6811   ac_cv_cflags__fPIC__Wl___export_dynamic=yes
6812 else
6813   ac_cv_cflags__fPIC__Wl___export_dynamic=no
6814 fi
6815 rm -f core conftest.err conftest.$ac_objext \
6816     conftest$ac_exeext conftest.$ac_ext
6817 CFLAGS=$ac_wine_try_cflags_saved
6818 fi
6819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__Wl___export_dynamic" >&5
6820 $as_echo "$ac_cv_cflags__fPIC__Wl___export_dynamic" >&6; }
6821 if test $ac_cv_cflags__fPIC__Wl___export_dynamic = yes; then :
6822   LDEXECFLAGS="-Wl,--export-dynamic"
6823
6824 fi
6825
6826       as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,--rpath,\\$ORIGIN/../lib" | $as_tr_sh`
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib" >&5
6828 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... " >&6; }
6829 if eval \${$as_ac_var+:} false; then :
6830   $as_echo_n "(cached) " >&6
6831 else
6832   ac_wine_try_cflags_saved=$CFLAGS
6833 CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
6834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6835 /* end confdefs.h.  */
6836 int main(int argc, char **argv) { return 0; }
6837 _ACEOF
6838 if ac_fn_c_try_link "$LINENO"; then :
6839   eval "$as_ac_var=yes"
6840 else
6841   eval "$as_ac_var=no"
6842 fi
6843 rm -f core conftest.err conftest.$ac_objext \
6844     conftest$ac_exeext conftest.$ac_ext
6845 CFLAGS=$ac_wine_try_cflags_saved
6846 fi
6847 eval ac_res=\$$as_ac_var
6848                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6849 $as_echo "$ac_res" >&6; }
6850 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6851   LDRPATH_INSTALL="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
6852                        LDRPATH_LOCAL="-Wl,--rpath,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
6853 else
6854   as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,-R,\\$ORIGIN/../lib" | $as_tr_sh`
6855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib" >&5
6856 $as_echo_n "checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib... " >&6; }
6857 if eval \${$as_ac_var+:} false; then :
6858   $as_echo_n "(cached) " >&6
6859 else
6860   ac_wine_try_cflags_saved=$CFLAGS
6861 CFLAGS="$CFLAGS -fPIC -Wl,-R,\$ORIGIN/../lib"
6862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6863 /* end confdefs.h.  */
6864 int main(int argc, char **argv) { return 0; }
6865 _ACEOF
6866 if ac_fn_c_try_link "$LINENO"; then :
6867   eval "$as_ac_var=yes"
6868 else
6869   eval "$as_ac_var=no"
6870 fi
6871 rm -f core conftest.err conftest.$ac_objext \
6872     conftest$ac_exeext conftest.$ac_ext
6873 CFLAGS=$ac_wine_try_cflags_saved
6874 fi
6875 eval ac_res=\$$as_ac_var
6876                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6877 $as_echo "$ac_res" >&6; }
6878 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6879   LDRPATH_INSTALL="-Wl,-R,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
6880                             LDRPATH_LOCAL="-Wl,-R,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
6881 fi
6882 fi
6883
6884       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--enable-new-dtags" >&5
6885 $as_echo_n "checking whether the compiler supports -Wl,--enable-new-dtags... " >&6; }
6886 if ${ac_cv_cflags__Wl___enable_new_dtags+:} false; then :
6887   $as_echo_n "(cached) " >&6
6888 else
6889   ac_wine_try_cflags_saved=$CFLAGS
6890 CFLAGS="$CFLAGS -Wl,--enable-new-dtags"
6891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6892 /* end confdefs.h.  */
6893 int main(int argc, char **argv) { return 0; }
6894 _ACEOF
6895 if ac_fn_c_try_link "$LINENO"; then :
6896   ac_cv_cflags__Wl___enable_new_dtags=yes
6897 else
6898   ac_cv_cflags__Wl___enable_new_dtags=no
6899 fi
6900 rm -f core conftest.err conftest.$ac_objext \
6901     conftest$ac_exeext conftest.$ac_ext
6902 CFLAGS=$ac_wine_try_cflags_saved
6903 fi
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___enable_new_dtags" >&5
6905 $as_echo "$ac_cv_cflags__Wl___enable_new_dtags" >&6; }
6906 if test $ac_cv_cflags__Wl___enable_new_dtags = yes; then :
6907   LDRPATH_INSTALL="$LDRPATH_INSTALL -Wl,--enable-new-dtags"
6908 fi
6909
6910       case $host_cpu in
6911         *i[3456789]86* | x86_64)
6912           as_ac_var=`$as_echo "ac_cv_cflags_-Wl,--section-start,.interp=0x7bf00400" | $as_tr_sh`
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400" >&5
6914 $as_echo_n "checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... " >&6; }
6915 if eval \${$as_ac_var+:} false; then :
6916   $as_echo_n "(cached) " >&6
6917 else
6918   ac_wine_try_cflags_saved=$CFLAGS
6919 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
6920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6921 /* end confdefs.h.  */
6922 int main(int argc, char **argv) { return 0; }
6923 _ACEOF
6924 if ac_fn_c_try_link "$LINENO"; then :
6925   eval "$as_ac_var=yes"
6926 else
6927   eval "$as_ac_var=no"
6928 fi
6929 rm -f core conftest.err conftest.$ac_objext \
6930     conftest$ac_exeext conftest.$ac_ext
6931 CFLAGS=$ac_wine_try_cflags_saved
6932 fi
6933 eval ac_res=\$$as_ac_var
6934                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6935 $as_echo "$ac_res" >&6; }
6936 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6937   case $host_os in
6938                            freebsd* | kfreebsd*-gnu) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x60000400" ;;
6939                            *) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400" ;;
6940                            esac
6941
6942 fi
6943           # Extract the first word of "prelink", so it can be a program name with args.
6944 set dummy prelink; ac_word=$2
6945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6946 $as_echo_n "checking for $ac_word... " >&6; }
6947 if ${ac_cv_path_PRELINK+:} false; then :
6948   $as_echo_n "(cached) " >&6
6949 else
6950   case $PRELINK in
6951   [\\/]* | ?:[\\/]*)
6952   ac_cv_path_PRELINK="$PRELINK" # Let the user override the test with a path.
6953   ;;
6954   *)
6955   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6956 for as_dir in /sbin /usr/sbin $PATH
6957 do
6958   IFS=$as_save_IFS
6959   test -z "$as_dir" && as_dir=.
6960     for ac_exec_ext in '' $ac_executable_extensions; do
6961   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6962     ac_cv_path_PRELINK="$as_dir/$ac_word$ac_exec_ext"
6963     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6964     break 2
6965   fi
6966 done
6967   done
6968 IFS=$as_save_IFS
6969
6970   test -z "$ac_cv_path_PRELINK" && ac_cv_path_PRELINK="false"
6971   ;;
6972 esac
6973 fi
6974 PRELINK=$ac_cv_path_PRELINK
6975 if test -n "$PRELINK"; then
6976   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRELINK" >&5
6977 $as_echo "$PRELINK" >&6; }
6978 else
6979   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6980 $as_echo "no" >&6; }
6981 fi
6982
6983
6984           if test "x$PRELINK" = xfalse
6985           then
6986               as_fn_append wine_warnings "|prelink not found, base address of core dlls won't be set correctly."
6987           fi
6988           ;;
6989       esac
6990
6991     else
6992       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a UnixWare (Solaris) dll" >&5
6993 $as_echo_n "checking whether we can build a UnixWare (Solaris) dll... " >&6; }
6994 if ${ac_cv_c_dll_unixware+:} false; then :
6995   $as_echo_n "(cached) " >&6
6996 else
6997   ac_wine_try_cflags_saved=$CFLAGS
6998 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
6999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7000 /* end confdefs.h.  */
7001 void myfunc() {}
7002 _ACEOF
7003 if ac_fn_c_try_link "$LINENO"; then :
7004   ac_cv_c_dll_unixware="yes"
7005 else
7006   ac_cv_c_dll_unixware="no"
7007 fi
7008 rm -f core conftest.err conftest.$ac_objext \
7009     conftest$ac_exeext conftest.$ac_ext
7010 CFLAGS=$ac_wine_try_cflags_saved
7011 fi
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_unixware" >&5
7013 $as_echo "$ac_cv_c_dll_unixware" >&6; }
7014       if test "$ac_cv_c_dll_unixware" = "yes"
7015       then
7016         LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
7017         LDDLLFLAGS="-Wl,-G,-B,symbolic"
7018
7019       else
7020         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build an HP-UX dll" >&5
7021 $as_echo_n "checking whether we can build an HP-UX dll... " >&6; }
7022 if ${ac_cv_c_dll_hpux+:} false; then :
7023   $as_echo_n "(cached) " >&6
7024 else
7025   ac_wine_try_cflags_saved=$CFLAGS
7026 CFLAGS="$CFLAGS -shared"
7027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7028 /* end confdefs.h.  */
7029 void myfunc() {}
7030 _ACEOF
7031 if ac_fn_c_try_link "$LINENO"; then :
7032   ac_cv_c_dll_hpux="yes"
7033 else
7034   ac_cv_c_dll_hpux="no"
7035 fi
7036 rm -f core conftest.err conftest.$ac_objext \
7037     conftest$ac_exeext conftest.$ac_ext
7038 CFLAGS=$ac_wine_try_cflags_saved
7039 fi
7040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_hpux" >&5
7041 $as_echo "$ac_cv_c_dll_hpux" >&6; }
7042         if test "$ac_cv_c_dll_hpux" = "yes"
7043         then
7044           LIBEXT="sl"
7045           DLLEXT=".sl"
7046           LDDLLFLAGS="-shared -fPIC"
7047           LDSHARED="\$(CC) -shared"
7048         fi
7049       fi
7050     fi
7051     ;;
7052 esac
7053
7054 enable_wineqtdecoder=${enable_wineqtdecoder:-no}
7055 enable_winequartz_drv=${enable_winequartz_drv:-no}
7056
7057 if test "$LIBEXT" = "a"; then
7058   as_fn_error $? "could not find a way to build shared libraries.
7059 It is currently not possible to build Wine without shared library
7060 (.so) support to allow transparent switch between .so and .dll files.
7061 If you are using Linux, you will need a newer binutils.
7062 " "$LINENO" 5
7063 fi
7064
7065 CROSSTEST_DISABLE=\#
7066
7067 if test "$cross_compiling" = "no" -a "x$enable_tests" != xno -a "$LIBEXT" != "dll"
7068 then
7069     case "$host_cpu" in
7070   i[3456789]86*)
7071     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 " ;;
7072   x86_64)
7073     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 " ;;
7074   *)
7075     ac_prefix_list="" ;;
7076 esac
7077 for ac_prog in $ac_prefix_list
7078 do
7079   # Extract the first word of "$ac_prog", so it can be a program name with args.
7080 set dummy $ac_prog; ac_word=$2
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7082 $as_echo_n "checking for $ac_word... " >&6; }
7083 if ${ac_cv_prog_CROSSCC+:} false; then :
7084   $as_echo_n "(cached) " >&6
7085 else
7086   if test -n "$CROSSCC"; then
7087   ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
7088 else
7089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7090 for as_dir in $PATH
7091 do
7092   IFS=$as_save_IFS
7093   test -z "$as_dir" && as_dir=.
7094     for ac_exec_ext in '' $ac_executable_extensions; do
7095   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7096     ac_cv_prog_CROSSCC="$ac_prog"
7097     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7098     break 2
7099   fi
7100 done
7101   done
7102 IFS=$as_save_IFS
7103
7104 fi
7105 fi
7106 CROSSCC=$ac_cv_prog_CROSSCC
7107 if test -n "$CROSSCC"; then
7108   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CROSSCC" >&5
7109 $as_echo "$CROSSCC" >&6; }
7110 else
7111   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7112 $as_echo "no" >&6; }
7113 fi
7114
7115
7116   test -n "$CROSSCC" && break
7117 done
7118 test -n "$CROSSCC" || CROSSCC="false"
7119
7120     if test "$CROSSCC" != "false"
7121     then
7122         ac_save_CC="$CC"
7123         CC="$CROSSCC"
7124         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CROSSCC works" >&5
7125 $as_echo_n "checking whether $CROSSCC works... " >&6; }
7126         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7127 /* end confdefs.h.  */
7128
7129 int
7130 main ()
7131 {
7132
7133   ;
7134   return 0;
7135 }
7136 _ACEOF
7137 if ac_fn_c_try_compile "$LINENO"; then :
7138   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7139 $as_echo "yes" >&6; }
7140                            set x $CROSSCC
7141                            shift
7142                            target=""
7143                            while test $# -ge 1
7144                            do
7145                                case "$1" in
7146                                  *-gcc) target=`expr "$1" : '\(.*\)-gcc'` ;;
7147                                esac
7148                                shift
7149                            done
7150                            if test -n "$target"
7151                            then
7152                                CROSSTEST_DISABLE=""
7153                                CROSSTARGET="$target"
7154
7155                            fi
7156 else
7157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7158 $as_echo "no" >&6; }
7159 fi
7160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7161         CC="$ac_save_CC"
7162     fi
7163 fi
7164
7165
7166 if test "$ac_cv_header_pthread_h" = "yes"
7167 then
7168     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
7169 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
7170 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
7171   $as_echo_n "(cached) " >&6
7172 else
7173   ac_check_lib_save_LIBS=$LIBS
7174 LIBS="-lpthread  $LIBS"
7175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7176 /* end confdefs.h.  */
7177
7178 /* Override any GCC internal prototype to avoid an error.
7179    Use char because int might match the return type of a GCC
7180    builtin and then its argument prototype would still apply.  */
7181 #ifdef __cplusplus
7182 extern "C"
7183 #endif
7184 char pthread_create ();
7185 int
7186 main ()
7187 {
7188 return pthread_create ();
7189   ;
7190   return 0;
7191 }
7192 _ACEOF
7193 if ac_fn_c_try_link "$LINENO"; then :
7194   ac_cv_lib_pthread_pthread_create=yes
7195 else
7196   ac_cv_lib_pthread_pthread_create=no
7197 fi
7198 rm -f core conftest.err conftest.$ac_objext \
7199     conftest$ac_exeext conftest.$ac_ext
7200 LIBS=$ac_check_lib_save_LIBS
7201 fi
7202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
7203 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
7204 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
7205   LIBPTHREAD="-lpthread"
7206
7207 fi
7208
7209 fi
7210 if test "x$LIBPTHREAD" = "x"; then :
7211   case "x$with_pthread" in
7212   xno) ;;
7213   *)   as_fn_error $? "pthread ${notice_platform}development files not found.
7214 Wine cannot support threads without libpthread.
7215 Use the --without-pthread option if you really want this." "$LINENO" 5 ;;
7216 esac
7217 fi
7218
7219
7220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
7221 $as_echo_n "checking for X... " >&6; }
7222
7223
7224 # Check whether --with-x was given.
7225 if test "${with_x+set}" = set; then :
7226   withval=$with_x;
7227 fi
7228
7229 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7230 if test "x$with_x" = xno; then
7231   # The user explicitly disabled X.
7232   have_x=disabled
7233 else
7234   case $x_includes,$x_libraries in #(
7235     *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
7236     *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
7237   $as_echo_n "(cached) " >&6
7238 else
7239   # One or both of the vars are not set, and there is no cached value.
7240 ac_x_includes=no ac_x_libraries=no
7241 rm -f -r conftest.dir
7242 if mkdir conftest.dir; then
7243   cd conftest.dir
7244   cat >Imakefile <<'_ACEOF'
7245 incroot:
7246         @echo incroot='${INCROOT}'
7247 usrlibdir:
7248         @echo usrlibdir='${USRLIBDIR}'
7249 libdir:
7250         @echo libdir='${LIBDIR}'
7251 _ACEOF
7252   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
7253     # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7254     for ac_var in incroot usrlibdir libdir; do
7255       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
7256     done
7257     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7258     for ac_extension in a so sl dylib la dll; do
7259       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
7260          test -f "$ac_im_libdir/libX11.$ac_extension"; then
7261         ac_im_usrlibdir=$ac_im_libdir; break
7262       fi
7263     done
7264     # Screen out bogus values from the imake configuration.  They are
7265     # bogus both because they are the default anyway, and because
7266     # using them would break gcc on systems where it needs fixed includes.
7267     case $ac_im_incroot in
7268         /usr/include) ac_x_includes= ;;
7269         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7270     esac
7271     case $ac_im_usrlibdir in
7272         /usr/lib | /usr/lib64 | /lib | /lib64) ;;
7273         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7274     esac
7275   fi
7276   cd ..
7277   rm -f -r conftest.dir
7278 fi
7279
7280 # Standard set of common directories for X headers.
7281 # Check X11 before X11Rn because it is often a symlink to the current release.
7282 ac_x_header_dirs='
7283 /usr/X11/include
7284 /usr/X11R7/include
7285 /usr/X11R6/include
7286 /usr/X11R5/include
7287 /usr/X11R4/include
7288
7289 /usr/include/X11
7290 /usr/include/X11R7
7291 /usr/include/X11R6
7292 /usr/include/X11R5
7293 /usr/include/X11R4
7294
7295 /usr/local/X11/include
7296 /usr/local/X11R7/include
7297 /usr/local/X11R6/include
7298 /usr/local/X11R5/include
7299 /usr/local/X11R4/include
7300
7301 /usr/local/include/X11
7302 /usr/local/include/X11R7
7303 /usr/local/include/X11R6
7304 /usr/local/include/X11R5
7305 /usr/local/include/X11R4
7306
7307 /usr/X386/include
7308 /usr/x386/include
7309 /usr/XFree86/include/X11
7310
7311 /usr/include
7312 /usr/local/include
7313 /usr/unsupported/include
7314 /usr/athena/include
7315 /usr/local/x11r5/include
7316 /usr/lpp/Xamples/include
7317
7318 /usr/openwin/include
7319 /usr/openwin/share/include'
7320
7321 if test "$ac_x_includes" = no; then
7322   # Guess where to find include files, by looking for Xlib.h.
7323   # First, try using that file with no special directory specified.
7324   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7325 /* end confdefs.h.  */
7326 #include <X11/Xlib.h>
7327 _ACEOF
7328 if ac_fn_c_try_cpp "$LINENO"; then :
7329   # We can compile using X headers with no special include directory.
7330 ac_x_includes=
7331 else
7332   for ac_dir in $ac_x_header_dirs; do
7333   if test -r "$ac_dir/X11/Xlib.h"; then
7334     ac_x_includes=$ac_dir
7335     break
7336   fi
7337 done
7338 fi
7339 rm -f conftest.err conftest.i conftest.$ac_ext
7340 fi # $ac_x_includes = no
7341
7342 if test "$ac_x_libraries" = no; then
7343   # Check for the libraries.
7344   # See if we find them without any special options.
7345   # Don't add to $LIBS permanently.
7346   ac_save_LIBS=$LIBS
7347   LIBS="-lX11 $LIBS"
7348   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7349 /* end confdefs.h.  */
7350 #include <X11/Xlib.h>
7351 int
7352 main ()
7353 {
7354 XrmInitialize ()
7355   ;
7356   return 0;
7357 }
7358 _ACEOF
7359 if ac_fn_c_try_link "$LINENO"; then :
7360   LIBS=$ac_save_LIBS
7361 # We can link X programs with no special library path.
7362 ac_x_libraries=
7363 else
7364   LIBS=$ac_save_LIBS
7365 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7366 do
7367   # Don't even attempt the hair of trying to link an X program!
7368   for ac_extension in a so sl dylib la dll; do
7369     if test -r "$ac_dir/libX11.$ac_extension"; then
7370       ac_x_libraries=$ac_dir
7371       break 2
7372     fi
7373   done
7374 done
7375 fi
7376 rm -f core conftest.err conftest.$ac_objext \
7377     conftest$ac_exeext conftest.$ac_ext
7378 fi # $ac_x_libraries = no
7379
7380 case $ac_x_includes,$ac_x_libraries in #(
7381   no,* | *,no | *\'*)
7382     # Didn't find X, or a directory has "'" in its name.
7383     ac_cv_have_x="have_x=no";; #(
7384   *)
7385     # Record where we found X for the cache.
7386     ac_cv_have_x="have_x=yes\
7387         ac_x_includes='$ac_x_includes'\
7388         ac_x_libraries='$ac_x_libraries'"
7389 esac
7390 fi
7391 ;; #(
7392     *) have_x=yes;;
7393   esac
7394   eval "$ac_cv_have_x"
7395 fi # $with_x != no
7396
7397 if test "$have_x" != yes; then
7398   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
7399 $as_echo "$have_x" >&6; }
7400   no_x=yes
7401 else
7402   # If each of the values was on the command line, it overrides each guess.
7403   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7404   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7405   # Update the cache value to reflect the command line values.
7406   ac_cv_have_x="have_x=yes\
7407         ac_x_includes='$x_includes'\
7408         ac_x_libraries='$x_libraries'"
7409   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
7410 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
7411 fi
7412
7413 if test "$no_x" = yes; then
7414   # Not all programs may use this symbol, but it does not hurt to define it.
7415
7416 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
7417
7418   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7419 else
7420   if test -n "$x_includes"; then
7421     X_CFLAGS="$X_CFLAGS -I$x_includes"
7422   fi
7423
7424   # It would also be nice to do this for all -L options, not just this one.
7425   if test -n "$x_libraries"; then
7426     X_LIBS="$X_LIBS -L$x_libraries"
7427     # For Solaris; some versions of Sun CC require a space after -R and
7428     # others require no space.  Words are not sufficient . . . .
7429     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
7430 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
7431     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7432     ac_xsave_c_werror_flag=$ac_c_werror_flag
7433     ac_c_werror_flag=yes
7434     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7435 /* end confdefs.h.  */
7436
7437 int
7438 main ()
7439 {
7440
7441   ;
7442   return 0;
7443 }
7444 _ACEOF
7445 if ac_fn_c_try_link "$LINENO"; then :
7446   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7447 $as_echo "no" >&6; }
7448        X_LIBS="$X_LIBS -R$x_libraries"
7449 else
7450   LIBS="$ac_xsave_LIBS -R $x_libraries"
7451        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7452 /* end confdefs.h.  */
7453
7454 int
7455 main ()
7456 {
7457
7458   ;
7459   return 0;
7460 }
7461 _ACEOF
7462 if ac_fn_c_try_link "$LINENO"; then :
7463   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7464 $as_echo "yes" >&6; }
7465           X_LIBS="$X_LIBS -R $x_libraries"
7466 else
7467   { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
7468 $as_echo "neither works" >&6; }
7469 fi
7470 rm -f core conftest.err conftest.$ac_objext \
7471     conftest$ac_exeext conftest.$ac_ext
7472 fi
7473 rm -f core conftest.err conftest.$ac_objext \
7474     conftest$ac_exeext conftest.$ac_ext
7475     ac_c_werror_flag=$ac_xsave_c_werror_flag
7476     LIBS=$ac_xsave_LIBS
7477   fi
7478
7479   # Check for system-dependent libraries X programs must link with.
7480   # Do this before checking for the system-independent R6 libraries
7481   # (-lICE), since we may need -lsocket or whatever for X linking.
7482
7483   if test "$ISC" = yes; then
7484     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7485   else
7486     # Martyn Johnson says this is needed for Ultrix, if the X
7487     # libraries were built with DECnet support.  And Karl Berry says
7488     # the Alpha needs dnet_stub (dnet does not exist).
7489     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
7490     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7491 /* end confdefs.h.  */
7492
7493 /* Override any GCC internal prototype to avoid an error.
7494    Use char because int might match the return type of a GCC
7495    builtin and then its argument prototype would still apply.  */
7496 #ifdef __cplusplus
7497 extern "C"
7498 #endif
7499 char XOpenDisplay ();
7500 int
7501 main ()
7502 {
7503 return XOpenDisplay ();
7504   ;
7505   return 0;
7506 }
7507 _ACEOF
7508 if ac_fn_c_try_link "$LINENO"; then :
7509
7510 else
7511   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
7512 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
7513 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
7514   $as_echo_n "(cached) " >&6
7515 else
7516   ac_check_lib_save_LIBS=$LIBS
7517 LIBS="-ldnet  $LIBS"
7518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7519 /* end confdefs.h.  */
7520
7521 /* Override any GCC internal prototype to avoid an error.
7522    Use char because int might match the return type of a GCC
7523    builtin and then its argument prototype would still apply.  */
7524 #ifdef __cplusplus
7525 extern "C"
7526 #endif
7527 char dnet_ntoa ();
7528 int
7529 main ()
7530 {
7531 return dnet_ntoa ();
7532   ;
7533   return 0;
7534 }
7535 _ACEOF
7536 if ac_fn_c_try_link "$LINENO"; then :
7537   ac_cv_lib_dnet_dnet_ntoa=yes
7538 else
7539   ac_cv_lib_dnet_dnet_ntoa=no
7540 fi
7541 rm -f core conftest.err conftest.$ac_objext \
7542     conftest$ac_exeext conftest.$ac_ext
7543 LIBS=$ac_check_lib_save_LIBS
7544 fi
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7546 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
7547 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
7548   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7549 fi
7550
7551     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7552       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
7553 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
7554 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
7555   $as_echo_n "(cached) " >&6
7556 else
7557   ac_check_lib_save_LIBS=$LIBS
7558 LIBS="-ldnet_stub  $LIBS"
7559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7560 /* end confdefs.h.  */
7561
7562 /* Override any GCC internal prototype to avoid an error.
7563    Use char because int might match the return type of a GCC
7564    builtin and then its argument prototype would still apply.  */
7565 #ifdef __cplusplus
7566 extern "C"
7567 #endif
7568 char dnet_ntoa ();
7569 int
7570 main ()
7571 {
7572 return dnet_ntoa ();
7573   ;
7574   return 0;
7575 }
7576 _ACEOF
7577 if ac_fn_c_try_link "$LINENO"; then :
7578   ac_cv_lib_dnet_stub_dnet_ntoa=yes
7579 else
7580   ac_cv_lib_dnet_stub_dnet_ntoa=no
7581 fi
7582 rm -f core conftest.err conftest.$ac_objext \
7583     conftest$ac_exeext conftest.$ac_ext
7584 LIBS=$ac_check_lib_save_LIBS
7585 fi
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
7587 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
7588 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
7589   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7590 fi
7591
7592     fi
7593 fi
7594 rm -f core conftest.err conftest.$ac_objext \
7595     conftest$ac_exeext conftest.$ac_ext
7596     LIBS="$ac_xsave_LIBS"
7597
7598     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7599     # to get the SysV transport functions.
7600     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7601     # needs -lnsl.
7602     # The nsl library prevents programs from opening the X display
7603     # on Irix 5.2, according to T.E. Dickey.
7604     # The functions gethostbyname, getservbyname, and inet_addr are
7605     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
7606     ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
7607 if test "x$ac_cv_func_gethostbyname" = xyes; then :
7608
7609 fi
7610
7611     if test $ac_cv_func_gethostbyname = no; then
7612       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
7613 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
7614 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
7615   $as_echo_n "(cached) " >&6
7616 else
7617   ac_check_lib_save_LIBS=$LIBS
7618 LIBS="-lnsl  $LIBS"
7619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7620 /* end confdefs.h.  */
7621
7622 /* Override any GCC internal prototype to avoid an error.
7623    Use char because int might match the return type of a GCC
7624    builtin and then its argument prototype would still apply.  */
7625 #ifdef __cplusplus
7626 extern "C"
7627 #endif
7628 char gethostbyname ();
7629 int
7630 main ()
7631 {
7632 return gethostbyname ();
7633   ;
7634   return 0;
7635 }
7636 _ACEOF
7637 if ac_fn_c_try_link "$LINENO"; then :
7638   ac_cv_lib_nsl_gethostbyname=yes
7639 else
7640   ac_cv_lib_nsl_gethostbyname=no
7641 fi
7642 rm -f core conftest.err conftest.$ac_objext \
7643     conftest$ac_exeext conftest.$ac_ext
7644 LIBS=$ac_check_lib_save_LIBS
7645 fi
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
7647 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
7648 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
7649   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7650 fi
7651
7652       if test $ac_cv_lib_nsl_gethostbyname = no; then
7653         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
7654 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
7655 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
7656   $as_echo_n "(cached) " >&6
7657 else
7658   ac_check_lib_save_LIBS=$LIBS
7659 LIBS="-lbsd  $LIBS"
7660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7661 /* end confdefs.h.  */
7662
7663 /* Override any GCC internal prototype to avoid an error.
7664    Use char because int might match the return type of a GCC
7665    builtin and then its argument prototype would still apply.  */
7666 #ifdef __cplusplus
7667 extern "C"
7668 #endif
7669 char gethostbyname ();
7670 int
7671 main ()
7672 {
7673 return gethostbyname ();
7674   ;
7675   return 0;
7676 }
7677 _ACEOF
7678 if ac_fn_c_try_link "$LINENO"; then :
7679   ac_cv_lib_bsd_gethostbyname=yes
7680 else
7681   ac_cv_lib_bsd_gethostbyname=no
7682 fi
7683 rm -f core conftest.err conftest.$ac_objext \
7684     conftest$ac_exeext conftest.$ac_ext
7685 LIBS=$ac_check_lib_save_LIBS
7686 fi
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
7688 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
7689 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
7690   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
7691 fi
7692
7693       fi
7694     fi
7695
7696     # lieder@skyler.mavd.honeywell.com says without -lsocket,
7697     # socket/setsockopt and other routines are undefined under SCO ODT
7698     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
7699     # on later versions), says Simon Leinen: it contains gethostby*
7700     # variants that don't use the name server (or something).  -lsocket
7701     # must be given before -lnsl if both are needed.  We assume that
7702     # if connect needs -lnsl, so does gethostbyname.
7703     ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
7704 if test "x$ac_cv_func_connect" = xyes; then :
7705
7706 fi
7707
7708     if test $ac_cv_func_connect = no; then
7709       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
7710 $as_echo_n "checking for connect in -lsocket... " >&6; }
7711 if ${ac_cv_lib_socket_connect+:} false; then :
7712   $as_echo_n "(cached) " >&6
7713 else
7714   ac_check_lib_save_LIBS=$LIBS
7715 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7717 /* end confdefs.h.  */
7718
7719 /* Override any GCC internal prototype to avoid an error.
7720    Use char because int might match the return type of a GCC
7721    builtin and then its argument prototype would still apply.  */
7722 #ifdef __cplusplus
7723 extern "C"
7724 #endif
7725 char connect ();
7726 int
7727 main ()
7728 {
7729 return connect ();
7730   ;
7731   return 0;
7732 }
7733 _ACEOF
7734 if ac_fn_c_try_link "$LINENO"; then :
7735   ac_cv_lib_socket_connect=yes
7736 else
7737   ac_cv_lib_socket_connect=no
7738 fi
7739 rm -f core conftest.err conftest.$ac_objext \
7740     conftest$ac_exeext conftest.$ac_ext
7741 LIBS=$ac_check_lib_save_LIBS
7742 fi
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
7744 $as_echo "$ac_cv_lib_socket_connect" >&6; }
7745 if test "x$ac_cv_lib_socket_connect" = xyes; then :
7746   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7747 fi
7748
7749     fi
7750
7751     # Guillermo Gomez says -lposix is necessary on A/UX.
7752     ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
7753 if test "x$ac_cv_func_remove" = xyes; then :
7754
7755 fi
7756
7757     if test $ac_cv_func_remove = no; then
7758       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
7759 $as_echo_n "checking for remove in -lposix... " >&6; }
7760 if ${ac_cv_lib_posix_remove+:} false; then :
7761   $as_echo_n "(cached) " >&6
7762 else
7763   ac_check_lib_save_LIBS=$LIBS
7764 LIBS="-lposix  $LIBS"
7765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7766 /* end confdefs.h.  */
7767
7768 /* Override any GCC internal prototype to avoid an error.
7769    Use char because int might match the return type of a GCC
7770    builtin and then its argument prototype would still apply.  */
7771 #ifdef __cplusplus
7772 extern "C"
7773 #endif
7774 char remove ();
7775 int
7776 main ()
7777 {
7778 return remove ();
7779   ;
7780   return 0;
7781 }
7782 _ACEOF
7783 if ac_fn_c_try_link "$LINENO"; then :
7784   ac_cv_lib_posix_remove=yes
7785 else
7786   ac_cv_lib_posix_remove=no
7787 fi
7788 rm -f core conftest.err conftest.$ac_objext \
7789     conftest$ac_exeext conftest.$ac_ext
7790 LIBS=$ac_check_lib_save_LIBS
7791 fi
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
7793 $as_echo "$ac_cv_lib_posix_remove" >&6; }
7794 if test "x$ac_cv_lib_posix_remove" = xyes; then :
7795   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7796 fi
7797
7798     fi
7799
7800     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7801     ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
7802 if test "x$ac_cv_func_shmat" = xyes; then :
7803
7804 fi
7805
7806     if test $ac_cv_func_shmat = no; then
7807       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
7808 $as_echo_n "checking for shmat in -lipc... " >&6; }
7809 if ${ac_cv_lib_ipc_shmat+:} false; then :
7810   $as_echo_n "(cached) " >&6
7811 else
7812   ac_check_lib_save_LIBS=$LIBS
7813 LIBS="-lipc  $LIBS"
7814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7815 /* end confdefs.h.  */
7816
7817 /* Override any GCC internal prototype to avoid an error.
7818    Use char because int might match the return type of a GCC
7819    builtin and then its argument prototype would still apply.  */
7820 #ifdef __cplusplus
7821 extern "C"
7822 #endif
7823 char shmat ();
7824 int
7825 main ()
7826 {
7827 return shmat ();
7828   ;
7829   return 0;
7830 }
7831 _ACEOF
7832 if ac_fn_c_try_link "$LINENO"; then :
7833   ac_cv_lib_ipc_shmat=yes
7834 else
7835   ac_cv_lib_ipc_shmat=no
7836 fi
7837 rm -f core conftest.err conftest.$ac_objext \
7838     conftest$ac_exeext conftest.$ac_ext
7839 LIBS=$ac_check_lib_save_LIBS
7840 fi
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
7842 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
7843 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
7844   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7845 fi
7846
7847     fi
7848   fi
7849
7850   # Check for libraries that X11R6 Xt/Xaw programs need.
7851   ac_save_LDFLAGS=$LDFLAGS
7852   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7853   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7854   # check for ICE first), but we must link in the order -lSM -lICE or
7855   # we get undefined symbols.  So assume we have SM if we have ICE.
7856   # These have to be linked with before -lX11, unlike the other
7857   # libraries we check for below, so use a different variable.
7858   # John Interrante, Karl Berry
7859   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
7860 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
7861 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
7862   $as_echo_n "(cached) " >&6
7863 else
7864   ac_check_lib_save_LIBS=$LIBS
7865 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7867 /* end confdefs.h.  */
7868
7869 /* Override any GCC internal prototype to avoid an error.
7870    Use char because int might match the return type of a GCC
7871    builtin and then its argument prototype would still apply.  */
7872 #ifdef __cplusplus
7873 extern "C"
7874 #endif
7875 char IceConnectionNumber ();
7876 int
7877 main ()
7878 {
7879 return IceConnectionNumber ();
7880   ;
7881   return 0;
7882 }
7883 _ACEOF
7884 if ac_fn_c_try_link "$LINENO"; then :
7885   ac_cv_lib_ICE_IceConnectionNumber=yes
7886 else
7887   ac_cv_lib_ICE_IceConnectionNumber=no
7888 fi
7889 rm -f core conftest.err conftest.$ac_objext \
7890     conftest$ac_exeext conftest.$ac_ext
7891 LIBS=$ac_check_lib_save_LIBS
7892 fi
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7894 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
7895 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
7896   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7897 fi
7898
7899   LDFLAGS=$ac_save_LDFLAGS
7900
7901 fi
7902
7903
7904 if test "$have_x" = "yes"
7905 then
7906     XLIB="-lX11"
7907     ac_save_CPPFLAGS="$CPPFLAGS"
7908     CPPFLAGS="$CPPFLAGS $X_CFLAGS"
7909
7910     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lX11" >&5
7911 $as_echo_n "checking for -lX11... " >&6; }
7912 if ${ac_cv_lib_soname_X11+:} false; then :
7913   $as_echo_n "(cached) " >&6
7914 else
7915   ac_check_soname_save_LIBS=$LIBS
7916 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
7917   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7918 /* end confdefs.h.  */
7919
7920 /* Override any GCC internal prototype to avoid an error.
7921    Use char because int might match the return type of a GCC
7922    builtin and then its argument prototype would still apply.  */
7923 #ifdef __cplusplus
7924 extern "C"
7925 #endif
7926 char XCreateWindow ();
7927 int
7928 main ()
7929 {
7930 return XCreateWindow ();
7931   ;
7932   return 0;
7933 }
7934 _ACEOF
7935 if ac_fn_c_try_link "$LINENO"; then :
7936   case "$LIBEXT" in
7937     dll) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest.exe | grep "X11" | sed -e "s/dll.*/dll/"';2,$d'` ;;
7938     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'` ;;
7939     *) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep "libX11\\.$LIBEXT" | sed -e "s/^.*\(libX11\.$LIBEXT[^     ]*\).*$/\1/"';2,$d'` ;;
7940   esac
7941 fi
7942 rm -f core conftest.err conftest.$ac_objext \
7943     conftest$ac_exeext conftest.$ac_ext
7944   LIBS=$ac_check_soname_save_LIBS
7945 fi
7946 if test "x$ac_cv_lib_soname_X11" = "x"; then :
7947   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7948 $as_echo "not found" >&6; }
7949
7950 else
7951   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_X11" >&5
7952 $as_echo "$ac_cv_lib_soname_X11" >&6; }
7953
7954 cat >>confdefs.h <<_ACEOF
7955 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
7956 _ACEOF
7957
7958
7959 fi
7960     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXext" >&5
7961 $as_echo_n "checking for -lXext... " >&6; }
7962 if ${ac_cv_lib_soname_Xext+:} false; then :
7963   $as_echo_n "(cached) " >&6
7964 else
7965   ac_check_soname_save_LIBS=$LIBS
7966 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
7967   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7968 /* end confdefs.h.  */
7969
7970 /* Override any GCC internal prototype to avoid an error.
7971    Use char because int might match the return type of a GCC
7972    builtin and then its argument prototype would still apply.  */
7973 #ifdef __cplusplus
7974 extern "C"
7975 #endif
7976 char XextCreateExtension ();
7977 int
7978 main ()
7979 {
7980 return XextCreateExtension ();
7981   ;
7982   return 0;
7983 }
7984 _ACEOF
7985 if ac_fn_c_try_link "$LINENO"; then :
7986   case "$LIBEXT" in
7987     dll) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest.exe | grep "Xext" | sed -e "s/dll.*/dll/"';2,$d'` ;;
7988     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'` ;;
7989     *) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXext\\.$LIBEXT" | sed -e "s/^.*\(libXext\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
7990   esac
7991 fi
7992 rm -f core conftest.err conftest.$ac_objext \
7993     conftest$ac_exeext conftest.$ac_ext
7994   LIBS=$ac_check_soname_save_LIBS
7995 fi
7996 if test "x$ac_cv_lib_soname_Xext" = "x"; then :
7997   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7998 $as_echo "not found" >&6; }
7999
8000 else
8001   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xext" >&5
8002 $as_echo "$ac_cv_lib_soname_Xext" >&6; }
8003
8004 cat >>confdefs.h <<_ACEOF
8005 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
8006 _ACEOF
8007
8008        XLIB="-lXext $XLIB"
8009 fi
8010
8011         for ac_header in X11/Xlib.h \
8012                       X11/XKBlib.h \
8013                       X11/Xutil.h \
8014                       X11/Xcursor/Xcursor.h \
8015                       X11/extensions/shape.h \
8016                       X11/extensions/XInput.h \
8017                       X11/extensions/XInput2.h \
8018                       X11/extensions/XShm.h \
8019                       X11/extensions/Xcomposite.h \
8020                       X11/extensions/Xinerama.h \
8021                       X11/extensions/Xrandr.h \
8022                       X11/extensions/Xrender.h \
8023                       X11/extensions/xf86vmode.h \
8024                       X11/extensions/xf86vmproto.h
8025 do :
8026   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8027 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_X11_XLIB_H
8028 # include <X11/Xlib.h>
8029 #endif
8030 #ifdef HAVE_X11_XUTIL_H
8031 # include <X11/Xutil.h>
8032 #endif
8033 "
8034 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8035   cat >>confdefs.h <<_ACEOF
8036 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8037 _ACEOF
8038
8039 fi
8040
8041 done
8042
8043
8044                 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
8045         then
8046               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbQueryExtension in -lX11" >&5
8047 $as_echo_n "checking for XkbQueryExtension in -lX11... " >&6; }
8048 if ${ac_cv_lib_X11_XkbQueryExtension+:} false; then :
8049   $as_echo_n "(cached) " >&6
8050 else
8051   ac_check_lib_save_LIBS=$LIBS
8052 LIBS="-lX11 $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8054 /* end confdefs.h.  */
8055
8056 /* Override any GCC internal prototype to avoid an error.
8057    Use char because int might match the return type of a GCC
8058    builtin and then its argument prototype would still apply.  */
8059 #ifdef __cplusplus
8060 extern "C"
8061 #endif
8062 char XkbQueryExtension ();
8063 int
8064 main ()
8065 {
8066 return XkbQueryExtension ();
8067   ;
8068   return 0;
8069 }
8070 _ACEOF
8071 if ac_fn_c_try_link "$LINENO"; then :
8072   ac_cv_lib_X11_XkbQueryExtension=yes
8073 else
8074   ac_cv_lib_X11_XkbQueryExtension=no
8075 fi
8076 rm -f core conftest.err conftest.$ac_objext \
8077     conftest$ac_exeext conftest.$ac_ext
8078 LIBS=$ac_check_lib_save_LIBS
8079 fi
8080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
8081 $as_echo "$ac_cv_lib_X11_XkbQueryExtension" >&6; }
8082 if test "x$ac_cv_lib_X11_XkbQueryExtension" = xyes; then :
8083
8084 $as_echo "#define HAVE_XKB 1" >>confdefs.h
8085
8086 fi
8087
8088         fi
8089
8090                 if test "$ac_cv_header_X11_Xcursor_Xcursor_h" = "yes"
8091         then
8092             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcursor" >&5
8093 $as_echo_n "checking for -lXcursor... " >&6; }
8094 if ${ac_cv_lib_soname_Xcursor+:} false; then :
8095   $as_echo_n "(cached) " >&6
8096 else
8097   ac_check_soname_save_LIBS=$LIBS
8098 LIBS="-lXcursor $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8099   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8100 /* end confdefs.h.  */
8101
8102 /* Override any GCC internal prototype to avoid an error.
8103    Use char because int might match the return type of a GCC
8104    builtin and then its argument prototype would still apply.  */
8105 #ifdef __cplusplus
8106 extern "C"
8107 #endif
8108 char XcursorImageLoadCursor ();
8109 int
8110 main ()
8111 {
8112 return XcursorImageLoadCursor ();
8113   ;
8114   return 0;
8115 }
8116 _ACEOF
8117 if ac_fn_c_try_link "$LINENO"; then :
8118   case "$LIBEXT" in
8119     dll) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest.exe | grep "Xcursor" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8120     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'` ;;
8121     *) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXcursor\\.$LIBEXT" | sed -e "s/^.*\(libXcursor\.$LIBEXT[^         ]*\).*$/\1/"';2,$d'` ;;
8122   esac
8123 fi
8124 rm -f core conftest.err conftest.$ac_objext \
8125     conftest$ac_exeext conftest.$ac_ext
8126   LIBS=$ac_check_soname_save_LIBS
8127 fi
8128 if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
8129   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8130 $as_echo "not found" >&6; }
8131
8132 else
8133   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcursor" >&5
8134 $as_echo "$ac_cv_lib_soname_Xcursor" >&6; }
8135
8136 cat >>confdefs.h <<_ACEOF
8137 #define SONAME_LIBXCURSOR "$ac_cv_lib_soname_Xcursor"
8138 _ACEOF
8139
8140
8141 fi
8142         fi
8143         if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
8144   case "x$with_xcursor" in
8145   x)   as_fn_append wine_notices "|libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported." ;;
8146   xno) ;;
8147   *)   as_fn_error $? "libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported.
8148 This is an error since --with-xcursor was requested." "$LINENO" 5 ;;
8149 esac
8150 fi
8151
8152                 if test "$ac_cv_header_X11_extensions_XInput_h" = "yes"
8153         then
8154             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXi" >&5
8155 $as_echo_n "checking for -lXi... " >&6; }
8156 if ${ac_cv_lib_soname_Xi+:} false; then :
8157   $as_echo_n "(cached) " >&6
8158 else
8159   ac_check_soname_save_LIBS=$LIBS
8160 LIBS="-lXi $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8161   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8162 /* end confdefs.h.  */
8163
8164 /* Override any GCC internal prototype to avoid an error.
8165    Use char because int might match the return type of a GCC
8166    builtin and then its argument prototype would still apply.  */
8167 #ifdef __cplusplus
8168 extern "C"
8169 #endif
8170 char XOpenDevice ();
8171 int
8172 main ()
8173 {
8174 return XOpenDevice ();
8175   ;
8176   return 0;
8177 }
8178 _ACEOF
8179 if ac_fn_c_try_link "$LINENO"; then :
8180   case "$LIBEXT" in
8181     dll) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest.exe | grep "Xi" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8182     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'` ;;
8183     *) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXi\\.$LIBEXT" | sed -e "s/^.*\(libXi\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'` ;;
8184   esac
8185 fi
8186 rm -f core conftest.err conftest.$ac_objext \
8187     conftest$ac_exeext conftest.$ac_ext
8188   LIBS=$ac_check_soname_save_LIBS
8189 fi
8190 if test "x$ac_cv_lib_soname_Xi" = "x"; then :
8191   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8192 $as_echo "not found" >&6; }
8193
8194 else
8195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xi" >&5
8196 $as_echo "$ac_cv_lib_soname_Xi" >&6; }
8197
8198 cat >>confdefs.h <<_ACEOF
8199 #define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
8200 _ACEOF
8201
8202
8203 fi
8204         fi
8205         if test "x$ac_cv_lib_soname_Xi" = "x"; then :
8206   case "x$with_xinput" in
8207   x)   as_fn_append wine_notices "|libxi ${notice_platform}development files not found, the Xinput extension won't be supported." ;;
8208   xno) ;;
8209   *)   as_fn_error $? "libxi ${notice_platform}development files not found, the Xinput extension won't be supported.
8210 This is an error since --with-xinput was requested." "$LINENO" 5 ;;
8211 esac
8212 fi
8213
8214                 if test "x$ac_cv_lib_soname_Xi" != x
8215         then
8216             if test "$ac_cv_header_X11_extensions_XInput2_h" != "yes"; then :
8217   case "x$with_xinput2" in
8218   x)   as_fn_append wine_notices "|XInput2 headers not found, the XInput 2 extension won't be supported." ;;
8219   xno) ;;
8220   *)   as_fn_error $? "XInput2 headers not found, the XInput 2 extension won't be supported.
8221 This is an error since --with-xinput2 was requested." "$LINENO" 5 ;;
8222 esac
8223 fi
8224         fi
8225
8226                 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
8227         then
8228               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
8229 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
8230 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then :
8231   $as_echo_n "(cached) " >&6
8232 else
8233   ac_check_lib_save_LIBS=$LIBS
8234 LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8236 /* end confdefs.h.  */
8237
8238 /* Override any GCC internal prototype to avoid an error.
8239    Use char because int might match the return type of a GCC
8240    builtin and then its argument prototype would still apply.  */
8241 #ifdef __cplusplus
8242 extern "C"
8243 #endif
8244 char XShmQueryExtension ();
8245 int
8246 main ()
8247 {
8248 return XShmQueryExtension ();
8249   ;
8250   return 0;
8251 }
8252 _ACEOF
8253 if ac_fn_c_try_link "$LINENO"; then :
8254   ac_cv_lib_Xext_XShmQueryExtension=yes
8255 else
8256   ac_cv_lib_Xext_XShmQueryExtension=no
8257 fi
8258 rm -f core conftest.err conftest.$ac_objext \
8259     conftest$ac_exeext conftest.$ac_ext
8260 LIBS=$ac_check_lib_save_LIBS
8261 fi
8262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
8263 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
8264 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then :
8265
8266 $as_echo "#define HAVE_LIBXXSHM 1" >>confdefs.h
8267
8268 fi
8269
8270         fi
8271         if test "$ac_cv_lib_Xext_XShmQueryExtension" != "yes"; then :
8272   case "x$with_xshm" in
8273   x)   as_fn_append wine_notices "|XShm ${notice_platform}development files not found, X Shared Memory won't be supported." ;;
8274   xno) ;;
8275   *)   as_fn_error $? "XShm ${notice_platform}development files not found, X Shared Memory won't be supported.
8276 This is an error since --with-xshm was requested." "$LINENO" 5 ;;
8277 esac
8278 fi
8279
8280                 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
8281         then
8282               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
8283 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
8284 if ${ac_cv_lib_Xext_XShapeQueryExtension+:} false; then :
8285   $as_echo_n "(cached) " >&6
8286 else
8287   ac_check_lib_save_LIBS=$LIBS
8288 LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8290 /* end confdefs.h.  */
8291
8292 /* Override any GCC internal prototype to avoid an error.
8293    Use char because int might match the return type of a GCC
8294    builtin and then its argument prototype would still apply.  */
8295 #ifdef __cplusplus
8296 extern "C"
8297 #endif
8298 char XShapeQueryExtension ();
8299 int
8300 main ()
8301 {
8302 return XShapeQueryExtension ();
8303   ;
8304   return 0;
8305 }
8306 _ACEOF
8307 if ac_fn_c_try_link "$LINENO"; then :
8308   ac_cv_lib_Xext_XShapeQueryExtension=yes
8309 else
8310   ac_cv_lib_Xext_XShapeQueryExtension=no
8311 fi
8312 rm -f core conftest.err conftest.$ac_objext \
8313     conftest$ac_exeext conftest.$ac_ext
8314 LIBS=$ac_check_lib_save_LIBS
8315 fi
8316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8317 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
8318 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = xyes; then :
8319
8320 $as_echo "#define HAVE_LIBXSHAPE 1" >>confdefs.h
8321
8322 fi
8323
8324         fi
8325         if test "$ac_cv_lib_Xext_XShapeQueryExtension" != "yes"; then :
8326   case "x$with_xshape" in
8327   x)   as_fn_append wine_notices "|XShape ${notice_platform}development files not found, XShape won't be supported." ;;
8328   xno) ;;
8329   *)   as_fn_error $? "XShape ${notice_platform}development files not found, XShape won't be supported.
8330 This is an error since --with-xshape was requested." "$LINENO" 5 ;;
8331 esac
8332 fi
8333
8334                 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes" -o "$ac_cv_header_X11_extensions_xf86vmproto_h" = "yes"
8335         then
8336             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXxf86vm" >&5
8337 $as_echo_n "checking for -lXxf86vm... " >&6; }
8338 if ${ac_cv_lib_soname_Xxf86vm+:} false; then :
8339   $as_echo_n "(cached) " >&6
8340 else
8341   ac_check_soname_save_LIBS=$LIBS
8342 LIBS="-lXxf86vm $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8343   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8344 /* end confdefs.h.  */
8345
8346 /* Override any GCC internal prototype to avoid an error.
8347    Use char because int might match the return type of a GCC
8348    builtin and then its argument prototype would still apply.  */
8349 #ifdef __cplusplus
8350 extern "C"
8351 #endif
8352 char XF86VidModeQueryExtension ();
8353 int
8354 main ()
8355 {
8356 return XF86VidModeQueryExtension ();
8357   ;
8358   return 0;
8359 }
8360 _ACEOF
8361 if ac_fn_c_try_link "$LINENO"; then :
8362   case "$LIBEXT" in
8363     dll) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest.exe | grep "Xxf86vm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8364     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'` ;;
8365     *) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXxf86vm\\.$LIBEXT" | sed -e "s/^.*\(libXxf86vm\.$LIBEXT[^         ]*\).*$/\1/"';2,$d'` ;;
8366   esac
8367 fi
8368 rm -f core conftest.err conftest.$ac_objext \
8369     conftest$ac_exeext conftest.$ac_ext
8370   LIBS=$ac_check_soname_save_LIBS
8371 fi
8372 if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
8373   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8374 $as_echo "not found" >&6; }
8375
8376 else
8377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xxf86vm" >&5
8378 $as_echo "$ac_cv_lib_soname_Xxf86vm" >&6; }
8379
8380 cat >>confdefs.h <<_ACEOF
8381 #define SONAME_LIBXXF86VM "$ac_cv_lib_soname_Xxf86vm"
8382 _ACEOF
8383
8384
8385 fi
8386         fi
8387         if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
8388   case "x$with_xxf86vm" in
8389   x)   as_fn_append wine_notices "|libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported." ;;
8390   xno) ;;
8391   *)   as_fn_error $? "libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported.
8392 This is an error since --with-xxf86vm was requested." "$LINENO" 5 ;;
8393 esac
8394 fi
8395
8396                 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"
8397         then
8398             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrender" >&5
8399 $as_echo_n "checking for -lXrender... " >&6; }
8400 if ${ac_cv_lib_soname_Xrender+:} false; then :
8401   $as_echo_n "(cached) " >&6
8402 else
8403   ac_check_soname_save_LIBS=$LIBS
8404 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8405   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8406 /* end confdefs.h.  */
8407
8408 /* Override any GCC internal prototype to avoid an error.
8409    Use char because int might match the return type of a GCC
8410    builtin and then its argument prototype would still apply.  */
8411 #ifdef __cplusplus
8412 extern "C"
8413 #endif
8414 char XRenderQueryExtension ();
8415 int
8416 main ()
8417 {
8418 return XRenderQueryExtension ();
8419   ;
8420   return 0;
8421 }
8422 _ACEOF
8423 if ac_fn_c_try_link "$LINENO"; then :
8424   case "$LIBEXT" in
8425     dll) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest.exe | grep "Xrender" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8426     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'` ;;
8427     *) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXrender\\.$LIBEXT" | sed -e "s/^.*\(libXrender\.$LIBEXT[^         ]*\).*$/\1/"';2,$d'` ;;
8428   esac
8429 fi
8430 rm -f core conftest.err conftest.$ac_objext \
8431     conftest$ac_exeext conftest.$ac_ext
8432   LIBS=$ac_check_soname_save_LIBS
8433 fi
8434 if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
8435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8436 $as_echo "not found" >&6; }
8437
8438 else
8439   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrender" >&5
8440 $as_echo "$ac_cv_lib_soname_Xrender" >&6; }
8441
8442 cat >>confdefs.h <<_ACEOF
8443 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
8444 _ACEOF
8445
8446        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderSetPictureTransform in -lXrender" >&5
8447 $as_echo_n "checking for XRenderSetPictureTransform in -lXrender... " >&6; }
8448 if ${ac_cv_lib_Xrender_XRenderSetPictureTransform+:} false; then :
8449   $as_echo_n "(cached) " >&6
8450 else
8451   ac_check_lib_save_LIBS=$LIBS
8452 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8454 /* end confdefs.h.  */
8455
8456 /* Override any GCC internal prototype to avoid an error.
8457    Use char because int might match the return type of a GCC
8458    builtin and then its argument prototype would still apply.  */
8459 #ifdef __cplusplus
8460 extern "C"
8461 #endif
8462 char XRenderSetPictureTransform ();
8463 int
8464 main ()
8465 {
8466 return XRenderSetPictureTransform ();
8467   ;
8468   return 0;
8469 }
8470 _ACEOF
8471 if ac_fn_c_try_link "$LINENO"; then :
8472   ac_cv_lib_Xrender_XRenderSetPictureTransform=yes
8473 else
8474   ac_cv_lib_Xrender_XRenderSetPictureTransform=no
8475 fi
8476 rm -f core conftest.err conftest.$ac_objext \
8477     conftest$ac_exeext conftest.$ac_ext
8478 LIBS=$ac_check_lib_save_LIBS
8479 fi
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5
8481 $as_echo "$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6; }
8482 if test "x$ac_cv_lib_Xrender_XRenderSetPictureTransform" = xyes; then :
8483
8484 $as_echo "#define HAVE_XRENDERSETPICTURETRANSFORM 1" >>confdefs.h
8485
8486 fi
8487
8488                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderCreateLinearGradient in -lXrender" >&5
8489 $as_echo_n "checking for XRenderCreateLinearGradient in -lXrender... " >&6; }
8490 if ${ac_cv_lib_Xrender_XRenderCreateLinearGradient+:} false; then :
8491   $as_echo_n "(cached) " >&6
8492 else
8493   ac_check_lib_save_LIBS=$LIBS
8494 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8496 /* end confdefs.h.  */
8497
8498 /* Override any GCC internal prototype to avoid an error.
8499    Use char because int might match the return type of a GCC
8500    builtin and then its argument prototype would still apply.  */
8501 #ifdef __cplusplus
8502 extern "C"
8503 #endif
8504 char XRenderCreateLinearGradient ();
8505 int
8506 main ()
8507 {
8508 return XRenderCreateLinearGradient ();
8509   ;
8510   return 0;
8511 }
8512 _ACEOF
8513 if ac_fn_c_try_link "$LINENO"; then :
8514   ac_cv_lib_Xrender_XRenderCreateLinearGradient=yes
8515 else
8516   ac_cv_lib_Xrender_XRenderCreateLinearGradient=no
8517 fi
8518 rm -f core conftest.err conftest.$ac_objext \
8519     conftest$ac_exeext conftest.$ac_ext
8520 LIBS=$ac_check_lib_save_LIBS
8521 fi
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderCreateLinearGradient" >&5
8523 $as_echo "$ac_cv_lib_Xrender_XRenderCreateLinearGradient" >&6; }
8524 if test "x$ac_cv_lib_Xrender_XRenderCreateLinearGradient" = xyes; then :
8525
8526 $as_echo "#define HAVE_XRENDERCREATELINEARGRADIENT 1" >>confdefs.h
8527
8528 fi
8529
8530 fi
8531
8532         fi
8533         if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
8534   case "x$with_xrender" in
8535   x)   as_fn_append wine_warnings "|libxrender ${notice_platform}development files not found, XRender won't be supported." ;;
8536   xno) ;;
8537   *)   as_fn_error $? "libxrender ${notice_platform}development files not found, XRender won't be supported.
8538 This is an error since --with-xrender was requested." "$LINENO" 5 ;;
8539 esac
8540 fi
8541
8542                 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes" -a "x$ac_cv_lib_soname_Xrender" != "x"
8543         then
8544                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8545 /* end confdefs.h.  */
8546 #include <X11/Xlib.h>
8547 #include <X11/extensions/Xrandr.h>
8548 int
8549 main ()
8550 {
8551 static typeof(XRRSetScreenConfigAndRate) * func; if (func) return 0;
8552   ;
8553   return 0;
8554 }
8555 _ACEOF
8556 if ac_fn_c_try_compile "$LINENO"; then :
8557   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrandr" >&5
8558 $as_echo_n "checking for -lXrandr... " >&6; }
8559 if ${ac_cv_lib_soname_Xrandr+:} false; then :
8560   $as_echo_n "(cached) " >&6
8561 else
8562   ac_check_soname_save_LIBS=$LIBS
8563 LIBS="-lXrandr $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8564   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8565 /* end confdefs.h.  */
8566
8567 /* Override any GCC internal prototype to avoid an error.
8568    Use char because int might match the return type of a GCC
8569    builtin and then its argument prototype would still apply.  */
8570 #ifdef __cplusplus
8571 extern "C"
8572 #endif
8573 char XRRQueryExtension ();
8574 int
8575 main ()
8576 {
8577 return XRRQueryExtension ();
8578   ;
8579   return 0;
8580 }
8581 _ACEOF
8582 if ac_fn_c_try_link "$LINENO"; then :
8583   case "$LIBEXT" in
8584     dll) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest.exe | grep "Xrandr" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8585     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'` ;;
8586     *) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXrandr\\.$LIBEXT" | sed -e "s/^.*\(libXrandr\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'` ;;
8587   esac
8588 fi
8589 rm -f core conftest.err conftest.$ac_objext \
8590     conftest$ac_exeext conftest.$ac_ext
8591   LIBS=$ac_check_soname_save_LIBS
8592 fi
8593 if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
8594   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8595 $as_echo "not found" >&6; }
8596
8597 else
8598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrandr" >&5
8599 $as_echo "$ac_cv_lib_soname_Xrandr" >&6; }
8600
8601 cat >>confdefs.h <<_ACEOF
8602 #define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
8603 _ACEOF
8604
8605
8606 fi
8607 fi
8608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8609         fi
8610         if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
8611   case "x$with_xrandr" in
8612   x)   as_fn_append wine_notices "|libxrandr ${notice_platform}development files not found, XRandr won't be supported." ;;
8613   xno) ;;
8614   *)   as_fn_error $? "libxrandr ${notice_platform}development files not found, XRandr won't be supported.
8615 This is an error since --with-xrandr was requested." "$LINENO" 5 ;;
8616 esac
8617 fi
8618
8619                 if test "$ac_cv_header_X11_extensions_Xinerama_h" = "yes"
8620         then
8621                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8622 /* end confdefs.h.  */
8623 #include <X11/Xlib.h>
8624 #include <X11/extensions/Xinerama.h>
8625 int
8626 main ()
8627 {
8628 static typeof(XineramaQueryScreens) * func; if (func) return 0;
8629   ;
8630   return 0;
8631 }
8632 _ACEOF
8633 if ac_fn_c_try_compile "$LINENO"; then :
8634   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXinerama" >&5
8635 $as_echo_n "checking for -lXinerama... " >&6; }
8636 if ${ac_cv_lib_soname_Xinerama+:} false; then :
8637   $as_echo_n "(cached) " >&6
8638 else
8639   ac_check_soname_save_LIBS=$LIBS
8640 LIBS="-lXinerama $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8641   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8642 /* end confdefs.h.  */
8643
8644 /* Override any GCC internal prototype to avoid an error.
8645    Use char because int might match the return type of a GCC
8646    builtin and then its argument prototype would still apply.  */
8647 #ifdef __cplusplus
8648 extern "C"
8649 #endif
8650 char XineramaQueryScreens ();
8651 int
8652 main ()
8653 {
8654 return XineramaQueryScreens ();
8655   ;
8656   return 0;
8657 }
8658 _ACEOF
8659 if ac_fn_c_try_link "$LINENO"; then :
8660   case "$LIBEXT" in
8661     dll) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest.exe | grep "Xinerama" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8662     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'` ;;
8663     *) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXinerama\\.$LIBEXT" | sed -e "s/^.*\(libXinerama\.$LIBEXT[^      ]*\).*$/\1/"';2,$d'` ;;
8664   esac
8665 fi
8666 rm -f core conftest.err conftest.$ac_objext \
8667     conftest$ac_exeext conftest.$ac_ext
8668   LIBS=$ac_check_soname_save_LIBS
8669 fi
8670 if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
8671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8672 $as_echo "not found" >&6; }
8673
8674 else
8675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xinerama" >&5
8676 $as_echo "$ac_cv_lib_soname_Xinerama" >&6; }
8677
8678 cat >>confdefs.h <<_ACEOF
8679 #define SONAME_LIBXINERAMA "$ac_cv_lib_soname_Xinerama"
8680 _ACEOF
8681
8682
8683 fi
8684 fi
8685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8686         fi
8687         if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
8688   case "x$with_xinerama" in
8689   x)   as_fn_append wine_notices "|libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported." ;;
8690   xno) ;;
8691   *)   as_fn_error $? "libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported.
8692 This is an error since --with-xinerama was requested." "$LINENO" 5 ;;
8693 esac
8694 fi
8695
8696                 if test "$ac_cv_header_X11_extensions_Xcomposite_h" = "yes"
8697         then
8698             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcomposite" >&5
8699 $as_echo_n "checking for -lXcomposite... " >&6; }
8700 if ${ac_cv_lib_soname_Xcomposite+:} false; then :
8701   $as_echo_n "(cached) " >&6
8702 else
8703   ac_check_soname_save_LIBS=$LIBS
8704 LIBS="-lXcomposite $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8705   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8706 /* end confdefs.h.  */
8707
8708 /* Override any GCC internal prototype to avoid an error.
8709    Use char because int might match the return type of a GCC
8710    builtin and then its argument prototype would still apply.  */
8711 #ifdef __cplusplus
8712 extern "C"
8713 #endif
8714 char XCompositeRedirectWindow ();
8715 int
8716 main ()
8717 {
8718 return XCompositeRedirectWindow ();
8719   ;
8720   return 0;
8721 }
8722 _ACEOF
8723 if ac_fn_c_try_link "$LINENO"; then :
8724   case "$LIBEXT" in
8725     dll) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest.exe | grep "Xcomposite" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8726     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'` ;;
8727     *) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXcomposite\\.$LIBEXT" | sed -e "s/^.*\(libXcomposite\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'` ;;
8728   esac
8729 fi
8730 rm -f core conftest.err conftest.$ac_objext \
8731     conftest$ac_exeext conftest.$ac_ext
8732   LIBS=$ac_check_soname_save_LIBS
8733 fi
8734 if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
8735   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8736 $as_echo "not found" >&6; }
8737
8738 else
8739   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcomposite" >&5
8740 $as_echo "$ac_cv_lib_soname_Xcomposite" >&6; }
8741
8742 cat >>confdefs.h <<_ACEOF
8743 #define SONAME_LIBXCOMPOSITE "$ac_cv_lib_soname_Xcomposite"
8744 _ACEOF
8745
8746
8747 fi
8748         fi
8749         if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
8750   case "x$with_xcomposite" in
8751   x)   as_fn_append wine_notices "|libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported." ;;
8752   xno) ;;
8753   *)   as_fn_error $? "libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported.
8754 This is an error since --with-xcomposite was requested." "$LINENO" 5 ;;
8755 esac
8756 fi
8757
8758                 ac_fn_c_check_member "$LINENO" "XICCallback" "callback" "ac_cv_member_XICCallback_callback" "#ifdef HAVE_X11_XLIB_H
8759 #include <X11/Xlib.h>
8760 #endif
8761 "
8762 if test "x$ac_cv_member_XICCallback_callback" = xyes; then :
8763
8764 cat >>confdefs.h <<_ACEOF
8765 #define HAVE_XICCALLBACK_CALLBACK 1
8766 _ACEOF
8767
8768
8769 fi
8770 ac_fn_c_check_member "$LINENO" "XEvent" "xcookie" "ac_cv_member_XEvent_xcookie" "#ifdef HAVE_X11_XLIB_H
8771 #include <X11/Xlib.h>
8772 #endif
8773 "
8774 if test "x$ac_cv_member_XEvent_xcookie" = xyes; then :
8775
8776 cat >>confdefs.h <<_ACEOF
8777 #define HAVE_XEVENT_XCOOKIE 1
8778 _ACEOF
8779
8780
8781 fi
8782
8783
8784
8785         opengl_msg=""
8786     if test "x$with_opengl" != "xno"
8787     then
8788         for ac_header in GL/gl.h GL/glx.h GL/glu.h
8789 do :
8790   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8791 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_GL_GLX_H
8792 # include <GL/glx.h>
8793 #endif
8794 "
8795 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8796   cat >>confdefs.h <<_ACEOF
8797 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8798 _ACEOF
8799
8800 fi
8801
8802 done
8803
8804         if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
8805         then
8806                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for up-to-date OpenGL version" >&5
8807 $as_echo_n "checking for up-to-date OpenGL version... " >&6; }
8808 if ${wine_cv_opengl_header_version_OK+:} false; then :
8809   $as_echo_n "(cached) " >&6
8810 else
8811   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8812 /* end confdefs.h.  */
8813 #include <GL/gl.h>
8814 int
8815 main ()
8816 {
8817 GLenum test = GL_UNSIGNED_SHORT_5_6_5;  return (test == GL_UNSIGNED_SHORT_5_6_5);
8818   ;
8819   return 0;
8820 }
8821 _ACEOF
8822 if ac_fn_c_try_compile "$LINENO"; then :
8823   wine_cv_opengl_header_version_OK="yes"
8824 else
8825   wine_cv_opengl_header_version_OK="no"
8826 fi
8827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8828 fi
8829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_opengl_header_version_OK" >&5
8830 $as_echo "$wine_cv_opengl_header_version_OK" >&6; }
8831
8832             if test "$wine_cv_opengl_header_version_OK" = "yes"
8833             then
8834                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
8835 $as_echo_n "checking for -lGL... " >&6; }
8836 if ${ac_cv_lib_soname_GL+:} false; then :
8837   $as_echo_n "(cached) " >&6
8838 else
8839   ac_check_soname_save_LIBS=$LIBS
8840 LIBS="-lGL $X_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
8841   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8842 /* end confdefs.h.  */
8843
8844 /* Override any GCC internal prototype to avoid an error.
8845    Use char because int might match the return type of a GCC
8846    builtin and then its argument prototype would still apply.  */
8847 #ifdef __cplusplus
8848 extern "C"
8849 #endif
8850 char glXCreateContext ();
8851 int
8852 main ()
8853 {
8854 return glXCreateContext ();
8855   ;
8856   return 0;
8857 }
8858 _ACEOF
8859 if ac_fn_c_try_link "$LINENO"; then :
8860   case "$LIBEXT" in
8861     dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8862     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'` ;;
8863     *) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'` ;;
8864   esac
8865 fi
8866 rm -f core conftest.err conftest.$ac_objext \
8867     conftest$ac_exeext conftest.$ac_ext
8868   LIBS=$ac_check_soname_save_LIBS
8869 fi
8870 if test "x$ac_cv_lib_soname_GL" = "x"; then :
8871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8872 $as_echo "not found" >&6; }
8873        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
8874 $as_echo_n "checking for -lGL... " >&6; }
8875 if ${ac_cv_lib_soname_GL+:} false; then :
8876   $as_echo_n "(cached) " >&6
8877 else
8878   ac_check_soname_save_LIBS=$LIBS
8879 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"
8880   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8881 /* end confdefs.h.  */
8882
8883 /* Override any GCC internal prototype to avoid an error.
8884    Use char because int might match the return type of a GCC
8885    builtin and then its argument prototype would still apply.  */
8886 #ifdef __cplusplus
8887 extern "C"
8888 #endif
8889 char glXCreateContext ();
8890 int
8891 main ()
8892 {
8893 return glXCreateContext ();
8894   ;
8895   return 0;
8896 }
8897 _ACEOF
8898 if ac_fn_c_try_link "$LINENO"; then :
8899   case "$LIBEXT" in
8900     dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8901     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'` ;;
8902     *) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'` ;;
8903   esac
8904 fi
8905 rm -f core conftest.err conftest.$ac_objext \
8906     conftest$ac_exeext conftest.$ac_ext
8907   LIBS=$ac_check_soname_save_LIBS
8908 fi
8909 if test "x$ac_cv_lib_soname_GL" = "x"; then :
8910   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8911 $as_echo "not found" >&6; }
8912        if test -f /usr/X11R6/lib/libGL.a
8913                                     then
8914                                         opengl_msg="/usr/X11R6/lib/libGL.a is present on your system.
8915 This probably prevents linking to OpenGL. Try deleting the file and restarting configure."
8916                                     else
8917                                         opengl_msg="No OpenGL library found on this system."
8918                                     fi
8919 else
8920   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
8921 $as_echo "$ac_cv_lib_soname_GL" >&6; }
8922
8923 cat >>confdefs.h <<_ACEOF
8924 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
8925 _ACEOF
8926
8927        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"
8928
8929 $as_echo "#define HAVE_OPENGL 1" >>confdefs.h
8930
8931 fi
8932 else
8933   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
8934 $as_echo "$ac_cv_lib_soname_GL" >&6; }
8935
8936 cat >>confdefs.h <<_ACEOF
8937 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
8938 _ACEOF
8939
8940        OPENGL_LIBS="-lGL"
8941
8942 $as_echo "#define HAVE_OPENGL 1" >>confdefs.h
8943
8944 fi
8945                  if test "$ac_cv_header_GL_glu_h" = "yes"
8946                  then
8947                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGLU" >&5
8948 $as_echo_n "checking for -lGLU... " >&6; }
8949 if ${ac_cv_lib_soname_GLU+:} false; then :
8950   $as_echo_n "(cached) " >&6
8951 else
8952   ac_check_soname_save_LIBS=$LIBS
8953 LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
8954   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8955 /* end confdefs.h.  */
8956
8957 /* Override any GCC internal prototype to avoid an error.
8958    Use char because int might match the return type of a GCC
8959    builtin and then its argument prototype would still apply.  */
8960 #ifdef __cplusplus
8961 extern "C"
8962 #endif
8963 char gluLookAt ();
8964 int
8965 main ()
8966 {
8967 return gluLookAt ();
8968   ;
8969   return 0;
8970 }
8971 _ACEOF
8972 if ac_fn_c_try_link "$LINENO"; then :
8973   case "$LIBEXT" in
8974     dll) ac_cv_lib_soname_GLU=`$ac_cv_path_LDD conftest.exe | grep "GLU" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8975     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'` ;;
8976     *) ac_cv_lib_soname_GLU=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGLU\\.$LIBEXT" | sed -e "s/^.*\(libGLU\.$LIBEXT[^     ]*\).*$/\1/"';2,$d'` ;;
8977   esac
8978 fi
8979 rm -f core conftest.err conftest.$ac_objext \
8980     conftest$ac_exeext conftest.$ac_ext
8981   LIBS=$ac_check_soname_save_LIBS
8982 fi
8983 if test "x$ac_cv_lib_soname_GLU" = "x"; then :
8984   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8985 $as_echo "not found" >&6; }
8986
8987 else
8988   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GLU" >&5
8989 $as_echo "$ac_cv_lib_soname_GLU" >&6; }
8990
8991 cat >>confdefs.h <<_ACEOF
8992 #define SONAME_LIBGLU "$ac_cv_lib_soname_GLU"
8993 _ACEOF
8994
8995
8996 fi
8997                  fi
8998                  if test "x$ac_cv_lib_soname_GLU" = "x"; then :
8999   case "x$with_glu" in
9000   x)   as_fn_append wine_notices "|libGLU ${notice_platform}development files not found, GLU won't be supported." ;;
9001   xno) ;;
9002   *)   as_fn_error $? "libGLU ${notice_platform}development files not found, GLU won't be supported.
9003 This is an error since --with-glu was requested." "$LINENO" 5 ;;
9004 esac
9005 fi
9006              else
9007                  opengl_msg="Old Mesa headers detected. Consider upgrading your Mesa libraries."
9008              fi
9009          else
9010              opengl_msg="OpenGL development headers not found."
9011          fi
9012          test -n "$opengl_msg" && enable_opengl32=${enable_opengl32:-no}
9013          test "x$ac_cv_lib_soname_GLU" = "x" && enable_glu32=${enable_glu32:-no}
9014     else
9015          enable_opengl32=${enable_opengl32:-no}
9016          enable_glu32=${enable_glu32:-no}
9017     fi
9018     if test -n "$opengl_msg"; then :
9019   case "x$with_opengl" in
9020   x)   as_fn_append wine_warnings "|$opengl_msg
9021 OpenGL and Direct3D won't be supported." ;;
9022   xno) ;;
9023   *)   as_fn_error $? "$opengl_msg
9024 OpenGL and Direct3D won't be supported.
9025 This is an error since --with-opengl was requested." "$LINENO" 5 ;;
9026 esac
9027 fi
9028
9029     CPPFLAGS="$ac_save_CPPFLAGS"
9030 else
9031     XLIB=""
9032     X_CFLAGS=""
9033     X_LIBS=""
9034     enable_winex11_drv=${enable_winex11_drv:-no}
9035     enable_opengl32=${enable_opengl32:-no}
9036     enable_glu32=${enable_glu32:-no}
9037 fi
9038 if test "x$XLIB" = "x"; then :
9039   case "x$with_x" in
9040   xno) ;;
9041   *)   as_fn_error $? "X ${notice_platform}development files not found. Wine will be built
9042 without X support, which probably isn't what you want. You will need
9043 to install ${notice_platform}development packages of Xlib/Xfree86 at the very least.
9044 Use the --without-x option if you really want this." "$LINENO" 5 ;;
9045 esac
9046 fi
9047
9048 if test "$ac_cv_header_CL_cl_h" = "yes"
9049 then
9050     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clGetPlatformInfo in -lOpenCL" >&5
9051 $as_echo_n "checking for clGetPlatformInfo in -lOpenCL... " >&6; }
9052 if ${ac_cv_lib_OpenCL_clGetPlatformInfo+:} false; then :
9053   $as_echo_n "(cached) " >&6
9054 else
9055   ac_check_lib_save_LIBS=$LIBS
9056 LIBS="-lOpenCL  $LIBS"
9057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9058 /* end confdefs.h.  */
9059
9060 /* Override any GCC internal prototype to avoid an error.
9061    Use char because int might match the return type of a GCC
9062    builtin and then its argument prototype would still apply.  */
9063 #ifdef __cplusplus
9064 extern "C"
9065 #endif
9066 char clGetPlatformInfo ();
9067 int
9068 main ()
9069 {
9070 return clGetPlatformInfo ();
9071   ;
9072   return 0;
9073 }
9074 _ACEOF
9075 if ac_fn_c_try_link "$LINENO"; then :
9076   ac_cv_lib_OpenCL_clGetPlatformInfo=yes
9077 else
9078   ac_cv_lib_OpenCL_clGetPlatformInfo=no
9079 fi
9080 rm -f core conftest.err conftest.$ac_objext \
9081     conftest$ac_exeext conftest.$ac_ext
9082 LIBS=$ac_check_lib_save_LIBS
9083 fi
9084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_OpenCL_clGetPlatformInfo" >&5
9085 $as_echo "$ac_cv_lib_OpenCL_clGetPlatformInfo" >&6; }
9086 if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" = xyes; then :
9087   LIBOPENCL="-lOpenCL"
9088
9089 fi
9090
9091 fi
9092 if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes; then :
9093   case "x$with_opencl" in
9094   x)   as_fn_append wine_notices "|OpenCL ${notice_platform}development files not found, OpenCL won't be supported." ;;
9095   xno) ;;
9096   *)   as_fn_error $? "OpenCL ${notice_platform}development files not found, OpenCL won't be supported.
9097 This is an error since --with-opencl was requested." "$LINENO" 5 ;;
9098 esac
9099 fi
9100 test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes && enable_opencl=${enable_opencl:-no}
9101
9102
9103 XML2LIBS=""
9104
9105 XML2INCL=""
9106
9107 XSLTINCL=""
9108
9109 if test "x$with_xml" != "xno"
9110 then
9111     ac_save_CPPFLAGS="$CPPFLAGS"
9112     if test "$PKG_CONFIG" != "false"
9113     then
9114         ac_xml_libs="`$PKG_CONFIG --libs libxml-2.0 2>/dev/null`"
9115         ac_xml_cflags="`$PKG_CONFIG --cflags libxml-2.0 2>/dev/null`"
9116     else
9117         ac_xml_libs="`xml2-config --libs 2>/dev/null`"
9118         ac_xml_cflags="`xml2-config --cflags  2>/dev/null`"
9119     fi
9120     CPPFLAGS="$CPPFLAGS $ac_xml_cflags"
9121     for ac_header in libxml/parser.h libxml/xmlsave.h libxml/SAX2.h
9122 do :
9123   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9124 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9125 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9126   cat >>confdefs.h <<_ACEOF
9127 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9128 _ACEOF
9129
9130 fi
9131
9132 done
9133
9134     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"
9135     then
9136         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseMemory in -lxml2" >&5
9137 $as_echo_n "checking for xmlParseMemory in -lxml2... " >&6; }
9138 if ${ac_cv_lib_xml2_xmlParseMemory+:} false; then :
9139   $as_echo_n "(cached) " >&6
9140 else
9141   ac_check_lib_save_LIBS=$LIBS
9142 LIBS="-lxml2 $ac_xml_libs $LIBS"
9143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9144 /* end confdefs.h.  */
9145
9146 /* Override any GCC internal prototype to avoid an error.
9147    Use char because int might match the return type of a GCC
9148    builtin and then its argument prototype would still apply.  */
9149 #ifdef __cplusplus
9150 extern "C"
9151 #endif
9152 char xmlParseMemory ();
9153 int
9154 main ()
9155 {
9156 return xmlParseMemory ();
9157   ;
9158   return 0;
9159 }
9160 _ACEOF
9161 if ac_fn_c_try_link "$LINENO"; then :
9162   ac_cv_lib_xml2_xmlParseMemory=yes
9163 else
9164   ac_cv_lib_xml2_xmlParseMemory=no
9165 fi
9166 rm -f core conftest.err conftest.$ac_objext \
9167     conftest$ac_exeext conftest.$ac_ext
9168 LIBS=$ac_check_lib_save_LIBS
9169 fi
9170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseMemory" >&5
9171 $as_echo "$ac_cv_lib_xml2_xmlParseMemory" >&6; }
9172 if test "x$ac_cv_lib_xml2_xmlParseMemory" = xyes; then :
9173
9174 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
9175
9176              XML2LIBS="$ac_xml_libs"
9177              XML2INCL="$ac_xml_cflags"
9178 fi
9179
9180         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlReadMemory in -lxml2" >&5
9181 $as_echo_n "checking for xmlReadMemory in -lxml2... " >&6; }
9182 if ${ac_cv_lib_xml2_xmlReadMemory+:} false; then :
9183   $as_echo_n "(cached) " >&6
9184 else
9185   ac_check_lib_save_LIBS=$LIBS
9186 LIBS="-lxml2 $ac_xml_libs $LIBS"
9187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9188 /* end confdefs.h.  */
9189
9190 /* Override any GCC internal prototype to avoid an error.
9191    Use char because int might match the return type of a GCC
9192    builtin and then its argument prototype would still apply.  */
9193 #ifdef __cplusplus
9194 extern "C"
9195 #endif
9196 char xmlReadMemory ();
9197 int
9198 main ()
9199 {
9200 return xmlReadMemory ();
9201   ;
9202   return 0;
9203 }
9204 _ACEOF
9205 if ac_fn_c_try_link "$LINENO"; then :
9206   ac_cv_lib_xml2_xmlReadMemory=yes
9207 else
9208   ac_cv_lib_xml2_xmlReadMemory=no
9209 fi
9210 rm -f core conftest.err conftest.$ac_objext \
9211     conftest$ac_exeext conftest.$ac_ext
9212 LIBS=$ac_check_lib_save_LIBS
9213 fi
9214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlReadMemory" >&5
9215 $as_echo "$ac_cv_lib_xml2_xmlReadMemory" >&6; }
9216 if test "x$ac_cv_lib_xml2_xmlReadMemory" = xyes; then :
9217
9218 $as_echo "#define HAVE_XMLREADMEMORY 1" >>confdefs.h
9219
9220 fi
9221
9222         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlNewDocPI in -lxml2" >&5
9223 $as_echo_n "checking for xmlNewDocPI in -lxml2... " >&6; }
9224 if ${ac_cv_lib_xml2_xmlNewDocPI+:} false; then :
9225   $as_echo_n "(cached) " >&6
9226 else
9227   ac_check_lib_save_LIBS=$LIBS
9228 LIBS="-lxml2 $ac_xml_libs $LIBS"
9229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9230 /* end confdefs.h.  */
9231
9232 /* Override any GCC internal prototype to avoid an error.
9233    Use char because int might match the return type of a GCC
9234    builtin and then its argument prototype would still apply.  */
9235 #ifdef __cplusplus
9236 extern "C"
9237 #endif
9238 char xmlNewDocPI ();
9239 int
9240 main ()
9241 {
9242 return xmlNewDocPI ();
9243   ;
9244   return 0;
9245 }
9246 _ACEOF
9247 if ac_fn_c_try_link "$LINENO"; then :
9248   ac_cv_lib_xml2_xmlNewDocPI=yes
9249 else
9250   ac_cv_lib_xml2_xmlNewDocPI=no
9251 fi
9252 rm -f core conftest.err conftest.$ac_objext \
9253     conftest$ac_exeext conftest.$ac_ext
9254 LIBS=$ac_check_lib_save_LIBS
9255 fi
9256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlNewDocPI" >&5
9257 $as_echo "$ac_cv_lib_xml2_xmlNewDocPI" >&6; }
9258 if test "x$ac_cv_lib_xml2_xmlNewDocPI" = xyes; then :
9259
9260 $as_echo "#define HAVE_XMLNEWDOCPI 1" >>confdefs.h
9261
9262 fi
9263
9264         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetParserStructuredErrors in -lxml2" >&5
9265 $as_echo_n "checking for xmlSchemaSetParserStructuredErrors in -lxml2... " >&6; }
9266 if ${ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors+:} false; then :
9267   $as_echo_n "(cached) " >&6
9268 else
9269   ac_check_lib_save_LIBS=$LIBS
9270 LIBS="-lxml2 $ac_xml_libs $LIBS"
9271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9272 /* end confdefs.h.  */
9273
9274 /* Override any GCC internal prototype to avoid an error.
9275    Use char because int might match the return type of a GCC
9276    builtin and then its argument prototype would still apply.  */
9277 #ifdef __cplusplus
9278 extern "C"
9279 #endif
9280 char xmlSchemaSetParserStructuredErrors ();
9281 int
9282 main ()
9283 {
9284 return xmlSchemaSetParserStructuredErrors ();
9285   ;
9286   return 0;
9287 }
9288 _ACEOF
9289 if ac_fn_c_try_link "$LINENO"; then :
9290   ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=yes
9291 else
9292   ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=no
9293 fi
9294 rm -f core conftest.err conftest.$ac_objext \
9295     conftest$ac_exeext conftest.$ac_ext
9296 LIBS=$ac_check_lib_save_LIBS
9297 fi
9298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&5
9299 $as_echo "$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&6; }
9300 if test "x$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" = xyes; then :
9301
9302 $as_echo "#define HAVE_XMLSCHEMASSETPARSERSTRUCTUREDERRORS 1" >>confdefs.h
9303
9304 fi
9305
9306         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetValidStructuredErrors in -lxml2" >&5
9307 $as_echo_n "checking for xmlSchemaSetValidStructuredErrors in -lxml2... " >&6; }
9308 if ${ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors+:} false; then :
9309   $as_echo_n "(cached) " >&6
9310 else
9311   ac_check_lib_save_LIBS=$LIBS
9312 LIBS="-lxml2 $ac_xml_libs $LIBS"
9313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9314 /* end confdefs.h.  */
9315
9316 /* Override any GCC internal prototype to avoid an error.
9317    Use char because int might match the return type of a GCC
9318    builtin and then its argument prototype would still apply.  */
9319 #ifdef __cplusplus
9320 extern "C"
9321 #endif
9322 char xmlSchemaSetValidStructuredErrors ();
9323 int
9324 main ()
9325 {
9326 return xmlSchemaSetValidStructuredErrors ();
9327   ;
9328   return 0;
9329 }
9330 _ACEOF
9331 if ac_fn_c_try_link "$LINENO"; then :
9332   ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=yes
9333 else
9334   ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=no
9335 fi
9336 rm -f core conftest.err conftest.$ac_objext \
9337     conftest$ac_exeext conftest.$ac_ext
9338 LIBS=$ac_check_lib_save_LIBS
9339 fi
9340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&5
9341 $as_echo "$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&6; }
9342 if test "x$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" = xyes; then :
9343
9344 $as_echo "#define HAVE_XMLSCHEMASSETVALIDSTRUCTUREDERRORS 1" >>confdefs.h
9345
9346 fi
9347
9348         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlFirstElementChild in -lxml2" >&5
9349 $as_echo_n "checking for xmlFirstElementChild in -lxml2... " >&6; }
9350 if ${ac_cv_lib_xml2_xmlFirstElementChild+:} false; then :
9351   $as_echo_n "(cached) " >&6
9352 else
9353   ac_check_lib_save_LIBS=$LIBS
9354 LIBS="-lxml2 $ac_xml_libs $LIBS"
9355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9356 /* end confdefs.h.  */
9357
9358 /* Override any GCC internal prototype to avoid an error.
9359    Use char because int might match the return type of a GCC
9360    builtin and then its argument prototype would still apply.  */
9361 #ifdef __cplusplus
9362 extern "C"
9363 #endif
9364 char xmlFirstElementChild ();
9365 int
9366 main ()
9367 {
9368 return xmlFirstElementChild ();
9369   ;
9370   return 0;
9371 }
9372 _ACEOF
9373 if ac_fn_c_try_link "$LINENO"; then :
9374   ac_cv_lib_xml2_xmlFirstElementChild=yes
9375 else
9376   ac_cv_lib_xml2_xmlFirstElementChild=no
9377 fi
9378 rm -f core conftest.err conftest.$ac_objext \
9379     conftest$ac_exeext conftest.$ac_ext
9380 LIBS=$ac_check_lib_save_LIBS
9381 fi
9382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlFirstElementChild" >&5
9383 $as_echo "$ac_cv_lib_xml2_xmlFirstElementChild" >&6; }
9384 if test "x$ac_cv_lib_xml2_xmlFirstElementChild" = xyes; then :
9385
9386 $as_echo "#define HAVE_XMLFIRSTELEMENTCHILD 1" >>confdefs.h
9387
9388 fi
9389
9390         ac_fn_c_check_type "$LINENO" "xmlDocProperties" "ac_cv_type_xmlDocProperties" "#include <libxml/tree.h>
9391 "
9392 if test "x$ac_cv_type_xmlDocProperties" = xyes; then :
9393
9394 $as_echo "#define HAVE_XMLDOC_PROPERTIES 1" >>confdefs.h
9395
9396 fi
9397
9398     fi
9399     CPPFLAGS="$ac_save_CPPFLAGS"
9400 fi
9401 if test "$ac_cv_lib_xml2_xmlParseMemory" != "yes"; then :
9402   case "x$with_xml" in
9403   x)   as_fn_append wine_warnings "|libxml2 ${notice_platform}development files not found (or too old), XML won't be supported." ;;
9404   xno) ;;
9405   *)   as_fn_error $? "libxml2 ${notice_platform}development files not found (or too old), XML won't be supported.
9406 This is an error since --with-xml was requested." "$LINENO" 5 ;;
9407 esac
9408 fi
9409
9410 if test "x$with_xslt" != "xno"
9411 then
9412     if test "$PKG_CONFIG" != "false"
9413     then
9414         ac_xslt_libs="`$PKG_CONFIG --libs libxslt 2>/dev/null`"
9415         ac_xslt_cflags="`$PKG_CONFIG --cflags libxslt 2>/dev/null`"
9416     else
9417         ac_xslt_libs="`xslt-config --libs 2>/dev/null`"
9418         ac_xslt_cflags="`xslt-config --cflags 2>/dev/null`"
9419     fi
9420     ac_save_CPPFLAGS="$CPPFLAGS"
9421     CPPFLAGS="$CPPFLAGS $ac_xslt_cflags"
9422     for ac_header in libxslt/pattern.h libxslt/transform.h
9423 do :
9424   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9425 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_LIBXSLT_PATTERN_H
9426 # include <libxslt/pattern.h>
9427 #endif
9428 "
9429 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9430   cat >>confdefs.h <<_ACEOF
9431 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9432 _ACEOF
9433
9434 fi
9435
9436 done
9437
9438     CPPFLAGS="$ac_save_CPPFLAGS"
9439     if test "$ac_cv_header_libxslt_transform_h" = "yes"
9440     then
9441         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lxslt" >&5
9442 $as_echo_n "checking for -lxslt... " >&6; }
9443 if ${ac_cv_lib_soname_xslt+:} false; then :
9444   $as_echo_n "(cached) " >&6
9445 else
9446   ac_check_soname_save_LIBS=$LIBS
9447 LIBS="-lxslt $ac_xslt_libs $LIBS"
9448   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9449 /* end confdefs.h.  */
9450
9451 /* Override any GCC internal prototype to avoid an error.
9452    Use char because int might match the return type of a GCC
9453    builtin and then its argument prototype would still apply.  */
9454 #ifdef __cplusplus
9455 extern "C"
9456 #endif
9457 char xsltCompilePattern ();
9458 int
9459 main ()
9460 {
9461 return xsltCompilePattern ();
9462   ;
9463   return 0;
9464 }
9465 _ACEOF
9466 if ac_fn_c_try_link "$LINENO"; then :
9467   case "$LIBEXT" in
9468     dll) ac_cv_lib_soname_xslt=`$ac_cv_path_LDD conftest.exe | grep "xslt" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9469     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'` ;;
9470     *) ac_cv_lib_soname_xslt=`$ac_cv_path_LDD conftest$ac_exeext | grep "libxslt\\.$LIBEXT" | sed -e "s/^.*\(libxslt\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
9471   esac
9472 fi
9473 rm -f core conftest.err conftest.$ac_objext \
9474     conftest$ac_exeext conftest.$ac_ext
9475   LIBS=$ac_check_soname_save_LIBS
9476 fi
9477 if test "x$ac_cv_lib_soname_xslt" = "x"; then :
9478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9479 $as_echo "not found" >&6; }
9480
9481 else
9482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_xslt" >&5
9483 $as_echo "$ac_cv_lib_soname_xslt" >&6; }
9484
9485 cat >>confdefs.h <<_ACEOF
9486 #define SONAME_LIBXSLT "$ac_cv_lib_soname_xslt"
9487 _ACEOF
9488
9489        XSLTINCL="$ac_xslt_cflags"
9490 fi
9491     fi
9492 fi
9493 if test "x$ac_cv_lib_soname_xslt" = "x"; then :
9494   case "x$with_xslt" in
9495   x)   as_fn_append wine_warnings "|libxslt ${notice_platform}development files not found, xslt won't be supported." ;;
9496   xno) ;;
9497   *)   as_fn_error $? "libxslt ${notice_platform}development files not found, xslt won't be supported.
9498 This is an error since --with-xslt was requested." "$LINENO" 5 ;;
9499 esac
9500 fi
9501
9502 if test "x$with_dbus" != "xno"
9503 then
9504     ac_save_CPPFLAGS="$CPPFLAGS"
9505     if test "$PKG_CONFIG" != "false"
9506     then
9507         ac_dbus_libs="`$PKG_CONFIG --libs dbus-1 2>/dev/null`"
9508         ac_dbus_cflags="`$PKG_CONFIG --cflags dbus-1 2>/dev/null`"
9509         CPPFLAGS="$CPPFLAGS $ac_dbus_cflags"
9510     fi
9511     ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
9512 if test "x$ac_cv_header_dbus_dbus_h" = xyes; then :
9513   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ldbus-1" >&5
9514 $as_echo_n "checking for -ldbus-1... " >&6; }
9515 if ${ac_cv_lib_soname_dbus_1+:} false; then :
9516   $as_echo_n "(cached) " >&6
9517 else
9518   ac_check_soname_save_LIBS=$LIBS
9519 LIBS="-ldbus-1 $ac_dbus_libs $LIBS"
9520   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9521 /* end confdefs.h.  */
9522
9523 /* Override any GCC internal prototype to avoid an error.
9524    Use char because int might match the return type of a GCC
9525    builtin and then its argument prototype would still apply.  */
9526 #ifdef __cplusplus
9527 extern "C"
9528 #endif
9529 char dbus_connection_close ();
9530 int
9531 main ()
9532 {
9533 return dbus_connection_close ();
9534   ;
9535   return 0;
9536 }
9537 _ACEOF
9538 if ac_fn_c_try_link "$LINENO"; then :
9539   case "$LIBEXT" in
9540     dll) ac_cv_lib_soname_dbus_1=`$ac_cv_path_LDD conftest.exe | grep "dbus-1" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9541     dylib) ac_cv_lib_soname_dbus_1=`otool -L conftest$ac_exeext | grep "libdbus-1\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libdbus-1\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
9542     *) ac_cv_lib_soname_dbus_1=`$ac_cv_path_LDD conftest$ac_exeext | grep "libdbus-1\\.$LIBEXT" | sed -e "s/^.*\(libdbus-1\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'` ;;
9543   esac
9544 fi
9545 rm -f core conftest.err conftest.$ac_objext \
9546     conftest$ac_exeext conftest.$ac_ext
9547   LIBS=$ac_check_soname_save_LIBS
9548 fi
9549 if test "x$ac_cv_lib_soname_dbus_1" = "x"; then :
9550   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9551 $as_echo "not found" >&6; }
9552
9553 else
9554   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_dbus_1" >&5
9555 $as_echo "$ac_cv_lib_soname_dbus_1" >&6; }
9556
9557 cat >>confdefs.h <<_ACEOF
9558 #define SONAME_LIBDBUS_1 "$ac_cv_lib_soname_dbus_1"
9559 _ACEOF
9560
9561        DBUSINCL="$ac_dbus_cflags"
9562
9563 fi
9564 fi
9565
9566
9567     CPPFLAGS="$ac_save_CPPFLAGS"
9568 fi
9569 if test "x$ac_cv_lib_soname_dbus_1" = "x" -a \
9570                             "x$ac_cv_header_DiskArbitration_DiskArbitration_h" != "xyes"; then :
9571   case "x$with_dbus" in
9572   x)   as_fn_append wine_notices "|libdbus ${notice_platform}development files not found, no dynamic device support." ;;
9573   xno) ;;
9574   *)   as_fn_error $? "libdbus ${notice_platform}development files not found, no dynamic device support.
9575 This is an error since --with-dbus was requested." "$LINENO" 5 ;;
9576 esac
9577 fi
9578
9579 if test "x$with_hal" != "xno" -a "x$ac_cv_lib_soname_dbus_1" != x
9580 then
9581     ac_save_CPPFLAGS="$CPPFLAGS"
9582     if test "$PKG_CONFIG" != "false"
9583     then
9584         ac_hal_libs="`$PKG_CONFIG --libs hal 2>/dev/null`"
9585         ac_hal_cflags="`$PKG_CONFIG --cflags hal 2>/dev/null`"
9586         CPPFLAGS="$CPPFLAGS $ac_hal_cflags"
9587     fi
9588     ac_fn_c_check_header_mongrel "$LINENO" "hal/libhal.h" "ac_cv_header_hal_libhal_h" "$ac_includes_default"
9589 if test "x$ac_cv_header_hal_libhal_h" = xyes; then :
9590   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lhal" >&5
9591 $as_echo_n "checking for -lhal... " >&6; }
9592 if ${ac_cv_lib_soname_hal+:} false; then :
9593   $as_echo_n "(cached) " >&6
9594 else
9595   ac_check_soname_save_LIBS=$LIBS
9596 LIBS="-lhal $ac_hal_libs $LIBS"
9597   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9598 /* end confdefs.h.  */
9599
9600 /* Override any GCC internal prototype to avoid an error.
9601    Use char because int might match the return type of a GCC
9602    builtin and then its argument prototype would still apply.  */
9603 #ifdef __cplusplus
9604 extern "C"
9605 #endif
9606 char libhal_ctx_new ();
9607 int
9608 main ()
9609 {
9610 return libhal_ctx_new ();
9611   ;
9612   return 0;
9613 }
9614 _ACEOF
9615 if ac_fn_c_try_link "$LINENO"; then :
9616   case "$LIBEXT" in
9617     dll) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest.exe | grep "hal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9618     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'` ;;
9619     *) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest$ac_exeext | grep "libhal\\.$LIBEXT" | sed -e "s/^.*\(libhal\.$LIBEXT[^     ]*\).*$/\1/"';2,$d'` ;;
9620   esac
9621 fi
9622 rm -f core conftest.err conftest.$ac_objext \
9623     conftest$ac_exeext conftest.$ac_ext
9624   LIBS=$ac_check_soname_save_LIBS
9625 fi
9626 if test "x$ac_cv_lib_soname_hal" = "x"; then :
9627   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9628 $as_echo "not found" >&6; }
9629
9630 else
9631   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_hal" >&5
9632 $as_echo "$ac_cv_lib_soname_hal" >&6; }
9633
9634 cat >>confdefs.h <<_ACEOF
9635 #define SONAME_LIBHAL "$ac_cv_lib_soname_hal"
9636 _ACEOF
9637
9638        HALINCL="$ac_hal_cflags"
9639
9640 fi
9641 fi
9642
9643
9644     CPPFLAGS="$ac_save_CPPFLAGS"
9645     if test "x$ac_cv_lib_soname_hal" = "x" -a \
9646                                "x$ac_cv_header_DiskArbitration_DiskArbitration_h" != "xyes"; then :
9647   case "x$with_hal" in
9648   x)   as_fn_append wine_notices "|libhal ${notice_platform}development files not found, no legacy dynamic device support." ;;
9649   xno) ;;
9650   *)   as_fn_error $? "libhal ${notice_platform}development files not found, no legacy dynamic device support.
9651 This is an error since --with-hal was requested." "$LINENO" 5 ;;
9652 esac
9653 fi
9654 fi
9655
9656 if test "x$with_gnutls" != "xno"
9657 then
9658     ac_save_CPPFLAGS="$CPPFLAGS"
9659     if test "$PKG_CONFIG" != "false"
9660     then
9661         ac_gnutls_libs="`$PKG_CONFIG --libs gnutls 2>/dev/null`"
9662         ac_gnutls_cflags="`$PKG_CONFIG --cflags gnutls 2>/dev/null`"
9663         CPPFLAGS="$CPPFLAGS $ac_gnutls_cflags"
9664     fi
9665     ac_fn_c_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default"
9666 if test "x$ac_cv_header_gnutls_gnutls_h" = xyes; then :
9667   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9668 /* end confdefs.h.  */
9669 #include <gnutls/gnutls.h>
9670 int
9671 main ()
9672 {
9673 static typeof(gnutls_mac_get_key_size) *func; if (func) return 0;
9674   ;
9675   return 0;
9676 }
9677 _ACEOF
9678 if ac_fn_c_try_compile "$LINENO"; then :
9679   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgnutls" >&5
9680 $as_echo_n "checking for -lgnutls... " >&6; }
9681 if ${ac_cv_lib_soname_gnutls+:} false; then :
9682   $as_echo_n "(cached) " >&6
9683 else
9684   ac_check_soname_save_LIBS=$LIBS
9685 LIBS="-lgnutls $ac_gnutls_libs $LIBS"
9686   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9687 /* end confdefs.h.  */
9688
9689 /* Override any GCC internal prototype to avoid an error.
9690    Use char because int might match the return type of a GCC
9691    builtin and then its argument prototype would still apply.  */
9692 #ifdef __cplusplus
9693 extern "C"
9694 #endif
9695 char gnutls_global_init ();
9696 int
9697 main ()
9698 {
9699 return gnutls_global_init ();
9700   ;
9701   return 0;
9702 }
9703 _ACEOF
9704 if ac_fn_c_try_link "$LINENO"; then :
9705   case "$LIBEXT" in
9706     dll) ac_cv_lib_soname_gnutls=`$ac_cv_path_LDD conftest.exe | grep "gnutls" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9707     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'` ;;
9708     *) ac_cv_lib_soname_gnutls=`$ac_cv_path_LDD conftest$ac_exeext | grep "libgnutls\\.$LIBEXT" | sed -e "s/^.*\(libgnutls\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'` ;;
9709   esac
9710 fi
9711 rm -f core conftest.err conftest.$ac_objext \
9712     conftest$ac_exeext conftest.$ac_ext
9713   LIBS=$ac_check_soname_save_LIBS
9714 fi
9715 if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
9716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9717 $as_echo "not found" >&6; }
9718
9719 else
9720   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gnutls" >&5
9721 $as_echo "$ac_cv_lib_soname_gnutls" >&6; }
9722
9723 cat >>confdefs.h <<_ACEOF
9724 #define SONAME_LIBGNUTLS "$ac_cv_lib_soname_gnutls"
9725 _ACEOF
9726
9727        GNUTLSINCL="$ac_gnutls_cflags"
9728
9729 fi
9730 fi
9731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9732 fi
9733
9734
9735     CPPFLAGS="$ac_save_CPPFLAGS"
9736 fi
9737 if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
9738   case "x$with_gnutls" in
9739   x)   as_fn_append wine_notices "|libgnutls ${notice_platform}development files not found, no schannel support." ;;
9740   xno) ;;
9741   *)   as_fn_error $? "libgnutls ${notice_platform}development files not found, no schannel support.
9742 This is an error since --with-gnutls was requested." "$LINENO" 5 ;;
9743 esac
9744 fi
9745
9746 CURSESLIBS=""
9747 if test "$ac_cv_header_ncurses_h" = "yes"
9748 then
9749     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lncurses" >&5
9750 $as_echo_n "checking for -lncurses... " >&6; }
9751 if ${ac_cv_lib_soname_ncurses+:} false; then :
9752   $as_echo_n "(cached) " >&6
9753 else
9754   ac_check_soname_save_LIBS=$LIBS
9755 LIBS="-lncurses  $LIBS"
9756   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9757 /* end confdefs.h.  */
9758
9759 /* Override any GCC internal prototype to avoid an error.
9760    Use char because int might match the return type of a GCC
9761    builtin and then its argument prototype would still apply.  */
9762 #ifdef __cplusplus
9763 extern "C"
9764 #endif
9765 char waddch ();
9766 int
9767 main ()
9768 {
9769 return waddch ();
9770   ;
9771   return 0;
9772 }
9773 _ACEOF
9774 if ac_fn_c_try_link "$LINENO"; then :
9775   case "$LIBEXT" in
9776     dll) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest.exe | grep "ncurses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9777     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'` ;;
9778     *) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest$ac_exeext | grep "libncurses\\.$LIBEXT" | sed -e "s/^.*\(libncurses\.$LIBEXT[^         ]*\).*$/\1/"';2,$d'` ;;
9779   esac
9780 fi
9781 rm -f core conftest.err conftest.$ac_objext \
9782     conftest$ac_exeext conftest.$ac_ext
9783   LIBS=$ac_check_soname_save_LIBS
9784 fi
9785 if test "x$ac_cv_lib_soname_ncurses" = "x"; then :
9786   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9787 $as_echo "not found" >&6; }
9788
9789 else
9790   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ncurses" >&5
9791 $as_echo "$ac_cv_lib_soname_ncurses" >&6; }
9792
9793 cat >>confdefs.h <<_ACEOF
9794 #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
9795 _ACEOF
9796
9797        CURSESLIBS="-lncurses"
9798 fi
9799 elif test "$ac_cv_header_curses_h" = "yes"
9800 then
9801     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcurses" >&5
9802 $as_echo_n "checking for -lcurses... " >&6; }
9803 if ${ac_cv_lib_soname_curses+:} false; then :
9804   $as_echo_n "(cached) " >&6
9805 else
9806   ac_check_soname_save_LIBS=$LIBS
9807 LIBS="-lcurses  $LIBS"
9808   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9809 /* end confdefs.h.  */
9810
9811 /* Override any GCC internal prototype to avoid an error.
9812    Use char because int might match the return type of a GCC
9813    builtin and then its argument prototype would still apply.  */
9814 #ifdef __cplusplus
9815 extern "C"
9816 #endif
9817 char waddch ();
9818 int
9819 main ()
9820 {
9821 return waddch ();
9822   ;
9823   return 0;
9824 }
9825 _ACEOF
9826 if ac_fn_c_try_link "$LINENO"; then :
9827   case "$LIBEXT" in
9828     dll) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest.exe | grep "curses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9829     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'` ;;
9830     *) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcurses\\.$LIBEXT" | sed -e "s/^.*\(libcurses\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'` ;;
9831   esac
9832 fi
9833 rm -f core conftest.err conftest.$ac_objext \
9834     conftest$ac_exeext conftest.$ac_ext
9835   LIBS=$ac_check_soname_save_LIBS
9836 fi
9837 if test "x$ac_cv_lib_soname_curses" = "x"; then :
9838   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9839 $as_echo "not found" >&6; }
9840
9841 else
9842   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_curses" >&5
9843 $as_echo "$ac_cv_lib_soname_curses" >&6; }
9844
9845 cat >>confdefs.h <<_ACEOF
9846 #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
9847 _ACEOF
9848
9849        CURSESLIBS="-lcurses"
9850 fi
9851 fi
9852 ac_save_LIBS="$LIBS"
9853 LIBS="$LIBS $CURSESLIBS"
9854 for ac_func in mousemask
9855 do :
9856   ac_fn_c_check_func "$LINENO" "mousemask" "ac_cv_func_mousemask"
9857 if test "x$ac_cv_func_mousemask" = xyes; then :
9858   cat >>confdefs.h <<_ACEOF
9859 #define HAVE_MOUSEMASK 1
9860 _ACEOF
9861
9862 fi
9863 done
9864
9865 LIBS="$ac_save_LIBS"
9866 if test "x$ac_cv_lib_soname_curses$ac_cv_lib_soname_ncurses" = "x"; then :
9867   case "x$with_curses" in
9868   x)   as_fn_append wine_notices "|lib(n)curses ${notice_platform}development files not found, curses won't be supported." ;;
9869   xno) ;;
9870   *)   as_fn_error $? "lib(n)curses ${notice_platform}development files not found, curses won't be supported.
9871 This is an error since --with-curses was requested." "$LINENO" 5 ;;
9872 esac
9873 fi
9874
9875 if test "x$with_sane" != "xno"
9876 then
9877     ac_save_CPPFLAGS="$CPPFLAGS"
9878     # Extract the first word of "sane-config", so it can be a program name with args.
9879 set dummy sane-config; ac_word=$2
9880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9881 $as_echo_n "checking for $ac_word... " >&6; }
9882 if ${ac_cv_prog_sane_devel+:} false; then :
9883   $as_echo_n "(cached) " >&6
9884 else
9885   if test -n "$sane_devel"; then
9886   ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
9887 else
9888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9889 for as_dir in $PATH
9890 do
9891   IFS=$as_save_IFS
9892   test -z "$as_dir" && as_dir=.
9893     for ac_exec_ext in '' $ac_executable_extensions; do
9894   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9895     ac_cv_prog_sane_devel="sane-config"
9896     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9897     break 2
9898   fi
9899 done
9900   done
9901 IFS=$as_save_IFS
9902
9903   test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
9904 fi
9905 fi
9906 sane_devel=$ac_cv_prog_sane_devel
9907 if test -n "$sane_devel"; then
9908   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sane_devel" >&5
9909 $as_echo "$sane_devel" >&6; }
9910 else
9911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9912 $as_echo "no" >&6; }
9913 fi
9914
9915
9916     if test "$sane_devel" != "no"
9917     then
9918         ac_sane_incl="`$sane_devel --cflags`"
9919         ac_sane_libs="`$sane_devel --ldflags`"
9920         CPPFLAGS="$CPPFLAGS $ac_sane_incl"
9921     fi
9922     ac_fn_c_check_header_mongrel "$LINENO" "sane/sane.h" "ac_cv_header_sane_sane_h" "$ac_includes_default"
9923 if test "x$ac_cv_header_sane_sane_h" = xyes; then :
9924   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lsane" >&5
9925 $as_echo_n "checking for -lsane... " >&6; }
9926 if ${ac_cv_lib_soname_sane+:} false; then :
9927   $as_echo_n "(cached) " >&6
9928 else
9929   ac_check_soname_save_LIBS=$LIBS
9930 LIBS="-lsane $ac_sane_libs $LIBS"
9931   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9932 /* end confdefs.h.  */
9933
9934 /* Override any GCC internal prototype to avoid an error.
9935    Use char because int might match the return type of a GCC
9936    builtin and then its argument prototype would still apply.  */
9937 #ifdef __cplusplus
9938 extern "C"
9939 #endif
9940 char sane_init ();
9941 int
9942 main ()
9943 {
9944 return sane_init ();
9945   ;
9946   return 0;
9947 }
9948 _ACEOF
9949 if ac_fn_c_try_link "$LINENO"; then :
9950   case "$LIBEXT" in
9951     dll) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest.exe | grep "sane" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9952     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'` ;;
9953     *) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest$ac_exeext | grep "libsane\\.$LIBEXT" | sed -e "s/^.*\(libsane\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
9954   esac
9955 fi
9956 rm -f core conftest.err conftest.$ac_objext \
9957     conftest$ac_exeext conftest.$ac_ext
9958   LIBS=$ac_check_soname_save_LIBS
9959 fi
9960 if test "x$ac_cv_lib_soname_sane" = "x"; then :
9961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9962 $as_echo "not found" >&6; }
9963
9964 else
9965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_sane" >&5
9966 $as_echo "$ac_cv_lib_soname_sane" >&6; }
9967
9968 cat >>confdefs.h <<_ACEOF
9969 #define SONAME_LIBSANE "$ac_cv_lib_soname_sane"
9970 _ACEOF
9971
9972        SANEINCL="$ac_sane_incl"
9973
9974 fi
9975 fi
9976
9977
9978     CPPFLAGS="$ac_save_CPPFLAGS"
9979 fi
9980 if test "x$ac_cv_lib_soname_sane" = "x"; then :
9981   case "x$with_sane" in
9982   x)   as_fn_append wine_notices "|libsane ${notice_platform}development files not found, scanners won't be supported." ;;
9983   xno) ;;
9984   *)   as_fn_error $? "libsane ${notice_platform}development files not found, scanners won't be supported.
9985 This is an error since --with-sane was requested." "$LINENO" 5 ;;
9986 esac
9987 fi
9988
9989 if test "x$with_v4l" != "xno"
9990 then
9991     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lv4l1" >&5
9992 $as_echo_n "checking for -lv4l1... " >&6; }
9993 if ${ac_cv_lib_soname_v4l1+:} false; then :
9994   $as_echo_n "(cached) " >&6
9995 else
9996   ac_check_soname_save_LIBS=$LIBS
9997 LIBS="-lv4l1  $LIBS"
9998   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9999 /* end confdefs.h.  */
10000
10001 /* Override any GCC internal prototype to avoid an error.
10002    Use char because int might match the return type of a GCC
10003    builtin and then its argument prototype would still apply.  */
10004 #ifdef __cplusplus
10005 extern "C"
10006 #endif
10007 char v4l1_open ();
10008 int
10009 main ()
10010 {
10011 return v4l1_open ();
10012   ;
10013   return 0;
10014 }
10015 _ACEOF
10016 if ac_fn_c_try_link "$LINENO"; then :
10017   case "$LIBEXT" in
10018     dll) ac_cv_lib_soname_v4l1=`$ac_cv_path_LDD conftest.exe | grep "v4l1" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10019     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'` ;;
10020     *) ac_cv_lib_soname_v4l1=`$ac_cv_path_LDD conftest$ac_exeext | grep "libv4l1\\.$LIBEXT" | sed -e "s/^.*\(libv4l1\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
10021   esac
10022 fi
10023 rm -f core conftest.err conftest.$ac_objext \
10024     conftest$ac_exeext conftest.$ac_ext
10025   LIBS=$ac_check_soname_save_LIBS
10026 fi
10027 if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
10028   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10029 $as_echo "not found" >&6; }
10030
10031 else
10032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_v4l1" >&5
10033 $as_echo "$ac_cv_lib_soname_v4l1" >&6; }
10034
10035 cat >>confdefs.h <<_ACEOF
10036 #define SONAME_LIBV4L1 "$ac_cv_lib_soname_v4l1"
10037 _ACEOF
10038
10039
10040 fi
10041 fi
10042 if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
10043   case "x$with_v4l" in
10044   x)   as_fn_append wine_notices "|libv4l ${notice_platform}development files not found." ;;
10045   xno) ;;
10046   *)   as_fn_error $? "libv4l ${notice_platform}development files not found.
10047 This is an error since --with-v4l was requested." "$LINENO" 5 ;;
10048 esac
10049 fi
10050
10051 if test "x$with_gphoto" != "xno"
10052 then
10053     ac_save_CPPFLAGS="$CPPFLAGS"
10054     # Extract the first word of "gphoto2-config", so it can be a program name with args.
10055 set dummy gphoto2-config; ac_word=$2
10056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10057 $as_echo_n "checking for $ac_word... " >&6; }
10058 if ${ac_cv_prog_gphoto2_devel+:} false; then :
10059   $as_echo_n "(cached) " >&6
10060 else
10061   if test -n "$gphoto2_devel"; then
10062   ac_cv_prog_gphoto2_devel="$gphoto2_devel" # Let the user override the test.
10063 else
10064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10065 for as_dir in $PATH
10066 do
10067   IFS=$as_save_IFS
10068   test -z "$as_dir" && as_dir=.
10069     for ac_exec_ext in '' $ac_executable_extensions; do
10070   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10071     ac_cv_prog_gphoto2_devel="gphoto2-config"
10072     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10073     break 2
10074   fi
10075 done
10076   done
10077 IFS=$as_save_IFS
10078
10079   test -z "$ac_cv_prog_gphoto2_devel" && ac_cv_prog_gphoto2_devel="no"
10080 fi
10081 fi
10082 gphoto2_devel=$ac_cv_prog_gphoto2_devel
10083 if test -n "$gphoto2_devel"; then
10084   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gphoto2_devel" >&5
10085 $as_echo "$gphoto2_devel" >&6; }
10086 else
10087   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10088 $as_echo "no" >&6; }
10089 fi
10090
10091
10092     # Extract the first word of "gphoto2-port-config", so it can be a program name with args.
10093 set dummy gphoto2-port-config; ac_word=$2
10094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10095 $as_echo_n "checking for $ac_word... " >&6; }
10096 if ${ac_cv_prog_gphoto2port_devel+:} false; then :
10097   $as_echo_n "(cached) " >&6
10098 else
10099   if test -n "$gphoto2port_devel"; then
10100   ac_cv_prog_gphoto2port_devel="$gphoto2port_devel" # Let the user override the test.
10101 else
10102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10103 for as_dir in $PATH
10104 do
10105   IFS=$as_save_IFS
10106   test -z "$as_dir" && as_dir=.
10107     for ac_exec_ext in '' $ac_executable_extensions; do
10108   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10109     ac_cv_prog_gphoto2port_devel="gphoto2-port-config"
10110     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10111     break 2
10112   fi
10113 done
10114   done
10115 IFS=$as_save_IFS
10116
10117   test -z "$ac_cv_prog_gphoto2port_devel" && ac_cv_prog_gphoto2port_devel="no"
10118 fi
10119 fi
10120 gphoto2port_devel=$ac_cv_prog_gphoto2port_devel
10121 if test -n "$gphoto2port_devel"; then
10122   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gphoto2port_devel" >&5
10123 $as_echo "$gphoto2port_devel" >&6; }
10124 else
10125   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10126 $as_echo "no" >&6; }
10127 fi
10128
10129
10130     if test "$gphoto2_devel" != "no" -a "$gphoto2port_devel" != "no"
10131     then
10132         ac_gphoto2_incl="`$gphoto2_devel --cflags` `$gphoto2port_devel --cflags`"
10133         ac_gphoto2_libs=""
10134         for i in `$gphoto2_devel --libs` `$gphoto2port_devel --libs`
10135         do
10136             case "$i" in
10137             -L/usr/lib|-L/usr/lib64) ;;
10138             -L*|-l*) ac_gphoto2_libs="$ac_gphoto2_libs $i";;
10139             esac
10140         done
10141         CPPFLAGS="$CPPFLAGS $ac_gphoto2_incl"
10142     fi
10143     ac_gphoto2_libs=${ac_gphoto2_libs:-"-lgphoto2"}
10144     ac_fn_c_check_header_mongrel "$LINENO" "gphoto2-camera.h" "ac_cv_header_gphoto2_camera_h" "$ac_includes_default"
10145 if test "x$ac_cv_header_gphoto2_camera_h" = xyes; then :
10146   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gp_camera_new in -lgphoto2" >&5
10147 $as_echo_n "checking for gp_camera_new in -lgphoto2... " >&6; }
10148 if ${ac_cv_lib_gphoto2_gp_camera_new+:} false; then :
10149   $as_echo_n "(cached) " >&6
10150 else
10151   ac_check_lib_save_LIBS=$LIBS
10152 LIBS="-lgphoto2 $ac_gphoto2_libs $LIBS"
10153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10154 /* end confdefs.h.  */
10155
10156 /* Override any GCC internal prototype to avoid an error.
10157    Use char because int might match the return type of a GCC
10158    builtin and then its argument prototype would still apply.  */
10159 #ifdef __cplusplus
10160 extern "C"
10161 #endif
10162 char gp_camera_new ();
10163 int
10164 main ()
10165 {
10166 return gp_camera_new ();
10167   ;
10168   return 0;
10169 }
10170 _ACEOF
10171 if ac_fn_c_try_link "$LINENO"; then :
10172   ac_cv_lib_gphoto2_gp_camera_new=yes
10173 else
10174   ac_cv_lib_gphoto2_gp_camera_new=no
10175 fi
10176 rm -f core conftest.err conftest.$ac_objext \
10177     conftest$ac_exeext conftest.$ac_ext
10178 LIBS=$ac_check_lib_save_LIBS
10179 fi
10180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gphoto2_gp_camera_new" >&5
10181 $as_echo "$ac_cv_lib_gphoto2_gp_camera_new" >&6; }
10182 if test "x$ac_cv_lib_gphoto2_gp_camera_new" = xyes; then :
10183
10184 $as_echo "#define HAVE_GPHOTO2 1" >>confdefs.h
10185
10186                                    GPHOTO2LIBS="$ac_gphoto2_libs"
10187
10188                                    GPHOTO2INCL="$ac_gphoto2_incl"
10189
10190 fi
10191
10192 fi
10193
10194
10195     CPPFLAGS="$ac_save_CPPFLAGS"
10196 fi
10197 if test "$ac_cv_lib_gphoto2_gp_camera_new" != "yes"; then :
10198   case "x$with_gphoto" in
10199   x)   as_fn_append wine_notices "|libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported." ;;
10200   xno) ;;
10201   *)   as_fn_error $? "libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported.
10202 This is an error since --with-gphoto was requested." "$LINENO" 5 ;;
10203 esac
10204 fi
10205
10206
10207 if test "$ac_cv_header_resolv_h" = "yes"
10208 then
10209     ac_save_LIBS="$LIBS"
10210     for lib in '' -lresolv
10211     do
10212       LIBS="$lib $ac_save_LIBS"
10213       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10214 /* end confdefs.h.  */
10215 #ifdef HAVE_NETINET_IN_H
10216 #include <netinet/in.h>
10217 #endif
10218 #include <resolv.h>
10219 int
10220 main ()
10221 {
10222 res_query("foo",ns_c_in,0,0,0);
10223   ;
10224   return 0;
10225 }
10226 _ACEOF
10227 if ac_fn_c_try_link "$LINENO"; then :
10228
10229 $as_echo "#define HAVE_RESOLV 1" >>confdefs.h
10230
10231          RESOLVLIBS="$lib"
10232
10233 fi
10234 rm -f core conftest.err conftest.$ac_objext \
10235     conftest$ac_exeext conftest.$ac_ext
10236       if test "${RESOLVLIBS+set}" = set; then
10237         break
10238       fi
10239     done
10240     LIBS="$ac_save_LIBS"
10241 fi
10242
10243 LCMSLIBS=""
10244
10245 if test "$ac_cv_header_lcms_h" = "yes" -o "$ac_cv_header_lcms_lcms_h" = "yes"
10246 then
10247     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromFile in -llcms" >&5
10248 $as_echo_n "checking for cmsOpenProfileFromFile in -llcms... " >&6; }
10249 if ${ac_cv_lib_lcms_cmsOpenProfileFromFile+:} false; then :
10250   $as_echo_n "(cached) " >&6
10251 else
10252   ac_check_lib_save_LIBS=$LIBS
10253 LIBS="-llcms  $LIBS"
10254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10255 /* end confdefs.h.  */
10256
10257 /* Override any GCC internal prototype to avoid an error.
10258    Use char because int might match the return type of a GCC
10259    builtin and then its argument prototype would still apply.  */
10260 #ifdef __cplusplus
10261 extern "C"
10262 #endif
10263 char cmsOpenProfileFromFile ();
10264 int
10265 main ()
10266 {
10267 return cmsOpenProfileFromFile ();
10268   ;
10269   return 0;
10270 }
10271 _ACEOF
10272 if ac_fn_c_try_link "$LINENO"; then :
10273   ac_cv_lib_lcms_cmsOpenProfileFromFile=yes
10274 else
10275   ac_cv_lib_lcms_cmsOpenProfileFromFile=no
10276 fi
10277 rm -f core conftest.err conftest.$ac_objext \
10278     conftest$ac_exeext conftest.$ac_ext
10279 LIBS=$ac_check_lib_save_LIBS
10280 fi
10281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsOpenProfileFromFile" >&5
10282 $as_echo "$ac_cv_lib_lcms_cmsOpenProfileFromFile" >&6; }
10283 if test "x$ac_cv_lib_lcms_cmsOpenProfileFromFile" = xyes; then :
10284
10285 $as_echo "#define HAVE_LCMS 1" >>confdefs.h
10286
10287          LCMSLIBS="-llcms"
10288 fi
10289
10290 fi
10291 if test "$ac_cv_lib_lcms_cmsOpenProfileFromFile" != "yes"; then :
10292   case "x$with_cms" in
10293   x)   as_fn_append wine_notices "|liblcms ${notice_platform}development files not found, Color Management won't be supported." ;;
10294   xno) ;;
10295   *)   as_fn_error $? "liblcms ${notice_platform}development files not found, Color Management won't be supported.
10296 This is an error since --with-cms was requested." "$LINENO" 5 ;;
10297 esac
10298 fi
10299
10300 if test "x$with_freetype" != "xno"
10301 then
10302     for ac_prog in freetype-config freetype2-config
10303 do
10304   # Extract the first word of "$ac_prog", so it can be a program name with args.
10305 set dummy $ac_prog; ac_word=$2
10306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10307 $as_echo_n "checking for $ac_word... " >&6; }
10308 if ${ac_cv_prog_ft_devel+:} false; then :
10309   $as_echo_n "(cached) " >&6
10310 else
10311   if test -n "$ft_devel"; then
10312   ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
10313 else
10314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10315 for as_dir in $PATH
10316 do
10317   IFS=$as_save_IFS
10318   test -z "$as_dir" && as_dir=.
10319     for ac_exec_ext in '' $ac_executable_extensions; do
10320   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10321     ac_cv_prog_ft_devel="$ac_prog"
10322     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10323     break 2
10324   fi
10325 done
10326   done
10327 IFS=$as_save_IFS
10328
10329 fi
10330 fi
10331 ft_devel=$ac_cv_prog_ft_devel
10332 if test -n "$ft_devel"; then
10333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ft_devel" >&5
10334 $as_echo "$ft_devel" >&6; }
10335 else
10336   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10337 $as_echo "no" >&6; }
10338 fi
10339
10340
10341   test -n "$ft_devel" && break
10342 done
10343 test -n "$ft_devel" || ft_devel="no"
10344
10345     if test "$ft_devel" != "no"
10346     then
10347         ac_freetype_incl=`$ft_devel --cflags`
10348         ac_freetype_libs=`$ft_devel --libs`
10349     fi
10350     ac_freetype_libs=${ac_freetype_libs:-"-lfreetype"}
10351     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfreetype" >&5
10352 $as_echo_n "checking for -lfreetype... " >&6; }
10353 if ${ac_cv_lib_soname_freetype+:} false; then :
10354   $as_echo_n "(cached) " >&6
10355 else
10356   ac_check_soname_save_LIBS=$LIBS
10357 LIBS="-lfreetype $ac_freetype_libs $LIBS"
10358   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10359 /* end confdefs.h.  */
10360
10361 /* Override any GCC internal prototype to avoid an error.
10362    Use char because int might match the return type of a GCC
10363    builtin and then its argument prototype would still apply.  */
10364 #ifdef __cplusplus
10365 extern "C"
10366 #endif
10367 char FT_Init_FreeType ();
10368 int
10369 main ()
10370 {
10371 return FT_Init_FreeType ();
10372   ;
10373   return 0;
10374 }
10375 _ACEOF
10376 if ac_fn_c_try_link "$LINENO"; then :
10377   case "$LIBEXT" in
10378     dll) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest.exe | grep "freetype" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10379     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'` ;;
10380     *) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfreetype\\.$LIBEXT" | sed -e "s/^.*\(libfreetype\.$LIBEXT[^      ]*\).*$/\1/"';2,$d'` ;;
10381   esac
10382 fi
10383 rm -f core conftest.err conftest.$ac_objext \
10384     conftest$ac_exeext conftest.$ac_ext
10385   LIBS=$ac_check_soname_save_LIBS
10386 fi
10387 if test "x$ac_cv_lib_soname_freetype" = "x"; then :
10388   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10389 $as_echo "not found" >&6; }
10390        ft_lib=no
10391 else
10392   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_freetype" >&5
10393 $as_echo "$ac_cv_lib_soname_freetype" >&6; }
10394
10395 cat >>confdefs.h <<_ACEOF
10396 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
10397 _ACEOF
10398
10399        ft_lib=yes
10400 fi
10401     if test "$ft_lib" = "yes"
10402     then
10403         ac_save_CPPFLAGS="$CPPFLAGS"
10404         CPPFLAGS="$ac_freetype_incl $CPPFLAGS"
10405         for ac_header in ft2build.h \
10406                          freetype/freetype.h \
10407                          freetype/ftglyph.h \
10408                          freetype/fttypes.h \
10409                          freetype/tttables.h \
10410                          freetype/ftsnames.h \
10411                          freetype/ttnameid.h \
10412                          freetype/ftoutln.h \
10413                          freetype/ftwinfnt.h \
10414                          freetype/ftmodapi.h \
10415                          freetype/ftlcdfil.h
10416 do :
10417   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10418 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_FT2BUILD_H
10419                           # include <ft2build.h>
10420                           #endif
10421 "
10422 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10423   cat >>confdefs.h <<_ACEOF
10424 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10425 _ACEOF
10426
10427 fi
10428
10429 done
10430
10431         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10432 /* end confdefs.h.  */
10433 #include <ft2build.h>
10434                     #include <freetype/fttrigon.h>
10435 _ACEOF
10436 if ac_fn_c_try_cpp "$LINENO"; then :
10437
10438 $as_echo "#define HAVE_FREETYPE_FTTRIGON_H 1" >>confdefs.h
10439
10440                     wine_cv_fttrigon=yes
10441 else
10442   wine_cv_fttrigon=no
10443 fi
10444 rm -f conftest.err conftest.i conftest.$ac_ext
10445         ac_fn_c_check_type "$LINENO" "FT_TrueTypeEngineType" "ac_cv_type_FT_TrueTypeEngineType" "#include <freetype/ftmodapi.h>
10446 "
10447 if test "x$ac_cv_type_FT_TrueTypeEngineType" = xyes; then :
10448
10449 cat >>confdefs.h <<_ACEOF
10450 #define HAVE_FT_TRUETYPEENGINETYPE 1
10451 _ACEOF
10452
10453
10454 fi
10455
10456                 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
10457         then
10458
10459 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
10460
10461             FREETYPELIBS="$ac_freetype_libs"
10462
10463             FREETYPEINCL="$ac_freetype_incl"
10464
10465         fi
10466     fi
10467 fi
10468 if test "x$FREETYPELIBS" = "x"; then :
10469   case "x$with_freetype" in
10470   xno) ;;
10471   *)   as_fn_error $? "FreeType ${notice_platform}development files not found. Fonts will not be built.
10472 Use the --without-freetype option if you really want this." "$LINENO" 5 ;;
10473 esac
10474 fi
10475 test "x$FREETYPELIBS" = "x" && enable_fonts=${enable_fonts:-no}
10476
10477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for parport header/ppdev.h" >&5
10478 $as_echo_n "checking for parport header/ppdev.h... " >&6; }
10479 if ${ac_cv_c_ppdev+:} false; then :
10480   $as_echo_n "(cached) " >&6
10481 else
10482   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10483 /* end confdefs.h.  */
10484 #ifdef HAVE_SYS_IOCTL_H
10485 # include <sys/ioctl.h>
10486 #endif
10487 #include <linux/ppdev.h>
10488 int
10489 main ()
10490 {
10491 ioctl (1,PPCLAIM,0)
10492   ;
10493   return 0;
10494 }
10495 _ACEOF
10496 if ac_fn_c_try_compile "$LINENO"; then :
10497   ac_cv_c_ppdev="yes"
10498 else
10499   ac_cv_c_ppdev="no"
10500 fi
10501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10502 fi
10503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_ppdev" >&5
10504 $as_echo "$ac_cv_c_ppdev" >&6; }
10505 if test "$ac_cv_c_ppdev" = "yes"
10506 then
10507
10508 $as_echo "#define HAVE_PPDEV 1" >>confdefs.h
10509
10510 fi
10511
10512 ac_wine_check_funcs_save_LIBS="$LIBS"
10513 LIBS="$LIBS $LIBPTHREAD"
10514 for ac_func in \
10515         pthread_attr_get_np \
10516         pthread_getattr_np \
10517         pthread_get_stackaddr_np \
10518         pthread_get_stacksize_np
10519 do :
10520   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10521 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10522 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10523   cat >>confdefs.h <<_ACEOF
10524 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10525 _ACEOF
10526
10527 fi
10528 done
10529
10530 LIBS="$ac_wine_check_funcs_save_LIBS"
10531
10532 if test "$ac_cv_header_zlib_h" = "yes"
10533 then
10534     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
10535 $as_echo_n "checking for inflate in -lz... " >&6; }
10536 if ${ac_cv_lib_z_inflate+:} false; then :
10537   $as_echo_n "(cached) " >&6
10538 else
10539   ac_check_lib_save_LIBS=$LIBS
10540 LIBS="-lz  $LIBS"
10541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10542 /* end confdefs.h.  */
10543
10544 /* Override any GCC internal prototype to avoid an error.
10545    Use char because int might match the return type of a GCC
10546    builtin and then its argument prototype would still apply.  */
10547 #ifdef __cplusplus
10548 extern "C"
10549 #endif
10550 char inflate ();
10551 int
10552 main ()
10553 {
10554 return inflate ();
10555   ;
10556   return 0;
10557 }
10558 _ACEOF
10559 if ac_fn_c_try_link "$LINENO"; then :
10560   ac_cv_lib_z_inflate=yes
10561 else
10562   ac_cv_lib_z_inflate=no
10563 fi
10564 rm -f core conftest.err conftest.$ac_objext \
10565     conftest$ac_exeext conftest.$ac_ext
10566 LIBS=$ac_check_lib_save_LIBS
10567 fi
10568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
10569 $as_echo "$ac_cv_lib_z_inflate" >&6; }
10570 if test "x$ac_cv_lib_z_inflate" = xyes; then :
10571
10572 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
10573
10574                             ZLIB="-lz"
10575
10576 fi
10577
10578 fi
10579 if test "x$ZLIB" = "x"; then :
10580   case "x$with_zlib" in
10581   x)   as_fn_append wine_notices "|libz ${notice_platform}development files not found, data compression won't be supported." ;;
10582   xno) ;;
10583   *)   as_fn_error $? "libz ${notice_platform}development files not found, data compression won't be supported.
10584 This is an error since --with-zlib was requested." "$LINENO" 5 ;;
10585 esac
10586 fi
10587
10588 if test "x$enable_tools" != xno
10589 then
10590     if test "$ac_cv_header_gettext_po_h" = "yes"
10591     then
10592         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for po_message_msgctxt in -lgettextpo" >&5
10593 $as_echo_n "checking for po_message_msgctxt in -lgettextpo... " >&6; }
10594 if ${ac_cv_lib_gettextpo_po_message_msgctxt+:} false; then :
10595   $as_echo_n "(cached) " >&6
10596 else
10597   ac_check_lib_save_LIBS=$LIBS
10598 LIBS="-lgettextpo  $LIBS"
10599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10600 /* end confdefs.h.  */
10601
10602 /* Override any GCC internal prototype to avoid an error.
10603    Use char because int might match the return type of a GCC
10604    builtin and then its argument prototype would still apply.  */
10605 #ifdef __cplusplus
10606 extern "C"
10607 #endif
10608 char po_message_msgctxt ();
10609 int
10610 main ()
10611 {
10612 return po_message_msgctxt ();
10613   ;
10614   return 0;
10615 }
10616 _ACEOF
10617 if ac_fn_c_try_link "$LINENO"; then :
10618   ac_cv_lib_gettextpo_po_message_msgctxt=yes
10619 else
10620   ac_cv_lib_gettextpo_po_message_msgctxt=no
10621 fi
10622 rm -f core conftest.err conftest.$ac_objext \
10623     conftest$ac_exeext conftest.$ac_ext
10624 LIBS=$ac_check_lib_save_LIBS
10625 fi
10626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gettextpo_po_message_msgctxt" >&5
10627 $as_echo "$ac_cv_lib_gettextpo_po_message_msgctxt" >&6; }
10628 if test "x$ac_cv_lib_gettextpo_po_message_msgctxt" = xyes; then :
10629
10630 $as_echo "#define HAVE_LIBGETTEXTPO 1" >>confdefs.h
10631
10632                       LIBGETTEXTPO="-lgettextpo"
10633
10634 fi
10635
10636     fi
10637     test "x$with_gettextpo" != xyes || if test "x$LIBGETTEXTPO" = "x"; then :
10638   case "x$with_gettextpo" in
10639   x)   as_fn_append wine_notices "|GetText ${notice_platform}development files not found (or too old), po files can't be rebuilt." ;;
10640   xno) ;;
10641   *)   as_fn_error $? "GetText ${notice_platform}development files not found (or too old), po files can't be rebuilt.
10642 This is an error since --with-gettextpo was requested." "$LINENO" 5 ;;
10643 esac
10644 fi
10645 fi
10646
10647 if test "x$with_gstreamer" != "xno"
10648 then
10649     ac_save_CPPFLAGS="$CPPFLAGS"
10650     if test "$PKG_CONFIG" != "false"; then
10651         ac_gst_incl=""
10652         for i in `$PKG_CONFIG --cflags gstreamer-app-0.10 2>/dev/null`
10653         do
10654             case "$i" in
10655                 -I*) ac_gst_incl="$ac_gst_incl $i";;
10656             esac
10657         done
10658         ac_gst_libs="`$PKG_CONFIG --libs gstreamer-app-0.10 2>/dev/null`"
10659         CPPFLAGS="$CPPFLAGS $ac_gst_incl"
10660         ac_fn_c_check_header_mongrel "$LINENO" "gst/gstpad.h" "ac_cv_header_gst_gstpad_h" "$ac_includes_default"
10661 if test "x$ac_cv_header_gst_gstpad_h" = xyes; then :
10662   ac_fn_c_check_header_mongrel "$LINENO" "gst/app/gstappsink.h" "ac_cv_header_gst_app_gstappsink_h" "$ac_includes_default"
10663 if test "x$ac_cv_header_gst_app_gstappsink_h" = xyes; then :
10664   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gint64 defined by gst/app/gstappsink.h is indeed 64-bit" >&5
10665 $as_echo_n "checking whether gint64 defined by gst/app/gstappsink.h is indeed 64-bit... " >&6; }
10666               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10667 /* end confdefs.h.  */
10668 #include <gst/app/gstappsink.h>
10669 int
10670 main ()
10671 {
10672 static int a[sizeof(gint64) > 4 ? 1 : -1]; if (a[0]) return 0;
10673   ;
10674   return 0;
10675 }
10676 _ACEOF
10677 if ac_fn_c_try_compile "$LINENO"; then :
10678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10679 $as_echo "yes" >&6; }
10680                  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_pad_get_caps_reffed in -lgstreamer-0.10" >&5
10681 $as_echo_n "checking for gst_pad_get_caps_reffed in -lgstreamer-0.10... " >&6; }
10682 if ${ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed+:} false; then :
10683   $as_echo_n "(cached) " >&6
10684 else
10685   ac_check_lib_save_LIBS=$LIBS
10686 LIBS="-lgstreamer-0.10  $LIBS"
10687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10688 /* end confdefs.h.  */
10689
10690 /* Override any GCC internal prototype to avoid an error.
10691    Use char because int might match the return type of a GCC
10692    builtin and then its argument prototype would still apply.  */
10693 #ifdef __cplusplus
10694 extern "C"
10695 #endif
10696 char gst_pad_get_caps_reffed ();
10697 int
10698 main ()
10699 {
10700 return gst_pad_get_caps_reffed ();
10701   ;
10702   return 0;
10703 }
10704 _ACEOF
10705 if ac_fn_c_try_link "$LINENO"; then :
10706   ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=yes
10707 else
10708   ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=no
10709 fi
10710 rm -f core conftest.err conftest.$ac_objext \
10711     conftest$ac_exeext conftest.$ac_ext
10712 LIBS=$ac_check_lib_save_LIBS
10713 fi
10714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&5
10715 $as_echo "$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&6; }
10716 if test "x$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" = xyes; then :
10717   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_app_buffer_new in -lgstapp-0.10" >&5
10718 $as_echo_n "checking for gst_app_buffer_new in -lgstapp-0.10... " >&6; }
10719 if ${ac_cv_lib_gstapp_0_10_gst_app_buffer_new+:} false; then :
10720   $as_echo_n "(cached) " >&6
10721 else
10722   ac_check_lib_save_LIBS=$LIBS
10723 LIBS="-lgstapp-0.10 $ac_gst_libs $LIBS"
10724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10725 /* end confdefs.h.  */
10726
10727 /* Override any GCC internal prototype to avoid an error.
10728    Use char because int might match the return type of a GCC
10729    builtin and then its argument prototype would still apply.  */
10730 #ifdef __cplusplus
10731 extern "C"
10732 #endif
10733 char gst_app_buffer_new ();
10734 int
10735 main ()
10736 {
10737 return gst_app_buffer_new ();
10738   ;
10739   return 0;
10740 }
10741 _ACEOF
10742 if ac_fn_c_try_link "$LINENO"; then :
10743   ac_cv_lib_gstapp_0_10_gst_app_buffer_new=yes
10744 else
10745   ac_cv_lib_gstapp_0_10_gst_app_buffer_new=no
10746 fi
10747 rm -f core conftest.err conftest.$ac_objext \
10748     conftest$ac_exeext conftest.$ac_ext
10749 LIBS=$ac_check_lib_save_LIBS
10750 fi
10751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&5
10752 $as_echo "$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&6; }
10753 if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = xyes; then :
10754   GSTREAMER_LIBS="$ac_gst_libs"
10755
10756                        GSTREAMER_INCL="$ac_gst_incl"
10757
10758 fi
10759
10760 fi
10761
10762 else
10763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10764 $as_echo "no" >&6; }
10765 fi
10766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10767 fi
10768
10769
10770 fi
10771
10772
10773     fi
10774     CPPFLAGS="$ac_save_CPPFLAGS"
10775 fi
10776 if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" != xyes -a "x$ac_cv_header_QuickTime_ImageCompression_h" != xyes; then :
10777   case "x$with_gstreamer" in
10778   x)   as_fn_append wine_notices "|gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled" ;;
10779   xno) ;;
10780   *)   as_fn_error $? "gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled
10781 This is an error since --with-gstreamer was requested." "$LINENO" 5 ;;
10782 esac
10783 fi
10784 test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = xyes || enable_winegstreamer=${enable_winegstreamer:-no}
10785
10786 ALSALIBS=""
10787
10788 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
10789 then
10790     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_hw_params_get_access_mask in -lasound" >&5
10791 $as_echo_n "checking for snd_pcm_hw_params_get_access_mask in -lasound... " >&6; }
10792 if ${ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask+:} false; then :
10793   $as_echo_n "(cached) " >&6
10794 else
10795   ac_check_lib_save_LIBS=$LIBS
10796 LIBS="-lasound  $LIBS"
10797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10798 /* end confdefs.h.  */
10799
10800 /* Override any GCC internal prototype to avoid an error.
10801    Use char because int might match the return type of a GCC
10802    builtin and then its argument prototype would still apply.  */
10803 #ifdef __cplusplus
10804 extern "C"
10805 #endif
10806 char snd_pcm_hw_params_get_access_mask ();
10807 int
10808 main ()
10809 {
10810 return snd_pcm_hw_params_get_access_mask ();
10811   ;
10812   return 0;
10813 }
10814 _ACEOF
10815 if ac_fn_c_try_link "$LINENO"; then :
10816   ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=yes
10817 else
10818   ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=no
10819 fi
10820 rm -f core conftest.err conftest.$ac_objext \
10821     conftest$ac_exeext conftest.$ac_ext
10822 LIBS=$ac_check_lib_save_LIBS
10823 fi
10824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&5
10825 $as_echo "$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&6; }
10826 if test "x$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" = xyes; then :
10827   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10828 /* end confdefs.h.  */
10829 #ifdef HAVE_ALSA_ASOUNDLIB_H
10830 #include <alsa/asoundlib.h>
10831 #elif defined(HAVE_SYS_ASOUNDLIB_H)
10832 #include <sys/asoundlib.h>
10833 #endif
10834 int
10835 main ()
10836 {
10837 snd_pcm_hw_params_get_access_mask(NULL, NULL)
10838   ;
10839   return 0;
10840 }
10841 _ACEOF
10842 if ac_fn_c_try_compile "$LINENO"; then :
10843   ALSALIBS="-lasound"
10844 fi
10845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10846 fi
10847
10848 fi
10849
10850 if test "x$with_oss" != xno
10851 then
10852     ac_save_CPPFLAGS="$CPPFLAGS"
10853     if test -f /etc/oss.conf
10854     then
10855         . /etc/oss.conf
10856     fi
10857     ac_oss_incl="-I${OSSLIBDIR:-/usr/lib/oss}/include"
10858     CPPFLAGS="$CPPFLAGS $ac_oss_incl"
10859     ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
10860 if test "x$ac_cv_header_sys_soundcard_h" = xyes; then :
10861   ac_fn_c_check_member "$LINENO" "oss_sysinfo" "numaudioengines" "ac_cv_member_oss_sysinfo_numaudioengines" "#include <sys/soundcard.h>
10862 "
10863 if test "x$ac_cv_member_oss_sysinfo_numaudioengines" = xyes; then :
10864
10865 cat >>confdefs.h <<_ACEOF
10866 #define HAVE_OSS_SYSINFO_NUMAUDIOENGINES 1
10867 _ACEOF
10868
10869 OSS4INCL="$ac_oss_incl"
10870
10871 fi
10872
10873 fi
10874
10875
10876     CPPFLAGS="$ac_save_CPPFLAGS"
10877     if test "x$ac_cv_member_oss_sysinfo_numaudioengines" != xyes
10878     then
10879         as_fn_append wine_notices "|OSS sound system found but too old (OSSv4 needed), OSS won't be supported."
10880     fi
10881 fi
10882
10883
10884 if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes"
10885 then
10886     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcapi20" >&5
10887 $as_echo_n "checking for -lcapi20... " >&6; }
10888 if ${ac_cv_lib_soname_capi20+:} false; then :
10889   $as_echo_n "(cached) " >&6
10890 else
10891   ac_check_soname_save_LIBS=$LIBS
10892 LIBS="-lcapi20  $LIBS"
10893   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10894 /* end confdefs.h.  */
10895
10896 /* Override any GCC internal prototype to avoid an error.
10897    Use char because int might match the return type of a GCC
10898    builtin and then its argument prototype would still apply.  */
10899 #ifdef __cplusplus
10900 extern "C"
10901 #endif
10902 char capi20_register ();
10903 int
10904 main ()
10905 {
10906 return capi20_register ();
10907   ;
10908   return 0;
10909 }
10910 _ACEOF
10911 if ac_fn_c_try_link "$LINENO"; then :
10912   case "$LIBEXT" in
10913     dll) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest.exe | grep "capi20" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10914     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'` ;;
10915     *) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcapi20\\.$LIBEXT" | sed -e "s/^.*\(libcapi20\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'` ;;
10916   esac
10917 fi
10918 rm -f core conftest.err conftest.$ac_objext \
10919     conftest$ac_exeext conftest.$ac_ext
10920   LIBS=$ac_check_soname_save_LIBS
10921 fi
10922 if test "x$ac_cv_lib_soname_capi20" = "x"; then :
10923   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10924 $as_echo "not found" >&6; }
10925
10926 else
10927   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_capi20" >&5
10928 $as_echo "$ac_cv_lib_soname_capi20" >&6; }
10929
10930 cat >>confdefs.h <<_ACEOF
10931 #define SONAME_LIBCAPI20 "$ac_cv_lib_soname_capi20"
10932 _ACEOF
10933
10934
10935 fi
10936 fi
10937 if test "x$ac_cv_lib_soname_capi20" = "x"; then :
10938   case "x$with_capi" in
10939   x)   as_fn_append wine_notices "|libcapi20 ${notice_platform}development files not found, ISDN won't be supported." ;;
10940   xno) ;;
10941   *)   as_fn_error $? "libcapi20 ${notice_platform}development files not found, ISDN won't be supported.
10942 This is an error since --with-capi was requested." "$LINENO" 5 ;;
10943 esac
10944 fi
10945
10946 CUPSINCL=""
10947
10948 if test "x$with_cups" != "xno"
10949 then
10950     ac_save_CPPFLAGS="$CPPFLAGS"
10951     ac_cups_cflags=`cups-config --cflags 2>/dev/null`
10952     ac_cups_libs=`cups-config --ldflags 2>/dev/null`
10953     CPPFLAGS="$CPPFLAGS $ac_cups_cflags"
10954     for ac_header in cups/cups.h
10955 do :
10956   ac_fn_c_check_header_mongrel "$LINENO" "cups/cups.h" "ac_cv_header_cups_cups_h" "$ac_includes_default"
10957 if test "x$ac_cv_header_cups_cups_h" = xyes; then :
10958   cat >>confdefs.h <<_ACEOF
10959 #define HAVE_CUPS_CUPS_H 1
10960 _ACEOF
10961  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcups" >&5
10962 $as_echo_n "checking for -lcups... " >&6; }
10963 if ${ac_cv_lib_soname_cups+:} false; then :
10964   $as_echo_n "(cached) " >&6
10965 else
10966   ac_check_soname_save_LIBS=$LIBS
10967 LIBS="-lcups $ac_cups_libs $LIBS"
10968   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10969 /* end confdefs.h.  */
10970
10971 /* Override any GCC internal prototype to avoid an error.
10972    Use char because int might match the return type of a GCC
10973    builtin and then its argument prototype would still apply.  */
10974 #ifdef __cplusplus
10975 extern "C"
10976 #endif
10977 char cupsGetDefault ();
10978 int
10979 main ()
10980 {
10981 return cupsGetDefault ();
10982   ;
10983   return 0;
10984 }
10985 _ACEOF
10986 if ac_fn_c_try_link "$LINENO"; then :
10987   case "$LIBEXT" in
10988     dll) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest.exe | grep "cups" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10989     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'` ;;
10990     *) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcups\\.$LIBEXT" | sed -e "s/^.*\(libcups\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
10991   esac
10992 fi
10993 rm -f core conftest.err conftest.$ac_objext \
10994     conftest$ac_exeext conftest.$ac_ext
10995   LIBS=$ac_check_soname_save_LIBS
10996 fi
10997 if test "x$ac_cv_lib_soname_cups" = "x"; then :
10998   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10999 $as_echo "not found" >&6; }
11000
11001 else
11002   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_cups" >&5
11003 $as_echo "$ac_cv_lib_soname_cups" >&6; }
11004
11005 cat >>confdefs.h <<_ACEOF
11006 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
11007 _ACEOF
11008
11009        CUPSINCL="$ac_cups_cflags"
11010 fi
11011 fi
11012
11013 done
11014
11015     CPPFLAGS="$ac_save_CPPFLAGS"
11016 fi
11017 if test "x$ac_cv_lib_soname_cups" = "x"; then :
11018   case "x$with_cups" in
11019   x)   as_fn_append wine_notices "|libcups ${notice_platform}development files not found, CUPS won't be supported." ;;
11020   xno) ;;
11021   *)   as_fn_error $? "libcups ${notice_platform}development files not found, CUPS won't be supported.
11022 This is an error since --with-cups was requested." "$LINENO" 5 ;;
11023 esac
11024 fi
11025
11026 if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
11027 then
11028     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
11029 $as_echo_n "checking for -lfontconfig... " >&6; }
11030 if ${ac_cv_lib_soname_fontconfig+:} false; then :
11031   $as_echo_n "(cached) " >&6
11032 else
11033   ac_check_soname_save_LIBS=$LIBS
11034 LIBS="-lfontconfig  $LIBS"
11035   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11036 /* end confdefs.h.  */
11037
11038 /* Override any GCC internal prototype to avoid an error.
11039    Use char because int might match the return type of a GCC
11040    builtin and then its argument prototype would still apply.  */
11041 #ifdef __cplusplus
11042 extern "C"
11043 #endif
11044 char FcInit ();
11045 int
11046 main ()
11047 {
11048 return FcInit ();
11049   ;
11050   return 0;
11051 }
11052 _ACEOF
11053 if ac_fn_c_try_link "$LINENO"; then :
11054   case "$LIBEXT" in
11055     dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11056     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'` ;;
11057     *) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'` ;;
11058   esac
11059 fi
11060 rm -f core conftest.err conftest.$ac_objext \
11061     conftest$ac_exeext conftest.$ac_ext
11062   LIBS=$ac_check_soname_save_LIBS
11063 fi
11064 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11065   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11066 $as_echo "not found" >&6; }
11067
11068 else
11069   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
11070 $as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
11071
11072 cat >>confdefs.h <<_ACEOF
11073 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
11074 _ACEOF
11075
11076
11077 fi
11078 elif test -n "$X_CFLAGS" -a "x$with_fontconfig" != "xno"
11079 then
11080         ac_save_CPPFLAGS="$CPPFLAGS"
11081     CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11082     $as_unset ac_cv_header_fontconfig_fontconfig_h
11083     for ac_header in fontconfig/fontconfig.h
11084 do :
11085   ac_fn_c_check_header_mongrel "$LINENO" "fontconfig/fontconfig.h" "ac_cv_header_fontconfig_fontconfig_h" "$ac_includes_default"
11086 if test "x$ac_cv_header_fontconfig_fontconfig_h" = xyes; then :
11087   cat >>confdefs.h <<_ACEOF
11088 #define HAVE_FONTCONFIG_FONTCONFIG_H 1
11089 _ACEOF
11090
11091 fi
11092
11093 done
11094
11095     CPPFLAGS="$ac_save_CPPFLAGS"
11096     if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
11097     then
11098         FONTCONFIGINCL="$X_CFLAGS"
11099
11100         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
11101 $as_echo_n "checking for -lfontconfig... " >&6; }
11102 if ${ac_cv_lib_soname_fontconfig+:} false; then :
11103   $as_echo_n "(cached) " >&6
11104 else
11105   ac_check_soname_save_LIBS=$LIBS
11106 LIBS="-lfontconfig $X_LIBS $LIBS"
11107   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11108 /* end confdefs.h.  */
11109
11110 /* Override any GCC internal prototype to avoid an error.
11111    Use char because int might match the return type of a GCC
11112    builtin and then its argument prototype would still apply.  */
11113 #ifdef __cplusplus
11114 extern "C"
11115 #endif
11116 char FcInit ();
11117 int
11118 main ()
11119 {
11120 return FcInit ();
11121   ;
11122   return 0;
11123 }
11124 _ACEOF
11125 if ac_fn_c_try_link "$LINENO"; then :
11126   case "$LIBEXT" in
11127     dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11128     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'` ;;
11129     *) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'` ;;
11130   esac
11131 fi
11132 rm -f core conftest.err conftest.$ac_objext \
11133     conftest$ac_exeext conftest.$ac_ext
11134   LIBS=$ac_check_soname_save_LIBS
11135 fi
11136 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11137   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11138 $as_echo "not found" >&6; }
11139
11140 else
11141   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
11142 $as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
11143
11144 cat >>confdefs.h <<_ACEOF
11145 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
11146 _ACEOF
11147
11148
11149 fi
11150     fi
11151 fi
11152 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11153   case "x$with_fontconfig" in
11154   x)   as_fn_append wine_notices "|fontconfig ${notice_platform}development files not found, fontconfig won't be supported." ;;
11155   xno) ;;
11156   *)   as_fn_error $? "fontconfig ${notice_platform}development files not found, fontconfig won't be supported.
11157 This is an error since --with-fontconfig was requested." "$LINENO" 5 ;;
11158 esac
11159 fi
11160
11161 if test "$ac_cv_header_openssl_err_h" = "yes" -a "$ac_cv_header_openssl_ssl_h" = "yes"
11162 then
11163     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lssl" >&5
11164 $as_echo_n "checking for -lssl... " >&6; }
11165 if ${ac_cv_lib_soname_ssl+:} false; then :
11166   $as_echo_n "(cached) " >&6
11167 else
11168   ac_check_soname_save_LIBS=$LIBS
11169 LIBS="-lssl  $LIBS"
11170   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11171 /* end confdefs.h.  */
11172
11173 /* Override any GCC internal prototype to avoid an error.
11174    Use char because int might match the return type of a GCC
11175    builtin and then its argument prototype would still apply.  */
11176 #ifdef __cplusplus
11177 extern "C"
11178 #endif
11179 char SSL_library_init ();
11180 int
11181 main ()
11182 {
11183 return SSL_library_init ();
11184   ;
11185   return 0;
11186 }
11187 _ACEOF
11188 if ac_fn_c_try_link "$LINENO"; then :
11189   case "$LIBEXT" in
11190     dll) ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest.exe | grep "ssl" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11191     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'` ;;
11192     *) ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep "libssl\\.$LIBEXT" | sed -e "s/^.*\(libssl\.$LIBEXT[^     ]*\).*$/\1/"';2,$d'` ;;
11193   esac
11194 fi
11195 rm -f core conftest.err conftest.$ac_objext \
11196     conftest$ac_exeext conftest.$ac_ext
11197   LIBS=$ac_check_soname_save_LIBS
11198 fi
11199 if test "x$ac_cv_lib_soname_ssl" = "x"; then :
11200   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11201 $as_echo "not found" >&6; }
11202
11203 else
11204   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ssl" >&5
11205 $as_echo "$ac_cv_lib_soname_ssl" >&6; }
11206
11207 cat >>confdefs.h <<_ACEOF
11208 #define SONAME_LIBSSL "$ac_cv_lib_soname_ssl"
11209 _ACEOF
11210
11211
11212 fi
11213     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcrypto" >&5
11214 $as_echo_n "checking for -lcrypto... " >&6; }
11215 if ${ac_cv_lib_soname_crypto+:} false; then :
11216   $as_echo_n "(cached) " >&6
11217 else
11218   ac_check_soname_save_LIBS=$LIBS
11219 LIBS="-lcrypto  $LIBS"
11220   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11221 /* end confdefs.h.  */
11222
11223 /* Override any GCC internal prototype to avoid an error.
11224    Use char because int might match the return type of a GCC
11225    builtin and then its argument prototype would still apply.  */
11226 #ifdef __cplusplus
11227 extern "C"
11228 #endif
11229 char BIO_new_socket ();
11230 int
11231 main ()
11232 {
11233 return BIO_new_socket ();
11234   ;
11235   return 0;
11236 }
11237 _ACEOF
11238 if ac_fn_c_try_link "$LINENO"; then :
11239   case "$LIBEXT" in
11240     dll) ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest.exe | grep "crypto" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11241     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'` ;;
11242     *) ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcrypto\\.$LIBEXT" | sed -e "s/^.*\(libcrypto\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'` ;;
11243   esac
11244 fi
11245 rm -f core conftest.err conftest.$ac_objext \
11246     conftest$ac_exeext conftest.$ac_ext
11247   LIBS=$ac_check_soname_save_LIBS
11248 fi
11249 if test "x$ac_cv_lib_soname_crypto" = "x"; then :
11250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11251 $as_echo "not found" >&6; }
11252
11253 else
11254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_crypto" >&5
11255 $as_echo "$ac_cv_lib_soname_crypto" >&6; }
11256
11257 cat >>confdefs.h <<_ACEOF
11258 #define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto"
11259 _ACEOF
11260
11261
11262 fi
11263 fi
11264 if test "x$ac_cv_lib_soname_ssl" = "x" -o "x$ac_cv_lib_soname_crypto" = "x"; then :
11265   case "x$with_openssl" in
11266   x)   as_fn_append wine_warnings "|OpenSSL ${notice_platform}development files not found, SSL won't be supported." ;;
11267   xno) ;;
11268   *)   as_fn_error $? "OpenSSL ${notice_platform}development files not found, SSL won't be supported.
11269 This is an error since --with-openssl was requested." "$LINENO" 5 ;;
11270 esac
11271 fi
11272
11273 if test "$ac_cv_header_gsm_h" = "yes" -o "$ac_cv_header_gsm_gsm_h" = "yes"
11274 then
11275     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgsm" >&5
11276 $as_echo_n "checking for -lgsm... " >&6; }
11277 if ${ac_cv_lib_soname_gsm+:} false; then :
11278   $as_echo_n "(cached) " >&6
11279 else
11280   ac_check_soname_save_LIBS=$LIBS
11281 LIBS="-lgsm  $LIBS"
11282   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11283 /* end confdefs.h.  */
11284
11285 /* Override any GCC internal prototype to avoid an error.
11286    Use char because int might match the return type of a GCC
11287    builtin and then its argument prototype would still apply.  */
11288 #ifdef __cplusplus
11289 extern "C"
11290 #endif
11291 char gsm_create ();
11292 int
11293 main ()
11294 {
11295 return gsm_create ();
11296   ;
11297   return 0;
11298 }
11299 _ACEOF
11300 if ac_fn_c_try_link "$LINENO"; then :
11301   case "$LIBEXT" in
11302     dll) ac_cv_lib_soname_gsm=`$ac_cv_path_LDD conftest.exe | grep "gsm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11303     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'` ;;
11304     *) ac_cv_lib_soname_gsm=`$ac_cv_path_LDD conftest$ac_exeext | grep "libgsm\\.$LIBEXT" | sed -e "s/^.*\(libgsm\.$LIBEXT[^     ]*\).*$/\1/"';2,$d'` ;;
11305   esac
11306 fi
11307 rm -f core conftest.err conftest.$ac_objext \
11308     conftest$ac_exeext conftest.$ac_ext
11309   LIBS=$ac_check_soname_save_LIBS
11310 fi
11311 if test "x$ac_cv_lib_soname_gsm" = "x"; then :
11312   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11313 $as_echo "not found" >&6; }
11314
11315 else
11316   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gsm" >&5
11317 $as_echo "$ac_cv_lib_soname_gsm" >&6; }
11318
11319 cat >>confdefs.h <<_ACEOF
11320 #define SONAME_LIBGSM "$ac_cv_lib_soname_gsm"
11321 _ACEOF
11322
11323
11324 fi
11325 fi
11326 if test "x$ac_cv_lib_soname_gsm" = "x"; then :
11327   case "x$with_gsm" in
11328   x)   as_fn_append wine_notices "|libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported." ;;
11329   xno) ;;
11330   *)   as_fn_error $? "libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported.
11331 This is an error since --with-gsm was requested." "$LINENO" 5 ;;
11332 esac
11333 fi
11334
11335 if test "$ac_cv_header_jpeglib_h" = "yes"
11336 then
11337     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ljpeg" >&5
11338 $as_echo_n "checking for -ljpeg... " >&6; }
11339 if ${ac_cv_lib_soname_jpeg+:} false; then :
11340   $as_echo_n "(cached) " >&6
11341 else
11342   ac_check_soname_save_LIBS=$LIBS
11343 LIBS="-ljpeg  $LIBS"
11344   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11345 /* end confdefs.h.  */
11346
11347 /* Override any GCC internal prototype to avoid an error.
11348    Use char because int might match the return type of a GCC
11349    builtin and then its argument prototype would still apply.  */
11350 #ifdef __cplusplus
11351 extern "C"
11352 #endif
11353 char jpeg_start_decompress ();
11354 int
11355 main ()
11356 {
11357 return jpeg_start_decompress ();
11358   ;
11359   return 0;
11360 }
11361 _ACEOF
11362 if ac_fn_c_try_link "$LINENO"; then :
11363   case "$LIBEXT" in
11364     dll) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest.exe | grep "jpeg" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11365     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'` ;;
11366     *) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest$ac_exeext | grep "libjpeg\\.$LIBEXT" | sed -e "s/^.*\(libjpeg\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
11367   esac
11368 fi
11369 rm -f core conftest.err conftest.$ac_objext \
11370     conftest$ac_exeext conftest.$ac_ext
11371   LIBS=$ac_check_soname_save_LIBS
11372 fi
11373 if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
11374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11375 $as_echo "not found" >&6; }
11376
11377 else
11378   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_jpeg" >&5
11379 $as_echo "$ac_cv_lib_soname_jpeg" >&6; }
11380
11381 cat >>confdefs.h <<_ACEOF
11382 #define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg"
11383 _ACEOF
11384
11385
11386 fi
11387 fi
11388 if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
11389   case "x$with_jpeg" in
11390   x)   as_fn_append wine_warnings "|libjpeg ${notice_platform}development files not found, JPEG won't be supported." ;;
11391   xno) ;;
11392   *)   as_fn_error $? "libjpeg ${notice_platform}development files not found, JPEG won't be supported.
11393 This is an error since --with-jpeg was requested." "$LINENO" 5 ;;
11394 esac
11395 fi
11396
11397 if test "$ac_cv_header_png_h" = "yes"
11398 then
11399     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
11400 $as_echo_n "checking for -lpng... " >&6; }
11401 if ${ac_cv_lib_soname_png+:} false; then :
11402   $as_echo_n "(cached) " >&6
11403 else
11404   ac_check_soname_save_LIBS=$LIBS
11405 LIBS="-lpng -lm -lz $LIBS"
11406   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11407 /* end confdefs.h.  */
11408
11409 /* Override any GCC internal prototype to avoid an error.
11410    Use char because int might match the return type of a GCC
11411    builtin and then its argument prototype would still apply.  */
11412 #ifdef __cplusplus
11413 extern "C"
11414 #endif
11415 char png_create_read_struct ();
11416 int
11417 main ()
11418 {
11419 return png_create_read_struct ();
11420   ;
11421   return 0;
11422 }
11423 _ACEOF
11424 if ac_fn_c_try_link "$LINENO"; then :
11425   case "$LIBEXT" in
11426     dll) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest.exe | grep "png" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11427     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'` ;;
11428     *) 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'` ;;
11429   esac
11430 fi
11431 rm -f core conftest.err conftest.$ac_objext \
11432     conftest$ac_exeext conftest.$ac_ext
11433   LIBS=$ac_check_soname_save_LIBS
11434 fi
11435 if test "x$ac_cv_lib_soname_png" = "x"; then :
11436   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11437 $as_echo "not found" >&6; }
11438
11439 else
11440   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
11441 $as_echo "$ac_cv_lib_soname_png" >&6; }
11442
11443 cat >>confdefs.h <<_ACEOF
11444 #define SONAME_LIBPNG "$ac_cv_lib_soname_png"
11445 _ACEOF
11446
11447
11448 fi
11449     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5
11450 $as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; }
11451 if ${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+:} false; then :
11452   $as_echo_n "(cached) " >&6
11453 else
11454   ac_check_lib_save_LIBS=$LIBS
11455 LIBS="-lpng -lm -lz $LIBS"
11456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11457 /* end confdefs.h.  */
11458
11459 /* Override any GCC internal prototype to avoid an error.
11460    Use char because int might match the return type of a GCC
11461    builtin and then its argument prototype would still apply.  */
11462 #ifdef __cplusplus
11463 extern "C"
11464 #endif
11465 char png_set_expand_gray_1_2_4_to_8 ();
11466 int
11467 main ()
11468 {
11469 return png_set_expand_gray_1_2_4_to_8 ();
11470   ;
11471   return 0;
11472 }
11473 _ACEOF
11474 if ac_fn_c_try_link "$LINENO"; then :
11475   ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes
11476 else
11477   ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no
11478 fi
11479 rm -f core conftest.err conftest.$ac_objext \
11480     conftest$ac_exeext conftest.$ac_ext
11481 LIBS=$ac_check_lib_save_LIBS
11482 fi
11483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5
11484 $as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; }
11485 if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = xyes; then :
11486
11487 $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
11488
11489
11490 fi
11491
11492 elif test -n "$X_CFLAGS" -a "x$with_png" != "xno"
11493 then
11494         ac_save_CPPFLAGS="$CPPFLAGS"
11495     CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11496     $as_unset ac_cv_header_png_h
11497     for ac_header in png.h
11498 do :
11499   ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
11500 if test "x$ac_cv_header_png_h" = xyes; then :
11501   cat >>confdefs.h <<_ACEOF
11502 #define HAVE_PNG_H 1
11503 _ACEOF
11504
11505 fi
11506
11507 done
11508
11509     CPPFLAGS="$ac_save_CPPFLAGS"
11510     if test "$ac_cv_header_png_h" = "yes"
11511     then
11512         PNGINCL="$X_CFLAGS"
11513
11514         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
11515 $as_echo_n "checking for -lpng... " >&6; }
11516 if ${ac_cv_lib_soname_png+:} false; then :
11517   $as_echo_n "(cached) " >&6
11518 else
11519   ac_check_soname_save_LIBS=$LIBS
11520 LIBS="-lpng $X_LIBS -lm -lz $LIBS"
11521   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11522 /* end confdefs.h.  */
11523
11524 /* Override any GCC internal prototype to avoid an error.
11525    Use char because int might match the return type of a GCC
11526    builtin and then its argument prototype would still apply.  */
11527 #ifdef __cplusplus
11528 extern "C"
11529 #endif
11530 char png_create_read_struct ();
11531 int
11532 main ()
11533 {
11534 return png_create_read_struct ();
11535   ;
11536   return 0;
11537 }
11538 _ACEOF
11539 if ac_fn_c_try_link "$LINENO"; then :
11540   case "$LIBEXT" in
11541     dll) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest.exe | grep "png" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11542     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'` ;;
11543     *) 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'` ;;
11544   esac
11545 fi
11546 rm -f core conftest.err conftest.$ac_objext \
11547     conftest$ac_exeext conftest.$ac_ext
11548   LIBS=$ac_check_soname_save_LIBS
11549 fi
11550 if test "x$ac_cv_lib_soname_png" = "x"; then :
11551   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11552 $as_echo "not found" >&6; }
11553
11554 else
11555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
11556 $as_echo "$ac_cv_lib_soname_png" >&6; }
11557
11558 cat >>confdefs.h <<_ACEOF
11559 #define SONAME_LIBPNG "$ac_cv_lib_soname_png"
11560 _ACEOF
11561
11562
11563 fi
11564         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5
11565 $as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; }
11566 if ${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+:} false; then :
11567   $as_echo_n "(cached) " >&6
11568 else
11569   ac_check_lib_save_LIBS=$LIBS
11570 LIBS="-lpng $X_LIBS -lm -lz $LIBS"
11571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11572 /* end confdefs.h.  */
11573
11574 /* Override any GCC internal prototype to avoid an error.
11575    Use char because int might match the return type of a GCC
11576    builtin and then its argument prototype would still apply.  */
11577 #ifdef __cplusplus
11578 extern "C"
11579 #endif
11580 char png_set_expand_gray_1_2_4_to_8 ();
11581 int
11582 main ()
11583 {
11584 return png_set_expand_gray_1_2_4_to_8 ();
11585   ;
11586   return 0;
11587 }
11588 _ACEOF
11589 if ac_fn_c_try_link "$LINENO"; then :
11590   ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes
11591 else
11592   ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no
11593 fi
11594 rm -f core conftest.err conftest.$ac_objext \
11595     conftest$ac_exeext conftest.$ac_ext
11596 LIBS=$ac_check_lib_save_LIBS
11597 fi
11598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5
11599 $as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; }
11600 if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = xyes; then :
11601   $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
11602
11603 fi
11604
11605     fi
11606 fi
11607 if test "x$ac_cv_lib_soname_png" = "x"; then :
11608   case "x$with_png" in
11609   x)   as_fn_append wine_warnings "|libpng ${notice_platform}development files not found, PNG won't be supported." ;;
11610   xno) ;;
11611   *)   as_fn_error $? "libpng ${notice_platform}development files not found, PNG won't be supported.
11612 This is an error since --with-png was requested." "$LINENO" 5 ;;
11613 esac
11614 fi
11615
11616 if test "$ac_cv_header_tiffio_h" = "yes"
11617 then
11618     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ltiff" >&5
11619 $as_echo_n "checking for -ltiff... " >&6; }
11620 if ${ac_cv_lib_soname_tiff+:} false; then :
11621   $as_echo_n "(cached) " >&6
11622 else
11623   ac_check_soname_save_LIBS=$LIBS
11624 LIBS="-ltiff  $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 TIFFClientOpen ();
11635 int
11636 main ()
11637 {
11638 return TIFFClientOpen ();
11639   ;
11640   return 0;
11641 }
11642 _ACEOF
11643 if ac_fn_c_try_link "$LINENO"; then :
11644   case "$LIBEXT" in
11645     dll) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest.exe | grep "tiff" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11646     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'` ;;
11647     *) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest$ac_exeext | grep "libtiff\\.$LIBEXT" | sed -e "s/^.*\(libtiff\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
11648   esac
11649 fi
11650 rm -f core conftest.err conftest.$ac_objext \
11651     conftest$ac_exeext conftest.$ac_ext
11652   LIBS=$ac_check_soname_save_LIBS
11653 fi
11654 if test "x$ac_cv_lib_soname_tiff" = "x"; then :
11655   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11656 $as_echo "not found" >&6; }
11657
11658 else
11659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_tiff" >&5
11660 $as_echo "$ac_cv_lib_soname_tiff" >&6; }
11661
11662 cat >>confdefs.h <<_ACEOF
11663 #define SONAME_LIBTIFF "$ac_cv_lib_soname_tiff"
11664 _ACEOF
11665
11666
11667 fi
11668 fi
11669 if test "x$ac_cv_lib_soname_tiff" = "x"; then :
11670   case "x$with_tiff" in
11671   x)   as_fn_append wine_notices "|libtiff ${notice_platform}development files not found, TIFF won't be supported." ;;
11672   xno) ;;
11673   *)   as_fn_error $? "libtiff ${notice_platform}development files not found, TIFF won't be supported.
11674 This is an error since --with-tiff was requested." "$LINENO" 5 ;;
11675 esac
11676 fi
11677
11678 if test "$ac_cv_header_mpg123_h" = "yes"
11679 then
11680     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpg123_feed in -lmpg123" >&5
11681 $as_echo_n "checking for mpg123_feed in -lmpg123... " >&6; }
11682 if ${ac_cv_lib_mpg123_mpg123_feed+:} false; then :
11683   $as_echo_n "(cached) " >&6
11684 else
11685   ac_check_lib_save_LIBS=$LIBS
11686 LIBS="-lmpg123  $LIBS"
11687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11688 /* end confdefs.h.  */
11689
11690 /* Override any GCC internal prototype to avoid an error.
11691    Use char because int might match the return type of a GCC
11692    builtin and then its argument prototype would still apply.  */
11693 #ifdef __cplusplus
11694 extern "C"
11695 #endif
11696 char mpg123_feed ();
11697 int
11698 main ()
11699 {
11700 return mpg123_feed ();
11701   ;
11702   return 0;
11703 }
11704 _ACEOF
11705 if ac_fn_c_try_link "$LINENO"; then :
11706   ac_cv_lib_mpg123_mpg123_feed=yes
11707 else
11708   ac_cv_lib_mpg123_mpg123_feed=no
11709 fi
11710 rm -f core conftest.err conftest.$ac_objext \
11711     conftest$ac_exeext conftest.$ac_ext
11712 LIBS=$ac_check_lib_save_LIBS
11713 fi
11714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpg123_mpg123_feed" >&5
11715 $as_echo "$ac_cv_lib_mpg123_mpg123_feed" >&6; }
11716 if test "x$ac_cv_lib_mpg123_mpg123_feed" = xyes; then :
11717   LIBMPG123="-lmpg123"
11718
11719 fi
11720
11721 fi
11722 if test "x$ac_cv_lib_mpg123_mpg123_feed" != xyes -a x"$ac_cv_header_CoreAudio_CoreAudio_h" != xyes; then :
11723   case "x$with_mpg123" in
11724   x)   as_fn_append wine_notices "|libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported." ;;
11725   xno) ;;
11726   *)   as_fn_error $? "libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported.
11727 This is an error since --with-mpg123 was requested." "$LINENO" 5 ;;
11728 esac
11729 fi
11730 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}
11731
11732 if test "$ac_cv_header_AL_al_h" = "yes"
11733 then
11734     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lopenal" >&5
11735 $as_echo_n "checking for -lopenal... " >&6; }
11736 if ${ac_cv_lib_soname_openal+:} false; then :
11737   $as_echo_n "(cached) " >&6
11738 else
11739   ac_check_soname_save_LIBS=$LIBS
11740 LIBS="-lopenal  $LIBS"
11741   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11742 /* end confdefs.h.  */
11743
11744 /* Override any GCC internal prototype to avoid an error.
11745    Use char because int might match the return type of a GCC
11746    builtin and then its argument prototype would still apply.  */
11747 #ifdef __cplusplus
11748 extern "C"
11749 #endif
11750 char alGetSource3i ();
11751 int
11752 main ()
11753 {
11754 return alGetSource3i ();
11755   ;
11756   return 0;
11757 }
11758 _ACEOF
11759 if ac_fn_c_try_link "$LINENO"; then :
11760   case "$LIBEXT" in
11761     dll) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest.exe | grep "openal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11762     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'` ;;
11763     *) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest$ac_exeext | grep "libopenal\\.$LIBEXT" | sed -e "s/^.*\(libopenal\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'` ;;
11764   esac
11765 fi
11766 rm -f core conftest.err conftest.$ac_objext \
11767     conftest$ac_exeext conftest.$ac_ext
11768   LIBS=$ac_check_soname_save_LIBS
11769 fi
11770 if test "x$ac_cv_lib_soname_openal" = "x"; then :
11771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11772 $as_echo "not found" >&6; }
11773
11774 else
11775   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_openal" >&5
11776 $as_echo "$ac_cv_lib_soname_openal" >&6; }
11777
11778 cat >>confdefs.h <<_ACEOF
11779 #define SONAME_LIBOPENAL "$ac_cv_lib_soname_openal"
11780 _ACEOF
11781
11782        LIBOPENAL="-lopenal"
11783
11784                       ac_cv_lib_openal=yes
11785
11786 cat >>confdefs.h <<_ACEOF
11787 #define HAVE_OPENAL 1
11788 _ACEOF
11789
11790 fi
11791 fi
11792 if test "x$ac_cv_lib_openal" != xyes; then :
11793   case "x$with_openal" in
11794   x)   as_fn_append wine_notices "|libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported." ;;
11795   xno) ;;
11796   *)   as_fn_error $? "libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported.
11797 This is an error since --with-openal was requested." "$LINENO" 5 ;;
11798 esac
11799 fi
11800 test "x$ac_cv_lib_openal" = xyes || enable_openal32=${enable_openal32:-no}
11801
11802 if test "$ac_cv_header_kstat_h" = "yes"
11803 then
11804     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
11805 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
11806 if ${ac_cv_lib_kstat_kstat_open+:} false; then :
11807   $as_echo_n "(cached) " >&6
11808 else
11809   ac_check_lib_save_LIBS=$LIBS
11810 LIBS="-lkstat  $LIBS"
11811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11812 /* end confdefs.h.  */
11813
11814 /* Override any GCC internal prototype to avoid an error.
11815    Use char because int might match the return type of a GCC
11816    builtin and then its argument prototype would still apply.  */
11817 #ifdef __cplusplus
11818 extern "C"
11819 #endif
11820 char kstat_open ();
11821 int
11822 main ()
11823 {
11824 return kstat_open ();
11825   ;
11826   return 0;
11827 }
11828 _ACEOF
11829 if ac_fn_c_try_link "$LINENO"; then :
11830   ac_cv_lib_kstat_kstat_open=yes
11831 else
11832   ac_cv_lib_kstat_kstat_open=no
11833 fi
11834 rm -f core conftest.err conftest.$ac_objext \
11835     conftest$ac_exeext conftest.$ac_ext
11836 LIBS=$ac_check_lib_save_LIBS
11837 fi
11838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
11839 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
11840 if test "x$ac_cv_lib_kstat_kstat_open" = xyes; then :
11841
11842 $as_echo "#define HAVE_LIBKSTAT 1" >>confdefs.h
11843
11844                   LIBKSTAT="-lkstat"
11845
11846 fi
11847
11848 fi
11849
11850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lodbc" >&5
11851 $as_echo_n "checking for -lodbc... " >&6; }
11852 if ${ac_cv_lib_soname_odbc+:} false; then :
11853   $as_echo_n "(cached) " >&6
11854 else
11855   ac_check_soname_save_LIBS=$LIBS
11856 LIBS="-lodbc  $LIBS"
11857   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11858 /* end confdefs.h.  */
11859
11860 /* Override any GCC internal prototype to avoid an error.
11861    Use char because int might match the return type of a GCC
11862    builtin and then its argument prototype would still apply.  */
11863 #ifdef __cplusplus
11864 extern "C"
11865 #endif
11866 char SQLConnect ();
11867 int
11868 main ()
11869 {
11870 return SQLConnect ();
11871   ;
11872   return 0;
11873 }
11874 _ACEOF
11875 if ac_fn_c_try_link "$LINENO"; then :
11876   case "$LIBEXT" in
11877     dll) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest.exe | grep "odbc" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11878     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'` ;;
11879     *) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest$ac_exeext | grep "libodbc\\.$LIBEXT" | sed -e "s/^.*\(libodbc\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
11880   esac
11881 fi
11882 rm -f core conftest.err conftest.$ac_objext \
11883     conftest$ac_exeext conftest.$ac_ext
11884   LIBS=$ac_check_soname_save_LIBS
11885 fi
11886 if test "x$ac_cv_lib_soname_odbc" = "x"; then :
11887   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11888 $as_echo "not found" >&6; }
11889        cat >>confdefs.h <<_ACEOF
11890 #define SONAME_LIBODBC "libodbc.$LIBEXT"
11891 _ACEOF
11892
11893 else
11894   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_odbc" >&5
11895 $as_echo "$ac_cv_lib_soname_odbc" >&6; }
11896
11897 cat >>confdefs.h <<_ACEOF
11898 #define SONAME_LIBODBC "$ac_cv_lib_soname_odbc"
11899 _ACEOF
11900
11901
11902 fi
11903
11904 test -n "$ALSALIBS" || enable_winealsa_drv=${enable_winealsa_drv:-no}
11905 test -n "$COREAUDIO" || enable_winecoreaudio_drv=${enable_winecoreaudio_drv:-no}
11906 test "x$ac_cv_member_oss_sysinfo_numaudioengines" = xyes || enable_wineoss_drv=${enable_wineoss_drv:-no}
11907 test "$ac_cv_header_linux_joystick_h" = "yes" || enable_winejoystick_drv=${enable_winejoystick_drv:-no}
11908
11909 if test "x$ALSALIBS$COREAUDIO" = "x" -a \
11910         "x$ac_cv_member_oss_sysinfo_numaudioengines" != xyes -a \
11911         "x$with_alsa$with_coreaudio$with_oss" != xnonono
11912 then
11913     as_fn_append wine_warnings "|No sound system was found. Windows applications will be silent."
11914 fi
11915
11916
11917 EXTRACFLAGS=""
11918
11919 if test "x${GCC}" = "xyes"
11920 then
11921   EXTRACFLAGS="-Wall -pipe"
11922
11923     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc strength-reduce bug" >&5
11924 $as_echo_n "checking for gcc strength-reduce bug... " >&6; }
11925 if ${ac_cv_c_gcc_strength_bug+:} false; then :
11926   $as_echo_n "(cached) " >&6
11927 else
11928   if test "$cross_compiling" = yes; then :
11929   ac_cv_c_gcc_strength_bug="yes"
11930 else
11931   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11932 /* end confdefs.h.  */
11933 int L[4] = {0,1,2,3};
11934 int
11935 main ()
11936 {
11937 static int Array[3];
11938   unsigned int B = 3;
11939   int i;
11940   for(i=0; i<B; i++) Array[i] = i - 3;
11941   for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
11942   L[i] = 4;
11943   return (Array[1] != -2 || L[2] != 3)
11944   ;
11945   return 0;
11946 }
11947 _ACEOF
11948 if ac_fn_c_try_run "$LINENO"; then :
11949   ac_cv_c_gcc_strength_bug="no"
11950 else
11951   ac_cv_c_gcc_strength_bug="yes"
11952 fi
11953 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11954   conftest.$ac_objext conftest.beam conftest.$ac_ext
11955 fi
11956
11957 fi
11958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gcc_strength_bug" >&5
11959 $as_echo "$ac_cv_c_gcc_strength_bug" >&6; }
11960   if test "$ac_cv_c_gcc_strength_bug" = "yes"
11961   then
11962     EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
11963   fi
11964
11965     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-builtin" >&5
11966 $as_echo_n "checking whether the compiler supports -fno-builtin... " >&6; }
11967 if ${ac_cv_cflags__fno_builtin+:} false; then :
11968   $as_echo_n "(cached) " >&6
11969 else
11970   ac_wine_try_cflags_saved=$CFLAGS
11971 CFLAGS="$CFLAGS -fno-builtin"
11972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11973 /* end confdefs.h.  */
11974 int main(int argc, char **argv) { return 0; }
11975 _ACEOF
11976 if ac_fn_c_try_link "$LINENO"; then :
11977   ac_cv_cflags__fno_builtin=yes
11978 else
11979   ac_cv_cflags__fno_builtin=no
11980 fi
11981 rm -f core conftest.err conftest.$ac_objext \
11982     conftest$ac_exeext conftest.$ac_ext
11983 CFLAGS=$ac_wine_try_cflags_saved
11984 fi
11985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_builtin" >&5
11986 $as_echo "$ac_cv_cflags__fno_builtin" >&6; }
11987 if test $ac_cv_cflags__fno_builtin = yes; then :
11988   BUILTINFLAG="-fno-builtin"
11989
11990 fi
11991   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-strict-aliasing" >&5
11992 $as_echo_n "checking whether the compiler supports -fno-strict-aliasing... " >&6; }
11993 if ${ac_cv_cflags__fno_strict_aliasing+:} false; then :
11994   $as_echo_n "(cached) " >&6
11995 else
11996   ac_wine_try_cflags_saved=$CFLAGS
11997 CFLAGS="$CFLAGS -fno-strict-aliasing"
11998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11999 /* end confdefs.h.  */
12000 int main(int argc, char **argv) { return 0; }
12001 _ACEOF
12002 if ac_fn_c_try_link "$LINENO"; then :
12003   ac_cv_cflags__fno_strict_aliasing=yes
12004 else
12005   ac_cv_cflags__fno_strict_aliasing=no
12006 fi
12007 rm -f core conftest.err conftest.$ac_objext \
12008     conftest$ac_exeext conftest.$ac_ext
12009 CFLAGS=$ac_wine_try_cflags_saved
12010 fi
12011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_strict_aliasing" >&5
12012 $as_echo "$ac_cv_cflags__fno_strict_aliasing" >&6; }
12013 if test $ac_cv_cflags__fno_strict_aliasing = yes; then :
12014   EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
12015 fi
12016   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wdeclaration-after-statement" >&5
12017 $as_echo_n "checking whether the compiler supports -Wdeclaration-after-statement... " >&6; }
12018 if ${ac_cv_cflags__Wdeclaration_after_statement+:} false; then :
12019   $as_echo_n "(cached) " >&6
12020 else
12021   ac_wine_try_cflags_saved=$CFLAGS
12022 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
12023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12024 /* end confdefs.h.  */
12025 int main(int argc, char **argv) { return 0; }
12026 _ACEOF
12027 if ac_fn_c_try_link "$LINENO"; then :
12028   ac_cv_cflags__Wdeclaration_after_statement=yes
12029 else
12030   ac_cv_cflags__Wdeclaration_after_statement=no
12031 fi
12032 rm -f core conftest.err conftest.$ac_objext \
12033     conftest$ac_exeext conftest.$ac_ext
12034 CFLAGS=$ac_wine_try_cflags_saved
12035 fi
12036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wdeclaration_after_statement" >&5
12037 $as_echo "$ac_cv_cflags__Wdeclaration_after_statement" >&6; }
12038 if test $ac_cv_cflags__Wdeclaration_after_statement = yes; then :
12039   EXTRACFLAGS="$EXTRACFLAGS -Wdeclaration-after-statement"
12040 fi
12041   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wempty-body" >&5
12042 $as_echo_n "checking whether the compiler supports -Wempty-body... " >&6; }
12043 if ${ac_cv_cflags__Wempty_body+:} false; then :
12044   $as_echo_n "(cached) " >&6
12045 else
12046   ac_wine_try_cflags_saved=$CFLAGS
12047 CFLAGS="$CFLAGS -Wempty-body"
12048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12049 /* end confdefs.h.  */
12050 int main(int argc, char **argv) { return 0; }
12051 _ACEOF
12052 if ac_fn_c_try_link "$LINENO"; then :
12053   ac_cv_cflags__Wempty_body=yes
12054 else
12055   ac_cv_cflags__Wempty_body=no
12056 fi
12057 rm -f core conftest.err conftest.$ac_objext \
12058     conftest$ac_exeext conftest.$ac_ext
12059 CFLAGS=$ac_wine_try_cflags_saved
12060 fi
12061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wempty_body" >&5
12062 $as_echo "$ac_cv_cflags__Wempty_body" >&6; }
12063 if test $ac_cv_cflags__Wempty_body = yes; then :
12064   EXTRACFLAGS="$EXTRACFLAGS -Wempty-body"
12065 fi
12066   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wstrict-prototypes" >&5
12067 $as_echo_n "checking whether the compiler supports -Wstrict-prototypes... " >&6; }
12068 if ${ac_cv_cflags__Wstrict_prototypes+:} false; then :
12069   $as_echo_n "(cached) " >&6
12070 else
12071   ac_wine_try_cflags_saved=$CFLAGS
12072 CFLAGS="$CFLAGS -Wstrict-prototypes"
12073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12074 /* end confdefs.h.  */
12075 int main(int argc, char **argv) { return 0; }
12076 _ACEOF
12077 if ac_fn_c_try_link "$LINENO"; then :
12078   ac_cv_cflags__Wstrict_prototypes=yes
12079 else
12080   ac_cv_cflags__Wstrict_prototypes=no
12081 fi
12082 rm -f core conftest.err conftest.$ac_objext \
12083     conftest$ac_exeext conftest.$ac_ext
12084 CFLAGS=$ac_wine_try_cflags_saved
12085 fi
12086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wstrict_prototypes" >&5
12087 $as_echo "$ac_cv_cflags__Wstrict_prototypes" >&6; }
12088 if test $ac_cv_cflags__Wstrict_prototypes = yes; then :
12089   EXTRACFLAGS="$EXTRACFLAGS -Wstrict-prototypes"
12090 fi
12091   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wtype-limits" >&5
12092 $as_echo_n "checking whether the compiler supports -Wtype-limits... " >&6; }
12093 if ${ac_cv_cflags__Wtype_limits+:} false; then :
12094   $as_echo_n "(cached) " >&6
12095 else
12096   ac_wine_try_cflags_saved=$CFLAGS
12097 CFLAGS="$CFLAGS -Wtype-limits"
12098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12099 /* end confdefs.h.  */
12100 int main(int argc, char **argv) { return 0; }
12101 _ACEOF
12102 if ac_fn_c_try_link "$LINENO"; then :
12103   ac_cv_cflags__Wtype_limits=yes
12104 else
12105   ac_cv_cflags__Wtype_limits=no
12106 fi
12107 rm -f core conftest.err conftest.$ac_objext \
12108     conftest$ac_exeext conftest.$ac_ext
12109 CFLAGS=$ac_wine_try_cflags_saved
12110 fi
12111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wtype_limits" >&5
12112 $as_echo "$ac_cv_cflags__Wtype_limits" >&6; }
12113 if test $ac_cv_cflags__Wtype_limits = yes; then :
12114   EXTRACFLAGS="$EXTRACFLAGS -Wtype-limits"
12115 fi
12116   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wunused-but-set-parameter" >&5
12117 $as_echo_n "checking whether the compiler supports -Wunused-but-set-parameter... " >&6; }
12118 if ${ac_cv_cflags__Wunused_but_set_parameter+:} false; then :
12119   $as_echo_n "(cached) " >&6
12120 else
12121   ac_wine_try_cflags_saved=$CFLAGS
12122 CFLAGS="$CFLAGS -Wunused-but-set-parameter"
12123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12124 /* end confdefs.h.  */
12125 int main(int argc, char **argv) { return 0; }
12126 _ACEOF
12127 if ac_fn_c_try_link "$LINENO"; then :
12128   ac_cv_cflags__Wunused_but_set_parameter=yes
12129 else
12130   ac_cv_cflags__Wunused_but_set_parameter=no
12131 fi
12132 rm -f core conftest.err conftest.$ac_objext \
12133     conftest$ac_exeext conftest.$ac_ext
12134 CFLAGS=$ac_wine_try_cflags_saved
12135 fi
12136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wunused_but_set_parameter" >&5
12137 $as_echo "$ac_cv_cflags__Wunused_but_set_parameter" >&6; }
12138 if test $ac_cv_cflags__Wunused_but_set_parameter = yes; then :
12139   EXTRACFLAGS="$EXTRACFLAGS -Wunused-but-set-parameter"
12140 fi
12141   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wwrite-strings" >&5
12142 $as_echo_n "checking whether the compiler supports -Wwrite-strings... " >&6; }
12143 if ${ac_cv_cflags__Wwrite_strings+:} false; then :
12144   $as_echo_n "(cached) " >&6
12145 else
12146   ac_wine_try_cflags_saved=$CFLAGS
12147 CFLAGS="$CFLAGS -Wwrite-strings"
12148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12149 /* end confdefs.h.  */
12150 int main(int argc, char **argv) { return 0; }
12151 _ACEOF
12152 if ac_fn_c_try_link "$LINENO"; then :
12153   ac_cv_cflags__Wwrite_strings=yes
12154 else
12155   ac_cv_cflags__Wwrite_strings=no
12156 fi
12157 rm -f core conftest.err conftest.$ac_objext \
12158     conftest$ac_exeext conftest.$ac_ext
12159 CFLAGS=$ac_wine_try_cflags_saved
12160 fi
12161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wwrite_strings" >&5
12162 $as_echo "$ac_cv_cflags__Wwrite_strings" >&6; }
12163 if test $ac_cv_cflags__Wwrite_strings = yes; then :
12164   EXTRACFLAGS="$EXTRACFLAGS -Wwrite-strings"
12165 fi
12166
12167     case $host_cpu in
12168     *i[3456789]86*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-omit-frame-pointer" >&5
12169 $as_echo_n "checking whether the compiler supports -fno-omit-frame-pointer... " >&6; }
12170 if ${ac_cv_cflags__fno_omit_frame_pointer+:} false; then :
12171   $as_echo_n "(cached) " >&6
12172 else
12173   ac_wine_try_cflags_saved=$CFLAGS
12174 CFLAGS="$CFLAGS -fno-omit-frame-pointer"
12175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12176 /* end confdefs.h.  */
12177 int main(int argc, char **argv) { return 0; }
12178 _ACEOF
12179 if ac_fn_c_try_link "$LINENO"; then :
12180   ac_cv_cflags__fno_omit_frame_pointer=yes
12181 else
12182   ac_cv_cflags__fno_omit_frame_pointer=no
12183 fi
12184 rm -f core conftest.err conftest.$ac_objext \
12185     conftest$ac_exeext conftest.$ac_ext
12186 CFLAGS=$ac_wine_try_cflags_saved
12187 fi
12188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_omit_frame_pointer" >&5
12189 $as_echo "$ac_cv_cflags__fno_omit_frame_pointer" >&6; }
12190 if test $ac_cv_cflags__fno_omit_frame_pointer = yes; then :
12191   EXTRACFLAGS="$EXTRACFLAGS -fno-omit-frame-pointer"
12192 fi ;;
12193   esac
12194
12195     saved_CFLAGS="$CFLAGS"
12196   CFLAGS="$CFLAGS -Wpointer-arith -Werror"
12197   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wpointer-arith" >&5
12198 $as_echo_n "checking for broken string.h that generates warnings with -Wpointer-arith... " >&6; }
12199 if ${ac_cv_c_string_h_warnings+:} false; then :
12200   $as_echo_n "(cached) " >&6
12201 else
12202   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12203 /* end confdefs.h.  */
12204 #include <string.h>
12205 int
12206 main ()
12207 {
12208
12209   ;
12210   return 0;
12211 }
12212 _ACEOF
12213 if ac_fn_c_try_compile "$LINENO"; then :
12214   ac_cv_c_string_h_warnings=no
12215 else
12216   ac_cv_c_string_h_warnings=yes
12217 fi
12218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12219 fi
12220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_string_h_warnings" >&5
12221 $as_echo "$ac_cv_c_string_h_warnings" >&6; }
12222   CFLAGS="$saved_CFLAGS"
12223   if test "$ac_cv_c_string_h_warnings" = "no"
12224   then
12225     EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
12226   fi
12227
12228     saved_CFLAGS="$CFLAGS"
12229   CFLAGS="$CFLAGS -Wlogical-op -Werror"
12230   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wlogical-op" >&5
12231 $as_echo_n "checking for broken string.h that generates warnings with -Wlogical-op... " >&6; }
12232 if ${ac_cv_c_logicalop_noisy+:} false; then :
12233   $as_echo_n "(cached) " >&6
12234 else
12235   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12236 /* end confdefs.h.  */
12237 #include <string.h>
12238 int
12239 main ()
12240 {
12241 char*f(const char *h,char n) {return strchr(h,n);}
12242   ;
12243   return 0;
12244 }
12245 _ACEOF
12246 if ac_fn_c_try_compile "$LINENO"; then :
12247   ac_cv_c_logicalop_noisy=no
12248 else
12249   ac_cv_c_logicalop_noisy=yes
12250 fi
12251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12252 fi
12253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_logicalop_noisy" >&5
12254 $as_echo "$ac_cv_c_logicalop_noisy" >&6; }
12255   CFLAGS="$saved_CFLAGS"
12256   if test "$ac_cv_c_logicalop_noisy" = "no"
12257   then
12258     EXTRACFLAGS="$EXTRACFLAGS -Wlogical-op"
12259   fi
12260
12261     if test "x$enable_maintainer_mode" = "xyes"
12262   then
12263       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Werror" >&5
12264 $as_echo_n "checking whether the compiler supports -Werror... " >&6; }
12265 if ${ac_cv_cflags__Werror+:} false; then :
12266   $as_echo_n "(cached) " >&6
12267 else
12268   ac_wine_try_cflags_saved=$CFLAGS
12269 CFLAGS="$CFLAGS -Werror"
12270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12271 /* end confdefs.h.  */
12272 int main(int argc, char **argv) { return 0; }
12273 _ACEOF
12274 if ac_fn_c_try_link "$LINENO"; then :
12275   ac_cv_cflags__Werror=yes
12276 else
12277   ac_cv_cflags__Werror=no
12278 fi
12279 rm -f core conftest.err conftest.$ac_objext \
12280     conftest$ac_exeext conftest.$ac_ext
12281 CFLAGS=$ac_wine_try_cflags_saved
12282 fi
12283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Werror" >&5
12284 $as_echo "$ac_cv_cflags__Werror" >&6; }
12285 if test $ac_cv_cflags__Werror = yes; then :
12286   EXTRACFLAGS="$EXTRACFLAGS -Werror"
12287 fi
12288   fi
12289
12290     saved_CFLAGS="$CFLAGS"
12291   CFLAGS="$CFLAGS -Werror"
12292   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ms_hook_prologue attribute" >&5
12293 $as_echo_n "checking for ms_hook_prologue attribute... " >&6; }
12294 if ${ac_cv_have_ms_hook_prologue+:} false; then :
12295   $as_echo_n "(cached) " >&6
12296 else
12297   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12298 /* end confdefs.h.  */
12299 int __attribute__((__ms_hook_prologue__)) test(void) { return 0; }
12300 int
12301 main ()
12302 {
12303
12304   ;
12305   return 0;
12306 }
12307 _ACEOF
12308 if ac_fn_c_try_compile "$LINENO"; then :
12309   ac_cv_have_ms_hook_prologue="yes"
12310 else
12311   ac_cv_have_ms_hook_prologue="no"
12312 fi
12313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12314 fi
12315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ms_hook_prologue" >&5
12316 $as_echo "$ac_cv_have_ms_hook_prologue" >&6; }
12317   CFLAGS="$saved_CFLAGS"
12318   if test "$ac_cv_have_ms_hook_prologue" = "yes"
12319   then
12320
12321 $as_echo "#define DECLSPEC_HOTPATCH __attribute__((__ms_hook_prologue__))" >>confdefs.h
12322
12323   else
12324       $as_echo "#define DECLSPEC_HOTPATCH /* */" >>confdefs.h
12325
12326   fi
12327 fi
12328
12329
12330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the need to disable Fortify" >&5
12331 $as_echo_n "checking for the need to disable Fortify... " >&6; }
12332 if ${ac_cv_c_fortify_enabled+:} false; then :
12333   $as_echo_n "(cached) " >&6
12334 else
12335   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12336 /* end confdefs.h.  */
12337 #include <string.h>
12338 int
12339 main ()
12340 {
12341 #if defined(__USE_FORTIFY_LEVEL) && __USE_FORTIFY_LEVEL > 0
12342 #error Fortify enabled
12343 #endif
12344   ;
12345   return 0;
12346 }
12347 _ACEOF
12348 if ac_fn_c_try_compile "$LINENO"; then :
12349   ac_cv_c_fortify_enabled=no
12350 else
12351   ac_cv_c_fortify_enabled=yes
12352 fi
12353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12354 fi
12355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_fortify_enabled" >&5
12356 $as_echo "$ac_cv_c_fortify_enabled" >&6; }
12357 if test "$ac_cv_c_fortify_enabled" = yes
12358 then
12359     CFLAGS="$CFLAGS -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0"
12360 fi
12361
12362
12363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need an underscore prefix" >&5
12364 $as_echo_n "checking whether external symbols need an underscore prefix... " >&6; }
12365 if ${ac_cv_c_extern_prefix+:} false; then :
12366   $as_echo_n "(cached) " >&6
12367 else
12368   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12369 /* end confdefs.h.  */
12370 extern int ac_test;
12371 int
12372 main ()
12373 {
12374 asm(".globl _ac_test\n_ac_test:\t.long 0"); if (ac_test) return 1
12375   ;
12376   return 0;
12377 }
12378 _ACEOF
12379 if ac_fn_c_try_link "$LINENO"; then :
12380   ac_cv_c_extern_prefix="yes"
12381 else
12382   ac_cv_c_extern_prefix="no"
12383 fi
12384 rm -f core conftest.err conftest.$ac_objext \
12385     conftest$ac_exeext conftest.$ac_ext
12386 fi
12387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_extern_prefix" >&5
12388 $as_echo "$ac_cv_c_extern_prefix" >&6; }
12389
12390 case $host_cpu in
12391   *i[3456789]86*)
12392     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need stdcall decoration" >&5
12393 $as_echo_n "checking whether external symbols need stdcall decoration... " >&6; }
12394 if ${ac_cv_c_stdcall_suffix+:} false; then :
12395   $as_echo_n "(cached) " >&6
12396 else
12397   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12398 /* end confdefs.h.  */
12399 #ifndef _MSC_VER
12400 #define __stdcall __attribute__((__stdcall__))
12401 #endif
12402 int __stdcall ac_test(int i) { return i; }
12403 int
12404 main ()
12405 {
12406 asm("jmp _ac_test@4"); if (ac_test(1)) return 1
12407   ;
12408   return 0;
12409 }
12410 _ACEOF
12411 if ac_fn_c_try_link "$LINENO"; then :
12412   ac_cv_c_stdcall_suffix="yes"
12413 else
12414   ac_cv_c_stdcall_suffix="no"
12415 fi
12416 rm -f core conftest.err conftest.$ac_objext \
12417     conftest$ac_exeext conftest.$ac_ext
12418 fi
12419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stdcall_suffix" >&5
12420 $as_echo "$ac_cv_c_stdcall_suffix" >&6; } ;;
12421   *) ac_cv_c_stdcall_suffix="no" ;;
12422 esac
12423
12424
12425 if test "$ac_cv_c_extern_prefix" = "yes"
12426 then
12427     $as_echo "#define __ASM_NAME(name) \"_\" name" >>confdefs.h
12428
12429     asm_name_prefix="_"
12430 else
12431     $as_echo "#define __ASM_NAME(name) name" >>confdefs.h
12432
12433     asm_name_prefix=""
12434 fi
12435
12436
12437 if test "$ac_cv_c_stdcall_suffix" = "yes"
12438 then
12439     $as_echo "#define __ASM_STDCALL(args) \"@\" #args" >>confdefs.h
12440
12441 else
12442     $as_echo "#define __ASM_STDCALL(args) \"\"" >>confdefs.h
12443
12444 fi
12445
12446
12447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to define a function in assembly code" >&5
12448 $as_echo_n "checking how to define a function in assembly code... " >&6; }
12449 if ${ac_cv_asm_func_def+:} false; then :
12450   $as_echo_n "(cached) " >&6
12451 else
12452   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12453 /* end confdefs.h.  */
12454
12455 int
12456 main ()
12457 {
12458 asm("\t.globl _ac_test\n\t.def _ac_test; .scl 2; .type 32; .endef\n_ac_test:\t.long 0");
12459   ;
12460   return 0;
12461 }
12462 _ACEOF
12463 if ac_fn_c_try_link "$LINENO"; then :
12464   ac_cv_asm_func_def=".def"
12465 else
12466   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12467 /* end confdefs.h.  */
12468
12469 int
12470 main ()
12471 {
12472 asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0");
12473   ;
12474   return 0;
12475 }
12476 _ACEOF
12477 if ac_fn_c_try_link "$LINENO"; then :
12478   ac_cv_asm_func_def=".type @function"
12479 else
12480   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12481 /* end confdefs.h.  */
12482
12483 int
12484 main ()
12485 {
12486 asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0");
12487   ;
12488   return 0;
12489 }
12490 _ACEOF
12491 if ac_fn_c_try_link "$LINENO"; then :
12492   ac_cv_asm_func_def=".type 2"
12493 else
12494   ac_cv_asm_func_def="unknown"
12495 fi
12496 rm -f core conftest.err conftest.$ac_objext \
12497     conftest$ac_exeext conftest.$ac_ext
12498 fi
12499 rm -f core conftest.err conftest.$ac_objext \
12500     conftest$ac_exeext conftest.$ac_ext
12501 fi
12502 rm -f core conftest.err conftest.$ac_objext \
12503     conftest$ac_exeext conftest.$ac_ext
12504 fi
12505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_asm_func_def" >&5
12506 $as_echo "$ac_cv_asm_func_def" >&6; }
12507
12508
12509 case "$ac_cv_asm_func_def" in
12510   ".def")
12511      $as_echo "#define __ASM_FUNC(name) \".def \" __ASM_NAME(name) \"; .scl 2; .type 32; .endef\"" >>confdefs.h
12512
12513      asm_func_header=".def $asm_name_prefix\" #name suffix \"; .scl 2; .type 32; .endef" ;;
12514   ".type @function")
12515      $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",@function\"" >>confdefs.h
12516
12517      asm_func_header=".type $asm_name_prefix\" #name suffix \",@function" ;;
12518   ".type 2")
12519      $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",2\"" >>confdefs.h
12520
12521      asm_func_header=".type $asm_name_prefix\" #name suffix \",2" ;;
12522   *)
12523      $as_echo "#define __ASM_FUNC(name) \"\"" >>confdefs.h
12524
12525      asm_func_header="" ;;
12526 esac
12527
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether asm() works outside of functions" >&5
12529 $as_echo_n "checking whether asm() works outside of functions... " >&6; }
12530 if ${ac_cv_c_asm_outside_funcs+:} false; then :
12531   $as_echo_n "(cached) " >&6
12532 else
12533   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12534 /* end confdefs.h.  */
12535 asm(".text\n\t.long 0");
12536 int
12537 main ()
12538 {
12539
12540   ;
12541   return 0;
12542 }
12543 _ACEOF
12544 if ac_fn_c_try_compile "$LINENO"; then :
12545   ac_cv_c_asm_outside_funcs="yes"
12546 else
12547   ac_cv_c_asm_outside_funcs="no"
12548 fi
12549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12550 fi
12551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_asm_outside_funcs" >&5
12552 $as_echo "$ac_cv_c_asm_outside_funcs" >&6; }
12553
12554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .previous is supported in assembly code" >&5
12555 $as_echo_n "checking whether .previous is supported in assembly code... " >&6; }
12556 if ${ac_cv_c_dot_previous+:} false; then :
12557   $as_echo_n "(cached) " >&6
12558 else
12559   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12560 /* end confdefs.h.  */
12561
12562 int
12563 main ()
12564 {
12565 asm(".text\nac_test:\t.long 0\n\t.previous");
12566   ;
12567   return 0;
12568 }
12569 _ACEOF
12570 if ac_fn_c_try_link "$LINENO"; then :
12571   ac_cv_c_dot_previous="yes"
12572 else
12573   ac_cv_c_dot_previous="no"
12574 fi
12575 rm -f core conftest.err conftest.$ac_objext \
12576     conftest$ac_exeext conftest.$ac_ext
12577 fi
12578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dot_previous" >&5
12579 $as_echo "$ac_cv_c_dot_previous" >&6; }
12580
12581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CFI directives are supported in assembly code" >&5
12582 $as_echo_n "checking whether CFI directives are supported in assembly code... " >&6; }
12583 if ${ac_cv_c_cfi_support+:} false; then :
12584   $as_echo_n "(cached) " >&6
12585 else
12586   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12587 /* end confdefs.h.  */
12588 asm(".text\nac_test:\t.cfi_startproc\n\t.long 0\n\t.cfi_endproc");
12589 int
12590 main ()
12591 {
12592
12593   ;
12594   return 0;
12595 }
12596 _ACEOF
12597 if ac_fn_c_try_compile "$LINENO"; then :
12598   ac_cv_c_cfi_support="yes"
12599 else
12600   ac_cv_c_cfi_support="no"
12601 fi
12602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12603 fi
12604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_cfi_support" >&5
12605 $as_echo "$ac_cv_c_cfi_support" >&6; }
12606
12607 asm_func_header=".globl $asm_name_prefix\" #name suffix \"\\n\\t$asm_func_header\\n$asm_name_prefix\" #name suffix \":\\n\\t"
12608 asm_func_trailer=""
12609 if test "$ac_cv_c_dot_previous" = "yes"
12610 then
12611    asm_func_trailer="\\n\\t.previous"
12612 fi
12613 if test "$ac_cv_c_cfi_support" = "yes"
12614 then
12615    asm_func_header="$asm_func_header.cfi_startproc\\n\\t"
12616    asm_func_trailer="\\n\\t.cfi_endproc$asm_func_trailer"
12617
12618 $as_echo "#define __ASM_CFI(str) str" >>confdefs.h
12619
12620    UNWINDFLAGS=-fasynchronous-unwind-tables
12621
12622 else
12623    $as_echo "#define __ASM_CFI(str) \"\"" >>confdefs.h
12624
12625 fi
12626
12627 asm_func_code="$asm_func_header\" code \"$asm_func_trailer"
12628
12629
12630 if test "$ac_cv_c_asm_outside_funcs" = "yes"
12631 then
12632     cat >>confdefs.h <<_ACEOF
12633 #define __ASM_DEFINE_FUNC(name,suffix,code) asm(".text\n\t.align 4\n\t$asm_func_code");
12634 _ACEOF
12635
12636 else
12637     cat >>confdefs.h <<_ACEOF
12638 #define __ASM_DEFINE_FUNC(name,suffix,code) void __asm_dummy_##name(void) { asm(".text\n\t.align 4\n\t$asm_func_code"); }
12639 _ACEOF
12640
12641 fi
12642
12643 $as_echo "#define __ASM_GLOBAL_FUNC(name,code) __ASM_DEFINE_FUNC(name,\"\",code)" >>confdefs.h
12644
12645
12646 $as_echo "#define __ASM_STDCALL_FUNC(name,args,code) __ASM_DEFINE_FUNC(name,__ASM_STDCALL(args),code)" >>confdefs.h
12647
12648
12649
12650 LDPATH=""
12651
12652 case $build_os in
12653   cygwin*|mingw32*)
12654     TOOLSEXT=".exe"
12655
12656     LDPATH="PATH=\"\$(TOOLSDIR)/libs/wine:\$\$PATH\""
12657     ;;
12658   darwin*|macosx*)
12659     ;;
12660   *)
12661     LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$LD_LIBRARY_PATH\""
12662     ;;
12663 esac
12664
12665 case $host_os in
12666   mingw32*)
12667     CRTLIBS="-lmsvcrt"
12668
12669     SOCKETLIBS="-L\$(top_builddir)/dlls/ws2_32 -lws2_32"
12670
12671     ;;
12672 esac
12673
12674 MAIN_BINARY="wine"
12675
12676 test "x$enable_win64" != "xyes" || MAIN_BINARY="wine64"
12677
12678 case $host_os in
12679   linux*)
12680     case $host_cpu in
12681       *i[3456789]86*) EXTRA_BINARIES="wine-preloader"
12682  ;;
12683       x86_64*) EXTRA_BINARIES="wine64-preloader"
12684  ;;
12685     esac
12686     ;;
12687 esac
12688
12689
12690 ac_save_CFLAGS="$CFLAGS"
12691 CFLAGS="$CFLAGS $BUILTINFLAG"
12692 for ac_func in \
12693         _finite \
12694         _isnan \
12695         _pclose \
12696         _popen \
12697         _snprintf \
12698         _spawnvp \
12699         _strdup \
12700         _stricmp \
12701         _strnicmp \
12702         _strtoi64 \
12703         _strtoui64 \
12704         _vsnprintf \
12705         asctime_r \
12706         chsize \
12707         dlopen \
12708         epoll_create \
12709         ffs \
12710         finite \
12711         fnmatch \
12712         fork \
12713         fpclass \
12714         fstatfs \
12715         fstatvfs \
12716         ftruncate \
12717         futimes \
12718         futimesat \
12719         getattrlist \
12720         getdirentries \
12721         getopt_long \
12722         getpagesize \
12723         getpwuid \
12724         gettimeofday \
12725         getuid \
12726         kqueue \
12727         lstat \
12728         memmove \
12729         mmap \
12730         pclose \
12731         pipe2 \
12732         poll \
12733         popen \
12734         port_create \
12735         prctl \
12736         pread \
12737         pwrite \
12738         readdir \
12739         readlink \
12740         sched_yield \
12741         select \
12742         setproctitle \
12743         setrlimit \
12744         settimeofday \
12745         sigaltstack \
12746         sigprocmask \
12747         snprintf \
12748         spawnvp \
12749         statfs \
12750         statvfs \
12751         strcasecmp \
12752         strdup \
12753         strerror \
12754         strncasecmp \
12755         strtold \
12756         strtoll \
12757         strtoull \
12758         symlink \
12759         tcgetattr \
12760         thr_kill2 \
12761         timegm \
12762         usleep \
12763         vsnprintf \
12764         wait4 \
12765         waitpid \
12766
12767 do :
12768   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12769 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12770 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12771   cat >>confdefs.h <<_ACEOF
12772 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12773 _ACEOF
12774
12775 fi
12776 done
12777
12778 CFLAGS="$ac_save_CFLAGS"
12779
12780 if test "$ac_cv_func_dlopen" = no
12781 then
12782     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12783 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12784 if ${ac_cv_lib_dl_dlopen+:} false; then :
12785   $as_echo_n "(cached) " >&6
12786 else
12787   ac_check_lib_save_LIBS=$LIBS
12788 LIBS="-ldl  $LIBS"
12789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12790 /* end confdefs.h.  */
12791
12792 /* Override any GCC internal prototype to avoid an error.
12793    Use char because int might match the return type of a GCC
12794    builtin and then its argument prototype would still apply.  */
12795 #ifdef __cplusplus
12796 extern "C"
12797 #endif
12798 char dlopen ();
12799 int
12800 main ()
12801 {
12802 return dlopen ();
12803   ;
12804   return 0;
12805 }
12806 _ACEOF
12807 if ac_fn_c_try_link "$LINENO"; then :
12808   ac_cv_lib_dl_dlopen=yes
12809 else
12810   ac_cv_lib_dl_dlopen=no
12811 fi
12812 rm -f core conftest.err conftest.$ac_objext \
12813     conftest$ac_exeext conftest.$ac_ext
12814 LIBS=$ac_check_lib_save_LIBS
12815 fi
12816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12817 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12818 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12819   $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
12820  LIBDL="-ldl"
12821
12822 fi
12823
12824 fi
12825 ac_wine_check_funcs_save_LIBS="$LIBS"
12826 LIBS="$LIBS $LIBDL"
12827 for ac_func in dladdr
12828 do :
12829   ac_fn_c_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr"
12830 if test "x$ac_cv_func_dladdr" = xyes; then :
12831   cat >>confdefs.h <<_ACEOF
12832 #define HAVE_DLADDR 1
12833 _ACEOF
12834
12835 fi
12836 done
12837
12838 LIBS="$ac_wine_check_funcs_save_LIBS"
12839
12840 if test "$ac_cv_func_poll" = no
12841 then
12842     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for poll in -lpoll" >&5
12843 $as_echo_n "checking for poll in -lpoll... " >&6; }
12844 if ${ac_cv_lib_poll_poll+:} false; then :
12845   $as_echo_n "(cached) " >&6
12846 else
12847   ac_check_lib_save_LIBS=$LIBS
12848 LIBS="-lpoll  $LIBS"
12849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12850 /* end confdefs.h.  */
12851
12852 /* Override any GCC internal prototype to avoid an error.
12853    Use char because int might match the return type of a GCC
12854    builtin and then its argument prototype would still apply.  */
12855 #ifdef __cplusplus
12856 extern "C"
12857 #endif
12858 char poll ();
12859 int
12860 main ()
12861 {
12862 return poll ();
12863   ;
12864   return 0;
12865 }
12866 _ACEOF
12867 if ac_fn_c_try_link "$LINENO"; then :
12868   ac_cv_lib_poll_poll=yes
12869 else
12870   ac_cv_lib_poll_poll=no
12871 fi
12872 rm -f core conftest.err conftest.$ac_objext \
12873     conftest$ac_exeext conftest.$ac_ext
12874 LIBS=$ac_check_lib_save_LIBS
12875 fi
12876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_poll_poll" >&5
12877 $as_echo "$ac_cv_lib_poll_poll" >&6; }
12878 if test "x$ac_cv_lib_poll_poll" = xyes; then :
12879   $as_echo "#define HAVE_POLL 1" >>confdefs.h
12880  LIBPOLL="-lpoll"
12881
12882 fi
12883
12884 fi
12885
12886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
12887 $as_echo_n "checking for library containing gethostbyname... " >&6; }
12888 if ${ac_cv_search_gethostbyname+:} false; then :
12889   $as_echo_n "(cached) " >&6
12890 else
12891   ac_func_search_save_LIBS=$LIBS
12892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12893 /* end confdefs.h.  */
12894
12895 /* Override any GCC internal prototype to avoid an error.
12896    Use char because int might match the return type of a GCC
12897    builtin and then its argument prototype would still apply.  */
12898 #ifdef __cplusplus
12899 extern "C"
12900 #endif
12901 char gethostbyname ();
12902 int
12903 main ()
12904 {
12905 return gethostbyname ();
12906   ;
12907   return 0;
12908 }
12909 _ACEOF
12910 for ac_lib in '' nsl; do
12911   if test -z "$ac_lib"; then
12912     ac_res="none required"
12913   else
12914     ac_res=-l$ac_lib
12915     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12916   fi
12917   if ac_fn_c_try_link "$LINENO"; then :
12918   ac_cv_search_gethostbyname=$ac_res
12919 fi
12920 rm -f core conftest.err conftest.$ac_objext \
12921     conftest$ac_exeext
12922   if ${ac_cv_search_gethostbyname+:} false; then :
12923   break
12924 fi
12925 done
12926 if ${ac_cv_search_gethostbyname+:} false; then :
12927
12928 else
12929   ac_cv_search_gethostbyname=no
12930 fi
12931 rm conftest.$ac_ext
12932 LIBS=$ac_func_search_save_LIBS
12933 fi
12934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
12935 $as_echo "$ac_cv_search_gethostbyname" >&6; }
12936 ac_res=$ac_cv_search_gethostbyname
12937 if test "$ac_res" != no; then :
12938   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12939
12940 fi
12941
12942
12943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5
12944 $as_echo_n "checking for library containing connect... " >&6; }
12945 if ${ac_cv_search_connect+:} false; then :
12946   $as_echo_n "(cached) " >&6
12947 else
12948   ac_func_search_save_LIBS=$LIBS
12949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12950 /* end confdefs.h.  */
12951
12952 /* Override any GCC internal prototype to avoid an error.
12953    Use char because int might match the return type of a GCC
12954    builtin and then its argument prototype would still apply.  */
12955 #ifdef __cplusplus
12956 extern "C"
12957 #endif
12958 char connect ();
12959 int
12960 main ()
12961 {
12962 return connect ();
12963   ;
12964   return 0;
12965 }
12966 _ACEOF
12967 for ac_lib in '' socket; do
12968   if test -z "$ac_lib"; then
12969     ac_res="none required"
12970   else
12971     ac_res=-l$ac_lib
12972     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12973   fi
12974   if ac_fn_c_try_link "$LINENO"; then :
12975   ac_cv_search_connect=$ac_res
12976 fi
12977 rm -f core conftest.err conftest.$ac_objext \
12978     conftest$ac_exeext
12979   if ${ac_cv_search_connect+:} false; then :
12980   break
12981 fi
12982 done
12983 if ${ac_cv_search_connect+:} false; then :
12984
12985 else
12986   ac_cv_search_connect=no
12987 fi
12988 rm conftest.$ac_ext
12989 LIBS=$ac_func_search_save_LIBS
12990 fi
12991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5
12992 $as_echo "$ac_cv_search_connect" >&6; }
12993 ac_res=$ac_cv_search_connect
12994 if test "$ac_res" != no; then :
12995   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12996
12997 fi
12998
12999
13000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
13001 $as_echo_n "checking for library containing inet_aton... " >&6; }
13002 if ${ac_cv_search_inet_aton+:} false; then :
13003   $as_echo_n "(cached) " >&6
13004 else
13005   ac_func_search_save_LIBS=$LIBS
13006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13007 /* end confdefs.h.  */
13008
13009 /* Override any GCC internal prototype to avoid an error.
13010    Use char because int might match the return type of a GCC
13011    builtin and then its argument prototype would still apply.  */
13012 #ifdef __cplusplus
13013 extern "C"
13014 #endif
13015 char inet_aton ();
13016 int
13017 main ()
13018 {
13019 return inet_aton ();
13020   ;
13021   return 0;
13022 }
13023 _ACEOF
13024 for ac_lib in '' resolv; do
13025   if test -z "$ac_lib"; then
13026     ac_res="none required"
13027   else
13028     ac_res=-l$ac_lib
13029     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13030   fi
13031   if ac_fn_c_try_link "$LINENO"; then :
13032   ac_cv_search_inet_aton=$ac_res
13033 fi
13034 rm -f core conftest.err conftest.$ac_objext \
13035     conftest$ac_exeext
13036   if ${ac_cv_search_inet_aton+:} false; then :
13037   break
13038 fi
13039 done
13040 if ${ac_cv_search_inet_aton+:} false; then :
13041
13042 else
13043   ac_cv_search_inet_aton=no
13044 fi
13045 rm conftest.$ac_ext
13046 LIBS=$ac_func_search_save_LIBS
13047 fi
13048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
13049 $as_echo "$ac_cv_search_inet_aton" >&6; }
13050 ac_res=$ac_cv_search_inet_aton
13051 if test "$ac_res" != no; then :
13052   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13053
13054 fi
13055
13056
13057 for ac_func in \
13058         getaddrinfo \
13059         getnameinfo \
13060         getnetbyname \
13061         getprotobyname \
13062         getprotobynumber \
13063         getservbyport \
13064         inet_network \
13065         inet_ntop \
13066         inet_pton \
13067         sendmsg \
13068         socketpair \
13069
13070 do :
13071   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13072 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13073 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13074   cat >>confdefs.h <<_ACEOF
13075 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13076 _ACEOF
13077
13078 fi
13079 done
13080
13081
13082 LDAPLIBS=""
13083
13084 if test "$ac_cv_header_ldap_h" = "yes" -a "$ac_cv_header_lber_h" = "yes"
13085 then
13086     ac_fn_c_check_type "$LINENO" "LDAPSortKey" "ac_cv_type_LDAPSortKey" "#include <ldap.h>
13087 "
13088 if test "x$ac_cv_type_LDAPSortKey" = xyes; then :
13089   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap_r" >&5
13090 $as_echo_n "checking for ldap_initialize in -lldap_r... " >&6; }
13091 if ${ac_cv_lib_ldap_r_ldap_initialize+:} false; then :
13092   $as_echo_n "(cached) " >&6
13093 else
13094   ac_check_lib_save_LIBS=$LIBS
13095 LIBS="-lldap_r $LIBPTHREAD $LIBS"
13096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13097 /* end confdefs.h.  */
13098
13099 /* Override any GCC internal prototype to avoid an error.
13100    Use char because int might match the return type of a GCC
13101    builtin and then its argument prototype would still apply.  */
13102 #ifdef __cplusplus
13103 extern "C"
13104 #endif
13105 char ldap_initialize ();
13106 int
13107 main ()
13108 {
13109 return ldap_initialize ();
13110   ;
13111   return 0;
13112 }
13113 _ACEOF
13114 if ac_fn_c_try_link "$LINENO"; then :
13115   ac_cv_lib_ldap_r_ldap_initialize=yes
13116 else
13117   ac_cv_lib_ldap_r_ldap_initialize=no
13118 fi
13119 rm -f core conftest.err conftest.$ac_objext \
13120     conftest$ac_exeext conftest.$ac_ext
13121 LIBS=$ac_check_lib_save_LIBS
13122 fi
13123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_r_ldap_initialize" >&5
13124 $as_echo "$ac_cv_lib_ldap_r_ldap_initialize" >&6; }
13125 if test "x$ac_cv_lib_ldap_r_ldap_initialize" = xyes; then :
13126   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_init in -llber" >&5
13127 $as_echo_n "checking for ber_init in -llber... " >&6; }
13128 if ${ac_cv_lib_lber_ber_init+:} false; then :
13129   $as_echo_n "(cached) " >&6
13130 else
13131   ac_check_lib_save_LIBS=$LIBS
13132 LIBS="-llber $LIBPTHREAD $LIBS"
13133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13134 /* end confdefs.h.  */
13135
13136 /* Override any GCC internal prototype to avoid an error.
13137    Use char because int might match the return type of a GCC
13138    builtin and then its argument prototype would still apply.  */
13139 #ifdef __cplusplus
13140 extern "C"
13141 #endif
13142 char ber_init ();
13143 int
13144 main ()
13145 {
13146 return ber_init ();
13147   ;
13148   return 0;
13149 }
13150 _ACEOF
13151 if ac_fn_c_try_link "$LINENO"; then :
13152   ac_cv_lib_lber_ber_init=yes
13153 else
13154   ac_cv_lib_lber_ber_init=no
13155 fi
13156 rm -f core conftest.err conftest.$ac_objext \
13157     conftest$ac_exeext conftest.$ac_ext
13158 LIBS=$ac_check_lib_save_LIBS
13159 fi
13160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_init" >&5
13161 $as_echo "$ac_cv_lib_lber_ber_init" >&6; }
13162 if test "x$ac_cv_lib_lber_ber_init" = xyes; then :
13163
13164 $as_echo "#define HAVE_LDAP 1" >>confdefs.h
13165
13166                  LDAPLIBS="-lldap_r -llber"
13167 fi
13168
13169 fi
13170
13171 fi
13172
13173     ac_wine_check_funcs_save_LIBS="$LIBS"
13174 LIBS="$LIBS $LDAPLIBS $LIBPTHREAD"
13175 for ac_func in \
13176         ldap_count_references \
13177         ldap_first_reference \
13178         ldap_next_reference \
13179         ldap_parse_reference \
13180         ldap_parse_sort_control \
13181         ldap_parse_sortresponse_control \
13182         ldap_parse_vlv_control \
13183         ldap_parse_vlvresponse_control
13184 do :
13185   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13186 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13187 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13188   cat >>confdefs.h <<_ACEOF
13189 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13190 _ACEOF
13191
13192 fi
13193 done
13194
13195 LIBS="$ac_wine_check_funcs_save_LIBS"
13196 fi
13197 if test "x$LDAPLIBS" = "x"; then :
13198   case "x$with_ldap" in
13199   x)   as_fn_append wine_notices "|libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported." ;;
13200   xno) ;;
13201   *)   as_fn_error $? "libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported.
13202 This is an error since --with-ldap was requested." "$LINENO" 5 ;;
13203 esac
13204 fi
13205
13206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir takes only one argument" >&5
13207 $as_echo_n "checking whether mkdir takes only one argument... " >&6; }
13208 if ${wine_cv_one_arg_mkdir+:} false; then :
13209   $as_echo_n "(cached) " >&6
13210 else
13211   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13212 /* end confdefs.h.  */
13213 #include <sys/stat.h>
13214 int
13215 main ()
13216 {
13217 mkdir("foo");
13218   ;
13219   return 0;
13220 }
13221 _ACEOF
13222 if ac_fn_c_try_compile "$LINENO"; then :
13223   wine_cv_one_arg_mkdir=yes
13224 else
13225   wine_cv_one_arg_mkdir=no
13226 fi
13227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13228 fi
13229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_one_arg_mkdir" >&5
13230 $as_echo "$wine_cv_one_arg_mkdir" >&6; }
13231 if test "$wine_cv_one_arg_mkdir" = "yes"
13232 then
13233
13234 $as_echo "#define HAVE_ONE_ARG_MKDIR 1" >>confdefs.h
13235
13236 fi
13237
13238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_setaffinity" >&5
13239 $as_echo_n "checking for sched_setaffinity... " >&6; }
13240 if ${wine_cv_have_sched_setaffinity+:} false; then :
13241   $as_echo_n "(cached) " >&6
13242 else
13243   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13244 /* end confdefs.h.  */
13245 #define _GNU_SOURCE
13246 #include <sched.h>
13247 int
13248 main ()
13249 {
13250 sched_setaffinity(0, 0, 0);
13251   ;
13252   return 0;
13253 }
13254 _ACEOF
13255 if ac_fn_c_try_link "$LINENO"; then :
13256   wine_cv_have_sched_setaffinity=yes
13257 else
13258   wine_cv_have_sched_setaffinity=no
13259 fi
13260 rm -f core conftest.err conftest.$ac_objext \
13261     conftest$ac_exeext conftest.$ac_ext
13262 fi
13263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sched_setaffinity" >&5
13264 $as_echo "$wine_cv_have_sched_setaffinity" >&6; }
13265 if test "$wine_cv_have_sched_setaffinity" = "yes"
13266 then
13267
13268 $as_echo "#define HAVE_SCHED_SETAFFINITY 1" >>confdefs.h
13269
13270 fi
13271
13272
13273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13274 $as_echo_n "checking for inline... " >&6; }
13275 if ${ac_cv_c_inline+:} false; then :
13276   $as_echo_n "(cached) " >&6
13277 else
13278   ac_cv_c_inline=no
13279 for ac_kw in inline __inline__ __inline; do
13280   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13281 /* end confdefs.h.  */
13282 #ifndef __cplusplus
13283 typedef int foo_t;
13284 static $ac_kw foo_t static_foo () {return 0; }
13285 $ac_kw foo_t foo () {return 0; }
13286 #endif
13287
13288 _ACEOF
13289 if ac_fn_c_try_compile "$LINENO"; then :
13290   ac_cv_c_inline=$ac_kw
13291 fi
13292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13293   test "$ac_cv_c_inline" != no && break
13294 done
13295
13296 fi
13297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13298 $as_echo "$ac_cv_c_inline" >&6; }
13299
13300 case $ac_cv_c_inline in
13301   inline | yes) ;;
13302   *)
13303     case $ac_cv_c_inline in
13304       no) ac_val=;;
13305       *) ac_val=$ac_cv_c_inline;;
13306     esac
13307     cat >>confdefs.h <<_ACEOF
13308 #ifndef __cplusplus
13309 #define inline $ac_val
13310 #endif
13311 _ACEOF
13312     ;;
13313 esac
13314
13315 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
13316 if test "x$ac_cv_type_mode_t" = xyes; then :
13317
13318 cat >>confdefs.h <<_ACEOF
13319 #define HAVE_MODE_T 1
13320 _ACEOF
13321
13322
13323 fi
13324 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
13325 if test "x$ac_cv_type_off_t" = xyes; then :
13326
13327 cat >>confdefs.h <<_ACEOF
13328 #define HAVE_OFF_T 1
13329 _ACEOF
13330
13331
13332 fi
13333 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13334 if test "x$ac_cv_type_pid_t" = xyes; then :
13335
13336 cat >>confdefs.h <<_ACEOF
13337 #define HAVE_PID_T 1
13338 _ACEOF
13339
13340
13341 fi
13342 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13343 if test "x$ac_cv_type_size_t" = xyes; then :
13344
13345 cat >>confdefs.h <<_ACEOF
13346 #define HAVE_SIZE_T 1
13347 _ACEOF
13348
13349
13350 fi
13351 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
13352 if test "x$ac_cv_type_ssize_t" = xyes; then :
13353
13354 cat >>confdefs.h <<_ACEOF
13355 #define HAVE_SSIZE_T 1
13356 _ACEOF
13357
13358
13359 fi
13360 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
13361 if test "x$ac_cv_type_long_long" = xyes; then :
13362
13363 cat >>confdefs.h <<_ACEOF
13364 #define HAVE_LONG_LONG 1
13365 _ACEOF
13366
13367
13368 fi
13369 ac_fn_c_check_type "$LINENO" "fsblkcnt_t" "ac_cv_type_fsblkcnt_t" "$ac_includes_default"
13370 if test "x$ac_cv_type_fsblkcnt_t" = xyes; then :
13371
13372 cat >>confdefs.h <<_ACEOF
13373 #define HAVE_FSBLKCNT_T 1
13374 _ACEOF
13375
13376
13377 fi
13378 ac_fn_c_check_type "$LINENO" "fsfilcnt_t" "ac_cv_type_fsfilcnt_t" "$ac_includes_default"
13379 if test "x$ac_cv_type_fsfilcnt_t" = xyes; then :
13380
13381 cat >>confdefs.h <<_ACEOF
13382 #define HAVE_FSFILCNT_T 1
13383 _ACEOF
13384
13385
13386 fi
13387
13388 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "#include <sys/types.h>
13389 #include <signal.h>
13390 "
13391 if test "x$ac_cv_type_sigset_t" = xyes; then :
13392
13393 cat >>confdefs.h <<_ACEOF
13394 #define HAVE_SIGSET_T 1
13395 _ACEOF
13396
13397
13398 fi
13399
13400 ac_fn_c_check_type "$LINENO" "request_sense" "ac_cv_type_request_sense" "#include <linux/cdrom.h>
13401 "
13402 if test "x$ac_cv_type_request_sense" = xyes; then :
13403
13404 cat >>confdefs.h <<_ACEOF
13405 #define HAVE_REQUEST_SENSE 1
13406 _ACEOF
13407
13408
13409 fi
13410
13411
13412 ac_fn_c_check_type "$LINENO" "struct xinpgen" "ac_cv_type_struct_xinpgen" "#include <sys/types.h>
13413 #ifdef HAVE_SYS_SOCKET_H
13414 #include <sys/socket.h>
13415 #endif
13416 #ifdef HAVE_SYS_SOCKETVAR_H
13417 #include <sys/socketvar.h>
13418 #endif
13419 #ifdef HAVE_NET_ROUTE_H
13420 #include <net/route.h>
13421 #endif
13422 #ifdef HAVE_NETINET_IN_H
13423 #include <netinet/in.h>
13424 #endif
13425 #ifdef HAVE_NETINET_IN_SYSTM_H
13426 #include <netinet/in_systm.h>
13427 #endif
13428 #ifdef HAVE_NETINET_IP_H
13429 #include <netinet/ip.h>
13430 #endif
13431 #ifdef HAVE_NETINET_IN_PCB_H
13432 #include <netinet/in_pcb.h>
13433 #endif
13434 "
13435 if test "x$ac_cv_type_struct_xinpgen" = xyes; then :
13436
13437 cat >>confdefs.h <<_ACEOF
13438 #define HAVE_STRUCT_XINPGEN 1
13439 _ACEOF
13440
13441
13442 fi
13443
13444
13445 ac_fn_c_check_member "$LINENO" "struct ff_effect" "direction" "ac_cv_member_struct_ff_effect_direction" "#ifdef HAVE_LINUX_INPUT_H
13446 #include <linux/input.h>
13447 #endif
13448 "
13449 if test "x$ac_cv_member_struct_ff_effect_direction" = xyes; then :
13450
13451 cat >>confdefs.h <<_ACEOF
13452 #define HAVE_STRUCT_FF_EFFECT_DIRECTION 1
13453 _ACEOF
13454
13455
13456 fi
13457
13458
13459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigaddset" >&5
13460 $as_echo_n "checking for sigaddset... " >&6; }
13461 if ${wine_cv_have_sigaddset+:} false; then :
13462   $as_echo_n "(cached) " >&6
13463 else
13464   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13465 /* end confdefs.h.  */
13466 #include <signal.h>
13467 int
13468 main ()
13469 {
13470 sigset_t set; sigaddset(&set,SIGTERM);
13471   ;
13472   return 0;
13473 }
13474 _ACEOF
13475 if ac_fn_c_try_link "$LINENO"; then :
13476   wine_cv_have_sigaddset=yes
13477 else
13478   wine_cv_have_sigaddset=no
13479 fi
13480 rm -f core conftest.err conftest.$ac_objext \
13481     conftest$ac_exeext conftest.$ac_ext
13482 fi
13483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sigaddset" >&5
13484 $as_echo "$wine_cv_have_sigaddset" >&6; }
13485 if test "$wine_cv_have_sigaddset" = "yes"
13486 then
13487
13488 $as_echo "#define HAVE_SIGADDSET 1" >>confdefs.h
13489
13490 fi
13491
13492
13493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
13494 $as_echo_n "checking whether we can use re-entrant gethostbyname_r Linux style... " >&6; }
13495 if ${wine_cv_linux_gethostbyname_r_6+:} false; then :
13496   $as_echo_n "(cached) " >&6
13497 else
13498   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13499 /* end confdefs.h.  */
13500 #include <netdb.h>
13501 int
13502 main ()
13503 {
13504
13505     char *name=0;
13506     struct hostent he;
13507     struct hostent *result;
13508     char *buf=0;
13509     int bufsize=0;
13510     int errnr;
13511     char *addr=0;
13512     int addrlen=0;
13513     int addrtype=0;
13514     gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
13515     gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
13516
13517   ;
13518   return 0;
13519 }
13520 _ACEOF
13521 if ac_fn_c_try_link "$LINENO"; then :
13522   wine_cv_linux_gethostbyname_r_6=yes
13523 else
13524   wine_cv_linux_gethostbyname_r_6=no
13525
13526 fi
13527 rm -f core conftest.err conftest.$ac_objext \
13528     conftest$ac_exeext conftest.$ac_ext
13529
13530 fi
13531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_gethostbyname_r_6" >&5
13532 $as_echo "$wine_cv_linux_gethostbyname_r_6" >&6; }
13533    if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
13534    then
13535
13536 $as_echo "#define HAVE_LINUX_GETHOSTBYNAME_R_6 1" >>confdefs.h
13537
13538    fi
13539
13540 if test "$ac_cv_header_linux_joystick_h" = "yes"
13541 then
13542    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
13543 $as_echo_n "checking whether linux/joystick.h uses the Linux 2.2+ API... " >&6; }
13544 if ${wine_cv_linux_joystick_22_api+:} false; then :
13545   $as_echo_n "(cached) " >&6
13546 else
13547   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13548 /* end confdefs.h.  */
13549
13550         #include <sys/ioctl.h>
13551         #include <sys/types.h>
13552         #include <linux/joystick.h>
13553
13554         struct js_event blub;
13555         #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
13556         #error "no 2.2 header"
13557         #endif
13558
13559 int
13560 main ()
13561 {
13562 /*empty*/
13563   ;
13564   return 0;
13565 }
13566 _ACEOF
13567 if ac_fn_c_try_compile "$LINENO"; then :
13568   wine_cv_linux_joystick_22_api=yes
13569 else
13570   wine_cv_linux_joystick_22_api=no
13571 fi
13572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13573
13574 fi
13575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_joystick_22_api" >&5
13576 $as_echo "$wine_cv_linux_joystick_22_api" >&6; }
13577    if test "$wine_cv_linux_joystick_22_api" = "yes"
13578    then
13579
13580 $as_echo "#define HAVE_LINUX_22_JOYSTICK_API 1" >>confdefs.h
13581
13582    fi
13583 fi
13584
13585
13586 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bfree" "ac_cv_member_struct_statfs_f_bfree" "#include <sys/types.h>
13587 #ifdef HAVE_SYS_PARAM_H
13588 # include <sys/param.h>
13589 #endif
13590 #ifdef HAVE_SYS_MOUNT_H
13591 # include <sys/mount.h>
13592 #endif
13593 #ifdef HAVE_SYS_VFS_H
13594 # include <sys/vfs.h>
13595 #endif
13596 #ifdef HAVE_SYS_STATFS_H
13597 # include <sys/statfs.h>
13598 #endif
13599 "
13600 if test "x$ac_cv_member_struct_statfs_f_bfree" = xyes; then :
13601
13602 cat >>confdefs.h <<_ACEOF
13603 #define HAVE_STRUCT_STATFS_F_BFREE 1
13604 _ACEOF
13605
13606
13607 fi
13608 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bavail" "ac_cv_member_struct_statfs_f_bavail" "#include <sys/types.h>
13609 #ifdef HAVE_SYS_PARAM_H
13610 # include <sys/param.h>
13611 #endif
13612 #ifdef HAVE_SYS_MOUNT_H
13613 # include <sys/mount.h>
13614 #endif
13615 #ifdef HAVE_SYS_VFS_H
13616 # include <sys/vfs.h>
13617 #endif
13618 #ifdef HAVE_SYS_STATFS_H
13619 # include <sys/statfs.h>
13620 #endif
13621 "
13622 if test "x$ac_cv_member_struct_statfs_f_bavail" = xyes; then :
13623
13624 cat >>confdefs.h <<_ACEOF
13625 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
13626 _ACEOF
13627
13628
13629 fi
13630 ac_fn_c_check_member "$LINENO" "struct statfs" "f_frsize" "ac_cv_member_struct_statfs_f_frsize" "#include <sys/types.h>
13631 #ifdef HAVE_SYS_PARAM_H
13632 # include <sys/param.h>
13633 #endif
13634 #ifdef HAVE_SYS_MOUNT_H
13635 # include <sys/mount.h>
13636 #endif
13637 #ifdef HAVE_SYS_VFS_H
13638 # include <sys/vfs.h>
13639 #endif
13640 #ifdef HAVE_SYS_STATFS_H
13641 # include <sys/statfs.h>
13642 #endif
13643 "
13644 if test "x$ac_cv_member_struct_statfs_f_frsize" = xyes; then :
13645
13646 cat >>confdefs.h <<_ACEOF
13647 #define HAVE_STRUCT_STATFS_F_FRSIZE 1
13648 _ACEOF
13649
13650
13651 fi
13652 ac_fn_c_check_member "$LINENO" "struct statfs" "f_ffree" "ac_cv_member_struct_statfs_f_ffree" "#include <sys/types.h>
13653 #ifdef HAVE_SYS_PARAM_H
13654 # include <sys/param.h>
13655 #endif
13656 #ifdef HAVE_SYS_MOUNT_H
13657 # include <sys/mount.h>
13658 #endif
13659 #ifdef HAVE_SYS_VFS_H
13660 # include <sys/vfs.h>
13661 #endif
13662 #ifdef HAVE_SYS_STATFS_H
13663 # include <sys/statfs.h>
13664 #endif
13665 "
13666 if test "x$ac_cv_member_struct_statfs_f_ffree" = xyes; then :
13667
13668 cat >>confdefs.h <<_ACEOF
13669 #define HAVE_STRUCT_STATFS_F_FFREE 1
13670 _ACEOF
13671
13672
13673 fi
13674 ac_fn_c_check_member "$LINENO" "struct statfs" "f_favail" "ac_cv_member_struct_statfs_f_favail" "#include <sys/types.h>
13675 #ifdef HAVE_SYS_PARAM_H
13676 # include <sys/param.h>
13677 #endif
13678 #ifdef HAVE_SYS_MOUNT_H
13679 # include <sys/mount.h>
13680 #endif
13681 #ifdef HAVE_SYS_VFS_H
13682 # include <sys/vfs.h>
13683 #endif
13684 #ifdef HAVE_SYS_STATFS_H
13685 # include <sys/statfs.h>
13686 #endif
13687 "
13688 if test "x$ac_cv_member_struct_statfs_f_favail" = xyes; then :
13689
13690 cat >>confdefs.h <<_ACEOF
13691 #define HAVE_STRUCT_STATFS_F_FAVAIL 1
13692 _ACEOF
13693
13694
13695 fi
13696 ac_fn_c_check_member "$LINENO" "struct statfs" "f_namelen" "ac_cv_member_struct_statfs_f_namelen" "#include <sys/types.h>
13697 #ifdef HAVE_SYS_PARAM_H
13698 # include <sys/param.h>
13699 #endif
13700 #ifdef HAVE_SYS_MOUNT_H
13701 # include <sys/mount.h>
13702 #endif
13703 #ifdef HAVE_SYS_VFS_H
13704 # include <sys/vfs.h>
13705 #endif
13706 #ifdef HAVE_SYS_STATFS_H
13707 # include <sys/statfs.h>
13708 #endif
13709 "
13710 if test "x$ac_cv_member_struct_statfs_f_namelen" = xyes; then :
13711
13712 cat >>confdefs.h <<_ACEOF
13713 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
13714 _ACEOF
13715
13716
13717 fi
13718
13719
13720 ac_fn_c_check_member "$LINENO" "struct statvfs" "f_blocks" "ac_cv_member_struct_statvfs_f_blocks" "#ifdef HAVE_SYS_STATVFS_H
13721 #include <sys/statvfs.h>
13722 #endif
13723 "
13724 if test "x$ac_cv_member_struct_statvfs_f_blocks" = xyes; then :
13725
13726 cat >>confdefs.h <<_ACEOF
13727 #define HAVE_STRUCT_STATVFS_F_BLOCKS 1
13728 _ACEOF
13729
13730
13731 fi
13732
13733
13734 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_accrights" "ac_cv_member_struct_msghdr_msg_accrights" "#include <sys/types.h>
13735 #ifdef HAVE_SYS_SOCKET_H
13736 # include <sys/socket.h>
13737 #endif
13738 #ifdef HAVE_SYS_UN_H
13739 # include <sys/un.h>
13740 #endif
13741 "
13742 if test "x$ac_cv_member_struct_msghdr_msg_accrights" = xyes; then :
13743
13744 cat >>confdefs.h <<_ACEOF
13745 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
13746 _ACEOF
13747
13748
13749 fi
13750 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
13751 #ifdef HAVE_SYS_SOCKET_H
13752 # include <sys/socket.h>
13753 #endif
13754 #ifdef HAVE_SYS_UN_H
13755 # include <sys/un.h>
13756 #endif
13757 "
13758 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
13759
13760 cat >>confdefs.h <<_ACEOF
13761 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
13762 _ACEOF
13763
13764
13765 fi
13766 ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" "#include <sys/types.h>
13767 #ifdef HAVE_SYS_SOCKET_H
13768 # include <sys/socket.h>
13769 #endif
13770 #ifdef HAVE_SYS_UN_H
13771 # include <sys/un.h>
13772 #endif
13773 "
13774 if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes; then :
13775
13776 cat >>confdefs.h <<_ACEOF
13777 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
13778 _ACEOF
13779
13780
13781 fi
13782
13783
13784 ac_fn_c_check_member "$LINENO" "scsireq_t" "cmd" "ac_cv_member_scsireq_t_cmd" "#include <sys/types.h>
13785 #ifdef HAVE_SCSI_SG_H
13786 #include <scsi/sg.h>
13787 #endif
13788 "
13789 if test "x$ac_cv_member_scsireq_t_cmd" = xyes; then :
13790
13791 cat >>confdefs.h <<_ACEOF
13792 #define HAVE_SCSIREQ_T_CMD 1
13793 _ACEOF
13794
13795
13796 fi
13797 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>
13798 #ifdef HAVE_SCSI_SG_H
13799 #include <scsi/sg.h>
13800 #endif
13801 "
13802 if test "x$ac_cv_member_sg_io_hdr_t_interface_id" = xyes; then :
13803
13804 cat >>confdefs.h <<_ACEOF
13805 #define HAVE_SG_IO_HDR_T_INTERFACE_ID 1
13806 _ACEOF
13807
13808
13809 fi
13810
13811
13812 ac_fn_c_check_member "$LINENO" "siginfo_t" "si_fd" "ac_cv_member_siginfo_t_si_fd" "#include <signal.h>
13813 "
13814 if test "x$ac_cv_member_siginfo_t_si_fd" = xyes; then :
13815
13816 cat >>confdefs.h <<_ACEOF
13817 #define HAVE_SIGINFO_T_SI_FD 1
13818 _ACEOF
13819
13820
13821 fi
13822
13823
13824 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blksiz" "ac_cv_member_struct_mtget_mt_blksiz" "#include <sys/types.h>
13825 #ifdef HAVE_SYS_MTIO_H
13826 #include <sys/mtio.h>
13827 #endif
13828 "
13829 if test "x$ac_cv_member_struct_mtget_mt_blksiz" = xyes; then :
13830
13831 cat >>confdefs.h <<_ACEOF
13832 #define HAVE_STRUCT_MTGET_MT_BLKSIZ 1
13833 _ACEOF
13834
13835
13836 fi
13837 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_gstat" "ac_cv_member_struct_mtget_mt_gstat" "#include <sys/types.h>
13838 #ifdef HAVE_SYS_MTIO_H
13839 #include <sys/mtio.h>
13840 #endif
13841 "
13842 if test "x$ac_cv_member_struct_mtget_mt_gstat" = xyes; then :
13843
13844 cat >>confdefs.h <<_ACEOF
13845 #define HAVE_STRUCT_MTGET_MT_GSTAT 1
13846 _ACEOF
13847
13848
13849 fi
13850 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blkno" "ac_cv_member_struct_mtget_mt_blkno" "#include <sys/types.h>
13851 #ifdef HAVE_SYS_MTIO_H
13852 #include <sys/mtio.h>
13853 #endif
13854 "
13855 if test "x$ac_cv_member_struct_mtget_mt_blkno" = xyes; then :
13856
13857 cat >>confdefs.h <<_ACEOF
13858 #define HAVE_STRUCT_MTGET_MT_BLKNO 1
13859 _ACEOF
13860
13861
13862 fi
13863
13864
13865 ac_fn_c_check_member "$LINENO" "struct option" "name" "ac_cv_member_struct_option_name" "#ifdef HAVE_GETOPT_H
13866 #include <getopt.h>
13867 #endif
13868 "
13869 if test "x$ac_cv_member_struct_option_name" = xyes; then :
13870
13871 cat >>confdefs.h <<_ACEOF
13872 #define HAVE_STRUCT_OPTION_NAME 1
13873 _ACEOF
13874
13875
13876 fi
13877
13878
13879 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
13880 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
13881
13882 cat >>confdefs.h <<_ACEOF
13883 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
13884 _ACEOF
13885
13886
13887 fi
13888 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
13889 if test "x$ac_cv_member_struct_stat_st_mtim" = xyes; then :
13890
13891 cat >>confdefs.h <<_ACEOF
13892 #define HAVE_STRUCT_STAT_ST_MTIM 1
13893 _ACEOF
13894
13895
13896 fi
13897 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctim" "ac_cv_member_struct_stat_st_ctim" "$ac_includes_default"
13898 if test "x$ac_cv_member_struct_stat_st_ctim" = xyes; then :
13899
13900 cat >>confdefs.h <<_ACEOF
13901 #define HAVE_STRUCT_STAT_ST_CTIM 1
13902 _ACEOF
13903
13904
13905 fi
13906 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
13907 if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
13908
13909 cat >>confdefs.h <<_ACEOF
13910 #define HAVE_STRUCT_STAT_ST_ATIM 1
13911 _ACEOF
13912
13913
13914 fi
13915
13916
13917 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
13918 #include <sys/types.h>
13919 #endif
13920 #ifdef HAVE_NETINET_IN_H
13921 #include <netinet/in.h>
13922 #endif
13923 "
13924 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = xyes; then :
13925
13926 cat >>confdefs.h <<_ACEOF
13927 #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
13928 _ACEOF
13929
13930
13931 fi
13932
13933
13934 ac_fn_c_check_member "$LINENO" "ns_msg" "_msg_ptr" "ac_cv_member_ns_msg__msg_ptr" "#ifdef HAVE_SYS_TYPES_H
13935 #include <sys/types.h>
13936 #endif
13937 #ifdef HAVE_NETINET_IN_H
13938 # include <netinet/in.h>
13939 #endif
13940 #ifdef HAVE_ARPA_NAMESER_H
13941 # include <arpa/nameser.h>
13942 #endif
13943 "
13944 if test "x$ac_cv_member_ns_msg__msg_ptr" = xyes; then :
13945
13946 cat >>confdefs.h <<_ACEOF
13947 #define HAVE_NS_MSG__MSG_PTR 1
13948 _ACEOF
13949
13950
13951 fi
13952
13953
13954 ac_fn_c_check_member "$LINENO" "struct icmpstat" "icps_outhist" "ac_cv_member_struct_icmpstat_icps_outhist" "#ifdef HAVE_SYS_TYPES_H
13955 #include <sys/types.h>
13956 #endif
13957 #ifdef HAVE_ALIAS_H
13958 #include <alias.h>
13959 #endif
13960 #ifdef HAVE_SYS_SOCKET_H
13961 #include <sys/socket.h>
13962 #endif
13963 #ifdef HAVE_SYS_SOCKETVAR_H
13964 #include <sys/socketvar.h>
13965 #endif
13966 #ifdef HAVE_SYS_TIMEOUT_H
13967 #include <sys/timeout.h>
13968 #endif
13969 #ifdef HAVE_NETINET_IN_H
13970 #include <netinet/in.h>
13971 #endif
13972 #ifdef HAVE_NETINET_IN_SYSTM_H
13973 #include <netinet/in_systm.h>
13974 #endif
13975 #ifdef HAVE_NETINET_IP_H
13976 #include <netinet/ip.h>
13977 #endif
13978 #ifdef HAVE_NETINET_IP_VAR_H
13979 #include <netinet/ip_var.h>
13980 #endif
13981 #ifdef HAVE_NETINET_IP_ICMP_H
13982 #include <netinet/ip_icmp.h>
13983 #endif
13984 #ifdef HAVE_NETINET_ICMP_VAR
13985 #include <netinet/icmp_var.h>
13986 #endif
13987 "
13988 if test "x$ac_cv_member_struct_icmpstat_icps_outhist" = xyes; then :
13989
13990 cat >>confdefs.h <<_ACEOF
13991 #define HAVE_STRUCT_ICMPSTAT_ICPS_OUTHIST 1
13992 _ACEOF
13993
13994
13995 fi
13996
13997
13998 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "#ifdef HAVE_SYS_TYPES_H
13999 #include <sys/types.h>
14000 #endif
14001 #ifdef HAVE_NET_IF_H
14002 # include <net/if.h>
14003 #endif
14004 "
14005 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = xyes; then :
14006
14007 cat >>confdefs.h <<_ACEOF
14008 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
14009 _ACEOF
14010
14011
14012 fi
14013
14014
14015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone variable" >&5
14016 $as_echo_n "checking for timezone variable... " >&6; }
14017 if ${ac_cv_have_timezone+:} false; then :
14018   $as_echo_n "(cached) " >&6
14019 else
14020   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14021 /* end confdefs.h.  */
14022 #include <time.h>
14023 int
14024 main ()
14025 {
14026 timezone = 1
14027   ;
14028   return 0;
14029 }
14030 _ACEOF
14031 if ac_fn_c_try_link "$LINENO"; then :
14032   ac_cv_have_timezone="yes"
14033 else
14034   ac_cv_have_timezone="no"
14035 fi
14036 rm -f core conftest.err conftest.$ac_objext \
14037     conftest$ac_exeext conftest.$ac_ext
14038 fi
14039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_timezone" >&5
14040 $as_echo "$ac_cv_have_timezone" >&6; }
14041 if test "$ac_cv_have_timezone" = "yes"
14042 then
14043
14044 $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
14045
14046 fi
14047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daylight variable" >&5
14048 $as_echo_n "checking for daylight variable... " >&6; }
14049 if ${ac_cv_have_daylight+:} false; then :
14050   $as_echo_n "(cached) " >&6
14051 else
14052   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14053 /* end confdefs.h.  */
14054 #include <time.h>
14055 int
14056 main ()
14057 {
14058 daylight = 1
14059   ;
14060   return 0;
14061 }
14062 _ACEOF
14063 if ac_fn_c_try_link "$LINENO"; then :
14064   ac_cv_have_daylight="yes"
14065 else
14066   ac_cv_have_daylight="no"
14067 fi
14068 rm -f core conftest.err conftest.$ac_objext \
14069     conftest$ac_exeext conftest.$ac_ext
14070 fi
14071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_daylight" >&5
14072 $as_echo "$ac_cv_have_daylight" >&6; }
14073 if test "$ac_cv_have_daylight" = "yes"
14074 then
14075
14076 $as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h
14077
14078 fi
14079
14080 ac_save_LIBS="$LIBS"
14081 LIBS="$LIBS -lm"
14082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf" >&5
14083 $as_echo_n "checking for isinf... " >&6; }
14084 if ${ac_cv_have_isinf+:} false; then :
14085   $as_echo_n "(cached) " >&6
14086 else
14087   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14088 /* end confdefs.h.  */
14089 #include <math.h>
14090 int
14091 main ()
14092 {
14093 float f = 0.0; return isinf(f)
14094   ;
14095   return 0;
14096 }
14097 _ACEOF
14098 if ac_fn_c_try_link "$LINENO"; then :
14099   ac_cv_have_isinf="yes"
14100 else
14101   ac_cv_have_isinf="no"
14102 fi
14103 rm -f core conftest.err conftest.$ac_objext \
14104     conftest$ac_exeext conftest.$ac_ext
14105 fi
14106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isinf" >&5
14107 $as_echo "$ac_cv_have_isinf" >&6; }
14108 if test "$ac_cv_have_isinf" = "yes"
14109 then
14110
14111 $as_echo "#define HAVE_ISINF 1" >>confdefs.h
14112
14113 fi
14114
14115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan" >&5
14116 $as_echo_n "checking for isnan... " >&6; }
14117 if ${ac_cv_have_isnan+:} false; then :
14118   $as_echo_n "(cached) " >&6
14119 else
14120   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14121 /* end confdefs.h.  */
14122 #include <math.h>
14123 int
14124 main ()
14125 {
14126 float f = 0.0; return isnan(f)
14127   ;
14128   return 0;
14129 }
14130 _ACEOF
14131 if ac_fn_c_try_link "$LINENO"; then :
14132   ac_cv_have_isnan="yes"
14133 else
14134   ac_cv_have_isnan="no"
14135 fi
14136 rm -f core conftest.err conftest.$ac_objext \
14137     conftest$ac_exeext conftest.$ac_ext
14138 fi
14139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isnan" >&5
14140 $as_echo "$ac_cv_have_isnan" >&6; }
14141 if test "$ac_cv_have_isnan" = "yes"
14142 then
14143
14144 $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
14145
14146 fi
14147 LIBS="$ac_save_LIBS"
14148
14149
14150 case $host_cpu in
14151   *i[3456789]86*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __i386__" >&5
14152 $as_echo_n "checking whether we need to define __i386__... " >&6; }
14153 if ${ac_cv_cpp_def___i386__+:} false; then :
14154   $as_echo_n "(cached) " >&6
14155 else
14156   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14157 /* end confdefs.h.  */
14158 #ifndef __i386__
14159 yes
14160 #endif
14161 _ACEOF
14162 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14163   $EGREP "yes" >/dev/null 2>&1; then :
14164   ac_cv_cpp_def___i386__=yes
14165 else
14166   ac_cv_cpp_def___i386__=no
14167 fi
14168 rm -f conftest*
14169
14170 fi
14171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___i386__" >&5
14172 $as_echo "$ac_cv_cpp_def___i386__" >&6; }
14173 if test $ac_cv_cpp_def___i386__ = yes; then :
14174   CFLAGS="$CFLAGS -D__i386__"
14175   LINTFLAGS="$LINTFLAGS -D__i386__"
14176 fi ;;
14177   *x86_64*)         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __x86_64__" >&5
14178 $as_echo_n "checking whether we need to define __x86_64__... " >&6; }
14179 if ${ac_cv_cpp_def___x86_64__+:} false; then :
14180   $as_echo_n "(cached) " >&6
14181 else
14182   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14183 /* end confdefs.h.  */
14184 #ifndef __x86_64__
14185 yes
14186 #endif
14187 _ACEOF
14188 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14189   $EGREP "yes" >/dev/null 2>&1; then :
14190   ac_cv_cpp_def___x86_64__=yes
14191 else
14192   ac_cv_cpp_def___x86_64__=no
14193 fi
14194 rm -f conftest*
14195
14196 fi
14197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___x86_64__" >&5
14198 $as_echo "$ac_cv_cpp_def___x86_64__" >&6; }
14199 if test $ac_cv_cpp_def___x86_64__ = yes; then :
14200   CFLAGS="$CFLAGS -D__x86_64__"
14201   LINTFLAGS="$LINTFLAGS -D__x86_64__"
14202 fi ;;
14203   *sparc64*)        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sparc64__" >&5
14204 $as_echo_n "checking whether we need to define __sparc64__... " >&6; }
14205 if ${ac_cv_cpp_def___sparc64__+:} false; then :
14206   $as_echo_n "(cached) " >&6
14207 else
14208   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14209 /* end confdefs.h.  */
14210 #ifndef __sparc64__
14211 yes
14212 #endif
14213 _ACEOF
14214 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14215   $EGREP "yes" >/dev/null 2>&1; then :
14216   ac_cv_cpp_def___sparc64__=yes
14217 else
14218   ac_cv_cpp_def___sparc64__=no
14219 fi
14220 rm -f conftest*
14221
14222 fi
14223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sparc64__" >&5
14224 $as_echo "$ac_cv_cpp_def___sparc64__" >&6; }
14225 if test $ac_cv_cpp_def___sparc64__ = yes; then :
14226   CFLAGS="$CFLAGS -D__sparc64__"
14227   LINTFLAGS="$LINTFLAGS -D__sparc64__"
14228 fi ;;
14229   *sparc*)          { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sparc__" >&5
14230 $as_echo_n "checking whether we need to define __sparc__... " >&6; }
14231 if ${ac_cv_cpp_def___sparc__+:} false; then :
14232   $as_echo_n "(cached) " >&6
14233 else
14234   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14235 /* end confdefs.h.  */
14236 #ifndef __sparc__
14237 yes
14238 #endif
14239 _ACEOF
14240 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14241   $EGREP "yes" >/dev/null 2>&1; then :
14242   ac_cv_cpp_def___sparc__=yes
14243 else
14244   ac_cv_cpp_def___sparc__=no
14245 fi
14246 rm -f conftest*
14247
14248 fi
14249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sparc__" >&5
14250 $as_echo "$ac_cv_cpp_def___sparc__" >&6; }
14251 if test $ac_cv_cpp_def___sparc__ = yes; then :
14252   CFLAGS="$CFLAGS -D__sparc__"
14253   LINTFLAGS="$LINTFLAGS -D__sparc__"
14254 fi ;;
14255   *powerpc64*)      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __powerpc64__" >&5
14256 $as_echo_n "checking whether we need to define __powerpc64__... " >&6; }
14257 if ${ac_cv_cpp_def___powerpc64__+:} false; then :
14258   $as_echo_n "(cached) " >&6
14259 else
14260   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14261 /* end confdefs.h.  */
14262 #ifndef __powerpc64__
14263 yes
14264 #endif
14265 _ACEOF
14266 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14267   $EGREP "yes" >/dev/null 2>&1; then :
14268   ac_cv_cpp_def___powerpc64__=yes
14269 else
14270   ac_cv_cpp_def___powerpc64__=no
14271 fi
14272 rm -f conftest*
14273
14274 fi
14275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___powerpc64__" >&5
14276 $as_echo "$ac_cv_cpp_def___powerpc64__" >&6; }
14277 if test $ac_cv_cpp_def___powerpc64__ = yes; then :
14278   CFLAGS="$CFLAGS -D__powerpc64__"
14279   LINTFLAGS="$LINTFLAGS -D__powerpc64__"
14280 fi ;;
14281   *powerpc*)        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __powerpc__" >&5
14282 $as_echo_n "checking whether we need to define __powerpc__... " >&6; }
14283 if ${ac_cv_cpp_def___powerpc__+:} false; then :
14284   $as_echo_n "(cached) " >&6
14285 else
14286   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14287 /* end confdefs.h.  */
14288 #ifndef __powerpc__
14289 yes
14290 #endif
14291 _ACEOF
14292 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14293   $EGREP "yes" >/dev/null 2>&1; then :
14294   ac_cv_cpp_def___powerpc__=yes
14295 else
14296   ac_cv_cpp_def___powerpc__=no
14297 fi
14298 rm -f conftest*
14299
14300 fi
14301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___powerpc__" >&5
14302 $as_echo "$ac_cv_cpp_def___powerpc__" >&6; }
14303 if test $ac_cv_cpp_def___powerpc__ = yes; then :
14304   CFLAGS="$CFLAGS -D__powerpc__"
14305   LINTFLAGS="$LINTFLAGS -D__powerpc__"
14306 fi ;;
14307   *arm*)            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __arm__" >&5
14308 $as_echo_n "checking whether we need to define __arm__... " >&6; }
14309 if ${ac_cv_cpp_def___arm__+:} false; then :
14310   $as_echo_n "(cached) " >&6
14311 else
14312   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14313 /* end confdefs.h.  */
14314 #ifndef __arm__
14315 yes
14316 #endif
14317 _ACEOF
14318 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14319   $EGREP "yes" >/dev/null 2>&1; then :
14320   ac_cv_cpp_def___arm__=yes
14321 else
14322   ac_cv_cpp_def___arm__=no
14323 fi
14324 rm -f conftest*
14325
14326 fi
14327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___arm__" >&5
14328 $as_echo "$ac_cv_cpp_def___arm__" >&6; }
14329 if test $ac_cv_cpp_def___arm__ = yes; then :
14330   CFLAGS="$CFLAGS -D__arm__"
14331   LINTFLAGS="$LINTFLAGS -D__arm__"
14332 fi ;;
14333 esac
14334
14335 case $host_vendor in
14336   *sun*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sun__" >&5
14337 $as_echo_n "checking whether we need to define __sun__... " >&6; }
14338 if ${ac_cv_cpp_def___sun__+:} false; then :
14339   $as_echo_n "(cached) " >&6
14340 else
14341   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14342 /* end confdefs.h.  */
14343 #ifndef __sun__
14344 yes
14345 #endif
14346 _ACEOF
14347 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14348   $EGREP "yes" >/dev/null 2>&1; then :
14349   ac_cv_cpp_def___sun__=yes
14350 else
14351   ac_cv_cpp_def___sun__=no
14352 fi
14353 rm -f conftest*
14354
14355 fi
14356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sun__" >&5
14357 $as_echo "$ac_cv_cpp_def___sun__" >&6; }
14358 if test $ac_cv_cpp_def___sun__ = yes; then :
14359   CFLAGS="$CFLAGS -D__sun__"
14360   LINTFLAGS="$LINTFLAGS -D__sun__"
14361 fi ;;
14362 esac
14363
14364
14365
14366
14367
14368 ac_config_commands="$ac_config_commands include/stamp-h"
14369
14370
14371 ALL_MAKEFILE_DEPENDS="
14372 # Rules automatically generated by configure
14373
14374 .INIT: Makefile
14375 .MAKEFILEDEPS:
14376 all: Makefile
14377 Makefile: Makefile.in Make.vars.in Make.rules config.status
14378         @./config.status Make.tmp Makefile"
14379
14380 ALL_POT_FILES=""
14381 ALL_TEST_RESOURCES=""
14382
14383
14384 wine_fn_append_file ()
14385 {
14386     as_fn_append $1 " \\$as_nl  $2"
14387 }
14388
14389 wine_fn_append_rule ()
14390 {
14391     as_fn_append $1 "$as_nl$2"
14392 }
14393
14394 wine_fn_has_flag ()
14395 {
14396     expr ",$2," : ".*,$1,.*" >/dev/null
14397 }
14398
14399 wine_fn_all_dir_rules ()
14400 {
14401     ac_dir=$1
14402     ac_alldeps=$2
14403     ac_makedep="\$(MAKEDEP)"
14404     ac_input=Make.vars.in:$ac_dir/Makefile.in
14405     if test $ac_dir != tools
14406     then
14407                 ac_alldeps="$2 $ac_makedep"
14408     fi
14409     case $2 in
14410       *.in) ac_input=$ac_input:$2 ;;
14411       *) ac_makedep="$2 $ac_makedep" ;;
14412     esac
14413
14414     wine_fn_append_file ALL_DIRS $ac_dir
14415     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14416 "__clean__: $ac_dir/__clean__
14417 .PHONY: $ac_dir/__clean__
14418 $ac_dir/__clean__: $ac_dir/Makefile
14419         @cd $ac_dir && \$(MAKE) clean
14420         \$(RM) $ac_dir/Makefile
14421 $ac_dir/Makefile: $ac_dir/Makefile.in Make.vars.in config.status $ac_alldeps
14422         @./config.status --file $ac_dir/Makefile:$ac_input && cd $ac_dir && \$(MAKE) depend
14423 depend: $ac_dir/__depend__
14424 .PHONY: $ac_dir/__depend__
14425 $ac_dir/__depend__: $ac_makedep dummy
14426         @./config.status --file $ac_dir/Makefile:$ac_input && cd $ac_dir && \$(MAKE) depend"
14427 }
14428
14429 wine_fn_pot_rules ()
14430 {
14431     ac_dir=$1
14432     ac_flags=$2
14433
14434     test "x$with_gettextpo" = xyes || return
14435
14436     if wine_fn_has_flag mc $ac_flags
14437     then
14438         wine_fn_append_file ALL_POT_FILES $ac_dir/msg.pot
14439         wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14440 "$ac_dir/msg.pot: $ac_dir/Makefile dummy
14441         @cd $ac_dir && \$(MAKE) msg.pot
14442 $ac_dir/msg.pot: tools/wmc include"
14443     fi
14444     if wine_fn_has_flag po $ac_flags
14445     then
14446         wine_fn_append_file ALL_POT_FILES $ac_dir/rsrc.pot
14447         wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14448 "$ac_dir/rsrc.pot: $ac_dir/Makefile dummy
14449         @cd $ac_dir && \$(MAKE) rsrc.pot
14450 $ac_dir/rsrc.pot: tools/wrc include"
14451     fi
14452 }
14453
14454 wine_fn_config_makefile ()
14455 {
14456     ac_dir=$1
14457     ac_enable=$2
14458     ac_flags=$3
14459     ac_rules=$4
14460     if eval test \"x\$"$ac_enable"\" = x"no"; then :
14461   return 0
14462 fi
14463
14464     wine_fn_all_dir_rules $ac_dir ${ac_rules:-Make.rules}
14465     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14466 "all: $ac_dir
14467 .PHONY: $ac_dir
14468 $ac_dir: $ac_dir/Makefile dummy
14469         @cd $ac_dir && \$(MAKE)"
14470
14471     wine_fn_has_flag install-lib $ac_flags || wine_fn_has_flag install-dev $ac_flags || return
14472
14473     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14474 ".PHONY: $ac_dir/__install__ $ac_dir/__uninstall__
14475 $ac_dir/__install__:: $ac_dir
14476         @cd $ac_dir && \$(MAKE) install
14477 $ac_dir/__uninstall__:: $ac_dir/Makefile
14478         @cd $ac_dir && \$(MAKE) uninstall
14479 install:: $ac_dir/__install__
14480 __uninstall__: $ac_dir/__uninstall__"
14481
14482     if wine_fn_has_flag install-lib $ac_flags
14483     then
14484         wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14485 ".PHONY: $ac_dir/__install-lib__
14486 $ac_dir/__install-lib__:: $ac_dir
14487         @cd $ac_dir && \$(MAKE) install-lib
14488 install-lib:: $ac_dir/__install-lib__"
14489     fi
14490
14491     if wine_fn_has_flag install-dev $ac_flags
14492     then
14493         wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14494 ".PHONY: $ac_dir/__install-dev
14495 $ac_dir/__install-dev__:: $ac_dir
14496         @cd $ac_dir && \$(MAKE) install-dev
14497 install-dev:: $ac_dir/__install-dev__"
14498     fi
14499 }
14500
14501 wine_fn_config_lib ()
14502 {
14503     ac_name=$1
14504     ac_flags=$2
14505     ac_dir=dlls/$ac_name
14506     wine_fn_config_makefile $ac_dir enable_$ac_name "$ac_flags" dlls/Makeimplib.rules
14507
14508     if wine_fn_has_flag install-dev $ac_flags
14509     then :
14510     else
14511         wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14512 ".PHONY: $ac_dir/__install__ $ac_dir/__uninstall__
14513 $ac_dir/__install__:: $ac_dir \$(DESTDIR)\$(dlldir)
14514         \$(INSTALL_DATA) $ac_dir/lib$ac_name.a \$(DESTDIR)\$(dlldir)/lib$ac_name.a
14515 $ac_dir/__uninstall__::
14516         \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_name.a
14517 install install-dev:: $ac_dir/__install__
14518 __uninstall__: $ac_dir/__uninstall__"
14519     fi
14520
14521     wine_fn_append_rule ALL_MAKEFILE_DEPENDS "__builddeps__: $ac_dir"
14522     wine_fn_append_rule ALL_MAKEFILE_DEPENDS "$ac_dir: tools/widl tools/winebuild tools/winegcc include"
14523 }
14524
14525 wine_fn_config_dll ()
14526 {
14527     ac_name=$1
14528     ac_dir=dlls/$ac_name
14529     ac_enable=$2
14530     ac_flags=$3
14531     ac_implib=${4:-$ac_name}
14532     ac_file=$ac_dir/lib$ac_implib
14533     ac_dll=$ac_name
14534     ac_deps="tools/widl tools/winebuild tools/winegcc include"
14535     ac_implibflags=""
14536
14537     case $ac_name in
14538       *16) ac_implibflags=" -m16" ;;
14539       *.*) ;;
14540       *)   ac_dll=$ac_dll.dll ;;
14541     esac
14542
14543     wine_fn_config_makefile $ac_dir $ac_enable "$ac_flags" dlls/Makedll.rules
14544
14545     if eval test \"x\$"$ac_enable"\" = x"no"; then :
14546                 test "$ac_enable" != enable_win16 || return 0
14547                wine_fn_has_flag implib $ac_flags && wine_fn_all_dir_rules $ac_dir dlls/Makedll.rules
14548 else
14549   wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14550 "$ac_dir: __builddeps__
14551 manpages htmlpages sgmlpages xmlpages:: $ac_dir/Makefile
14552         @cd $ac_dir && \$(MAKE) \$@"
14553
14554         if wine_fn_has_flag install-lib $ac_flags
14555         then :
14556         else
14557             wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14558 ".PHONY: $ac_dir/__install-lib__ $ac_dir/__uninstall__
14559 install install-lib:: $ac_dir/__install-lib__
14560 __uninstall__: $ac_dir/__uninstall__"
14561             if test -n "$DLLEXT"
14562             then
14563                 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14564 "$ac_dir/__install-lib__:: $ac_dir \$(DESTDIR)\$(dlldir) \$(DESTDIR)\$(fakedlldir)
14565         \$(INSTALL_PROGRAM) $ac_dir/$ac_dll$DLLEXT \$(DESTDIR)\$(dlldir)/$ac_dll$DLLEXT
14566         \$(INSTALL_DATA) $ac_dir/$ac_dll.fake \$(DESTDIR)\$(fakedlldir)/$ac_dll
14567 $ac_dir/__uninstall__::
14568         \$(RM) \$(DESTDIR)\$(dlldir)/$ac_dll$DLLEXT \$(DESTDIR)\$(fakedlldir)/$ac_dll"
14569             else
14570                 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14571 "$ac_dir/__install-lib__:: $ac_dir \$(DESTDIR)\$(dlldir)
14572         \$(INSTALL_PROGRAM) $ac_dir/$ac_dll \$(DESTDIR)\$(dlldir)/$ac_dll
14573 $ac_dir/__uninstall__::
14574         \$(RM) \$(DESTDIR)\$(dlldir)/$ac_dll"
14575             fi
14576         fi
14577
14578         wine_fn_pot_rules $ac_dir $ac_flags
14579 fi
14580
14581     if wine_fn_has_flag staticimplib $ac_flags
14582     then
14583         wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14584 "__builddeps__: $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT
14585 $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT $ac_file.cross.a: $ac_deps
14586 $ac_file.def: $ac_dir/$ac_name.spec $ac_dir/Makefile
14587         @cd $ac_dir && \$(MAKE) lib$ac_implib.def
14588 $ac_file.$STATIC_IMPLIBEXT: $ac_dir/Makefile dummy
14589         @cd $ac_dir && \$(MAKE) lib$ac_implib.$STATIC_IMPLIBEXT
14590 .PHONY: $ac_dir/__install-dev__ $ac_dir/__uninstall__
14591 $ac_dir/__install-dev__:: $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)
14592         \$(INSTALL_DATA) $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
14593 $ac_dir/__uninstall__::
14594         \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
14595 install install-dev:: $ac_dir/__install-dev__
14596 __uninstall__: $ac_dir/__uninstall__"
14597
14598         if test "$IMPLIBEXT" != "$STATIC_IMPLIBEXT"
14599         then
14600             wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14601 "$ac_dir/__install-dev__:: $ac_file.$STATIC_IMPLIBEXT \$(DESTDIR)\$(dlldir) __builddeps__
14602         \$(INSTALL_DATA) $ac_file.$STATIC_IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$STATIC_IMPLIBEXT
14603 $ac_dir/__uninstall__::
14604         \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$STATIC_IMPLIBEXT"
14605         fi
14606
14607         if test "x$CROSSTEST_DISABLE" = x
14608         then
14609             wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14610 "__builddeps__: $ac_file.cross.a
14611 $ac_file.cross.a: $ac_dir/Makefile dummy
14612         @cd $ac_dir && \$(MAKE) lib$ac_implib.cross.a"
14613         fi
14614
14615     elif wine_fn_has_flag implib $ac_flags
14616     then
14617         wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14618 "__builddeps__: $ac_file.$IMPLIBEXT
14619 $ac_file.def: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
14620         \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --def -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec
14621 $ac_file.a: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
14622         \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --implib -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec
14623 .PHONY: $ac_dir/__install-dev__ $ac_dir/__uninstall__
14624 $ac_dir/__install-dev__:: $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)
14625         \$(INSTALL_DATA) $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
14626 $ac_dir/__uninstall__::
14627         \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
14628 install install-dev:: $ac_dir/__install-dev__
14629 __uninstall__: $ac_dir/__uninstall__"
14630         if test "x$CROSSTEST_DISABLE" = x
14631         then
14632             wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14633 "__builddeps__: $ac_file.cross.a
14634 $ac_file.cross.a: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
14635         \$(WINEBUILD) \$(CROSSTARGET:%=-b %)$ac_implibflags -w --implib -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec"
14636         fi
14637
14638         if test "$ac_name" != "$ac_implib"
14639         then
14640             wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14641 "__builddeps__: dlls/lib$ac_implib.$IMPLIBEXT
14642 dlls/lib$ac_implib.$IMPLIBEXT: $ac_file.$IMPLIBEXT
14643         \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.$IMPLIBEXT \$@
14644 clean::
14645         \$(RM) dlls/lib$ac_implib.$IMPLIBEXT"
14646             if test "x$CROSSTEST_DISABLE" = x
14647             then
14648                 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14649 "__builddeps__: dlls/lib$ac_implib.cross.a
14650 dlls/lib$ac_implib.cross.a: $ac_file.cross.a
14651         \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.cross.a \$@"
14652             fi
14653         fi
14654     fi
14655 }
14656
14657 wine_fn_config_program ()
14658 {
14659     ac_name=$1
14660     ac_dir=programs/$ac_name
14661     ac_enable=$2
14662     ac_flags=$3
14663     ac_program=$ac_name
14664
14665     case $ac_name in
14666       *.*) ;;
14667       *)   ac_program=$ac_program.exe ;;
14668     esac
14669
14670     wine_fn_config_makefile $ac_dir $ac_enable "$ac_flags" programs/Makeprog.rules
14671
14672     if eval test \"x\$"$ac_enable"\" = x"no"; then :
14673
14674 else
14675   wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14676 "$ac_dir: __builddeps__"
14677
14678     wine_fn_pot_rules $ac_dir $ac_flags
14679
14680     wine_fn_has_flag install $ac_flags || return
14681     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14682 ".PHONY: $ac_dir/__install__ $ac_dir/__uninstall__
14683 install install-lib:: $ac_dir/__install__
14684 __uninstall__: $ac_dir/__uninstall__"
14685
14686     if test -n "$DLLEXT"
14687     then
14688         wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14689 "$ac_dir/__install__:: $ac_dir \$(DESTDIR)\$(dlldir) \$(DESTDIR)\$(fakedlldir)
14690         \$(INSTALL_PROGRAM) $ac_dir/$ac_program$DLLEXT \$(DESTDIR)\$(dlldir)/$ac_program$DLLEXT
14691         \$(INSTALL_DATA) $ac_dir/$ac_program.fake \$(DESTDIR)\$(fakedlldir)/$ac_program
14692 $ac_dir/__uninstall__::
14693         \$(RM) \$(DESTDIR)\$(dlldir)/$ac_program$DLLEXT \$(DESTDIR)\$(fakedlldir)/$ac_program"
14694
14695         if test "x$enable_tools" != xno && wine_fn_has_flag installbin $ac_flags
14696         then
14697             wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14698 "$ac_dir/__install__:: tools \$(DESTDIR)\$(bindir)
14699         \$(INSTALL_SCRIPT) tools/wineapploader \$(DESTDIR)\$(bindir)/$ac_name
14700 $ac_dir/__uninstall__::
14701         \$(RM) \$(DESTDIR)\$(bindir)/$ac_name"
14702         fi
14703     else
14704         wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14705 "$ac_dir/__install-lib__:: $ac_dir \$(DESTDIR)\$(dlldir)
14706         \$(INSTALL_PROGRAM) $ac_dir/$ac_program \$(DESTDIR)\$(dlldir)/$ac_program
14707 $ac_dir/__uninstall__::
14708         \$(RM) \$(DESTDIR)\$(dlldir)/$ac_program"
14709     fi
14710
14711     if test "x$enable_tools" != xno && wine_fn_has_flag manpage $ac_flags
14712     then
14713         wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14714 "$ac_dir/__install__:: $ac_dir \$(DESTDIR)\$(mandir)/man\$(prog_manext)
14715         \$(INSTALL_DATA) $ac_dir/$ac_name.man \$(DESTDIR)\$(mandir)/man\$(prog_manext)/$ac_name.\$(prog_manext)
14716 $ac_dir/__uninstall__::
14717         \$(RM) \$(DESTDIR)\$(mandir)/man\$(prog_manext)/$ac_name.\$(prog_manext)"
14718     fi
14719 fi
14720 }
14721
14722 wine_fn_config_test ()
14723 {
14724     ac_dir=$1
14725     ac_name=$2
14726     ac_flags=$3
14727     wine_fn_append_file ALL_TEST_RESOURCES $ac_name.res
14728     wine_fn_all_dir_rules $ac_dir Maketest.rules
14729
14730     if test "x$enable_tests" = xno; then :
14731
14732 else
14733   wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14734 "all: $ac_dir
14735 .PHONY: $ac_dir
14736 $ac_dir: $ac_dir/Makefile programs/winetest/Makefile __builddeps__ dummy
14737         @cd $ac_dir && \$(MAKE)
14738 programs/winetest: $ac_dir
14739 check test: $ac_dir/__test__
14740 .PHONY: $ac_dir/__test__
14741 $ac_dir/__test__: dummy
14742         @cd $ac_dir && \$(MAKE) test
14743 testclean::
14744         \$(RM) $ac_dir/*.ok"
14745
14746         if test "x$CROSSTEST_DISABLE" = x
14747         then
14748             wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14749 "crosstest: $ac_dir/__crosstest__
14750 .PHONY: $ac_dir/__crosstest__
14751 $ac_dir/__crosstest__: $ac_dir/Makefile __builddeps__ dummy
14752         @cd $ac_dir && \$(MAKE) crosstest"
14753         fi
14754 fi
14755 }
14756
14757 wine_fn_config_tool ()
14758 {
14759     ac_dir=$1
14760     ac_flags=$2
14761     if test "x$enable_tools" = xno; then :
14762   return 0
14763 fi
14764
14765     wine_fn_config_makefile $ac_dir enable_tools $ac_flags
14766
14767     wine_fn_append_rule ALL_MAKEFILE_DEPENDS "__tooldeps__: $ac_dir"
14768     wine_fn_append_rule ALL_MAKEFILE_DEPENDS "$ac_dir: libs/port"
14769     case $ac_dir in
14770       tools/winebuild) wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(WINEBUILD): $ac_dir" ;;
14771     esac
14772 }
14773
14774 wine_fn_config_makerules ()
14775 {
14776     ac_rules=$1
14777     ac_deps=$2
14778     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14779 "$ac_rules: $ac_rules.in $ac_deps config.status
14780         @./config.status $ac_rules
14781 distclean::
14782         \$(RM) $ac_rules"
14783 }
14784
14785 wine_fn_config_symlink ()
14786 {
14787     ac_link=$1
14788     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14789 "$ac_link:
14790         @./config.status $ac_link
14791 distclean::
14792         \$(RM) $ac_link"
14793 }
14794
14795 if test "x$CROSSTEST_DISABLE" != x
14796 then
14797     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14798 "crosstest:
14799         @echo \"crosstest is not supported (mingw not installed?)\" && false"
14800 fi
14801 ac_config_links="$ac_config_links dlls/shell32/AUTHORS:AUTHORS"
14802 wine_fn_config_symlink dlls/shell32/AUTHORS
14803 ac_config_links="$ac_config_links dlls/wineps.drv/generic.ppd:dlls/wineps.drv/generic.ppd"
14804 test "$srcdir" = "." || wine_fn_config_symlink dlls/wineps.drv/generic.ppd
14805 if test "x$enable_fonts" != xno; then
14806 ac_config_links="$ac_config_links fonts/marlett.ttf:fonts/marlett.ttf"
14807 test "$srcdir" = "." || wine_fn_config_symlink fonts/marlett.ttf
14808 fi
14809 if test "x$enable_fonts" != xno; then
14810 ac_config_links="$ac_config_links fonts/symbol.ttf:fonts/symbol.ttf"
14811 test "$srcdir" = "." || wine_fn_config_symlink fonts/symbol.ttf
14812 fi
14813 if test "x$enable_fonts" != xno; then
14814 ac_config_links="$ac_config_links fonts/tahoma.ttf:fonts/tahoma.ttf"
14815 test "$srcdir" = "." || wine_fn_config_symlink fonts/tahoma.ttf
14816 fi
14817 if test "x$enable_fonts" != xno; then
14818 ac_config_links="$ac_config_links fonts/tahomabd.ttf:fonts/tahomabd.ttf"
14819 test "$srcdir" = "." || wine_fn_config_symlink fonts/tahomabd.ttf
14820 fi
14821 ac_config_links="$ac_config_links po/LINGUAS:po/LINGUAS"
14822 test "$srcdir" = "." || wine_fn_config_symlink po/LINGUAS
14823 if test "x$enable_tools" != xno; then
14824 ac_config_links="$ac_config_links tools/l_intl.nls:tools/l_intl.nls"
14825 test "$srcdir" = "." || wine_fn_config_symlink tools/l_intl.nls
14826 fi
14827 ac_config_links="$ac_config_links wine:tools/winewrapper"
14828 wine_fn_config_symlink wine
14829 if test "x$enable_win64" != xno; then
14830 ac_config_links="$ac_config_links wine64:tools/winewrapper"
14831 wine_fn_config_symlink wine64
14832 fi
14833
14834 ac_config_commands="$ac_config_commands dlls/gdi32/dibdrv"
14835
14836 ac_config_commands="$ac_config_commands dlls/gdi32/enhmfdrv"
14837
14838 ac_config_commands="$ac_config_commands dlls/gdi32/mfdrv"
14839
14840 ac_config_commands="$ac_config_commands dlls/kernel32/nls"
14841
14842 ac_config_commands="$ac_config_commands dlls/user32/resources"
14843
14844 ac_config_commands="$ac_config_commands dlls/wineps.drv/data"
14845
14846 ac_config_commands="$ac_config_commands include/wine"
14847
14848
14849 wine_fn_config_makerules Make.rules
14850 MAKE_RULES=Make.rules
14851 ac_config_files="$ac_config_files Make.rules"
14852
14853 wine_fn_config_makerules Maketest.rules Make.rules
14854 MAKE_TEST_RULES=Maketest.rules
14855 ac_config_files="$ac_config_files Maketest.rules"
14856
14857 wine_fn_config_makerules dlls/Makedll.rules Make.rules
14858 MAKE_DLL_RULES=dlls/Makedll.rules
14859 ac_config_files="$ac_config_files dlls/Makedll.rules"
14860
14861 wine_fn_config_makerules dlls/Makeimplib.rules Make.rules
14862 MAKE_IMPLIB_RULES=dlls/Makeimplib.rules
14863 ac_config_files="$ac_config_files dlls/Makeimplib.rules"
14864
14865 wine_fn_config_makerules programs/Makeprog.rules Make.rules
14866 MAKE_PROG_RULES=programs/Makeprog.rules
14867 ac_config_files="$ac_config_files programs/Makeprog.rules"
14868
14869
14870 wine_fn_config_dll acledit enable_acledit
14871 wine_fn_config_dll aclui enable_aclui implib
14872 wine_fn_config_dll activeds enable_activeds implib
14873 wine_fn_config_dll actxprxy enable_actxprxy
14874 wine_fn_config_lib adsiid
14875 wine_fn_config_dll advapi32 enable_advapi32 implib
14876 wine_fn_config_test dlls/advapi32/tests advapi32_test
14877 wine_fn_config_dll advpack enable_advpack implib
14878 wine_fn_config_test dlls/advpack/tests advpack_test
14879 wine_fn_config_dll amstream enable_amstream
14880 wine_fn_config_test dlls/amstream/tests amstream_test
14881 wine_fn_config_dll apphelp enable_apphelp
14882 wine_fn_config_dll appwiz.cpl enable_appwiz_cpl po
14883 wine_fn_config_dll atl enable_atl implib
14884 wine_fn_config_test dlls/atl/tests atl_test
14885 wine_fn_config_dll authz enable_authz
14886 wine_fn_config_dll avicap32 enable_avicap32 implib
14887 wine_fn_config_dll avifil32 enable_avifil32 implib,po
14888 wine_fn_config_test dlls/avifil32/tests avifil32_test
14889 wine_fn_config_dll avifile.dll16 enable_win16
14890 wine_fn_config_dll avrt enable_avrt implib
14891 wine_fn_config_dll bcrypt enable_bcrypt
14892 wine_fn_config_dll browseui enable_browseui po
14893 wine_fn_config_test dlls/browseui/tests browseui_test
14894 wine_fn_config_dll cabinet enable_cabinet implib
14895 wine_fn_config_test dlls/cabinet/tests cabinet_test
14896 wine_fn_config_dll capi2032 enable_capi2032 implib
14897 wine_fn_config_dll cards enable_cards implib
14898 wine_fn_config_dll cfgmgr32 enable_cfgmgr32 implib
14899 wine_fn_config_dll clusapi enable_clusapi implib
14900 wine_fn_config_dll comcat enable_comcat
14901 wine_fn_config_test dlls/comcat/tests comcat_test
14902 wine_fn_config_dll comctl32 enable_comctl32 implib,po
14903 wine_fn_config_test dlls/comctl32/tests comctl32_test
14904 wine_fn_config_dll comdlg32 enable_comdlg32 implib,po
14905 wine_fn_config_test dlls/comdlg32/tests comdlg32_test
14906 wine_fn_config_dll comm.drv16 enable_win16
14907 wine_fn_config_dll commdlg.dll16 enable_win16
14908 wine_fn_config_dll compobj.dll16 enable_win16
14909 wine_fn_config_dll compstui enable_compstui implib
14910 wine_fn_config_dll credui enable_credui implib,po
14911 wine_fn_config_test dlls/credui/tests credui_test
14912 wine_fn_config_dll crtdll enable_crtdll implib
14913 wine_fn_config_dll crypt32 enable_crypt32 implib,po
14914 wine_fn_config_test dlls/crypt32/tests crypt32_test
14915 wine_fn_config_dll cryptdlg enable_cryptdlg po
14916 wine_fn_config_dll cryptdll enable_cryptdll implib
14917 wine_fn_config_dll cryptnet enable_cryptnet implib
14918 wine_fn_config_test dlls/cryptnet/tests cryptnet_test
14919 wine_fn_config_dll cryptui enable_cryptui implib,po
14920 wine_fn_config_test dlls/cryptui/tests cryptui_test
14921 wine_fn_config_dll ctapi32 enable_ctapi32
14922 wine_fn_config_dll ctl3d.dll16 enable_win16
14923 wine_fn_config_dll ctl3d32 enable_ctl3d32 implib
14924 wine_fn_config_dll ctl3dv2.dll16 enable_win16
14925 wine_fn_config_dll d3d10 enable_d3d10 implib
14926 wine_fn_config_test dlls/d3d10/tests d3d10_test
14927 wine_fn_config_dll d3d10core enable_d3d10core implib
14928 wine_fn_config_test dlls/d3d10core/tests d3d10core_test
14929 wine_fn_config_dll d3d8 enable_d3d8 implib
14930 wine_fn_config_test dlls/d3d8/tests d3d8_test
14931 wine_fn_config_dll d3d9 enable_d3d9 implib
14932 wine_fn_config_test dlls/d3d9/tests d3d9_test
14933 wine_fn_config_dll d3dcompiler_33 enable_d3dcompiler_33
14934 wine_fn_config_dll d3dcompiler_34 enable_d3dcompiler_34
14935 wine_fn_config_dll d3dcompiler_35 enable_d3dcompiler_35
14936 wine_fn_config_dll d3dcompiler_36 enable_d3dcompiler_36
14937 wine_fn_config_dll d3dcompiler_37 enable_d3dcompiler_37
14938 wine_fn_config_dll d3dcompiler_38 enable_d3dcompiler_38
14939 wine_fn_config_dll d3dcompiler_39 enable_d3dcompiler_39
14940 wine_fn_config_dll d3dcompiler_40 enable_d3dcompiler_40
14941 wine_fn_config_dll d3dcompiler_41 enable_d3dcompiler_41
14942 wine_fn_config_dll d3dcompiler_42 enable_d3dcompiler_42
14943 wine_fn_config_dll d3dcompiler_43 enable_d3dcompiler_43 implib d3dcompiler
14944 wine_fn_config_test dlls/d3dcompiler_43/tests d3dcompiler_43_test
14945 wine_fn_config_dll d3dim enable_d3dim implib
14946 wine_fn_config_dll d3drm enable_d3drm implib
14947 wine_fn_config_test dlls/d3drm/tests d3drm_test
14948 wine_fn_config_dll d3dx10_33 enable_d3dx10_33
14949 wine_fn_config_dll d3dx10_34 enable_d3dx10_34
14950 wine_fn_config_dll d3dx10_35 enable_d3dx10_35
14951 wine_fn_config_dll d3dx10_36 enable_d3dx10_36
14952 wine_fn_config_dll d3dx10_37 enable_d3dx10_37
14953 wine_fn_config_dll d3dx10_38 enable_d3dx10_38
14954 wine_fn_config_dll d3dx10_39 enable_d3dx10_39
14955 wine_fn_config_dll d3dx10_40 enable_d3dx10_40
14956 wine_fn_config_dll d3dx10_41 enable_d3dx10_41
14957 wine_fn_config_dll d3dx10_42 enable_d3dx10_42
14958 wine_fn_config_dll d3dx10_43 enable_d3dx10_43
14959 wine_fn_config_dll d3dx9_24 enable_d3dx9_24
14960 wine_fn_config_dll d3dx9_25 enable_d3dx9_25
14961 wine_fn_config_dll d3dx9_26 enable_d3dx9_26
14962 wine_fn_config_dll d3dx9_27 enable_d3dx9_27
14963 wine_fn_config_dll d3dx9_28 enable_d3dx9_28
14964 wine_fn_config_dll d3dx9_29 enable_d3dx9_29
14965 wine_fn_config_dll d3dx9_30 enable_d3dx9_30
14966 wine_fn_config_dll d3dx9_31 enable_d3dx9_31
14967 wine_fn_config_dll d3dx9_32 enable_d3dx9_32
14968 wine_fn_config_dll d3dx9_33 enable_d3dx9_33
14969 wine_fn_config_dll d3dx9_34 enable_d3dx9_34
14970 wine_fn_config_dll d3dx9_35 enable_d3dx9_35
14971 wine_fn_config_dll d3dx9_36 enable_d3dx9_36 implib d3dx9
14972 wine_fn_config_test dlls/d3dx9_36/tests d3dx9_36_test
14973 wine_fn_config_dll d3dx9_37 enable_d3dx9_37
14974 wine_fn_config_dll d3dx9_38 enable_d3dx9_38
14975 wine_fn_config_dll d3dx9_39 enable_d3dx9_39
14976 wine_fn_config_dll d3dx9_40 enable_d3dx9_40
14977 wine_fn_config_dll d3dx9_41 enable_d3dx9_41
14978 wine_fn_config_dll d3dx9_42 enable_d3dx9_42
14979 wine_fn_config_dll d3dx9_43 enable_d3dx9_43
14980 wine_fn_config_dll d3dxof enable_d3dxof implib
14981 wine_fn_config_test dlls/d3dxof/tests d3dxof_test
14982 wine_fn_config_dll dbgeng enable_dbgeng implib
14983 wine_fn_config_dll dbghelp enable_dbghelp implib
14984 wine_fn_config_dll dciman32 enable_dciman32 implib
14985 wine_fn_config_dll ddeml.dll16 enable_win16
14986 wine_fn_config_dll ddraw enable_ddraw implib
14987 wine_fn_config_test dlls/ddraw/tests ddraw_test
14988 wine_fn_config_dll ddrawex enable_ddrawex
14989 wine_fn_config_test dlls/ddrawex/tests ddrawex_test
14990 wine_fn_config_dll devenum enable_devenum po
14991 wine_fn_config_dll dhcpcsvc enable_dhcpcsvc
14992 wine_fn_config_dll dinput enable_dinput implib,po,staticimplib
14993 wine_fn_config_test dlls/dinput/tests dinput_test
14994 wine_fn_config_dll dinput8 enable_dinput8 implib
14995 wine_fn_config_test dlls/dinput8/tests dinput8_test
14996 wine_fn_config_dll dispdib.dll16 enable_win16
14997 wine_fn_config_dll dispex enable_dispex
14998 wine_fn_config_test dlls/dispex/tests dispex_test
14999 wine_fn_config_dll display.drv16 enable_win16
15000 wine_fn_config_dll dmband enable_dmband
15001 wine_fn_config_dll dmcompos enable_dmcompos
15002 wine_fn_config_dll dmime enable_dmime
15003 wine_fn_config_test dlls/dmime/tests dmime_test
15004 wine_fn_config_dll dmloader enable_dmloader
15005 wine_fn_config_test dlls/dmloader/tests dmloader_test
15006 wine_fn_config_dll dmscript enable_dmscript
15007 wine_fn_config_dll dmstyle enable_dmstyle
15008 wine_fn_config_dll dmsynth enable_dmsynth
15009 wine_fn_config_dll dmusic enable_dmusic
15010 wine_fn_config_dll dmusic32 enable_dmusic32 implib
15011 wine_fn_config_dll dnsapi enable_dnsapi implib
15012 wine_fn_config_test dlls/dnsapi/tests dnsapi_test
15013 wine_fn_config_dll dplay enable_dplay implib
15014 wine_fn_config_dll dplayx enable_dplayx implib
15015 wine_fn_config_test dlls/dplayx/tests dplayx_test
15016 wine_fn_config_dll dpnaddr enable_dpnaddr
15017 wine_fn_config_dll dpnet enable_dpnet implib
15018 wine_fn_config_test dlls/dpnet/tests dpnet_test
15019 wine_fn_config_dll dpnhpast enable_dpnhpast
15020 wine_fn_config_dll dpnlobby enable_dpnlobby
15021 wine_fn_config_dll dpwsockx enable_dpwsockx
15022 wine_fn_config_dll drmclien enable_drmclien
15023 wine_fn_config_dll dsound enable_dsound implib
15024 wine_fn_config_test dlls/dsound/tests dsound_test
15025 wine_fn_config_dll dssenh enable_dssenh
15026 wine_fn_config_dll dswave enable_dswave
15027 wine_fn_config_dll dwmapi enable_dwmapi implib
15028 wine_fn_config_dll dxdiagn enable_dxdiagn po
15029 wine_fn_config_test dlls/dxdiagn/tests dxdiagn_test
15030 wine_fn_config_lib dxerr8
15031 wine_fn_config_lib dxerr9
15032 wine_fn_config_dll dxgi enable_dxgi implib
15033 wine_fn_config_test dlls/dxgi/tests dxgi_test
15034 wine_fn_config_lib dxguid
15035 wine_fn_config_dll explorerframe enable_explorerframe
15036 wine_fn_config_test dlls/explorerframe/tests explorerframe_test
15037 wine_fn_config_dll faultrep enable_faultrep implib
15038 wine_fn_config_test dlls/faultrep/tests faultrep_test
15039 wine_fn_config_dll fltlib enable_fltlib
15040 wine_fn_config_dll fusion enable_fusion
15041 wine_fn_config_test dlls/fusion/tests fusion_test
15042 wine_fn_config_dll fwpuclnt enable_fwpuclnt
15043 wine_fn_config_dll gameux enable_gameux
15044 wine_fn_config_test dlls/gameux/tests gameux_test
15045 wine_fn_config_dll gdi.exe16 enable_win16
15046 wine_fn_config_dll gdi32 enable_gdi32 implib,po
15047 wine_fn_config_test dlls/gdi32/tests gdi32_test
15048 wine_fn_config_dll gdiplus enable_gdiplus implib
15049 wine_fn_config_test dlls/gdiplus/tests gdiplus_test
15050 wine_fn_config_dll glu32 enable_glu32 implib
15051 wine_fn_config_dll gphoto2.ds enable_gphoto2_ds po
15052 wine_fn_config_dll gpkcsp enable_gpkcsp
15053 wine_fn_config_dll hal enable_hal
15054 wine_fn_config_dll hhctrl.ocx enable_hhctrl_ocx po
15055 wine_fn_config_dll hid enable_hid implib
15056 wine_fn_config_dll hlink enable_hlink implib
15057 wine_fn_config_test dlls/hlink/tests hlink_test
15058 wine_fn_config_dll hnetcfg enable_hnetcfg
15059 wine_fn_config_dll httpapi enable_httpapi
15060 wine_fn_config_dll iccvid enable_iccvid po
15061 wine_fn_config_dll icmp enable_icmp
15062 wine_fn_config_dll ieframe enable_ieframe implib,po
15063 wine_fn_config_test dlls/ieframe/tests ieframe_test
15064 wine_fn_config_dll ifsmgr.vxd enable_win16
15065 wine_fn_config_dll imaadp32.acm enable_imaadp32_acm
15066 wine_fn_config_dll imagehlp enable_imagehlp implib
15067 wine_fn_config_test dlls/imagehlp/tests imagehlp_test
15068 wine_fn_config_dll imm.dll16 enable_win16
15069 wine_fn_config_dll imm32 enable_imm32 implib
15070 wine_fn_config_test dlls/imm32/tests imm32_test
15071 wine_fn_config_dll inetcomm enable_inetcomm implib
15072 wine_fn_config_test dlls/inetcomm/tests inetcomm_test
15073 wine_fn_config_dll inetcpl.cpl enable_inetcpl_cpl po
15074 wine_fn_config_dll inetmib1 enable_inetmib1
15075 wine_fn_config_test dlls/inetmib1/tests inetmib1_test
15076 wine_fn_config_dll infosoft enable_infosoft
15077 wine_fn_config_test dlls/infosoft/tests infosoft_test
15078 wine_fn_config_dll initpki enable_initpki
15079 wine_fn_config_dll inkobj enable_inkobj
15080 wine_fn_config_dll inseng enable_inseng
15081 wine_fn_config_dll iphlpapi enable_iphlpapi implib
15082 wine_fn_config_test dlls/iphlpapi/tests iphlpapi_test
15083 wine_fn_config_dll itircl enable_itircl
15084 wine_fn_config_dll itss enable_itss
15085 wine_fn_config_test dlls/itss/tests itss_test
15086 wine_fn_config_dll jscript enable_jscript po
15087 wine_fn_config_test dlls/jscript/tests jscript_test
15088 wine_fn_config_dll kernel32 enable_kernel32 implib,mc
15089 wine_fn_config_test dlls/kernel32/tests kernel32_test
15090 wine_fn_config_dll keyboard.drv16 enable_win16
15091 wine_fn_config_dll krnl386.exe16 enable_win16 implib kernel
15092 wine_fn_config_dll ktmw32 enable_ktmw32
15093 wine_fn_config_dll loadperf enable_loadperf implib
15094 wine_fn_config_dll localspl enable_localspl po
15095 wine_fn_config_test dlls/localspl/tests localspl_test
15096 wine_fn_config_dll localui enable_localui po
15097 wine_fn_config_test dlls/localui/tests localui_test
15098 wine_fn_config_dll lz32 enable_lz32 implib
15099 wine_fn_config_test dlls/lz32/tests lz32_test
15100 wine_fn_config_dll lzexpand.dll16 enable_win16
15101 wine_fn_config_dll mapi32 enable_mapi32 implib,po
15102 wine_fn_config_test dlls/mapi32/tests mapi32_test
15103 wine_fn_config_dll mapistub enable_mapistub
15104 wine_fn_config_dll mciavi32 enable_mciavi32
15105 wine_fn_config_dll mcicda enable_mcicda
15106 wine_fn_config_dll mciqtz32 enable_mciqtz32
15107 wine_fn_config_dll mciseq enable_mciseq
15108 wine_fn_config_dll mciwave enable_mciwave
15109 wine_fn_config_dll midimap enable_midimap
15110 wine_fn_config_dll mlang enable_mlang implib
15111 wine_fn_config_test dlls/mlang/tests mlang_test
15112 wine_fn_config_dll mmcndmgr enable_mmcndmgr
15113 wine_fn_config_dll mmdevapi enable_mmdevapi
15114 wine_fn_config_test dlls/mmdevapi/tests mmdevapi_test
15115 wine_fn_config_dll mmdevldr.vxd enable_win16
15116 wine_fn_config_dll mmsystem.dll16 enable_win16
15117 wine_fn_config_dll monodebg.vxd enable_win16
15118 wine_fn_config_dll mountmgr.sys enable_mountmgr_sys
15119 wine_fn_config_dll mouse.drv16 enable_win16
15120 wine_fn_config_dll mpr enable_mpr implib,po
15121 wine_fn_config_dll mprapi enable_mprapi implib
15122 wine_fn_config_dll msacm.dll16 enable_win16
15123 wine_fn_config_dll msacm32.drv enable_msacm32_drv
15124 wine_fn_config_dll msacm32 enable_msacm32 implib,po
15125 wine_fn_config_test dlls/msacm32/tests msacm32_test
15126 wine_fn_config_dll msadp32.acm enable_msadp32_acm
15127 wine_fn_config_dll mscat32 enable_mscat32
15128 wine_fn_config_dll mscms enable_mscms implib
15129 wine_fn_config_test dlls/mscms/tests mscms_test
15130 wine_fn_config_dll mscoree enable_mscoree
15131 wine_fn_config_test dlls/mscoree/tests mscoree_test
15132 wine_fn_config_dll msctf enable_msctf
15133 wine_fn_config_test dlls/msctf/tests msctf_test
15134 wine_fn_config_dll msdaps enable_msdaps
15135 wine_fn_config_dll msdmo enable_msdmo implib
15136 wine_fn_config_dll msftedit enable_msftedit
15137 wine_fn_config_dll msg711.acm enable_msg711_acm
15138 wine_fn_config_dll msgsm32.acm enable_msgsm32_acm
15139 wine_fn_config_dll mshtml.tlb enable_mshtml_tlb
15140 wine_fn_config_dll mshtml enable_mshtml implib,po
15141 wine_fn_config_test dlls/mshtml/tests mshtml_test
15142 wine_fn_config_dll msi enable_msi implib,po
15143 wine_fn_config_test dlls/msi/tests msi_test
15144 wine_fn_config_dll msimg32 enable_msimg32 implib
15145 wine_fn_config_dll msimsg enable_msimsg
15146 wine_fn_config_dll msimtf enable_msimtf
15147 wine_fn_config_dll msisip enable_msisip
15148 wine_fn_config_dll msisys.ocx enable_msisys_ocx
15149 wine_fn_config_dll msnet32 enable_msnet32
15150 wine_fn_config_dll mspatcha enable_mspatcha
15151 wine_fn_config_dll msrle32 enable_msrle32 po
15152 wine_fn_config_dll mssign32 enable_mssign32
15153 wine_fn_config_dll mssip32 enable_mssip32
15154 wine_fn_config_dll mstask enable_mstask
15155 wine_fn_config_test dlls/mstask/tests mstask_test
15156 wine_fn_config_dll msvcirt enable_msvcirt
15157 wine_fn_config_dll msvcp100 enable_msvcp100
15158 wine_fn_config_dll msvcp60 enable_msvcp60
15159 wine_fn_config_dll msvcp70 enable_msvcp70
15160 wine_fn_config_dll msvcp71 enable_msvcp71
15161 wine_fn_config_dll msvcp80 enable_msvcp80
15162 wine_fn_config_dll msvcp90 enable_msvcp90
15163 wine_fn_config_test dlls/msvcp90/tests msvcp90_test
15164 wine_fn_config_dll msvcr100 enable_msvcr100
15165 wine_fn_config_dll msvcr70 enable_msvcr70 implib
15166 wine_fn_config_dll msvcr71 enable_msvcr71 implib
15167 wine_fn_config_dll msvcr80 enable_msvcr80
15168 wine_fn_config_dll msvcr90 enable_msvcr90
15169 wine_fn_config_test dlls/msvcr90/tests msvcr90_test
15170 wine_fn_config_dll msvcrt enable_msvcrt implib
15171 wine_fn_config_test dlls/msvcrt/tests msvcrt_test
15172 wine_fn_config_dll msvcrt20 enable_msvcrt20 implib
15173 wine_fn_config_dll msvcrt40 enable_msvcrt40 implib
15174 wine_fn_config_dll msvcrtd enable_msvcrtd implib
15175 wine_fn_config_test dlls/msvcrtd/tests msvcrtd_test
15176 wine_fn_config_dll msvfw32 enable_msvfw32 implib,po
15177 wine_fn_config_test dlls/msvfw32/tests msvfw32_test
15178 wine_fn_config_dll msvidc32 enable_msvidc32 po
15179 wine_fn_config_dll msvideo.dll16 enable_win16
15180 wine_fn_config_dll mswsock enable_mswsock implib
15181 wine_fn_config_dll msxml enable_msxml
15182 wine_fn_config_dll msxml2 enable_msxml2
15183 wine_fn_config_dll msxml3 enable_msxml3
15184 wine_fn_config_test dlls/msxml3/tests msxml3_test
15185 wine_fn_config_dll msxml4 enable_msxml4
15186 wine_fn_config_dll msxml6 enable_msxml6
15187 wine_fn_config_dll nddeapi enable_nddeapi implib
15188 wine_fn_config_dll netapi32 enable_netapi32 implib
15189 wine_fn_config_test dlls/netapi32/tests netapi32_test
15190 wine_fn_config_dll newdev enable_newdev implib
15191 wine_fn_config_dll normaliz enable_normaliz implib
15192 wine_fn_config_dll npmshtml enable_npmshtml
15193 wine_fn_config_dll ntdll enable_ntdll implib
15194 wine_fn_config_test dlls/ntdll/tests ntdll_test
15195 wine_fn_config_dll ntdsapi enable_ntdsapi implib
15196 wine_fn_config_test dlls/ntdsapi/tests ntdsapi_test
15197 wine_fn_config_dll ntoskrnl.exe enable_ntoskrnl_exe implib
15198 wine_fn_config_dll ntprint enable_ntprint
15199 wine_fn_config_test dlls/ntprint/tests ntprint_test
15200 wine_fn_config_dll objsel enable_objsel
15201 wine_fn_config_dll odbc32 enable_odbc32 implib
15202 wine_fn_config_dll odbccp32 enable_odbccp32 implib
15203 wine_fn_config_test dlls/odbccp32/tests odbccp32_test
15204 wine_fn_config_dll ole2.dll16 enable_win16
15205 wine_fn_config_dll ole2conv.dll16 enable_win16
15206 wine_fn_config_dll ole2disp.dll16 enable_win16
15207 wine_fn_config_dll ole2nls.dll16 enable_win16
15208 wine_fn_config_dll ole2prox.dll16 enable_win16
15209 wine_fn_config_dll ole2thk.dll16 enable_win16
15210 wine_fn_config_dll ole32 enable_ole32 implib
15211 wine_fn_config_test dlls/ole32/tests ole32_test
15212 wine_fn_config_dll oleacc enable_oleacc implib,po
15213 wine_fn_config_test dlls/oleacc/tests oleacc_test
15214 wine_fn_config_dll oleaut32 enable_oleaut32 implib,po
15215 wine_fn_config_test dlls/oleaut32/tests oleaut32_test
15216 wine_fn_config_dll olecli.dll16 enable_win16
15217 wine_fn_config_dll olecli32 enable_olecli32 implib
15218 wine_fn_config_dll oledb32 enable_oledb32
15219 wine_fn_config_test dlls/oledb32/tests oledb32_test
15220 wine_fn_config_dll oledlg enable_oledlg implib,po
15221 wine_fn_config_dll olepro32 enable_olepro32 implib
15222 wine_fn_config_dll olesvr.dll16 enable_win16
15223 wine_fn_config_dll olesvr32 enable_olesvr32 implib
15224 wine_fn_config_dll olethk32 enable_olethk32
15225 wine_fn_config_dll openal32 enable_openal32
15226 wine_fn_config_dll opencl enable_opencl
15227 wine_fn_config_dll opengl32 enable_opengl32 implib
15228 wine_fn_config_test dlls/opengl32/tests opengl32_test
15229 wine_fn_config_dll pdh enable_pdh implib
15230 wine_fn_config_test dlls/pdh/tests pdh_test
15231 wine_fn_config_dll pidgen enable_pidgen
15232 wine_fn_config_dll powrprof enable_powrprof implib
15233 wine_fn_config_dll printui enable_printui
15234 wine_fn_config_dll propsys enable_propsys implib
15235 wine_fn_config_test dlls/propsys/tests propsys_test
15236 wine_fn_config_dll psapi enable_psapi implib
15237 wine_fn_config_test dlls/psapi/tests psapi_test
15238 wine_fn_config_dll pstorec enable_pstorec
15239 wine_fn_config_dll qcap enable_qcap
15240 wine_fn_config_dll qedit enable_qedit
15241 wine_fn_config_test dlls/qedit/tests qedit_test
15242 wine_fn_config_dll qmgr enable_qmgr
15243 wine_fn_config_test dlls/qmgr/tests qmgr_test
15244 wine_fn_config_dll qmgrprxy enable_qmgrprxy
15245 wine_fn_config_dll quartz enable_quartz implib
15246 wine_fn_config_test dlls/quartz/tests quartz_test
15247 wine_fn_config_dll query enable_query
15248 wine_fn_config_dll rasapi16.dll16 enable_win16
15249 wine_fn_config_dll rasapi32 enable_rasapi32 implib
15250 wine_fn_config_test dlls/rasapi32/tests rasapi32_test
15251 wine_fn_config_dll rasdlg enable_rasdlg implib
15252 wine_fn_config_dll regapi enable_regapi
15253 wine_fn_config_dll resutils enable_resutils implib
15254 wine_fn_config_dll riched20 enable_riched20 implib
15255 wine_fn_config_test dlls/riched20/tests riched20_test
15256 wine_fn_config_dll riched32 enable_riched32
15257 wine_fn_config_test dlls/riched32/tests riched32_test
15258 wine_fn_config_dll rpcrt4 enable_rpcrt4 implib
15259 wine_fn_config_test dlls/rpcrt4/tests rpcrt4_test
15260 wine_fn_config_dll rsabase enable_rsabase
15261 wine_fn_config_dll rsaenh enable_rsaenh implib
15262 wine_fn_config_test dlls/rsaenh/tests rsaenh_test
15263 wine_fn_config_dll rstrtmgr enable_rstrtmgr
15264 wine_fn_config_dll rtutils enable_rtutils implib
15265 wine_fn_config_dll samlib enable_samlib
15266 wine_fn_config_dll sane.ds enable_sane_ds po
15267 wine_fn_config_dll scarddlg enable_scarddlg
15268 wine_fn_config_dll sccbase enable_sccbase
15269 wine_fn_config_dll schannel enable_schannel
15270 wine_fn_config_test dlls/schannel/tests schannel_test
15271 wine_fn_config_dll scrrun enable_scrrun
15272 wine_fn_config_dll secur32 enable_secur32 implib
15273 wine_fn_config_test dlls/secur32/tests secur32_test
15274 wine_fn_config_dll security enable_security
15275 wine_fn_config_dll sensapi enable_sensapi implib
15276 wine_fn_config_dll serialui enable_serialui implib,po
15277 wine_fn_config_test dlls/serialui/tests serialui_test
15278 wine_fn_config_dll setupapi enable_setupapi implib,po
15279 wine_fn_config_test dlls/setupapi/tests setupapi_test
15280 wine_fn_config_dll setupx.dll16 enable_win16
15281 wine_fn_config_dll sfc enable_sfc implib
15282 wine_fn_config_dll sfc_os enable_sfc_os implib
15283 wine_fn_config_dll shdoclc enable_shdoclc po
15284 wine_fn_config_dll shdocvw enable_shdocvw implib
15285 wine_fn_config_test dlls/shdocvw/tests shdocvw_test
15286 wine_fn_config_dll shell.dll16 enable_win16
15287 wine_fn_config_dll shell32 enable_shell32 implib,po
15288 wine_fn_config_test dlls/shell32/tests shell32_test
15289 wine_fn_config_dll shfolder enable_shfolder implib
15290 wine_fn_config_dll shlwapi enable_shlwapi implib,po
15291 wine_fn_config_test dlls/shlwapi/tests shlwapi_test
15292 wine_fn_config_dll slbcsp enable_slbcsp
15293 wine_fn_config_dll slc enable_slc implib
15294 wine_fn_config_dll snmpapi enable_snmpapi implib
15295 wine_fn_config_test dlls/snmpapi/tests snmpapi_test
15296 wine_fn_config_dll softpub enable_softpub
15297 wine_fn_config_dll sound.drv16 enable_win16
15298 wine_fn_config_dll spoolss enable_spoolss implib
15299 wine_fn_config_test dlls/spoolss/tests spoolss_test
15300 wine_fn_config_dll stdole2.tlb enable_stdole2_tlb
15301 wine_fn_config_dll stdole32.tlb enable_stdole32_tlb
15302 wine_fn_config_dll sti enable_sti implib
15303 wine_fn_config_test dlls/sti/tests sti_test
15304 wine_fn_config_dll storage.dll16 enable_win16
15305 wine_fn_config_dll stress.dll16 enable_win16
15306 wine_fn_config_lib strmbase
15307 wine_fn_config_lib strmiids
15308 wine_fn_config_dll svrapi enable_svrapi
15309 wine_fn_config_dll sxs enable_sxs
15310 wine_fn_config_dll system.drv16 enable_win16
15311 wine_fn_config_dll t2embed enable_t2embed
15312 wine_fn_config_dll tapi32 enable_tapi32 implib
15313 wine_fn_config_dll toolhelp.dll16 enable_win16
15314 wine_fn_config_dll traffic enable_traffic
15315 wine_fn_config_dll twain.dll16 enable_win16
15316 wine_fn_config_dll twain_32 enable_twain_32
15317 wine_fn_config_test dlls/twain_32/tests twain_32_test
15318 wine_fn_config_dll typelib.dll16 enable_win16
15319 wine_fn_config_dll unicows enable_unicows implib
15320 wine_fn_config_dll updspapi enable_updspapi
15321 wine_fn_config_dll url enable_url implib
15322 wine_fn_config_dll urlmon enable_urlmon implib
15323 wine_fn_config_test dlls/urlmon/tests urlmon_test
15324 wine_fn_config_dll usbd.sys enable_usbd_sys implib
15325 wine_fn_config_dll user.exe16 enable_win16
15326 wine_fn_config_dll user32 enable_user32 implib,po
15327 wine_fn_config_test dlls/user32/tests user32_test
15328 wine_fn_config_dll userenv enable_userenv implib
15329 wine_fn_config_test dlls/userenv/tests userenv_test
15330 wine_fn_config_dll usp10 enable_usp10 implib
15331 wine_fn_config_test dlls/usp10/tests usp10_test
15332 wine_fn_config_lib uuid
15333 wine_fn_config_dll uxtheme enable_uxtheme implib
15334 wine_fn_config_test dlls/uxtheme/tests uxtheme_test
15335 wine_fn_config_dll vbscript enable_vbscript
15336 wine_fn_config_test dlls/vbscript/tests vbscript_test
15337 wine_fn_config_dll vcomp enable_vcomp
15338 wine_fn_config_dll vdhcp.vxd enable_win16
15339 wine_fn_config_dll vdmdbg enable_vdmdbg implib
15340 wine_fn_config_dll ver.dll16 enable_win16
15341 wine_fn_config_dll version enable_version implib
15342 wine_fn_config_test dlls/version/tests version_test
15343 wine_fn_config_dll vmm.vxd enable_win16
15344 wine_fn_config_dll vnbt.vxd enable_win16
15345 wine_fn_config_dll vnetbios.vxd enable_win16
15346 wine_fn_config_dll vtdapi.vxd enable_win16
15347 wine_fn_config_dll vwin32.vxd enable_win16
15348 wine_fn_config_dll w32skrnl enable_win16
15349 wine_fn_config_dll w32sys.dll16 enable_win16
15350 wine_fn_config_dll wbemprox enable_wbemprox
15351 wine_fn_config_dll wer enable_wer implib
15352 wine_fn_config_test dlls/wer/tests wer_test
15353 wine_fn_config_dll wiaservc enable_wiaservc
15354 wine_fn_config_dll win32s16.dll16 enable_win16
15355 wine_fn_config_dll win87em.dll16 enable_win16
15356 wine_fn_config_dll winaspi.dll16 enable_win16
15357 wine_fn_config_dll windebug.dll16 enable_win16
15358 wine_fn_config_dll windowscodecs enable_windowscodecs implib
15359 wine_fn_config_test dlls/windowscodecs/tests windowscodecs_test
15360 wine_fn_config_dll winealsa.drv enable_winealsa_drv
15361 wine_fn_config_dll winecoreaudio.drv enable_winecoreaudio_drv
15362 wine_fn_config_lib winecrt0
15363 wine_fn_config_dll wined3d enable_wined3d implib
15364 wine_fn_config_dll winegstreamer enable_winegstreamer
15365 wine_fn_config_dll winejoystick.drv enable_winejoystick_drv
15366 wine_fn_config_dll winemapi enable_winemapi
15367 wine_fn_config_dll winemp3.acm enable_winemp3_acm
15368 wine_fn_config_dll wineoss.drv enable_wineoss_drv
15369 wine_fn_config_dll wineps.drv enable_wineps_drv install-lib,po
15370 wine_fn_config_dll wineps16.drv16 enable_win16
15371 wine_fn_config_dll wineqtdecoder enable_wineqtdecoder
15372 wine_fn_config_dll winequartz.drv enable_winequartz_drv
15373 wine_fn_config_dll winex11.drv enable_winex11_drv
15374 wine_fn_config_dll wing.dll16 enable_win16
15375 wine_fn_config_dll wing32 enable_wing32
15376 wine_fn_config_dll winhttp enable_winhttp implib
15377 wine_fn_config_test dlls/winhttp/tests winhttp_test
15378 wine_fn_config_dll wininet enable_wininet implib,po
15379 wine_fn_config_test dlls/wininet/tests wininet_test
15380 wine_fn_config_dll winmm enable_winmm implib,po
15381 wine_fn_config_test dlls/winmm/tests winmm_test
15382 wine_fn_config_dll winnls.dll16 enable_win16
15383 wine_fn_config_dll winnls32 enable_winnls32 implib
15384 wine_fn_config_dll winscard enable_winscard implib
15385 wine_fn_config_dll winsock.dll16 enable_win16
15386 wine_fn_config_dll winspool.drv enable_winspool_drv implib,po winspool
15387 wine_fn_config_test dlls/winspool.drv/tests winspool.drv_test
15388 wine_fn_config_dll winsta enable_winsta
15389 wine_fn_config_dll wintab.dll16 enable_win16
15390 wine_fn_config_dll wintab32 enable_wintab32 implib
15391 wine_fn_config_test dlls/wintab32/tests wintab32_test
15392 wine_fn_config_dll wintrust enable_wintrust implib
15393 wine_fn_config_test dlls/wintrust/tests wintrust_test
15394 wine_fn_config_dll wlanapi enable_wlanapi
15395 wine_fn_config_dll wldap32 enable_wldap32 implib,po
15396 wine_fn_config_test dlls/wldap32/tests wldap32_test
15397 wine_fn_config_dll wmi enable_wmi
15398 wine_fn_config_dll wmiutils enable_wmiutils
15399 wine_fn_config_dll wnaspi32 enable_wnaspi32 implib
15400 wine_fn_config_dll wow32 enable_win16 implib
15401 wine_fn_config_dll ws2_32 enable_ws2_32 implib
15402 wine_fn_config_test dlls/ws2_32/tests ws2_32_test
15403 wine_fn_config_dll wshom.ocx enable_wshom_ocx
15404 wine_fn_config_test dlls/wshom.ocx/tests wshom.ocx_test
15405 wine_fn_config_dll wsock32 enable_wsock32 implib
15406 wine_fn_config_dll wtsapi32 enable_wtsapi32 implib
15407 wine_fn_config_dll wuapi enable_wuapi
15408 wine_fn_config_dll wuaueng enable_wuaueng
15409 wine_fn_config_dll xapofx1_1 enable_xapofx1_1
15410 wine_fn_config_dll xinput1_1 enable_xinput1_1
15411 wine_fn_config_dll xinput1_2 enable_xinput1_2
15412 wine_fn_config_dll xinput1_3 enable_xinput1_3 implib xinput
15413 wine_fn_config_test dlls/xinput1_3/tests xinput1_3_test
15414 wine_fn_config_dll xinput9_1_0 enable_xinput9_1_0
15415 wine_fn_config_dll xmllite enable_xmllite
15416 wine_fn_config_test dlls/xmllite/tests xmllite_test
15417 wine_fn_config_dll xolehlp enable_xolehlp
15418 wine_fn_config_makefile documentation enable_documentation
15419 wine_fn_config_makefile fonts enable_fonts install-lib
15420 wine_fn_config_makefile include enable_include install-dev
15421 wine_fn_config_makefile libs/port enable_libs_port
15422 wine_fn_config_makefile libs/wine enable_libs_wine install-dev,install-lib
15423 wine_fn_config_makefile libs/wpp enable_libs_wpp
15424 wine_fn_config_makefile loader enable_loader install-lib,manpage
15425 wine_fn_config_program aspnet_regiis enable_aspnet_regiis install
15426 wine_fn_config_program attrib enable_attrib install,po
15427 wine_fn_config_program cabarc enable_cabarc install
15428 wine_fn_config_program cacls enable_cacls install
15429 wine_fn_config_program clock enable_clock install,po
15430 wine_fn_config_program cmd enable_cmd install,po
15431 wine_fn_config_test programs/cmd/tests cmd.exe_test
15432 wine_fn_config_program control enable_control install
15433 wine_fn_config_program dxdiag enable_dxdiag install,po
15434 wine_fn_config_program eject enable_eject install
15435 wine_fn_config_program expand enable_expand install
15436 wine_fn_config_program explorer enable_explorer install,po
15437 wine_fn_config_program extrac32 enable_extrac32 install
15438 wine_fn_config_program hh enable_hh install
15439 wine_fn_config_program hostname enable_hostname install,po
15440 wine_fn_config_program icinfo enable_icinfo install
15441 wine_fn_config_program iexplore enable_iexplore install
15442 wine_fn_config_program ipconfig enable_ipconfig install,po
15443 wine_fn_config_program lodctr enable_lodctr install
15444 wine_fn_config_program mofcomp enable_mofcomp install
15445 wine_fn_config_program mshta enable_mshta install
15446 wine_fn_config_program msiexec enable_msiexec install,installbin,manpage
15447 wine_fn_config_program net enable_net install,po
15448 wine_fn_config_program netsh enable_netsh install
15449 wine_fn_config_program ngen enable_ngen install
15450 wine_fn_config_program notepad enable_notepad install,installbin,manpage,po
15451 wine_fn_config_program oleview enable_oleview install,po
15452 wine_fn_config_program ping enable_ping install
15453 wine_fn_config_program plugplay enable_plugplay install
15454 wine_fn_config_program presentationfontcache enable_presentationfontcache install
15455 wine_fn_config_program progman enable_progman install,po
15456 wine_fn_config_program reg enable_reg install,po
15457 wine_fn_config_program regasm enable_regasm install
15458 wine_fn_config_program regedit enable_regedit install,installbin,manpage,po
15459 wine_fn_config_test programs/regedit/tests regedit.exe_test
15460 wine_fn_config_program regsvcs enable_regsvcs install
15461 wine_fn_config_program regsvr32 enable_regsvr32 install,installbin,manpage
15462 wine_fn_config_program rpcss enable_rpcss install
15463 wine_fn_config_program rundll.exe16 enable_win16 install
15464 wine_fn_config_program rundll32 enable_rundll32 install
15465 wine_fn_config_program sc enable_sc install
15466 wine_fn_config_program secedit enable_secedit install
15467 wine_fn_config_program servicemodelreg enable_servicemodelreg install
15468 wine_fn_config_program services enable_services install
15469 wine_fn_config_program spoolsv enable_spoolsv install
15470 wine_fn_config_program start enable_start install,po
15471 wine_fn_config_program svchost enable_svchost install
15472 wine_fn_config_program taskkill enable_taskkill install,po
15473 wine_fn_config_program taskmgr enable_taskmgr install,po
15474 wine_fn_config_program termsv enable_termsv install
15475 wine_fn_config_program uninstaller enable_uninstaller install,po
15476 wine_fn_config_program unlodctr enable_unlodctr install
15477 wine_fn_config_program view enable_view install,po
15478 wine_fn_config_program wineboot enable_wineboot install,installbin,manpage,po
15479 wine_fn_config_program winebrowser enable_winebrowser install
15480 wine_fn_config_program winecfg enable_winecfg install,installbin,manpage,po
15481 wine_fn_config_program wineconsole enable_wineconsole install,installbin,manpage,po
15482 wine_fn_config_program winedbg enable_winedbg install,installbin,manpage,po
15483 wine_fn_config_program winedevice enable_winedevice install
15484 wine_fn_config_program winefile enable_winefile install,installbin,manpage,po
15485 wine_fn_config_program winemenubuilder enable_winemenubuilder install
15486 wine_fn_config_program winemine enable_winemine install,installbin,manpage,po
15487 wine_fn_config_program winemsibuilder enable_winemsibuilder install
15488 wine_fn_config_program winepath enable_winepath install,installbin,manpage
15489 wine_fn_config_program winetest enable_winetest
15490 wine_fn_config_program winevdm enable_win16 install
15491 wine_fn_config_program winhelp.exe16 enable_win16 install
15492 wine_fn_config_program winhlp32 enable_winhlp32 install,po
15493 wine_fn_config_program winoldap.mod16 enable_win16 install
15494 wine_fn_config_program winver enable_winver install
15495 wine_fn_config_program wmic enable_wmic install
15496 wine_fn_config_program wordpad enable_wordpad install,po
15497 wine_fn_config_program write enable_write install,po
15498 wine_fn_config_program wscript enable_wscript install
15499 wine_fn_config_test programs/wscript/tests wscript.exe_test
15500 wine_fn_config_program xcopy enable_xcopy install,po
15501 wine_fn_config_makefile server enable_server install-lib,manpage
15502 wine_fn_config_tool tools install-dev,install-lib,manpage
15503 wine_fn_config_tool tools/widl install-dev,manpage
15504 wine_fn_config_tool tools/winebuild install-dev,manpage
15505 wine_fn_config_tool tools/winedump install-dev,manpage
15506 wine_fn_config_tool tools/winegcc install-dev,manpage
15507 wine_fn_config_tool tools/wmc install-dev,manpage
15508 wine_fn_config_tool tools/wrc install-dev,manpage
15509
15510 LINGUAS="\
15511 ar \
15512 bg \
15513 ca \
15514 cs \
15515 da \
15516 de \
15517 el \
15518 en \
15519 en_US \
15520 eo \
15521 es \
15522 fa \
15523 fi \
15524 fr \
15525 he \
15526 hi \
15527 hu \
15528 it \
15529 ja \
15530 ko \
15531 lt \
15532 ml \
15533 nb_NO \
15534 nl \
15535 or \
15536 pa \
15537 pl \
15538 pt_BR \
15539 pt_PT \
15540 rm \
15541 ro \
15542 ru \
15543 sk \
15544 sl \
15545 sr_RS@cyrillic \
15546 sr_RS@latin \
15547 sv \
15548 te \
15549 th \
15550 tr \
15551 uk \
15552 wa \
15553 zh_CN \
15554 zh_TW"
15555
15556
15557
15558 ac_config_commands="$ac_config_commands Makefile"
15559
15560
15561 ac_config_files="$ac_config_files Make.tmp:Make.vars.in:Makefile.in"
15562
15563
15564
15565 if test "x$enable_maintainer_mode" = xyes
15566 then
15567     wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(srcdir)/configure: configure.ac aclocal.m4
15568         cd \$(srcdir) && autoconf --warnings=all
15569 \$(srcdir)/include/config.h.in: include/stamp-h.in
15570 \$(srcdir)/include/stamp-h.in: configure.ac aclocal.m4
15571         cd \$(srcdir) && autoheader --warnings=all
15572         @echo timestamp > \$@"
15573 fi
15574
15575 if test "x$with_gettextpo" = xyes
15576 then
15577     test "$srcdir" = . || as_fn_error $? "Rebuilding po files is not supported for out of tree builds." "$LINENO" 5
15578     wine_fn_append_rule ALL_MAKEFILE_DEPENDS "ALL_POT_FILES =$ALL_POT_FILES
15579 \$(LINGUAS:%=po/%.po): \$(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 "$MSGFMT" != false
15586 then
15587     PORCFLAGS="--po-dir=\$(top_builddir)/po"
15588
15589     wine_fn_append_rule ALL_MAKEFILE_DEPENDS "__builddeps__: \$(ALL_MO_FILES)"
15590 else
15591     LINGUAS=
15592 fi
15593
15594 if test "x$enable_tools" != xno
15595 then
15596     wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(MAKEDEP): tools/Makefile
15597 clean:: __clean__
15598         \$(RM) tools/makedep\$(EXEEXT)"
15599 fi
15600
15601 if test -n "$with_wine64"
15602 then
15603 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "all: fonts server tools $with_wine64/loader/wine $with_wine64/loader/wine-preloader
15604 fonts server tools:
15605         \$(RM) \$@ && \$(LN_S) $with_wine64/\$@ \$@
15606 $with_wine64/loader/wine:
15607         \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine \$@
15608 $with_wine64/loader/wine-preloader:
15609         \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine-preloader \$@
15610 clean::
15611         \$(RM) fonts server tools $with_wine64/loader/wine $with_wine64/loader/wine-preloader"
15612 fi
15613
15614 cat >confcache <<\_ACEOF
15615 # This file is a shell script that caches the results of configure
15616 # tests run on this system so they can be shared between configure
15617 # scripts and configure runs, see configure's option --config-cache.
15618 # It is not useful on other systems.  If it contains results you don't
15619 # want to keep, you may remove or edit it.
15620 #
15621 # config.status only pays attention to the cache file if you give it
15622 # the --recheck option to rerun configure.
15623 #
15624 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15625 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15626 # following values.
15627
15628 _ACEOF
15629
15630 # The following way of writing the cache mishandles newlines in values,
15631 # but we know of no workaround that is simple, portable, and efficient.
15632 # So, we kill variables containing newlines.
15633 # Ultrix sh set writes to stderr and can't be redirected directly,
15634 # and sets the high bit in the cache file unless we assign to the vars.
15635 (
15636   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15637     eval ac_val=\$$ac_var
15638     case $ac_val in #(
15639     *${as_nl}*)
15640       case $ac_var in #(
15641       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15642 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15643       esac
15644       case $ac_var in #(
15645       _ | IFS | as_nl) ;; #(
15646       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15647       *) { eval $ac_var=; unset $ac_var;} ;;
15648       esac ;;
15649     esac
15650   done
15651
15652   (set) 2>&1 |
15653     case $as_nl`(ac_space=' '; set) 2>&1` in #(
15654     *${as_nl}ac_space=\ *)
15655       # `set' does not quote correctly, so add quotes: double-quote
15656       # substitution turns \\\\ into \\, and sed turns \\ into \.
15657       sed -n \
15658         "s/'/'\\\\''/g;
15659           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15660       ;; #(
15661     *)
15662       # `set' quotes correctly as required by POSIX, so do not add quotes.
15663       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15664       ;;
15665     esac |
15666     sort
15667 ) |
15668   sed '
15669      /^ac_cv_env_/b end
15670      t clear
15671      :clear
15672      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15673      t end
15674      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15675      :end' >>confcache
15676 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15677   if test -w "$cache_file"; then
15678     if test "x$cache_file" != "x/dev/null"; then
15679       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15680 $as_echo "$as_me: updating cache $cache_file" >&6;}
15681       if test ! -f "$cache_file" || test -h "$cache_file"; then
15682         cat confcache >"$cache_file"
15683       else
15684         case $cache_file in #(
15685         */* | ?:*)
15686           mv -f confcache "$cache_file"$$ &&
15687           mv -f "$cache_file"$$ "$cache_file" ;; #(
15688         *)
15689           mv -f confcache "$cache_file" ;;
15690         esac
15691       fi
15692     fi
15693   else
15694     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15695 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15696   fi
15697 fi
15698 rm -f confcache
15699
15700 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15701 # Let make expand exec_prefix.
15702 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15703
15704 DEFS=-DHAVE_CONFIG_H
15705
15706 ac_libobjs=
15707 ac_ltlibobjs=
15708 U=
15709 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15710   # 1. Remove the extension, and $U if already installed.
15711   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15712   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15713   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15714   #    will be set to the directory where LIBOBJS objects are built.
15715   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15716   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15717 done
15718 LIBOBJS=$ac_libobjs
15719
15720 LTLIBOBJS=$ac_ltlibobjs
15721
15722
15723
15724 : "${CONFIG_STATUS=./config.status}"
15725 ac_write_fail=0
15726 ac_clean_files_save=$ac_clean_files
15727 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15728 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15729 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15730 as_write_fail=0
15731 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15732 #! $SHELL
15733 # Generated by $as_me.
15734 # Run this file to recreate the current configuration.
15735 # Compiler output produced by configure, useful for debugging
15736 # configure, is in config.log if it exists.
15737
15738 debug=false
15739 ac_cs_recheck=false
15740 ac_cs_silent=false
15741
15742 SHELL=\${CONFIG_SHELL-$SHELL}
15743 export SHELL
15744 _ASEOF
15745 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15746 ## -------------------- ##
15747 ## M4sh Initialization. ##
15748 ## -------------------- ##
15749
15750 # Be more Bourne compatible
15751 DUALCASE=1; export DUALCASE # for MKS sh
15752 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15753   emulate sh
15754   NULLCMD=:
15755   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15756   # is contrary to our usage.  Disable this feature.
15757   alias -g '${1+"$@"}'='"$@"'
15758   setopt NO_GLOB_SUBST
15759 else
15760   case `(set -o) 2>/dev/null` in #(
15761   *posix*) :
15762     set -o posix ;; #(
15763   *) :
15764      ;;
15765 esac
15766 fi
15767
15768
15769 as_nl='
15770 '
15771 export as_nl
15772 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15773 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15774 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15775 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15776 # Prefer a ksh shell builtin over an external printf program on Solaris,
15777 # but without wasting forks for bash or zsh.
15778 if test -z "$BASH_VERSION$ZSH_VERSION" \
15779     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15780   as_echo='print -r --'
15781   as_echo_n='print -rn --'
15782 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15783   as_echo='printf %s\n'
15784   as_echo_n='printf %s'
15785 else
15786   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15787     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15788     as_echo_n='/usr/ucb/echo -n'
15789   else
15790     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15791     as_echo_n_body='eval
15792       arg=$1;
15793       case $arg in #(
15794       *"$as_nl"*)
15795         expr "X$arg" : "X\\(.*\\)$as_nl";
15796         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15797       esac;
15798       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15799     '
15800     export as_echo_n_body
15801     as_echo_n='sh -c $as_echo_n_body as_echo'
15802   fi
15803   export as_echo_body
15804   as_echo='sh -c $as_echo_body as_echo'
15805 fi
15806
15807 # The user is always right.
15808 if test "${PATH_SEPARATOR+set}" != set; then
15809   PATH_SEPARATOR=:
15810   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15811     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15812       PATH_SEPARATOR=';'
15813   }
15814 fi
15815
15816
15817 # IFS
15818 # We need space, tab and new line, in precisely that order.  Quoting is
15819 # there to prevent editors from complaining about space-tab.
15820 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15821 # splitting by setting IFS to empty value.)
15822 IFS=" ""        $as_nl"
15823
15824 # Find who we are.  Look in the path if we contain no directory separator.
15825 as_myself=
15826 case $0 in #((
15827   *[\\/]* ) as_myself=$0 ;;
15828   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15829 for as_dir in $PATH
15830 do
15831   IFS=$as_save_IFS
15832   test -z "$as_dir" && as_dir=.
15833     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15834   done
15835 IFS=$as_save_IFS
15836
15837      ;;
15838 esac
15839 # We did not find ourselves, most probably we were run as `sh COMMAND'
15840 # in which case we are not to be found in the path.
15841 if test "x$as_myself" = x; then
15842   as_myself=$0
15843 fi
15844 if test ! -f "$as_myself"; then
15845   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15846   exit 1
15847 fi
15848
15849 # Unset variables that we do not need and which cause bugs (e.g. in
15850 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15851 # suppresses any "Segmentation fault" message there.  '((' could
15852 # trigger a bug in pdksh 5.2.14.
15853 for as_var in BASH_ENV ENV MAIL MAILPATH
15854 do eval test x\${$as_var+set} = xset \
15855   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15856 done
15857 PS1='$ '
15858 PS2='> '
15859 PS4='+ '
15860
15861 # NLS nuisances.
15862 LC_ALL=C
15863 export LC_ALL
15864 LANGUAGE=C
15865 export LANGUAGE
15866
15867 # CDPATH.
15868 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15869
15870
15871 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15872 # ----------------------------------------
15873 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15874 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15875 # script with STATUS, using 1 if that was 0.
15876 as_fn_error ()
15877 {
15878   as_status=$1; test $as_status -eq 0 && as_status=1
15879   if test "$4"; then
15880     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15881     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15882   fi
15883   $as_echo "$as_me: error: $2" >&2
15884   as_fn_exit $as_status
15885 } # as_fn_error
15886
15887
15888 # as_fn_set_status STATUS
15889 # -----------------------
15890 # Set $? to STATUS, without forking.
15891 as_fn_set_status ()
15892 {
15893   return $1
15894 } # as_fn_set_status
15895
15896 # as_fn_exit STATUS
15897 # -----------------
15898 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15899 as_fn_exit ()
15900 {
15901   set +e
15902   as_fn_set_status $1
15903   exit $1
15904 } # as_fn_exit
15905
15906 # as_fn_unset VAR
15907 # ---------------
15908 # Portably unset VAR.
15909 as_fn_unset ()
15910 {
15911   { eval $1=; unset $1;}
15912 }
15913 as_unset=as_fn_unset
15914 # as_fn_append VAR VALUE
15915 # ----------------------
15916 # Append the text in VALUE to the end of the definition contained in VAR. Take
15917 # advantage of any shell optimizations that allow amortized linear growth over
15918 # repeated appends, instead of the typical quadratic growth present in naive
15919 # implementations.
15920 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15921   eval 'as_fn_append ()
15922   {
15923     eval $1+=\$2
15924   }'
15925 else
15926   as_fn_append ()
15927   {
15928     eval $1=\$$1\$2
15929   }
15930 fi # as_fn_append
15931
15932 # as_fn_arith ARG...
15933 # ------------------
15934 # Perform arithmetic evaluation on the ARGs, and store the result in the
15935 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15936 # must be portable across $(()) and expr.
15937 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15938   eval 'as_fn_arith ()
15939   {
15940     as_val=$(( $* ))
15941   }'
15942 else
15943   as_fn_arith ()
15944   {
15945     as_val=`expr "$@" || test $? -eq 1`
15946   }
15947 fi # as_fn_arith
15948
15949
15950 if expr a : '\(a\)' >/dev/null 2>&1 &&
15951    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15952   as_expr=expr
15953 else
15954   as_expr=false
15955 fi
15956
15957 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15958   as_basename=basename
15959 else
15960   as_basename=false
15961 fi
15962
15963 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15964   as_dirname=dirname
15965 else
15966   as_dirname=false
15967 fi
15968
15969 as_me=`$as_basename -- "$0" ||
15970 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15971          X"$0" : 'X\(//\)$' \| \
15972          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15973 $as_echo X/"$0" |
15974     sed '/^.*\/\([^/][^/]*\)\/*$/{
15975             s//\1/
15976             q
15977           }
15978           /^X\/\(\/\/\)$/{
15979             s//\1/
15980             q
15981           }
15982           /^X\/\(\/\).*/{
15983             s//\1/
15984             q
15985           }
15986           s/.*/./; q'`
15987
15988 # Avoid depending upon Character Ranges.
15989 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15990 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15991 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15992 as_cr_digits='0123456789'
15993 as_cr_alnum=$as_cr_Letters$as_cr_digits
15994
15995 ECHO_C= ECHO_N= ECHO_T=
15996 case `echo -n x` in #(((((
15997 -n*)
15998   case `echo 'xy\c'` in
15999   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
16000   xy)  ECHO_C='\c';;
16001   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
16002        ECHO_T=' ';;
16003   esac;;
16004 *)
16005   ECHO_N='-n';;
16006 esac
16007
16008 rm -f conf$$ conf$$.exe conf$$.file
16009 if test -d conf$$.dir; then
16010   rm -f conf$$.dir/conf$$.file
16011 else
16012   rm -f conf$$.dir
16013   mkdir conf$$.dir 2>/dev/null
16014 fi
16015 if (echo >conf$$.file) 2>/dev/null; then
16016   if ln -s conf$$.file conf$$ 2>/dev/null; then
16017     as_ln_s='ln -s'
16018     # ... but there are two gotchas:
16019     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16020     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16021     # In both cases, we have to default to `cp -p'.
16022     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16023       as_ln_s='cp -p'
16024   elif ln conf$$.file conf$$ 2>/dev/null; then
16025     as_ln_s=ln
16026   else
16027     as_ln_s='cp -p'
16028   fi
16029 else
16030   as_ln_s='cp -p'
16031 fi
16032 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16033 rmdir conf$$.dir 2>/dev/null
16034
16035
16036 # as_fn_mkdir_p
16037 # -------------
16038 # Create "$as_dir" as a directory, including parents if necessary.
16039 as_fn_mkdir_p ()
16040 {
16041
16042   case $as_dir in #(
16043   -*) as_dir=./$as_dir;;
16044   esac
16045   test -d "$as_dir" || eval $as_mkdir_p || {
16046     as_dirs=
16047     while :; do
16048       case $as_dir in #(
16049       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16050       *) as_qdir=$as_dir;;
16051       esac
16052       as_dirs="'$as_qdir' $as_dirs"
16053       as_dir=`$as_dirname -- "$as_dir" ||
16054 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16055          X"$as_dir" : 'X\(//\)[^/]' \| \
16056          X"$as_dir" : 'X\(//\)$' \| \
16057          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16058 $as_echo X"$as_dir" |
16059     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16060             s//\1/
16061             q
16062           }
16063           /^X\(\/\/\)[^/].*/{
16064             s//\1/
16065             q
16066           }
16067           /^X\(\/\/\)$/{
16068             s//\1/
16069             q
16070           }
16071           /^X\(\/\).*/{
16072             s//\1/
16073             q
16074           }
16075           s/.*/./; q'`
16076       test -d "$as_dir" && break
16077     done
16078     test -z "$as_dirs" || eval "mkdir $as_dirs"
16079   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16080
16081
16082 } # as_fn_mkdir_p
16083 if mkdir -p . 2>/dev/null; then
16084   as_mkdir_p='mkdir -p "$as_dir"'
16085 else
16086   test -d ./-p && rmdir ./-p
16087   as_mkdir_p=false
16088 fi
16089
16090 if test -x / >/dev/null 2>&1; then
16091   as_test_x='test -x'
16092 else
16093   if ls -dL / >/dev/null 2>&1; then
16094     as_ls_L_option=L
16095   else
16096     as_ls_L_option=
16097   fi
16098   as_test_x='
16099     eval sh -c '\''
16100       if test -d "$1"; then
16101         test -d "$1/.";
16102       else
16103         case $1 in #(
16104         -*)set "./$1";;
16105         esac;
16106         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16107         ???[sx]*):;;*)false;;esac;fi
16108     '\'' sh
16109   '
16110 fi
16111 as_executable_p=$as_test_x
16112
16113 # Sed expression to map a string onto a valid CPP name.
16114 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16115
16116 # Sed expression to map a string onto a valid variable name.
16117 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16118
16119
16120 exec 6>&1
16121 ## ----------------------------------- ##
16122 ## Main body of $CONFIG_STATUS script. ##
16123 ## ----------------------------------- ##
16124 _ASEOF
16125 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16126
16127 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16128 # Save the log message, to keep $0 and so on meaningful, and to
16129 # report actual input values of CONFIG_FILES etc. instead of their
16130 # values after options handling.
16131 ac_log="
16132 This file was extended by Wine $as_me 1.3.35, which was
16133 generated by GNU Autoconf 2.68.  Invocation command line was
16134
16135   CONFIG_FILES    = $CONFIG_FILES
16136   CONFIG_HEADERS  = $CONFIG_HEADERS
16137   CONFIG_LINKS    = $CONFIG_LINKS
16138   CONFIG_COMMANDS = $CONFIG_COMMANDS
16139   $ $0 $@
16140
16141 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16142 "
16143
16144 _ACEOF
16145
16146 case $ac_config_files in *"
16147 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16148 esac
16149
16150 case $ac_config_headers in *"
16151 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16152 esac
16153
16154
16155 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16156 # Files that config.status was made for.
16157 config_files="$ac_config_files"
16158 config_headers="$ac_config_headers"
16159 config_links="$ac_config_links"
16160 config_commands="$ac_config_commands"
16161
16162 _ACEOF
16163
16164 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16165 ac_cs_usage="\
16166 \`$as_me' instantiates files and other configuration actions
16167 from templates according to the current configuration.  Unless the files
16168 and actions are specified as TAGs, all are instantiated by default.
16169
16170 Usage: $0 [OPTION]... [TAG]...
16171
16172   -h, --help       print this help, then exit
16173   -V, --version    print version number and configuration settings, then exit
16174       --config     print configuration, then exit
16175   -q, --quiet, --silent
16176                    do not print progress messages
16177   -d, --debug      don't remove temporary files
16178       --recheck    update $as_me by reconfiguring in the same conditions
16179       --file=FILE[:TEMPLATE]
16180                    instantiate the configuration file FILE
16181       --header=FILE[:TEMPLATE]
16182                    instantiate the configuration header FILE
16183
16184 Configuration files:
16185 $config_files
16186
16187 Configuration headers:
16188 $config_headers
16189
16190 Configuration links:
16191 $config_links
16192
16193 Configuration commands:
16194 $config_commands
16195
16196 Report bugs to <wine-devel@winehq.org>.
16197 Wine home page: <http://www.winehq.org>."
16198
16199 _ACEOF
16200 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16201 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16202 ac_cs_version="\\
16203 Wine config.status 1.3.35
16204 configured by $0, generated by GNU Autoconf 2.68,
16205   with options \\"\$ac_cs_config\\"
16206
16207 Copyright (C) 2010 Free Software Foundation, Inc.
16208 This config.status script is free software; the Free Software Foundation
16209 gives unlimited permission to copy, distribute and modify it."
16210
16211 ac_pwd='$ac_pwd'
16212 srcdir='$srcdir'
16213 INSTALL='$INSTALL'
16214 test -n "\$AWK" || AWK=awk
16215 _ACEOF
16216
16217 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16218 # The default lists apply if the user does not specify any file.
16219 ac_need_defaults=:
16220 while test $# != 0
16221 do
16222   case $1 in
16223   --*=?*)
16224     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16225     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16226     ac_shift=:
16227     ;;
16228   --*=)
16229     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16230     ac_optarg=
16231     ac_shift=:
16232     ;;
16233   *)
16234     ac_option=$1
16235     ac_optarg=$2
16236     ac_shift=shift
16237     ;;
16238   esac
16239
16240   case $ac_option in
16241   # Handling of the options.
16242   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16243     ac_cs_recheck=: ;;
16244   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16245     $as_echo "$ac_cs_version"; exit ;;
16246   --config | --confi | --conf | --con | --co | --c )
16247     $as_echo "$ac_cs_config"; exit ;;
16248   --debug | --debu | --deb | --de | --d | -d )
16249     debug=: ;;
16250   --file | --fil | --fi | --f )
16251     $ac_shift
16252     case $ac_optarg in
16253     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16254     '') as_fn_error $? "missing file argument" ;;
16255     esac
16256     as_fn_append CONFIG_FILES " '$ac_optarg'"
16257     ac_need_defaults=false;;
16258   --header | --heade | --head | --hea )
16259     $ac_shift
16260     case $ac_optarg in
16261     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16262     esac
16263     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16264     ac_need_defaults=false;;
16265   --he | --h)
16266     # Conflict between --help and --header
16267     as_fn_error $? "ambiguous option: \`$1'
16268 Try \`$0 --help' for more information.";;
16269   --help | --hel | -h )
16270     $as_echo "$ac_cs_usage"; exit ;;
16271   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16272   | -silent | --silent | --silen | --sile | --sil | --si | --s)
16273     ac_cs_silent=: ;;
16274
16275   # This is an error.
16276   -*) as_fn_error $? "unrecognized option: \`$1'
16277 Try \`$0 --help' for more information." ;;
16278
16279   *) as_fn_append ac_config_targets " $1"
16280      ac_need_defaults=false ;;
16281
16282   esac
16283   shift
16284 done
16285
16286 ac_configure_extra_args=
16287
16288 if $ac_cs_silent; then
16289   exec 6>/dev/null
16290   ac_configure_extra_args="$ac_configure_extra_args --silent"
16291 fi
16292
16293 _ACEOF
16294 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16295 if \$ac_cs_recheck; then
16296   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16297   shift
16298   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16299   CONFIG_SHELL='$SHELL'
16300   export CONFIG_SHELL
16301   exec "\$@"
16302 fi
16303
16304 _ACEOF
16305 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16306 exec 5>>config.log
16307 {
16308   echo
16309   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16310 ## Running $as_me. ##
16311 _ASBOX
16312   $as_echo "$ac_log"
16313 } >&5
16314
16315 _ACEOF
16316 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16317 #
16318 # INIT-COMMANDS
16319 #
16320 wine_fn_output_makefile ()
16321 {
16322     cat Make.tmp - <<\_WINE_EOF >\$tmp/makefile && mv -f \$tmp/makefile \$1 && rm -f Make.tmp && return
16323 $ALL_MAKEFILE_DEPENDS
16324 _WINE_EOF
16325     as_fn_error $? "could not create Makefile" "$LINENO" 5
16326 }
16327
16328 _ACEOF
16329
16330 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16331
16332 # Handling of arguments.
16333 for ac_config_target in $ac_config_targets
16334 do
16335   case $ac_config_target in
16336     "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
16337     "include/stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/stamp-h" ;;
16338     "dlls/shell32/AUTHORS") CONFIG_LINKS="$CONFIG_LINKS dlls/shell32/AUTHORS:AUTHORS" ;;
16339     "dlls/wineps.drv/generic.ppd") CONFIG_LINKS="$CONFIG_LINKS dlls/wineps.drv/generic.ppd:dlls/wineps.drv/generic.ppd" ;;
16340     "fonts/marlett.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/marlett.ttf:fonts/marlett.ttf" ;;
16341     "fonts/symbol.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/symbol.ttf:fonts/symbol.ttf" ;;
16342     "fonts/tahoma.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahoma.ttf:fonts/tahoma.ttf" ;;
16343     "fonts/tahomabd.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahomabd.ttf:fonts/tahomabd.ttf" ;;
16344     "po/LINGUAS") CONFIG_LINKS="$CONFIG_LINKS po/LINGUAS:po/LINGUAS" ;;
16345     "tools/l_intl.nls") CONFIG_LINKS="$CONFIG_LINKS tools/l_intl.nls:tools/l_intl.nls" ;;
16346     "wine") CONFIG_LINKS="$CONFIG_LINKS wine:tools/winewrapper" ;;
16347     "wine64") CONFIG_LINKS="$CONFIG_LINKS wine64:tools/winewrapper" ;;
16348     "dlls/gdi32/dibdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/dibdrv" ;;
16349     "dlls/gdi32/enhmfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/enhmfdrv" ;;
16350     "dlls/gdi32/mfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/mfdrv" ;;
16351     "dlls/kernel32/nls") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel32/nls" ;;
16352     "dlls/user32/resources") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user32/resources" ;;
16353     "dlls/wineps.drv/data") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps.drv/data" ;;
16354     "include/wine") CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
16355     "Make.rules") CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
16356     "Maketest.rules") CONFIG_FILES="$CONFIG_FILES Maketest.rules" ;;
16357     "dlls/Makedll.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
16358     "dlls/Makeimplib.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makeimplib.rules" ;;
16359     "programs/Makeprog.rules") CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
16360     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
16361     "Make.tmp") CONFIG_FILES="$CONFIG_FILES Make.tmp:Make.vars.in:Makefile.in" ;;
16362
16363   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16364   esac
16365 done
16366
16367
16368 # If the user did not use the arguments to specify the items to instantiate,
16369 # then the envvar interface is used.  Set only those that are not.
16370 # We use the long form for the default assignment because of an extremely
16371 # bizarre bug on SunOS 4.1.3.
16372 if $ac_need_defaults; then
16373   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16374   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16375   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
16376   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16377 fi
16378
16379 # Have a temporary directory for convenience.  Make it in the build tree
16380 # simply because there is no reason against having it here, and in addition,
16381 # creating and moving files from /tmp can sometimes cause problems.
16382 # Hook for its removal unless debugging.
16383 # Note that there is a small window in which the directory will not be cleaned:
16384 # after its creation but before its name has been assigned to `$tmp'.
16385 $debug ||
16386 {
16387   tmp= ac_tmp=
16388   trap 'exit_status=$?
16389   : "${ac_tmp:=$tmp}"
16390   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16391 ' 0
16392   trap 'as_fn_exit 1' 1 2 13 15
16393 }
16394 # Create a (secure) tmp directory for tmp files.
16395
16396 {
16397   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16398   test -d "$tmp"
16399 }  ||
16400 {
16401   tmp=./conf$$-$RANDOM
16402   (umask 077 && mkdir "$tmp")
16403 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16404 ac_tmp=$tmp
16405
16406 # Set up the scripts for CONFIG_FILES section.
16407 # No need to generate them if there are no CONFIG_FILES.
16408 # This happens for instance with `./config.status config.h'.
16409 if test -n "$CONFIG_FILES"; then
16410
16411 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16412   ac_cs_awk_getline=:
16413   ac_cs_awk_pipe_init=
16414   ac_cs_awk_read_file='
16415       while ((getline aline < (F[key])) > 0)
16416         print(aline)
16417       close(F[key])'
16418   ac_cs_awk_pipe_fini=
16419 else
16420   ac_cs_awk_getline=false
16421   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16422   ac_cs_awk_read_file='
16423       print "|#_!!_#|"
16424       print "cat " F[key] " &&"
16425       '$ac_cs_awk_pipe_init
16426   # The final `:' finishes the AND list.
16427   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16428 fi
16429 ac_cr=`echo X | tr X '\015'`
16430 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16431 # But we know of no other shell where ac_cr would be empty at this
16432 # point, so we can use a bashism as a fallback.
16433 if test "x$ac_cr" = x; then
16434   eval ac_cr=\$\'\\r\'
16435 fi
16436 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16437 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16438   ac_cs_awk_cr='\\r'
16439 else
16440   ac_cs_awk_cr=$ac_cr
16441 fi
16442
16443 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16444 _ACEOF
16445
16446 # Create commands to substitute file output variables.
16447 {
16448   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16449   echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
16450   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16451   echo "_ACAWK" &&
16452   echo "_ACEOF"
16453 } >conf$$files.sh &&
16454 . ./conf$$files.sh ||
16455   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16456 rm -f conf$$files.sh
16457
16458 {
16459   echo "cat >conf$$subs.awk <<_ACEOF" &&
16460   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16461   echo "_ACEOF"
16462 } >conf$$subs.sh ||
16463   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16464 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16465 ac_delim='%!_!# '
16466 for ac_last_try in false false false false false :; do
16467   . ./conf$$subs.sh ||
16468     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16469
16470   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16471   if test $ac_delim_n = $ac_delim_num; then
16472     break
16473   elif $ac_last_try; then
16474     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16475   else
16476     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16477   fi
16478 done
16479 rm -f conf$$subs.sh
16480
16481 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16482 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16483 _ACEOF
16484 sed -n '
16485 h
16486 s/^/S["/; s/!.*/"]=/
16487 p
16488 g
16489 s/^[^!]*!//
16490 :repl
16491 t repl
16492 s/'"$ac_delim"'$//
16493 t delim
16494 :nl
16495 h
16496 s/\(.\{148\}\)..*/\1/
16497 t more1
16498 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16499 p
16500 n
16501 b repl
16502 :more1
16503 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16504 p
16505 g
16506 s/.\{148\}//
16507 t nl
16508 :delim
16509 h
16510 s/\(.\{148\}\)..*/\1/
16511 t more2
16512 s/["\\]/\\&/g; s/^/"/; s/$/"/
16513 p
16514 b
16515 :more2
16516 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16517 p
16518 g
16519 s/.\{148\}//
16520 t delim
16521 ' <conf$$subs.awk | sed '
16522 /^[^""]/{
16523   N
16524   s/\n//
16525 }
16526 ' >>$CONFIG_STATUS || ac_write_fail=1
16527 rm -f conf$$subs.awk
16528 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16529 _ACAWK
16530 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16531   for (key in S) S_is_set[key] = 1
16532   FS = "\a"
16533   \$ac_cs_awk_pipe_init
16534 }
16535 {
16536   line = $ 0
16537   nfields = split(line, field, "@")
16538   substed = 0
16539   len = length(field[1])
16540   for (i = 2; i < nfields; i++) {
16541     key = field[i]
16542     keylen = length(key)
16543     if (S_is_set[key]) {
16544       value = S[key]
16545       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16546       len += length(value) + length(field[++i])
16547       substed = 1
16548     } else
16549       len += 1 + keylen
16550   }
16551   if (nfields == 3 && !substed) {
16552     key = field[2]
16553     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
16554       \$ac_cs_awk_read_file
16555       next
16556     }
16557   }
16558   print line
16559 }
16560 \$ac_cs_awk_pipe_fini
16561 _ACAWK
16562 _ACEOF
16563 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16564 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16565   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16566 else
16567   cat
16568 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16569   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16570 _ACEOF
16571
16572 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16573 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16574 # trailing colons and then remove the whole line if VPATH becomes empty
16575 # (actually we leave an empty line to preserve line numbers).
16576 if test "x$srcdir" = x.; then
16577   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
16578 h
16579 s///
16580 s/^/:/
16581 s/[      ]*$/:/
16582 s/:\$(srcdir):/:/g
16583 s/:\${srcdir}:/:/g
16584 s/:@srcdir@:/:/g
16585 s/^:*//
16586 s/:*$//
16587 x
16588 s/\(=[   ]*\).*/\1/
16589 G
16590 s/\n//
16591 s/^[^=]*=[       ]*$//
16592 }'
16593 fi
16594
16595 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16596 fi # test -n "$CONFIG_FILES"
16597
16598 # Set up the scripts for CONFIG_HEADERS section.
16599 # No need to generate them if there are no CONFIG_HEADERS.
16600 # This happens for instance with `./config.status Makefile'.
16601 if test -n "$CONFIG_HEADERS"; then
16602 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16603 BEGIN {
16604 _ACEOF
16605
16606 # Transform confdefs.h into an awk script `defines.awk', embedded as
16607 # here-document in config.status, that substitutes the proper values into
16608 # config.h.in to produce config.h.
16609
16610 # Create a delimiter string that does not exist in confdefs.h, to ease
16611 # handling of long lines.
16612 ac_delim='%!_!# '
16613 for ac_last_try in false false :; do
16614   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16615   if test -z "$ac_tt"; then
16616     break
16617   elif $ac_last_try; then
16618     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16619   else
16620     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16621   fi
16622 done
16623
16624 # For the awk script, D is an array of macro values keyed by name,
16625 # likewise P contains macro parameters if any.  Preserve backslash
16626 # newline sequences.
16627
16628 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16629 sed -n '
16630 s/.\{148\}/&'"$ac_delim"'/g
16631 t rset
16632 :rset
16633 s/^[     ]*#[    ]*define[       ][      ]*/ /
16634 t def
16635 d
16636 :def
16637 s/\\$//
16638 t bsnl
16639 s/["\\]/\\&/g
16640 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16641 D["\1"]=" \3"/p
16642 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
16643 d
16644 :bsnl
16645 s/["\\]/\\&/g
16646 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16647 D["\1"]=" \3\\\\\\n"\\/p
16648 t cont
16649 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16650 t cont
16651 d
16652 :cont
16653 n
16654 s/.\{148\}/&'"$ac_delim"'/g
16655 t clear
16656 :clear
16657 s/\\$//
16658 t bsnlc
16659 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16660 d
16661 :bsnlc
16662 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16663 b cont
16664 ' <confdefs.h | sed '
16665 s/'"$ac_delim"'/"\\\
16666 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16667
16668 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16669   for (key in D) D_is_set[key] = 1
16670   FS = "\a"
16671 }
16672 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16673   line = \$ 0
16674   split(line, arg, " ")
16675   if (arg[1] == "#") {
16676     defundef = arg[2]
16677     mac1 = arg[3]
16678   } else {
16679     defundef = substr(arg[1], 2)
16680     mac1 = arg[2]
16681   }
16682   split(mac1, mac2, "(") #)
16683   macro = mac2[1]
16684   prefix = substr(line, 1, index(line, defundef) - 1)
16685   if (D_is_set[macro]) {
16686     # Preserve the white space surrounding the "#".
16687     print prefix "define", macro P[macro] D[macro]
16688     next
16689   } else {
16690     # Replace #undef with comments.  This is necessary, for example,
16691     # in the case of _POSIX_SOURCE, which is predefined and required
16692     # on some systems where configure will not decide to define it.
16693     if (defundef == "undef") {
16694       print "/*", prefix defundef, macro, "*/"
16695       next
16696     }
16697   }
16698 }
16699 { print }
16700 _ACAWK
16701 _ACEOF
16702 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16703   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16704 fi # test -n "$CONFIG_HEADERS"
16705
16706
16707 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
16708 shift
16709 for ac_tag
16710 do
16711   case $ac_tag in
16712   :[FHLC]) ac_mode=$ac_tag; continue;;
16713   esac
16714   case $ac_mode$ac_tag in
16715   :[FHL]*:*);;
16716   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16717   :[FH]-) ac_tag=-:-;;
16718   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16719   esac
16720   ac_save_IFS=$IFS
16721   IFS=:
16722   set x $ac_tag
16723   IFS=$ac_save_IFS
16724   shift
16725   ac_file=$1
16726   shift
16727
16728   case $ac_mode in
16729   :L) ac_source=$1;;
16730   :[FH])
16731     ac_file_inputs=
16732     for ac_f
16733     do
16734       case $ac_f in
16735       -) ac_f="$ac_tmp/stdin";;
16736       *) # Look for the file first in the build tree, then in the source tree
16737          # (if the path is not absolute).  The absolute path cannot be DOS-style,
16738          # because $ac_f cannot contain `:'.
16739          test -f "$ac_f" ||
16740            case $ac_f in
16741            [\\/$]*) false;;
16742            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16743            esac ||
16744            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16745       esac
16746       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16747       as_fn_append ac_file_inputs " '$ac_f'"
16748     done
16749
16750     # Let's still pretend it is `configure' which instantiates (i.e., don't
16751     # use $as_me), people would be surprised to read:
16752     #    /* config.h.  Generated by config.status.  */
16753     configure_input='Generated from '`
16754           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16755         `' by configure.'
16756     if test x"$ac_file" != x-; then
16757       configure_input="$ac_file.  $configure_input"
16758       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16759 $as_echo "$as_me: creating $ac_file" >&6;}
16760     fi
16761     # Neutralize special characters interpreted by sed in replacement strings.
16762     case $configure_input in #(
16763     *\&* | *\|* | *\\* )
16764        ac_sed_conf_input=`$as_echo "$configure_input" |
16765        sed 's/[\\\\&|]/\\\\&/g'`;; #(
16766     *) ac_sed_conf_input=$configure_input;;
16767     esac
16768
16769     case $ac_tag in
16770     *:-:* | *:-) cat >"$ac_tmp/stdin" \
16771       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16772     esac
16773     ;;
16774   esac
16775
16776   ac_dir=`$as_dirname -- "$ac_file" ||
16777 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16778          X"$ac_file" : 'X\(//\)[^/]' \| \
16779          X"$ac_file" : 'X\(//\)$' \| \
16780          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16781 $as_echo X"$ac_file" |
16782     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16783             s//\1/
16784             q
16785           }
16786           /^X\(\/\/\)[^/].*/{
16787             s//\1/
16788             q
16789           }
16790           /^X\(\/\/\)$/{
16791             s//\1/
16792             q
16793           }
16794           /^X\(\/\).*/{
16795             s//\1/
16796             q
16797           }
16798           s/.*/./; q'`
16799   as_dir="$ac_dir"; as_fn_mkdir_p
16800   ac_builddir=.
16801
16802 case "$ac_dir" in
16803 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16804 *)
16805   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16806   # A ".." for each directory in $ac_dir_suffix.
16807   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16808   case $ac_top_builddir_sub in
16809   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16810   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16811   esac ;;
16812 esac
16813 ac_abs_top_builddir=$ac_pwd
16814 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16815 # for backward compatibility:
16816 ac_top_builddir=$ac_top_build_prefix
16817
16818 case $srcdir in
16819   .)  # We are building in place.
16820     ac_srcdir=.
16821     ac_top_srcdir=$ac_top_builddir_sub
16822     ac_abs_top_srcdir=$ac_pwd ;;
16823   [\\/]* | ?:[\\/]* )  # Absolute name.
16824     ac_srcdir=$srcdir$ac_dir_suffix;
16825     ac_top_srcdir=$srcdir
16826     ac_abs_top_srcdir=$srcdir ;;
16827   *) # Relative name.
16828     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16829     ac_top_srcdir=$ac_top_build_prefix$srcdir
16830     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16831 esac
16832 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16833
16834
16835   case $ac_mode in
16836   :F)
16837   #
16838   # CONFIG_FILE
16839   #
16840
16841   case $INSTALL in
16842   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16843   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16844   esac
16845 _ACEOF
16846
16847 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16848 # If the template does not know about datarootdir, expand it.
16849 # FIXME: This hack should be removed a few years after 2.60.
16850 ac_datarootdir_hack=; ac_datarootdir_seen=
16851 ac_sed_dataroot='
16852 /datarootdir/ {
16853   p
16854   q
16855 }
16856 /@datadir@/p
16857 /@docdir@/p
16858 /@infodir@/p
16859 /@localedir@/p
16860 /@mandir@/p'
16861 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16862 *datarootdir*) ac_datarootdir_seen=yes;;
16863 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16864   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16865 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16866 _ACEOF
16867 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16868   ac_datarootdir_hack='
16869   s&@datadir@&$datadir&g
16870   s&@docdir@&$docdir&g
16871   s&@infodir@&$infodir&g
16872   s&@localedir@&$localedir&g
16873   s&@mandir@&$mandir&g
16874   s&\\\${datarootdir}&$datarootdir&g' ;;
16875 esac
16876 _ACEOF
16877
16878 # Neutralize VPATH when `$srcdir' = `.'.
16879 # Shell code in configure.ac might set extrasub.
16880 # FIXME: do we really want to maintain this feature?
16881 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16882 ac_sed_extra="$ac_vpsub
16883 $extrasub
16884 _ACEOF
16885 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16886 :t
16887 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16888 s|@configure_input@|$ac_sed_conf_input|;t t
16889 s&@top_builddir@&$ac_top_builddir_sub&;t t
16890 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16891 s&@srcdir@&$ac_srcdir&;t t
16892 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16893 s&@top_srcdir@&$ac_top_srcdir&;t t
16894 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16895 s&@builddir@&$ac_builddir&;t t
16896 s&@abs_builddir@&$ac_abs_builddir&;t t
16897 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16898 s&@INSTALL@&$ac_INSTALL&;t t
16899 $ac_datarootdir_hack
16900 "
16901 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16902 if $ac_cs_awk_getline; then
16903   $AWK -f "$ac_tmp/subs.awk"
16904 else
16905   $AWK -f "$ac_tmp/subs.awk" | $SHELL
16906 fi \
16907   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16908
16909 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16910   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16911   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
16912       "$ac_tmp/out"`; test -z "$ac_out"; } &&
16913   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16914 which seems to be undefined.  Please make sure it is defined" >&5
16915 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16916 which seems to be undefined.  Please make sure it is defined" >&2;}
16917
16918   rm -f "$ac_tmp/stdin"
16919   case $ac_file in
16920   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16921   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16922   esac \
16923   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16924  ;;
16925   :H)
16926   #
16927   # CONFIG_HEADER
16928   #
16929   if test x"$ac_file" != x-; then
16930     {
16931       $as_echo "/* $configure_input  */" \
16932       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16933     } >"$ac_tmp/config.h" \
16934       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16935     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16936       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16937 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16938     else
16939       rm -f "$ac_file"
16940       mv "$ac_tmp/config.h" "$ac_file" \
16941         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16942     fi
16943   else
16944     $as_echo "/* $configure_input  */" \
16945       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16946       || as_fn_error $? "could not create -" "$LINENO" 5
16947   fi
16948  ;;
16949   :L)
16950   #
16951   # CONFIG_LINK
16952   #
16953
16954   if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
16955     :
16956   else
16957     # Prefer the file from the source tree if names are identical.
16958     if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
16959       ac_source=$srcdir/$ac_source
16960     fi
16961
16962     { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
16963 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
16964
16965     if test ! -r "$ac_source"; then
16966       as_fn_error $? "$ac_source: file not found" "$LINENO" 5
16967     fi
16968     rm -f "$ac_file"
16969
16970     # Try a relative symlink, then a hard link, then a copy.
16971     case $ac_source in
16972     [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
16973         *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
16974     esac
16975     ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
16976       ln "$ac_source" "$ac_file" 2>/dev/null ||
16977       cp -p "$ac_source" "$ac_file" ||
16978       as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
16979   fi
16980  ;;
16981   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16982 $as_echo "$as_me: executing $ac_file commands" >&6;}
16983  ;;
16984   esac
16985
16986
16987   case $ac_file$ac_mode in
16988     "include/stamp-h":C) echo timestamp > include/stamp-h ;;
16989     "dlls/gdi32/dibdrv":C) test -d "dlls/gdi32/dibdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/dibdrv" >&5
16990 $as_echo "$as_me: creating dlls/gdi32/dibdrv" >&6;}; as_dir="dlls/gdi32/dibdrv"; as_fn_mkdir_p; } ;;
16991     "dlls/gdi32/enhmfdrv":C) test -d "dlls/gdi32/enhmfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/enhmfdrv" >&5
16992 $as_echo "$as_me: creating dlls/gdi32/enhmfdrv" >&6;}; as_dir="dlls/gdi32/enhmfdrv"; as_fn_mkdir_p; } ;;
16993     "dlls/gdi32/mfdrv":C) test -d "dlls/gdi32/mfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/mfdrv" >&5
16994 $as_echo "$as_me: creating dlls/gdi32/mfdrv" >&6;}; as_dir="dlls/gdi32/mfdrv"; as_fn_mkdir_p; } ;;
16995     "dlls/kernel32/nls":C) test -d "dlls/kernel32/nls" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/kernel32/nls" >&5
16996 $as_echo "$as_me: creating dlls/kernel32/nls" >&6;}; as_dir="dlls/kernel32/nls"; as_fn_mkdir_p; } ;;
16997     "dlls/user32/resources":C) test -d "dlls/user32/resources" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/user32/resources" >&5
16998 $as_echo "$as_me: creating dlls/user32/resources" >&6;}; as_dir="dlls/user32/resources"; as_fn_mkdir_p; } ;;
16999     "dlls/wineps.drv/data":C) test -d "dlls/wineps.drv/data" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/wineps.drv/data" >&5
17000 $as_echo "$as_me: creating dlls/wineps.drv/data" >&6;}; as_dir="dlls/wineps.drv/data"; as_fn_mkdir_p; } ;;
17001     "include/wine":C) test -d "include/wine" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating include/wine" >&5
17002 $as_echo "$as_me: creating include/wine" >&6;}; as_dir="include/wine"; as_fn_mkdir_p; } ;;
17003     "Makefile":C) wine_fn_output_makefile Makefile ;;
17004
17005   esac
17006 done # for ac_tag
17007
17008
17009 as_fn_exit 0
17010 _ACEOF
17011 ac_clean_files=$ac_clean_files_save
17012
17013 test $ac_write_fail = 0 ||
17014   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17015
17016
17017 # configure is writing to config.log, and then calls config.status.
17018 # config.status does its own redirection, appending to config.log.
17019 # Unfortunately, on DOS this fails, as config.log is still kept open
17020 # by configure, so config.status won't be able to write to it; its
17021 # output is simply discarded.  So we exec the FD to /dev/null,
17022 # effectively closing config.log, so it can be properly (re)opened and
17023 # appended to by config.status.  When coming back to configure, we
17024 # need to make the FD available again.
17025 if test "$no_create" != yes; then
17026   ac_cs_success=:
17027   ac_config_status_args=
17028   test "$silent" = yes &&
17029     ac_config_status_args="$ac_config_status_args --quiet"
17030   exec 5>/dev/null
17031   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17032   exec 5>>config.log
17033   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17034   # would make configure fail if this is the last instruction.
17035   $ac_cs_success || as_fn_exit 1
17036 fi
17037 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17038   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17039 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17040 fi
17041
17042
17043 if test "$no_create" = "yes"
17044 then
17045   exit 0
17046 fi
17047
17048 ac_save_IFS="$IFS"
17049 if test "x$wine_notices != "x; then
17050     echo >&6
17051     IFS="|"
17052     for msg in $wine_notices; do
17053         IFS="$ac_save_IFS"
17054         if test -n "$msg"; then
17055             { $as_echo "$as_me:${as_lineno-$LINENO}: $msg" >&5
17056 $as_echo "$as_me: $msg" >&6;}
17057         fi
17058     done
17059 fi
17060 IFS="|"
17061 for msg in $wine_warnings; do
17062     IFS="$ac_save_IFS"
17063     if test -n "$msg"; then
17064         echo >&2
17065         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $msg" >&5
17066 $as_echo "$as_me: WARNING: $msg" >&2;}
17067     fi
17068 done
17069 IFS="$ac_save_IFS"
17070
17071 echo "
17072 $as_me: Finished.  Do '${ac_make}' to compile Wine.
17073 " >&6
17074