crypt32: Free the encoded msg (Coverity).
[wine] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for Wine 1.5.21.
4 #
5 # Report bugs to <wine-devel@winehq.org>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138   # into an infinite loop, continuously re-executing ourselves.
139   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140     _as_can_reexec=no; export _as_can_reexec;
141     # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149   *v*x* | *x*v* ) as_opts=-vx ;;
150   *v* ) as_opts=-v ;;
151   *x* ) as_opts=-x ;;
152   * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159   fi
160   # We don't want this to propagate to other subprocesses.
161           { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164   emulate sh
165   NULLCMD=:
166   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167   # is contrary to our usage.  Disable this feature.
168   alias -g '\${1+\"\$@\"}'='\"\$@\"'
169   setopt NO_GLOB_SUBST
170 else
171   case \`(set -o) 2>/dev/null\` in #(
172   *posix*) :
173     set -o posix ;; #(
174   *) :
175      ;;
176 esac
177 fi
178 "
179   as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193   exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202   if (eval "$as_required") 2>/dev/null; then :
203   as_have_required=yes
204 else
205   as_have_required=no
206 fi
207   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209 else
210   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211 as_found=false
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 do
214   IFS=$as_save_IFS
215   test -z "$as_dir" && as_dir=.
216   as_found=:
217   case $as_dir in #(
218          /*)
219            for as_base in sh bash ksh sh5; do
220              # Try only shells that exist, to save several forks.
221              as_shell=$as_dir/$as_base
222              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224   CONFIG_SHELL=$as_shell as_have_required=yes
225                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226   break 2
227 fi
228 fi
229            done;;
230        esac
231   as_found=false
232 done
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235   CONFIG_SHELL=$SHELL as_have_required=yes
236 fi; }
237 IFS=$as_save_IFS
238
239
240       if test "x$CONFIG_SHELL" != x; then :
241   export CONFIG_SHELL
242              # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250   *v*x* | *x*v* ) as_opts=-vx ;;
251   *v* ) as_opts=-v ;;
252   *x* ) as_opts=-x ;;
253   * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
260 fi
261
262     if test x$as_have_required = xno; then :
263   $as_echo "$0: This script requires a shell more modern than all"
264   $as_echo "$0: the shells that I found on your system."
265   if test x${ZSH_VERSION+set} = xset ; then
266     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268   else
269     $as_echo "$0: Please tell bug-autoconf@gnu.org and
270 $0: wine-devel@winehq.org about your system, including any
271 $0: error possibly output before this message. Then install
272 $0: a modern shell, or manually run the script under such a
273 $0: shell if you do have one."
274   fi
275   exit 1
276 fi
277 fi
278 fi
279 SHELL=${CONFIG_SHELL-/bin/sh}
280 export SHELL
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE= GREP_OPTIONS=
283 unset CLICOLOR_FORCE GREP_OPTIONS
284
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
288 # as_fn_unset VAR
289 # ---------------
290 # Portably unset VAR.
291 as_fn_unset ()
292 {
293   { eval $1=; unset $1;}
294 }
295 as_unset=as_fn_unset
296
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
300 as_fn_set_status ()
301 {
302   return $1
303 } # as_fn_set_status
304
305 # as_fn_exit STATUS
306 # -----------------
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308 as_fn_exit ()
309 {
310   set +e
311   as_fn_set_status $1
312   exit $1
313 } # as_fn_exit
314
315 # as_fn_mkdir_p
316 # -------------
317 # Create "$as_dir" as a directory, including parents if necessary.
318 as_fn_mkdir_p ()
319 {
320
321   case $as_dir in #(
322   -*) as_dir=./$as_dir;;
323   esac
324   test -d "$as_dir" || eval $as_mkdir_p || {
325     as_dirs=
326     while :; do
327       case $as_dir in #(
328       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329       *) as_qdir=$as_dir;;
330       esac
331       as_dirs="'$as_qdir' $as_dirs"
332       as_dir=`$as_dirname -- "$as_dir" ||
333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334          X"$as_dir" : 'X\(//\)[^/]' \| \
335          X"$as_dir" : 'X\(//\)$' \| \
336          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337 $as_echo X"$as_dir" |
338     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339             s//\1/
340             q
341           }
342           /^X\(\/\/\)[^/].*/{
343             s//\1/
344             q
345           }
346           /^X\(\/\/\)$/{
347             s//\1/
348             q
349           }
350           /^X\(\/\).*/{
351             s//\1/
352             q
353           }
354           s/.*/./; q'`
355       test -d "$as_dir" && break
356     done
357     test -z "$as_dirs" || eval "mkdir $as_dirs"
358   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
359
360
361 } # as_fn_mkdir_p
362
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p ()
367 {
368   test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
370 # as_fn_append VAR VALUE
371 # ----------------------
372 # Append the text in VALUE to the end of the definition contained in VAR. Take
373 # advantage of any shell optimizations that allow amortized linear growth over
374 # repeated appends, instead of the typical quadratic growth present in naive
375 # implementations.
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377   eval 'as_fn_append ()
378   {
379     eval $1+=\$2
380   }'
381 else
382   as_fn_append ()
383   {
384     eval $1=\$$1\$2
385   }
386 fi # as_fn_append
387
388 # as_fn_arith ARG...
389 # ------------------
390 # Perform arithmetic evaluation on the ARGs, and store the result in the
391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
392 # must be portable across $(()) and expr.
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394   eval 'as_fn_arith ()
395   {
396     as_val=$(( $* ))
397   }'
398 else
399   as_fn_arith ()
400   {
401     as_val=`expr "$@" || test $? -eq 1`
402   }
403 fi # as_fn_arith
404
405
406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
407 # ----------------------------------------
408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410 # script with STATUS, using 1 if that was 0.
411 as_fn_error ()
412 {
413   as_status=$1; test $as_status -eq 0 && as_status=1
414   if test "$4"; then
415     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
417   fi
418   $as_echo "$as_me: error: $2" >&2
419   as_fn_exit $as_status
420 } # as_fn_error
421
422 if expr a : '\(a\)' >/dev/null 2>&1 &&
423    test "X`expr 00001 : '.*\(...\)'`" = X001; then
424   as_expr=expr
425 else
426   as_expr=false
427 fi
428
429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430   as_basename=basename
431 else
432   as_basename=false
433 fi
434
435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436   as_dirname=dirname
437 else
438   as_dirname=false
439 fi
440
441 as_me=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443          X"$0" : 'X\(//\)$' \| \
444          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445 $as_echo X/"$0" |
446     sed '/^.*\/\([^/][^/]*\)\/*$/{
447             s//\1/
448             q
449           }
450           /^X\/\(\/\/\)$/{
451             s//\1/
452             q
453           }
454           /^X\/\(\/\).*/{
455             s//\1/
456             q
457           }
458           s/.*/./; q'`
459
460 # Avoid depending upon Character Ranges.
461 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464 as_cr_digits='0123456789'
465 as_cr_alnum=$as_cr_Letters$as_cr_digits
466
467
468   as_lineno_1=$LINENO as_lineno_1a=$LINENO
469   as_lineno_2=$LINENO as_lineno_2a=$LINENO
470   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
473   sed -n '
474     p
475     /[$]LINENO/=
476   ' <$as_myself |
477     sed '
478       s/[$]LINENO.*/&-/
479       t lineno
480       b
481       :lineno
482       N
483       :loop
484       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485       t loop
486       s/-\n.*//
487     ' >$as_me.lineno &&
488   chmod +x "$as_me.lineno" ||
489     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
490
491   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492   # already done that, so ensure we don't try to do so again and fall
493   # in an infinite loop.  This has already happened in practice.
494   _as_can_reexec=no; export _as_can_reexec
495   # Don't try to exec as it changes $[0], causing all sort of problems
496   # (the dirname of $[0] is not the place where we might find the
497   # original and so on.  Autoconf is especially sensitive to this).
498   . "./$as_me.lineno"
499   # Exit status is that of the last command.
500   exit
501 }
502
503 ECHO_C= ECHO_N= ECHO_T=
504 case `echo -n x` in #(((((
505 -n*)
506   case `echo 'xy\c'` in
507   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
508   xy)  ECHO_C='\c';;
509   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
510        ECHO_T=' ';;
511   esac;;
512 *)
513   ECHO_N='-n';;
514 esac
515
516 rm -f conf$$ conf$$.exe conf$$.file
517 if test -d conf$$.dir; then
518   rm -f conf$$.dir/conf$$.file
519 else
520   rm -f conf$$.dir
521   mkdir conf$$.dir 2>/dev/null
522 fi
523 if (echo >conf$$.file) 2>/dev/null; then
524   if ln -s conf$$.file conf$$ 2>/dev/null; then
525     as_ln_s='ln -s'
526     # ... but there are two gotchas:
527     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529     # In both cases, we have to default to `cp -pR'.
530     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531       as_ln_s='cp -pR'
532   elif ln conf$$.file conf$$ 2>/dev/null; then
533     as_ln_s=ln
534   else
535     as_ln_s='cp -pR'
536   fi
537 else
538   as_ln_s='cp -pR'
539 fi
540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541 rmdir conf$$.dir 2>/dev/null
542
543 if mkdir -p . 2>/dev/null; then
544   as_mkdir_p='mkdir -p "$as_dir"'
545 else
546   test -d ./-p && rmdir ./-p
547   as_mkdir_p=false
548 fi
549
550 as_test_x='test -x'
551 as_executable_p=as_fn_executable_p
552
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
555
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
558
559
560 test -n "$DJDIR" || exec 7<&0 </dev/null
561 exec 6>&1
562
563 # Name of the host.
564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565 # so uname gets run too.
566 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
567
568 #
569 # Initializations.
570 #
571 ac_default_prefix=/usr/local
572 ac_clean_files=
573 ac_config_libobj_dir=.
574 LIBOBJS=
575 cross_compiling=no
576 subdirs=
577 MFLAGS=
578 MAKEFLAGS=
579
580 # Identity of this package.
581 PACKAGE_NAME='Wine'
582 PACKAGE_TARNAME='wine'
583 PACKAGE_VERSION='1.5.21'
584 PACKAGE_STRING='Wine 1.5.21'
585 PACKAGE_BUGREPORT='wine-devel@winehq.org'
586 PACKAGE_URL='http://www.winehq.org'
587
588 ac_unique_file="server/atom.c"
589 # Factoring default headers for most tests.
590 ac_includes_default="\
591 #include <stdio.h>
592 #ifdef HAVE_SYS_TYPES_H
593 # include <sys/types.h>
594 #endif
595 #ifdef HAVE_SYS_STAT_H
596 # include <sys/stat.h>
597 #endif
598 #ifdef STDC_HEADERS
599 # include <stdlib.h>
600 # include <stddef.h>
601 #else
602 # ifdef HAVE_STDLIB_H
603 #  include <stdlib.h>
604 # endif
605 #endif
606 #ifdef HAVE_STRING_H
607 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
608 #  include <memory.h>
609 # endif
610 # include <string.h>
611 #endif
612 #ifdef HAVE_STRINGS_H
613 # include <strings.h>
614 #endif
615 #ifdef HAVE_INTTYPES_H
616 # include <inttypes.h>
617 #endif
618 #ifdef HAVE_STDINT_H
619 # include <stdint.h>
620 #endif
621 #ifdef HAVE_UNISTD_H
622 # include <unistd.h>
623 #endif"
624
625 ac_subst_vars='LTLIBOBJS
626 LIBOBJS
627 PORCFLAGS
628 LINGUAS
629 ALL_TEST_RESOURCES
630 LDAPLIBS
631 LIBPOLL
632 LIBDL
633 EXTRA_BINARIES
634 MAIN_BINARY
635 SOCKETLIBS
636 CRTLIBS
637 TOOLSEXT
638 LDPATH
639 UNWINDFLAGS
640 BUILTINFLAG
641 EXTRACFLAGS
642 LIBKSTAT
643 LIBOPENAL
644 LIBMPG123
645 PNGINCL
646 FONTCONFIGINCL
647 CUPSINCL
648 OSS4INCL
649 ALSALIBS
650 GSTREAMER_INCL
651 GSTREAMER_LIBS
652 LIBGETTEXTPO
653 ZLIB
654 FREETYPEINCL
655 FREETYPELIBS
656 ft_devel
657 LCMSLIBS
658 RESOLVLIBS
659 GPHOTO2INCL
660 GPHOTO2LIBS
661 gphoto2port_devel
662 gphoto2_devel
663 SANEINCL
664 sane_devel
665 GNUTLSINCL
666 HALINCL
667 DBUSINCL
668 XSLTINCL
669 XML2INCL
670 XML2LIBS
671 X_EXTRA_LIBS
672 X_LIBS
673 X_PRE_LIBS
674 X_CFLAGS
675 XMKMF
676 LIBPTHREAD
677 CROSSTARGET
678 CROSSCC
679 CROSSTEST_DISABLE
680 PRELINK
681 CARBONLIB
682 QUICKTIMELIB
683 LIBOPENCL
684 FRAMEWORK_OPENAL
685 COREAUDIO
686 SECURITYLIB
687 DISKARBITRATIONLIB
688 LDEXECFLAGS
689 CORESERVICESLIB
690 APPLICATIONSERVICESLIB
691 IOKITLIB
692 COREFOUNDATIONLIB
693 DLLWRAP
694 DLLTOOL
695 ac_ct_READELF
696 READELF
697 LDD
698 LDRPATH_LOCAL
699 LDRPATH_INSTALL
700 IMPLIBEXT
701 LIBEXT
702 LDDLLFLAGS
703 LDSHARED
704 DLLFLAGS
705 DLLEXT
706 CPP
707 OPENGL_LIBS
708 XLIB
709 MAINTAINER_MODE
710 MSGFMT
711 ICOTOOL
712 CONVERT
713 RSVG
714 PKG_CONFIG
715 FONTFORGE
716 LINTFLAGS
717 LINT
718 INSTALL_DATA
719 INSTALL_SCRIPT
720 INSTALL_PROGRAM
721 LDCONFIG
722 EGREP
723 GREP
724 LN_S
725 RANLIB
726 ARFLAGS
727 ac_ct_AR
728 AR
729 BISON
730 FLEX
731 TOOLSDIR
732 WOW64_DISABLE
733 TARGETFLAGS
734 CPPBIN
735 ac_ct_CXX
736 CXXFLAGS
737 CXX
738 OBJEXT
739 EXEEXT
740 ac_ct_CC
741 CPPFLAGS
742 LDFLAGS
743 CFLAGS
744 CC
745 SET_MAKE
746 host_os
747 host_vendor
748 host_cpu
749 host
750 build_os
751 build_vendor
752 build_cpu
753 build
754 target_alias
755 host_alias
756 build_alias
757 LIBS
758 ECHO_T
759 ECHO_N
760 ECHO_C
761 DEFS
762 mandir
763 localedir
764 libdir
765 psdir
766 pdfdir
767 dvidir
768 htmldir
769 infodir
770 docdir
771 oldincludedir
772 includedir
773 localstatedir
774 sharedstatedir
775 sysconfdir
776 datadir
777 datarootdir
778 libexecdir
779 sbindir
780 bindir
781 program_transform_name
782 prefix
783 exec_prefix
784 PACKAGE_URL
785 PACKAGE_BUGREPORT
786 PACKAGE_STRING
787 PACKAGE_VERSION
788 PACKAGE_TARNAME
789 PACKAGE_NAME
790 PATH_SEPARATOR
791 SHELL'
792 ac_subst_files='MAKE_RULES
793 MAKE_TEST_RULES
794 MAKE_DLL_RULES
795 MAKE_IMPLIB_RULES
796 MAKE_PROG_RULES'
797 ac_user_opts='
798 enable_option_checking
799 enable_win16
800 enable_win64
801 enable_tests
802 enable_maintainer_mode
803 with_alsa
804 with_capi
805 with_cms
806 with_coreaudio
807 with_cups
808 with_curses
809 with_dbus
810 with_fontconfig
811 with_freetype
812 with_gettext
813 with_gettextpo
814 with_gphoto
815 with_glu
816 with_gnutls
817 with_gsm
818 with_gstreamer
819 with_hal
820 with_jpeg
821 with_ldap
822 with_mpg123
823 with_openal
824 with_opencl
825 with_opengl
826 with_openssl
827 with_osmesa
828 with_oss
829 with_png
830 with_pthread
831 with_sane
832 with_tiff
833 with_v4l
834 with_xcomposite
835 with_xcursor
836 with_xinerama
837 with_xinput
838 with_xinput2
839 with_xml
840 with_xrandr
841 with_xrender
842 with_xshape
843 with_xshm
844 with_xslt
845 with_xxf86vm
846 with_zlib
847 with_wine_tools
848 with_wine64
849 enable_largefile
850 with_x
851 '
852       ac_precious_vars='build_alias
853 host_alias
854 target_alias
855 CC
856 CFLAGS
857 LDFLAGS
858 LIBS
859 CPPFLAGS
860 CXX
861 CXXFLAGS
862 CCC
863 CPP
864 XMKMF'
865
866
867 # Initialize some variables set by options.
868 ac_init_help=
869 ac_init_version=false
870 ac_unrecognized_opts=
871 ac_unrecognized_sep=
872 # The variables have the same names as the options, with
873 # dashes changed to underlines.
874 cache_file=/dev/null
875 exec_prefix=NONE
876 no_create=
877 no_recursion=
878 prefix=NONE
879 program_prefix=NONE
880 program_suffix=NONE
881 program_transform_name=s,x,x,
882 silent=
883 site=
884 srcdir=
885 verbose=
886 x_includes=NONE
887 x_libraries=NONE
888
889 # Installation directory options.
890 # These are left unexpanded so users can "make install exec_prefix=/foo"
891 # and all the variables that are supposed to be based on exec_prefix
892 # by default will actually change.
893 # Use braces instead of parens because sh, perl, etc. also accept them.
894 # (The list follows the same order as the GNU Coding Standards.)
895 bindir='${exec_prefix}/bin'
896 sbindir='${exec_prefix}/sbin'
897 libexecdir='${exec_prefix}/libexec'
898 datarootdir='${prefix}/share'
899 datadir='${datarootdir}'
900 sysconfdir='${prefix}/etc'
901 sharedstatedir='${prefix}/com'
902 localstatedir='${prefix}/var'
903 includedir='${prefix}/include'
904 oldincludedir='/usr/include'
905 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
906 infodir='${datarootdir}/info'
907 htmldir='${docdir}'
908 dvidir='${docdir}'
909 pdfdir='${docdir}'
910 psdir='${docdir}'
911 libdir='${exec_prefix}/lib'
912 localedir='${datarootdir}/locale'
913 mandir='${datarootdir}/man'
914
915 ac_prev=
916 ac_dashdash=
917 for ac_option
918 do
919   # If the previous option needs an argument, assign it.
920   if test -n "$ac_prev"; then
921     eval $ac_prev=\$ac_option
922     ac_prev=
923     continue
924   fi
925
926   case $ac_option in
927   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
928   *=)   ac_optarg= ;;
929   *)    ac_optarg=yes ;;
930   esac
931
932   # Accept the important Cygnus configure options, so we can diagnose typos.
933
934   case $ac_dashdash$ac_option in
935   --)
936     ac_dashdash=yes ;;
937
938   -bindir | --bindir | --bindi | --bind | --bin | --bi)
939     ac_prev=bindir ;;
940   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
941     bindir=$ac_optarg ;;
942
943   -build | --build | --buil | --bui | --bu)
944     ac_prev=build_alias ;;
945   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
946     build_alias=$ac_optarg ;;
947
948   -cache-file | --cache-file | --cache-fil | --cache-fi \
949   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
950     ac_prev=cache_file ;;
951   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
952   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
953     cache_file=$ac_optarg ;;
954
955   --config-cache | -C)
956     cache_file=config.cache ;;
957
958   -datadir | --datadir | --datadi | --datad)
959     ac_prev=datadir ;;
960   -datadir=* | --datadir=* | --datadi=* | --datad=*)
961     datadir=$ac_optarg ;;
962
963   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
964   | --dataroo | --dataro | --datar)
965     ac_prev=datarootdir ;;
966   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
967   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
968     datarootdir=$ac_optarg ;;
969
970   -disable-* | --disable-*)
971     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
972     # Reject names that are not valid shell variable names.
973     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
974       as_fn_error $? "invalid feature name: $ac_useropt"
975     ac_useropt_orig=$ac_useropt
976     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
977     case $ac_user_opts in
978       *"
979 "enable_$ac_useropt"
980 "*) ;;
981       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
982          ac_unrecognized_sep=', ';;
983     esac
984     eval enable_$ac_useropt=no ;;
985
986   -docdir | --docdir | --docdi | --doc | --do)
987     ac_prev=docdir ;;
988   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
989     docdir=$ac_optarg ;;
990
991   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
992     ac_prev=dvidir ;;
993   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
994     dvidir=$ac_optarg ;;
995
996   -enable-* | --enable-*)
997     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
998     # Reject names that are not valid shell variable names.
999     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1000       as_fn_error $? "invalid feature name: $ac_useropt"
1001     ac_useropt_orig=$ac_useropt
1002     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1003     case $ac_user_opts in
1004       *"
1005 "enable_$ac_useropt"
1006 "*) ;;
1007       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1008          ac_unrecognized_sep=', ';;
1009     esac
1010     eval enable_$ac_useropt=\$ac_optarg ;;
1011
1012   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1013   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1014   | --exec | --exe | --ex)
1015     ac_prev=exec_prefix ;;
1016   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1017   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1018   | --exec=* | --exe=* | --ex=*)
1019     exec_prefix=$ac_optarg ;;
1020
1021   -gas | --gas | --ga | --g)
1022     # Obsolete; use --with-gas.
1023     with_gas=yes ;;
1024
1025   -help | --help | --hel | --he | -h)
1026     ac_init_help=long ;;
1027   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1028     ac_init_help=recursive ;;
1029   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1030     ac_init_help=short ;;
1031
1032   -host | --host | --hos | --ho)
1033     ac_prev=host_alias ;;
1034   -host=* | --host=* | --hos=* | --ho=*)
1035     host_alias=$ac_optarg ;;
1036
1037   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1038     ac_prev=htmldir ;;
1039   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1040   | --ht=*)
1041     htmldir=$ac_optarg ;;
1042
1043   -includedir | --includedir | --includedi | --included | --include \
1044   | --includ | --inclu | --incl | --inc)
1045     ac_prev=includedir ;;
1046   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1047   | --includ=* | --inclu=* | --incl=* | --inc=*)
1048     includedir=$ac_optarg ;;
1049
1050   -infodir | --infodir | --infodi | --infod | --info | --inf)
1051     ac_prev=infodir ;;
1052   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1053     infodir=$ac_optarg ;;
1054
1055   -libdir | --libdir | --libdi | --libd)
1056     ac_prev=libdir ;;
1057   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1058     libdir=$ac_optarg ;;
1059
1060   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1061   | --libexe | --libex | --libe)
1062     ac_prev=libexecdir ;;
1063   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1064   | --libexe=* | --libex=* | --libe=*)
1065     libexecdir=$ac_optarg ;;
1066
1067   -localedir | --localedir | --localedi | --localed | --locale)
1068     ac_prev=localedir ;;
1069   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1070     localedir=$ac_optarg ;;
1071
1072   -localstatedir | --localstatedir | --localstatedi | --localstated \
1073   | --localstate | --localstat | --localsta | --localst | --locals)
1074     ac_prev=localstatedir ;;
1075   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1076   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1077     localstatedir=$ac_optarg ;;
1078
1079   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1080     ac_prev=mandir ;;
1081   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1082     mandir=$ac_optarg ;;
1083
1084   -nfp | --nfp | --nf)
1085     # Obsolete; use --without-fp.
1086     with_fp=no ;;
1087
1088   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1089   | --no-cr | --no-c | -n)
1090     no_create=yes ;;
1091
1092   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1093   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1094     no_recursion=yes ;;
1095
1096   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1097   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1098   | --oldin | --oldi | --old | --ol | --o)
1099     ac_prev=oldincludedir ;;
1100   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1101   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1102   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1103     oldincludedir=$ac_optarg ;;
1104
1105   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1106     ac_prev=prefix ;;
1107   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1108     prefix=$ac_optarg ;;
1109
1110   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1111   | --program-pre | --program-pr | --program-p)
1112     ac_prev=program_prefix ;;
1113   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1114   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1115     program_prefix=$ac_optarg ;;
1116
1117   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1118   | --program-suf | --program-su | --program-s)
1119     ac_prev=program_suffix ;;
1120   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1121   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1122     program_suffix=$ac_optarg ;;
1123
1124   -program-transform-name | --program-transform-name \
1125   | --program-transform-nam | --program-transform-na \
1126   | --program-transform-n | --program-transform- \
1127   | --program-transform | --program-transfor \
1128   | --program-transfo | --program-transf \
1129   | --program-trans | --program-tran \
1130   | --progr-tra | --program-tr | --program-t)
1131     ac_prev=program_transform_name ;;
1132   -program-transform-name=* | --program-transform-name=* \
1133   | --program-transform-nam=* | --program-transform-na=* \
1134   | --program-transform-n=* | --program-transform-=* \
1135   | --program-transform=* | --program-transfor=* \
1136   | --program-transfo=* | --program-transf=* \
1137   | --program-trans=* | --program-tran=* \
1138   | --progr-tra=* | --program-tr=* | --program-t=*)
1139     program_transform_name=$ac_optarg ;;
1140
1141   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1142     ac_prev=pdfdir ;;
1143   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1144     pdfdir=$ac_optarg ;;
1145
1146   -psdir | --psdir | --psdi | --psd | --ps)
1147     ac_prev=psdir ;;
1148   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1149     psdir=$ac_optarg ;;
1150
1151   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1152   | -silent | --silent | --silen | --sile | --sil)
1153     silent=yes ;;
1154
1155   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1156     ac_prev=sbindir ;;
1157   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1158   | --sbi=* | --sb=*)
1159     sbindir=$ac_optarg ;;
1160
1161   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1162   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1163   | --sharedst | --shareds | --shared | --share | --shar \
1164   | --sha | --sh)
1165     ac_prev=sharedstatedir ;;
1166   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1167   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1168   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1169   | --sha=* | --sh=*)
1170     sharedstatedir=$ac_optarg ;;
1171
1172   -site | --site | --sit)
1173     ac_prev=site ;;
1174   -site=* | --site=* | --sit=*)
1175     site=$ac_optarg ;;
1176
1177   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1178     ac_prev=srcdir ;;
1179   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1180     srcdir=$ac_optarg ;;
1181
1182   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1183   | --syscon | --sysco | --sysc | --sys | --sy)
1184     ac_prev=sysconfdir ;;
1185   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1186   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1187     sysconfdir=$ac_optarg ;;
1188
1189   -target | --target | --targe | --targ | --tar | --ta | --t)
1190     ac_prev=target_alias ;;
1191   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1192     target_alias=$ac_optarg ;;
1193
1194   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1195     verbose=yes ;;
1196
1197   -version | --version | --versio | --versi | --vers | -V)
1198     ac_init_version=: ;;
1199
1200   -with-* | --with-*)
1201     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1202     # Reject names that are not valid shell variable names.
1203     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1204       as_fn_error $? "invalid package name: $ac_useropt"
1205     ac_useropt_orig=$ac_useropt
1206     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1207     case $ac_user_opts in
1208       *"
1209 "with_$ac_useropt"
1210 "*) ;;
1211       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1212          ac_unrecognized_sep=', ';;
1213     esac
1214     eval with_$ac_useropt=\$ac_optarg ;;
1215
1216   -without-* | --without-*)
1217     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1218     # Reject names that are not valid shell variable names.
1219     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1220       as_fn_error $? "invalid package name: $ac_useropt"
1221     ac_useropt_orig=$ac_useropt
1222     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1223     case $ac_user_opts in
1224       *"
1225 "with_$ac_useropt"
1226 "*) ;;
1227       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1228          ac_unrecognized_sep=', ';;
1229     esac
1230     eval with_$ac_useropt=no ;;
1231
1232   --x)
1233     # Obsolete; use --with-x.
1234     with_x=yes ;;
1235
1236   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1237   | --x-incl | --x-inc | --x-in | --x-i)
1238     ac_prev=x_includes ;;
1239   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1240   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1241     x_includes=$ac_optarg ;;
1242
1243   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1244   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1245     ac_prev=x_libraries ;;
1246   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1247   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1248     x_libraries=$ac_optarg ;;
1249
1250   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1251 Try \`$0 --help' for more information"
1252     ;;
1253
1254   *=*)
1255     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1256     # Reject names that are not valid shell variable names.
1257     case $ac_envvar in #(
1258       '' | [0-9]* | *[!_$as_cr_alnum]* )
1259       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1260     esac
1261     eval $ac_envvar=\$ac_optarg
1262     export $ac_envvar ;;
1263
1264   *)
1265     # FIXME: should be removed in autoconf 3.0.
1266     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1267     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1268       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1269     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1270     ;;
1271
1272   esac
1273 done
1274
1275 if test -n "$ac_prev"; then
1276   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1277   as_fn_error $? "missing argument to $ac_option"
1278 fi
1279
1280 if test -n "$ac_unrecognized_opts"; then
1281   case $enable_option_checking in
1282     no) ;;
1283     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1284     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1285   esac
1286 fi
1287
1288 # Check all directory arguments for consistency.
1289 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1290                 datadir sysconfdir sharedstatedir localstatedir includedir \
1291                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1292                 libdir localedir mandir
1293 do
1294   eval ac_val=\$$ac_var
1295   # Remove trailing slashes.
1296   case $ac_val in
1297     */ )
1298       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1299       eval $ac_var=\$ac_val;;
1300   esac
1301   # Be sure to have absolute directory names.
1302   case $ac_val in
1303     [\\/$]* | ?:[\\/]* )  continue;;
1304     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1305   esac
1306   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1307 done
1308
1309 # There might be people who depend on the old broken behavior: `$host'
1310 # used to hold the argument of --host etc.
1311 # FIXME: To remove some day.
1312 build=$build_alias
1313 host=$host_alias
1314 target=$target_alias
1315
1316 # FIXME: To remove some day.
1317 if test "x$host_alias" != x; then
1318   if test "x$build_alias" = x; then
1319     cross_compiling=maybe
1320   elif test "x$build_alias" != "x$host_alias"; then
1321     cross_compiling=yes
1322   fi
1323 fi
1324
1325 ac_tool_prefix=
1326 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1327
1328 test "$silent" = yes && exec 6>/dev/null
1329
1330
1331 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1332 ac_ls_di=`ls -di .` &&
1333 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1334   as_fn_error $? "working directory cannot be determined"
1335 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1336   as_fn_error $? "pwd does not report name of working directory"
1337
1338
1339 # Find the source files, if location was not specified.
1340 if test -z "$srcdir"; then
1341   ac_srcdir_defaulted=yes
1342   # Try the directory containing this script, then the parent directory.
1343   ac_confdir=`$as_dirname -- "$as_myself" ||
1344 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1345          X"$as_myself" : 'X\(//\)[^/]' \| \
1346          X"$as_myself" : 'X\(//\)$' \| \
1347          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1348 $as_echo X"$as_myself" |
1349     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1350             s//\1/
1351             q
1352           }
1353           /^X\(\/\/\)[^/].*/{
1354             s//\1/
1355             q
1356           }
1357           /^X\(\/\/\)$/{
1358             s//\1/
1359             q
1360           }
1361           /^X\(\/\).*/{
1362             s//\1/
1363             q
1364           }
1365           s/.*/./; q'`
1366   srcdir=$ac_confdir
1367   if test ! -r "$srcdir/$ac_unique_file"; then
1368     srcdir=..
1369   fi
1370 else
1371   ac_srcdir_defaulted=no
1372 fi
1373 if test ! -r "$srcdir/$ac_unique_file"; then
1374   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1375   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1376 fi
1377 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1378 ac_abs_confdir=`(
1379         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1380         pwd)`
1381 # When building in place, set srcdir=.
1382 if test "$ac_abs_confdir" = "$ac_pwd"; then
1383   srcdir=.
1384 fi
1385 # Remove unnecessary trailing slashes from srcdir.
1386 # Double slashes in file names in object file debugging info
1387 # mess up M-x gdb in Emacs.
1388 case $srcdir in
1389 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1390 esac
1391 for ac_var in $ac_precious_vars; do
1392   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1393   eval ac_env_${ac_var}_value=\$${ac_var}
1394   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1395   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1396 done
1397
1398 #
1399 # Report the --help message.
1400 #
1401 if test "$ac_init_help" = "long"; then
1402   # Omit some internal or obsolete options to make the list less imposing.
1403   # This message is too long to be a string in the A/UX 3.1 sh.
1404   cat <<_ACEOF
1405 \`configure' configures Wine 1.5.21 to adapt to many kinds of systems.
1406
1407 Usage: $0 [OPTION]... [VAR=VALUE]...
1408
1409 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1410 VAR=VALUE.  See below for descriptions of some of the useful variables.
1411
1412 Defaults for the options are specified in brackets.
1413
1414 Configuration:
1415   -h, --help              display this help and exit
1416       --help=short        display options specific to this package
1417       --help=recursive    display the short help of all the included packages
1418   -V, --version           display version information and exit
1419   -q, --quiet, --silent   do not print \`checking ...' messages
1420       --cache-file=FILE   cache test results in FILE [disabled]
1421   -C, --config-cache      alias for \`--cache-file=config.cache'
1422   -n, --no-create         do not create output files
1423       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1424
1425 Installation directories:
1426   --prefix=PREFIX         install architecture-independent files in PREFIX
1427                           [$ac_default_prefix]
1428   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1429                           [PREFIX]
1430
1431 By default, \`make install' will install all the files in
1432 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1433 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1434 for instance \`--prefix=\$HOME'.
1435
1436 For better control, use the options below.
1437
1438 Fine tuning of the installation directories:
1439   --bindir=DIR            user executables [EPREFIX/bin]
1440   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1441   --libexecdir=DIR        program executables [EPREFIX/libexec]
1442   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1443   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1444   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1445   --libdir=DIR            object code libraries [EPREFIX/lib]
1446   --includedir=DIR        C header files [PREFIX/include]
1447   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1448   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1449   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1450   --infodir=DIR           info documentation [DATAROOTDIR/info]
1451   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1452   --mandir=DIR            man documentation [DATAROOTDIR/man]
1453   --docdir=DIR            documentation root [DATAROOTDIR/doc/wine]
1454   --htmldir=DIR           html documentation [DOCDIR]
1455   --dvidir=DIR            dvi documentation [DOCDIR]
1456   --pdfdir=DIR            pdf documentation [DOCDIR]
1457   --psdir=DIR             ps documentation [DOCDIR]
1458 _ACEOF
1459
1460   cat <<\_ACEOF
1461
1462 X features:
1463   --x-includes=DIR    X include files are in DIR
1464   --x-libraries=DIR   X library files are in DIR
1465
1466 System types:
1467   --build=BUILD     configure for building on BUILD [guessed]
1468   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1469 _ACEOF
1470 fi
1471
1472 if test -n "$ac_init_help"; then
1473   case $ac_init_help in
1474      short | recursive ) echo "Configuration of Wine 1.5.21:";;
1475    esac
1476   cat <<\_ACEOF
1477
1478 Optional Features:
1479   --disable-option-checking  ignore unrecognized --enable/--with options
1480   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1481   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1482   --disable-win16         do not include Win16 support
1483   --enable-win64          build a Win64 emulator on AMD64 (won't run Win32
1484                           binaries)
1485   --disable-tests         do not build the regression tests
1486   --enable-maintainer-mode
1487                           enable maintainer-specific build rules
1488   --disable-largefile     omit support for large files
1489
1490 Optional Packages:
1491   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1492   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1493   --without-alsa          do not use the Alsa sound support
1494   --without-capi          do not use CAPI (ISDN support)
1495   --without-cms           do not use CMS (color management support)
1496   --without-coreaudio     do not use the CoreAudio sound support
1497   --without-cups          do not use CUPS
1498   --without-curses        do not use (n)curses
1499   --without-dbus          do not use DBus (dynamic device support)
1500   --without-fontconfig    do not use fontconfig
1501   --without-freetype      do not use the FreeType library
1502   --without-gettext       do not use gettext
1503   --with-gettextpo        use the GetTextPO library to rebuild po files
1504   --without-gphoto        do not use gphoto (Digital Camera support)
1505   --without-glu           do not use the GLU library
1506   --without-gnutls        do not use GnuTLS (schannel support)
1507   --without-gsm           do not use libgsm (GSM 06.10 codec support)
1508   --without-gstreamer     do not use GStreamer (codecs support)
1509   --without-hal           do not use HAL (dynamic device support)
1510   --without-jpeg          do not use JPEG
1511   --without-ldap          do not use LDAP
1512   --without-mpg123        do not use the mpg123 library
1513   --without-openal        do not use OpenAL
1514   --without-opencl        do not use OpenCL
1515   --without-opengl        do not use OpenGL
1516   --without-openssl       do not use OpenSSL
1517   --without-osmesa        do not use the OSMesa library
1518   --without-oss           do not use the OSS sound support
1519   --without-png           do not use PNG
1520   --without-pthread       do not use the pthread library
1521   --without-sane          do not use SANE (scanner support)
1522   --without-tiff          do not use TIFF
1523   --without-v4l           do not use v4l1 (v4l support)
1524   --without-xcomposite    do not use the Xcomposite extension
1525   --without-xcursor       do not use the Xcursor extension
1526   --without-xinerama      do not use Xinerama (multi-monitor support)
1527   --without-xinput        do not use the Xinput extension
1528   --without-xinput2       do not use the Xinput 2 extension
1529   --without-xml           do not use XML
1530   --without-xrandr        do not use Xrandr (resolution changes)
1531   --without-xrender       do not use the Xrender extension
1532   --without-xshape        do not use the Xshape extension
1533   --without-xshm          do not use XShm (shared memory extension)
1534   --without-xslt          do not use XSLT
1535   --without-xxf86vm       do not use XFree video mode extension
1536   --without-zlib          do not use Zlib (data compression)
1537   --with-wine-tools=DIR   use Wine tools from directory DIR
1538   --with-wine64=DIR       use the 64-bit Wine in DIR for a Wow64 build
1539   --with-x                use the X Window System
1540
1541 Some influential environment variables:
1542   CC          C compiler command
1543   CFLAGS      C compiler flags
1544   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1545               nonstandard directory <lib dir>
1546   LIBS        libraries to pass to the linker, e.g. -l<library>
1547   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1548               you have headers in a nonstandard directory <include dir>
1549   CXX         C++ compiler command
1550   CXXFLAGS    C++ compiler flags
1551   CPP         C preprocessor
1552   XMKMF       Path to xmkmf, Makefile generator for X Window System
1553
1554 Use these variables to override the choices made by `configure' or to help
1555 it to find libraries and programs with nonstandard names/locations.
1556
1557 Report bugs to <wine-devel@winehq.org>.
1558 Wine home page: <http://www.winehq.org>.
1559 _ACEOF
1560 ac_status=$?
1561 fi
1562
1563 if test "$ac_init_help" = "recursive"; then
1564   # If there are subdirs, report their specific --help.
1565   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1566     test -d "$ac_dir" ||
1567       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1568       continue
1569     ac_builddir=.
1570
1571 case "$ac_dir" in
1572 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1573 *)
1574   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1575   # A ".." for each directory in $ac_dir_suffix.
1576   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1577   case $ac_top_builddir_sub in
1578   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1579   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1580   esac ;;
1581 esac
1582 ac_abs_top_builddir=$ac_pwd
1583 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1584 # for backward compatibility:
1585 ac_top_builddir=$ac_top_build_prefix
1586
1587 case $srcdir in
1588   .)  # We are building in place.
1589     ac_srcdir=.
1590     ac_top_srcdir=$ac_top_builddir_sub
1591     ac_abs_top_srcdir=$ac_pwd ;;
1592   [\\/]* | ?:[\\/]* )  # Absolute name.
1593     ac_srcdir=$srcdir$ac_dir_suffix;
1594     ac_top_srcdir=$srcdir
1595     ac_abs_top_srcdir=$srcdir ;;
1596   *) # Relative name.
1597     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1598     ac_top_srcdir=$ac_top_build_prefix$srcdir
1599     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1600 esac
1601 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1602
1603     cd "$ac_dir" || { ac_status=$?; continue; }
1604     # Check for guested configure.
1605     if test -f "$ac_srcdir/configure.gnu"; then
1606       echo &&
1607       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1608     elif test -f "$ac_srcdir/configure"; then
1609       echo &&
1610       $SHELL "$ac_srcdir/configure" --help=recursive
1611     else
1612       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1613     fi || ac_status=$?
1614     cd "$ac_pwd" || { ac_status=$?; break; }
1615   done
1616 fi
1617
1618 test -n "$ac_init_help" && exit $ac_status
1619 if $ac_init_version; then
1620   cat <<\_ACEOF
1621 Wine configure 1.5.21
1622 generated by GNU Autoconf 2.69
1623
1624 Copyright (C) 2012 Free Software Foundation, Inc.
1625 This configure script is free software; the Free Software Foundation
1626 gives unlimited permission to copy, distribute and modify it.
1627 _ACEOF
1628   exit
1629 fi
1630
1631 ## ------------------------ ##
1632 ## Autoconf initialization. ##
1633 ## ------------------------ ##
1634
1635 # ac_fn_c_try_compile LINENO
1636 # --------------------------
1637 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1638 ac_fn_c_try_compile ()
1639 {
1640   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1641   rm -f conftest.$ac_objext
1642   if { { ac_try="$ac_compile"
1643 case "(($ac_try" in
1644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1645   *) ac_try_echo=$ac_try;;
1646 esac
1647 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1648 $as_echo "$ac_try_echo"; } >&5
1649   (eval "$ac_compile") 2>conftest.err
1650   ac_status=$?
1651   if test -s conftest.err; then
1652     grep -v '^ *+' conftest.err >conftest.er1
1653     cat conftest.er1 >&5
1654     mv -f conftest.er1 conftest.err
1655   fi
1656   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1657   test $ac_status = 0; } && {
1658          test -z "$ac_c_werror_flag" ||
1659          test ! -s conftest.err
1660        } && test -s conftest.$ac_objext; then :
1661   ac_retval=0
1662 else
1663   $as_echo "$as_me: failed program was:" >&5
1664 sed 's/^/| /' conftest.$ac_ext >&5
1665
1666         ac_retval=1
1667 fi
1668   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1669   as_fn_set_status $ac_retval
1670
1671 } # ac_fn_c_try_compile
1672
1673 # ac_fn_cxx_try_compile LINENO
1674 # ----------------------------
1675 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1676 ac_fn_cxx_try_compile ()
1677 {
1678   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1679   rm -f conftest.$ac_objext
1680   if { { ac_try="$ac_compile"
1681 case "(($ac_try" in
1682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1683   *) ac_try_echo=$ac_try;;
1684 esac
1685 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1686 $as_echo "$ac_try_echo"; } >&5
1687   (eval "$ac_compile") 2>conftest.err
1688   ac_status=$?
1689   if test -s conftest.err; then
1690     grep -v '^ *+' conftest.err >conftest.er1
1691     cat conftest.er1 >&5
1692     mv -f conftest.er1 conftest.err
1693   fi
1694   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1695   test $ac_status = 0; } && {
1696          test -z "$ac_cxx_werror_flag" ||
1697          test ! -s conftest.err
1698        } && test -s conftest.$ac_objext; then :
1699   ac_retval=0
1700 else
1701   $as_echo "$as_me: failed program was:" >&5
1702 sed 's/^/| /' conftest.$ac_ext >&5
1703
1704         ac_retval=1
1705 fi
1706   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1707   as_fn_set_status $ac_retval
1708
1709 } # ac_fn_cxx_try_compile
1710
1711 # ac_fn_c_try_link LINENO
1712 # -----------------------
1713 # Try to link conftest.$ac_ext, and return whether this succeeded.
1714 ac_fn_c_try_link ()
1715 {
1716   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1717   rm -f conftest.$ac_objext conftest$ac_exeext
1718   if { { ac_try="$ac_link"
1719 case "(($ac_try" in
1720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1721   *) ac_try_echo=$ac_try;;
1722 esac
1723 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1724 $as_echo "$ac_try_echo"; } >&5
1725   (eval "$ac_link") 2>conftest.err
1726   ac_status=$?
1727   if test -s conftest.err; then
1728     grep -v '^ *+' conftest.err >conftest.er1
1729     cat conftest.er1 >&5
1730     mv -f conftest.er1 conftest.err
1731   fi
1732   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1733   test $ac_status = 0; } && {
1734          test -z "$ac_c_werror_flag" ||
1735          test ! -s conftest.err
1736        } && test -s conftest$ac_exeext && {
1737          test "$cross_compiling" = yes ||
1738          test -x conftest$ac_exeext
1739        }; then :
1740   ac_retval=0
1741 else
1742   $as_echo "$as_me: failed program was:" >&5
1743 sed 's/^/| /' conftest.$ac_ext >&5
1744
1745         ac_retval=1
1746 fi
1747   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1748   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1749   # interfere with the next link command; also delete a directory that is
1750   # left behind by Apple's compiler.  We do this before executing the actions.
1751   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1752   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1753   as_fn_set_status $ac_retval
1754
1755 } # ac_fn_c_try_link
1756
1757 # ac_fn_c_try_cpp LINENO
1758 # ----------------------
1759 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1760 ac_fn_c_try_cpp ()
1761 {
1762   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1763   if { { ac_try="$ac_cpp conftest.$ac_ext"
1764 case "(($ac_try" in
1765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1766   *) ac_try_echo=$ac_try;;
1767 esac
1768 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1769 $as_echo "$ac_try_echo"; } >&5
1770   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1771   ac_status=$?
1772   if test -s conftest.err; then
1773     grep -v '^ *+' conftest.err >conftest.er1
1774     cat conftest.er1 >&5
1775     mv -f conftest.er1 conftest.err
1776   fi
1777   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1778   test $ac_status = 0; } > conftest.i && {
1779          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1780          test ! -s conftest.err
1781        }; then :
1782   ac_retval=0
1783 else
1784   $as_echo "$as_me: failed program was:" >&5
1785 sed 's/^/| /' conftest.$ac_ext >&5
1786
1787     ac_retval=1
1788 fi
1789   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1790   as_fn_set_status $ac_retval
1791
1792 } # ac_fn_c_try_cpp
1793
1794 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1795 # -------------------------------------------------------
1796 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1797 # the include files in INCLUDES and setting the cache variable VAR
1798 # accordingly.
1799 ac_fn_c_check_header_mongrel ()
1800 {
1801   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1802   if eval \${$3+:} false; then :
1803   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1804 $as_echo_n "checking for $2... " >&6; }
1805 if eval \${$3+:} false; then :
1806   $as_echo_n "(cached) " >&6
1807 fi
1808 eval ac_res=\$$3
1809                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1810 $as_echo "$ac_res" >&6; }
1811 else
1812   # Is the header compilable?
1813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1814 $as_echo_n "checking $2 usability... " >&6; }
1815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1816 /* end confdefs.h.  */
1817 $4
1818 #include <$2>
1819 _ACEOF
1820 if ac_fn_c_try_compile "$LINENO"; then :
1821   ac_header_compiler=yes
1822 else
1823   ac_header_compiler=no
1824 fi
1825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1827 $as_echo "$ac_header_compiler" >&6; }
1828
1829 # Is the header present?
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1831 $as_echo_n "checking $2 presence... " >&6; }
1832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1833 /* end confdefs.h.  */
1834 #include <$2>
1835 _ACEOF
1836 if ac_fn_c_try_cpp "$LINENO"; then :
1837   ac_header_preproc=yes
1838 else
1839   ac_header_preproc=no
1840 fi
1841 rm -f conftest.err conftest.i conftest.$ac_ext
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1843 $as_echo "$ac_header_preproc" >&6; }
1844
1845 # So?  What about this header?
1846 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1847   yes:no: )
1848     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1849 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1850     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1851 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1852     ;;
1853   no:yes:* )
1854     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1855 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1856     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1857 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1858     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1859 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1860     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1861 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1862     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1863 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1864 ( $as_echo "## ------------------------------------ ##
1865 ## Report this to wine-devel@winehq.org ##
1866 ## ------------------------------------ ##"
1867      ) | sed "s/^/$as_me: WARNING:     /" >&2
1868     ;;
1869 esac
1870   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1871 $as_echo_n "checking for $2... " >&6; }
1872 if eval \${$3+:} false; then :
1873   $as_echo_n "(cached) " >&6
1874 else
1875   eval "$3=\$ac_header_compiler"
1876 fi
1877 eval ac_res=\$$3
1878                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1879 $as_echo "$ac_res" >&6; }
1880 fi
1881   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1882
1883 } # ac_fn_c_check_header_mongrel
1884
1885 # ac_fn_c_try_run LINENO
1886 # ----------------------
1887 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1888 # that executables *can* be run.
1889 ac_fn_c_try_run ()
1890 {
1891   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1892   if { { ac_try="$ac_link"
1893 case "(($ac_try" in
1894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1895   *) ac_try_echo=$ac_try;;
1896 esac
1897 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1898 $as_echo "$ac_try_echo"; } >&5
1899   (eval "$ac_link") 2>&5
1900   ac_status=$?
1901   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1902   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1903   { { case "(($ac_try" in
1904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1905   *) ac_try_echo=$ac_try;;
1906 esac
1907 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1908 $as_echo "$ac_try_echo"; } >&5
1909   (eval "$ac_try") 2>&5
1910   ac_status=$?
1911   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1912   test $ac_status = 0; }; }; then :
1913   ac_retval=0
1914 else
1915   $as_echo "$as_me: program exited with status $ac_status" >&5
1916        $as_echo "$as_me: failed program was:" >&5
1917 sed 's/^/| /' conftest.$ac_ext >&5
1918
1919        ac_retval=$ac_status
1920 fi
1921   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1922   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1923   as_fn_set_status $ac_retval
1924
1925 } # ac_fn_c_try_run
1926
1927 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1928 # -------------------------------------------------------
1929 # Tests whether HEADER exists and can be compiled using the include files in
1930 # INCLUDES, setting the cache variable VAR accordingly.
1931 ac_fn_c_check_header_compile ()
1932 {
1933   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1934   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1935 $as_echo_n "checking for $2... " >&6; }
1936 if eval \${$3+:} false; then :
1937   $as_echo_n "(cached) " >&6
1938 else
1939   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1940 /* end confdefs.h.  */
1941 $4
1942 #include <$2>
1943 _ACEOF
1944 if ac_fn_c_try_compile "$LINENO"; then :
1945   eval "$3=yes"
1946 else
1947   eval "$3=no"
1948 fi
1949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1950 fi
1951 eval ac_res=\$$3
1952                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1953 $as_echo "$ac_res" >&6; }
1954   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1955
1956 } # ac_fn_c_check_header_compile
1957
1958 # ac_fn_c_check_func LINENO FUNC VAR
1959 # ----------------------------------
1960 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1961 ac_fn_c_check_func ()
1962 {
1963   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1964   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1965 $as_echo_n "checking for $2... " >&6; }
1966 if eval \${$3+:} false; then :
1967   $as_echo_n "(cached) " >&6
1968 else
1969   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1970 /* end confdefs.h.  */
1971 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1972    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1973 #define $2 innocuous_$2
1974
1975 /* System header to define __stub macros and hopefully few prototypes,
1976     which can conflict with char $2 (); below.
1977     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1978     <limits.h> exists even on freestanding compilers.  */
1979
1980 #ifdef __STDC__
1981 # include <limits.h>
1982 #else
1983 # include <assert.h>
1984 #endif
1985
1986 #undef $2
1987
1988 /* Override any GCC internal prototype to avoid an error.
1989    Use char because int might match the return type of a GCC
1990    builtin and then its argument prototype would still apply.  */
1991 #ifdef __cplusplus
1992 extern "C"
1993 #endif
1994 char $2 ();
1995 /* The GNU C library defines this for functions which it implements
1996     to always fail with ENOSYS.  Some functions are actually named
1997     something starting with __ and the normal name is an alias.  */
1998 #if defined __stub_$2 || defined __stub___$2
1999 choke me
2000 #endif
2001
2002 int
2003 main ()
2004 {
2005 return $2 ();
2006   ;
2007   return 0;
2008 }
2009 _ACEOF
2010 if ac_fn_c_try_link "$LINENO"; then :
2011   eval "$3=yes"
2012 else
2013   eval "$3=no"
2014 fi
2015 rm -f core conftest.err conftest.$ac_objext \
2016     conftest$ac_exeext conftest.$ac_ext
2017 fi
2018 eval ac_res=\$$3
2019                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2020 $as_echo "$ac_res" >&6; }
2021   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2022
2023 } # ac_fn_c_check_func
2024
2025 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2026 # ----------------------------------------------------
2027 # Tries to find if the field MEMBER exists in type AGGR, after including
2028 # INCLUDES, setting cache variable VAR accordingly.
2029 ac_fn_c_check_member ()
2030 {
2031   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2032   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2033 $as_echo_n "checking for $2.$3... " >&6; }
2034 if eval \${$4+:} false; then :
2035   $as_echo_n "(cached) " >&6
2036 else
2037   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2038 /* end confdefs.h.  */
2039 $5
2040 int
2041 main ()
2042 {
2043 static $2 ac_aggr;
2044 if (ac_aggr.$3)
2045 return 0;
2046   ;
2047   return 0;
2048 }
2049 _ACEOF
2050 if ac_fn_c_try_compile "$LINENO"; then :
2051   eval "$4=yes"
2052 else
2053   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2054 /* end confdefs.h.  */
2055 $5
2056 int
2057 main ()
2058 {
2059 static $2 ac_aggr;
2060 if (sizeof ac_aggr.$3)
2061 return 0;
2062   ;
2063   return 0;
2064 }
2065 _ACEOF
2066 if ac_fn_c_try_compile "$LINENO"; then :
2067   eval "$4=yes"
2068 else
2069   eval "$4=no"
2070 fi
2071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2072 fi
2073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2074 fi
2075 eval ac_res=\$$4
2076                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2077 $as_echo "$ac_res" >&6; }
2078   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2079
2080 } # ac_fn_c_check_member
2081
2082 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2083 # -------------------------------------------
2084 # Tests whether TYPE exists after having included INCLUDES, setting cache
2085 # variable VAR accordingly.
2086 ac_fn_c_check_type ()
2087 {
2088   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2089   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2090 $as_echo_n "checking for $2... " >&6; }
2091 if eval \${$3+:} false; then :
2092   $as_echo_n "(cached) " >&6
2093 else
2094   eval "$3=no"
2095   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2096 /* end confdefs.h.  */
2097 $4
2098 int
2099 main ()
2100 {
2101 if (sizeof ($2))
2102          return 0;
2103   ;
2104   return 0;
2105 }
2106 _ACEOF
2107 if ac_fn_c_try_compile "$LINENO"; then :
2108   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2109 /* end confdefs.h.  */
2110 $4
2111 int
2112 main ()
2113 {
2114 if (sizeof (($2)))
2115             return 0;
2116   ;
2117   return 0;
2118 }
2119 _ACEOF
2120 if ac_fn_c_try_compile "$LINENO"; then :
2121
2122 else
2123   eval "$3=yes"
2124 fi
2125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2126 fi
2127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2128 fi
2129 eval ac_res=\$$3
2130                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2131 $as_echo "$ac_res" >&6; }
2132   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2133
2134 } # ac_fn_c_check_type
2135 cat >config.log <<_ACEOF
2136 This file contains any messages produced by compilers while
2137 running configure, to aid debugging if configure makes a mistake.
2138
2139 It was created by Wine $as_me 1.5.21, which was
2140 generated by GNU Autoconf 2.69.  Invocation command line was
2141
2142   $ $0 $@
2143
2144 _ACEOF
2145 exec 5>>config.log
2146 {
2147 cat <<_ASUNAME
2148 ## --------- ##
2149 ## Platform. ##
2150 ## --------- ##
2151
2152 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2153 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2154 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2155 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2156 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2157
2158 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2159 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2160
2161 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2162 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2163 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2164 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2165 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2166 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2167 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2168
2169 _ASUNAME
2170
2171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2172 for as_dir in $PATH
2173 do
2174   IFS=$as_save_IFS
2175   test -z "$as_dir" && as_dir=.
2176     $as_echo "PATH: $as_dir"
2177   done
2178 IFS=$as_save_IFS
2179
2180 } >&5
2181
2182 cat >&5 <<_ACEOF
2183
2184
2185 ## ----------- ##
2186 ## Core tests. ##
2187 ## ----------- ##
2188
2189 _ACEOF
2190
2191
2192 # Keep a trace of the command line.
2193 # Strip out --no-create and --no-recursion so they do not pile up.
2194 # Strip out --silent because we don't want to record it for future runs.
2195 # Also quote any args containing shell meta-characters.
2196 # Make two passes to allow for proper duplicate-argument suppression.
2197 ac_configure_args=
2198 ac_configure_args0=
2199 ac_configure_args1=
2200 ac_must_keep_next=false
2201 for ac_pass in 1 2
2202 do
2203   for ac_arg
2204   do
2205     case $ac_arg in
2206     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2207     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2208     | -silent | --silent | --silen | --sile | --sil)
2209       continue ;;
2210     *\'*)
2211       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2212     esac
2213     case $ac_pass in
2214     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2215     2)
2216       as_fn_append ac_configure_args1 " '$ac_arg'"
2217       if test $ac_must_keep_next = true; then
2218         ac_must_keep_next=false # Got value, back to normal.
2219       else
2220         case $ac_arg in
2221           *=* | --config-cache | -C | -disable-* | --disable-* \
2222           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2223           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2224           | -with-* | --with-* | -without-* | --without-* | --x)
2225             case "$ac_configure_args0 " in
2226               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2227             esac
2228             ;;
2229           -* ) ac_must_keep_next=true ;;
2230         esac
2231       fi
2232       as_fn_append ac_configure_args " '$ac_arg'"
2233       ;;
2234     esac
2235   done
2236 done
2237 { ac_configure_args0=; unset ac_configure_args0;}
2238 { ac_configure_args1=; unset ac_configure_args1;}
2239
2240 # When interrupted or exit'd, cleanup temporary files, and complete
2241 # config.log.  We remove comments because anyway the quotes in there
2242 # would cause problems or look ugly.
2243 # WARNING: Use '\'' to represent an apostrophe within the trap.
2244 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2245 trap 'exit_status=$?
2246   # Save into config.log some information that might help in debugging.
2247   {
2248     echo
2249
2250     $as_echo "## ---------------- ##
2251 ## Cache variables. ##
2252 ## ---------------- ##"
2253     echo
2254     # The following way of writing the cache mishandles newlines in values,
2255 (
2256   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2257     eval ac_val=\$$ac_var
2258     case $ac_val in #(
2259     *${as_nl}*)
2260       case $ac_var in #(
2261       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2262 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2263       esac
2264       case $ac_var in #(
2265       _ | IFS | as_nl) ;; #(
2266       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2267       *) { eval $ac_var=; unset $ac_var;} ;;
2268       esac ;;
2269     esac
2270   done
2271   (set) 2>&1 |
2272     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2273     *${as_nl}ac_space=\ *)
2274       sed -n \
2275         "s/'\''/'\''\\\\'\'''\''/g;
2276           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2277       ;; #(
2278     *)
2279       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2280       ;;
2281     esac |
2282     sort
2283 )
2284     echo
2285
2286     $as_echo "## ----------------- ##
2287 ## Output variables. ##
2288 ## ----------------- ##"
2289     echo
2290     for ac_var in $ac_subst_vars
2291     do
2292       eval ac_val=\$$ac_var
2293       case $ac_val in
2294       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2295       esac
2296       $as_echo "$ac_var='\''$ac_val'\''"
2297     done | sort
2298     echo
2299
2300     if test -n "$ac_subst_files"; then
2301       $as_echo "## ------------------- ##
2302 ## File substitutions. ##
2303 ## ------------------- ##"
2304       echo
2305       for ac_var in $ac_subst_files
2306       do
2307         eval ac_val=\$$ac_var
2308         case $ac_val in
2309         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2310         esac
2311         $as_echo "$ac_var='\''$ac_val'\''"
2312       done | sort
2313       echo
2314     fi
2315
2316     if test -s confdefs.h; then
2317       $as_echo "## ----------- ##
2318 ## confdefs.h. ##
2319 ## ----------- ##"
2320       echo
2321       cat confdefs.h
2322       echo
2323     fi
2324     test "$ac_signal" != 0 &&
2325       $as_echo "$as_me: caught signal $ac_signal"
2326     $as_echo "$as_me: exit $exit_status"
2327   } >&5
2328   rm -f core *.core core.conftest.* &&
2329     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2330     exit $exit_status
2331 ' 0
2332 for ac_signal in 1 2 13 15; do
2333   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2334 done
2335 ac_signal=0
2336
2337 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2338 rm -f -r conftest* confdefs.h
2339
2340 $as_echo "/* confdefs.h */" > confdefs.h
2341
2342 # Predefined preprocessor variables.
2343
2344 cat >>confdefs.h <<_ACEOF
2345 #define PACKAGE_NAME "$PACKAGE_NAME"
2346 _ACEOF
2347
2348 cat >>confdefs.h <<_ACEOF
2349 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2350 _ACEOF
2351
2352 cat >>confdefs.h <<_ACEOF
2353 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2354 _ACEOF
2355
2356 cat >>confdefs.h <<_ACEOF
2357 #define PACKAGE_STRING "$PACKAGE_STRING"
2358 _ACEOF
2359
2360 cat >>confdefs.h <<_ACEOF
2361 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2362 _ACEOF
2363
2364 cat >>confdefs.h <<_ACEOF
2365 #define PACKAGE_URL "$PACKAGE_URL"
2366 _ACEOF
2367
2368
2369 # Let the site file select an alternate cache file if it wants to.
2370 # Prefer an explicitly selected file to automatically selected ones.
2371 ac_site_file1=NONE
2372 ac_site_file2=NONE
2373 if test -n "$CONFIG_SITE"; then
2374   # We do not want a PATH search for config.site.
2375   case $CONFIG_SITE in #((
2376     -*)  ac_site_file1=./$CONFIG_SITE;;
2377     */*) ac_site_file1=$CONFIG_SITE;;
2378     *)   ac_site_file1=./$CONFIG_SITE;;
2379   esac
2380 elif test "x$prefix" != xNONE; then
2381   ac_site_file1=$prefix/share/config.site
2382   ac_site_file2=$prefix/etc/config.site
2383 else
2384   ac_site_file1=$ac_default_prefix/share/config.site
2385   ac_site_file2=$ac_default_prefix/etc/config.site
2386 fi
2387 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2388 do
2389   test "x$ac_site_file" = xNONE && continue
2390   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2391     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2392 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2393     sed 's/^/| /' "$ac_site_file" >&5
2394     . "$ac_site_file" \
2395       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2396 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2397 as_fn_error $? "failed to load site script $ac_site_file
2398 See \`config.log' for more details" "$LINENO" 5; }
2399   fi
2400 done
2401
2402 if test -r "$cache_file"; then
2403   # Some versions of bash will fail to source /dev/null (special files
2404   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2405   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2406     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2407 $as_echo "$as_me: loading cache $cache_file" >&6;}
2408     case $cache_file in
2409       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2410       *)                      . "./$cache_file";;
2411     esac
2412   fi
2413 else
2414   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2415 $as_echo "$as_me: creating cache $cache_file" >&6;}
2416   >$cache_file
2417 fi
2418
2419 # Check that the precious variables saved in the cache have kept the same
2420 # value.
2421 ac_cache_corrupted=false
2422 for ac_var in $ac_precious_vars; do
2423   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2424   eval ac_new_set=\$ac_env_${ac_var}_set
2425   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2426   eval ac_new_val=\$ac_env_${ac_var}_value
2427   case $ac_old_set,$ac_new_set in
2428     set,)
2429       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2430 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2431       ac_cache_corrupted=: ;;
2432     ,set)
2433       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2434 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2435       ac_cache_corrupted=: ;;
2436     ,);;
2437     *)
2438       if test "x$ac_old_val" != "x$ac_new_val"; then
2439         # differences in whitespace do not lead to failure.
2440         ac_old_val_w=`echo x $ac_old_val`
2441         ac_new_val_w=`echo x $ac_new_val`
2442         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2443           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2444 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2445           ac_cache_corrupted=:
2446         else
2447           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2448 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2449           eval $ac_var=\$ac_old_val
2450         fi
2451         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2452 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2453         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2454 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2455       fi;;
2456   esac
2457   # Pass precious variables to config.status.
2458   if test "$ac_new_set" = set; then
2459     case $ac_new_val in
2460     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2461     *) ac_arg=$ac_var=$ac_new_val ;;
2462     esac
2463     case " $ac_configure_args " in
2464       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2465       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2466     esac
2467   fi
2468 done
2469 if $ac_cache_corrupted; then
2470   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2471 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2472   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2473 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2474   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2475 fi
2476 ## -------------------- ##
2477 ## Main body of script. ##
2478 ## -------------------- ##
2479
2480 ac_ext=c
2481 ac_cpp='$CPP $CPPFLAGS'
2482 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2483 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2484 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2485
2486
2487
2488 ac_config_headers="$ac_config_headers include/config.h"
2489
2490 ac_aux_dir=
2491 for ac_dir in tools "$srcdir"/tools; do
2492   if test -f "$ac_dir/install-sh"; then
2493     ac_aux_dir=$ac_dir
2494     ac_install_sh="$ac_aux_dir/install-sh -c"
2495     break
2496   elif test -f "$ac_dir/install.sh"; then
2497     ac_aux_dir=$ac_dir
2498     ac_install_sh="$ac_aux_dir/install.sh -c"
2499     break
2500   elif test -f "$ac_dir/shtool"; then
2501     ac_aux_dir=$ac_dir
2502     ac_install_sh="$ac_aux_dir/shtool install -c"
2503     break
2504   fi
2505 done
2506 if test -z "$ac_aux_dir"; then
2507   as_fn_error $? "cannot find install-sh, install.sh, or shtool in tools \"$srcdir\"/tools" "$LINENO" 5
2508 fi
2509
2510 # These three variables are undocumented and unsupported,
2511 # and are intended to be withdrawn in a future Autoconf release.
2512 # They can cause serious problems if a builder's source tree is in a directory
2513 # whose full name contains unusual characters.
2514 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2515 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2516 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2517
2518
2519
2520
2521
2522 # Check whether --enable-win16 was given.
2523 if test "${enable_win16+set}" = set; then :
2524   enableval=$enable_win16;
2525 fi
2526
2527 # Check whether --enable-win64 was given.
2528 if test "${enable_win64+set}" = set; then :
2529   enableval=$enable_win64;
2530 fi
2531
2532 # Check whether --enable-tests was given.
2533 if test "${enable_tests+set}" = set; then :
2534   enableval=$enable_tests;
2535 fi
2536
2537 # Check whether --enable-maintainer-mode was given.
2538 if test "${enable_maintainer_mode+set}" = set; then :
2539   enableval=$enable_maintainer_mode;
2540 fi
2541
2542
2543
2544 # Check whether --with-alsa was given.
2545 if test "${with_alsa+set}" = set; then :
2546   withval=$with_alsa; if test "x$withval" = "xno"; then ac_cv_header_sys_asoundlib_h=no; ac_cv_header_alsa_asoundlib_h=no; fi
2547 fi
2548
2549
2550 # Check whether --with-capi was given.
2551 if test "${with_capi+set}" = set; then :
2552   withval=$with_capi; if test "x$withval" = "xno"; then ac_cv_header_capi20_h=no; ac_cv_header_linux_capi_h=no; fi
2553 fi
2554
2555
2556 # Check whether --with-cms was given.
2557 if test "${with_cms+set}" = set; then :
2558   withval=$with_cms; if test "x$withval" = "xno"; then ac_cv_header_lcms_h=no; ac_cv_header_lcms_lcms_h=no; fi
2559 fi
2560
2561
2562 # Check whether --with-coreaudio was given.
2563 if test "${with_coreaudio+set}" = set; then :
2564   withval=$with_coreaudio; if test "x$withval" = "xno"; then ac_cv_header_CoreAudio_CoreAudio_h=no; fi
2565 fi
2566
2567
2568 # Check whether --with-cups was given.
2569 if test "${with_cups+set}" = set; then :
2570   withval=$with_cups;
2571 fi
2572
2573
2574 # Check whether --with-curses was given.
2575 if test "${with_curses+set}" = set; then :
2576   withval=$with_curses; if test "x$withval" = "xno"; then ac_cv_header_ncurses_h=no; ac_cv_header_curses_h=no; fi
2577 fi
2578
2579
2580 # Check whether --with-dbus was given.
2581 if test "${with_dbus+set}" = set; then :
2582   withval=$with_dbus;
2583 fi
2584
2585
2586 # Check whether --with-fontconfig was given.
2587 if test "${with_fontconfig+set}" = set; then :
2588   withval=$with_fontconfig;
2589 fi
2590
2591
2592 # Check whether --with-freetype was given.
2593 if test "${with_freetype+set}" = set; then :
2594   withval=$with_freetype;
2595 fi
2596
2597
2598 # Check whether --with-gettext was given.
2599 if test "${with_gettext+set}" = set; then :
2600   withval=$with_gettext;
2601 fi
2602
2603
2604 # Check whether --with-gettextpo was given.
2605 if test "${with_gettextpo+set}" = set; then :
2606   withval=$with_gettextpo; if test "x$withval" = "xno"; then ac_cv_header_gettext_po_h=no; fi
2607 fi
2608
2609
2610 # Check whether --with-gphoto was given.
2611 if test "${with_gphoto+set}" = set; then :
2612   withval=$with_gphoto;
2613 fi
2614
2615
2616 # Check whether --with-glu was given.
2617 if test "${with_glu+set}" = set; then :
2618   withval=$with_glu;
2619 fi
2620
2621
2622 # Check whether --with-gnutls was given.
2623 if test "${with_gnutls+set}" = set; then :
2624   withval=$with_gnutls;
2625 fi
2626
2627
2628 # Check whether --with-gsm was given.
2629 if test "${with_gsm+set}" = set; then :
2630   withval=$with_gsm; if test "x$withval" = "xno"; then ac_cv_header_gsm_h=no; ac_cv_header_gsm_gsm_h=no; fi
2631 fi
2632
2633
2634 # Check whether --with-gstreamer was given.
2635 if test "${with_gstreamer+set}" = set; then :
2636   withval=$with_gstreamer;
2637 fi
2638
2639
2640 # Check whether --with-hal was given.
2641 if test "${with_hal+set}" = set; then :
2642   withval=$with_hal;
2643 fi
2644
2645
2646 # Check whether --with-jpeg was given.
2647 if test "${with_jpeg+set}" = set; then :
2648   withval=$with_jpeg; if test "x$withval" = "xno"; then ac_cv_header_jpeglib_h=no; fi
2649 fi
2650
2651
2652 # Check whether --with-ldap was given.
2653 if test "${with_ldap+set}" = set; then :
2654   withval=$with_ldap; if test "x$withval" = "xno"; then ac_cv_header_ldap_h=no; ac_cv_header_lber_h=no; fi
2655 fi
2656
2657
2658 # Check whether --with-mpg123 was given.
2659 if test "${with_mpg123+set}" = set; then :
2660   withval=$with_mpg123; if test "x$withval" = "xno"; then ac_cv_header_mpg123_h=no; fi
2661 fi
2662
2663
2664 # Check whether --with-openal was given.
2665 if test "${with_openal+set}" = set; then :
2666   withval=$with_openal; if test "x$withval" = "xno"; then ac_cv_header_AL_al_h=no; ac_cv_header_OpenAL_al_h=no; fi
2667 fi
2668
2669
2670 # Check whether --with-opencl was given.
2671 if test "${with_opencl+set}" = set; then :
2672   withval=$with_opencl; if test "x$withval" = "xno"; then ac_cv_header_CL_cl_h=no; ac_cv_header_OpenCL_opencl_h=no; fi
2673 fi
2674
2675
2676 # Check whether --with-opengl was given.
2677 if test "${with_opengl+set}" = set; then :
2678   withval=$with_opengl;
2679 fi
2680
2681
2682 # Check whether --with-openssl was given.
2683 if test "${with_openssl+set}" = set; then :
2684   withval=$with_openssl; if test "x$withval" = "xno"; then ac_cv_header_openssl_err_h=no; ac_cv_header_openssl_ssl_h=no; fi
2685 fi
2686
2687
2688 # Check whether --with-osmesa was given.
2689 if test "${with_osmesa+set}" = set; then :
2690   withval=$with_osmesa;
2691 fi
2692
2693
2694 # Check whether --with-oss was given.
2695 if test "${with_oss+set}" = set; then :
2696   withval=$with_oss;
2697 fi
2698
2699
2700 # Check whether --with-png was given.
2701 if test "${with_png+set}" = set; then :
2702   withval=$with_png; if test "x$withval" = "xno"; then ac_cv_header_png_h=no; fi
2703 fi
2704
2705
2706 # Check whether --with-pthread was given.
2707 if test "${with_pthread+set}" = set; then :
2708   withval=$with_pthread; if test "x$withval" = "xno"; then ac_cv_header_pthread_h=no; fi
2709 fi
2710
2711
2712 # Check whether --with-sane was given.
2713 if test "${with_sane+set}" = set; then :
2714   withval=$with_sane;
2715 fi
2716
2717
2718 # Check whether --with-tiff was given.
2719 if test "${with_tiff+set}" = set; then :
2720   withval=$with_tiff; if test "x$withval" = "xno"; then ac_cv_header_tiffio_h=no; fi
2721 fi
2722
2723
2724 # Check whether --with-v4l was given.
2725 if test "${with_v4l+set}" = set; then :
2726   withval=$with_v4l;
2727 fi
2728
2729
2730 # Check whether --with-xcomposite was given.
2731 if test "${with_xcomposite+set}" = set; then :
2732   withval=$with_xcomposite; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xcomposite_h=no; fi
2733 fi
2734
2735
2736 # Check whether --with-xcursor was given.
2737 if test "${with_xcursor+set}" = set; then :
2738   withval=$with_xcursor; if test "x$withval" = "xno"; then ac_cv_header_X11_Xcursor_Xcursor_h=no; fi
2739 fi
2740
2741
2742 # Check whether --with-xinerama was given.
2743 if test "${with_xinerama+set}" = set; then :
2744   withval=$with_xinerama; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xinerama_h=no; fi
2745 fi
2746
2747
2748 # Check whether --with-xinput was given.
2749 if test "${with_xinput+set}" = set; then :
2750   withval=$with_xinput; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput_h=no; fi
2751 fi
2752
2753
2754 # Check whether --with-xinput2 was given.
2755 if test "${with_xinput2+set}" = set; then :
2756   withval=$with_xinput2; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput2_h=no; fi
2757 fi
2758
2759
2760 # Check whether --with-xml was given.
2761 if test "${with_xml+set}" = set; then :
2762   withval=$with_xml;
2763 fi
2764
2765
2766 # Check whether --with-xrandr was given.
2767 if test "${with_xrandr+set}" = set; then :
2768   withval=$with_xrandr; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrandr_h=no; fi
2769 fi
2770
2771
2772 # Check whether --with-xrender was given.
2773 if test "${with_xrender+set}" = set; then :
2774   withval=$with_xrender; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrender_h=no; fi
2775 fi
2776
2777
2778 # Check whether --with-xshape was given.
2779 if test "${with_xshape+set}" = set; then :
2780   withval=$with_xshape; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_shape_h=no; fi
2781 fi
2782
2783
2784 # Check whether --with-xshm was given.
2785 if test "${with_xshm+set}" = set; then :
2786   withval=$with_xshm; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XShm_h=no; fi
2787 fi
2788
2789
2790 # Check whether --with-xslt was given.
2791 if test "${with_xslt+set}" = set; then :
2792   withval=$with_xslt;
2793 fi
2794
2795
2796 # Check whether --with-xxf86vm was given.
2797 if test "${with_xxf86vm+set}" = set; then :
2798   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
2799 fi
2800
2801
2802 # Check whether --with-zlib was given.
2803 if test "${with_zlib+set}" = set; then :
2804   withval=$with_zlib; if test "x$withval" = "xno"; then ac_cv_header_zlib_h=no; fi
2805 fi
2806
2807
2808
2809 # Check whether --with-wine-tools was given.
2810 if test "${with_wine_tools+set}" = set; then :
2811   withval=$with_wine_tools;
2812 fi
2813
2814
2815 # Check whether --with-wine64 was given.
2816 if test "${with_wine64+set}" = set; then :
2817   withval=$with_wine64;
2818 fi
2819
2820
2821 # Make sure we can run config.sub.
2822 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2823   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2824
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2826 $as_echo_n "checking build system type... " >&6; }
2827 if ${ac_cv_build+:} false; then :
2828   $as_echo_n "(cached) " >&6
2829 else
2830   ac_build_alias=$build_alias
2831 test "x$ac_build_alias" = x &&
2832   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2833 test "x$ac_build_alias" = x &&
2834   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2835 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2836   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2837
2838 fi
2839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2840 $as_echo "$ac_cv_build" >&6; }
2841 case $ac_cv_build in
2842 *-*-*) ;;
2843 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2844 esac
2845 build=$ac_cv_build
2846 ac_save_IFS=$IFS; IFS='-'
2847 set x $ac_cv_build
2848 shift
2849 build_cpu=$1
2850 build_vendor=$2
2851 shift; shift
2852 # Remember, the first character of IFS is used to create $*,
2853 # except with old shells:
2854 build_os=$*
2855 IFS=$ac_save_IFS
2856 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2857
2858
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2860 $as_echo_n "checking host system type... " >&6; }
2861 if ${ac_cv_host+:} false; then :
2862   $as_echo_n "(cached) " >&6
2863 else
2864   if test "x$host_alias" = x; then
2865   ac_cv_host=$ac_cv_build
2866 else
2867   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2868     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2869 fi
2870
2871 fi
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2873 $as_echo "$ac_cv_host" >&6; }
2874 case $ac_cv_host in
2875 *-*-*) ;;
2876 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2877 esac
2878 host=$ac_cv_host
2879 ac_save_IFS=$IFS; IFS='-'
2880 set x $ac_cv_host
2881 shift
2882 host_cpu=$1
2883 host_vendor=$2
2884 shift; shift
2885 # Remember, the first character of IFS is used to create $*,
2886 # except with old shells:
2887 host_os=$*
2888 IFS=$ac_save_IFS
2889 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2890
2891
2892
2893 case "$srcdir" in
2894  .) ;;
2895  *) if test -f "$srcdir/Makefile" -o -f "$srcdir/include/config.h"; then
2896       as_fn_error $? "you are building out of the source tree, but the source tree contains object files.
2897 You need to run 'make distclean' in the source tree first." "$LINENO" 5
2898     fi ;;
2899 esac
2900
2901
2902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2903 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2904 set x ${MAKE-make}
2905 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2906 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2907   $as_echo_n "(cached) " >&6
2908 else
2909   cat >conftest.make <<\_ACEOF
2910 SHELL = /bin/sh
2911 all:
2912         @echo '@@@%%%=$(MAKE)=@@@%%%'
2913 _ACEOF
2914 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2915 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2916   *@@@%%%=?*=@@@%%%*)
2917     eval ac_cv_prog_make_${ac_make}_set=yes;;
2918   *)
2919     eval ac_cv_prog_make_${ac_make}_set=no;;
2920 esac
2921 rm -f conftest.make
2922 fi
2923 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2924   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2925 $as_echo "yes" >&6; }
2926   SET_MAKE=
2927 else
2928   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2929 $as_echo "no" >&6; }
2930   SET_MAKE="MAKE=${MAKE-make}"
2931 fi
2932
2933 ac_ext=c
2934 ac_cpp='$CPP $CPPFLAGS'
2935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2938 if test -n "$ac_tool_prefix"; then
2939   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2940 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2942 $as_echo_n "checking for $ac_word... " >&6; }
2943 if ${ac_cv_prog_CC+:} false; then :
2944   $as_echo_n "(cached) " >&6
2945 else
2946   if test -n "$CC"; then
2947   ac_cv_prog_CC="$CC" # Let the user override the test.
2948 else
2949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2950 for as_dir in $PATH
2951 do
2952   IFS=$as_save_IFS
2953   test -z "$as_dir" && as_dir=.
2954     for ac_exec_ext in '' $ac_executable_extensions; do
2955   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2956     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2957     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2958     break 2
2959   fi
2960 done
2961   done
2962 IFS=$as_save_IFS
2963
2964 fi
2965 fi
2966 CC=$ac_cv_prog_CC
2967 if test -n "$CC"; then
2968   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2969 $as_echo "$CC" >&6; }
2970 else
2971   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2972 $as_echo "no" >&6; }
2973 fi
2974
2975
2976 fi
2977 if test -z "$ac_cv_prog_CC"; then
2978   ac_ct_CC=$CC
2979   # Extract the first word of "gcc", so it can be a program name with args.
2980 set dummy gcc; ac_word=$2
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2982 $as_echo_n "checking for $ac_word... " >&6; }
2983 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2984   $as_echo_n "(cached) " >&6
2985 else
2986   if test -n "$ac_ct_CC"; then
2987   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2988 else
2989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2990 for as_dir in $PATH
2991 do
2992   IFS=$as_save_IFS
2993   test -z "$as_dir" && as_dir=.
2994     for ac_exec_ext in '' $ac_executable_extensions; do
2995   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2996     ac_cv_prog_ac_ct_CC="gcc"
2997     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2998     break 2
2999   fi
3000 done
3001   done
3002 IFS=$as_save_IFS
3003
3004 fi
3005 fi
3006 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3007 if test -n "$ac_ct_CC"; then
3008   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3009 $as_echo "$ac_ct_CC" >&6; }
3010 else
3011   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3012 $as_echo "no" >&6; }
3013 fi
3014
3015   if test "x$ac_ct_CC" = x; then
3016     CC=""
3017   else
3018     case $cross_compiling:$ac_tool_warned in
3019 yes:)
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3021 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3022 ac_tool_warned=yes ;;
3023 esac
3024     CC=$ac_ct_CC
3025   fi
3026 else
3027   CC="$ac_cv_prog_CC"
3028 fi
3029
3030 if test -z "$CC"; then
3031           if test -n "$ac_tool_prefix"; then
3032     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3033 set dummy ${ac_tool_prefix}cc; ac_word=$2
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3035 $as_echo_n "checking for $ac_word... " >&6; }
3036 if ${ac_cv_prog_CC+:} false; then :
3037   $as_echo_n "(cached) " >&6
3038 else
3039   if test -n "$CC"; then
3040   ac_cv_prog_CC="$CC" # Let the user override the test.
3041 else
3042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3043 for as_dir in $PATH
3044 do
3045   IFS=$as_save_IFS
3046   test -z "$as_dir" && as_dir=.
3047     for ac_exec_ext in '' $ac_executable_extensions; do
3048   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3049     ac_cv_prog_CC="${ac_tool_prefix}cc"
3050     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3051     break 2
3052   fi
3053 done
3054   done
3055 IFS=$as_save_IFS
3056
3057 fi
3058 fi
3059 CC=$ac_cv_prog_CC
3060 if test -n "$CC"; then
3061   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3062 $as_echo "$CC" >&6; }
3063 else
3064   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3065 $as_echo "no" >&6; }
3066 fi
3067
3068
3069   fi
3070 fi
3071 if test -z "$CC"; then
3072   # Extract the first word of "cc", so it can be a program name with args.
3073 set dummy cc; ac_word=$2
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3075 $as_echo_n "checking for $ac_word... " >&6; }
3076 if ${ac_cv_prog_CC+:} false; then :
3077   $as_echo_n "(cached) " >&6
3078 else
3079   if test -n "$CC"; then
3080   ac_cv_prog_CC="$CC" # Let the user override the test.
3081 else
3082   ac_prog_rejected=no
3083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3084 for as_dir in $PATH
3085 do
3086   IFS=$as_save_IFS
3087   test -z "$as_dir" && as_dir=.
3088     for ac_exec_ext in '' $ac_executable_extensions; do
3089   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3090     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3091        ac_prog_rejected=yes
3092        continue
3093      fi
3094     ac_cv_prog_CC="cc"
3095     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3096     break 2
3097   fi
3098 done
3099   done
3100 IFS=$as_save_IFS
3101
3102 if test $ac_prog_rejected = yes; then
3103   # We found a bogon in the path, so make sure we never use it.
3104   set dummy $ac_cv_prog_CC
3105   shift
3106   if test $# != 0; then
3107     # We chose a different compiler from the bogus one.
3108     # However, it has the same basename, so the bogon will be chosen
3109     # first if we set CC to just the basename; use the full file name.
3110     shift
3111     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3112   fi
3113 fi
3114 fi
3115 fi
3116 CC=$ac_cv_prog_CC
3117 if test -n "$CC"; then
3118   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3119 $as_echo "$CC" >&6; }
3120 else
3121   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3122 $as_echo "no" >&6; }
3123 fi
3124
3125
3126 fi
3127 if test -z "$CC"; then
3128   if test -n "$ac_tool_prefix"; then
3129   for ac_prog in cl.exe
3130   do
3131     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3132 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3134 $as_echo_n "checking for $ac_word... " >&6; }
3135 if ${ac_cv_prog_CC+:} false; then :
3136   $as_echo_n "(cached) " >&6
3137 else
3138   if test -n "$CC"; then
3139   ac_cv_prog_CC="$CC" # Let the user override the test.
3140 else
3141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3142 for as_dir in $PATH
3143 do
3144   IFS=$as_save_IFS
3145   test -z "$as_dir" && as_dir=.
3146     for ac_exec_ext in '' $ac_executable_extensions; do
3147   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3148     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3149     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3150     break 2
3151   fi
3152 done
3153   done
3154 IFS=$as_save_IFS
3155
3156 fi
3157 fi
3158 CC=$ac_cv_prog_CC
3159 if test -n "$CC"; then
3160   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3161 $as_echo "$CC" >&6; }
3162 else
3163   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3164 $as_echo "no" >&6; }
3165 fi
3166
3167
3168     test -n "$CC" && break
3169   done
3170 fi
3171 if test -z "$CC"; then
3172   ac_ct_CC=$CC
3173   for ac_prog in cl.exe
3174 do
3175   # Extract the first word of "$ac_prog", so it can be a program name with args.
3176 set dummy $ac_prog; ac_word=$2
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3178 $as_echo_n "checking for $ac_word... " >&6; }
3179 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3180   $as_echo_n "(cached) " >&6
3181 else
3182   if test -n "$ac_ct_CC"; then
3183   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3184 else
3185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3186 for as_dir in $PATH
3187 do
3188   IFS=$as_save_IFS
3189   test -z "$as_dir" && as_dir=.
3190     for ac_exec_ext in '' $ac_executable_extensions; do
3191   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3192     ac_cv_prog_ac_ct_CC="$ac_prog"
3193     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3194     break 2
3195   fi
3196 done
3197   done
3198 IFS=$as_save_IFS
3199
3200 fi
3201 fi
3202 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3203 if test -n "$ac_ct_CC"; then
3204   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3205 $as_echo "$ac_ct_CC" >&6; }
3206 else
3207   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3208 $as_echo "no" >&6; }
3209 fi
3210
3211
3212   test -n "$ac_ct_CC" && break
3213 done
3214
3215   if test "x$ac_ct_CC" = x; then
3216     CC=""
3217   else
3218     case $cross_compiling:$ac_tool_warned in
3219 yes:)
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3221 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3222 ac_tool_warned=yes ;;
3223 esac
3224     CC=$ac_ct_CC
3225   fi
3226 fi
3227
3228 fi
3229
3230
3231 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3232 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3233 as_fn_error $? "no acceptable C compiler found in \$PATH
3234 See \`config.log' for more details" "$LINENO" 5; }
3235
3236 # Provide some information about the compiler.
3237 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3238 set X $ac_compile
3239 ac_compiler=$2
3240 for ac_option in --version -v -V -qversion; do
3241   { { ac_try="$ac_compiler $ac_option >&5"
3242 case "(($ac_try" in
3243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3244   *) ac_try_echo=$ac_try;;
3245 esac
3246 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3247 $as_echo "$ac_try_echo"; } >&5
3248   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3249   ac_status=$?
3250   if test -s conftest.err; then
3251     sed '10a\
3252 ... rest of stderr output deleted ...
3253          10q' conftest.err >conftest.er1
3254     cat conftest.er1 >&5
3255   fi
3256   rm -f conftest.er1 conftest.err
3257   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3258   test $ac_status = 0; }
3259 done
3260
3261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3262 /* end confdefs.h.  */
3263
3264 int
3265 main ()
3266 {
3267
3268   ;
3269   return 0;
3270 }
3271 _ACEOF
3272 ac_clean_files_save=$ac_clean_files
3273 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3274 # Try to create an executable without -o first, disregard a.out.
3275 # It will help us diagnose broken compilers, and finding out an intuition
3276 # of exeext.
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3278 $as_echo_n "checking whether the C compiler works... " >&6; }
3279 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3280
3281 # The possible output files:
3282 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3283
3284 ac_rmfiles=
3285 for ac_file in $ac_files
3286 do
3287   case $ac_file in
3288     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3289     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3290   esac
3291 done
3292 rm -f $ac_rmfiles
3293
3294 if { { ac_try="$ac_link_default"
3295 case "(($ac_try" in
3296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3297   *) ac_try_echo=$ac_try;;
3298 esac
3299 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3300 $as_echo "$ac_try_echo"; } >&5
3301   (eval "$ac_link_default") 2>&5
3302   ac_status=$?
3303   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3304   test $ac_status = 0; }; then :
3305   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3306 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3307 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3308 # so that the user can short-circuit this test for compilers unknown to
3309 # Autoconf.
3310 for ac_file in $ac_files ''
3311 do
3312   test -f "$ac_file" || continue
3313   case $ac_file in
3314     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3315         ;;
3316     [ab].out )
3317         # We found the default executable, but exeext='' is most
3318         # certainly right.
3319         break;;
3320     *.* )
3321         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3322         then :; else
3323            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3324         fi
3325         # We set ac_cv_exeext here because the later test for it is not
3326         # safe: cross compilers may not add the suffix if given an `-o'
3327         # argument, so we may need to know it at that point already.
3328         # Even if this section looks crufty: it has the advantage of
3329         # actually working.
3330         break;;
3331     * )
3332         break;;
3333   esac
3334 done
3335 test "$ac_cv_exeext" = no && ac_cv_exeext=
3336
3337 else
3338   ac_file=''
3339 fi
3340 if test -z "$ac_file"; then :
3341   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3342 $as_echo "no" >&6; }
3343 $as_echo "$as_me: failed program was:" >&5
3344 sed 's/^/| /' conftest.$ac_ext >&5
3345
3346 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3347 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3348 as_fn_error 77 "C compiler cannot create executables
3349 See \`config.log' for more details" "$LINENO" 5; }
3350 else
3351   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3352 $as_echo "yes" >&6; }
3353 fi
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3355 $as_echo_n "checking for C compiler default output file name... " >&6; }
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3357 $as_echo "$ac_file" >&6; }
3358 ac_exeext=$ac_cv_exeext
3359
3360 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3361 ac_clean_files=$ac_clean_files_save
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3363 $as_echo_n "checking for suffix of executables... " >&6; }
3364 if { { ac_try="$ac_link"
3365 case "(($ac_try" in
3366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3367   *) ac_try_echo=$ac_try;;
3368 esac
3369 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3370 $as_echo "$ac_try_echo"; } >&5
3371   (eval "$ac_link") 2>&5
3372   ac_status=$?
3373   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3374   test $ac_status = 0; }; then :
3375   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3376 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3377 # work properly (i.e., refer to `conftest.exe'), while it won't with
3378 # `rm'.
3379 for ac_file in conftest.exe conftest conftest.*; do
3380   test -f "$ac_file" || continue
3381   case $ac_file in
3382     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3383     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3384           break;;
3385     * ) break;;
3386   esac
3387 done
3388 else
3389   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3390 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3391 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3392 See \`config.log' for more details" "$LINENO" 5; }
3393 fi
3394 rm -f conftest conftest$ac_cv_exeext
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3396 $as_echo "$ac_cv_exeext" >&6; }
3397
3398 rm -f conftest.$ac_ext
3399 EXEEXT=$ac_cv_exeext
3400 ac_exeext=$EXEEXT
3401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3402 /* end confdefs.h.  */
3403 #include <stdio.h>
3404 int
3405 main ()
3406 {
3407 FILE *f = fopen ("conftest.out", "w");
3408  return ferror (f) || fclose (f) != 0;
3409
3410   ;
3411   return 0;
3412 }
3413 _ACEOF
3414 ac_clean_files="$ac_clean_files conftest.out"
3415 # Check that the compiler produces executables we can run.  If not, either
3416 # the compiler is broken, or we cross compile.
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3418 $as_echo_n "checking whether we are cross compiling... " >&6; }
3419 if test "$cross_compiling" != yes; then
3420   { { ac_try="$ac_link"
3421 case "(($ac_try" in
3422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3423   *) ac_try_echo=$ac_try;;
3424 esac
3425 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3426 $as_echo "$ac_try_echo"; } >&5
3427   (eval "$ac_link") 2>&5
3428   ac_status=$?
3429   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3430   test $ac_status = 0; }
3431   if { ac_try='./conftest$ac_cv_exeext'
3432   { { case "(($ac_try" in
3433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3434   *) ac_try_echo=$ac_try;;
3435 esac
3436 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3437 $as_echo "$ac_try_echo"; } >&5
3438   (eval "$ac_try") 2>&5
3439   ac_status=$?
3440   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3441   test $ac_status = 0; }; }; then
3442     cross_compiling=no
3443   else
3444     if test "$cross_compiling" = maybe; then
3445         cross_compiling=yes
3446     else
3447         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3448 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3449 as_fn_error $? "cannot run C compiled programs.
3450 If you meant to cross compile, use \`--host'.
3451 See \`config.log' for more details" "$LINENO" 5; }
3452     fi
3453   fi
3454 fi
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3456 $as_echo "$cross_compiling" >&6; }
3457
3458 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3459 ac_clean_files=$ac_clean_files_save
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3461 $as_echo_n "checking for suffix of object files... " >&6; }
3462 if ${ac_cv_objext+:} false; then :
3463   $as_echo_n "(cached) " >&6
3464 else
3465   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3466 /* end confdefs.h.  */
3467
3468 int
3469 main ()
3470 {
3471
3472   ;
3473   return 0;
3474 }
3475 _ACEOF
3476 rm -f conftest.o conftest.obj
3477 if { { ac_try="$ac_compile"
3478 case "(($ac_try" in
3479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3480   *) ac_try_echo=$ac_try;;
3481 esac
3482 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3483 $as_echo "$ac_try_echo"; } >&5
3484   (eval "$ac_compile") 2>&5
3485   ac_status=$?
3486   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3487   test $ac_status = 0; }; then :
3488   for ac_file in conftest.o conftest.obj conftest.*; do
3489   test -f "$ac_file" || continue;
3490   case $ac_file in
3491     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3492     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3493        break;;
3494   esac
3495 done
3496 else
3497   $as_echo "$as_me: failed program was:" >&5
3498 sed 's/^/| /' conftest.$ac_ext >&5
3499
3500 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3501 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3502 as_fn_error $? "cannot compute suffix of object files: cannot compile
3503 See \`config.log' for more details" "$LINENO" 5; }
3504 fi
3505 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3506 fi
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3508 $as_echo "$ac_cv_objext" >&6; }
3509 OBJEXT=$ac_cv_objext
3510 ac_objext=$OBJEXT
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3512 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3513 if ${ac_cv_c_compiler_gnu+:} false; then :
3514   $as_echo_n "(cached) " >&6
3515 else
3516   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3517 /* end confdefs.h.  */
3518
3519 int
3520 main ()
3521 {
3522 #ifndef __GNUC__
3523        choke me
3524 #endif
3525
3526   ;
3527   return 0;
3528 }
3529 _ACEOF
3530 if ac_fn_c_try_compile "$LINENO"; then :
3531   ac_compiler_gnu=yes
3532 else
3533   ac_compiler_gnu=no
3534 fi
3535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3536 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3537
3538 fi
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3540 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3541 if test $ac_compiler_gnu = yes; then
3542   GCC=yes
3543 else
3544   GCC=
3545 fi
3546 ac_test_CFLAGS=${CFLAGS+set}
3547 ac_save_CFLAGS=$CFLAGS
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3549 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3550 if ${ac_cv_prog_cc_g+:} false; then :
3551   $as_echo_n "(cached) " >&6
3552 else
3553   ac_save_c_werror_flag=$ac_c_werror_flag
3554    ac_c_werror_flag=yes
3555    ac_cv_prog_cc_g=no
3556    CFLAGS="-g"
3557    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3558 /* end confdefs.h.  */
3559
3560 int
3561 main ()
3562 {
3563
3564   ;
3565   return 0;
3566 }
3567 _ACEOF
3568 if ac_fn_c_try_compile "$LINENO"; then :
3569   ac_cv_prog_cc_g=yes
3570 else
3571   CFLAGS=""
3572       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3573 /* end confdefs.h.  */
3574
3575 int
3576 main ()
3577 {
3578
3579   ;
3580   return 0;
3581 }
3582 _ACEOF
3583 if ac_fn_c_try_compile "$LINENO"; then :
3584
3585 else
3586   ac_c_werror_flag=$ac_save_c_werror_flag
3587          CFLAGS="-g"
3588          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3589 /* end confdefs.h.  */
3590
3591 int
3592 main ()
3593 {
3594
3595   ;
3596   return 0;
3597 }
3598 _ACEOF
3599 if ac_fn_c_try_compile "$LINENO"; then :
3600   ac_cv_prog_cc_g=yes
3601 fi
3602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3603 fi
3604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3605 fi
3606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3607    ac_c_werror_flag=$ac_save_c_werror_flag
3608 fi
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3610 $as_echo "$ac_cv_prog_cc_g" >&6; }
3611 if test "$ac_test_CFLAGS" = set; then
3612   CFLAGS=$ac_save_CFLAGS
3613 elif test $ac_cv_prog_cc_g = yes; then
3614   if test "$GCC" = yes; then
3615     CFLAGS="-g -O2"
3616   else
3617     CFLAGS="-g"
3618   fi
3619 else
3620   if test "$GCC" = yes; then
3621     CFLAGS="-O2"
3622   else
3623     CFLAGS=
3624   fi
3625 fi
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3627 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3628 if ${ac_cv_prog_cc_c89+:} false; then :
3629   $as_echo_n "(cached) " >&6
3630 else
3631   ac_cv_prog_cc_c89=no
3632 ac_save_CC=$CC
3633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3634 /* end confdefs.h.  */
3635 #include <stdarg.h>
3636 #include <stdio.h>
3637 struct stat;
3638 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3639 struct buf { int x; };
3640 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3641 static char *e (p, i)
3642      char **p;
3643      int i;
3644 {
3645   return p[i];
3646 }
3647 static char *f (char * (*g) (char **, int), char **p, ...)
3648 {
3649   char *s;
3650   va_list v;
3651   va_start (v,p);
3652   s = g (p, va_arg (v,int));
3653   va_end (v);
3654   return s;
3655 }
3656
3657 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3658    function prototypes and stuff, but not '\xHH' hex character constants.
3659    These don't provoke an error unfortunately, instead are silently treated
3660    as 'x'.  The following induces an error, until -std is added to get
3661    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3662    array size at least.  It's necessary to write '\x00'==0 to get something
3663    that's true only with -std.  */
3664 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3665
3666 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3667    inside strings and character constants.  */
3668 #define FOO(x) 'x'
3669 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3670
3671 int test (int i, double x);
3672 struct s1 {int (*f) (int a);};
3673 struct s2 {int (*f) (double a);};
3674 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3675 int argc;
3676 char **argv;
3677 int
3678 main ()
3679 {
3680 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3681   ;
3682   return 0;
3683 }
3684 _ACEOF
3685 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3686         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3687 do
3688   CC="$ac_save_CC $ac_arg"
3689   if ac_fn_c_try_compile "$LINENO"; then :
3690   ac_cv_prog_cc_c89=$ac_arg
3691 fi
3692 rm -f core conftest.err conftest.$ac_objext
3693   test "x$ac_cv_prog_cc_c89" != "xno" && break
3694 done
3695 rm -f conftest.$ac_ext
3696 CC=$ac_save_CC
3697
3698 fi
3699 # AC_CACHE_VAL
3700 case "x$ac_cv_prog_cc_c89" in
3701   x)
3702     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3703 $as_echo "none needed" >&6; } ;;
3704   xno)
3705     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3706 $as_echo "unsupported" >&6; } ;;
3707   *)
3708     CC="$CC $ac_cv_prog_cc_c89"
3709     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3710 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3711 esac
3712 if test "x$ac_cv_prog_cc_c89" != xno; then :
3713
3714 fi
3715
3716 ac_ext=c
3717 ac_cpp='$CPP $CPPFLAGS'
3718 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3719 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3720 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3721
3722 ac_ext=cpp
3723 ac_cpp='$CXXCPP $CPPFLAGS'
3724 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3725 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3726 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3727 if test -z "$CXX"; then
3728   if test -n "$CCC"; then
3729     CXX=$CCC
3730   else
3731     if test -n "$ac_tool_prefix"; then
3732   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3733   do
3734     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3735 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3737 $as_echo_n "checking for $ac_word... " >&6; }
3738 if ${ac_cv_prog_CXX+:} false; then :
3739   $as_echo_n "(cached) " >&6
3740 else
3741   if test -n "$CXX"; then
3742   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3743 else
3744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3745 for as_dir in $PATH
3746 do
3747   IFS=$as_save_IFS
3748   test -z "$as_dir" && as_dir=.
3749     for ac_exec_ext in '' $ac_executable_extensions; do
3750   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3751     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3752     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3753     break 2
3754   fi
3755 done
3756   done
3757 IFS=$as_save_IFS
3758
3759 fi
3760 fi
3761 CXX=$ac_cv_prog_CXX
3762 if test -n "$CXX"; then
3763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3764 $as_echo "$CXX" >&6; }
3765 else
3766   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3767 $as_echo "no" >&6; }
3768 fi
3769
3770
3771     test -n "$CXX" && break
3772   done
3773 fi
3774 if test -z "$CXX"; then
3775   ac_ct_CXX=$CXX
3776   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3777 do
3778   # Extract the first word of "$ac_prog", so it can be a program name with args.
3779 set dummy $ac_prog; ac_word=$2
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3781 $as_echo_n "checking for $ac_word... " >&6; }
3782 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3783   $as_echo_n "(cached) " >&6
3784 else
3785   if test -n "$ac_ct_CXX"; then
3786   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3787 else
3788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3789 for as_dir in $PATH
3790 do
3791   IFS=$as_save_IFS
3792   test -z "$as_dir" && as_dir=.
3793     for ac_exec_ext in '' $ac_executable_extensions; do
3794   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3795     ac_cv_prog_ac_ct_CXX="$ac_prog"
3796     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3797     break 2
3798   fi
3799 done
3800   done
3801 IFS=$as_save_IFS
3802
3803 fi
3804 fi
3805 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3806 if test -n "$ac_ct_CXX"; then
3807   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3808 $as_echo "$ac_ct_CXX" >&6; }
3809 else
3810   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3811 $as_echo "no" >&6; }
3812 fi
3813
3814
3815   test -n "$ac_ct_CXX" && break
3816 done
3817
3818   if test "x$ac_ct_CXX" = x; then
3819     CXX="g++"
3820   else
3821     case $cross_compiling:$ac_tool_warned in
3822 yes:)
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3824 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3825 ac_tool_warned=yes ;;
3826 esac
3827     CXX=$ac_ct_CXX
3828   fi
3829 fi
3830
3831   fi
3832 fi
3833 # Provide some information about the compiler.
3834 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3835 set X $ac_compile
3836 ac_compiler=$2
3837 for ac_option in --version -v -V -qversion; do
3838   { { ac_try="$ac_compiler $ac_option >&5"
3839 case "(($ac_try" in
3840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3841   *) ac_try_echo=$ac_try;;
3842 esac
3843 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3844 $as_echo "$ac_try_echo"; } >&5
3845   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3846   ac_status=$?
3847   if test -s conftest.err; then
3848     sed '10a\
3849 ... rest of stderr output deleted ...
3850          10q' conftest.err >conftest.er1
3851     cat conftest.er1 >&5
3852   fi
3853   rm -f conftest.er1 conftest.err
3854   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3855   test $ac_status = 0; }
3856 done
3857
3858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3859 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3860 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3861   $as_echo_n "(cached) " >&6
3862 else
3863   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3864 /* end confdefs.h.  */
3865
3866 int
3867 main ()
3868 {
3869 #ifndef __GNUC__
3870        choke me
3871 #endif
3872
3873   ;
3874   return 0;
3875 }
3876 _ACEOF
3877 if ac_fn_cxx_try_compile "$LINENO"; then :
3878   ac_compiler_gnu=yes
3879 else
3880   ac_compiler_gnu=no
3881 fi
3882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3883 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3884
3885 fi
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3887 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3888 if test $ac_compiler_gnu = yes; then
3889   GXX=yes
3890 else
3891   GXX=
3892 fi
3893 ac_test_CXXFLAGS=${CXXFLAGS+set}
3894 ac_save_CXXFLAGS=$CXXFLAGS
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3896 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3897 if ${ac_cv_prog_cxx_g+:} false; then :
3898   $as_echo_n "(cached) " >&6
3899 else
3900   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3901    ac_cxx_werror_flag=yes
3902    ac_cv_prog_cxx_g=no
3903    CXXFLAGS="-g"
3904    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3905 /* end confdefs.h.  */
3906
3907 int
3908 main ()
3909 {
3910
3911   ;
3912   return 0;
3913 }
3914 _ACEOF
3915 if ac_fn_cxx_try_compile "$LINENO"; then :
3916   ac_cv_prog_cxx_g=yes
3917 else
3918   CXXFLAGS=""
3919       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3920 /* end confdefs.h.  */
3921
3922 int
3923 main ()
3924 {
3925
3926   ;
3927   return 0;
3928 }
3929 _ACEOF
3930 if ac_fn_cxx_try_compile "$LINENO"; then :
3931
3932 else
3933   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3934          CXXFLAGS="-g"
3935          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3936 /* end confdefs.h.  */
3937
3938 int
3939 main ()
3940 {
3941
3942   ;
3943   return 0;
3944 }
3945 _ACEOF
3946 if ac_fn_cxx_try_compile "$LINENO"; then :
3947   ac_cv_prog_cxx_g=yes
3948 fi
3949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3950 fi
3951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3952 fi
3953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3954    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3955 fi
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3957 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3958 if test "$ac_test_CXXFLAGS" = set; then
3959   CXXFLAGS=$ac_save_CXXFLAGS
3960 elif test $ac_cv_prog_cxx_g = yes; then
3961   if test "$GXX" = yes; then
3962     CXXFLAGS="-g -O2"
3963   else
3964     CXXFLAGS="-g"
3965   fi
3966 else
3967   if test "$GXX" = yes; then
3968     CXXFLAGS="-O2"
3969   else
3970     CXXFLAGS=
3971   fi
3972 fi
3973 ac_ext=c
3974 ac_cpp='$CPP $CPPFLAGS'
3975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3978
3979 if test -n "$ac_tool_prefix"; then
3980   # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
3981 set dummy ${ac_tool_prefix}cpp; ac_word=$2
3982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3983 $as_echo_n "checking for $ac_word... " >&6; }
3984 if ${ac_cv_prog_CPPBIN+:} false; then :
3985   $as_echo_n "(cached) " >&6
3986 else
3987   if test -n "$CPPBIN"; then
3988   ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test.
3989 else
3990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3991 for as_dir in $PATH
3992 do
3993   IFS=$as_save_IFS
3994   test -z "$as_dir" && as_dir=.
3995     for ac_exec_ext in '' $ac_executable_extensions; do
3996   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3997     ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp"
3998     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3999     break 2
4000   fi
4001 done
4002   done
4003 IFS=$as_save_IFS
4004
4005 fi
4006 fi
4007 CPPBIN=$ac_cv_prog_CPPBIN
4008 if test -n "$CPPBIN"; then
4009   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPPBIN" >&5
4010 $as_echo "$CPPBIN" >&6; }
4011 else
4012   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4013 $as_echo "no" >&6; }
4014 fi
4015
4016
4017 fi
4018 if test -z "$ac_cv_prog_CPPBIN"; then
4019   ac_ct_CPPBIN=$CPPBIN
4020   # Extract the first word of "cpp", so it can be a program name with args.
4021 set dummy cpp; ac_word=$2
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4023 $as_echo_n "checking for $ac_word... " >&6; }
4024 if ${ac_cv_prog_ac_ct_CPPBIN+:} false; then :
4025   $as_echo_n "(cached) " >&6
4026 else
4027   if test -n "$ac_ct_CPPBIN"; then
4028   ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test.
4029 else
4030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4031 for as_dir in $PATH
4032 do
4033   IFS=$as_save_IFS
4034   test -z "$as_dir" && as_dir=.
4035     for ac_exec_ext in '' $ac_executable_extensions; do
4036   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4037     ac_cv_prog_ac_ct_CPPBIN="cpp"
4038     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4039     break 2
4040   fi
4041 done
4042   done
4043 IFS=$as_save_IFS
4044
4045 fi
4046 fi
4047 ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN
4048 if test -n "$ac_ct_CPPBIN"; then
4049   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CPPBIN" >&5
4050 $as_echo "$ac_ct_CPPBIN" >&6; }
4051 else
4052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4053 $as_echo "no" >&6; }
4054 fi
4055
4056   if test "x$ac_ct_CPPBIN" = x; then
4057     CPPBIN="cpp"
4058   else
4059     case $cross_compiling:$ac_tool_warned in
4060 yes:)
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4062 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4063 ac_tool_warned=yes ;;
4064 esac
4065     CPPBIN=$ac_ct_CPPBIN
4066   fi
4067 else
4068   CPPBIN="$ac_cv_prog_CPPBIN"
4069 fi
4070
4071
4072 cat >>confdefs.h <<_ACEOF
4073 #define EXEEXT "$ac_exeext"
4074 _ACEOF
4075
4076
4077 case $host in
4078   *-darwin*)
4079     if test "x$enable_win64" = "xyes"
4080     then
4081       CC="$CC -m64"
4082       CXX="$CXX -m64"
4083       host_cpu="x86_64"
4084       notice_platform="64-bit "
4085       TARGETFLAGS="-m64"
4086
4087     else
4088       CC="$CC -m32"
4089       CXX="$CXX -m32"
4090       host_cpu="i386"
4091       notice_platform="32-bit "
4092       TARGETFLAGS="-m32"
4093
4094       enable_win16=${enable_win16:-yes}
4095     fi
4096     with_fontconfig=${with_fontconfig:-no}
4097     ;;
4098   x86_64*)
4099     if test "x$enable_win64" != "xyes" -a "$cross_compiling" != "yes"
4100     then
4101       CC="$CC -m32"
4102       CXX="$CXX -m32"
4103       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC works" >&5
4104 $as_echo_n "checking whether $CC works... " >&6; }
4105
4106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4107 /* end confdefs.h.  */
4108
4109 int
4110 main ()
4111 {
4112
4113   ;
4114   return 0;
4115 }
4116 _ACEOF
4117 if ac_fn_c_try_link "$LINENO"; then :
4118   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4119 $as_echo "yes" >&6; }
4120 else
4121   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4122 $as_echo "no" >&6; }
4123                       as_fn_error $? "Cannot build a 32-bit program, you need to install 32-bit development libraries." "$LINENO" 5
4124 fi
4125 rm -f core conftest.err conftest.$ac_objext \
4126     conftest$ac_exeext conftest.$ac_ext
4127       host_cpu="i386"
4128       notice_platform="32-bit "
4129       TARGETFLAGS="-m32"
4130
4131       enable_win16=${enable_win16:-yes}
4132     else
4133       if test "x${GCC}" = "xyes"
4134       then
4135         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports __builtin_ms_va_list" >&5
4136 $as_echo_n "checking whether $CC supports __builtin_ms_va_list... " >&6; }
4137         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4138 /* end confdefs.h.  */
4139 #include <stdarg.h>
4140 int
4141 main ()
4142 {
4143 void func(__builtin_ms_va_list *args);
4144   ;
4145   return 0;
4146 }
4147 _ACEOF
4148 if ac_fn_c_try_compile "$LINENO"; then :
4149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4150 $as_echo "yes" >&6; }
4151 else
4152   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4153 $as_echo "no" >&6; }
4154                            as_fn_error $? "You need gcc >= 4.4 to build Wine as 64-bit." "$LINENO" 5
4155 fi
4156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4157       fi
4158       TARGETFLAGS="-m64"
4159
4160     fi
4161     ;;
4162   arm*)
4163     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports Thumb" >&5
4164 $as_echo_n "checking whether $CC supports Thumb... " >&6; }
4165     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4166 /* end confdefs.h.  */
4167 int ac_test(int i) { return i; }
4168 int
4169 main ()
4170 {
4171 asm(".thumb\nblx ac_test\n.arm"); if (ac_test(1)) return 1
4172   ;
4173   return 0;
4174 }
4175 _ACEOF
4176 if ac_fn_c_try_link "$LINENO"; then :
4177   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4178 $as_echo "yes" >&6; }
4179 else
4180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4181 $as_echo "no" >&6; }
4182                        as_fn_error $? "You need a target with Thumb support to build Wine for ARM." "$LINENO" 5
4183 fi
4184 rm -f core conftest.err conftest.$ac_objext \
4185     conftest$ac_exeext conftest.$ac_ext
4186     CFLAGS="$CFLAGS -marm"
4187     ;;
4188   *-mingw32*|*-cygwin*)
4189     enable_win16=${enable_win16:-no}
4190     CFLAGS="$CFLAGS -D_WIN32"
4191     ;;
4192   i[3456789]86*)
4193     enable_win16=${enable_win16:-yes}
4194     ;;
4195 esac
4196
4197 enable_win16=${enable_win16:-no}
4198 enable_win64=${enable_win64:-no}
4199
4200 enable_winetest=${enable_winetest:-$enable_tests}
4201
4202 if test -n "$with_wine64"
4203 then
4204     if test "x$enable_win64" = "xyes"
4205     then
4206         as_fn_error $? "--enable-win64 and --with-wine64 are mutually exclusive.
4207 --enable-win64 should be used in the 64-bit build tree, --with-wine64 in the 32-bit Wow64 build tree." "$LINENO" 5
4208     fi
4209     WOW64_DISABLE=\#
4210
4211     enable_fonts=${enable_fonts:-no}
4212     enable_server=${enable_server:-no}
4213     enable_tools=${enable_tools:-no}
4214 elif test "x$enable_win64" = "xyes"
4215 then
4216     test "x$libdir" != "x\${exec_prefix}/lib" || libdir="\${exec_prefix}/lib64"
4217 fi
4218
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the directory containing the Wine tools" >&5
4220 $as_echo_n "checking for the directory containing the Wine tools... " >&6; }
4221 if ${wine_cv_toolsdir+:} false; then :
4222   $as_echo_n "(cached) " >&6
4223 else
4224   wine_cv_toolsdir="$with_wine_tools"
4225    if test -z "$with_wine_tools"; then
4226      if test "$cross_compiling" = "yes"; then
4227        as_fn_error $? "you must use the --with-wine-tools option when cross-compiling." "$LINENO" 5
4228      elif test -n "$with_wine64"; then
4229        wine_cv_toolsdir="$with_wine64"
4230      fi
4231    fi
4232    if test -z "$wine_cv_toolsdir"; then
4233      wine_cv_toolsdir="\$(top_builddir)"
4234    elif test -d "$wine_cv_toolsdir/tools/winebuild"; then
4235      case "$wine_cv_toolsdir" in
4236        /*) ;;
4237        *)  wine_cv_toolsdir="\$(top_builddir)/$wine_cv_toolsdir" ;;
4238      esac
4239    else
4240      as_fn_error $? "could not find Wine tools in $wine_cv_toolsdir" "$LINENO" 5
4241    fi
4242 fi
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_toolsdir" >&5
4244 $as_echo "$wine_cv_toolsdir" >&6; }
4245 TOOLSDIR=$wine_cv_toolsdir
4246
4247 if test -n "$host_alias" -a "$host_alias" != "$build_alias"
4248 then
4249     TARGETFLAGS="-b $host_alias $TARGETFLAGS"
4250
4251 fi
4252
4253 for ac_prog in flex
4254 do
4255   # Extract the first word of "$ac_prog", so it can be a program name with args.
4256 set dummy $ac_prog; ac_word=$2
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4258 $as_echo_n "checking for $ac_word... " >&6; }
4259 if ${ac_cv_prog_FLEX+:} false; then :
4260   $as_echo_n "(cached) " >&6
4261 else
4262   if test -n "$FLEX"; then
4263   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
4264 else
4265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4266 for as_dir in $PATH
4267 do
4268   IFS=$as_save_IFS
4269   test -z "$as_dir" && as_dir=.
4270     for ac_exec_ext in '' $ac_executable_extensions; do
4271   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4272     ac_cv_prog_FLEX="$ac_prog"
4273     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4274     break 2
4275   fi
4276 done
4277   done
4278 IFS=$as_save_IFS
4279
4280 fi
4281 fi
4282 FLEX=$ac_cv_prog_FLEX
4283 if test -n "$FLEX"; then
4284   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
4285 $as_echo "$FLEX" >&6; }
4286 else
4287   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4288 $as_echo "no" >&6; }
4289 fi
4290
4291
4292   test -n "$FLEX" && break
4293 done
4294 test -n "$FLEX" || FLEX="none"
4295
4296 if test "$FLEX" = "none"
4297 then
4298   as_fn_error $? "no suitable flex found. Please install the 'flex' package." "$LINENO" 5
4299 fi
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether flex is recent enough" >&5
4301 $as_echo_n "checking whether flex is recent enough... " >&6; }
4302 cat >conftest.l <<EOF
4303 %top{
4304 #include "prediluvian.h"
4305 }
4306 %%
4307 EOF
4308 if $FLEX -t conftest.l >/dev/null 2>&5
4309 then
4310   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4311 $as_echo "yes" >&6; }
4312 else
4313   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4314 $as_echo "no" >&6; }
4315   as_fn_error $? "Your flex version is too old. Please install flex version 2.5.33 or newer." "$LINENO" 5
4316 fi
4317
4318 for ac_prog in bison
4319 do
4320   # Extract the first word of "$ac_prog", so it can be a program name with args.
4321 set dummy $ac_prog; ac_word=$2
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4323 $as_echo_n "checking for $ac_word... " >&6; }
4324 if ${ac_cv_prog_BISON+:} false; then :
4325   $as_echo_n "(cached) " >&6
4326 else
4327   if test -n "$BISON"; then
4328   ac_cv_prog_BISON="$BISON" # Let the user override the test.
4329 else
4330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4331 for as_dir in $PATH
4332 do
4333   IFS=$as_save_IFS
4334   test -z "$as_dir" && as_dir=.
4335     for ac_exec_ext in '' $ac_executable_extensions; do
4336   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4337     ac_cv_prog_BISON="$ac_prog"
4338     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4339     break 2
4340   fi
4341 done
4342   done
4343 IFS=$as_save_IFS
4344
4345 fi
4346 fi
4347 BISON=$ac_cv_prog_BISON
4348 if test -n "$BISON"; then
4349   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
4350 $as_echo "$BISON" >&6; }
4351 else
4352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4353 $as_echo "no" >&6; }
4354 fi
4355
4356
4357   test -n "$BISON" && break
4358 done
4359 test -n "$BISON" || BISON="none"
4360
4361 if test "$BISON" = "none"
4362 then
4363   as_fn_error $? "no suitable bison found. Please install the 'bison' package." "$LINENO" 5
4364 fi
4365
4366 if test -n "$ac_tool_prefix"; then
4367   for ac_prog in ar gar
4368   do
4369     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4370 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4372 $as_echo_n "checking for $ac_word... " >&6; }
4373 if ${ac_cv_prog_AR+:} false; then :
4374   $as_echo_n "(cached) " >&6
4375 else
4376   if test -n "$AR"; then
4377   ac_cv_prog_AR="$AR" # Let the user override the test.
4378 else
4379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4380 for as_dir in $PATH
4381 do
4382   IFS=$as_save_IFS
4383   test -z "$as_dir" && as_dir=.
4384     for ac_exec_ext in '' $ac_executable_extensions; do
4385   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4386     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4387     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4388     break 2
4389   fi
4390 done
4391   done
4392 IFS=$as_save_IFS
4393
4394 fi
4395 fi
4396 AR=$ac_cv_prog_AR
4397 if test -n "$AR"; then
4398   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4399 $as_echo "$AR" >&6; }
4400 else
4401   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4402 $as_echo "no" >&6; }
4403 fi
4404
4405
4406     test -n "$AR" && break
4407   done
4408 fi
4409 if test -z "$AR"; then
4410   ac_ct_AR=$AR
4411   for ac_prog in ar gar
4412 do
4413   # Extract the first word of "$ac_prog", so it can be a program name with args.
4414 set dummy $ac_prog; ac_word=$2
4415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4416 $as_echo_n "checking for $ac_word... " >&6; }
4417 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4418   $as_echo_n "(cached) " >&6
4419 else
4420   if test -n "$ac_ct_AR"; then
4421   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4422 else
4423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4424 for as_dir in $PATH
4425 do
4426   IFS=$as_save_IFS
4427   test -z "$as_dir" && as_dir=.
4428     for ac_exec_ext in '' $ac_executable_extensions; do
4429   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4430     ac_cv_prog_ac_ct_AR="$ac_prog"
4431     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4432     break 2
4433   fi
4434 done
4435   done
4436 IFS=$as_save_IFS
4437
4438 fi
4439 fi
4440 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4441 if test -n "$ac_ct_AR"; then
4442   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4443 $as_echo "$ac_ct_AR" >&6; }
4444 else
4445   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4446 $as_echo "no" >&6; }
4447 fi
4448
4449
4450   test -n "$ac_ct_AR" && break
4451 done
4452
4453   if test "x$ac_ct_AR" = x; then
4454     AR="ar"
4455   else
4456     case $cross_compiling:$ac_tool_warned in
4457 yes:)
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4459 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4460 ac_tool_warned=yes ;;
4461 esac
4462     AR=$ac_ct_AR
4463   fi
4464 fi
4465
4466 ARFLAGS=rc
4467
4468 if test -n "$ac_tool_prefix"; then
4469   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4470 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4472 $as_echo_n "checking for $ac_word... " >&6; }
4473 if ${ac_cv_prog_RANLIB+:} false; then :
4474   $as_echo_n "(cached) " >&6
4475 else
4476   if test -n "$RANLIB"; then
4477   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4478 else
4479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4480 for as_dir in $PATH
4481 do
4482   IFS=$as_save_IFS
4483   test -z "$as_dir" && as_dir=.
4484     for ac_exec_ext in '' $ac_executable_extensions; do
4485   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4486     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4487     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4488     break 2
4489   fi
4490 done
4491   done
4492 IFS=$as_save_IFS
4493
4494 fi
4495 fi
4496 RANLIB=$ac_cv_prog_RANLIB
4497 if test -n "$RANLIB"; then
4498   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4499 $as_echo "$RANLIB" >&6; }
4500 else
4501   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4502 $as_echo "no" >&6; }
4503 fi
4504
4505
4506 fi
4507 if test -z "$ac_cv_prog_RANLIB"; then
4508   ac_ct_RANLIB=$RANLIB
4509   # Extract the first word of "ranlib", so it can be a program name with args.
4510 set dummy ranlib; ac_word=$2
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4512 $as_echo_n "checking for $ac_word... " >&6; }
4513 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4514   $as_echo_n "(cached) " >&6
4515 else
4516   if test -n "$ac_ct_RANLIB"; then
4517   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4518 else
4519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4520 for as_dir in $PATH
4521 do
4522   IFS=$as_save_IFS
4523   test -z "$as_dir" && as_dir=.
4524     for ac_exec_ext in '' $ac_executable_extensions; do
4525   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4526     ac_cv_prog_ac_ct_RANLIB="ranlib"
4527     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4528     break 2
4529   fi
4530 done
4531   done
4532 IFS=$as_save_IFS
4533
4534 fi
4535 fi
4536 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4537 if test -n "$ac_ct_RANLIB"; then
4538   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4539 $as_echo "$ac_ct_RANLIB" >&6; }
4540 else
4541   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4542 $as_echo "no" >&6; }
4543 fi
4544
4545   if test "x$ac_ct_RANLIB" = x; then
4546     RANLIB=":"
4547   else
4548     case $cross_compiling:$ac_tool_warned in
4549 yes:)
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4551 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4552 ac_tool_warned=yes ;;
4553 esac
4554     RANLIB=$ac_ct_RANLIB
4555   fi
4556 else
4557   RANLIB="$ac_cv_prog_RANLIB"
4558 fi
4559
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4561 $as_echo_n "checking whether ln -s works... " >&6; }
4562 LN_S=$as_ln_s
4563 if test "$LN_S" = "ln -s"; then
4564   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4565 $as_echo "yes" >&6; }
4566 else
4567   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4568 $as_echo "no, using $LN_S" >&6; }
4569 fi
4570
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4572 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4573 if ${ac_cv_path_GREP+:} false; then :
4574   $as_echo_n "(cached) " >&6
4575 else
4576   if test -z "$GREP"; then
4577   ac_path_GREP_found=false
4578   # Loop through the user's path and test for each of PROGNAME-LIST
4579   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4580 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4581 do
4582   IFS=$as_save_IFS
4583   test -z "$as_dir" && as_dir=.
4584     for ac_prog in grep ggrep; do
4585     for ac_exec_ext in '' $ac_executable_extensions; do
4586       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4587       as_fn_executable_p "$ac_path_GREP" || continue
4588 # Check for GNU ac_path_GREP and select it if it is found.
4589   # Check for GNU $ac_path_GREP
4590 case `"$ac_path_GREP" --version 2>&1` in
4591 *GNU*)
4592   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4593 *)
4594   ac_count=0
4595   $as_echo_n 0123456789 >"conftest.in"
4596   while :
4597   do
4598     cat "conftest.in" "conftest.in" >"conftest.tmp"
4599     mv "conftest.tmp" "conftest.in"
4600     cp "conftest.in" "conftest.nl"
4601     $as_echo 'GREP' >> "conftest.nl"
4602     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4603     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4604     as_fn_arith $ac_count + 1 && ac_count=$as_val
4605     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4606       # Best one so far, save it but keep looking for a better one
4607       ac_cv_path_GREP="$ac_path_GREP"
4608       ac_path_GREP_max=$ac_count
4609     fi
4610     # 10*(2^10) chars as input seems more than enough
4611     test $ac_count -gt 10 && break
4612   done
4613   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4614 esac
4615
4616       $ac_path_GREP_found && break 3
4617     done
4618   done
4619   done
4620 IFS=$as_save_IFS
4621   if test -z "$ac_cv_path_GREP"; then
4622     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4623   fi
4624 else
4625   ac_cv_path_GREP=$GREP
4626 fi
4627
4628 fi
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4630 $as_echo "$ac_cv_path_GREP" >&6; }
4631  GREP="$ac_cv_path_GREP"
4632
4633
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4635 $as_echo_n "checking for egrep... " >&6; }
4636 if ${ac_cv_path_EGREP+:} false; then :
4637   $as_echo_n "(cached) " >&6
4638 else
4639   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4640    then ac_cv_path_EGREP="$GREP -E"
4641    else
4642      if test -z "$EGREP"; then
4643   ac_path_EGREP_found=false
4644   # Loop through the user's path and test for each of PROGNAME-LIST
4645   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4646 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4647 do
4648   IFS=$as_save_IFS
4649   test -z "$as_dir" && as_dir=.
4650     for ac_prog in egrep; do
4651     for ac_exec_ext in '' $ac_executable_extensions; do
4652       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4653       as_fn_executable_p "$ac_path_EGREP" || continue
4654 # Check for GNU ac_path_EGREP and select it if it is found.
4655   # Check for GNU $ac_path_EGREP
4656 case `"$ac_path_EGREP" --version 2>&1` in
4657 *GNU*)
4658   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4659 *)
4660   ac_count=0
4661   $as_echo_n 0123456789 >"conftest.in"
4662   while :
4663   do
4664     cat "conftest.in" "conftest.in" >"conftest.tmp"
4665     mv "conftest.tmp" "conftest.in"
4666     cp "conftest.in" "conftest.nl"
4667     $as_echo 'EGREP' >> "conftest.nl"
4668     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4669     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4670     as_fn_arith $ac_count + 1 && ac_count=$as_val
4671     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4672       # Best one so far, save it but keep looking for a better one
4673       ac_cv_path_EGREP="$ac_path_EGREP"
4674       ac_path_EGREP_max=$ac_count
4675     fi
4676     # 10*(2^10) chars as input seems more than enough
4677     test $ac_count -gt 10 && break
4678   done
4679   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4680 esac
4681
4682       $ac_path_EGREP_found && break 3
4683     done
4684   done
4685   done
4686 IFS=$as_save_IFS
4687   if test -z "$ac_cv_path_EGREP"; then
4688     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4689   fi
4690 else
4691   ac_cv_path_EGREP=$EGREP
4692 fi
4693
4694    fi
4695 fi
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4697 $as_echo "$ac_cv_path_EGREP" >&6; }
4698  EGREP="$ac_cv_path_EGREP"
4699
4700
4701 # Extract the first word of "ldconfig", so it can be a program name with args.
4702 set dummy ldconfig; ac_word=$2
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4704 $as_echo_n "checking for $ac_word... " >&6; }
4705 if ${ac_cv_path_LDCONFIG+:} false; then :
4706   $as_echo_n "(cached) " >&6
4707 else
4708   case $LDCONFIG in
4709   [\\/]* | ?:[\\/]*)
4710   ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
4711   ;;
4712   *)
4713   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4714 for as_dir in /sbin /usr/sbin $PATH
4715 do
4716   IFS=$as_save_IFS
4717   test -z "$as_dir" && as_dir=.
4718     for ac_exec_ext in '' $ac_executable_extensions; do
4719   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4720     ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
4721     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4722     break 2
4723   fi
4724 done
4725   done
4726 IFS=$as_save_IFS
4727
4728   test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
4729   ;;
4730 esac
4731 fi
4732 LDCONFIG=$ac_cv_path_LDCONFIG
4733 if test -n "$LDCONFIG"; then
4734   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
4735 $as_echo "$LDCONFIG" >&6; }
4736 else
4737   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4738 $as_echo "no" >&6; }
4739 fi
4740
4741
4742 # Find a good install program.  We prefer a C program (faster),
4743 # so one script is as good as another.  But avoid the broken or
4744 # incompatible versions:
4745 # SysV /etc/install, /usr/sbin/install
4746 # SunOS /usr/etc/install
4747 # IRIX /sbin/install
4748 # AIX /bin/install
4749 # AmigaOS /C/install, which installs bootblocks on floppy discs
4750 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4751 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4752 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4753 # OS/2's system install, which has a completely different semantic
4754 # ./install, which can be erroneously created by make from ./install.sh.
4755 # Reject install programs that cannot install multiple files.
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4757 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4758 if test -z "$INSTALL"; then
4759 if ${ac_cv_path_install+:} false; then :
4760   $as_echo_n "(cached) " >&6
4761 else
4762   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4763 for as_dir in $PATH
4764 do
4765   IFS=$as_save_IFS
4766   test -z "$as_dir" && as_dir=.
4767     # Account for people who put trailing slashes in PATH elements.
4768 case $as_dir/ in #((
4769   ./ | .// | /[cC]/* | \
4770   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4771   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4772   /usr/ucb/* ) ;;
4773   *)
4774     # OSF1 and SCO ODT 3.0 have their own names for install.
4775     # Don't use installbsd from OSF since it installs stuff as root
4776     # by default.
4777     for ac_prog in ginstall scoinst install; do
4778       for ac_exec_ext in '' $ac_executable_extensions; do
4779         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4780           if test $ac_prog = install &&
4781             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4782             # AIX install.  It has an incompatible calling convention.
4783             :
4784           elif test $ac_prog = install &&
4785             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4786             # program-specific install script used by HP pwplus--don't use.
4787             :
4788           else
4789             rm -rf conftest.one conftest.two conftest.dir
4790             echo one > conftest.one
4791             echo two > conftest.two
4792             mkdir conftest.dir
4793             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4794               test -s conftest.one && test -s conftest.two &&
4795               test -s conftest.dir/conftest.one &&
4796               test -s conftest.dir/conftest.two
4797             then
4798               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4799               break 3
4800             fi
4801           fi
4802         fi
4803       done
4804     done
4805     ;;
4806 esac
4807
4808   done
4809 IFS=$as_save_IFS
4810
4811 rm -rf conftest.one conftest.two conftest.dir
4812
4813 fi
4814   if test "${ac_cv_path_install+set}" = set; then
4815     INSTALL=$ac_cv_path_install
4816   else
4817     # As a last resort, use the slow shell script.  Don't cache a
4818     # value for INSTALL within a source directory, because that will
4819     # break other packages using the cache if that directory is
4820     # removed, or if the value is a relative name.
4821     INSTALL=$ac_install_sh
4822   fi
4823 fi
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4825 $as_echo "$INSTALL" >&6; }
4826
4827 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4828 # It thinks the first close brace ends the variable substitution.
4829 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4830
4831 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4832
4833 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4834
4835 case "$INSTALL" in
4836   [\\/$]* | ?:[\\/]* ) ;;
4837   *)  INSTALL="\\\$(top_srcdir)/$INSTALL" ;;
4838 esac
4839
4840 for ac_prog in lclint lint
4841 do
4842   # Extract the first word of "$ac_prog", so it can be a program name with args.
4843 set dummy $ac_prog; ac_word=$2
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4845 $as_echo_n "checking for $ac_word... " >&6; }
4846 if ${ac_cv_prog_LINT+:} false; then :
4847   $as_echo_n "(cached) " >&6
4848 else
4849   if test -n "$LINT"; then
4850   ac_cv_prog_LINT="$LINT" # Let the user override the test.
4851 else
4852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4853 for as_dir in $PATH
4854 do
4855   IFS=$as_save_IFS
4856   test -z "$as_dir" && as_dir=.
4857     for ac_exec_ext in '' $ac_executable_extensions; do
4858   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4859     ac_cv_prog_LINT="$ac_prog"
4860     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4861     break 2
4862   fi
4863 done
4864   done
4865 IFS=$as_save_IFS
4866
4867 fi
4868 fi
4869 LINT=$ac_cv_prog_LINT
4870 if test -n "$LINT"; then
4871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
4872 $as_echo "$LINT" >&6; }
4873 else
4874   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4875 $as_echo "no" >&6; }
4876 fi
4877
4878
4879   test -n "$LINT" && break
4880 done
4881
4882 if test "$LINT" = "lint"
4883 then
4884   LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
4885   fi
4886
4887
4888 for ac_prog in fontforge
4889 do
4890   # Extract the first word of "$ac_prog", so it can be a program name with args.
4891 set dummy $ac_prog; ac_word=$2
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4893 $as_echo_n "checking for $ac_word... " >&6; }
4894 if ${ac_cv_prog_FONTFORGE+:} false; then :
4895   $as_echo_n "(cached) " >&6
4896 else
4897   if test -n "$FONTFORGE"; then
4898   ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
4899 else
4900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4901 for as_dir in $PATH
4902 do
4903   IFS=$as_save_IFS
4904   test -z "$as_dir" && as_dir=.
4905     for ac_exec_ext in '' $ac_executable_extensions; do
4906   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4907     ac_cv_prog_FONTFORGE="$ac_prog"
4908     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4909     break 2
4910   fi
4911 done
4912   done
4913 IFS=$as_save_IFS
4914
4915 fi
4916 fi
4917 FONTFORGE=$ac_cv_prog_FONTFORGE
4918 if test -n "$FONTFORGE"; then
4919   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTFORGE" >&5
4920 $as_echo "$FONTFORGE" >&6; }
4921 else
4922   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4923 $as_echo "no" >&6; }
4924 fi
4925
4926
4927   test -n "$FONTFORGE" && break
4928 done
4929 test -n "$FONTFORGE" || FONTFORGE="false"
4930
4931 for ac_prog in pkg-config
4932 do
4933   # Extract the first word of "$ac_prog", so it can be a program name with args.
4934 set dummy $ac_prog; ac_word=$2
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4936 $as_echo_n "checking for $ac_word... " >&6; }
4937 if ${ac_cv_prog_PKG_CONFIG+:} false; then :
4938   $as_echo_n "(cached) " >&6
4939 else
4940   if test -n "$PKG_CONFIG"; then
4941   ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
4942 else
4943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4944 for as_dir in $PATH
4945 do
4946   IFS=$as_save_IFS
4947   test -z "$as_dir" && as_dir=.
4948     for ac_exec_ext in '' $ac_executable_extensions; do
4949   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4950     ac_cv_prog_PKG_CONFIG="$ac_prog"
4951     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4952     break 2
4953   fi
4954 done
4955   done
4956 IFS=$as_save_IFS
4957
4958 fi
4959 fi
4960 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
4961 if test -n "$PKG_CONFIG"; then
4962   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4963 $as_echo "$PKG_CONFIG" >&6; }
4964 else
4965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4966 $as_echo "no" >&6; }
4967 fi
4968
4969
4970   test -n "$PKG_CONFIG" && break
4971 done
4972 test -n "$PKG_CONFIG" || PKG_CONFIG="false"
4973
4974 for ac_prog in rsvg
4975 do
4976   # Extract the first word of "$ac_prog", so it can be a program name with args.
4977 set dummy $ac_prog; ac_word=$2
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4979 $as_echo_n "checking for $ac_word... " >&6; }
4980 if ${ac_cv_prog_RSVG+:} false; then :
4981   $as_echo_n "(cached) " >&6
4982 else
4983   if test -n "$RSVG"; then
4984   ac_cv_prog_RSVG="$RSVG" # Let the user override the test.
4985 else
4986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4987 for as_dir in $PATH
4988 do
4989   IFS=$as_save_IFS
4990   test -z "$as_dir" && as_dir=.
4991     for ac_exec_ext in '' $ac_executable_extensions; do
4992   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4993     ac_cv_prog_RSVG="$ac_prog"
4994     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4995     break 2
4996   fi
4997 done
4998   done
4999 IFS=$as_save_IFS
5000
5001 fi
5002 fi
5003 RSVG=$ac_cv_prog_RSVG
5004 if test -n "$RSVG"; then
5005   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG" >&5
5006 $as_echo "$RSVG" >&6; }
5007 else
5008   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5009 $as_echo "no" >&6; }
5010 fi
5011
5012
5013   test -n "$RSVG" && break
5014 done
5015 test -n "$RSVG" || RSVG="false"
5016
5017 for ac_prog in convert
5018 do
5019   # Extract the first word of "$ac_prog", so it can be a program name with args.
5020 set dummy $ac_prog; ac_word=$2
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5022 $as_echo_n "checking for $ac_word... " >&6; }
5023 if ${ac_cv_prog_CONVERT+:} false; then :
5024   $as_echo_n "(cached) " >&6
5025 else
5026   if test -n "$CONVERT"; then
5027   ac_cv_prog_CONVERT="$CONVERT" # Let the user override the test.
5028 else
5029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5030 for as_dir in $PATH
5031 do
5032   IFS=$as_save_IFS
5033   test -z "$as_dir" && as_dir=.
5034     for ac_exec_ext in '' $ac_executable_extensions; do
5035   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5036     ac_cv_prog_CONVERT="$ac_prog"
5037     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5038     break 2
5039   fi
5040 done
5041   done
5042 IFS=$as_save_IFS
5043
5044 fi
5045 fi
5046 CONVERT=$ac_cv_prog_CONVERT
5047 if test -n "$CONVERT"; then
5048   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONVERT" >&5
5049 $as_echo "$CONVERT" >&6; }
5050 else
5051   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5052 $as_echo "no" >&6; }
5053 fi
5054
5055
5056   test -n "$CONVERT" && break
5057 done
5058 test -n "$CONVERT" || CONVERT="false"
5059
5060 for ac_prog in icotool
5061 do
5062   # Extract the first word of "$ac_prog", so it can be a program name with args.
5063 set dummy $ac_prog; ac_word=$2
5064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5065 $as_echo_n "checking for $ac_word... " >&6; }
5066 if ${ac_cv_prog_ICOTOOL+:} false; then :
5067   $as_echo_n "(cached) " >&6
5068 else
5069   if test -n "$ICOTOOL"; then
5070   ac_cv_prog_ICOTOOL="$ICOTOOL" # Let the user override the test.
5071 else
5072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5073 for as_dir in $PATH
5074 do
5075   IFS=$as_save_IFS
5076   test -z "$as_dir" && as_dir=.
5077     for ac_exec_ext in '' $ac_executable_extensions; do
5078   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5079     ac_cv_prog_ICOTOOL="$ac_prog"
5080     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5081     break 2
5082   fi
5083 done
5084   done
5085 IFS=$as_save_IFS
5086
5087 fi
5088 fi
5089 ICOTOOL=$ac_cv_prog_ICOTOOL
5090 if test -n "$ICOTOOL"; then
5091   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICOTOOL" >&5
5092 $as_echo "$ICOTOOL" >&6; }
5093 else
5094   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5095 $as_echo "no" >&6; }
5096 fi
5097
5098
5099   test -n "$ICOTOOL" && break
5100 done
5101 test -n "$ICOTOOL" || ICOTOOL="false"
5102
5103 for ac_prog in msgfmt
5104 do
5105   # Extract the first word of "$ac_prog", so it can be a program name with args.
5106 set dummy $ac_prog; ac_word=$2
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5108 $as_echo_n "checking for $ac_word... " >&6; }
5109 if ${ac_cv_prog_MSGFMT+:} false; then :
5110   $as_echo_n "(cached) " >&6
5111 else
5112   if test -n "$MSGFMT"; then
5113   ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
5114 else
5115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5116 for as_dir in $PATH
5117 do
5118   IFS=$as_save_IFS
5119   test -z "$as_dir" && as_dir=.
5120     for ac_exec_ext in '' $ac_executable_extensions; do
5121   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5122     ac_cv_prog_MSGFMT="$ac_prog"
5123     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5124     break 2
5125   fi
5126 done
5127   done
5128 IFS=$as_save_IFS
5129
5130 fi
5131 fi
5132 MSGFMT=$ac_cv_prog_MSGFMT
5133 if test -n "$MSGFMT"; then
5134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5135 $as_echo "$MSGFMT" >&6; }
5136 else
5137   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5138 $as_echo "no" >&6; }
5139 fi
5140
5141
5142   test -n "$MSGFMT" && break
5143 done
5144 test -n "$MSGFMT" || MSGFMT="false"
5145
5146
5147 if test "x$enable_maintainer_mode" != "xyes"
5148 then
5149   MAINTAINER_MODE=\#
5150
5151 else
5152   if test "$FONTFORGE" = "false"; then as_fn_error $? "You need fontforge to rebuild fonts in maintainer mode." "$LINENO" 5; fi
5153   if test "$RSVG" = "false"; then as_fn_error $? "You need rsvg to rebuild icons in maintainer mode." "$LINENO" 5; fi
5154
5155     if test "$CONVERT" = false
5156   then
5157     as_fn_error $? "You need imagemagick to rebuild icons in maintainer mode." "$LINENO" 5
5158   else
5159     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough imagemagick" >&5
5160 $as_echo_n "checking for recent enough imagemagick... " >&6; }
5161     convert_version=`convert --version | head -n1`
5162     if test "x$convert_version" != "x"
5163     then
5164       convert_version_major=`expr "$convert_version" : '.* \([0-9]*\)\.[0-9]*'`
5165       convert_version_minor=`expr "$convert_version" : '.* [0-9]*\.\([0-9]*\)'`
5166       if test "$convert_version_major" -eq 6 -a "$convert_version_minor" -lt 6
5167       then
5168         CONVERT=false
5169       fi
5170     fi
5171     if test "$CONVERT" = false
5172     then
5173       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($convert_version_major.$convert_version_minor)" >&5
5174 $as_echo "no ($convert_version_major.$convert_version_minor)" >&6; }
5175       as_fn_error $? "You need imagemagick version 6.6 or newer to rebuild icons in maintainer mode." "$LINENO" 5
5176     else
5177       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($convert_version_major.$convert_version_minor)" >&5
5178 $as_echo "yes ($convert_version_major.$convert_version_minor)" >&6; }
5179     fi
5180   fi
5181
5182     if test "$ICOTOOL" = false
5183   then
5184     as_fn_error $? "You need icotool to rebuild icons in maintainer mode." "$LINENO" 5
5185   else
5186     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough icotool" >&5
5187 $as_echo_n "checking for recent enough icotool... " >&6; }
5188     icotool_version=`icotool --version | head -n1`
5189     if test "x$icotool_version" != "x"
5190     then
5191       icotool_version_major=`expr "$icotool_version" : '.* \([0-9]*\)\.[0-9]*'`
5192       icotool_version_minor=`expr "$icotool_version" : '.* [0-9]*\.\([0-9]*\)'`
5193       if test "$icotool_version_major" -eq 0 -a "$icotool_version_minor" -lt 29
5194       then
5195         ICOTOOL=false
5196         as_fn_append wine_warnings "|icotool version 0.29.0 or newer is needed to rebuild icons."
5197       fi
5198     fi
5199     if test "$ICOTOOL" = false
5200     then
5201       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($icotool_version_major.$icotool_version_minor)" >&5
5202 $as_echo "no ($icotool_version_major.$icotool_version_minor)" >&6; }
5203       as_fn_error $? "You need icotool version 0.29.0 or newer to rebuild icons in maintainer mode." "$LINENO" 5
5204     else
5205       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($icotool_version_major.$icotool_version_minor)" >&5
5206 $as_echo "yes ($icotool_version_major.$icotool_version_minor)" >&6; }
5207     fi
5208   fi
5209
5210     with_gettext=yes
5211   with_gettextpo=yes
5212   { ac_cv_header_gettext_po_h=; unset ac_cv_header_gettext_po_h;}
5213 fi
5214
5215 test "x$with_gettext" != xno || MSGFMT=false
5216 if test "$MSGFMT" != "false"
5217 then
5218   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether msgfmt supports contexts" >&5
5219 $as_echo_n "checking whether msgfmt supports contexts... " >&6; }
5220   cat >conftest.po <<EOF
5221 # comment
5222 msgctxt "ctxt"
5223 msgid "id"
5224 msgstr "str"
5225 EOF
5226   if $MSGFMT -o /dev/null conftest.po 2>&5
5227   then
5228     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5229 $as_echo "yes" >&6; }
5230   else
5231     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5232 $as_echo "no" >&6; }
5233     MSGFMT=false
5234   fi
5235 fi
5236 if test "$MSGFMT" = false; then :
5237   case "x$with_gettext" in
5238   x)   as_fn_append wine_warnings "|gettext tools not found (or too old), translations won't be built." ;;
5239   xno) ;;
5240   *)   as_fn_error $? "gettext tools not found (or too old), translations won't be built.
5241 This is an error since --with-gettext was requested." "$LINENO" 5 ;;
5242 esac
5243 fi
5244
5245
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for i386_set_ldt in -li386" >&5
5247 $as_echo_n "checking for i386_set_ldt in -li386... " >&6; }
5248 if ${ac_cv_lib_i386_i386_set_ldt+:} false; then :
5249   $as_echo_n "(cached) " >&6
5250 else
5251   ac_check_lib_save_LIBS=$LIBS
5252 LIBS="-li386  $LIBS"
5253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5254 /* end confdefs.h.  */
5255
5256 /* Override any GCC internal prototype to avoid an error.
5257    Use char because int might match the return type of a GCC
5258    builtin and then its argument prototype would still apply.  */
5259 #ifdef __cplusplus
5260 extern "C"
5261 #endif
5262 char i386_set_ldt ();
5263 int
5264 main ()
5265 {
5266 return i386_set_ldt ();
5267   ;
5268   return 0;
5269 }
5270 _ACEOF
5271 if ac_fn_c_try_link "$LINENO"; then :
5272   ac_cv_lib_i386_i386_set_ldt=yes
5273 else
5274   ac_cv_lib_i386_i386_set_ldt=no
5275 fi
5276 rm -f core conftest.err conftest.$ac_objext \
5277     conftest$ac_exeext conftest.$ac_ext
5278 LIBS=$ac_check_lib_save_LIBS
5279 fi
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_i386_i386_set_ldt" >&5
5281 $as_echo "$ac_cv_lib_i386_i386_set_ldt" >&6; }
5282 if test "x$ac_cv_lib_i386_i386_set_ldt" = xyes; then :
5283   cat >>confdefs.h <<_ACEOF
5284 #define HAVE_LIBI386 1
5285 _ACEOF
5286
5287   LIBS="-li386 $LIBS"
5288
5289 fi
5290
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
5292 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
5293 if ${ac_cv_lib_ossaudio__oss_ioctl+:} false; then :
5294   $as_echo_n "(cached) " >&6
5295 else
5296   ac_check_lib_save_LIBS=$LIBS
5297 LIBS="-lossaudio  $LIBS"
5298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5299 /* end confdefs.h.  */
5300
5301 /* Override any GCC internal prototype to avoid an error.
5302    Use char because int might match the return type of a GCC
5303    builtin and then its argument prototype would still apply.  */
5304 #ifdef __cplusplus
5305 extern "C"
5306 #endif
5307 char _oss_ioctl ();
5308 int
5309 main ()
5310 {
5311 return _oss_ioctl ();
5312   ;
5313   return 0;
5314 }
5315 _ACEOF
5316 if ac_fn_c_try_link "$LINENO"; then :
5317   ac_cv_lib_ossaudio__oss_ioctl=yes
5318 else
5319   ac_cv_lib_ossaudio__oss_ioctl=no
5320 fi
5321 rm -f core conftest.err conftest.$ac_objext \
5322     conftest$ac_exeext conftest.$ac_ext
5323 LIBS=$ac_check_lib_save_LIBS
5324 fi
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5326 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
5327 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = xyes; then :
5328   cat >>confdefs.h <<_ACEOF
5329 #define HAVE_LIBOSSAUDIO 1
5330 _ACEOF
5331
5332   LIBS="-lossaudio $LIBS"
5333
5334 fi
5335
5336
5337 XLIB=""
5338
5339 OPENGL_LIBS=""
5340
5341
5342
5343 test "x$with_fontconfig" != "xno" || ac_cv_header_fontconfig_fontconfig_h=no
5344
5345 # Check whether --enable-largefile was given.
5346 if test "${enable_largefile+set}" = set; then :
5347   enableval=$enable_largefile;
5348 fi
5349
5350 if test "$enable_largefile" != no; then
5351
5352   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5353 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5354 if ${ac_cv_sys_largefile_CC+:} false; then :
5355   $as_echo_n "(cached) " >&6
5356 else
5357   ac_cv_sys_largefile_CC=no
5358      if test "$GCC" != yes; then
5359        ac_save_CC=$CC
5360        while :; do
5361          # IRIX 6.2 and later do not support large files by default,
5362          # so use the C compiler's -n32 option if that helps.
5363          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5364 /* end confdefs.h.  */
5365 #include <sys/types.h>
5366  /* Check that off_t can represent 2**63 - 1 correctly.
5367     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5368     since some C++ compilers masquerading as C compilers
5369     incorrectly reject 9223372036854775807.  */
5370 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5371   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5372                        && LARGE_OFF_T % 2147483647 == 1)
5373                       ? 1 : -1];
5374 int
5375 main ()
5376 {
5377
5378   ;
5379   return 0;
5380 }
5381 _ACEOF
5382          if ac_fn_c_try_compile "$LINENO"; then :
5383   break
5384 fi
5385 rm -f core conftest.err conftest.$ac_objext
5386          CC="$CC -n32"
5387          if ac_fn_c_try_compile "$LINENO"; then :
5388   ac_cv_sys_largefile_CC=' -n32'; break
5389 fi
5390 rm -f core conftest.err conftest.$ac_objext
5391          break
5392        done
5393        CC=$ac_save_CC
5394        rm -f conftest.$ac_ext
5395     fi
5396 fi
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5398 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5399   if test "$ac_cv_sys_largefile_CC" != no; then
5400     CC=$CC$ac_cv_sys_largefile_CC
5401   fi
5402
5403   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5404 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5405 if ${ac_cv_sys_file_offset_bits+:} false; then :
5406   $as_echo_n "(cached) " >&6
5407 else
5408   while :; do
5409   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5410 /* end confdefs.h.  */
5411 #include <sys/types.h>
5412  /* Check that off_t can represent 2**63 - 1 correctly.
5413     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5414     since some C++ compilers masquerading as C compilers
5415     incorrectly reject 9223372036854775807.  */
5416 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5417   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5418                        && LARGE_OFF_T % 2147483647 == 1)
5419                       ? 1 : -1];
5420 int
5421 main ()
5422 {
5423
5424   ;
5425   return 0;
5426 }
5427 _ACEOF
5428 if ac_fn_c_try_compile "$LINENO"; then :
5429   ac_cv_sys_file_offset_bits=no; break
5430 fi
5431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5432   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5433 /* end confdefs.h.  */
5434 #define _FILE_OFFSET_BITS 64
5435 #include <sys/types.h>
5436  /* Check that off_t can represent 2**63 - 1 correctly.
5437     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5438     since some C++ compilers masquerading as C compilers
5439     incorrectly reject 9223372036854775807.  */
5440 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5441   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5442                        && LARGE_OFF_T % 2147483647 == 1)
5443                       ? 1 : -1];
5444 int
5445 main ()
5446 {
5447
5448   ;
5449   return 0;
5450 }
5451 _ACEOF
5452 if ac_fn_c_try_compile "$LINENO"; then :
5453   ac_cv_sys_file_offset_bits=64; break
5454 fi
5455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5456   ac_cv_sys_file_offset_bits=unknown
5457   break
5458 done
5459 fi
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5461 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5462 case $ac_cv_sys_file_offset_bits in #(
5463   no | unknown) ;;
5464   *)
5465 cat >>confdefs.h <<_ACEOF
5466 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5467 _ACEOF
5468 ;;
5469 esac
5470 rm -rf conftest*
5471   if test $ac_cv_sys_file_offset_bits = unknown; then
5472     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5473 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5474 if ${ac_cv_sys_large_files+:} false; then :
5475   $as_echo_n "(cached) " >&6
5476 else
5477   while :; do
5478   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5479 /* end confdefs.h.  */
5480 #include <sys/types.h>
5481  /* Check that off_t can represent 2**63 - 1 correctly.
5482     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5483     since some C++ compilers masquerading as C compilers
5484     incorrectly reject 9223372036854775807.  */
5485 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5486   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5487                        && LARGE_OFF_T % 2147483647 == 1)
5488                       ? 1 : -1];
5489 int
5490 main ()
5491 {
5492
5493   ;
5494   return 0;
5495 }
5496 _ACEOF
5497 if ac_fn_c_try_compile "$LINENO"; then :
5498   ac_cv_sys_large_files=no; break
5499 fi
5500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5501   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5502 /* end confdefs.h.  */
5503 #define _LARGE_FILES 1
5504 #include <sys/types.h>
5505  /* Check that off_t can represent 2**63 - 1 correctly.
5506     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5507     since some C++ compilers masquerading as C compilers
5508     incorrectly reject 9223372036854775807.  */
5509 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5510   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5511                        && LARGE_OFF_T % 2147483647 == 1)
5512                       ? 1 : -1];
5513 int
5514 main ()
5515 {
5516
5517   ;
5518   return 0;
5519 }
5520 _ACEOF
5521 if ac_fn_c_try_compile "$LINENO"; then :
5522   ac_cv_sys_large_files=1; break
5523 fi
5524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5525   ac_cv_sys_large_files=unknown
5526   break
5527 done
5528 fi
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5530 $as_echo "$ac_cv_sys_large_files" >&6; }
5531 case $ac_cv_sys_large_files in #(
5532   no | unknown) ;;
5533   *)
5534 cat >>confdefs.h <<_ACEOF
5535 #define _LARGE_FILES $ac_cv_sys_large_files
5536 _ACEOF
5537 ;;
5538 esac
5539 rm -rf conftest*
5540   fi
5541
5542
5543 fi
5544
5545
5546 ac_ext=c
5547 ac_cpp='$CPP $CPPFLAGS'
5548 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5549 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5550 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5552 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5553 # On Suns, sometimes $CPP names a directory.
5554 if test -n "$CPP" && test -d "$CPP"; then
5555   CPP=
5556 fi
5557 if test -z "$CPP"; then
5558   if ${ac_cv_prog_CPP+:} false; then :
5559   $as_echo_n "(cached) " >&6
5560 else
5561       # Double quotes because CPP needs to be expanded
5562     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5563     do
5564       ac_preproc_ok=false
5565 for ac_c_preproc_warn_flag in '' yes
5566 do
5567   # Use a header file that comes with gcc, so configuring glibc
5568   # with a fresh cross-compiler works.
5569   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5570   # <limits.h> exists even on freestanding compilers.
5571   # On the NeXT, cc -E runs the code through the compiler's parser,
5572   # not just through cpp. "Syntax error" is here to catch this case.
5573   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5574 /* end confdefs.h.  */
5575 #ifdef __STDC__
5576 # include <limits.h>
5577 #else
5578 # include <assert.h>
5579 #endif
5580                      Syntax error
5581 _ACEOF
5582 if ac_fn_c_try_cpp "$LINENO"; then :
5583
5584 else
5585   # Broken: fails on valid input.
5586 continue
5587 fi
5588 rm -f conftest.err conftest.i conftest.$ac_ext
5589
5590   # OK, works on sane cases.  Now check whether nonexistent headers
5591   # can be detected and how.
5592   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5593 /* end confdefs.h.  */
5594 #include <ac_nonexistent.h>
5595 _ACEOF
5596 if ac_fn_c_try_cpp "$LINENO"; then :
5597   # Broken: success on invalid input.
5598 continue
5599 else
5600   # Passes both tests.
5601 ac_preproc_ok=:
5602 break
5603 fi
5604 rm -f conftest.err conftest.i conftest.$ac_ext
5605
5606 done
5607 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5608 rm -f conftest.i conftest.err conftest.$ac_ext
5609 if $ac_preproc_ok; then :
5610   break
5611 fi
5612
5613     done
5614     ac_cv_prog_CPP=$CPP
5615
5616 fi
5617   CPP=$ac_cv_prog_CPP
5618 else
5619   ac_cv_prog_CPP=$CPP
5620 fi
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5622 $as_echo "$CPP" >&6; }
5623 ac_preproc_ok=false
5624 for ac_c_preproc_warn_flag in '' yes
5625 do
5626   # Use a header file that comes with gcc, so configuring glibc
5627   # with a fresh cross-compiler works.
5628   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5629   # <limits.h> exists even on freestanding compilers.
5630   # On the NeXT, cc -E runs the code through the compiler's parser,
5631   # not just through cpp. "Syntax error" is here to catch this case.
5632   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5633 /* end confdefs.h.  */
5634 #ifdef __STDC__
5635 # include <limits.h>
5636 #else
5637 # include <assert.h>
5638 #endif
5639                      Syntax error
5640 _ACEOF
5641 if ac_fn_c_try_cpp "$LINENO"; then :
5642
5643 else
5644   # Broken: fails on valid input.
5645 continue
5646 fi
5647 rm -f conftest.err conftest.i conftest.$ac_ext
5648
5649   # OK, works on sane cases.  Now check whether nonexistent headers
5650   # can be detected and how.
5651   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5652 /* end confdefs.h.  */
5653 #include <ac_nonexistent.h>
5654 _ACEOF
5655 if ac_fn_c_try_cpp "$LINENO"; then :
5656   # Broken: success on invalid input.
5657 continue
5658 else
5659   # Passes both tests.
5660 ac_preproc_ok=:
5661 break
5662 fi
5663 rm -f conftest.err conftest.i conftest.$ac_ext
5664
5665 done
5666 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5667 rm -f conftest.i conftest.err conftest.$ac_ext
5668 if $ac_preproc_ok; then :
5669
5670 else
5671   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5672 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5673 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5674 See \`config.log' for more details" "$LINENO" 5; }
5675 fi
5676
5677 ac_ext=c
5678 ac_cpp='$CPP $CPPFLAGS'
5679 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5680 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5681 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5682
5683
5684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5685 $as_echo_n "checking for ANSI C header files... " >&6; }
5686 if ${ac_cv_header_stdc+:} false; then :
5687   $as_echo_n "(cached) " >&6
5688 else
5689   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5690 /* end confdefs.h.  */
5691 #include <stdlib.h>
5692 #include <stdarg.h>
5693 #include <string.h>
5694 #include <float.h>
5695
5696 int
5697 main ()
5698 {
5699
5700   ;
5701   return 0;
5702 }
5703 _ACEOF
5704 if ac_fn_c_try_compile "$LINENO"; then :
5705   ac_cv_header_stdc=yes
5706 else
5707   ac_cv_header_stdc=no
5708 fi
5709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5710
5711 if test $ac_cv_header_stdc = yes; then
5712   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5713   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5714 /* end confdefs.h.  */
5715 #include <string.h>
5716
5717 _ACEOF
5718 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5719   $EGREP "memchr" >/dev/null 2>&1; then :
5720
5721 else
5722   ac_cv_header_stdc=no
5723 fi
5724 rm -f conftest*
5725
5726 fi
5727
5728 if test $ac_cv_header_stdc = yes; then
5729   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5730   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5731 /* end confdefs.h.  */
5732 #include <stdlib.h>
5733
5734 _ACEOF
5735 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5736   $EGREP "free" >/dev/null 2>&1; then :
5737
5738 else
5739   ac_cv_header_stdc=no
5740 fi
5741 rm -f conftest*
5742
5743 fi
5744
5745 if test $ac_cv_header_stdc = yes; then
5746   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5747   if test "$cross_compiling" = yes; then :
5748   :
5749 else
5750   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5751 /* end confdefs.h.  */
5752 #include <ctype.h>
5753 #include <stdlib.h>
5754 #if ((' ' & 0x0FF) == 0x020)
5755 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5756 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5757 #else
5758 # define ISLOWER(c) \
5759                    (('a' <= (c) && (c) <= 'i') \
5760                      || ('j' <= (c) && (c) <= 'r') \
5761                      || ('s' <= (c) && (c) <= 'z'))
5762 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5763 #endif
5764
5765 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5766 int
5767 main ()
5768 {
5769   int i;
5770   for (i = 0; i < 256; i++)
5771     if (XOR (islower (i), ISLOWER (i))
5772         || toupper (i) != TOUPPER (i))
5773       return 2;
5774   return 0;
5775 }
5776 _ACEOF
5777 if ac_fn_c_try_run "$LINENO"; then :
5778
5779 else
5780   ac_cv_header_stdc=no
5781 fi
5782 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5783   conftest.$ac_objext conftest.beam conftest.$ac_ext
5784 fi
5785
5786 fi
5787 fi
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5789 $as_echo "$ac_cv_header_stdc" >&6; }
5790 if test $ac_cv_header_stdc = yes; then
5791
5792 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5793
5794 fi
5795
5796 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5797 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5798                   inttypes.h stdint.h unistd.h
5799 do :
5800   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5801 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5802 "
5803 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5804   cat >>confdefs.h <<_ACEOF
5805 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5806 _ACEOF
5807
5808 fi
5809
5810 done
5811
5812
5813 for ac_header in \
5814         AL/al.h \
5815         ApplicationServices/ApplicationServices.h \
5816         AudioToolbox/AudioConverter.h \
5817         AudioUnit/AudioUnit.h \
5818         AudioUnit/AudioComponent.h \
5819         CL/cl.h \
5820         Carbon/Carbon.h \
5821         CoreAudio/CoreAudio.h \
5822         CoreServices/CoreServices.h \
5823         DiskArbitration/DiskArbitration.h \
5824         IOKit/IOKitLib.h \
5825         IOKit/hid/IOHIDLib.h \
5826         OpenAL/al.h \
5827         OpenCL/opencl.h \
5828         QuickTime/ImageCompression.h \
5829         Security/Security.h \
5830         alias.h \
5831         alsa/asoundlib.h \
5832         arpa/inet.h \
5833         arpa/nameser.h \
5834         asm/types.h \
5835         capi20.h \
5836         curses.h \
5837         direct.h \
5838         dirent.h \
5839         dlfcn.h \
5840         elf.h \
5841         float.h \
5842         fnmatch.h \
5843         fontconfig/fontconfig.h \
5844         getopt.h \
5845         gettext-po.h \
5846         grp.h \
5847         gsm.h \
5848         gsm/gsm.h \
5849         ieeefp.h \
5850         inet/mib2.h \
5851         io.h \
5852         jpeglib.h \
5853         kstat.h \
5854         lber.h \
5855         lcms.h \
5856         lcms/lcms.h \
5857         ldap.h \
5858         link.h \
5859         linux/cdrom.h \
5860         linux/compiler.h \
5861         linux/filter.h \
5862         linux/hdreg.h \
5863         linux/input.h \
5864         linux/ioctl.h \
5865         linux/joystick.h \
5866         linux/major.h \
5867         linux/param.h \
5868         linux/serial.h \
5869         linux/types.h \
5870         linux/ucdrom.h \
5871         lwp.h \
5872         mach-o/nlist.h \
5873         mach-o/loader.h \
5874         mach/mach.h \
5875         mach/machine.h \
5876         machine/cpu.h \
5877         machine/limits.h \
5878         machine/sysarch.h \
5879         mntent.h \
5880         mpg123.h \
5881         ncurses.h \
5882         netdb.h \
5883         netinet/in.h \
5884         netinet/in_systm.h \
5885         netinet/tcp.h \
5886         netinet/tcp_fsm.h \
5887         openssl/err.h \
5888         openssl/ssl.h \
5889         png.h \
5890         poll.h \
5891         port.h \
5892         process.h \
5893         pthread.h \
5894         pwd.h \
5895         sched.h \
5896         scsi/scsi.h \
5897         scsi/scsi_ioctl.h \
5898         scsi/sg.h \
5899         stdbool.h \
5900         stdint.h \
5901         stropts.h \
5902         sys/asoundlib.h \
5903         sys/attr.h \
5904         sys/cdio.h \
5905         sys/elf32.h \
5906         sys/epoll.h \
5907         sys/event.h \
5908         sys/exec_elf.h \
5909         sys/filio.h \
5910         sys/inotify.h \
5911         sys/ioctl.h \
5912         sys/ipc.h \
5913         sys/limits.h \
5914         sys/link.h \
5915         sys/mman.h \
5916         sys/modem.h \
5917         sys/msg.h \
5918         sys/mtio.h \
5919         sys/param.h \
5920         sys/poll.h \
5921         sys/prctl.h \
5922         sys/protosw.h \
5923         sys/ptrace.h \
5924         sys/resource.h \
5925         sys/scsiio.h \
5926         sys/shm.h \
5927         sys/signal.h \
5928         sys/socket.h \
5929         sys/socketvar.h \
5930         sys/sockio.h \
5931         sys/statvfs.h \
5932         sys/strtio.h \
5933         sys/syscall.h \
5934         sys/tihdr.h \
5935         sys/time.h \
5936         sys/timeout.h \
5937         sys/times.h \
5938         sys/uio.h \
5939         sys/utsname.h \
5940         sys/vm86.h \
5941         sys/wait.h \
5942         syscall.h \
5943         termios.h \
5944         tiffio.h \
5945         unistd.h \
5946         utime.h \
5947         valgrind/memcheck.h \
5948         valgrind/valgrind.h \
5949         zlib.h
5950
5951 do :
5952   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5953 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5954 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5955   cat >>confdefs.h <<_ACEOF
5956 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5957 _ACEOF
5958
5959 fi
5960
5961 done
5962
5963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
5964 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
5965 if ${ac_cv_header_stat_broken+:} false; then :
5966   $as_echo_n "(cached) " >&6
5967 else
5968   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5969 /* end confdefs.h.  */
5970 #include <sys/types.h>
5971 #include <sys/stat.h>
5972
5973 #if defined S_ISBLK && defined S_IFDIR
5974 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
5975 #endif
5976
5977 #if defined S_ISBLK && defined S_IFCHR
5978 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
5979 #endif
5980
5981 #if defined S_ISLNK && defined S_IFREG
5982 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
5983 #endif
5984
5985 #if defined S_ISSOCK && defined S_IFREG
5986 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
5987 #endif
5988
5989 _ACEOF
5990 if ac_fn_c_try_compile "$LINENO"; then :
5991   ac_cv_header_stat_broken=no
5992 else
5993   ac_cv_header_stat_broken=yes
5994 fi
5995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5996 fi
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
5998 $as_echo "$ac_cv_header_stat_broken" >&6; }
5999 if test $ac_cv_header_stat_broken = yes; then
6000
6001 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6002
6003 fi
6004
6005
6006
6007 for ac_header in sys/mount.h sys/statfs.h sys/sysctl.h sys/user.h sys/vfs.h
6008 do :
6009   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6010 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6011      #ifdef HAVE_SYS_PARAM_H
6012      # include <sys/param.h>
6013      #endif
6014 "
6015 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6016   cat >>confdefs.h <<_ACEOF
6017 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6018 _ACEOF
6019
6020 fi
6021
6022 done
6023
6024
6025 for ac_header in \
6026         netinet/ip.h \
6027         net/if.h \
6028         net/if_arp.h \
6029         net/if_dl.h \
6030         net/if_types.h \
6031         net/route.h \
6032         netinet/if_ether.h \
6033         netinet/if_inarp.h \
6034         netinet/in_pcb.h \
6035         netinet/ip_icmp.h \
6036         netinet/ip_var.h \
6037         netinet/udp.h \
6038         netipx/ipx.h \
6039         sys/un.h \
6040
6041 do :
6042   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6043 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6044      #ifdef HAVE_SYS_SOCKET_H
6045      # include <sys/socket.h>
6046      #endif
6047      #ifdef HAVE_SYS_SOCKETVAR_H
6048      # include <sys/socketvar.h>
6049      #endif
6050      #ifdef HAVE_NET_ROUTE_H
6051      # include <net/route.h>
6052      #endif
6053      #ifdef HAVE_NETINET_IN_H
6054      # include <netinet/in.h>
6055      #endif
6056      #ifdef HAVE_NETINET_IN_SYSTM_H
6057      # include <netinet/in_systm.h>
6058      #endif
6059      #ifdef HAVE_NET_IF_H
6060      # include <net/if.h>
6061      #endif
6062      #ifdef HAVE_NETINET_IP_H
6063      # include <netinet/ip.h>
6064      #endif
6065 "
6066 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6067   cat >>confdefs.h <<_ACEOF
6068 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6069 _ACEOF
6070
6071 fi
6072
6073 done
6074
6075
6076 for ac_header in netinet/tcp_timer.h netinet/udp_var.h netinet/icmp_var.h netinet/tcp_var.h
6077 do :
6078   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6079 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6080      #ifdef HAVE_ALIAS_H
6081      # include <alias.h>
6082      #endif
6083      #ifdef HAVE_SYS_SOCKET_H
6084      # include <sys/socket.h>
6085      #endif
6086      #ifdef HAVE_SYS_SOCKETVAR_H
6087      # include <sys/socketvar.h>
6088      #endif
6089      #ifdef HAVE_SYS_TIMEOUT_H
6090      # include <sys/timeout.h>
6091      #endif
6092      #ifdef HAVE_NETINET_IN_H
6093      # include <netinet/in.h>
6094      #endif
6095      #ifdef HAVE_NETINET_IN_SYSTM_H
6096      # include <netinet/in_systm.h>
6097      #endif
6098      #ifdef HAVE_NETINET_IP_H
6099      # include <netinet/ip.h>
6100      #endif
6101      #ifdef HAVE_NETINET_IP_VAR_H
6102      # include <netinet/ip_var.h>
6103      #endif
6104      #ifdef HAVE_NETINET_IP_ICMP_H
6105      # include <netinet/ip_icmp.h>
6106      #endif
6107      #ifdef HAVE_NETINET_UDP_H
6108      # include <netinet/udp.h>
6109      #endif
6110      #ifdef HAVE_NETINET_TCP_H
6111      # include <netinet/tcp.h>
6112      #endif
6113      #ifdef HAVE_NETINET_TCP_TIMER_H
6114      #include <netinet/tcp_timer.h>
6115      #endif
6116 "
6117 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6118   cat >>confdefs.h <<_ACEOF
6119 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6120 _ACEOF
6121
6122 fi
6123
6124 done
6125
6126
6127 for ac_header in linux/ipx.h linux/irda.h
6128 do :
6129   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6130 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6131      #ifdef HAVE_ASM_TYPES_H
6132      # include <asm/types.h>
6133      #endif
6134      #ifdef HAVE_SYS_SOCKET_H
6135      # include <sys/socket.h>
6136      #endif
6137      #ifdef HAVE_LINUX_TYPES_H
6138      # include <linux/types.h>
6139      #endif
6140 "
6141 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6142   cat >>confdefs.h <<_ACEOF
6143 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6144 _ACEOF
6145
6146 fi
6147
6148 done
6149
6150
6151 for ac_header in mach-o/dyld_images.h
6152 do :
6153   ac_fn_c_check_header_compile "$LINENO" "mach-o/dyld_images.h" "ac_cv_header_mach_o_dyld_images_h" "#ifdef HAVE_STDBOOL_H
6154      # include <stdbool.h>
6155      #endif
6156      #ifdef HAVE_STDINT_H
6157      # include <stdint.h>
6158      #endif
6159 "
6160 if test "x$ac_cv_header_mach_o_dyld_images_h" = xyes; then :
6161   cat >>confdefs.h <<_ACEOF
6162 #define HAVE_MACH_O_DYLD_IMAGES_H 1
6163 _ACEOF
6164
6165 fi
6166
6167 done
6168
6169
6170 for ac_header in resolv.h
6171 do :
6172   ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "#include <sys/types.h>
6173      #ifdef HAVE_SYS_SOCKET_H
6174      # include <sys/socket.h>
6175      #endif
6176      #ifdef HAVE_NETINET_IN_H
6177      # include <netinet/in.h>
6178      #endif
6179      #ifdef HAVE_ARPA_NAMESER_H
6180      # include <arpa/nameser.h>
6181      #endif
6182 "
6183 if test "x$ac_cv_header_resolv_h" = xyes; then :
6184   cat >>confdefs.h <<_ACEOF
6185 #define HAVE_RESOLV_H 1
6186 _ACEOF
6187
6188 fi
6189
6190 done
6191
6192
6193 for ac_header in ifaddrs.h
6194 do :
6195   ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "#include <sys/types.h>
6196 "
6197 if test "x$ac_cv_header_ifaddrs_h" = xyes; then :
6198   cat >>confdefs.h <<_ACEOF
6199 #define HAVE_IFADDRS_H 1
6200 _ACEOF
6201
6202 fi
6203
6204 done
6205
6206
6207 for ac_header in ucontext.h
6208 do :
6209   ac_fn_c_check_header_compile "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "#include <signal.h>
6210 "
6211 if test "x$ac_cv_header_ucontext_h" = xyes; then :
6212   cat >>confdefs.h <<_ACEOF
6213 #define HAVE_UCONTEXT_H 1
6214 _ACEOF
6215
6216 fi
6217
6218 done
6219
6220
6221 for ac_header in sys/thr.h
6222 do :
6223   ac_fn_c_check_header_compile "$LINENO" "sys/thr.h" "ac_cv_header_sys_thr_h" "#include <sys/types.h>
6224 #ifdef HAVE_UCONTEXT_H
6225 #include <ucontext.h>
6226 #endif
6227 "
6228 if test "x$ac_cv_header_sys_thr_h" = xyes; then :
6229   cat >>confdefs.h <<_ACEOF
6230 #define HAVE_SYS_THR_H 1
6231 _ACEOF
6232
6233 fi
6234
6235 done
6236
6237
6238 for ac_header in pthread_np.h
6239 do :
6240   ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" "#ifdef HAVE_PTHREAD_H
6241 #include <pthread.h>
6242 #endif
6243 "
6244 if test "x$ac_cv_header_pthread_np_h" = xyes; then :
6245   cat >>confdefs.h <<_ACEOF
6246 #define HAVE_PTHREAD_NP_H 1
6247 _ACEOF
6248
6249 fi
6250
6251 done
6252
6253
6254 for ac_header in linux/videodev.h linux/videodev2.h
6255 do :
6256   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6257 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_TIME_H
6258 #include <sys/time.h>
6259 #endif
6260 #include <sys/types.h>
6261 #ifdef HAVE_ASM_TYPES_H
6262 #include <asm/types.h>
6263 #endif
6264 "
6265 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6266   cat >>confdefs.h <<_ACEOF
6267 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6268 _ACEOF
6269
6270 fi
6271
6272 done
6273
6274
6275 for ac_header in linux/capi.h
6276 do :
6277   ac_fn_c_check_header_compile "$LINENO" "linux/capi.h" "ac_cv_header_linux_capi_h" "#define __user
6278 "
6279 if test "x$ac_cv_header_linux_capi_h" = xyes; then :
6280   cat >>confdefs.h <<_ACEOF
6281 #define HAVE_LINUX_CAPI_H 1
6282 _ACEOF
6283
6284 fi
6285
6286 done
6287
6288
6289
6290 DLLEXT=""
6291
6292 DLLFLAGS="-D_REENTRANT"
6293
6294 LDSHARED=""
6295
6296 LDDLLFLAGS=""
6297
6298 LIBEXT="so"
6299
6300 IMPLIBEXT="def"
6301
6302 LDRPATH_INSTALL=""
6303
6304 LDRPATH_LOCAL=""
6305
6306 STATIC_IMPLIBEXT="def.a"
6307 # Extract the first word of "ldd", so it can be a program name with args.
6308 set dummy ldd; ac_word=$2
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6310 $as_echo_n "checking for $ac_word... " >&6; }
6311 if ${ac_cv_path_LDD+:} false; then :
6312   $as_echo_n "(cached) " >&6
6313 else
6314   case $LDD in
6315   [\\/]* | ?:[\\/]*)
6316   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
6317   ;;
6318   *)
6319   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6320 as_dummy="/sbin:/usr/sbin:$PATH"
6321 for as_dir in $as_dummy
6322 do
6323   IFS=$as_save_IFS
6324   test -z "$as_dir" && as_dir=.
6325     for ac_exec_ext in '' $ac_executable_extensions; do
6326   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6327     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
6328     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6329     break 2
6330   fi
6331 done
6332   done
6333 IFS=$as_save_IFS
6334
6335   test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
6336   ;;
6337 esac
6338 fi
6339 LDD=$ac_cv_path_LDD
6340 if test -n "$LDD"; then
6341   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
6342 $as_echo "$LDD" >&6; }
6343 else
6344   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6345 $as_echo "no" >&6; }
6346 fi
6347
6348
6349 if test -n "$ac_tool_prefix"; then
6350   for ac_prog in readelf
6351   do
6352     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6353 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6355 $as_echo_n "checking for $ac_word... " >&6; }
6356 if ${ac_cv_prog_READELF+:} false; then :
6357   $as_echo_n "(cached) " >&6
6358 else
6359   if test -n "$READELF"; then
6360   ac_cv_prog_READELF="$READELF" # Let the user override the test.
6361 else
6362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6363 for as_dir in $PATH
6364 do
6365   IFS=$as_save_IFS
6366   test -z "$as_dir" && as_dir=.
6367     for ac_exec_ext in '' $ac_executable_extensions; do
6368   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6369     ac_cv_prog_READELF="$ac_tool_prefix$ac_prog"
6370     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6371     break 2
6372   fi
6373 done
6374   done
6375 IFS=$as_save_IFS
6376
6377 fi
6378 fi
6379 READELF=$ac_cv_prog_READELF
6380 if test -n "$READELF"; then
6381   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
6382 $as_echo "$READELF" >&6; }
6383 else
6384   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6385 $as_echo "no" >&6; }
6386 fi
6387
6388
6389     test -n "$READELF" && break
6390   done
6391 fi
6392 if test -z "$READELF"; then
6393   ac_ct_READELF=$READELF
6394   for ac_prog in readelf
6395 do
6396   # Extract the first word of "$ac_prog", so it can be a program name with args.
6397 set dummy $ac_prog; ac_word=$2
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6399 $as_echo_n "checking for $ac_word... " >&6; }
6400 if ${ac_cv_prog_ac_ct_READELF+:} false; then :
6401   $as_echo_n "(cached) " >&6
6402 else
6403   if test -n "$ac_ct_READELF"; then
6404   ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test.
6405 else
6406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6407 for as_dir in $PATH
6408 do
6409   IFS=$as_save_IFS
6410   test -z "$as_dir" && as_dir=.
6411     for ac_exec_ext in '' $ac_executable_extensions; do
6412   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6413     ac_cv_prog_ac_ct_READELF="$ac_prog"
6414     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6415     break 2
6416   fi
6417 done
6418   done
6419 IFS=$as_save_IFS
6420
6421 fi
6422 fi
6423 ac_ct_READELF=$ac_cv_prog_ac_ct_READELF
6424 if test -n "$ac_ct_READELF"; then
6425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_READELF" >&5
6426 $as_echo "$ac_ct_READELF" >&6; }
6427 else
6428   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6429 $as_echo "no" >&6; }
6430 fi
6431
6432
6433   test -n "$ac_ct_READELF" && break
6434 done
6435
6436   if test "x$ac_ct_READELF" = x; then
6437     READELF="true"
6438   else
6439     case $cross_compiling:$ac_tool_warned in
6440 yes:)
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6442 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6443 ac_tool_warned=yes ;;
6444 esac
6445     READELF=$ac_ct_READELF
6446   fi
6447 fi
6448
6449
6450 case $host_os in
6451   cygwin*|mingw32*)
6452     if test -n "$ac_tool_prefix"; then
6453   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6454 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6456 $as_echo_n "checking for $ac_word... " >&6; }
6457 if ${ac_cv_prog_DLLTOOL+:} false; then :
6458   $as_echo_n "(cached) " >&6
6459 else
6460   if test -n "$DLLTOOL"; then
6461   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6462 else
6463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6464 for as_dir in $PATH
6465 do
6466   IFS=$as_save_IFS
6467   test -z "$as_dir" && as_dir=.
6468     for ac_exec_ext in '' $ac_executable_extensions; do
6469   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6470     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6471     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6472     break 2
6473   fi
6474 done
6475   done
6476 IFS=$as_save_IFS
6477
6478 fi
6479 fi
6480 DLLTOOL=$ac_cv_prog_DLLTOOL
6481 if test -n "$DLLTOOL"; then
6482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6483 $as_echo "$DLLTOOL" >&6; }
6484 else
6485   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6486 $as_echo "no" >&6; }
6487 fi
6488
6489
6490 fi
6491 if test -z "$ac_cv_prog_DLLTOOL"; then
6492   ac_ct_DLLTOOL=$DLLTOOL
6493   # Extract the first word of "dlltool", so it can be a program name with args.
6494 set dummy dlltool; ac_word=$2
6495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6496 $as_echo_n "checking for $ac_word... " >&6; }
6497 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6498   $as_echo_n "(cached) " >&6
6499 else
6500   if test -n "$ac_ct_DLLTOOL"; then
6501   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6502 else
6503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6504 for as_dir in $PATH
6505 do
6506   IFS=$as_save_IFS
6507   test -z "$as_dir" && as_dir=.
6508     for ac_exec_ext in '' $ac_executable_extensions; do
6509   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6510     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6511     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6512     break 2
6513   fi
6514 done
6515   done
6516 IFS=$as_save_IFS
6517
6518 fi
6519 fi
6520 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6521 if test -n "$ac_ct_DLLTOOL"; then
6522   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6523 $as_echo "$ac_ct_DLLTOOL" >&6; }
6524 else
6525   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6526 $as_echo "no" >&6; }
6527 fi
6528
6529   if test "x$ac_ct_DLLTOOL" = x; then
6530     DLLTOOL="false"
6531   else
6532     case $cross_compiling:$ac_tool_warned in
6533 yes:)
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6535 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6536 ac_tool_warned=yes ;;
6537 esac
6538     DLLTOOL=$ac_ct_DLLTOOL
6539   fi
6540 else
6541   DLLTOOL="$ac_cv_prog_DLLTOOL"
6542 fi
6543
6544     if test -n "$ac_tool_prefix"; then
6545   # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
6546 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6548 $as_echo_n "checking for $ac_word... " >&6; }
6549 if ${ac_cv_prog_DLLWRAP+:} false; then :
6550   $as_echo_n "(cached) " >&6
6551 else
6552   if test -n "$DLLWRAP"; then
6553   ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
6554 else
6555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6556 for as_dir in $PATH
6557 do
6558   IFS=$as_save_IFS
6559   test -z "$as_dir" && as_dir=.
6560     for ac_exec_ext in '' $ac_executable_extensions; do
6561   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6562     ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
6563     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6564     break 2
6565   fi
6566 done
6567   done
6568 IFS=$as_save_IFS
6569
6570 fi
6571 fi
6572 DLLWRAP=$ac_cv_prog_DLLWRAP
6573 if test -n "$DLLWRAP"; then
6574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLWRAP" >&5
6575 $as_echo "$DLLWRAP" >&6; }
6576 else
6577   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6578 $as_echo "no" >&6; }
6579 fi
6580
6581
6582 fi
6583 if test -z "$ac_cv_prog_DLLWRAP"; then
6584   ac_ct_DLLWRAP=$DLLWRAP
6585   # Extract the first word of "dllwrap", so it can be a program name with args.
6586 set dummy dllwrap; ac_word=$2
6587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6588 $as_echo_n "checking for $ac_word... " >&6; }
6589 if ${ac_cv_prog_ac_ct_DLLWRAP+:} false; then :
6590   $as_echo_n "(cached) " >&6
6591 else
6592   if test -n "$ac_ct_DLLWRAP"; then
6593   ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
6594 else
6595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6596 for as_dir in $PATH
6597 do
6598   IFS=$as_save_IFS
6599   test -z "$as_dir" && as_dir=.
6600     for ac_exec_ext in '' $ac_executable_extensions; do
6601   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6602     ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
6603     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6604     break 2
6605   fi
6606 done
6607   done
6608 IFS=$as_save_IFS
6609
6610 fi
6611 fi
6612 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
6613 if test -n "$ac_ct_DLLWRAP"; then
6614   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLWRAP" >&5
6615 $as_echo "$ac_ct_DLLWRAP" >&6; }
6616 else
6617   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6618 $as_echo "no" >&6; }
6619 fi
6620
6621   if test "x$ac_ct_DLLWRAP" = x; then
6622     DLLWRAP="false"
6623   else
6624     case $cross_compiling:$ac_tool_warned in
6625 yes:)
6626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6627 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6628 ac_tool_warned=yes ;;
6629 esac
6630     DLLWRAP=$ac_ct_DLLWRAP
6631   fi
6632 else
6633   DLLWRAP="$ac_cv_prog_DLLWRAP"
6634 fi
6635
6636     if test "$DLLWRAP" = "false"; then
6637       LIBEXT="a"
6638     else
6639             LIBEXT="dll"
6640     fi
6641     IMPLIBEXT="a"
6642     STATIC_IMPLIBEXT="a"
6643         enable_iphlpapi=${enable_iphlpapi:-no}
6644     enable_kernel32=${enable_kernel32:-no}
6645     enable_msvcrt=${enable_msvcrt:-no}
6646     enable_ntdll=${enable_ntdll:-no}
6647     enable_ws2_32=${enable_ws2_32:-no}
6648     enable_loader=${enable_loader:-no}
6649     enable_server=${enable_server:-no}
6650         with_x=${with_x:-no}
6651     with_pthread=${with_pthread:-no}
6652     ;;
6653   darwin*|macosx*)
6654     DLLEXT=".so"
6655     LIBEXT="dylib"
6656     DLLFLAGS="$DLLFLAGS -fPIC"
6657     LDDLLFLAGS="-bundle -multiply_defined suppress"
6658     LIBWINE_LDFLAGS="-multiply_defined suppress"
6659     LDSHARED="\$(CC) -dynamiclib"
6660     LDRPATH_LOCAL="&& install_name_tool -change @executable_path/\`\$(RELPATH) \$(bindir) \$(libdir)\`/libwine.1.dylib @executable_path/\$(top_builddir)/libs/wine/libwine.1.dylib \$@ || \$(RM) \$@"
6661         COREFOUNDATIONLIB="-framework CoreFoundation"
6662
6663     IOKITLIB="-framework IOKit -framework CoreFoundation"
6664
6665     APPLICATIONSERVICESLIB="-framework ApplicationServices"
6666
6667     CORESERVICESLIB="-framework CoreServices"
6668
6669     case $host_os in
6670       darwin11*)
6671         LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-macosx_version_min,10.6,-segaddr,WINE_DOS,0x00001000,-segaddr,WINE_SHAREDHEAP,0x7f000000,-sectcreate,__TEXT,__info_plist,wine_info.plist"
6672  ;;
6673       *)
6674         LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00001000,-segaddr,WINE_SHAREDHEAP,0x7f000000,-sectcreate,__TEXT,__info_plist,wine_info.plist"
6675  ;;
6676     esac
6677     if test "$ac_cv_header_DiskArbitration_DiskArbitration_h" = "yes"
6678     then
6679                 DISKARBITRATIONLIB="-framework DiskArbitration -framework CoreFoundation"
6680
6681     fi
6682     if test "$ac_cv_header_Security_Security_h" = "yes"
6683     then
6684         SECURITYLIB="-framework Security -framework CoreFoundation"
6685
6686                 ac_save_LIBS="$LIBS"
6687         LIBS="$LIBS $SECURITYLIB"
6688         for ac_func in SSLCopyPeerCertificates
6689 do :
6690   ac_fn_c_check_func "$LINENO" "SSLCopyPeerCertificates" "ac_cv_func_SSLCopyPeerCertificates"
6691 if test "x$ac_cv_func_SSLCopyPeerCertificates" = xyes; then :
6692   cat >>confdefs.h <<_ACEOF
6693 #define HAVE_SSLCOPYPEERCERTIFICATES 1
6694 _ACEOF
6695
6696 fi
6697 done
6698
6699         LIBS="$ac_save_LIBS"
6700         with_gnutls=${with_gnutls:-no}
6701     fi
6702     if test "$ac_cv_header_CoreAudio_CoreAudio_h" = "yes" -a "$ac_cv_header_AudioUnit_AudioUnit_h" = "yes"
6703     then
6704         if test "$ac_cv_header_AudioUnit_AudioComponent_h" = "yes"
6705         then
6706             COREAUDIO="-framework CoreFoundation -framework CoreAudio -framework AudioUnit -framework AudioToolbox -framework CoreMIDI"
6707
6708         else
6709                         COREAUDIO="-framework CoreAudio -framework AudioUnit -framework CoreServices -framework AudioToolbox -framework CoreMIDI"
6710
6711         fi
6712                 ac_save_LIBS="$LIBS"
6713         LIBS="$LIBS $COREAUDIO"
6714         for ac_func in AUGraphAddNode
6715 do :
6716   ac_fn_c_check_func "$LINENO" "AUGraphAddNode" "ac_cv_func_AUGraphAddNode"
6717 if test "x$ac_cv_func_AUGraphAddNode" = xyes; then :
6718   cat >>confdefs.h <<_ACEOF
6719 #define HAVE_AUGRAPHADDNODE 1
6720 _ACEOF
6721
6722 fi
6723 done
6724
6725         LIBS="$ac_save_LIBS"
6726     fi
6727     if test "$ac_cv_header_OpenAL_al_h" = "yes"
6728     then
6729         FRAMEWORK_OPENAL="-framework OpenAL"
6730
6731
6732 cat >>confdefs.h <<_ACEOF
6733 #define HAVE_OPENAL 1
6734 _ACEOF
6735
6736         ac_cv_lib_openal=yes
6737     fi
6738     if test "$ac_cv_header_OpenCL_opencl_h" = "yes"
6739     then
6740         LIBOPENCL="-framework OpenCL"
6741
6742         ac_cv_lib_OpenCL_clGetPlatformInfo=yes
6743     fi
6744     if test "$ac_cv_header_IOKit_hid_IOHIDLib_h" = "yes"
6745     then
6746         ac_save_LIBS="$LIBS"
6747         LIBS="$LIBS $IOKITLIB"
6748         for ac_func in IOHIDManagerCreate
6749 do :
6750   ac_fn_c_check_func "$LINENO" "IOHIDManagerCreate" "ac_cv_func_IOHIDManagerCreate"
6751 if test "x$ac_cv_func_IOHIDManagerCreate" = xyes; then :
6752   cat >>confdefs.h <<_ACEOF
6753 #define HAVE_IOHIDMANAGERCREATE 1
6754 _ACEOF
6755
6756 fi
6757 done
6758
6759         LIBS="$ac_save_LIBS"
6760     fi
6761     case $host_cpu in
6762       *powerpc*)
6763         LDDLLFLAGS="$LDDLLFLAGS -read_only_relocs warning"          ;;
6764     esac
6765     if test "$ac_cv_header_QuickTime_ImageCompression_h" = "yes"
6766     then
6767         QUICKTIMELIB="-framework QuickTime -framework ApplicationServices -framework CoreVideo"
6768
6769         enable_wineqtdecoder=${enable_wineqtdecoder:-yes}
6770     else
6771         as_fn_append wine_notices "|QuickTime ${notice_platform}development files not found, video decoding won't be supported."
6772     fi
6773     if test "$ac_cv_header_Carbon_Carbon_h" = "yes"
6774     then
6775         CARBONLIB="-framework Carbon"
6776
6777     fi
6778
6779         if test "$ac_cv_header_ApplicationServices_ApplicationServices_h" = "yes"
6780     then
6781         ac_save_LIBS="$LIBS"
6782         LIBS="$LIBS $APPLICATIONSERVICESLIB"
6783         ac_fn_c_check_func "$LINENO" "CGDisplayModeGetWidth" "ac_cv_func_CGDisplayModeGetWidth"
6784 if test "x$ac_cv_func_CGDisplayModeGetWidth" = xyes; then :
6785   enable_winemac_drv=${enable_winemac_drv:-yes}
6786 fi
6787
6788         LIBS="$ac_save_LIBS"
6789     fi
6790
6791         if test "x$enable_win16" = "xyes"
6792     then
6793         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 16-bit code can be built correctly" >&5
6794 $as_echo_n "checking whether 16-bit code can be built correctly... " >&6; }
6795         if test "$cross_compiling" = yes; then :
6796   { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5
6797 $as_echo "cross-compiling, assuming yes" >&6; }
6798 else
6799   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6800 /* end confdefs.h.  */
6801 asm(".text\n"
6802                                             "bad:\tnop;nop\n"
6803                                             "good:\tnop;nop\n\t"
6804                                             ".globl _testfunc\n"
6805                                             "_testfunc:\tcallw good");
6806                                         extern void testfunc();
6807 int
6808 main ()
6809 {
6810 unsigned short *p = (unsigned short *)testfunc;
6811                                         return p[0] != 0xe866 || p[1] != 0xfffa
6812   ;
6813   return 0;
6814 }
6815 _ACEOF
6816 if ac_fn_c_try_run "$LINENO"; then :
6817   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6818 $as_echo "yes" >&6; }
6819 else
6820   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6821 $as_echo "no" >&6; }
6822                                        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
6823 fi
6824 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6825   conftest.$ac_objext conftest.beam conftest.$ac_ext
6826 fi
6827
6828     fi
6829     ;;
6830   *)
6831     DLLFLAGS="$DLLFLAGS -fPIC"
6832     DLLEXT=".so"
6833     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a GNU style ELF dll" >&5
6834 $as_echo_n "checking whether we can build a GNU style ELF dll... " >&6; }
6835 if ${ac_cv_c_dll_gnuelf+:} false; then :
6836   $as_echo_n "(cached) " >&6
6837 else
6838   ac_wine_try_cflags_saved=$CFLAGS
6839 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic"
6840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6841 /* end confdefs.h.  */
6842 void myfunc() {}
6843 _ACEOF
6844 if ac_fn_c_try_link "$LINENO"; then :
6845   ac_cv_c_dll_gnuelf="yes"
6846 else
6847   ac_cv_c_dll_gnuelf="no"
6848 fi
6849 rm -f core conftest.err conftest.$ac_objext \
6850     conftest$ac_exeext conftest.$ac_ext
6851 CFLAGS=$ac_wine_try_cflags_saved
6852 fi
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_gnuelf" >&5
6854 $as_echo "$ac_cv_c_dll_gnuelf" >&6; }
6855     if test "$ac_cv_c_dll_gnuelf" = "yes"
6856     then
6857       LDSHARED="\$(CC) -shared"
6858       LDDLLFLAGS="-shared -Wl,-Bsymbolic"
6859       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1" >&5
6860 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1... " >&6; }
6861 if ${ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1+:} false; then :
6862   $as_echo_n "(cached) " >&6
6863 else
6864   ac_wine_try_cflags_saved=$CFLAGS
6865 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,confest.so.1"
6866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6867 /* end confdefs.h.  */
6868 int main(int argc, char **argv) { return 0; }
6869 _ACEOF
6870 if ac_fn_c_try_link "$LINENO"; then :
6871   ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=yes
6872 else
6873   ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=no
6874 fi
6875 rm -f core conftest.err conftest.$ac_objext \
6876     conftest$ac_exeext conftest.$ac_ext
6877 CFLAGS=$ac_wine_try_cflags_saved
6878 fi
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&5
6880 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&6; }
6881 if test $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1 = yes; then :
6882   LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
6883 else
6884   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1" >&5
6885 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1... " >&6; }
6886 if ${ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1+:} false; then :
6887   $as_echo_n "(cached) " >&6
6888 else
6889   ac_wine_try_cflags_saved=$CFLAGS
6890 CFLAGS="$CFLAGS -fPIC -shared -Wl,-h,confest.so.1"
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__fPIC__shared__Wl__h_confest_so_1=yes
6897 else
6898   ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=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__fPIC__shared__Wl__h_confest_so_1" >&5
6905 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&6; }
6906 if test $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1 = yes; then :
6907   LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-h,%)"
6908 fi
6909 fi
6910
6911       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs" >&5
6912 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs... " >&6; }
6913 if ${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs+:} false; then :
6914   $as_echo_n "(cached) " >&6
6915 else
6916   ac_wine_try_cflags_saved=$CFLAGS
6917 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
6918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6919 /* end confdefs.h.  */
6920 int main(int argc, char **argv) { return 0; }
6921 _ACEOF
6922 if ac_fn_c_try_link "$LINENO"; then :
6923   ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=yes
6924 else
6925   ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=no
6926 fi
6927 rm -f core conftest.err conftest.$ac_objext \
6928     conftest$ac_exeext conftest.$ac_ext
6929 CFLAGS=$ac_wine_try_cflags_saved
6930 fi
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&5
6932 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&6; }
6933 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs = yes; then :
6934   LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
6935 fi
6936
6937       { $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
6938 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini... " >&6; }
6939 if ${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini+:} false; then :
6940   $as_echo_n "(cached) " >&6
6941 else
6942   ac_wine_try_cflags_saved=$CFLAGS
6943 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
6944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6945 /* end confdefs.h.  */
6946 int main(int argc, char **argv) { return 0; }
6947 _ACEOF
6948 if ac_fn_c_try_link "$LINENO"; then :
6949   ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=yes
6950 else
6951   ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=no
6952 fi
6953 rm -f core conftest.err conftest.$ac_objext \
6954     conftest$ac_exeext conftest.$ac_ext
6955 CFLAGS=$ac_wine_try_cflags_saved
6956 fi
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&5
6958 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&6; }
6959 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini = yes; then :
6960   LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
6961 fi
6962
6963       echo '{ global: *; };' >conftest.map
6964       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map" >&5
6965 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map... " >&6; }
6966 if ${ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map+:} false; then :
6967   $as_echo_n "(cached) " >&6
6968 else
6969   ac_wine_try_cflags_saved=$CFLAGS
6970 CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
6971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6972 /* end confdefs.h.  */
6973 int main(int argc, char **argv) { return 0; }
6974 _ACEOF
6975 if ac_fn_c_try_link "$LINENO"; then :
6976   ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=yes
6977 else
6978   ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=no
6979 fi
6980 rm -f core conftest.err conftest.$ac_objext \
6981     conftest$ac_exeext conftest.$ac_ext
6982 CFLAGS=$ac_wine_try_cflags_saved
6983 fi
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&5
6985 $as_echo "$ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&6; }
6986 if test $ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map = yes; then :
6987   LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)"
6988 fi
6989       rm -f conftest.map
6990
6991       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5
6992 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--export-dynamic... " >&6; }
6993 if ${ac_cv_cflags__fPIC__Wl___export_dynamic+:} false; then :
6994   $as_echo_n "(cached) " >&6
6995 else
6996   ac_wine_try_cflags_saved=$CFLAGS
6997 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
6998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6999 /* end confdefs.h.  */
7000 int main(int argc, char **argv) { return 0; }
7001 _ACEOF
7002 if ac_fn_c_try_link "$LINENO"; then :
7003   ac_cv_cflags__fPIC__Wl___export_dynamic=yes
7004 else
7005   ac_cv_cflags__fPIC__Wl___export_dynamic=no
7006 fi
7007 rm -f core conftest.err conftest.$ac_objext \
7008     conftest$ac_exeext conftest.$ac_ext
7009 CFLAGS=$ac_wine_try_cflags_saved
7010 fi
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__Wl___export_dynamic" >&5
7012 $as_echo "$ac_cv_cflags__fPIC__Wl___export_dynamic" >&6; }
7013 if test $ac_cv_cflags__fPIC__Wl___export_dynamic = yes; then :
7014   LDEXECFLAGS="-Wl,--export-dynamic"
7015
7016 fi
7017
7018       as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,--rpath,\\$ORIGIN/../lib" | $as_tr_sh`
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib" >&5
7020 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... " >&6; }
7021 if eval \${$as_ac_var+:} false; then :
7022   $as_echo_n "(cached) " >&6
7023 else
7024   ac_wine_try_cflags_saved=$CFLAGS
7025 CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
7026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7027 /* end confdefs.h.  */
7028 int main(int argc, char **argv) { return 0; }
7029 _ACEOF
7030 if ac_fn_c_try_link "$LINENO"; then :
7031   eval "$as_ac_var=yes"
7032 else
7033   eval "$as_ac_var=no"
7034 fi
7035 rm -f core conftest.err conftest.$ac_objext \
7036     conftest$ac_exeext conftest.$ac_ext
7037 CFLAGS=$ac_wine_try_cflags_saved
7038 fi
7039 eval ac_res=\$$as_ac_var
7040                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7041 $as_echo "$ac_res" >&6; }
7042 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
7043   LDRPATH_INSTALL="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
7044                        LDRPATH_LOCAL="-Wl,--rpath,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
7045 else
7046   as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,-R,\\$ORIGIN/../lib" | $as_tr_sh`
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib" >&5
7048 $as_echo_n "checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib... " >&6; }
7049 if eval \${$as_ac_var+:} false; then :
7050   $as_echo_n "(cached) " >&6
7051 else
7052   ac_wine_try_cflags_saved=$CFLAGS
7053 CFLAGS="$CFLAGS -fPIC -Wl,-R,\$ORIGIN/../lib"
7054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7055 /* end confdefs.h.  */
7056 int main(int argc, char **argv) { return 0; }
7057 _ACEOF
7058 if ac_fn_c_try_link "$LINENO"; then :
7059   eval "$as_ac_var=yes"
7060 else
7061   eval "$as_ac_var=no"
7062 fi
7063 rm -f core conftest.err conftest.$ac_objext \
7064     conftest$ac_exeext conftest.$ac_ext
7065 CFLAGS=$ac_wine_try_cflags_saved
7066 fi
7067 eval ac_res=\$$as_ac_var
7068                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7069 $as_echo "$ac_res" >&6; }
7070 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
7071   LDRPATH_INSTALL="-Wl,-R,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
7072                             LDRPATH_LOCAL="-Wl,-R,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
7073 fi
7074 fi
7075
7076       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--enable-new-dtags" >&5
7077 $as_echo_n "checking whether the compiler supports -Wl,--enable-new-dtags... " >&6; }
7078 if ${ac_cv_cflags__Wl___enable_new_dtags+:} false; then :
7079   $as_echo_n "(cached) " >&6
7080 else
7081   ac_wine_try_cflags_saved=$CFLAGS
7082 CFLAGS="$CFLAGS -Wl,--enable-new-dtags"
7083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7084 /* end confdefs.h.  */
7085 int main(int argc, char **argv) { return 0; }
7086 _ACEOF
7087 if ac_fn_c_try_link "$LINENO"; then :
7088   ac_cv_cflags__Wl___enable_new_dtags=yes
7089 else
7090   ac_cv_cflags__Wl___enable_new_dtags=no
7091 fi
7092 rm -f core conftest.err conftest.$ac_objext \
7093     conftest$ac_exeext conftest.$ac_ext
7094 CFLAGS=$ac_wine_try_cflags_saved
7095 fi
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___enable_new_dtags" >&5
7097 $as_echo "$ac_cv_cflags__Wl___enable_new_dtags" >&6; }
7098 if test $ac_cv_cflags__Wl___enable_new_dtags = yes; then :
7099   LDRPATH_INSTALL="$LDRPATH_INSTALL -Wl,--enable-new-dtags"
7100 fi
7101
7102       case $host_cpu in
7103         *i[3456789]86* | x86_64)
7104           { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400" >&5
7105 $as_echo_n "checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... " >&6; }
7106 if ${ac_cv_cflags__Wl___section_start__interp_0x7bf00400+:} false; then :
7107   $as_echo_n "(cached) " >&6
7108 else
7109   ac_wine_try_cflags_saved=$CFLAGS
7110 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
7111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7112 /* end confdefs.h.  */
7113 int main(int argc, char **argv) { return 0; }
7114 _ACEOF
7115 if ac_fn_c_try_link "$LINENO"; then :
7116   ac_cv_cflags__Wl___section_start__interp_0x7bf00400=yes
7117 else
7118   ac_cv_cflags__Wl___section_start__interp_0x7bf00400=no
7119 fi
7120 rm -f core conftest.err conftest.$ac_objext \
7121     conftest$ac_exeext conftest.$ac_ext
7122 CFLAGS=$ac_wine_try_cflags_saved
7123 fi
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&5
7125 $as_echo "$ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&6; }
7126 if test $ac_cv_cflags__Wl___section_start__interp_0x7bf00400 = yes; then :
7127   case $host_os in
7128                            freebsd* | kfreebsd*-gnu) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x60000400" ;;
7129                            *) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400" ;;
7130                            esac
7131
7132 fi
7133           # Extract the first word of "prelink", so it can be a program name with args.
7134 set dummy prelink; ac_word=$2
7135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7136 $as_echo_n "checking for $ac_word... " >&6; }
7137 if ${ac_cv_path_PRELINK+:} false; then :
7138   $as_echo_n "(cached) " >&6
7139 else
7140   case $PRELINK in
7141   [\\/]* | ?:[\\/]*)
7142   ac_cv_path_PRELINK="$PRELINK" # Let the user override the test with a path.
7143   ;;
7144   *)
7145   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7146 for as_dir in /sbin /usr/sbin $PATH
7147 do
7148   IFS=$as_save_IFS
7149   test -z "$as_dir" && as_dir=.
7150     for ac_exec_ext in '' $ac_executable_extensions; do
7151   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7152     ac_cv_path_PRELINK="$as_dir/$ac_word$ac_exec_ext"
7153     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7154     break 2
7155   fi
7156 done
7157   done
7158 IFS=$as_save_IFS
7159
7160   test -z "$ac_cv_path_PRELINK" && ac_cv_path_PRELINK="false"
7161   ;;
7162 esac
7163 fi
7164 PRELINK=$ac_cv_path_PRELINK
7165 if test -n "$PRELINK"; then
7166   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRELINK" >&5
7167 $as_echo "$PRELINK" >&6; }
7168 else
7169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7170 $as_echo "no" >&6; }
7171 fi
7172
7173
7174           if test "x$PRELINK" = xfalse
7175           then
7176               as_fn_append wine_warnings "|prelink not found, base address of core dlls won't be set correctly."
7177           fi
7178           ;;
7179       esac
7180
7181     else
7182       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a UnixWare (Solaris) dll" >&5
7183 $as_echo_n "checking whether we can build a UnixWare (Solaris) dll... " >&6; }
7184 if ${ac_cv_c_dll_unixware+:} false; then :
7185   $as_echo_n "(cached) " >&6
7186 else
7187   ac_wine_try_cflags_saved=$CFLAGS
7188 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
7189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7190 /* end confdefs.h.  */
7191 void myfunc() {}
7192 _ACEOF
7193 if ac_fn_c_try_link "$LINENO"; then :
7194   ac_cv_c_dll_unixware="yes"
7195 else
7196   ac_cv_c_dll_unixware="no"
7197 fi
7198 rm -f core conftest.err conftest.$ac_objext \
7199     conftest$ac_exeext conftest.$ac_ext
7200 CFLAGS=$ac_wine_try_cflags_saved
7201 fi
7202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_unixware" >&5
7203 $as_echo "$ac_cv_c_dll_unixware" >&6; }
7204       if test "$ac_cv_c_dll_unixware" = "yes"
7205       then
7206         LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
7207         LDDLLFLAGS="-Wl,-G,-B,symbolic"
7208
7209       else
7210         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build an HP-UX dll" >&5
7211 $as_echo_n "checking whether we can build an HP-UX dll... " >&6; }
7212 if ${ac_cv_c_dll_hpux+:} false; then :
7213   $as_echo_n "(cached) " >&6
7214 else
7215   ac_wine_try_cflags_saved=$CFLAGS
7216 CFLAGS="$CFLAGS -shared"
7217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7218 /* end confdefs.h.  */
7219 void myfunc() {}
7220 _ACEOF
7221 if ac_fn_c_try_link "$LINENO"; then :
7222   ac_cv_c_dll_hpux="yes"
7223 else
7224   ac_cv_c_dll_hpux="no"
7225 fi
7226 rm -f core conftest.err conftest.$ac_objext \
7227     conftest$ac_exeext conftest.$ac_ext
7228 CFLAGS=$ac_wine_try_cflags_saved
7229 fi
7230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_hpux" >&5
7231 $as_echo "$ac_cv_c_dll_hpux" >&6; }
7232         if test "$ac_cv_c_dll_hpux" = "yes"
7233         then
7234           LIBEXT="sl"
7235           DLLEXT=".sl"
7236           LDDLLFLAGS="-shared -fPIC"
7237           LDSHARED="\$(CC) -shared"
7238         fi
7239       fi
7240     fi
7241     ;;
7242 esac
7243
7244 enable_wineqtdecoder=${enable_wineqtdecoder:-no}
7245 enable_winemac_drv=${enable_winemac_drv:-no}
7246
7247 if test "$LIBEXT" = "a"; then
7248   as_fn_error $? "could not find a way to build shared libraries.
7249 It is currently not possible to build Wine without shared library
7250 (.so) support to allow transparent switch between .so and .dll files.
7251 If you are using Linux, you will need a newer binutils.
7252 " "$LINENO" 5
7253 fi
7254
7255 CROSSTEST_DISABLE=\#
7256
7257 if test "$cross_compiling" = "no" -a "x$enable_tests" != xno -a "$LIBEXT" != "dll"
7258 then
7259     case "$host_cpu" in
7260   i[3456789]86*)
7261     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
7262                         mingw32-gcc" ;;
7263   x86_64)
7264     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 " ;;
7265   *)
7266     ac_prefix_list="" ;;
7267 esac
7268 for ac_prog in $ac_prefix_list
7269 do
7270   # Extract the first word of "$ac_prog", so it can be a program name with args.
7271 set dummy $ac_prog; ac_word=$2
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7273 $as_echo_n "checking for $ac_word... " >&6; }
7274 if ${ac_cv_prog_CROSSCC+:} false; then :
7275   $as_echo_n "(cached) " >&6
7276 else
7277   if test -n "$CROSSCC"; then
7278   ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
7279 else
7280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7281 for as_dir in $PATH
7282 do
7283   IFS=$as_save_IFS
7284   test -z "$as_dir" && as_dir=.
7285     for ac_exec_ext in '' $ac_executable_extensions; do
7286   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7287     ac_cv_prog_CROSSCC="$ac_prog"
7288     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7289     break 2
7290   fi
7291 done
7292   done
7293 IFS=$as_save_IFS
7294
7295 fi
7296 fi
7297 CROSSCC=$ac_cv_prog_CROSSCC
7298 if test -n "$CROSSCC"; then
7299   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CROSSCC" >&5
7300 $as_echo "$CROSSCC" >&6; }
7301 else
7302   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7303 $as_echo "no" >&6; }
7304 fi
7305
7306
7307   test -n "$CROSSCC" && break
7308 done
7309 test -n "$CROSSCC" || CROSSCC="false"
7310
7311     if test "$CROSSCC" != "false"
7312     then
7313         ac_save_CC="$CC"
7314         CC="$CROSSCC"
7315         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CROSSCC works" >&5
7316 $as_echo_n "checking whether $CROSSCC works... " >&6; }
7317         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7318 /* end confdefs.h.  */
7319
7320 int
7321 main ()
7322 {
7323
7324   ;
7325   return 0;
7326 }
7327 _ACEOF
7328 if ac_fn_c_try_compile "$LINENO"; then :
7329   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7330 $as_echo "yes" >&6; }
7331                            set x $CROSSCC
7332                            shift
7333                            target=""
7334                            while test $# -ge 1
7335                            do
7336                                case "$1" in
7337                                  *-gcc) target=`expr "$1" : '\(.*\)-gcc'` ;;
7338                                esac
7339                                shift
7340                            done
7341                            if test -n "$target"
7342                            then
7343                                CROSSTEST_DISABLE=""
7344                                CROSSTARGET="$target"
7345
7346                            fi
7347 else
7348   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7349 $as_echo "no" >&6; }
7350 fi
7351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7352         CC="$ac_save_CC"
7353     fi
7354 fi
7355
7356
7357 if test "$ac_cv_header_pthread_h" = "yes"
7358 then
7359     ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
7360 if test "x$ac_cv_func_pthread_create" = xyes; then :
7361
7362 else
7363   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
7364 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
7365 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
7366   $as_echo_n "(cached) " >&6
7367 else
7368   ac_check_lib_save_LIBS=$LIBS
7369 LIBS="-lpthread  $LIBS"
7370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7371 /* end confdefs.h.  */
7372
7373 /* Override any GCC internal prototype to avoid an error.
7374    Use char because int might match the return type of a GCC
7375    builtin and then its argument prototype would still apply.  */
7376 #ifdef __cplusplus
7377 extern "C"
7378 #endif
7379 char pthread_create ();
7380 int
7381 main ()
7382 {
7383 return pthread_create ();
7384   ;
7385   return 0;
7386 }
7387 _ACEOF
7388 if ac_fn_c_try_link "$LINENO"; then :
7389   ac_cv_lib_pthread_pthread_create=yes
7390 else
7391   ac_cv_lib_pthread_pthread_create=no
7392 fi
7393 rm -f core conftest.err conftest.$ac_objext \
7394     conftest$ac_exeext conftest.$ac_ext
7395 LIBS=$ac_check_lib_save_LIBS
7396 fi
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
7398 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
7399 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
7400   LIBPTHREAD="-lpthread"
7401
7402 fi
7403
7404 fi
7405
7406 fi
7407 if test "x$ac_cv_func_pthread_create" != xyes -a "x$LIBPTHREAD" = x; then :
7408   case "x$with_pthread" in
7409   xno) ;;
7410   *)   as_fn_error $? "pthread ${notice_platform}development files not found.
7411 Wine cannot support threads without libpthread.
7412 Use the --without-pthread option if you really want this." "$LINENO" 5 ;;
7413 esac
7414 fi
7415
7416
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
7418 $as_echo_n "checking for X... " >&6; }
7419
7420
7421 # Check whether --with-x was given.
7422 if test "${with_x+set}" = set; then :
7423   withval=$with_x;
7424 fi
7425
7426 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7427 if test "x$with_x" = xno; then
7428   # The user explicitly disabled X.
7429   have_x=disabled
7430 else
7431   case $x_includes,$x_libraries in #(
7432     *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
7433     *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
7434   $as_echo_n "(cached) " >&6
7435 else
7436   # One or both of the vars are not set, and there is no cached value.
7437 ac_x_includes=no ac_x_libraries=no
7438 rm -f -r conftest.dir
7439 if mkdir conftest.dir; then
7440   cd conftest.dir
7441   cat >Imakefile <<'_ACEOF'
7442 incroot:
7443         @echo incroot='${INCROOT}'
7444 usrlibdir:
7445         @echo usrlibdir='${USRLIBDIR}'
7446 libdir:
7447         @echo libdir='${LIBDIR}'
7448 _ACEOF
7449   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
7450     # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7451     for ac_var in incroot usrlibdir libdir; do
7452       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
7453     done
7454     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7455     for ac_extension in a so sl dylib la dll; do
7456       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
7457          test -f "$ac_im_libdir/libX11.$ac_extension"; then
7458         ac_im_usrlibdir=$ac_im_libdir; break
7459       fi
7460     done
7461     # Screen out bogus values from the imake configuration.  They are
7462     # bogus both because they are the default anyway, and because
7463     # using them would break gcc on systems where it needs fixed includes.
7464     case $ac_im_incroot in
7465         /usr/include) ac_x_includes= ;;
7466         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7467     esac
7468     case $ac_im_usrlibdir in
7469         /usr/lib | /usr/lib64 | /lib | /lib64) ;;
7470         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7471     esac
7472   fi
7473   cd ..
7474   rm -f -r conftest.dir
7475 fi
7476
7477 # Standard set of common directories for X headers.
7478 # Check X11 before X11Rn because it is often a symlink to the current release.
7479 ac_x_header_dirs='
7480 /usr/X11/include
7481 /usr/X11R7/include
7482 /usr/X11R6/include
7483 /usr/X11R5/include
7484 /usr/X11R4/include
7485
7486 /usr/include/X11
7487 /usr/include/X11R7
7488 /usr/include/X11R6
7489 /usr/include/X11R5
7490 /usr/include/X11R4
7491
7492 /usr/local/X11/include
7493 /usr/local/X11R7/include
7494 /usr/local/X11R6/include
7495 /usr/local/X11R5/include
7496 /usr/local/X11R4/include
7497
7498 /usr/local/include/X11
7499 /usr/local/include/X11R7
7500 /usr/local/include/X11R6
7501 /usr/local/include/X11R5
7502 /usr/local/include/X11R4
7503
7504 /usr/X386/include
7505 /usr/x386/include
7506 /usr/XFree86/include/X11
7507
7508 /usr/include
7509 /usr/local/include
7510 /usr/unsupported/include
7511 /usr/athena/include
7512 /usr/local/x11r5/include
7513 /usr/lpp/Xamples/include
7514
7515 /usr/openwin/include
7516 /usr/openwin/share/include'
7517
7518 if test "$ac_x_includes" = no; then
7519   # Guess where to find include files, by looking for Xlib.h.
7520   # First, try using that file with no special directory specified.
7521   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7522 /* end confdefs.h.  */
7523 #include <X11/Xlib.h>
7524 _ACEOF
7525 if ac_fn_c_try_cpp "$LINENO"; then :
7526   # We can compile using X headers with no special include directory.
7527 ac_x_includes=
7528 else
7529   for ac_dir in $ac_x_header_dirs; do
7530   if test -r "$ac_dir/X11/Xlib.h"; then
7531     ac_x_includes=$ac_dir
7532     break
7533   fi
7534 done
7535 fi
7536 rm -f conftest.err conftest.i conftest.$ac_ext
7537 fi # $ac_x_includes = no
7538
7539 if test "$ac_x_libraries" = no; then
7540   # Check for the libraries.
7541   # See if we find them without any special options.
7542   # Don't add to $LIBS permanently.
7543   ac_save_LIBS=$LIBS
7544   LIBS="-lX11 $LIBS"
7545   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7546 /* end confdefs.h.  */
7547 #include <X11/Xlib.h>
7548 int
7549 main ()
7550 {
7551 XrmInitialize ()
7552   ;
7553   return 0;
7554 }
7555 _ACEOF
7556 if ac_fn_c_try_link "$LINENO"; then :
7557   LIBS=$ac_save_LIBS
7558 # We can link X programs with no special library path.
7559 ac_x_libraries=
7560 else
7561   LIBS=$ac_save_LIBS
7562 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7563 do
7564   # Don't even attempt the hair of trying to link an X program!
7565   for ac_extension in a so sl dylib la dll; do
7566     if test -r "$ac_dir/libX11.$ac_extension"; then
7567       ac_x_libraries=$ac_dir
7568       break 2
7569     fi
7570   done
7571 done
7572 fi
7573 rm -f core conftest.err conftest.$ac_objext \
7574     conftest$ac_exeext conftest.$ac_ext
7575 fi # $ac_x_libraries = no
7576
7577 case $ac_x_includes,$ac_x_libraries in #(
7578   no,* | *,no | *\'*)
7579     # Didn't find X, or a directory has "'" in its name.
7580     ac_cv_have_x="have_x=no";; #(
7581   *)
7582     # Record where we found X for the cache.
7583     ac_cv_have_x="have_x=yes\
7584         ac_x_includes='$ac_x_includes'\
7585         ac_x_libraries='$ac_x_libraries'"
7586 esac
7587 fi
7588 ;; #(
7589     *) have_x=yes;;
7590   esac
7591   eval "$ac_cv_have_x"
7592 fi # $with_x != no
7593
7594 if test "$have_x" != yes; then
7595   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
7596 $as_echo "$have_x" >&6; }
7597   no_x=yes
7598 else
7599   # If each of the values was on the command line, it overrides each guess.
7600   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7601   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7602   # Update the cache value to reflect the command line values.
7603   ac_cv_have_x="have_x=yes\
7604         ac_x_includes='$x_includes'\
7605         ac_x_libraries='$x_libraries'"
7606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
7607 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
7608 fi
7609
7610 if test "$no_x" = yes; then
7611   # Not all programs may use this symbol, but it does not hurt to define it.
7612
7613 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
7614
7615   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7616 else
7617   if test -n "$x_includes"; then
7618     X_CFLAGS="$X_CFLAGS -I$x_includes"
7619   fi
7620
7621   # It would also be nice to do this for all -L options, not just this one.
7622   if test -n "$x_libraries"; then
7623     X_LIBS="$X_LIBS -L$x_libraries"
7624     # For Solaris; some versions of Sun CC require a space after -R and
7625     # others require no space.  Words are not sufficient . . . .
7626     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
7627 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
7628     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7629     ac_xsave_c_werror_flag=$ac_c_werror_flag
7630     ac_c_werror_flag=yes
7631     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7632 /* end confdefs.h.  */
7633
7634 int
7635 main ()
7636 {
7637
7638   ;
7639   return 0;
7640 }
7641 _ACEOF
7642 if ac_fn_c_try_link "$LINENO"; then :
7643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7644 $as_echo "no" >&6; }
7645        X_LIBS="$X_LIBS -R$x_libraries"
7646 else
7647   LIBS="$ac_xsave_LIBS -R $x_libraries"
7648        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7649 /* end confdefs.h.  */
7650
7651 int
7652 main ()
7653 {
7654
7655   ;
7656   return 0;
7657 }
7658 _ACEOF
7659 if ac_fn_c_try_link "$LINENO"; then :
7660   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7661 $as_echo "yes" >&6; }
7662           X_LIBS="$X_LIBS -R $x_libraries"
7663 else
7664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
7665 $as_echo "neither works" >&6; }
7666 fi
7667 rm -f core conftest.err conftest.$ac_objext \
7668     conftest$ac_exeext conftest.$ac_ext
7669 fi
7670 rm -f core conftest.err conftest.$ac_objext \
7671     conftest$ac_exeext conftest.$ac_ext
7672     ac_c_werror_flag=$ac_xsave_c_werror_flag
7673     LIBS=$ac_xsave_LIBS
7674   fi
7675
7676   # Check for system-dependent libraries X programs must link with.
7677   # Do this before checking for the system-independent R6 libraries
7678   # (-lICE), since we may need -lsocket or whatever for X linking.
7679
7680   if test "$ISC" = yes; then
7681     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7682   else
7683     # Martyn Johnson says this is needed for Ultrix, if the X
7684     # libraries were built with DECnet support.  And Karl Berry says
7685     # the Alpha needs dnet_stub (dnet does not exist).
7686     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
7687     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7688 /* end confdefs.h.  */
7689
7690 /* Override any GCC internal prototype to avoid an error.
7691    Use char because int might match the return type of a GCC
7692    builtin and then its argument prototype would still apply.  */
7693 #ifdef __cplusplus
7694 extern "C"
7695 #endif
7696 char XOpenDisplay ();
7697 int
7698 main ()
7699 {
7700 return XOpenDisplay ();
7701   ;
7702   return 0;
7703 }
7704 _ACEOF
7705 if ac_fn_c_try_link "$LINENO"; then :
7706
7707 else
7708   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
7709 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
7710 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
7711   $as_echo_n "(cached) " >&6
7712 else
7713   ac_check_lib_save_LIBS=$LIBS
7714 LIBS="-ldnet  $LIBS"
7715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7716 /* end confdefs.h.  */
7717
7718 /* Override any GCC internal prototype to avoid an error.
7719    Use char because int might match the return type of a GCC
7720    builtin and then its argument prototype would still apply.  */
7721 #ifdef __cplusplus
7722 extern "C"
7723 #endif
7724 char dnet_ntoa ();
7725 int
7726 main ()
7727 {
7728 return dnet_ntoa ();
7729   ;
7730   return 0;
7731 }
7732 _ACEOF
7733 if ac_fn_c_try_link "$LINENO"; then :
7734   ac_cv_lib_dnet_dnet_ntoa=yes
7735 else
7736   ac_cv_lib_dnet_dnet_ntoa=no
7737 fi
7738 rm -f core conftest.err conftest.$ac_objext \
7739     conftest$ac_exeext conftest.$ac_ext
7740 LIBS=$ac_check_lib_save_LIBS
7741 fi
7742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7743 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
7744 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
7745   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7746 fi
7747
7748     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7749       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
7750 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
7751 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
7752   $as_echo_n "(cached) " >&6
7753 else
7754   ac_check_lib_save_LIBS=$LIBS
7755 LIBS="-ldnet_stub  $LIBS"
7756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7757 /* end confdefs.h.  */
7758
7759 /* Override any GCC internal prototype to avoid an error.
7760    Use char because int might match the return type of a GCC
7761    builtin and then its argument prototype would still apply.  */
7762 #ifdef __cplusplus
7763 extern "C"
7764 #endif
7765 char dnet_ntoa ();
7766 int
7767 main ()
7768 {
7769 return dnet_ntoa ();
7770   ;
7771   return 0;
7772 }
7773 _ACEOF
7774 if ac_fn_c_try_link "$LINENO"; then :
7775   ac_cv_lib_dnet_stub_dnet_ntoa=yes
7776 else
7777   ac_cv_lib_dnet_stub_dnet_ntoa=no
7778 fi
7779 rm -f core conftest.err conftest.$ac_objext \
7780     conftest$ac_exeext conftest.$ac_ext
7781 LIBS=$ac_check_lib_save_LIBS
7782 fi
7783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
7784 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
7785 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
7786   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7787 fi
7788
7789     fi
7790 fi
7791 rm -f core conftest.err conftest.$ac_objext \
7792     conftest$ac_exeext conftest.$ac_ext
7793     LIBS="$ac_xsave_LIBS"
7794
7795     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7796     # to get the SysV transport functions.
7797     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7798     # needs -lnsl.
7799     # The nsl library prevents programs from opening the X display
7800     # on Irix 5.2, according to T.E. Dickey.
7801     # The functions gethostbyname, getservbyname, and inet_addr are
7802     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
7803     ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
7804 if test "x$ac_cv_func_gethostbyname" = xyes; then :
7805
7806 fi
7807
7808     if test $ac_cv_func_gethostbyname = no; then
7809       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
7810 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
7811 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
7812   $as_echo_n "(cached) " >&6
7813 else
7814   ac_check_lib_save_LIBS=$LIBS
7815 LIBS="-lnsl  $LIBS"
7816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7817 /* end confdefs.h.  */
7818
7819 /* Override any GCC internal prototype to avoid an error.
7820    Use char because int might match the return type of a GCC
7821    builtin and then its argument prototype would still apply.  */
7822 #ifdef __cplusplus
7823 extern "C"
7824 #endif
7825 char gethostbyname ();
7826 int
7827 main ()
7828 {
7829 return gethostbyname ();
7830   ;
7831   return 0;
7832 }
7833 _ACEOF
7834 if ac_fn_c_try_link "$LINENO"; then :
7835   ac_cv_lib_nsl_gethostbyname=yes
7836 else
7837   ac_cv_lib_nsl_gethostbyname=no
7838 fi
7839 rm -f core conftest.err conftest.$ac_objext \
7840     conftest$ac_exeext conftest.$ac_ext
7841 LIBS=$ac_check_lib_save_LIBS
7842 fi
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
7844 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
7845 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
7846   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7847 fi
7848
7849       if test $ac_cv_lib_nsl_gethostbyname = no; then
7850         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
7851 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
7852 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
7853   $as_echo_n "(cached) " >&6
7854 else
7855   ac_check_lib_save_LIBS=$LIBS
7856 LIBS="-lbsd  $LIBS"
7857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7858 /* end confdefs.h.  */
7859
7860 /* Override any GCC internal prototype to avoid an error.
7861    Use char because int might match the return type of a GCC
7862    builtin and then its argument prototype would still apply.  */
7863 #ifdef __cplusplus
7864 extern "C"
7865 #endif
7866 char gethostbyname ();
7867 int
7868 main ()
7869 {
7870 return gethostbyname ();
7871   ;
7872   return 0;
7873 }
7874 _ACEOF
7875 if ac_fn_c_try_link "$LINENO"; then :
7876   ac_cv_lib_bsd_gethostbyname=yes
7877 else
7878   ac_cv_lib_bsd_gethostbyname=no
7879 fi
7880 rm -f core conftest.err conftest.$ac_objext \
7881     conftest$ac_exeext conftest.$ac_ext
7882 LIBS=$ac_check_lib_save_LIBS
7883 fi
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
7885 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
7886 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
7887   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
7888 fi
7889
7890       fi
7891     fi
7892
7893     # lieder@skyler.mavd.honeywell.com says without -lsocket,
7894     # socket/setsockopt and other routines are undefined under SCO ODT
7895     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
7896     # on later versions), says Simon Leinen: it contains gethostby*
7897     # variants that don't use the name server (or something).  -lsocket
7898     # must be given before -lnsl if both are needed.  We assume that
7899     # if connect needs -lnsl, so does gethostbyname.
7900     ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
7901 if test "x$ac_cv_func_connect" = xyes; then :
7902
7903 fi
7904
7905     if test $ac_cv_func_connect = no; then
7906       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
7907 $as_echo_n "checking for connect in -lsocket... " >&6; }
7908 if ${ac_cv_lib_socket_connect+:} false; then :
7909   $as_echo_n "(cached) " >&6
7910 else
7911   ac_check_lib_save_LIBS=$LIBS
7912 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7914 /* end confdefs.h.  */
7915
7916 /* Override any GCC internal prototype to avoid an error.
7917    Use char because int might match the return type of a GCC
7918    builtin and then its argument prototype would still apply.  */
7919 #ifdef __cplusplus
7920 extern "C"
7921 #endif
7922 char connect ();
7923 int
7924 main ()
7925 {
7926 return connect ();
7927   ;
7928   return 0;
7929 }
7930 _ACEOF
7931 if ac_fn_c_try_link "$LINENO"; then :
7932   ac_cv_lib_socket_connect=yes
7933 else
7934   ac_cv_lib_socket_connect=no
7935 fi
7936 rm -f core conftest.err conftest.$ac_objext \
7937     conftest$ac_exeext conftest.$ac_ext
7938 LIBS=$ac_check_lib_save_LIBS
7939 fi
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
7941 $as_echo "$ac_cv_lib_socket_connect" >&6; }
7942 if test "x$ac_cv_lib_socket_connect" = xyes; then :
7943   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7944 fi
7945
7946     fi
7947
7948     # Guillermo Gomez says -lposix is necessary on A/UX.
7949     ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
7950 if test "x$ac_cv_func_remove" = xyes; then :
7951
7952 fi
7953
7954     if test $ac_cv_func_remove = no; then
7955       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
7956 $as_echo_n "checking for remove in -lposix... " >&6; }
7957 if ${ac_cv_lib_posix_remove+:} false; then :
7958   $as_echo_n "(cached) " >&6
7959 else
7960   ac_check_lib_save_LIBS=$LIBS
7961 LIBS="-lposix  $LIBS"
7962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7963 /* end confdefs.h.  */
7964
7965 /* Override any GCC internal prototype to avoid an error.
7966    Use char because int might match the return type of a GCC
7967    builtin and then its argument prototype would still apply.  */
7968 #ifdef __cplusplus
7969 extern "C"
7970 #endif
7971 char remove ();
7972 int
7973 main ()
7974 {
7975 return remove ();
7976   ;
7977   return 0;
7978 }
7979 _ACEOF
7980 if ac_fn_c_try_link "$LINENO"; then :
7981   ac_cv_lib_posix_remove=yes
7982 else
7983   ac_cv_lib_posix_remove=no
7984 fi
7985 rm -f core conftest.err conftest.$ac_objext \
7986     conftest$ac_exeext conftest.$ac_ext
7987 LIBS=$ac_check_lib_save_LIBS
7988 fi
7989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
7990 $as_echo "$ac_cv_lib_posix_remove" >&6; }
7991 if test "x$ac_cv_lib_posix_remove" = xyes; then :
7992   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7993 fi
7994
7995     fi
7996
7997     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7998     ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
7999 if test "x$ac_cv_func_shmat" = xyes; then :
8000
8001 fi
8002
8003     if test $ac_cv_func_shmat = no; then
8004       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
8005 $as_echo_n "checking for shmat in -lipc... " >&6; }
8006 if ${ac_cv_lib_ipc_shmat+:} false; then :
8007   $as_echo_n "(cached) " >&6
8008 else
8009   ac_check_lib_save_LIBS=$LIBS
8010 LIBS="-lipc  $LIBS"
8011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8012 /* end confdefs.h.  */
8013
8014 /* Override any GCC internal prototype to avoid an error.
8015    Use char because int might match the return type of a GCC
8016    builtin and then its argument prototype would still apply.  */
8017 #ifdef __cplusplus
8018 extern "C"
8019 #endif
8020 char shmat ();
8021 int
8022 main ()
8023 {
8024 return shmat ();
8025   ;
8026   return 0;
8027 }
8028 _ACEOF
8029 if ac_fn_c_try_link "$LINENO"; then :
8030   ac_cv_lib_ipc_shmat=yes
8031 else
8032   ac_cv_lib_ipc_shmat=no
8033 fi
8034 rm -f core conftest.err conftest.$ac_objext \
8035     conftest$ac_exeext conftest.$ac_ext
8036 LIBS=$ac_check_lib_save_LIBS
8037 fi
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
8039 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
8040 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
8041   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8042 fi
8043
8044     fi
8045   fi
8046
8047   # Check for libraries that X11R6 Xt/Xaw programs need.
8048   ac_save_LDFLAGS=$LDFLAGS
8049   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8050   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8051   # check for ICE first), but we must link in the order -lSM -lICE or
8052   # we get undefined symbols.  So assume we have SM if we have ICE.
8053   # These have to be linked with before -lX11, unlike the other
8054   # libraries we check for below, so use a different variable.
8055   # John Interrante, Karl Berry
8056   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
8057 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
8058 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
8059   $as_echo_n "(cached) " >&6
8060 else
8061   ac_check_lib_save_LIBS=$LIBS
8062 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8064 /* end confdefs.h.  */
8065
8066 /* Override any GCC internal prototype to avoid an error.
8067    Use char because int might match the return type of a GCC
8068    builtin and then its argument prototype would still apply.  */
8069 #ifdef __cplusplus
8070 extern "C"
8071 #endif
8072 char IceConnectionNumber ();
8073 int
8074 main ()
8075 {
8076 return IceConnectionNumber ();
8077   ;
8078   return 0;
8079 }
8080 _ACEOF
8081 if ac_fn_c_try_link "$LINENO"; then :
8082   ac_cv_lib_ICE_IceConnectionNumber=yes
8083 else
8084   ac_cv_lib_ICE_IceConnectionNumber=no
8085 fi
8086 rm -f core conftest.err conftest.$ac_objext \
8087     conftest$ac_exeext conftest.$ac_ext
8088 LIBS=$ac_check_lib_save_LIBS
8089 fi
8090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
8091 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
8092 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
8093   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8094 fi
8095
8096   LDFLAGS=$ac_save_LDFLAGS
8097
8098 fi
8099
8100
8101 if test "$have_x" = "yes"
8102 then
8103     XLIB="-lX11"
8104     ac_save_CPPFLAGS="$CPPFLAGS"
8105     CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8106
8107     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lX11" >&5
8108 $as_echo_n "checking for -lX11... " >&6; }
8109 if ${ac_cv_lib_soname_X11+:} false; then :
8110   $as_echo_n "(cached) " >&6
8111 else
8112   ac_check_soname_save_LIBS=$LIBS
8113 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
8114   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8115 /* end confdefs.h.  */
8116
8117 /* Override any GCC internal prototype to avoid an error.
8118    Use char because int might match the return type of a GCC
8119    builtin and then its argument prototype would still apply.  */
8120 #ifdef __cplusplus
8121 extern "C"
8122 #endif
8123 char XCreateWindow ();
8124 int
8125 main ()
8126 {
8127 return XCreateWindow ();
8128   ;
8129   return 0;
8130 }
8131 _ACEOF
8132 if ac_fn_c_try_link "$LINENO"; then :
8133   case "$LIBEXT" in
8134     dll) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest.exe | grep "X11" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8135     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'` ;;
8136     *) ac_cv_lib_soname_X11=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libX11\\.$LIBEXT" | sed -e "s/^.*\\[\\(libX11\\.$LIBEXT[^    ]*\\)\\].*$/\1/"';2,$d'`
8137        if test "x$ac_cv_lib_soname_X11" = x; then :
8138   ac_cv_lib_soname_X11=`$LDD conftest$ac_exeext | grep "libX11\\.$LIBEXT" | sed -e "s/^.*\(libX11\.$LIBEXT[^     ]*\).*$/\1/"';2,$d'`
8139 fi ;;
8140   esac
8141 fi
8142 rm -f core conftest.err conftest.$ac_objext \
8143     conftest$ac_exeext conftest.$ac_ext
8144   LIBS=$ac_check_soname_save_LIBS
8145 fi
8146 if test "x$ac_cv_lib_soname_X11" = "x"; then :
8147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8148 $as_echo "not found" >&6; }
8149
8150 else
8151   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_X11" >&5
8152 $as_echo "$ac_cv_lib_soname_X11" >&6; }
8153
8154 cat >>confdefs.h <<_ACEOF
8155 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
8156 _ACEOF
8157
8158
8159 fi
8160     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXext" >&5
8161 $as_echo_n "checking for -lXext... " >&6; }
8162 if ${ac_cv_lib_soname_Xext+:} false; then :
8163   $as_echo_n "(cached) " >&6
8164 else
8165   ac_check_soname_save_LIBS=$LIBS
8166 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
8167   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8168 /* end confdefs.h.  */
8169
8170 /* Override any GCC internal prototype to avoid an error.
8171    Use char because int might match the return type of a GCC
8172    builtin and then its argument prototype would still apply.  */
8173 #ifdef __cplusplus
8174 extern "C"
8175 #endif
8176 char XextCreateExtension ();
8177 int
8178 main ()
8179 {
8180 return XextCreateExtension ();
8181   ;
8182   return 0;
8183 }
8184 _ACEOF
8185 if ac_fn_c_try_link "$LINENO"; then :
8186   case "$LIBEXT" in
8187     dll) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest.exe | grep "Xext" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8188     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'` ;;
8189     *) ac_cv_lib_soname_Xext=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXext\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXext\\.$LIBEXT[^         ]*\\)\\].*$/\1/"';2,$d'`
8190        if test "x$ac_cv_lib_soname_Xext" = x; then :
8191   ac_cv_lib_soname_Xext=`$LDD conftest$ac_exeext | grep "libXext\\.$LIBEXT" | sed -e "s/^.*\(libXext\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'`
8192 fi ;;
8193   esac
8194 fi
8195 rm -f core conftest.err conftest.$ac_objext \
8196     conftest$ac_exeext conftest.$ac_ext
8197   LIBS=$ac_check_soname_save_LIBS
8198 fi
8199 if test "x$ac_cv_lib_soname_Xext" = "x"; then :
8200   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8201 $as_echo "not found" >&6; }
8202
8203 else
8204   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xext" >&5
8205 $as_echo "$ac_cv_lib_soname_Xext" >&6; }
8206
8207 cat >>confdefs.h <<_ACEOF
8208 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
8209 _ACEOF
8210
8211        XLIB="-lXext $XLIB"
8212 fi
8213
8214         for ac_header in X11/Xlib.h \
8215                       X11/XKBlib.h \
8216                       X11/Xutil.h \
8217                       X11/Xcursor/Xcursor.h \
8218                       X11/extensions/shape.h \
8219                       X11/extensions/XInput.h \
8220                       X11/extensions/XInput2.h \
8221                       X11/extensions/XShm.h \
8222                       X11/extensions/Xcomposite.h \
8223                       X11/extensions/Xinerama.h \
8224                       X11/extensions/Xrandr.h \
8225                       X11/extensions/Xrender.h \
8226                       X11/extensions/xf86vmode.h \
8227                       X11/extensions/xf86vmproto.h
8228 do :
8229   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8230 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_X11_XLIB_H
8231 # include <X11/Xlib.h>
8232 #endif
8233 #ifdef HAVE_X11_XUTIL_H
8234 # include <X11/Xutil.h>
8235 #endif
8236 "
8237 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8238   cat >>confdefs.h <<_ACEOF
8239 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8240 _ACEOF
8241
8242 fi
8243
8244 done
8245
8246
8247                 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
8248         then
8249               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbQueryExtension in -lX11" >&5
8250 $as_echo_n "checking for XkbQueryExtension in -lX11... " >&6; }
8251 if ${ac_cv_lib_X11_XkbQueryExtension+:} false; then :
8252   $as_echo_n "(cached) " >&6
8253 else
8254   ac_check_lib_save_LIBS=$LIBS
8255 LIBS="-lX11 $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8257 /* end confdefs.h.  */
8258
8259 /* Override any GCC internal prototype to avoid an error.
8260    Use char because int might match the return type of a GCC
8261    builtin and then its argument prototype would still apply.  */
8262 #ifdef __cplusplus
8263 extern "C"
8264 #endif
8265 char XkbQueryExtension ();
8266 int
8267 main ()
8268 {
8269 return XkbQueryExtension ();
8270   ;
8271   return 0;
8272 }
8273 _ACEOF
8274 if ac_fn_c_try_link "$LINENO"; then :
8275   ac_cv_lib_X11_XkbQueryExtension=yes
8276 else
8277   ac_cv_lib_X11_XkbQueryExtension=no
8278 fi
8279 rm -f core conftest.err conftest.$ac_objext \
8280     conftest$ac_exeext conftest.$ac_ext
8281 LIBS=$ac_check_lib_save_LIBS
8282 fi
8283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
8284 $as_echo "$ac_cv_lib_X11_XkbQueryExtension" >&6; }
8285 if test "x$ac_cv_lib_X11_XkbQueryExtension" = xyes; then :
8286
8287 $as_echo "#define HAVE_XKB 1" >>confdefs.h
8288
8289 fi
8290
8291         fi
8292
8293                 if test "$ac_cv_header_X11_Xcursor_Xcursor_h" = "yes"
8294         then
8295             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcursor" >&5
8296 $as_echo_n "checking for -lXcursor... " >&6; }
8297 if ${ac_cv_lib_soname_Xcursor+:} false; then :
8298   $as_echo_n "(cached) " >&6
8299 else
8300   ac_check_soname_save_LIBS=$LIBS
8301 LIBS="-lXcursor $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8302   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8303 /* end confdefs.h.  */
8304
8305 /* Override any GCC internal prototype to avoid an error.
8306    Use char because int might match the return type of a GCC
8307    builtin and then its argument prototype would still apply.  */
8308 #ifdef __cplusplus
8309 extern "C"
8310 #endif
8311 char XcursorImageLoadCursor ();
8312 int
8313 main ()
8314 {
8315 return XcursorImageLoadCursor ();
8316   ;
8317   return 0;
8318 }
8319 _ACEOF
8320 if ac_fn_c_try_link "$LINENO"; then :
8321   case "$LIBEXT" in
8322     dll) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest.exe | grep "Xcursor" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8323     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'` ;;
8324     *) ac_cv_lib_soname_Xcursor=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXcursor\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXcursor\\.$LIBEXT[^        ]*\\)\\].*$/\1/"';2,$d'`
8325        if test "x$ac_cv_lib_soname_Xcursor" = x; then :
8326   ac_cv_lib_soname_Xcursor=`$LDD conftest$ac_exeext | grep "libXcursor\\.$LIBEXT" | sed -e "s/^.*\(libXcursor\.$LIBEXT[^         ]*\).*$/\1/"';2,$d'`
8327 fi ;;
8328   esac
8329 fi
8330 rm -f core conftest.err conftest.$ac_objext \
8331     conftest$ac_exeext conftest.$ac_ext
8332   LIBS=$ac_check_soname_save_LIBS
8333 fi
8334 if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
8335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8336 $as_echo "not found" >&6; }
8337
8338 else
8339   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcursor" >&5
8340 $as_echo "$ac_cv_lib_soname_Xcursor" >&6; }
8341
8342 cat >>confdefs.h <<_ACEOF
8343 #define SONAME_LIBXCURSOR "$ac_cv_lib_soname_Xcursor"
8344 _ACEOF
8345
8346
8347 fi
8348         fi
8349         if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
8350   case "x$with_xcursor" in
8351   x)   as_fn_append wine_notices "|libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported." ;;
8352   xno) ;;
8353   *)   as_fn_error $? "libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported.
8354 This is an error since --with-xcursor was requested." "$LINENO" 5 ;;
8355 esac
8356 fi
8357
8358                 if test "$ac_cv_header_X11_extensions_XInput_h" = "yes"
8359         then
8360             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXi" >&5
8361 $as_echo_n "checking for -lXi... " >&6; }
8362 if ${ac_cv_lib_soname_Xi+:} false; then :
8363   $as_echo_n "(cached) " >&6
8364 else
8365   ac_check_soname_save_LIBS=$LIBS
8366 LIBS="-lXi $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8367   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8368 /* end confdefs.h.  */
8369
8370 /* Override any GCC internal prototype to avoid an error.
8371    Use char because int might match the return type of a GCC
8372    builtin and then its argument prototype would still apply.  */
8373 #ifdef __cplusplus
8374 extern "C"
8375 #endif
8376 char XOpenDevice ();
8377 int
8378 main ()
8379 {
8380 return XOpenDevice ();
8381   ;
8382   return 0;
8383 }
8384 _ACEOF
8385 if ac_fn_c_try_link "$LINENO"; then :
8386   case "$LIBEXT" in
8387     dll) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest.exe | grep "Xi" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8388     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'` ;;
8389     *) ac_cv_lib_soname_Xi=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXi\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXi\\.$LIBEXT[^       ]*\\)\\].*$/\1/"';2,$d'`
8390        if test "x$ac_cv_lib_soname_Xi" = x; then :
8391   ac_cv_lib_soname_Xi=`$LDD conftest$ac_exeext | grep "libXi\\.$LIBEXT" | sed -e "s/^.*\(libXi\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'`
8392 fi ;;
8393   esac
8394 fi
8395 rm -f core conftest.err conftest.$ac_objext \
8396     conftest$ac_exeext conftest.$ac_ext
8397   LIBS=$ac_check_soname_save_LIBS
8398 fi
8399 if test "x$ac_cv_lib_soname_Xi" = "x"; then :
8400   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8401 $as_echo "not found" >&6; }
8402
8403 else
8404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xi" >&5
8405 $as_echo "$ac_cv_lib_soname_Xi" >&6; }
8406
8407 cat >>confdefs.h <<_ACEOF
8408 #define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
8409 _ACEOF
8410
8411
8412 fi
8413         fi
8414         if test "x$ac_cv_lib_soname_Xi" = "x"; then :
8415   case "x$with_xinput" in
8416   x)   as_fn_append wine_notices "|libxi ${notice_platform}development files not found, the Xinput extension won't be supported." ;;
8417   xno) ;;
8418   *)   as_fn_error $? "libxi ${notice_platform}development files not found, the Xinput extension won't be supported.
8419 This is an error since --with-xinput was requested." "$LINENO" 5 ;;
8420 esac
8421 fi
8422
8423                 if test "x$ac_cv_lib_soname_Xi" != x
8424         then
8425             if test "$ac_cv_header_X11_extensions_XInput2_h" != "yes"; then :
8426   case "x$with_xinput2" in
8427   x)   as_fn_append wine_notices "|XInput2 headers not found, the XInput 2 extension won't be supported." ;;
8428   xno) ;;
8429   *)   as_fn_error $? "XInput2 headers not found, the XInput 2 extension won't be supported.
8430 This is an error since --with-xinput2 was requested." "$LINENO" 5 ;;
8431 esac
8432 fi
8433         fi
8434
8435                 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
8436         then
8437               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
8438 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
8439 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then :
8440   $as_echo_n "(cached) " >&6
8441 else
8442   ac_check_lib_save_LIBS=$LIBS
8443 LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8445 /* end confdefs.h.  */
8446
8447 /* Override any GCC internal prototype to avoid an error.
8448    Use char because int might match the return type of a GCC
8449    builtin and then its argument prototype would still apply.  */
8450 #ifdef __cplusplus
8451 extern "C"
8452 #endif
8453 char XShmQueryExtension ();
8454 int
8455 main ()
8456 {
8457 return XShmQueryExtension ();
8458   ;
8459   return 0;
8460 }
8461 _ACEOF
8462 if ac_fn_c_try_link "$LINENO"; then :
8463   ac_cv_lib_Xext_XShmQueryExtension=yes
8464 else
8465   ac_cv_lib_Xext_XShmQueryExtension=no
8466 fi
8467 rm -f core conftest.err conftest.$ac_objext \
8468     conftest$ac_exeext conftest.$ac_ext
8469 LIBS=$ac_check_lib_save_LIBS
8470 fi
8471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
8472 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
8473 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then :
8474
8475 $as_echo "#define HAVE_LIBXXSHM 1" >>confdefs.h
8476
8477 fi
8478
8479         fi
8480         if test "$ac_cv_lib_Xext_XShmQueryExtension" != "yes"; then :
8481   case "x$with_xshm" in
8482   x)   as_fn_append wine_notices "|XShm ${notice_platform}development files not found, X Shared Memory won't be supported." ;;
8483   xno) ;;
8484   *)   as_fn_error $? "XShm ${notice_platform}development files not found, X Shared Memory won't be supported.
8485 This is an error since --with-xshm was requested." "$LINENO" 5 ;;
8486 esac
8487 fi
8488
8489                 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
8490         then
8491               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
8492 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
8493 if ${ac_cv_lib_Xext_XShapeQueryExtension+:} false; then :
8494   $as_echo_n "(cached) " >&6
8495 else
8496   ac_check_lib_save_LIBS=$LIBS
8497 LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8499 /* end confdefs.h.  */
8500
8501 /* Override any GCC internal prototype to avoid an error.
8502    Use char because int might match the return type of a GCC
8503    builtin and then its argument prototype would still apply.  */
8504 #ifdef __cplusplus
8505 extern "C"
8506 #endif
8507 char XShapeQueryExtension ();
8508 int
8509 main ()
8510 {
8511 return XShapeQueryExtension ();
8512   ;
8513   return 0;
8514 }
8515 _ACEOF
8516 if ac_fn_c_try_link "$LINENO"; then :
8517   ac_cv_lib_Xext_XShapeQueryExtension=yes
8518 else
8519   ac_cv_lib_Xext_XShapeQueryExtension=no
8520 fi
8521 rm -f core conftest.err conftest.$ac_objext \
8522     conftest$ac_exeext conftest.$ac_ext
8523 LIBS=$ac_check_lib_save_LIBS
8524 fi
8525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8526 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
8527 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = xyes; then :
8528
8529 $as_echo "#define HAVE_LIBXSHAPE 1" >>confdefs.h
8530
8531 fi
8532
8533         fi
8534         if test "$ac_cv_lib_Xext_XShapeQueryExtension" != "yes"; then :
8535   case "x$with_xshape" in
8536   x)   as_fn_append wine_notices "|XShape ${notice_platform}development files not found, XShape won't be supported." ;;
8537   xno) ;;
8538   *)   as_fn_error $? "XShape ${notice_platform}development files not found, XShape won't be supported.
8539 This is an error since --with-xshape was requested." "$LINENO" 5 ;;
8540 esac
8541 fi
8542
8543                 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes" -o "$ac_cv_header_X11_extensions_xf86vmproto_h" = "yes"
8544         then
8545             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXxf86vm" >&5
8546 $as_echo_n "checking for -lXxf86vm... " >&6; }
8547 if ${ac_cv_lib_soname_Xxf86vm+:} false; then :
8548   $as_echo_n "(cached) " >&6
8549 else
8550   ac_check_soname_save_LIBS=$LIBS
8551 LIBS="-lXxf86vm $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8552   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8553 /* end confdefs.h.  */
8554
8555 /* Override any GCC internal prototype to avoid an error.
8556    Use char because int might match the return type of a GCC
8557    builtin and then its argument prototype would still apply.  */
8558 #ifdef __cplusplus
8559 extern "C"
8560 #endif
8561 char XF86VidModeQueryExtension ();
8562 int
8563 main ()
8564 {
8565 return XF86VidModeQueryExtension ();
8566   ;
8567   return 0;
8568 }
8569 _ACEOF
8570 if ac_fn_c_try_link "$LINENO"; then :
8571   case "$LIBEXT" in
8572     dll) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest.exe | grep "Xxf86vm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8573     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'` ;;
8574     *) ac_cv_lib_soname_Xxf86vm=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXxf86vm\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXxf86vm\\.$LIBEXT[^        ]*\\)\\].*$/\1/"';2,$d'`
8575        if test "x$ac_cv_lib_soname_Xxf86vm" = x; then :
8576   ac_cv_lib_soname_Xxf86vm=`$LDD conftest$ac_exeext | grep "libXxf86vm\\.$LIBEXT" | sed -e "s/^.*\(libXxf86vm\.$LIBEXT[^         ]*\).*$/\1/"';2,$d'`
8577 fi ;;
8578   esac
8579 fi
8580 rm -f core conftest.err conftest.$ac_objext \
8581     conftest$ac_exeext conftest.$ac_ext
8582   LIBS=$ac_check_soname_save_LIBS
8583 fi
8584 if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
8585   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8586 $as_echo "not found" >&6; }
8587
8588 else
8589   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xxf86vm" >&5
8590 $as_echo "$ac_cv_lib_soname_Xxf86vm" >&6; }
8591
8592 cat >>confdefs.h <<_ACEOF
8593 #define SONAME_LIBXXF86VM "$ac_cv_lib_soname_Xxf86vm"
8594 _ACEOF
8595
8596
8597 fi
8598         fi
8599         if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
8600   case "x$with_xxf86vm" in
8601   x)   as_fn_append wine_notices "|libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported." ;;
8602   xno) ;;
8603   *)   as_fn_error $? "libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported.
8604 This is an error since --with-xxf86vm was requested." "$LINENO" 5 ;;
8605 esac
8606 fi
8607
8608                 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"
8609         then
8610             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrender" >&5
8611 $as_echo_n "checking for -lXrender... " >&6; }
8612 if ${ac_cv_lib_soname_Xrender+:} false; then :
8613   $as_echo_n "(cached) " >&6
8614 else
8615   ac_check_soname_save_LIBS=$LIBS
8616 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8617   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8618 /* end confdefs.h.  */
8619
8620 /* Override any GCC internal prototype to avoid an error.
8621    Use char because int might match the return type of a GCC
8622    builtin and then its argument prototype would still apply.  */
8623 #ifdef __cplusplus
8624 extern "C"
8625 #endif
8626 char XRenderQueryExtension ();
8627 int
8628 main ()
8629 {
8630 return XRenderQueryExtension ();
8631   ;
8632   return 0;
8633 }
8634 _ACEOF
8635 if ac_fn_c_try_link "$LINENO"; then :
8636   case "$LIBEXT" in
8637     dll) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest.exe | grep "Xrender" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8638     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'` ;;
8639     *) ac_cv_lib_soname_Xrender=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXrender\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXrender\\.$LIBEXT[^        ]*\\)\\].*$/\1/"';2,$d'`
8640        if test "x$ac_cv_lib_soname_Xrender" = x; then :
8641   ac_cv_lib_soname_Xrender=`$LDD conftest$ac_exeext | grep "libXrender\\.$LIBEXT" | sed -e "s/^.*\(libXrender\.$LIBEXT[^         ]*\).*$/\1/"';2,$d'`
8642 fi ;;
8643   esac
8644 fi
8645 rm -f core conftest.err conftest.$ac_objext \
8646     conftest$ac_exeext conftest.$ac_ext
8647   LIBS=$ac_check_soname_save_LIBS
8648 fi
8649 if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
8650   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8651 $as_echo "not found" >&6; }
8652
8653 else
8654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrender" >&5
8655 $as_echo "$ac_cv_lib_soname_Xrender" >&6; }
8656
8657 cat >>confdefs.h <<_ACEOF
8658 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
8659 _ACEOF
8660
8661        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderSetPictureTransform in -lXrender" >&5
8662 $as_echo_n "checking for XRenderSetPictureTransform in -lXrender... " >&6; }
8663 if ${ac_cv_lib_Xrender_XRenderSetPictureTransform+:} false; then :
8664   $as_echo_n "(cached) " >&6
8665 else
8666   ac_check_lib_save_LIBS=$LIBS
8667 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8669 /* end confdefs.h.  */
8670
8671 /* Override any GCC internal prototype to avoid an error.
8672    Use char because int might match the return type of a GCC
8673    builtin and then its argument prototype would still apply.  */
8674 #ifdef __cplusplus
8675 extern "C"
8676 #endif
8677 char XRenderSetPictureTransform ();
8678 int
8679 main ()
8680 {
8681 return XRenderSetPictureTransform ();
8682   ;
8683   return 0;
8684 }
8685 _ACEOF
8686 if ac_fn_c_try_link "$LINENO"; then :
8687   ac_cv_lib_Xrender_XRenderSetPictureTransform=yes
8688 else
8689   ac_cv_lib_Xrender_XRenderSetPictureTransform=no
8690 fi
8691 rm -f core conftest.err conftest.$ac_objext \
8692     conftest$ac_exeext conftest.$ac_ext
8693 LIBS=$ac_check_lib_save_LIBS
8694 fi
8695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5
8696 $as_echo "$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6; }
8697 if test "x$ac_cv_lib_Xrender_XRenderSetPictureTransform" = xyes; then :
8698
8699 $as_echo "#define HAVE_XRENDERSETPICTURETRANSFORM 1" >>confdefs.h
8700
8701 fi
8702
8703                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderCreateLinearGradient in -lXrender" >&5
8704 $as_echo_n "checking for XRenderCreateLinearGradient in -lXrender... " >&6; }
8705 if ${ac_cv_lib_Xrender_XRenderCreateLinearGradient+:} false; then :
8706   $as_echo_n "(cached) " >&6
8707 else
8708   ac_check_lib_save_LIBS=$LIBS
8709 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8711 /* end confdefs.h.  */
8712
8713 /* Override any GCC internal prototype to avoid an error.
8714    Use char because int might match the return type of a GCC
8715    builtin and then its argument prototype would still apply.  */
8716 #ifdef __cplusplus
8717 extern "C"
8718 #endif
8719 char XRenderCreateLinearGradient ();
8720 int
8721 main ()
8722 {
8723 return XRenderCreateLinearGradient ();
8724   ;
8725   return 0;
8726 }
8727 _ACEOF
8728 if ac_fn_c_try_link "$LINENO"; then :
8729   ac_cv_lib_Xrender_XRenderCreateLinearGradient=yes
8730 else
8731   ac_cv_lib_Xrender_XRenderCreateLinearGradient=no
8732 fi
8733 rm -f core conftest.err conftest.$ac_objext \
8734     conftest$ac_exeext conftest.$ac_ext
8735 LIBS=$ac_check_lib_save_LIBS
8736 fi
8737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderCreateLinearGradient" >&5
8738 $as_echo "$ac_cv_lib_Xrender_XRenderCreateLinearGradient" >&6; }
8739 if test "x$ac_cv_lib_Xrender_XRenderCreateLinearGradient" = xyes; then :
8740
8741 $as_echo "#define HAVE_XRENDERCREATELINEARGRADIENT 1" >>confdefs.h
8742
8743 fi
8744
8745 fi
8746
8747         fi
8748         if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
8749   case "x$with_xrender" in
8750   x)   as_fn_append wine_warnings "|libxrender ${notice_platform}development files not found, XRender won't be supported." ;;
8751   xno) ;;
8752   *)   as_fn_error $? "libxrender ${notice_platform}development files not found, XRender won't be supported.
8753 This is an error since --with-xrender was requested." "$LINENO" 5 ;;
8754 esac
8755 fi
8756
8757                 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes" -a "x$ac_cv_lib_soname_Xrender" != "x"
8758         then
8759                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8760 /* end confdefs.h.  */
8761 #include <X11/Xlib.h>
8762 #include <X11/extensions/Xrandr.h>
8763 int
8764 main ()
8765 {
8766 static typeof(XRRSetScreenConfigAndRate) * func; if (func) return 0;
8767   ;
8768   return 0;
8769 }
8770 _ACEOF
8771 if ac_fn_c_try_compile "$LINENO"; then :
8772   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrandr" >&5
8773 $as_echo_n "checking for -lXrandr... " >&6; }
8774 if ${ac_cv_lib_soname_Xrandr+:} false; then :
8775   $as_echo_n "(cached) " >&6
8776 else
8777   ac_check_soname_save_LIBS=$LIBS
8778 LIBS="-lXrandr $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8779   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8780 /* end confdefs.h.  */
8781
8782 /* Override any GCC internal prototype to avoid an error.
8783    Use char because int might match the return type of a GCC
8784    builtin and then its argument prototype would still apply.  */
8785 #ifdef __cplusplus
8786 extern "C"
8787 #endif
8788 char XRRQueryExtension ();
8789 int
8790 main ()
8791 {
8792 return XRRQueryExtension ();
8793   ;
8794   return 0;
8795 }
8796 _ACEOF
8797 if ac_fn_c_try_link "$LINENO"; then :
8798   case "$LIBEXT" in
8799     dll) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest.exe | grep "Xrandr" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8800     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'` ;;
8801     *) ac_cv_lib_soname_Xrandr=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXrandr\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXrandr\\.$LIBEXT[^   ]*\\)\\].*$/\1/"';2,$d'`
8802        if test "x$ac_cv_lib_soname_Xrandr" = x; then :
8803   ac_cv_lib_soname_Xrandr=`$LDD conftest$ac_exeext | grep "libXrandr\\.$LIBEXT" | sed -e "s/^.*\(libXrandr\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'`
8804 fi ;;
8805   esac
8806 fi
8807 rm -f core conftest.err conftest.$ac_objext \
8808     conftest$ac_exeext conftest.$ac_ext
8809   LIBS=$ac_check_soname_save_LIBS
8810 fi
8811 if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
8812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8813 $as_echo "not found" >&6; }
8814
8815 else
8816   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrandr" >&5
8817 $as_echo "$ac_cv_lib_soname_Xrandr" >&6; }
8818
8819 cat >>confdefs.h <<_ACEOF
8820 #define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
8821 _ACEOF
8822
8823        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8824 /* end confdefs.h.  */
8825 #include <X11/extensions/Xrandr.h>
8826 int
8827 main ()
8828 {
8829 static typeof(XRRGetScreenResources) *f; if (f) return 0;
8830   ;
8831   return 0;
8832 }
8833 _ACEOF
8834 if ac_fn_c_try_compile "$LINENO"; then :
8835
8836 $as_echo "#define HAVE_XRRGETSCREENRESOURCES 1" >>confdefs.h
8837
8838 fi
8839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8840 fi
8841 fi
8842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8843         fi
8844         if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
8845   case "x$with_xrandr" in
8846   x)   as_fn_append wine_notices "|libxrandr ${notice_platform}development files not found, XRandr won't be supported." ;;
8847   xno) ;;
8848   *)   as_fn_error $? "libxrandr ${notice_platform}development files not found, XRandr won't be supported.
8849 This is an error since --with-xrandr was requested." "$LINENO" 5 ;;
8850 esac
8851 fi
8852
8853                 if test "$ac_cv_header_X11_extensions_Xinerama_h" = "yes"
8854         then
8855                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8856 /* end confdefs.h.  */
8857 #include <X11/Xlib.h>
8858 #include <X11/extensions/Xinerama.h>
8859 int
8860 main ()
8861 {
8862 static typeof(XineramaQueryScreens) * func; if (func) return 0;
8863   ;
8864   return 0;
8865 }
8866 _ACEOF
8867 if ac_fn_c_try_compile "$LINENO"; then :
8868   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXinerama" >&5
8869 $as_echo_n "checking for -lXinerama... " >&6; }
8870 if ${ac_cv_lib_soname_Xinerama+:} false; then :
8871   $as_echo_n "(cached) " >&6
8872 else
8873   ac_check_soname_save_LIBS=$LIBS
8874 LIBS="-lXinerama $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8875   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8876 /* end confdefs.h.  */
8877
8878 /* Override any GCC internal prototype to avoid an error.
8879    Use char because int might match the return type of a GCC
8880    builtin and then its argument prototype would still apply.  */
8881 #ifdef __cplusplus
8882 extern "C"
8883 #endif
8884 char XineramaQueryScreens ();
8885 int
8886 main ()
8887 {
8888 return XineramaQueryScreens ();
8889   ;
8890   return 0;
8891 }
8892 _ACEOF
8893 if ac_fn_c_try_link "$LINENO"; then :
8894   case "$LIBEXT" in
8895     dll) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest.exe | grep "Xinerama" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8896     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'` ;;
8897     *) ac_cv_lib_soname_Xinerama=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXinerama\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXinerama\\.$LIBEXT[^     ]*\\)\\].*$/\1/"';2,$d'`
8898        if test "x$ac_cv_lib_soname_Xinerama" = x; then :
8899   ac_cv_lib_soname_Xinerama=`$LDD conftest$ac_exeext | grep "libXinerama\\.$LIBEXT" | sed -e "s/^.*\(libXinerama\.$LIBEXT[^      ]*\).*$/\1/"';2,$d'`
8900 fi ;;
8901   esac
8902 fi
8903 rm -f core conftest.err conftest.$ac_objext \
8904     conftest$ac_exeext conftest.$ac_ext
8905   LIBS=$ac_check_soname_save_LIBS
8906 fi
8907 if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
8908   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8909 $as_echo "not found" >&6; }
8910
8911 else
8912   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xinerama" >&5
8913 $as_echo "$ac_cv_lib_soname_Xinerama" >&6; }
8914
8915 cat >>confdefs.h <<_ACEOF
8916 #define SONAME_LIBXINERAMA "$ac_cv_lib_soname_Xinerama"
8917 _ACEOF
8918
8919
8920 fi
8921 fi
8922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8923         fi
8924         if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
8925   case "x$with_xinerama" in
8926   x)   as_fn_append wine_notices "|libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported." ;;
8927   xno) ;;
8928   *)   as_fn_error $? "libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported.
8929 This is an error since --with-xinerama was requested." "$LINENO" 5 ;;
8930 esac
8931 fi
8932
8933                 if test "$ac_cv_header_X11_extensions_Xcomposite_h" = "yes"
8934         then
8935             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcomposite" >&5
8936 $as_echo_n "checking for -lXcomposite... " >&6; }
8937 if ${ac_cv_lib_soname_Xcomposite+:} false; then :
8938   $as_echo_n "(cached) " >&6
8939 else
8940   ac_check_soname_save_LIBS=$LIBS
8941 LIBS="-lXcomposite $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8942   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8943 /* end confdefs.h.  */
8944
8945 /* Override any GCC internal prototype to avoid an error.
8946    Use char because int might match the return type of a GCC
8947    builtin and then its argument prototype would still apply.  */
8948 #ifdef __cplusplus
8949 extern "C"
8950 #endif
8951 char XCompositeRedirectWindow ();
8952 int
8953 main ()
8954 {
8955 return XCompositeRedirectWindow ();
8956   ;
8957   return 0;
8958 }
8959 _ACEOF
8960 if ac_fn_c_try_link "$LINENO"; then :
8961   case "$LIBEXT" in
8962     dll) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest.exe | grep "Xcomposite" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8963     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'` ;;
8964     *) ac_cv_lib_soname_Xcomposite=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXcomposite\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXcomposite\\.$LIBEXT[^       ]*\\)\\].*$/\1/"';2,$d'`
8965        if test "x$ac_cv_lib_soname_Xcomposite" = x; then :
8966   ac_cv_lib_soname_Xcomposite=`$LDD conftest$ac_exeext | grep "libXcomposite\\.$LIBEXT" | sed -e "s/^.*\(libXcomposite\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'`
8967 fi ;;
8968   esac
8969 fi
8970 rm -f core conftest.err conftest.$ac_objext \
8971     conftest$ac_exeext conftest.$ac_ext
8972   LIBS=$ac_check_soname_save_LIBS
8973 fi
8974 if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
8975   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8976 $as_echo "not found" >&6; }
8977
8978 else
8979   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcomposite" >&5
8980 $as_echo "$ac_cv_lib_soname_Xcomposite" >&6; }
8981
8982 cat >>confdefs.h <<_ACEOF
8983 #define SONAME_LIBXCOMPOSITE "$ac_cv_lib_soname_Xcomposite"
8984 _ACEOF
8985
8986
8987 fi
8988         fi
8989         if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
8990   case "x$with_xcomposite" in
8991   x)   as_fn_append wine_notices "|libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported." ;;
8992   xno) ;;
8993   *)   as_fn_error $? "libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported.
8994 This is an error since --with-xcomposite was requested." "$LINENO" 5 ;;
8995 esac
8996 fi
8997
8998                 ac_fn_c_check_member "$LINENO" "XICCallback" "callback" "ac_cv_member_XICCallback_callback" "#ifdef HAVE_X11_XLIB_H
8999 #include <X11/Xlib.h>
9000 #endif
9001 "
9002 if test "x$ac_cv_member_XICCallback_callback" = xyes; then :
9003
9004 cat >>confdefs.h <<_ACEOF
9005 #define HAVE_XICCALLBACK_CALLBACK 1
9006 _ACEOF
9007
9008
9009 fi
9010 ac_fn_c_check_member "$LINENO" "XEvent" "xcookie" "ac_cv_member_XEvent_xcookie" "#ifdef HAVE_X11_XLIB_H
9011 #include <X11/Xlib.h>
9012 #endif
9013 "
9014 if test "x$ac_cv_member_XEvent_xcookie" = xyes; then :
9015
9016 cat >>confdefs.h <<_ACEOF
9017 #define HAVE_XEVENT_XCOOKIE 1
9018 _ACEOF
9019
9020
9021 fi
9022
9023
9024
9025         opengl_msg=""
9026     if test "x$with_opengl" != "xno"
9027     then
9028         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
9029 $as_echo_n "checking for -lGL... " >&6; }
9030 if ${ac_cv_lib_soname_GL+:} false; then :
9031   $as_echo_n "(cached) " >&6
9032 else
9033   ac_check_soname_save_LIBS=$LIBS
9034 LIBS="-lGL $X_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
9035   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9036 /* end confdefs.h.  */
9037
9038 /* Override any GCC internal prototype to avoid an error.
9039    Use char because int might match the return type of a GCC
9040    builtin and then its argument prototype would still apply.  */
9041 #ifdef __cplusplus
9042 extern "C"
9043 #endif
9044 char glXCreateContext ();
9045 int
9046 main ()
9047 {
9048 return glXCreateContext ();
9049   ;
9050   return 0;
9051 }
9052 _ACEOF
9053 if ac_fn_c_try_link "$LINENO"; then :
9054   case "$LIBEXT" in
9055     dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9056     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'` ;;
9057     *) ac_cv_lib_soname_GL=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libGL\\.$LIBEXT" | sed -e "s/^.*\\[\\(libGL\\.$LIBEXT[^       ]*\\)\\].*$/\1/"';2,$d'`
9058        if test "x$ac_cv_lib_soname_GL" = x; then :
9059   ac_cv_lib_soname_GL=`$LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'`
9060 fi ;;
9061   esac
9062 fi
9063 rm -f core conftest.err conftest.$ac_objext \
9064     conftest$ac_exeext conftest.$ac_ext
9065   LIBS=$ac_check_soname_save_LIBS
9066 fi
9067 if test "x$ac_cv_lib_soname_GL" = "x"; then :
9068   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9069 $as_echo "not found" >&6; }
9070        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
9071 $as_echo_n "checking for -lGL... " >&6; }
9072 if ${ac_cv_lib_soname_GL+:} false; then :
9073   $as_echo_n "(cached) " >&6
9074 else
9075   ac_check_soname_save_LIBS=$LIBS
9076 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"
9077   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9078 /* end confdefs.h.  */
9079
9080 /* Override any GCC internal prototype to avoid an error.
9081    Use char because int might match the return type of a GCC
9082    builtin and then its argument prototype would still apply.  */
9083 #ifdef __cplusplus
9084 extern "C"
9085 #endif
9086 char glXCreateContext ();
9087 int
9088 main ()
9089 {
9090 return glXCreateContext ();
9091   ;
9092   return 0;
9093 }
9094 _ACEOF
9095 if ac_fn_c_try_link "$LINENO"; then :
9096   case "$LIBEXT" in
9097     dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9098     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'` ;;
9099     *) ac_cv_lib_soname_GL=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libGL\\.$LIBEXT" | sed -e "s/^.*\\[\\(libGL\\.$LIBEXT[^       ]*\\)\\].*$/\1/"';2,$d'`
9100        if test "x$ac_cv_lib_soname_GL" = x; then :
9101   ac_cv_lib_soname_GL=`$LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'`
9102 fi ;;
9103   esac
9104 fi
9105 rm -f core conftest.err conftest.$ac_objext \
9106     conftest$ac_exeext conftest.$ac_ext
9107   LIBS=$ac_check_soname_save_LIBS
9108 fi
9109 if test "x$ac_cv_lib_soname_GL" = "x"; then :
9110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9111 $as_echo "not found" >&6; }
9112        if test -f /usr/X11R6/lib/libGL.a
9113                             then
9114                                 opengl_msg="/usr/X11R6/lib/libGL.a is present on your system.
9115 This probably prevents linking to OpenGL. Try deleting the file and restarting configure."
9116                             else
9117                                 opengl_msg="No OpenGL library found on this system."
9118                             fi
9119 else
9120   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
9121 $as_echo "$ac_cv_lib_soname_GL" >&6; }
9122
9123 cat >>confdefs.h <<_ACEOF
9124 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
9125 _ACEOF
9126
9127        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"
9128 fi
9129 else
9130   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
9131 $as_echo "$ac_cv_lib_soname_GL" >&6; }
9132
9133 cat >>confdefs.h <<_ACEOF
9134 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
9135 _ACEOF
9136
9137        OPENGL_LIBS="-lGL"
9138 fi
9139         if test "x$with_glu" != "xno"
9140         then
9141             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gluLookAt in -lGLU" >&5
9142 $as_echo_n "checking for gluLookAt in -lGLU... " >&6; }
9143 if ${ac_cv_lib_GLU_gluLookAt+:} false; then :
9144   $as_echo_n "(cached) " >&6
9145 else
9146   ac_check_lib_save_LIBS=$LIBS
9147 LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
9148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9149 /* end confdefs.h.  */
9150
9151 /* Override any GCC internal prototype to avoid an error.
9152    Use char because int might match the return type of a GCC
9153    builtin and then its argument prototype would still apply.  */
9154 #ifdef __cplusplus
9155 extern "C"
9156 #endif
9157 char gluLookAt ();
9158 int
9159 main ()
9160 {
9161 return gluLookAt ();
9162   ;
9163   return 0;
9164 }
9165 _ACEOF
9166 if ac_fn_c_try_link "$LINENO"; then :
9167   ac_cv_lib_GLU_gluLookAt=yes
9168 else
9169   ac_cv_lib_GLU_gluLookAt=no
9170 fi
9171 rm -f core conftest.err conftest.$ac_objext \
9172     conftest$ac_exeext conftest.$ac_ext
9173 LIBS=$ac_check_lib_save_LIBS
9174 fi
9175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GLU_gluLookAt" >&5
9176 $as_echo "$ac_cv_lib_GLU_gluLookAt" >&6; }
9177 if test "x$ac_cv_lib_GLU_gluLookAt" = xyes; then :
9178   :
9179 fi
9180
9181             if test "x$ac_cv_lib_GLU_gluLookAt" != xyes; then :
9182   case "x$with_glu" in
9183   x)   as_fn_append wine_notices "|libGLU ${notice_platform}development files not found, GLU won't be supported." ;;
9184   xno) ;;
9185   *)   as_fn_error $? "libGLU ${notice_platform}development files not found, GLU won't be supported.
9186 This is an error since --with-glu was requested." "$LINENO" 5 ;;
9187 esac
9188 fi
9189         fi
9190
9191         if test "x$with_osmesa" != "xno"
9192         then
9193             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lOSMesa" >&5
9194 $as_echo_n "checking for -lOSMesa... " >&6; }
9195 if ${ac_cv_lib_soname_OSMesa+:} false; then :
9196   $as_echo_n "(cached) " >&6
9197 else
9198   ac_check_soname_save_LIBS=$LIBS
9199 LIBS="-lOSMesa $X_LIBS $X_PRE_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
9200   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9201 /* end confdefs.h.  */
9202
9203 /* Override any GCC internal prototype to avoid an error.
9204    Use char because int might match the return type of a GCC
9205    builtin and then its argument prototype would still apply.  */
9206 #ifdef __cplusplus
9207 extern "C"
9208 #endif
9209 char glAccum ();
9210 int
9211 main ()
9212 {
9213 return glAccum ();
9214   ;
9215   return 0;
9216 }
9217 _ACEOF
9218 if ac_fn_c_try_link "$LINENO"; then :
9219   case "$LIBEXT" in
9220     dll) ac_cv_lib_soname_OSMesa=`$ac_cv_path_LDD conftest.exe | grep "OSMesa" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9221     dylib) ac_cv_lib_soname_OSMesa=`otool -L conftest$ac_exeext | grep "libOSMesa\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libOSMesa\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
9222     *) ac_cv_lib_soname_OSMesa=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libOSMesa\\.$LIBEXT" | sed -e "s/^.*\\[\\(libOSMesa\\.$LIBEXT[^   ]*\\)\\].*$/\1/"';2,$d'`
9223        if test "x$ac_cv_lib_soname_OSMesa" = x; then :
9224   ac_cv_lib_soname_OSMesa=`$LDD conftest$ac_exeext | grep "libOSMesa\\.$LIBEXT" | sed -e "s/^.*\(libOSMesa\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'`
9225 fi ;;
9226   esac
9227 fi
9228 rm -f core conftest.err conftest.$ac_objext \
9229     conftest$ac_exeext conftest.$ac_ext
9230   LIBS=$ac_check_soname_save_LIBS
9231 fi
9232 if test "x$ac_cv_lib_soname_OSMesa" = "x"; then :
9233   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9234 $as_echo "not found" >&6; }
9235
9236 else
9237   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_OSMesa" >&5
9238 $as_echo "$ac_cv_lib_soname_OSMesa" >&6; }
9239
9240 cat >>confdefs.h <<_ACEOF
9241 #define SONAME_LIBOSMESA "$ac_cv_lib_soname_OSMesa"
9242 _ACEOF
9243
9244
9245 fi
9246             if test "x$ac_cv_lib_soname_OSMesa" = "x"; then :
9247   case "x$with_osmesa" in
9248   x)   as_fn_append wine_notices "|libOSMesa ${notice_platform}development files not found (or too old), OpenGL rendering in bitmaps won't be supported." ;;
9249   xno) ;;
9250   *)   as_fn_error $? "libOSMesa ${notice_platform}development files not found (or too old), OpenGL rendering in bitmaps won't be supported.
9251 This is an error since --with-osmesa was requested." "$LINENO" 5 ;;
9252 esac
9253 fi
9254         fi
9255     fi
9256     if test -n "$opengl_msg"; then :
9257   case "x$with_opengl" in
9258   x)   as_fn_append wine_warnings "|$opengl_msg
9259 OpenGL and Direct3D won't be supported." ;;
9260   xno) ;;
9261   *)   as_fn_error $? "$opengl_msg
9262 OpenGL and Direct3D won't be supported.
9263 This is an error since --with-opengl was requested." "$LINENO" 5 ;;
9264 esac
9265 fi
9266
9267     CPPFLAGS="$ac_save_CPPFLAGS"
9268 else
9269     XLIB=""
9270     X_CFLAGS=""
9271     X_LIBS=""
9272     enable_winex11_drv=${enable_winex11_drv:-no}
9273 fi
9274 if test "x$XLIB" = "x"; then :
9275   case "x$with_x" in
9276   xno) ;;
9277   *)   as_fn_error $? "X ${notice_platform}development files not found. Wine will be built
9278 without X support, which probably isn't what you want. You will need
9279 to install ${notice_platform}development packages of Xlib/Xfree86 at the very least.
9280 Use the --without-x option if you really want this." "$LINENO" 5 ;;
9281 esac
9282 fi
9283
9284 test "x$ac_cv_lib_GLU_gluLookAt" != xyes && enable_glu32=${enable_glu32:-no}
9285
9286 if test "$ac_cv_header_CL_cl_h" = "yes"
9287 then
9288     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clGetPlatformInfo in -lOpenCL" >&5
9289 $as_echo_n "checking for clGetPlatformInfo in -lOpenCL... " >&6; }
9290 if ${ac_cv_lib_OpenCL_clGetPlatformInfo+:} false; then :
9291   $as_echo_n "(cached) " >&6
9292 else
9293   ac_check_lib_save_LIBS=$LIBS
9294 LIBS="-lOpenCL  $LIBS"
9295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9296 /* end confdefs.h.  */
9297
9298 /* Override any GCC internal prototype to avoid an error.
9299    Use char because int might match the return type of a GCC
9300    builtin and then its argument prototype would still apply.  */
9301 #ifdef __cplusplus
9302 extern "C"
9303 #endif
9304 char clGetPlatformInfo ();
9305 int
9306 main ()
9307 {
9308 return clGetPlatformInfo ();
9309   ;
9310   return 0;
9311 }
9312 _ACEOF
9313 if ac_fn_c_try_link "$LINENO"; then :
9314   ac_cv_lib_OpenCL_clGetPlatformInfo=yes
9315 else
9316   ac_cv_lib_OpenCL_clGetPlatformInfo=no
9317 fi
9318 rm -f core conftest.err conftest.$ac_objext \
9319     conftest$ac_exeext conftest.$ac_ext
9320 LIBS=$ac_check_lib_save_LIBS
9321 fi
9322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_OpenCL_clGetPlatformInfo" >&5
9323 $as_echo "$ac_cv_lib_OpenCL_clGetPlatformInfo" >&6; }
9324 if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" = xyes; then :
9325   LIBOPENCL="-lOpenCL"
9326
9327 fi
9328
9329 fi
9330 if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes; then :
9331   case "x$with_opencl" in
9332   x)   as_fn_append wine_notices "|OpenCL ${notice_platform}development files not found, OpenCL won't be supported." ;;
9333   xno) ;;
9334   *)   as_fn_error $? "OpenCL ${notice_platform}development files not found, OpenCL won't be supported.
9335 This is an error since --with-opencl was requested." "$LINENO" 5 ;;
9336 esac
9337 fi
9338 test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes && enable_opencl=${enable_opencl:-no}
9339
9340
9341 XML2LIBS=""
9342
9343 XML2INCL=""
9344
9345 XSLTINCL=""
9346
9347 if test "x$with_xml" != "xno"
9348 then
9349     ac_save_CPPFLAGS="$CPPFLAGS"
9350     if test "$PKG_CONFIG" != "false"
9351     then
9352         ac_xml_libs="`$PKG_CONFIG --libs libxml-2.0 2>/dev/null`"
9353         ac_xml_cflags="`$PKG_CONFIG --cflags libxml-2.0 2>/dev/null`"
9354     else
9355         ac_xml_libs="`xml2-config --libs 2>/dev/null`"
9356         ac_xml_cflags="`xml2-config --cflags  2>/dev/null`"
9357     fi
9358     CPPFLAGS="$CPPFLAGS $ac_xml_cflags"
9359     for ac_header in libxml/parser.h libxml/xmlsave.h libxml/SAX2.h
9360 do :
9361   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9362 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9363 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9364   cat >>confdefs.h <<_ACEOF
9365 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9366 _ACEOF
9367
9368 fi
9369
9370 done
9371
9372     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"
9373     then
9374         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseMemory in -lxml2" >&5
9375 $as_echo_n "checking for xmlParseMemory in -lxml2... " >&6; }
9376 if ${ac_cv_lib_xml2_xmlParseMemory+:} false; then :
9377   $as_echo_n "(cached) " >&6
9378 else
9379   ac_check_lib_save_LIBS=$LIBS
9380 LIBS="-lxml2 $ac_xml_libs $LIBS"
9381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9382 /* end confdefs.h.  */
9383
9384 /* Override any GCC internal prototype to avoid an error.
9385    Use char because int might match the return type of a GCC
9386    builtin and then its argument prototype would still apply.  */
9387 #ifdef __cplusplus
9388 extern "C"
9389 #endif
9390 char xmlParseMemory ();
9391 int
9392 main ()
9393 {
9394 return xmlParseMemory ();
9395   ;
9396   return 0;
9397 }
9398 _ACEOF
9399 if ac_fn_c_try_link "$LINENO"; then :
9400   ac_cv_lib_xml2_xmlParseMemory=yes
9401 else
9402   ac_cv_lib_xml2_xmlParseMemory=no
9403 fi
9404 rm -f core conftest.err conftest.$ac_objext \
9405     conftest$ac_exeext conftest.$ac_ext
9406 LIBS=$ac_check_lib_save_LIBS
9407 fi
9408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseMemory" >&5
9409 $as_echo "$ac_cv_lib_xml2_xmlParseMemory" >&6; }
9410 if test "x$ac_cv_lib_xml2_xmlParseMemory" = xyes; then :
9411
9412 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
9413
9414              XML2LIBS="$ac_xml_libs"
9415              XML2INCL="$ac_xml_cflags"
9416 fi
9417
9418         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlReadMemory in -lxml2" >&5
9419 $as_echo_n "checking for xmlReadMemory in -lxml2... " >&6; }
9420 if ${ac_cv_lib_xml2_xmlReadMemory+:} false; then :
9421   $as_echo_n "(cached) " >&6
9422 else
9423   ac_check_lib_save_LIBS=$LIBS
9424 LIBS="-lxml2 $ac_xml_libs $LIBS"
9425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9426 /* end confdefs.h.  */
9427
9428 /* Override any GCC internal prototype to avoid an error.
9429    Use char because int might match the return type of a GCC
9430    builtin and then its argument prototype would still apply.  */
9431 #ifdef __cplusplus
9432 extern "C"
9433 #endif
9434 char xmlReadMemory ();
9435 int
9436 main ()
9437 {
9438 return xmlReadMemory ();
9439   ;
9440   return 0;
9441 }
9442 _ACEOF
9443 if ac_fn_c_try_link "$LINENO"; then :
9444   ac_cv_lib_xml2_xmlReadMemory=yes
9445 else
9446   ac_cv_lib_xml2_xmlReadMemory=no
9447 fi
9448 rm -f core conftest.err conftest.$ac_objext \
9449     conftest$ac_exeext conftest.$ac_ext
9450 LIBS=$ac_check_lib_save_LIBS
9451 fi
9452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlReadMemory" >&5
9453 $as_echo "$ac_cv_lib_xml2_xmlReadMemory" >&6; }
9454 if test "x$ac_cv_lib_xml2_xmlReadMemory" = xyes; then :
9455
9456 $as_echo "#define HAVE_XMLREADMEMORY 1" >>confdefs.h
9457
9458 fi
9459
9460         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlNewDocPI in -lxml2" >&5
9461 $as_echo_n "checking for xmlNewDocPI in -lxml2... " >&6; }
9462 if ${ac_cv_lib_xml2_xmlNewDocPI+:} false; then :
9463   $as_echo_n "(cached) " >&6
9464 else
9465   ac_check_lib_save_LIBS=$LIBS
9466 LIBS="-lxml2 $ac_xml_libs $LIBS"
9467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9468 /* end confdefs.h.  */
9469
9470 /* Override any GCC internal prototype to avoid an error.
9471    Use char because int might match the return type of a GCC
9472    builtin and then its argument prototype would still apply.  */
9473 #ifdef __cplusplus
9474 extern "C"
9475 #endif
9476 char xmlNewDocPI ();
9477 int
9478 main ()
9479 {
9480 return xmlNewDocPI ();
9481   ;
9482   return 0;
9483 }
9484 _ACEOF
9485 if ac_fn_c_try_link "$LINENO"; then :
9486   ac_cv_lib_xml2_xmlNewDocPI=yes
9487 else
9488   ac_cv_lib_xml2_xmlNewDocPI=no
9489 fi
9490 rm -f core conftest.err conftest.$ac_objext \
9491     conftest$ac_exeext conftest.$ac_ext
9492 LIBS=$ac_check_lib_save_LIBS
9493 fi
9494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlNewDocPI" >&5
9495 $as_echo "$ac_cv_lib_xml2_xmlNewDocPI" >&6; }
9496 if test "x$ac_cv_lib_xml2_xmlNewDocPI" = xyes; then :
9497
9498 $as_echo "#define HAVE_XMLNEWDOCPI 1" >>confdefs.h
9499
9500 fi
9501
9502         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetParserStructuredErrors in -lxml2" >&5
9503 $as_echo_n "checking for xmlSchemaSetParserStructuredErrors in -lxml2... " >&6; }
9504 if ${ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors+:} false; then :
9505   $as_echo_n "(cached) " >&6
9506 else
9507   ac_check_lib_save_LIBS=$LIBS
9508 LIBS="-lxml2 $ac_xml_libs $LIBS"
9509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9510 /* end confdefs.h.  */
9511
9512 /* Override any GCC internal prototype to avoid an error.
9513    Use char because int might match the return type of a GCC
9514    builtin and then its argument prototype would still apply.  */
9515 #ifdef __cplusplus
9516 extern "C"
9517 #endif
9518 char xmlSchemaSetParserStructuredErrors ();
9519 int
9520 main ()
9521 {
9522 return xmlSchemaSetParserStructuredErrors ();
9523   ;
9524   return 0;
9525 }
9526 _ACEOF
9527 if ac_fn_c_try_link "$LINENO"; then :
9528   ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=yes
9529 else
9530   ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=no
9531 fi
9532 rm -f core conftest.err conftest.$ac_objext \
9533     conftest$ac_exeext conftest.$ac_ext
9534 LIBS=$ac_check_lib_save_LIBS
9535 fi
9536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&5
9537 $as_echo "$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&6; }
9538 if test "x$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" = xyes; then :
9539
9540 $as_echo "#define HAVE_XMLSCHEMASSETPARSERSTRUCTUREDERRORS 1" >>confdefs.h
9541
9542 fi
9543
9544         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetValidStructuredErrors in -lxml2" >&5
9545 $as_echo_n "checking for xmlSchemaSetValidStructuredErrors in -lxml2... " >&6; }
9546 if ${ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors+:} false; then :
9547   $as_echo_n "(cached) " >&6
9548 else
9549   ac_check_lib_save_LIBS=$LIBS
9550 LIBS="-lxml2 $ac_xml_libs $LIBS"
9551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9552 /* end confdefs.h.  */
9553
9554 /* Override any GCC internal prototype to avoid an error.
9555    Use char because int might match the return type of a GCC
9556    builtin and then its argument prototype would still apply.  */
9557 #ifdef __cplusplus
9558 extern "C"
9559 #endif
9560 char xmlSchemaSetValidStructuredErrors ();
9561 int
9562 main ()
9563 {
9564 return xmlSchemaSetValidStructuredErrors ();
9565   ;
9566   return 0;
9567 }
9568 _ACEOF
9569 if ac_fn_c_try_link "$LINENO"; then :
9570   ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=yes
9571 else
9572   ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=no
9573 fi
9574 rm -f core conftest.err conftest.$ac_objext \
9575     conftest$ac_exeext conftest.$ac_ext
9576 LIBS=$ac_check_lib_save_LIBS
9577 fi
9578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&5
9579 $as_echo "$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&6; }
9580 if test "x$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" = xyes; then :
9581
9582 $as_echo "#define HAVE_XMLSCHEMASSETVALIDSTRUCTUREDERRORS 1" >>confdefs.h
9583
9584 fi
9585
9586         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlFirstElementChild in -lxml2" >&5
9587 $as_echo_n "checking for xmlFirstElementChild in -lxml2... " >&6; }
9588 if ${ac_cv_lib_xml2_xmlFirstElementChild+:} false; then :
9589   $as_echo_n "(cached) " >&6
9590 else
9591   ac_check_lib_save_LIBS=$LIBS
9592 LIBS="-lxml2 $ac_xml_libs $LIBS"
9593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9594 /* end confdefs.h.  */
9595
9596 /* Override any GCC internal prototype to avoid an error.
9597    Use char because int might match the return type of a GCC
9598    builtin and then its argument prototype would still apply.  */
9599 #ifdef __cplusplus
9600 extern "C"
9601 #endif
9602 char xmlFirstElementChild ();
9603 int
9604 main ()
9605 {
9606 return xmlFirstElementChild ();
9607   ;
9608   return 0;
9609 }
9610 _ACEOF
9611 if ac_fn_c_try_link "$LINENO"; then :
9612   ac_cv_lib_xml2_xmlFirstElementChild=yes
9613 else
9614   ac_cv_lib_xml2_xmlFirstElementChild=no
9615 fi
9616 rm -f core conftest.err conftest.$ac_objext \
9617     conftest$ac_exeext conftest.$ac_ext
9618 LIBS=$ac_check_lib_save_LIBS
9619 fi
9620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlFirstElementChild" >&5
9621 $as_echo "$ac_cv_lib_xml2_xmlFirstElementChild" >&6; }
9622 if test "x$ac_cv_lib_xml2_xmlFirstElementChild" = xyes; then :
9623
9624 $as_echo "#define HAVE_XMLFIRSTELEMENTCHILD 1" >>confdefs.h
9625
9626 fi
9627
9628         ac_fn_c_check_type "$LINENO" "xmlDocProperties" "ac_cv_type_xmlDocProperties" "#include <libxml/tree.h>
9629 "
9630 if test "x$ac_cv_type_xmlDocProperties" = xyes; then :
9631
9632 $as_echo "#define HAVE_XMLDOC_PROPERTIES 1" >>confdefs.h
9633
9634 fi
9635
9636     fi
9637     CPPFLAGS="$ac_save_CPPFLAGS"
9638 fi
9639 if test "$ac_cv_lib_xml2_xmlParseMemory" != "yes"; then :
9640   case "x$with_xml" in
9641   x)   as_fn_append wine_warnings "|libxml2 ${notice_platform}development files not found (or too old), XML won't be supported." ;;
9642   xno) ;;
9643   *)   as_fn_error $? "libxml2 ${notice_platform}development files not found (or too old), XML won't be supported.
9644 This is an error since --with-xml was requested." "$LINENO" 5 ;;
9645 esac
9646 fi
9647
9648 if test "x$with_xslt" != "xno"
9649 then
9650     if test "$PKG_CONFIG" != "false"
9651     then
9652         ac_xslt_libs="`$PKG_CONFIG --libs libxslt 2>/dev/null`"
9653         ac_xslt_cflags="`$PKG_CONFIG --cflags libxslt 2>/dev/null`"
9654     else
9655         ac_xslt_libs="`xslt-config --libs 2>/dev/null`"
9656         ac_xslt_cflags="`xslt-config --cflags 2>/dev/null`"
9657     fi
9658     ac_save_CPPFLAGS="$CPPFLAGS"
9659     CPPFLAGS="$CPPFLAGS $ac_xslt_cflags"
9660     for ac_header in libxslt/pattern.h libxslt/transform.h
9661 do :
9662   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9663 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_LIBXSLT_PATTERN_H
9664 # include <libxslt/pattern.h>
9665 #endif
9666 "
9667 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9668   cat >>confdefs.h <<_ACEOF
9669 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9670 _ACEOF
9671
9672 fi
9673
9674 done
9675
9676     CPPFLAGS="$ac_save_CPPFLAGS"
9677     if test "$ac_cv_header_libxslt_transform_h" = "yes"
9678     then
9679         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lxslt" >&5
9680 $as_echo_n "checking for -lxslt... " >&6; }
9681 if ${ac_cv_lib_soname_xslt+:} false; then :
9682   $as_echo_n "(cached) " >&6
9683 else
9684   ac_check_soname_save_LIBS=$LIBS
9685 LIBS="-lxslt $ac_xslt_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 xsltCompilePattern ();
9696 int
9697 main ()
9698 {
9699 return xsltCompilePattern ();
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_xslt=`$ac_cv_path_LDD conftest.exe | grep "xslt" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9707     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'` ;;
9708     *) ac_cv_lib_soname_xslt=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libxslt\\.$LIBEXT" | sed -e "s/^.*\\[\\(libxslt\\.$LIBEXT[^         ]*\\)\\].*$/\1/"';2,$d'`
9709        if test "x$ac_cv_lib_soname_xslt" = x; then :
9710   ac_cv_lib_soname_xslt=`$LDD conftest$ac_exeext | grep "libxslt\\.$LIBEXT" | sed -e "s/^.*\(libxslt\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'`
9711 fi ;;
9712   esac
9713 fi
9714 rm -f core conftest.err conftest.$ac_objext \
9715     conftest$ac_exeext conftest.$ac_ext
9716   LIBS=$ac_check_soname_save_LIBS
9717 fi
9718 if test "x$ac_cv_lib_soname_xslt" = "x"; then :
9719   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9720 $as_echo "not found" >&6; }
9721
9722 else
9723   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_xslt" >&5
9724 $as_echo "$ac_cv_lib_soname_xslt" >&6; }
9725
9726 cat >>confdefs.h <<_ACEOF
9727 #define SONAME_LIBXSLT "$ac_cv_lib_soname_xslt"
9728 _ACEOF
9729
9730        XSLTINCL="$ac_xslt_cflags"
9731 fi
9732     fi
9733 fi
9734 if test "x$ac_cv_lib_soname_xslt" = "x"; then :
9735   case "x$with_xslt" in
9736   x)   as_fn_append wine_warnings "|libxslt ${notice_platform}development files not found, xslt won't be supported." ;;
9737   xno) ;;
9738   *)   as_fn_error $? "libxslt ${notice_platform}development files not found, xslt won't be supported.
9739 This is an error since --with-xslt was requested." "$LINENO" 5 ;;
9740 esac
9741 fi
9742
9743 if test "x$with_dbus" != "xno"
9744 then
9745     ac_save_CPPFLAGS="$CPPFLAGS"
9746     if test "$PKG_CONFIG" != "false"
9747     then
9748         ac_dbus_libs="`$PKG_CONFIG --libs dbus-1 2>/dev/null`"
9749         ac_dbus_cflags="`$PKG_CONFIG --cflags dbus-1 2>/dev/null`"
9750         CPPFLAGS="$CPPFLAGS $ac_dbus_cflags"
9751     fi
9752     ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
9753 if test "x$ac_cv_header_dbus_dbus_h" = xyes; then :
9754   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ldbus-1" >&5
9755 $as_echo_n "checking for -ldbus-1... " >&6; }
9756 if ${ac_cv_lib_soname_dbus_1+:} false; then :
9757   $as_echo_n "(cached) " >&6
9758 else
9759   ac_check_soname_save_LIBS=$LIBS
9760 LIBS="-ldbus-1 $ac_dbus_libs $LIBS"
9761   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9762 /* end confdefs.h.  */
9763
9764 /* Override any GCC internal prototype to avoid an error.
9765    Use char because int might match the return type of a GCC
9766    builtin and then its argument prototype would still apply.  */
9767 #ifdef __cplusplus
9768 extern "C"
9769 #endif
9770 char dbus_connection_close ();
9771 int
9772 main ()
9773 {
9774 return dbus_connection_close ();
9775   ;
9776   return 0;
9777 }
9778 _ACEOF
9779 if ac_fn_c_try_link "$LINENO"; then :
9780   case "$LIBEXT" in
9781     dll) ac_cv_lib_soname_dbus_1=`$ac_cv_path_LDD conftest.exe | grep "dbus-1" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9782     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'` ;;
9783     *) ac_cv_lib_soname_dbus_1=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libdbus-1\\.$LIBEXT" | sed -e "s/^.*\\[\\(libdbus-1\\.$LIBEXT[^   ]*\\)\\].*$/\1/"';2,$d'`
9784        if test "x$ac_cv_lib_soname_dbus_1" = x; then :
9785   ac_cv_lib_soname_dbus_1=`$LDD conftest$ac_exeext | grep "libdbus-1\\.$LIBEXT" | sed -e "s/^.*\(libdbus-1\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'`
9786 fi ;;
9787   esac
9788 fi
9789 rm -f core conftest.err conftest.$ac_objext \
9790     conftest$ac_exeext conftest.$ac_ext
9791   LIBS=$ac_check_soname_save_LIBS
9792 fi
9793 if test "x$ac_cv_lib_soname_dbus_1" = "x"; then :
9794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9795 $as_echo "not found" >&6; }
9796
9797 else
9798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_dbus_1" >&5
9799 $as_echo "$ac_cv_lib_soname_dbus_1" >&6; }
9800
9801 cat >>confdefs.h <<_ACEOF
9802 #define SONAME_LIBDBUS_1 "$ac_cv_lib_soname_dbus_1"
9803 _ACEOF
9804
9805        DBUSINCL="$ac_dbus_cflags"
9806
9807 fi
9808 fi
9809
9810
9811     CPPFLAGS="$ac_save_CPPFLAGS"
9812 fi
9813 if test "x$ac_cv_lib_soname_dbus_1" = "x" -a \
9814                             "x$ac_cv_header_DiskArbitration_DiskArbitration_h" != "xyes"; then :
9815   case "x$with_dbus" in
9816   x)   as_fn_append wine_notices "|libdbus ${notice_platform}development files not found, no dynamic device support." ;;
9817   xno) ;;
9818   *)   as_fn_error $? "libdbus ${notice_platform}development files not found, no dynamic device support.
9819 This is an error since --with-dbus was requested." "$LINENO" 5 ;;
9820 esac
9821 fi
9822
9823 if test "x$with_hal" != "xno" -a "x$ac_cv_lib_soname_dbus_1" != x
9824 then
9825     ac_save_CPPFLAGS="$CPPFLAGS"
9826     if test "$PKG_CONFIG" != "false"
9827     then
9828         ac_hal_libs="`$PKG_CONFIG --libs hal 2>/dev/null`"
9829         ac_hal_cflags="`$PKG_CONFIG --cflags hal 2>/dev/null`"
9830         CPPFLAGS="$CPPFLAGS $ac_hal_cflags"
9831     fi
9832     ac_fn_c_check_header_mongrel "$LINENO" "hal/libhal.h" "ac_cv_header_hal_libhal_h" "$ac_includes_default"
9833 if test "x$ac_cv_header_hal_libhal_h" = xyes; then :
9834   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lhal" >&5
9835 $as_echo_n "checking for -lhal... " >&6; }
9836 if ${ac_cv_lib_soname_hal+:} false; then :
9837   $as_echo_n "(cached) " >&6
9838 else
9839   ac_check_soname_save_LIBS=$LIBS
9840 LIBS="-lhal $ac_hal_libs $LIBS"
9841   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9842 /* end confdefs.h.  */
9843
9844 /* Override any GCC internal prototype to avoid an error.
9845    Use char because int might match the return type of a GCC
9846    builtin and then its argument prototype would still apply.  */
9847 #ifdef __cplusplus
9848 extern "C"
9849 #endif
9850 char libhal_ctx_new ();
9851 int
9852 main ()
9853 {
9854 return libhal_ctx_new ();
9855   ;
9856   return 0;
9857 }
9858 _ACEOF
9859 if ac_fn_c_try_link "$LINENO"; then :
9860   case "$LIBEXT" in
9861     dll) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest.exe | grep "hal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9862     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'` ;;
9863     *) ac_cv_lib_soname_hal=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libhal\\.$LIBEXT" | sed -e "s/^.*\\[\\(libhal\\.$LIBEXT[^    ]*\\)\\].*$/\1/"';2,$d'`
9864        if test "x$ac_cv_lib_soname_hal" = x; then :
9865   ac_cv_lib_soname_hal=`$LDD conftest$ac_exeext | grep "libhal\\.$LIBEXT" | sed -e "s/^.*\(libhal\.$LIBEXT[^     ]*\).*$/\1/"';2,$d'`
9866 fi ;;
9867   esac
9868 fi
9869 rm -f core conftest.err conftest.$ac_objext \
9870     conftest$ac_exeext conftest.$ac_ext
9871   LIBS=$ac_check_soname_save_LIBS
9872 fi
9873 if test "x$ac_cv_lib_soname_hal" = "x"; then :
9874   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9875 $as_echo "not found" >&6; }
9876
9877 else
9878   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_hal" >&5
9879 $as_echo "$ac_cv_lib_soname_hal" >&6; }
9880
9881 cat >>confdefs.h <<_ACEOF
9882 #define SONAME_LIBHAL "$ac_cv_lib_soname_hal"
9883 _ACEOF
9884
9885        HALINCL="$ac_hal_cflags"
9886
9887 fi
9888 fi
9889
9890
9891     CPPFLAGS="$ac_save_CPPFLAGS"
9892     if test "x$ac_cv_lib_soname_hal" = "x" -a \
9893                                "x$ac_cv_header_DiskArbitration_DiskArbitration_h" != "xyes"; then :
9894   case "x$with_hal" in
9895   x)   as_fn_append wine_notices "|libhal ${notice_platform}development files not found, no legacy dynamic device support." ;;
9896   xno) ;;
9897   *)   as_fn_error $? "libhal ${notice_platform}development files not found, no legacy dynamic device support.
9898 This is an error since --with-hal was requested." "$LINENO" 5 ;;
9899 esac
9900 fi
9901 fi
9902
9903 if test "x$with_gnutls" != "xno"
9904 then
9905     ac_save_CPPFLAGS="$CPPFLAGS"
9906     if test "$PKG_CONFIG" != "false"
9907     then
9908         ac_gnutls_libs="`$PKG_CONFIG --libs gnutls 2>/dev/null`"
9909         ac_gnutls_cflags="`$PKG_CONFIG --cflags gnutls 2>/dev/null`"
9910         CPPFLAGS="$CPPFLAGS $ac_gnutls_cflags"
9911     fi
9912     ac_fn_c_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default"
9913 if test "x$ac_cv_header_gnutls_gnutls_h" = xyes; then :
9914   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9915 /* end confdefs.h.  */
9916 #include <gnutls/gnutls.h>
9917 int
9918 main ()
9919 {
9920 static typeof(gnutls_mac_get_key_size) *func; if (func) return 0;
9921   ;
9922   return 0;
9923 }
9924 _ACEOF
9925 if ac_fn_c_try_compile "$LINENO"; then :
9926   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgnutls" >&5
9927 $as_echo_n "checking for -lgnutls... " >&6; }
9928 if ${ac_cv_lib_soname_gnutls+:} false; then :
9929   $as_echo_n "(cached) " >&6
9930 else
9931   ac_check_soname_save_LIBS=$LIBS
9932 LIBS="-lgnutls $ac_gnutls_libs $LIBS"
9933   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9934 /* end confdefs.h.  */
9935
9936 /* Override any GCC internal prototype to avoid an error.
9937    Use char because int might match the return type of a GCC
9938    builtin and then its argument prototype would still apply.  */
9939 #ifdef __cplusplus
9940 extern "C"
9941 #endif
9942 char gnutls_global_init ();
9943 int
9944 main ()
9945 {
9946 return gnutls_global_init ();
9947   ;
9948   return 0;
9949 }
9950 _ACEOF
9951 if ac_fn_c_try_link "$LINENO"; then :
9952   case "$LIBEXT" in
9953     dll) ac_cv_lib_soname_gnutls=`$ac_cv_path_LDD conftest.exe | grep "gnutls" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9954     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'` ;;
9955     *) ac_cv_lib_soname_gnutls=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libgnutls\\.$LIBEXT" | sed -e "s/^.*\\[\\(libgnutls\\.$LIBEXT[^   ]*\\)\\].*$/\1/"';2,$d'`
9956        if test "x$ac_cv_lib_soname_gnutls" = x; then :
9957   ac_cv_lib_soname_gnutls=`$LDD conftest$ac_exeext | grep "libgnutls\\.$LIBEXT" | sed -e "s/^.*\(libgnutls\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'`
9958 fi ;;
9959   esac
9960 fi
9961 rm -f core conftest.err conftest.$ac_objext \
9962     conftest$ac_exeext conftest.$ac_ext
9963   LIBS=$ac_check_soname_save_LIBS
9964 fi
9965 if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
9966   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9967 $as_echo "not found" >&6; }
9968
9969 else
9970   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gnutls" >&5
9971 $as_echo "$ac_cv_lib_soname_gnutls" >&6; }
9972
9973 cat >>confdefs.h <<_ACEOF
9974 #define SONAME_LIBGNUTLS "$ac_cv_lib_soname_gnutls"
9975 _ACEOF
9976
9977        GNUTLSINCL="$ac_gnutls_cflags"
9978
9979 fi
9980 fi
9981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9982 fi
9983
9984
9985     CPPFLAGS="$ac_save_CPPFLAGS"
9986 fi
9987 if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
9988   case "x$with_gnutls" in
9989   x)   as_fn_append wine_notices "|libgnutls ${notice_platform}development files not found, no schannel support." ;;
9990   xno) ;;
9991   *)   as_fn_error $? "libgnutls ${notice_platform}development files not found, no schannel support.
9992 This is an error since --with-gnutls was requested." "$LINENO" 5 ;;
9993 esac
9994 fi
9995
9996 CURSESLIBS=""
9997 if test "$ac_cv_header_ncurses_h" = "yes"
9998 then
9999     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lncurses" >&5
10000 $as_echo_n "checking for -lncurses... " >&6; }
10001 if ${ac_cv_lib_soname_ncurses+:} false; then :
10002   $as_echo_n "(cached) " >&6
10003 else
10004   ac_check_soname_save_LIBS=$LIBS
10005 LIBS="-lncurses  $LIBS"
10006   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10007 /* end confdefs.h.  */
10008
10009 /* Override any GCC internal prototype to avoid an error.
10010    Use char because int might match the return type of a GCC
10011    builtin and then its argument prototype would still apply.  */
10012 #ifdef __cplusplus
10013 extern "C"
10014 #endif
10015 char waddch ();
10016 int
10017 main ()
10018 {
10019 return waddch ();
10020   ;
10021   return 0;
10022 }
10023 _ACEOF
10024 if ac_fn_c_try_link "$LINENO"; then :
10025   case "$LIBEXT" in
10026     dll) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest.exe | grep "ncurses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10027     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'` ;;
10028     *) ac_cv_lib_soname_ncurses=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libncurses\\.$LIBEXT" | sed -e "s/^.*\\[\\(libncurses\\.$LIBEXT[^        ]*\\)\\].*$/\1/"';2,$d'`
10029        if test "x$ac_cv_lib_soname_ncurses" = x; then :
10030   ac_cv_lib_soname_ncurses=`$LDD conftest$ac_exeext | grep "libncurses\\.$LIBEXT" | sed -e "s/^.*\(libncurses\.$LIBEXT[^         ]*\).*$/\1/"';2,$d'`
10031 fi ;;
10032   esac
10033 fi
10034 rm -f core conftest.err conftest.$ac_objext \
10035     conftest$ac_exeext conftest.$ac_ext
10036   LIBS=$ac_check_soname_save_LIBS
10037 fi
10038 if test "x$ac_cv_lib_soname_ncurses" = "x"; then :
10039   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10040 $as_echo "not found" >&6; }
10041
10042 else
10043   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ncurses" >&5
10044 $as_echo "$ac_cv_lib_soname_ncurses" >&6; }
10045
10046 cat >>confdefs.h <<_ACEOF
10047 #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
10048 _ACEOF
10049
10050        CURSESLIBS="-lncurses"
10051 fi
10052 elif test "$ac_cv_header_curses_h" = "yes"
10053 then
10054     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcurses" >&5
10055 $as_echo_n "checking for -lcurses... " >&6; }
10056 if ${ac_cv_lib_soname_curses+:} false; then :
10057   $as_echo_n "(cached) " >&6
10058 else
10059   ac_check_soname_save_LIBS=$LIBS
10060 LIBS="-lcurses  $LIBS"
10061   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10062 /* end confdefs.h.  */
10063
10064 /* Override any GCC internal prototype to avoid an error.
10065    Use char because int might match the return type of a GCC
10066    builtin and then its argument prototype would still apply.  */
10067 #ifdef __cplusplus
10068 extern "C"
10069 #endif
10070 char waddch ();
10071 int
10072 main ()
10073 {
10074 return waddch ();
10075   ;
10076   return 0;
10077 }
10078 _ACEOF
10079 if ac_fn_c_try_link "$LINENO"; then :
10080   case "$LIBEXT" in
10081     dll) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest.exe | grep "curses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10082     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'` ;;
10083     *) ac_cv_lib_soname_curses=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libcurses\\.$LIBEXT" | sed -e "s/^.*\\[\\(libcurses\\.$LIBEXT[^   ]*\\)\\].*$/\1/"';2,$d'`
10084        if test "x$ac_cv_lib_soname_curses" = x; then :
10085   ac_cv_lib_soname_curses=`$LDD conftest$ac_exeext | grep "libcurses\\.$LIBEXT" | sed -e "s/^.*\(libcurses\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'`
10086 fi ;;
10087   esac
10088 fi
10089 rm -f core conftest.err conftest.$ac_objext \
10090     conftest$ac_exeext conftest.$ac_ext
10091   LIBS=$ac_check_soname_save_LIBS
10092 fi
10093 if test "x$ac_cv_lib_soname_curses" = "x"; then :
10094   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10095 $as_echo "not found" >&6; }
10096
10097 else
10098   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_curses" >&5
10099 $as_echo "$ac_cv_lib_soname_curses" >&6; }
10100
10101 cat >>confdefs.h <<_ACEOF
10102 #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
10103 _ACEOF
10104
10105        CURSESLIBS="-lcurses"
10106 fi
10107 fi
10108 ac_save_LIBS="$LIBS"
10109 LIBS="$LIBS $CURSESLIBS"
10110 for ac_func in mousemask
10111 do :
10112   ac_fn_c_check_func "$LINENO" "mousemask" "ac_cv_func_mousemask"
10113 if test "x$ac_cv_func_mousemask" = xyes; then :
10114   cat >>confdefs.h <<_ACEOF
10115 #define HAVE_MOUSEMASK 1
10116 _ACEOF
10117
10118 fi
10119 done
10120
10121 LIBS="$ac_save_LIBS"
10122 if test "x$ac_cv_lib_soname_curses$ac_cv_lib_soname_ncurses" = "x"; then :
10123   case "x$with_curses" in
10124   x)   as_fn_append wine_notices "|lib(n)curses ${notice_platform}development files not found, curses won't be supported." ;;
10125   xno) ;;
10126   *)   as_fn_error $? "lib(n)curses ${notice_platform}development files not found, curses won't be supported.
10127 This is an error since --with-curses was requested." "$LINENO" 5 ;;
10128 esac
10129 fi
10130
10131 if test "x$with_sane" != "xno"
10132 then
10133     ac_save_CPPFLAGS="$CPPFLAGS"
10134     # Extract the first word of "sane-config", so it can be a program name with args.
10135 set dummy sane-config; ac_word=$2
10136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10137 $as_echo_n "checking for $ac_word... " >&6; }
10138 if ${ac_cv_prog_sane_devel+:} false; then :
10139   $as_echo_n "(cached) " >&6
10140 else
10141   if test -n "$sane_devel"; then
10142   ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
10143 else
10144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10145 for as_dir in $PATH
10146 do
10147   IFS=$as_save_IFS
10148   test -z "$as_dir" && as_dir=.
10149     for ac_exec_ext in '' $ac_executable_extensions; do
10150   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10151     ac_cv_prog_sane_devel="sane-config"
10152     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10153     break 2
10154   fi
10155 done
10156   done
10157 IFS=$as_save_IFS
10158
10159   test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
10160 fi
10161 fi
10162 sane_devel=$ac_cv_prog_sane_devel
10163 if test -n "$sane_devel"; then
10164   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sane_devel" >&5
10165 $as_echo "$sane_devel" >&6; }
10166 else
10167   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10168 $as_echo "no" >&6; }
10169 fi
10170
10171
10172     if test "$sane_devel" != "no"
10173     then
10174         ac_sane_incl="`$sane_devel --cflags`"
10175         ac_sane_libs="`$sane_devel --ldflags`"
10176         CPPFLAGS="$CPPFLAGS $ac_sane_incl"
10177     fi
10178     ac_fn_c_check_header_mongrel "$LINENO" "sane/sane.h" "ac_cv_header_sane_sane_h" "$ac_includes_default"
10179 if test "x$ac_cv_header_sane_sane_h" = xyes; then :
10180   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lsane" >&5
10181 $as_echo_n "checking for -lsane... " >&6; }
10182 if ${ac_cv_lib_soname_sane+:} false; then :
10183   $as_echo_n "(cached) " >&6
10184 else
10185   ac_check_soname_save_LIBS=$LIBS
10186 LIBS="-lsane $ac_sane_libs $LIBS"
10187   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10188 /* end confdefs.h.  */
10189
10190 /* Override any GCC internal prototype to avoid an error.
10191    Use char because int might match the return type of a GCC
10192    builtin and then its argument prototype would still apply.  */
10193 #ifdef __cplusplus
10194 extern "C"
10195 #endif
10196 char sane_init ();
10197 int
10198 main ()
10199 {
10200 return sane_init ();
10201   ;
10202   return 0;
10203 }
10204 _ACEOF
10205 if ac_fn_c_try_link "$LINENO"; then :
10206   case "$LIBEXT" in
10207     dll) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest.exe | grep "sane" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10208     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'` ;;
10209     *) ac_cv_lib_soname_sane=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libsane\\.$LIBEXT" | sed -e "s/^.*\\[\\(libsane\\.$LIBEXT[^         ]*\\)\\].*$/\1/"';2,$d'`
10210        if test "x$ac_cv_lib_soname_sane" = x; then :
10211   ac_cv_lib_soname_sane=`$LDD conftest$ac_exeext | grep "libsane\\.$LIBEXT" | sed -e "s/^.*\(libsane\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'`
10212 fi ;;
10213   esac
10214 fi
10215 rm -f core conftest.err conftest.$ac_objext \
10216     conftest$ac_exeext conftest.$ac_ext
10217   LIBS=$ac_check_soname_save_LIBS
10218 fi
10219 if test "x$ac_cv_lib_soname_sane" = "x"; then :
10220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10221 $as_echo "not found" >&6; }
10222
10223 else
10224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_sane" >&5
10225 $as_echo "$ac_cv_lib_soname_sane" >&6; }
10226
10227 cat >>confdefs.h <<_ACEOF
10228 #define SONAME_LIBSANE "$ac_cv_lib_soname_sane"
10229 _ACEOF
10230
10231        SANEINCL="$ac_sane_incl"
10232
10233 fi
10234 fi
10235
10236
10237     CPPFLAGS="$ac_save_CPPFLAGS"
10238 fi
10239 if test "x$ac_cv_lib_soname_sane" = "x"; then :
10240   case "x$with_sane" in
10241   x)   as_fn_append wine_notices "|libsane ${notice_platform}development files not found, scanners won't be supported." ;;
10242   xno) ;;
10243   *)   as_fn_error $? "libsane ${notice_platform}development files not found, scanners won't be supported.
10244 This is an error since --with-sane was requested." "$LINENO" 5 ;;
10245 esac
10246 fi
10247
10248 if test "x$with_v4l" != "xno"
10249 then
10250     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lv4l1" >&5
10251 $as_echo_n "checking for -lv4l1... " >&6; }
10252 if ${ac_cv_lib_soname_v4l1+:} false; then :
10253   $as_echo_n "(cached) " >&6
10254 else
10255   ac_check_soname_save_LIBS=$LIBS
10256 LIBS="-lv4l1  $LIBS"
10257   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10258 /* end confdefs.h.  */
10259
10260 /* Override any GCC internal prototype to avoid an error.
10261    Use char because int might match the return type of a GCC
10262    builtin and then its argument prototype would still apply.  */
10263 #ifdef __cplusplus
10264 extern "C"
10265 #endif
10266 char v4l1_open ();
10267 int
10268 main ()
10269 {
10270 return v4l1_open ();
10271   ;
10272   return 0;
10273 }
10274 _ACEOF
10275 if ac_fn_c_try_link "$LINENO"; then :
10276   case "$LIBEXT" in
10277     dll) ac_cv_lib_soname_v4l1=`$ac_cv_path_LDD conftest.exe | grep "v4l1" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10278     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'` ;;
10279     *) ac_cv_lib_soname_v4l1=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libv4l1\\.$LIBEXT" | sed -e "s/^.*\\[\\(libv4l1\\.$LIBEXT[^         ]*\\)\\].*$/\1/"';2,$d'`
10280        if test "x$ac_cv_lib_soname_v4l1" = x; then :
10281   ac_cv_lib_soname_v4l1=`$LDD conftest$ac_exeext | grep "libv4l1\\.$LIBEXT" | sed -e "s/^.*\(libv4l1\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'`
10282 fi ;;
10283   esac
10284 fi
10285 rm -f core conftest.err conftest.$ac_objext \
10286     conftest$ac_exeext conftest.$ac_ext
10287   LIBS=$ac_check_soname_save_LIBS
10288 fi
10289 if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
10290   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10291 $as_echo "not found" >&6; }
10292
10293 else
10294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_v4l1" >&5
10295 $as_echo "$ac_cv_lib_soname_v4l1" >&6; }
10296
10297 cat >>confdefs.h <<_ACEOF
10298 #define SONAME_LIBV4L1 "$ac_cv_lib_soname_v4l1"
10299 _ACEOF
10300
10301
10302 fi
10303 fi
10304 if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
10305   case "x$with_v4l" in
10306   x)   as_fn_append wine_notices "|libv4l ${notice_platform}development files not found." ;;
10307   xno) ;;
10308   *)   as_fn_error $? "libv4l ${notice_platform}development files not found.
10309 This is an error since --with-v4l was requested." "$LINENO" 5 ;;
10310 esac
10311 fi
10312
10313 if test "x$with_gphoto" != "xno"
10314 then
10315     ac_save_CPPFLAGS="$CPPFLAGS"
10316     # Extract the first word of "gphoto2-config", so it can be a program name with args.
10317 set dummy gphoto2-config; ac_word=$2
10318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10319 $as_echo_n "checking for $ac_word... " >&6; }
10320 if ${ac_cv_prog_gphoto2_devel+:} false; then :
10321   $as_echo_n "(cached) " >&6
10322 else
10323   if test -n "$gphoto2_devel"; then
10324   ac_cv_prog_gphoto2_devel="$gphoto2_devel" # Let the user override the test.
10325 else
10326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10327 for as_dir in $PATH
10328 do
10329   IFS=$as_save_IFS
10330   test -z "$as_dir" && as_dir=.
10331     for ac_exec_ext in '' $ac_executable_extensions; do
10332   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10333     ac_cv_prog_gphoto2_devel="gphoto2-config"
10334     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10335     break 2
10336   fi
10337 done
10338   done
10339 IFS=$as_save_IFS
10340
10341   test -z "$ac_cv_prog_gphoto2_devel" && ac_cv_prog_gphoto2_devel="no"
10342 fi
10343 fi
10344 gphoto2_devel=$ac_cv_prog_gphoto2_devel
10345 if test -n "$gphoto2_devel"; then
10346   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gphoto2_devel" >&5
10347 $as_echo "$gphoto2_devel" >&6; }
10348 else
10349   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10350 $as_echo "no" >&6; }
10351 fi
10352
10353
10354     # Extract the first word of "gphoto2-port-config", so it can be a program name with args.
10355 set dummy gphoto2-port-config; ac_word=$2
10356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10357 $as_echo_n "checking for $ac_word... " >&6; }
10358 if ${ac_cv_prog_gphoto2port_devel+:} false; then :
10359   $as_echo_n "(cached) " >&6
10360 else
10361   if test -n "$gphoto2port_devel"; then
10362   ac_cv_prog_gphoto2port_devel="$gphoto2port_devel" # Let the user override the test.
10363 else
10364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10365 for as_dir in $PATH
10366 do
10367   IFS=$as_save_IFS
10368   test -z "$as_dir" && as_dir=.
10369     for ac_exec_ext in '' $ac_executable_extensions; do
10370   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10371     ac_cv_prog_gphoto2port_devel="gphoto2-port-config"
10372     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10373     break 2
10374   fi
10375 done
10376   done
10377 IFS=$as_save_IFS
10378
10379   test -z "$ac_cv_prog_gphoto2port_devel" && ac_cv_prog_gphoto2port_devel="no"
10380 fi
10381 fi
10382 gphoto2port_devel=$ac_cv_prog_gphoto2port_devel
10383 if test -n "$gphoto2port_devel"; then
10384   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gphoto2port_devel" >&5
10385 $as_echo "$gphoto2port_devel" >&6; }
10386 else
10387   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10388 $as_echo "no" >&6; }
10389 fi
10390
10391
10392     if test "$gphoto2_devel" != "no" -a "$gphoto2port_devel" != "no"
10393     then
10394         ac_gphoto2_incl="`$gphoto2_devel --cflags` `$gphoto2port_devel --cflags`"
10395         ac_gphoto2_libs=""
10396         for i in `$gphoto2_devel --libs` `$gphoto2port_devel --libs`
10397         do
10398             case "$i" in
10399             -L/usr/lib|-L/usr/lib64) ;;
10400             -L*|-l*) ac_gphoto2_libs="$ac_gphoto2_libs $i";;
10401             esac
10402         done
10403         CPPFLAGS="$CPPFLAGS $ac_gphoto2_incl"
10404     fi
10405     ac_gphoto2_libs=${ac_gphoto2_libs:-"-lgphoto2"}
10406     ac_fn_c_check_header_mongrel "$LINENO" "gphoto2-camera.h" "ac_cv_header_gphoto2_camera_h" "$ac_includes_default"
10407 if test "x$ac_cv_header_gphoto2_camera_h" = xyes; then :
10408   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gp_camera_new in -lgphoto2" >&5
10409 $as_echo_n "checking for gp_camera_new in -lgphoto2... " >&6; }
10410 if ${ac_cv_lib_gphoto2_gp_camera_new+:} false; then :
10411   $as_echo_n "(cached) " >&6
10412 else
10413   ac_check_lib_save_LIBS=$LIBS
10414 LIBS="-lgphoto2 $ac_gphoto2_libs $LIBS"
10415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10416 /* end confdefs.h.  */
10417
10418 /* Override any GCC internal prototype to avoid an error.
10419    Use char because int might match the return type of a GCC
10420    builtin and then its argument prototype would still apply.  */
10421 #ifdef __cplusplus
10422 extern "C"
10423 #endif
10424 char gp_camera_new ();
10425 int
10426 main ()
10427 {
10428 return gp_camera_new ();
10429   ;
10430   return 0;
10431 }
10432 _ACEOF
10433 if ac_fn_c_try_link "$LINENO"; then :
10434   ac_cv_lib_gphoto2_gp_camera_new=yes
10435 else
10436   ac_cv_lib_gphoto2_gp_camera_new=no
10437 fi
10438 rm -f core conftest.err conftest.$ac_objext \
10439     conftest$ac_exeext conftest.$ac_ext
10440 LIBS=$ac_check_lib_save_LIBS
10441 fi
10442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gphoto2_gp_camera_new" >&5
10443 $as_echo "$ac_cv_lib_gphoto2_gp_camera_new" >&6; }
10444 if test "x$ac_cv_lib_gphoto2_gp_camera_new" = xyes; then :
10445
10446 $as_echo "#define HAVE_GPHOTO2 1" >>confdefs.h
10447
10448                                    GPHOTO2LIBS="$ac_gphoto2_libs"
10449
10450                                    GPHOTO2INCL="$ac_gphoto2_incl"
10451
10452 fi
10453
10454 fi
10455
10456
10457     CPPFLAGS="$ac_save_CPPFLAGS"
10458 fi
10459 if test "$ac_cv_lib_gphoto2_gp_camera_new" != "yes"; then :
10460   case "x$with_gphoto" in
10461   x)   as_fn_append wine_notices "|libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported." ;;
10462   xno) ;;
10463   *)   as_fn_error $? "libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported.
10464 This is an error since --with-gphoto was requested." "$LINENO" 5 ;;
10465 esac
10466 fi
10467
10468
10469 if test "$ac_cv_header_resolv_h" = "yes"
10470 then
10471     ac_save_LIBS="$LIBS"
10472     for lib in '' -lresolv
10473     do
10474       LIBS="$lib $ac_save_LIBS"
10475       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10476 /* end confdefs.h.  */
10477 #ifdef HAVE_NETINET_IN_H
10478 #include <netinet/in.h>
10479 #endif
10480 #include <resolv.h>
10481 int
10482 main ()
10483 {
10484 res_query("foo",ns_c_in,0,0,0);
10485   ;
10486   return 0;
10487 }
10488 _ACEOF
10489 if ac_fn_c_try_link "$LINENO"; then :
10490
10491 $as_echo "#define HAVE_RESOLV 1" >>confdefs.h
10492
10493          RESOLVLIBS="$lib"
10494
10495 fi
10496 rm -f core conftest.err conftest.$ac_objext \
10497     conftest$ac_exeext conftest.$ac_ext
10498       if test "${RESOLVLIBS+set}" = set; then
10499         break
10500       fi
10501     done
10502     LIBS="$ac_save_LIBS"
10503 fi
10504
10505 LCMSLIBS=""
10506
10507 if test "$ac_cv_header_lcms_h" = "yes" -o "$ac_cv_header_lcms_lcms_h" = "yes"
10508 then
10509     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromFile in -llcms" >&5
10510 $as_echo_n "checking for cmsOpenProfileFromFile in -llcms... " >&6; }
10511 if ${ac_cv_lib_lcms_cmsOpenProfileFromFile+:} false; then :
10512   $as_echo_n "(cached) " >&6
10513 else
10514   ac_check_lib_save_LIBS=$LIBS
10515 LIBS="-llcms  $LIBS"
10516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10517 /* end confdefs.h.  */
10518
10519 /* Override any GCC internal prototype to avoid an error.
10520    Use char because int might match the return type of a GCC
10521    builtin and then its argument prototype would still apply.  */
10522 #ifdef __cplusplus
10523 extern "C"
10524 #endif
10525 char cmsOpenProfileFromFile ();
10526 int
10527 main ()
10528 {
10529 return cmsOpenProfileFromFile ();
10530   ;
10531   return 0;
10532 }
10533 _ACEOF
10534 if ac_fn_c_try_link "$LINENO"; then :
10535   ac_cv_lib_lcms_cmsOpenProfileFromFile=yes
10536 else
10537   ac_cv_lib_lcms_cmsOpenProfileFromFile=no
10538 fi
10539 rm -f core conftest.err conftest.$ac_objext \
10540     conftest$ac_exeext conftest.$ac_ext
10541 LIBS=$ac_check_lib_save_LIBS
10542 fi
10543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsOpenProfileFromFile" >&5
10544 $as_echo "$ac_cv_lib_lcms_cmsOpenProfileFromFile" >&6; }
10545 if test "x$ac_cv_lib_lcms_cmsOpenProfileFromFile" = xyes; then :
10546
10547 $as_echo "#define HAVE_LCMS 1" >>confdefs.h
10548
10549          LCMSLIBS="-llcms"
10550 fi
10551
10552 fi
10553 if test "$ac_cv_lib_lcms_cmsOpenProfileFromFile" != "yes"; then :
10554   case "x$with_cms" in
10555   x)   as_fn_append wine_notices "|liblcms ${notice_platform}development files not found, Color Management won't be supported." ;;
10556   xno) ;;
10557   *)   as_fn_error $? "liblcms ${notice_platform}development files not found, Color Management won't be supported.
10558 This is an error since --with-cms was requested." "$LINENO" 5 ;;
10559 esac
10560 fi
10561
10562 if test "x$with_freetype" != "xno"
10563 then
10564     if test "$PKG_CONFIG" != "false"
10565     then
10566         ac_freetype_incl="`$PKG_CONFIG --cflags freetype2 2>/dev/null`"
10567         ac_freetype_libs="`$PKG_CONFIG --libs freetype2 2>/dev/null`"
10568     else
10569         for ac_prog in freetype-config freetype2-config
10570 do
10571   # Extract the first word of "$ac_prog", so it can be a program name with args.
10572 set dummy $ac_prog; ac_word=$2
10573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10574 $as_echo_n "checking for $ac_word... " >&6; }
10575 if ${ac_cv_prog_ft_devel+:} false; then :
10576   $as_echo_n "(cached) " >&6
10577 else
10578   if test -n "$ft_devel"; then
10579   ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
10580 else
10581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10582 for as_dir in $PATH
10583 do
10584   IFS=$as_save_IFS
10585   test -z "$as_dir" && as_dir=.
10586     for ac_exec_ext in '' $ac_executable_extensions; do
10587   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10588     ac_cv_prog_ft_devel="$ac_prog"
10589     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10590     break 2
10591   fi
10592 done
10593   done
10594 IFS=$as_save_IFS
10595
10596 fi
10597 fi
10598 ft_devel=$ac_cv_prog_ft_devel
10599 if test -n "$ft_devel"; then
10600   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ft_devel" >&5
10601 $as_echo "$ft_devel" >&6; }
10602 else
10603   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10604 $as_echo "no" >&6; }
10605 fi
10606
10607
10608   test -n "$ft_devel" && break
10609 done
10610 test -n "$ft_devel" || ft_devel="no"
10611
10612         if test "$ft_devel" != "no"
10613         then
10614             ac_freetype_incl=`$ft_devel --cflags`
10615             ac_freetype_libs=`$ft_devel --libs`
10616         fi
10617     fi
10618     ac_freetype_libs=${ac_freetype_libs:-"-lfreetype"}
10619     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfreetype" >&5
10620 $as_echo_n "checking for -lfreetype... " >&6; }
10621 if ${ac_cv_lib_soname_freetype+:} false; then :
10622   $as_echo_n "(cached) " >&6
10623 else
10624   ac_check_soname_save_LIBS=$LIBS
10625 LIBS="-lfreetype $ac_freetype_libs $LIBS"
10626   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10627 /* end confdefs.h.  */
10628
10629 /* Override any GCC internal prototype to avoid an error.
10630    Use char because int might match the return type of a GCC
10631    builtin and then its argument prototype would still apply.  */
10632 #ifdef __cplusplus
10633 extern "C"
10634 #endif
10635 char FT_Init_FreeType ();
10636 int
10637 main ()
10638 {
10639 return FT_Init_FreeType ();
10640   ;
10641   return 0;
10642 }
10643 _ACEOF
10644 if ac_fn_c_try_link "$LINENO"; then :
10645   case "$LIBEXT" in
10646     dll) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest.exe | grep "freetype" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10647     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'` ;;
10648     *) ac_cv_lib_soname_freetype=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libfreetype\\.$LIBEXT" | sed -e "s/^.*\\[\\(libfreetype\\.$LIBEXT[^     ]*\\)\\].*$/\1/"';2,$d'`
10649        if test "x$ac_cv_lib_soname_freetype" = x; then :
10650   ac_cv_lib_soname_freetype=`$LDD conftest$ac_exeext | grep "libfreetype\\.$LIBEXT" | sed -e "s/^.*\(libfreetype\.$LIBEXT[^      ]*\).*$/\1/"';2,$d'`
10651 fi ;;
10652   esac
10653 fi
10654 rm -f core conftest.err conftest.$ac_objext \
10655     conftest$ac_exeext conftest.$ac_ext
10656   LIBS=$ac_check_soname_save_LIBS
10657 fi
10658 if test "x$ac_cv_lib_soname_freetype" = "x"; then :
10659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10660 $as_echo "not found" >&6; }
10661        ft_lib=no
10662 else
10663   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_freetype" >&5
10664 $as_echo "$ac_cv_lib_soname_freetype" >&6; }
10665
10666 cat >>confdefs.h <<_ACEOF
10667 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
10668 _ACEOF
10669
10670        ft_lib=yes
10671 fi
10672     if test "$ft_lib" = "yes"
10673     then
10674         ac_save_CPPFLAGS="$CPPFLAGS"
10675         CPPFLAGS="$ac_freetype_incl $CPPFLAGS"
10676         for ac_header in ft2build.h \
10677                          freetype/freetype.h \
10678                          freetype/ftglyph.h \
10679                          freetype/fttypes.h \
10680                          freetype/tttables.h \
10681                          freetype/ftsnames.h \
10682                          freetype/ttnameid.h \
10683                          freetype/ftoutln.h \
10684                          freetype/ftwinfnt.h \
10685                          freetype/ftmodapi.h \
10686                          freetype/ftlcdfil.h
10687 do :
10688   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10689 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_FT2BUILD_H
10690                           # include <ft2build.h>
10691                           #endif
10692 "
10693 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10694   cat >>confdefs.h <<_ACEOF
10695 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10696 _ACEOF
10697
10698 fi
10699
10700 done
10701
10702         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10703 /* end confdefs.h.  */
10704 #include <ft2build.h>
10705                     #include <freetype/fttrigon.h>
10706 _ACEOF
10707 if ac_fn_c_try_cpp "$LINENO"; then :
10708
10709 $as_echo "#define HAVE_FREETYPE_FTTRIGON_H 1" >>confdefs.h
10710
10711                     wine_cv_fttrigon=yes
10712 else
10713   wine_cv_fttrigon=no
10714 fi
10715 rm -f conftest.err conftest.i conftest.$ac_ext
10716         ac_fn_c_check_type "$LINENO" "FT_TrueTypeEngineType" "ac_cv_type_FT_TrueTypeEngineType" "#include <freetype/ftmodapi.h>
10717 "
10718 if test "x$ac_cv_type_FT_TrueTypeEngineType" = xyes; then :
10719
10720 cat >>confdefs.h <<_ACEOF
10721 #define HAVE_FT_TRUETYPEENGINETYPE 1
10722 _ACEOF
10723
10724
10725 fi
10726
10727                 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
10728         then
10729
10730 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
10731
10732             FREETYPELIBS="$ac_freetype_libs"
10733
10734             FREETYPEINCL="$ac_freetype_incl"
10735
10736         fi
10737     fi
10738 fi
10739 if test "x$FREETYPELIBS" = "x"; then :
10740   case "x$with_freetype" in
10741   xno) ;;
10742   *)   as_fn_error $? "FreeType ${notice_platform}development files not found. Fonts will not be built.
10743 Use the --without-freetype option if you really want this." "$LINENO" 5 ;;
10744 esac
10745 fi
10746 test "x$FREETYPELIBS" = "x" && enable_fonts=${enable_fonts:-no}
10747
10748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for parport header/ppdev.h" >&5
10749 $as_echo_n "checking for parport header/ppdev.h... " >&6; }
10750 if ${ac_cv_c_ppdev+:} false; then :
10751   $as_echo_n "(cached) " >&6
10752 else
10753   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10754 /* end confdefs.h.  */
10755 #ifdef HAVE_SYS_IOCTL_H
10756 # include <sys/ioctl.h>
10757 #endif
10758 #include <linux/ppdev.h>
10759 int
10760 main ()
10761 {
10762 ioctl (1,PPCLAIM,0)
10763   ;
10764   return 0;
10765 }
10766 _ACEOF
10767 if ac_fn_c_try_compile "$LINENO"; then :
10768   ac_cv_c_ppdev="yes"
10769 else
10770   ac_cv_c_ppdev="no"
10771 fi
10772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10773 fi
10774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_ppdev" >&5
10775 $as_echo "$ac_cv_c_ppdev" >&6; }
10776 if test "$ac_cv_c_ppdev" = "yes"
10777 then
10778
10779 $as_echo "#define HAVE_PPDEV 1" >>confdefs.h
10780
10781 fi
10782
10783 ac_wine_check_funcs_save_LIBS="$LIBS"
10784 LIBS="$LIBS $LIBPTHREAD"
10785 for ac_func in \
10786         pthread_attr_get_np \
10787         pthread_getattr_np \
10788         pthread_getthreadid_np \
10789         pthread_get_stackaddr_np \
10790         pthread_get_stacksize_np
10791 do :
10792   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10793 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10794 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10795   cat >>confdefs.h <<_ACEOF
10796 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10797 _ACEOF
10798
10799 fi
10800 done
10801
10802 LIBS="$ac_wine_check_funcs_save_LIBS"
10803
10804 if test "$ac_cv_header_zlib_h" = "yes"
10805 then
10806     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
10807 $as_echo_n "checking for inflate in -lz... " >&6; }
10808 if ${ac_cv_lib_z_inflate+:} false; then :
10809   $as_echo_n "(cached) " >&6
10810 else
10811   ac_check_lib_save_LIBS=$LIBS
10812 LIBS="-lz  $LIBS"
10813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10814 /* end confdefs.h.  */
10815
10816 /* Override any GCC internal prototype to avoid an error.
10817    Use char because int might match the return type of a GCC
10818    builtin and then its argument prototype would still apply.  */
10819 #ifdef __cplusplus
10820 extern "C"
10821 #endif
10822 char inflate ();
10823 int
10824 main ()
10825 {
10826 return inflate ();
10827   ;
10828   return 0;
10829 }
10830 _ACEOF
10831 if ac_fn_c_try_link "$LINENO"; then :
10832   ac_cv_lib_z_inflate=yes
10833 else
10834   ac_cv_lib_z_inflate=no
10835 fi
10836 rm -f core conftest.err conftest.$ac_objext \
10837     conftest$ac_exeext conftest.$ac_ext
10838 LIBS=$ac_check_lib_save_LIBS
10839 fi
10840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
10841 $as_echo "$ac_cv_lib_z_inflate" >&6; }
10842 if test "x$ac_cv_lib_z_inflate" = xyes; then :
10843
10844 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
10845
10846                             ZLIB="-lz"
10847
10848 fi
10849
10850 fi
10851 if test "x$ZLIB" = "x"; then :
10852   case "x$with_zlib" in
10853   x)   as_fn_append wine_notices "|libz ${notice_platform}development files not found, data compression won't be supported." ;;
10854   xno) ;;
10855   *)   as_fn_error $? "libz ${notice_platform}development files not found, data compression won't be supported.
10856 This is an error since --with-zlib was requested." "$LINENO" 5 ;;
10857 esac
10858 fi
10859
10860 if test "x$enable_tools" != xno
10861 then
10862     if test "$ac_cv_header_gettext_po_h" = "yes"
10863     then
10864         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for po_message_msgctxt in -lgettextpo" >&5
10865 $as_echo_n "checking for po_message_msgctxt in -lgettextpo... " >&6; }
10866 if ${ac_cv_lib_gettextpo_po_message_msgctxt+:} false; then :
10867   $as_echo_n "(cached) " >&6
10868 else
10869   ac_check_lib_save_LIBS=$LIBS
10870 LIBS="-lgettextpo  $LIBS"
10871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10872 /* end confdefs.h.  */
10873
10874 /* Override any GCC internal prototype to avoid an error.
10875    Use char because int might match the return type of a GCC
10876    builtin and then its argument prototype would still apply.  */
10877 #ifdef __cplusplus
10878 extern "C"
10879 #endif
10880 char po_message_msgctxt ();
10881 int
10882 main ()
10883 {
10884 return po_message_msgctxt ();
10885   ;
10886   return 0;
10887 }
10888 _ACEOF
10889 if ac_fn_c_try_link "$LINENO"; then :
10890   ac_cv_lib_gettextpo_po_message_msgctxt=yes
10891 else
10892   ac_cv_lib_gettextpo_po_message_msgctxt=no
10893 fi
10894 rm -f core conftest.err conftest.$ac_objext \
10895     conftest$ac_exeext conftest.$ac_ext
10896 LIBS=$ac_check_lib_save_LIBS
10897 fi
10898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gettextpo_po_message_msgctxt" >&5
10899 $as_echo "$ac_cv_lib_gettextpo_po_message_msgctxt" >&6; }
10900 if test "x$ac_cv_lib_gettextpo_po_message_msgctxt" = xyes; then :
10901
10902 $as_echo "#define HAVE_LIBGETTEXTPO 1" >>confdefs.h
10903
10904                       LIBGETTEXTPO="-lgettextpo"
10905
10906 fi
10907
10908     fi
10909     test "x$with_gettextpo" != xyes || if test "x$LIBGETTEXTPO" = "x"; then :
10910   case "x$with_gettextpo" in
10911   x)   as_fn_append wine_notices "|GetText ${notice_platform}development files not found (or too old), po files can't be rebuilt." ;;
10912   xno) ;;
10913   *)   as_fn_error $? "GetText ${notice_platform}development files not found (or too old), po files can't be rebuilt.
10914 This is an error since --with-gettextpo was requested." "$LINENO" 5 ;;
10915 esac
10916 fi
10917 fi
10918
10919 if test "x$with_gstreamer" != "xno"
10920 then
10921     ac_save_CPPFLAGS="$CPPFLAGS"
10922     if test "$PKG_CONFIG" != "false"; then
10923         ac_gst_incl=""
10924         for i in `$PKG_CONFIG --cflags gstreamer-app-0.10 2>/dev/null`
10925         do
10926             case "$i" in
10927                 -I*) ac_gst_incl="$ac_gst_incl $i";;
10928             esac
10929         done
10930         ac_gst_libs="`$PKG_CONFIG --libs gstreamer-app-0.10 2>/dev/null`"
10931         CPPFLAGS="$CPPFLAGS $ac_gst_incl"
10932         ac_fn_c_check_header_mongrel "$LINENO" "gst/gstpad.h" "ac_cv_header_gst_gstpad_h" "$ac_includes_default"
10933 if test "x$ac_cv_header_gst_gstpad_h" = xyes; then :
10934   ac_fn_c_check_header_mongrel "$LINENO" "gst/app/gstappsink.h" "ac_cv_header_gst_app_gstappsink_h" "$ac_includes_default"
10935 if test "x$ac_cv_header_gst_app_gstappsink_h" = xyes; then :
10936   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gint64 defined by gst/app/gstappsink.h is indeed 64-bit" >&5
10937 $as_echo_n "checking whether gint64 defined by gst/app/gstappsink.h is indeed 64-bit... " >&6; }
10938               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10939 /* end confdefs.h.  */
10940 #include <gst/app/gstappsink.h>
10941 int
10942 main ()
10943 {
10944 static int a[sizeof(gint64) > 4 ? 1 : -1]; if (a[0]) return 0;
10945   ;
10946   return 0;
10947 }
10948 _ACEOF
10949 if ac_fn_c_try_compile "$LINENO"; then :
10950   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10951 $as_echo "yes" >&6; }
10952                  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_pad_get_caps_reffed in -lgstreamer-0.10" >&5
10953 $as_echo_n "checking for gst_pad_get_caps_reffed in -lgstreamer-0.10... " >&6; }
10954 if ${ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed+:} false; then :
10955   $as_echo_n "(cached) " >&6
10956 else
10957   ac_check_lib_save_LIBS=$LIBS
10958 LIBS="-lgstreamer-0.10  $LIBS"
10959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10960 /* end confdefs.h.  */
10961
10962 /* Override any GCC internal prototype to avoid an error.
10963    Use char because int might match the return type of a GCC
10964    builtin and then its argument prototype would still apply.  */
10965 #ifdef __cplusplus
10966 extern "C"
10967 #endif
10968 char gst_pad_get_caps_reffed ();
10969 int
10970 main ()
10971 {
10972 return gst_pad_get_caps_reffed ();
10973   ;
10974   return 0;
10975 }
10976 _ACEOF
10977 if ac_fn_c_try_link "$LINENO"; then :
10978   ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=yes
10979 else
10980   ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=no
10981 fi
10982 rm -f core conftest.err conftest.$ac_objext \
10983     conftest$ac_exeext conftest.$ac_ext
10984 LIBS=$ac_check_lib_save_LIBS
10985 fi
10986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&5
10987 $as_echo "$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&6; }
10988 if test "x$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" = xyes; then :
10989   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_app_buffer_new in -lgstapp-0.10" >&5
10990 $as_echo_n "checking for gst_app_buffer_new in -lgstapp-0.10... " >&6; }
10991 if ${ac_cv_lib_gstapp_0_10_gst_app_buffer_new+:} false; then :
10992   $as_echo_n "(cached) " >&6
10993 else
10994   ac_check_lib_save_LIBS=$LIBS
10995 LIBS="-lgstapp-0.10 $ac_gst_libs $LIBS"
10996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10997 /* end confdefs.h.  */
10998
10999 /* Override any GCC internal prototype to avoid an error.
11000    Use char because int might match the return type of a GCC
11001    builtin and then its argument prototype would still apply.  */
11002 #ifdef __cplusplus
11003 extern "C"
11004 #endif
11005 char gst_app_buffer_new ();
11006 int
11007 main ()
11008 {
11009 return gst_app_buffer_new ();
11010   ;
11011   return 0;
11012 }
11013 _ACEOF
11014 if ac_fn_c_try_link "$LINENO"; then :
11015   ac_cv_lib_gstapp_0_10_gst_app_buffer_new=yes
11016 else
11017   ac_cv_lib_gstapp_0_10_gst_app_buffer_new=no
11018 fi
11019 rm -f core conftest.err conftest.$ac_objext \
11020     conftest$ac_exeext conftest.$ac_ext
11021 LIBS=$ac_check_lib_save_LIBS
11022 fi
11023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&5
11024 $as_echo "$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&6; }
11025 if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = xyes; then :
11026   GSTREAMER_LIBS="$ac_gst_libs"
11027
11028                        GSTREAMER_INCL="$ac_gst_incl"
11029
11030 fi
11031
11032 fi
11033
11034 else
11035   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11036 $as_echo "no" >&6; }
11037 fi
11038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11039 fi
11040
11041
11042 fi
11043
11044
11045     fi
11046     CPPFLAGS="$ac_save_CPPFLAGS"
11047 fi
11048 if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" != xyes -a "x$ac_cv_header_QuickTime_ImageCompression_h" != xyes; then :
11049   case "x$with_gstreamer" in
11050   x)   as_fn_append wine_notices "|gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled" ;;
11051   xno) ;;
11052   *)   as_fn_error $? "gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled
11053 This is an error since --with-gstreamer was requested." "$LINENO" 5 ;;
11054 esac
11055 fi
11056 test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = xyes || enable_winegstreamer=${enable_winegstreamer:-no}
11057
11058 ALSALIBS=""
11059
11060 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
11061 then
11062     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_hw_params_get_access_mask in -lasound" >&5
11063 $as_echo_n "checking for snd_pcm_hw_params_get_access_mask in -lasound... " >&6; }
11064 if ${ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask+:} false; then :
11065   $as_echo_n "(cached) " >&6
11066 else
11067   ac_check_lib_save_LIBS=$LIBS
11068 LIBS="-lasound  $LIBS"
11069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11070 /* end confdefs.h.  */
11071
11072 /* Override any GCC internal prototype to avoid an error.
11073    Use char because int might match the return type of a GCC
11074    builtin and then its argument prototype would still apply.  */
11075 #ifdef __cplusplus
11076 extern "C"
11077 #endif
11078 char snd_pcm_hw_params_get_access_mask ();
11079 int
11080 main ()
11081 {
11082 return snd_pcm_hw_params_get_access_mask ();
11083   ;
11084   return 0;
11085 }
11086 _ACEOF
11087 if ac_fn_c_try_link "$LINENO"; then :
11088   ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=yes
11089 else
11090   ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=no
11091 fi
11092 rm -f core conftest.err conftest.$ac_objext \
11093     conftest$ac_exeext conftest.$ac_ext
11094 LIBS=$ac_check_lib_save_LIBS
11095 fi
11096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&5
11097 $as_echo "$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&6; }
11098 if test "x$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" = xyes; then :
11099   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11100 /* end confdefs.h.  */
11101 #ifdef HAVE_ALSA_ASOUNDLIB_H
11102 #include <alsa/asoundlib.h>
11103 #elif defined(HAVE_SYS_ASOUNDLIB_H)
11104 #include <sys/asoundlib.h>
11105 #endif
11106 int
11107 main ()
11108 {
11109 snd_pcm_hw_params_get_access_mask(NULL, NULL)
11110   ;
11111   return 0;
11112 }
11113 _ACEOF
11114 if ac_fn_c_try_compile "$LINENO"; then :
11115   ALSALIBS="-lasound"
11116 fi
11117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11118 fi
11119
11120 fi
11121
11122 if test "x$with_oss" != xno
11123 then
11124     ac_save_CPPFLAGS="$CPPFLAGS"
11125     if test -f /etc/oss.conf
11126     then
11127         . /etc/oss.conf
11128     fi
11129     ac_oss_incl="-I${OSSLIBDIR:-/usr/lib/oss}/include"
11130     CPPFLAGS="$CPPFLAGS $ac_oss_incl"
11131     ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
11132 if test "x$ac_cv_header_sys_soundcard_h" = xyes; then :
11133   ac_fn_c_check_member "$LINENO" "oss_sysinfo" "numaudioengines" "ac_cv_member_oss_sysinfo_numaudioengines" "#include <sys/soundcard.h>
11134 "
11135 if test "x$ac_cv_member_oss_sysinfo_numaudioengines" = xyes; then :
11136
11137 cat >>confdefs.h <<_ACEOF
11138 #define HAVE_OSS_SYSINFO_NUMAUDIOENGINES 1
11139 _ACEOF
11140
11141 OSS4INCL="$ac_oss_incl"
11142
11143 fi
11144
11145 fi
11146
11147
11148     CPPFLAGS="$ac_save_CPPFLAGS"
11149     if test "x$ac_cv_member_oss_sysinfo_numaudioengines" != xyes
11150     then
11151         as_fn_append wine_notices "|OSS sound system found but too old (OSSv4 needed), OSS won't be supported."
11152     fi
11153 fi
11154
11155
11156 if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes"
11157 then
11158     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcapi20" >&5
11159 $as_echo_n "checking for -lcapi20... " >&6; }
11160 if ${ac_cv_lib_soname_capi20+:} false; then :
11161   $as_echo_n "(cached) " >&6
11162 else
11163   ac_check_soname_save_LIBS=$LIBS
11164 LIBS="-lcapi20  $LIBS"
11165   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11166 /* end confdefs.h.  */
11167
11168 /* Override any GCC internal prototype to avoid an error.
11169    Use char because int might match the return type of a GCC
11170    builtin and then its argument prototype would still apply.  */
11171 #ifdef __cplusplus
11172 extern "C"
11173 #endif
11174 char capi20_register ();
11175 int
11176 main ()
11177 {
11178 return capi20_register ();
11179   ;
11180   return 0;
11181 }
11182 _ACEOF
11183 if ac_fn_c_try_link "$LINENO"; then :
11184   case "$LIBEXT" in
11185     dll) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest.exe | grep "capi20" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11186     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'` ;;
11187     *) ac_cv_lib_soname_capi20=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libcapi20\\.$LIBEXT" | sed -e "s/^.*\\[\\(libcapi20\\.$LIBEXT[^   ]*\\)\\].*$/\1/"';2,$d'`
11188        if test "x$ac_cv_lib_soname_capi20" = x; then :
11189   ac_cv_lib_soname_capi20=`$LDD conftest$ac_exeext | grep "libcapi20\\.$LIBEXT" | sed -e "s/^.*\(libcapi20\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'`
11190 fi ;;
11191   esac
11192 fi
11193 rm -f core conftest.err conftest.$ac_objext \
11194     conftest$ac_exeext conftest.$ac_ext
11195   LIBS=$ac_check_soname_save_LIBS
11196 fi
11197 if test "x$ac_cv_lib_soname_capi20" = "x"; then :
11198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11199 $as_echo "not found" >&6; }
11200
11201 else
11202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_capi20" >&5
11203 $as_echo "$ac_cv_lib_soname_capi20" >&6; }
11204
11205 cat >>confdefs.h <<_ACEOF
11206 #define SONAME_LIBCAPI20 "$ac_cv_lib_soname_capi20"
11207 _ACEOF
11208
11209
11210 fi
11211 fi
11212 if test "x$ac_cv_lib_soname_capi20" = "x"; then :
11213   case "x$with_capi" in
11214   x)   as_fn_append wine_notices "|libcapi20 ${notice_platform}development files not found, ISDN won't be supported." ;;
11215   xno) ;;
11216   *)   as_fn_error $? "libcapi20 ${notice_platform}development files not found, ISDN won't be supported.
11217 This is an error since --with-capi was requested." "$LINENO" 5 ;;
11218 esac
11219 fi
11220
11221 CUPSINCL=""
11222
11223 if test "x$with_cups" != "xno"
11224 then
11225     ac_save_CPPFLAGS="$CPPFLAGS"
11226     ac_cups_cflags=`cups-config --cflags 2>/dev/null`
11227     ac_cups_libs=`cups-config --ldflags 2>/dev/null`
11228     CPPFLAGS="$CPPFLAGS $ac_cups_cflags"
11229     for ac_header in cups/cups.h
11230 do :
11231   ac_fn_c_check_header_mongrel "$LINENO" "cups/cups.h" "ac_cv_header_cups_cups_h" "$ac_includes_default"
11232 if test "x$ac_cv_header_cups_cups_h" = xyes; then :
11233   cat >>confdefs.h <<_ACEOF
11234 #define HAVE_CUPS_CUPS_H 1
11235 _ACEOF
11236  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcups" >&5
11237 $as_echo_n "checking for -lcups... " >&6; }
11238 if ${ac_cv_lib_soname_cups+:} false; then :
11239   $as_echo_n "(cached) " >&6
11240 else
11241   ac_check_soname_save_LIBS=$LIBS
11242 LIBS="-lcups $ac_cups_libs $LIBS"
11243   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11244 /* end confdefs.h.  */
11245
11246 /* Override any GCC internal prototype to avoid an error.
11247    Use char because int might match the return type of a GCC
11248    builtin and then its argument prototype would still apply.  */
11249 #ifdef __cplusplus
11250 extern "C"
11251 #endif
11252 char cupsGetDefault ();
11253 int
11254 main ()
11255 {
11256 return cupsGetDefault ();
11257   ;
11258   return 0;
11259 }
11260 _ACEOF
11261 if ac_fn_c_try_link "$LINENO"; then :
11262   case "$LIBEXT" in
11263     dll) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest.exe | grep "cups" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11264     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'` ;;
11265     *) ac_cv_lib_soname_cups=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libcups\\.$LIBEXT" | sed -e "s/^.*\\[\\(libcups\\.$LIBEXT[^         ]*\\)\\].*$/\1/"';2,$d'`
11266        if test "x$ac_cv_lib_soname_cups" = x; then :
11267   ac_cv_lib_soname_cups=`$LDD conftest$ac_exeext | grep "libcups\\.$LIBEXT" | sed -e "s/^.*\(libcups\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'`
11268 fi ;;
11269   esac
11270 fi
11271 rm -f core conftest.err conftest.$ac_objext \
11272     conftest$ac_exeext conftest.$ac_ext
11273   LIBS=$ac_check_soname_save_LIBS
11274 fi
11275 if test "x$ac_cv_lib_soname_cups" = "x"; then :
11276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11277 $as_echo "not found" >&6; }
11278
11279 else
11280   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_cups" >&5
11281 $as_echo "$ac_cv_lib_soname_cups" >&6; }
11282
11283 cat >>confdefs.h <<_ACEOF
11284 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
11285 _ACEOF
11286
11287        CUPSINCL="$ac_cups_cflags"
11288 fi
11289 fi
11290
11291 done
11292
11293     CPPFLAGS="$ac_save_CPPFLAGS"
11294 fi
11295 if test "x$ac_cv_lib_soname_cups" = "x"; then :
11296   case "x$with_cups" in
11297   x)   as_fn_append wine_notices "|libcups ${notice_platform}development files not found, CUPS won't be supported." ;;
11298   xno) ;;
11299   *)   as_fn_error $? "libcups ${notice_platform}development files not found, CUPS won't be supported.
11300 This is an error since --with-cups was requested." "$LINENO" 5 ;;
11301 esac
11302 fi
11303
11304 if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
11305 then
11306     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
11307 $as_echo_n "checking for -lfontconfig... " >&6; }
11308 if ${ac_cv_lib_soname_fontconfig+:} false; then :
11309   $as_echo_n "(cached) " >&6
11310 else
11311   ac_check_soname_save_LIBS=$LIBS
11312 LIBS="-lfontconfig  $LIBS"
11313   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11314 /* end confdefs.h.  */
11315
11316 /* Override any GCC internal prototype to avoid an error.
11317    Use char because int might match the return type of a GCC
11318    builtin and then its argument prototype would still apply.  */
11319 #ifdef __cplusplus
11320 extern "C"
11321 #endif
11322 char FcInit ();
11323 int
11324 main ()
11325 {
11326 return FcInit ();
11327   ;
11328   return 0;
11329 }
11330 _ACEOF
11331 if ac_fn_c_try_link "$LINENO"; then :
11332   case "$LIBEXT" in
11333     dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11334     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'` ;;
11335     *) ac_cv_lib_soname_fontconfig=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libfontconfig\\.$LIBEXT" | sed -e "s/^.*\\[\\(libfontconfig\\.$LIBEXT[^       ]*\\)\\].*$/\1/"';2,$d'`
11336        if test "x$ac_cv_lib_soname_fontconfig" = x; then :
11337   ac_cv_lib_soname_fontconfig=`$LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'`
11338 fi ;;
11339   esac
11340 fi
11341 rm -f core conftest.err conftest.$ac_objext \
11342     conftest$ac_exeext conftest.$ac_ext
11343   LIBS=$ac_check_soname_save_LIBS
11344 fi
11345 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11346   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11347 $as_echo "not found" >&6; }
11348
11349 else
11350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
11351 $as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
11352
11353 cat >>confdefs.h <<_ACEOF
11354 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
11355 _ACEOF
11356
11357
11358 fi
11359 elif test -n "$X_CFLAGS" -a "x$with_fontconfig" != "xno"
11360 then
11361         ac_save_CPPFLAGS="$CPPFLAGS"
11362     CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11363     $as_unset ac_cv_header_fontconfig_fontconfig_h
11364     for ac_header in fontconfig/fontconfig.h
11365 do :
11366   ac_fn_c_check_header_mongrel "$LINENO" "fontconfig/fontconfig.h" "ac_cv_header_fontconfig_fontconfig_h" "$ac_includes_default"
11367 if test "x$ac_cv_header_fontconfig_fontconfig_h" = xyes; then :
11368   cat >>confdefs.h <<_ACEOF
11369 #define HAVE_FONTCONFIG_FONTCONFIG_H 1
11370 _ACEOF
11371
11372 fi
11373
11374 done
11375
11376     CPPFLAGS="$ac_save_CPPFLAGS"
11377     if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
11378     then
11379         FONTCONFIGINCL="$X_CFLAGS"
11380
11381         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
11382 $as_echo_n "checking for -lfontconfig... " >&6; }
11383 if ${ac_cv_lib_soname_fontconfig+:} false; then :
11384   $as_echo_n "(cached) " >&6
11385 else
11386   ac_check_soname_save_LIBS=$LIBS
11387 LIBS="-lfontconfig $X_LIBS $LIBS"
11388   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11389 /* end confdefs.h.  */
11390
11391 /* Override any GCC internal prototype to avoid an error.
11392    Use char because int might match the return type of a GCC
11393    builtin and then its argument prototype would still apply.  */
11394 #ifdef __cplusplus
11395 extern "C"
11396 #endif
11397 char FcInit ();
11398 int
11399 main ()
11400 {
11401 return FcInit ();
11402   ;
11403   return 0;
11404 }
11405 _ACEOF
11406 if ac_fn_c_try_link "$LINENO"; then :
11407   case "$LIBEXT" in
11408     dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11409     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'` ;;
11410     *) ac_cv_lib_soname_fontconfig=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libfontconfig\\.$LIBEXT" | sed -e "s/^.*\\[\\(libfontconfig\\.$LIBEXT[^       ]*\\)\\].*$/\1/"';2,$d'`
11411        if test "x$ac_cv_lib_soname_fontconfig" = x; then :
11412   ac_cv_lib_soname_fontconfig=`$LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'`
11413 fi ;;
11414   esac
11415 fi
11416 rm -f core conftest.err conftest.$ac_objext \
11417     conftest$ac_exeext conftest.$ac_ext
11418   LIBS=$ac_check_soname_save_LIBS
11419 fi
11420 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11422 $as_echo "not found" >&6; }
11423
11424 else
11425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
11426 $as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
11427
11428 cat >>confdefs.h <<_ACEOF
11429 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
11430 _ACEOF
11431
11432
11433 fi
11434     fi
11435 fi
11436 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11437   case "x$with_fontconfig" in
11438   x)   as_fn_append wine_notices "|fontconfig ${notice_platform}development files not found, fontconfig won't be supported." ;;
11439   xno) ;;
11440   *)   as_fn_error $? "fontconfig ${notice_platform}development files not found, fontconfig won't be supported.
11441 This is an error since --with-fontconfig was requested." "$LINENO" 5 ;;
11442 esac
11443 fi
11444
11445 if test "$ac_cv_header_openssl_err_h" = "yes" -a "$ac_cv_header_openssl_ssl_h" = "yes"
11446 then
11447     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lssl" >&5
11448 $as_echo_n "checking for -lssl... " >&6; }
11449 if ${ac_cv_lib_soname_ssl+:} false; then :
11450   $as_echo_n "(cached) " >&6
11451 else
11452   ac_check_soname_save_LIBS=$LIBS
11453 LIBS="-lssl  $LIBS"
11454   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11455 /* end confdefs.h.  */
11456
11457 /* Override any GCC internal prototype to avoid an error.
11458    Use char because int might match the return type of a GCC
11459    builtin and then its argument prototype would still apply.  */
11460 #ifdef __cplusplus
11461 extern "C"
11462 #endif
11463 char SSL_library_init ();
11464 int
11465 main ()
11466 {
11467 return SSL_library_init ();
11468   ;
11469   return 0;
11470 }
11471 _ACEOF
11472 if ac_fn_c_try_link "$LINENO"; then :
11473   case "$LIBEXT" in
11474     dll) ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest.exe | grep "ssl" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11475     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'` ;;
11476     *) ac_cv_lib_soname_ssl=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libssl\\.$LIBEXT" | sed -e "s/^.*\\[\\(libssl\\.$LIBEXT[^    ]*\\)\\].*$/\1/"';2,$d'`
11477        if test "x$ac_cv_lib_soname_ssl" = x; then :
11478   ac_cv_lib_soname_ssl=`$LDD conftest$ac_exeext | grep "libssl\\.$LIBEXT" | sed -e "s/^.*\(libssl\.$LIBEXT[^     ]*\).*$/\1/"';2,$d'`
11479 fi ;;
11480   esac
11481 fi
11482 rm -f core conftest.err conftest.$ac_objext \
11483     conftest$ac_exeext conftest.$ac_ext
11484   LIBS=$ac_check_soname_save_LIBS
11485 fi
11486 if test "x$ac_cv_lib_soname_ssl" = "x"; then :
11487   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11488 $as_echo "not found" >&6; }
11489
11490 else
11491   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ssl" >&5
11492 $as_echo "$ac_cv_lib_soname_ssl" >&6; }
11493
11494 cat >>confdefs.h <<_ACEOF
11495 #define SONAME_LIBSSL "$ac_cv_lib_soname_ssl"
11496 _ACEOF
11497
11498
11499 fi
11500     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcrypto" >&5
11501 $as_echo_n "checking for -lcrypto... " >&6; }
11502 if ${ac_cv_lib_soname_crypto+:} false; then :
11503   $as_echo_n "(cached) " >&6
11504 else
11505   ac_check_soname_save_LIBS=$LIBS
11506 LIBS="-lcrypto  $LIBS"
11507   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11508 /* end confdefs.h.  */
11509
11510 /* Override any GCC internal prototype to avoid an error.
11511    Use char because int might match the return type of a GCC
11512    builtin and then its argument prototype would still apply.  */
11513 #ifdef __cplusplus
11514 extern "C"
11515 #endif
11516 char BIO_new_socket ();
11517 int
11518 main ()
11519 {
11520 return BIO_new_socket ();
11521   ;
11522   return 0;
11523 }
11524 _ACEOF
11525 if ac_fn_c_try_link "$LINENO"; then :
11526   case "$LIBEXT" in
11527     dll) ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest.exe | grep "crypto" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11528     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'` ;;
11529     *) ac_cv_lib_soname_crypto=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libcrypto\\.$LIBEXT" | sed -e "s/^.*\\[\\(libcrypto\\.$LIBEXT[^   ]*\\)\\].*$/\1/"';2,$d'`
11530        if test "x$ac_cv_lib_soname_crypto" = x; then :
11531   ac_cv_lib_soname_crypto=`$LDD conftest$ac_exeext | grep "libcrypto\\.$LIBEXT" | sed -e "s/^.*\(libcrypto\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'`
11532 fi ;;
11533   esac
11534 fi
11535 rm -f core conftest.err conftest.$ac_objext \
11536     conftest$ac_exeext conftest.$ac_ext
11537   LIBS=$ac_check_soname_save_LIBS
11538 fi
11539 if test "x$ac_cv_lib_soname_crypto" = "x"; then :
11540   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11541 $as_echo "not found" >&6; }
11542
11543 else
11544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_crypto" >&5
11545 $as_echo "$ac_cv_lib_soname_crypto" >&6; }
11546
11547 cat >>confdefs.h <<_ACEOF
11548 #define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto"
11549 _ACEOF
11550
11551
11552 fi
11553 fi
11554 if test "x$ac_cv_lib_soname_ssl" = "x" -o "x$ac_cv_lib_soname_crypto" = "x"; then :
11555   case "x$with_openssl" in
11556   x)   as_fn_append wine_warnings "|OpenSSL ${notice_platform}development files not found, SSL won't be supported." ;;
11557   xno) ;;
11558   *)   as_fn_error $? "OpenSSL ${notice_platform}development files not found, SSL won't be supported.
11559 This is an error since --with-openssl was requested." "$LINENO" 5 ;;
11560 esac
11561 fi
11562
11563 if test "$ac_cv_header_gsm_h" = "yes" -o "$ac_cv_header_gsm_gsm_h" = "yes"
11564 then
11565     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgsm" >&5
11566 $as_echo_n "checking for -lgsm... " >&6; }
11567 if ${ac_cv_lib_soname_gsm+:} false; then :
11568   $as_echo_n "(cached) " >&6
11569 else
11570   ac_check_soname_save_LIBS=$LIBS
11571 LIBS="-lgsm  $LIBS"
11572   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11573 /* end confdefs.h.  */
11574
11575 /* Override any GCC internal prototype to avoid an error.
11576    Use char because int might match the return type of a GCC
11577    builtin and then its argument prototype would still apply.  */
11578 #ifdef __cplusplus
11579 extern "C"
11580 #endif
11581 char gsm_create ();
11582 int
11583 main ()
11584 {
11585 return gsm_create ();
11586   ;
11587   return 0;
11588 }
11589 _ACEOF
11590 if ac_fn_c_try_link "$LINENO"; then :
11591   case "$LIBEXT" in
11592     dll) ac_cv_lib_soname_gsm=`$ac_cv_path_LDD conftest.exe | grep "gsm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11593     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'` ;;
11594     *) ac_cv_lib_soname_gsm=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libgsm\\.$LIBEXT" | sed -e "s/^.*\\[\\(libgsm\\.$LIBEXT[^    ]*\\)\\].*$/\1/"';2,$d'`
11595        if test "x$ac_cv_lib_soname_gsm" = x; then :
11596   ac_cv_lib_soname_gsm=`$LDD conftest$ac_exeext | grep "libgsm\\.$LIBEXT" | sed -e "s/^.*\(libgsm\.$LIBEXT[^     ]*\).*$/\1/"';2,$d'`
11597 fi ;;
11598   esac
11599 fi
11600 rm -f core conftest.err conftest.$ac_objext \
11601     conftest$ac_exeext conftest.$ac_ext
11602   LIBS=$ac_check_soname_save_LIBS
11603 fi
11604 if test "x$ac_cv_lib_soname_gsm" = "x"; then :
11605   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11606 $as_echo "not found" >&6; }
11607
11608 else
11609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gsm" >&5
11610 $as_echo "$ac_cv_lib_soname_gsm" >&6; }
11611
11612 cat >>confdefs.h <<_ACEOF
11613 #define SONAME_LIBGSM "$ac_cv_lib_soname_gsm"
11614 _ACEOF
11615
11616
11617 fi
11618 fi
11619 if test "x$ac_cv_lib_soname_gsm" = "x"; then :
11620   case "x$with_gsm" in
11621   x)   as_fn_append wine_notices "|libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported." ;;
11622   xno) ;;
11623   *)   as_fn_error $? "libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported.
11624 This is an error since --with-gsm was requested." "$LINENO" 5 ;;
11625 esac
11626 fi
11627
11628 if test "$ac_cv_header_jpeglib_h" = "yes"
11629 then
11630     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ljpeg" >&5
11631 $as_echo_n "checking for -ljpeg... " >&6; }
11632 if ${ac_cv_lib_soname_jpeg+:} false; then :
11633   $as_echo_n "(cached) " >&6
11634 else
11635   ac_check_soname_save_LIBS=$LIBS
11636 LIBS="-ljpeg  $LIBS"
11637   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11638 /* end confdefs.h.  */
11639
11640 /* Override any GCC internal prototype to avoid an error.
11641    Use char because int might match the return type of a GCC
11642    builtin and then its argument prototype would still apply.  */
11643 #ifdef __cplusplus
11644 extern "C"
11645 #endif
11646 char jpeg_start_decompress ();
11647 int
11648 main ()
11649 {
11650 return jpeg_start_decompress ();
11651   ;
11652   return 0;
11653 }
11654 _ACEOF
11655 if ac_fn_c_try_link "$LINENO"; then :
11656   case "$LIBEXT" in
11657     dll) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest.exe | grep "jpeg" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11658     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'` ;;
11659     *) ac_cv_lib_soname_jpeg=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libjpeg\\.$LIBEXT" | sed -e "s/^.*\\[\\(libjpeg\\.$LIBEXT[^         ]*\\)\\].*$/\1/"';2,$d'`
11660        if test "x$ac_cv_lib_soname_jpeg" = x; then :
11661   ac_cv_lib_soname_jpeg=`$LDD conftest$ac_exeext | grep "libjpeg\\.$LIBEXT" | sed -e "s/^.*\(libjpeg\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'`
11662 fi ;;
11663   esac
11664 fi
11665 rm -f core conftest.err conftest.$ac_objext \
11666     conftest$ac_exeext conftest.$ac_ext
11667   LIBS=$ac_check_soname_save_LIBS
11668 fi
11669 if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
11670   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11671 $as_echo "not found" >&6; }
11672
11673 else
11674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_jpeg" >&5
11675 $as_echo "$ac_cv_lib_soname_jpeg" >&6; }
11676
11677 cat >>confdefs.h <<_ACEOF
11678 #define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg"
11679 _ACEOF
11680
11681
11682 fi
11683 fi
11684 if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
11685   case "x$with_jpeg" in
11686   x)   as_fn_append wine_warnings "|libjpeg ${notice_platform}development files not found, JPEG won't be supported." ;;
11687   xno) ;;
11688   *)   as_fn_error $? "libjpeg ${notice_platform}development files not found, JPEG won't be supported.
11689 This is an error since --with-jpeg was requested." "$LINENO" 5 ;;
11690 esac
11691 fi
11692
11693 if test "$ac_cv_header_png_h" = "yes"
11694 then
11695     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
11696 $as_echo_n "checking for -lpng... " >&6; }
11697 if ${ac_cv_lib_soname_png+:} false; then :
11698   $as_echo_n "(cached) " >&6
11699 else
11700   ac_check_soname_save_LIBS=$LIBS
11701 LIBS="-lpng -lm -lz $LIBS"
11702   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11703 /* end confdefs.h.  */
11704
11705 /* Override any GCC internal prototype to avoid an error.
11706    Use char because int might match the return type of a GCC
11707    builtin and then its argument prototype would still apply.  */
11708 #ifdef __cplusplus
11709 extern "C"
11710 #endif
11711 char png_create_read_struct ();
11712 int
11713 main ()
11714 {
11715 return png_create_read_struct ();
11716   ;
11717   return 0;
11718 }
11719 _ACEOF
11720 if ac_fn_c_try_link "$LINENO"; then :
11721   case "$LIBEXT" in
11722     dll) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest.exe | grep "png" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11723     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'` ;;
11724     *) ac_cv_lib_soname_png=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libpng[0-9]*\\.$LIBEXT" | sed -e "s/^.*\\[\\(libpng[0-9]*\\.$LIBEXT[^        ]*\\)\\].*$/\1/"';2,$d'`
11725        if test "x$ac_cv_lib_soname_png" = x; then :
11726   ac_cv_lib_soname_png=`$LDD conftest$ac_exeext | grep "libpng[0-9]*\\.$LIBEXT" | sed -e "s/^.*\(libpng[0-9]*\.$LIBEXT[^         ]*\).*$/\1/"';2,$d'`
11727 fi ;;
11728   esac
11729 fi
11730 rm -f core conftest.err conftest.$ac_objext \
11731     conftest$ac_exeext conftest.$ac_ext
11732   LIBS=$ac_check_soname_save_LIBS
11733 fi
11734 if test "x$ac_cv_lib_soname_png" = "x"; then :
11735   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11736 $as_echo "not found" >&6; }
11737
11738 else
11739   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
11740 $as_echo "$ac_cv_lib_soname_png" >&6; }
11741
11742 cat >>confdefs.h <<_ACEOF
11743 #define SONAME_LIBPNG "$ac_cv_lib_soname_png"
11744 _ACEOF
11745
11746
11747 fi
11748     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5
11749 $as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; }
11750 if ${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+:} false; then :
11751   $as_echo_n "(cached) " >&6
11752 else
11753   ac_check_lib_save_LIBS=$LIBS
11754 LIBS="-lpng -lm -lz $LIBS"
11755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11756 /* end confdefs.h.  */
11757
11758 /* Override any GCC internal prototype to avoid an error.
11759    Use char because int might match the return type of a GCC
11760    builtin and then its argument prototype would still apply.  */
11761 #ifdef __cplusplus
11762 extern "C"
11763 #endif
11764 char png_set_expand_gray_1_2_4_to_8 ();
11765 int
11766 main ()
11767 {
11768 return png_set_expand_gray_1_2_4_to_8 ();
11769   ;
11770   return 0;
11771 }
11772 _ACEOF
11773 if ac_fn_c_try_link "$LINENO"; then :
11774   ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes
11775 else
11776   ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no
11777 fi
11778 rm -f core conftest.err conftest.$ac_objext \
11779     conftest$ac_exeext conftest.$ac_ext
11780 LIBS=$ac_check_lib_save_LIBS
11781 fi
11782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5
11783 $as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; }
11784 if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = xyes; then :
11785
11786 $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
11787
11788
11789 fi
11790
11791 elif test -n "$X_CFLAGS" -a "x$with_png" != "xno"
11792 then
11793         ac_save_CPPFLAGS="$CPPFLAGS"
11794     CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11795     $as_unset ac_cv_header_png_h
11796     for ac_header in png.h
11797 do :
11798   ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
11799 if test "x$ac_cv_header_png_h" = xyes; then :
11800   cat >>confdefs.h <<_ACEOF
11801 #define HAVE_PNG_H 1
11802 _ACEOF
11803
11804 fi
11805
11806 done
11807
11808     CPPFLAGS="$ac_save_CPPFLAGS"
11809     if test "$ac_cv_header_png_h" = "yes"
11810     then
11811         PNGINCL="$X_CFLAGS"
11812
11813         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
11814 $as_echo_n "checking for -lpng... " >&6; }
11815 if ${ac_cv_lib_soname_png+:} false; then :
11816   $as_echo_n "(cached) " >&6
11817 else
11818   ac_check_soname_save_LIBS=$LIBS
11819 LIBS="-lpng $X_LIBS -lm -lz $LIBS"
11820   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11821 /* end confdefs.h.  */
11822
11823 /* Override any GCC internal prototype to avoid an error.
11824    Use char because int might match the return type of a GCC
11825    builtin and then its argument prototype would still apply.  */
11826 #ifdef __cplusplus
11827 extern "C"
11828 #endif
11829 char png_create_read_struct ();
11830 int
11831 main ()
11832 {
11833 return png_create_read_struct ();
11834   ;
11835   return 0;
11836 }
11837 _ACEOF
11838 if ac_fn_c_try_link "$LINENO"; then :
11839   case "$LIBEXT" in
11840     dll) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest.exe | grep "png" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11841     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'` ;;
11842     *) ac_cv_lib_soname_png=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libpng[0-9]*\\.$LIBEXT" | sed -e "s/^.*\\[\\(libpng[0-9]*\\.$LIBEXT[^        ]*\\)\\].*$/\1/"';2,$d'`
11843        if test "x$ac_cv_lib_soname_png" = x; then :
11844   ac_cv_lib_soname_png=`$LDD conftest$ac_exeext | grep "libpng[0-9]*\\.$LIBEXT" | sed -e "s/^.*\(libpng[0-9]*\.$LIBEXT[^         ]*\).*$/\1/"';2,$d'`
11845 fi ;;
11846   esac
11847 fi
11848 rm -f core conftest.err conftest.$ac_objext \
11849     conftest$ac_exeext conftest.$ac_ext
11850   LIBS=$ac_check_soname_save_LIBS
11851 fi
11852 if test "x$ac_cv_lib_soname_png" = "x"; then :
11853   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11854 $as_echo "not found" >&6; }
11855
11856 else
11857   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
11858 $as_echo "$ac_cv_lib_soname_png" >&6; }
11859
11860 cat >>confdefs.h <<_ACEOF
11861 #define SONAME_LIBPNG "$ac_cv_lib_soname_png"
11862 _ACEOF
11863
11864
11865 fi
11866         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5
11867 $as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; }
11868 if ${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+:} false; then :
11869   $as_echo_n "(cached) " >&6
11870 else
11871   ac_check_lib_save_LIBS=$LIBS
11872 LIBS="-lpng $X_LIBS -lm -lz $LIBS"
11873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11874 /* end confdefs.h.  */
11875
11876 /* Override any GCC internal prototype to avoid an error.
11877    Use char because int might match the return type of a GCC
11878    builtin and then its argument prototype would still apply.  */
11879 #ifdef __cplusplus
11880 extern "C"
11881 #endif
11882 char png_set_expand_gray_1_2_4_to_8 ();
11883 int
11884 main ()
11885 {
11886 return png_set_expand_gray_1_2_4_to_8 ();
11887   ;
11888   return 0;
11889 }
11890 _ACEOF
11891 if ac_fn_c_try_link "$LINENO"; then :
11892   ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes
11893 else
11894   ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no
11895 fi
11896 rm -f core conftest.err conftest.$ac_objext \
11897     conftest$ac_exeext conftest.$ac_ext
11898 LIBS=$ac_check_lib_save_LIBS
11899 fi
11900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5
11901 $as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; }
11902 if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = xyes; then :
11903   $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
11904
11905 fi
11906
11907     fi
11908 fi
11909 if test "x$ac_cv_lib_soname_png" = "x"; then :
11910   case "x$with_png" in
11911   x)   as_fn_append wine_warnings "|libpng ${notice_platform}development files not found, PNG won't be supported." ;;
11912   xno) ;;
11913   *)   as_fn_error $? "libpng ${notice_platform}development files not found, PNG won't be supported.
11914 This is an error since --with-png was requested." "$LINENO" 5 ;;
11915 esac
11916 fi
11917
11918 if test "$ac_cv_header_tiffio_h" = "yes"
11919 then
11920     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ltiff" >&5
11921 $as_echo_n "checking for -ltiff... " >&6; }
11922 if ${ac_cv_lib_soname_tiff+:} false; then :
11923   $as_echo_n "(cached) " >&6
11924 else
11925   ac_check_soname_save_LIBS=$LIBS
11926 LIBS="-ltiff  $LIBS"
11927   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11928 /* end confdefs.h.  */
11929
11930 /* Override any GCC internal prototype to avoid an error.
11931    Use char because int might match the return type of a GCC
11932    builtin and then its argument prototype would still apply.  */
11933 #ifdef __cplusplus
11934 extern "C"
11935 #endif
11936 char TIFFClientOpen ();
11937 int
11938 main ()
11939 {
11940 return TIFFClientOpen ();
11941   ;
11942   return 0;
11943 }
11944 _ACEOF
11945 if ac_fn_c_try_link "$LINENO"; then :
11946   case "$LIBEXT" in
11947     dll) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest.exe | grep "tiff" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11948     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'` ;;
11949     *) ac_cv_lib_soname_tiff=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libtiff\\.$LIBEXT" | sed -e "s/^.*\\[\\(libtiff\\.$LIBEXT[^         ]*\\)\\].*$/\1/"';2,$d'`
11950        if test "x$ac_cv_lib_soname_tiff" = x; then :
11951   ac_cv_lib_soname_tiff=`$LDD conftest$ac_exeext | grep "libtiff\\.$LIBEXT" | sed -e "s/^.*\(libtiff\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'`
11952 fi ;;
11953   esac
11954 fi
11955 rm -f core conftest.err conftest.$ac_objext \
11956     conftest$ac_exeext conftest.$ac_ext
11957   LIBS=$ac_check_soname_save_LIBS
11958 fi
11959 if test "x$ac_cv_lib_soname_tiff" = "x"; then :
11960   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11961 $as_echo "not found" >&6; }
11962
11963 else
11964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_tiff" >&5
11965 $as_echo "$ac_cv_lib_soname_tiff" >&6; }
11966
11967 cat >>confdefs.h <<_ACEOF
11968 #define SONAME_LIBTIFF "$ac_cv_lib_soname_tiff"
11969 _ACEOF
11970
11971
11972 fi
11973 fi
11974 if test "x$ac_cv_lib_soname_tiff" = "x"; then :
11975   case "x$with_tiff" in
11976   x)   as_fn_append wine_notices "|libtiff ${notice_platform}development files not found, TIFF won't be supported." ;;
11977   xno) ;;
11978   *)   as_fn_error $? "libtiff ${notice_platform}development files not found, TIFF won't be supported.
11979 This is an error since --with-tiff was requested." "$LINENO" 5 ;;
11980 esac
11981 fi
11982
11983 if test "$ac_cv_header_mpg123_h" = "yes"
11984 then
11985     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpg123_feed in -lmpg123" >&5
11986 $as_echo_n "checking for mpg123_feed in -lmpg123... " >&6; }
11987 if ${ac_cv_lib_mpg123_mpg123_feed+:} false; then :
11988   $as_echo_n "(cached) " >&6
11989 else
11990   ac_check_lib_save_LIBS=$LIBS
11991 LIBS="-lmpg123  $LIBS"
11992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11993 /* end confdefs.h.  */
11994
11995 /* Override any GCC internal prototype to avoid an error.
11996    Use char because int might match the return type of a GCC
11997    builtin and then its argument prototype would still apply.  */
11998 #ifdef __cplusplus
11999 extern "C"
12000 #endif
12001 char mpg123_feed ();
12002 int
12003 main ()
12004 {
12005 return mpg123_feed ();
12006   ;
12007   return 0;
12008 }
12009 _ACEOF
12010 if ac_fn_c_try_link "$LINENO"; then :
12011   ac_cv_lib_mpg123_mpg123_feed=yes
12012 else
12013   ac_cv_lib_mpg123_mpg123_feed=no
12014 fi
12015 rm -f core conftest.err conftest.$ac_objext \
12016     conftest$ac_exeext conftest.$ac_ext
12017 LIBS=$ac_check_lib_save_LIBS
12018 fi
12019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpg123_mpg123_feed" >&5
12020 $as_echo "$ac_cv_lib_mpg123_mpg123_feed" >&6; }
12021 if test "x$ac_cv_lib_mpg123_mpg123_feed" = xyes; then :
12022   LIBMPG123="-lmpg123"
12023
12024 fi
12025
12026 fi
12027 if test "x$ac_cv_lib_mpg123_mpg123_feed" != xyes -a x"$ac_cv_header_CoreAudio_CoreAudio_h" != xyes; then :
12028   case "x$with_mpg123" in
12029   x)   as_fn_append wine_notices "|libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported." ;;
12030   xno) ;;
12031   *)   as_fn_error $? "libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported.
12032 This is an error since --with-mpg123 was requested." "$LINENO" 5 ;;
12033 esac
12034 fi
12035 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}
12036
12037 if test "$ac_cv_header_AL_al_h" = "yes"
12038 then
12039     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lopenal" >&5
12040 $as_echo_n "checking for -lopenal... " >&6; }
12041 if ${ac_cv_lib_soname_openal+:} false; then :
12042   $as_echo_n "(cached) " >&6
12043 else
12044   ac_check_soname_save_LIBS=$LIBS
12045 LIBS="-lopenal  $LIBS"
12046   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12047 /* end confdefs.h.  */
12048
12049 /* Override any GCC internal prototype to avoid an error.
12050    Use char because int might match the return type of a GCC
12051    builtin and then its argument prototype would still apply.  */
12052 #ifdef __cplusplus
12053 extern "C"
12054 #endif
12055 char alGetSource3i ();
12056 int
12057 main ()
12058 {
12059 return alGetSource3i ();
12060   ;
12061   return 0;
12062 }
12063 _ACEOF
12064 if ac_fn_c_try_link "$LINENO"; then :
12065   case "$LIBEXT" in
12066     dll) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest.exe | grep "openal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12067     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'` ;;
12068     *) ac_cv_lib_soname_openal=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libopenal\\.$LIBEXT" | sed -e "s/^.*\\[\\(libopenal\\.$LIBEXT[^   ]*\\)\\].*$/\1/"';2,$d'`
12069        if test "x$ac_cv_lib_soname_openal" = x; then :
12070   ac_cv_lib_soname_openal=`$LDD conftest$ac_exeext | grep "libopenal\\.$LIBEXT" | sed -e "s/^.*\(libopenal\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'`
12071 fi ;;
12072   esac
12073 fi
12074 rm -f core conftest.err conftest.$ac_objext \
12075     conftest$ac_exeext conftest.$ac_ext
12076   LIBS=$ac_check_soname_save_LIBS
12077 fi
12078 if test "x$ac_cv_lib_soname_openal" = "x"; then :
12079   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12080 $as_echo "not found" >&6; }
12081
12082 else
12083   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_openal" >&5
12084 $as_echo "$ac_cv_lib_soname_openal" >&6; }
12085
12086 cat >>confdefs.h <<_ACEOF
12087 #define SONAME_LIBOPENAL "$ac_cv_lib_soname_openal"
12088 _ACEOF
12089
12090        LIBOPENAL="-lopenal"
12091
12092                       ac_cv_lib_openal=yes
12093
12094 cat >>confdefs.h <<_ACEOF
12095 #define HAVE_OPENAL 1
12096 _ACEOF
12097
12098 fi
12099 fi
12100 if test "x$ac_cv_lib_openal" != xyes; then :
12101   case "x$with_openal" in
12102   x)   as_fn_append wine_notices "|libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported." ;;
12103   xno) ;;
12104   *)   as_fn_error $? "libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported.
12105 This is an error since --with-openal was requested." "$LINENO" 5 ;;
12106 esac
12107 fi
12108 test "x$ac_cv_lib_openal" = xyes || enable_openal32=${enable_openal32:-no}
12109
12110 if test "$ac_cv_header_kstat_h" = "yes"
12111 then
12112     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
12113 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
12114 if ${ac_cv_lib_kstat_kstat_open+:} false; then :
12115   $as_echo_n "(cached) " >&6
12116 else
12117   ac_check_lib_save_LIBS=$LIBS
12118 LIBS="-lkstat  $LIBS"
12119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12120 /* end confdefs.h.  */
12121
12122 /* Override any GCC internal prototype to avoid an error.
12123    Use char because int might match the return type of a GCC
12124    builtin and then its argument prototype would still apply.  */
12125 #ifdef __cplusplus
12126 extern "C"
12127 #endif
12128 char kstat_open ();
12129 int
12130 main ()
12131 {
12132 return kstat_open ();
12133   ;
12134   return 0;
12135 }
12136 _ACEOF
12137 if ac_fn_c_try_link "$LINENO"; then :
12138   ac_cv_lib_kstat_kstat_open=yes
12139 else
12140   ac_cv_lib_kstat_kstat_open=no
12141 fi
12142 rm -f core conftest.err conftest.$ac_objext \
12143     conftest$ac_exeext conftest.$ac_ext
12144 LIBS=$ac_check_lib_save_LIBS
12145 fi
12146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
12147 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
12148 if test "x$ac_cv_lib_kstat_kstat_open" = xyes; then :
12149
12150 $as_echo "#define HAVE_LIBKSTAT 1" >>confdefs.h
12151
12152                   LIBKSTAT="-lkstat"
12153
12154 fi
12155
12156 fi
12157
12158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lodbc" >&5
12159 $as_echo_n "checking for -lodbc... " >&6; }
12160 if ${ac_cv_lib_soname_odbc+:} false; then :
12161   $as_echo_n "(cached) " >&6
12162 else
12163   ac_check_soname_save_LIBS=$LIBS
12164 LIBS="-lodbc  $LIBS"
12165   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12166 /* end confdefs.h.  */
12167
12168 /* Override any GCC internal prototype to avoid an error.
12169    Use char because int might match the return type of a GCC
12170    builtin and then its argument prototype would still apply.  */
12171 #ifdef __cplusplus
12172 extern "C"
12173 #endif
12174 char SQLConnect ();
12175 int
12176 main ()
12177 {
12178 return SQLConnect ();
12179   ;
12180   return 0;
12181 }
12182 _ACEOF
12183 if ac_fn_c_try_link "$LINENO"; then :
12184   case "$LIBEXT" in
12185     dll) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest.exe | grep "odbc" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12186     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'` ;;
12187     *) ac_cv_lib_soname_odbc=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libodbc\\.$LIBEXT" | sed -e "s/^.*\\[\\(libodbc\\.$LIBEXT[^         ]*\\)\\].*$/\1/"';2,$d'`
12188        if test "x$ac_cv_lib_soname_odbc" = x; then :
12189   ac_cv_lib_soname_odbc=`$LDD conftest$ac_exeext | grep "libodbc\\.$LIBEXT" | sed -e "s/^.*\(libodbc\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'`
12190 fi ;;
12191   esac
12192 fi
12193 rm -f core conftest.err conftest.$ac_objext \
12194     conftest$ac_exeext conftest.$ac_ext
12195   LIBS=$ac_check_soname_save_LIBS
12196 fi
12197 if test "x$ac_cv_lib_soname_odbc" = "x"; then :
12198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12199 $as_echo "not found" >&6; }
12200        cat >>confdefs.h <<_ACEOF
12201 #define SONAME_LIBODBC "libodbc.$LIBEXT"
12202 _ACEOF
12203
12204 else
12205   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_odbc" >&5
12206 $as_echo "$ac_cv_lib_soname_odbc" >&6; }
12207
12208 cat >>confdefs.h <<_ACEOF
12209 #define SONAME_LIBODBC "$ac_cv_lib_soname_odbc"
12210 _ACEOF
12211
12212
12213 fi
12214
12215 test -n "$ALSALIBS" || enable_winealsa_drv=${enable_winealsa_drv:-no}
12216 test -n "$COREAUDIO" || enable_winecoreaudio_drv=${enable_winecoreaudio_drv:-no}
12217 test "x$ac_cv_member_oss_sysinfo_numaudioengines" = xyes || enable_wineoss_drv=${enable_wineoss_drv:-no}
12218 test "$ac_cv_header_linux_joystick_h" = "yes" || enable_winejoystick_drv=${enable_winejoystick_drv:-no}
12219
12220 if test "x$ALSALIBS$COREAUDIO" = "x" -a \
12221         "x$ac_cv_member_oss_sysinfo_numaudioengines" != xyes -a \
12222         "x$with_alsa$with_coreaudio$with_oss" != xnonono
12223 then
12224     as_fn_append wine_warnings "|No sound system was found. Windows applications will be silent."
12225 fi
12226
12227
12228 EXTRACFLAGS=""
12229
12230 if test "x${GCC}" = "xyes"
12231 then
12232   EXTRACFLAGS="-Wall -pipe"
12233
12234     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc strength-reduce bug" >&5
12235 $as_echo_n "checking for gcc strength-reduce bug... " >&6; }
12236 if ${ac_cv_c_gcc_strength_bug+:} false; then :
12237   $as_echo_n "(cached) " >&6
12238 else
12239   if test "$cross_compiling" = yes; then :
12240   ac_cv_c_gcc_strength_bug="yes"
12241 else
12242   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12243 /* end confdefs.h.  */
12244 int L[4] = {0,1,2,3};
12245 int
12246 main ()
12247 {
12248 static int Array[3];
12249   unsigned int B = 3;
12250   int i;
12251   for(i=0; i<B; i++) Array[i] = i - 3;
12252   for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
12253   L[i] = 4;
12254   return (Array[1] != -2 || L[2] != 3)
12255   ;
12256   return 0;
12257 }
12258 _ACEOF
12259 if ac_fn_c_try_run "$LINENO"; then :
12260   ac_cv_c_gcc_strength_bug="no"
12261 else
12262   ac_cv_c_gcc_strength_bug="yes"
12263 fi
12264 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12265   conftest.$ac_objext conftest.beam conftest.$ac_ext
12266 fi
12267
12268 fi
12269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gcc_strength_bug" >&5
12270 $as_echo "$ac_cv_c_gcc_strength_bug" >&6; }
12271   if test "$ac_cv_c_gcc_strength_bug" = "yes"
12272   then
12273     EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
12274   fi
12275
12276     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-builtin" >&5
12277 $as_echo_n "checking whether the compiler supports -fno-builtin... " >&6; }
12278 if ${ac_cv_cflags__fno_builtin+:} false; then :
12279   $as_echo_n "(cached) " >&6
12280 else
12281   ac_wine_try_cflags_saved=$CFLAGS
12282 CFLAGS="$CFLAGS -fno-builtin"
12283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12284 /* end confdefs.h.  */
12285 int main(int argc, char **argv) { return 0; }
12286 _ACEOF
12287 if ac_fn_c_try_link "$LINENO"; then :
12288   ac_cv_cflags__fno_builtin=yes
12289 else
12290   ac_cv_cflags__fno_builtin=no
12291 fi
12292 rm -f core conftest.err conftest.$ac_objext \
12293     conftest$ac_exeext conftest.$ac_ext
12294 CFLAGS=$ac_wine_try_cflags_saved
12295 fi
12296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_builtin" >&5
12297 $as_echo "$ac_cv_cflags__fno_builtin" >&6; }
12298 if test $ac_cv_cflags__fno_builtin = yes; then :
12299   BUILTINFLAG="-fno-builtin"
12300
12301 fi
12302   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-strict-aliasing" >&5
12303 $as_echo_n "checking whether the compiler supports -fno-strict-aliasing... " >&6; }
12304 if ${ac_cv_cflags__fno_strict_aliasing+:} false; then :
12305   $as_echo_n "(cached) " >&6
12306 else
12307   ac_wine_try_cflags_saved=$CFLAGS
12308 CFLAGS="$CFLAGS -fno-strict-aliasing"
12309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12310 /* end confdefs.h.  */
12311 int main(int argc, char **argv) { return 0; }
12312 _ACEOF
12313 if ac_fn_c_try_link "$LINENO"; then :
12314   ac_cv_cflags__fno_strict_aliasing=yes
12315 else
12316   ac_cv_cflags__fno_strict_aliasing=no
12317 fi
12318 rm -f core conftest.err conftest.$ac_objext \
12319     conftest$ac_exeext conftest.$ac_ext
12320 CFLAGS=$ac_wine_try_cflags_saved
12321 fi
12322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_strict_aliasing" >&5
12323 $as_echo "$ac_cv_cflags__fno_strict_aliasing" >&6; }
12324 if test $ac_cv_cflags__fno_strict_aliasing = yes; then :
12325   EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
12326 fi
12327   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wdeclaration-after-statement" >&5
12328 $as_echo_n "checking whether the compiler supports -Wdeclaration-after-statement... " >&6; }
12329 if ${ac_cv_cflags__Wdeclaration_after_statement+:} false; then :
12330   $as_echo_n "(cached) " >&6
12331 else
12332   ac_wine_try_cflags_saved=$CFLAGS
12333 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
12334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12335 /* end confdefs.h.  */
12336 int main(int argc, char **argv) { return 0; }
12337 _ACEOF
12338 if ac_fn_c_try_link "$LINENO"; then :
12339   ac_cv_cflags__Wdeclaration_after_statement=yes
12340 else
12341   ac_cv_cflags__Wdeclaration_after_statement=no
12342 fi
12343 rm -f core conftest.err conftest.$ac_objext \
12344     conftest$ac_exeext conftest.$ac_ext
12345 CFLAGS=$ac_wine_try_cflags_saved
12346 fi
12347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wdeclaration_after_statement" >&5
12348 $as_echo "$ac_cv_cflags__Wdeclaration_after_statement" >&6; }
12349 if test $ac_cv_cflags__Wdeclaration_after_statement = yes; then :
12350   EXTRACFLAGS="$EXTRACFLAGS -Wdeclaration-after-statement"
12351 fi
12352   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wempty-body" >&5
12353 $as_echo_n "checking whether the compiler supports -Wempty-body... " >&6; }
12354 if ${ac_cv_cflags__Wempty_body+:} false; then :
12355   $as_echo_n "(cached) " >&6
12356 else
12357   ac_wine_try_cflags_saved=$CFLAGS
12358 CFLAGS="$CFLAGS -Wempty-body"
12359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12360 /* end confdefs.h.  */
12361 int main(int argc, char **argv) { return 0; }
12362 _ACEOF
12363 if ac_fn_c_try_link "$LINENO"; then :
12364   ac_cv_cflags__Wempty_body=yes
12365 else
12366   ac_cv_cflags__Wempty_body=no
12367 fi
12368 rm -f core conftest.err conftest.$ac_objext \
12369     conftest$ac_exeext conftest.$ac_ext
12370 CFLAGS=$ac_wine_try_cflags_saved
12371 fi
12372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wempty_body" >&5
12373 $as_echo "$ac_cv_cflags__Wempty_body" >&6; }
12374 if test $ac_cv_cflags__Wempty_body = yes; then :
12375   EXTRACFLAGS="$EXTRACFLAGS -Wempty-body"
12376 fi
12377   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wignored-qualifiers" >&5
12378 $as_echo_n "checking whether the compiler supports -Wignored-qualifiers... " >&6; }
12379 if ${ac_cv_cflags__Wignored_qualifiers+:} false; then :
12380   $as_echo_n "(cached) " >&6
12381 else
12382   ac_wine_try_cflags_saved=$CFLAGS
12383 CFLAGS="$CFLAGS -Wignored-qualifiers"
12384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12385 /* end confdefs.h.  */
12386 int main(int argc, char **argv) { return 0; }
12387 _ACEOF
12388 if ac_fn_c_try_link "$LINENO"; then :
12389   ac_cv_cflags__Wignored_qualifiers=yes
12390 else
12391   ac_cv_cflags__Wignored_qualifiers=no
12392 fi
12393 rm -f core conftest.err conftest.$ac_objext \
12394     conftest$ac_exeext conftest.$ac_ext
12395 CFLAGS=$ac_wine_try_cflags_saved
12396 fi
12397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wignored_qualifiers" >&5
12398 $as_echo "$ac_cv_cflags__Wignored_qualifiers" >&6; }
12399 if test $ac_cv_cflags__Wignored_qualifiers = yes; then :
12400   EXTRACFLAGS="$EXTRACFLAGS -Wignored-qualifiers"
12401 fi
12402   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wstrict-prototypes" >&5
12403 $as_echo_n "checking whether the compiler supports -Wstrict-prototypes... " >&6; }
12404 if ${ac_cv_cflags__Wstrict_prototypes+:} false; then :
12405   $as_echo_n "(cached) " >&6
12406 else
12407   ac_wine_try_cflags_saved=$CFLAGS
12408 CFLAGS="$CFLAGS -Wstrict-prototypes"
12409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12410 /* end confdefs.h.  */
12411 int main(int argc, char **argv) { return 0; }
12412 _ACEOF
12413 if ac_fn_c_try_link "$LINENO"; then :
12414   ac_cv_cflags__Wstrict_prototypes=yes
12415 else
12416   ac_cv_cflags__Wstrict_prototypes=no
12417 fi
12418 rm -f core conftest.err conftest.$ac_objext \
12419     conftest$ac_exeext conftest.$ac_ext
12420 CFLAGS=$ac_wine_try_cflags_saved
12421 fi
12422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wstrict_prototypes" >&5
12423 $as_echo "$ac_cv_cflags__Wstrict_prototypes" >&6; }
12424 if test $ac_cv_cflags__Wstrict_prototypes = yes; then :
12425   EXTRACFLAGS="$EXTRACFLAGS -Wstrict-prototypes"
12426 fi
12427   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wtype-limits" >&5
12428 $as_echo_n "checking whether the compiler supports -Wtype-limits... " >&6; }
12429 if ${ac_cv_cflags__Wtype_limits+:} false; then :
12430   $as_echo_n "(cached) " >&6
12431 else
12432   ac_wine_try_cflags_saved=$CFLAGS
12433 CFLAGS="$CFLAGS -Wtype-limits"
12434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12435 /* end confdefs.h.  */
12436 int main(int argc, char **argv) { return 0; }
12437 _ACEOF
12438 if ac_fn_c_try_link "$LINENO"; then :
12439   ac_cv_cflags__Wtype_limits=yes
12440 else
12441   ac_cv_cflags__Wtype_limits=no
12442 fi
12443 rm -f core conftest.err conftest.$ac_objext \
12444     conftest$ac_exeext conftest.$ac_ext
12445 CFLAGS=$ac_wine_try_cflags_saved
12446 fi
12447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wtype_limits" >&5
12448 $as_echo "$ac_cv_cflags__Wtype_limits" >&6; }
12449 if test $ac_cv_cflags__Wtype_limits = yes; then :
12450   EXTRACFLAGS="$EXTRACFLAGS -Wtype-limits"
12451 fi
12452   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wunused-but-set-parameter" >&5
12453 $as_echo_n "checking whether the compiler supports -Wunused-but-set-parameter... " >&6; }
12454 if ${ac_cv_cflags__Wunused_but_set_parameter+:} false; then :
12455   $as_echo_n "(cached) " >&6
12456 else
12457   ac_wine_try_cflags_saved=$CFLAGS
12458 CFLAGS="$CFLAGS -Wunused-but-set-parameter"
12459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12460 /* end confdefs.h.  */
12461 int main(int argc, char **argv) { return 0; }
12462 _ACEOF
12463 if ac_fn_c_try_link "$LINENO"; then :
12464   ac_cv_cflags__Wunused_but_set_parameter=yes
12465 else
12466   ac_cv_cflags__Wunused_but_set_parameter=no
12467 fi
12468 rm -f core conftest.err conftest.$ac_objext \
12469     conftest$ac_exeext conftest.$ac_ext
12470 CFLAGS=$ac_wine_try_cflags_saved
12471 fi
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wunused_but_set_parameter" >&5
12473 $as_echo "$ac_cv_cflags__Wunused_but_set_parameter" >&6; }
12474 if test $ac_cv_cflags__Wunused_but_set_parameter = yes; then :
12475   EXTRACFLAGS="$EXTRACFLAGS -Wunused-but-set-parameter"
12476 fi
12477   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wwrite-strings" >&5
12478 $as_echo_n "checking whether the compiler supports -Wwrite-strings... " >&6; }
12479 if ${ac_cv_cflags__Wwrite_strings+:} false; then :
12480   $as_echo_n "(cached) " >&6
12481 else
12482   ac_wine_try_cflags_saved=$CFLAGS
12483 CFLAGS="$CFLAGS -Wwrite-strings"
12484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12485 /* end confdefs.h.  */
12486 int main(int argc, char **argv) { return 0; }
12487 _ACEOF
12488 if ac_fn_c_try_link "$LINENO"; then :
12489   ac_cv_cflags__Wwrite_strings=yes
12490 else
12491   ac_cv_cflags__Wwrite_strings=no
12492 fi
12493 rm -f core conftest.err conftest.$ac_objext \
12494     conftest$ac_exeext conftest.$ac_ext
12495 CFLAGS=$ac_wine_try_cflags_saved
12496 fi
12497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wwrite_strings" >&5
12498 $as_echo "$ac_cv_cflags__Wwrite_strings" >&6; }
12499 if test $ac_cv_cflags__Wwrite_strings = yes; then :
12500   EXTRACFLAGS="$EXTRACFLAGS -Wwrite-strings"
12501 fi
12502
12503     for ac_flag in $CFLAGS; do
12504     case $ac_flag in
12505       -g) case $host_os in
12506             darwin*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -gstabs+" >&5
12507 $as_echo_n "checking whether the compiler supports -gstabs+... " >&6; }
12508 if ${ac_cv_cflags__gstabsp+:} false; then :
12509   $as_echo_n "(cached) " >&6
12510 else
12511   ac_wine_try_cflags_saved=$CFLAGS
12512 CFLAGS="$CFLAGS -gstabs+"
12513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12514 /* end confdefs.h.  */
12515 int main(int argc, char **argv) { return 0; }
12516 _ACEOF
12517 if ac_fn_c_try_link "$LINENO"; then :
12518   ac_cv_cflags__gstabsp=yes
12519 else
12520   ac_cv_cflags__gstabsp=no
12521 fi
12522 rm -f core conftest.err conftest.$ac_objext \
12523     conftest$ac_exeext conftest.$ac_ext
12524 CFLAGS=$ac_wine_try_cflags_saved
12525 fi
12526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__gstabsp" >&5
12527 $as_echo "$ac_cv_cflags__gstabsp" >&6; }
12528 if test $ac_cv_cflags__gstabsp = yes; then :
12529   EXTRACFLAGS="$EXTRACFLAGS -gstabs+"
12530 fi ;;
12531             *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -gdwarf-2" >&5
12532 $as_echo_n "checking whether the compiler supports -gdwarf-2... " >&6; }
12533 if ${ac_cv_cflags__gdwarf_2+:} false; then :
12534   $as_echo_n "(cached) " >&6
12535 else
12536   ac_wine_try_cflags_saved=$CFLAGS
12537 CFLAGS="$CFLAGS -gdwarf-2"
12538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12539 /* end confdefs.h.  */
12540 int main(int argc, char **argv) { return 0; }
12541 _ACEOF
12542 if ac_fn_c_try_link "$LINENO"; then :
12543   ac_cv_cflags__gdwarf_2=yes
12544 else
12545   ac_cv_cflags__gdwarf_2=no
12546 fi
12547 rm -f core conftest.err conftest.$ac_objext \
12548     conftest$ac_exeext conftest.$ac_ext
12549 CFLAGS=$ac_wine_try_cflags_saved
12550 fi
12551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__gdwarf_2" >&5
12552 $as_echo "$ac_cv_cflags__gdwarf_2" >&6; }
12553 if test $ac_cv_cflags__gdwarf_2 = yes; then :
12554   EXTRACFLAGS="$EXTRACFLAGS -gdwarf-2"
12555 fi
12556                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -gstrict-dwarf" >&5
12557 $as_echo_n "checking whether the compiler supports -gstrict-dwarf... " >&6; }
12558 if ${ac_cv_cflags__gstrict_dwarf+:} false; then :
12559   $as_echo_n "(cached) " >&6
12560 else
12561   ac_wine_try_cflags_saved=$CFLAGS
12562 CFLAGS="$CFLAGS -gstrict-dwarf"
12563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12564 /* end confdefs.h.  */
12565 int main(int argc, char **argv) { return 0; }
12566 _ACEOF
12567 if ac_fn_c_try_link "$LINENO"; then :
12568   ac_cv_cflags__gstrict_dwarf=yes
12569 else
12570   ac_cv_cflags__gstrict_dwarf=no
12571 fi
12572 rm -f core conftest.err conftest.$ac_objext \
12573     conftest$ac_exeext conftest.$ac_ext
12574 CFLAGS=$ac_wine_try_cflags_saved
12575 fi
12576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__gstrict_dwarf" >&5
12577 $as_echo "$ac_cv_cflags__gstrict_dwarf" >&6; }
12578 if test $ac_cv_cflags__gstrict_dwarf = yes; then :
12579   EXTRACFLAGS="$EXTRACFLAGS -gstrict-dwarf"
12580 fi ;;
12581           esac ;;
12582     esac
12583   done
12584
12585     case $host_cpu in
12586     *i[3456789]86*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-omit-frame-pointer" >&5
12587 $as_echo_n "checking whether the compiler supports -fno-omit-frame-pointer... " >&6; }
12588 if ${ac_cv_cflags__fno_omit_frame_pointer+:} false; then :
12589   $as_echo_n "(cached) " >&6
12590 else
12591   ac_wine_try_cflags_saved=$CFLAGS
12592 CFLAGS="$CFLAGS -fno-omit-frame-pointer"
12593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12594 /* end confdefs.h.  */
12595 int main(int argc, char **argv) { return 0; }
12596 _ACEOF
12597 if ac_fn_c_try_link "$LINENO"; then :
12598   ac_cv_cflags__fno_omit_frame_pointer=yes
12599 else
12600   ac_cv_cflags__fno_omit_frame_pointer=no
12601 fi
12602 rm -f core conftest.err conftest.$ac_objext \
12603     conftest$ac_exeext conftest.$ac_ext
12604 CFLAGS=$ac_wine_try_cflags_saved
12605 fi
12606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_omit_frame_pointer" >&5
12607 $as_echo "$ac_cv_cflags__fno_omit_frame_pointer" >&6; }
12608 if test $ac_cv_cflags__fno_omit_frame_pointer = yes; then :
12609   EXTRACFLAGS="$EXTRACFLAGS -fno-omit-frame-pointer"
12610 fi ;;
12611   esac
12612
12613     case $host in
12614     x86_64-*mingw32*|x86_64-*cygwin*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wno-format" >&5
12615 $as_echo_n "checking whether the compiler supports -Wno-format... " >&6; }
12616 if ${ac_cv_cflags__Wno_format+:} false; then :
12617   $as_echo_n "(cached) " >&6
12618 else
12619   ac_wine_try_cflags_saved=$CFLAGS
12620 CFLAGS="$CFLAGS -Wno-format"
12621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12622 /* end confdefs.h.  */
12623 int main(int argc, char **argv) { return 0; }
12624 _ACEOF
12625 if ac_fn_c_try_link "$LINENO"; then :
12626   ac_cv_cflags__Wno_format=yes
12627 else
12628   ac_cv_cflags__Wno_format=no
12629 fi
12630 rm -f core conftest.err conftest.$ac_objext \
12631     conftest$ac_exeext conftest.$ac_ext
12632 CFLAGS=$ac_wine_try_cflags_saved
12633 fi
12634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wno_format" >&5
12635 $as_echo "$ac_cv_cflags__Wno_format" >&6; }
12636 if test $ac_cv_cflags__Wno_format = yes; then :
12637   EXTRACFLAGS="$EXTRACFLAGS -Wno-format"
12638 fi ;;
12639   esac
12640
12641     saved_CFLAGS="$CFLAGS"
12642   CFLAGS="$CFLAGS -Wpointer-arith -Werror"
12643   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wpointer-arith" >&5
12644 $as_echo_n "checking for broken string.h that generates warnings with -Wpointer-arith... " >&6; }
12645 if ${ac_cv_c_string_h_warnings+:} false; then :
12646   $as_echo_n "(cached) " >&6
12647 else
12648   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12649 /* end confdefs.h.  */
12650 #include <string.h>
12651 int
12652 main ()
12653 {
12654
12655   ;
12656   return 0;
12657 }
12658 _ACEOF
12659 if ac_fn_c_try_compile "$LINENO"; then :
12660   ac_cv_c_string_h_warnings=no
12661 else
12662   ac_cv_c_string_h_warnings=yes
12663 fi
12664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12665 fi
12666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_string_h_warnings" >&5
12667 $as_echo "$ac_cv_c_string_h_warnings" >&6; }
12668   CFLAGS="$saved_CFLAGS"
12669   if test "$ac_cv_c_string_h_warnings" = "no"
12670   then
12671     EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
12672   fi
12673
12674     saved_CFLAGS="$CFLAGS"
12675   CFLAGS="$CFLAGS -Wlogical-op -Werror"
12676   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wlogical-op" >&5
12677 $as_echo_n "checking for broken string.h that generates warnings with -Wlogical-op... " >&6; }
12678 if ${ac_cv_c_logicalop_noisy+:} false; then :
12679   $as_echo_n "(cached) " >&6
12680 else
12681   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12682 /* end confdefs.h.  */
12683 #include <string.h>
12684 int
12685 main ()
12686 {
12687 char*f(const char *h,char n) {return strchr(h,n);}
12688   ;
12689   return 0;
12690 }
12691 _ACEOF
12692 if ac_fn_c_try_compile "$LINENO"; then :
12693   ac_cv_c_logicalop_noisy=no
12694 else
12695   ac_cv_c_logicalop_noisy=yes
12696 fi
12697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12698 fi
12699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_logicalop_noisy" >&5
12700 $as_echo "$ac_cv_c_logicalop_noisy" >&6; }
12701   CFLAGS="$saved_CFLAGS"
12702   if test "$ac_cv_c_logicalop_noisy" = "no"
12703   then
12704     EXTRACFLAGS="$EXTRACFLAGS -Wlogical-op"
12705   fi
12706
12707     if test "x$enable_maintainer_mode" = "xyes"
12708   then
12709       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Werror" >&5
12710 $as_echo_n "checking whether the compiler supports -Werror... " >&6; }
12711 if ${ac_cv_cflags__Werror+:} false; then :
12712   $as_echo_n "(cached) " >&6
12713 else
12714   ac_wine_try_cflags_saved=$CFLAGS
12715 CFLAGS="$CFLAGS -Werror"
12716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12717 /* end confdefs.h.  */
12718 int main(int argc, char **argv) { return 0; }
12719 _ACEOF
12720 if ac_fn_c_try_link "$LINENO"; then :
12721   ac_cv_cflags__Werror=yes
12722 else
12723   ac_cv_cflags__Werror=no
12724 fi
12725 rm -f core conftest.err conftest.$ac_objext \
12726     conftest$ac_exeext conftest.$ac_ext
12727 CFLAGS=$ac_wine_try_cflags_saved
12728 fi
12729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Werror" >&5
12730 $as_echo "$ac_cv_cflags__Werror" >&6; }
12731 if test $ac_cv_cflags__Werror = yes; then :
12732   EXTRACFLAGS="$EXTRACFLAGS -Werror"
12733 fi
12734   fi
12735
12736     saved_CFLAGS="$CFLAGS"
12737   CFLAGS="$CFLAGS -Werror"
12738   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ms_hook_prologue attribute" >&5
12739 $as_echo_n "checking for ms_hook_prologue attribute... " >&6; }
12740 if ${ac_cv_have_ms_hook_prologue+:} false; then :
12741   $as_echo_n "(cached) " >&6
12742 else
12743   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12744 /* end confdefs.h.  */
12745 int __attribute__((__ms_hook_prologue__)) test(void) { return 0; }
12746 int
12747 main ()
12748 {
12749
12750   ;
12751   return 0;
12752 }
12753 _ACEOF
12754 if ac_fn_c_try_compile "$LINENO"; then :
12755   ac_cv_have_ms_hook_prologue="yes"
12756 else
12757   ac_cv_have_ms_hook_prologue="no"
12758 fi
12759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12760 fi
12761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ms_hook_prologue" >&5
12762 $as_echo "$ac_cv_have_ms_hook_prologue" >&6; }
12763   CFLAGS="$saved_CFLAGS"
12764   if test "$ac_cv_have_ms_hook_prologue" = "yes"
12765   then
12766
12767 $as_echo "#define DECLSPEC_HOTPATCH __attribute__((__ms_hook_prologue__))" >>confdefs.h
12768
12769   else
12770       $as_echo "#define DECLSPEC_HOTPATCH /* */" >>confdefs.h
12771
12772   fi
12773 fi
12774
12775
12776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the need to disable Fortify" >&5
12777 $as_echo_n "checking for the need to disable Fortify... " >&6; }
12778 if ${ac_cv_c_fortify_enabled+:} false; then :
12779   $as_echo_n "(cached) " >&6
12780 else
12781   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12782 /* end confdefs.h.  */
12783 #include <string.h>
12784 int
12785 main ()
12786 {
12787 #if defined(__USE_FORTIFY_LEVEL) && __USE_FORTIFY_LEVEL > 0
12788 #error Fortify enabled
12789 #endif
12790   ;
12791   return 0;
12792 }
12793 _ACEOF
12794 if ac_fn_c_try_compile "$LINENO"; then :
12795   ac_cv_c_fortify_enabled=no
12796 else
12797   ac_cv_c_fortify_enabled=yes
12798 fi
12799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12800 fi
12801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_fortify_enabled" >&5
12802 $as_echo "$ac_cv_c_fortify_enabled" >&6; }
12803 if test "$ac_cv_c_fortify_enabled" = yes
12804 then
12805     CFLAGS="$CFLAGS -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0"
12806 fi
12807
12808
12809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need an underscore prefix" >&5
12810 $as_echo_n "checking whether external symbols need an underscore prefix... " >&6; }
12811 if ${ac_cv_c_extern_prefix+:} false; then :
12812   $as_echo_n "(cached) " >&6
12813 else
12814   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12815 /* end confdefs.h.  */
12816 extern int ac_test;
12817 int
12818 main ()
12819 {
12820 asm(".globl _ac_test\n_ac_test:\t.long 0"); if (ac_test) return 1
12821   ;
12822   return 0;
12823 }
12824 _ACEOF
12825 if ac_fn_c_try_link "$LINENO"; then :
12826   ac_cv_c_extern_prefix="yes"
12827 else
12828   ac_cv_c_extern_prefix="no"
12829 fi
12830 rm -f core conftest.err conftest.$ac_objext \
12831     conftest$ac_exeext conftest.$ac_ext
12832 fi
12833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_extern_prefix" >&5
12834 $as_echo "$ac_cv_c_extern_prefix" >&6; }
12835
12836 case $host_cpu in
12837   *i[3456789]86*)
12838     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need stdcall decoration" >&5
12839 $as_echo_n "checking whether external symbols need stdcall decoration... " >&6; }
12840 if ${ac_cv_c_stdcall_suffix+:} false; then :
12841   $as_echo_n "(cached) " >&6
12842 else
12843   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12844 /* end confdefs.h.  */
12845 #ifndef _MSC_VER
12846 #define __stdcall __attribute__((__stdcall__))
12847 #endif
12848 int __stdcall ac_test(int i) { return i; }
12849 int
12850 main ()
12851 {
12852 asm("jmp _ac_test@4"); if (ac_test(1)) return 1
12853   ;
12854   return 0;
12855 }
12856 _ACEOF
12857 if ac_fn_c_try_link "$LINENO"; then :
12858   ac_cv_c_stdcall_suffix="yes"
12859 else
12860   ac_cv_c_stdcall_suffix="no"
12861 fi
12862 rm -f core conftest.err conftest.$ac_objext \
12863     conftest$ac_exeext conftest.$ac_ext
12864 fi
12865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stdcall_suffix" >&5
12866 $as_echo "$ac_cv_c_stdcall_suffix" >&6; } ;;
12867   *) ac_cv_c_stdcall_suffix="no" ;;
12868 esac
12869
12870
12871 if test "$ac_cv_c_extern_prefix" = "yes"
12872 then
12873     $as_echo "#define __ASM_NAME(name) \"_\" name" >>confdefs.h
12874
12875     asm_name_prefix="_"
12876 else
12877     $as_echo "#define __ASM_NAME(name) name" >>confdefs.h
12878
12879     asm_name_prefix=""
12880 fi
12881
12882
12883 if test "$ac_cv_c_stdcall_suffix" = "yes"
12884 then
12885     $as_echo "#define __ASM_STDCALL(args) \"@\" #args" >>confdefs.h
12886
12887 else
12888     $as_echo "#define __ASM_STDCALL(args) \"\"" >>confdefs.h
12889
12890 fi
12891
12892
12893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to define a function in assembly code" >&5
12894 $as_echo_n "checking how to define a function in assembly code... " >&6; }
12895 if ${ac_cv_asm_func_def+:} false; then :
12896   $as_echo_n "(cached) " >&6
12897 else
12898   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12899 /* end confdefs.h.  */
12900
12901 int
12902 main ()
12903 {
12904 asm("\t.globl _ac_test\n\t.def _ac_test; .scl 2; .type 32; .endef\n_ac_test:\t.long 0");
12905   ;
12906   return 0;
12907 }
12908 _ACEOF
12909 if ac_fn_c_try_link "$LINENO"; then :
12910   ac_cv_asm_func_def=".def"
12911 else
12912   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12913 /* end confdefs.h.  */
12914
12915 int
12916 main ()
12917 {
12918 asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0");
12919   ;
12920   return 0;
12921 }
12922 _ACEOF
12923 if ac_fn_c_try_link "$LINENO"; then :
12924   ac_cv_asm_func_def=".type @function"
12925 else
12926   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12927 /* end confdefs.h.  */
12928
12929 int
12930 main ()
12931 {
12932 asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0");
12933   ;
12934   return 0;
12935 }
12936 _ACEOF
12937 if ac_fn_c_try_link "$LINENO"; then :
12938   ac_cv_asm_func_def=".type 2"
12939 else
12940   ac_cv_asm_func_def="unknown"
12941 fi
12942 rm -f core conftest.err conftest.$ac_objext \
12943     conftest$ac_exeext conftest.$ac_ext
12944 fi
12945 rm -f core conftest.err conftest.$ac_objext \
12946     conftest$ac_exeext conftest.$ac_ext
12947 fi
12948 rm -f core conftest.err conftest.$ac_objext \
12949     conftest$ac_exeext conftest.$ac_ext
12950 fi
12951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_asm_func_def" >&5
12952 $as_echo "$ac_cv_asm_func_def" >&6; }
12953
12954
12955 case "$ac_cv_asm_func_def" in
12956   ".def")
12957      $as_echo "#define __ASM_FUNC(name) \".def \" __ASM_NAME(name) \"; .scl 2; .type 32; .endef\"" >>confdefs.h
12958
12959      asm_func_header=".def $asm_name_prefix\" #name suffix \"; .scl 2; .type 32; .endef" ;;
12960   ".type @function")
12961      $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",@function\"" >>confdefs.h
12962
12963      asm_func_header=".type $asm_name_prefix\" #name suffix \",@function" ;;
12964   ".type 2")
12965      $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",2\"" >>confdefs.h
12966
12967      asm_func_header=".type $asm_name_prefix\" #name suffix \",2" ;;
12968   *)
12969      $as_echo "#define __ASM_FUNC(name) \"\"" >>confdefs.h
12970
12971      asm_func_header="" ;;
12972 esac
12973
12974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether asm() works outside of functions" >&5
12975 $as_echo_n "checking whether asm() works outside of functions... " >&6; }
12976 if ${ac_cv_c_asm_outside_funcs+:} false; then :
12977   $as_echo_n "(cached) " >&6
12978 else
12979   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12980 /* end confdefs.h.  */
12981 asm(".text\n\t.long 0");
12982 int
12983 main ()
12984 {
12985
12986   ;
12987   return 0;
12988 }
12989 _ACEOF
12990 if ac_fn_c_try_compile "$LINENO"; then :
12991   ac_cv_c_asm_outside_funcs="yes"
12992 else
12993   ac_cv_c_asm_outside_funcs="no"
12994 fi
12995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12996 fi
12997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_asm_outside_funcs" >&5
12998 $as_echo "$ac_cv_c_asm_outside_funcs" >&6; }
12999
13000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .previous is supported in assembly code" >&5
13001 $as_echo_n "checking whether .previous is supported in assembly code... " >&6; }
13002 if ${ac_cv_c_dot_previous+:} false; then :
13003   $as_echo_n "(cached) " >&6
13004 else
13005   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13006 /* end confdefs.h.  */
13007
13008 int
13009 main ()
13010 {
13011 asm(".text\nac_test:\t.long 0\n\t.previous");
13012   ;
13013   return 0;
13014 }
13015 _ACEOF
13016 if ac_fn_c_try_link "$LINENO"; then :
13017   ac_cv_c_dot_previous="yes"
13018 else
13019   ac_cv_c_dot_previous="no"
13020 fi
13021 rm -f core conftest.err conftest.$ac_objext \
13022     conftest$ac_exeext conftest.$ac_ext
13023 fi
13024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dot_previous" >&5
13025 $as_echo "$ac_cv_c_dot_previous" >&6; }
13026
13027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CFI directives are supported in assembly code" >&5
13028 $as_echo_n "checking whether CFI directives are supported in assembly code... " >&6; }
13029 if ${ac_cv_c_cfi_support+:} false; then :
13030   $as_echo_n "(cached) " >&6
13031 else
13032   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13033 /* end confdefs.h.  */
13034 asm(".text\nac_test:\t.cfi_startproc\n\t.long 0\n\t.cfi_endproc");
13035 int
13036 main ()
13037 {
13038
13039   ;
13040   return 0;
13041 }
13042 _ACEOF
13043 if ac_fn_c_try_compile "$LINENO"; then :
13044   ac_cv_c_cfi_support="yes"
13045 else
13046   ac_cv_c_cfi_support="no"
13047 fi
13048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13049 fi
13050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_cfi_support" >&5
13051 $as_echo "$ac_cv_c_cfi_support" >&6; }
13052
13053 asm_func_header=".globl $asm_name_prefix\" #name suffix \"\\n\\t$asm_func_header\\n$asm_name_prefix\" #name suffix \":\\n\\t"
13054 asm_func_trailer=""
13055 if test "$ac_cv_c_dot_previous" = "yes"
13056 then
13057    asm_func_trailer="\\n\\t.previous"
13058 fi
13059 if test "$ac_cv_c_cfi_support" = "yes"
13060 then
13061    asm_func_header="$asm_func_header.cfi_startproc\\n\\t"
13062    asm_func_trailer="\\n\\t.cfi_endproc$asm_func_trailer"
13063
13064 $as_echo "#define __ASM_CFI(str) str" >>confdefs.h
13065
13066    UNWINDFLAGS=-fasynchronous-unwind-tables
13067
13068 else
13069    $as_echo "#define __ASM_CFI(str) \"\"" >>confdefs.h
13070
13071 fi
13072
13073 asm_func_code="$asm_func_header\" code \"$asm_func_trailer"
13074
13075
13076 if test "$ac_cv_c_asm_outside_funcs" = "yes"
13077 then
13078     cat >>confdefs.h <<_ACEOF
13079 #define __ASM_DEFINE_FUNC(name,suffix,code) asm(".text\n\t.align 4\n\t$asm_func_code");
13080 _ACEOF
13081
13082 else
13083     cat >>confdefs.h <<_ACEOF
13084 #define __ASM_DEFINE_FUNC(name,suffix,code) void __asm_dummy_##name(void) { asm(".text\n\t.align 4\n\t$asm_func_code"); }
13085 _ACEOF
13086
13087 fi
13088
13089 $as_echo "#define __ASM_GLOBAL_FUNC(name,code) __ASM_DEFINE_FUNC(name,\"\",code)" >>confdefs.h
13090
13091
13092 $as_echo "#define __ASM_STDCALL_FUNC(name,args,code) __ASM_DEFINE_FUNC(name,__ASM_STDCALL(args),code)" >>confdefs.h
13093
13094
13095
13096 LDPATH=""
13097
13098 case $build_os in
13099   cygwin*|mingw32*)
13100     TOOLSEXT=".exe"
13101
13102     LDPATH="PATH=\"\$(TOOLSDIR)/libs/wine:\$\$PATH\""
13103     ;;
13104   darwin*|macosx*)
13105     ;;
13106   *)
13107     LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$LD_LIBRARY_PATH\""
13108     ;;
13109 esac
13110
13111 case $host_os in
13112   mingw32*)
13113     CRTLIBS="-lmsvcrt"
13114
13115     SOCKETLIBS="-L\$(top_builddir)/dlls/ws2_32 -lws2_32"
13116
13117     ;;
13118 esac
13119
13120 MAIN_BINARY="wine"
13121
13122 test "x$enable_win64" != "xyes" || MAIN_BINARY="wine64"
13123
13124 case $host_os in
13125   linux*)
13126     case $host_cpu in
13127       *i[3456789]86*) EXTRA_BINARIES="wine-preloader"
13128  ;;
13129       x86_64*) EXTRA_BINARIES="wine64-preloader"
13130  ;;
13131     esac
13132     ;;
13133 esac
13134
13135
13136 ac_save_CFLAGS="$CFLAGS"
13137 CFLAGS="$CFLAGS $BUILTINFLAG"
13138 for ac_func in \
13139         _finite \
13140         _isnan \
13141         _pclose \
13142         _popen \
13143         _snprintf \
13144         _spawnvp \
13145         _strdup \
13146         _stricmp \
13147         _strnicmp \
13148         _strtoi64 \
13149         _strtoui64 \
13150         _vsnprintf \
13151         asctime_r \
13152         chsize \
13153         dlopen \
13154         epoll_create \
13155         ffs \
13156         finite \
13157         fnmatch \
13158         fork \
13159         fpclass \
13160         fstatfs \
13161         fstatvfs \
13162         ftruncate \
13163         futimens \
13164         futimes \
13165         futimesat \
13166         getattrlist \
13167         getdirentries \
13168         getopt_long_only \
13169         getpwuid \
13170         gettimeofday \
13171         getuid \
13172         kqueue \
13173         lstat \
13174         memmove \
13175         mmap \
13176         pclose \
13177         pipe2 \
13178         poll \
13179         popen \
13180         port_create \
13181         prctl \
13182         pread \
13183         pwrite \
13184         readdir \
13185         readlink \
13186         sched_yield \
13187         select \
13188         setproctitle \
13189         setrlimit \
13190         settimeofday \
13191         sigaltstack \
13192         sigprocmask \
13193         snprintf \
13194         spawnvp \
13195         statfs \
13196         statvfs \
13197         strcasecmp \
13198         strdup \
13199         strerror \
13200         strncasecmp \
13201         strtold \
13202         strtoll \
13203         strtoull \
13204         symlink \
13205         tcgetattr \
13206         thr_kill2 \
13207         timegm \
13208         usleep \
13209         vsnprintf
13210
13211 do :
13212   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13213 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13214 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13215   cat >>confdefs.h <<_ACEOF
13216 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13217 _ACEOF
13218
13219 fi
13220 done
13221
13222 CFLAGS="$ac_save_CFLAGS"
13223
13224 if test "$ac_cv_func_dlopen" = no
13225 then
13226     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13227 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13228 if ${ac_cv_lib_dl_dlopen+:} false; then :
13229   $as_echo_n "(cached) " >&6
13230 else
13231   ac_check_lib_save_LIBS=$LIBS
13232 LIBS="-ldl  $LIBS"
13233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13234 /* end confdefs.h.  */
13235
13236 /* Override any GCC internal prototype to avoid an error.
13237    Use char because int might match the return type of a GCC
13238    builtin and then its argument prototype would still apply.  */
13239 #ifdef __cplusplus
13240 extern "C"
13241 #endif
13242 char dlopen ();
13243 int
13244 main ()
13245 {
13246 return dlopen ();
13247   ;
13248   return 0;
13249 }
13250 _ACEOF
13251 if ac_fn_c_try_link "$LINENO"; then :
13252   ac_cv_lib_dl_dlopen=yes
13253 else
13254   ac_cv_lib_dl_dlopen=no
13255 fi
13256 rm -f core conftest.err conftest.$ac_objext \
13257     conftest$ac_exeext conftest.$ac_ext
13258 LIBS=$ac_check_lib_save_LIBS
13259 fi
13260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13261 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13262 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13263   $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
13264  LIBDL="-ldl"
13265
13266 fi
13267
13268 fi
13269 ac_wine_check_funcs_save_LIBS="$LIBS"
13270 LIBS="$LIBS $LIBDL"
13271 for ac_func in dladdr
13272 do :
13273   ac_fn_c_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr"
13274 if test "x$ac_cv_func_dladdr" = xyes; then :
13275   cat >>confdefs.h <<_ACEOF
13276 #define HAVE_DLADDR 1
13277 _ACEOF
13278
13279 fi
13280 done
13281
13282 LIBS="$ac_wine_check_funcs_save_LIBS"
13283
13284 if test "$ac_cv_func_poll" = no
13285 then
13286     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for poll in -lpoll" >&5
13287 $as_echo_n "checking for poll in -lpoll... " >&6; }
13288 if ${ac_cv_lib_poll_poll+:} false; then :
13289   $as_echo_n "(cached) " >&6
13290 else
13291   ac_check_lib_save_LIBS=$LIBS
13292 LIBS="-lpoll  $LIBS"
13293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13294 /* end confdefs.h.  */
13295
13296 /* Override any GCC internal prototype to avoid an error.
13297    Use char because int might match the return type of a GCC
13298    builtin and then its argument prototype would still apply.  */
13299 #ifdef __cplusplus
13300 extern "C"
13301 #endif
13302 char poll ();
13303 int
13304 main ()
13305 {
13306 return poll ();
13307   ;
13308   return 0;
13309 }
13310 _ACEOF
13311 if ac_fn_c_try_link "$LINENO"; then :
13312   ac_cv_lib_poll_poll=yes
13313 else
13314   ac_cv_lib_poll_poll=no
13315 fi
13316 rm -f core conftest.err conftest.$ac_objext \
13317     conftest$ac_exeext conftest.$ac_ext
13318 LIBS=$ac_check_lib_save_LIBS
13319 fi
13320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_poll_poll" >&5
13321 $as_echo "$ac_cv_lib_poll_poll" >&6; }
13322 if test "x$ac_cv_lib_poll_poll" = xyes; then :
13323   $as_echo "#define HAVE_POLL 1" >>confdefs.h
13324  LIBPOLL="-lpoll"
13325
13326 fi
13327
13328 fi
13329
13330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
13331 $as_echo_n "checking for library containing gethostbyname... " >&6; }
13332 if ${ac_cv_search_gethostbyname+:} false; then :
13333   $as_echo_n "(cached) " >&6
13334 else
13335   ac_func_search_save_LIBS=$LIBS
13336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13337 /* end confdefs.h.  */
13338
13339 /* Override any GCC internal prototype to avoid an error.
13340    Use char because int might match the return type of a GCC
13341    builtin and then its argument prototype would still apply.  */
13342 #ifdef __cplusplus
13343 extern "C"
13344 #endif
13345 char gethostbyname ();
13346 int
13347 main ()
13348 {
13349 return gethostbyname ();
13350   ;
13351   return 0;
13352 }
13353 _ACEOF
13354 for ac_lib in '' nsl; do
13355   if test -z "$ac_lib"; then
13356     ac_res="none required"
13357   else
13358     ac_res=-l$ac_lib
13359     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13360   fi
13361   if ac_fn_c_try_link "$LINENO"; then :
13362   ac_cv_search_gethostbyname=$ac_res
13363 fi
13364 rm -f core conftest.err conftest.$ac_objext \
13365     conftest$ac_exeext
13366   if ${ac_cv_search_gethostbyname+:} false; then :
13367   break
13368 fi
13369 done
13370 if ${ac_cv_search_gethostbyname+:} false; then :
13371
13372 else
13373   ac_cv_search_gethostbyname=no
13374 fi
13375 rm conftest.$ac_ext
13376 LIBS=$ac_func_search_save_LIBS
13377 fi
13378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
13379 $as_echo "$ac_cv_search_gethostbyname" >&6; }
13380 ac_res=$ac_cv_search_gethostbyname
13381 if test "$ac_res" != no; then :
13382   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13383
13384 fi
13385
13386
13387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5
13388 $as_echo_n "checking for library containing connect... " >&6; }
13389 if ${ac_cv_search_connect+:} false; then :
13390   $as_echo_n "(cached) " >&6
13391 else
13392   ac_func_search_save_LIBS=$LIBS
13393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13394 /* end confdefs.h.  */
13395
13396 /* Override any GCC internal prototype to avoid an error.
13397    Use char because int might match the return type of a GCC
13398    builtin and then its argument prototype would still apply.  */
13399 #ifdef __cplusplus
13400 extern "C"
13401 #endif
13402 char connect ();
13403 int
13404 main ()
13405 {
13406 return connect ();
13407   ;
13408   return 0;
13409 }
13410 _ACEOF
13411 for ac_lib in '' socket; do
13412   if test -z "$ac_lib"; then
13413     ac_res="none required"
13414   else
13415     ac_res=-l$ac_lib
13416     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13417   fi
13418   if ac_fn_c_try_link "$LINENO"; then :
13419   ac_cv_search_connect=$ac_res
13420 fi
13421 rm -f core conftest.err conftest.$ac_objext \
13422     conftest$ac_exeext
13423   if ${ac_cv_search_connect+:} false; then :
13424   break
13425 fi
13426 done
13427 if ${ac_cv_search_connect+:} false; then :
13428
13429 else
13430   ac_cv_search_connect=no
13431 fi
13432 rm conftest.$ac_ext
13433 LIBS=$ac_func_search_save_LIBS
13434 fi
13435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5
13436 $as_echo "$ac_cv_search_connect" >&6; }
13437 ac_res=$ac_cv_search_connect
13438 if test "$ac_res" != no; then :
13439   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13440
13441 fi
13442
13443
13444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
13445 $as_echo_n "checking for library containing inet_aton... " >&6; }
13446 if ${ac_cv_search_inet_aton+:} false; then :
13447   $as_echo_n "(cached) " >&6
13448 else
13449   ac_func_search_save_LIBS=$LIBS
13450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13451 /* end confdefs.h.  */
13452
13453 /* Override any GCC internal prototype to avoid an error.
13454    Use char because int might match the return type of a GCC
13455    builtin and then its argument prototype would still apply.  */
13456 #ifdef __cplusplus
13457 extern "C"
13458 #endif
13459 char inet_aton ();
13460 int
13461 main ()
13462 {
13463 return inet_aton ();
13464   ;
13465   return 0;
13466 }
13467 _ACEOF
13468 for ac_lib in '' resolv; do
13469   if test -z "$ac_lib"; then
13470     ac_res="none required"
13471   else
13472     ac_res=-l$ac_lib
13473     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13474   fi
13475   if ac_fn_c_try_link "$LINENO"; then :
13476   ac_cv_search_inet_aton=$ac_res
13477 fi
13478 rm -f core conftest.err conftest.$ac_objext \
13479     conftest$ac_exeext
13480   if ${ac_cv_search_inet_aton+:} false; then :
13481   break
13482 fi
13483 done
13484 if ${ac_cv_search_inet_aton+:} false; then :
13485
13486 else
13487   ac_cv_search_inet_aton=no
13488 fi
13489 rm conftest.$ac_ext
13490 LIBS=$ac_func_search_save_LIBS
13491 fi
13492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
13493 $as_echo "$ac_cv_search_inet_aton" >&6; }
13494 ac_res=$ac_cv_search_inet_aton
13495 if test "$ac_res" != no; then :
13496   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13497
13498 fi
13499
13500
13501 for ac_func in \
13502         getaddrinfo \
13503         getnameinfo \
13504         getnetbyname \
13505         getprotobyname \
13506         getprotobynumber \
13507         getservbyport \
13508         inet_network \
13509         inet_ntop \
13510         inet_pton \
13511         sendmsg \
13512         socketpair \
13513
13514 do :
13515   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13516 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13517 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13518   cat >>confdefs.h <<_ACEOF
13519 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13520 _ACEOF
13521
13522 fi
13523 done
13524
13525
13526 LDAPLIBS=""
13527
13528 if test "$ac_cv_header_ldap_h" = "yes" -a "$ac_cv_header_lber_h" = "yes"
13529 then
13530     ac_fn_c_check_type "$LINENO" "LDAPSortKey" "ac_cv_type_LDAPSortKey" "#include <ldap.h>
13531 "
13532 if test "x$ac_cv_type_LDAPSortKey" = xyes; then :
13533   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap_r" >&5
13534 $as_echo_n "checking for ldap_initialize in -lldap_r... " >&6; }
13535 if ${ac_cv_lib_ldap_r_ldap_initialize+:} false; then :
13536   $as_echo_n "(cached) " >&6
13537 else
13538   ac_check_lib_save_LIBS=$LIBS
13539 LIBS="-lldap_r $LIBPTHREAD $LIBS"
13540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13541 /* end confdefs.h.  */
13542
13543 /* Override any GCC internal prototype to avoid an error.
13544    Use char because int might match the return type of a GCC
13545    builtin and then its argument prototype would still apply.  */
13546 #ifdef __cplusplus
13547 extern "C"
13548 #endif
13549 char ldap_initialize ();
13550 int
13551 main ()
13552 {
13553 return ldap_initialize ();
13554   ;
13555   return 0;
13556 }
13557 _ACEOF
13558 if ac_fn_c_try_link "$LINENO"; then :
13559   ac_cv_lib_ldap_r_ldap_initialize=yes
13560 else
13561   ac_cv_lib_ldap_r_ldap_initialize=no
13562 fi
13563 rm -f core conftest.err conftest.$ac_objext \
13564     conftest$ac_exeext conftest.$ac_ext
13565 LIBS=$ac_check_lib_save_LIBS
13566 fi
13567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_r_ldap_initialize" >&5
13568 $as_echo "$ac_cv_lib_ldap_r_ldap_initialize" >&6; }
13569 if test "x$ac_cv_lib_ldap_r_ldap_initialize" = xyes; then :
13570   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_init in -llber" >&5
13571 $as_echo_n "checking for ber_init in -llber... " >&6; }
13572 if ${ac_cv_lib_lber_ber_init+:} false; then :
13573   $as_echo_n "(cached) " >&6
13574 else
13575   ac_check_lib_save_LIBS=$LIBS
13576 LIBS="-llber $LIBPTHREAD $LIBS"
13577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13578 /* end confdefs.h.  */
13579
13580 /* Override any GCC internal prototype to avoid an error.
13581    Use char because int might match the return type of a GCC
13582    builtin and then its argument prototype would still apply.  */
13583 #ifdef __cplusplus
13584 extern "C"
13585 #endif
13586 char ber_init ();
13587 int
13588 main ()
13589 {
13590 return ber_init ();
13591   ;
13592   return 0;
13593 }
13594 _ACEOF
13595 if ac_fn_c_try_link "$LINENO"; then :
13596   ac_cv_lib_lber_ber_init=yes
13597 else
13598   ac_cv_lib_lber_ber_init=no
13599 fi
13600 rm -f core conftest.err conftest.$ac_objext \
13601     conftest$ac_exeext conftest.$ac_ext
13602 LIBS=$ac_check_lib_save_LIBS
13603 fi
13604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_init" >&5
13605 $as_echo "$ac_cv_lib_lber_ber_init" >&6; }
13606 if test "x$ac_cv_lib_lber_ber_init" = xyes; then :
13607
13608 $as_echo "#define HAVE_LDAP 1" >>confdefs.h
13609
13610                  LDAPLIBS="-lldap_r -llber"
13611 fi
13612
13613 fi
13614
13615 fi
13616
13617     ac_wine_check_funcs_save_LIBS="$LIBS"
13618 LIBS="$LIBS $LDAPLIBS $LIBPTHREAD"
13619 for ac_func in \
13620         ldap_count_references \
13621         ldap_first_reference \
13622         ldap_next_reference \
13623         ldap_parse_reference \
13624         ldap_parse_sort_control \
13625         ldap_parse_sortresponse_control \
13626         ldap_parse_vlv_control \
13627         ldap_parse_vlvresponse_control
13628 do :
13629   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13630 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13631 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13632   cat >>confdefs.h <<_ACEOF
13633 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13634 _ACEOF
13635
13636 fi
13637 done
13638
13639 LIBS="$ac_wine_check_funcs_save_LIBS"
13640 fi
13641 if test "x$LDAPLIBS" = "x"; then :
13642   case "x$with_ldap" in
13643   x)   as_fn_append wine_notices "|libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported." ;;
13644   xno) ;;
13645   *)   as_fn_error $? "libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported.
13646 This is an error since --with-ldap was requested." "$LINENO" 5 ;;
13647 esac
13648 fi
13649
13650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir takes only one argument" >&5
13651 $as_echo_n "checking whether mkdir takes only one argument... " >&6; }
13652 if ${wine_cv_one_arg_mkdir+:} false; then :
13653   $as_echo_n "(cached) " >&6
13654 else
13655   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13656 /* end confdefs.h.  */
13657 #include <sys/stat.h>
13658 int
13659 main ()
13660 {
13661 mkdir("foo");
13662   ;
13663   return 0;
13664 }
13665 _ACEOF
13666 if ac_fn_c_try_compile "$LINENO"; then :
13667   wine_cv_one_arg_mkdir=yes
13668 else
13669   wine_cv_one_arg_mkdir=no
13670 fi
13671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13672 fi
13673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_one_arg_mkdir" >&5
13674 $as_echo "$wine_cv_one_arg_mkdir" >&6; }
13675 if test "$wine_cv_one_arg_mkdir" = "yes"
13676 then
13677
13678 $as_echo "#define HAVE_ONE_ARG_MKDIR 1" >>confdefs.h
13679
13680 fi
13681
13682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_setaffinity" >&5
13683 $as_echo_n "checking for sched_setaffinity... " >&6; }
13684 if ${wine_cv_have_sched_setaffinity+:} false; then :
13685   $as_echo_n "(cached) " >&6
13686 else
13687   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13688 /* end confdefs.h.  */
13689 #define _GNU_SOURCE
13690 #include <sched.h>
13691 int
13692 main ()
13693 {
13694 sched_setaffinity(0, 0, 0);
13695   ;
13696   return 0;
13697 }
13698 _ACEOF
13699 if ac_fn_c_try_link "$LINENO"; then :
13700   wine_cv_have_sched_setaffinity=yes
13701 else
13702   wine_cv_have_sched_setaffinity=no
13703 fi
13704 rm -f core conftest.err conftest.$ac_objext \
13705     conftest$ac_exeext conftest.$ac_ext
13706 fi
13707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sched_setaffinity" >&5
13708 $as_echo "$wine_cv_have_sched_setaffinity" >&6; }
13709 if test "$wine_cv_have_sched_setaffinity" = "yes"
13710 then
13711
13712 $as_echo "#define HAVE_SCHED_SETAFFINITY 1" >>confdefs.h
13713
13714 fi
13715
13716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fallocate" >&5
13717 $as_echo_n "checking for fallocate... " >&6; }
13718 if ${wine_cv_have_fallocate+:} false; then :
13719   $as_echo_n "(cached) " >&6
13720 else
13721   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13722 /* end confdefs.h.  */
13723 #define _GNU_SOURCE
13724 #include <fcntl.h>
13725 int
13726 main ()
13727 {
13728 fallocate(-1, 0, 0, 0);
13729   ;
13730   return 0;
13731 }
13732 _ACEOF
13733 if ac_fn_c_try_link "$LINENO"; then :
13734   wine_cv_have_fallocate=yes
13735 else
13736   wine_cv_have_fallocate=no
13737 fi
13738 rm -f core conftest.err conftest.$ac_objext \
13739     conftest$ac_exeext conftest.$ac_ext
13740 fi
13741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_fallocate" >&5
13742 $as_echo "$wine_cv_have_fallocate" >&6; }
13743 if test "$wine_cv_have_fallocate" = "yes"
13744 then
13745
13746 $as_echo "#define HAVE_FALLOCATE 1" >>confdefs.h
13747
13748 fi
13749
13750
13751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13752 $as_echo_n "checking for inline... " >&6; }
13753 if ${ac_cv_c_inline+:} false; then :
13754   $as_echo_n "(cached) " >&6
13755 else
13756   ac_cv_c_inline=no
13757 for ac_kw in inline __inline__ __inline; do
13758   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13759 /* end confdefs.h.  */
13760 #ifndef __cplusplus
13761 typedef int foo_t;
13762 static $ac_kw foo_t static_foo () {return 0; }
13763 $ac_kw foo_t foo () {return 0; }
13764 #endif
13765
13766 _ACEOF
13767 if ac_fn_c_try_compile "$LINENO"; then :
13768   ac_cv_c_inline=$ac_kw
13769 fi
13770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13771   test "$ac_cv_c_inline" != no && break
13772 done
13773
13774 fi
13775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13776 $as_echo "$ac_cv_c_inline" >&6; }
13777
13778 case $ac_cv_c_inline in
13779   inline | yes) ;;
13780   *)
13781     case $ac_cv_c_inline in
13782       no) ac_val=;;
13783       *) ac_val=$ac_cv_c_inline;;
13784     esac
13785     cat >>confdefs.h <<_ACEOF
13786 #ifndef __cplusplus
13787 #define inline $ac_val
13788 #endif
13789 _ACEOF
13790     ;;
13791 esac
13792
13793 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
13794 if test "x$ac_cv_type_mode_t" = xyes; then :
13795
13796 cat >>confdefs.h <<_ACEOF
13797 #define HAVE_MODE_T 1
13798 _ACEOF
13799
13800
13801 fi
13802 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
13803 if test "x$ac_cv_type_off_t" = xyes; then :
13804
13805 cat >>confdefs.h <<_ACEOF
13806 #define HAVE_OFF_T 1
13807 _ACEOF
13808
13809
13810 fi
13811 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13812 if test "x$ac_cv_type_pid_t" = xyes; then :
13813
13814 cat >>confdefs.h <<_ACEOF
13815 #define HAVE_PID_T 1
13816 _ACEOF
13817
13818
13819 fi
13820 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13821 if test "x$ac_cv_type_size_t" = xyes; then :
13822
13823 cat >>confdefs.h <<_ACEOF
13824 #define HAVE_SIZE_T 1
13825 _ACEOF
13826
13827
13828 fi
13829 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
13830 if test "x$ac_cv_type_ssize_t" = xyes; then :
13831
13832 cat >>confdefs.h <<_ACEOF
13833 #define HAVE_SSIZE_T 1
13834 _ACEOF
13835
13836
13837 fi
13838 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
13839 if test "x$ac_cv_type_long_long" = xyes; then :
13840
13841 cat >>confdefs.h <<_ACEOF
13842 #define HAVE_LONG_LONG 1
13843 _ACEOF
13844
13845
13846 fi
13847 ac_fn_c_check_type "$LINENO" "fsblkcnt_t" "ac_cv_type_fsblkcnt_t" "$ac_includes_default"
13848 if test "x$ac_cv_type_fsblkcnt_t" = xyes; then :
13849
13850 cat >>confdefs.h <<_ACEOF
13851 #define HAVE_FSBLKCNT_T 1
13852 _ACEOF
13853
13854
13855 fi
13856 ac_fn_c_check_type "$LINENO" "fsfilcnt_t" "ac_cv_type_fsfilcnt_t" "$ac_includes_default"
13857 if test "x$ac_cv_type_fsfilcnt_t" = xyes; then :
13858
13859 cat >>confdefs.h <<_ACEOF
13860 #define HAVE_FSFILCNT_T 1
13861 _ACEOF
13862
13863
13864 fi
13865
13866 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "#include <sys/types.h>
13867 #include <signal.h>
13868 "
13869 if test "x$ac_cv_type_sigset_t" = xyes; then :
13870
13871 cat >>confdefs.h <<_ACEOF
13872 #define HAVE_SIGSET_T 1
13873 _ACEOF
13874
13875
13876 fi
13877
13878 ac_fn_c_check_type "$LINENO" "request_sense" "ac_cv_type_request_sense" "#include <linux/cdrom.h>
13879 "
13880 if test "x$ac_cv_type_request_sense" = xyes; then :
13881
13882 cat >>confdefs.h <<_ACEOF
13883 #define HAVE_REQUEST_SENSE 1
13884 _ACEOF
13885
13886
13887 fi
13888
13889
13890 ac_fn_c_check_type "$LINENO" "struct xinpgen" "ac_cv_type_struct_xinpgen" "#include <sys/types.h>
13891 #ifdef HAVE_SYS_SOCKET_H
13892 #include <sys/socket.h>
13893 #endif
13894 #ifdef HAVE_SYS_SOCKETVAR_H
13895 #include <sys/socketvar.h>
13896 #endif
13897 #ifdef HAVE_NET_ROUTE_H
13898 #include <net/route.h>
13899 #endif
13900 #ifdef HAVE_NETINET_IN_H
13901 #include <netinet/in.h>
13902 #endif
13903 #ifdef HAVE_NETINET_IN_SYSTM_H
13904 #include <netinet/in_systm.h>
13905 #endif
13906 #ifdef HAVE_NETINET_IP_H
13907 #include <netinet/ip.h>
13908 #endif
13909 #ifdef HAVE_NETINET_IN_PCB_H
13910 #include <netinet/in_pcb.h>
13911 #endif
13912 "
13913 if test "x$ac_cv_type_struct_xinpgen" = xyes; then :
13914
13915 cat >>confdefs.h <<_ACEOF
13916 #define HAVE_STRUCT_XINPGEN 1
13917 _ACEOF
13918
13919
13920 fi
13921
13922
13923 ac_fn_c_check_member "$LINENO" "struct ff_effect" "direction" "ac_cv_member_struct_ff_effect_direction" "#ifdef HAVE_LINUX_INPUT_H
13924 #include <linux/input.h>
13925 #endif
13926 "
13927 if test "x$ac_cv_member_struct_ff_effect_direction" = xyes; then :
13928
13929 cat >>confdefs.h <<_ACEOF
13930 #define HAVE_STRUCT_FF_EFFECT_DIRECTION 1
13931 _ACEOF
13932
13933
13934 fi
13935
13936
13937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigaddset" >&5
13938 $as_echo_n "checking for sigaddset... " >&6; }
13939 if ${wine_cv_have_sigaddset+:} false; then :
13940   $as_echo_n "(cached) " >&6
13941 else
13942   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13943 /* end confdefs.h.  */
13944 #include <signal.h>
13945 int
13946 main ()
13947 {
13948 sigset_t set; sigaddset(&set,SIGTERM);
13949   ;
13950   return 0;
13951 }
13952 _ACEOF
13953 if ac_fn_c_try_link "$LINENO"; then :
13954   wine_cv_have_sigaddset=yes
13955 else
13956   wine_cv_have_sigaddset=no
13957 fi
13958 rm -f core conftest.err conftest.$ac_objext \
13959     conftest$ac_exeext conftest.$ac_ext
13960 fi
13961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sigaddset" >&5
13962 $as_echo "$wine_cv_have_sigaddset" >&6; }
13963 if test "$wine_cv_have_sigaddset" = "yes"
13964 then
13965
13966 $as_echo "#define HAVE_SIGADDSET 1" >>confdefs.h
13967
13968 fi
13969
13970
13971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
13972 $as_echo_n "checking whether we can use re-entrant gethostbyname_r Linux style... " >&6; }
13973 if ${wine_cv_linux_gethostbyname_r_6+:} false; then :
13974   $as_echo_n "(cached) " >&6
13975 else
13976   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13977 /* end confdefs.h.  */
13978 #include <netdb.h>
13979 int
13980 main ()
13981 {
13982
13983     char *name=0;
13984     struct hostent he;
13985     struct hostent *result;
13986     char *buf=0;
13987     int bufsize=0;
13988     int errnr;
13989     char *addr=0;
13990     int addrlen=0;
13991     int addrtype=0;
13992     gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
13993     gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
13994
13995   ;
13996   return 0;
13997 }
13998 _ACEOF
13999 if ac_fn_c_try_link "$LINENO"; then :
14000   wine_cv_linux_gethostbyname_r_6=yes
14001 else
14002   wine_cv_linux_gethostbyname_r_6=no
14003
14004 fi
14005 rm -f core conftest.err conftest.$ac_objext \
14006     conftest$ac_exeext conftest.$ac_ext
14007
14008 fi
14009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_gethostbyname_r_6" >&5
14010 $as_echo "$wine_cv_linux_gethostbyname_r_6" >&6; }
14011    if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
14012    then
14013
14014 $as_echo "#define HAVE_LINUX_GETHOSTBYNAME_R_6 1" >>confdefs.h
14015
14016    fi
14017
14018 if test "$ac_cv_header_linux_joystick_h" = "yes"
14019 then
14020    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
14021 $as_echo_n "checking whether linux/joystick.h uses the Linux 2.2+ API... " >&6; }
14022 if ${wine_cv_linux_joystick_22_api+:} false; then :
14023   $as_echo_n "(cached) " >&6
14024 else
14025   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14026 /* end confdefs.h.  */
14027
14028         #include <sys/ioctl.h>
14029         #include <sys/types.h>
14030         #include <linux/joystick.h>
14031
14032         struct js_event blub;
14033         #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
14034         #error "no 2.2 header"
14035         #endif
14036
14037 int
14038 main ()
14039 {
14040 /*empty*/
14041   ;
14042   return 0;
14043 }
14044 _ACEOF
14045 if ac_fn_c_try_compile "$LINENO"; then :
14046   wine_cv_linux_joystick_22_api=yes
14047 else
14048   wine_cv_linux_joystick_22_api=no
14049 fi
14050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14051
14052 fi
14053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_joystick_22_api" >&5
14054 $as_echo "$wine_cv_linux_joystick_22_api" >&6; }
14055    if test "$wine_cv_linux_joystick_22_api" = "yes"
14056    then
14057
14058 $as_echo "#define HAVE_LINUX_22_JOYSTICK_API 1" >>confdefs.h
14059
14060    fi
14061 fi
14062
14063
14064 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bfree" "ac_cv_member_struct_statfs_f_bfree" "#include <sys/types.h>
14065 #ifdef HAVE_SYS_PARAM_H
14066 # include <sys/param.h>
14067 #endif
14068 #ifdef HAVE_SYS_MOUNT_H
14069 # include <sys/mount.h>
14070 #endif
14071 #ifdef HAVE_SYS_VFS_H
14072 # include <sys/vfs.h>
14073 #endif
14074 #ifdef HAVE_SYS_STATFS_H
14075 # include <sys/statfs.h>
14076 #endif
14077 "
14078 if test "x$ac_cv_member_struct_statfs_f_bfree" = xyes; then :
14079
14080 cat >>confdefs.h <<_ACEOF
14081 #define HAVE_STRUCT_STATFS_F_BFREE 1
14082 _ACEOF
14083
14084
14085 fi
14086 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bavail" "ac_cv_member_struct_statfs_f_bavail" "#include <sys/types.h>
14087 #ifdef HAVE_SYS_PARAM_H
14088 # include <sys/param.h>
14089 #endif
14090 #ifdef HAVE_SYS_MOUNT_H
14091 # include <sys/mount.h>
14092 #endif
14093 #ifdef HAVE_SYS_VFS_H
14094 # include <sys/vfs.h>
14095 #endif
14096 #ifdef HAVE_SYS_STATFS_H
14097 # include <sys/statfs.h>
14098 #endif
14099 "
14100 if test "x$ac_cv_member_struct_statfs_f_bavail" = xyes; then :
14101
14102 cat >>confdefs.h <<_ACEOF
14103 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
14104 _ACEOF
14105
14106
14107 fi
14108 ac_fn_c_check_member "$LINENO" "struct statfs" "f_frsize" "ac_cv_member_struct_statfs_f_frsize" "#include <sys/types.h>
14109 #ifdef HAVE_SYS_PARAM_H
14110 # include <sys/param.h>
14111 #endif
14112 #ifdef HAVE_SYS_MOUNT_H
14113 # include <sys/mount.h>
14114 #endif
14115 #ifdef HAVE_SYS_VFS_H
14116 # include <sys/vfs.h>
14117 #endif
14118 #ifdef HAVE_SYS_STATFS_H
14119 # include <sys/statfs.h>
14120 #endif
14121 "
14122 if test "x$ac_cv_member_struct_statfs_f_frsize" = xyes; then :
14123
14124 cat >>confdefs.h <<_ACEOF
14125 #define HAVE_STRUCT_STATFS_F_FRSIZE 1
14126 _ACEOF
14127
14128
14129 fi
14130 ac_fn_c_check_member "$LINENO" "struct statfs" "f_ffree" "ac_cv_member_struct_statfs_f_ffree" "#include <sys/types.h>
14131 #ifdef HAVE_SYS_PARAM_H
14132 # include <sys/param.h>
14133 #endif
14134 #ifdef HAVE_SYS_MOUNT_H
14135 # include <sys/mount.h>
14136 #endif
14137 #ifdef HAVE_SYS_VFS_H
14138 # include <sys/vfs.h>
14139 #endif
14140 #ifdef HAVE_SYS_STATFS_H
14141 # include <sys/statfs.h>
14142 #endif
14143 "
14144 if test "x$ac_cv_member_struct_statfs_f_ffree" = xyes; then :
14145
14146 cat >>confdefs.h <<_ACEOF
14147 #define HAVE_STRUCT_STATFS_F_FFREE 1
14148 _ACEOF
14149
14150
14151 fi
14152 ac_fn_c_check_member "$LINENO" "struct statfs" "f_favail" "ac_cv_member_struct_statfs_f_favail" "#include <sys/types.h>
14153 #ifdef HAVE_SYS_PARAM_H
14154 # include <sys/param.h>
14155 #endif
14156 #ifdef HAVE_SYS_MOUNT_H
14157 # include <sys/mount.h>
14158 #endif
14159 #ifdef HAVE_SYS_VFS_H
14160 # include <sys/vfs.h>
14161 #endif
14162 #ifdef HAVE_SYS_STATFS_H
14163 # include <sys/statfs.h>
14164 #endif
14165 "
14166 if test "x$ac_cv_member_struct_statfs_f_favail" = xyes; then :
14167
14168 cat >>confdefs.h <<_ACEOF
14169 #define HAVE_STRUCT_STATFS_F_FAVAIL 1
14170 _ACEOF
14171
14172
14173 fi
14174 ac_fn_c_check_member "$LINENO" "struct statfs" "f_namelen" "ac_cv_member_struct_statfs_f_namelen" "#include <sys/types.h>
14175 #ifdef HAVE_SYS_PARAM_H
14176 # include <sys/param.h>
14177 #endif
14178 #ifdef HAVE_SYS_MOUNT_H
14179 # include <sys/mount.h>
14180 #endif
14181 #ifdef HAVE_SYS_VFS_H
14182 # include <sys/vfs.h>
14183 #endif
14184 #ifdef HAVE_SYS_STATFS_H
14185 # include <sys/statfs.h>
14186 #endif
14187 "
14188 if test "x$ac_cv_member_struct_statfs_f_namelen" = xyes; then :
14189
14190 cat >>confdefs.h <<_ACEOF
14191 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
14192 _ACEOF
14193
14194
14195 fi
14196
14197
14198 ac_fn_c_check_member "$LINENO" "struct statvfs" "f_blocks" "ac_cv_member_struct_statvfs_f_blocks" "#ifdef HAVE_SYS_STATVFS_H
14199 #include <sys/statvfs.h>
14200 #endif
14201 "
14202 if test "x$ac_cv_member_struct_statvfs_f_blocks" = xyes; then :
14203
14204 cat >>confdefs.h <<_ACEOF
14205 #define HAVE_STRUCT_STATVFS_F_BLOCKS 1
14206 _ACEOF
14207
14208
14209 fi
14210
14211
14212 ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#ifdef HAVE_DIRENT_H
14213 #include <dirent.h>
14214 #endif
14215 "
14216 if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then :
14217
14218 cat >>confdefs.h <<_ACEOF
14219 #define HAVE_STRUCT_DIRENT_D_RECLEN 1
14220 _ACEOF
14221
14222
14223 fi
14224
14225
14226 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_accrights" "ac_cv_member_struct_msghdr_msg_accrights" "#include <sys/types.h>
14227 #ifdef HAVE_SYS_SOCKET_H
14228 # include <sys/socket.h>
14229 #endif
14230 #ifdef HAVE_SYS_UN_H
14231 # include <sys/un.h>
14232 #endif
14233 "
14234 if test "x$ac_cv_member_struct_msghdr_msg_accrights" = xyes; then :
14235
14236 cat >>confdefs.h <<_ACEOF
14237 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
14238 _ACEOF
14239
14240
14241 fi
14242 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
14243 #ifdef HAVE_SYS_SOCKET_H
14244 # include <sys/socket.h>
14245 #endif
14246 #ifdef HAVE_SYS_UN_H
14247 # include <sys/un.h>
14248 #endif
14249 "
14250 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
14251
14252 cat >>confdefs.h <<_ACEOF
14253 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
14254 _ACEOF
14255
14256
14257 fi
14258 ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" "#include <sys/types.h>
14259 #ifdef HAVE_SYS_SOCKET_H
14260 # include <sys/socket.h>
14261 #endif
14262 #ifdef HAVE_SYS_UN_H
14263 # include <sys/un.h>
14264 #endif
14265 "
14266 if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes; then :
14267
14268 cat >>confdefs.h <<_ACEOF
14269 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
14270 _ACEOF
14271
14272
14273 fi
14274
14275
14276 ac_fn_c_check_member "$LINENO" "scsireq_t" "cmd" "ac_cv_member_scsireq_t_cmd" "#include <sys/types.h>
14277 #ifdef HAVE_SCSI_SG_H
14278 #include <scsi/sg.h>
14279 #endif
14280 "
14281 if test "x$ac_cv_member_scsireq_t_cmd" = xyes; then :
14282
14283 cat >>confdefs.h <<_ACEOF
14284 #define HAVE_SCSIREQ_T_CMD 1
14285 _ACEOF
14286
14287
14288 fi
14289 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>
14290 #ifdef HAVE_SCSI_SG_H
14291 #include <scsi/sg.h>
14292 #endif
14293 "
14294 if test "x$ac_cv_member_sg_io_hdr_t_interface_id" = xyes; then :
14295
14296 cat >>confdefs.h <<_ACEOF
14297 #define HAVE_SG_IO_HDR_T_INTERFACE_ID 1
14298 _ACEOF
14299
14300
14301 fi
14302
14303
14304 ac_fn_c_check_member "$LINENO" "siginfo_t" "si_fd" "ac_cv_member_siginfo_t_si_fd" "#include <signal.h>
14305 "
14306 if test "x$ac_cv_member_siginfo_t_si_fd" = xyes; then :
14307
14308 cat >>confdefs.h <<_ACEOF
14309 #define HAVE_SIGINFO_T_SI_FD 1
14310 _ACEOF
14311
14312
14313 fi
14314
14315
14316 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blksiz" "ac_cv_member_struct_mtget_mt_blksiz" "#include <sys/types.h>
14317 #ifdef HAVE_SYS_MTIO_H
14318 #include <sys/mtio.h>
14319 #endif
14320 "
14321 if test "x$ac_cv_member_struct_mtget_mt_blksiz" = xyes; then :
14322
14323 cat >>confdefs.h <<_ACEOF
14324 #define HAVE_STRUCT_MTGET_MT_BLKSIZ 1
14325 _ACEOF
14326
14327
14328 fi
14329 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_gstat" "ac_cv_member_struct_mtget_mt_gstat" "#include <sys/types.h>
14330 #ifdef HAVE_SYS_MTIO_H
14331 #include <sys/mtio.h>
14332 #endif
14333 "
14334 if test "x$ac_cv_member_struct_mtget_mt_gstat" = xyes; then :
14335
14336 cat >>confdefs.h <<_ACEOF
14337 #define HAVE_STRUCT_MTGET_MT_GSTAT 1
14338 _ACEOF
14339
14340
14341 fi
14342 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blkno" "ac_cv_member_struct_mtget_mt_blkno" "#include <sys/types.h>
14343 #ifdef HAVE_SYS_MTIO_H
14344 #include <sys/mtio.h>
14345 #endif
14346 "
14347 if test "x$ac_cv_member_struct_mtget_mt_blkno" = xyes; then :
14348
14349 cat >>confdefs.h <<_ACEOF
14350 #define HAVE_STRUCT_MTGET_MT_BLKNO 1
14351 _ACEOF
14352
14353
14354 fi
14355
14356
14357 ac_fn_c_check_member "$LINENO" "struct option" "name" "ac_cv_member_struct_option_name" "#ifdef HAVE_GETOPT_H
14358 #include <getopt.h>
14359 #endif
14360 "
14361 if test "x$ac_cv_member_struct_option_name" = xyes; then :
14362
14363 cat >>confdefs.h <<_ACEOF
14364 #define HAVE_STRUCT_OPTION_NAME 1
14365 _ACEOF
14366
14367
14368 fi
14369
14370
14371 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
14372 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
14373
14374 cat >>confdefs.h <<_ACEOF
14375 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
14376 _ACEOF
14377
14378
14379 fi
14380 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
14381 if test "x$ac_cv_member_struct_stat_st_mtim" = xyes; then :
14382
14383 cat >>confdefs.h <<_ACEOF
14384 #define HAVE_STRUCT_STAT_ST_MTIM 1
14385 _ACEOF
14386
14387
14388 fi
14389 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimespec" "ac_cv_member_struct_stat_st_mtimespec" "$ac_includes_default"
14390 if test "x$ac_cv_member_struct_stat_st_mtimespec" = xyes; then :
14391
14392 cat >>confdefs.h <<_ACEOF
14393 #define HAVE_STRUCT_STAT_ST_MTIMESPEC 1
14394 _ACEOF
14395
14396
14397 fi
14398 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctim" "ac_cv_member_struct_stat_st_ctim" "$ac_includes_default"
14399 if test "x$ac_cv_member_struct_stat_st_ctim" = xyes; then :
14400
14401 cat >>confdefs.h <<_ACEOF
14402 #define HAVE_STRUCT_STAT_ST_CTIM 1
14403 _ACEOF
14404
14405
14406 fi
14407 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctimespec" "ac_cv_member_struct_stat_st_ctimespec" "$ac_includes_default"
14408 if test "x$ac_cv_member_struct_stat_st_ctimespec" = xyes; then :
14409
14410 cat >>confdefs.h <<_ACEOF
14411 #define HAVE_STRUCT_STAT_ST_CTIMESPEC 1
14412 _ACEOF
14413
14414
14415 fi
14416 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
14417 if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
14418
14419 cat >>confdefs.h <<_ACEOF
14420 #define HAVE_STRUCT_STAT_ST_ATIM 1
14421 _ACEOF
14422
14423
14424 fi
14425 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimespec" "ac_cv_member_struct_stat_st_atimespec" "$ac_includes_default"
14426 if test "x$ac_cv_member_struct_stat_st_atimespec" = xyes; then :
14427
14428 cat >>confdefs.h <<_ACEOF
14429 #define HAVE_STRUCT_STAT_ST_ATIMESPEC 1
14430 _ACEOF
14431
14432
14433 fi
14434 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtime" "ac_cv_member_struct_stat_st_birthtime" "$ac_includes_default"
14435 if test "x$ac_cv_member_struct_stat_st_birthtime" = xyes; then :
14436
14437 cat >>confdefs.h <<_ACEOF
14438 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
14439 _ACEOF
14440
14441
14442 fi
14443 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtim" "ac_cv_member_struct_stat_st_birthtim" "$ac_includes_default"
14444 if test "x$ac_cv_member_struct_stat_st_birthtim" = xyes; then :
14445
14446 cat >>confdefs.h <<_ACEOF
14447 #define HAVE_STRUCT_STAT_ST_BIRTHTIM 1
14448 _ACEOF
14449
14450
14451 fi
14452 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimespec" "ac_cv_member_struct_stat_st_birthtimespec" "$ac_includes_default"
14453 if test "x$ac_cv_member_struct_stat_st_birthtimespec" = xyes; then :
14454
14455 cat >>confdefs.h <<_ACEOF
14456 #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC 1
14457 _ACEOF
14458
14459
14460 fi
14461 ac_fn_c_check_member "$LINENO" "struct stat" "__st_birthtime" "ac_cv_member_struct_stat___st_birthtime" "$ac_includes_default"
14462 if test "x$ac_cv_member_struct_stat___st_birthtime" = xyes; then :
14463
14464 cat >>confdefs.h <<_ACEOF
14465 #define HAVE_STRUCT_STAT___ST_BIRTHTIME 1
14466 _ACEOF
14467
14468
14469 fi
14470 ac_fn_c_check_member "$LINENO" "struct stat" "__st_birthtim" "ac_cv_member_struct_stat___st_birthtim" "$ac_includes_default"
14471 if test "x$ac_cv_member_struct_stat___st_birthtim" = xyes; then :
14472
14473 cat >>confdefs.h <<_ACEOF
14474 #define HAVE_STRUCT_STAT___ST_BIRTHTIM 1
14475 _ACEOF
14476
14477
14478 fi
14479
14480
14481 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
14482 #include <sys/types.h>
14483 #endif
14484 #ifdef HAVE_NETINET_IN_H
14485 #include <netinet/in.h>
14486 #endif
14487 "
14488 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = xyes; then :
14489
14490 cat >>confdefs.h <<_ACEOF
14491 #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
14492 _ACEOF
14493
14494
14495 fi
14496
14497
14498 ac_fn_c_check_member "$LINENO" "ns_msg" "_msg_ptr" "ac_cv_member_ns_msg__msg_ptr" "#ifdef HAVE_SYS_TYPES_H
14499 #include <sys/types.h>
14500 #endif
14501 #ifdef HAVE_NETINET_IN_H
14502 # include <netinet/in.h>
14503 #endif
14504 #ifdef HAVE_ARPA_NAMESER_H
14505 # include <arpa/nameser.h>
14506 #endif
14507 "
14508 if test "x$ac_cv_member_ns_msg__msg_ptr" = xyes; then :
14509
14510 cat >>confdefs.h <<_ACEOF
14511 #define HAVE_NS_MSG__MSG_PTR 1
14512 _ACEOF
14513
14514
14515 fi
14516
14517
14518 ac_fn_c_check_member "$LINENO" "struct icmpstat" "icps_inhist" "ac_cv_member_struct_icmpstat_icps_inhist" "#ifdef HAVE_SYS_TYPES_H
14519 #include <sys/types.h>
14520 #endif
14521 #ifdef HAVE_NETINET_IP_H
14522 #include <netinet/ip.h>
14523 #endif
14524 #ifdef HAVE_NETINET_IP_ICMP_H
14525 #include <netinet/ip_icmp.h>
14526 #endif
14527 #ifdef HAVE_NETINET_ICMP_VAR_H
14528 #include <netinet/icmp_var.h>
14529 #endif
14530 "
14531 if test "x$ac_cv_member_struct_icmpstat_icps_inhist" = xyes; then :
14532
14533 cat >>confdefs.h <<_ACEOF
14534 #define HAVE_STRUCT_ICMPSTAT_ICPS_INHIST 1
14535 _ACEOF
14536
14537
14538 fi
14539
14540
14541 ac_fn_c_check_member "$LINENO" "struct icmpstat" "icps_outhist" "ac_cv_member_struct_icmpstat_icps_outhist" "#ifdef HAVE_SYS_TYPES_H
14542 #include <sys/types.h>
14543 #endif
14544 #ifdef HAVE_ALIAS_H
14545 #include <alias.h>
14546 #endif
14547 #ifdef HAVE_SYS_SOCKET_H
14548 #include <sys/socket.h>
14549 #endif
14550 #ifdef HAVE_SYS_SOCKETVAR_H
14551 #include <sys/socketvar.h>
14552 #endif
14553 #ifdef HAVE_SYS_TIMEOUT_H
14554 #include <sys/timeout.h>
14555 #endif
14556 #ifdef HAVE_NETINET_IN_H
14557 #include <netinet/in.h>
14558 #endif
14559 #ifdef HAVE_NETINET_IN_SYSTM_H
14560 #include <netinet/in_systm.h>
14561 #endif
14562 #ifdef HAVE_NETINET_IP_H
14563 #include <netinet/ip.h>
14564 #endif
14565 #ifdef HAVE_NETINET_IP_VAR_H
14566 #include <netinet/ip_var.h>
14567 #endif
14568 #ifdef HAVE_NETINET_IP_ICMP_H
14569 #include <netinet/ip_icmp.h>
14570 #endif
14571 #ifdef HAVE_NETINET_ICMP_VAR_H
14572 #include <netinet/icmp_var.h>
14573 #endif
14574 "
14575 if test "x$ac_cv_member_struct_icmpstat_icps_outhist" = xyes; then :
14576
14577 cat >>confdefs.h <<_ACEOF
14578 #define HAVE_STRUCT_ICMPSTAT_ICPS_OUTHIST 1
14579 _ACEOF
14580
14581
14582 fi
14583
14584
14585 ac_fn_c_check_member "$LINENO" "struct ipstat" "ips_total" "ac_cv_member_struct_ipstat_ips_total" "#ifdef HAVE_SYS_TYPES_H
14586 #include <sys/types.h>
14587 #endif
14588 #ifdef HAVE_SYS_SOCKETVAR_H
14589 #include <sys/socketvar.h>
14590 #endif
14591 #ifdef HAVE_NETINET_IN_H
14592 #include <netinet/in.h>
14593 #endif
14594 #ifdef HAVE_NETINET_IP_VAR_H
14595 #include <netinet/ip_var.h>
14596 #endif
14597 "
14598 if test "x$ac_cv_member_struct_ipstat_ips_total" = xyes; then :
14599
14600 cat >>confdefs.h <<_ACEOF
14601 #define HAVE_STRUCT_IPSTAT_IPS_TOTAL 1
14602 _ACEOF
14603
14604
14605 fi
14606
14607
14608 ac_fn_c_check_member "$LINENO" "struct ip_stats" "ips_total" "ac_cv_member_struct_ip_stats_ips_total" "#ifdef HAVE_NETINET_IP_VAR_H
14609 #include <netinet/ip_var.h>
14610 #endif
14611 "
14612 if test "x$ac_cv_member_struct_ip_stats_ips_total" = xyes; then :
14613
14614 cat >>confdefs.h <<_ACEOF
14615 #define HAVE_STRUCT_IP_STATS_IPS_TOTAL 1
14616 _ACEOF
14617
14618
14619 fi
14620
14621
14622 ac_fn_c_check_member "$LINENO" "struct tcpstat" "tcps_connattempt" "ac_cv_member_struct_tcpstat_tcps_connattempt" "#ifdef HAVE_SYS_TYPES_H
14623 #include <sys/types.h>
14624 #endif
14625 #ifdef HAVE_SYS_SOCKETVAR_H
14626 #include <sys/socketvar.h>
14627 #endif
14628 #ifdef HAVE_NETINET_IN_H
14629 #include <netinet/in.h>
14630 #endif
14631 #ifdef HAVE_NETINET_TCP_H
14632 #include <netinet/tcp.h>
14633 #endif
14634 #ifdef HAVE_NETINET_TCP_VAR_H
14635 #include <netinet/tcp_var.h>
14636 #endif
14637 "
14638 if test "x$ac_cv_member_struct_tcpstat_tcps_connattempt" = xyes; then :
14639
14640 cat >>confdefs.h <<_ACEOF
14641 #define HAVE_STRUCT_TCPSTAT_TCPS_CONNATTEMPT 1
14642 _ACEOF
14643
14644
14645 fi
14646
14647
14648 ac_fn_c_check_member "$LINENO" "struct tcp_stats" "tcps_connattempt" "ac_cv_member_struct_tcp_stats_tcps_connattempt" "#ifdef HAVE_NETINET_TCP_VAR_H
14649 #include <netinet/tcp_var.h>
14650 #endif
14651 "
14652 if test "x$ac_cv_member_struct_tcp_stats_tcps_connattempt" = xyes; then :
14653
14654 cat >>confdefs.h <<_ACEOF
14655 #define HAVE_STRUCT_TCP_STATS_TCPS_CONNATTEMPT 1
14656 _ACEOF
14657
14658
14659 fi
14660
14661
14662 ac_fn_c_check_member "$LINENO" "struct udpstat" "udps_ipackets" "ac_cv_member_struct_udpstat_udps_ipackets" "#ifdef HAVE_SYS_TYPES_H
14663 #include <sys/types.h>
14664 #endif
14665 #ifdef HAVE_NETINET_IN_H
14666 #include <netinet/in.h>
14667 #endif
14668 #ifdef HAVE_NETINET_IP_VAR_H
14669 #include <netinet/ip_var.h>
14670 #endif
14671 #ifdef HAVE_NETINET_UDP_H
14672 #include <netinet/udp.h>
14673 #endif
14674 #ifdef HAVE_NETINET_UDP_VAR_H
14675 #include <netinet/udp_var.h>
14676 #endif
14677 "
14678 if test "x$ac_cv_member_struct_udpstat_udps_ipackets" = xyes; then :
14679
14680 cat >>confdefs.h <<_ACEOF
14681 #define HAVE_STRUCT_UDPSTAT_UDPS_IPACKETS 1
14682 _ACEOF
14683
14684
14685 fi
14686
14687
14688 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "#ifdef HAVE_SYS_TYPES_H
14689 #include <sys/types.h>
14690 #endif
14691 #ifdef HAVE_NET_IF_H
14692 # include <net/if.h>
14693 #endif
14694 "
14695 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = xyes; then :
14696
14697 cat >>confdefs.h <<_ACEOF
14698 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
14699 _ACEOF
14700
14701
14702 fi
14703
14704
14705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone variable" >&5
14706 $as_echo_n "checking for timezone variable... " >&6; }
14707 if ${ac_cv_have_timezone+:} false; then :
14708   $as_echo_n "(cached) " >&6
14709 else
14710   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14711 /* end confdefs.h.  */
14712 #include <time.h>
14713 int
14714 main ()
14715 {
14716 timezone = 1
14717   ;
14718   return 0;
14719 }
14720 _ACEOF
14721 if ac_fn_c_try_link "$LINENO"; then :
14722   ac_cv_have_timezone="yes"
14723 else
14724   ac_cv_have_timezone="no"
14725 fi
14726 rm -f core conftest.err conftest.$ac_objext \
14727     conftest$ac_exeext conftest.$ac_ext
14728 fi
14729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_timezone" >&5
14730 $as_echo "$ac_cv_have_timezone" >&6; }
14731 if test "$ac_cv_have_timezone" = "yes"
14732 then
14733
14734 $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
14735
14736 fi
14737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daylight variable" >&5
14738 $as_echo_n "checking for daylight variable... " >&6; }
14739 if ${ac_cv_have_daylight+:} false; then :
14740   $as_echo_n "(cached) " >&6
14741 else
14742   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14743 /* end confdefs.h.  */
14744 #include <time.h>
14745 int
14746 main ()
14747 {
14748 daylight = 1
14749   ;
14750   return 0;
14751 }
14752 _ACEOF
14753 if ac_fn_c_try_link "$LINENO"; then :
14754   ac_cv_have_daylight="yes"
14755 else
14756   ac_cv_have_daylight="no"
14757 fi
14758 rm -f core conftest.err conftest.$ac_objext \
14759     conftest$ac_exeext conftest.$ac_ext
14760 fi
14761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_daylight" >&5
14762 $as_echo "$ac_cv_have_daylight" >&6; }
14763 if test "$ac_cv_have_daylight" = "yes"
14764 then
14765
14766 $as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h
14767
14768 fi
14769
14770 ac_save_LIBS="$LIBS"
14771 LIBS="$LIBS -lm"
14772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf" >&5
14773 $as_echo_n "checking for isinf... " >&6; }
14774 if ${ac_cv_have_isinf+:} false; then :
14775   $as_echo_n "(cached) " >&6
14776 else
14777   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14778 /* end confdefs.h.  */
14779 #include <math.h>
14780 int
14781 main ()
14782 {
14783 float f = 0.0; return isinf(f)
14784   ;
14785   return 0;
14786 }
14787 _ACEOF
14788 if ac_fn_c_try_link "$LINENO"; then :
14789   ac_cv_have_isinf="yes"
14790 else
14791   ac_cv_have_isinf="no"
14792 fi
14793 rm -f core conftest.err conftest.$ac_objext \
14794     conftest$ac_exeext conftest.$ac_ext
14795 fi
14796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isinf" >&5
14797 $as_echo "$ac_cv_have_isinf" >&6; }
14798 if test "$ac_cv_have_isinf" = "yes"
14799 then
14800
14801 $as_echo "#define HAVE_ISINF 1" >>confdefs.h
14802
14803 fi
14804
14805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan" >&5
14806 $as_echo_n "checking for isnan... " >&6; }
14807 if ${ac_cv_have_isnan+:} false; then :
14808   $as_echo_n "(cached) " >&6
14809 else
14810   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14811 /* end confdefs.h.  */
14812 #include <math.h>
14813 int
14814 main ()
14815 {
14816 float f = 0.0; return isnan(f)
14817   ;
14818   return 0;
14819 }
14820 _ACEOF
14821 if ac_fn_c_try_link "$LINENO"; then :
14822   ac_cv_have_isnan="yes"
14823 else
14824   ac_cv_have_isnan="no"
14825 fi
14826 rm -f core conftest.err conftest.$ac_objext \
14827     conftest$ac_exeext conftest.$ac_ext
14828 fi
14829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isnan" >&5
14830 $as_echo "$ac_cv_have_isnan" >&6; }
14831 if test "$ac_cv_have_isnan" = "yes"
14832 then
14833
14834 $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
14835
14836 fi
14837 LIBS="$ac_save_LIBS"
14838
14839
14840 case $host_cpu in
14841   *i[3456789]86*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __i386__" >&5
14842 $as_echo_n "checking whether we need to define __i386__... " >&6; }
14843 if ${ac_cv_cpp_def___i386__+:} false; then :
14844   $as_echo_n "(cached) " >&6
14845 else
14846   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14847 /* end confdefs.h.  */
14848 #ifndef __i386__
14849 yes
14850 #endif
14851 _ACEOF
14852 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14853   $EGREP "yes" >/dev/null 2>&1; then :
14854   ac_cv_cpp_def___i386__=yes
14855 else
14856   ac_cv_cpp_def___i386__=no
14857 fi
14858 rm -f conftest*
14859
14860 fi
14861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___i386__" >&5
14862 $as_echo "$ac_cv_cpp_def___i386__" >&6; }
14863 if test $ac_cv_cpp_def___i386__ = yes; then :
14864   CFLAGS="$CFLAGS -D__i386__"
14865   LINTFLAGS="$LINTFLAGS -D__i386__"
14866 fi ;;
14867   *x86_64*)         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __x86_64__" >&5
14868 $as_echo_n "checking whether we need to define __x86_64__... " >&6; }
14869 if ${ac_cv_cpp_def___x86_64__+:} false; then :
14870   $as_echo_n "(cached) " >&6
14871 else
14872   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14873 /* end confdefs.h.  */
14874 #ifndef __x86_64__
14875 yes
14876 #endif
14877 _ACEOF
14878 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14879   $EGREP "yes" >/dev/null 2>&1; then :
14880   ac_cv_cpp_def___x86_64__=yes
14881 else
14882   ac_cv_cpp_def___x86_64__=no
14883 fi
14884 rm -f conftest*
14885
14886 fi
14887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___x86_64__" >&5
14888 $as_echo "$ac_cv_cpp_def___x86_64__" >&6; }
14889 if test $ac_cv_cpp_def___x86_64__ = yes; then :
14890   CFLAGS="$CFLAGS -D__x86_64__"
14891   LINTFLAGS="$LINTFLAGS -D__x86_64__"
14892 fi ;;
14893   *sparc64*)        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sparc64__" >&5
14894 $as_echo_n "checking whether we need to define __sparc64__... " >&6; }
14895 if ${ac_cv_cpp_def___sparc64__+:} false; then :
14896   $as_echo_n "(cached) " >&6
14897 else
14898   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14899 /* end confdefs.h.  */
14900 #ifndef __sparc64__
14901 yes
14902 #endif
14903 _ACEOF
14904 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14905   $EGREP "yes" >/dev/null 2>&1; then :
14906   ac_cv_cpp_def___sparc64__=yes
14907 else
14908   ac_cv_cpp_def___sparc64__=no
14909 fi
14910 rm -f conftest*
14911
14912 fi
14913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sparc64__" >&5
14914 $as_echo "$ac_cv_cpp_def___sparc64__" >&6; }
14915 if test $ac_cv_cpp_def___sparc64__ = yes; then :
14916   CFLAGS="$CFLAGS -D__sparc64__"
14917   LINTFLAGS="$LINTFLAGS -D__sparc64__"
14918 fi ;;
14919   *sparc*)          { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sparc__" >&5
14920 $as_echo_n "checking whether we need to define __sparc__... " >&6; }
14921 if ${ac_cv_cpp_def___sparc__+:} false; then :
14922   $as_echo_n "(cached) " >&6
14923 else
14924   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14925 /* end confdefs.h.  */
14926 #ifndef __sparc__
14927 yes
14928 #endif
14929 _ACEOF
14930 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14931   $EGREP "yes" >/dev/null 2>&1; then :
14932   ac_cv_cpp_def___sparc__=yes
14933 else
14934   ac_cv_cpp_def___sparc__=no
14935 fi
14936 rm -f conftest*
14937
14938 fi
14939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sparc__" >&5
14940 $as_echo "$ac_cv_cpp_def___sparc__" >&6; }
14941 if test $ac_cv_cpp_def___sparc__ = yes; then :
14942   CFLAGS="$CFLAGS -D__sparc__"
14943   LINTFLAGS="$LINTFLAGS -D__sparc__"
14944 fi ;;
14945   *powerpc64*)      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __powerpc64__" >&5
14946 $as_echo_n "checking whether we need to define __powerpc64__... " >&6; }
14947 if ${ac_cv_cpp_def___powerpc64__+:} false; then :
14948   $as_echo_n "(cached) " >&6
14949 else
14950   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14951 /* end confdefs.h.  */
14952 #ifndef __powerpc64__
14953 yes
14954 #endif
14955 _ACEOF
14956 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14957   $EGREP "yes" >/dev/null 2>&1; then :
14958   ac_cv_cpp_def___powerpc64__=yes
14959 else
14960   ac_cv_cpp_def___powerpc64__=no
14961 fi
14962 rm -f conftest*
14963
14964 fi
14965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___powerpc64__" >&5
14966 $as_echo "$ac_cv_cpp_def___powerpc64__" >&6; }
14967 if test $ac_cv_cpp_def___powerpc64__ = yes; then :
14968   CFLAGS="$CFLAGS -D__powerpc64__"
14969   LINTFLAGS="$LINTFLAGS -D__powerpc64__"
14970 fi ;;
14971   *powerpc*)        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __powerpc__" >&5
14972 $as_echo_n "checking whether we need to define __powerpc__... " >&6; }
14973 if ${ac_cv_cpp_def___powerpc__+:} false; then :
14974   $as_echo_n "(cached) " >&6
14975 else
14976   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14977 /* end confdefs.h.  */
14978 #ifndef __powerpc__
14979 yes
14980 #endif
14981 _ACEOF
14982 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14983   $EGREP "yes" >/dev/null 2>&1; then :
14984   ac_cv_cpp_def___powerpc__=yes
14985 else
14986   ac_cv_cpp_def___powerpc__=no
14987 fi
14988 rm -f conftest*
14989
14990 fi
14991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___powerpc__" >&5
14992 $as_echo "$ac_cv_cpp_def___powerpc__" >&6; }
14993 if test $ac_cv_cpp_def___powerpc__ = yes; then :
14994   CFLAGS="$CFLAGS -D__powerpc__"
14995   LINTFLAGS="$LINTFLAGS -D__powerpc__"
14996 fi ;;
14997   *arm*)            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __arm__" >&5
14998 $as_echo_n "checking whether we need to define __arm__... " >&6; }
14999 if ${ac_cv_cpp_def___arm__+:} false; then :
15000   $as_echo_n "(cached) " >&6
15001 else
15002   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15003 /* end confdefs.h.  */
15004 #ifndef __arm__
15005 yes
15006 #endif
15007 _ACEOF
15008 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15009   $EGREP "yes" >/dev/null 2>&1; then :
15010   ac_cv_cpp_def___arm__=yes
15011 else
15012   ac_cv_cpp_def___arm__=no
15013 fi
15014 rm -f conftest*
15015
15016 fi
15017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___arm__" >&5
15018 $as_echo "$ac_cv_cpp_def___arm__" >&6; }
15019 if test $ac_cv_cpp_def___arm__ = yes; then :
15020   CFLAGS="$CFLAGS -D__arm__"
15021   LINTFLAGS="$LINTFLAGS -D__arm__"
15022 fi ;;
15023 esac
15024
15025 case $host_vendor in
15026   *sun*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sun__" >&5
15027 $as_echo_n "checking whether we need to define __sun__... " >&6; }
15028 if ${ac_cv_cpp_def___sun__+:} false; then :
15029   $as_echo_n "(cached) " >&6
15030 else
15031   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15032 /* end confdefs.h.  */
15033 #ifndef __sun__
15034 yes
15035 #endif
15036 _ACEOF
15037 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15038   $EGREP "yes" >/dev/null 2>&1; then :
15039   ac_cv_cpp_def___sun__=yes
15040 else
15041   ac_cv_cpp_def___sun__=no
15042 fi
15043 rm -f conftest*
15044
15045 fi
15046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sun__" >&5
15047 $as_echo "$ac_cv_cpp_def___sun__" >&6; }
15048 if test $ac_cv_cpp_def___sun__ = yes; then :
15049   CFLAGS="$CFLAGS -D__sun__"
15050   LINTFLAGS="$LINTFLAGS -D__sun__"
15051 fi ;;
15052 esac
15053
15054
15055
15056
15057
15058 ac_config_commands="$ac_config_commands include/stamp-h"
15059
15060
15061 ALL_MAKEFILE_DEPENDS="
15062 # Rules automatically generated by configure
15063
15064 .INIT: Makefile
15065 .MAKEFILEDEPS:
15066 all: Makefile
15067 Makefile: Makefile.in Make.vars.in Make.rules config.status
15068         @./config.status Make.tmp Makefile"
15069
15070 ALL_POT_FILES=""
15071 ALL_TEST_RESOURCES=""
15072
15073
15074 wine_fn_append_file ()
15075 {
15076     as_fn_append $1 " \\$as_nl  $2"
15077 }
15078
15079 wine_fn_append_rule ()
15080 {
15081     as_fn_append $1 "$as_nl$2"
15082 }
15083
15084 wine_fn_has_flag ()
15085 {
15086     expr ",$2," : ".*,$1,.*" >/dev/null
15087 }
15088
15089 wine_fn_all_dir_rules ()
15090 {
15091     ac_dir=$1
15092     ac_alldeps=$2
15093     ac_makedep="\$(MAKEDEP)"
15094     ac_input=Make.vars.in:$ac_dir/Makefile.in
15095     if test $ac_dir != tools
15096     then
15097                 ac_alldeps="$2 $ac_makedep"
15098     else
15099         ac_alldeps="$2 include/config.h"
15100     fi
15101     case $2 in
15102       *.in) ac_input=$ac_input:$2 ;;
15103       *) ac_makedep="$2 $ac_makedep" ;;
15104     esac
15105
15106     wine_fn_append_file ALL_DIRS $ac_dir
15107     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15108 "__clean__: $ac_dir/__clean__
15109 .PHONY: $ac_dir/__clean__
15110 $ac_dir/__clean__: $ac_dir/Makefile
15111         @cd $ac_dir && \$(MAKE) clean
15112         \$(RM) $ac_dir/Makefile
15113 $ac_dir/Makefile: $ac_dir/Makefile.in Make.vars.in config.status $ac_alldeps
15114         @./config.status --file $ac_dir/Makefile:$ac_input && cd $ac_dir && \$(MAKE) depend
15115 depend: $ac_dir/__depend__
15116 .PHONY: $ac_dir/__depend__
15117 $ac_dir/__depend__: $ac_makedep dummy
15118         @./config.status --file $ac_dir/Makefile:$ac_input && cd $ac_dir && \$(MAKE) depend"
15119 }
15120
15121 wine_fn_pot_rules ()
15122 {
15123     ac_dir=$1
15124     ac_flags=$2
15125
15126     test "x$with_gettextpo" = xyes || return
15127
15128     if wine_fn_has_flag mc $ac_flags
15129     then
15130         wine_fn_append_file ALL_POT_FILES $ac_dir/msg.pot
15131         wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15132 "$ac_dir/msg.pot: $ac_dir/Makefile dummy
15133         @cd $ac_dir && \$(MAKE) msg.pot
15134 $ac_dir/msg.pot: tools/wmc include"
15135     fi
15136     if wine_fn_has_flag po $ac_flags
15137     then
15138         wine_fn_append_file ALL_POT_FILES $ac_dir/rsrc.pot
15139         wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15140 "$ac_dir/rsrc.pot: $ac_dir/Makefile dummy
15141         @cd $ac_dir && \$(MAKE) rsrc.pot
15142 $ac_dir/rsrc.pot: tools/wrc include"
15143     fi
15144 }
15145
15146 wine_fn_config_makefile ()
15147 {
15148     ac_dir=$1
15149     ac_enable=$2
15150     ac_flags=$3
15151     ac_rules=$4
15152     if eval test \"x\$"$ac_enable"\" = x"no"; then :
15153   return 0
15154 fi
15155
15156     wine_fn_all_dir_rules $ac_dir ${ac_rules:-Make.rules}
15157     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15158 "all: $ac_dir
15159 .PHONY: $ac_dir
15160 $ac_dir: $ac_dir/Makefile dummy
15161         @cd $ac_dir && \$(MAKE)"
15162
15163     wine_fn_has_flag install-lib $ac_flags || wine_fn_has_flag install-dev $ac_flags || return
15164
15165     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15166 ".PHONY: $ac_dir/__install__ $ac_dir/__uninstall__
15167 $ac_dir/__install__:: $ac_dir
15168         @cd $ac_dir && \$(MAKE) install
15169 $ac_dir/__uninstall__:: $ac_dir/Makefile
15170         @cd $ac_dir && \$(MAKE) uninstall
15171 install:: $ac_dir/__install__
15172 __uninstall__: $ac_dir/__uninstall__"
15173
15174     if wine_fn_has_flag install-lib $ac_flags
15175     then
15176         wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15177 ".PHONY: $ac_dir/__install-lib__
15178 $ac_dir/__install-lib__:: $ac_dir
15179         @cd $ac_dir && \$(MAKE) install-lib
15180 install-lib:: $ac_dir/__install-lib__"
15181     fi
15182
15183     if wine_fn_has_flag install-dev $ac_flags
15184     then
15185         wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15186 ".PHONY: $ac_dir/__install-dev
15187 $ac_dir/__install-dev__:: $ac_dir
15188         @cd $ac_dir && \$(MAKE) install-dev
15189 install-dev:: $ac_dir/__install-dev__"
15190     fi
15191 }
15192
15193 wine_fn_config_lib ()
15194 {
15195     ac_name=$1
15196     ac_flags=$2
15197     ac_dir=dlls/$ac_name
15198     wine_fn_config_makefile $ac_dir enable_$ac_name "$ac_flags" dlls/Makeimplib.rules
15199
15200     if wine_fn_has_flag install-dev $ac_flags
15201     then :
15202     else
15203         wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15204 ".PHONY: $ac_dir/__install__ $ac_dir/__uninstall__
15205 $ac_dir/__install__:: $ac_dir \$(DESTDIR)\$(dlldir)
15206         \$(INSTALL_DATA) $ac_dir/lib$ac_name.a \$(DESTDIR)\$(dlldir)/lib$ac_name.a
15207 $ac_dir/__uninstall__::
15208         \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_name.a
15209 install install-dev:: $ac_dir/__install__
15210 __uninstall__: $ac_dir/__uninstall__"
15211     fi
15212
15213     wine_fn_append_rule ALL_MAKEFILE_DEPENDS "__builddeps__: $ac_dir"
15214     wine_fn_append_rule ALL_MAKEFILE_DEPENDS "$ac_dir: tools/widl tools/winebuild tools/winegcc include"
15215 }
15216
15217 wine_fn_config_dll ()
15218 {
15219     ac_name=$1
15220     ac_dir=dlls/$ac_name
15221     ac_enable=$2
15222     ac_flags=$3
15223     ac_implib=${4:-$ac_name}
15224     ac_file=$ac_dir/lib$ac_implib
15225     ac_dll=$ac_name
15226     ac_deps="tools/widl tools/winebuild tools/winegcc include"
15227     ac_implibflags=""
15228
15229     case $ac_name in
15230       *16) ac_implibflags=" -m16" ;;
15231       *.*) ;;
15232       *)   ac_dll=$ac_dll.dll ;;
15233     esac
15234
15235     wine_fn_config_makefile $ac_dir $ac_enable "$ac_flags" dlls/Makedll.rules
15236
15237     if eval test \"x\$"$ac_enable"\" = x"no"; then :
15238                 test "$ac_enable" != enable_win16 || return 0
15239                wine_fn_has_flag implib $ac_flags && wine_fn_all_dir_rules $ac_dir dlls/Makedll.rules
15240 else
15241   wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15242 "$ac_dir: __builddeps__
15243 manpages htmlpages sgmlpages xmlpages:: $ac_dir/Makefile
15244         @cd $ac_dir && \$(MAKE) \$@"
15245
15246         if wine_fn_has_flag install-lib $ac_flags
15247         then :
15248         else
15249             wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15250 ".PHONY: $ac_dir/__install-lib__ $ac_dir/__uninstall__
15251 install install-lib:: $ac_dir/__install-lib__
15252 __uninstall__: $ac_dir/__uninstall__"
15253             if test -n "$DLLEXT"
15254             then
15255                 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15256 "$ac_dir/__install-lib__:: $ac_dir \$(DESTDIR)\$(dlldir) \$(DESTDIR)\$(fakedlldir)
15257         \$(INSTALL_PROGRAM) $ac_dir/$ac_dll$DLLEXT \$(DESTDIR)\$(dlldir)/$ac_dll$DLLEXT
15258         \$(INSTALL_DATA) $ac_dir/$ac_dll.fake \$(DESTDIR)\$(fakedlldir)/$ac_dll
15259 $ac_dir/__uninstall__::
15260         \$(RM) \$(DESTDIR)\$(dlldir)/$ac_dll$DLLEXT \$(DESTDIR)\$(fakedlldir)/$ac_dll"
15261             else
15262                 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15263 "$ac_dir/__install-lib__:: $ac_dir \$(DESTDIR)\$(dlldir)
15264         \$(INSTALL_PROGRAM) $ac_dir/$ac_dll \$(DESTDIR)\$(dlldir)/$ac_dll
15265 $ac_dir/__uninstall__::
15266         \$(RM) \$(DESTDIR)\$(dlldir)/$ac_dll"
15267             fi
15268         fi
15269
15270         wine_fn_pot_rules $ac_dir $ac_flags
15271 fi
15272
15273     if wine_fn_has_flag staticimplib $ac_flags
15274     then
15275         wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15276 "__builddeps__: $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT
15277 $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT $ac_file.cross.a: $ac_deps
15278 $ac_file.def: $ac_dir/$ac_name.spec $ac_dir/Makefile
15279         @cd $ac_dir && \$(MAKE) lib$ac_implib.def
15280 $ac_file.$STATIC_IMPLIBEXT: $ac_dir/Makefile dummy
15281         @cd $ac_dir && \$(MAKE) lib$ac_implib.$STATIC_IMPLIBEXT
15282 .PHONY: $ac_dir/__install-dev__ $ac_dir/__uninstall__
15283 $ac_dir/__install-dev__:: $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)
15284         \$(INSTALL_DATA) $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
15285 $ac_dir/__uninstall__::
15286         \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
15287 install install-dev:: $ac_dir/__install-dev__
15288 __uninstall__: $ac_dir/__uninstall__"
15289
15290         if test "$IMPLIBEXT" != "$STATIC_IMPLIBEXT"
15291         then
15292             wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15293 "$ac_dir/__install-dev__:: $ac_file.$STATIC_IMPLIBEXT \$(DESTDIR)\$(dlldir) __builddeps__
15294         \$(INSTALL_DATA) $ac_file.$STATIC_IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$STATIC_IMPLIBEXT
15295 $ac_dir/__uninstall__::
15296         \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$STATIC_IMPLIBEXT"
15297         fi
15298
15299         if test "x$CROSSTEST_DISABLE" = x
15300         then
15301             wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15302 "__builddeps__: $ac_file.cross.a
15303 $ac_file.cross.a: $ac_dir/Makefile dummy
15304         @cd $ac_dir && \$(MAKE) lib$ac_implib.cross.a"
15305         fi
15306
15307     elif wine_fn_has_flag implib $ac_flags
15308     then
15309         wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15310 "__builddeps__: $ac_file.$IMPLIBEXT
15311 $ac_file.def: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
15312         \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --def -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec
15313 $ac_file.a: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
15314         \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --implib -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec
15315 .PHONY: $ac_dir/__install-dev__ $ac_dir/__uninstall__
15316 $ac_dir/__install-dev__:: $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)
15317         \$(INSTALL_DATA) $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
15318 $ac_dir/__uninstall__::
15319         \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
15320 install install-dev:: $ac_dir/__install-dev__
15321 __uninstall__: $ac_dir/__uninstall__"
15322         if test "x$CROSSTEST_DISABLE" = x
15323         then
15324             wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15325 "__builddeps__: $ac_file.cross.a
15326 $ac_file.cross.a: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
15327         \$(WINEBUILD) \$(CROSSTARGET:%=-b %)$ac_implibflags -w --implib -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec"
15328         fi
15329
15330         if test "$ac_name" != "$ac_implib"
15331         then
15332             wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15333 "__builddeps__: dlls/lib$ac_implib.$IMPLIBEXT
15334 dlls/lib$ac_implib.$IMPLIBEXT: $ac_file.$IMPLIBEXT
15335         \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.$IMPLIBEXT \$@
15336 clean::
15337         \$(RM) dlls/lib$ac_implib.$IMPLIBEXT"
15338             if test "x$CROSSTEST_DISABLE" = x
15339             then
15340                 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15341 "__builddeps__: dlls/lib$ac_implib.cross.a
15342 dlls/lib$ac_implib.cross.a: $ac_file.cross.a
15343         \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.cross.a \$@"
15344             fi
15345         fi
15346     fi
15347 }
15348
15349 wine_fn_config_program ()
15350 {
15351     ac_name=$1
15352     ac_dir=programs/$ac_name
15353     ac_enable=$2
15354     ac_flags=$3
15355     ac_program=$ac_name
15356
15357     case $ac_name in
15358       *.*) ;;
15359       *)   ac_program=$ac_program.exe ;;
15360     esac
15361
15362     wine_fn_config_makefile $ac_dir $ac_enable "$ac_flags" programs/Makeprog.rules
15363
15364     if eval test \"x\$"$ac_enable"\" = x"no"; then :
15365
15366 else
15367   wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15368 "$ac_dir: __builddeps__"
15369
15370     wine_fn_pot_rules $ac_dir $ac_flags
15371
15372     wine_fn_has_flag install $ac_flags || return
15373     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15374 ".PHONY: $ac_dir/__install__ $ac_dir/__uninstall__
15375 install install-lib:: $ac_dir/__install__
15376 __uninstall__: $ac_dir/__uninstall__"
15377
15378     if test -n "$DLLEXT"
15379     then
15380         wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15381 "$ac_dir/__install__:: $ac_dir \$(DESTDIR)\$(dlldir) \$(DESTDIR)\$(fakedlldir)
15382         \$(INSTALL_PROGRAM) $ac_dir/$ac_program$DLLEXT \$(DESTDIR)\$(dlldir)/$ac_program$DLLEXT
15383         \$(INSTALL_DATA) $ac_dir/$ac_program.fake \$(DESTDIR)\$(fakedlldir)/$ac_program
15384 $ac_dir/__uninstall__::
15385         \$(RM) \$(DESTDIR)\$(dlldir)/$ac_program$DLLEXT \$(DESTDIR)\$(fakedlldir)/$ac_program"
15386
15387         if test "x$enable_tools" != xno && wine_fn_has_flag installbin $ac_flags
15388         then
15389             wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15390 "$ac_dir/__install__:: tools \$(DESTDIR)\$(bindir)
15391         \$(INSTALL_SCRIPT) tools/wineapploader \$(DESTDIR)\$(bindir)/$ac_name
15392 $ac_dir/__uninstall__::
15393         \$(RM) \$(DESTDIR)\$(bindir)/$ac_name"
15394         fi
15395     else
15396         wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15397 "$ac_dir/__install-lib__:: $ac_dir \$(DESTDIR)\$(dlldir)
15398         \$(INSTALL_PROGRAM) $ac_dir/$ac_program \$(DESTDIR)\$(dlldir)/$ac_program
15399 $ac_dir/__uninstall__::
15400         \$(RM) \$(DESTDIR)\$(dlldir)/$ac_program"
15401     fi
15402
15403     if test "x$enable_tools" != xno && wine_fn_has_flag manpage $ac_flags
15404     then
15405         wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15406 "$ac_dir/__install__:: $ac_dir \$(DESTDIR)\$(mandir)/man\$(prog_manext)
15407         \$(INSTALL_DATA) $ac_dir/$ac_name.man \$(DESTDIR)\$(mandir)/man\$(prog_manext)/$ac_name.\$(prog_manext)
15408 $ac_dir/__uninstall__::
15409         \$(RM) \$(DESTDIR)\$(mandir)/man\$(prog_manext)/$ac_name.\$(prog_manext)"
15410     fi
15411 fi
15412 }
15413
15414 wine_fn_config_test ()
15415 {
15416     ac_dir=$1
15417     ac_name=$2
15418     ac_flags=$3
15419     wine_fn_append_file ALL_TEST_RESOURCES $ac_name.res
15420     wine_fn_all_dir_rules $ac_dir Maketest.rules
15421
15422     if test "x$enable_tests" = xno; then :
15423
15424 else
15425   wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15426 "all: $ac_dir
15427 .PHONY: $ac_dir
15428 $ac_dir: $ac_dir/Makefile programs/winetest/Makefile __builddeps__ dummy
15429         @cd $ac_dir && \$(MAKE)
15430 programs/winetest: $ac_dir
15431 check test: $ac_dir/__test__
15432 .PHONY: $ac_dir/__test__
15433 $ac_dir/__test__: dummy
15434         @cd $ac_dir && \$(MAKE) test
15435 testclean::
15436         \$(RM) $ac_dir/*.ok"
15437
15438         if test "x$CROSSTEST_DISABLE" = x
15439         then
15440             wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15441 "crosstest: $ac_dir/__crosstest__
15442 .PHONY: $ac_dir/__crosstest__
15443 $ac_dir/__crosstest__: $ac_dir/Makefile __builddeps__ dummy
15444         @cd $ac_dir && \$(MAKE) crosstest"
15445         fi
15446 fi
15447 }
15448
15449 wine_fn_config_tool ()
15450 {
15451     ac_dir=$1
15452     ac_flags=$2
15453     if test "x$enable_tools" = xno; then :
15454   return 0
15455 fi
15456
15457     wine_fn_config_makefile $ac_dir enable_tools $ac_flags
15458
15459     wine_fn_append_rule ALL_MAKEFILE_DEPENDS "__tooldeps__: $ac_dir"
15460     wine_fn_append_rule ALL_MAKEFILE_DEPENDS "$ac_dir: libs/port"
15461     case $ac_dir in
15462       tools/winebuild) wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(WINEBUILD): $ac_dir" ;;
15463     esac
15464 }
15465
15466 wine_fn_config_makerules ()
15467 {
15468     ac_rules=$1
15469     ac_deps=$2
15470     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15471 "$ac_rules: $ac_rules.in $ac_deps config.status
15472         @./config.status $ac_rules
15473 distclean::
15474         \$(RM) $ac_rules"
15475 }
15476
15477 wine_fn_config_symlink ()
15478 {
15479     ac_link=$1
15480     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15481 "$ac_link:
15482         @./config.status $ac_link
15483 distclean::
15484         \$(RM) $ac_link"
15485 }
15486
15487 if test "x$CROSSTEST_DISABLE" != x
15488 then
15489     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15490 "crosstest:
15491         @echo \"crosstest is not supported (mingw not installed?)\" && false"
15492 fi
15493 ac_config_links="$ac_config_links dlls/shell32/AUTHORS:AUTHORS"
15494 wine_fn_config_symlink dlls/shell32/AUTHORS
15495 ac_config_links="$ac_config_links dlls/wineps.drv/generic.ppd:dlls/wineps.drv/generic.ppd"
15496 test "$srcdir" = "." || wine_fn_config_symlink dlls/wineps.drv/generic.ppd
15497 if test "x$enable_fonts" != xno; then
15498 ac_config_links="$ac_config_links fonts/marlett.ttf:fonts/marlett.ttf"
15499 test "$srcdir" = "." || wine_fn_config_symlink fonts/marlett.ttf
15500 fi
15501 if test "x$enable_fonts" != xno; then
15502 ac_config_links="$ac_config_links fonts/symbol.ttf:fonts/symbol.ttf"
15503 test "$srcdir" = "." || wine_fn_config_symlink fonts/symbol.ttf
15504 fi
15505 if test "x$enable_fonts" != xno; then
15506 ac_config_links="$ac_config_links fonts/tahoma.ttf:fonts/tahoma.ttf"
15507 test "$srcdir" = "." || wine_fn_config_symlink fonts/tahoma.ttf
15508 fi
15509 if test "x$enable_fonts" != xno; then
15510 ac_config_links="$ac_config_links fonts/tahomabd.ttf:fonts/tahomabd.ttf"
15511 test "$srcdir" = "." || wine_fn_config_symlink fonts/tahomabd.ttf
15512 fi
15513 ac_config_links="$ac_config_links po/LINGUAS:po/LINGUAS"
15514 test "$srcdir" = "." || wine_fn_config_symlink po/LINGUAS
15515 if test "x$enable_tools" != xno; then
15516 ac_config_links="$ac_config_links tools/l_intl.nls:tools/l_intl.nls"
15517 test "$srcdir" = "." || wine_fn_config_symlink tools/l_intl.nls
15518 fi
15519 ac_config_links="$ac_config_links wine:tools/winewrapper"
15520 wine_fn_config_symlink wine
15521 if test "x$enable_win64" != xno; then
15522 ac_config_links="$ac_config_links wine64:tools/winewrapper"
15523 wine_fn_config_symlink wine64
15524 fi
15525
15526 ac_config_commands="$ac_config_commands dlls/gdi32/dibdrv"
15527
15528 ac_config_commands="$ac_config_commands dlls/gdi32/enhmfdrv"
15529
15530 ac_config_commands="$ac_config_commands dlls/gdi32/mfdrv"
15531
15532 ac_config_commands="$ac_config_commands dlls/kernel32/nls"
15533
15534 ac_config_commands="$ac_config_commands dlls/user32/resources"
15535
15536 ac_config_commands="$ac_config_commands dlls/wineps.drv/data"
15537
15538 ac_config_commands="$ac_config_commands include/wine"
15539
15540
15541 wine_fn_config_makerules Make.rules
15542 MAKE_RULES=Make.rules
15543 ac_config_files="$ac_config_files Make.rules"
15544
15545 wine_fn_config_makerules Maketest.rules Make.rules
15546 MAKE_TEST_RULES=Maketest.rules
15547 ac_config_files="$ac_config_files Maketest.rules"
15548
15549 wine_fn_config_makerules dlls/Makedll.rules Make.rules
15550 MAKE_DLL_RULES=dlls/Makedll.rules
15551 ac_config_files="$ac_config_files dlls/Makedll.rules"
15552
15553 wine_fn_config_makerules dlls/Makeimplib.rules Make.rules
15554 MAKE_IMPLIB_RULES=dlls/Makeimplib.rules
15555 ac_config_files="$ac_config_files dlls/Makeimplib.rules"
15556
15557 wine_fn_config_makerules programs/Makeprog.rules Make.rules
15558 MAKE_PROG_RULES=programs/Makeprog.rules
15559 ac_config_files="$ac_config_files programs/Makeprog.rules"
15560
15561
15562 wine_fn_config_dll acledit enable_acledit
15563 wine_fn_config_dll aclui enable_aclui implib
15564 wine_fn_config_dll activeds enable_activeds implib
15565 wine_fn_config_dll actxprxy enable_actxprxy
15566 wine_fn_config_lib adsiid
15567 wine_fn_config_dll advapi32 enable_advapi32 implib
15568 wine_fn_config_test dlls/advapi32/tests advapi32_test
15569 wine_fn_config_dll advpack enable_advpack implib
15570 wine_fn_config_test dlls/advpack/tests advpack_test
15571 wine_fn_config_dll amstream enable_amstream
15572 wine_fn_config_test dlls/amstream/tests amstream_test
15573 wine_fn_config_dll api-ms-win-core-winrt-error-l1-1-0 enable_api_ms_win_core_winrt_error_l1_1_0
15574 wine_fn_config_dll api-ms-win-core-winrt-string-l1-1-0 enable_api_ms_win_core_winrt_string_l1_1_0
15575 wine_fn_config_dll api-ms-win-downlevel-advapi32-l1-1-0 enable_api_ms_win_downlevel_advapi32_l1_1_0
15576 wine_fn_config_dll api-ms-win-downlevel-advapi32-l2-1-0 enable_api_ms_win_downlevel_advapi32_l2_1_0
15577 wine_fn_config_dll api-ms-win-downlevel-normaliz-l1-1-0 enable_api_ms_win_downlevel_normaliz_l1_1_0
15578 wine_fn_config_dll api-ms-win-downlevel-ole32-l1-1-0 enable_api_ms_win_downlevel_ole32_l1_1_0
15579 wine_fn_config_dll api-ms-win-downlevel-shell32-l1-1-0 enable_api_ms_win_downlevel_shell32_l1_1_0
15580 wine_fn_config_dll api-ms-win-downlevel-shlwapi-l1-1-0 enable_api_ms_win_downlevel_shlwapi_l1_1_0
15581 wine_fn_config_dll api-ms-win-downlevel-shlwapi-l2-1-0 enable_api_ms_win_downlevel_shlwapi_l2_1_0
15582 wine_fn_config_dll api-ms-win-downlevel-user32-l1-1-0 enable_api_ms_win_downlevel_user32_l1_1_0
15583 wine_fn_config_dll api-ms-win-downlevel-version-l1-1-0 enable_api_ms_win_downlevel_version_l1_1_0
15584 wine_fn_config_dll api-ms-win-security-base-l1-1-0 enable_api_ms_win_security_base_l1_1_0
15585 wine_fn_config_dll apphelp enable_apphelp
15586 wine_fn_config_test dlls/apphelp/tests apphelp_test
15587 wine_fn_config_dll appwiz.cpl enable_appwiz_cpl po
15588 wine_fn_config_dll atl enable_atl implib
15589 wine_fn_config_test dlls/atl/tests atl_test
15590 wine_fn_config_dll atl100 enable_atl100 implib
15591 wine_fn_config_test dlls/atl100/tests atl100_test
15592 wine_fn_config_dll atl80 enable_atl80 implib
15593 wine_fn_config_dll authz enable_authz
15594 wine_fn_config_dll avicap32 enable_avicap32 implib
15595 wine_fn_config_dll avifil32 enable_avifil32 implib,po
15596 wine_fn_config_test dlls/avifil32/tests avifil32_test
15597 wine_fn_config_dll avifile.dll16 enable_win16
15598 wine_fn_config_dll avrt enable_avrt implib
15599 wine_fn_config_dll bcrypt enable_bcrypt
15600 wine_fn_config_dll browseui enable_browseui po
15601 wine_fn_config_test dlls/browseui/tests browseui_test
15602 wine_fn_config_dll cabinet enable_cabinet implib
15603 wine_fn_config_test dlls/cabinet/tests cabinet_test
15604 wine_fn_config_dll capi2032 enable_capi2032 implib
15605 wine_fn_config_dll cards enable_cards implib
15606 wine_fn_config_dll cfgmgr32 enable_cfgmgr32 implib
15607 wine_fn_config_dll clusapi enable_clusapi implib
15608 wine_fn_config_dll comcat enable_comcat
15609 wine_fn_config_test dlls/comcat/tests comcat_test
15610 wine_fn_config_dll comctl32 enable_comctl32 implib,po
15611 wine_fn_config_test dlls/comctl32/tests comctl32_test
15612 wine_fn_config_dll comdlg32 enable_comdlg32 implib,po
15613 wine_fn_config_test dlls/comdlg32/tests comdlg32_test
15614 wine_fn_config_dll comm.drv16 enable_win16
15615 wine_fn_config_dll commdlg.dll16 enable_win16
15616 wine_fn_config_dll compobj.dll16 enable_win16
15617 wine_fn_config_dll compstui enable_compstui implib
15618 wine_fn_config_dll credui enable_credui implib,po
15619 wine_fn_config_test dlls/credui/tests credui_test
15620 wine_fn_config_dll crtdll enable_crtdll implib
15621 wine_fn_config_dll crypt32 enable_crypt32 implib,po
15622 wine_fn_config_test dlls/crypt32/tests crypt32_test
15623 wine_fn_config_dll cryptdlg enable_cryptdlg po
15624 wine_fn_config_dll cryptdll enable_cryptdll implib
15625 wine_fn_config_dll cryptnet enable_cryptnet implib
15626 wine_fn_config_test dlls/cryptnet/tests cryptnet_test
15627 wine_fn_config_dll cryptui enable_cryptui implib,po
15628 wine_fn_config_test dlls/cryptui/tests cryptui_test
15629 wine_fn_config_dll ctapi32 enable_ctapi32
15630 wine_fn_config_dll ctl3d.dll16 enable_win16
15631 wine_fn_config_dll ctl3d32 enable_ctl3d32 implib
15632 wine_fn_config_dll ctl3dv2.dll16 enable_win16
15633 wine_fn_config_dll d3d10 enable_d3d10 implib
15634 wine_fn_config_test dlls/d3d10/tests d3d10_test
15635 wine_fn_config_dll d3d10core enable_d3d10core implib
15636 wine_fn_config_test dlls/d3d10core/tests d3d10core_test
15637 wine_fn_config_dll d3d11 enable_d3d11
15638 wine_fn_config_dll d3d8 enable_d3d8 implib
15639 wine_fn_config_test dlls/d3d8/tests d3d8_test
15640 wine_fn_config_dll d3d9 enable_d3d9 implib
15641 wine_fn_config_test dlls/d3d9/tests d3d9_test
15642 wine_fn_config_dll d3dcompiler_33 enable_d3dcompiler_33
15643 wine_fn_config_dll d3dcompiler_34 enable_d3dcompiler_34
15644 wine_fn_config_dll d3dcompiler_35 enable_d3dcompiler_35
15645 wine_fn_config_dll d3dcompiler_36 enable_d3dcompiler_36
15646 wine_fn_config_dll d3dcompiler_37 enable_d3dcompiler_37
15647 wine_fn_config_dll d3dcompiler_38 enable_d3dcompiler_38
15648 wine_fn_config_dll d3dcompiler_39 enable_d3dcompiler_39
15649 wine_fn_config_dll d3dcompiler_40 enable_d3dcompiler_40
15650 wine_fn_config_dll d3dcompiler_41 enable_d3dcompiler_41
15651 wine_fn_config_dll d3dcompiler_42 enable_d3dcompiler_42
15652 wine_fn_config_dll d3dcompiler_43 enable_d3dcompiler_43 implib d3dcompiler
15653 wine_fn_config_test dlls/d3dcompiler_43/tests d3dcompiler_43_test
15654 wine_fn_config_dll d3dim enable_d3dim implib
15655 wine_fn_config_dll d3drm enable_d3drm implib
15656 wine_fn_config_test dlls/d3drm/tests d3drm_test
15657 wine_fn_config_dll d3dx10_33 enable_d3dx10_33
15658 wine_fn_config_dll d3dx10_34 enable_d3dx10_34
15659 wine_fn_config_dll d3dx10_35 enable_d3dx10_35
15660 wine_fn_config_dll d3dx10_36 enable_d3dx10_36
15661 wine_fn_config_dll d3dx10_37 enable_d3dx10_37
15662 wine_fn_config_dll d3dx10_38 enable_d3dx10_38
15663 wine_fn_config_dll d3dx10_39 enable_d3dx10_39
15664 wine_fn_config_dll d3dx10_40 enable_d3dx10_40
15665 wine_fn_config_dll d3dx10_41 enable_d3dx10_41
15666 wine_fn_config_dll d3dx10_42 enable_d3dx10_42
15667 wine_fn_config_dll d3dx10_43 enable_d3dx10_43
15668 wine_fn_config_dll d3dx9_24 enable_d3dx9_24
15669 wine_fn_config_dll d3dx9_25 enable_d3dx9_25
15670 wine_fn_config_dll d3dx9_26 enable_d3dx9_26
15671 wine_fn_config_dll d3dx9_27 enable_d3dx9_27
15672 wine_fn_config_dll d3dx9_28 enable_d3dx9_28
15673 wine_fn_config_dll d3dx9_29 enable_d3dx9_29
15674 wine_fn_config_dll d3dx9_30 enable_d3dx9_30
15675 wine_fn_config_dll d3dx9_31 enable_d3dx9_31
15676 wine_fn_config_dll d3dx9_32 enable_d3dx9_32
15677 wine_fn_config_dll d3dx9_33 enable_d3dx9_33
15678 wine_fn_config_dll d3dx9_34 enable_d3dx9_34
15679 wine_fn_config_dll d3dx9_35 enable_d3dx9_35
15680 wine_fn_config_dll d3dx9_36 enable_d3dx9_36 implib d3dx9
15681 wine_fn_config_test dlls/d3dx9_36/tests d3dx9_36_test
15682 wine_fn_config_dll d3dx9_37 enable_d3dx9_37
15683 wine_fn_config_dll d3dx9_38 enable_d3dx9_38
15684 wine_fn_config_dll d3dx9_39 enable_d3dx9_39
15685 wine_fn_config_dll d3dx9_40 enable_d3dx9_40
15686 wine_fn_config_dll d3dx9_41 enable_d3dx9_41
15687 wine_fn_config_dll d3dx9_42 enable_d3dx9_42
15688 wine_fn_config_dll d3dx9_43 enable_d3dx9_43
15689 wine_fn_config_dll d3dxof enable_d3dxof implib
15690 wine_fn_config_test dlls/d3dxof/tests d3dxof_test
15691 wine_fn_config_dll dbgeng enable_dbgeng implib
15692 wine_fn_config_dll dbghelp enable_dbghelp implib
15693 wine_fn_config_dll dciman32 enable_dciman32 implib
15694 wine_fn_config_dll ddeml.dll16 enable_win16
15695 wine_fn_config_dll ddraw enable_ddraw implib
15696 wine_fn_config_test dlls/ddraw/tests ddraw_test
15697 wine_fn_config_dll ddrawex enable_ddrawex
15698 wine_fn_config_test dlls/ddrawex/tests ddrawex_test
15699 wine_fn_config_dll devenum enable_devenum po
15700 wine_fn_config_test dlls/devenum/tests devenum_test
15701 wine_fn_config_dll dhcpcsvc enable_dhcpcsvc
15702 wine_fn_config_dll dinput enable_dinput implib,po,staticimplib
15703 wine_fn_config_test dlls/dinput/tests dinput_test
15704 wine_fn_config_dll dinput8 enable_dinput8 implib
15705 wine_fn_config_test dlls/dinput8/tests dinput8_test
15706 wine_fn_config_dll dispdib.dll16 enable_win16
15707 wine_fn_config_dll dispex enable_dispex
15708 wine_fn_config_test dlls/dispex/tests dispex_test
15709 wine_fn_config_dll display.drv16 enable_win16
15710 wine_fn_config_dll dmband enable_dmband
15711 wine_fn_config_test dlls/dmband/tests dmband_test
15712 wine_fn_config_dll dmcompos enable_dmcompos
15713 wine_fn_config_dll dmime enable_dmime
15714 wine_fn_config_test dlls/dmime/tests dmime_test
15715 wine_fn_config_dll dmloader enable_dmloader
15716 wine_fn_config_test dlls/dmloader/tests dmloader_test
15717 wine_fn_config_dll dmscript enable_dmscript
15718 wine_fn_config_dll dmstyle enable_dmstyle
15719 wine_fn_config_dll dmsynth enable_dmsynth
15720 wine_fn_config_test dlls/dmsynth/tests dmsynth_test
15721 wine_fn_config_dll dmusic enable_dmusic
15722 wine_fn_config_test dlls/dmusic/tests dmusic_test
15723 wine_fn_config_dll dmusic32 enable_dmusic32 implib
15724 wine_fn_config_dll dnsapi enable_dnsapi implib
15725 wine_fn_config_test dlls/dnsapi/tests dnsapi_test
15726 wine_fn_config_dll dplay enable_dplay implib
15727 wine_fn_config_dll dplayx enable_dplayx implib
15728 wine_fn_config_test dlls/dplayx/tests dplayx_test
15729 wine_fn_config_dll dpnaddr enable_dpnaddr
15730 wine_fn_config_dll dpnet enable_dpnet implib
15731 wine_fn_config_test dlls/dpnet/tests dpnet_test
15732 wine_fn_config_dll dpnhpast enable_dpnhpast
15733 wine_fn_config_dll dpnlobby enable_dpnlobby
15734 wine_fn_config_dll dpwsockx enable_dpwsockx
15735 wine_fn_config_dll drmclien enable_drmclien
15736 wine_fn_config_dll dsound enable_dsound implib
15737 wine_fn_config_test dlls/dsound/tests dsound_test
15738 wine_fn_config_dll dssenh enable_dssenh
15739 wine_fn_config_test dlls/dssenh/tests dssenh_test
15740 wine_fn_config_dll dswave enable_dswave
15741 wine_fn_config_dll dwmapi enable_dwmapi implib
15742 wine_fn_config_dll dwrite enable_dwrite implib
15743 wine_fn_config_test dlls/dwrite/tests dwrite_test
15744 wine_fn_config_dll dxdiagn enable_dxdiagn po
15745 wine_fn_config_test dlls/dxdiagn/tests dxdiagn_test
15746 wine_fn_config_lib dxerr8
15747 wine_fn_config_lib dxerr9
15748 wine_fn_config_dll dxgi enable_dxgi implib
15749 wine_fn_config_test dlls/dxgi/tests dxgi_test
15750 wine_fn_config_lib dxguid
15751 wine_fn_config_dll explorerframe enable_explorerframe
15752 wine_fn_config_test dlls/explorerframe/tests explorerframe_test
15753 wine_fn_config_dll faultrep enable_faultrep implib
15754 wine_fn_config_test dlls/faultrep/tests faultrep_test
15755 wine_fn_config_dll fltlib enable_fltlib
15756 wine_fn_config_dll fusion enable_fusion
15757 wine_fn_config_test dlls/fusion/tests fusion_test
15758 wine_fn_config_dll fwpuclnt enable_fwpuclnt
15759 wine_fn_config_dll gameux enable_gameux
15760 wine_fn_config_test dlls/gameux/tests gameux_test
15761 wine_fn_config_dll gdi.exe16 enable_win16
15762 wine_fn_config_dll gdi32 enable_gdi32 implib,po
15763 wine_fn_config_test dlls/gdi32/tests gdi32_test
15764 wine_fn_config_dll gdiplus enable_gdiplus implib
15765 wine_fn_config_test dlls/gdiplus/tests gdiplus_test
15766 wine_fn_config_dll glu32 enable_glu32 implib
15767 wine_fn_config_dll gphoto2.ds enable_gphoto2_ds po
15768 wine_fn_config_dll gpkcsp enable_gpkcsp
15769 wine_fn_config_dll hal enable_hal
15770 wine_fn_config_dll hhctrl.ocx enable_hhctrl_ocx implib,po htmlhelp
15771 wine_fn_config_dll hid enable_hid implib
15772 wine_fn_config_dll hlink enable_hlink implib
15773 wine_fn_config_test dlls/hlink/tests hlink_test
15774 wine_fn_config_dll hnetcfg enable_hnetcfg
15775 wine_fn_config_dll httpapi enable_httpapi
15776 wine_fn_config_dll iccvid enable_iccvid po
15777 wine_fn_config_dll icmp enable_icmp
15778 wine_fn_config_dll ieframe enable_ieframe implib,po
15779 wine_fn_config_test dlls/ieframe/tests ieframe_test
15780 wine_fn_config_dll ifsmgr.vxd enable_win16
15781 wine_fn_config_dll imaadp32.acm enable_imaadp32_acm
15782 wine_fn_config_dll imagehlp enable_imagehlp implib
15783 wine_fn_config_test dlls/imagehlp/tests imagehlp_test
15784 wine_fn_config_dll imm.dll16 enable_win16
15785 wine_fn_config_dll imm32 enable_imm32 implib
15786 wine_fn_config_test dlls/imm32/tests imm32_test
15787 wine_fn_config_dll inetcomm enable_inetcomm implib
15788 wine_fn_config_test dlls/inetcomm/tests inetcomm_test
15789 wine_fn_config_dll inetcpl.cpl enable_inetcpl_cpl po
15790 wine_fn_config_dll inetmib1 enable_inetmib1
15791 wine_fn_config_test dlls/inetmib1/tests inetmib1_test
15792 wine_fn_config_dll infosoft enable_infosoft
15793 wine_fn_config_test dlls/infosoft/tests infosoft_test
15794 wine_fn_config_dll initpki enable_initpki
15795 wine_fn_config_dll inkobj enable_inkobj
15796 wine_fn_config_dll inseng enable_inseng
15797 wine_fn_config_dll iphlpapi enable_iphlpapi implib
15798 wine_fn_config_test dlls/iphlpapi/tests iphlpapi_test
15799 wine_fn_config_dll itircl enable_itircl
15800 wine_fn_config_dll itss enable_itss
15801 wine_fn_config_test dlls/itss/tests itss_test
15802 wine_fn_config_dll joy.cpl enable_joy_cpl po
15803 wine_fn_config_dll jscript enable_jscript po
15804 wine_fn_config_test dlls/jscript/tests jscript_test
15805 wine_fn_config_dll kernel32 enable_kernel32 implib,mc
15806 wine_fn_config_test dlls/kernel32/tests kernel32_test
15807 wine_fn_config_dll keyboard.drv16 enable_win16
15808 wine_fn_config_dll krnl386.exe16 enable_win16 implib kernel
15809 wine_fn_config_dll ktmw32 enable_ktmw32
15810 wine_fn_config_dll loadperf enable_loadperf implib
15811 wine_fn_config_dll localspl enable_localspl po
15812 wine_fn_config_test dlls/localspl/tests localspl_test
15813 wine_fn_config_dll localui enable_localui po
15814 wine_fn_config_test dlls/localui/tests localui_test
15815 wine_fn_config_dll lz32 enable_lz32 implib
15816 wine_fn_config_test dlls/lz32/tests lz32_test
15817 wine_fn_config_dll lzexpand.dll16 enable_win16
15818 wine_fn_config_dll mapi32 enable_mapi32 implib,po
15819 wine_fn_config_test dlls/mapi32/tests mapi32_test
15820 wine_fn_config_dll mapistub enable_mapistub
15821 wine_fn_config_dll mciavi32 enable_mciavi32
15822 wine_fn_config_dll mcicda enable_mcicda
15823 wine_fn_config_dll mciqtz32 enable_mciqtz32
15824 wine_fn_config_dll mciseq enable_mciseq
15825 wine_fn_config_dll mciwave enable_mciwave
15826 wine_fn_config_dll mgmtapi enable_mgmtapi
15827 wine_fn_config_dll midimap enable_midimap
15828 wine_fn_config_dll mlang enable_mlang implib
15829 wine_fn_config_test dlls/mlang/tests mlang_test
15830 wine_fn_config_dll mmcndmgr enable_mmcndmgr
15831 wine_fn_config_test dlls/mmcndmgr/tests mmcndmgr_test
15832 wine_fn_config_dll mmdevapi enable_mmdevapi
15833 wine_fn_config_test dlls/mmdevapi/tests mmdevapi_test
15834 wine_fn_config_dll mmdevldr.vxd enable_win16
15835 wine_fn_config_dll mmsystem.dll16 enable_win16
15836 wine_fn_config_dll monodebg.vxd enable_win16
15837 wine_fn_config_dll mountmgr.sys enable_mountmgr_sys
15838 wine_fn_config_dll mouse.drv16 enable_win16
15839 wine_fn_config_dll mpr enable_mpr implib,po
15840 wine_fn_config_test dlls/mpr/tests mpr_test
15841 wine_fn_config_dll mprapi enable_mprapi implib
15842 wine_fn_config_dll msacm.dll16 enable_win16
15843 wine_fn_config_dll msacm32.drv enable_msacm32_drv
15844 wine_fn_config_dll msacm32 enable_msacm32 implib,po
15845 wine_fn_config_test dlls/msacm32/tests msacm32_test
15846 wine_fn_config_dll msadp32.acm enable_msadp32_acm
15847 wine_fn_config_dll mscat32 enable_mscat32
15848 wine_fn_config_dll mscms enable_mscms implib
15849 wine_fn_config_test dlls/mscms/tests mscms_test
15850 wine_fn_config_dll mscoree enable_mscoree
15851 wine_fn_config_test dlls/mscoree/tests mscoree_test
15852 wine_fn_config_dll msctf enable_msctf
15853 wine_fn_config_test dlls/msctf/tests msctf_test
15854 wine_fn_config_dll msdaps enable_msdaps
15855 wine_fn_config_dll msdmo enable_msdmo implib
15856 wine_fn_config_dll msftedit enable_msftedit
15857 wine_fn_config_dll msg711.acm enable_msg711_acm
15858 wine_fn_config_dll msgsm32.acm enable_msgsm32_acm
15859 wine_fn_config_dll mshtml.tlb enable_mshtml_tlb
15860 wine_fn_config_dll mshtml enable_mshtml implib,po
15861 wine_fn_config_test dlls/mshtml/tests mshtml_test
15862 wine_fn_config_dll msi enable_msi implib,po
15863 wine_fn_config_test dlls/msi/tests msi_test
15864 wine_fn_config_dll msident enable_msident
15865 wine_fn_config_dll msimg32 enable_msimg32 implib
15866 wine_fn_config_dll msimsg enable_msimsg
15867 wine_fn_config_dll msimtf enable_msimtf
15868 wine_fn_config_dll msisip enable_msisip
15869 wine_fn_config_dll msisys.ocx enable_msisys_ocx
15870 wine_fn_config_dll msls31 enable_msls31
15871 wine_fn_config_dll msnet32 enable_msnet32
15872 wine_fn_config_dll mspatcha enable_mspatcha
15873 wine_fn_config_dll msrle32 enable_msrle32 po
15874 wine_fn_config_dll mssign32 enable_mssign32
15875 wine_fn_config_dll mssip32 enable_mssip32
15876 wine_fn_config_dll mstask enable_mstask
15877 wine_fn_config_test dlls/mstask/tests mstask_test
15878 wine_fn_config_dll msvcirt enable_msvcirt
15879 wine_fn_config_dll msvcm80 enable_msvcm80
15880 wine_fn_config_dll msvcm90 enable_msvcm90
15881 wine_fn_config_dll msvcp100 enable_msvcp100
15882 wine_fn_config_test dlls/msvcp100/tests msvcp100_test
15883 wine_fn_config_dll msvcp60 enable_msvcp60
15884 wine_fn_config_test dlls/msvcp60/tests msvcp60_test
15885 wine_fn_config_dll msvcp70 enable_msvcp70
15886 wine_fn_config_dll msvcp71 enable_msvcp71
15887 wine_fn_config_dll msvcp80 enable_msvcp80
15888 wine_fn_config_dll msvcp90 enable_msvcp90
15889 wine_fn_config_test dlls/msvcp90/tests msvcp90_test
15890 wine_fn_config_dll msvcr100 enable_msvcr100
15891 wine_fn_config_test dlls/msvcr100/tests msvcr100_test
15892 wine_fn_config_dll msvcr70 enable_msvcr70 implib
15893 wine_fn_config_dll msvcr71 enable_msvcr71 implib
15894 wine_fn_config_dll msvcr80 enable_msvcr80
15895 wine_fn_config_dll msvcr90 enable_msvcr90
15896 wine_fn_config_test dlls/msvcr90/tests msvcr90_test
15897 wine_fn_config_dll msvcrt enable_msvcrt implib
15898 wine_fn_config_test dlls/msvcrt/tests msvcrt_test
15899 wine_fn_config_dll msvcrt20 enable_msvcrt20 implib
15900 wine_fn_config_dll msvcrt40 enable_msvcrt40 implib
15901 wine_fn_config_dll msvcrtd enable_msvcrtd implib
15902 wine_fn_config_test dlls/msvcrtd/tests msvcrtd_test
15903 wine_fn_config_dll msvfw32 enable_msvfw32 implib,po
15904 wine_fn_config_test dlls/msvfw32/tests msvfw32_test
15905 wine_fn_config_dll msvidc32 enable_msvidc32 po
15906 wine_fn_config_dll msvideo.dll16 enable_win16
15907 wine_fn_config_dll mswsock enable_mswsock implib
15908 wine_fn_config_dll msxml enable_msxml
15909 wine_fn_config_dll msxml2 enable_msxml2
15910 wine_fn_config_dll msxml3 enable_msxml3
15911 wine_fn_config_test dlls/msxml3/tests msxml3_test
15912 wine_fn_config_dll msxml4 enable_msxml4
15913 wine_fn_config_dll msxml6 enable_msxml6
15914 wine_fn_config_dll nddeapi enable_nddeapi implib
15915 wine_fn_config_dll netapi32 enable_netapi32 implib
15916 wine_fn_config_test dlls/netapi32/tests netapi32_test
15917 wine_fn_config_dll newdev enable_newdev implib
15918 wine_fn_config_dll normaliz enable_normaliz implib
15919 wine_fn_config_dll npmshtml enable_npmshtml
15920 wine_fn_config_dll ntdll enable_ntdll implib
15921 wine_fn_config_test dlls/ntdll/tests ntdll_test
15922 wine_fn_config_dll ntdsapi enable_ntdsapi implib
15923 wine_fn_config_test dlls/ntdsapi/tests ntdsapi_test
15924 wine_fn_config_dll ntoskrnl.exe enable_ntoskrnl_exe implib
15925 wine_fn_config_dll ntprint enable_ntprint
15926 wine_fn_config_test dlls/ntprint/tests ntprint_test
15927 wine_fn_config_dll objsel enable_objsel
15928 wine_fn_config_dll odbc32 enable_odbc32 implib
15929 wine_fn_config_dll odbccp32 enable_odbccp32 implib
15930 wine_fn_config_test dlls/odbccp32/tests odbccp32_test
15931 wine_fn_config_dll odbccu32 enable_odbccu32
15932 wine_fn_config_dll ole2.dll16 enable_win16
15933 wine_fn_config_dll ole2conv.dll16 enable_win16
15934 wine_fn_config_dll ole2disp.dll16 enable_win16
15935 wine_fn_config_dll ole2nls.dll16 enable_win16
15936 wine_fn_config_dll ole2prox.dll16 enable_win16
15937 wine_fn_config_dll ole2thk.dll16 enable_win16
15938 wine_fn_config_dll ole32 enable_ole32 implib
15939 wine_fn_config_test dlls/ole32/tests ole32_test
15940 wine_fn_config_dll oleacc enable_oleacc implib,po
15941 wine_fn_config_test dlls/oleacc/tests oleacc_test
15942 wine_fn_config_dll oleaut32 enable_oleaut32 implib,po
15943 wine_fn_config_test dlls/oleaut32/tests oleaut32_test
15944 wine_fn_config_dll olecli.dll16 enable_win16
15945 wine_fn_config_dll olecli32 enable_olecli32 implib
15946 wine_fn_config_dll oledb32 enable_oledb32
15947 wine_fn_config_test dlls/oledb32/tests oledb32_test
15948 wine_fn_config_dll oledlg enable_oledlg implib,po
15949 wine_fn_config_dll olepro32 enable_olepro32 implib
15950 wine_fn_config_dll olesvr.dll16 enable_win16
15951 wine_fn_config_dll olesvr32 enable_olesvr32 implib
15952 wine_fn_config_dll olethk32 enable_olethk32
15953 wine_fn_config_dll openal32 enable_openal32
15954 wine_fn_config_dll opencl enable_opencl
15955 wine_fn_config_dll opengl32 enable_opengl32 implib
15956 wine_fn_config_test dlls/opengl32/tests opengl32_test
15957 wine_fn_config_dll pdh enable_pdh implib
15958 wine_fn_config_test dlls/pdh/tests pdh_test
15959 wine_fn_config_dll photometadatahandler enable_photometadatahandler
15960 wine_fn_config_dll pidgen enable_pidgen
15961 wine_fn_config_dll powrprof enable_powrprof implib
15962 wine_fn_config_dll printui enable_printui
15963 wine_fn_config_dll propsys enable_propsys implib
15964 wine_fn_config_test dlls/propsys/tests propsys_test
15965 wine_fn_config_dll psapi enable_psapi implib
15966 wine_fn_config_test dlls/psapi/tests psapi_test
15967 wine_fn_config_dll pstorec enable_pstorec
15968 wine_fn_config_dll qcap enable_qcap
15969 wine_fn_config_dll qedit enable_qedit
15970 wine_fn_config_test dlls/qedit/tests qedit_test
15971 wine_fn_config_dll qmgr enable_qmgr
15972 wine_fn_config_test dlls/qmgr/tests qmgr_test
15973 wine_fn_config_dll qmgrprxy enable_qmgrprxy
15974 wine_fn_config_dll quartz enable_quartz implib
15975 wine_fn_config_test dlls/quartz/tests quartz_test
15976 wine_fn_config_dll query enable_query
15977 wine_fn_config_dll rasapi16.dll16 enable_win16
15978 wine_fn_config_dll rasapi32 enable_rasapi32 implib
15979 wine_fn_config_test dlls/rasapi32/tests rasapi32_test
15980 wine_fn_config_dll rasdlg enable_rasdlg implib
15981 wine_fn_config_dll regapi enable_regapi
15982 wine_fn_config_dll resutils enable_resutils implib
15983 wine_fn_config_dll riched20 enable_riched20 implib
15984 wine_fn_config_test dlls/riched20/tests riched20_test
15985 wine_fn_config_dll riched32 enable_riched32
15986 wine_fn_config_test dlls/riched32/tests riched32_test
15987 wine_fn_config_dll rpcrt4 enable_rpcrt4 implib
15988 wine_fn_config_test dlls/rpcrt4/tests rpcrt4_test
15989 wine_fn_config_dll rsabase enable_rsabase
15990 wine_fn_config_dll rsaenh enable_rsaenh implib
15991 wine_fn_config_test dlls/rsaenh/tests rsaenh_test
15992 wine_fn_config_dll rstrtmgr enable_rstrtmgr
15993 wine_fn_config_dll rtutils enable_rtutils implib
15994 wine_fn_config_dll samlib enable_samlib
15995 wine_fn_config_dll sane.ds enable_sane_ds po
15996 wine_fn_config_dll scarddlg enable_scarddlg
15997 wine_fn_config_dll sccbase enable_sccbase
15998 wine_fn_config_dll schannel enable_schannel
15999 wine_fn_config_test dlls/schannel/tests schannel_test
16000 wine_fn_config_dll scrrun enable_scrrun
16001 wine_fn_config_test dlls/scrrun/tests scrrun_test
16002 wine_fn_config_dll scsiport.sys enable_scsiport_sys
16003 wine_fn_config_dll secur32 enable_secur32 implib
16004 wine_fn_config_test dlls/secur32/tests secur32_test
16005 wine_fn_config_dll security enable_security
16006 wine_fn_config_dll sensapi enable_sensapi implib
16007 wine_fn_config_dll serialui enable_serialui implib,po
16008 wine_fn_config_test dlls/serialui/tests serialui_test
16009 wine_fn_config_dll setupapi enable_setupapi implib,po
16010 wine_fn_config_test dlls/setupapi/tests setupapi_test
16011 wine_fn_config_dll setupx.dll16 enable_win16
16012 wine_fn_config_dll sfc enable_sfc implib
16013 wine_fn_config_dll sfc_os enable_sfc_os implib
16014 wine_fn_config_dll shdoclc enable_shdoclc po
16015 wine_fn_config_dll shdocvw enable_shdocvw implib
16016 wine_fn_config_test dlls/shdocvw/tests shdocvw_test
16017 wine_fn_config_dll shell.dll16 enable_win16
16018 wine_fn_config_dll shell32 enable_shell32 implib,po
16019 wine_fn_config_test dlls/shell32/tests shell32_test
16020 wine_fn_config_dll shfolder enable_shfolder implib
16021 wine_fn_config_dll shlwapi enable_shlwapi implib,po
16022 wine_fn_config_test dlls/shlwapi/tests shlwapi_test
16023 wine_fn_config_dll slbcsp enable_slbcsp
16024 wine_fn_config_dll slc enable_slc implib
16025 wine_fn_config_dll snmpapi enable_snmpapi implib
16026 wine_fn_config_test dlls/snmpapi/tests snmpapi_test
16027 wine_fn_config_dll softpub enable_softpub
16028 wine_fn_config_dll sound.drv16 enable_win16
16029 wine_fn_config_dll spoolss enable_spoolss implib
16030 wine_fn_config_test dlls/spoolss/tests spoolss_test
16031 wine_fn_config_dll stdole2.tlb enable_stdole2_tlb
16032 wine_fn_config_dll stdole32.tlb enable_stdole32_tlb
16033 wine_fn_config_dll sti enable_sti implib
16034 wine_fn_config_test dlls/sti/tests sti_test
16035 wine_fn_config_dll storage.dll16 enable_win16
16036 wine_fn_config_dll stress.dll16 enable_win16
16037 wine_fn_config_lib strmbase
16038 wine_fn_config_lib strmiids
16039 wine_fn_config_dll svrapi enable_svrapi
16040 wine_fn_config_dll sxs enable_sxs implib
16041 wine_fn_config_test dlls/sxs/tests sxs_test
16042 wine_fn_config_dll system.drv16 enable_win16
16043 wine_fn_config_dll t2embed enable_t2embed
16044 wine_fn_config_dll tapi32 enable_tapi32 implib
16045 wine_fn_config_dll toolhelp.dll16 enable_win16
16046 wine_fn_config_dll traffic enable_traffic
16047 wine_fn_config_dll twain.dll16 enable_win16
16048 wine_fn_config_dll twain_32 enable_twain_32
16049 wine_fn_config_test dlls/twain_32/tests twain_32_test
16050 wine_fn_config_dll typelib.dll16 enable_win16
16051 wine_fn_config_dll unicows enable_unicows implib
16052 wine_fn_config_dll updspapi enable_updspapi
16053 wine_fn_config_dll url enable_url implib
16054 wine_fn_config_dll urlmon enable_urlmon implib,po
16055 wine_fn_config_test dlls/urlmon/tests urlmon_test
16056 wine_fn_config_dll usbd.sys enable_usbd_sys implib
16057 wine_fn_config_dll user.exe16 enable_win16
16058 wine_fn_config_dll user32 enable_user32 implib,po
16059 wine_fn_config_test dlls/user32/tests user32_test
16060 wine_fn_config_dll userenv enable_userenv implib
16061 wine_fn_config_test dlls/userenv/tests userenv_test
16062 wine_fn_config_dll usp10 enable_usp10 implib
16063 wine_fn_config_test dlls/usp10/tests usp10_test
16064 wine_fn_config_lib uuid
16065 wine_fn_config_dll uxtheme enable_uxtheme implib
16066 wine_fn_config_test dlls/uxtheme/tests uxtheme_test
16067 wine_fn_config_dll vbscript enable_vbscript
16068 wine_fn_config_test dlls/vbscript/tests vbscript_test
16069 wine_fn_config_dll vcomp enable_vcomp
16070 wine_fn_config_dll vcomp100 enable_vcomp100
16071 wine_fn_config_dll vcomp90 enable_vcomp90
16072 wine_fn_config_dll vdhcp.vxd enable_win16
16073 wine_fn_config_dll vdmdbg enable_vdmdbg implib
16074 wine_fn_config_dll ver.dll16 enable_win16
16075 wine_fn_config_dll version enable_version implib
16076 wine_fn_config_test dlls/version/tests version_test
16077 wine_fn_config_dll vmm.vxd enable_win16
16078 wine_fn_config_dll vnbt.vxd enable_win16
16079 wine_fn_config_dll vnetbios.vxd enable_win16
16080 wine_fn_config_dll vtdapi.vxd enable_win16
16081 wine_fn_config_dll vwin32.vxd enable_win16
16082 wine_fn_config_dll w32skrnl enable_win16
16083 wine_fn_config_dll w32sys.dll16 enable_win16
16084 wine_fn_config_dll wbemprox enable_wbemprox
16085 wine_fn_config_test dlls/wbemprox/tests wbemprox_test
16086 wine_fn_config_dll wer enable_wer implib
16087 wine_fn_config_test dlls/wer/tests wer_test
16088 wine_fn_config_dll wevtapi enable_wevtapi
16089 wine_fn_config_dll wiaservc enable_wiaservc
16090 wine_fn_config_dll win32s16.dll16 enable_win16
16091 wine_fn_config_dll win87em.dll16 enable_win16
16092 wine_fn_config_dll winaspi.dll16 enable_win16
16093 wine_fn_config_dll windebug.dll16 enable_win16
16094 wine_fn_config_dll windowscodecs enable_windowscodecs implib
16095 wine_fn_config_test dlls/windowscodecs/tests windowscodecs_test
16096 wine_fn_config_dll winealsa.drv enable_winealsa_drv
16097 wine_fn_config_dll winecoreaudio.drv enable_winecoreaudio_drv
16098 wine_fn_config_lib winecrt0
16099 wine_fn_config_dll wined3d enable_wined3d implib
16100 wine_fn_config_dll winegstreamer enable_winegstreamer
16101 wine_fn_config_dll winejoystick.drv enable_winejoystick_drv
16102 wine_fn_config_dll winemac.drv enable_winemac_drv
16103 wine_fn_config_dll winemapi enable_winemapi
16104 wine_fn_config_dll winemp3.acm enable_winemp3_acm
16105 wine_fn_config_dll wineoss.drv enable_wineoss_drv
16106 wine_fn_config_dll wineps.drv enable_wineps_drv install-lib,po
16107 wine_fn_config_dll wineps16.drv16 enable_win16
16108 wine_fn_config_dll wineqtdecoder enable_wineqtdecoder
16109 wine_fn_config_dll winex11.drv enable_winex11_drv
16110 wine_fn_config_dll wing.dll16 enable_win16
16111 wine_fn_config_dll wing32 enable_wing32
16112 wine_fn_config_dll winhttp enable_winhttp implib
16113 wine_fn_config_test dlls/winhttp/tests winhttp_test
16114 wine_fn_config_dll wininet enable_wininet implib,po
16115 wine_fn_config_test dlls/wininet/tests wininet_test
16116 wine_fn_config_dll winmm enable_winmm implib,po
16117 wine_fn_config_test dlls/winmm/tests winmm_test
16118 wine_fn_config_dll winnls.dll16 enable_win16
16119 wine_fn_config_dll winnls32 enable_winnls32 implib
16120 wine_fn_config_dll winscard enable_winscard implib
16121 wine_fn_config_dll winsock.dll16 enable_win16
16122 wine_fn_config_dll winspool.drv enable_winspool_drv implib,po winspool
16123 wine_fn_config_test dlls/winspool.drv/tests winspool.drv_test
16124 wine_fn_config_dll winsta enable_winsta
16125 wine_fn_config_dll wintab.dll16 enable_win16
16126 wine_fn_config_dll wintab32 enable_wintab32 implib
16127 wine_fn_config_test dlls/wintab32/tests wintab32_test
16128 wine_fn_config_dll wintrust enable_wintrust implib
16129 wine_fn_config_test dlls/wintrust/tests wintrust_test
16130 wine_fn_config_dll wlanapi enable_wlanapi
16131 wine_fn_config_dll wldap32 enable_wldap32 implib,po
16132 wine_fn_config_test dlls/wldap32/tests wldap32_test
16133 wine_fn_config_dll wmi enable_wmi
16134 wine_fn_config_dll wmiutils enable_wmiutils
16135 wine_fn_config_test dlls/wmiutils/tests wmiutils_test
16136 wine_fn_config_dll wmvcore enable_wmvcore
16137 wine_fn_config_dll wnaspi32 enable_wnaspi32 implib
16138 wine_fn_config_dll wow32 enable_win16 implib
16139 wine_fn_config_dll ws2_32 enable_ws2_32 implib
16140 wine_fn_config_test dlls/ws2_32/tests ws2_32_test
16141 wine_fn_config_dll wshom.ocx enable_wshom_ocx
16142 wine_fn_config_test dlls/wshom.ocx/tests wshom.ocx_test
16143 wine_fn_config_dll wsnmp32 enable_wsnmp32
16144 wine_fn_config_dll wsock32 enable_wsock32 implib
16145 wine_fn_config_dll wtsapi32 enable_wtsapi32 implib
16146 wine_fn_config_dll wuapi enable_wuapi
16147 wine_fn_config_dll wuaueng enable_wuaueng
16148 wine_fn_config_dll xapofx1_1 enable_xapofx1_1
16149 wine_fn_config_dll xinput1_1 enable_xinput1_1
16150 wine_fn_config_dll xinput1_2 enable_xinput1_2
16151 wine_fn_config_dll xinput1_3 enable_xinput1_3 implib xinput
16152 wine_fn_config_test dlls/xinput1_3/tests xinput1_3_test
16153 wine_fn_config_dll xinput9_1_0 enable_xinput9_1_0
16154 wine_fn_config_dll xmllite enable_xmllite
16155 wine_fn_config_test dlls/xmllite/tests xmllite_test
16156 wine_fn_config_dll xolehlp enable_xolehlp
16157 wine_fn_config_dll xpsprint enable_xpsprint
16158 wine_fn_config_dll xpssvcs enable_xpssvcs
16159 wine_fn_config_makefile documentation enable_documentation
16160 wine_fn_config_makefile fonts enable_fonts install-lib
16161 wine_fn_config_makefile include enable_include install-dev
16162 wine_fn_config_makefile libs/port enable_libs_port
16163 wine_fn_config_makefile libs/wine enable_libs_wine install-dev,install-lib
16164 wine_fn_config_makefile libs/wpp enable_libs_wpp
16165 wine_fn_config_makefile loader enable_loader install-lib,manpage
16166 wine_fn_config_program aspnet_regiis enable_aspnet_regiis install
16167 wine_fn_config_program attrib enable_attrib install,po
16168 wine_fn_config_program cabarc enable_cabarc install
16169 wine_fn_config_program cacls enable_cacls install
16170 wine_fn_config_program clock enable_clock install,po
16171 wine_fn_config_program cmd enable_cmd install,po
16172 wine_fn_config_test programs/cmd/tests cmd.exe_test
16173 wine_fn_config_program conhost enable_conhost install
16174 wine_fn_config_program control enable_control install
16175 wine_fn_config_program cscript enable_cscript install
16176 wine_fn_config_program dxdiag enable_dxdiag install,po
16177 wine_fn_config_program eject enable_eject install
16178 wine_fn_config_program expand enable_expand install
16179 wine_fn_config_program explorer enable_explorer install,po
16180 wine_fn_config_program extrac32 enable_extrac32 install
16181 wine_fn_config_program findstr enable_findstr install
16182 wine_fn_config_program hh enable_hh install
16183 wine_fn_config_program hostname enable_hostname install,po
16184 wine_fn_config_program icinfo enable_icinfo install
16185 wine_fn_config_program iexplore enable_iexplore install
16186 wine_fn_config_program ipconfig enable_ipconfig install,po
16187 wine_fn_config_program lodctr enable_lodctr install
16188 wine_fn_config_program mofcomp enable_mofcomp install
16189 wine_fn_config_program mshta enable_mshta install
16190 wine_fn_config_program msiexec enable_msiexec install,installbin,manpage
16191 wine_fn_config_program net enable_net install,po
16192 wine_fn_config_program netsh enable_netsh install
16193 wine_fn_config_program netstat enable_netstat install,po
16194 wine_fn_config_program ngen enable_ngen install
16195 wine_fn_config_program notepad enable_notepad install,installbin,manpage,po
16196 wine_fn_config_program oleview enable_oleview install,po
16197 wine_fn_config_program ping enable_ping install
16198 wine_fn_config_program plugplay enable_plugplay install
16199 wine_fn_config_program presentationfontcache enable_presentationfontcache install
16200 wine_fn_config_program progman enable_progman install,po
16201 wine_fn_config_program reg enable_reg install,po
16202 wine_fn_config_program regasm enable_regasm install
16203 wine_fn_config_program regedit enable_regedit install,installbin,manpage,po
16204 wine_fn_config_test programs/regedit/tests regedit.exe_test
16205 wine_fn_config_program regsvcs enable_regsvcs install
16206 wine_fn_config_program regsvr32 enable_regsvr32 install,installbin,manpage
16207 wine_fn_config_program rpcss enable_rpcss install
16208 wine_fn_config_program rundll.exe16 enable_win16 install
16209 wine_fn_config_program rundll32 enable_rundll32 install
16210 wine_fn_config_program sc enable_sc install
16211 wine_fn_config_program schtasks enable_schtasks install
16212 wine_fn_config_program secedit enable_secedit install
16213 wine_fn_config_program servicemodelreg enable_servicemodelreg install
16214 wine_fn_config_program services enable_services install
16215 wine_fn_config_test programs/services/tests services.exe_test
16216 wine_fn_config_program spoolsv enable_spoolsv install
16217 wine_fn_config_program start enable_start install,po
16218 wine_fn_config_program svchost enable_svchost install
16219 wine_fn_config_program taskkill enable_taskkill install,po
16220 wine_fn_config_program taskmgr enable_taskmgr install,po
16221 wine_fn_config_program termsv enable_termsv install
16222 wine_fn_config_program uninstaller enable_uninstaller install,po
16223 wine_fn_config_program unlodctr enable_unlodctr install
16224 wine_fn_config_program view enable_view install,po
16225 wine_fn_config_program wineboot enable_wineboot install,installbin,manpage,po
16226 wine_fn_config_program winebrowser enable_winebrowser install
16227 wine_fn_config_program winecfg enable_winecfg install,installbin,manpage,po
16228 wine_fn_config_program wineconsole enable_wineconsole install,installbin,manpage,po
16229 wine_fn_config_program winedbg enable_winedbg install,installbin,manpage,po
16230 wine_fn_config_program winedevice enable_winedevice install
16231 wine_fn_config_program winefile enable_winefile install,installbin,manpage,po
16232 wine_fn_config_program winemenubuilder enable_winemenubuilder install
16233 wine_fn_config_program winemine enable_winemine install,installbin,manpage,po
16234 wine_fn_config_program winemsibuilder enable_winemsibuilder install
16235 wine_fn_config_program winepath enable_winepath install,installbin,manpage
16236 wine_fn_config_program winetest enable_winetest
16237 wine_fn_config_program winevdm enable_win16 install
16238 wine_fn_config_program winhelp.exe16 enable_win16 install
16239 wine_fn_config_program winhlp32 enable_winhlp32 install,po
16240 wine_fn_config_program winoldap.mod16 enable_win16 install
16241 wine_fn_config_program winver enable_winver install
16242 wine_fn_config_program wmic enable_wmic install,po
16243 wine_fn_config_program wordpad enable_wordpad install,po
16244 wine_fn_config_program write enable_write install,po
16245 wine_fn_config_program wscript enable_wscript install
16246 wine_fn_config_test programs/wscript/tests wscript.exe_test
16247 wine_fn_config_program wusa enable_wusa install
16248 wine_fn_config_program xcopy enable_xcopy install,po
16249 wine_fn_config_makefile server enable_server install-lib,manpage
16250 wine_fn_config_tool tools install-dev,install-lib,manpage
16251 wine_fn_config_tool tools/widl install-dev,manpage
16252 wine_fn_config_tool tools/winebuild install-dev,manpage
16253 wine_fn_config_tool tools/winedump install-dev,manpage
16254 wine_fn_config_tool tools/winegcc install-dev,manpage
16255 wine_fn_config_tool tools/wmc install-dev,manpage
16256 wine_fn_config_tool tools/wrc install-dev,manpage
16257
16258 LINGUAS="\
16259 ar \
16260 bg \
16261 ca \
16262 cs \
16263 da \
16264 de \
16265 el \
16266 en \
16267 en_US \
16268 eo \
16269 es \
16270 fa \
16271 fi \
16272 fr \
16273 he \
16274 hi \
16275 hu \
16276 it \
16277 ja \
16278 ko \
16279 lt \
16280 ml \
16281 nb_NO \
16282 nl \
16283 or \
16284 pa \
16285 pl \
16286 pt_BR \
16287 pt_PT \
16288 rm \
16289 ro \
16290 ru \
16291 sk \
16292 sl \
16293 sr_RS@cyrillic \
16294 sr_RS@latin \
16295 sv \
16296 te \
16297 th \
16298 tr \
16299 uk \
16300 wa \
16301 zh_CN \
16302 zh_TW"
16303
16304
16305
16306 ac_config_commands="$ac_config_commands Makefile"
16307
16308
16309 ac_config_files="$ac_config_files Make.tmp:Make.vars.in:Makefile.in"
16310
16311
16312
16313 if test "x$enable_maintainer_mode" = xyes
16314 then
16315     wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(srcdir)/configure: configure.ac aclocal.m4
16316         cd \$(srcdir) && autoconf --warnings=all
16317 \$(srcdir)/include/config.h.in: include/stamp-h.in
16318 \$(srcdir)/include/stamp-h.in: configure.ac aclocal.m4
16319         cd \$(srcdir) && autoheader --warnings=all
16320         @echo timestamp > \$@"
16321 fi
16322
16323 if test "x$with_gettextpo" = xyes
16324 then
16325     test "$srcdir" = . || as_fn_error $? "Rebuilding po files is not supported for out of tree builds." "$LINENO" 5
16326     wine_fn_append_rule ALL_MAKEFILE_DEPENDS "ALL_POT_FILES =$ALL_POT_FILES
16327 \$(LINGUAS:%=po/%.po): \$(srcdir)/po/wine.pot
16328         msgmerge --previous -q \$@ \$(srcdir)/po/wine.pot | msgattrib --no-obsolete -o \$@.new && mv \$@.new \$@
16329 \$(srcdir)/po/wine.pot: \$(ALL_POT_FILES)
16330         msgcat -o \$@ \$(ALL_POT_FILES)"
16331 fi
16332
16333 if test "$MSGFMT" != false
16334 then
16335     PORCFLAGS="--po-dir=\$(top_builddir)/po"
16336
16337     wine_fn_append_rule ALL_MAKEFILE_DEPENDS "__builddeps__: \$(ALL_MO_FILES)"
16338 else
16339     LINGUAS=
16340 fi
16341
16342 if test "x$enable_tools" != xno
16343 then
16344     wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(MAKEDEP): tools/Makefile
16345 clean:: __clean__
16346         \$(RM) tools/makedep\$(EXEEXT)"
16347 fi
16348
16349 if test -n "$with_wine64"
16350 then
16351 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "all: fonts server tools $with_wine64/loader/wine $with_wine64/loader/wine-preloader
16352 fonts server tools:
16353         \$(RM) \$@ && \$(LN_S) $with_wine64/\$@ \$@
16354 $with_wine64/loader/wine:
16355         \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine \$@
16356 $with_wine64/loader/wine-preloader:
16357         \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine-preloader \$@
16358 clean::
16359         \$(RM) fonts server tools $with_wine64/loader/wine $with_wine64/loader/wine-preloader"
16360 fi
16361
16362 cat >confcache <<\_ACEOF
16363 # This file is a shell script that caches the results of configure
16364 # tests run on this system so they can be shared between configure
16365 # scripts and configure runs, see configure's option --config-cache.
16366 # It is not useful on other systems.  If it contains results you don't
16367 # want to keep, you may remove or edit it.
16368 #
16369 # config.status only pays attention to the cache file if you give it
16370 # the --recheck option to rerun configure.
16371 #
16372 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16373 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16374 # following values.
16375
16376 _ACEOF
16377
16378 # The following way of writing the cache mishandles newlines in values,
16379 # but we know of no workaround that is simple, portable, and efficient.
16380 # So, we kill variables containing newlines.
16381 # Ultrix sh set writes to stderr and can't be redirected directly,
16382 # and sets the high bit in the cache file unless we assign to the vars.
16383 (
16384   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16385     eval ac_val=\$$ac_var
16386     case $ac_val in #(
16387     *${as_nl}*)
16388       case $ac_var in #(
16389       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16390 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16391       esac
16392       case $ac_var in #(
16393       _ | IFS | as_nl) ;; #(
16394       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16395       *) { eval $ac_var=; unset $ac_var;} ;;
16396       esac ;;
16397     esac
16398   done
16399
16400   (set) 2>&1 |
16401     case $as_nl`(ac_space=' '; set) 2>&1` in #(
16402     *${as_nl}ac_space=\ *)
16403       # `set' does not quote correctly, so add quotes: double-quote
16404       # substitution turns \\\\ into \\, and sed turns \\ into \.
16405       sed -n \
16406         "s/'/'\\\\''/g;
16407           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16408       ;; #(
16409     *)
16410       # `set' quotes correctly as required by POSIX, so do not add quotes.
16411       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16412       ;;
16413     esac |
16414     sort
16415 ) |
16416   sed '
16417      /^ac_cv_env_/b end
16418      t clear
16419      :clear
16420      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16421      t end
16422      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16423      :end' >>confcache
16424 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16425   if test -w "$cache_file"; then
16426     if test "x$cache_file" != "x/dev/null"; then
16427       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16428 $as_echo "$as_me: updating cache $cache_file" >&6;}
16429       if test ! -f "$cache_file" || test -h "$cache_file"; then
16430         cat confcache >"$cache_file"
16431       else
16432         case $cache_file in #(
16433         */* | ?:*)
16434           mv -f confcache "$cache_file"$$ &&
16435           mv -f "$cache_file"$$ "$cache_file" ;; #(
16436         *)
16437           mv -f confcache "$cache_file" ;;
16438         esac
16439       fi
16440     fi
16441   else
16442     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16443 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16444   fi
16445 fi
16446 rm -f confcache
16447
16448 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16449 # Let make expand exec_prefix.
16450 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16451
16452 DEFS=-DHAVE_CONFIG_H
16453
16454 ac_libobjs=
16455 ac_ltlibobjs=
16456 U=
16457 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16458   # 1. Remove the extension, and $U if already installed.
16459   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16460   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16461   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
16462   #    will be set to the directory where LIBOBJS objects are built.
16463   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16464   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16465 done
16466 LIBOBJS=$ac_libobjs
16467
16468 LTLIBOBJS=$ac_ltlibobjs
16469
16470
16471
16472 : "${CONFIG_STATUS=./config.status}"
16473 ac_write_fail=0
16474 ac_clean_files_save=$ac_clean_files
16475 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16476 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16477 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16478 as_write_fail=0
16479 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16480 #! $SHELL
16481 # Generated by $as_me.
16482 # Run this file to recreate the current configuration.
16483 # Compiler output produced by configure, useful for debugging
16484 # configure, is in config.log if it exists.
16485
16486 debug=false
16487 ac_cs_recheck=false
16488 ac_cs_silent=false
16489
16490 SHELL=\${CONFIG_SHELL-$SHELL}
16491 export SHELL
16492 _ASEOF
16493 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16494 ## -------------------- ##
16495 ## M4sh Initialization. ##
16496 ## -------------------- ##
16497
16498 # Be more Bourne compatible
16499 DUALCASE=1; export DUALCASE # for MKS sh
16500 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16501   emulate sh
16502   NULLCMD=:
16503   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16504   # is contrary to our usage.  Disable this feature.
16505   alias -g '${1+"$@"}'='"$@"'
16506   setopt NO_GLOB_SUBST
16507 else
16508   case `(set -o) 2>/dev/null` in #(
16509   *posix*) :
16510     set -o posix ;; #(
16511   *) :
16512      ;;
16513 esac
16514 fi
16515
16516
16517 as_nl='
16518 '
16519 export as_nl
16520 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16521 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16522 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16523 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16524 # Prefer a ksh shell builtin over an external printf program on Solaris,
16525 # but without wasting forks for bash or zsh.
16526 if test -z "$BASH_VERSION$ZSH_VERSION" \
16527     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16528   as_echo='print -r --'
16529   as_echo_n='print -rn --'
16530 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16531   as_echo='printf %s\n'
16532   as_echo_n='printf %s'
16533 else
16534   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16535     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16536     as_echo_n='/usr/ucb/echo -n'
16537   else
16538     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16539     as_echo_n_body='eval
16540       arg=$1;
16541       case $arg in #(
16542       *"$as_nl"*)
16543         expr "X$arg" : "X\\(.*\\)$as_nl";
16544         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16545       esac;
16546       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16547     '
16548     export as_echo_n_body
16549     as_echo_n='sh -c $as_echo_n_body as_echo'
16550   fi
16551   export as_echo_body
16552   as_echo='sh -c $as_echo_body as_echo'
16553 fi
16554
16555 # The user is always right.
16556 if test "${PATH_SEPARATOR+set}" != set; then
16557   PATH_SEPARATOR=:
16558   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16559     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16560       PATH_SEPARATOR=';'
16561   }
16562 fi
16563
16564
16565 # IFS
16566 # We need space, tab and new line, in precisely that order.  Quoting is
16567 # there to prevent editors from complaining about space-tab.
16568 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16569 # splitting by setting IFS to empty value.)
16570 IFS=" ""        $as_nl"
16571
16572 # Find who we are.  Look in the path if we contain no directory separator.
16573 as_myself=
16574 case $0 in #((
16575   *[\\/]* ) as_myself=$0 ;;
16576   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16577 for as_dir in $PATH
16578 do
16579   IFS=$as_save_IFS
16580   test -z "$as_dir" && as_dir=.
16581     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16582   done
16583 IFS=$as_save_IFS
16584
16585      ;;
16586 esac
16587 # We did not find ourselves, most probably we were run as `sh COMMAND'
16588 # in which case we are not to be found in the path.
16589 if test "x$as_myself" = x; then
16590   as_myself=$0
16591 fi
16592 if test ! -f "$as_myself"; then
16593   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16594   exit 1
16595 fi
16596
16597 # Unset variables that we do not need and which cause bugs (e.g. in
16598 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
16599 # suppresses any "Segmentation fault" message there.  '((' could
16600 # trigger a bug in pdksh 5.2.14.
16601 for as_var in BASH_ENV ENV MAIL MAILPATH
16602 do eval test x\${$as_var+set} = xset \
16603   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16604 done
16605 PS1='$ '
16606 PS2='> '
16607 PS4='+ '
16608
16609 # NLS nuisances.
16610 LC_ALL=C
16611 export LC_ALL
16612 LANGUAGE=C
16613 export LANGUAGE
16614
16615 # CDPATH.
16616 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16617
16618
16619 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16620 # ----------------------------------------
16621 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16622 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16623 # script with STATUS, using 1 if that was 0.
16624 as_fn_error ()
16625 {
16626   as_status=$1; test $as_status -eq 0 && as_status=1
16627   if test "$4"; then
16628     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16629     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16630   fi
16631   $as_echo "$as_me: error: $2" >&2
16632   as_fn_exit $as_status
16633 } # as_fn_error
16634
16635
16636 # as_fn_set_status STATUS
16637 # -----------------------
16638 # Set $? to STATUS, without forking.
16639 as_fn_set_status ()
16640 {
16641   return $1
16642 } # as_fn_set_status
16643
16644 # as_fn_exit STATUS
16645 # -----------------
16646 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16647 as_fn_exit ()
16648 {
16649   set +e
16650   as_fn_set_status $1
16651   exit $1
16652 } # as_fn_exit
16653
16654 # as_fn_unset VAR
16655 # ---------------
16656 # Portably unset VAR.
16657 as_fn_unset ()
16658 {
16659   { eval $1=; unset $1;}
16660 }
16661 as_unset=as_fn_unset
16662 # as_fn_append VAR VALUE
16663 # ----------------------
16664 # Append the text in VALUE to the end of the definition contained in VAR. Take
16665 # advantage of any shell optimizations that allow amortized linear growth over
16666 # repeated appends, instead of the typical quadratic growth present in naive
16667 # implementations.
16668 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16669   eval 'as_fn_append ()
16670   {
16671     eval $1+=\$2
16672   }'
16673 else
16674   as_fn_append ()
16675   {
16676     eval $1=\$$1\$2
16677   }
16678 fi # as_fn_append
16679
16680 # as_fn_arith ARG...
16681 # ------------------
16682 # Perform arithmetic evaluation on the ARGs, and store the result in the
16683 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16684 # must be portable across $(()) and expr.
16685 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16686   eval 'as_fn_arith ()
16687   {
16688     as_val=$(( $* ))
16689   }'
16690 else
16691   as_fn_arith ()
16692   {
16693     as_val=`expr "$@" || test $? -eq 1`
16694   }
16695 fi # as_fn_arith
16696
16697
16698 if expr a : '\(a\)' >/dev/null 2>&1 &&
16699    test "X`expr 00001 : '.*\(...\)'`" = X001; then
16700   as_expr=expr
16701 else
16702   as_expr=false
16703 fi
16704
16705 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16706   as_basename=basename
16707 else
16708   as_basename=false
16709 fi
16710
16711 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16712   as_dirname=dirname
16713 else
16714   as_dirname=false
16715 fi
16716
16717 as_me=`$as_basename -- "$0" ||
16718 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16719          X"$0" : 'X\(//\)$' \| \
16720          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16721 $as_echo X/"$0" |
16722     sed '/^.*\/\([^/][^/]*\)\/*$/{
16723             s//\1/
16724             q
16725           }
16726           /^X\/\(\/\/\)$/{
16727             s//\1/
16728             q
16729           }
16730           /^X\/\(\/\).*/{
16731             s//\1/
16732             q
16733           }
16734           s/.*/./; q'`
16735
16736 # Avoid depending upon Character Ranges.
16737 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16738 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16739 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16740 as_cr_digits='0123456789'
16741 as_cr_alnum=$as_cr_Letters$as_cr_digits
16742
16743 ECHO_C= ECHO_N= ECHO_T=
16744 case `echo -n x` in #(((((
16745 -n*)
16746   case `echo 'xy\c'` in
16747   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
16748   xy)  ECHO_C='\c';;
16749   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
16750        ECHO_T=' ';;
16751   esac;;
16752 *)
16753   ECHO_N='-n';;
16754 esac
16755
16756 rm -f conf$$ conf$$.exe conf$$.file
16757 if test -d conf$$.dir; then
16758   rm -f conf$$.dir/conf$$.file
16759 else
16760   rm -f conf$$.dir
16761   mkdir conf$$.dir 2>/dev/null
16762 fi
16763 if (echo >conf$$.file) 2>/dev/null; then
16764   if ln -s conf$$.file conf$$ 2>/dev/null; then
16765     as_ln_s='ln -s'
16766     # ... but there are two gotchas:
16767     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16768     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16769     # In both cases, we have to default to `cp -pR'.
16770     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16771       as_ln_s='cp -pR'
16772   elif ln conf$$.file conf$$ 2>/dev/null; then
16773     as_ln_s=ln
16774   else
16775     as_ln_s='cp -pR'
16776   fi
16777 else
16778   as_ln_s='cp -pR'
16779 fi
16780 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16781 rmdir conf$$.dir 2>/dev/null
16782
16783
16784 # as_fn_mkdir_p
16785 # -------------
16786 # Create "$as_dir" as a directory, including parents if necessary.
16787 as_fn_mkdir_p ()
16788 {
16789
16790   case $as_dir in #(
16791   -*) as_dir=./$as_dir;;
16792   esac
16793   test -d "$as_dir" || eval $as_mkdir_p || {
16794     as_dirs=
16795     while :; do
16796       case $as_dir in #(
16797       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16798       *) as_qdir=$as_dir;;
16799       esac
16800       as_dirs="'$as_qdir' $as_dirs"
16801       as_dir=`$as_dirname -- "$as_dir" ||
16802 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16803          X"$as_dir" : 'X\(//\)[^/]' \| \
16804          X"$as_dir" : 'X\(//\)$' \| \
16805          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16806 $as_echo X"$as_dir" |
16807     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16808             s//\1/
16809             q
16810           }
16811           /^X\(\/\/\)[^/].*/{
16812             s//\1/
16813             q
16814           }
16815           /^X\(\/\/\)$/{
16816             s//\1/
16817             q
16818           }
16819           /^X\(\/\).*/{
16820             s//\1/
16821             q
16822           }
16823           s/.*/./; q'`
16824       test -d "$as_dir" && break
16825     done
16826     test -z "$as_dirs" || eval "mkdir $as_dirs"
16827   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16828
16829
16830 } # as_fn_mkdir_p
16831 if mkdir -p . 2>/dev/null; then
16832   as_mkdir_p='mkdir -p "$as_dir"'
16833 else
16834   test -d ./-p && rmdir ./-p
16835   as_mkdir_p=false
16836 fi
16837
16838
16839 # as_fn_executable_p FILE
16840 # -----------------------
16841 # Test if FILE is an executable regular file.
16842 as_fn_executable_p ()
16843 {
16844   test -f "$1" && test -x "$1"
16845 } # as_fn_executable_p
16846 as_test_x='test -x'
16847 as_executable_p=as_fn_executable_p
16848
16849 # Sed expression to map a string onto a valid CPP name.
16850 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16851
16852 # Sed expression to map a string onto a valid variable name.
16853 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16854
16855
16856 exec 6>&1
16857 ## ----------------------------------- ##
16858 ## Main body of $CONFIG_STATUS script. ##
16859 ## ----------------------------------- ##
16860 _ASEOF
16861 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16862
16863 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16864 # Save the log message, to keep $0 and so on meaningful, and to
16865 # report actual input values of CONFIG_FILES etc. instead of their
16866 # values after options handling.
16867 ac_log="
16868 This file was extended by Wine $as_me 1.5.21, which was
16869 generated by GNU Autoconf 2.69.  Invocation command line was
16870
16871   CONFIG_FILES    = $CONFIG_FILES
16872   CONFIG_HEADERS  = $CONFIG_HEADERS
16873   CONFIG_LINKS    = $CONFIG_LINKS
16874   CONFIG_COMMANDS = $CONFIG_COMMANDS
16875   $ $0 $@
16876
16877 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16878 "
16879
16880 _ACEOF
16881
16882 case $ac_config_files in *"
16883 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16884 esac
16885
16886 case $ac_config_headers in *"
16887 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16888 esac
16889
16890
16891 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16892 # Files that config.status was made for.
16893 config_files="$ac_config_files"
16894 config_headers="$ac_config_headers"
16895 config_links="$ac_config_links"
16896 config_commands="$ac_config_commands"
16897
16898 _ACEOF
16899
16900 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16901 ac_cs_usage="\
16902 \`$as_me' instantiates files and other configuration actions
16903 from templates according to the current configuration.  Unless the files
16904 and actions are specified as TAGs, all are instantiated by default.
16905
16906 Usage: $0 [OPTION]... [TAG]...
16907
16908   -h, --help       print this help, then exit
16909   -V, --version    print version number and configuration settings, then exit
16910       --config     print configuration, then exit
16911   -q, --quiet, --silent
16912                    do not print progress messages
16913   -d, --debug      don't remove temporary files
16914       --recheck    update $as_me by reconfiguring in the same conditions
16915       --file=FILE[:TEMPLATE]
16916                    instantiate the configuration file FILE
16917       --header=FILE[:TEMPLATE]
16918                    instantiate the configuration header FILE
16919
16920 Configuration files:
16921 $config_files
16922
16923 Configuration headers:
16924 $config_headers
16925
16926 Configuration links:
16927 $config_links
16928
16929 Configuration commands:
16930 $config_commands
16931
16932 Report bugs to <wine-devel@winehq.org>.
16933 Wine home page: <http://www.winehq.org>."
16934
16935 _ACEOF
16936 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16937 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16938 ac_cs_version="\\
16939 Wine config.status 1.5.21
16940 configured by $0, generated by GNU Autoconf 2.69,
16941   with options \\"\$ac_cs_config\\"
16942
16943 Copyright (C) 2012 Free Software Foundation, Inc.
16944 This config.status script is free software; the Free Software Foundation
16945 gives unlimited permission to copy, distribute and modify it."
16946
16947 ac_pwd='$ac_pwd'
16948 srcdir='$srcdir'
16949 INSTALL='$INSTALL'
16950 test -n "\$AWK" || AWK=awk
16951 _ACEOF
16952
16953 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16954 # The default lists apply if the user does not specify any file.
16955 ac_need_defaults=:
16956 while test $# != 0
16957 do
16958   case $1 in
16959   --*=?*)
16960     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16961     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16962     ac_shift=:
16963     ;;
16964   --*=)
16965     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16966     ac_optarg=
16967     ac_shift=:
16968     ;;
16969   *)
16970     ac_option=$1
16971     ac_optarg=$2
16972     ac_shift=shift
16973     ;;
16974   esac
16975
16976   case $ac_option in
16977   # Handling of the options.
16978   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16979     ac_cs_recheck=: ;;
16980   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16981     $as_echo "$ac_cs_version"; exit ;;
16982   --config | --confi | --conf | --con | --co | --c )
16983     $as_echo "$ac_cs_config"; exit ;;
16984   --debug | --debu | --deb | --de | --d | -d )
16985     debug=: ;;
16986   --file | --fil | --fi | --f )
16987     $ac_shift
16988     case $ac_optarg in
16989     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16990     '') as_fn_error $? "missing file argument" ;;
16991     esac
16992     as_fn_append CONFIG_FILES " '$ac_optarg'"
16993     ac_need_defaults=false;;
16994   --header | --heade | --head | --hea )
16995     $ac_shift
16996     case $ac_optarg in
16997     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16998     esac
16999     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17000     ac_need_defaults=false;;
17001   --he | --h)
17002     # Conflict between --help and --header
17003     as_fn_error $? "ambiguous option: \`$1'
17004 Try \`$0 --help' for more information.";;
17005   --help | --hel | -h )
17006     $as_echo "$ac_cs_usage"; exit ;;
17007   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17008   | -silent | --silent | --silen | --sile | --sil | --si | --s)
17009     ac_cs_silent=: ;;
17010
17011   # This is an error.
17012   -*) as_fn_error $? "unrecognized option: \`$1'
17013 Try \`$0 --help' for more information." ;;
17014
17015   *) as_fn_append ac_config_targets " $1"
17016      ac_need_defaults=false ;;
17017
17018   esac
17019   shift
17020 done
17021
17022 ac_configure_extra_args=
17023
17024 if $ac_cs_silent; then
17025   exec 6>/dev/null
17026   ac_configure_extra_args="$ac_configure_extra_args --silent"
17027 fi
17028
17029 _ACEOF
17030 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17031 if \$ac_cs_recheck; then
17032   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17033   shift
17034   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17035   CONFIG_SHELL='$SHELL'
17036   export CONFIG_SHELL
17037   exec "\$@"
17038 fi
17039
17040 _ACEOF
17041 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17042 exec 5>>config.log
17043 {
17044   echo
17045   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17046 ## Running $as_me. ##
17047 _ASBOX
17048   $as_echo "$ac_log"
17049 } >&5
17050
17051 _ACEOF
17052 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17053 #
17054 # INIT-COMMANDS
17055 #
17056 wine_fn_output_makefile ()
17057 {
17058     cat Make.tmp - <<\_WINE_EOF >\$tmp/makefile && mv -f \$tmp/makefile \$1 && rm -f Make.tmp && return
17059 $ALL_MAKEFILE_DEPENDS
17060 _WINE_EOF
17061     as_fn_error $? "could not create Makefile" "$LINENO" 5
17062 }
17063
17064 _ACEOF
17065
17066 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17067
17068 # Handling of arguments.
17069 for ac_config_target in $ac_config_targets
17070 do
17071   case $ac_config_target in
17072     "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
17073     "include/stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/stamp-h" ;;
17074     "dlls/shell32/AUTHORS") CONFIG_LINKS="$CONFIG_LINKS dlls/shell32/AUTHORS:AUTHORS" ;;
17075     "dlls/wineps.drv/generic.ppd") CONFIG_LINKS="$CONFIG_LINKS dlls/wineps.drv/generic.ppd:dlls/wineps.drv/generic.ppd" ;;
17076     "fonts/marlett.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/marlett.ttf:fonts/marlett.ttf" ;;
17077     "fonts/symbol.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/symbol.ttf:fonts/symbol.ttf" ;;
17078     "fonts/tahoma.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahoma.ttf:fonts/tahoma.ttf" ;;
17079     "fonts/tahomabd.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahomabd.ttf:fonts/tahomabd.ttf" ;;
17080     "po/LINGUAS") CONFIG_LINKS="$CONFIG_LINKS po/LINGUAS:po/LINGUAS" ;;
17081     "tools/l_intl.nls") CONFIG_LINKS="$CONFIG_LINKS tools/l_intl.nls:tools/l_intl.nls" ;;
17082     "wine") CONFIG_LINKS="$CONFIG_LINKS wine:tools/winewrapper" ;;
17083     "wine64") CONFIG_LINKS="$CONFIG_LINKS wine64:tools/winewrapper" ;;
17084     "dlls/gdi32/dibdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/dibdrv" ;;
17085     "dlls/gdi32/enhmfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/enhmfdrv" ;;
17086     "dlls/gdi32/mfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/mfdrv" ;;
17087     "dlls/kernel32/nls") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel32/nls" ;;
17088     "dlls/user32/resources") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user32/resources" ;;
17089     "dlls/wineps.drv/data") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps.drv/data" ;;
17090     "include/wine") CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
17091     "Make.rules") CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
17092     "Maketest.rules") CONFIG_FILES="$CONFIG_FILES Maketest.rules" ;;
17093     "dlls/Makedll.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
17094     "dlls/Makeimplib.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makeimplib.rules" ;;
17095     "programs/Makeprog.rules") CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
17096     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
17097     "Make.tmp") CONFIG_FILES="$CONFIG_FILES Make.tmp:Make.vars.in:Makefile.in" ;;
17098
17099   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17100   esac
17101 done
17102
17103
17104 # If the user did not use the arguments to specify the items to instantiate,
17105 # then the envvar interface is used.  Set only those that are not.
17106 # We use the long form for the default assignment because of an extremely
17107 # bizarre bug on SunOS 4.1.3.
17108 if $ac_need_defaults; then
17109   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17110   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17111   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
17112   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17113 fi
17114
17115 # Have a temporary directory for convenience.  Make it in the build tree
17116 # simply because there is no reason against having it here, and in addition,
17117 # creating and moving files from /tmp can sometimes cause problems.
17118 # Hook for its removal unless debugging.
17119 # Note that there is a small window in which the directory will not be cleaned:
17120 # after its creation but before its name has been assigned to `$tmp'.
17121 $debug ||
17122 {
17123   tmp= ac_tmp=
17124   trap 'exit_status=$?
17125   : "${ac_tmp:=$tmp}"
17126   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17127 ' 0
17128   trap 'as_fn_exit 1' 1 2 13 15
17129 }
17130 # Create a (secure) tmp directory for tmp files.
17131
17132 {
17133   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17134   test -d "$tmp"
17135 }  ||
17136 {
17137   tmp=./conf$$-$RANDOM
17138   (umask 077 && mkdir "$tmp")
17139 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17140 ac_tmp=$tmp
17141
17142 # Set up the scripts for CONFIG_FILES section.
17143 # No need to generate them if there are no CONFIG_FILES.
17144 # This happens for instance with `./config.status config.h'.
17145 if test -n "$CONFIG_FILES"; then
17146
17147 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
17148   ac_cs_awk_getline=:
17149   ac_cs_awk_pipe_init=
17150   ac_cs_awk_read_file='
17151       while ((getline aline < (F[key])) > 0)
17152         print(aline)
17153       close(F[key])'
17154   ac_cs_awk_pipe_fini=
17155 else
17156   ac_cs_awk_getline=false
17157   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
17158   ac_cs_awk_read_file='
17159       print "|#_!!_#|"
17160       print "cat " F[key] " &&"
17161       '$ac_cs_awk_pipe_init
17162   # The final `:' finishes the AND list.
17163   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
17164 fi
17165 ac_cr=`echo X | tr X '\015'`
17166 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17167 # But we know of no other shell where ac_cr would be empty at this
17168 # point, so we can use a bashism as a fallback.
17169 if test "x$ac_cr" = x; then
17170   eval ac_cr=\$\'\\r\'
17171 fi
17172 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17173 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17174   ac_cs_awk_cr='\\r'
17175 else
17176   ac_cs_awk_cr=$ac_cr
17177 fi
17178
17179 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17180 _ACEOF
17181
17182 # Create commands to substitute file output variables.
17183 {
17184   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
17185   echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
17186   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
17187   echo "_ACAWK" &&
17188   echo "_ACEOF"
17189 } >conf$$files.sh &&
17190 . ./conf$$files.sh ||
17191   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17192 rm -f conf$$files.sh
17193
17194 {
17195   echo "cat >conf$$subs.awk <<_ACEOF" &&
17196   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17197   echo "_ACEOF"
17198 } >conf$$subs.sh ||
17199   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17200 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17201 ac_delim='%!_!# '
17202 for ac_last_try in false false false false false :; do
17203   . ./conf$$subs.sh ||
17204     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17205
17206   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17207   if test $ac_delim_n = $ac_delim_num; then
17208     break
17209   elif $ac_last_try; then
17210     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17211   else
17212     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17213   fi
17214 done
17215 rm -f conf$$subs.sh
17216
17217 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17218 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17219 _ACEOF
17220 sed -n '
17221 h
17222 s/^/S["/; s/!.*/"]=/
17223 p
17224 g
17225 s/^[^!]*!//
17226 :repl
17227 t repl
17228 s/'"$ac_delim"'$//
17229 t delim
17230 :nl
17231 h
17232 s/\(.\{148\}\)..*/\1/
17233 t more1
17234 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17235 p
17236 n
17237 b repl
17238 :more1
17239 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17240 p
17241 g
17242 s/.\{148\}//
17243 t nl
17244 :delim
17245 h
17246 s/\(.\{148\}\)..*/\1/
17247 t more2
17248 s/["\\]/\\&/g; s/^/"/; s/$/"/
17249 p
17250 b
17251 :more2
17252 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17253 p
17254 g
17255 s/.\{148\}//
17256 t delim
17257 ' <conf$$subs.awk | sed '
17258 /^[^""]/{
17259   N
17260   s/\n//
17261 }
17262 ' >>$CONFIG_STATUS || ac_write_fail=1
17263 rm -f conf$$subs.awk
17264 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17265 _ACAWK
17266 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17267   for (key in S) S_is_set[key] = 1
17268   FS = "\a"
17269   \$ac_cs_awk_pipe_init
17270 }
17271 {
17272   line = $ 0
17273   nfields = split(line, field, "@")
17274   substed = 0
17275   len = length(field[1])
17276   for (i = 2; i < nfields; i++) {
17277     key = field[i]
17278     keylen = length(key)
17279     if (S_is_set[key]) {
17280       value = S[key]
17281       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17282       len += length(value) + length(field[++i])
17283       substed = 1
17284     } else
17285       len += 1 + keylen
17286   }
17287   if (nfields == 3 && !substed) {
17288     key = field[2]
17289     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
17290       \$ac_cs_awk_read_file
17291       next
17292     }
17293   }
17294   print line
17295 }
17296 \$ac_cs_awk_pipe_fini
17297 _ACAWK
17298 _ACEOF
17299 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17300 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17301   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17302 else
17303   cat
17304 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17305   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17306 _ACEOF
17307
17308 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17309 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17310 # trailing colons and then remove the whole line if VPATH becomes empty
17311 # (actually we leave an empty line to preserve line numbers).
17312 if test "x$srcdir" = x.; then
17313   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
17314 h
17315 s///
17316 s/^/:/
17317 s/[      ]*$/:/
17318 s/:\$(srcdir):/:/g
17319 s/:\${srcdir}:/:/g
17320 s/:@srcdir@:/:/g
17321 s/^:*//
17322 s/:*$//
17323 x
17324 s/\(=[   ]*\).*/\1/
17325 G
17326 s/\n//
17327 s/^[^=]*=[       ]*$//
17328 }'
17329 fi
17330
17331 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17332 fi # test -n "$CONFIG_FILES"
17333
17334 # Set up the scripts for CONFIG_HEADERS section.
17335 # No need to generate them if there are no CONFIG_HEADERS.
17336 # This happens for instance with `./config.status Makefile'.
17337 if test -n "$CONFIG_HEADERS"; then
17338 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17339 BEGIN {
17340 _ACEOF
17341
17342 # Transform confdefs.h into an awk script `defines.awk', embedded as
17343 # here-document in config.status, that substitutes the proper values into
17344 # config.h.in to produce config.h.
17345
17346 # Create a delimiter string that does not exist in confdefs.h, to ease
17347 # handling of long lines.
17348 ac_delim='%!_!# '
17349 for ac_last_try in false false :; do
17350   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17351   if test -z "$ac_tt"; then
17352     break
17353   elif $ac_last_try; then
17354     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17355   else
17356     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17357   fi
17358 done
17359
17360 # For the awk script, D is an array of macro values keyed by name,
17361 # likewise P contains macro parameters if any.  Preserve backslash
17362 # newline sequences.
17363
17364 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17365 sed -n '
17366 s/.\{148\}/&'"$ac_delim"'/g
17367 t rset
17368 :rset
17369 s/^[     ]*#[    ]*define[       ][      ]*/ /
17370 t def
17371 d
17372 :def
17373 s/\\$//
17374 t bsnl
17375 s/["\\]/\\&/g
17376 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17377 D["\1"]=" \3"/p
17378 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
17379 d
17380 :bsnl
17381 s/["\\]/\\&/g
17382 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17383 D["\1"]=" \3\\\\\\n"\\/p
17384 t cont
17385 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17386 t cont
17387 d
17388 :cont
17389 n
17390 s/.\{148\}/&'"$ac_delim"'/g
17391 t clear
17392 :clear
17393 s/\\$//
17394 t bsnlc
17395 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17396 d
17397 :bsnlc
17398 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17399 b cont
17400 ' <confdefs.h | sed '
17401 s/'"$ac_delim"'/"\\\
17402 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17403
17404 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17405   for (key in D) D_is_set[key] = 1
17406   FS = "\a"
17407 }
17408 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17409   line = \$ 0
17410   split(line, arg, " ")
17411   if (arg[1] == "#") {
17412     defundef = arg[2]
17413     mac1 = arg[3]
17414   } else {
17415     defundef = substr(arg[1], 2)
17416     mac1 = arg[2]
17417   }
17418   split(mac1, mac2, "(") #)
17419   macro = mac2[1]
17420   prefix = substr(line, 1, index(line, defundef) - 1)
17421   if (D_is_set[macro]) {
17422     # Preserve the white space surrounding the "#".
17423     print prefix "define", macro P[macro] D[macro]
17424     next
17425   } else {
17426     # Replace #undef with comments.  This is necessary, for example,
17427     # in the case of _POSIX_SOURCE, which is predefined and required
17428     # on some systems where configure will not decide to define it.
17429     if (defundef == "undef") {
17430       print "/*", prefix defundef, macro, "*/"
17431       next
17432     }
17433   }
17434 }
17435 { print }
17436 _ACAWK
17437 _ACEOF
17438 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17439   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17440 fi # test -n "$CONFIG_HEADERS"
17441
17442
17443 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
17444 shift
17445 for ac_tag
17446 do
17447   case $ac_tag in
17448   :[FHLC]) ac_mode=$ac_tag; continue;;
17449   esac
17450   case $ac_mode$ac_tag in
17451   :[FHL]*:*);;
17452   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17453   :[FH]-) ac_tag=-:-;;
17454   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17455   esac
17456   ac_save_IFS=$IFS
17457   IFS=:
17458   set x $ac_tag
17459   IFS=$ac_save_IFS
17460   shift
17461   ac_file=$1
17462   shift
17463
17464   case $ac_mode in
17465   :L) ac_source=$1;;
17466   :[FH])
17467     ac_file_inputs=
17468     for ac_f
17469     do
17470       case $ac_f in
17471       -) ac_f="$ac_tmp/stdin";;
17472       *) # Look for the file first in the build tree, then in the source tree
17473          # (if the path is not absolute).  The absolute path cannot be DOS-style,
17474          # because $ac_f cannot contain `:'.
17475          test -f "$ac_f" ||
17476            case $ac_f in
17477            [\\/$]*) false;;
17478            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17479            esac ||
17480            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17481       esac
17482       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17483       as_fn_append ac_file_inputs " '$ac_f'"
17484     done
17485
17486     # Let's still pretend it is `configure' which instantiates (i.e., don't
17487     # use $as_me), people would be surprised to read:
17488     #    /* config.h.  Generated by config.status.  */
17489     configure_input='Generated from '`
17490           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17491         `' by configure.'
17492     if test x"$ac_file" != x-; then
17493       configure_input="$ac_file.  $configure_input"
17494       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17495 $as_echo "$as_me: creating $ac_file" >&6;}
17496     fi
17497     # Neutralize special characters interpreted by sed in replacement strings.
17498     case $configure_input in #(
17499     *\&* | *\|* | *\\* )
17500        ac_sed_conf_input=`$as_echo "$configure_input" |
17501        sed 's/[\\\\&|]/\\\\&/g'`;; #(
17502     *) ac_sed_conf_input=$configure_input;;
17503     esac
17504
17505     case $ac_tag in
17506     *:-:* | *:-) cat >"$ac_tmp/stdin" \
17507       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17508     esac
17509     ;;
17510   esac
17511
17512   ac_dir=`$as_dirname -- "$ac_file" ||
17513 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17514          X"$ac_file" : 'X\(//\)[^/]' \| \
17515          X"$ac_file" : 'X\(//\)$' \| \
17516          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17517 $as_echo X"$ac_file" |
17518     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17519             s//\1/
17520             q
17521           }
17522           /^X\(\/\/\)[^/].*/{
17523             s//\1/
17524             q
17525           }
17526           /^X\(\/\/\)$/{
17527             s//\1/
17528             q
17529           }
17530           /^X\(\/\).*/{
17531             s//\1/
17532             q
17533           }
17534           s/.*/./; q'`
17535   as_dir="$ac_dir"; as_fn_mkdir_p
17536   ac_builddir=.
17537
17538 case "$ac_dir" in
17539 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17540 *)
17541   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17542   # A ".." for each directory in $ac_dir_suffix.
17543   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17544   case $ac_top_builddir_sub in
17545   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17546   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17547   esac ;;
17548 esac
17549 ac_abs_top_builddir=$ac_pwd
17550 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17551 # for backward compatibility:
17552 ac_top_builddir=$ac_top_build_prefix
17553
17554 case $srcdir in
17555   .)  # We are building in place.
17556     ac_srcdir=.
17557     ac_top_srcdir=$ac_top_builddir_sub
17558     ac_abs_top_srcdir=$ac_pwd ;;
17559   [\\/]* | ?:[\\/]* )  # Absolute name.
17560     ac_srcdir=$srcdir$ac_dir_suffix;
17561     ac_top_srcdir=$srcdir
17562     ac_abs_top_srcdir=$srcdir ;;
17563   *) # Relative name.
17564     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17565     ac_top_srcdir=$ac_top_build_prefix$srcdir
17566     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17567 esac
17568 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17569
17570
17571   case $ac_mode in
17572   :F)
17573   #
17574   # CONFIG_FILE
17575   #
17576
17577   case $INSTALL in
17578   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17579   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17580   esac
17581 _ACEOF
17582
17583 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17584 # If the template does not know about datarootdir, expand it.
17585 # FIXME: This hack should be removed a few years after 2.60.
17586 ac_datarootdir_hack=; ac_datarootdir_seen=
17587 ac_sed_dataroot='
17588 /datarootdir/ {
17589   p
17590   q
17591 }
17592 /@datadir@/p
17593 /@docdir@/p
17594 /@infodir@/p
17595 /@localedir@/p
17596 /@mandir@/p'
17597 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17598 *datarootdir*) ac_datarootdir_seen=yes;;
17599 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17600   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17601 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17602 _ACEOF
17603 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17604   ac_datarootdir_hack='
17605   s&@datadir@&$datadir&g
17606   s&@docdir@&$docdir&g
17607   s&@infodir@&$infodir&g
17608   s&@localedir@&$localedir&g
17609   s&@mandir@&$mandir&g
17610   s&\\\${datarootdir}&$datarootdir&g' ;;
17611 esac
17612 _ACEOF
17613
17614 # Neutralize VPATH when `$srcdir' = `.'.
17615 # Shell code in configure.ac might set extrasub.
17616 # FIXME: do we really want to maintain this feature?
17617 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17618 ac_sed_extra="$ac_vpsub
17619 $extrasub
17620 _ACEOF
17621 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17622 :t
17623 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17624 s|@configure_input@|$ac_sed_conf_input|;t t
17625 s&@top_builddir@&$ac_top_builddir_sub&;t t
17626 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17627 s&@srcdir@&$ac_srcdir&;t t
17628 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17629 s&@top_srcdir@&$ac_top_srcdir&;t t
17630 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17631 s&@builddir@&$ac_builddir&;t t
17632 s&@abs_builddir@&$ac_abs_builddir&;t t
17633 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17634 s&@INSTALL@&$ac_INSTALL&;t t
17635 $ac_datarootdir_hack
17636 "
17637 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
17638 if $ac_cs_awk_getline; then
17639   $AWK -f "$ac_tmp/subs.awk"
17640 else
17641   $AWK -f "$ac_tmp/subs.awk" | $SHELL
17642 fi \
17643   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17644
17645 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17646   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17647   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
17648       "$ac_tmp/out"`; test -z "$ac_out"; } &&
17649   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17650 which seems to be undefined.  Please make sure it is defined" >&5
17651 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17652 which seems to be undefined.  Please make sure it is defined" >&2;}
17653
17654   rm -f "$ac_tmp/stdin"
17655   case $ac_file in
17656   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17657   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17658   esac \
17659   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17660  ;;
17661   :H)
17662   #
17663   # CONFIG_HEADER
17664   #
17665   if test x"$ac_file" != x-; then
17666     {
17667       $as_echo "/* $configure_input  */" \
17668       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17669     } >"$ac_tmp/config.h" \
17670       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17671     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17672       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17673 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17674     else
17675       rm -f "$ac_file"
17676       mv "$ac_tmp/config.h" "$ac_file" \
17677         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17678     fi
17679   else
17680     $as_echo "/* $configure_input  */" \
17681       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17682       || as_fn_error $? "could not create -" "$LINENO" 5
17683   fi
17684  ;;
17685   :L)
17686   #
17687   # CONFIG_LINK
17688   #
17689
17690   if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
17691     :
17692   else
17693     # Prefer the file from the source tree if names are identical.
17694     if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
17695       ac_source=$srcdir/$ac_source
17696     fi
17697
17698     { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
17699 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
17700
17701     if test ! -r "$ac_source"; then
17702       as_fn_error $? "$ac_source: file not found" "$LINENO" 5
17703     fi
17704     rm -f "$ac_file"
17705
17706     # Try a relative symlink, then a hard link, then a copy.
17707     case $ac_source in
17708     [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
17709         *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
17710     esac
17711     ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
17712       ln "$ac_source" "$ac_file" 2>/dev/null ||
17713       cp -p "$ac_source" "$ac_file" ||
17714       as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
17715   fi
17716  ;;
17717   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17718 $as_echo "$as_me: executing $ac_file commands" >&6;}
17719  ;;
17720   esac
17721
17722
17723   case $ac_file$ac_mode in
17724     "include/stamp-h":C) echo timestamp > include/stamp-h ;;
17725     "dlls/gdi32/dibdrv":C) test -d "dlls/gdi32/dibdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/dibdrv" >&5
17726 $as_echo "$as_me: creating dlls/gdi32/dibdrv" >&6;}; as_dir="dlls/gdi32/dibdrv"; as_fn_mkdir_p; } ;;
17727     "dlls/gdi32/enhmfdrv":C) test -d "dlls/gdi32/enhmfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/enhmfdrv" >&5
17728 $as_echo "$as_me: creating dlls/gdi32/enhmfdrv" >&6;}; as_dir="dlls/gdi32/enhmfdrv"; as_fn_mkdir_p; } ;;
17729     "dlls/gdi32/mfdrv":C) test -d "dlls/gdi32/mfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/mfdrv" >&5
17730 $as_echo "$as_me: creating dlls/gdi32/mfdrv" >&6;}; as_dir="dlls/gdi32/mfdrv"; as_fn_mkdir_p; } ;;
17731     "dlls/kernel32/nls":C) test -d "dlls/kernel32/nls" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/kernel32/nls" >&5
17732 $as_echo "$as_me: creating dlls/kernel32/nls" >&6;}; as_dir="dlls/kernel32/nls"; as_fn_mkdir_p; } ;;
17733     "dlls/user32/resources":C) test -d "dlls/user32/resources" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/user32/resources" >&5
17734 $as_echo "$as_me: creating dlls/user32/resources" >&6;}; as_dir="dlls/user32/resources"; as_fn_mkdir_p; } ;;
17735     "dlls/wineps.drv/data":C) test -d "dlls/wineps.drv/data" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/wineps.drv/data" >&5
17736 $as_echo "$as_me: creating dlls/wineps.drv/data" >&6;}; as_dir="dlls/wineps.drv/data"; as_fn_mkdir_p; } ;;
17737     "include/wine":C) test -d "include/wine" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating include/wine" >&5
17738 $as_echo "$as_me: creating include/wine" >&6;}; as_dir="include/wine"; as_fn_mkdir_p; } ;;
17739     "Makefile":C) wine_fn_output_makefile Makefile ;;
17740
17741   esac
17742 done # for ac_tag
17743
17744
17745 as_fn_exit 0
17746 _ACEOF
17747 ac_clean_files=$ac_clean_files_save
17748
17749 test $ac_write_fail = 0 ||
17750   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17751
17752
17753 # configure is writing to config.log, and then calls config.status.
17754 # config.status does its own redirection, appending to config.log.
17755 # Unfortunately, on DOS this fails, as config.log is still kept open
17756 # by configure, so config.status won't be able to write to it; its
17757 # output is simply discarded.  So we exec the FD to /dev/null,
17758 # effectively closing config.log, so it can be properly (re)opened and
17759 # appended to by config.status.  When coming back to configure, we
17760 # need to make the FD available again.
17761 if test "$no_create" != yes; then
17762   ac_cs_success=:
17763   ac_config_status_args=
17764   test "$silent" = yes &&
17765     ac_config_status_args="$ac_config_status_args --quiet"
17766   exec 5>/dev/null
17767   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17768   exec 5>>config.log
17769   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17770   # would make configure fail if this is the last instruction.
17771   $ac_cs_success || as_fn_exit 1
17772 fi
17773 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17774   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17775 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17776 fi
17777
17778
17779 if test "$no_create" = "yes"
17780 then
17781   exit 0
17782 fi
17783
17784 ac_save_IFS="$IFS"
17785 if test "x$wine_notices != "x; then
17786     echo >&6
17787     IFS="|"
17788     for msg in $wine_notices; do
17789         IFS="$ac_save_IFS"
17790         if test -n "$msg"; then
17791             { $as_echo "$as_me:${as_lineno-$LINENO}: $msg" >&5
17792 $as_echo "$as_me: $msg" >&6;}
17793         fi
17794     done
17795 fi
17796 IFS="|"
17797 for msg in $wine_warnings; do
17798     IFS="$ac_save_IFS"
17799     if test -n "$msg"; then
17800         echo >&2
17801         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $msg" >&5
17802 $as_echo "$as_me: WARNING: $msg" >&2;}
17803     fi
17804 done
17805 IFS="$ac_save_IFS"
17806
17807 echo "
17808 $as_me: Finished.  Do '${ac_make}' to compile Wine.
17809 " >&6
17810