Release 1.4.1.
[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.4.1.
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.4.1'
584 PACKAGE_STRING='Wine 1.4.1'
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 LDD
696 LDRPATH_LOCAL
697 LDRPATH_INSTALL
698 IMPLIBEXT
699 LIBEXT
700 LDDLLFLAGS
701 LDSHARED
702 DLLFLAGS
703 DLLEXT
704 CPP
705 OPENGL_LIBS
706 XLIB
707 MAINTAINER_MODE
708 MSGFMT
709 ICOTOOL
710 CONVERT
711 RSVG
712 PKG_CONFIG
713 FONTFORGE
714 LINTFLAGS
715 LINT
716 INSTALL_DATA
717 INSTALL_SCRIPT
718 INSTALL_PROGRAM
719 LDCONFIG
720 EGREP
721 GREP
722 LN_S
723 RANLIB
724 ARFLAGS
725 ac_ct_AR
726 AR
727 BISON
728 FLEX
729 TOOLSDIR
730 WOW64_DISABLE
731 TARGETFLAGS
732 CPPBIN
733 ac_ct_CXX
734 CXXFLAGS
735 CXX
736 OBJEXT
737 EXEEXT
738 ac_ct_CC
739 CPPFLAGS
740 LDFLAGS
741 CFLAGS
742 CC
743 SET_MAKE
744 host_os
745 host_vendor
746 host_cpu
747 host
748 build_os
749 build_vendor
750 build_cpu
751 build
752 target_alias
753 host_alias
754 build_alias
755 LIBS
756 ECHO_T
757 ECHO_N
758 ECHO_C
759 DEFS
760 mandir
761 localedir
762 libdir
763 psdir
764 pdfdir
765 dvidir
766 htmldir
767 infodir
768 docdir
769 oldincludedir
770 includedir
771 localstatedir
772 sharedstatedir
773 sysconfdir
774 datadir
775 datarootdir
776 libexecdir
777 sbindir
778 bindir
779 program_transform_name
780 prefix
781 exec_prefix
782 PACKAGE_URL
783 PACKAGE_BUGREPORT
784 PACKAGE_STRING
785 PACKAGE_VERSION
786 PACKAGE_TARNAME
787 PACKAGE_NAME
788 PATH_SEPARATOR
789 SHELL'
790 ac_subst_files='MAKE_RULES
791 MAKE_TEST_RULES
792 MAKE_DLL_RULES
793 MAKE_IMPLIB_RULES
794 MAKE_PROG_RULES'
795 ac_user_opts='
796 enable_option_checking
797 enable_win16
798 enable_win64
799 enable_tests
800 enable_maintainer_mode
801 with_alsa
802 with_capi
803 with_cms
804 with_coreaudio
805 with_cups
806 with_curses
807 with_dbus
808 with_fontconfig
809 with_freetype
810 with_gettext
811 with_gettextpo
812 with_gphoto
813 with_glu
814 with_gnutls
815 with_gsm
816 with_gstreamer
817 with_hal
818 with_jpeg
819 with_ldap
820 with_mpg123
821 with_openal
822 with_opencl
823 with_opengl
824 with_openssl
825 with_oss
826 with_png
827 with_pthread
828 with_sane
829 with_tiff
830 with_v4l
831 with_xcomposite
832 with_xcursor
833 with_xinerama
834 with_xinput
835 with_xinput2
836 with_xml
837 with_xrandr
838 with_xrender
839 with_xshape
840 with_xslt
841 with_xxf86vm
842 with_zlib
843 with_wine_tools
844 with_wine64
845 enable_largefile
846 with_x
847 '
848       ac_precious_vars='build_alias
849 host_alias
850 target_alias
851 CC
852 CFLAGS
853 LDFLAGS
854 LIBS
855 CPPFLAGS
856 CXX
857 CXXFLAGS
858 CCC
859 CPP
860 XMKMF'
861
862
863 # Initialize some variables set by options.
864 ac_init_help=
865 ac_init_version=false
866 ac_unrecognized_opts=
867 ac_unrecognized_sep=
868 # The variables have the same names as the options, with
869 # dashes changed to underlines.
870 cache_file=/dev/null
871 exec_prefix=NONE
872 no_create=
873 no_recursion=
874 prefix=NONE
875 program_prefix=NONE
876 program_suffix=NONE
877 program_transform_name=s,x,x,
878 silent=
879 site=
880 srcdir=
881 verbose=
882 x_includes=NONE
883 x_libraries=NONE
884
885 # Installation directory options.
886 # These are left unexpanded so users can "make install exec_prefix=/foo"
887 # and all the variables that are supposed to be based on exec_prefix
888 # by default will actually change.
889 # Use braces instead of parens because sh, perl, etc. also accept them.
890 # (The list follows the same order as the GNU Coding Standards.)
891 bindir='${exec_prefix}/bin'
892 sbindir='${exec_prefix}/sbin'
893 libexecdir='${exec_prefix}/libexec'
894 datarootdir='${prefix}/share'
895 datadir='${datarootdir}'
896 sysconfdir='${prefix}/etc'
897 sharedstatedir='${prefix}/com'
898 localstatedir='${prefix}/var'
899 includedir='${prefix}/include'
900 oldincludedir='/usr/include'
901 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
902 infodir='${datarootdir}/info'
903 htmldir='${docdir}'
904 dvidir='${docdir}'
905 pdfdir='${docdir}'
906 psdir='${docdir}'
907 libdir='${exec_prefix}/lib'
908 localedir='${datarootdir}/locale'
909 mandir='${datarootdir}/man'
910
911 ac_prev=
912 ac_dashdash=
913 for ac_option
914 do
915   # If the previous option needs an argument, assign it.
916   if test -n "$ac_prev"; then
917     eval $ac_prev=\$ac_option
918     ac_prev=
919     continue
920   fi
921
922   case $ac_option in
923   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
924   *=)   ac_optarg= ;;
925   *)    ac_optarg=yes ;;
926   esac
927
928   # Accept the important Cygnus configure options, so we can diagnose typos.
929
930   case $ac_dashdash$ac_option in
931   --)
932     ac_dashdash=yes ;;
933
934   -bindir | --bindir | --bindi | --bind | --bin | --bi)
935     ac_prev=bindir ;;
936   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
937     bindir=$ac_optarg ;;
938
939   -build | --build | --buil | --bui | --bu)
940     ac_prev=build_alias ;;
941   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
942     build_alias=$ac_optarg ;;
943
944   -cache-file | --cache-file | --cache-fil | --cache-fi \
945   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
946     ac_prev=cache_file ;;
947   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
948   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
949     cache_file=$ac_optarg ;;
950
951   --config-cache | -C)
952     cache_file=config.cache ;;
953
954   -datadir | --datadir | --datadi | --datad)
955     ac_prev=datadir ;;
956   -datadir=* | --datadir=* | --datadi=* | --datad=*)
957     datadir=$ac_optarg ;;
958
959   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
960   | --dataroo | --dataro | --datar)
961     ac_prev=datarootdir ;;
962   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
963   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
964     datarootdir=$ac_optarg ;;
965
966   -disable-* | --disable-*)
967     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
968     # Reject names that are not valid shell variable names.
969     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
970       as_fn_error $? "invalid feature name: $ac_useropt"
971     ac_useropt_orig=$ac_useropt
972     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
973     case $ac_user_opts in
974       *"
975 "enable_$ac_useropt"
976 "*) ;;
977       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
978          ac_unrecognized_sep=', ';;
979     esac
980     eval enable_$ac_useropt=no ;;
981
982   -docdir | --docdir | --docdi | --doc | --do)
983     ac_prev=docdir ;;
984   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
985     docdir=$ac_optarg ;;
986
987   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
988     ac_prev=dvidir ;;
989   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
990     dvidir=$ac_optarg ;;
991
992   -enable-* | --enable-*)
993     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
994     # Reject names that are not valid shell variable names.
995     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
996       as_fn_error $? "invalid feature name: $ac_useropt"
997     ac_useropt_orig=$ac_useropt
998     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
999     case $ac_user_opts in
1000       *"
1001 "enable_$ac_useropt"
1002 "*) ;;
1003       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1004          ac_unrecognized_sep=', ';;
1005     esac
1006     eval enable_$ac_useropt=\$ac_optarg ;;
1007
1008   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1009   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1010   | --exec | --exe | --ex)
1011     ac_prev=exec_prefix ;;
1012   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1013   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1014   | --exec=* | --exe=* | --ex=*)
1015     exec_prefix=$ac_optarg ;;
1016
1017   -gas | --gas | --ga | --g)
1018     # Obsolete; use --with-gas.
1019     with_gas=yes ;;
1020
1021   -help | --help | --hel | --he | -h)
1022     ac_init_help=long ;;
1023   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1024     ac_init_help=recursive ;;
1025   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1026     ac_init_help=short ;;
1027
1028   -host | --host | --hos | --ho)
1029     ac_prev=host_alias ;;
1030   -host=* | --host=* | --hos=* | --ho=*)
1031     host_alias=$ac_optarg ;;
1032
1033   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1034     ac_prev=htmldir ;;
1035   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1036   | --ht=*)
1037     htmldir=$ac_optarg ;;
1038
1039   -includedir | --includedir | --includedi | --included | --include \
1040   | --includ | --inclu | --incl | --inc)
1041     ac_prev=includedir ;;
1042   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1043   | --includ=* | --inclu=* | --incl=* | --inc=*)
1044     includedir=$ac_optarg ;;
1045
1046   -infodir | --infodir | --infodi | --infod | --info | --inf)
1047     ac_prev=infodir ;;
1048   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1049     infodir=$ac_optarg ;;
1050
1051   -libdir | --libdir | --libdi | --libd)
1052     ac_prev=libdir ;;
1053   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1054     libdir=$ac_optarg ;;
1055
1056   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1057   | --libexe | --libex | --libe)
1058     ac_prev=libexecdir ;;
1059   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1060   | --libexe=* | --libex=* | --libe=*)
1061     libexecdir=$ac_optarg ;;
1062
1063   -localedir | --localedir | --localedi | --localed | --locale)
1064     ac_prev=localedir ;;
1065   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1066     localedir=$ac_optarg ;;
1067
1068   -localstatedir | --localstatedir | --localstatedi | --localstated \
1069   | --localstate | --localstat | --localsta | --localst | --locals)
1070     ac_prev=localstatedir ;;
1071   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1072   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1073     localstatedir=$ac_optarg ;;
1074
1075   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1076     ac_prev=mandir ;;
1077   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1078     mandir=$ac_optarg ;;
1079
1080   -nfp | --nfp | --nf)
1081     # Obsolete; use --without-fp.
1082     with_fp=no ;;
1083
1084   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1085   | --no-cr | --no-c | -n)
1086     no_create=yes ;;
1087
1088   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1089   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1090     no_recursion=yes ;;
1091
1092   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1093   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1094   | --oldin | --oldi | --old | --ol | --o)
1095     ac_prev=oldincludedir ;;
1096   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1097   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1098   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1099     oldincludedir=$ac_optarg ;;
1100
1101   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1102     ac_prev=prefix ;;
1103   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1104     prefix=$ac_optarg ;;
1105
1106   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1107   | --program-pre | --program-pr | --program-p)
1108     ac_prev=program_prefix ;;
1109   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1110   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1111     program_prefix=$ac_optarg ;;
1112
1113   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1114   | --program-suf | --program-su | --program-s)
1115     ac_prev=program_suffix ;;
1116   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1117   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1118     program_suffix=$ac_optarg ;;
1119
1120   -program-transform-name | --program-transform-name \
1121   | --program-transform-nam | --program-transform-na \
1122   | --program-transform-n | --program-transform- \
1123   | --program-transform | --program-transfor \
1124   | --program-transfo | --program-transf \
1125   | --program-trans | --program-tran \
1126   | --progr-tra | --program-tr | --program-t)
1127     ac_prev=program_transform_name ;;
1128   -program-transform-name=* | --program-transform-name=* \
1129   | --program-transform-nam=* | --program-transform-na=* \
1130   | --program-transform-n=* | --program-transform-=* \
1131   | --program-transform=* | --program-transfor=* \
1132   | --program-transfo=* | --program-transf=* \
1133   | --program-trans=* | --program-tran=* \
1134   | --progr-tra=* | --program-tr=* | --program-t=*)
1135     program_transform_name=$ac_optarg ;;
1136
1137   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1138     ac_prev=pdfdir ;;
1139   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1140     pdfdir=$ac_optarg ;;
1141
1142   -psdir | --psdir | --psdi | --psd | --ps)
1143     ac_prev=psdir ;;
1144   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1145     psdir=$ac_optarg ;;
1146
1147   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1148   | -silent | --silent | --silen | --sile | --sil)
1149     silent=yes ;;
1150
1151   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1152     ac_prev=sbindir ;;
1153   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1154   | --sbi=* | --sb=*)
1155     sbindir=$ac_optarg ;;
1156
1157   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1158   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1159   | --sharedst | --shareds | --shared | --share | --shar \
1160   | --sha | --sh)
1161     ac_prev=sharedstatedir ;;
1162   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1163   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1164   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1165   | --sha=* | --sh=*)
1166     sharedstatedir=$ac_optarg ;;
1167
1168   -site | --site | --sit)
1169     ac_prev=site ;;
1170   -site=* | --site=* | --sit=*)
1171     site=$ac_optarg ;;
1172
1173   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1174     ac_prev=srcdir ;;
1175   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1176     srcdir=$ac_optarg ;;
1177
1178   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1179   | --syscon | --sysco | --sysc | --sys | --sy)
1180     ac_prev=sysconfdir ;;
1181   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1182   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1183     sysconfdir=$ac_optarg ;;
1184
1185   -target | --target | --targe | --targ | --tar | --ta | --t)
1186     ac_prev=target_alias ;;
1187   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1188     target_alias=$ac_optarg ;;
1189
1190   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1191     verbose=yes ;;
1192
1193   -version | --version | --versio | --versi | --vers | -V)
1194     ac_init_version=: ;;
1195
1196   -with-* | --with-*)
1197     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1198     # Reject names that are not valid shell variable names.
1199     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1200       as_fn_error $? "invalid package name: $ac_useropt"
1201     ac_useropt_orig=$ac_useropt
1202     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1203     case $ac_user_opts in
1204       *"
1205 "with_$ac_useropt"
1206 "*) ;;
1207       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1208          ac_unrecognized_sep=', ';;
1209     esac
1210     eval with_$ac_useropt=\$ac_optarg ;;
1211
1212   -without-* | --without-*)
1213     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1214     # Reject names that are not valid shell variable names.
1215     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1216       as_fn_error $? "invalid package name: $ac_useropt"
1217     ac_useropt_orig=$ac_useropt
1218     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1219     case $ac_user_opts in
1220       *"
1221 "with_$ac_useropt"
1222 "*) ;;
1223       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1224          ac_unrecognized_sep=', ';;
1225     esac
1226     eval with_$ac_useropt=no ;;
1227
1228   --x)
1229     # Obsolete; use --with-x.
1230     with_x=yes ;;
1231
1232   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1233   | --x-incl | --x-inc | --x-in | --x-i)
1234     ac_prev=x_includes ;;
1235   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1236   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1237     x_includes=$ac_optarg ;;
1238
1239   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1240   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1241     ac_prev=x_libraries ;;
1242   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1243   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1244     x_libraries=$ac_optarg ;;
1245
1246   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1247 Try \`$0 --help' for more information"
1248     ;;
1249
1250   *=*)
1251     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1252     # Reject names that are not valid shell variable names.
1253     case $ac_envvar in #(
1254       '' | [0-9]* | *[!_$as_cr_alnum]* )
1255       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1256     esac
1257     eval $ac_envvar=\$ac_optarg
1258     export $ac_envvar ;;
1259
1260   *)
1261     # FIXME: should be removed in autoconf 3.0.
1262     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1263     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1264       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1265     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1266     ;;
1267
1268   esac
1269 done
1270
1271 if test -n "$ac_prev"; then
1272   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1273   as_fn_error $? "missing argument to $ac_option"
1274 fi
1275
1276 if test -n "$ac_unrecognized_opts"; then
1277   case $enable_option_checking in
1278     no) ;;
1279     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1280     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1281   esac
1282 fi
1283
1284 # Check all directory arguments for consistency.
1285 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1286                 datadir sysconfdir sharedstatedir localstatedir includedir \
1287                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1288                 libdir localedir mandir
1289 do
1290   eval ac_val=\$$ac_var
1291   # Remove trailing slashes.
1292   case $ac_val in
1293     */ )
1294       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1295       eval $ac_var=\$ac_val;;
1296   esac
1297   # Be sure to have absolute directory names.
1298   case $ac_val in
1299     [\\/$]* | ?:[\\/]* )  continue;;
1300     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1301   esac
1302   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1303 done
1304
1305 # There might be people who depend on the old broken behavior: `$host'
1306 # used to hold the argument of --host etc.
1307 # FIXME: To remove some day.
1308 build=$build_alias
1309 host=$host_alias
1310 target=$target_alias
1311
1312 # FIXME: To remove some day.
1313 if test "x$host_alias" != x; then
1314   if test "x$build_alias" = x; then
1315     cross_compiling=maybe
1316   elif test "x$build_alias" != "x$host_alias"; then
1317     cross_compiling=yes
1318   fi
1319 fi
1320
1321 ac_tool_prefix=
1322 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1323
1324 test "$silent" = yes && exec 6>/dev/null
1325
1326
1327 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1328 ac_ls_di=`ls -di .` &&
1329 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1330   as_fn_error $? "working directory cannot be determined"
1331 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1332   as_fn_error $? "pwd does not report name of working directory"
1333
1334
1335 # Find the source files, if location was not specified.
1336 if test -z "$srcdir"; then
1337   ac_srcdir_defaulted=yes
1338   # Try the directory containing this script, then the parent directory.
1339   ac_confdir=`$as_dirname -- "$as_myself" ||
1340 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1341          X"$as_myself" : 'X\(//\)[^/]' \| \
1342          X"$as_myself" : 'X\(//\)$' \| \
1343          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1344 $as_echo X"$as_myself" |
1345     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1346             s//\1/
1347             q
1348           }
1349           /^X\(\/\/\)[^/].*/{
1350             s//\1/
1351             q
1352           }
1353           /^X\(\/\/\)$/{
1354             s//\1/
1355             q
1356           }
1357           /^X\(\/\).*/{
1358             s//\1/
1359             q
1360           }
1361           s/.*/./; q'`
1362   srcdir=$ac_confdir
1363   if test ! -r "$srcdir/$ac_unique_file"; then
1364     srcdir=..
1365   fi
1366 else
1367   ac_srcdir_defaulted=no
1368 fi
1369 if test ! -r "$srcdir/$ac_unique_file"; then
1370   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1371   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1372 fi
1373 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1374 ac_abs_confdir=`(
1375         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1376         pwd)`
1377 # When building in place, set srcdir=.
1378 if test "$ac_abs_confdir" = "$ac_pwd"; then
1379   srcdir=.
1380 fi
1381 # Remove unnecessary trailing slashes from srcdir.
1382 # Double slashes in file names in object file debugging info
1383 # mess up M-x gdb in Emacs.
1384 case $srcdir in
1385 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1386 esac
1387 for ac_var in $ac_precious_vars; do
1388   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1389   eval ac_env_${ac_var}_value=\$${ac_var}
1390   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1391   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1392 done
1393
1394 #
1395 # Report the --help message.
1396 #
1397 if test "$ac_init_help" = "long"; then
1398   # Omit some internal or obsolete options to make the list less imposing.
1399   # This message is too long to be a string in the A/UX 3.1 sh.
1400   cat <<_ACEOF
1401 \`configure' configures Wine 1.4.1 to adapt to many kinds of systems.
1402
1403 Usage: $0 [OPTION]... [VAR=VALUE]...
1404
1405 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1406 VAR=VALUE.  See below for descriptions of some of the useful variables.
1407
1408 Defaults for the options are specified in brackets.
1409
1410 Configuration:
1411   -h, --help              display this help and exit
1412       --help=short        display options specific to this package
1413       --help=recursive    display the short help of all the included packages
1414   -V, --version           display version information and exit
1415   -q, --quiet, --silent   do not print \`checking ...' messages
1416       --cache-file=FILE   cache test results in FILE [disabled]
1417   -C, --config-cache      alias for \`--cache-file=config.cache'
1418   -n, --no-create         do not create output files
1419       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1420
1421 Installation directories:
1422   --prefix=PREFIX         install architecture-independent files in PREFIX
1423                           [$ac_default_prefix]
1424   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1425                           [PREFIX]
1426
1427 By default, \`make install' will install all the files in
1428 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1429 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1430 for instance \`--prefix=\$HOME'.
1431
1432 For better control, use the options below.
1433
1434 Fine tuning of the installation directories:
1435   --bindir=DIR            user executables [EPREFIX/bin]
1436   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1437   --libexecdir=DIR        program executables [EPREFIX/libexec]
1438   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1439   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1440   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1441   --libdir=DIR            object code libraries [EPREFIX/lib]
1442   --includedir=DIR        C header files [PREFIX/include]
1443   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1444   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1445   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1446   --infodir=DIR           info documentation [DATAROOTDIR/info]
1447   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1448   --mandir=DIR            man documentation [DATAROOTDIR/man]
1449   --docdir=DIR            documentation root [DATAROOTDIR/doc/wine]
1450   --htmldir=DIR           html documentation [DOCDIR]
1451   --dvidir=DIR            dvi documentation [DOCDIR]
1452   --pdfdir=DIR            pdf documentation [DOCDIR]
1453   --psdir=DIR             ps documentation [DOCDIR]
1454 _ACEOF
1455
1456   cat <<\_ACEOF
1457
1458 X features:
1459   --x-includes=DIR    X include files are in DIR
1460   --x-libraries=DIR   X library files are in DIR
1461
1462 System types:
1463   --build=BUILD     configure for building on BUILD [guessed]
1464   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1465 _ACEOF
1466 fi
1467
1468 if test -n "$ac_init_help"; then
1469   case $ac_init_help in
1470      short | recursive ) echo "Configuration of Wine 1.4.1:";;
1471    esac
1472   cat <<\_ACEOF
1473
1474 Optional Features:
1475   --disable-option-checking  ignore unrecognized --enable/--with options
1476   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1477   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1478   --disable-win16         do not include Win16 support
1479   --enable-win64          build a Win64 emulator on AMD64 (won't run Win32
1480                           binaries)
1481   --disable-tests         do not build the regression tests
1482   --enable-maintainer-mode
1483                           enable maintainer-specific build rules
1484   --disable-largefile     omit support for large files
1485
1486 Optional Packages:
1487   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1488   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1489   --without-alsa          do not use the Alsa sound support
1490   --without-capi          do not use CAPI (ISDN support)
1491   --without-cms           do not use CMS (color management support)
1492   --without-coreaudio     do not use the CoreAudio sound support
1493   --without-cups          do not use CUPS
1494   --without-curses        do not use (n)curses
1495   --without-dbus          do not use DBus (dynamic device support)
1496   --without-fontconfig    do not use fontconfig
1497   --without-freetype      do not use the FreeType library
1498   --without-gettext       do not use gettext
1499   --with-gettextpo        use the GetTextPO library to rebuild po files
1500   --without-gphoto        do not use gphoto (Digital Camera support)
1501   --without-glu           do not use the GLU library
1502   --without-gnutls        do not use GnuTLS (schannel support)
1503   --without-gsm           do not use libgsm (GSM 06.10 codec support)
1504   --without-gstreamer     do not use GStreamer (codecs support)
1505   --without-hal           do not use HAL (dynamic device support)
1506   --without-jpeg          do not use JPEG
1507   --without-ldap          do not use LDAP
1508   --without-mpg123        do not use the mpg123 library
1509   --without-openal        do not use OpenAL
1510   --without-opencl        do not use OpenCL
1511   --without-opengl        do not use OpenGL
1512   --without-openssl       do not use OpenSSL
1513   --without-oss           do not use the OSS sound support
1514   --without-png           do not use PNG
1515   --without-pthread       do not use the pthread library
1516   --without-sane          do not use SANE (scanner support)
1517   --without-tiff          do not use TIFF
1518   --without-v4l           do not use v4l1 (v4l support)
1519   --without-xcomposite    do not use the Xcomposite extension
1520   --without-xcursor       do not use the Xcursor extension
1521   --without-xinerama      do not use Xinerama (multi-monitor support)
1522   --without-xinput        do not use the Xinput extension
1523   --without-xinput2       do not use the Xinput 2 extension
1524   --without-xml           do not use XML
1525   --without-xrandr        do not use Xrandr (resolution changes)
1526   --without-xrender       do not use the Xrender extension
1527   --without-xshape        do not use the Xshape extension
1528   --without-xslt          do not use XSLT
1529   --without-xxf86vm       do not use XFree video mode extension
1530   --without-zlib          do not use Zlib (data compression)
1531   --with-wine-tools=DIR   use Wine tools from directory DIR
1532   --with-wine64=DIR       use the 64-bit Wine in DIR for a Wow64 build
1533   --with-x                use the X Window System
1534
1535 Some influential environment variables:
1536   CC          C compiler command
1537   CFLAGS      C compiler flags
1538   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1539               nonstandard directory <lib dir>
1540   LIBS        libraries to pass to the linker, e.g. -l<library>
1541   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1542               you have headers in a nonstandard directory <include dir>
1543   CXX         C++ compiler command
1544   CXXFLAGS    C++ compiler flags
1545   CPP         C preprocessor
1546   XMKMF       Path to xmkmf, Makefile generator for X Window System
1547
1548 Use these variables to override the choices made by `configure' or to help
1549 it to find libraries and programs with nonstandard names/locations.
1550
1551 Report bugs to <wine-devel@winehq.org>.
1552 Wine home page: <http://www.winehq.org>.
1553 _ACEOF
1554 ac_status=$?
1555 fi
1556
1557 if test "$ac_init_help" = "recursive"; then
1558   # If there are subdirs, report their specific --help.
1559   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1560     test -d "$ac_dir" ||
1561       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1562       continue
1563     ac_builddir=.
1564
1565 case "$ac_dir" in
1566 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1567 *)
1568   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1569   # A ".." for each directory in $ac_dir_suffix.
1570   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1571   case $ac_top_builddir_sub in
1572   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1573   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1574   esac ;;
1575 esac
1576 ac_abs_top_builddir=$ac_pwd
1577 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1578 # for backward compatibility:
1579 ac_top_builddir=$ac_top_build_prefix
1580
1581 case $srcdir in
1582   .)  # We are building in place.
1583     ac_srcdir=.
1584     ac_top_srcdir=$ac_top_builddir_sub
1585     ac_abs_top_srcdir=$ac_pwd ;;
1586   [\\/]* | ?:[\\/]* )  # Absolute name.
1587     ac_srcdir=$srcdir$ac_dir_suffix;
1588     ac_top_srcdir=$srcdir
1589     ac_abs_top_srcdir=$srcdir ;;
1590   *) # Relative name.
1591     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1592     ac_top_srcdir=$ac_top_build_prefix$srcdir
1593     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1594 esac
1595 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1596
1597     cd "$ac_dir" || { ac_status=$?; continue; }
1598     # Check for guested configure.
1599     if test -f "$ac_srcdir/configure.gnu"; then
1600       echo &&
1601       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1602     elif test -f "$ac_srcdir/configure"; then
1603       echo &&
1604       $SHELL "$ac_srcdir/configure" --help=recursive
1605     else
1606       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1607     fi || ac_status=$?
1608     cd "$ac_pwd" || { ac_status=$?; break; }
1609   done
1610 fi
1611
1612 test -n "$ac_init_help" && exit $ac_status
1613 if $ac_init_version; then
1614   cat <<\_ACEOF
1615 Wine configure 1.4.1
1616 generated by GNU Autoconf 2.69
1617
1618 Copyright (C) 2012 Free Software Foundation, Inc.
1619 This configure script is free software; the Free Software Foundation
1620 gives unlimited permission to copy, distribute and modify it.
1621 _ACEOF
1622   exit
1623 fi
1624
1625 ## ------------------------ ##
1626 ## Autoconf initialization. ##
1627 ## ------------------------ ##
1628
1629 # ac_fn_c_try_compile LINENO
1630 # --------------------------
1631 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1632 ac_fn_c_try_compile ()
1633 {
1634   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1635   rm -f conftest.$ac_objext
1636   if { { ac_try="$ac_compile"
1637 case "(($ac_try" in
1638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1639   *) ac_try_echo=$ac_try;;
1640 esac
1641 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1642 $as_echo "$ac_try_echo"; } >&5
1643   (eval "$ac_compile") 2>conftest.err
1644   ac_status=$?
1645   if test -s conftest.err; then
1646     grep -v '^ *+' conftest.err >conftest.er1
1647     cat conftest.er1 >&5
1648     mv -f conftest.er1 conftest.err
1649   fi
1650   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1651   test $ac_status = 0; } && {
1652          test -z "$ac_c_werror_flag" ||
1653          test ! -s conftest.err
1654        } && test -s conftest.$ac_objext; then :
1655   ac_retval=0
1656 else
1657   $as_echo "$as_me: failed program was:" >&5
1658 sed 's/^/| /' conftest.$ac_ext >&5
1659
1660         ac_retval=1
1661 fi
1662   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1663   as_fn_set_status $ac_retval
1664
1665 } # ac_fn_c_try_compile
1666
1667 # ac_fn_cxx_try_compile LINENO
1668 # ----------------------------
1669 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1670 ac_fn_cxx_try_compile ()
1671 {
1672   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1673   rm -f conftest.$ac_objext
1674   if { { ac_try="$ac_compile"
1675 case "(($ac_try" in
1676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1677   *) ac_try_echo=$ac_try;;
1678 esac
1679 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1680 $as_echo "$ac_try_echo"; } >&5
1681   (eval "$ac_compile") 2>conftest.err
1682   ac_status=$?
1683   if test -s conftest.err; then
1684     grep -v '^ *+' conftest.err >conftest.er1
1685     cat conftest.er1 >&5
1686     mv -f conftest.er1 conftest.err
1687   fi
1688   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1689   test $ac_status = 0; } && {
1690          test -z "$ac_cxx_werror_flag" ||
1691          test ! -s conftest.err
1692        } && test -s conftest.$ac_objext; then :
1693   ac_retval=0
1694 else
1695   $as_echo "$as_me: failed program was:" >&5
1696 sed 's/^/| /' conftest.$ac_ext >&5
1697
1698         ac_retval=1
1699 fi
1700   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1701   as_fn_set_status $ac_retval
1702
1703 } # ac_fn_cxx_try_compile
1704
1705 # ac_fn_c_try_link LINENO
1706 # -----------------------
1707 # Try to link conftest.$ac_ext, and return whether this succeeded.
1708 ac_fn_c_try_link ()
1709 {
1710   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1711   rm -f conftest.$ac_objext conftest$ac_exeext
1712   if { { ac_try="$ac_link"
1713 case "(($ac_try" in
1714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1715   *) ac_try_echo=$ac_try;;
1716 esac
1717 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1718 $as_echo "$ac_try_echo"; } >&5
1719   (eval "$ac_link") 2>conftest.err
1720   ac_status=$?
1721   if test -s conftest.err; then
1722     grep -v '^ *+' conftest.err >conftest.er1
1723     cat conftest.er1 >&5
1724     mv -f conftest.er1 conftest.err
1725   fi
1726   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1727   test $ac_status = 0; } && {
1728          test -z "$ac_c_werror_flag" ||
1729          test ! -s conftest.err
1730        } && test -s conftest$ac_exeext && {
1731          test "$cross_compiling" = yes ||
1732          test -x conftest$ac_exeext
1733        }; then :
1734   ac_retval=0
1735 else
1736   $as_echo "$as_me: failed program was:" >&5
1737 sed 's/^/| /' conftest.$ac_ext >&5
1738
1739         ac_retval=1
1740 fi
1741   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1742   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1743   # interfere with the next link command; also delete a directory that is
1744   # left behind by Apple's compiler.  We do this before executing the actions.
1745   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1746   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1747   as_fn_set_status $ac_retval
1748
1749 } # ac_fn_c_try_link
1750
1751 # ac_fn_c_try_cpp LINENO
1752 # ----------------------
1753 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1754 ac_fn_c_try_cpp ()
1755 {
1756   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1757   if { { ac_try="$ac_cpp conftest.$ac_ext"
1758 case "(($ac_try" in
1759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1760   *) ac_try_echo=$ac_try;;
1761 esac
1762 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1763 $as_echo "$ac_try_echo"; } >&5
1764   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1765   ac_status=$?
1766   if test -s conftest.err; then
1767     grep -v '^ *+' conftest.err >conftest.er1
1768     cat conftest.er1 >&5
1769     mv -f conftest.er1 conftest.err
1770   fi
1771   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1772   test $ac_status = 0; } > conftest.i && {
1773          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1774          test ! -s conftest.err
1775        }; then :
1776   ac_retval=0
1777 else
1778   $as_echo "$as_me: failed program was:" >&5
1779 sed 's/^/| /' conftest.$ac_ext >&5
1780
1781     ac_retval=1
1782 fi
1783   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1784   as_fn_set_status $ac_retval
1785
1786 } # ac_fn_c_try_cpp
1787
1788 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1789 # -------------------------------------------------------
1790 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1791 # the include files in INCLUDES and setting the cache variable VAR
1792 # accordingly.
1793 ac_fn_c_check_header_mongrel ()
1794 {
1795   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1796   if eval \${$3+:} false; then :
1797   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1798 $as_echo_n "checking for $2... " >&6; }
1799 if eval \${$3+:} false; then :
1800   $as_echo_n "(cached) " >&6
1801 fi
1802 eval ac_res=\$$3
1803                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1804 $as_echo "$ac_res" >&6; }
1805 else
1806   # Is the header compilable?
1807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1808 $as_echo_n "checking $2 usability... " >&6; }
1809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1810 /* end confdefs.h.  */
1811 $4
1812 #include <$2>
1813 _ACEOF
1814 if ac_fn_c_try_compile "$LINENO"; then :
1815   ac_header_compiler=yes
1816 else
1817   ac_header_compiler=no
1818 fi
1819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1821 $as_echo "$ac_header_compiler" >&6; }
1822
1823 # Is the header present?
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1825 $as_echo_n "checking $2 presence... " >&6; }
1826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1827 /* end confdefs.h.  */
1828 #include <$2>
1829 _ACEOF
1830 if ac_fn_c_try_cpp "$LINENO"; then :
1831   ac_header_preproc=yes
1832 else
1833   ac_header_preproc=no
1834 fi
1835 rm -f conftest.err conftest.i conftest.$ac_ext
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1837 $as_echo "$ac_header_preproc" >&6; }
1838
1839 # So?  What about this header?
1840 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1841   yes:no: )
1842     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1843 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1844     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1845 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1846     ;;
1847   no:yes:* )
1848     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1849 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1850     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1851 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1852     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1853 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1854     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1855 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1856     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1857 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1858 ( $as_echo "## ------------------------------------ ##
1859 ## Report this to wine-devel@winehq.org ##
1860 ## ------------------------------------ ##"
1861      ) | sed "s/^/$as_me: WARNING:     /" >&2
1862     ;;
1863 esac
1864   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1865 $as_echo_n "checking for $2... " >&6; }
1866 if eval \${$3+:} false; then :
1867   $as_echo_n "(cached) " >&6
1868 else
1869   eval "$3=\$ac_header_compiler"
1870 fi
1871 eval ac_res=\$$3
1872                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1873 $as_echo "$ac_res" >&6; }
1874 fi
1875   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1876
1877 } # ac_fn_c_check_header_mongrel
1878
1879 # ac_fn_c_try_run LINENO
1880 # ----------------------
1881 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1882 # that executables *can* be run.
1883 ac_fn_c_try_run ()
1884 {
1885   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1886   if { { ac_try="$ac_link"
1887 case "(($ac_try" in
1888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1889   *) ac_try_echo=$ac_try;;
1890 esac
1891 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1892 $as_echo "$ac_try_echo"; } >&5
1893   (eval "$ac_link") 2>&5
1894   ac_status=$?
1895   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1896   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1897   { { case "(($ac_try" in
1898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1899   *) ac_try_echo=$ac_try;;
1900 esac
1901 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1902 $as_echo "$ac_try_echo"; } >&5
1903   (eval "$ac_try") 2>&5
1904   ac_status=$?
1905   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1906   test $ac_status = 0; }; }; then :
1907   ac_retval=0
1908 else
1909   $as_echo "$as_me: program exited with status $ac_status" >&5
1910        $as_echo "$as_me: failed program was:" >&5
1911 sed 's/^/| /' conftest.$ac_ext >&5
1912
1913        ac_retval=$ac_status
1914 fi
1915   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1916   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1917   as_fn_set_status $ac_retval
1918
1919 } # ac_fn_c_try_run
1920
1921 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1922 # -------------------------------------------------------
1923 # Tests whether HEADER exists and can be compiled using the include files in
1924 # INCLUDES, setting the cache variable VAR accordingly.
1925 ac_fn_c_check_header_compile ()
1926 {
1927   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1928   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1929 $as_echo_n "checking for $2... " >&6; }
1930 if eval \${$3+:} false; then :
1931   $as_echo_n "(cached) " >&6
1932 else
1933   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1934 /* end confdefs.h.  */
1935 $4
1936 #include <$2>
1937 _ACEOF
1938 if ac_fn_c_try_compile "$LINENO"; then :
1939   eval "$3=yes"
1940 else
1941   eval "$3=no"
1942 fi
1943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1944 fi
1945 eval ac_res=\$$3
1946                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1947 $as_echo "$ac_res" >&6; }
1948   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1949
1950 } # ac_fn_c_check_header_compile
1951
1952 # ac_fn_c_check_func LINENO FUNC VAR
1953 # ----------------------------------
1954 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1955 ac_fn_c_check_func ()
1956 {
1957   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1958   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1959 $as_echo_n "checking for $2... " >&6; }
1960 if eval \${$3+:} false; then :
1961   $as_echo_n "(cached) " >&6
1962 else
1963   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1964 /* end confdefs.h.  */
1965 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1966    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1967 #define $2 innocuous_$2
1968
1969 /* System header to define __stub macros and hopefully few prototypes,
1970     which can conflict with char $2 (); below.
1971     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1972     <limits.h> exists even on freestanding compilers.  */
1973
1974 #ifdef __STDC__
1975 # include <limits.h>
1976 #else
1977 # include <assert.h>
1978 #endif
1979
1980 #undef $2
1981
1982 /* Override any GCC internal prototype to avoid an error.
1983    Use char because int might match the return type of a GCC
1984    builtin and then its argument prototype would still apply.  */
1985 #ifdef __cplusplus
1986 extern "C"
1987 #endif
1988 char $2 ();
1989 /* The GNU C library defines this for functions which it implements
1990     to always fail with ENOSYS.  Some functions are actually named
1991     something starting with __ and the normal name is an alias.  */
1992 #if defined __stub_$2 || defined __stub___$2
1993 choke me
1994 #endif
1995
1996 int
1997 main ()
1998 {
1999 return $2 ();
2000   ;
2001   return 0;
2002 }
2003 _ACEOF
2004 if ac_fn_c_try_link "$LINENO"; then :
2005   eval "$3=yes"
2006 else
2007   eval "$3=no"
2008 fi
2009 rm -f core conftest.err conftest.$ac_objext \
2010     conftest$ac_exeext conftest.$ac_ext
2011 fi
2012 eval ac_res=\$$3
2013                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2014 $as_echo "$ac_res" >&6; }
2015   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2016
2017 } # ac_fn_c_check_func
2018
2019 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2020 # ----------------------------------------------------
2021 # Tries to find if the field MEMBER exists in type AGGR, after including
2022 # INCLUDES, setting cache variable VAR accordingly.
2023 ac_fn_c_check_member ()
2024 {
2025   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2026   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2027 $as_echo_n "checking for $2.$3... " >&6; }
2028 if eval \${$4+:} false; then :
2029   $as_echo_n "(cached) " >&6
2030 else
2031   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2032 /* end confdefs.h.  */
2033 $5
2034 int
2035 main ()
2036 {
2037 static $2 ac_aggr;
2038 if (ac_aggr.$3)
2039 return 0;
2040   ;
2041   return 0;
2042 }
2043 _ACEOF
2044 if ac_fn_c_try_compile "$LINENO"; then :
2045   eval "$4=yes"
2046 else
2047   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2048 /* end confdefs.h.  */
2049 $5
2050 int
2051 main ()
2052 {
2053 static $2 ac_aggr;
2054 if (sizeof ac_aggr.$3)
2055 return 0;
2056   ;
2057   return 0;
2058 }
2059 _ACEOF
2060 if ac_fn_c_try_compile "$LINENO"; then :
2061   eval "$4=yes"
2062 else
2063   eval "$4=no"
2064 fi
2065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2066 fi
2067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2068 fi
2069 eval ac_res=\$$4
2070                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2071 $as_echo "$ac_res" >&6; }
2072   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2073
2074 } # ac_fn_c_check_member
2075
2076 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2077 # -------------------------------------------
2078 # Tests whether TYPE exists after having included INCLUDES, setting cache
2079 # variable VAR accordingly.
2080 ac_fn_c_check_type ()
2081 {
2082   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2083   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2084 $as_echo_n "checking for $2... " >&6; }
2085 if eval \${$3+:} false; then :
2086   $as_echo_n "(cached) " >&6
2087 else
2088   eval "$3=no"
2089   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2090 /* end confdefs.h.  */
2091 $4
2092 int
2093 main ()
2094 {
2095 if (sizeof ($2))
2096          return 0;
2097   ;
2098   return 0;
2099 }
2100 _ACEOF
2101 if ac_fn_c_try_compile "$LINENO"; then :
2102   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2103 /* end confdefs.h.  */
2104 $4
2105 int
2106 main ()
2107 {
2108 if (sizeof (($2)))
2109             return 0;
2110   ;
2111   return 0;
2112 }
2113 _ACEOF
2114 if ac_fn_c_try_compile "$LINENO"; then :
2115
2116 else
2117   eval "$3=yes"
2118 fi
2119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2120 fi
2121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2122 fi
2123 eval ac_res=\$$3
2124                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2125 $as_echo "$ac_res" >&6; }
2126   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2127
2128 } # ac_fn_c_check_type
2129 cat >config.log <<_ACEOF
2130 This file contains any messages produced by compilers while
2131 running configure, to aid debugging if configure makes a mistake.
2132
2133 It was created by Wine $as_me 1.4.1, which was
2134 generated by GNU Autoconf 2.69.  Invocation command line was
2135
2136   $ $0 $@
2137
2138 _ACEOF
2139 exec 5>>config.log
2140 {
2141 cat <<_ASUNAME
2142 ## --------- ##
2143 ## Platform. ##
2144 ## --------- ##
2145
2146 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2147 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2148 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2149 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2150 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2151
2152 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2153 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2154
2155 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2156 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2157 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2158 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2159 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2160 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2161 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2162
2163 _ASUNAME
2164
2165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2166 for as_dir in $PATH
2167 do
2168   IFS=$as_save_IFS
2169   test -z "$as_dir" && as_dir=.
2170     $as_echo "PATH: $as_dir"
2171   done
2172 IFS=$as_save_IFS
2173
2174 } >&5
2175
2176 cat >&5 <<_ACEOF
2177
2178
2179 ## ----------- ##
2180 ## Core tests. ##
2181 ## ----------- ##
2182
2183 _ACEOF
2184
2185
2186 # Keep a trace of the command line.
2187 # Strip out --no-create and --no-recursion so they do not pile up.
2188 # Strip out --silent because we don't want to record it for future runs.
2189 # Also quote any args containing shell meta-characters.
2190 # Make two passes to allow for proper duplicate-argument suppression.
2191 ac_configure_args=
2192 ac_configure_args0=
2193 ac_configure_args1=
2194 ac_must_keep_next=false
2195 for ac_pass in 1 2
2196 do
2197   for ac_arg
2198   do
2199     case $ac_arg in
2200     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2201     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2202     | -silent | --silent | --silen | --sile | --sil)
2203       continue ;;
2204     *\'*)
2205       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2206     esac
2207     case $ac_pass in
2208     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2209     2)
2210       as_fn_append ac_configure_args1 " '$ac_arg'"
2211       if test $ac_must_keep_next = true; then
2212         ac_must_keep_next=false # Got value, back to normal.
2213       else
2214         case $ac_arg in
2215           *=* | --config-cache | -C | -disable-* | --disable-* \
2216           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2217           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2218           | -with-* | --with-* | -without-* | --without-* | --x)
2219             case "$ac_configure_args0 " in
2220               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2221             esac
2222             ;;
2223           -* ) ac_must_keep_next=true ;;
2224         esac
2225       fi
2226       as_fn_append ac_configure_args " '$ac_arg'"
2227       ;;
2228     esac
2229   done
2230 done
2231 { ac_configure_args0=; unset ac_configure_args0;}
2232 { ac_configure_args1=; unset ac_configure_args1;}
2233
2234 # When interrupted or exit'd, cleanup temporary files, and complete
2235 # config.log.  We remove comments because anyway the quotes in there
2236 # would cause problems or look ugly.
2237 # WARNING: Use '\'' to represent an apostrophe within the trap.
2238 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2239 trap 'exit_status=$?
2240   # Save into config.log some information that might help in debugging.
2241   {
2242     echo
2243
2244     $as_echo "## ---------------- ##
2245 ## Cache variables. ##
2246 ## ---------------- ##"
2247     echo
2248     # The following way of writing the cache mishandles newlines in values,
2249 (
2250   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2251     eval ac_val=\$$ac_var
2252     case $ac_val in #(
2253     *${as_nl}*)
2254       case $ac_var in #(
2255       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2256 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2257       esac
2258       case $ac_var in #(
2259       _ | IFS | as_nl) ;; #(
2260       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2261       *) { eval $ac_var=; unset $ac_var;} ;;
2262       esac ;;
2263     esac
2264   done
2265   (set) 2>&1 |
2266     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2267     *${as_nl}ac_space=\ *)
2268       sed -n \
2269         "s/'\''/'\''\\\\'\'''\''/g;
2270           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2271       ;; #(
2272     *)
2273       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2274       ;;
2275     esac |
2276     sort
2277 )
2278     echo
2279
2280     $as_echo "## ----------------- ##
2281 ## Output variables. ##
2282 ## ----------------- ##"
2283     echo
2284     for ac_var in $ac_subst_vars
2285     do
2286       eval ac_val=\$$ac_var
2287       case $ac_val in
2288       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2289       esac
2290       $as_echo "$ac_var='\''$ac_val'\''"
2291     done | sort
2292     echo
2293
2294     if test -n "$ac_subst_files"; then
2295       $as_echo "## ------------------- ##
2296 ## File substitutions. ##
2297 ## ------------------- ##"
2298       echo
2299       for ac_var in $ac_subst_files
2300       do
2301         eval ac_val=\$$ac_var
2302         case $ac_val in
2303         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2304         esac
2305         $as_echo "$ac_var='\''$ac_val'\''"
2306       done | sort
2307       echo
2308     fi
2309
2310     if test -s confdefs.h; then
2311       $as_echo "## ----------- ##
2312 ## confdefs.h. ##
2313 ## ----------- ##"
2314       echo
2315       cat confdefs.h
2316       echo
2317     fi
2318     test "$ac_signal" != 0 &&
2319       $as_echo "$as_me: caught signal $ac_signal"
2320     $as_echo "$as_me: exit $exit_status"
2321   } >&5
2322   rm -f core *.core core.conftest.* &&
2323     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2324     exit $exit_status
2325 ' 0
2326 for ac_signal in 1 2 13 15; do
2327   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2328 done
2329 ac_signal=0
2330
2331 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2332 rm -f -r conftest* confdefs.h
2333
2334 $as_echo "/* confdefs.h */" > confdefs.h
2335
2336 # Predefined preprocessor variables.
2337
2338 cat >>confdefs.h <<_ACEOF
2339 #define PACKAGE_NAME "$PACKAGE_NAME"
2340 _ACEOF
2341
2342 cat >>confdefs.h <<_ACEOF
2343 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2344 _ACEOF
2345
2346 cat >>confdefs.h <<_ACEOF
2347 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2348 _ACEOF
2349
2350 cat >>confdefs.h <<_ACEOF
2351 #define PACKAGE_STRING "$PACKAGE_STRING"
2352 _ACEOF
2353
2354 cat >>confdefs.h <<_ACEOF
2355 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2356 _ACEOF
2357
2358 cat >>confdefs.h <<_ACEOF
2359 #define PACKAGE_URL "$PACKAGE_URL"
2360 _ACEOF
2361
2362
2363 # Let the site file select an alternate cache file if it wants to.
2364 # Prefer an explicitly selected file to automatically selected ones.
2365 ac_site_file1=NONE
2366 ac_site_file2=NONE
2367 if test -n "$CONFIG_SITE"; then
2368   # We do not want a PATH search for config.site.
2369   case $CONFIG_SITE in #((
2370     -*)  ac_site_file1=./$CONFIG_SITE;;
2371     */*) ac_site_file1=$CONFIG_SITE;;
2372     *)   ac_site_file1=./$CONFIG_SITE;;
2373   esac
2374 elif test "x$prefix" != xNONE; then
2375   ac_site_file1=$prefix/share/config.site
2376   ac_site_file2=$prefix/etc/config.site
2377 else
2378   ac_site_file1=$ac_default_prefix/share/config.site
2379   ac_site_file2=$ac_default_prefix/etc/config.site
2380 fi
2381 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2382 do
2383   test "x$ac_site_file" = xNONE && continue
2384   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2385     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2386 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2387     sed 's/^/| /' "$ac_site_file" >&5
2388     . "$ac_site_file" \
2389       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2390 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2391 as_fn_error $? "failed to load site script $ac_site_file
2392 See \`config.log' for more details" "$LINENO" 5; }
2393   fi
2394 done
2395
2396 if test -r "$cache_file"; then
2397   # Some versions of bash will fail to source /dev/null (special files
2398   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2399   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2400     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2401 $as_echo "$as_me: loading cache $cache_file" >&6;}
2402     case $cache_file in
2403       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2404       *)                      . "./$cache_file";;
2405     esac
2406   fi
2407 else
2408   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2409 $as_echo "$as_me: creating cache $cache_file" >&6;}
2410   >$cache_file
2411 fi
2412
2413 # Check that the precious variables saved in the cache have kept the same
2414 # value.
2415 ac_cache_corrupted=false
2416 for ac_var in $ac_precious_vars; do
2417   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2418   eval ac_new_set=\$ac_env_${ac_var}_set
2419   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2420   eval ac_new_val=\$ac_env_${ac_var}_value
2421   case $ac_old_set,$ac_new_set in
2422     set,)
2423       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2424 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2425       ac_cache_corrupted=: ;;
2426     ,set)
2427       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2428 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2429       ac_cache_corrupted=: ;;
2430     ,);;
2431     *)
2432       if test "x$ac_old_val" != "x$ac_new_val"; then
2433         # differences in whitespace do not lead to failure.
2434         ac_old_val_w=`echo x $ac_old_val`
2435         ac_new_val_w=`echo x $ac_new_val`
2436         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2437           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2438 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2439           ac_cache_corrupted=:
2440         else
2441           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2442 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2443           eval $ac_var=\$ac_old_val
2444         fi
2445         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2446 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2447         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2448 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2449       fi;;
2450   esac
2451   # Pass precious variables to config.status.
2452   if test "$ac_new_set" = set; then
2453     case $ac_new_val in
2454     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2455     *) ac_arg=$ac_var=$ac_new_val ;;
2456     esac
2457     case " $ac_configure_args " in
2458       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2459       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2460     esac
2461   fi
2462 done
2463 if $ac_cache_corrupted; then
2464   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2465 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2466   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2467 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2468   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2469 fi
2470 ## -------------------- ##
2471 ## Main body of script. ##
2472 ## -------------------- ##
2473
2474 ac_ext=c
2475 ac_cpp='$CPP $CPPFLAGS'
2476 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2477 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2478 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2479
2480
2481
2482 ac_config_headers="$ac_config_headers include/config.h"
2483
2484 ac_aux_dir=
2485 for ac_dir in tools "$srcdir"/tools; do
2486   if test -f "$ac_dir/install-sh"; then
2487     ac_aux_dir=$ac_dir
2488     ac_install_sh="$ac_aux_dir/install-sh -c"
2489     break
2490   elif test -f "$ac_dir/install.sh"; then
2491     ac_aux_dir=$ac_dir
2492     ac_install_sh="$ac_aux_dir/install.sh -c"
2493     break
2494   elif test -f "$ac_dir/shtool"; then
2495     ac_aux_dir=$ac_dir
2496     ac_install_sh="$ac_aux_dir/shtool install -c"
2497     break
2498   fi
2499 done
2500 if test -z "$ac_aux_dir"; then
2501   as_fn_error $? "cannot find install-sh, install.sh, or shtool in tools \"$srcdir\"/tools" "$LINENO" 5
2502 fi
2503
2504 # These three variables are undocumented and unsupported,
2505 # and are intended to be withdrawn in a future Autoconf release.
2506 # They can cause serious problems if a builder's source tree is in a directory
2507 # whose full name contains unusual characters.
2508 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2509 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2510 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2511
2512
2513
2514
2515
2516 # Check whether --enable-win16 was given.
2517 if test "${enable_win16+set}" = set; then :
2518   enableval=$enable_win16;
2519 fi
2520
2521 # Check whether --enable-win64 was given.
2522 if test "${enable_win64+set}" = set; then :
2523   enableval=$enable_win64;
2524 fi
2525
2526 # Check whether --enable-tests was given.
2527 if test "${enable_tests+set}" = set; then :
2528   enableval=$enable_tests;
2529 fi
2530
2531 # Check whether --enable-maintainer-mode was given.
2532 if test "${enable_maintainer_mode+set}" = set; then :
2533   enableval=$enable_maintainer_mode;
2534 fi
2535
2536
2537
2538 # Check whether --with-alsa was given.
2539 if test "${with_alsa+set}" = set; then :
2540   withval=$with_alsa; if test "x$withval" = "xno"; then ac_cv_header_sys_asoundlib_h=no; ac_cv_header_alsa_asoundlib_h=no; fi
2541 fi
2542
2543
2544 # Check whether --with-capi was given.
2545 if test "${with_capi+set}" = set; then :
2546   withval=$with_capi; if test "x$withval" = "xno"; then ac_cv_header_capi20_h=no; ac_cv_header_linux_capi_h=no; fi
2547 fi
2548
2549
2550 # Check whether --with-cms was given.
2551 if test "${with_cms+set}" = set; then :
2552   withval=$with_cms; if test "x$withval" = "xno"; then ac_cv_header_lcms_h=no; ac_cv_header_lcms_lcms_h=no; fi
2553 fi
2554
2555
2556 # Check whether --with-coreaudio was given.
2557 if test "${with_coreaudio+set}" = set; then :
2558   withval=$with_coreaudio; if test "x$withval" = "xno"; then ac_cv_header_CoreAudio_CoreAudio_h=no; fi
2559 fi
2560
2561
2562 # Check whether --with-cups was given.
2563 if test "${with_cups+set}" = set; then :
2564   withval=$with_cups;
2565 fi
2566
2567
2568 # Check whether --with-curses was given.
2569 if test "${with_curses+set}" = set; then :
2570   withval=$with_curses; if test "x$withval" = "xno"; then ac_cv_header_ncurses_h=no; ac_cv_header_curses_h=no; fi
2571 fi
2572
2573
2574 # Check whether --with-dbus was given.
2575 if test "${with_dbus+set}" = set; then :
2576   withval=$with_dbus;
2577 fi
2578
2579
2580 # Check whether --with-fontconfig was given.
2581 if test "${with_fontconfig+set}" = set; then :
2582   withval=$with_fontconfig;
2583 fi
2584
2585
2586 # Check whether --with-freetype was given.
2587 if test "${with_freetype+set}" = set; then :
2588   withval=$with_freetype;
2589 fi
2590
2591
2592 # Check whether --with-gettext was given.
2593 if test "${with_gettext+set}" = set; then :
2594   withval=$with_gettext;
2595 fi
2596
2597
2598 # Check whether --with-gettextpo was given.
2599 if test "${with_gettextpo+set}" = set; then :
2600   withval=$with_gettextpo; if test "x$withval" = "xno"; then ac_cv_header_gettext_po_h=no; fi
2601 fi
2602
2603
2604 # Check whether --with-gphoto was given.
2605 if test "${with_gphoto+set}" = set; then :
2606   withval=$with_gphoto;
2607 fi
2608
2609
2610 # Check whether --with-glu was given.
2611 if test "${with_glu+set}" = set; then :
2612   withval=$with_glu; if test "x$withval" = "xno"; then ac_cv_header_GL_glu_h=no; fi
2613 fi
2614
2615
2616 # Check whether --with-gnutls was given.
2617 if test "${with_gnutls+set}" = set; then :
2618   withval=$with_gnutls;
2619 fi
2620
2621
2622 # Check whether --with-gsm was given.
2623 if test "${with_gsm+set}" = set; then :
2624   withval=$with_gsm; if test "x$withval" = "xno"; then ac_cv_header_gsm_h=no; ac_cv_header_gsm_gsm_h=no; fi
2625 fi
2626
2627
2628 # Check whether --with-gstreamer was given.
2629 if test "${with_gstreamer+set}" = set; then :
2630   withval=$with_gstreamer;
2631 fi
2632
2633
2634 # Check whether --with-hal was given.
2635 if test "${with_hal+set}" = set; then :
2636   withval=$with_hal;
2637 fi
2638
2639
2640 # Check whether --with-jpeg was given.
2641 if test "${with_jpeg+set}" = set; then :
2642   withval=$with_jpeg; if test "x$withval" = "xno"; then ac_cv_header_jpeglib_h=no; fi
2643 fi
2644
2645
2646 # Check whether --with-ldap was given.
2647 if test "${with_ldap+set}" = set; then :
2648   withval=$with_ldap; if test "x$withval" = "xno"; then ac_cv_header_ldap_h=no; ac_cv_header_lber_h=no; fi
2649 fi
2650
2651
2652 # Check whether --with-mpg123 was given.
2653 if test "${with_mpg123+set}" = set; then :
2654   withval=$with_mpg123; if test "x$withval" = "xno"; then ac_cv_header_mpg123_h=no; fi
2655 fi
2656
2657
2658 # Check whether --with-openal was given.
2659 if test "${with_openal+set}" = set; then :
2660   withval=$with_openal; if test "x$withval" = "xno"; then ac_cv_header_AL_al_h=no; ac_cv_header_OpenAL_al_h=no; fi
2661 fi
2662
2663
2664 # Check whether --with-opencl was given.
2665 if test "${with_opencl+set}" = set; then :
2666   withval=$with_opencl; if test "x$withval" = "xno"; then ac_cv_header_CL_cl_h=no; ac_cv_header_OpenCL_opencl_h=no; fi
2667 fi
2668
2669
2670 # Check whether --with-opengl was given.
2671 if test "${with_opengl+set}" = set; then :
2672   withval=$with_opengl;
2673 fi
2674
2675
2676 # Check whether --with-openssl was given.
2677 if test "${with_openssl+set}" = set; then :
2678   withval=$with_openssl; if test "x$withval" = "xno"; then ac_cv_header_openssl_err_h=no; ac_cv_header_openssl_ssl_h=no; fi
2679 fi
2680
2681
2682 # Check whether --with-oss was given.
2683 if test "${with_oss+set}" = set; then :
2684   withval=$with_oss;
2685 fi
2686
2687
2688 # Check whether --with-png was given.
2689 if test "${with_png+set}" = set; then :
2690   withval=$with_png; if test "x$withval" = "xno"; then ac_cv_header_png_h=no; fi
2691 fi
2692
2693
2694 # Check whether --with-pthread was given.
2695 if test "${with_pthread+set}" = set; then :
2696   withval=$with_pthread; if test "x$withval" = "xno"; then ac_cv_header_pthread_h=no; fi
2697 fi
2698
2699
2700 # Check whether --with-sane was given.
2701 if test "${with_sane+set}" = set; then :
2702   withval=$with_sane;
2703 fi
2704
2705
2706 # Check whether --with-tiff was given.
2707 if test "${with_tiff+set}" = set; then :
2708   withval=$with_tiff; if test "x$withval" = "xno"; then ac_cv_header_tiffio_h=no; fi
2709 fi
2710
2711
2712 # Check whether --with-v4l was given.
2713 if test "${with_v4l+set}" = set; then :
2714   withval=$with_v4l;
2715 fi
2716
2717
2718 # Check whether --with-xcomposite was given.
2719 if test "${with_xcomposite+set}" = set; then :
2720   withval=$with_xcomposite; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xcomposite_h=no; fi
2721 fi
2722
2723
2724 # Check whether --with-xcursor was given.
2725 if test "${with_xcursor+set}" = set; then :
2726   withval=$with_xcursor; if test "x$withval" = "xno"; then ac_cv_header_X11_Xcursor_Xcursor_h=no; fi
2727 fi
2728
2729
2730 # Check whether --with-xinerama was given.
2731 if test "${with_xinerama+set}" = set; then :
2732   withval=$with_xinerama; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xinerama_h=no; fi
2733 fi
2734
2735
2736 # Check whether --with-xinput was given.
2737 if test "${with_xinput+set}" = set; then :
2738   withval=$with_xinput; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput_h=no; fi
2739 fi
2740
2741
2742 # Check whether --with-xinput2 was given.
2743 if test "${with_xinput2+set}" = set; then :
2744   withval=$with_xinput2; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput2_h=no; fi
2745 fi
2746
2747
2748 # Check whether --with-xml was given.
2749 if test "${with_xml+set}" = set; then :
2750   withval=$with_xml;
2751 fi
2752
2753
2754 # Check whether --with-xrandr was given.
2755 if test "${with_xrandr+set}" = set; then :
2756   withval=$with_xrandr; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrandr_h=no; fi
2757 fi
2758
2759
2760 # Check whether --with-xrender was given.
2761 if test "${with_xrender+set}" = set; then :
2762   withval=$with_xrender; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrender_h=no; fi
2763 fi
2764
2765
2766 # Check whether --with-xshape was given.
2767 if test "${with_xshape+set}" = set; then :
2768   withval=$with_xshape; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_shape_h=no; fi
2769 fi
2770
2771
2772 # Check whether --with-xslt was given.
2773 if test "${with_xslt+set}" = set; then :
2774   withval=$with_xslt;
2775 fi
2776
2777
2778 # Check whether --with-xxf86vm was given.
2779 if test "${with_xxf86vm+set}" = set; then :
2780   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
2781 fi
2782
2783
2784 # Check whether --with-zlib was given.
2785 if test "${with_zlib+set}" = set; then :
2786   withval=$with_zlib; if test "x$withval" = "xno"; then ac_cv_header_zlib_h=no; fi
2787 fi
2788
2789
2790
2791 # Check whether --with-wine-tools was given.
2792 if test "${with_wine_tools+set}" = set; then :
2793   withval=$with_wine_tools;
2794 fi
2795
2796
2797 # Check whether --with-wine64 was given.
2798 if test "${with_wine64+set}" = set; then :
2799   withval=$with_wine64;
2800 fi
2801
2802
2803 # Make sure we can run config.sub.
2804 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2805   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2806
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2808 $as_echo_n "checking build system type... " >&6; }
2809 if ${ac_cv_build+:} false; then :
2810   $as_echo_n "(cached) " >&6
2811 else
2812   ac_build_alias=$build_alias
2813 test "x$ac_build_alias" = x &&
2814   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2815 test "x$ac_build_alias" = x &&
2816   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2817 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2818   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2819
2820 fi
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2822 $as_echo "$ac_cv_build" >&6; }
2823 case $ac_cv_build in
2824 *-*-*) ;;
2825 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2826 esac
2827 build=$ac_cv_build
2828 ac_save_IFS=$IFS; IFS='-'
2829 set x $ac_cv_build
2830 shift
2831 build_cpu=$1
2832 build_vendor=$2
2833 shift; shift
2834 # Remember, the first character of IFS is used to create $*,
2835 # except with old shells:
2836 build_os=$*
2837 IFS=$ac_save_IFS
2838 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2839
2840
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2842 $as_echo_n "checking host system type... " >&6; }
2843 if ${ac_cv_host+:} false; then :
2844   $as_echo_n "(cached) " >&6
2845 else
2846   if test "x$host_alias" = x; then
2847   ac_cv_host=$ac_cv_build
2848 else
2849   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2850     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2851 fi
2852
2853 fi
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2855 $as_echo "$ac_cv_host" >&6; }
2856 case $ac_cv_host in
2857 *-*-*) ;;
2858 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2859 esac
2860 host=$ac_cv_host
2861 ac_save_IFS=$IFS; IFS='-'
2862 set x $ac_cv_host
2863 shift
2864 host_cpu=$1
2865 host_vendor=$2
2866 shift; shift
2867 # Remember, the first character of IFS is used to create $*,
2868 # except with old shells:
2869 host_os=$*
2870 IFS=$ac_save_IFS
2871 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2872
2873
2874
2875 case "$srcdir" in
2876  .) ;;
2877  *) if test -f "$srcdir/Makefile" -o -f "$srcdir/include/config.h"; then
2878       as_fn_error $? "you are building out of the source tree, but the source tree contains object files.
2879 You need to run 'make distclean' in the source tree first." "$LINENO" 5
2880     fi ;;
2881 esac
2882
2883
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2885 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2886 set x ${MAKE-make}
2887 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2888 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2889   $as_echo_n "(cached) " >&6
2890 else
2891   cat >conftest.make <<\_ACEOF
2892 SHELL = /bin/sh
2893 all:
2894         @echo '@@@%%%=$(MAKE)=@@@%%%'
2895 _ACEOF
2896 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2897 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2898   *@@@%%%=?*=@@@%%%*)
2899     eval ac_cv_prog_make_${ac_make}_set=yes;;
2900   *)
2901     eval ac_cv_prog_make_${ac_make}_set=no;;
2902 esac
2903 rm -f conftest.make
2904 fi
2905 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2906   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2907 $as_echo "yes" >&6; }
2908   SET_MAKE=
2909 else
2910   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2911 $as_echo "no" >&6; }
2912   SET_MAKE="MAKE=${MAKE-make}"
2913 fi
2914
2915 ac_ext=c
2916 ac_cpp='$CPP $CPPFLAGS'
2917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2920 if test -n "$ac_tool_prefix"; then
2921   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2922 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2924 $as_echo_n "checking for $ac_word... " >&6; }
2925 if ${ac_cv_prog_CC+:} false; then :
2926   $as_echo_n "(cached) " >&6
2927 else
2928   if test -n "$CC"; then
2929   ac_cv_prog_CC="$CC" # Let the user override the test.
2930 else
2931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2932 for as_dir in $PATH
2933 do
2934   IFS=$as_save_IFS
2935   test -z "$as_dir" && as_dir=.
2936     for ac_exec_ext in '' $ac_executable_extensions; do
2937   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2938     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2939     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2940     break 2
2941   fi
2942 done
2943   done
2944 IFS=$as_save_IFS
2945
2946 fi
2947 fi
2948 CC=$ac_cv_prog_CC
2949 if test -n "$CC"; then
2950   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2951 $as_echo "$CC" >&6; }
2952 else
2953   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2954 $as_echo "no" >&6; }
2955 fi
2956
2957
2958 fi
2959 if test -z "$ac_cv_prog_CC"; then
2960   ac_ct_CC=$CC
2961   # Extract the first word of "gcc", so it can be a program name with args.
2962 set dummy gcc; ac_word=$2
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2964 $as_echo_n "checking for $ac_word... " >&6; }
2965 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2966   $as_echo_n "(cached) " >&6
2967 else
2968   if test -n "$ac_ct_CC"; then
2969   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2970 else
2971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2972 for as_dir in $PATH
2973 do
2974   IFS=$as_save_IFS
2975   test -z "$as_dir" && as_dir=.
2976     for ac_exec_ext in '' $ac_executable_extensions; do
2977   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2978     ac_cv_prog_ac_ct_CC="gcc"
2979     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2980     break 2
2981   fi
2982 done
2983   done
2984 IFS=$as_save_IFS
2985
2986 fi
2987 fi
2988 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2989 if test -n "$ac_ct_CC"; then
2990   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2991 $as_echo "$ac_ct_CC" >&6; }
2992 else
2993   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2994 $as_echo "no" >&6; }
2995 fi
2996
2997   if test "x$ac_ct_CC" = x; then
2998     CC=""
2999   else
3000     case $cross_compiling:$ac_tool_warned in
3001 yes:)
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3003 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3004 ac_tool_warned=yes ;;
3005 esac
3006     CC=$ac_ct_CC
3007   fi
3008 else
3009   CC="$ac_cv_prog_CC"
3010 fi
3011
3012 if test -z "$CC"; then
3013           if test -n "$ac_tool_prefix"; then
3014     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3015 set dummy ${ac_tool_prefix}cc; ac_word=$2
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3017 $as_echo_n "checking for $ac_word... " >&6; }
3018 if ${ac_cv_prog_CC+:} false; then :
3019   $as_echo_n "(cached) " >&6
3020 else
3021   if test -n "$CC"; then
3022   ac_cv_prog_CC="$CC" # Let the user override the test.
3023 else
3024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3025 for as_dir in $PATH
3026 do
3027   IFS=$as_save_IFS
3028   test -z "$as_dir" && as_dir=.
3029     for ac_exec_ext in '' $ac_executable_extensions; do
3030   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3031     ac_cv_prog_CC="${ac_tool_prefix}cc"
3032     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3033     break 2
3034   fi
3035 done
3036   done
3037 IFS=$as_save_IFS
3038
3039 fi
3040 fi
3041 CC=$ac_cv_prog_CC
3042 if test -n "$CC"; then
3043   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3044 $as_echo "$CC" >&6; }
3045 else
3046   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3047 $as_echo "no" >&6; }
3048 fi
3049
3050
3051   fi
3052 fi
3053 if test -z "$CC"; then
3054   # Extract the first word of "cc", so it can be a program name with args.
3055 set dummy cc; ac_word=$2
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3057 $as_echo_n "checking for $ac_word... " >&6; }
3058 if ${ac_cv_prog_CC+:} false; then :
3059   $as_echo_n "(cached) " >&6
3060 else
3061   if test -n "$CC"; then
3062   ac_cv_prog_CC="$CC" # Let the user override the test.
3063 else
3064   ac_prog_rejected=no
3065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3066 for as_dir in $PATH
3067 do
3068   IFS=$as_save_IFS
3069   test -z "$as_dir" && as_dir=.
3070     for ac_exec_ext in '' $ac_executable_extensions; do
3071   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3072     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3073        ac_prog_rejected=yes
3074        continue
3075      fi
3076     ac_cv_prog_CC="cc"
3077     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3078     break 2
3079   fi
3080 done
3081   done
3082 IFS=$as_save_IFS
3083
3084 if test $ac_prog_rejected = yes; then
3085   # We found a bogon in the path, so make sure we never use it.
3086   set dummy $ac_cv_prog_CC
3087   shift
3088   if test $# != 0; then
3089     # We chose a different compiler from the bogus one.
3090     # However, it has the same basename, so the bogon will be chosen
3091     # first if we set CC to just the basename; use the full file name.
3092     shift
3093     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3094   fi
3095 fi
3096 fi
3097 fi
3098 CC=$ac_cv_prog_CC
3099 if test -n "$CC"; then
3100   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3101 $as_echo "$CC" >&6; }
3102 else
3103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3104 $as_echo "no" >&6; }
3105 fi
3106
3107
3108 fi
3109 if test -z "$CC"; then
3110   if test -n "$ac_tool_prefix"; then
3111   for ac_prog in cl.exe
3112   do
3113     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3114 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3116 $as_echo_n "checking for $ac_word... " >&6; }
3117 if ${ac_cv_prog_CC+:} false; then :
3118   $as_echo_n "(cached) " >&6
3119 else
3120   if test -n "$CC"; then
3121   ac_cv_prog_CC="$CC" # Let the user override the test.
3122 else
3123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3124 for as_dir in $PATH
3125 do
3126   IFS=$as_save_IFS
3127   test -z "$as_dir" && as_dir=.
3128     for ac_exec_ext in '' $ac_executable_extensions; do
3129   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3130     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3131     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3132     break 2
3133   fi
3134 done
3135   done
3136 IFS=$as_save_IFS
3137
3138 fi
3139 fi
3140 CC=$ac_cv_prog_CC
3141 if test -n "$CC"; then
3142   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3143 $as_echo "$CC" >&6; }
3144 else
3145   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3146 $as_echo "no" >&6; }
3147 fi
3148
3149
3150     test -n "$CC" && break
3151   done
3152 fi
3153 if test -z "$CC"; then
3154   ac_ct_CC=$CC
3155   for ac_prog in cl.exe
3156 do
3157   # Extract the first word of "$ac_prog", so it can be a program name with args.
3158 set dummy $ac_prog; ac_word=$2
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3160 $as_echo_n "checking for $ac_word... " >&6; }
3161 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3162   $as_echo_n "(cached) " >&6
3163 else
3164   if test -n "$ac_ct_CC"; then
3165   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3166 else
3167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3168 for as_dir in $PATH
3169 do
3170   IFS=$as_save_IFS
3171   test -z "$as_dir" && as_dir=.
3172     for ac_exec_ext in '' $ac_executable_extensions; do
3173   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3174     ac_cv_prog_ac_ct_CC="$ac_prog"
3175     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3176     break 2
3177   fi
3178 done
3179   done
3180 IFS=$as_save_IFS
3181
3182 fi
3183 fi
3184 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3185 if test -n "$ac_ct_CC"; then
3186   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3187 $as_echo "$ac_ct_CC" >&6; }
3188 else
3189   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3190 $as_echo "no" >&6; }
3191 fi
3192
3193
3194   test -n "$ac_ct_CC" && break
3195 done
3196
3197   if test "x$ac_ct_CC" = x; then
3198     CC=""
3199   else
3200     case $cross_compiling:$ac_tool_warned in
3201 yes:)
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3203 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3204 ac_tool_warned=yes ;;
3205 esac
3206     CC=$ac_ct_CC
3207   fi
3208 fi
3209
3210 fi
3211
3212
3213 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3214 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3215 as_fn_error $? "no acceptable C compiler found in \$PATH
3216 See \`config.log' for more details" "$LINENO" 5; }
3217
3218 # Provide some information about the compiler.
3219 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3220 set X $ac_compile
3221 ac_compiler=$2
3222 for ac_option in --version -v -V -qversion; do
3223   { { ac_try="$ac_compiler $ac_option >&5"
3224 case "(($ac_try" in
3225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3226   *) ac_try_echo=$ac_try;;
3227 esac
3228 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3229 $as_echo "$ac_try_echo"; } >&5
3230   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3231   ac_status=$?
3232   if test -s conftest.err; then
3233     sed '10a\
3234 ... rest of stderr output deleted ...
3235          10q' conftest.err >conftest.er1
3236     cat conftest.er1 >&5
3237   fi
3238   rm -f conftest.er1 conftest.err
3239   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3240   test $ac_status = 0; }
3241 done
3242
3243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3244 /* end confdefs.h.  */
3245
3246 int
3247 main ()
3248 {
3249
3250   ;
3251   return 0;
3252 }
3253 _ACEOF
3254 ac_clean_files_save=$ac_clean_files
3255 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3256 # Try to create an executable without -o first, disregard a.out.
3257 # It will help us diagnose broken compilers, and finding out an intuition
3258 # of exeext.
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3260 $as_echo_n "checking whether the C compiler works... " >&6; }
3261 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3262
3263 # The possible output files:
3264 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3265
3266 ac_rmfiles=
3267 for ac_file in $ac_files
3268 do
3269   case $ac_file in
3270     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3271     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3272   esac
3273 done
3274 rm -f $ac_rmfiles
3275
3276 if { { ac_try="$ac_link_default"
3277 case "(($ac_try" in
3278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3279   *) ac_try_echo=$ac_try;;
3280 esac
3281 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3282 $as_echo "$ac_try_echo"; } >&5
3283   (eval "$ac_link_default") 2>&5
3284   ac_status=$?
3285   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3286   test $ac_status = 0; }; then :
3287   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3288 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3289 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3290 # so that the user can short-circuit this test for compilers unknown to
3291 # Autoconf.
3292 for ac_file in $ac_files ''
3293 do
3294   test -f "$ac_file" || continue
3295   case $ac_file in
3296     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3297         ;;
3298     [ab].out )
3299         # We found the default executable, but exeext='' is most
3300         # certainly right.
3301         break;;
3302     *.* )
3303         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3304         then :; else
3305            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3306         fi
3307         # We set ac_cv_exeext here because the later test for it is not
3308         # safe: cross compilers may not add the suffix if given an `-o'
3309         # argument, so we may need to know it at that point already.
3310         # Even if this section looks crufty: it has the advantage of
3311         # actually working.
3312         break;;
3313     * )
3314         break;;
3315   esac
3316 done
3317 test "$ac_cv_exeext" = no && ac_cv_exeext=
3318
3319 else
3320   ac_file=''
3321 fi
3322 if test -z "$ac_file"; then :
3323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3324 $as_echo "no" >&6; }
3325 $as_echo "$as_me: failed program was:" >&5
3326 sed 's/^/| /' conftest.$ac_ext >&5
3327
3328 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3329 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3330 as_fn_error 77 "C compiler cannot create executables
3331 See \`config.log' for more details" "$LINENO" 5; }
3332 else
3333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3334 $as_echo "yes" >&6; }
3335 fi
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3337 $as_echo_n "checking for C compiler default output file name... " >&6; }
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3339 $as_echo "$ac_file" >&6; }
3340 ac_exeext=$ac_cv_exeext
3341
3342 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3343 ac_clean_files=$ac_clean_files_save
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3345 $as_echo_n "checking for suffix of executables... " >&6; }
3346 if { { ac_try="$ac_link"
3347 case "(($ac_try" in
3348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3349   *) ac_try_echo=$ac_try;;
3350 esac
3351 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3352 $as_echo "$ac_try_echo"; } >&5
3353   (eval "$ac_link") 2>&5
3354   ac_status=$?
3355   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3356   test $ac_status = 0; }; then :
3357   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3358 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3359 # work properly (i.e., refer to `conftest.exe'), while it won't with
3360 # `rm'.
3361 for ac_file in conftest.exe conftest conftest.*; do
3362   test -f "$ac_file" || continue
3363   case $ac_file in
3364     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3365     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3366           break;;
3367     * ) break;;
3368   esac
3369 done
3370 else
3371   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3372 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3373 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3374 See \`config.log' for more details" "$LINENO" 5; }
3375 fi
3376 rm -f conftest conftest$ac_cv_exeext
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3378 $as_echo "$ac_cv_exeext" >&6; }
3379
3380 rm -f conftest.$ac_ext
3381 EXEEXT=$ac_cv_exeext
3382 ac_exeext=$EXEEXT
3383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3384 /* end confdefs.h.  */
3385 #include <stdio.h>
3386 int
3387 main ()
3388 {
3389 FILE *f = fopen ("conftest.out", "w");
3390  return ferror (f) || fclose (f) != 0;
3391
3392   ;
3393   return 0;
3394 }
3395 _ACEOF
3396 ac_clean_files="$ac_clean_files conftest.out"
3397 # Check that the compiler produces executables we can run.  If not, either
3398 # the compiler is broken, or we cross compile.
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3400 $as_echo_n "checking whether we are cross compiling... " >&6; }
3401 if test "$cross_compiling" != yes; then
3402   { { ac_try="$ac_link"
3403 case "(($ac_try" in
3404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3405   *) ac_try_echo=$ac_try;;
3406 esac
3407 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3408 $as_echo "$ac_try_echo"; } >&5
3409   (eval "$ac_link") 2>&5
3410   ac_status=$?
3411   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3412   test $ac_status = 0; }
3413   if { ac_try='./conftest$ac_cv_exeext'
3414   { { case "(($ac_try" in
3415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3416   *) ac_try_echo=$ac_try;;
3417 esac
3418 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3419 $as_echo "$ac_try_echo"; } >&5
3420   (eval "$ac_try") 2>&5
3421   ac_status=$?
3422   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3423   test $ac_status = 0; }; }; then
3424     cross_compiling=no
3425   else
3426     if test "$cross_compiling" = maybe; then
3427         cross_compiling=yes
3428     else
3429         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3430 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3431 as_fn_error $? "cannot run C compiled programs.
3432 If you meant to cross compile, use \`--host'.
3433 See \`config.log' for more details" "$LINENO" 5; }
3434     fi
3435   fi
3436 fi
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3438 $as_echo "$cross_compiling" >&6; }
3439
3440 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3441 ac_clean_files=$ac_clean_files_save
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3443 $as_echo_n "checking for suffix of object files... " >&6; }
3444 if ${ac_cv_objext+:} false; then :
3445   $as_echo_n "(cached) " >&6
3446 else
3447   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3448 /* end confdefs.h.  */
3449
3450 int
3451 main ()
3452 {
3453
3454   ;
3455   return 0;
3456 }
3457 _ACEOF
3458 rm -f conftest.o conftest.obj
3459 if { { ac_try="$ac_compile"
3460 case "(($ac_try" in
3461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3462   *) ac_try_echo=$ac_try;;
3463 esac
3464 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3465 $as_echo "$ac_try_echo"; } >&5
3466   (eval "$ac_compile") 2>&5
3467   ac_status=$?
3468   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3469   test $ac_status = 0; }; then :
3470   for ac_file in conftest.o conftest.obj conftest.*; do
3471   test -f "$ac_file" || continue;
3472   case $ac_file in
3473     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3474     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3475        break;;
3476   esac
3477 done
3478 else
3479   $as_echo "$as_me: failed program was:" >&5
3480 sed 's/^/| /' conftest.$ac_ext >&5
3481
3482 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3483 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3484 as_fn_error $? "cannot compute suffix of object files: cannot compile
3485 See \`config.log' for more details" "$LINENO" 5; }
3486 fi
3487 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3488 fi
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3490 $as_echo "$ac_cv_objext" >&6; }
3491 OBJEXT=$ac_cv_objext
3492 ac_objext=$OBJEXT
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3494 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3495 if ${ac_cv_c_compiler_gnu+:} false; then :
3496   $as_echo_n "(cached) " >&6
3497 else
3498   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3499 /* end confdefs.h.  */
3500
3501 int
3502 main ()
3503 {
3504 #ifndef __GNUC__
3505        choke me
3506 #endif
3507
3508   ;
3509   return 0;
3510 }
3511 _ACEOF
3512 if ac_fn_c_try_compile "$LINENO"; then :
3513   ac_compiler_gnu=yes
3514 else
3515   ac_compiler_gnu=no
3516 fi
3517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3518 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3519
3520 fi
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3522 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3523 if test $ac_compiler_gnu = yes; then
3524   GCC=yes
3525 else
3526   GCC=
3527 fi
3528 ac_test_CFLAGS=${CFLAGS+set}
3529 ac_save_CFLAGS=$CFLAGS
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3531 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3532 if ${ac_cv_prog_cc_g+:} false; then :
3533   $as_echo_n "(cached) " >&6
3534 else
3535   ac_save_c_werror_flag=$ac_c_werror_flag
3536    ac_c_werror_flag=yes
3537    ac_cv_prog_cc_g=no
3538    CFLAGS="-g"
3539    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3540 /* end confdefs.h.  */
3541
3542 int
3543 main ()
3544 {
3545
3546   ;
3547   return 0;
3548 }
3549 _ACEOF
3550 if ac_fn_c_try_compile "$LINENO"; then :
3551   ac_cv_prog_cc_g=yes
3552 else
3553   CFLAGS=""
3554       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3555 /* end confdefs.h.  */
3556
3557 int
3558 main ()
3559 {
3560
3561   ;
3562   return 0;
3563 }
3564 _ACEOF
3565 if ac_fn_c_try_compile "$LINENO"; then :
3566
3567 else
3568   ac_c_werror_flag=$ac_save_c_werror_flag
3569          CFLAGS="-g"
3570          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3571 /* end confdefs.h.  */
3572
3573 int
3574 main ()
3575 {
3576
3577   ;
3578   return 0;
3579 }
3580 _ACEOF
3581 if ac_fn_c_try_compile "$LINENO"; then :
3582   ac_cv_prog_cc_g=yes
3583 fi
3584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3585 fi
3586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3587 fi
3588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3589    ac_c_werror_flag=$ac_save_c_werror_flag
3590 fi
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3592 $as_echo "$ac_cv_prog_cc_g" >&6; }
3593 if test "$ac_test_CFLAGS" = set; then
3594   CFLAGS=$ac_save_CFLAGS
3595 elif test $ac_cv_prog_cc_g = yes; then
3596   if test "$GCC" = yes; then
3597     CFLAGS="-g -O2"
3598   else
3599     CFLAGS="-g"
3600   fi
3601 else
3602   if test "$GCC" = yes; then
3603     CFLAGS="-O2"
3604   else
3605     CFLAGS=
3606   fi
3607 fi
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3609 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3610 if ${ac_cv_prog_cc_c89+:} false; then :
3611   $as_echo_n "(cached) " >&6
3612 else
3613   ac_cv_prog_cc_c89=no
3614 ac_save_CC=$CC
3615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3616 /* end confdefs.h.  */
3617 #include <stdarg.h>
3618 #include <stdio.h>
3619 struct stat;
3620 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3621 struct buf { int x; };
3622 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3623 static char *e (p, i)
3624      char **p;
3625      int i;
3626 {
3627   return p[i];
3628 }
3629 static char *f (char * (*g) (char **, int), char **p, ...)
3630 {
3631   char *s;
3632   va_list v;
3633   va_start (v,p);
3634   s = g (p, va_arg (v,int));
3635   va_end (v);
3636   return s;
3637 }
3638
3639 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3640    function prototypes and stuff, but not '\xHH' hex character constants.
3641    These don't provoke an error unfortunately, instead are silently treated
3642    as 'x'.  The following induces an error, until -std is added to get
3643    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3644    array size at least.  It's necessary to write '\x00'==0 to get something
3645    that's true only with -std.  */
3646 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3647
3648 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3649    inside strings and character constants.  */
3650 #define FOO(x) 'x'
3651 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3652
3653 int test (int i, double x);
3654 struct s1 {int (*f) (int a);};
3655 struct s2 {int (*f) (double a);};
3656 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3657 int argc;
3658 char **argv;
3659 int
3660 main ()
3661 {
3662 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3663   ;
3664   return 0;
3665 }
3666 _ACEOF
3667 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3668         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3669 do
3670   CC="$ac_save_CC $ac_arg"
3671   if ac_fn_c_try_compile "$LINENO"; then :
3672   ac_cv_prog_cc_c89=$ac_arg
3673 fi
3674 rm -f core conftest.err conftest.$ac_objext
3675   test "x$ac_cv_prog_cc_c89" != "xno" && break
3676 done
3677 rm -f conftest.$ac_ext
3678 CC=$ac_save_CC
3679
3680 fi
3681 # AC_CACHE_VAL
3682 case "x$ac_cv_prog_cc_c89" in
3683   x)
3684     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3685 $as_echo "none needed" >&6; } ;;
3686   xno)
3687     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3688 $as_echo "unsupported" >&6; } ;;
3689   *)
3690     CC="$CC $ac_cv_prog_cc_c89"
3691     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3692 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3693 esac
3694 if test "x$ac_cv_prog_cc_c89" != xno; then :
3695
3696 fi
3697
3698 ac_ext=c
3699 ac_cpp='$CPP $CPPFLAGS'
3700 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3701 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3702 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3703
3704 ac_ext=cpp
3705 ac_cpp='$CXXCPP $CPPFLAGS'
3706 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3707 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3708 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3709 if test -z "$CXX"; then
3710   if test -n "$CCC"; then
3711     CXX=$CCC
3712   else
3713     if test -n "$ac_tool_prefix"; then
3714   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3715   do
3716     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3717 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3719 $as_echo_n "checking for $ac_word... " >&6; }
3720 if ${ac_cv_prog_CXX+:} false; then :
3721   $as_echo_n "(cached) " >&6
3722 else
3723   if test -n "$CXX"; then
3724   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3725 else
3726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3727 for as_dir in $PATH
3728 do
3729   IFS=$as_save_IFS
3730   test -z "$as_dir" && as_dir=.
3731     for ac_exec_ext in '' $ac_executable_extensions; do
3732   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3733     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3734     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3735     break 2
3736   fi
3737 done
3738   done
3739 IFS=$as_save_IFS
3740
3741 fi
3742 fi
3743 CXX=$ac_cv_prog_CXX
3744 if test -n "$CXX"; then
3745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3746 $as_echo "$CXX" >&6; }
3747 else
3748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3749 $as_echo "no" >&6; }
3750 fi
3751
3752
3753     test -n "$CXX" && break
3754   done
3755 fi
3756 if test -z "$CXX"; then
3757   ac_ct_CXX=$CXX
3758   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3759 do
3760   # Extract the first word of "$ac_prog", so it can be a program name with args.
3761 set dummy $ac_prog; ac_word=$2
3762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3763 $as_echo_n "checking for $ac_word... " >&6; }
3764 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3765   $as_echo_n "(cached) " >&6
3766 else
3767   if test -n "$ac_ct_CXX"; then
3768   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3769 else
3770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3771 for as_dir in $PATH
3772 do
3773   IFS=$as_save_IFS
3774   test -z "$as_dir" && as_dir=.
3775     for ac_exec_ext in '' $ac_executable_extensions; do
3776   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3777     ac_cv_prog_ac_ct_CXX="$ac_prog"
3778     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3779     break 2
3780   fi
3781 done
3782   done
3783 IFS=$as_save_IFS
3784
3785 fi
3786 fi
3787 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3788 if test -n "$ac_ct_CXX"; then
3789   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3790 $as_echo "$ac_ct_CXX" >&6; }
3791 else
3792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3793 $as_echo "no" >&6; }
3794 fi
3795
3796
3797   test -n "$ac_ct_CXX" && break
3798 done
3799
3800   if test "x$ac_ct_CXX" = x; then
3801     CXX="g++"
3802   else
3803     case $cross_compiling:$ac_tool_warned in
3804 yes:)
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3806 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3807 ac_tool_warned=yes ;;
3808 esac
3809     CXX=$ac_ct_CXX
3810   fi
3811 fi
3812
3813   fi
3814 fi
3815 # Provide some information about the compiler.
3816 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3817 set X $ac_compile
3818 ac_compiler=$2
3819 for ac_option in --version -v -V -qversion; do
3820   { { ac_try="$ac_compiler $ac_option >&5"
3821 case "(($ac_try" in
3822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3823   *) ac_try_echo=$ac_try;;
3824 esac
3825 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3826 $as_echo "$ac_try_echo"; } >&5
3827   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3828   ac_status=$?
3829   if test -s conftest.err; then
3830     sed '10a\
3831 ... rest of stderr output deleted ...
3832          10q' conftest.err >conftest.er1
3833     cat conftest.er1 >&5
3834   fi
3835   rm -f conftest.er1 conftest.err
3836   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3837   test $ac_status = 0; }
3838 done
3839
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3841 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3842 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3843   $as_echo_n "(cached) " >&6
3844 else
3845   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3846 /* end confdefs.h.  */
3847
3848 int
3849 main ()
3850 {
3851 #ifndef __GNUC__
3852        choke me
3853 #endif
3854
3855   ;
3856   return 0;
3857 }
3858 _ACEOF
3859 if ac_fn_cxx_try_compile "$LINENO"; then :
3860   ac_compiler_gnu=yes
3861 else
3862   ac_compiler_gnu=no
3863 fi
3864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3865 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3866
3867 fi
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3869 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3870 if test $ac_compiler_gnu = yes; then
3871   GXX=yes
3872 else
3873   GXX=
3874 fi
3875 ac_test_CXXFLAGS=${CXXFLAGS+set}
3876 ac_save_CXXFLAGS=$CXXFLAGS
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3878 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3879 if ${ac_cv_prog_cxx_g+:} false; then :
3880   $as_echo_n "(cached) " >&6
3881 else
3882   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3883    ac_cxx_werror_flag=yes
3884    ac_cv_prog_cxx_g=no
3885    CXXFLAGS="-g"
3886    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3887 /* end confdefs.h.  */
3888
3889 int
3890 main ()
3891 {
3892
3893   ;
3894   return 0;
3895 }
3896 _ACEOF
3897 if ac_fn_cxx_try_compile "$LINENO"; then :
3898   ac_cv_prog_cxx_g=yes
3899 else
3900   CXXFLAGS=""
3901       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3902 /* end confdefs.h.  */
3903
3904 int
3905 main ()
3906 {
3907
3908   ;
3909   return 0;
3910 }
3911 _ACEOF
3912 if ac_fn_cxx_try_compile "$LINENO"; then :
3913
3914 else
3915   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3916          CXXFLAGS="-g"
3917          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3918 /* end confdefs.h.  */
3919
3920 int
3921 main ()
3922 {
3923
3924   ;
3925   return 0;
3926 }
3927 _ACEOF
3928 if ac_fn_cxx_try_compile "$LINENO"; then :
3929   ac_cv_prog_cxx_g=yes
3930 fi
3931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3932 fi
3933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3934 fi
3935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3936    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3937 fi
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3939 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3940 if test "$ac_test_CXXFLAGS" = set; then
3941   CXXFLAGS=$ac_save_CXXFLAGS
3942 elif test $ac_cv_prog_cxx_g = yes; then
3943   if test "$GXX" = yes; then
3944     CXXFLAGS="-g -O2"
3945   else
3946     CXXFLAGS="-g"
3947   fi
3948 else
3949   if test "$GXX" = yes; then
3950     CXXFLAGS="-O2"
3951   else
3952     CXXFLAGS=
3953   fi
3954 fi
3955 ac_ext=c
3956 ac_cpp='$CPP $CPPFLAGS'
3957 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3958 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3959 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3960
3961 if test -n "$ac_tool_prefix"; then
3962   # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
3963 set dummy ${ac_tool_prefix}cpp; ac_word=$2
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3965 $as_echo_n "checking for $ac_word... " >&6; }
3966 if ${ac_cv_prog_CPPBIN+:} false; then :
3967   $as_echo_n "(cached) " >&6
3968 else
3969   if test -n "$CPPBIN"; then
3970   ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test.
3971 else
3972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3973 for as_dir in $PATH
3974 do
3975   IFS=$as_save_IFS
3976   test -z "$as_dir" && as_dir=.
3977     for ac_exec_ext in '' $ac_executable_extensions; do
3978   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3979     ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp"
3980     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3981     break 2
3982   fi
3983 done
3984   done
3985 IFS=$as_save_IFS
3986
3987 fi
3988 fi
3989 CPPBIN=$ac_cv_prog_CPPBIN
3990 if test -n "$CPPBIN"; then
3991   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPPBIN" >&5
3992 $as_echo "$CPPBIN" >&6; }
3993 else
3994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3995 $as_echo "no" >&6; }
3996 fi
3997
3998
3999 fi
4000 if test -z "$ac_cv_prog_CPPBIN"; then
4001   ac_ct_CPPBIN=$CPPBIN
4002   # Extract the first word of "cpp", so it can be a program name with args.
4003 set dummy cpp; ac_word=$2
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4005 $as_echo_n "checking for $ac_word... " >&6; }
4006 if ${ac_cv_prog_ac_ct_CPPBIN+:} false; then :
4007   $as_echo_n "(cached) " >&6
4008 else
4009   if test -n "$ac_ct_CPPBIN"; then
4010   ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test.
4011 else
4012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4013 for as_dir in $PATH
4014 do
4015   IFS=$as_save_IFS
4016   test -z "$as_dir" && as_dir=.
4017     for ac_exec_ext in '' $ac_executable_extensions; do
4018   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4019     ac_cv_prog_ac_ct_CPPBIN="cpp"
4020     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4021     break 2
4022   fi
4023 done
4024   done
4025 IFS=$as_save_IFS
4026
4027 fi
4028 fi
4029 ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN
4030 if test -n "$ac_ct_CPPBIN"; then
4031   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CPPBIN" >&5
4032 $as_echo "$ac_ct_CPPBIN" >&6; }
4033 else
4034   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4035 $as_echo "no" >&6; }
4036 fi
4037
4038   if test "x$ac_ct_CPPBIN" = x; then
4039     CPPBIN="cpp"
4040   else
4041     case $cross_compiling:$ac_tool_warned in
4042 yes:)
4043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4044 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4045 ac_tool_warned=yes ;;
4046 esac
4047     CPPBIN=$ac_ct_CPPBIN
4048   fi
4049 else
4050   CPPBIN="$ac_cv_prog_CPPBIN"
4051 fi
4052
4053
4054 cat >>confdefs.h <<_ACEOF
4055 #define EXEEXT "$ac_exeext"
4056 _ACEOF
4057
4058
4059 case $host in
4060   *-darwin*)
4061     if test "x$enable_win64" = "xyes"
4062     then
4063       CC="$CC -m64"
4064       CXX="$CXX -m64"
4065       host_cpu="x86_64"
4066       notice_platform="64-bit "
4067       TARGETFLAGS="-m64"
4068
4069     else
4070       CC="$CC -m32"
4071       CXX="$CXX -m32"
4072       host_cpu="i386"
4073       notice_platform="32-bit "
4074       TARGETFLAGS="-m32"
4075
4076       enable_win16=${enable_win16:-yes}
4077     fi
4078     with_fontconfig=${with_fontconfig:-no}
4079     ;;
4080   x86_64*)
4081     if test "x$enable_win64" != "xyes" -a "$cross_compiling" != "yes"
4082     then
4083       CC="$CC -m32"
4084       CXX="$CXX -m32"
4085       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC works" >&5
4086 $as_echo_n "checking whether $CC works... " >&6; }
4087
4088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4089 /* end confdefs.h.  */
4090
4091 int
4092 main ()
4093 {
4094
4095   ;
4096   return 0;
4097 }
4098 _ACEOF
4099 if ac_fn_c_try_link "$LINENO"; then :
4100   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4101 $as_echo "yes" >&6; }
4102 else
4103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4104 $as_echo "no" >&6; }
4105                       as_fn_error $? "Cannot build a 32-bit program, you need to install 32-bit development libraries." "$LINENO" 5
4106 fi
4107 rm -f core conftest.err conftest.$ac_objext \
4108     conftest$ac_exeext conftest.$ac_ext
4109       host_cpu="i386"
4110       notice_platform="32-bit "
4111       TARGETFLAGS="-m32"
4112
4113       enable_win16=${enable_win16:-yes}
4114     else
4115       if test "x${GCC}" = "xyes"
4116       then
4117         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports __builtin_ms_va_list" >&5
4118 $as_echo_n "checking whether $CC supports __builtin_ms_va_list... " >&6; }
4119         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4120 /* end confdefs.h.  */
4121 #include <stdarg.h>
4122 int
4123 main ()
4124 {
4125 void func(__builtin_ms_va_list *args);
4126   ;
4127   return 0;
4128 }
4129 _ACEOF
4130 if ac_fn_c_try_compile "$LINENO"; then :
4131   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4132 $as_echo "yes" >&6; }
4133 else
4134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4135 $as_echo "no" >&6; }
4136                            as_fn_error $? "You need gcc >= 4.4 to build Wine as 64-bit." "$LINENO" 5
4137 fi
4138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4139       fi
4140       TARGETFLAGS="-m64"
4141
4142     fi
4143     ;;
4144   *-mingw32*|*-cygwin*)
4145     enable_win16=${enable_win16:-no}
4146     CFLAGS="$CFLAGS -D_WIN32"
4147     ;;
4148   i[3456789]86*)
4149     enable_win16=${enable_win16:-yes}
4150     ;;
4151 esac
4152
4153 enable_win16=${enable_win16:-no}
4154 enable_win64=${enable_win64:-no}
4155
4156 enable_winetest=${enable_winetest:-$enable_tests}
4157
4158 if test -n "$with_wine64"
4159 then
4160     if test "x$enable_win64" = "xyes"
4161     then
4162         as_fn_error $? "--enable-win64 and --with-wine64 are mutually exclusive.
4163 --enable-win64 should be used in the 64-bit build tree, --with-wine64 in the 32-bit Wow64 build tree." "$LINENO" 5
4164     fi
4165     WOW64_DISABLE=\#
4166
4167     enable_fonts=${enable_fonts:-no}
4168     enable_server=${enable_server:-no}
4169     enable_tools=${enable_tools:-no}
4170 elif test "x$enable_win64" = "xyes"
4171 then
4172     test "x$libdir" != "x\${exec_prefix}/lib" || libdir="\${exec_prefix}/lib64"
4173 fi
4174
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the directory containing the Wine tools" >&5
4176 $as_echo_n "checking for the directory containing the Wine tools... " >&6; }
4177 if ${wine_cv_toolsdir+:} false; then :
4178   $as_echo_n "(cached) " >&6
4179 else
4180   wine_cv_toolsdir="$with_wine_tools"
4181    if test -z "$with_wine_tools"; then
4182      if test "$cross_compiling" = "yes"; then
4183        as_fn_error $? "you must use the --with-wine-tools option when cross-compiling." "$LINENO" 5
4184      elif test -n "$with_wine64"; then
4185        wine_cv_toolsdir="$with_wine64"
4186      fi
4187    fi
4188    if test -z "$wine_cv_toolsdir"; then
4189      wine_cv_toolsdir="\$(top_builddir)"
4190    elif test -d "$wine_cv_toolsdir/tools/winebuild"; then
4191      case "$wine_cv_toolsdir" in
4192        /*) ;;
4193        *)  wine_cv_toolsdir="\$(top_builddir)/$wine_cv_toolsdir" ;;
4194      esac
4195    else
4196      as_fn_error $? "could not find Wine tools in $wine_cv_toolsdir" "$LINENO" 5
4197    fi
4198 fi
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_toolsdir" >&5
4200 $as_echo "$wine_cv_toolsdir" >&6; }
4201 TOOLSDIR=$wine_cv_toolsdir
4202
4203 if test -n "$host_alias" -a "$host_alias" != "$build_alias"
4204 then
4205     TARGETFLAGS="-b $host_alias $TARGETFLAGS"
4206
4207 fi
4208
4209 for ac_prog in flex
4210 do
4211   # Extract the first word of "$ac_prog", so it can be a program name with args.
4212 set dummy $ac_prog; ac_word=$2
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4214 $as_echo_n "checking for $ac_word... " >&6; }
4215 if ${ac_cv_prog_FLEX+:} false; then :
4216   $as_echo_n "(cached) " >&6
4217 else
4218   if test -n "$FLEX"; then
4219   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
4220 else
4221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4222 for as_dir in $PATH
4223 do
4224   IFS=$as_save_IFS
4225   test -z "$as_dir" && as_dir=.
4226     for ac_exec_ext in '' $ac_executable_extensions; do
4227   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4228     ac_cv_prog_FLEX="$ac_prog"
4229     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4230     break 2
4231   fi
4232 done
4233   done
4234 IFS=$as_save_IFS
4235
4236 fi
4237 fi
4238 FLEX=$ac_cv_prog_FLEX
4239 if test -n "$FLEX"; then
4240   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
4241 $as_echo "$FLEX" >&6; }
4242 else
4243   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4244 $as_echo "no" >&6; }
4245 fi
4246
4247
4248   test -n "$FLEX" && break
4249 done
4250 test -n "$FLEX" || FLEX="none"
4251
4252 if test "$FLEX" = "none"
4253 then
4254   as_fn_error $? "no suitable flex found. Please install the 'flex' package." "$LINENO" 5
4255 fi
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether flex is recent enough" >&5
4257 $as_echo_n "checking whether flex is recent enough... " >&6; }
4258 cat >conftest.l <<EOF
4259 %top{
4260 #include "prediluvian.h"
4261 }
4262 %%
4263 EOF
4264 if $FLEX -t conftest.l >/dev/null 2>&5
4265 then
4266   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4267 $as_echo "yes" >&6; }
4268 else
4269   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4270 $as_echo "no" >&6; }
4271   as_fn_error $? "Your flex version is too old. Please install flex version 2.5.33 or newer." "$LINENO" 5
4272 fi
4273
4274 for ac_prog in bison
4275 do
4276   # Extract the first word of "$ac_prog", so it can be a program name with args.
4277 set dummy $ac_prog; ac_word=$2
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4279 $as_echo_n "checking for $ac_word... " >&6; }
4280 if ${ac_cv_prog_BISON+:} false; then :
4281   $as_echo_n "(cached) " >&6
4282 else
4283   if test -n "$BISON"; then
4284   ac_cv_prog_BISON="$BISON" # Let the user override the test.
4285 else
4286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4287 for as_dir in $PATH
4288 do
4289   IFS=$as_save_IFS
4290   test -z "$as_dir" && as_dir=.
4291     for ac_exec_ext in '' $ac_executable_extensions; do
4292   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4293     ac_cv_prog_BISON="$ac_prog"
4294     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4295     break 2
4296   fi
4297 done
4298   done
4299 IFS=$as_save_IFS
4300
4301 fi
4302 fi
4303 BISON=$ac_cv_prog_BISON
4304 if test -n "$BISON"; then
4305   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
4306 $as_echo "$BISON" >&6; }
4307 else
4308   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4309 $as_echo "no" >&6; }
4310 fi
4311
4312
4313   test -n "$BISON" && break
4314 done
4315 test -n "$BISON" || BISON="none"
4316
4317 if test "$BISON" = "none"
4318 then
4319   as_fn_error $? "no suitable bison found. Please install the 'bison' package." "$LINENO" 5
4320 fi
4321
4322 if test -n "$ac_tool_prefix"; then
4323   for ac_prog in ar gar
4324   do
4325     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4326 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4328 $as_echo_n "checking for $ac_word... " >&6; }
4329 if ${ac_cv_prog_AR+:} false; then :
4330   $as_echo_n "(cached) " >&6
4331 else
4332   if test -n "$AR"; then
4333   ac_cv_prog_AR="$AR" # Let the user override the test.
4334 else
4335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4336 for as_dir in $PATH
4337 do
4338   IFS=$as_save_IFS
4339   test -z "$as_dir" && as_dir=.
4340     for ac_exec_ext in '' $ac_executable_extensions; do
4341   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4342     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4343     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4344     break 2
4345   fi
4346 done
4347   done
4348 IFS=$as_save_IFS
4349
4350 fi
4351 fi
4352 AR=$ac_cv_prog_AR
4353 if test -n "$AR"; then
4354   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4355 $as_echo "$AR" >&6; }
4356 else
4357   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4358 $as_echo "no" >&6; }
4359 fi
4360
4361
4362     test -n "$AR" && break
4363   done
4364 fi
4365 if test -z "$AR"; then
4366   ac_ct_AR=$AR
4367   for ac_prog in ar gar
4368 do
4369   # Extract the first word of "$ac_prog", so it can be a program name with args.
4370 set dummy $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_ac_ct_AR+:} false; then :
4374   $as_echo_n "(cached) " >&6
4375 else
4376   if test -n "$ac_ct_AR"; then
4377   ac_cv_prog_ac_ct_AR="$ac_ct_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_ac_ct_AR="$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 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4397 if test -n "$ac_ct_AR"; then
4398   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4399 $as_echo "$ac_ct_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 "$ac_ct_AR" && break
4407 done
4408
4409   if test "x$ac_ct_AR" = x; then
4410     AR="ar"
4411   else
4412     case $cross_compiling:$ac_tool_warned in
4413 yes:)
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4415 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4416 ac_tool_warned=yes ;;
4417 esac
4418     AR=$ac_ct_AR
4419   fi
4420 fi
4421
4422 ARFLAGS=rc
4423
4424 if test -n "$ac_tool_prefix"; then
4425   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4426 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4428 $as_echo_n "checking for $ac_word... " >&6; }
4429 if ${ac_cv_prog_RANLIB+:} false; then :
4430   $as_echo_n "(cached) " >&6
4431 else
4432   if test -n "$RANLIB"; then
4433   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4434 else
4435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4436 for as_dir in $PATH
4437 do
4438   IFS=$as_save_IFS
4439   test -z "$as_dir" && as_dir=.
4440     for ac_exec_ext in '' $ac_executable_extensions; do
4441   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4442     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4443     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4444     break 2
4445   fi
4446 done
4447   done
4448 IFS=$as_save_IFS
4449
4450 fi
4451 fi
4452 RANLIB=$ac_cv_prog_RANLIB
4453 if test -n "$RANLIB"; then
4454   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4455 $as_echo "$RANLIB" >&6; }
4456 else
4457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4458 $as_echo "no" >&6; }
4459 fi
4460
4461
4462 fi
4463 if test -z "$ac_cv_prog_RANLIB"; then
4464   ac_ct_RANLIB=$RANLIB
4465   # Extract the first word of "ranlib", so it can be a program name with args.
4466 set dummy ranlib; ac_word=$2
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4468 $as_echo_n "checking for $ac_word... " >&6; }
4469 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4470   $as_echo_n "(cached) " >&6
4471 else
4472   if test -n "$ac_ct_RANLIB"; then
4473   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4474 else
4475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4476 for as_dir in $PATH
4477 do
4478   IFS=$as_save_IFS
4479   test -z "$as_dir" && as_dir=.
4480     for ac_exec_ext in '' $ac_executable_extensions; do
4481   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4482     ac_cv_prog_ac_ct_RANLIB="ranlib"
4483     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4484     break 2
4485   fi
4486 done
4487   done
4488 IFS=$as_save_IFS
4489
4490 fi
4491 fi
4492 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4493 if test -n "$ac_ct_RANLIB"; then
4494   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4495 $as_echo "$ac_ct_RANLIB" >&6; }
4496 else
4497   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4498 $as_echo "no" >&6; }
4499 fi
4500
4501   if test "x$ac_ct_RANLIB" = x; then
4502     RANLIB=":"
4503   else
4504     case $cross_compiling:$ac_tool_warned in
4505 yes:)
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4507 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4508 ac_tool_warned=yes ;;
4509 esac
4510     RANLIB=$ac_ct_RANLIB
4511   fi
4512 else
4513   RANLIB="$ac_cv_prog_RANLIB"
4514 fi
4515
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4517 $as_echo_n "checking whether ln -s works... " >&6; }
4518 LN_S=$as_ln_s
4519 if test "$LN_S" = "ln -s"; then
4520   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4521 $as_echo "yes" >&6; }
4522 else
4523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4524 $as_echo "no, using $LN_S" >&6; }
4525 fi
4526
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4528 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4529 if ${ac_cv_path_GREP+:} false; then :
4530   $as_echo_n "(cached) " >&6
4531 else
4532   if test -z "$GREP"; then
4533   ac_path_GREP_found=false
4534   # Loop through the user's path and test for each of PROGNAME-LIST
4535   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4536 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4537 do
4538   IFS=$as_save_IFS
4539   test -z "$as_dir" && as_dir=.
4540     for ac_prog in grep ggrep; do
4541     for ac_exec_ext in '' $ac_executable_extensions; do
4542       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4543       as_fn_executable_p "$ac_path_GREP" || continue
4544 # Check for GNU ac_path_GREP and select it if it is found.
4545   # Check for GNU $ac_path_GREP
4546 case `"$ac_path_GREP" --version 2>&1` in
4547 *GNU*)
4548   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4549 *)
4550   ac_count=0
4551   $as_echo_n 0123456789 >"conftest.in"
4552   while :
4553   do
4554     cat "conftest.in" "conftest.in" >"conftest.tmp"
4555     mv "conftest.tmp" "conftest.in"
4556     cp "conftest.in" "conftest.nl"
4557     $as_echo 'GREP' >> "conftest.nl"
4558     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4559     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4560     as_fn_arith $ac_count + 1 && ac_count=$as_val
4561     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4562       # Best one so far, save it but keep looking for a better one
4563       ac_cv_path_GREP="$ac_path_GREP"
4564       ac_path_GREP_max=$ac_count
4565     fi
4566     # 10*(2^10) chars as input seems more than enough
4567     test $ac_count -gt 10 && break
4568   done
4569   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4570 esac
4571
4572       $ac_path_GREP_found && break 3
4573     done
4574   done
4575   done
4576 IFS=$as_save_IFS
4577   if test -z "$ac_cv_path_GREP"; then
4578     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4579   fi
4580 else
4581   ac_cv_path_GREP=$GREP
4582 fi
4583
4584 fi
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4586 $as_echo "$ac_cv_path_GREP" >&6; }
4587  GREP="$ac_cv_path_GREP"
4588
4589
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4591 $as_echo_n "checking for egrep... " >&6; }
4592 if ${ac_cv_path_EGREP+:} false; then :
4593   $as_echo_n "(cached) " >&6
4594 else
4595   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4596    then ac_cv_path_EGREP="$GREP -E"
4597    else
4598      if test -z "$EGREP"; then
4599   ac_path_EGREP_found=false
4600   # Loop through the user's path and test for each of PROGNAME-LIST
4601   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4602 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4603 do
4604   IFS=$as_save_IFS
4605   test -z "$as_dir" && as_dir=.
4606     for ac_prog in egrep; do
4607     for ac_exec_ext in '' $ac_executable_extensions; do
4608       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4609       as_fn_executable_p "$ac_path_EGREP" || continue
4610 # Check for GNU ac_path_EGREP and select it if it is found.
4611   # Check for GNU $ac_path_EGREP
4612 case `"$ac_path_EGREP" --version 2>&1` in
4613 *GNU*)
4614   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4615 *)
4616   ac_count=0
4617   $as_echo_n 0123456789 >"conftest.in"
4618   while :
4619   do
4620     cat "conftest.in" "conftest.in" >"conftest.tmp"
4621     mv "conftest.tmp" "conftest.in"
4622     cp "conftest.in" "conftest.nl"
4623     $as_echo 'EGREP' >> "conftest.nl"
4624     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4625     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4626     as_fn_arith $ac_count + 1 && ac_count=$as_val
4627     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4628       # Best one so far, save it but keep looking for a better one
4629       ac_cv_path_EGREP="$ac_path_EGREP"
4630       ac_path_EGREP_max=$ac_count
4631     fi
4632     # 10*(2^10) chars as input seems more than enough
4633     test $ac_count -gt 10 && break
4634   done
4635   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4636 esac
4637
4638       $ac_path_EGREP_found && break 3
4639     done
4640   done
4641   done
4642 IFS=$as_save_IFS
4643   if test -z "$ac_cv_path_EGREP"; then
4644     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4645   fi
4646 else
4647   ac_cv_path_EGREP=$EGREP
4648 fi
4649
4650    fi
4651 fi
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4653 $as_echo "$ac_cv_path_EGREP" >&6; }
4654  EGREP="$ac_cv_path_EGREP"
4655
4656
4657 # Extract the first word of "ldconfig", so it can be a program name with args.
4658 set dummy ldconfig; ac_word=$2
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4660 $as_echo_n "checking for $ac_word... " >&6; }
4661 if ${ac_cv_path_LDCONFIG+:} false; then :
4662   $as_echo_n "(cached) " >&6
4663 else
4664   case $LDCONFIG in
4665   [\\/]* | ?:[\\/]*)
4666   ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
4667   ;;
4668   *)
4669   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4670 for as_dir in /sbin /usr/sbin $PATH
4671 do
4672   IFS=$as_save_IFS
4673   test -z "$as_dir" && as_dir=.
4674     for ac_exec_ext in '' $ac_executable_extensions; do
4675   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4676     ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
4677     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4678     break 2
4679   fi
4680 done
4681   done
4682 IFS=$as_save_IFS
4683
4684   test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
4685   ;;
4686 esac
4687 fi
4688 LDCONFIG=$ac_cv_path_LDCONFIG
4689 if test -n "$LDCONFIG"; then
4690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
4691 $as_echo "$LDCONFIG" >&6; }
4692 else
4693   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4694 $as_echo "no" >&6; }
4695 fi
4696
4697
4698 # Find a good install program.  We prefer a C program (faster),
4699 # so one script is as good as another.  But avoid the broken or
4700 # incompatible versions:
4701 # SysV /etc/install, /usr/sbin/install
4702 # SunOS /usr/etc/install
4703 # IRIX /sbin/install
4704 # AIX /bin/install
4705 # AmigaOS /C/install, which installs bootblocks on floppy discs
4706 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4707 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4708 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4709 # OS/2's system install, which has a completely different semantic
4710 # ./install, which can be erroneously created by make from ./install.sh.
4711 # Reject install programs that cannot install multiple files.
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4713 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4714 if test -z "$INSTALL"; then
4715 if ${ac_cv_path_install+:} false; then :
4716   $as_echo_n "(cached) " >&6
4717 else
4718   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4719 for as_dir in $PATH
4720 do
4721   IFS=$as_save_IFS
4722   test -z "$as_dir" && as_dir=.
4723     # Account for people who put trailing slashes in PATH elements.
4724 case $as_dir/ in #((
4725   ./ | .// | /[cC]/* | \
4726   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4727   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4728   /usr/ucb/* ) ;;
4729   *)
4730     # OSF1 and SCO ODT 3.0 have their own names for install.
4731     # Don't use installbsd from OSF since it installs stuff as root
4732     # by default.
4733     for ac_prog in ginstall scoinst install; do
4734       for ac_exec_ext in '' $ac_executable_extensions; do
4735         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4736           if test $ac_prog = install &&
4737             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4738             # AIX install.  It has an incompatible calling convention.
4739             :
4740           elif test $ac_prog = install &&
4741             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4742             # program-specific install script used by HP pwplus--don't use.
4743             :
4744           else
4745             rm -rf conftest.one conftest.two conftest.dir
4746             echo one > conftest.one
4747             echo two > conftest.two
4748             mkdir conftest.dir
4749             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4750               test -s conftest.one && test -s conftest.two &&
4751               test -s conftest.dir/conftest.one &&
4752               test -s conftest.dir/conftest.two
4753             then
4754               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4755               break 3
4756             fi
4757           fi
4758         fi
4759       done
4760     done
4761     ;;
4762 esac
4763
4764   done
4765 IFS=$as_save_IFS
4766
4767 rm -rf conftest.one conftest.two conftest.dir
4768
4769 fi
4770   if test "${ac_cv_path_install+set}" = set; then
4771     INSTALL=$ac_cv_path_install
4772   else
4773     # As a last resort, use the slow shell script.  Don't cache a
4774     # value for INSTALL within a source directory, because that will
4775     # break other packages using the cache if that directory is
4776     # removed, or if the value is a relative name.
4777     INSTALL=$ac_install_sh
4778   fi
4779 fi
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4781 $as_echo "$INSTALL" >&6; }
4782
4783 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4784 # It thinks the first close brace ends the variable substitution.
4785 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4786
4787 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4788
4789 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4790
4791 case "$INSTALL" in
4792   [\\/$]* | ?:[\\/]* ) ;;
4793   *)  INSTALL="\\\$(top_srcdir)/$INSTALL" ;;
4794 esac
4795
4796 for ac_prog in lclint lint
4797 do
4798   # Extract the first word of "$ac_prog", so it can be a program name with args.
4799 set dummy $ac_prog; ac_word=$2
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4801 $as_echo_n "checking for $ac_word... " >&6; }
4802 if ${ac_cv_prog_LINT+:} false; then :
4803   $as_echo_n "(cached) " >&6
4804 else
4805   if test -n "$LINT"; then
4806   ac_cv_prog_LINT="$LINT" # Let the user override the test.
4807 else
4808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4809 for as_dir in $PATH
4810 do
4811   IFS=$as_save_IFS
4812   test -z "$as_dir" && as_dir=.
4813     for ac_exec_ext in '' $ac_executable_extensions; do
4814   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4815     ac_cv_prog_LINT="$ac_prog"
4816     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4817     break 2
4818   fi
4819 done
4820   done
4821 IFS=$as_save_IFS
4822
4823 fi
4824 fi
4825 LINT=$ac_cv_prog_LINT
4826 if test -n "$LINT"; then
4827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
4828 $as_echo "$LINT" >&6; }
4829 else
4830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4831 $as_echo "no" >&6; }
4832 fi
4833
4834
4835   test -n "$LINT" && break
4836 done
4837
4838 if test "$LINT" = "lint"
4839 then
4840   LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
4841   fi
4842
4843
4844 for ac_prog in fontforge
4845 do
4846   # Extract the first word of "$ac_prog", so it can be a program name with args.
4847 set dummy $ac_prog; ac_word=$2
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4849 $as_echo_n "checking for $ac_word... " >&6; }
4850 if ${ac_cv_prog_FONTFORGE+:} false; then :
4851   $as_echo_n "(cached) " >&6
4852 else
4853   if test -n "$FONTFORGE"; then
4854   ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
4855 else
4856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4857 for as_dir in $PATH
4858 do
4859   IFS=$as_save_IFS
4860   test -z "$as_dir" && as_dir=.
4861     for ac_exec_ext in '' $ac_executable_extensions; do
4862   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4863     ac_cv_prog_FONTFORGE="$ac_prog"
4864     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4865     break 2
4866   fi
4867 done
4868   done
4869 IFS=$as_save_IFS
4870
4871 fi
4872 fi
4873 FONTFORGE=$ac_cv_prog_FONTFORGE
4874 if test -n "$FONTFORGE"; then
4875   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTFORGE" >&5
4876 $as_echo "$FONTFORGE" >&6; }
4877 else
4878   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4879 $as_echo "no" >&6; }
4880 fi
4881
4882
4883   test -n "$FONTFORGE" && break
4884 done
4885 test -n "$FONTFORGE" || FONTFORGE="false"
4886
4887 for ac_prog in pkg-config
4888 do
4889   # Extract the first word of "$ac_prog", so it can be a program name with args.
4890 set dummy $ac_prog; ac_word=$2
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4892 $as_echo_n "checking for $ac_word... " >&6; }
4893 if ${ac_cv_prog_PKG_CONFIG+:} false; then :
4894   $as_echo_n "(cached) " >&6
4895 else
4896   if test -n "$PKG_CONFIG"; then
4897   ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
4898 else
4899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4900 for as_dir in $PATH
4901 do
4902   IFS=$as_save_IFS
4903   test -z "$as_dir" && as_dir=.
4904     for ac_exec_ext in '' $ac_executable_extensions; do
4905   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4906     ac_cv_prog_PKG_CONFIG="$ac_prog"
4907     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4908     break 2
4909   fi
4910 done
4911   done
4912 IFS=$as_save_IFS
4913
4914 fi
4915 fi
4916 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
4917 if test -n "$PKG_CONFIG"; then
4918   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4919 $as_echo "$PKG_CONFIG" >&6; }
4920 else
4921   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4922 $as_echo "no" >&6; }
4923 fi
4924
4925
4926   test -n "$PKG_CONFIG" && break
4927 done
4928 test -n "$PKG_CONFIG" || PKG_CONFIG="false"
4929
4930 for ac_prog in rsvg
4931 do
4932   # Extract the first word of "$ac_prog", so it can be a program name with args.
4933 set dummy $ac_prog; ac_word=$2
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4935 $as_echo_n "checking for $ac_word... " >&6; }
4936 if ${ac_cv_prog_RSVG+:} false; then :
4937   $as_echo_n "(cached) " >&6
4938 else
4939   if test -n "$RSVG"; then
4940   ac_cv_prog_RSVG="$RSVG" # Let the user override the test.
4941 else
4942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4943 for as_dir in $PATH
4944 do
4945   IFS=$as_save_IFS
4946   test -z "$as_dir" && as_dir=.
4947     for ac_exec_ext in '' $ac_executable_extensions; do
4948   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4949     ac_cv_prog_RSVG="$ac_prog"
4950     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4951     break 2
4952   fi
4953 done
4954   done
4955 IFS=$as_save_IFS
4956
4957 fi
4958 fi
4959 RSVG=$ac_cv_prog_RSVG
4960 if test -n "$RSVG"; then
4961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG" >&5
4962 $as_echo "$RSVG" >&6; }
4963 else
4964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4965 $as_echo "no" >&6; }
4966 fi
4967
4968
4969   test -n "$RSVG" && break
4970 done
4971 test -n "$RSVG" || RSVG="false"
4972
4973 for ac_prog in convert
4974 do
4975   # Extract the first word of "$ac_prog", so it can be a program name with args.
4976 set dummy $ac_prog; ac_word=$2
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4978 $as_echo_n "checking for $ac_word... " >&6; }
4979 if ${ac_cv_prog_CONVERT+:} false; then :
4980   $as_echo_n "(cached) " >&6
4981 else
4982   if test -n "$CONVERT"; then
4983   ac_cv_prog_CONVERT="$CONVERT" # Let the user override the test.
4984 else
4985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4986 for as_dir in $PATH
4987 do
4988   IFS=$as_save_IFS
4989   test -z "$as_dir" && as_dir=.
4990     for ac_exec_ext in '' $ac_executable_extensions; do
4991   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4992     ac_cv_prog_CONVERT="$ac_prog"
4993     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4994     break 2
4995   fi
4996 done
4997   done
4998 IFS=$as_save_IFS
4999
5000 fi
5001 fi
5002 CONVERT=$ac_cv_prog_CONVERT
5003 if test -n "$CONVERT"; then
5004   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONVERT" >&5
5005 $as_echo "$CONVERT" >&6; }
5006 else
5007   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5008 $as_echo "no" >&6; }
5009 fi
5010
5011
5012   test -n "$CONVERT" && break
5013 done
5014 test -n "$CONVERT" || CONVERT="false"
5015
5016 for ac_prog in icotool
5017 do
5018   # Extract the first word of "$ac_prog", so it can be a program name with args.
5019 set dummy $ac_prog; ac_word=$2
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5021 $as_echo_n "checking for $ac_word... " >&6; }
5022 if ${ac_cv_prog_ICOTOOL+:} false; then :
5023   $as_echo_n "(cached) " >&6
5024 else
5025   if test -n "$ICOTOOL"; then
5026   ac_cv_prog_ICOTOOL="$ICOTOOL" # Let the user override the test.
5027 else
5028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5029 for as_dir in $PATH
5030 do
5031   IFS=$as_save_IFS
5032   test -z "$as_dir" && as_dir=.
5033     for ac_exec_ext in '' $ac_executable_extensions; do
5034   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5035     ac_cv_prog_ICOTOOL="$ac_prog"
5036     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5037     break 2
5038   fi
5039 done
5040   done
5041 IFS=$as_save_IFS
5042
5043 fi
5044 fi
5045 ICOTOOL=$ac_cv_prog_ICOTOOL
5046 if test -n "$ICOTOOL"; then
5047   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICOTOOL" >&5
5048 $as_echo "$ICOTOOL" >&6; }
5049 else
5050   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5051 $as_echo "no" >&6; }
5052 fi
5053
5054
5055   test -n "$ICOTOOL" && break
5056 done
5057 test -n "$ICOTOOL" || ICOTOOL="false"
5058
5059 for ac_prog in msgfmt
5060 do
5061   # Extract the first word of "$ac_prog", so it can be a program name with args.
5062 set dummy $ac_prog; ac_word=$2
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5064 $as_echo_n "checking for $ac_word... " >&6; }
5065 if ${ac_cv_prog_MSGFMT+:} false; then :
5066   $as_echo_n "(cached) " >&6
5067 else
5068   if test -n "$MSGFMT"; then
5069   ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
5070 else
5071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5072 for as_dir in $PATH
5073 do
5074   IFS=$as_save_IFS
5075   test -z "$as_dir" && as_dir=.
5076     for ac_exec_ext in '' $ac_executable_extensions; do
5077   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5078     ac_cv_prog_MSGFMT="$ac_prog"
5079     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5080     break 2
5081   fi
5082 done
5083   done
5084 IFS=$as_save_IFS
5085
5086 fi
5087 fi
5088 MSGFMT=$ac_cv_prog_MSGFMT
5089 if test -n "$MSGFMT"; then
5090   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5091 $as_echo "$MSGFMT" >&6; }
5092 else
5093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5094 $as_echo "no" >&6; }
5095 fi
5096
5097
5098   test -n "$MSGFMT" && break
5099 done
5100 test -n "$MSGFMT" || MSGFMT="false"
5101
5102
5103 if test "x$enable_maintainer_mode" != "xyes"
5104 then
5105   MAINTAINER_MODE=\#
5106
5107 else
5108   if test "$FONTFORGE" = "false"; then as_fn_error $? "You need fontforge to rebuild fonts in maintainer mode." "$LINENO" 5; fi
5109   if test "$RSVG" = "false"; then as_fn_error $? "You need rsvg to rebuild icons in maintainer mode." "$LINENO" 5; fi
5110
5111     if test "$CONVERT" = false
5112   then
5113     as_fn_error $? "You need imagemagick to rebuild icons in maintainer mode." "$LINENO" 5
5114   else
5115     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough imagemagick" >&5
5116 $as_echo_n "checking for recent enough imagemagick... " >&6; }
5117     convert_version=`convert --version | head -n1`
5118     if test "x$convert_version" != "x"
5119     then
5120       convert_version_major=`expr "$convert_version" : '.* \([0-9]*\)\.[0-9]*'`
5121       convert_version_minor=`expr "$convert_version" : '.* [0-9]*\.\([0-9]*\)'`
5122       if test "$convert_version_major" -eq 6 -a "$convert_version_minor" -lt 6
5123       then
5124         CONVERT=false
5125       fi
5126     fi
5127     if test "$CONVERT" = false
5128     then
5129       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($convert_version_major.$convert_version_minor)" >&5
5130 $as_echo "no ($convert_version_major.$convert_version_minor)" >&6; }
5131       as_fn_error $? "You need imagemagick version 6.6 or newer to rebuild icons in maintainer mode." "$LINENO" 5
5132     else
5133       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($convert_version_major.$convert_version_minor)" >&5
5134 $as_echo "yes ($convert_version_major.$convert_version_minor)" >&6; }
5135     fi
5136   fi
5137
5138     if test "$ICOTOOL" = false
5139   then
5140     as_fn_error $? "You need icotool to rebuild icons in maintainer mode." "$LINENO" 5
5141   else
5142     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough icotool" >&5
5143 $as_echo_n "checking for recent enough icotool... " >&6; }
5144     icotool_version=`icotool --version | head -n1`
5145     if test "x$icotool_version" != "x"
5146     then
5147       icotool_version_major=`expr "$icotool_version" : '.* \([0-9]*\)\.[0-9]*'`
5148       icotool_version_minor=`expr "$icotool_version" : '.* [0-9]*\.\([0-9]*\)'`
5149       if test "$icotool_version_major" -eq 0 -a "$icotool_version_minor" -lt 29
5150       then
5151         ICOTOOL=false
5152         as_fn_append wine_warnings "|icotool version 0.29.0 or newer is needed to rebuild icons."
5153       fi
5154     fi
5155     if test "$ICOTOOL" = false
5156     then
5157       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($icotool_version_major.$icotool_version_minor)" >&5
5158 $as_echo "no ($icotool_version_major.$icotool_version_minor)" >&6; }
5159       as_fn_error $? "You need icotool version 0.29.0 or newer to rebuild icons in maintainer mode." "$LINENO" 5
5160     else
5161       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($icotool_version_major.$icotool_version_minor)" >&5
5162 $as_echo "yes ($icotool_version_major.$icotool_version_minor)" >&6; }
5163     fi
5164   fi
5165
5166     with_gettext=yes
5167   with_gettextpo=yes
5168   { ac_cv_header_gettext_po_h=; unset ac_cv_header_gettext_po_h;}
5169 fi
5170
5171 test "x$with_gettext" != xno || MSGFMT=false
5172 if test "$MSGFMT" != "false"
5173 then
5174   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether msgfmt supports contexts" >&5
5175 $as_echo_n "checking whether msgfmt supports contexts... " >&6; }
5176   cat >conftest.po <<EOF
5177 # comment
5178 msgctxt "ctxt"
5179 msgid "id"
5180 msgstr "str"
5181 EOF
5182   if $MSGFMT -o /dev/null conftest.po 2>&5
5183   then
5184     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5185 $as_echo "yes" >&6; }
5186   else
5187     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5188 $as_echo "no" >&6; }
5189     MSGFMT=false
5190   fi
5191 fi
5192 if test "$MSGFMT" = false; then :
5193   case "x$with_gettext" in
5194   x)   as_fn_append wine_warnings "|gettext tools not found (or too old), translations won't be built." ;;
5195   xno) ;;
5196   *)   as_fn_error $? "gettext tools not found (or too old), translations won't be built.
5197 This is an error since --with-gettext was requested." "$LINENO" 5 ;;
5198 esac
5199 fi
5200
5201
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for i386_set_ldt in -li386" >&5
5203 $as_echo_n "checking for i386_set_ldt in -li386... " >&6; }
5204 if ${ac_cv_lib_i386_i386_set_ldt+:} false; then :
5205   $as_echo_n "(cached) " >&6
5206 else
5207   ac_check_lib_save_LIBS=$LIBS
5208 LIBS="-li386  $LIBS"
5209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5210 /* end confdefs.h.  */
5211
5212 /* Override any GCC internal prototype to avoid an error.
5213    Use char because int might match the return type of a GCC
5214    builtin and then its argument prototype would still apply.  */
5215 #ifdef __cplusplus
5216 extern "C"
5217 #endif
5218 char i386_set_ldt ();
5219 int
5220 main ()
5221 {
5222 return i386_set_ldt ();
5223   ;
5224   return 0;
5225 }
5226 _ACEOF
5227 if ac_fn_c_try_link "$LINENO"; then :
5228   ac_cv_lib_i386_i386_set_ldt=yes
5229 else
5230   ac_cv_lib_i386_i386_set_ldt=no
5231 fi
5232 rm -f core conftest.err conftest.$ac_objext \
5233     conftest$ac_exeext conftest.$ac_ext
5234 LIBS=$ac_check_lib_save_LIBS
5235 fi
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_i386_i386_set_ldt" >&5
5237 $as_echo "$ac_cv_lib_i386_i386_set_ldt" >&6; }
5238 if test "x$ac_cv_lib_i386_i386_set_ldt" = xyes; then :
5239   cat >>confdefs.h <<_ACEOF
5240 #define HAVE_LIBI386 1
5241 _ACEOF
5242
5243   LIBS="-li386 $LIBS"
5244
5245 fi
5246
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
5248 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
5249 if ${ac_cv_lib_ossaudio__oss_ioctl+:} false; then :
5250   $as_echo_n "(cached) " >&6
5251 else
5252   ac_check_lib_save_LIBS=$LIBS
5253 LIBS="-lossaudio  $LIBS"
5254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5255 /* end confdefs.h.  */
5256
5257 /* Override any GCC internal prototype to avoid an error.
5258    Use char because int might match the return type of a GCC
5259    builtin and then its argument prototype would still apply.  */
5260 #ifdef __cplusplus
5261 extern "C"
5262 #endif
5263 char _oss_ioctl ();
5264 int
5265 main ()
5266 {
5267 return _oss_ioctl ();
5268   ;
5269   return 0;
5270 }
5271 _ACEOF
5272 if ac_fn_c_try_link "$LINENO"; then :
5273   ac_cv_lib_ossaudio__oss_ioctl=yes
5274 else
5275   ac_cv_lib_ossaudio__oss_ioctl=no
5276 fi
5277 rm -f core conftest.err conftest.$ac_objext \
5278     conftest$ac_exeext conftest.$ac_ext
5279 LIBS=$ac_check_lib_save_LIBS
5280 fi
5281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5282 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
5283 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = xyes; then :
5284   cat >>confdefs.h <<_ACEOF
5285 #define HAVE_LIBOSSAUDIO 1
5286 _ACEOF
5287
5288   LIBS="-lossaudio $LIBS"
5289
5290 fi
5291
5292
5293 XLIB=""
5294
5295 OPENGL_LIBS=""
5296
5297
5298
5299 test "x$with_fontconfig" != "xno" || ac_cv_header_fontconfig_fontconfig_h=no
5300
5301 # Check whether --enable-largefile was given.
5302 if test "${enable_largefile+set}" = set; then :
5303   enableval=$enable_largefile;
5304 fi
5305
5306 if test "$enable_largefile" != no; then
5307
5308   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5309 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5310 if ${ac_cv_sys_largefile_CC+:} false; then :
5311   $as_echo_n "(cached) " >&6
5312 else
5313   ac_cv_sys_largefile_CC=no
5314      if test "$GCC" != yes; then
5315        ac_save_CC=$CC
5316        while :; do
5317          # IRIX 6.2 and later do not support large files by default,
5318          # so use the C compiler's -n32 option if that helps.
5319          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5320 /* end confdefs.h.  */
5321 #include <sys/types.h>
5322  /* Check that off_t can represent 2**63 - 1 correctly.
5323     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5324     since some C++ compilers masquerading as C compilers
5325     incorrectly reject 9223372036854775807.  */
5326 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5327   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5328                        && LARGE_OFF_T % 2147483647 == 1)
5329                       ? 1 : -1];
5330 int
5331 main ()
5332 {
5333
5334   ;
5335   return 0;
5336 }
5337 _ACEOF
5338          if ac_fn_c_try_compile "$LINENO"; then :
5339   break
5340 fi
5341 rm -f core conftest.err conftest.$ac_objext
5342          CC="$CC -n32"
5343          if ac_fn_c_try_compile "$LINENO"; then :
5344   ac_cv_sys_largefile_CC=' -n32'; break
5345 fi
5346 rm -f core conftest.err conftest.$ac_objext
5347          break
5348        done
5349        CC=$ac_save_CC
5350        rm -f conftest.$ac_ext
5351     fi
5352 fi
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5354 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5355   if test "$ac_cv_sys_largefile_CC" != no; then
5356     CC=$CC$ac_cv_sys_largefile_CC
5357   fi
5358
5359   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5360 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5361 if ${ac_cv_sys_file_offset_bits+:} false; then :
5362   $as_echo_n "(cached) " >&6
5363 else
5364   while :; do
5365   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5366 /* end confdefs.h.  */
5367 #include <sys/types.h>
5368  /* Check that off_t can represent 2**63 - 1 correctly.
5369     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5370     since some C++ compilers masquerading as C compilers
5371     incorrectly reject 9223372036854775807.  */
5372 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5373   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5374                        && LARGE_OFF_T % 2147483647 == 1)
5375                       ? 1 : -1];
5376 int
5377 main ()
5378 {
5379
5380   ;
5381   return 0;
5382 }
5383 _ACEOF
5384 if ac_fn_c_try_compile "$LINENO"; then :
5385   ac_cv_sys_file_offset_bits=no; break
5386 fi
5387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5388   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5389 /* end confdefs.h.  */
5390 #define _FILE_OFFSET_BITS 64
5391 #include <sys/types.h>
5392  /* Check that off_t can represent 2**63 - 1 correctly.
5393     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5394     since some C++ compilers masquerading as C compilers
5395     incorrectly reject 9223372036854775807.  */
5396 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5397   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5398                        && LARGE_OFF_T % 2147483647 == 1)
5399                       ? 1 : -1];
5400 int
5401 main ()
5402 {
5403
5404   ;
5405   return 0;
5406 }
5407 _ACEOF
5408 if ac_fn_c_try_compile "$LINENO"; then :
5409   ac_cv_sys_file_offset_bits=64; break
5410 fi
5411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5412   ac_cv_sys_file_offset_bits=unknown
5413   break
5414 done
5415 fi
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5417 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5418 case $ac_cv_sys_file_offset_bits in #(
5419   no | unknown) ;;
5420   *)
5421 cat >>confdefs.h <<_ACEOF
5422 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5423 _ACEOF
5424 ;;
5425 esac
5426 rm -rf conftest*
5427   if test $ac_cv_sys_file_offset_bits = unknown; then
5428     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5429 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5430 if ${ac_cv_sys_large_files+:} false; then :
5431   $as_echo_n "(cached) " >&6
5432 else
5433   while :; do
5434   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5435 /* end confdefs.h.  */
5436 #include <sys/types.h>
5437  /* Check that off_t can represent 2**63 - 1 correctly.
5438     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5439     since some C++ compilers masquerading as C compilers
5440     incorrectly reject 9223372036854775807.  */
5441 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5442   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5443                        && LARGE_OFF_T % 2147483647 == 1)
5444                       ? 1 : -1];
5445 int
5446 main ()
5447 {
5448
5449   ;
5450   return 0;
5451 }
5452 _ACEOF
5453 if ac_fn_c_try_compile "$LINENO"; then :
5454   ac_cv_sys_large_files=no; break
5455 fi
5456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5457   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5458 /* end confdefs.h.  */
5459 #define _LARGE_FILES 1
5460 #include <sys/types.h>
5461  /* Check that off_t can represent 2**63 - 1 correctly.
5462     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5463     since some C++ compilers masquerading as C compilers
5464     incorrectly reject 9223372036854775807.  */
5465 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5466   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5467                        && LARGE_OFF_T % 2147483647 == 1)
5468                       ? 1 : -1];
5469 int
5470 main ()
5471 {
5472
5473   ;
5474   return 0;
5475 }
5476 _ACEOF
5477 if ac_fn_c_try_compile "$LINENO"; then :
5478   ac_cv_sys_large_files=1; break
5479 fi
5480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5481   ac_cv_sys_large_files=unknown
5482   break
5483 done
5484 fi
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5486 $as_echo "$ac_cv_sys_large_files" >&6; }
5487 case $ac_cv_sys_large_files in #(
5488   no | unknown) ;;
5489   *)
5490 cat >>confdefs.h <<_ACEOF
5491 #define _LARGE_FILES $ac_cv_sys_large_files
5492 _ACEOF
5493 ;;
5494 esac
5495 rm -rf conftest*
5496   fi
5497
5498
5499 fi
5500
5501
5502 ac_ext=c
5503 ac_cpp='$CPP $CPPFLAGS'
5504 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5505 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5506 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5508 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5509 # On Suns, sometimes $CPP names a directory.
5510 if test -n "$CPP" && test -d "$CPP"; then
5511   CPP=
5512 fi
5513 if test -z "$CPP"; then
5514   if ${ac_cv_prog_CPP+:} false; then :
5515   $as_echo_n "(cached) " >&6
5516 else
5517       # Double quotes because CPP needs to be expanded
5518     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5519     do
5520       ac_preproc_ok=false
5521 for ac_c_preproc_warn_flag in '' yes
5522 do
5523   # Use a header file that comes with gcc, so configuring glibc
5524   # with a fresh cross-compiler works.
5525   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5526   # <limits.h> exists even on freestanding compilers.
5527   # On the NeXT, cc -E runs the code through the compiler's parser,
5528   # not just through cpp. "Syntax error" is here to catch this case.
5529   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5530 /* end confdefs.h.  */
5531 #ifdef __STDC__
5532 # include <limits.h>
5533 #else
5534 # include <assert.h>
5535 #endif
5536                      Syntax error
5537 _ACEOF
5538 if ac_fn_c_try_cpp "$LINENO"; then :
5539
5540 else
5541   # Broken: fails on valid input.
5542 continue
5543 fi
5544 rm -f conftest.err conftest.i conftest.$ac_ext
5545
5546   # OK, works on sane cases.  Now check whether nonexistent headers
5547   # can be detected and how.
5548   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5549 /* end confdefs.h.  */
5550 #include <ac_nonexistent.h>
5551 _ACEOF
5552 if ac_fn_c_try_cpp "$LINENO"; then :
5553   # Broken: success on invalid input.
5554 continue
5555 else
5556   # Passes both tests.
5557 ac_preproc_ok=:
5558 break
5559 fi
5560 rm -f conftest.err conftest.i conftest.$ac_ext
5561
5562 done
5563 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5564 rm -f conftest.i conftest.err conftest.$ac_ext
5565 if $ac_preproc_ok; then :
5566   break
5567 fi
5568
5569     done
5570     ac_cv_prog_CPP=$CPP
5571
5572 fi
5573   CPP=$ac_cv_prog_CPP
5574 else
5575   ac_cv_prog_CPP=$CPP
5576 fi
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5578 $as_echo "$CPP" >&6; }
5579 ac_preproc_ok=false
5580 for ac_c_preproc_warn_flag in '' yes
5581 do
5582   # Use a header file that comes with gcc, so configuring glibc
5583   # with a fresh cross-compiler works.
5584   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5585   # <limits.h> exists even on freestanding compilers.
5586   # On the NeXT, cc -E runs the code through the compiler's parser,
5587   # not just through cpp. "Syntax error" is here to catch this case.
5588   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5589 /* end confdefs.h.  */
5590 #ifdef __STDC__
5591 # include <limits.h>
5592 #else
5593 # include <assert.h>
5594 #endif
5595                      Syntax error
5596 _ACEOF
5597 if ac_fn_c_try_cpp "$LINENO"; then :
5598
5599 else
5600   # Broken: fails on valid input.
5601 continue
5602 fi
5603 rm -f conftest.err conftest.i conftest.$ac_ext
5604
5605   # OK, works on sane cases.  Now check whether nonexistent headers
5606   # can be detected and how.
5607   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5608 /* end confdefs.h.  */
5609 #include <ac_nonexistent.h>
5610 _ACEOF
5611 if ac_fn_c_try_cpp "$LINENO"; then :
5612   # Broken: success on invalid input.
5613 continue
5614 else
5615   # Passes both tests.
5616 ac_preproc_ok=:
5617 break
5618 fi
5619 rm -f conftest.err conftest.i conftest.$ac_ext
5620
5621 done
5622 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5623 rm -f conftest.i conftest.err conftest.$ac_ext
5624 if $ac_preproc_ok; then :
5625
5626 else
5627   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5628 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5629 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5630 See \`config.log' for more details" "$LINENO" 5; }
5631 fi
5632
5633 ac_ext=c
5634 ac_cpp='$CPP $CPPFLAGS'
5635 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5636 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5637 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5638
5639
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5641 $as_echo_n "checking for ANSI C header files... " >&6; }
5642 if ${ac_cv_header_stdc+:} false; then :
5643   $as_echo_n "(cached) " >&6
5644 else
5645   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5646 /* end confdefs.h.  */
5647 #include <stdlib.h>
5648 #include <stdarg.h>
5649 #include <string.h>
5650 #include <float.h>
5651
5652 int
5653 main ()
5654 {
5655
5656   ;
5657   return 0;
5658 }
5659 _ACEOF
5660 if ac_fn_c_try_compile "$LINENO"; then :
5661   ac_cv_header_stdc=yes
5662 else
5663   ac_cv_header_stdc=no
5664 fi
5665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5666
5667 if test $ac_cv_header_stdc = yes; then
5668   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5669   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5670 /* end confdefs.h.  */
5671 #include <string.h>
5672
5673 _ACEOF
5674 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5675   $EGREP "memchr" >/dev/null 2>&1; then :
5676
5677 else
5678   ac_cv_header_stdc=no
5679 fi
5680 rm -f conftest*
5681
5682 fi
5683
5684 if test $ac_cv_header_stdc = yes; then
5685   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5686   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5687 /* end confdefs.h.  */
5688 #include <stdlib.h>
5689
5690 _ACEOF
5691 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5692   $EGREP "free" >/dev/null 2>&1; then :
5693
5694 else
5695   ac_cv_header_stdc=no
5696 fi
5697 rm -f conftest*
5698
5699 fi
5700
5701 if test $ac_cv_header_stdc = yes; then
5702   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5703   if test "$cross_compiling" = yes; then :
5704   :
5705 else
5706   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5707 /* end confdefs.h.  */
5708 #include <ctype.h>
5709 #include <stdlib.h>
5710 #if ((' ' & 0x0FF) == 0x020)
5711 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5712 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5713 #else
5714 # define ISLOWER(c) \
5715                    (('a' <= (c) && (c) <= 'i') \
5716                      || ('j' <= (c) && (c) <= 'r') \
5717                      || ('s' <= (c) && (c) <= 'z'))
5718 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5719 #endif
5720
5721 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5722 int
5723 main ()
5724 {
5725   int i;
5726   for (i = 0; i < 256; i++)
5727     if (XOR (islower (i), ISLOWER (i))
5728         || toupper (i) != TOUPPER (i))
5729       return 2;
5730   return 0;
5731 }
5732 _ACEOF
5733 if ac_fn_c_try_run "$LINENO"; then :
5734
5735 else
5736   ac_cv_header_stdc=no
5737 fi
5738 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5739   conftest.$ac_objext conftest.beam conftest.$ac_ext
5740 fi
5741
5742 fi
5743 fi
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5745 $as_echo "$ac_cv_header_stdc" >&6; }
5746 if test $ac_cv_header_stdc = yes; then
5747
5748 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5749
5750 fi
5751
5752 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5753 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5754                   inttypes.h stdint.h unistd.h
5755 do :
5756   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5757 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5758 "
5759 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5760   cat >>confdefs.h <<_ACEOF
5761 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5762 _ACEOF
5763
5764 fi
5765
5766 done
5767
5768
5769 for ac_header in \
5770         AL/al.h \
5771         ApplicationServices/ApplicationServices.h \
5772         AudioToolbox/AudioConverter.h \
5773         AudioUnit/AudioUnit.h \
5774         AudioUnit/AudioComponent.h \
5775         CL/cl.h \
5776         Carbon/Carbon.h \
5777         CoreAudio/CoreAudio.h \
5778         CoreServices/CoreServices.h \
5779         DiskArbitration/DiskArbitration.h \
5780         IOKit/IOKitLib.h \
5781         IOKit/hid/IOHIDLib.h \
5782         OpenAL/al.h \
5783         OpenCL/opencl.h \
5784         QuickTime/ImageCompression.h \
5785         Security/Security.h \
5786         alias.h \
5787         alsa/asoundlib.h \
5788         arpa/inet.h \
5789         arpa/nameser.h \
5790         asm/types.h \
5791         capi20.h \
5792         curses.h \
5793         direct.h \
5794         dirent.h \
5795         dlfcn.h \
5796         elf.h \
5797         float.h \
5798         fnmatch.h \
5799         fontconfig/fontconfig.h \
5800         getopt.h \
5801         gettext-po.h \
5802         grp.h \
5803         gsm.h \
5804         gsm/gsm.h \
5805         ieeefp.h \
5806         inet/mib2.h \
5807         io.h \
5808         jpeglib.h \
5809         kstat.h \
5810         lber.h \
5811         lcms.h \
5812         lcms/lcms.h \
5813         ldap.h \
5814         link.h \
5815         linux/cdrom.h \
5816         linux/compiler.h \
5817         linux/hdreg.h \
5818         linux/input.h \
5819         linux/ioctl.h \
5820         linux/joystick.h \
5821         linux/major.h \
5822         linux/param.h \
5823         linux/serial.h \
5824         linux/types.h \
5825         linux/ucdrom.h \
5826         mach-o/nlist.h \
5827         mach-o/loader.h \
5828         mach/mach.h \
5829         mach/machine.h \
5830         machine/cpu.h \
5831         machine/limits.h \
5832         machine/sysarch.h \
5833         mntent.h \
5834         mpg123.h \
5835         ncurses.h \
5836         netdb.h \
5837         netinet/in.h \
5838         netinet/in_systm.h \
5839         netinet/tcp.h \
5840         netinet/tcp_fsm.h \
5841         openssl/err.h \
5842         openssl/ssl.h \
5843         png.h \
5844         poll.h \
5845         port.h \
5846         process.h \
5847         pthread.h \
5848         pwd.h \
5849         sched.h \
5850         scsi/scsi.h \
5851         scsi/scsi_ioctl.h \
5852         scsi/sg.h \
5853         stdbool.h \
5854         stdint.h \
5855         strings.h \
5856         stropts.h \
5857         sys/asoundlib.h \
5858         sys/attr.h \
5859         sys/cdio.h \
5860         sys/elf32.h \
5861         sys/epoll.h \
5862         sys/event.h \
5863         sys/exec_elf.h \
5864         sys/filio.h \
5865         sys/inotify.h \
5866         sys/ioctl.h \
5867         sys/ipc.h \
5868         sys/limits.h \
5869         sys/link.h \
5870         sys/mman.h \
5871         sys/modem.h \
5872         sys/msg.h \
5873         sys/mtio.h \
5874         sys/param.h \
5875         sys/poll.h \
5876         sys/prctl.h \
5877         sys/protosw.h \
5878         sys/ptrace.h \
5879         sys/resource.h \
5880         sys/scsiio.h \
5881         sys/shm.h \
5882         sys/signal.h \
5883         sys/socket.h \
5884         sys/socketvar.h \
5885         sys/sockio.h \
5886         sys/statvfs.h \
5887         sys/strtio.h \
5888         sys/syscall.h \
5889         sys/tihdr.h \
5890         sys/time.h \
5891         sys/timeout.h \
5892         sys/times.h \
5893         sys/uio.h \
5894         sys/un.h \
5895         sys/utsname.h \
5896         sys/vm86.h \
5897         sys/wait.h \
5898         syscall.h \
5899         termios.h \
5900         tiffio.h \
5901         unistd.h \
5902         utime.h \
5903         valgrind/memcheck.h \
5904         valgrind/valgrind.h \
5905         zlib.h
5906
5907 do :
5908   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5909 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5910 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5911   cat >>confdefs.h <<_ACEOF
5912 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5913 _ACEOF
5914
5915 fi
5916
5917 done
5918
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
5920 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
5921 if ${ac_cv_header_stat_broken+:} false; then :
5922   $as_echo_n "(cached) " >&6
5923 else
5924   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5925 /* end confdefs.h.  */
5926 #include <sys/types.h>
5927 #include <sys/stat.h>
5928
5929 #if defined S_ISBLK && defined S_IFDIR
5930 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
5931 #endif
5932
5933 #if defined S_ISBLK && defined S_IFCHR
5934 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
5935 #endif
5936
5937 #if defined S_ISLNK && defined S_IFREG
5938 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
5939 #endif
5940
5941 #if defined S_ISSOCK && defined S_IFREG
5942 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
5943 #endif
5944
5945 _ACEOF
5946 if ac_fn_c_try_compile "$LINENO"; then :
5947   ac_cv_header_stat_broken=no
5948 else
5949   ac_cv_header_stat_broken=yes
5950 fi
5951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5952 fi
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
5954 $as_echo "$ac_cv_header_stat_broken" >&6; }
5955 if test $ac_cv_header_stat_broken = yes; then
5956
5957 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
5958
5959 fi
5960
5961
5962
5963 for ac_header in sys/mount.h sys/statfs.h sys/sysctl.h sys/user.h sys/vfs.h
5964 do :
5965   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5966 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
5967      #ifdef HAVE_SYS_PARAM_H
5968      # include <sys/param.h>
5969      #endif
5970 "
5971 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5972   cat >>confdefs.h <<_ACEOF
5973 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5974 _ACEOF
5975
5976 fi
5977
5978 done
5979
5980
5981 for ac_header in \
5982         netinet/ip.h \
5983         net/if.h \
5984         net/if_arp.h \
5985         net/if_dl.h \
5986         net/if_types.h \
5987         net/route.h \
5988         netinet/if_ether.h \
5989         netinet/if_inarp.h \
5990         netinet/in_pcb.h \
5991         netinet/ip_icmp.h \
5992         netinet/ip_var.h \
5993         netinet/udp.h \
5994         netipx/ipx.h \
5995
5996 do :
5997   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5998 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
5999      #ifdef HAVE_SYS_SOCKET_H
6000      # include <sys/socket.h>
6001      #endif
6002      #ifdef HAVE_SYS_SOCKETVAR_H
6003      # include <sys/socketvar.h>
6004      #endif
6005      #ifdef HAVE_NET_ROUTE_H
6006      # include <net/route.h>
6007      #endif
6008      #ifdef HAVE_NETINET_IN_H
6009      # include <netinet/in.h>
6010      #endif
6011      #ifdef HAVE_NETINET_IN_SYSTM_H
6012      # include <netinet/in_systm.h>
6013      #endif
6014      #ifdef HAVE_NET_IF_H
6015      # include <net/if.h>
6016      #endif
6017      #ifdef HAVE_NETINET_IP_H
6018      # include <netinet/ip.h>
6019      #endif
6020 "
6021 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6022   cat >>confdefs.h <<_ACEOF
6023 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6024 _ACEOF
6025
6026 fi
6027
6028 done
6029
6030
6031 for ac_header in netinet/tcp_timer.h netinet/udp_var.h netinet/icmp_var.h netinet/tcp_var.h
6032 do :
6033   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6034 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6035      #ifdef HAVE_ALIAS_H
6036      # include <alias.h>
6037      #endif
6038      #ifdef HAVE_SYS_SOCKET_H
6039      # include <sys/socket.h>
6040      #endif
6041      #ifdef HAVE_SYS_SOCKETVAR_H
6042      # include <sys/socketvar.h>
6043      #endif
6044      #ifdef HAVE_SYS_TIMEOUT_H
6045      # include <sys/timeout.h>
6046      #endif
6047      #ifdef HAVE_NETINET_IN_H
6048      # include <netinet/in.h>
6049      #endif
6050      #ifdef HAVE_NETINET_IN_SYSTM_H
6051      # include <netinet/in_systm.h>
6052      #endif
6053      #ifdef HAVE_NETINET_IP_H
6054      # include <netinet/ip.h>
6055      #endif
6056      #ifdef HAVE_NETINET_IP_VAR_H
6057      # include <netinet/ip_var.h>
6058      #endif
6059      #ifdef HAVE_NETINET_IP_ICMP_H
6060      # include <netinet/ip_icmp.h>
6061      #endif
6062      #ifdef HAVE_NETINET_UDP_H
6063      # include <netinet/udp.h>
6064      #endif
6065      #ifdef HAVE_NETINET_TCP_H
6066      # include <netinet/tcp.h>
6067      #endif
6068      #ifdef HAVE_NETINET_TCP_TIMER_H
6069      #include <netinet/tcp_timer.h>
6070      #endif
6071 "
6072 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6073   cat >>confdefs.h <<_ACEOF
6074 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6075 _ACEOF
6076
6077 fi
6078
6079 done
6080
6081
6082 for ac_header in linux/ipx.h linux/irda.h
6083 do :
6084   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6085 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6086      #ifdef HAVE_ASM_TYPES_H
6087      # include <asm/types.h>
6088      #endif
6089      #ifdef HAVE_SYS_SOCKET_H
6090      # include <sys/socket.h>
6091      #endif
6092      #ifdef HAVE_LINUX_TYPES_H
6093      # include <linux/types.h>
6094      #endif
6095 "
6096 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6097   cat >>confdefs.h <<_ACEOF
6098 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6099 _ACEOF
6100
6101 fi
6102
6103 done
6104
6105
6106 for ac_header in mach-o/dyld_images.h
6107 do :
6108   ac_fn_c_check_header_compile "$LINENO" "mach-o/dyld_images.h" "ac_cv_header_mach_o_dyld_images_h" "#ifdef HAVE_STDBOOL_H
6109      # include <stdbool.h>
6110      #endif
6111      #ifdef HAVE_STDINT_H
6112      # include <stdint.h>
6113      #endif
6114 "
6115 if test "x$ac_cv_header_mach_o_dyld_images_h" = xyes; then :
6116   cat >>confdefs.h <<_ACEOF
6117 #define HAVE_MACH_O_DYLD_IMAGES_H 1
6118 _ACEOF
6119
6120 fi
6121
6122 done
6123
6124
6125 for ac_header in resolv.h
6126 do :
6127   ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "#include <sys/types.h>
6128      #ifdef HAVE_SYS_SOCKET_H
6129      # include <sys/socket.h>
6130      #endif
6131      #ifdef HAVE_NETINET_IN_H
6132      # include <netinet/in.h>
6133      #endif
6134      #ifdef HAVE_ARPA_NAMESER_H
6135      # include <arpa/nameser.h>
6136      #endif
6137 "
6138 if test "x$ac_cv_header_resolv_h" = xyes; then :
6139   cat >>confdefs.h <<_ACEOF
6140 #define HAVE_RESOLV_H 1
6141 _ACEOF
6142
6143 fi
6144
6145 done
6146
6147
6148 for ac_header in ifaddrs.h
6149 do :
6150   ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "#include <sys/types.h>
6151 "
6152 if test "x$ac_cv_header_ifaddrs_h" = xyes; then :
6153   cat >>confdefs.h <<_ACEOF
6154 #define HAVE_IFADDRS_H 1
6155 _ACEOF
6156
6157 fi
6158
6159 done
6160
6161
6162 for ac_header in ucontext.h
6163 do :
6164   ac_fn_c_check_header_compile "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "#include <signal.h>
6165 "
6166 if test "x$ac_cv_header_ucontext_h" = xyes; then :
6167   cat >>confdefs.h <<_ACEOF
6168 #define HAVE_UCONTEXT_H 1
6169 _ACEOF
6170
6171 fi
6172
6173 done
6174
6175
6176 for ac_header in sys/thr.h
6177 do :
6178   ac_fn_c_check_header_compile "$LINENO" "sys/thr.h" "ac_cv_header_sys_thr_h" "#include <sys/types.h>
6179 #ifdef HAVE_UCONTEXT_H
6180 #include <ucontext.h>
6181 #endif
6182 "
6183 if test "x$ac_cv_header_sys_thr_h" = xyes; then :
6184   cat >>confdefs.h <<_ACEOF
6185 #define HAVE_SYS_THR_H 1
6186 _ACEOF
6187
6188 fi
6189
6190 done
6191
6192
6193 for ac_header in pthread_np.h
6194 do :
6195   ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" "#ifdef HAVE_PTHREAD_H
6196 #include <pthread.h>
6197 #endif
6198 "
6199 if test "x$ac_cv_header_pthread_np_h" = xyes; then :
6200   cat >>confdefs.h <<_ACEOF
6201 #define HAVE_PTHREAD_NP_H 1
6202 _ACEOF
6203
6204 fi
6205
6206 done
6207
6208
6209 for ac_header in linux/videodev.h linux/videodev2.h
6210 do :
6211   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6212 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_TIME_H
6213 #include <sys/time.h>
6214 #endif
6215 #include <sys/types.h>
6216 #ifdef HAVE_ASM_TYPES_H
6217 #include <asm/types.h>
6218 #endif
6219 "
6220 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6221   cat >>confdefs.h <<_ACEOF
6222 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6223 _ACEOF
6224
6225 fi
6226
6227 done
6228
6229
6230 for ac_header in linux/capi.h
6231 do :
6232   ac_fn_c_check_header_compile "$LINENO" "linux/capi.h" "ac_cv_header_linux_capi_h" "#define __user
6233 "
6234 if test "x$ac_cv_header_linux_capi_h" = xyes; then :
6235   cat >>confdefs.h <<_ACEOF
6236 #define HAVE_LINUX_CAPI_H 1
6237 _ACEOF
6238
6239 fi
6240
6241 done
6242
6243
6244
6245 DLLEXT=""
6246
6247 DLLFLAGS="-D_REENTRANT"
6248
6249 LDSHARED=""
6250
6251 LDDLLFLAGS=""
6252
6253 LIBEXT="so"
6254
6255 IMPLIBEXT="def"
6256
6257 LDRPATH_INSTALL=""
6258
6259 LDRPATH_LOCAL=""
6260
6261 STATIC_IMPLIBEXT="def.a"
6262 # Extract the first word of "ldd", so it can be a program name with args.
6263 set dummy ldd; ac_word=$2
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6265 $as_echo_n "checking for $ac_word... " >&6; }
6266 if ${ac_cv_path_LDD+:} false; then :
6267   $as_echo_n "(cached) " >&6
6268 else
6269   case $LDD in
6270   [\\/]* | ?:[\\/]*)
6271   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
6272   ;;
6273   *)
6274   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6275 as_dummy="/sbin:/usr/sbin:$PATH"
6276 for as_dir in $as_dummy
6277 do
6278   IFS=$as_save_IFS
6279   test -z "$as_dir" && as_dir=.
6280     for ac_exec_ext in '' $ac_executable_extensions; do
6281   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6282     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
6283     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6284     break 2
6285   fi
6286 done
6287   done
6288 IFS=$as_save_IFS
6289
6290   test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
6291   ;;
6292 esac
6293 fi
6294 LDD=$ac_cv_path_LDD
6295 if test -n "$LDD"; then
6296   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
6297 $as_echo "$LDD" >&6; }
6298 else
6299   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6300 $as_echo "no" >&6; }
6301 fi
6302
6303
6304
6305 case $host_os in
6306   cygwin*|mingw32*)
6307     if test -n "$ac_tool_prefix"; then
6308   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6309 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6311 $as_echo_n "checking for $ac_word... " >&6; }
6312 if ${ac_cv_prog_DLLTOOL+:} false; then :
6313   $as_echo_n "(cached) " >&6
6314 else
6315   if test -n "$DLLTOOL"; then
6316   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6317 else
6318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6319 for as_dir in $PATH
6320 do
6321   IFS=$as_save_IFS
6322   test -z "$as_dir" && as_dir=.
6323     for ac_exec_ext in '' $ac_executable_extensions; do
6324   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6325     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6326     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6327     break 2
6328   fi
6329 done
6330   done
6331 IFS=$as_save_IFS
6332
6333 fi
6334 fi
6335 DLLTOOL=$ac_cv_prog_DLLTOOL
6336 if test -n "$DLLTOOL"; then
6337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6338 $as_echo "$DLLTOOL" >&6; }
6339 else
6340   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6341 $as_echo "no" >&6; }
6342 fi
6343
6344
6345 fi
6346 if test -z "$ac_cv_prog_DLLTOOL"; then
6347   ac_ct_DLLTOOL=$DLLTOOL
6348   # Extract the first word of "dlltool", so it can be a program name with args.
6349 set dummy dlltool; ac_word=$2
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6351 $as_echo_n "checking for $ac_word... " >&6; }
6352 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6353   $as_echo_n "(cached) " >&6
6354 else
6355   if test -n "$ac_ct_DLLTOOL"; then
6356   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6357 else
6358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6359 for as_dir in $PATH
6360 do
6361   IFS=$as_save_IFS
6362   test -z "$as_dir" && as_dir=.
6363     for ac_exec_ext in '' $ac_executable_extensions; do
6364   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6365     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6366     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6367     break 2
6368   fi
6369 done
6370   done
6371 IFS=$as_save_IFS
6372
6373 fi
6374 fi
6375 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6376 if test -n "$ac_ct_DLLTOOL"; then
6377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6378 $as_echo "$ac_ct_DLLTOOL" >&6; }
6379 else
6380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6381 $as_echo "no" >&6; }
6382 fi
6383
6384   if test "x$ac_ct_DLLTOOL" = x; then
6385     DLLTOOL="false"
6386   else
6387     case $cross_compiling:$ac_tool_warned in
6388 yes:)
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6390 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6391 ac_tool_warned=yes ;;
6392 esac
6393     DLLTOOL=$ac_ct_DLLTOOL
6394   fi
6395 else
6396   DLLTOOL="$ac_cv_prog_DLLTOOL"
6397 fi
6398
6399     if test -n "$ac_tool_prefix"; then
6400   # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
6401 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
6402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6403 $as_echo_n "checking for $ac_word... " >&6; }
6404 if ${ac_cv_prog_DLLWRAP+:} false; then :
6405   $as_echo_n "(cached) " >&6
6406 else
6407   if test -n "$DLLWRAP"; then
6408   ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
6409 else
6410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6411 for as_dir in $PATH
6412 do
6413   IFS=$as_save_IFS
6414   test -z "$as_dir" && as_dir=.
6415     for ac_exec_ext in '' $ac_executable_extensions; do
6416   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6417     ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
6418     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6419     break 2
6420   fi
6421 done
6422   done
6423 IFS=$as_save_IFS
6424
6425 fi
6426 fi
6427 DLLWRAP=$ac_cv_prog_DLLWRAP
6428 if test -n "$DLLWRAP"; then
6429   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLWRAP" >&5
6430 $as_echo "$DLLWRAP" >&6; }
6431 else
6432   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6433 $as_echo "no" >&6; }
6434 fi
6435
6436
6437 fi
6438 if test -z "$ac_cv_prog_DLLWRAP"; then
6439   ac_ct_DLLWRAP=$DLLWRAP
6440   # Extract the first word of "dllwrap", so it can be a program name with args.
6441 set dummy dllwrap; ac_word=$2
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6443 $as_echo_n "checking for $ac_word... " >&6; }
6444 if ${ac_cv_prog_ac_ct_DLLWRAP+:} false; then :
6445   $as_echo_n "(cached) " >&6
6446 else
6447   if test -n "$ac_ct_DLLWRAP"; then
6448   ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
6449 else
6450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6451 for as_dir in $PATH
6452 do
6453   IFS=$as_save_IFS
6454   test -z "$as_dir" && as_dir=.
6455     for ac_exec_ext in '' $ac_executable_extensions; do
6456   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6457     ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
6458     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6459     break 2
6460   fi
6461 done
6462   done
6463 IFS=$as_save_IFS
6464
6465 fi
6466 fi
6467 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
6468 if test -n "$ac_ct_DLLWRAP"; then
6469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLWRAP" >&5
6470 $as_echo "$ac_ct_DLLWRAP" >&6; }
6471 else
6472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6473 $as_echo "no" >&6; }
6474 fi
6475
6476   if test "x$ac_ct_DLLWRAP" = x; then
6477     DLLWRAP="false"
6478   else
6479     case $cross_compiling:$ac_tool_warned in
6480 yes:)
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6482 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6483 ac_tool_warned=yes ;;
6484 esac
6485     DLLWRAP=$ac_ct_DLLWRAP
6486   fi
6487 else
6488   DLLWRAP="$ac_cv_prog_DLLWRAP"
6489 fi
6490
6491     if test "$DLLWRAP" = "false"; then
6492       LIBEXT="a"
6493     else
6494             LIBEXT="dll"
6495     fi
6496     IMPLIBEXT="a"
6497     STATIC_IMPLIBEXT="a"
6498         enable_iphlpapi=${enable_iphlpapi:-no}
6499     enable_kernel32=${enable_kernel32:-no}
6500     enable_msvcrt=${enable_msvcrt:-no}
6501     enable_ntdll=${enable_ntdll:-no}
6502     enable_ws2_32=${enable_ws2_32:-no}
6503     enable_loader=${enable_loader:-no}
6504     enable_server=${enable_server:-no}
6505         with_x=${with_x:-no}
6506     with_pthread=${with_pthread:-no}
6507     ;;
6508   darwin*|macosx*)
6509     DLLEXT=".so"
6510     LIBEXT="dylib"
6511     DLLFLAGS="$DLLFLAGS -fPIC"
6512     LDDLLFLAGS="-bundle -multiply_defined suppress"
6513     LIBWINE_LDFLAGS="-multiply_defined suppress"
6514     LDSHARED="\$(CC) -dynamiclib"
6515     LDRPATH_LOCAL="&& install_name_tool -change @executable_path/\`\$(RELPATH) \$(bindir) \$(libdir)\`/libwine.1.dylib @executable_path/\$(top_builddir)/libs/wine/libwine.1.dylib \$@ || \$(RM) \$@"
6516         COREFOUNDATIONLIB="-framework CoreFoundation"
6517
6518     IOKITLIB="-framework IOKit -framework CoreFoundation"
6519
6520     APPLICATIONSERVICESLIB="-framework ApplicationServices"
6521
6522     CORESERVICESLIB="-framework CoreServices"
6523
6524     case $host_os in
6525       darwin11*)
6526         LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-macosx_version_min,10.6,-segaddr,WINE_DOS,0x00001000,-segaddr,WINE_SHAREDHEAP,0x7f000000"
6527  ;;
6528       *)
6529         LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00001000,-segaddr,WINE_SHAREDHEAP,0x7f000000"
6530  ;;
6531     esac
6532     if test "$ac_cv_header_DiskArbitration_DiskArbitration_h" = "yes"
6533     then
6534                 DISKARBITRATIONLIB="-framework DiskArbitration -framework CoreFoundation"
6535
6536     fi
6537     if test "$ac_cv_header_Security_Security_h" = "yes"
6538     then
6539         SECURITYLIB="-framework Security -framework CoreFoundation"
6540
6541                 ac_save_LIBS="$LIBS"
6542         LIBS="$LIBS $SECURITYLIB"
6543         for ac_func in SSLCopyPeerCertificates
6544 do :
6545   ac_fn_c_check_func "$LINENO" "SSLCopyPeerCertificates" "ac_cv_func_SSLCopyPeerCertificates"
6546 if test "x$ac_cv_func_SSLCopyPeerCertificates" = xyes; then :
6547   cat >>confdefs.h <<_ACEOF
6548 #define HAVE_SSLCOPYPEERCERTIFICATES 1
6549 _ACEOF
6550
6551 fi
6552 done
6553
6554         LIBS="$ac_save_LIBS"
6555         with_gnutls=${with_gnutls:-no}
6556     fi
6557     if test "$ac_cv_header_CoreAudio_CoreAudio_h" = "yes" -a "$ac_cv_header_AudioUnit_AudioUnit_h" = "yes"
6558     then
6559         if test "$ac_cv_header_AudioUnit_AudioComponent_h" = "yes"
6560         then
6561             COREAUDIO="-framework CoreFoundation -framework CoreAudio -framework AudioUnit -framework AudioToolbox -framework CoreMIDI"
6562
6563         else
6564                         COREAUDIO="-framework CoreAudio -framework AudioUnit -framework CoreServices -framework AudioToolbox -framework CoreMIDI"
6565
6566         fi
6567                 ac_save_LIBS="$LIBS"
6568         LIBS="$LIBS $COREAUDIO"
6569         for ac_func in AUGraphAddNode
6570 do :
6571   ac_fn_c_check_func "$LINENO" "AUGraphAddNode" "ac_cv_func_AUGraphAddNode"
6572 if test "x$ac_cv_func_AUGraphAddNode" = xyes; then :
6573   cat >>confdefs.h <<_ACEOF
6574 #define HAVE_AUGRAPHADDNODE 1
6575 _ACEOF
6576
6577 fi
6578 done
6579
6580         LIBS="$ac_save_LIBS"
6581     fi
6582     if test "$ac_cv_header_OpenAL_al_h" = "yes"
6583     then
6584         FRAMEWORK_OPENAL="-framework OpenAL"
6585
6586
6587 cat >>confdefs.h <<_ACEOF
6588 #define HAVE_OPENAL 1
6589 _ACEOF
6590
6591         ac_cv_lib_openal=yes
6592     fi
6593     if test "$ac_cv_header_OpenCL_opencl_h" = "yes"
6594     then
6595         LIBOPENCL="-framework OpenCL"
6596
6597         ac_cv_lib_OpenCL_clGetPlatformInfo=yes
6598     fi
6599     if test "$ac_cv_header_IOKit_hid_IOHIDLib_h" = "yes"
6600     then
6601         ac_save_LIBS="$LIBS"
6602         LIBS="$LIBS $IOKITLIB"
6603         for ac_func in IOHIDManagerCreate
6604 do :
6605   ac_fn_c_check_func "$LINENO" "IOHIDManagerCreate" "ac_cv_func_IOHIDManagerCreate"
6606 if test "x$ac_cv_func_IOHIDManagerCreate" = xyes; then :
6607   cat >>confdefs.h <<_ACEOF
6608 #define HAVE_IOHIDMANAGERCREATE 1
6609 _ACEOF
6610
6611 fi
6612 done
6613
6614         LIBS="$ac_save_LIBS"
6615     fi
6616     case $host_cpu in
6617       *powerpc*)
6618         LDDLLFLAGS="$LDDLLFLAGS -read_only_relocs warning"          ;;
6619     esac
6620     if test "$ac_cv_header_QuickTime_ImageCompression_h" = "yes"
6621     then
6622         QUICKTIMELIB="-framework QuickTime -framework ApplicationServices -framework CoreVideo"
6623
6624         enable_wineqtdecoder=${enable_wineqtdecoder:-yes}
6625     else
6626         as_fn_append wine_notices "|QuickTime ${notice_platform}development files not found, video decoding won't be supported."
6627     fi
6628         if test "$ac_cv_header_Carbon_Carbon_h" = "yes"
6629     then
6630         CARBONLIB="-framework Carbon"
6631
6632         enable_winequartz_drv=${enable_winequartz_drv:-yes}
6633     fi
6634         if test "x$enable_win16" = "xyes"
6635     then
6636         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 16-bit code can be built correctly" >&5
6637 $as_echo_n "checking whether 16-bit code can be built correctly... " >&6; }
6638         if test "$cross_compiling" = yes; then :
6639   { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5
6640 $as_echo "cross-compiling, assuming yes" >&6; }
6641 else
6642   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6643 /* end confdefs.h.  */
6644 asm(".text\n"
6645                                             "bad:\tnop;nop\n"
6646                                             "good:\tnop;nop\n\t"
6647                                             ".globl _testfunc\n"
6648                                             "_testfunc:\tcallw good");
6649                                         extern void testfunc();
6650 int
6651 main ()
6652 {
6653 unsigned short *p = (unsigned short *)testfunc;
6654                                         return p[0] != 0xe866 || p[1] != 0xfffa
6655   ;
6656   return 0;
6657 }
6658 _ACEOF
6659 if ac_fn_c_try_run "$LINENO"; then :
6660   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6661 $as_echo "yes" >&6; }
6662 else
6663   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6664 $as_echo "no" >&6; }
6665                                        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
6666 fi
6667 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6668   conftest.$ac_objext conftest.beam conftest.$ac_ext
6669 fi
6670
6671     fi
6672     ;;
6673   *)
6674     DLLFLAGS="$DLLFLAGS -fPIC"
6675     DLLEXT=".so"
6676     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a GNU style ELF dll" >&5
6677 $as_echo_n "checking whether we can build a GNU style ELF dll... " >&6; }
6678 if ${ac_cv_c_dll_gnuelf+:} false; then :
6679   $as_echo_n "(cached) " >&6
6680 else
6681   ac_wine_try_cflags_saved=$CFLAGS
6682 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic"
6683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6684 /* end confdefs.h.  */
6685 void myfunc() {}
6686 _ACEOF
6687 if ac_fn_c_try_link "$LINENO"; then :
6688   ac_cv_c_dll_gnuelf="yes"
6689 else
6690   ac_cv_c_dll_gnuelf="no"
6691 fi
6692 rm -f core conftest.err conftest.$ac_objext \
6693     conftest$ac_exeext conftest.$ac_ext
6694 CFLAGS=$ac_wine_try_cflags_saved
6695 fi
6696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_gnuelf" >&5
6697 $as_echo "$ac_cv_c_dll_gnuelf" >&6; }
6698     if test "$ac_cv_c_dll_gnuelf" = "yes"
6699     then
6700       LDSHARED="\$(CC) -shared"
6701       LDDLLFLAGS="-shared -Wl,-Bsymbolic"
6702       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1" >&5
6703 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1... " >&6; }
6704 if ${ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1+:} false; then :
6705   $as_echo_n "(cached) " >&6
6706 else
6707   ac_wine_try_cflags_saved=$CFLAGS
6708 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,confest.so.1"
6709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6710 /* end confdefs.h.  */
6711 int main(int argc, char **argv) { return 0; }
6712 _ACEOF
6713 if ac_fn_c_try_link "$LINENO"; then :
6714   ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=yes
6715 else
6716   ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=no
6717 fi
6718 rm -f core conftest.err conftest.$ac_objext \
6719     conftest$ac_exeext conftest.$ac_ext
6720 CFLAGS=$ac_wine_try_cflags_saved
6721 fi
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&5
6723 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&6; }
6724 if test $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1 = yes; then :
6725   LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
6726 else
6727   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1" >&5
6728 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1... " >&6; }
6729 if ${ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1+:} false; then :
6730   $as_echo_n "(cached) " >&6
6731 else
6732   ac_wine_try_cflags_saved=$CFLAGS
6733 CFLAGS="$CFLAGS -fPIC -shared -Wl,-h,confest.so.1"
6734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6735 /* end confdefs.h.  */
6736 int main(int argc, char **argv) { return 0; }
6737 _ACEOF
6738 if ac_fn_c_try_link "$LINENO"; then :
6739   ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=yes
6740 else
6741   ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=no
6742 fi
6743 rm -f core conftest.err conftest.$ac_objext \
6744     conftest$ac_exeext conftest.$ac_ext
6745 CFLAGS=$ac_wine_try_cflags_saved
6746 fi
6747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&5
6748 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&6; }
6749 if test $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1 = yes; then :
6750   LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-h,%)"
6751 fi
6752 fi
6753
6754       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs" >&5
6755 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs... " >&6; }
6756 if ${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs+:} false; then :
6757   $as_echo_n "(cached) " >&6
6758 else
6759   ac_wine_try_cflags_saved=$CFLAGS
6760 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
6761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6762 /* end confdefs.h.  */
6763 int main(int argc, char **argv) { return 0; }
6764 _ACEOF
6765 if ac_fn_c_try_link "$LINENO"; then :
6766   ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=yes
6767 else
6768   ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=no
6769 fi
6770 rm -f core conftest.err conftest.$ac_objext \
6771     conftest$ac_exeext conftest.$ac_ext
6772 CFLAGS=$ac_wine_try_cflags_saved
6773 fi
6774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&5
6775 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&6; }
6776 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs = yes; then :
6777   LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
6778 fi
6779
6780       { $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
6781 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini... " >&6; }
6782 if ${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini+:} false; then :
6783   $as_echo_n "(cached) " >&6
6784 else
6785   ac_wine_try_cflags_saved=$CFLAGS
6786 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
6787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6788 /* end confdefs.h.  */
6789 int main(int argc, char **argv) { return 0; }
6790 _ACEOF
6791 if ac_fn_c_try_link "$LINENO"; then :
6792   ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=yes
6793 else
6794   ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=no
6795 fi
6796 rm -f core conftest.err conftest.$ac_objext \
6797     conftest$ac_exeext conftest.$ac_ext
6798 CFLAGS=$ac_wine_try_cflags_saved
6799 fi
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&5
6801 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&6; }
6802 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini = yes; then :
6803   LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
6804 fi
6805
6806       echo '{ global: *; };' >conftest.map
6807       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map" >&5
6808 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map... " >&6; }
6809 if ${ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map+:} false; then :
6810   $as_echo_n "(cached) " >&6
6811 else
6812   ac_wine_try_cflags_saved=$CFLAGS
6813 CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
6814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6815 /* end confdefs.h.  */
6816 int main(int argc, char **argv) { return 0; }
6817 _ACEOF
6818 if ac_fn_c_try_link "$LINENO"; then :
6819   ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=yes
6820 else
6821   ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=no
6822 fi
6823 rm -f core conftest.err conftest.$ac_objext \
6824     conftest$ac_exeext conftest.$ac_ext
6825 CFLAGS=$ac_wine_try_cflags_saved
6826 fi
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&5
6828 $as_echo "$ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&6; }
6829 if test $ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map = yes; then :
6830   LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)"
6831 fi
6832       rm -f conftest.map
6833
6834       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5
6835 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--export-dynamic... " >&6; }
6836 if ${ac_cv_cflags__fPIC__Wl___export_dynamic+:} false; then :
6837   $as_echo_n "(cached) " >&6
6838 else
6839   ac_wine_try_cflags_saved=$CFLAGS
6840 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
6841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6842 /* end confdefs.h.  */
6843 int main(int argc, char **argv) { return 0; }
6844 _ACEOF
6845 if ac_fn_c_try_link "$LINENO"; then :
6846   ac_cv_cflags__fPIC__Wl___export_dynamic=yes
6847 else
6848   ac_cv_cflags__fPIC__Wl___export_dynamic=no
6849 fi
6850 rm -f core conftest.err conftest.$ac_objext \
6851     conftest$ac_exeext conftest.$ac_ext
6852 CFLAGS=$ac_wine_try_cflags_saved
6853 fi
6854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__Wl___export_dynamic" >&5
6855 $as_echo "$ac_cv_cflags__fPIC__Wl___export_dynamic" >&6; }
6856 if test $ac_cv_cflags__fPIC__Wl___export_dynamic = yes; then :
6857   LDEXECFLAGS="-Wl,--export-dynamic"
6858
6859 fi
6860
6861       as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,--rpath,\\$ORIGIN/../lib" | $as_tr_sh`
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib" >&5
6863 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... " >&6; }
6864 if eval \${$as_ac_var+:} false; then :
6865   $as_echo_n "(cached) " >&6
6866 else
6867   ac_wine_try_cflags_saved=$CFLAGS
6868 CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
6869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6870 /* end confdefs.h.  */
6871 int main(int argc, char **argv) { return 0; }
6872 _ACEOF
6873 if ac_fn_c_try_link "$LINENO"; then :
6874   eval "$as_ac_var=yes"
6875 else
6876   eval "$as_ac_var=no"
6877 fi
6878 rm -f core conftest.err conftest.$ac_objext \
6879     conftest$ac_exeext conftest.$ac_ext
6880 CFLAGS=$ac_wine_try_cflags_saved
6881 fi
6882 eval ac_res=\$$as_ac_var
6883                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6884 $as_echo "$ac_res" >&6; }
6885 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6886   LDRPATH_INSTALL="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
6887                        LDRPATH_LOCAL="-Wl,--rpath,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
6888 else
6889   as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,-R,\\$ORIGIN/../lib" | $as_tr_sh`
6890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib" >&5
6891 $as_echo_n "checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib... " >&6; }
6892 if eval \${$as_ac_var+:} false; then :
6893   $as_echo_n "(cached) " >&6
6894 else
6895   ac_wine_try_cflags_saved=$CFLAGS
6896 CFLAGS="$CFLAGS -fPIC -Wl,-R,\$ORIGIN/../lib"
6897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6898 /* end confdefs.h.  */
6899 int main(int argc, char **argv) { return 0; }
6900 _ACEOF
6901 if ac_fn_c_try_link "$LINENO"; then :
6902   eval "$as_ac_var=yes"
6903 else
6904   eval "$as_ac_var=no"
6905 fi
6906 rm -f core conftest.err conftest.$ac_objext \
6907     conftest$ac_exeext conftest.$ac_ext
6908 CFLAGS=$ac_wine_try_cflags_saved
6909 fi
6910 eval ac_res=\$$as_ac_var
6911                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6912 $as_echo "$ac_res" >&6; }
6913 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6914   LDRPATH_INSTALL="-Wl,-R,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
6915                             LDRPATH_LOCAL="-Wl,-R,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
6916 fi
6917 fi
6918
6919       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--enable-new-dtags" >&5
6920 $as_echo_n "checking whether the compiler supports -Wl,--enable-new-dtags... " >&6; }
6921 if ${ac_cv_cflags__Wl___enable_new_dtags+:} false; then :
6922   $as_echo_n "(cached) " >&6
6923 else
6924   ac_wine_try_cflags_saved=$CFLAGS
6925 CFLAGS="$CFLAGS -Wl,--enable-new-dtags"
6926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6927 /* end confdefs.h.  */
6928 int main(int argc, char **argv) { return 0; }
6929 _ACEOF
6930 if ac_fn_c_try_link "$LINENO"; then :
6931   ac_cv_cflags__Wl___enable_new_dtags=yes
6932 else
6933   ac_cv_cflags__Wl___enable_new_dtags=no
6934 fi
6935 rm -f core conftest.err conftest.$ac_objext \
6936     conftest$ac_exeext conftest.$ac_ext
6937 CFLAGS=$ac_wine_try_cflags_saved
6938 fi
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___enable_new_dtags" >&5
6940 $as_echo "$ac_cv_cflags__Wl___enable_new_dtags" >&6; }
6941 if test $ac_cv_cflags__Wl___enable_new_dtags = yes; then :
6942   LDRPATH_INSTALL="$LDRPATH_INSTALL -Wl,--enable-new-dtags"
6943 fi
6944
6945       case $host_cpu in
6946         *i[3456789]86* | x86_64)
6947           { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400" >&5
6948 $as_echo_n "checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... " >&6; }
6949 if ${ac_cv_cflags__Wl___section_start__interp_0x7bf00400+:} false; then :
6950   $as_echo_n "(cached) " >&6
6951 else
6952   ac_wine_try_cflags_saved=$CFLAGS
6953 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
6954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6955 /* end confdefs.h.  */
6956 int main(int argc, char **argv) { return 0; }
6957 _ACEOF
6958 if ac_fn_c_try_link "$LINENO"; then :
6959   ac_cv_cflags__Wl___section_start__interp_0x7bf00400=yes
6960 else
6961   ac_cv_cflags__Wl___section_start__interp_0x7bf00400=no
6962 fi
6963 rm -f core conftest.err conftest.$ac_objext \
6964     conftest$ac_exeext conftest.$ac_ext
6965 CFLAGS=$ac_wine_try_cflags_saved
6966 fi
6967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&5
6968 $as_echo "$ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&6; }
6969 if test $ac_cv_cflags__Wl___section_start__interp_0x7bf00400 = yes; then :
6970   case $host_os in
6971                            freebsd* | kfreebsd*-gnu) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x60000400" ;;
6972                            *) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400" ;;
6973                            esac
6974
6975 fi
6976           # Extract the first word of "prelink", so it can be a program name with args.
6977 set dummy prelink; ac_word=$2
6978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6979 $as_echo_n "checking for $ac_word... " >&6; }
6980 if ${ac_cv_path_PRELINK+:} false; then :
6981   $as_echo_n "(cached) " >&6
6982 else
6983   case $PRELINK in
6984   [\\/]* | ?:[\\/]*)
6985   ac_cv_path_PRELINK="$PRELINK" # Let the user override the test with a path.
6986   ;;
6987   *)
6988   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6989 for as_dir in /sbin /usr/sbin $PATH
6990 do
6991   IFS=$as_save_IFS
6992   test -z "$as_dir" && as_dir=.
6993     for ac_exec_ext in '' $ac_executable_extensions; do
6994   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6995     ac_cv_path_PRELINK="$as_dir/$ac_word$ac_exec_ext"
6996     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6997     break 2
6998   fi
6999 done
7000   done
7001 IFS=$as_save_IFS
7002
7003   test -z "$ac_cv_path_PRELINK" && ac_cv_path_PRELINK="false"
7004   ;;
7005 esac
7006 fi
7007 PRELINK=$ac_cv_path_PRELINK
7008 if test -n "$PRELINK"; then
7009   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRELINK" >&5
7010 $as_echo "$PRELINK" >&6; }
7011 else
7012   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7013 $as_echo "no" >&6; }
7014 fi
7015
7016
7017           if test "x$PRELINK" = xfalse
7018           then
7019               as_fn_append wine_warnings "|prelink not found, base address of core dlls won't be set correctly."
7020           fi
7021           ;;
7022       esac
7023
7024     else
7025       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a UnixWare (Solaris) dll" >&5
7026 $as_echo_n "checking whether we can build a UnixWare (Solaris) dll... " >&6; }
7027 if ${ac_cv_c_dll_unixware+:} false; then :
7028   $as_echo_n "(cached) " >&6
7029 else
7030   ac_wine_try_cflags_saved=$CFLAGS
7031 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
7032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7033 /* end confdefs.h.  */
7034 void myfunc() {}
7035 _ACEOF
7036 if ac_fn_c_try_link "$LINENO"; then :
7037   ac_cv_c_dll_unixware="yes"
7038 else
7039   ac_cv_c_dll_unixware="no"
7040 fi
7041 rm -f core conftest.err conftest.$ac_objext \
7042     conftest$ac_exeext conftest.$ac_ext
7043 CFLAGS=$ac_wine_try_cflags_saved
7044 fi
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_unixware" >&5
7046 $as_echo "$ac_cv_c_dll_unixware" >&6; }
7047       if test "$ac_cv_c_dll_unixware" = "yes"
7048       then
7049         LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
7050         LDDLLFLAGS="-Wl,-G,-B,symbolic"
7051
7052       else
7053         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build an HP-UX dll" >&5
7054 $as_echo_n "checking whether we can build an HP-UX dll... " >&6; }
7055 if ${ac_cv_c_dll_hpux+:} false; then :
7056   $as_echo_n "(cached) " >&6
7057 else
7058   ac_wine_try_cflags_saved=$CFLAGS
7059 CFLAGS="$CFLAGS -shared"
7060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7061 /* end confdefs.h.  */
7062 void myfunc() {}
7063 _ACEOF
7064 if ac_fn_c_try_link "$LINENO"; then :
7065   ac_cv_c_dll_hpux="yes"
7066 else
7067   ac_cv_c_dll_hpux="no"
7068 fi
7069 rm -f core conftest.err conftest.$ac_objext \
7070     conftest$ac_exeext conftest.$ac_ext
7071 CFLAGS=$ac_wine_try_cflags_saved
7072 fi
7073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_hpux" >&5
7074 $as_echo "$ac_cv_c_dll_hpux" >&6; }
7075         if test "$ac_cv_c_dll_hpux" = "yes"
7076         then
7077           LIBEXT="sl"
7078           DLLEXT=".sl"
7079           LDDLLFLAGS="-shared -fPIC"
7080           LDSHARED="\$(CC) -shared"
7081         fi
7082       fi
7083     fi
7084     ;;
7085 esac
7086
7087 enable_wineqtdecoder=${enable_wineqtdecoder:-no}
7088 enable_winequartz_drv=${enable_winequartz_drv:-no}
7089
7090 if test "$LIBEXT" = "a"; then
7091   as_fn_error $? "could not find a way to build shared libraries.
7092 It is currently not possible to build Wine without shared library
7093 (.so) support to allow transparent switch between .so and .dll files.
7094 If you are using Linux, you will need a newer binutils.
7095 " "$LINENO" 5
7096 fi
7097
7098 CROSSTEST_DISABLE=\#
7099
7100 if test "$cross_compiling" = "no" -a "x$enable_tests" != xno -a "$LIBEXT" != "dll"
7101 then
7102     case "$host_cpu" in
7103   i[3456789]86*)
7104     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 " ;;
7105   x86_64)
7106     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 " ;;
7107   *)
7108     ac_prefix_list="" ;;
7109 esac
7110 for ac_prog in $ac_prefix_list
7111 do
7112   # Extract the first word of "$ac_prog", so it can be a program name with args.
7113 set dummy $ac_prog; ac_word=$2
7114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7115 $as_echo_n "checking for $ac_word... " >&6; }
7116 if ${ac_cv_prog_CROSSCC+:} false; then :
7117   $as_echo_n "(cached) " >&6
7118 else
7119   if test -n "$CROSSCC"; then
7120   ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
7121 else
7122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7123 for as_dir in $PATH
7124 do
7125   IFS=$as_save_IFS
7126   test -z "$as_dir" && as_dir=.
7127     for ac_exec_ext in '' $ac_executable_extensions; do
7128   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7129     ac_cv_prog_CROSSCC="$ac_prog"
7130     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7131     break 2
7132   fi
7133 done
7134   done
7135 IFS=$as_save_IFS
7136
7137 fi
7138 fi
7139 CROSSCC=$ac_cv_prog_CROSSCC
7140 if test -n "$CROSSCC"; then
7141   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CROSSCC" >&5
7142 $as_echo "$CROSSCC" >&6; }
7143 else
7144   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7145 $as_echo "no" >&6; }
7146 fi
7147
7148
7149   test -n "$CROSSCC" && break
7150 done
7151 test -n "$CROSSCC" || CROSSCC="false"
7152
7153     if test "$CROSSCC" != "false"
7154     then
7155         ac_save_CC="$CC"
7156         CC="$CROSSCC"
7157         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CROSSCC works" >&5
7158 $as_echo_n "checking whether $CROSSCC works... " >&6; }
7159         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7160 /* end confdefs.h.  */
7161
7162 int
7163 main ()
7164 {
7165
7166   ;
7167   return 0;
7168 }
7169 _ACEOF
7170 if ac_fn_c_try_compile "$LINENO"; then :
7171   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7172 $as_echo "yes" >&6; }
7173                            set x $CROSSCC
7174                            shift
7175                            target=""
7176                            while test $# -ge 1
7177                            do
7178                                case "$1" in
7179                                  *-gcc) target=`expr "$1" : '\(.*\)-gcc'` ;;
7180                                esac
7181                                shift
7182                            done
7183                            if test -n "$target"
7184                            then
7185                                CROSSTEST_DISABLE=""
7186                                CROSSTARGET="$target"
7187
7188                            fi
7189 else
7190   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7191 $as_echo "no" >&6; }
7192 fi
7193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7194         CC="$ac_save_CC"
7195     fi
7196 fi
7197
7198
7199 if test "$ac_cv_header_pthread_h" = "yes"
7200 then
7201     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
7202 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
7203 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
7204   $as_echo_n "(cached) " >&6
7205 else
7206   ac_check_lib_save_LIBS=$LIBS
7207 LIBS="-lpthread  $LIBS"
7208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7209 /* end confdefs.h.  */
7210
7211 /* Override any GCC internal prototype to avoid an error.
7212    Use char because int might match the return type of a GCC
7213    builtin and then its argument prototype would still apply.  */
7214 #ifdef __cplusplus
7215 extern "C"
7216 #endif
7217 char pthread_create ();
7218 int
7219 main ()
7220 {
7221 return pthread_create ();
7222   ;
7223   return 0;
7224 }
7225 _ACEOF
7226 if ac_fn_c_try_link "$LINENO"; then :
7227   ac_cv_lib_pthread_pthread_create=yes
7228 else
7229   ac_cv_lib_pthread_pthread_create=no
7230 fi
7231 rm -f core conftest.err conftest.$ac_objext \
7232     conftest$ac_exeext conftest.$ac_ext
7233 LIBS=$ac_check_lib_save_LIBS
7234 fi
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
7236 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
7237 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
7238   LIBPTHREAD="-lpthread"
7239
7240 fi
7241
7242 fi
7243 if test "x$LIBPTHREAD" = "x"; then :
7244   case "x$with_pthread" in
7245   xno) ;;
7246   *)   as_fn_error $? "pthread ${notice_platform}development files not found.
7247 Wine cannot support threads without libpthread.
7248 Use the --without-pthread option if you really want this." "$LINENO" 5 ;;
7249 esac
7250 fi
7251
7252
7253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
7254 $as_echo_n "checking for X... " >&6; }
7255
7256
7257 # Check whether --with-x was given.
7258 if test "${with_x+set}" = set; then :
7259   withval=$with_x;
7260 fi
7261
7262 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7263 if test "x$with_x" = xno; then
7264   # The user explicitly disabled X.
7265   have_x=disabled
7266 else
7267   case $x_includes,$x_libraries in #(
7268     *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
7269     *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
7270   $as_echo_n "(cached) " >&6
7271 else
7272   # One or both of the vars are not set, and there is no cached value.
7273 ac_x_includes=no ac_x_libraries=no
7274 rm -f -r conftest.dir
7275 if mkdir conftest.dir; then
7276   cd conftest.dir
7277   cat >Imakefile <<'_ACEOF'
7278 incroot:
7279         @echo incroot='${INCROOT}'
7280 usrlibdir:
7281         @echo usrlibdir='${USRLIBDIR}'
7282 libdir:
7283         @echo libdir='${LIBDIR}'
7284 _ACEOF
7285   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
7286     # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7287     for ac_var in incroot usrlibdir libdir; do
7288       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
7289     done
7290     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7291     for ac_extension in a so sl dylib la dll; do
7292       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
7293          test -f "$ac_im_libdir/libX11.$ac_extension"; then
7294         ac_im_usrlibdir=$ac_im_libdir; break
7295       fi
7296     done
7297     # Screen out bogus values from the imake configuration.  They are
7298     # bogus both because they are the default anyway, and because
7299     # using them would break gcc on systems where it needs fixed includes.
7300     case $ac_im_incroot in
7301         /usr/include) ac_x_includes= ;;
7302         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7303     esac
7304     case $ac_im_usrlibdir in
7305         /usr/lib | /usr/lib64 | /lib | /lib64) ;;
7306         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7307     esac
7308   fi
7309   cd ..
7310   rm -f -r conftest.dir
7311 fi
7312
7313 # Standard set of common directories for X headers.
7314 # Check X11 before X11Rn because it is often a symlink to the current release.
7315 ac_x_header_dirs='
7316 /usr/X11/include
7317 /usr/X11R7/include
7318 /usr/X11R6/include
7319 /usr/X11R5/include
7320 /usr/X11R4/include
7321
7322 /usr/include/X11
7323 /usr/include/X11R7
7324 /usr/include/X11R6
7325 /usr/include/X11R5
7326 /usr/include/X11R4
7327
7328 /usr/local/X11/include
7329 /usr/local/X11R7/include
7330 /usr/local/X11R6/include
7331 /usr/local/X11R5/include
7332 /usr/local/X11R4/include
7333
7334 /usr/local/include/X11
7335 /usr/local/include/X11R7
7336 /usr/local/include/X11R6
7337 /usr/local/include/X11R5
7338 /usr/local/include/X11R4
7339
7340 /usr/X386/include
7341 /usr/x386/include
7342 /usr/XFree86/include/X11
7343
7344 /usr/include
7345 /usr/local/include
7346 /usr/unsupported/include
7347 /usr/athena/include
7348 /usr/local/x11r5/include
7349 /usr/lpp/Xamples/include
7350
7351 /usr/openwin/include
7352 /usr/openwin/share/include'
7353
7354 if test "$ac_x_includes" = no; then
7355   # Guess where to find include files, by looking for Xlib.h.
7356   # First, try using that file with no special directory specified.
7357   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7358 /* end confdefs.h.  */
7359 #include <X11/Xlib.h>
7360 _ACEOF
7361 if ac_fn_c_try_cpp "$LINENO"; then :
7362   # We can compile using X headers with no special include directory.
7363 ac_x_includes=
7364 else
7365   for ac_dir in $ac_x_header_dirs; do
7366   if test -r "$ac_dir/X11/Xlib.h"; then
7367     ac_x_includes=$ac_dir
7368     break
7369   fi
7370 done
7371 fi
7372 rm -f conftest.err conftest.i conftest.$ac_ext
7373 fi # $ac_x_includes = no
7374
7375 if test "$ac_x_libraries" = no; then
7376   # Check for the libraries.
7377   # See if we find them without any special options.
7378   # Don't add to $LIBS permanently.
7379   ac_save_LIBS=$LIBS
7380   LIBS="-lX11 $LIBS"
7381   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7382 /* end confdefs.h.  */
7383 #include <X11/Xlib.h>
7384 int
7385 main ()
7386 {
7387 XrmInitialize ()
7388   ;
7389   return 0;
7390 }
7391 _ACEOF
7392 if ac_fn_c_try_link "$LINENO"; then :
7393   LIBS=$ac_save_LIBS
7394 # We can link X programs with no special library path.
7395 ac_x_libraries=
7396 else
7397   LIBS=$ac_save_LIBS
7398 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7399 do
7400   # Don't even attempt the hair of trying to link an X program!
7401   for ac_extension in a so sl dylib la dll; do
7402     if test -r "$ac_dir/libX11.$ac_extension"; then
7403       ac_x_libraries=$ac_dir
7404       break 2
7405     fi
7406   done
7407 done
7408 fi
7409 rm -f core conftest.err conftest.$ac_objext \
7410     conftest$ac_exeext conftest.$ac_ext
7411 fi # $ac_x_libraries = no
7412
7413 case $ac_x_includes,$ac_x_libraries in #(
7414   no,* | *,no | *\'*)
7415     # Didn't find X, or a directory has "'" in its name.
7416     ac_cv_have_x="have_x=no";; #(
7417   *)
7418     # Record where we found X for the cache.
7419     ac_cv_have_x="have_x=yes\
7420         ac_x_includes='$ac_x_includes'\
7421         ac_x_libraries='$ac_x_libraries'"
7422 esac
7423 fi
7424 ;; #(
7425     *) have_x=yes;;
7426   esac
7427   eval "$ac_cv_have_x"
7428 fi # $with_x != no
7429
7430 if test "$have_x" != yes; then
7431   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
7432 $as_echo "$have_x" >&6; }
7433   no_x=yes
7434 else
7435   # If each of the values was on the command line, it overrides each guess.
7436   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7437   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7438   # Update the cache value to reflect the command line values.
7439   ac_cv_have_x="have_x=yes\
7440         ac_x_includes='$x_includes'\
7441         ac_x_libraries='$x_libraries'"
7442   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
7443 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
7444 fi
7445
7446 if test "$no_x" = yes; then
7447   # Not all programs may use this symbol, but it does not hurt to define it.
7448
7449 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
7450
7451   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7452 else
7453   if test -n "$x_includes"; then
7454     X_CFLAGS="$X_CFLAGS -I$x_includes"
7455   fi
7456
7457   # It would also be nice to do this for all -L options, not just this one.
7458   if test -n "$x_libraries"; then
7459     X_LIBS="$X_LIBS -L$x_libraries"
7460     # For Solaris; some versions of Sun CC require a space after -R and
7461     # others require no space.  Words are not sufficient . . . .
7462     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
7463 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
7464     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7465     ac_xsave_c_werror_flag=$ac_c_werror_flag
7466     ac_c_werror_flag=yes
7467     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7468 /* end confdefs.h.  */
7469
7470 int
7471 main ()
7472 {
7473
7474   ;
7475   return 0;
7476 }
7477 _ACEOF
7478 if ac_fn_c_try_link "$LINENO"; then :
7479   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7480 $as_echo "no" >&6; }
7481        X_LIBS="$X_LIBS -R$x_libraries"
7482 else
7483   LIBS="$ac_xsave_LIBS -R $x_libraries"
7484        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7485 /* end confdefs.h.  */
7486
7487 int
7488 main ()
7489 {
7490
7491   ;
7492   return 0;
7493 }
7494 _ACEOF
7495 if ac_fn_c_try_link "$LINENO"; then :
7496   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7497 $as_echo "yes" >&6; }
7498           X_LIBS="$X_LIBS -R $x_libraries"
7499 else
7500   { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
7501 $as_echo "neither works" >&6; }
7502 fi
7503 rm -f core conftest.err conftest.$ac_objext \
7504     conftest$ac_exeext conftest.$ac_ext
7505 fi
7506 rm -f core conftest.err conftest.$ac_objext \
7507     conftest$ac_exeext conftest.$ac_ext
7508     ac_c_werror_flag=$ac_xsave_c_werror_flag
7509     LIBS=$ac_xsave_LIBS
7510   fi
7511
7512   # Check for system-dependent libraries X programs must link with.
7513   # Do this before checking for the system-independent R6 libraries
7514   # (-lICE), since we may need -lsocket or whatever for X linking.
7515
7516   if test "$ISC" = yes; then
7517     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7518   else
7519     # Martyn Johnson says this is needed for Ultrix, if the X
7520     # libraries were built with DECnet support.  And Karl Berry says
7521     # the Alpha needs dnet_stub (dnet does not exist).
7522     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
7523     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7524 /* end confdefs.h.  */
7525
7526 /* Override any GCC internal prototype to avoid an error.
7527    Use char because int might match the return type of a GCC
7528    builtin and then its argument prototype would still apply.  */
7529 #ifdef __cplusplus
7530 extern "C"
7531 #endif
7532 char XOpenDisplay ();
7533 int
7534 main ()
7535 {
7536 return XOpenDisplay ();
7537   ;
7538   return 0;
7539 }
7540 _ACEOF
7541 if ac_fn_c_try_link "$LINENO"; then :
7542
7543 else
7544   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
7545 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
7546 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
7547   $as_echo_n "(cached) " >&6
7548 else
7549   ac_check_lib_save_LIBS=$LIBS
7550 LIBS="-ldnet  $LIBS"
7551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7552 /* end confdefs.h.  */
7553
7554 /* Override any GCC internal prototype to avoid an error.
7555    Use char because int might match the return type of a GCC
7556    builtin and then its argument prototype would still apply.  */
7557 #ifdef __cplusplus
7558 extern "C"
7559 #endif
7560 char dnet_ntoa ();
7561 int
7562 main ()
7563 {
7564 return dnet_ntoa ();
7565   ;
7566   return 0;
7567 }
7568 _ACEOF
7569 if ac_fn_c_try_link "$LINENO"; then :
7570   ac_cv_lib_dnet_dnet_ntoa=yes
7571 else
7572   ac_cv_lib_dnet_dnet_ntoa=no
7573 fi
7574 rm -f core conftest.err conftest.$ac_objext \
7575     conftest$ac_exeext conftest.$ac_ext
7576 LIBS=$ac_check_lib_save_LIBS
7577 fi
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7579 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
7580 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
7581   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7582 fi
7583
7584     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7585       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
7586 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
7587 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
7588   $as_echo_n "(cached) " >&6
7589 else
7590   ac_check_lib_save_LIBS=$LIBS
7591 LIBS="-ldnet_stub  $LIBS"
7592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7593 /* end confdefs.h.  */
7594
7595 /* Override any GCC internal prototype to avoid an error.
7596    Use char because int might match the return type of a GCC
7597    builtin and then its argument prototype would still apply.  */
7598 #ifdef __cplusplus
7599 extern "C"
7600 #endif
7601 char dnet_ntoa ();
7602 int
7603 main ()
7604 {
7605 return dnet_ntoa ();
7606   ;
7607   return 0;
7608 }
7609 _ACEOF
7610 if ac_fn_c_try_link "$LINENO"; then :
7611   ac_cv_lib_dnet_stub_dnet_ntoa=yes
7612 else
7613   ac_cv_lib_dnet_stub_dnet_ntoa=no
7614 fi
7615 rm -f core conftest.err conftest.$ac_objext \
7616     conftest$ac_exeext conftest.$ac_ext
7617 LIBS=$ac_check_lib_save_LIBS
7618 fi
7619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
7620 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
7621 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
7622   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7623 fi
7624
7625     fi
7626 fi
7627 rm -f core conftest.err conftest.$ac_objext \
7628     conftest$ac_exeext conftest.$ac_ext
7629     LIBS="$ac_xsave_LIBS"
7630
7631     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7632     # to get the SysV transport functions.
7633     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7634     # needs -lnsl.
7635     # The nsl library prevents programs from opening the X display
7636     # on Irix 5.2, according to T.E. Dickey.
7637     # The functions gethostbyname, getservbyname, and inet_addr are
7638     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
7639     ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
7640 if test "x$ac_cv_func_gethostbyname" = xyes; then :
7641
7642 fi
7643
7644     if test $ac_cv_func_gethostbyname = no; then
7645       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
7646 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
7647 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
7648   $as_echo_n "(cached) " >&6
7649 else
7650   ac_check_lib_save_LIBS=$LIBS
7651 LIBS="-lnsl  $LIBS"
7652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7653 /* end confdefs.h.  */
7654
7655 /* Override any GCC internal prototype to avoid an error.
7656    Use char because int might match the return type of a GCC
7657    builtin and then its argument prototype would still apply.  */
7658 #ifdef __cplusplus
7659 extern "C"
7660 #endif
7661 char gethostbyname ();
7662 int
7663 main ()
7664 {
7665 return gethostbyname ();
7666   ;
7667   return 0;
7668 }
7669 _ACEOF
7670 if ac_fn_c_try_link "$LINENO"; then :
7671   ac_cv_lib_nsl_gethostbyname=yes
7672 else
7673   ac_cv_lib_nsl_gethostbyname=no
7674 fi
7675 rm -f core conftest.err conftest.$ac_objext \
7676     conftest$ac_exeext conftest.$ac_ext
7677 LIBS=$ac_check_lib_save_LIBS
7678 fi
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
7680 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
7681 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
7682   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7683 fi
7684
7685       if test $ac_cv_lib_nsl_gethostbyname = no; then
7686         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
7687 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
7688 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
7689   $as_echo_n "(cached) " >&6
7690 else
7691   ac_check_lib_save_LIBS=$LIBS
7692 LIBS="-lbsd  $LIBS"
7693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7694 /* end confdefs.h.  */
7695
7696 /* Override any GCC internal prototype to avoid an error.
7697    Use char because int might match the return type of a GCC
7698    builtin and then its argument prototype would still apply.  */
7699 #ifdef __cplusplus
7700 extern "C"
7701 #endif
7702 char gethostbyname ();
7703 int
7704 main ()
7705 {
7706 return gethostbyname ();
7707   ;
7708   return 0;
7709 }
7710 _ACEOF
7711 if ac_fn_c_try_link "$LINENO"; then :
7712   ac_cv_lib_bsd_gethostbyname=yes
7713 else
7714   ac_cv_lib_bsd_gethostbyname=no
7715 fi
7716 rm -f core conftest.err conftest.$ac_objext \
7717     conftest$ac_exeext conftest.$ac_ext
7718 LIBS=$ac_check_lib_save_LIBS
7719 fi
7720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
7721 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
7722 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
7723   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
7724 fi
7725
7726       fi
7727     fi
7728
7729     # lieder@skyler.mavd.honeywell.com says without -lsocket,
7730     # socket/setsockopt and other routines are undefined under SCO ODT
7731     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
7732     # on later versions), says Simon Leinen: it contains gethostby*
7733     # variants that don't use the name server (or something).  -lsocket
7734     # must be given before -lnsl if both are needed.  We assume that
7735     # if connect needs -lnsl, so does gethostbyname.
7736     ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
7737 if test "x$ac_cv_func_connect" = xyes; then :
7738
7739 fi
7740
7741     if test $ac_cv_func_connect = no; then
7742       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
7743 $as_echo_n "checking for connect in -lsocket... " >&6; }
7744 if ${ac_cv_lib_socket_connect+:} false; then :
7745   $as_echo_n "(cached) " >&6
7746 else
7747   ac_check_lib_save_LIBS=$LIBS
7748 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7750 /* end confdefs.h.  */
7751
7752 /* Override any GCC internal prototype to avoid an error.
7753    Use char because int might match the return type of a GCC
7754    builtin and then its argument prototype would still apply.  */
7755 #ifdef __cplusplus
7756 extern "C"
7757 #endif
7758 char connect ();
7759 int
7760 main ()
7761 {
7762 return connect ();
7763   ;
7764   return 0;
7765 }
7766 _ACEOF
7767 if ac_fn_c_try_link "$LINENO"; then :
7768   ac_cv_lib_socket_connect=yes
7769 else
7770   ac_cv_lib_socket_connect=no
7771 fi
7772 rm -f core conftest.err conftest.$ac_objext \
7773     conftest$ac_exeext conftest.$ac_ext
7774 LIBS=$ac_check_lib_save_LIBS
7775 fi
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
7777 $as_echo "$ac_cv_lib_socket_connect" >&6; }
7778 if test "x$ac_cv_lib_socket_connect" = xyes; then :
7779   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7780 fi
7781
7782     fi
7783
7784     # Guillermo Gomez says -lposix is necessary on A/UX.
7785     ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
7786 if test "x$ac_cv_func_remove" = xyes; then :
7787
7788 fi
7789
7790     if test $ac_cv_func_remove = no; then
7791       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
7792 $as_echo_n "checking for remove in -lposix... " >&6; }
7793 if ${ac_cv_lib_posix_remove+:} false; then :
7794   $as_echo_n "(cached) " >&6
7795 else
7796   ac_check_lib_save_LIBS=$LIBS
7797 LIBS="-lposix  $LIBS"
7798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7799 /* end confdefs.h.  */
7800
7801 /* Override any GCC internal prototype to avoid an error.
7802    Use char because int might match the return type of a GCC
7803    builtin and then its argument prototype would still apply.  */
7804 #ifdef __cplusplus
7805 extern "C"
7806 #endif
7807 char remove ();
7808 int
7809 main ()
7810 {
7811 return remove ();
7812   ;
7813   return 0;
7814 }
7815 _ACEOF
7816 if ac_fn_c_try_link "$LINENO"; then :
7817   ac_cv_lib_posix_remove=yes
7818 else
7819   ac_cv_lib_posix_remove=no
7820 fi
7821 rm -f core conftest.err conftest.$ac_objext \
7822     conftest$ac_exeext conftest.$ac_ext
7823 LIBS=$ac_check_lib_save_LIBS
7824 fi
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
7826 $as_echo "$ac_cv_lib_posix_remove" >&6; }
7827 if test "x$ac_cv_lib_posix_remove" = xyes; then :
7828   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7829 fi
7830
7831     fi
7832
7833     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7834     ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
7835 if test "x$ac_cv_func_shmat" = xyes; then :
7836
7837 fi
7838
7839     if test $ac_cv_func_shmat = no; then
7840       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
7841 $as_echo_n "checking for shmat in -lipc... " >&6; }
7842 if ${ac_cv_lib_ipc_shmat+:} false; then :
7843   $as_echo_n "(cached) " >&6
7844 else
7845   ac_check_lib_save_LIBS=$LIBS
7846 LIBS="-lipc  $LIBS"
7847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7848 /* end confdefs.h.  */
7849
7850 /* Override any GCC internal prototype to avoid an error.
7851    Use char because int might match the return type of a GCC
7852    builtin and then its argument prototype would still apply.  */
7853 #ifdef __cplusplus
7854 extern "C"
7855 #endif
7856 char shmat ();
7857 int
7858 main ()
7859 {
7860 return shmat ();
7861   ;
7862   return 0;
7863 }
7864 _ACEOF
7865 if ac_fn_c_try_link "$LINENO"; then :
7866   ac_cv_lib_ipc_shmat=yes
7867 else
7868   ac_cv_lib_ipc_shmat=no
7869 fi
7870 rm -f core conftest.err conftest.$ac_objext \
7871     conftest$ac_exeext conftest.$ac_ext
7872 LIBS=$ac_check_lib_save_LIBS
7873 fi
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
7875 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
7876 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
7877   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7878 fi
7879
7880     fi
7881   fi
7882
7883   # Check for libraries that X11R6 Xt/Xaw programs need.
7884   ac_save_LDFLAGS=$LDFLAGS
7885   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7886   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7887   # check for ICE first), but we must link in the order -lSM -lICE or
7888   # we get undefined symbols.  So assume we have SM if we have ICE.
7889   # These have to be linked with before -lX11, unlike the other
7890   # libraries we check for below, so use a different variable.
7891   # John Interrante, Karl Berry
7892   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
7893 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
7894 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
7895   $as_echo_n "(cached) " >&6
7896 else
7897   ac_check_lib_save_LIBS=$LIBS
7898 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7900 /* end confdefs.h.  */
7901
7902 /* Override any GCC internal prototype to avoid an error.
7903    Use char because int might match the return type of a GCC
7904    builtin and then its argument prototype would still apply.  */
7905 #ifdef __cplusplus
7906 extern "C"
7907 #endif
7908 char IceConnectionNumber ();
7909 int
7910 main ()
7911 {
7912 return IceConnectionNumber ();
7913   ;
7914   return 0;
7915 }
7916 _ACEOF
7917 if ac_fn_c_try_link "$LINENO"; then :
7918   ac_cv_lib_ICE_IceConnectionNumber=yes
7919 else
7920   ac_cv_lib_ICE_IceConnectionNumber=no
7921 fi
7922 rm -f core conftest.err conftest.$ac_objext \
7923     conftest$ac_exeext conftest.$ac_ext
7924 LIBS=$ac_check_lib_save_LIBS
7925 fi
7926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7927 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
7928 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
7929   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7930 fi
7931
7932   LDFLAGS=$ac_save_LDFLAGS
7933
7934 fi
7935
7936
7937 if test "$have_x" = "yes"
7938 then
7939     XLIB="-lX11"
7940     ac_save_CPPFLAGS="$CPPFLAGS"
7941     CPPFLAGS="$CPPFLAGS $X_CFLAGS"
7942
7943     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lX11" >&5
7944 $as_echo_n "checking for -lX11... " >&6; }
7945 if ${ac_cv_lib_soname_X11+:} false; then :
7946   $as_echo_n "(cached) " >&6
7947 else
7948   ac_check_soname_save_LIBS=$LIBS
7949 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
7950   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7951 /* end confdefs.h.  */
7952
7953 /* Override any GCC internal prototype to avoid an error.
7954    Use char because int might match the return type of a GCC
7955    builtin and then its argument prototype would still apply.  */
7956 #ifdef __cplusplus
7957 extern "C"
7958 #endif
7959 char XCreateWindow ();
7960 int
7961 main ()
7962 {
7963 return XCreateWindow ();
7964   ;
7965   return 0;
7966 }
7967 _ACEOF
7968 if ac_fn_c_try_link "$LINENO"; then :
7969   case "$LIBEXT" in
7970     dll) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest.exe | grep "X11" | sed -e "s/dll.*/dll/"';2,$d'` ;;
7971     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'` ;;
7972     *) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep "libX11\\.$LIBEXT" | sed -e "s/^.*\(libX11\.$LIBEXT[^     ]*\).*$/\1/"';2,$d'` ;;
7973   esac
7974 fi
7975 rm -f core conftest.err conftest.$ac_objext \
7976     conftest$ac_exeext conftest.$ac_ext
7977   LIBS=$ac_check_soname_save_LIBS
7978 fi
7979 if test "x$ac_cv_lib_soname_X11" = "x"; then :
7980   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7981 $as_echo "not found" >&6; }
7982
7983 else
7984   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_X11" >&5
7985 $as_echo "$ac_cv_lib_soname_X11" >&6; }
7986
7987 cat >>confdefs.h <<_ACEOF
7988 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
7989 _ACEOF
7990
7991
7992 fi
7993     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXext" >&5
7994 $as_echo_n "checking for -lXext... " >&6; }
7995 if ${ac_cv_lib_soname_Xext+:} false; then :
7996   $as_echo_n "(cached) " >&6
7997 else
7998   ac_check_soname_save_LIBS=$LIBS
7999 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
8000   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8001 /* end confdefs.h.  */
8002
8003 /* Override any GCC internal prototype to avoid an error.
8004    Use char because int might match the return type of a GCC
8005    builtin and then its argument prototype would still apply.  */
8006 #ifdef __cplusplus
8007 extern "C"
8008 #endif
8009 char XextCreateExtension ();
8010 int
8011 main ()
8012 {
8013 return XextCreateExtension ();
8014   ;
8015   return 0;
8016 }
8017 _ACEOF
8018 if ac_fn_c_try_link "$LINENO"; then :
8019   case "$LIBEXT" in
8020     dll) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest.exe | grep "Xext" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8021     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'` ;;
8022     *) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXext\\.$LIBEXT" | sed -e "s/^.*\(libXext\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
8023   esac
8024 fi
8025 rm -f core conftest.err conftest.$ac_objext \
8026     conftest$ac_exeext conftest.$ac_ext
8027   LIBS=$ac_check_soname_save_LIBS
8028 fi
8029 if test "x$ac_cv_lib_soname_Xext" = "x"; then :
8030   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8031 $as_echo "not found" >&6; }
8032
8033 else
8034   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xext" >&5
8035 $as_echo "$ac_cv_lib_soname_Xext" >&6; }
8036
8037 cat >>confdefs.h <<_ACEOF
8038 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
8039 _ACEOF
8040
8041        XLIB="-lXext $XLIB"
8042 fi
8043
8044         for ac_header in X11/Xlib.h \
8045                       X11/XKBlib.h \
8046                       X11/Xutil.h \
8047                       X11/Xcursor/Xcursor.h \
8048                       X11/extensions/shape.h \
8049                       X11/extensions/XInput.h \
8050                       X11/extensions/XInput2.h \
8051                       X11/extensions/Xcomposite.h \
8052                       X11/extensions/Xinerama.h \
8053                       X11/extensions/Xrandr.h \
8054                       X11/extensions/Xrender.h \
8055                       X11/extensions/xf86vmode.h \
8056                       X11/extensions/xf86vmproto.h
8057 do :
8058   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8059 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_X11_XLIB_H
8060 # include <X11/Xlib.h>
8061 #endif
8062 #ifdef HAVE_X11_XUTIL_H
8063 # include <X11/Xutil.h>
8064 #endif
8065 "
8066 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8067   cat >>confdefs.h <<_ACEOF
8068 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8069 _ACEOF
8070
8071 fi
8072
8073 done
8074
8075
8076                 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
8077         then
8078               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbQueryExtension in -lX11" >&5
8079 $as_echo_n "checking for XkbQueryExtension in -lX11... " >&6; }
8080 if ${ac_cv_lib_X11_XkbQueryExtension+:} false; then :
8081   $as_echo_n "(cached) " >&6
8082 else
8083   ac_check_lib_save_LIBS=$LIBS
8084 LIBS="-lX11 $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8086 /* end confdefs.h.  */
8087
8088 /* Override any GCC internal prototype to avoid an error.
8089    Use char because int might match the return type of a GCC
8090    builtin and then its argument prototype would still apply.  */
8091 #ifdef __cplusplus
8092 extern "C"
8093 #endif
8094 char XkbQueryExtension ();
8095 int
8096 main ()
8097 {
8098 return XkbQueryExtension ();
8099   ;
8100   return 0;
8101 }
8102 _ACEOF
8103 if ac_fn_c_try_link "$LINENO"; then :
8104   ac_cv_lib_X11_XkbQueryExtension=yes
8105 else
8106   ac_cv_lib_X11_XkbQueryExtension=no
8107 fi
8108 rm -f core conftest.err conftest.$ac_objext \
8109     conftest$ac_exeext conftest.$ac_ext
8110 LIBS=$ac_check_lib_save_LIBS
8111 fi
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
8113 $as_echo "$ac_cv_lib_X11_XkbQueryExtension" >&6; }
8114 if test "x$ac_cv_lib_X11_XkbQueryExtension" = xyes; then :
8115
8116 $as_echo "#define HAVE_XKB 1" >>confdefs.h
8117
8118 fi
8119
8120         fi
8121
8122                 if test "$ac_cv_header_X11_Xcursor_Xcursor_h" = "yes"
8123         then
8124             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcursor" >&5
8125 $as_echo_n "checking for -lXcursor... " >&6; }
8126 if ${ac_cv_lib_soname_Xcursor+:} false; then :
8127   $as_echo_n "(cached) " >&6
8128 else
8129   ac_check_soname_save_LIBS=$LIBS
8130 LIBS="-lXcursor $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8131   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8132 /* end confdefs.h.  */
8133
8134 /* Override any GCC internal prototype to avoid an error.
8135    Use char because int might match the return type of a GCC
8136    builtin and then its argument prototype would still apply.  */
8137 #ifdef __cplusplus
8138 extern "C"
8139 #endif
8140 char XcursorImageLoadCursor ();
8141 int
8142 main ()
8143 {
8144 return XcursorImageLoadCursor ();
8145   ;
8146   return 0;
8147 }
8148 _ACEOF
8149 if ac_fn_c_try_link "$LINENO"; then :
8150   case "$LIBEXT" in
8151     dll) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest.exe | grep "Xcursor" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8152     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'` ;;
8153     *) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXcursor\\.$LIBEXT" | sed -e "s/^.*\(libXcursor\.$LIBEXT[^         ]*\).*$/\1/"';2,$d'` ;;
8154   esac
8155 fi
8156 rm -f core conftest.err conftest.$ac_objext \
8157     conftest$ac_exeext conftest.$ac_ext
8158   LIBS=$ac_check_soname_save_LIBS
8159 fi
8160 if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
8161   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8162 $as_echo "not found" >&6; }
8163
8164 else
8165   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcursor" >&5
8166 $as_echo "$ac_cv_lib_soname_Xcursor" >&6; }
8167
8168 cat >>confdefs.h <<_ACEOF
8169 #define SONAME_LIBXCURSOR "$ac_cv_lib_soname_Xcursor"
8170 _ACEOF
8171
8172
8173 fi
8174         fi
8175         if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
8176   case "x$with_xcursor" in
8177   x)   as_fn_append wine_notices "|libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported." ;;
8178   xno) ;;
8179   *)   as_fn_error $? "libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported.
8180 This is an error since --with-xcursor was requested." "$LINENO" 5 ;;
8181 esac
8182 fi
8183
8184                 if test "$ac_cv_header_X11_extensions_XInput_h" = "yes"
8185         then
8186             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXi" >&5
8187 $as_echo_n "checking for -lXi... " >&6; }
8188 if ${ac_cv_lib_soname_Xi+:} false; then :
8189   $as_echo_n "(cached) " >&6
8190 else
8191   ac_check_soname_save_LIBS=$LIBS
8192 LIBS="-lXi $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8193   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8194 /* end confdefs.h.  */
8195
8196 /* Override any GCC internal prototype to avoid an error.
8197    Use char because int might match the return type of a GCC
8198    builtin and then its argument prototype would still apply.  */
8199 #ifdef __cplusplus
8200 extern "C"
8201 #endif
8202 char XOpenDevice ();
8203 int
8204 main ()
8205 {
8206 return XOpenDevice ();
8207   ;
8208   return 0;
8209 }
8210 _ACEOF
8211 if ac_fn_c_try_link "$LINENO"; then :
8212   case "$LIBEXT" in
8213     dll) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest.exe | grep "Xi" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8214     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'` ;;
8215     *) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXi\\.$LIBEXT" | sed -e "s/^.*\(libXi\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'` ;;
8216   esac
8217 fi
8218 rm -f core conftest.err conftest.$ac_objext \
8219     conftest$ac_exeext conftest.$ac_ext
8220   LIBS=$ac_check_soname_save_LIBS
8221 fi
8222 if test "x$ac_cv_lib_soname_Xi" = "x"; then :
8223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8224 $as_echo "not found" >&6; }
8225
8226 else
8227   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xi" >&5
8228 $as_echo "$ac_cv_lib_soname_Xi" >&6; }
8229
8230 cat >>confdefs.h <<_ACEOF
8231 #define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
8232 _ACEOF
8233
8234
8235 fi
8236         fi
8237         if test "x$ac_cv_lib_soname_Xi" = "x"; then :
8238   case "x$with_xinput" in
8239   x)   as_fn_append wine_notices "|libxi ${notice_platform}development files not found, the Xinput extension won't be supported." ;;
8240   xno) ;;
8241   *)   as_fn_error $? "libxi ${notice_platform}development files not found, the Xinput extension won't be supported.
8242 This is an error since --with-xinput was requested." "$LINENO" 5 ;;
8243 esac
8244 fi
8245
8246                 if test "x$ac_cv_lib_soname_Xi" != x
8247         then
8248             if test "$ac_cv_header_X11_extensions_XInput2_h" != "yes"; then :
8249   case "x$with_xinput2" in
8250   x)   as_fn_append wine_notices "|XInput2 headers not found, the XInput 2 extension won't be supported." ;;
8251   xno) ;;
8252   *)   as_fn_error $? "XInput2 headers not found, the XInput 2 extension won't be supported.
8253 This is an error since --with-xinput2 was requested." "$LINENO" 5 ;;
8254 esac
8255 fi
8256         fi
8257
8258                 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
8259         then
8260               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
8261 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
8262 if ${ac_cv_lib_Xext_XShapeQueryExtension+:} false; then :
8263   $as_echo_n "(cached) " >&6
8264 else
8265   ac_check_lib_save_LIBS=$LIBS
8266 LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8268 /* end confdefs.h.  */
8269
8270 /* Override any GCC internal prototype to avoid an error.
8271    Use char because int might match the return type of a GCC
8272    builtin and then its argument prototype would still apply.  */
8273 #ifdef __cplusplus
8274 extern "C"
8275 #endif
8276 char XShapeQueryExtension ();
8277 int
8278 main ()
8279 {
8280 return XShapeQueryExtension ();
8281   ;
8282   return 0;
8283 }
8284 _ACEOF
8285 if ac_fn_c_try_link "$LINENO"; then :
8286   ac_cv_lib_Xext_XShapeQueryExtension=yes
8287 else
8288   ac_cv_lib_Xext_XShapeQueryExtension=no
8289 fi
8290 rm -f core conftest.err conftest.$ac_objext \
8291     conftest$ac_exeext conftest.$ac_ext
8292 LIBS=$ac_check_lib_save_LIBS
8293 fi
8294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8295 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
8296 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = xyes; then :
8297
8298 $as_echo "#define HAVE_LIBXSHAPE 1" >>confdefs.h
8299
8300 fi
8301
8302         fi
8303         if test "$ac_cv_lib_Xext_XShapeQueryExtension" != "yes"; then :
8304   case "x$with_xshape" in
8305   x)   as_fn_append wine_notices "|XShape ${notice_platform}development files not found, XShape won't be supported." ;;
8306   xno) ;;
8307   *)   as_fn_error $? "XShape ${notice_platform}development files not found, XShape won't be supported.
8308 This is an error since --with-xshape was requested." "$LINENO" 5 ;;
8309 esac
8310 fi
8311
8312                 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes" -o "$ac_cv_header_X11_extensions_xf86vmproto_h" = "yes"
8313         then
8314             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXxf86vm" >&5
8315 $as_echo_n "checking for -lXxf86vm... " >&6; }
8316 if ${ac_cv_lib_soname_Xxf86vm+:} false; then :
8317   $as_echo_n "(cached) " >&6
8318 else
8319   ac_check_soname_save_LIBS=$LIBS
8320 LIBS="-lXxf86vm $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8321   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8322 /* end confdefs.h.  */
8323
8324 /* Override any GCC internal prototype to avoid an error.
8325    Use char because int might match the return type of a GCC
8326    builtin and then its argument prototype would still apply.  */
8327 #ifdef __cplusplus
8328 extern "C"
8329 #endif
8330 char XF86VidModeQueryExtension ();
8331 int
8332 main ()
8333 {
8334 return XF86VidModeQueryExtension ();
8335   ;
8336   return 0;
8337 }
8338 _ACEOF
8339 if ac_fn_c_try_link "$LINENO"; then :
8340   case "$LIBEXT" in
8341     dll) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest.exe | grep "Xxf86vm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8342     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'` ;;
8343     *) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXxf86vm\\.$LIBEXT" | sed -e "s/^.*\(libXxf86vm\.$LIBEXT[^         ]*\).*$/\1/"';2,$d'` ;;
8344   esac
8345 fi
8346 rm -f core conftest.err conftest.$ac_objext \
8347     conftest$ac_exeext conftest.$ac_ext
8348   LIBS=$ac_check_soname_save_LIBS
8349 fi
8350 if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
8351   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8352 $as_echo "not found" >&6; }
8353
8354 else
8355   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xxf86vm" >&5
8356 $as_echo "$ac_cv_lib_soname_Xxf86vm" >&6; }
8357
8358 cat >>confdefs.h <<_ACEOF
8359 #define SONAME_LIBXXF86VM "$ac_cv_lib_soname_Xxf86vm"
8360 _ACEOF
8361
8362
8363 fi
8364         fi
8365         if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
8366   case "x$with_xxf86vm" in
8367   x)   as_fn_append wine_notices "|libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported." ;;
8368   xno) ;;
8369   *)   as_fn_error $? "libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported.
8370 This is an error since --with-xxf86vm was requested." "$LINENO" 5 ;;
8371 esac
8372 fi
8373
8374                 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"
8375         then
8376             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrender" >&5
8377 $as_echo_n "checking for -lXrender... " >&6; }
8378 if ${ac_cv_lib_soname_Xrender+:} false; then :
8379   $as_echo_n "(cached) " >&6
8380 else
8381   ac_check_soname_save_LIBS=$LIBS
8382 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8383   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8384 /* end confdefs.h.  */
8385
8386 /* Override any GCC internal prototype to avoid an error.
8387    Use char because int might match the return type of a GCC
8388    builtin and then its argument prototype would still apply.  */
8389 #ifdef __cplusplus
8390 extern "C"
8391 #endif
8392 char XRenderQueryExtension ();
8393 int
8394 main ()
8395 {
8396 return XRenderQueryExtension ();
8397   ;
8398   return 0;
8399 }
8400 _ACEOF
8401 if ac_fn_c_try_link "$LINENO"; then :
8402   case "$LIBEXT" in
8403     dll) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest.exe | grep "Xrender" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8404     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'` ;;
8405     *) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXrender\\.$LIBEXT" | sed -e "s/^.*\(libXrender\.$LIBEXT[^         ]*\).*$/\1/"';2,$d'` ;;
8406   esac
8407 fi
8408 rm -f core conftest.err conftest.$ac_objext \
8409     conftest$ac_exeext conftest.$ac_ext
8410   LIBS=$ac_check_soname_save_LIBS
8411 fi
8412 if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
8413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8414 $as_echo "not found" >&6; }
8415
8416 else
8417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrender" >&5
8418 $as_echo "$ac_cv_lib_soname_Xrender" >&6; }
8419
8420 cat >>confdefs.h <<_ACEOF
8421 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
8422 _ACEOF
8423
8424        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderSetPictureTransform in -lXrender" >&5
8425 $as_echo_n "checking for XRenderSetPictureTransform in -lXrender... " >&6; }
8426 if ${ac_cv_lib_Xrender_XRenderSetPictureTransform+:} false; then :
8427   $as_echo_n "(cached) " >&6
8428 else
8429   ac_check_lib_save_LIBS=$LIBS
8430 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8432 /* end confdefs.h.  */
8433
8434 /* Override any GCC internal prototype to avoid an error.
8435    Use char because int might match the return type of a GCC
8436    builtin and then its argument prototype would still apply.  */
8437 #ifdef __cplusplus
8438 extern "C"
8439 #endif
8440 char XRenderSetPictureTransform ();
8441 int
8442 main ()
8443 {
8444 return XRenderSetPictureTransform ();
8445   ;
8446   return 0;
8447 }
8448 _ACEOF
8449 if ac_fn_c_try_link "$LINENO"; then :
8450   ac_cv_lib_Xrender_XRenderSetPictureTransform=yes
8451 else
8452   ac_cv_lib_Xrender_XRenderSetPictureTransform=no
8453 fi
8454 rm -f core conftest.err conftest.$ac_objext \
8455     conftest$ac_exeext conftest.$ac_ext
8456 LIBS=$ac_check_lib_save_LIBS
8457 fi
8458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5
8459 $as_echo "$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6; }
8460 if test "x$ac_cv_lib_Xrender_XRenderSetPictureTransform" = xyes; then :
8461
8462 $as_echo "#define HAVE_XRENDERSETPICTURETRANSFORM 1" >>confdefs.h
8463
8464 fi
8465
8466                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderCreateLinearGradient in -lXrender" >&5
8467 $as_echo_n "checking for XRenderCreateLinearGradient in -lXrender... " >&6; }
8468 if ${ac_cv_lib_Xrender_XRenderCreateLinearGradient+:} false; then :
8469   $as_echo_n "(cached) " >&6
8470 else
8471   ac_check_lib_save_LIBS=$LIBS
8472 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8474 /* end confdefs.h.  */
8475
8476 /* Override any GCC internal prototype to avoid an error.
8477    Use char because int might match the return type of a GCC
8478    builtin and then its argument prototype would still apply.  */
8479 #ifdef __cplusplus
8480 extern "C"
8481 #endif
8482 char XRenderCreateLinearGradient ();
8483 int
8484 main ()
8485 {
8486 return XRenderCreateLinearGradient ();
8487   ;
8488   return 0;
8489 }
8490 _ACEOF
8491 if ac_fn_c_try_link "$LINENO"; then :
8492   ac_cv_lib_Xrender_XRenderCreateLinearGradient=yes
8493 else
8494   ac_cv_lib_Xrender_XRenderCreateLinearGradient=no
8495 fi
8496 rm -f core conftest.err conftest.$ac_objext \
8497     conftest$ac_exeext conftest.$ac_ext
8498 LIBS=$ac_check_lib_save_LIBS
8499 fi
8500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderCreateLinearGradient" >&5
8501 $as_echo "$ac_cv_lib_Xrender_XRenderCreateLinearGradient" >&6; }
8502 if test "x$ac_cv_lib_Xrender_XRenderCreateLinearGradient" = xyes; then :
8503
8504 $as_echo "#define HAVE_XRENDERCREATELINEARGRADIENT 1" >>confdefs.h
8505
8506 fi
8507
8508 fi
8509
8510         fi
8511         if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
8512   case "x$with_xrender" in
8513   x)   as_fn_append wine_warnings "|libxrender ${notice_platform}development files not found, XRender won't be supported." ;;
8514   xno) ;;
8515   *)   as_fn_error $? "libxrender ${notice_platform}development files not found, XRender won't be supported.
8516 This is an error since --with-xrender was requested." "$LINENO" 5 ;;
8517 esac
8518 fi
8519
8520                 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes" -a "x$ac_cv_lib_soname_Xrender" != "x"
8521         then
8522                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8523 /* end confdefs.h.  */
8524 #include <X11/Xlib.h>
8525 #include <X11/extensions/Xrandr.h>
8526 int
8527 main ()
8528 {
8529 static typeof(XRRSetScreenConfigAndRate) * func; if (func) return 0;
8530   ;
8531   return 0;
8532 }
8533 _ACEOF
8534 if ac_fn_c_try_compile "$LINENO"; then :
8535   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrandr" >&5
8536 $as_echo_n "checking for -lXrandr... " >&6; }
8537 if ${ac_cv_lib_soname_Xrandr+:} false; then :
8538   $as_echo_n "(cached) " >&6
8539 else
8540   ac_check_soname_save_LIBS=$LIBS
8541 LIBS="-lXrandr $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8542   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8543 /* end confdefs.h.  */
8544
8545 /* Override any GCC internal prototype to avoid an error.
8546    Use char because int might match the return type of a GCC
8547    builtin and then its argument prototype would still apply.  */
8548 #ifdef __cplusplus
8549 extern "C"
8550 #endif
8551 char XRRQueryExtension ();
8552 int
8553 main ()
8554 {
8555 return XRRQueryExtension ();
8556   ;
8557   return 0;
8558 }
8559 _ACEOF
8560 if ac_fn_c_try_link "$LINENO"; then :
8561   case "$LIBEXT" in
8562     dll) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest.exe | grep "Xrandr" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8563     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'` ;;
8564     *) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXrandr\\.$LIBEXT" | sed -e "s/^.*\(libXrandr\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'` ;;
8565   esac
8566 fi
8567 rm -f core conftest.err conftest.$ac_objext \
8568     conftest$ac_exeext conftest.$ac_ext
8569   LIBS=$ac_check_soname_save_LIBS
8570 fi
8571 if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
8572   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8573 $as_echo "not found" >&6; }
8574
8575 else
8576   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrandr" >&5
8577 $as_echo "$ac_cv_lib_soname_Xrandr" >&6; }
8578
8579 cat >>confdefs.h <<_ACEOF
8580 #define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
8581 _ACEOF
8582
8583
8584 fi
8585 fi
8586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8587         fi
8588         if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
8589   case "x$with_xrandr" in
8590   x)   as_fn_append wine_notices "|libxrandr ${notice_platform}development files not found, XRandr won't be supported." ;;
8591   xno) ;;
8592   *)   as_fn_error $? "libxrandr ${notice_platform}development files not found, XRandr won't be supported.
8593 This is an error since --with-xrandr was requested." "$LINENO" 5 ;;
8594 esac
8595 fi
8596
8597                 if test "$ac_cv_header_X11_extensions_Xinerama_h" = "yes"
8598         then
8599                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8600 /* end confdefs.h.  */
8601 #include <X11/Xlib.h>
8602 #include <X11/extensions/Xinerama.h>
8603 int
8604 main ()
8605 {
8606 static typeof(XineramaQueryScreens) * func; if (func) return 0;
8607   ;
8608   return 0;
8609 }
8610 _ACEOF
8611 if ac_fn_c_try_compile "$LINENO"; then :
8612   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXinerama" >&5
8613 $as_echo_n "checking for -lXinerama... " >&6; }
8614 if ${ac_cv_lib_soname_Xinerama+:} false; then :
8615   $as_echo_n "(cached) " >&6
8616 else
8617   ac_check_soname_save_LIBS=$LIBS
8618 LIBS="-lXinerama $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8619   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8620 /* end confdefs.h.  */
8621
8622 /* Override any GCC internal prototype to avoid an error.
8623    Use char because int might match the return type of a GCC
8624    builtin and then its argument prototype would still apply.  */
8625 #ifdef __cplusplus
8626 extern "C"
8627 #endif
8628 char XineramaQueryScreens ();
8629 int
8630 main ()
8631 {
8632 return XineramaQueryScreens ();
8633   ;
8634   return 0;
8635 }
8636 _ACEOF
8637 if ac_fn_c_try_link "$LINENO"; then :
8638   case "$LIBEXT" in
8639     dll) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest.exe | grep "Xinerama" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8640     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'` ;;
8641     *) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXinerama\\.$LIBEXT" | sed -e "s/^.*\(libXinerama\.$LIBEXT[^      ]*\).*$/\1/"';2,$d'` ;;
8642   esac
8643 fi
8644 rm -f core conftest.err conftest.$ac_objext \
8645     conftest$ac_exeext conftest.$ac_ext
8646   LIBS=$ac_check_soname_save_LIBS
8647 fi
8648 if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
8649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8650 $as_echo "not found" >&6; }
8651
8652 else
8653   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xinerama" >&5
8654 $as_echo "$ac_cv_lib_soname_Xinerama" >&6; }
8655
8656 cat >>confdefs.h <<_ACEOF
8657 #define SONAME_LIBXINERAMA "$ac_cv_lib_soname_Xinerama"
8658 _ACEOF
8659
8660
8661 fi
8662 fi
8663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8664         fi
8665         if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
8666   case "x$with_xinerama" in
8667   x)   as_fn_append wine_notices "|libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported." ;;
8668   xno) ;;
8669   *)   as_fn_error $? "libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported.
8670 This is an error since --with-xinerama was requested." "$LINENO" 5 ;;
8671 esac
8672 fi
8673
8674                 if test "$ac_cv_header_X11_extensions_Xcomposite_h" = "yes"
8675         then
8676             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcomposite" >&5
8677 $as_echo_n "checking for -lXcomposite... " >&6; }
8678 if ${ac_cv_lib_soname_Xcomposite+:} false; then :
8679   $as_echo_n "(cached) " >&6
8680 else
8681   ac_check_soname_save_LIBS=$LIBS
8682 LIBS="-lXcomposite $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8683   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8684 /* end confdefs.h.  */
8685
8686 /* Override any GCC internal prototype to avoid an error.
8687    Use char because int might match the return type of a GCC
8688    builtin and then its argument prototype would still apply.  */
8689 #ifdef __cplusplus
8690 extern "C"
8691 #endif
8692 char XCompositeRedirectWindow ();
8693 int
8694 main ()
8695 {
8696 return XCompositeRedirectWindow ();
8697   ;
8698   return 0;
8699 }
8700 _ACEOF
8701 if ac_fn_c_try_link "$LINENO"; then :
8702   case "$LIBEXT" in
8703     dll) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest.exe | grep "Xcomposite" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8704     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'` ;;
8705     *) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXcomposite\\.$LIBEXT" | sed -e "s/^.*\(libXcomposite\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'` ;;
8706   esac
8707 fi
8708 rm -f core conftest.err conftest.$ac_objext \
8709     conftest$ac_exeext conftest.$ac_ext
8710   LIBS=$ac_check_soname_save_LIBS
8711 fi
8712 if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
8713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8714 $as_echo "not found" >&6; }
8715
8716 else
8717   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcomposite" >&5
8718 $as_echo "$ac_cv_lib_soname_Xcomposite" >&6; }
8719
8720 cat >>confdefs.h <<_ACEOF
8721 #define SONAME_LIBXCOMPOSITE "$ac_cv_lib_soname_Xcomposite"
8722 _ACEOF
8723
8724
8725 fi
8726         fi
8727         if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
8728   case "x$with_xcomposite" in
8729   x)   as_fn_append wine_notices "|libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported." ;;
8730   xno) ;;
8731   *)   as_fn_error $? "libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported.
8732 This is an error since --with-xcomposite was requested." "$LINENO" 5 ;;
8733 esac
8734 fi
8735
8736                 ac_fn_c_check_member "$LINENO" "XICCallback" "callback" "ac_cv_member_XICCallback_callback" "#ifdef HAVE_X11_XLIB_H
8737 #include <X11/Xlib.h>
8738 #endif
8739 "
8740 if test "x$ac_cv_member_XICCallback_callback" = xyes; then :
8741
8742 cat >>confdefs.h <<_ACEOF
8743 #define HAVE_XICCALLBACK_CALLBACK 1
8744 _ACEOF
8745
8746
8747 fi
8748 ac_fn_c_check_member "$LINENO" "XEvent" "xcookie" "ac_cv_member_XEvent_xcookie" "#ifdef HAVE_X11_XLIB_H
8749 #include <X11/Xlib.h>
8750 #endif
8751 "
8752 if test "x$ac_cv_member_XEvent_xcookie" = xyes; then :
8753
8754 cat >>confdefs.h <<_ACEOF
8755 #define HAVE_XEVENT_XCOOKIE 1
8756 _ACEOF
8757
8758
8759 fi
8760
8761
8762
8763         opengl_msg=""
8764     if test "x$with_opengl" != "xno"
8765     then
8766         for ac_header in GL/gl.h GL/glx.h GL/glu.h
8767 do :
8768   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8769 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_GL_GLX_H
8770 # include <GL/glx.h>
8771 #endif
8772 "
8773 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8774   cat >>confdefs.h <<_ACEOF
8775 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8776 _ACEOF
8777
8778 fi
8779
8780 done
8781
8782         if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
8783         then
8784                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for up-to-date OpenGL version" >&5
8785 $as_echo_n "checking for up-to-date OpenGL version... " >&6; }
8786 if ${wine_cv_opengl_header_version_OK+:} false; then :
8787   $as_echo_n "(cached) " >&6
8788 else
8789   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8790 /* end confdefs.h.  */
8791 #include <GL/gl.h>
8792 int
8793 main ()
8794 {
8795 GLenum test = GL_UNSIGNED_SHORT_5_6_5;  return (test == GL_UNSIGNED_SHORT_5_6_5);
8796   ;
8797   return 0;
8798 }
8799 _ACEOF
8800 if ac_fn_c_try_compile "$LINENO"; then :
8801   wine_cv_opengl_header_version_OK="yes"
8802 else
8803   wine_cv_opengl_header_version_OK="no"
8804 fi
8805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8806 fi
8807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_opengl_header_version_OK" >&5
8808 $as_echo "$wine_cv_opengl_header_version_OK" >&6; }
8809
8810             if test "$wine_cv_opengl_header_version_OK" = "yes"
8811             then
8812                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
8813 $as_echo_n "checking for -lGL... " >&6; }
8814 if ${ac_cv_lib_soname_GL+:} false; then :
8815   $as_echo_n "(cached) " >&6
8816 else
8817   ac_check_soname_save_LIBS=$LIBS
8818 LIBS="-lGL $X_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
8819   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8820 /* end confdefs.h.  */
8821
8822 /* Override any GCC internal prototype to avoid an error.
8823    Use char because int might match the return type of a GCC
8824    builtin and then its argument prototype would still apply.  */
8825 #ifdef __cplusplus
8826 extern "C"
8827 #endif
8828 char glXCreateContext ();
8829 int
8830 main ()
8831 {
8832 return glXCreateContext ();
8833   ;
8834   return 0;
8835 }
8836 _ACEOF
8837 if ac_fn_c_try_link "$LINENO"; then :
8838   case "$LIBEXT" in
8839     dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8840     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'` ;;
8841     *) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'` ;;
8842   esac
8843 fi
8844 rm -f core conftest.err conftest.$ac_objext \
8845     conftest$ac_exeext conftest.$ac_ext
8846   LIBS=$ac_check_soname_save_LIBS
8847 fi
8848 if test "x$ac_cv_lib_soname_GL" = "x"; then :
8849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8850 $as_echo "not found" >&6; }
8851        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
8852 $as_echo_n "checking for -lGL... " >&6; }
8853 if ${ac_cv_lib_soname_GL+:} false; then :
8854   $as_echo_n "(cached) " >&6
8855 else
8856   ac_check_soname_save_LIBS=$LIBS
8857 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"
8858   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8859 /* end confdefs.h.  */
8860
8861 /* Override any GCC internal prototype to avoid an error.
8862    Use char because int might match the return type of a GCC
8863    builtin and then its argument prototype would still apply.  */
8864 #ifdef __cplusplus
8865 extern "C"
8866 #endif
8867 char glXCreateContext ();
8868 int
8869 main ()
8870 {
8871 return glXCreateContext ();
8872   ;
8873   return 0;
8874 }
8875 _ACEOF
8876 if ac_fn_c_try_link "$LINENO"; then :
8877   case "$LIBEXT" in
8878     dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8879     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'` ;;
8880     *) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'` ;;
8881   esac
8882 fi
8883 rm -f core conftest.err conftest.$ac_objext \
8884     conftest$ac_exeext conftest.$ac_ext
8885   LIBS=$ac_check_soname_save_LIBS
8886 fi
8887 if test "x$ac_cv_lib_soname_GL" = "x"; then :
8888   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8889 $as_echo "not found" >&6; }
8890        if test -f /usr/X11R6/lib/libGL.a
8891                                     then
8892                                         opengl_msg="/usr/X11R6/lib/libGL.a is present on your system.
8893 This probably prevents linking to OpenGL. Try deleting the file and restarting configure."
8894                                     else
8895                                         opengl_msg="No OpenGL library found on this system."
8896                                     fi
8897 else
8898   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
8899 $as_echo "$ac_cv_lib_soname_GL" >&6; }
8900
8901 cat >>confdefs.h <<_ACEOF
8902 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
8903 _ACEOF
8904
8905        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"
8906
8907 $as_echo "#define HAVE_OPENGL 1" >>confdefs.h
8908
8909 fi
8910 else
8911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
8912 $as_echo "$ac_cv_lib_soname_GL" >&6; }
8913
8914 cat >>confdefs.h <<_ACEOF
8915 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
8916 _ACEOF
8917
8918        OPENGL_LIBS="-lGL"
8919
8920 $as_echo "#define HAVE_OPENGL 1" >>confdefs.h
8921
8922 fi
8923                  if test "$ac_cv_header_GL_glu_h" = "yes"
8924                  then
8925                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGLU" >&5
8926 $as_echo_n "checking for -lGLU... " >&6; }
8927 if ${ac_cv_lib_soname_GLU+:} false; then :
8928   $as_echo_n "(cached) " >&6
8929 else
8930   ac_check_soname_save_LIBS=$LIBS
8931 LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
8932   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8933 /* end confdefs.h.  */
8934
8935 /* Override any GCC internal prototype to avoid an error.
8936    Use char because int might match the return type of a GCC
8937    builtin and then its argument prototype would still apply.  */
8938 #ifdef __cplusplus
8939 extern "C"
8940 #endif
8941 char gluLookAt ();
8942 int
8943 main ()
8944 {
8945 return gluLookAt ();
8946   ;
8947   return 0;
8948 }
8949 _ACEOF
8950 if ac_fn_c_try_link "$LINENO"; then :
8951   case "$LIBEXT" in
8952     dll) ac_cv_lib_soname_GLU=`$ac_cv_path_LDD conftest.exe | grep "GLU" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8953     dylib) ac_cv_lib_soname_GLU=`otool -L conftest$ac_exeext | grep "libGLU\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libGLU\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
8954     *) ac_cv_lib_soname_GLU=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGLU\\.$LIBEXT" | sed -e "s/^.*\(libGLU\.$LIBEXT[^     ]*\).*$/\1/"';2,$d'` ;;
8955   esac
8956 fi
8957 rm -f core conftest.err conftest.$ac_objext \
8958     conftest$ac_exeext conftest.$ac_ext
8959   LIBS=$ac_check_soname_save_LIBS
8960 fi
8961 if test "x$ac_cv_lib_soname_GLU" = "x"; then :
8962   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8963 $as_echo "not found" >&6; }
8964
8965 else
8966   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GLU" >&5
8967 $as_echo "$ac_cv_lib_soname_GLU" >&6; }
8968
8969 cat >>confdefs.h <<_ACEOF
8970 #define SONAME_LIBGLU "$ac_cv_lib_soname_GLU"
8971 _ACEOF
8972
8973
8974 fi
8975                  fi
8976                  if test "x$ac_cv_lib_soname_GLU" = "x"; then :
8977   case "x$with_glu" in
8978   x)   as_fn_append wine_notices "|libGLU ${notice_platform}development files not found, GLU won't be supported." ;;
8979   xno) ;;
8980   *)   as_fn_error $? "libGLU ${notice_platform}development files not found, GLU won't be supported.
8981 This is an error since --with-glu was requested." "$LINENO" 5 ;;
8982 esac
8983 fi
8984              else
8985                  opengl_msg="Old Mesa headers detected. Consider upgrading your Mesa libraries."
8986              fi
8987          else
8988              opengl_msg="OpenGL development headers not found."
8989          fi
8990          test -n "$opengl_msg" && enable_opengl32=${enable_opengl32:-no}
8991          test "x$ac_cv_lib_soname_GLU" = "x" && enable_glu32=${enable_glu32:-no}
8992     else
8993          enable_opengl32=${enable_opengl32:-no}
8994          enable_glu32=${enable_glu32:-no}
8995     fi
8996     if test -n "$opengl_msg"; then :
8997   case "x$with_opengl" in
8998   x)   as_fn_append wine_warnings "|$opengl_msg
8999 OpenGL and Direct3D won't be supported." ;;
9000   xno) ;;
9001   *)   as_fn_error $? "$opengl_msg
9002 OpenGL and Direct3D won't be supported.
9003 This is an error since --with-opengl was requested." "$LINENO" 5 ;;
9004 esac
9005 fi
9006
9007     CPPFLAGS="$ac_save_CPPFLAGS"
9008 else
9009     XLIB=""
9010     X_CFLAGS=""
9011     X_LIBS=""
9012     enable_winex11_drv=${enable_winex11_drv:-no}
9013     enable_opengl32=${enable_opengl32:-no}
9014     enable_glu32=${enable_glu32:-no}
9015 fi
9016 if test "x$XLIB" = "x"; then :
9017   case "x$with_x" in
9018   xno) ;;
9019   *)   as_fn_error $? "X ${notice_platform}development files not found. Wine will be built
9020 without X support, which probably isn't what you want. You will need
9021 to install ${notice_platform}development packages of Xlib/Xfree86 at the very least.
9022 Use the --without-x option if you really want this." "$LINENO" 5 ;;
9023 esac
9024 fi
9025
9026 if test "$ac_cv_header_CL_cl_h" = "yes"
9027 then
9028     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clGetPlatformInfo in -lOpenCL" >&5
9029 $as_echo_n "checking for clGetPlatformInfo in -lOpenCL... " >&6; }
9030 if ${ac_cv_lib_OpenCL_clGetPlatformInfo+:} false; then :
9031   $as_echo_n "(cached) " >&6
9032 else
9033   ac_check_lib_save_LIBS=$LIBS
9034 LIBS="-lOpenCL  $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 clGetPlatformInfo ();
9045 int
9046 main ()
9047 {
9048 return clGetPlatformInfo ();
9049   ;
9050   return 0;
9051 }
9052 _ACEOF
9053 if ac_fn_c_try_link "$LINENO"; then :
9054   ac_cv_lib_OpenCL_clGetPlatformInfo=yes
9055 else
9056   ac_cv_lib_OpenCL_clGetPlatformInfo=no
9057 fi
9058 rm -f core conftest.err conftest.$ac_objext \
9059     conftest$ac_exeext conftest.$ac_ext
9060 LIBS=$ac_check_lib_save_LIBS
9061 fi
9062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_OpenCL_clGetPlatformInfo" >&5
9063 $as_echo "$ac_cv_lib_OpenCL_clGetPlatformInfo" >&6; }
9064 if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" = xyes; then :
9065   LIBOPENCL="-lOpenCL"
9066
9067 fi
9068
9069 fi
9070 if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes; then :
9071   case "x$with_opencl" in
9072   x)   as_fn_append wine_notices "|OpenCL ${notice_platform}development files not found, OpenCL won't be supported." ;;
9073   xno) ;;
9074   *)   as_fn_error $? "OpenCL ${notice_platform}development files not found, OpenCL won't be supported.
9075 This is an error since --with-opencl was requested." "$LINENO" 5 ;;
9076 esac
9077 fi
9078 test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes && enable_opencl=${enable_opencl:-no}
9079
9080
9081 XML2LIBS=""
9082
9083 XML2INCL=""
9084
9085 XSLTINCL=""
9086
9087 if test "x$with_xml" != "xno"
9088 then
9089     ac_save_CPPFLAGS="$CPPFLAGS"
9090     if test "$PKG_CONFIG" != "false"
9091     then
9092         ac_xml_libs="`$PKG_CONFIG --libs libxml-2.0 2>/dev/null`"
9093         ac_xml_cflags="`$PKG_CONFIG --cflags libxml-2.0 2>/dev/null`"
9094     else
9095         ac_xml_libs="`xml2-config --libs 2>/dev/null`"
9096         ac_xml_cflags="`xml2-config --cflags  2>/dev/null`"
9097     fi
9098     CPPFLAGS="$CPPFLAGS $ac_xml_cflags"
9099     for ac_header in libxml/parser.h libxml/xmlsave.h libxml/SAX2.h
9100 do :
9101   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9102 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9103 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9104   cat >>confdefs.h <<_ACEOF
9105 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9106 _ACEOF
9107
9108 fi
9109
9110 done
9111
9112     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"
9113     then
9114         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseMemory in -lxml2" >&5
9115 $as_echo_n "checking for xmlParseMemory in -lxml2... " >&6; }
9116 if ${ac_cv_lib_xml2_xmlParseMemory+:} false; then :
9117   $as_echo_n "(cached) " >&6
9118 else
9119   ac_check_lib_save_LIBS=$LIBS
9120 LIBS="-lxml2 $ac_xml_libs $LIBS"
9121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9122 /* end confdefs.h.  */
9123
9124 /* Override any GCC internal prototype to avoid an error.
9125    Use char because int might match the return type of a GCC
9126    builtin and then its argument prototype would still apply.  */
9127 #ifdef __cplusplus
9128 extern "C"
9129 #endif
9130 char xmlParseMemory ();
9131 int
9132 main ()
9133 {
9134 return xmlParseMemory ();
9135   ;
9136   return 0;
9137 }
9138 _ACEOF
9139 if ac_fn_c_try_link "$LINENO"; then :
9140   ac_cv_lib_xml2_xmlParseMemory=yes
9141 else
9142   ac_cv_lib_xml2_xmlParseMemory=no
9143 fi
9144 rm -f core conftest.err conftest.$ac_objext \
9145     conftest$ac_exeext conftest.$ac_ext
9146 LIBS=$ac_check_lib_save_LIBS
9147 fi
9148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseMemory" >&5
9149 $as_echo "$ac_cv_lib_xml2_xmlParseMemory" >&6; }
9150 if test "x$ac_cv_lib_xml2_xmlParseMemory" = xyes; then :
9151
9152 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
9153
9154              XML2LIBS="$ac_xml_libs"
9155              XML2INCL="$ac_xml_cflags"
9156 fi
9157
9158         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlReadMemory in -lxml2" >&5
9159 $as_echo_n "checking for xmlReadMemory in -lxml2... " >&6; }
9160 if ${ac_cv_lib_xml2_xmlReadMemory+:} false; then :
9161   $as_echo_n "(cached) " >&6
9162 else
9163   ac_check_lib_save_LIBS=$LIBS
9164 LIBS="-lxml2 $ac_xml_libs $LIBS"
9165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9166 /* end confdefs.h.  */
9167
9168 /* Override any GCC internal prototype to avoid an error.
9169    Use char because int might match the return type of a GCC
9170    builtin and then its argument prototype would still apply.  */
9171 #ifdef __cplusplus
9172 extern "C"
9173 #endif
9174 char xmlReadMemory ();
9175 int
9176 main ()
9177 {
9178 return xmlReadMemory ();
9179   ;
9180   return 0;
9181 }
9182 _ACEOF
9183 if ac_fn_c_try_link "$LINENO"; then :
9184   ac_cv_lib_xml2_xmlReadMemory=yes
9185 else
9186   ac_cv_lib_xml2_xmlReadMemory=no
9187 fi
9188 rm -f core conftest.err conftest.$ac_objext \
9189     conftest$ac_exeext conftest.$ac_ext
9190 LIBS=$ac_check_lib_save_LIBS
9191 fi
9192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlReadMemory" >&5
9193 $as_echo "$ac_cv_lib_xml2_xmlReadMemory" >&6; }
9194 if test "x$ac_cv_lib_xml2_xmlReadMemory" = xyes; then :
9195
9196 $as_echo "#define HAVE_XMLREADMEMORY 1" >>confdefs.h
9197
9198 fi
9199
9200         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlNewDocPI in -lxml2" >&5
9201 $as_echo_n "checking for xmlNewDocPI in -lxml2... " >&6; }
9202 if ${ac_cv_lib_xml2_xmlNewDocPI+:} false; then :
9203   $as_echo_n "(cached) " >&6
9204 else
9205   ac_check_lib_save_LIBS=$LIBS
9206 LIBS="-lxml2 $ac_xml_libs $LIBS"
9207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9208 /* end confdefs.h.  */
9209
9210 /* Override any GCC internal prototype to avoid an error.
9211    Use char because int might match the return type of a GCC
9212    builtin and then its argument prototype would still apply.  */
9213 #ifdef __cplusplus
9214 extern "C"
9215 #endif
9216 char xmlNewDocPI ();
9217 int
9218 main ()
9219 {
9220 return xmlNewDocPI ();
9221   ;
9222   return 0;
9223 }
9224 _ACEOF
9225 if ac_fn_c_try_link "$LINENO"; then :
9226   ac_cv_lib_xml2_xmlNewDocPI=yes
9227 else
9228   ac_cv_lib_xml2_xmlNewDocPI=no
9229 fi
9230 rm -f core conftest.err conftest.$ac_objext \
9231     conftest$ac_exeext conftest.$ac_ext
9232 LIBS=$ac_check_lib_save_LIBS
9233 fi
9234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlNewDocPI" >&5
9235 $as_echo "$ac_cv_lib_xml2_xmlNewDocPI" >&6; }
9236 if test "x$ac_cv_lib_xml2_xmlNewDocPI" = xyes; then :
9237
9238 $as_echo "#define HAVE_XMLNEWDOCPI 1" >>confdefs.h
9239
9240 fi
9241
9242         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetParserStructuredErrors in -lxml2" >&5
9243 $as_echo_n "checking for xmlSchemaSetParserStructuredErrors in -lxml2... " >&6; }
9244 if ${ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors+:} false; then :
9245   $as_echo_n "(cached) " >&6
9246 else
9247   ac_check_lib_save_LIBS=$LIBS
9248 LIBS="-lxml2 $ac_xml_libs $LIBS"
9249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9250 /* end confdefs.h.  */
9251
9252 /* Override any GCC internal prototype to avoid an error.
9253    Use char because int might match the return type of a GCC
9254    builtin and then its argument prototype would still apply.  */
9255 #ifdef __cplusplus
9256 extern "C"
9257 #endif
9258 char xmlSchemaSetParserStructuredErrors ();
9259 int
9260 main ()
9261 {
9262 return xmlSchemaSetParserStructuredErrors ();
9263   ;
9264   return 0;
9265 }
9266 _ACEOF
9267 if ac_fn_c_try_link "$LINENO"; then :
9268   ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=yes
9269 else
9270   ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=no
9271 fi
9272 rm -f core conftest.err conftest.$ac_objext \
9273     conftest$ac_exeext conftest.$ac_ext
9274 LIBS=$ac_check_lib_save_LIBS
9275 fi
9276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&5
9277 $as_echo "$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&6; }
9278 if test "x$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" = xyes; then :
9279
9280 $as_echo "#define HAVE_XMLSCHEMASSETPARSERSTRUCTUREDERRORS 1" >>confdefs.h
9281
9282 fi
9283
9284         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetValidStructuredErrors in -lxml2" >&5
9285 $as_echo_n "checking for xmlSchemaSetValidStructuredErrors in -lxml2... " >&6; }
9286 if ${ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors+:} false; then :
9287   $as_echo_n "(cached) " >&6
9288 else
9289   ac_check_lib_save_LIBS=$LIBS
9290 LIBS="-lxml2 $ac_xml_libs $LIBS"
9291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9292 /* end confdefs.h.  */
9293
9294 /* Override any GCC internal prototype to avoid an error.
9295    Use char because int might match the return type of a GCC
9296    builtin and then its argument prototype would still apply.  */
9297 #ifdef __cplusplus
9298 extern "C"
9299 #endif
9300 char xmlSchemaSetValidStructuredErrors ();
9301 int
9302 main ()
9303 {
9304 return xmlSchemaSetValidStructuredErrors ();
9305   ;
9306   return 0;
9307 }
9308 _ACEOF
9309 if ac_fn_c_try_link "$LINENO"; then :
9310   ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=yes
9311 else
9312   ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=no
9313 fi
9314 rm -f core conftest.err conftest.$ac_objext \
9315     conftest$ac_exeext conftest.$ac_ext
9316 LIBS=$ac_check_lib_save_LIBS
9317 fi
9318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&5
9319 $as_echo "$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&6; }
9320 if test "x$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" = xyes; then :
9321
9322 $as_echo "#define HAVE_XMLSCHEMASSETVALIDSTRUCTUREDERRORS 1" >>confdefs.h
9323
9324 fi
9325
9326         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlFirstElementChild in -lxml2" >&5
9327 $as_echo_n "checking for xmlFirstElementChild in -lxml2... " >&6; }
9328 if ${ac_cv_lib_xml2_xmlFirstElementChild+:} false; then :
9329   $as_echo_n "(cached) " >&6
9330 else
9331   ac_check_lib_save_LIBS=$LIBS
9332 LIBS="-lxml2 $ac_xml_libs $LIBS"
9333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9334 /* end confdefs.h.  */
9335
9336 /* Override any GCC internal prototype to avoid an error.
9337    Use char because int might match the return type of a GCC
9338    builtin and then its argument prototype would still apply.  */
9339 #ifdef __cplusplus
9340 extern "C"
9341 #endif
9342 char xmlFirstElementChild ();
9343 int
9344 main ()
9345 {
9346 return xmlFirstElementChild ();
9347   ;
9348   return 0;
9349 }
9350 _ACEOF
9351 if ac_fn_c_try_link "$LINENO"; then :
9352   ac_cv_lib_xml2_xmlFirstElementChild=yes
9353 else
9354   ac_cv_lib_xml2_xmlFirstElementChild=no
9355 fi
9356 rm -f core conftest.err conftest.$ac_objext \
9357     conftest$ac_exeext conftest.$ac_ext
9358 LIBS=$ac_check_lib_save_LIBS
9359 fi
9360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlFirstElementChild" >&5
9361 $as_echo "$ac_cv_lib_xml2_xmlFirstElementChild" >&6; }
9362 if test "x$ac_cv_lib_xml2_xmlFirstElementChild" = xyes; then :
9363
9364 $as_echo "#define HAVE_XMLFIRSTELEMENTCHILD 1" >>confdefs.h
9365
9366 fi
9367
9368         ac_fn_c_check_type "$LINENO" "xmlDocProperties" "ac_cv_type_xmlDocProperties" "#include <libxml/tree.h>
9369 "
9370 if test "x$ac_cv_type_xmlDocProperties" = xyes; then :
9371
9372 $as_echo "#define HAVE_XMLDOC_PROPERTIES 1" >>confdefs.h
9373
9374 fi
9375
9376     fi
9377     CPPFLAGS="$ac_save_CPPFLAGS"
9378 fi
9379 if test "$ac_cv_lib_xml2_xmlParseMemory" != "yes"; then :
9380   case "x$with_xml" in
9381   x)   as_fn_append wine_warnings "|libxml2 ${notice_platform}development files not found (or too old), XML won't be supported." ;;
9382   xno) ;;
9383   *)   as_fn_error $? "libxml2 ${notice_platform}development files not found (or too old), XML won't be supported.
9384 This is an error since --with-xml was requested." "$LINENO" 5 ;;
9385 esac
9386 fi
9387
9388 if test "x$with_xslt" != "xno"
9389 then
9390     if test "$PKG_CONFIG" != "false"
9391     then
9392         ac_xslt_libs="`$PKG_CONFIG --libs libxslt 2>/dev/null`"
9393         ac_xslt_cflags="`$PKG_CONFIG --cflags libxslt 2>/dev/null`"
9394     else
9395         ac_xslt_libs="`xslt-config --libs 2>/dev/null`"
9396         ac_xslt_cflags="`xslt-config --cflags 2>/dev/null`"
9397     fi
9398     ac_save_CPPFLAGS="$CPPFLAGS"
9399     CPPFLAGS="$CPPFLAGS $ac_xslt_cflags"
9400     for ac_header in libxslt/pattern.h libxslt/transform.h
9401 do :
9402   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9403 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_LIBXSLT_PATTERN_H
9404 # include <libxslt/pattern.h>
9405 #endif
9406 "
9407 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9408   cat >>confdefs.h <<_ACEOF
9409 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9410 _ACEOF
9411
9412 fi
9413
9414 done
9415
9416     CPPFLAGS="$ac_save_CPPFLAGS"
9417     if test "$ac_cv_header_libxslt_transform_h" = "yes"
9418     then
9419         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lxslt" >&5
9420 $as_echo_n "checking for -lxslt... " >&6; }
9421 if ${ac_cv_lib_soname_xslt+:} false; then :
9422   $as_echo_n "(cached) " >&6
9423 else
9424   ac_check_soname_save_LIBS=$LIBS
9425 LIBS="-lxslt $ac_xslt_libs $LIBS"
9426   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9427 /* end confdefs.h.  */
9428
9429 /* Override any GCC internal prototype to avoid an error.
9430    Use char because int might match the return type of a GCC
9431    builtin and then its argument prototype would still apply.  */
9432 #ifdef __cplusplus
9433 extern "C"
9434 #endif
9435 char xsltCompilePattern ();
9436 int
9437 main ()
9438 {
9439 return xsltCompilePattern ();
9440   ;
9441   return 0;
9442 }
9443 _ACEOF
9444 if ac_fn_c_try_link "$LINENO"; then :
9445   case "$LIBEXT" in
9446     dll) ac_cv_lib_soname_xslt=`$ac_cv_path_LDD conftest.exe | grep "xslt" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9447     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'` ;;
9448     *) ac_cv_lib_soname_xslt=`$ac_cv_path_LDD conftest$ac_exeext | grep "libxslt\\.$LIBEXT" | sed -e "s/^.*\(libxslt\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
9449   esac
9450 fi
9451 rm -f core conftest.err conftest.$ac_objext \
9452     conftest$ac_exeext conftest.$ac_ext
9453   LIBS=$ac_check_soname_save_LIBS
9454 fi
9455 if test "x$ac_cv_lib_soname_xslt" = "x"; then :
9456   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9457 $as_echo "not found" >&6; }
9458
9459 else
9460   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_xslt" >&5
9461 $as_echo "$ac_cv_lib_soname_xslt" >&6; }
9462
9463 cat >>confdefs.h <<_ACEOF
9464 #define SONAME_LIBXSLT "$ac_cv_lib_soname_xslt"
9465 _ACEOF
9466
9467        XSLTINCL="$ac_xslt_cflags"
9468 fi
9469     fi
9470 fi
9471 if test "x$ac_cv_lib_soname_xslt" = "x"; then :
9472   case "x$with_xslt" in
9473   x)   as_fn_append wine_warnings "|libxslt ${notice_platform}development files not found, xslt won't be supported." ;;
9474   xno) ;;
9475   *)   as_fn_error $? "libxslt ${notice_platform}development files not found, xslt won't be supported.
9476 This is an error since --with-xslt was requested." "$LINENO" 5 ;;
9477 esac
9478 fi
9479
9480 if test "x$with_dbus" != "xno"
9481 then
9482     ac_save_CPPFLAGS="$CPPFLAGS"
9483     if test "$PKG_CONFIG" != "false"
9484     then
9485         ac_dbus_libs="`$PKG_CONFIG --libs dbus-1 2>/dev/null`"
9486         ac_dbus_cflags="`$PKG_CONFIG --cflags dbus-1 2>/dev/null`"
9487         CPPFLAGS="$CPPFLAGS $ac_dbus_cflags"
9488     fi
9489     ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
9490 if test "x$ac_cv_header_dbus_dbus_h" = xyes; then :
9491   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ldbus-1" >&5
9492 $as_echo_n "checking for -ldbus-1... " >&6; }
9493 if ${ac_cv_lib_soname_dbus_1+:} false; then :
9494   $as_echo_n "(cached) " >&6
9495 else
9496   ac_check_soname_save_LIBS=$LIBS
9497 LIBS="-ldbus-1 $ac_dbus_libs $LIBS"
9498   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9499 /* end confdefs.h.  */
9500
9501 /* Override any GCC internal prototype to avoid an error.
9502    Use char because int might match the return type of a GCC
9503    builtin and then its argument prototype would still apply.  */
9504 #ifdef __cplusplus
9505 extern "C"
9506 #endif
9507 char dbus_connection_close ();
9508 int
9509 main ()
9510 {
9511 return dbus_connection_close ();
9512   ;
9513   return 0;
9514 }
9515 _ACEOF
9516 if ac_fn_c_try_link "$LINENO"; then :
9517   case "$LIBEXT" in
9518     dll) ac_cv_lib_soname_dbus_1=`$ac_cv_path_LDD conftest.exe | grep "dbus-1" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9519     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'` ;;
9520     *) ac_cv_lib_soname_dbus_1=`$ac_cv_path_LDD conftest$ac_exeext | grep "libdbus-1\\.$LIBEXT" | sed -e "s/^.*\(libdbus-1\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'` ;;
9521   esac
9522 fi
9523 rm -f core conftest.err conftest.$ac_objext \
9524     conftest$ac_exeext conftest.$ac_ext
9525   LIBS=$ac_check_soname_save_LIBS
9526 fi
9527 if test "x$ac_cv_lib_soname_dbus_1" = "x"; then :
9528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9529 $as_echo "not found" >&6; }
9530
9531 else
9532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_dbus_1" >&5
9533 $as_echo "$ac_cv_lib_soname_dbus_1" >&6; }
9534
9535 cat >>confdefs.h <<_ACEOF
9536 #define SONAME_LIBDBUS_1 "$ac_cv_lib_soname_dbus_1"
9537 _ACEOF
9538
9539        DBUSINCL="$ac_dbus_cflags"
9540
9541 fi
9542 fi
9543
9544
9545     CPPFLAGS="$ac_save_CPPFLAGS"
9546 fi
9547 if test "x$ac_cv_lib_soname_dbus_1" = "x" -a \
9548                             "x$ac_cv_header_DiskArbitration_DiskArbitration_h" != "xyes"; then :
9549   case "x$with_dbus" in
9550   x)   as_fn_append wine_notices "|libdbus ${notice_platform}development files not found, no dynamic device support." ;;
9551   xno) ;;
9552   *)   as_fn_error $? "libdbus ${notice_platform}development files not found, no dynamic device support.
9553 This is an error since --with-dbus was requested." "$LINENO" 5 ;;
9554 esac
9555 fi
9556
9557 if test "x$with_hal" != "xno" -a "x$ac_cv_lib_soname_dbus_1" != x
9558 then
9559     ac_save_CPPFLAGS="$CPPFLAGS"
9560     if test "$PKG_CONFIG" != "false"
9561     then
9562         ac_hal_libs="`$PKG_CONFIG --libs hal 2>/dev/null`"
9563         ac_hal_cflags="`$PKG_CONFIG --cflags hal 2>/dev/null`"
9564         CPPFLAGS="$CPPFLAGS $ac_hal_cflags"
9565     fi
9566     ac_fn_c_check_header_mongrel "$LINENO" "hal/libhal.h" "ac_cv_header_hal_libhal_h" "$ac_includes_default"
9567 if test "x$ac_cv_header_hal_libhal_h" = xyes; then :
9568   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lhal" >&5
9569 $as_echo_n "checking for -lhal... " >&6; }
9570 if ${ac_cv_lib_soname_hal+:} false; then :
9571   $as_echo_n "(cached) " >&6
9572 else
9573   ac_check_soname_save_LIBS=$LIBS
9574 LIBS="-lhal $ac_hal_libs $LIBS"
9575   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9576 /* end confdefs.h.  */
9577
9578 /* Override any GCC internal prototype to avoid an error.
9579    Use char because int might match the return type of a GCC
9580    builtin and then its argument prototype would still apply.  */
9581 #ifdef __cplusplus
9582 extern "C"
9583 #endif
9584 char libhal_ctx_new ();
9585 int
9586 main ()
9587 {
9588 return libhal_ctx_new ();
9589   ;
9590   return 0;
9591 }
9592 _ACEOF
9593 if ac_fn_c_try_link "$LINENO"; then :
9594   case "$LIBEXT" in
9595     dll) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest.exe | grep "hal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9596     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'` ;;
9597     *) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest$ac_exeext | grep "libhal\\.$LIBEXT" | sed -e "s/^.*\(libhal\.$LIBEXT[^     ]*\).*$/\1/"';2,$d'` ;;
9598   esac
9599 fi
9600 rm -f core conftest.err conftest.$ac_objext \
9601     conftest$ac_exeext conftest.$ac_ext
9602   LIBS=$ac_check_soname_save_LIBS
9603 fi
9604 if test "x$ac_cv_lib_soname_hal" = "x"; then :
9605   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9606 $as_echo "not found" >&6; }
9607
9608 else
9609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_hal" >&5
9610 $as_echo "$ac_cv_lib_soname_hal" >&6; }
9611
9612 cat >>confdefs.h <<_ACEOF
9613 #define SONAME_LIBHAL "$ac_cv_lib_soname_hal"
9614 _ACEOF
9615
9616        HALINCL="$ac_hal_cflags"
9617
9618 fi
9619 fi
9620
9621
9622     CPPFLAGS="$ac_save_CPPFLAGS"
9623     if test "x$ac_cv_lib_soname_hal" = "x" -a \
9624                                "x$ac_cv_header_DiskArbitration_DiskArbitration_h" != "xyes"; then :
9625   case "x$with_hal" in
9626   x)   as_fn_append wine_notices "|libhal ${notice_platform}development files not found, no legacy dynamic device support." ;;
9627   xno) ;;
9628   *)   as_fn_error $? "libhal ${notice_platform}development files not found, no legacy dynamic device support.
9629 This is an error since --with-hal was requested." "$LINENO" 5 ;;
9630 esac
9631 fi
9632 fi
9633
9634 if test "x$with_gnutls" != "xno"
9635 then
9636     ac_save_CPPFLAGS="$CPPFLAGS"
9637     if test "$PKG_CONFIG" != "false"
9638     then
9639         ac_gnutls_libs="`$PKG_CONFIG --libs gnutls 2>/dev/null`"
9640         ac_gnutls_cflags="`$PKG_CONFIG --cflags gnutls 2>/dev/null`"
9641         CPPFLAGS="$CPPFLAGS $ac_gnutls_cflags"
9642     fi
9643     ac_fn_c_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default"
9644 if test "x$ac_cv_header_gnutls_gnutls_h" = xyes; then :
9645   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9646 /* end confdefs.h.  */
9647 #include <gnutls/gnutls.h>
9648 int
9649 main ()
9650 {
9651 static typeof(gnutls_mac_get_key_size) *func; if (func) return 0;
9652   ;
9653   return 0;
9654 }
9655 _ACEOF
9656 if ac_fn_c_try_compile "$LINENO"; then :
9657   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgnutls" >&5
9658 $as_echo_n "checking for -lgnutls... " >&6; }
9659 if ${ac_cv_lib_soname_gnutls+:} false; then :
9660   $as_echo_n "(cached) " >&6
9661 else
9662   ac_check_soname_save_LIBS=$LIBS
9663 LIBS="-lgnutls $ac_gnutls_libs $LIBS"
9664   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9665 /* end confdefs.h.  */
9666
9667 /* Override any GCC internal prototype to avoid an error.
9668    Use char because int might match the return type of a GCC
9669    builtin and then its argument prototype would still apply.  */
9670 #ifdef __cplusplus
9671 extern "C"
9672 #endif
9673 char gnutls_global_init ();
9674 int
9675 main ()
9676 {
9677 return gnutls_global_init ();
9678   ;
9679   return 0;
9680 }
9681 _ACEOF
9682 if ac_fn_c_try_link "$LINENO"; then :
9683   case "$LIBEXT" in
9684     dll) ac_cv_lib_soname_gnutls=`$ac_cv_path_LDD conftest.exe | grep "gnutls" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9685     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'` ;;
9686     *) ac_cv_lib_soname_gnutls=`$ac_cv_path_LDD conftest$ac_exeext | grep "libgnutls\\.$LIBEXT" | sed -e "s/^.*\(libgnutls\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'` ;;
9687   esac
9688 fi
9689 rm -f core conftest.err conftest.$ac_objext \
9690     conftest$ac_exeext conftest.$ac_ext
9691   LIBS=$ac_check_soname_save_LIBS
9692 fi
9693 if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
9694   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9695 $as_echo "not found" >&6; }
9696
9697 else
9698   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gnutls" >&5
9699 $as_echo "$ac_cv_lib_soname_gnutls" >&6; }
9700
9701 cat >>confdefs.h <<_ACEOF
9702 #define SONAME_LIBGNUTLS "$ac_cv_lib_soname_gnutls"
9703 _ACEOF
9704
9705        GNUTLSINCL="$ac_gnutls_cflags"
9706
9707 fi
9708 fi
9709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9710 fi
9711
9712
9713     CPPFLAGS="$ac_save_CPPFLAGS"
9714 fi
9715 if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
9716   case "x$with_gnutls" in
9717   x)   as_fn_append wine_notices "|libgnutls ${notice_platform}development files not found, no schannel support." ;;
9718   xno) ;;
9719   *)   as_fn_error $? "libgnutls ${notice_platform}development files not found, no schannel support.
9720 This is an error since --with-gnutls was requested." "$LINENO" 5 ;;
9721 esac
9722 fi
9723
9724 CURSESLIBS=""
9725 if test "$ac_cv_header_ncurses_h" = "yes"
9726 then
9727     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lncurses" >&5
9728 $as_echo_n "checking for -lncurses... " >&6; }
9729 if ${ac_cv_lib_soname_ncurses+:} false; then :
9730   $as_echo_n "(cached) " >&6
9731 else
9732   ac_check_soname_save_LIBS=$LIBS
9733 LIBS="-lncurses  $LIBS"
9734   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9735 /* end confdefs.h.  */
9736
9737 /* Override any GCC internal prototype to avoid an error.
9738    Use char because int might match the return type of a GCC
9739    builtin and then its argument prototype would still apply.  */
9740 #ifdef __cplusplus
9741 extern "C"
9742 #endif
9743 char waddch ();
9744 int
9745 main ()
9746 {
9747 return waddch ();
9748   ;
9749   return 0;
9750 }
9751 _ACEOF
9752 if ac_fn_c_try_link "$LINENO"; then :
9753   case "$LIBEXT" in
9754     dll) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest.exe | grep "ncurses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9755     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'` ;;
9756     *) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest$ac_exeext | grep "libncurses\\.$LIBEXT" | sed -e "s/^.*\(libncurses\.$LIBEXT[^         ]*\).*$/\1/"';2,$d'` ;;
9757   esac
9758 fi
9759 rm -f core conftest.err conftest.$ac_objext \
9760     conftest$ac_exeext conftest.$ac_ext
9761   LIBS=$ac_check_soname_save_LIBS
9762 fi
9763 if test "x$ac_cv_lib_soname_ncurses" = "x"; then :
9764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9765 $as_echo "not found" >&6; }
9766
9767 else
9768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ncurses" >&5
9769 $as_echo "$ac_cv_lib_soname_ncurses" >&6; }
9770
9771 cat >>confdefs.h <<_ACEOF
9772 #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
9773 _ACEOF
9774
9775        CURSESLIBS="-lncurses"
9776 fi
9777 elif test "$ac_cv_header_curses_h" = "yes"
9778 then
9779     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcurses" >&5
9780 $as_echo_n "checking for -lcurses... " >&6; }
9781 if ${ac_cv_lib_soname_curses+:} false; then :
9782   $as_echo_n "(cached) " >&6
9783 else
9784   ac_check_soname_save_LIBS=$LIBS
9785 LIBS="-lcurses  $LIBS"
9786   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9787 /* end confdefs.h.  */
9788
9789 /* Override any GCC internal prototype to avoid an error.
9790    Use char because int might match the return type of a GCC
9791    builtin and then its argument prototype would still apply.  */
9792 #ifdef __cplusplus
9793 extern "C"
9794 #endif
9795 char waddch ();
9796 int
9797 main ()
9798 {
9799 return waddch ();
9800   ;
9801   return 0;
9802 }
9803 _ACEOF
9804 if ac_fn_c_try_link "$LINENO"; then :
9805   case "$LIBEXT" in
9806     dll) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest.exe | grep "curses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9807     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'` ;;
9808     *) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcurses\\.$LIBEXT" | sed -e "s/^.*\(libcurses\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'` ;;
9809   esac
9810 fi
9811 rm -f core conftest.err conftest.$ac_objext \
9812     conftest$ac_exeext conftest.$ac_ext
9813   LIBS=$ac_check_soname_save_LIBS
9814 fi
9815 if test "x$ac_cv_lib_soname_curses" = "x"; then :
9816   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9817 $as_echo "not found" >&6; }
9818
9819 else
9820   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_curses" >&5
9821 $as_echo "$ac_cv_lib_soname_curses" >&6; }
9822
9823 cat >>confdefs.h <<_ACEOF
9824 #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
9825 _ACEOF
9826
9827        CURSESLIBS="-lcurses"
9828 fi
9829 fi
9830 ac_save_LIBS="$LIBS"
9831 LIBS="$LIBS $CURSESLIBS"
9832 for ac_func in mousemask
9833 do :
9834   ac_fn_c_check_func "$LINENO" "mousemask" "ac_cv_func_mousemask"
9835 if test "x$ac_cv_func_mousemask" = xyes; then :
9836   cat >>confdefs.h <<_ACEOF
9837 #define HAVE_MOUSEMASK 1
9838 _ACEOF
9839
9840 fi
9841 done
9842
9843 LIBS="$ac_save_LIBS"
9844 if test "x$ac_cv_lib_soname_curses$ac_cv_lib_soname_ncurses" = "x"; then :
9845   case "x$with_curses" in
9846   x)   as_fn_append wine_notices "|lib(n)curses ${notice_platform}development files not found, curses won't be supported." ;;
9847   xno) ;;
9848   *)   as_fn_error $? "lib(n)curses ${notice_platform}development files not found, curses won't be supported.
9849 This is an error since --with-curses was requested." "$LINENO" 5 ;;
9850 esac
9851 fi
9852
9853 if test "x$with_sane" != "xno"
9854 then
9855     ac_save_CPPFLAGS="$CPPFLAGS"
9856     # Extract the first word of "sane-config", so it can be a program name with args.
9857 set dummy sane-config; ac_word=$2
9858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9859 $as_echo_n "checking for $ac_word... " >&6; }
9860 if ${ac_cv_prog_sane_devel+:} false; then :
9861   $as_echo_n "(cached) " >&6
9862 else
9863   if test -n "$sane_devel"; then
9864   ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
9865 else
9866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9867 for as_dir in $PATH
9868 do
9869   IFS=$as_save_IFS
9870   test -z "$as_dir" && as_dir=.
9871     for ac_exec_ext in '' $ac_executable_extensions; do
9872   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9873     ac_cv_prog_sane_devel="sane-config"
9874     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9875     break 2
9876   fi
9877 done
9878   done
9879 IFS=$as_save_IFS
9880
9881   test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
9882 fi
9883 fi
9884 sane_devel=$ac_cv_prog_sane_devel
9885 if test -n "$sane_devel"; then
9886   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sane_devel" >&5
9887 $as_echo "$sane_devel" >&6; }
9888 else
9889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9890 $as_echo "no" >&6; }
9891 fi
9892
9893
9894     if test "$sane_devel" != "no"
9895     then
9896         ac_sane_incl="`$sane_devel --cflags`"
9897         ac_sane_libs="`$sane_devel --ldflags`"
9898         CPPFLAGS="$CPPFLAGS $ac_sane_incl"
9899     fi
9900     ac_fn_c_check_header_mongrel "$LINENO" "sane/sane.h" "ac_cv_header_sane_sane_h" "$ac_includes_default"
9901 if test "x$ac_cv_header_sane_sane_h" = xyes; then :
9902   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lsane" >&5
9903 $as_echo_n "checking for -lsane... " >&6; }
9904 if ${ac_cv_lib_soname_sane+:} false; then :
9905   $as_echo_n "(cached) " >&6
9906 else
9907   ac_check_soname_save_LIBS=$LIBS
9908 LIBS="-lsane $ac_sane_libs $LIBS"
9909   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9910 /* end confdefs.h.  */
9911
9912 /* Override any GCC internal prototype to avoid an error.
9913    Use char because int might match the return type of a GCC
9914    builtin and then its argument prototype would still apply.  */
9915 #ifdef __cplusplus
9916 extern "C"
9917 #endif
9918 char sane_init ();
9919 int
9920 main ()
9921 {
9922 return sane_init ();
9923   ;
9924   return 0;
9925 }
9926 _ACEOF
9927 if ac_fn_c_try_link "$LINENO"; then :
9928   case "$LIBEXT" in
9929     dll) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest.exe | grep "sane" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9930     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'` ;;
9931     *) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest$ac_exeext | grep "libsane\\.$LIBEXT" | sed -e "s/^.*\(libsane\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
9932   esac
9933 fi
9934 rm -f core conftest.err conftest.$ac_objext \
9935     conftest$ac_exeext conftest.$ac_ext
9936   LIBS=$ac_check_soname_save_LIBS
9937 fi
9938 if test "x$ac_cv_lib_soname_sane" = "x"; then :
9939   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9940 $as_echo "not found" >&6; }
9941
9942 else
9943   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_sane" >&5
9944 $as_echo "$ac_cv_lib_soname_sane" >&6; }
9945
9946 cat >>confdefs.h <<_ACEOF
9947 #define SONAME_LIBSANE "$ac_cv_lib_soname_sane"
9948 _ACEOF
9949
9950        SANEINCL="$ac_sane_incl"
9951
9952 fi
9953 fi
9954
9955
9956     CPPFLAGS="$ac_save_CPPFLAGS"
9957 fi
9958 if test "x$ac_cv_lib_soname_sane" = "x"; then :
9959   case "x$with_sane" in
9960   x)   as_fn_append wine_notices "|libsane ${notice_platform}development files not found, scanners won't be supported." ;;
9961   xno) ;;
9962   *)   as_fn_error $? "libsane ${notice_platform}development files not found, scanners won't be supported.
9963 This is an error since --with-sane was requested." "$LINENO" 5 ;;
9964 esac
9965 fi
9966
9967 if test "x$with_v4l" != "xno"
9968 then
9969     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lv4l1" >&5
9970 $as_echo_n "checking for -lv4l1... " >&6; }
9971 if ${ac_cv_lib_soname_v4l1+:} false; then :
9972   $as_echo_n "(cached) " >&6
9973 else
9974   ac_check_soname_save_LIBS=$LIBS
9975 LIBS="-lv4l1  $LIBS"
9976   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9977 /* end confdefs.h.  */
9978
9979 /* Override any GCC internal prototype to avoid an error.
9980    Use char because int might match the return type of a GCC
9981    builtin and then its argument prototype would still apply.  */
9982 #ifdef __cplusplus
9983 extern "C"
9984 #endif
9985 char v4l1_open ();
9986 int
9987 main ()
9988 {
9989 return v4l1_open ();
9990   ;
9991   return 0;
9992 }
9993 _ACEOF
9994 if ac_fn_c_try_link "$LINENO"; then :
9995   case "$LIBEXT" in
9996     dll) ac_cv_lib_soname_v4l1=`$ac_cv_path_LDD conftest.exe | grep "v4l1" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9997     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'` ;;
9998     *) ac_cv_lib_soname_v4l1=`$ac_cv_path_LDD conftest$ac_exeext | grep "libv4l1\\.$LIBEXT" | sed -e "s/^.*\(libv4l1\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
9999   esac
10000 fi
10001 rm -f core conftest.err conftest.$ac_objext \
10002     conftest$ac_exeext conftest.$ac_ext
10003   LIBS=$ac_check_soname_save_LIBS
10004 fi
10005 if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
10006   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10007 $as_echo "not found" >&6; }
10008
10009 else
10010   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_v4l1" >&5
10011 $as_echo "$ac_cv_lib_soname_v4l1" >&6; }
10012
10013 cat >>confdefs.h <<_ACEOF
10014 #define SONAME_LIBV4L1 "$ac_cv_lib_soname_v4l1"
10015 _ACEOF
10016
10017
10018 fi
10019 fi
10020 if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
10021   case "x$with_v4l" in
10022   x)   as_fn_append wine_notices "|libv4l ${notice_platform}development files not found." ;;
10023   xno) ;;
10024   *)   as_fn_error $? "libv4l ${notice_platform}development files not found.
10025 This is an error since --with-v4l was requested." "$LINENO" 5 ;;
10026 esac
10027 fi
10028
10029 if test "x$with_gphoto" != "xno"
10030 then
10031     ac_save_CPPFLAGS="$CPPFLAGS"
10032     # Extract the first word of "gphoto2-config", so it can be a program name with args.
10033 set dummy gphoto2-config; ac_word=$2
10034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10035 $as_echo_n "checking for $ac_word... " >&6; }
10036 if ${ac_cv_prog_gphoto2_devel+:} false; then :
10037   $as_echo_n "(cached) " >&6
10038 else
10039   if test -n "$gphoto2_devel"; then
10040   ac_cv_prog_gphoto2_devel="$gphoto2_devel" # Let the user override the test.
10041 else
10042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10043 for as_dir in $PATH
10044 do
10045   IFS=$as_save_IFS
10046   test -z "$as_dir" && as_dir=.
10047     for ac_exec_ext in '' $ac_executable_extensions; do
10048   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10049     ac_cv_prog_gphoto2_devel="gphoto2-config"
10050     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10051     break 2
10052   fi
10053 done
10054   done
10055 IFS=$as_save_IFS
10056
10057   test -z "$ac_cv_prog_gphoto2_devel" && ac_cv_prog_gphoto2_devel="no"
10058 fi
10059 fi
10060 gphoto2_devel=$ac_cv_prog_gphoto2_devel
10061 if test -n "$gphoto2_devel"; then
10062   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gphoto2_devel" >&5
10063 $as_echo "$gphoto2_devel" >&6; }
10064 else
10065   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10066 $as_echo "no" >&6; }
10067 fi
10068
10069
10070     # Extract the first word of "gphoto2-port-config", so it can be a program name with args.
10071 set dummy gphoto2-port-config; ac_word=$2
10072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10073 $as_echo_n "checking for $ac_word... " >&6; }
10074 if ${ac_cv_prog_gphoto2port_devel+:} false; then :
10075   $as_echo_n "(cached) " >&6
10076 else
10077   if test -n "$gphoto2port_devel"; then
10078   ac_cv_prog_gphoto2port_devel="$gphoto2port_devel" # Let the user override the test.
10079 else
10080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10081 for as_dir in $PATH
10082 do
10083   IFS=$as_save_IFS
10084   test -z "$as_dir" && as_dir=.
10085     for ac_exec_ext in '' $ac_executable_extensions; do
10086   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10087     ac_cv_prog_gphoto2port_devel="gphoto2-port-config"
10088     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10089     break 2
10090   fi
10091 done
10092   done
10093 IFS=$as_save_IFS
10094
10095   test -z "$ac_cv_prog_gphoto2port_devel" && ac_cv_prog_gphoto2port_devel="no"
10096 fi
10097 fi
10098 gphoto2port_devel=$ac_cv_prog_gphoto2port_devel
10099 if test -n "$gphoto2port_devel"; then
10100   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gphoto2port_devel" >&5
10101 $as_echo "$gphoto2port_devel" >&6; }
10102 else
10103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10104 $as_echo "no" >&6; }
10105 fi
10106
10107
10108     if test "$gphoto2_devel" != "no" -a "$gphoto2port_devel" != "no"
10109     then
10110         ac_gphoto2_incl="`$gphoto2_devel --cflags` `$gphoto2port_devel --cflags`"
10111         ac_gphoto2_libs=""
10112         for i in `$gphoto2_devel --libs` `$gphoto2port_devel --libs`
10113         do
10114             case "$i" in
10115             -L/usr/lib|-L/usr/lib64) ;;
10116             -L*|-l*) ac_gphoto2_libs="$ac_gphoto2_libs $i";;
10117             esac
10118         done
10119         CPPFLAGS="$CPPFLAGS $ac_gphoto2_incl"
10120     fi
10121     ac_gphoto2_libs=${ac_gphoto2_libs:-"-lgphoto2"}
10122     ac_fn_c_check_header_mongrel "$LINENO" "gphoto2-camera.h" "ac_cv_header_gphoto2_camera_h" "$ac_includes_default"
10123 if test "x$ac_cv_header_gphoto2_camera_h" = xyes; then :
10124   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gp_camera_new in -lgphoto2" >&5
10125 $as_echo_n "checking for gp_camera_new in -lgphoto2... " >&6; }
10126 if ${ac_cv_lib_gphoto2_gp_camera_new+:} false; then :
10127   $as_echo_n "(cached) " >&6
10128 else
10129   ac_check_lib_save_LIBS=$LIBS
10130 LIBS="-lgphoto2 $ac_gphoto2_libs $LIBS"
10131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10132 /* end confdefs.h.  */
10133
10134 /* Override any GCC internal prototype to avoid an error.
10135    Use char because int might match the return type of a GCC
10136    builtin and then its argument prototype would still apply.  */
10137 #ifdef __cplusplus
10138 extern "C"
10139 #endif
10140 char gp_camera_new ();
10141 int
10142 main ()
10143 {
10144 return gp_camera_new ();
10145   ;
10146   return 0;
10147 }
10148 _ACEOF
10149 if ac_fn_c_try_link "$LINENO"; then :
10150   ac_cv_lib_gphoto2_gp_camera_new=yes
10151 else
10152   ac_cv_lib_gphoto2_gp_camera_new=no
10153 fi
10154 rm -f core conftest.err conftest.$ac_objext \
10155     conftest$ac_exeext conftest.$ac_ext
10156 LIBS=$ac_check_lib_save_LIBS
10157 fi
10158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gphoto2_gp_camera_new" >&5
10159 $as_echo "$ac_cv_lib_gphoto2_gp_camera_new" >&6; }
10160 if test "x$ac_cv_lib_gphoto2_gp_camera_new" = xyes; then :
10161
10162 $as_echo "#define HAVE_GPHOTO2 1" >>confdefs.h
10163
10164                                    GPHOTO2LIBS="$ac_gphoto2_libs"
10165
10166                                    GPHOTO2INCL="$ac_gphoto2_incl"
10167
10168 fi
10169
10170 fi
10171
10172
10173     CPPFLAGS="$ac_save_CPPFLAGS"
10174 fi
10175 if test "$ac_cv_lib_gphoto2_gp_camera_new" != "yes"; then :
10176   case "x$with_gphoto" in
10177   x)   as_fn_append wine_notices "|libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported." ;;
10178   xno) ;;
10179   *)   as_fn_error $? "libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported.
10180 This is an error since --with-gphoto was requested." "$LINENO" 5 ;;
10181 esac
10182 fi
10183
10184
10185 if test "$ac_cv_header_resolv_h" = "yes"
10186 then
10187     ac_save_LIBS="$LIBS"
10188     for lib in '' -lresolv
10189     do
10190       LIBS="$lib $ac_save_LIBS"
10191       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10192 /* end confdefs.h.  */
10193 #ifdef HAVE_NETINET_IN_H
10194 #include <netinet/in.h>
10195 #endif
10196 #include <resolv.h>
10197 int
10198 main ()
10199 {
10200 res_query("foo",ns_c_in,0,0,0);
10201   ;
10202   return 0;
10203 }
10204 _ACEOF
10205 if ac_fn_c_try_link "$LINENO"; then :
10206
10207 $as_echo "#define HAVE_RESOLV 1" >>confdefs.h
10208
10209          RESOLVLIBS="$lib"
10210
10211 fi
10212 rm -f core conftest.err conftest.$ac_objext \
10213     conftest$ac_exeext conftest.$ac_ext
10214       if test "${RESOLVLIBS+set}" = set; then
10215         break
10216       fi
10217     done
10218     LIBS="$ac_save_LIBS"
10219 fi
10220
10221 LCMSLIBS=""
10222
10223 if test "$ac_cv_header_lcms_h" = "yes" -o "$ac_cv_header_lcms_lcms_h" = "yes"
10224 then
10225     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromFile in -llcms" >&5
10226 $as_echo_n "checking for cmsOpenProfileFromFile in -llcms... " >&6; }
10227 if ${ac_cv_lib_lcms_cmsOpenProfileFromFile+:} false; then :
10228   $as_echo_n "(cached) " >&6
10229 else
10230   ac_check_lib_save_LIBS=$LIBS
10231 LIBS="-llcms  $LIBS"
10232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10233 /* end confdefs.h.  */
10234
10235 /* Override any GCC internal prototype to avoid an error.
10236    Use char because int might match the return type of a GCC
10237    builtin and then its argument prototype would still apply.  */
10238 #ifdef __cplusplus
10239 extern "C"
10240 #endif
10241 char cmsOpenProfileFromFile ();
10242 int
10243 main ()
10244 {
10245 return cmsOpenProfileFromFile ();
10246   ;
10247   return 0;
10248 }
10249 _ACEOF
10250 if ac_fn_c_try_link "$LINENO"; then :
10251   ac_cv_lib_lcms_cmsOpenProfileFromFile=yes
10252 else
10253   ac_cv_lib_lcms_cmsOpenProfileFromFile=no
10254 fi
10255 rm -f core conftest.err conftest.$ac_objext \
10256     conftest$ac_exeext conftest.$ac_ext
10257 LIBS=$ac_check_lib_save_LIBS
10258 fi
10259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsOpenProfileFromFile" >&5
10260 $as_echo "$ac_cv_lib_lcms_cmsOpenProfileFromFile" >&6; }
10261 if test "x$ac_cv_lib_lcms_cmsOpenProfileFromFile" = xyes; then :
10262
10263 $as_echo "#define HAVE_LCMS 1" >>confdefs.h
10264
10265          LCMSLIBS="-llcms"
10266 fi
10267
10268 fi
10269 if test "$ac_cv_lib_lcms_cmsOpenProfileFromFile" != "yes"; then :
10270   case "x$with_cms" in
10271   x)   as_fn_append wine_notices "|liblcms ${notice_platform}development files not found, Color Management won't be supported." ;;
10272   xno) ;;
10273   *)   as_fn_error $? "liblcms ${notice_platform}development files not found, Color Management won't be supported.
10274 This is an error since --with-cms was requested." "$LINENO" 5 ;;
10275 esac
10276 fi
10277
10278 if test "x$with_freetype" != "xno"
10279 then
10280     if test "$PKG_CONFIG" != "false"
10281     then
10282         ac_freetype_incl="`$PKG_CONFIG --cflags freetype2 2>/dev/null`"
10283         ac_freetype_libs="`$PKG_CONFIG --libs freetype2 2>/dev/null`"
10284     else
10285         for ac_prog in freetype-config freetype2-config
10286 do
10287   # Extract the first word of "$ac_prog", so it can be a program name with args.
10288 set dummy $ac_prog; ac_word=$2
10289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10290 $as_echo_n "checking for $ac_word... " >&6; }
10291 if ${ac_cv_prog_ft_devel+:} false; then :
10292   $as_echo_n "(cached) " >&6
10293 else
10294   if test -n "$ft_devel"; then
10295   ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
10296 else
10297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10298 for as_dir in $PATH
10299 do
10300   IFS=$as_save_IFS
10301   test -z "$as_dir" && as_dir=.
10302     for ac_exec_ext in '' $ac_executable_extensions; do
10303   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10304     ac_cv_prog_ft_devel="$ac_prog"
10305     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10306     break 2
10307   fi
10308 done
10309   done
10310 IFS=$as_save_IFS
10311
10312 fi
10313 fi
10314 ft_devel=$ac_cv_prog_ft_devel
10315 if test -n "$ft_devel"; then
10316   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ft_devel" >&5
10317 $as_echo "$ft_devel" >&6; }
10318 else
10319   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10320 $as_echo "no" >&6; }
10321 fi
10322
10323
10324   test -n "$ft_devel" && break
10325 done
10326 test -n "$ft_devel" || ft_devel="no"
10327
10328         if test "$ft_devel" != "no"
10329         then
10330             ac_freetype_incl=`$ft_devel --cflags`
10331             ac_freetype_libs=`$ft_devel --libs`
10332         fi
10333     fi
10334     ac_freetype_libs=${ac_freetype_libs:-"-lfreetype"}
10335     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfreetype" >&5
10336 $as_echo_n "checking for -lfreetype... " >&6; }
10337 if ${ac_cv_lib_soname_freetype+:} false; then :
10338   $as_echo_n "(cached) " >&6
10339 else
10340   ac_check_soname_save_LIBS=$LIBS
10341 LIBS="-lfreetype $ac_freetype_libs $LIBS"
10342   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10343 /* end confdefs.h.  */
10344
10345 /* Override any GCC internal prototype to avoid an error.
10346    Use char because int might match the return type of a GCC
10347    builtin and then its argument prototype would still apply.  */
10348 #ifdef __cplusplus
10349 extern "C"
10350 #endif
10351 char FT_Init_FreeType ();
10352 int
10353 main ()
10354 {
10355 return FT_Init_FreeType ();
10356   ;
10357   return 0;
10358 }
10359 _ACEOF
10360 if ac_fn_c_try_link "$LINENO"; then :
10361   case "$LIBEXT" in
10362     dll) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest.exe | grep "freetype" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10363     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'` ;;
10364     *) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfreetype\\.$LIBEXT" | sed -e "s/^.*\(libfreetype\.$LIBEXT[^      ]*\).*$/\1/"';2,$d'` ;;
10365   esac
10366 fi
10367 rm -f core conftest.err conftest.$ac_objext \
10368     conftest$ac_exeext conftest.$ac_ext
10369   LIBS=$ac_check_soname_save_LIBS
10370 fi
10371 if test "x$ac_cv_lib_soname_freetype" = "x"; then :
10372   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10373 $as_echo "not found" >&6; }
10374        ft_lib=no
10375 else
10376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_freetype" >&5
10377 $as_echo "$ac_cv_lib_soname_freetype" >&6; }
10378
10379 cat >>confdefs.h <<_ACEOF
10380 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
10381 _ACEOF
10382
10383        ft_lib=yes
10384 fi
10385     if test "$ft_lib" = "yes"
10386     then
10387         ac_save_CPPFLAGS="$CPPFLAGS"
10388         CPPFLAGS="$ac_freetype_incl $CPPFLAGS"
10389         for ac_header in ft2build.h \
10390                          freetype/freetype.h \
10391                          freetype/ftglyph.h \
10392                          freetype/fttypes.h \
10393                          freetype/tttables.h \
10394                          freetype/ftsnames.h \
10395                          freetype/ttnameid.h \
10396                          freetype/ftoutln.h \
10397                          freetype/ftwinfnt.h \
10398                          freetype/ftmodapi.h \
10399                          freetype/ftlcdfil.h
10400 do :
10401   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10402 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_FT2BUILD_H
10403                           # include <ft2build.h>
10404                           #endif
10405 "
10406 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10407   cat >>confdefs.h <<_ACEOF
10408 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10409 _ACEOF
10410
10411 fi
10412
10413 done
10414
10415         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10416 /* end confdefs.h.  */
10417 #include <ft2build.h>
10418                     #include <freetype/fttrigon.h>
10419 _ACEOF
10420 if ac_fn_c_try_cpp "$LINENO"; then :
10421
10422 $as_echo "#define HAVE_FREETYPE_FTTRIGON_H 1" >>confdefs.h
10423
10424                     wine_cv_fttrigon=yes
10425 else
10426   wine_cv_fttrigon=no
10427 fi
10428 rm -f conftest.err conftest.i conftest.$ac_ext
10429         ac_fn_c_check_type "$LINENO" "FT_TrueTypeEngineType" "ac_cv_type_FT_TrueTypeEngineType" "#include <freetype/ftmodapi.h>
10430 "
10431 if test "x$ac_cv_type_FT_TrueTypeEngineType" = xyes; then :
10432
10433 cat >>confdefs.h <<_ACEOF
10434 #define HAVE_FT_TRUETYPEENGINETYPE 1
10435 _ACEOF
10436
10437
10438 fi
10439
10440                 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
10441         then
10442
10443 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
10444
10445             FREETYPELIBS="$ac_freetype_libs"
10446
10447             FREETYPEINCL="$ac_freetype_incl"
10448
10449         fi
10450     fi
10451 fi
10452 if test "x$FREETYPELIBS" = "x"; then :
10453   case "x$with_freetype" in
10454   xno) ;;
10455   *)   as_fn_error $? "FreeType ${notice_platform}development files not found. Fonts will not be built.
10456 Use the --without-freetype option if you really want this." "$LINENO" 5 ;;
10457 esac
10458 fi
10459 test "x$FREETYPELIBS" = "x" && enable_fonts=${enable_fonts:-no}
10460
10461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for parport header/ppdev.h" >&5
10462 $as_echo_n "checking for parport header/ppdev.h... " >&6; }
10463 if ${ac_cv_c_ppdev+:} false; then :
10464   $as_echo_n "(cached) " >&6
10465 else
10466   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10467 /* end confdefs.h.  */
10468 #ifdef HAVE_SYS_IOCTL_H
10469 # include <sys/ioctl.h>
10470 #endif
10471 #include <linux/ppdev.h>
10472 int
10473 main ()
10474 {
10475 ioctl (1,PPCLAIM,0)
10476   ;
10477   return 0;
10478 }
10479 _ACEOF
10480 if ac_fn_c_try_compile "$LINENO"; then :
10481   ac_cv_c_ppdev="yes"
10482 else
10483   ac_cv_c_ppdev="no"
10484 fi
10485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10486 fi
10487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_ppdev" >&5
10488 $as_echo "$ac_cv_c_ppdev" >&6; }
10489 if test "$ac_cv_c_ppdev" = "yes"
10490 then
10491
10492 $as_echo "#define HAVE_PPDEV 1" >>confdefs.h
10493
10494 fi
10495
10496 ac_wine_check_funcs_save_LIBS="$LIBS"
10497 LIBS="$LIBS $LIBPTHREAD"
10498 for ac_func in \
10499         pthread_attr_get_np \
10500         pthread_getattr_np \
10501         pthread_get_stackaddr_np \
10502         pthread_get_stacksize_np
10503 do :
10504   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10505 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10506 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10507   cat >>confdefs.h <<_ACEOF
10508 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10509 _ACEOF
10510
10511 fi
10512 done
10513
10514 LIBS="$ac_wine_check_funcs_save_LIBS"
10515
10516 if test "$ac_cv_header_zlib_h" = "yes"
10517 then
10518     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
10519 $as_echo_n "checking for inflate in -lz... " >&6; }
10520 if ${ac_cv_lib_z_inflate+:} false; then :
10521   $as_echo_n "(cached) " >&6
10522 else
10523   ac_check_lib_save_LIBS=$LIBS
10524 LIBS="-lz  $LIBS"
10525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10526 /* end confdefs.h.  */
10527
10528 /* Override any GCC internal prototype to avoid an error.
10529    Use char because int might match the return type of a GCC
10530    builtin and then its argument prototype would still apply.  */
10531 #ifdef __cplusplus
10532 extern "C"
10533 #endif
10534 char inflate ();
10535 int
10536 main ()
10537 {
10538 return inflate ();
10539   ;
10540   return 0;
10541 }
10542 _ACEOF
10543 if ac_fn_c_try_link "$LINENO"; then :
10544   ac_cv_lib_z_inflate=yes
10545 else
10546   ac_cv_lib_z_inflate=no
10547 fi
10548 rm -f core conftest.err conftest.$ac_objext \
10549     conftest$ac_exeext conftest.$ac_ext
10550 LIBS=$ac_check_lib_save_LIBS
10551 fi
10552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
10553 $as_echo "$ac_cv_lib_z_inflate" >&6; }
10554 if test "x$ac_cv_lib_z_inflate" = xyes; then :
10555
10556 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
10557
10558                             ZLIB="-lz"
10559
10560 fi
10561
10562 fi
10563 if test "x$ZLIB" = "x"; then :
10564   case "x$with_zlib" in
10565   x)   as_fn_append wine_notices "|libz ${notice_platform}development files not found, data compression won't be supported." ;;
10566   xno) ;;
10567   *)   as_fn_error $? "libz ${notice_platform}development files not found, data compression won't be supported.
10568 This is an error since --with-zlib was requested." "$LINENO" 5 ;;
10569 esac
10570 fi
10571
10572 if test "x$enable_tools" != xno
10573 then
10574     if test "$ac_cv_header_gettext_po_h" = "yes"
10575     then
10576         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for po_message_msgctxt in -lgettextpo" >&5
10577 $as_echo_n "checking for po_message_msgctxt in -lgettextpo... " >&6; }
10578 if ${ac_cv_lib_gettextpo_po_message_msgctxt+:} false; then :
10579   $as_echo_n "(cached) " >&6
10580 else
10581   ac_check_lib_save_LIBS=$LIBS
10582 LIBS="-lgettextpo  $LIBS"
10583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10584 /* end confdefs.h.  */
10585
10586 /* Override any GCC internal prototype to avoid an error.
10587    Use char because int might match the return type of a GCC
10588    builtin and then its argument prototype would still apply.  */
10589 #ifdef __cplusplus
10590 extern "C"
10591 #endif
10592 char po_message_msgctxt ();
10593 int
10594 main ()
10595 {
10596 return po_message_msgctxt ();
10597   ;
10598   return 0;
10599 }
10600 _ACEOF
10601 if ac_fn_c_try_link "$LINENO"; then :
10602   ac_cv_lib_gettextpo_po_message_msgctxt=yes
10603 else
10604   ac_cv_lib_gettextpo_po_message_msgctxt=no
10605 fi
10606 rm -f core conftest.err conftest.$ac_objext \
10607     conftest$ac_exeext conftest.$ac_ext
10608 LIBS=$ac_check_lib_save_LIBS
10609 fi
10610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gettextpo_po_message_msgctxt" >&5
10611 $as_echo "$ac_cv_lib_gettextpo_po_message_msgctxt" >&6; }
10612 if test "x$ac_cv_lib_gettextpo_po_message_msgctxt" = xyes; then :
10613
10614 $as_echo "#define HAVE_LIBGETTEXTPO 1" >>confdefs.h
10615
10616                       LIBGETTEXTPO="-lgettextpo"
10617
10618 fi
10619
10620     fi
10621     test "x$with_gettextpo" != xyes || if test "x$LIBGETTEXTPO" = "x"; then :
10622   case "x$with_gettextpo" in
10623   x)   as_fn_append wine_notices "|GetText ${notice_platform}development files not found (or too old), po files can't be rebuilt." ;;
10624   xno) ;;
10625   *)   as_fn_error $? "GetText ${notice_platform}development files not found (or too old), po files can't be rebuilt.
10626 This is an error since --with-gettextpo was requested." "$LINENO" 5 ;;
10627 esac
10628 fi
10629 fi
10630
10631 if test "x$with_gstreamer" != "xno"
10632 then
10633     ac_save_CPPFLAGS="$CPPFLAGS"
10634     if test "$PKG_CONFIG" != "false"; then
10635         ac_gst_incl=""
10636         for i in `$PKG_CONFIG --cflags gstreamer-app-0.10 2>/dev/null`
10637         do
10638             case "$i" in
10639                 -I*) ac_gst_incl="$ac_gst_incl $i";;
10640             esac
10641         done
10642         ac_gst_libs="`$PKG_CONFIG --libs gstreamer-app-0.10 2>/dev/null`"
10643         CPPFLAGS="$CPPFLAGS $ac_gst_incl"
10644         ac_fn_c_check_header_mongrel "$LINENO" "gst/gstpad.h" "ac_cv_header_gst_gstpad_h" "$ac_includes_default"
10645 if test "x$ac_cv_header_gst_gstpad_h" = xyes; then :
10646   ac_fn_c_check_header_mongrel "$LINENO" "gst/app/gstappsink.h" "ac_cv_header_gst_app_gstappsink_h" "$ac_includes_default"
10647 if test "x$ac_cv_header_gst_app_gstappsink_h" = xyes; then :
10648   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gint64 defined by gst/app/gstappsink.h is indeed 64-bit" >&5
10649 $as_echo_n "checking whether gint64 defined by gst/app/gstappsink.h is indeed 64-bit... " >&6; }
10650               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10651 /* end confdefs.h.  */
10652 #include <gst/app/gstappsink.h>
10653 int
10654 main ()
10655 {
10656 static int a[sizeof(gint64) > 4 ? 1 : -1]; if (a[0]) return 0;
10657   ;
10658   return 0;
10659 }
10660 _ACEOF
10661 if ac_fn_c_try_compile "$LINENO"; then :
10662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10663 $as_echo "yes" >&6; }
10664                  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_pad_get_caps_reffed in -lgstreamer-0.10" >&5
10665 $as_echo_n "checking for gst_pad_get_caps_reffed in -lgstreamer-0.10... " >&6; }
10666 if ${ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed+:} false; then :
10667   $as_echo_n "(cached) " >&6
10668 else
10669   ac_check_lib_save_LIBS=$LIBS
10670 LIBS="-lgstreamer-0.10  $LIBS"
10671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10672 /* end confdefs.h.  */
10673
10674 /* Override any GCC internal prototype to avoid an error.
10675    Use char because int might match the return type of a GCC
10676    builtin and then its argument prototype would still apply.  */
10677 #ifdef __cplusplus
10678 extern "C"
10679 #endif
10680 char gst_pad_get_caps_reffed ();
10681 int
10682 main ()
10683 {
10684 return gst_pad_get_caps_reffed ();
10685   ;
10686   return 0;
10687 }
10688 _ACEOF
10689 if ac_fn_c_try_link "$LINENO"; then :
10690   ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=yes
10691 else
10692   ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=no
10693 fi
10694 rm -f core conftest.err conftest.$ac_objext \
10695     conftest$ac_exeext conftest.$ac_ext
10696 LIBS=$ac_check_lib_save_LIBS
10697 fi
10698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&5
10699 $as_echo "$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&6; }
10700 if test "x$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" = xyes; then :
10701   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_app_buffer_new in -lgstapp-0.10" >&5
10702 $as_echo_n "checking for gst_app_buffer_new in -lgstapp-0.10... " >&6; }
10703 if ${ac_cv_lib_gstapp_0_10_gst_app_buffer_new+:} false; then :
10704   $as_echo_n "(cached) " >&6
10705 else
10706   ac_check_lib_save_LIBS=$LIBS
10707 LIBS="-lgstapp-0.10 $ac_gst_libs $LIBS"
10708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10709 /* end confdefs.h.  */
10710
10711 /* Override any GCC internal prototype to avoid an error.
10712    Use char because int might match the return type of a GCC
10713    builtin and then its argument prototype would still apply.  */
10714 #ifdef __cplusplus
10715 extern "C"
10716 #endif
10717 char gst_app_buffer_new ();
10718 int
10719 main ()
10720 {
10721 return gst_app_buffer_new ();
10722   ;
10723   return 0;
10724 }
10725 _ACEOF
10726 if ac_fn_c_try_link "$LINENO"; then :
10727   ac_cv_lib_gstapp_0_10_gst_app_buffer_new=yes
10728 else
10729   ac_cv_lib_gstapp_0_10_gst_app_buffer_new=no
10730 fi
10731 rm -f core conftest.err conftest.$ac_objext \
10732     conftest$ac_exeext conftest.$ac_ext
10733 LIBS=$ac_check_lib_save_LIBS
10734 fi
10735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&5
10736 $as_echo "$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&6; }
10737 if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = xyes; then :
10738   GSTREAMER_LIBS="$ac_gst_libs"
10739
10740                        GSTREAMER_INCL="$ac_gst_incl"
10741
10742 fi
10743
10744 fi
10745
10746 else
10747   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10748 $as_echo "no" >&6; }
10749 fi
10750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10751 fi
10752
10753
10754 fi
10755
10756
10757     fi
10758     CPPFLAGS="$ac_save_CPPFLAGS"
10759 fi
10760 if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" != xyes -a "x$ac_cv_header_QuickTime_ImageCompression_h" != xyes; then :
10761   case "x$with_gstreamer" in
10762   x)   as_fn_append wine_notices "|gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled" ;;
10763   xno) ;;
10764   *)   as_fn_error $? "gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled
10765 This is an error since --with-gstreamer was requested." "$LINENO" 5 ;;
10766 esac
10767 fi
10768 test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = xyes || enable_winegstreamer=${enable_winegstreamer:-no}
10769
10770 ALSALIBS=""
10771
10772 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
10773 then
10774     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_hw_params_get_access_mask in -lasound" >&5
10775 $as_echo_n "checking for snd_pcm_hw_params_get_access_mask in -lasound... " >&6; }
10776 if ${ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask+:} false; then :
10777   $as_echo_n "(cached) " >&6
10778 else
10779   ac_check_lib_save_LIBS=$LIBS
10780 LIBS="-lasound  $LIBS"
10781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10782 /* end confdefs.h.  */
10783
10784 /* Override any GCC internal prototype to avoid an error.
10785    Use char because int might match the return type of a GCC
10786    builtin and then its argument prototype would still apply.  */
10787 #ifdef __cplusplus
10788 extern "C"
10789 #endif
10790 char snd_pcm_hw_params_get_access_mask ();
10791 int
10792 main ()
10793 {
10794 return snd_pcm_hw_params_get_access_mask ();
10795   ;
10796   return 0;
10797 }
10798 _ACEOF
10799 if ac_fn_c_try_link "$LINENO"; then :
10800   ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=yes
10801 else
10802   ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=no
10803 fi
10804 rm -f core conftest.err conftest.$ac_objext \
10805     conftest$ac_exeext conftest.$ac_ext
10806 LIBS=$ac_check_lib_save_LIBS
10807 fi
10808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&5
10809 $as_echo "$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&6; }
10810 if test "x$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" = xyes; then :
10811   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10812 /* end confdefs.h.  */
10813 #ifdef HAVE_ALSA_ASOUNDLIB_H
10814 #include <alsa/asoundlib.h>
10815 #elif defined(HAVE_SYS_ASOUNDLIB_H)
10816 #include <sys/asoundlib.h>
10817 #endif
10818 int
10819 main ()
10820 {
10821 snd_pcm_hw_params_get_access_mask(NULL, NULL)
10822   ;
10823   return 0;
10824 }
10825 _ACEOF
10826 if ac_fn_c_try_compile "$LINENO"; then :
10827   ALSALIBS="-lasound"
10828 fi
10829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10830 fi
10831
10832 fi
10833
10834 if test "x$with_oss" != xno
10835 then
10836     ac_save_CPPFLAGS="$CPPFLAGS"
10837     if test -f /etc/oss.conf
10838     then
10839         . /etc/oss.conf
10840     fi
10841     ac_oss_incl="-I${OSSLIBDIR:-/usr/lib/oss}/include"
10842     CPPFLAGS="$CPPFLAGS $ac_oss_incl"
10843     ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
10844 if test "x$ac_cv_header_sys_soundcard_h" = xyes; then :
10845   ac_fn_c_check_member "$LINENO" "oss_sysinfo" "numaudioengines" "ac_cv_member_oss_sysinfo_numaudioengines" "#include <sys/soundcard.h>
10846 "
10847 if test "x$ac_cv_member_oss_sysinfo_numaudioengines" = xyes; then :
10848
10849 cat >>confdefs.h <<_ACEOF
10850 #define HAVE_OSS_SYSINFO_NUMAUDIOENGINES 1
10851 _ACEOF
10852
10853 OSS4INCL="$ac_oss_incl"
10854
10855 fi
10856
10857 fi
10858
10859
10860     CPPFLAGS="$ac_save_CPPFLAGS"
10861     if test "x$ac_cv_member_oss_sysinfo_numaudioengines" != xyes
10862     then
10863         as_fn_append wine_notices "|OSS sound system found but too old (OSSv4 needed), OSS won't be supported."
10864     fi
10865 fi
10866
10867
10868 if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes"
10869 then
10870     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcapi20" >&5
10871 $as_echo_n "checking for -lcapi20... " >&6; }
10872 if ${ac_cv_lib_soname_capi20+:} false; then :
10873   $as_echo_n "(cached) " >&6
10874 else
10875   ac_check_soname_save_LIBS=$LIBS
10876 LIBS="-lcapi20  $LIBS"
10877   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10878 /* end confdefs.h.  */
10879
10880 /* Override any GCC internal prototype to avoid an error.
10881    Use char because int might match the return type of a GCC
10882    builtin and then its argument prototype would still apply.  */
10883 #ifdef __cplusplus
10884 extern "C"
10885 #endif
10886 char capi20_register ();
10887 int
10888 main ()
10889 {
10890 return capi20_register ();
10891   ;
10892   return 0;
10893 }
10894 _ACEOF
10895 if ac_fn_c_try_link "$LINENO"; then :
10896   case "$LIBEXT" in
10897     dll) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest.exe | grep "capi20" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10898     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'` ;;
10899     *) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcapi20\\.$LIBEXT" | sed -e "s/^.*\(libcapi20\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'` ;;
10900   esac
10901 fi
10902 rm -f core conftest.err conftest.$ac_objext \
10903     conftest$ac_exeext conftest.$ac_ext
10904   LIBS=$ac_check_soname_save_LIBS
10905 fi
10906 if test "x$ac_cv_lib_soname_capi20" = "x"; then :
10907   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10908 $as_echo "not found" >&6; }
10909
10910 else
10911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_capi20" >&5
10912 $as_echo "$ac_cv_lib_soname_capi20" >&6; }
10913
10914 cat >>confdefs.h <<_ACEOF
10915 #define SONAME_LIBCAPI20 "$ac_cv_lib_soname_capi20"
10916 _ACEOF
10917
10918
10919 fi
10920 fi
10921 if test "x$ac_cv_lib_soname_capi20" = "x"; then :
10922   case "x$with_capi" in
10923   x)   as_fn_append wine_notices "|libcapi20 ${notice_platform}development files not found, ISDN won't be supported." ;;
10924   xno) ;;
10925   *)   as_fn_error $? "libcapi20 ${notice_platform}development files not found, ISDN won't be supported.
10926 This is an error since --with-capi was requested." "$LINENO" 5 ;;
10927 esac
10928 fi
10929
10930 CUPSINCL=""
10931
10932 if test "x$with_cups" != "xno"
10933 then
10934     ac_save_CPPFLAGS="$CPPFLAGS"
10935     ac_cups_cflags=`cups-config --cflags 2>/dev/null`
10936     ac_cups_libs=`cups-config --ldflags 2>/dev/null`
10937     CPPFLAGS="$CPPFLAGS $ac_cups_cflags"
10938     for ac_header in cups/cups.h
10939 do :
10940   ac_fn_c_check_header_mongrel "$LINENO" "cups/cups.h" "ac_cv_header_cups_cups_h" "$ac_includes_default"
10941 if test "x$ac_cv_header_cups_cups_h" = xyes; then :
10942   cat >>confdefs.h <<_ACEOF
10943 #define HAVE_CUPS_CUPS_H 1
10944 _ACEOF
10945  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcups" >&5
10946 $as_echo_n "checking for -lcups... " >&6; }
10947 if ${ac_cv_lib_soname_cups+:} false; then :
10948   $as_echo_n "(cached) " >&6
10949 else
10950   ac_check_soname_save_LIBS=$LIBS
10951 LIBS="-lcups $ac_cups_libs $LIBS"
10952   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10953 /* end confdefs.h.  */
10954
10955 /* Override any GCC internal prototype to avoid an error.
10956    Use char because int might match the return type of a GCC
10957    builtin and then its argument prototype would still apply.  */
10958 #ifdef __cplusplus
10959 extern "C"
10960 #endif
10961 char cupsGetDefault ();
10962 int
10963 main ()
10964 {
10965 return cupsGetDefault ();
10966   ;
10967   return 0;
10968 }
10969 _ACEOF
10970 if ac_fn_c_try_link "$LINENO"; then :
10971   case "$LIBEXT" in
10972     dll) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest.exe | grep "cups" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10973     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'` ;;
10974     *) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcups\\.$LIBEXT" | sed -e "s/^.*\(libcups\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
10975   esac
10976 fi
10977 rm -f core conftest.err conftest.$ac_objext \
10978     conftest$ac_exeext conftest.$ac_ext
10979   LIBS=$ac_check_soname_save_LIBS
10980 fi
10981 if test "x$ac_cv_lib_soname_cups" = "x"; then :
10982   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10983 $as_echo "not found" >&6; }
10984
10985 else
10986   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_cups" >&5
10987 $as_echo "$ac_cv_lib_soname_cups" >&6; }
10988
10989 cat >>confdefs.h <<_ACEOF
10990 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
10991 _ACEOF
10992
10993        CUPSINCL="$ac_cups_cflags"
10994 fi
10995 fi
10996
10997 done
10998
10999     CPPFLAGS="$ac_save_CPPFLAGS"
11000 fi
11001 if test "x$ac_cv_lib_soname_cups" = "x"; then :
11002   case "x$with_cups" in
11003   x)   as_fn_append wine_notices "|libcups ${notice_platform}development files not found, CUPS won't be supported." ;;
11004   xno) ;;
11005   *)   as_fn_error $? "libcups ${notice_platform}development files not found, CUPS won't be supported.
11006 This is an error since --with-cups was requested." "$LINENO" 5 ;;
11007 esac
11008 fi
11009
11010 if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
11011 then
11012     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
11013 $as_echo_n "checking for -lfontconfig... " >&6; }
11014 if ${ac_cv_lib_soname_fontconfig+:} false; then :
11015   $as_echo_n "(cached) " >&6
11016 else
11017   ac_check_soname_save_LIBS=$LIBS
11018 LIBS="-lfontconfig  $LIBS"
11019   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11020 /* end confdefs.h.  */
11021
11022 /* Override any GCC internal prototype to avoid an error.
11023    Use char because int might match the return type of a GCC
11024    builtin and then its argument prototype would still apply.  */
11025 #ifdef __cplusplus
11026 extern "C"
11027 #endif
11028 char FcInit ();
11029 int
11030 main ()
11031 {
11032 return FcInit ();
11033   ;
11034   return 0;
11035 }
11036 _ACEOF
11037 if ac_fn_c_try_link "$LINENO"; then :
11038   case "$LIBEXT" in
11039     dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11040     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'` ;;
11041     *) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'` ;;
11042   esac
11043 fi
11044 rm -f core conftest.err conftest.$ac_objext \
11045     conftest$ac_exeext conftest.$ac_ext
11046   LIBS=$ac_check_soname_save_LIBS
11047 fi
11048 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11049   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11050 $as_echo "not found" >&6; }
11051
11052 else
11053   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
11054 $as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
11055
11056 cat >>confdefs.h <<_ACEOF
11057 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
11058 _ACEOF
11059
11060
11061 fi
11062 elif test -n "$X_CFLAGS" -a "x$with_fontconfig" != "xno"
11063 then
11064         ac_save_CPPFLAGS="$CPPFLAGS"
11065     CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11066     $as_unset ac_cv_header_fontconfig_fontconfig_h
11067     for ac_header in fontconfig/fontconfig.h
11068 do :
11069   ac_fn_c_check_header_mongrel "$LINENO" "fontconfig/fontconfig.h" "ac_cv_header_fontconfig_fontconfig_h" "$ac_includes_default"
11070 if test "x$ac_cv_header_fontconfig_fontconfig_h" = xyes; then :
11071   cat >>confdefs.h <<_ACEOF
11072 #define HAVE_FONTCONFIG_FONTCONFIG_H 1
11073 _ACEOF
11074
11075 fi
11076
11077 done
11078
11079     CPPFLAGS="$ac_save_CPPFLAGS"
11080     if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
11081     then
11082         FONTCONFIGINCL="$X_CFLAGS"
11083
11084         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
11085 $as_echo_n "checking for -lfontconfig... " >&6; }
11086 if ${ac_cv_lib_soname_fontconfig+:} false; then :
11087   $as_echo_n "(cached) " >&6
11088 else
11089   ac_check_soname_save_LIBS=$LIBS
11090 LIBS="-lfontconfig $X_LIBS $LIBS"
11091   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11092 /* end confdefs.h.  */
11093
11094 /* Override any GCC internal prototype to avoid an error.
11095    Use char because int might match the return type of a GCC
11096    builtin and then its argument prototype would still apply.  */
11097 #ifdef __cplusplus
11098 extern "C"
11099 #endif
11100 char FcInit ();
11101 int
11102 main ()
11103 {
11104 return FcInit ();
11105   ;
11106   return 0;
11107 }
11108 _ACEOF
11109 if ac_fn_c_try_link "$LINENO"; then :
11110   case "$LIBEXT" in
11111     dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11112     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'` ;;
11113     *) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'` ;;
11114   esac
11115 fi
11116 rm -f core conftest.err conftest.$ac_objext \
11117     conftest$ac_exeext conftest.$ac_ext
11118   LIBS=$ac_check_soname_save_LIBS
11119 fi
11120 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11121   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11122 $as_echo "not found" >&6; }
11123
11124 else
11125   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
11126 $as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
11127
11128 cat >>confdefs.h <<_ACEOF
11129 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
11130 _ACEOF
11131
11132
11133 fi
11134     fi
11135 fi
11136 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11137   case "x$with_fontconfig" in
11138   x)   as_fn_append wine_notices "|fontconfig ${notice_platform}development files not found, fontconfig won't be supported." ;;
11139   xno) ;;
11140   *)   as_fn_error $? "fontconfig ${notice_platform}development files not found, fontconfig won't be supported.
11141 This is an error since --with-fontconfig was requested." "$LINENO" 5 ;;
11142 esac
11143 fi
11144
11145 if test "$ac_cv_header_openssl_err_h" = "yes" -a "$ac_cv_header_openssl_ssl_h" = "yes"
11146 then
11147     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lssl" >&5
11148 $as_echo_n "checking for -lssl... " >&6; }
11149 if ${ac_cv_lib_soname_ssl+:} false; then :
11150   $as_echo_n "(cached) " >&6
11151 else
11152   ac_check_soname_save_LIBS=$LIBS
11153 LIBS="-lssl  $LIBS"
11154   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11155 /* end confdefs.h.  */
11156
11157 /* Override any GCC internal prototype to avoid an error.
11158    Use char because int might match the return type of a GCC
11159    builtin and then its argument prototype would still apply.  */
11160 #ifdef __cplusplus
11161 extern "C"
11162 #endif
11163 char SSL_library_init ();
11164 int
11165 main ()
11166 {
11167 return SSL_library_init ();
11168   ;
11169   return 0;
11170 }
11171 _ACEOF
11172 if ac_fn_c_try_link "$LINENO"; then :
11173   case "$LIBEXT" in
11174     dll) ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest.exe | grep "ssl" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11175     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'` ;;
11176     *) ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep "libssl\\.$LIBEXT" | sed -e "s/^.*\(libssl\.$LIBEXT[^     ]*\).*$/\1/"';2,$d'` ;;
11177   esac
11178 fi
11179 rm -f core conftest.err conftest.$ac_objext \
11180     conftest$ac_exeext conftest.$ac_ext
11181   LIBS=$ac_check_soname_save_LIBS
11182 fi
11183 if test "x$ac_cv_lib_soname_ssl" = "x"; then :
11184   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11185 $as_echo "not found" >&6; }
11186
11187 else
11188   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ssl" >&5
11189 $as_echo "$ac_cv_lib_soname_ssl" >&6; }
11190
11191 cat >>confdefs.h <<_ACEOF
11192 #define SONAME_LIBSSL "$ac_cv_lib_soname_ssl"
11193 _ACEOF
11194
11195
11196 fi
11197     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcrypto" >&5
11198 $as_echo_n "checking for -lcrypto... " >&6; }
11199 if ${ac_cv_lib_soname_crypto+:} false; then :
11200   $as_echo_n "(cached) " >&6
11201 else
11202   ac_check_soname_save_LIBS=$LIBS
11203 LIBS="-lcrypto  $LIBS"
11204   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11205 /* end confdefs.h.  */
11206
11207 /* Override any GCC internal prototype to avoid an error.
11208    Use char because int might match the return type of a GCC
11209    builtin and then its argument prototype would still apply.  */
11210 #ifdef __cplusplus
11211 extern "C"
11212 #endif
11213 char BIO_new_socket ();
11214 int
11215 main ()
11216 {
11217 return BIO_new_socket ();
11218   ;
11219   return 0;
11220 }
11221 _ACEOF
11222 if ac_fn_c_try_link "$LINENO"; then :
11223   case "$LIBEXT" in
11224     dll) ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest.exe | grep "crypto" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11225     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'` ;;
11226     *) ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcrypto\\.$LIBEXT" | sed -e "s/^.*\(libcrypto\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'` ;;
11227   esac
11228 fi
11229 rm -f core conftest.err conftest.$ac_objext \
11230     conftest$ac_exeext conftest.$ac_ext
11231   LIBS=$ac_check_soname_save_LIBS
11232 fi
11233 if test "x$ac_cv_lib_soname_crypto" = "x"; then :
11234   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11235 $as_echo "not found" >&6; }
11236
11237 else
11238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_crypto" >&5
11239 $as_echo "$ac_cv_lib_soname_crypto" >&6; }
11240
11241 cat >>confdefs.h <<_ACEOF
11242 #define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto"
11243 _ACEOF
11244
11245
11246 fi
11247 fi
11248 if test "x$ac_cv_lib_soname_ssl" = "x" -o "x$ac_cv_lib_soname_crypto" = "x"; then :
11249   case "x$with_openssl" in
11250   x)   as_fn_append wine_warnings "|OpenSSL ${notice_platform}development files not found, SSL won't be supported." ;;
11251   xno) ;;
11252   *)   as_fn_error $? "OpenSSL ${notice_platform}development files not found, SSL won't be supported.
11253 This is an error since --with-openssl was requested." "$LINENO" 5 ;;
11254 esac
11255 fi
11256
11257 if test "$ac_cv_header_gsm_h" = "yes" -o "$ac_cv_header_gsm_gsm_h" = "yes"
11258 then
11259     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgsm" >&5
11260 $as_echo_n "checking for -lgsm... " >&6; }
11261 if ${ac_cv_lib_soname_gsm+:} false; then :
11262   $as_echo_n "(cached) " >&6
11263 else
11264   ac_check_soname_save_LIBS=$LIBS
11265 LIBS="-lgsm  $LIBS"
11266   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11267 /* end confdefs.h.  */
11268
11269 /* Override any GCC internal prototype to avoid an error.
11270    Use char because int might match the return type of a GCC
11271    builtin and then its argument prototype would still apply.  */
11272 #ifdef __cplusplus
11273 extern "C"
11274 #endif
11275 char gsm_create ();
11276 int
11277 main ()
11278 {
11279 return gsm_create ();
11280   ;
11281   return 0;
11282 }
11283 _ACEOF
11284 if ac_fn_c_try_link "$LINENO"; then :
11285   case "$LIBEXT" in
11286     dll) ac_cv_lib_soname_gsm=`$ac_cv_path_LDD conftest.exe | grep "gsm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11287     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'` ;;
11288     *) ac_cv_lib_soname_gsm=`$ac_cv_path_LDD conftest$ac_exeext | grep "libgsm\\.$LIBEXT" | sed -e "s/^.*\(libgsm\.$LIBEXT[^     ]*\).*$/\1/"';2,$d'` ;;
11289   esac
11290 fi
11291 rm -f core conftest.err conftest.$ac_objext \
11292     conftest$ac_exeext conftest.$ac_ext
11293   LIBS=$ac_check_soname_save_LIBS
11294 fi
11295 if test "x$ac_cv_lib_soname_gsm" = "x"; then :
11296   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11297 $as_echo "not found" >&6; }
11298
11299 else
11300   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gsm" >&5
11301 $as_echo "$ac_cv_lib_soname_gsm" >&6; }
11302
11303 cat >>confdefs.h <<_ACEOF
11304 #define SONAME_LIBGSM "$ac_cv_lib_soname_gsm"
11305 _ACEOF
11306
11307
11308 fi
11309 fi
11310 if test "x$ac_cv_lib_soname_gsm" = "x"; then :
11311   case "x$with_gsm" in
11312   x)   as_fn_append wine_notices "|libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported." ;;
11313   xno) ;;
11314   *)   as_fn_error $? "libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported.
11315 This is an error since --with-gsm was requested." "$LINENO" 5 ;;
11316 esac
11317 fi
11318
11319 if test "$ac_cv_header_jpeglib_h" = "yes"
11320 then
11321     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ljpeg" >&5
11322 $as_echo_n "checking for -ljpeg... " >&6; }
11323 if ${ac_cv_lib_soname_jpeg+:} false; then :
11324   $as_echo_n "(cached) " >&6
11325 else
11326   ac_check_soname_save_LIBS=$LIBS
11327 LIBS="-ljpeg  $LIBS"
11328   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11329 /* end confdefs.h.  */
11330
11331 /* Override any GCC internal prototype to avoid an error.
11332    Use char because int might match the return type of a GCC
11333    builtin and then its argument prototype would still apply.  */
11334 #ifdef __cplusplus
11335 extern "C"
11336 #endif
11337 char jpeg_start_decompress ();
11338 int
11339 main ()
11340 {
11341 return jpeg_start_decompress ();
11342   ;
11343   return 0;
11344 }
11345 _ACEOF
11346 if ac_fn_c_try_link "$LINENO"; then :
11347   case "$LIBEXT" in
11348     dll) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest.exe | grep "jpeg" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11349     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'` ;;
11350     *) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest$ac_exeext | grep "libjpeg\\.$LIBEXT" | sed -e "s/^.*\(libjpeg\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
11351   esac
11352 fi
11353 rm -f core conftest.err conftest.$ac_objext \
11354     conftest$ac_exeext conftest.$ac_ext
11355   LIBS=$ac_check_soname_save_LIBS
11356 fi
11357 if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
11358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11359 $as_echo "not found" >&6; }
11360
11361 else
11362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_jpeg" >&5
11363 $as_echo "$ac_cv_lib_soname_jpeg" >&6; }
11364
11365 cat >>confdefs.h <<_ACEOF
11366 #define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg"
11367 _ACEOF
11368
11369
11370 fi
11371 fi
11372 if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
11373   case "x$with_jpeg" in
11374   x)   as_fn_append wine_warnings "|libjpeg ${notice_platform}development files not found, JPEG won't be supported." ;;
11375   xno) ;;
11376   *)   as_fn_error $? "libjpeg ${notice_platform}development files not found, JPEG won't be supported.
11377 This is an error since --with-jpeg was requested." "$LINENO" 5 ;;
11378 esac
11379 fi
11380
11381 if test "$ac_cv_header_png_h" = "yes"
11382 then
11383     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
11384 $as_echo_n "checking for -lpng... " >&6; }
11385 if ${ac_cv_lib_soname_png+:} false; then :
11386   $as_echo_n "(cached) " >&6
11387 else
11388   ac_check_soname_save_LIBS=$LIBS
11389 LIBS="-lpng -lm -lz $LIBS"
11390   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11391 /* end confdefs.h.  */
11392
11393 /* Override any GCC internal prototype to avoid an error.
11394    Use char because int might match the return type of a GCC
11395    builtin and then its argument prototype would still apply.  */
11396 #ifdef __cplusplus
11397 extern "C"
11398 #endif
11399 char png_create_read_struct ();
11400 int
11401 main ()
11402 {
11403 return png_create_read_struct ();
11404   ;
11405   return 0;
11406 }
11407 _ACEOF
11408 if ac_fn_c_try_link "$LINENO"; then :
11409   case "$LIBEXT" in
11410     dll) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest.exe | grep "png" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11411     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'` ;;
11412     *) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest$ac_exeext | grep "libpng[0-9]*\\.$LIBEXT" | sed -e "s/^.*\(libpng[0-9]*\.$LIBEXT[^         ]*\).*$/\1/"';2,$d'` ;;
11413   esac
11414 fi
11415 rm -f core conftest.err conftest.$ac_objext \
11416     conftest$ac_exeext conftest.$ac_ext
11417   LIBS=$ac_check_soname_save_LIBS
11418 fi
11419 if test "x$ac_cv_lib_soname_png" = "x"; then :
11420   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11421 $as_echo "not found" >&6; }
11422
11423 else
11424   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
11425 $as_echo "$ac_cv_lib_soname_png" >&6; }
11426
11427 cat >>confdefs.h <<_ACEOF
11428 #define SONAME_LIBPNG "$ac_cv_lib_soname_png"
11429 _ACEOF
11430
11431
11432 fi
11433     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5
11434 $as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; }
11435 if ${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+:} false; then :
11436   $as_echo_n "(cached) " >&6
11437 else
11438   ac_check_lib_save_LIBS=$LIBS
11439 LIBS="-lpng -lm -lz $LIBS"
11440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11441 /* end confdefs.h.  */
11442
11443 /* Override any GCC internal prototype to avoid an error.
11444    Use char because int might match the return type of a GCC
11445    builtin and then its argument prototype would still apply.  */
11446 #ifdef __cplusplus
11447 extern "C"
11448 #endif
11449 char png_set_expand_gray_1_2_4_to_8 ();
11450 int
11451 main ()
11452 {
11453 return png_set_expand_gray_1_2_4_to_8 ();
11454   ;
11455   return 0;
11456 }
11457 _ACEOF
11458 if ac_fn_c_try_link "$LINENO"; then :
11459   ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes
11460 else
11461   ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no
11462 fi
11463 rm -f core conftest.err conftest.$ac_objext \
11464     conftest$ac_exeext conftest.$ac_ext
11465 LIBS=$ac_check_lib_save_LIBS
11466 fi
11467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5
11468 $as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; }
11469 if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = xyes; then :
11470
11471 $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
11472
11473
11474 fi
11475
11476 elif test -n "$X_CFLAGS" -a "x$with_png" != "xno"
11477 then
11478         ac_save_CPPFLAGS="$CPPFLAGS"
11479     CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11480     $as_unset ac_cv_header_png_h
11481     for ac_header in png.h
11482 do :
11483   ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
11484 if test "x$ac_cv_header_png_h" = xyes; then :
11485   cat >>confdefs.h <<_ACEOF
11486 #define HAVE_PNG_H 1
11487 _ACEOF
11488
11489 fi
11490
11491 done
11492
11493     CPPFLAGS="$ac_save_CPPFLAGS"
11494     if test "$ac_cv_header_png_h" = "yes"
11495     then
11496         PNGINCL="$X_CFLAGS"
11497
11498         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
11499 $as_echo_n "checking for -lpng... " >&6; }
11500 if ${ac_cv_lib_soname_png+:} false; then :
11501   $as_echo_n "(cached) " >&6
11502 else
11503   ac_check_soname_save_LIBS=$LIBS
11504 LIBS="-lpng $X_LIBS -lm -lz $LIBS"
11505   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11506 /* end confdefs.h.  */
11507
11508 /* Override any GCC internal prototype to avoid an error.
11509    Use char because int might match the return type of a GCC
11510    builtin and then its argument prototype would still apply.  */
11511 #ifdef __cplusplus
11512 extern "C"
11513 #endif
11514 char png_create_read_struct ();
11515 int
11516 main ()
11517 {
11518 return png_create_read_struct ();
11519   ;
11520   return 0;
11521 }
11522 _ACEOF
11523 if ac_fn_c_try_link "$LINENO"; then :
11524   case "$LIBEXT" in
11525     dll) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest.exe | grep "png" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11526     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'` ;;
11527     *) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest$ac_exeext | grep "libpng[0-9]*\\.$LIBEXT" | sed -e "s/^.*\(libpng[0-9]*\.$LIBEXT[^         ]*\).*$/\1/"';2,$d'` ;;
11528   esac
11529 fi
11530 rm -f core conftest.err conftest.$ac_objext \
11531     conftest$ac_exeext conftest.$ac_ext
11532   LIBS=$ac_check_soname_save_LIBS
11533 fi
11534 if test "x$ac_cv_lib_soname_png" = "x"; then :
11535   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11536 $as_echo "not found" >&6; }
11537
11538 else
11539   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
11540 $as_echo "$ac_cv_lib_soname_png" >&6; }
11541
11542 cat >>confdefs.h <<_ACEOF
11543 #define SONAME_LIBPNG "$ac_cv_lib_soname_png"
11544 _ACEOF
11545
11546
11547 fi
11548         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5
11549 $as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; }
11550 if ${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+:} false; then :
11551   $as_echo_n "(cached) " >&6
11552 else
11553   ac_check_lib_save_LIBS=$LIBS
11554 LIBS="-lpng $X_LIBS -lm -lz $LIBS"
11555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11556 /* end confdefs.h.  */
11557
11558 /* Override any GCC internal prototype to avoid an error.
11559    Use char because int might match the return type of a GCC
11560    builtin and then its argument prototype would still apply.  */
11561 #ifdef __cplusplus
11562 extern "C"
11563 #endif
11564 char png_set_expand_gray_1_2_4_to_8 ();
11565 int
11566 main ()
11567 {
11568 return png_set_expand_gray_1_2_4_to_8 ();
11569   ;
11570   return 0;
11571 }
11572 _ACEOF
11573 if ac_fn_c_try_link "$LINENO"; then :
11574   ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes
11575 else
11576   ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no
11577 fi
11578 rm -f core conftest.err conftest.$ac_objext \
11579     conftest$ac_exeext conftest.$ac_ext
11580 LIBS=$ac_check_lib_save_LIBS
11581 fi
11582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5
11583 $as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; }
11584 if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = xyes; then :
11585   $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
11586
11587 fi
11588
11589     fi
11590 fi
11591 if test "x$ac_cv_lib_soname_png" = "x"; then :
11592   case "x$with_png" in
11593   x)   as_fn_append wine_warnings "|libpng ${notice_platform}development files not found, PNG won't be supported." ;;
11594   xno) ;;
11595   *)   as_fn_error $? "libpng ${notice_platform}development files not found, PNG won't be supported.
11596 This is an error since --with-png was requested." "$LINENO" 5 ;;
11597 esac
11598 fi
11599
11600 if test "$ac_cv_header_tiffio_h" = "yes"
11601 then
11602     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ltiff" >&5
11603 $as_echo_n "checking for -ltiff... " >&6; }
11604 if ${ac_cv_lib_soname_tiff+:} false; then :
11605   $as_echo_n "(cached) " >&6
11606 else
11607   ac_check_soname_save_LIBS=$LIBS
11608 LIBS="-ltiff  $LIBS"
11609   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11610 /* end confdefs.h.  */
11611
11612 /* Override any GCC internal prototype to avoid an error.
11613    Use char because int might match the return type of a GCC
11614    builtin and then its argument prototype would still apply.  */
11615 #ifdef __cplusplus
11616 extern "C"
11617 #endif
11618 char TIFFClientOpen ();
11619 int
11620 main ()
11621 {
11622 return TIFFClientOpen ();
11623   ;
11624   return 0;
11625 }
11626 _ACEOF
11627 if ac_fn_c_try_link "$LINENO"; then :
11628   case "$LIBEXT" in
11629     dll) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest.exe | grep "tiff" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11630     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'` ;;
11631     *) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest$ac_exeext | grep "libtiff\\.$LIBEXT" | sed -e "s/^.*\(libtiff\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
11632   esac
11633 fi
11634 rm -f core conftest.err conftest.$ac_objext \
11635     conftest$ac_exeext conftest.$ac_ext
11636   LIBS=$ac_check_soname_save_LIBS
11637 fi
11638 if test "x$ac_cv_lib_soname_tiff" = "x"; then :
11639   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11640 $as_echo "not found" >&6; }
11641
11642 else
11643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_tiff" >&5
11644 $as_echo "$ac_cv_lib_soname_tiff" >&6; }
11645
11646 cat >>confdefs.h <<_ACEOF
11647 #define SONAME_LIBTIFF "$ac_cv_lib_soname_tiff"
11648 _ACEOF
11649
11650
11651 fi
11652 fi
11653 if test "x$ac_cv_lib_soname_tiff" = "x"; then :
11654   case "x$with_tiff" in
11655   x)   as_fn_append wine_notices "|libtiff ${notice_platform}development files not found, TIFF won't be supported." ;;
11656   xno) ;;
11657   *)   as_fn_error $? "libtiff ${notice_platform}development files not found, TIFF won't be supported.
11658 This is an error since --with-tiff was requested." "$LINENO" 5 ;;
11659 esac
11660 fi
11661
11662 if test "$ac_cv_header_mpg123_h" = "yes"
11663 then
11664     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpg123_feed in -lmpg123" >&5
11665 $as_echo_n "checking for mpg123_feed in -lmpg123... " >&6; }
11666 if ${ac_cv_lib_mpg123_mpg123_feed+:} false; then :
11667   $as_echo_n "(cached) " >&6
11668 else
11669   ac_check_lib_save_LIBS=$LIBS
11670 LIBS="-lmpg123  $LIBS"
11671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11672 /* end confdefs.h.  */
11673
11674 /* Override any GCC internal prototype to avoid an error.
11675    Use char because int might match the return type of a GCC
11676    builtin and then its argument prototype would still apply.  */
11677 #ifdef __cplusplus
11678 extern "C"
11679 #endif
11680 char mpg123_feed ();
11681 int
11682 main ()
11683 {
11684 return mpg123_feed ();
11685   ;
11686   return 0;
11687 }
11688 _ACEOF
11689 if ac_fn_c_try_link "$LINENO"; then :
11690   ac_cv_lib_mpg123_mpg123_feed=yes
11691 else
11692   ac_cv_lib_mpg123_mpg123_feed=no
11693 fi
11694 rm -f core conftest.err conftest.$ac_objext \
11695     conftest$ac_exeext conftest.$ac_ext
11696 LIBS=$ac_check_lib_save_LIBS
11697 fi
11698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpg123_mpg123_feed" >&5
11699 $as_echo "$ac_cv_lib_mpg123_mpg123_feed" >&6; }
11700 if test "x$ac_cv_lib_mpg123_mpg123_feed" = xyes; then :
11701   LIBMPG123="-lmpg123"
11702
11703 fi
11704
11705 fi
11706 if test "x$ac_cv_lib_mpg123_mpg123_feed" != xyes -a x"$ac_cv_header_CoreAudio_CoreAudio_h" != xyes; then :
11707   case "x$with_mpg123" in
11708   x)   as_fn_append wine_notices "|libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported." ;;
11709   xno) ;;
11710   *)   as_fn_error $? "libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported.
11711 This is an error since --with-mpg123 was requested." "$LINENO" 5 ;;
11712 esac
11713 fi
11714 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}
11715
11716 if test "$ac_cv_header_AL_al_h" = "yes"
11717 then
11718     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lopenal" >&5
11719 $as_echo_n "checking for -lopenal... " >&6; }
11720 if ${ac_cv_lib_soname_openal+:} false; then :
11721   $as_echo_n "(cached) " >&6
11722 else
11723   ac_check_soname_save_LIBS=$LIBS
11724 LIBS="-lopenal  $LIBS"
11725   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11726 /* end confdefs.h.  */
11727
11728 /* Override any GCC internal prototype to avoid an error.
11729    Use char because int might match the return type of a GCC
11730    builtin and then its argument prototype would still apply.  */
11731 #ifdef __cplusplus
11732 extern "C"
11733 #endif
11734 char alGetSource3i ();
11735 int
11736 main ()
11737 {
11738 return alGetSource3i ();
11739   ;
11740   return 0;
11741 }
11742 _ACEOF
11743 if ac_fn_c_try_link "$LINENO"; then :
11744   case "$LIBEXT" in
11745     dll) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest.exe | grep "openal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11746     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'` ;;
11747     *) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest$ac_exeext | grep "libopenal\\.$LIBEXT" | sed -e "s/^.*\(libopenal\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'` ;;
11748   esac
11749 fi
11750 rm -f core conftest.err conftest.$ac_objext \
11751     conftest$ac_exeext conftest.$ac_ext
11752   LIBS=$ac_check_soname_save_LIBS
11753 fi
11754 if test "x$ac_cv_lib_soname_openal" = "x"; then :
11755   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11756 $as_echo "not found" >&6; }
11757
11758 else
11759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_openal" >&5
11760 $as_echo "$ac_cv_lib_soname_openal" >&6; }
11761
11762 cat >>confdefs.h <<_ACEOF
11763 #define SONAME_LIBOPENAL "$ac_cv_lib_soname_openal"
11764 _ACEOF
11765
11766        LIBOPENAL="-lopenal"
11767
11768                       ac_cv_lib_openal=yes
11769
11770 cat >>confdefs.h <<_ACEOF
11771 #define HAVE_OPENAL 1
11772 _ACEOF
11773
11774 fi
11775 fi
11776 if test "x$ac_cv_lib_openal" != xyes; then :
11777   case "x$with_openal" in
11778   x)   as_fn_append wine_notices "|libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported." ;;
11779   xno) ;;
11780   *)   as_fn_error $? "libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported.
11781 This is an error since --with-openal was requested." "$LINENO" 5 ;;
11782 esac
11783 fi
11784 test "x$ac_cv_lib_openal" = xyes || enable_openal32=${enable_openal32:-no}
11785
11786 if test "$ac_cv_header_kstat_h" = "yes"
11787 then
11788     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
11789 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
11790 if ${ac_cv_lib_kstat_kstat_open+:} false; then :
11791   $as_echo_n "(cached) " >&6
11792 else
11793   ac_check_lib_save_LIBS=$LIBS
11794 LIBS="-lkstat  $LIBS"
11795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11796 /* end confdefs.h.  */
11797
11798 /* Override any GCC internal prototype to avoid an error.
11799    Use char because int might match the return type of a GCC
11800    builtin and then its argument prototype would still apply.  */
11801 #ifdef __cplusplus
11802 extern "C"
11803 #endif
11804 char kstat_open ();
11805 int
11806 main ()
11807 {
11808 return kstat_open ();
11809   ;
11810   return 0;
11811 }
11812 _ACEOF
11813 if ac_fn_c_try_link "$LINENO"; then :
11814   ac_cv_lib_kstat_kstat_open=yes
11815 else
11816   ac_cv_lib_kstat_kstat_open=no
11817 fi
11818 rm -f core conftest.err conftest.$ac_objext \
11819     conftest$ac_exeext conftest.$ac_ext
11820 LIBS=$ac_check_lib_save_LIBS
11821 fi
11822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
11823 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
11824 if test "x$ac_cv_lib_kstat_kstat_open" = xyes; then :
11825
11826 $as_echo "#define HAVE_LIBKSTAT 1" >>confdefs.h
11827
11828                   LIBKSTAT="-lkstat"
11829
11830 fi
11831
11832 fi
11833
11834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lodbc" >&5
11835 $as_echo_n "checking for -lodbc... " >&6; }
11836 if ${ac_cv_lib_soname_odbc+:} false; then :
11837   $as_echo_n "(cached) " >&6
11838 else
11839   ac_check_soname_save_LIBS=$LIBS
11840 LIBS="-lodbc  $LIBS"
11841   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11842 /* end confdefs.h.  */
11843
11844 /* Override any GCC internal prototype to avoid an error.
11845    Use char because int might match the return type of a GCC
11846    builtin and then its argument prototype would still apply.  */
11847 #ifdef __cplusplus
11848 extern "C"
11849 #endif
11850 char SQLConnect ();
11851 int
11852 main ()
11853 {
11854 return SQLConnect ();
11855   ;
11856   return 0;
11857 }
11858 _ACEOF
11859 if ac_fn_c_try_link "$LINENO"; then :
11860   case "$LIBEXT" in
11861     dll) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest.exe | grep "odbc" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11862     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'` ;;
11863     *) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest$ac_exeext | grep "libodbc\\.$LIBEXT" | sed -e "s/^.*\(libodbc\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
11864   esac
11865 fi
11866 rm -f core conftest.err conftest.$ac_objext \
11867     conftest$ac_exeext conftest.$ac_ext
11868   LIBS=$ac_check_soname_save_LIBS
11869 fi
11870 if test "x$ac_cv_lib_soname_odbc" = "x"; then :
11871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11872 $as_echo "not found" >&6; }
11873        cat >>confdefs.h <<_ACEOF
11874 #define SONAME_LIBODBC "libodbc.$LIBEXT"
11875 _ACEOF
11876
11877 else
11878   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_odbc" >&5
11879 $as_echo "$ac_cv_lib_soname_odbc" >&6; }
11880
11881 cat >>confdefs.h <<_ACEOF
11882 #define SONAME_LIBODBC "$ac_cv_lib_soname_odbc"
11883 _ACEOF
11884
11885
11886 fi
11887
11888 test -n "$ALSALIBS" || enable_winealsa_drv=${enable_winealsa_drv:-no}
11889 test -n "$COREAUDIO" || enable_winecoreaudio_drv=${enable_winecoreaudio_drv:-no}
11890 test "x$ac_cv_member_oss_sysinfo_numaudioengines" = xyes || enable_wineoss_drv=${enable_wineoss_drv:-no}
11891 test "$ac_cv_header_linux_joystick_h" = "yes" || enable_winejoystick_drv=${enable_winejoystick_drv:-no}
11892
11893 if test "x$ALSALIBS$COREAUDIO" = "x" -a \
11894         "x$ac_cv_member_oss_sysinfo_numaudioengines" != xyes -a \
11895         "x$with_alsa$with_coreaudio$with_oss" != xnonono
11896 then
11897     as_fn_append wine_warnings "|No sound system was found. Windows applications will be silent."
11898 fi
11899
11900
11901 EXTRACFLAGS=""
11902
11903 if test "x${GCC}" = "xyes"
11904 then
11905   EXTRACFLAGS="-Wall -pipe"
11906
11907     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc strength-reduce bug" >&5
11908 $as_echo_n "checking for gcc strength-reduce bug... " >&6; }
11909 if ${ac_cv_c_gcc_strength_bug+:} false; then :
11910   $as_echo_n "(cached) " >&6
11911 else
11912   if test "$cross_compiling" = yes; then :
11913   ac_cv_c_gcc_strength_bug="yes"
11914 else
11915   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11916 /* end confdefs.h.  */
11917 int L[4] = {0,1,2,3};
11918 int
11919 main ()
11920 {
11921 static int Array[3];
11922   unsigned int B = 3;
11923   int i;
11924   for(i=0; i<B; i++) Array[i] = i - 3;
11925   for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
11926   L[i] = 4;
11927   return (Array[1] != -2 || L[2] != 3)
11928   ;
11929   return 0;
11930 }
11931 _ACEOF
11932 if ac_fn_c_try_run "$LINENO"; then :
11933   ac_cv_c_gcc_strength_bug="no"
11934 else
11935   ac_cv_c_gcc_strength_bug="yes"
11936 fi
11937 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11938   conftest.$ac_objext conftest.beam conftest.$ac_ext
11939 fi
11940
11941 fi
11942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gcc_strength_bug" >&5
11943 $as_echo "$ac_cv_c_gcc_strength_bug" >&6; }
11944   if test "$ac_cv_c_gcc_strength_bug" = "yes"
11945   then
11946     EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
11947   fi
11948
11949     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-builtin" >&5
11950 $as_echo_n "checking whether the compiler supports -fno-builtin... " >&6; }
11951 if ${ac_cv_cflags__fno_builtin+:} false; then :
11952   $as_echo_n "(cached) " >&6
11953 else
11954   ac_wine_try_cflags_saved=$CFLAGS
11955 CFLAGS="$CFLAGS -fno-builtin"
11956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11957 /* end confdefs.h.  */
11958 int main(int argc, char **argv) { return 0; }
11959 _ACEOF
11960 if ac_fn_c_try_link "$LINENO"; then :
11961   ac_cv_cflags__fno_builtin=yes
11962 else
11963   ac_cv_cflags__fno_builtin=no
11964 fi
11965 rm -f core conftest.err conftest.$ac_objext \
11966     conftest$ac_exeext conftest.$ac_ext
11967 CFLAGS=$ac_wine_try_cflags_saved
11968 fi
11969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_builtin" >&5
11970 $as_echo "$ac_cv_cflags__fno_builtin" >&6; }
11971 if test $ac_cv_cflags__fno_builtin = yes; then :
11972   BUILTINFLAG="-fno-builtin"
11973
11974 fi
11975   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-strict-aliasing" >&5
11976 $as_echo_n "checking whether the compiler supports -fno-strict-aliasing... " >&6; }
11977 if ${ac_cv_cflags__fno_strict_aliasing+:} false; then :
11978   $as_echo_n "(cached) " >&6
11979 else
11980   ac_wine_try_cflags_saved=$CFLAGS
11981 CFLAGS="$CFLAGS -fno-strict-aliasing"
11982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11983 /* end confdefs.h.  */
11984 int main(int argc, char **argv) { return 0; }
11985 _ACEOF
11986 if ac_fn_c_try_link "$LINENO"; then :
11987   ac_cv_cflags__fno_strict_aliasing=yes
11988 else
11989   ac_cv_cflags__fno_strict_aliasing=no
11990 fi
11991 rm -f core conftest.err conftest.$ac_objext \
11992     conftest$ac_exeext conftest.$ac_ext
11993 CFLAGS=$ac_wine_try_cflags_saved
11994 fi
11995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_strict_aliasing" >&5
11996 $as_echo "$ac_cv_cflags__fno_strict_aliasing" >&6; }
11997 if test $ac_cv_cflags__fno_strict_aliasing = yes; then :
11998   EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
11999 fi
12000   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wdeclaration-after-statement" >&5
12001 $as_echo_n "checking whether the compiler supports -Wdeclaration-after-statement... " >&6; }
12002 if ${ac_cv_cflags__Wdeclaration_after_statement+:} false; then :
12003   $as_echo_n "(cached) " >&6
12004 else
12005   ac_wine_try_cflags_saved=$CFLAGS
12006 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
12007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12008 /* end confdefs.h.  */
12009 int main(int argc, char **argv) { return 0; }
12010 _ACEOF
12011 if ac_fn_c_try_link "$LINENO"; then :
12012   ac_cv_cflags__Wdeclaration_after_statement=yes
12013 else
12014   ac_cv_cflags__Wdeclaration_after_statement=no
12015 fi
12016 rm -f core conftest.err conftest.$ac_objext \
12017     conftest$ac_exeext conftest.$ac_ext
12018 CFLAGS=$ac_wine_try_cflags_saved
12019 fi
12020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wdeclaration_after_statement" >&5
12021 $as_echo "$ac_cv_cflags__Wdeclaration_after_statement" >&6; }
12022 if test $ac_cv_cflags__Wdeclaration_after_statement = yes; then :
12023   EXTRACFLAGS="$EXTRACFLAGS -Wdeclaration-after-statement"
12024 fi
12025   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wempty-body" >&5
12026 $as_echo_n "checking whether the compiler supports -Wempty-body... " >&6; }
12027 if ${ac_cv_cflags__Wempty_body+:} false; then :
12028   $as_echo_n "(cached) " >&6
12029 else
12030   ac_wine_try_cflags_saved=$CFLAGS
12031 CFLAGS="$CFLAGS -Wempty-body"
12032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12033 /* end confdefs.h.  */
12034 int main(int argc, char **argv) { return 0; }
12035 _ACEOF
12036 if ac_fn_c_try_link "$LINENO"; then :
12037   ac_cv_cflags__Wempty_body=yes
12038 else
12039   ac_cv_cflags__Wempty_body=no
12040 fi
12041 rm -f core conftest.err conftest.$ac_objext \
12042     conftest$ac_exeext conftest.$ac_ext
12043 CFLAGS=$ac_wine_try_cflags_saved
12044 fi
12045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wempty_body" >&5
12046 $as_echo "$ac_cv_cflags__Wempty_body" >&6; }
12047 if test $ac_cv_cflags__Wempty_body = yes; then :
12048   EXTRACFLAGS="$EXTRACFLAGS -Wempty-body"
12049 fi
12050   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wignored-qualifiers" >&5
12051 $as_echo_n "checking whether the compiler supports -Wignored-qualifiers... " >&6; }
12052 if ${ac_cv_cflags__Wignored_qualifiers+:} false; then :
12053   $as_echo_n "(cached) " >&6
12054 else
12055   ac_wine_try_cflags_saved=$CFLAGS
12056 CFLAGS="$CFLAGS -Wignored-qualifiers"
12057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12058 /* end confdefs.h.  */
12059 int main(int argc, char **argv) { return 0; }
12060 _ACEOF
12061 if ac_fn_c_try_link "$LINENO"; then :
12062   ac_cv_cflags__Wignored_qualifiers=yes
12063 else
12064   ac_cv_cflags__Wignored_qualifiers=no
12065 fi
12066 rm -f core conftest.err conftest.$ac_objext \
12067     conftest$ac_exeext conftest.$ac_ext
12068 CFLAGS=$ac_wine_try_cflags_saved
12069 fi
12070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wignored_qualifiers" >&5
12071 $as_echo "$ac_cv_cflags__Wignored_qualifiers" >&6; }
12072 if test $ac_cv_cflags__Wignored_qualifiers = yes; then :
12073   EXTRACFLAGS="$EXTRACFLAGS -Wignored-qualifiers"
12074 fi
12075   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wstrict-prototypes" >&5
12076 $as_echo_n "checking whether the compiler supports -Wstrict-prototypes... " >&6; }
12077 if ${ac_cv_cflags__Wstrict_prototypes+:} false; then :
12078   $as_echo_n "(cached) " >&6
12079 else
12080   ac_wine_try_cflags_saved=$CFLAGS
12081 CFLAGS="$CFLAGS -Wstrict-prototypes"
12082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12083 /* end confdefs.h.  */
12084 int main(int argc, char **argv) { return 0; }
12085 _ACEOF
12086 if ac_fn_c_try_link "$LINENO"; then :
12087   ac_cv_cflags__Wstrict_prototypes=yes
12088 else
12089   ac_cv_cflags__Wstrict_prototypes=no
12090 fi
12091 rm -f core conftest.err conftest.$ac_objext \
12092     conftest$ac_exeext conftest.$ac_ext
12093 CFLAGS=$ac_wine_try_cflags_saved
12094 fi
12095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wstrict_prototypes" >&5
12096 $as_echo "$ac_cv_cflags__Wstrict_prototypes" >&6; }
12097 if test $ac_cv_cflags__Wstrict_prototypes = yes; then :
12098   EXTRACFLAGS="$EXTRACFLAGS -Wstrict-prototypes"
12099 fi
12100   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wtype-limits" >&5
12101 $as_echo_n "checking whether the compiler supports -Wtype-limits... " >&6; }
12102 if ${ac_cv_cflags__Wtype_limits+:} false; then :
12103   $as_echo_n "(cached) " >&6
12104 else
12105   ac_wine_try_cflags_saved=$CFLAGS
12106 CFLAGS="$CFLAGS -Wtype-limits"
12107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12108 /* end confdefs.h.  */
12109 int main(int argc, char **argv) { return 0; }
12110 _ACEOF
12111 if ac_fn_c_try_link "$LINENO"; then :
12112   ac_cv_cflags__Wtype_limits=yes
12113 else
12114   ac_cv_cflags__Wtype_limits=no
12115 fi
12116 rm -f core conftest.err conftest.$ac_objext \
12117     conftest$ac_exeext conftest.$ac_ext
12118 CFLAGS=$ac_wine_try_cflags_saved
12119 fi
12120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wtype_limits" >&5
12121 $as_echo "$ac_cv_cflags__Wtype_limits" >&6; }
12122 if test $ac_cv_cflags__Wtype_limits = yes; then :
12123   EXTRACFLAGS="$EXTRACFLAGS -Wtype-limits"
12124 fi
12125   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wunused-but-set-parameter" >&5
12126 $as_echo_n "checking whether the compiler supports -Wunused-but-set-parameter... " >&6; }
12127 if ${ac_cv_cflags__Wunused_but_set_parameter+:} false; then :
12128   $as_echo_n "(cached) " >&6
12129 else
12130   ac_wine_try_cflags_saved=$CFLAGS
12131 CFLAGS="$CFLAGS -Wunused-but-set-parameter"
12132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12133 /* end confdefs.h.  */
12134 int main(int argc, char **argv) { return 0; }
12135 _ACEOF
12136 if ac_fn_c_try_link "$LINENO"; then :
12137   ac_cv_cflags__Wunused_but_set_parameter=yes
12138 else
12139   ac_cv_cflags__Wunused_but_set_parameter=no
12140 fi
12141 rm -f core conftest.err conftest.$ac_objext \
12142     conftest$ac_exeext conftest.$ac_ext
12143 CFLAGS=$ac_wine_try_cflags_saved
12144 fi
12145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wunused_but_set_parameter" >&5
12146 $as_echo "$ac_cv_cflags__Wunused_but_set_parameter" >&6; }
12147 if test $ac_cv_cflags__Wunused_but_set_parameter = yes; then :
12148   EXTRACFLAGS="$EXTRACFLAGS -Wunused-but-set-parameter"
12149 fi
12150   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wwrite-strings" >&5
12151 $as_echo_n "checking whether the compiler supports -Wwrite-strings... " >&6; }
12152 if ${ac_cv_cflags__Wwrite_strings+:} false; then :
12153   $as_echo_n "(cached) " >&6
12154 else
12155   ac_wine_try_cflags_saved=$CFLAGS
12156 CFLAGS="$CFLAGS -Wwrite-strings"
12157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12158 /* end confdefs.h.  */
12159 int main(int argc, char **argv) { return 0; }
12160 _ACEOF
12161 if ac_fn_c_try_link "$LINENO"; then :
12162   ac_cv_cflags__Wwrite_strings=yes
12163 else
12164   ac_cv_cflags__Wwrite_strings=no
12165 fi
12166 rm -f core conftest.err conftest.$ac_objext \
12167     conftest$ac_exeext conftest.$ac_ext
12168 CFLAGS=$ac_wine_try_cflags_saved
12169 fi
12170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wwrite_strings" >&5
12171 $as_echo "$ac_cv_cflags__Wwrite_strings" >&6; }
12172 if test $ac_cv_cflags__Wwrite_strings = yes; then :
12173   EXTRACFLAGS="$EXTRACFLAGS -Wwrite-strings"
12174 fi
12175
12176     case $host_cpu in
12177     *i[3456789]86*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-omit-frame-pointer" >&5
12178 $as_echo_n "checking whether the compiler supports -fno-omit-frame-pointer... " >&6; }
12179 if ${ac_cv_cflags__fno_omit_frame_pointer+:} false; then :
12180   $as_echo_n "(cached) " >&6
12181 else
12182   ac_wine_try_cflags_saved=$CFLAGS
12183 CFLAGS="$CFLAGS -fno-omit-frame-pointer"
12184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12185 /* end confdefs.h.  */
12186 int main(int argc, char **argv) { return 0; }
12187 _ACEOF
12188 if ac_fn_c_try_link "$LINENO"; then :
12189   ac_cv_cflags__fno_omit_frame_pointer=yes
12190 else
12191   ac_cv_cflags__fno_omit_frame_pointer=no
12192 fi
12193 rm -f core conftest.err conftest.$ac_objext \
12194     conftest$ac_exeext conftest.$ac_ext
12195 CFLAGS=$ac_wine_try_cflags_saved
12196 fi
12197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_omit_frame_pointer" >&5
12198 $as_echo "$ac_cv_cflags__fno_omit_frame_pointer" >&6; }
12199 if test $ac_cv_cflags__fno_omit_frame_pointer = yes; then :
12200   EXTRACFLAGS="$EXTRACFLAGS -fno-omit-frame-pointer"
12201 fi ;;
12202   esac
12203
12204     case $host in
12205     x86_64-*mingw32*|x86_64-*cygwin*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wno-format" >&5
12206 $as_echo_n "checking whether the compiler supports -Wno-format... " >&6; }
12207 if ${ac_cv_cflags__Wno_format+:} false; then :
12208   $as_echo_n "(cached) " >&6
12209 else
12210   ac_wine_try_cflags_saved=$CFLAGS
12211 CFLAGS="$CFLAGS -Wno-format"
12212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12213 /* end confdefs.h.  */
12214 int main(int argc, char **argv) { return 0; }
12215 _ACEOF
12216 if ac_fn_c_try_link "$LINENO"; then :
12217   ac_cv_cflags__Wno_format=yes
12218 else
12219   ac_cv_cflags__Wno_format=no
12220 fi
12221 rm -f core conftest.err conftest.$ac_objext \
12222     conftest$ac_exeext conftest.$ac_ext
12223 CFLAGS=$ac_wine_try_cflags_saved
12224 fi
12225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wno_format" >&5
12226 $as_echo "$ac_cv_cflags__Wno_format" >&6; }
12227 if test $ac_cv_cflags__Wno_format = yes; then :
12228   EXTRACFLAGS="$EXTRACFLAGS -Wno-format"
12229 fi ;;
12230   esac
12231
12232     saved_CFLAGS="$CFLAGS"
12233   CFLAGS="$CFLAGS -Wpointer-arith -Werror"
12234   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wpointer-arith" >&5
12235 $as_echo_n "checking for broken string.h that generates warnings with -Wpointer-arith... " >&6; }
12236 if ${ac_cv_c_string_h_warnings+:} false; then :
12237   $as_echo_n "(cached) " >&6
12238 else
12239   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12240 /* end confdefs.h.  */
12241 #include <string.h>
12242 int
12243 main ()
12244 {
12245
12246   ;
12247   return 0;
12248 }
12249 _ACEOF
12250 if ac_fn_c_try_compile "$LINENO"; then :
12251   ac_cv_c_string_h_warnings=no
12252 else
12253   ac_cv_c_string_h_warnings=yes
12254 fi
12255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12256 fi
12257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_string_h_warnings" >&5
12258 $as_echo "$ac_cv_c_string_h_warnings" >&6; }
12259   CFLAGS="$saved_CFLAGS"
12260   if test "$ac_cv_c_string_h_warnings" = "no"
12261   then
12262     EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
12263   fi
12264
12265     saved_CFLAGS="$CFLAGS"
12266   CFLAGS="$CFLAGS -Wlogical-op -Werror"
12267   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wlogical-op" >&5
12268 $as_echo_n "checking for broken string.h that generates warnings with -Wlogical-op... " >&6; }
12269 if ${ac_cv_c_logicalop_noisy+:} false; then :
12270   $as_echo_n "(cached) " >&6
12271 else
12272   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12273 /* end confdefs.h.  */
12274 #include <string.h>
12275 int
12276 main ()
12277 {
12278 char*f(const char *h,char n) {return strchr(h,n);}
12279   ;
12280   return 0;
12281 }
12282 _ACEOF
12283 if ac_fn_c_try_compile "$LINENO"; then :
12284   ac_cv_c_logicalop_noisy=no
12285 else
12286   ac_cv_c_logicalop_noisy=yes
12287 fi
12288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12289 fi
12290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_logicalop_noisy" >&5
12291 $as_echo "$ac_cv_c_logicalop_noisy" >&6; }
12292   CFLAGS="$saved_CFLAGS"
12293   if test "$ac_cv_c_logicalop_noisy" = "no"
12294   then
12295     EXTRACFLAGS="$EXTRACFLAGS -Wlogical-op"
12296   fi
12297
12298     if test "x$enable_maintainer_mode" = "xyes"
12299   then
12300       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Werror" >&5
12301 $as_echo_n "checking whether the compiler supports -Werror... " >&6; }
12302 if ${ac_cv_cflags__Werror+:} false; then :
12303   $as_echo_n "(cached) " >&6
12304 else
12305   ac_wine_try_cflags_saved=$CFLAGS
12306 CFLAGS="$CFLAGS -Werror"
12307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12308 /* end confdefs.h.  */
12309 int main(int argc, char **argv) { return 0; }
12310 _ACEOF
12311 if ac_fn_c_try_link "$LINENO"; then :
12312   ac_cv_cflags__Werror=yes
12313 else
12314   ac_cv_cflags__Werror=no
12315 fi
12316 rm -f core conftest.err conftest.$ac_objext \
12317     conftest$ac_exeext conftest.$ac_ext
12318 CFLAGS=$ac_wine_try_cflags_saved
12319 fi
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Werror" >&5
12321 $as_echo "$ac_cv_cflags__Werror" >&6; }
12322 if test $ac_cv_cflags__Werror = yes; then :
12323   EXTRACFLAGS="$EXTRACFLAGS -Werror"
12324 fi
12325   fi
12326
12327     saved_CFLAGS="$CFLAGS"
12328   CFLAGS="$CFLAGS -Werror"
12329   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ms_hook_prologue attribute" >&5
12330 $as_echo_n "checking for ms_hook_prologue attribute... " >&6; }
12331 if ${ac_cv_have_ms_hook_prologue+:} false; then :
12332   $as_echo_n "(cached) " >&6
12333 else
12334   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12335 /* end confdefs.h.  */
12336 int __attribute__((__ms_hook_prologue__)) test(void) { return 0; }
12337 int
12338 main ()
12339 {
12340
12341   ;
12342   return 0;
12343 }
12344 _ACEOF
12345 if ac_fn_c_try_compile "$LINENO"; then :
12346   ac_cv_have_ms_hook_prologue="yes"
12347 else
12348   ac_cv_have_ms_hook_prologue="no"
12349 fi
12350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12351 fi
12352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ms_hook_prologue" >&5
12353 $as_echo "$ac_cv_have_ms_hook_prologue" >&6; }
12354   CFLAGS="$saved_CFLAGS"
12355   if test "$ac_cv_have_ms_hook_prologue" = "yes"
12356   then
12357
12358 $as_echo "#define DECLSPEC_HOTPATCH __attribute__((__ms_hook_prologue__))" >>confdefs.h
12359
12360   else
12361       $as_echo "#define DECLSPEC_HOTPATCH /* */" >>confdefs.h
12362
12363   fi
12364 fi
12365
12366
12367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the need to disable Fortify" >&5
12368 $as_echo_n "checking for the need to disable Fortify... " >&6; }
12369 if ${ac_cv_c_fortify_enabled+:} false; then :
12370   $as_echo_n "(cached) " >&6
12371 else
12372   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12373 /* end confdefs.h.  */
12374 #include <string.h>
12375 int
12376 main ()
12377 {
12378 #if defined(__USE_FORTIFY_LEVEL) && __USE_FORTIFY_LEVEL > 0
12379 #error Fortify enabled
12380 #endif
12381   ;
12382   return 0;
12383 }
12384 _ACEOF
12385 if ac_fn_c_try_compile "$LINENO"; then :
12386   ac_cv_c_fortify_enabled=no
12387 else
12388   ac_cv_c_fortify_enabled=yes
12389 fi
12390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12391 fi
12392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_fortify_enabled" >&5
12393 $as_echo "$ac_cv_c_fortify_enabled" >&6; }
12394 if test "$ac_cv_c_fortify_enabled" = yes
12395 then
12396     CFLAGS="$CFLAGS -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0"
12397 fi
12398
12399
12400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need an underscore prefix" >&5
12401 $as_echo_n "checking whether external symbols need an underscore prefix... " >&6; }
12402 if ${ac_cv_c_extern_prefix+:} false; then :
12403   $as_echo_n "(cached) " >&6
12404 else
12405   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12406 /* end confdefs.h.  */
12407 extern int ac_test;
12408 int
12409 main ()
12410 {
12411 asm(".globl _ac_test\n_ac_test:\t.long 0"); if (ac_test) return 1
12412   ;
12413   return 0;
12414 }
12415 _ACEOF
12416 if ac_fn_c_try_link "$LINENO"; then :
12417   ac_cv_c_extern_prefix="yes"
12418 else
12419   ac_cv_c_extern_prefix="no"
12420 fi
12421 rm -f core conftest.err conftest.$ac_objext \
12422     conftest$ac_exeext conftest.$ac_ext
12423 fi
12424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_extern_prefix" >&5
12425 $as_echo "$ac_cv_c_extern_prefix" >&6; }
12426
12427 case $host_cpu in
12428   *i[3456789]86*)
12429     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need stdcall decoration" >&5
12430 $as_echo_n "checking whether external symbols need stdcall decoration... " >&6; }
12431 if ${ac_cv_c_stdcall_suffix+:} false; then :
12432   $as_echo_n "(cached) " >&6
12433 else
12434   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12435 /* end confdefs.h.  */
12436 #ifndef _MSC_VER
12437 #define __stdcall __attribute__((__stdcall__))
12438 #endif
12439 int __stdcall ac_test(int i) { return i; }
12440 int
12441 main ()
12442 {
12443 asm("jmp _ac_test@4"); if (ac_test(1)) return 1
12444   ;
12445   return 0;
12446 }
12447 _ACEOF
12448 if ac_fn_c_try_link "$LINENO"; then :
12449   ac_cv_c_stdcall_suffix="yes"
12450 else
12451   ac_cv_c_stdcall_suffix="no"
12452 fi
12453 rm -f core conftest.err conftest.$ac_objext \
12454     conftest$ac_exeext conftest.$ac_ext
12455 fi
12456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stdcall_suffix" >&5
12457 $as_echo "$ac_cv_c_stdcall_suffix" >&6; } ;;
12458   *) ac_cv_c_stdcall_suffix="no" ;;
12459 esac
12460
12461
12462 if test "$ac_cv_c_extern_prefix" = "yes"
12463 then
12464     $as_echo "#define __ASM_NAME(name) \"_\" name" >>confdefs.h
12465
12466     asm_name_prefix="_"
12467 else
12468     $as_echo "#define __ASM_NAME(name) name" >>confdefs.h
12469
12470     asm_name_prefix=""
12471 fi
12472
12473
12474 if test "$ac_cv_c_stdcall_suffix" = "yes"
12475 then
12476     $as_echo "#define __ASM_STDCALL(args) \"@\" #args" >>confdefs.h
12477
12478 else
12479     $as_echo "#define __ASM_STDCALL(args) \"\"" >>confdefs.h
12480
12481 fi
12482
12483
12484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to define a function in assembly code" >&5
12485 $as_echo_n "checking how to define a function in assembly code... " >&6; }
12486 if ${ac_cv_asm_func_def+:} false; then :
12487   $as_echo_n "(cached) " >&6
12488 else
12489   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12490 /* end confdefs.h.  */
12491
12492 int
12493 main ()
12494 {
12495 asm("\t.globl _ac_test\n\t.def _ac_test; .scl 2; .type 32; .endef\n_ac_test:\t.long 0");
12496   ;
12497   return 0;
12498 }
12499 _ACEOF
12500 if ac_fn_c_try_link "$LINENO"; then :
12501   ac_cv_asm_func_def=".def"
12502 else
12503   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12504 /* end confdefs.h.  */
12505
12506 int
12507 main ()
12508 {
12509 asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0");
12510   ;
12511   return 0;
12512 }
12513 _ACEOF
12514 if ac_fn_c_try_link "$LINENO"; then :
12515   ac_cv_asm_func_def=".type @function"
12516 else
12517   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12518 /* end confdefs.h.  */
12519
12520 int
12521 main ()
12522 {
12523 asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0");
12524   ;
12525   return 0;
12526 }
12527 _ACEOF
12528 if ac_fn_c_try_link "$LINENO"; then :
12529   ac_cv_asm_func_def=".type 2"
12530 else
12531   ac_cv_asm_func_def="unknown"
12532 fi
12533 rm -f core conftest.err conftest.$ac_objext \
12534     conftest$ac_exeext conftest.$ac_ext
12535 fi
12536 rm -f core conftest.err conftest.$ac_objext \
12537     conftest$ac_exeext conftest.$ac_ext
12538 fi
12539 rm -f core conftest.err conftest.$ac_objext \
12540     conftest$ac_exeext conftest.$ac_ext
12541 fi
12542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_asm_func_def" >&5
12543 $as_echo "$ac_cv_asm_func_def" >&6; }
12544
12545
12546 case "$ac_cv_asm_func_def" in
12547   ".def")
12548      $as_echo "#define __ASM_FUNC(name) \".def \" __ASM_NAME(name) \"; .scl 2; .type 32; .endef\"" >>confdefs.h
12549
12550      asm_func_header=".def $asm_name_prefix\" #name suffix \"; .scl 2; .type 32; .endef" ;;
12551   ".type @function")
12552      $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",@function\"" >>confdefs.h
12553
12554      asm_func_header=".type $asm_name_prefix\" #name suffix \",@function" ;;
12555   ".type 2")
12556      $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",2\"" >>confdefs.h
12557
12558      asm_func_header=".type $asm_name_prefix\" #name suffix \",2" ;;
12559   *)
12560      $as_echo "#define __ASM_FUNC(name) \"\"" >>confdefs.h
12561
12562      asm_func_header="" ;;
12563 esac
12564
12565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether asm() works outside of functions" >&5
12566 $as_echo_n "checking whether asm() works outside of functions... " >&6; }
12567 if ${ac_cv_c_asm_outside_funcs+:} false; then :
12568   $as_echo_n "(cached) " >&6
12569 else
12570   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12571 /* end confdefs.h.  */
12572 asm(".text\n\t.long 0");
12573 int
12574 main ()
12575 {
12576
12577   ;
12578   return 0;
12579 }
12580 _ACEOF
12581 if ac_fn_c_try_compile "$LINENO"; then :
12582   ac_cv_c_asm_outside_funcs="yes"
12583 else
12584   ac_cv_c_asm_outside_funcs="no"
12585 fi
12586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12587 fi
12588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_asm_outside_funcs" >&5
12589 $as_echo "$ac_cv_c_asm_outside_funcs" >&6; }
12590
12591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .previous is supported in assembly code" >&5
12592 $as_echo_n "checking whether .previous is supported in assembly code... " >&6; }
12593 if ${ac_cv_c_dot_previous+:} false; then :
12594   $as_echo_n "(cached) " >&6
12595 else
12596   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12597 /* end confdefs.h.  */
12598
12599 int
12600 main ()
12601 {
12602 asm(".text\nac_test:\t.long 0\n\t.previous");
12603   ;
12604   return 0;
12605 }
12606 _ACEOF
12607 if ac_fn_c_try_link "$LINENO"; then :
12608   ac_cv_c_dot_previous="yes"
12609 else
12610   ac_cv_c_dot_previous="no"
12611 fi
12612 rm -f core conftest.err conftest.$ac_objext \
12613     conftest$ac_exeext conftest.$ac_ext
12614 fi
12615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dot_previous" >&5
12616 $as_echo "$ac_cv_c_dot_previous" >&6; }
12617
12618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CFI directives are supported in assembly code" >&5
12619 $as_echo_n "checking whether CFI directives are supported in assembly code... " >&6; }
12620 if ${ac_cv_c_cfi_support+:} false; then :
12621   $as_echo_n "(cached) " >&6
12622 else
12623   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12624 /* end confdefs.h.  */
12625 asm(".text\nac_test:\t.cfi_startproc\n\t.long 0\n\t.cfi_endproc");
12626 int
12627 main ()
12628 {
12629
12630   ;
12631   return 0;
12632 }
12633 _ACEOF
12634 if ac_fn_c_try_compile "$LINENO"; then :
12635   ac_cv_c_cfi_support="yes"
12636 else
12637   ac_cv_c_cfi_support="no"
12638 fi
12639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12640 fi
12641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_cfi_support" >&5
12642 $as_echo "$ac_cv_c_cfi_support" >&6; }
12643
12644 asm_func_header=".globl $asm_name_prefix\" #name suffix \"\\n\\t$asm_func_header\\n$asm_name_prefix\" #name suffix \":\\n\\t"
12645 asm_func_trailer=""
12646 if test "$ac_cv_c_dot_previous" = "yes"
12647 then
12648    asm_func_trailer="\\n\\t.previous"
12649 fi
12650 if test "$ac_cv_c_cfi_support" = "yes"
12651 then
12652    asm_func_header="$asm_func_header.cfi_startproc\\n\\t"
12653    asm_func_trailer="\\n\\t.cfi_endproc$asm_func_trailer"
12654
12655 $as_echo "#define __ASM_CFI(str) str" >>confdefs.h
12656
12657    UNWINDFLAGS=-fasynchronous-unwind-tables
12658
12659 else
12660    $as_echo "#define __ASM_CFI(str) \"\"" >>confdefs.h
12661
12662 fi
12663
12664 asm_func_code="$asm_func_header\" code \"$asm_func_trailer"
12665
12666
12667 if test "$ac_cv_c_asm_outside_funcs" = "yes"
12668 then
12669     cat >>confdefs.h <<_ACEOF
12670 #define __ASM_DEFINE_FUNC(name,suffix,code) asm(".text\n\t.align 4\n\t$asm_func_code");
12671 _ACEOF
12672
12673 else
12674     cat >>confdefs.h <<_ACEOF
12675 #define __ASM_DEFINE_FUNC(name,suffix,code) void __asm_dummy_##name(void) { asm(".text\n\t.align 4\n\t$asm_func_code"); }
12676 _ACEOF
12677
12678 fi
12679
12680 $as_echo "#define __ASM_GLOBAL_FUNC(name,code) __ASM_DEFINE_FUNC(name,\"\",code)" >>confdefs.h
12681
12682
12683 $as_echo "#define __ASM_STDCALL_FUNC(name,args,code) __ASM_DEFINE_FUNC(name,__ASM_STDCALL(args),code)" >>confdefs.h
12684
12685
12686
12687 LDPATH=""
12688
12689 case $build_os in
12690   cygwin*|mingw32*)
12691     TOOLSEXT=".exe"
12692
12693     LDPATH="PATH=\"\$(TOOLSDIR)/libs/wine:\$\$PATH\""
12694     ;;
12695   darwin*|macosx*)
12696     ;;
12697   *)
12698     LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$LD_LIBRARY_PATH\""
12699     ;;
12700 esac
12701
12702 case $host_os in
12703   mingw32*)
12704     CRTLIBS="-lmsvcrt"
12705
12706     SOCKETLIBS="-L\$(top_builddir)/dlls/ws2_32 -lws2_32"
12707
12708     ;;
12709 esac
12710
12711 MAIN_BINARY="wine"
12712
12713 test "x$enable_win64" != "xyes" || MAIN_BINARY="wine64"
12714
12715 case $host_os in
12716   linux*)
12717     case $host_cpu in
12718       *i[3456789]86*) EXTRA_BINARIES="wine-preloader"
12719  ;;
12720       x86_64*) EXTRA_BINARIES="wine64-preloader"
12721  ;;
12722     esac
12723     ;;
12724 esac
12725
12726
12727 ac_save_CFLAGS="$CFLAGS"
12728 CFLAGS="$CFLAGS $BUILTINFLAG"
12729 for ac_func in \
12730         _finite \
12731         _isnan \
12732         _pclose \
12733         _popen \
12734         _snprintf \
12735         _spawnvp \
12736         _strdup \
12737         _stricmp \
12738         _strnicmp \
12739         _strtoi64 \
12740         _strtoui64 \
12741         _vsnprintf \
12742         asctime_r \
12743         chsize \
12744         dlopen \
12745         epoll_create \
12746         ffs \
12747         finite \
12748         fnmatch \
12749         fork \
12750         fpclass \
12751         fstatfs \
12752         fstatvfs \
12753         ftruncate \
12754         futimes \
12755         futimesat \
12756         getattrlist \
12757         getdirentries \
12758         getopt_long \
12759         getpagesize \
12760         getpwuid \
12761         gettimeofday \
12762         getuid \
12763         kqueue \
12764         lstat \
12765         memmove \
12766         mmap \
12767         pclose \
12768         pipe2 \
12769         poll \
12770         popen \
12771         port_create \
12772         prctl \
12773         pread \
12774         pwrite \
12775         readdir \
12776         readlink \
12777         sched_yield \
12778         select \
12779         setproctitle \
12780         setrlimit \
12781         settimeofday \
12782         sigaltstack \
12783         sigprocmask \
12784         snprintf \
12785         spawnvp \
12786         statfs \
12787         statvfs \
12788         strcasecmp \
12789         strdup \
12790         strerror \
12791         strncasecmp \
12792         strtold \
12793         strtoll \
12794         strtoull \
12795         symlink \
12796         tcgetattr \
12797         thr_kill2 \
12798         timegm \
12799         usleep \
12800         vsnprintf \
12801         wait4 \
12802         waitpid \
12803
12804 do :
12805   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12806 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12807 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12808   cat >>confdefs.h <<_ACEOF
12809 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12810 _ACEOF
12811
12812 fi
12813 done
12814
12815 CFLAGS="$ac_save_CFLAGS"
12816
12817 if test "$ac_cv_func_dlopen" = no
12818 then
12819     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12820 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12821 if ${ac_cv_lib_dl_dlopen+:} false; then :
12822   $as_echo_n "(cached) " >&6
12823 else
12824   ac_check_lib_save_LIBS=$LIBS
12825 LIBS="-ldl  $LIBS"
12826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12827 /* end confdefs.h.  */
12828
12829 /* Override any GCC internal prototype to avoid an error.
12830    Use char because int might match the return type of a GCC
12831    builtin and then its argument prototype would still apply.  */
12832 #ifdef __cplusplus
12833 extern "C"
12834 #endif
12835 char dlopen ();
12836 int
12837 main ()
12838 {
12839 return dlopen ();
12840   ;
12841   return 0;
12842 }
12843 _ACEOF
12844 if ac_fn_c_try_link "$LINENO"; then :
12845   ac_cv_lib_dl_dlopen=yes
12846 else
12847   ac_cv_lib_dl_dlopen=no
12848 fi
12849 rm -f core conftest.err conftest.$ac_objext \
12850     conftest$ac_exeext conftest.$ac_ext
12851 LIBS=$ac_check_lib_save_LIBS
12852 fi
12853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12854 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12855 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12856   $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
12857  LIBDL="-ldl"
12858
12859 fi
12860
12861 fi
12862 ac_wine_check_funcs_save_LIBS="$LIBS"
12863 LIBS="$LIBS $LIBDL"
12864 for ac_func in dladdr
12865 do :
12866   ac_fn_c_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr"
12867 if test "x$ac_cv_func_dladdr" = xyes; then :
12868   cat >>confdefs.h <<_ACEOF
12869 #define HAVE_DLADDR 1
12870 _ACEOF
12871
12872 fi
12873 done
12874
12875 LIBS="$ac_wine_check_funcs_save_LIBS"
12876
12877 if test "$ac_cv_func_poll" = no
12878 then
12879     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for poll in -lpoll" >&5
12880 $as_echo_n "checking for poll in -lpoll... " >&6; }
12881 if ${ac_cv_lib_poll_poll+:} false; then :
12882   $as_echo_n "(cached) " >&6
12883 else
12884   ac_check_lib_save_LIBS=$LIBS
12885 LIBS="-lpoll  $LIBS"
12886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12887 /* end confdefs.h.  */
12888
12889 /* Override any GCC internal prototype to avoid an error.
12890    Use char because int might match the return type of a GCC
12891    builtin and then its argument prototype would still apply.  */
12892 #ifdef __cplusplus
12893 extern "C"
12894 #endif
12895 char poll ();
12896 int
12897 main ()
12898 {
12899 return poll ();
12900   ;
12901   return 0;
12902 }
12903 _ACEOF
12904 if ac_fn_c_try_link "$LINENO"; then :
12905   ac_cv_lib_poll_poll=yes
12906 else
12907   ac_cv_lib_poll_poll=no
12908 fi
12909 rm -f core conftest.err conftest.$ac_objext \
12910     conftest$ac_exeext conftest.$ac_ext
12911 LIBS=$ac_check_lib_save_LIBS
12912 fi
12913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_poll_poll" >&5
12914 $as_echo "$ac_cv_lib_poll_poll" >&6; }
12915 if test "x$ac_cv_lib_poll_poll" = xyes; then :
12916   $as_echo "#define HAVE_POLL 1" >>confdefs.h
12917  LIBPOLL="-lpoll"
12918
12919 fi
12920
12921 fi
12922
12923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
12924 $as_echo_n "checking for library containing gethostbyname... " >&6; }
12925 if ${ac_cv_search_gethostbyname+:} false; then :
12926   $as_echo_n "(cached) " >&6
12927 else
12928   ac_func_search_save_LIBS=$LIBS
12929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12930 /* end confdefs.h.  */
12931
12932 /* Override any GCC internal prototype to avoid an error.
12933    Use char because int might match the return type of a GCC
12934    builtin and then its argument prototype would still apply.  */
12935 #ifdef __cplusplus
12936 extern "C"
12937 #endif
12938 char gethostbyname ();
12939 int
12940 main ()
12941 {
12942 return gethostbyname ();
12943   ;
12944   return 0;
12945 }
12946 _ACEOF
12947 for ac_lib in '' nsl; do
12948   if test -z "$ac_lib"; then
12949     ac_res="none required"
12950   else
12951     ac_res=-l$ac_lib
12952     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12953   fi
12954   if ac_fn_c_try_link "$LINENO"; then :
12955   ac_cv_search_gethostbyname=$ac_res
12956 fi
12957 rm -f core conftest.err conftest.$ac_objext \
12958     conftest$ac_exeext
12959   if ${ac_cv_search_gethostbyname+:} false; then :
12960   break
12961 fi
12962 done
12963 if ${ac_cv_search_gethostbyname+:} false; then :
12964
12965 else
12966   ac_cv_search_gethostbyname=no
12967 fi
12968 rm conftest.$ac_ext
12969 LIBS=$ac_func_search_save_LIBS
12970 fi
12971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
12972 $as_echo "$ac_cv_search_gethostbyname" >&6; }
12973 ac_res=$ac_cv_search_gethostbyname
12974 if test "$ac_res" != no; then :
12975   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12976
12977 fi
12978
12979
12980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5
12981 $as_echo_n "checking for library containing connect... " >&6; }
12982 if ${ac_cv_search_connect+:} false; then :
12983   $as_echo_n "(cached) " >&6
12984 else
12985   ac_func_search_save_LIBS=$LIBS
12986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12987 /* end confdefs.h.  */
12988
12989 /* Override any GCC internal prototype to avoid an error.
12990    Use char because int might match the return type of a GCC
12991    builtin and then its argument prototype would still apply.  */
12992 #ifdef __cplusplus
12993 extern "C"
12994 #endif
12995 char connect ();
12996 int
12997 main ()
12998 {
12999 return connect ();
13000   ;
13001   return 0;
13002 }
13003 _ACEOF
13004 for ac_lib in '' socket; do
13005   if test -z "$ac_lib"; then
13006     ac_res="none required"
13007   else
13008     ac_res=-l$ac_lib
13009     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13010   fi
13011   if ac_fn_c_try_link "$LINENO"; then :
13012   ac_cv_search_connect=$ac_res
13013 fi
13014 rm -f core conftest.err conftest.$ac_objext \
13015     conftest$ac_exeext
13016   if ${ac_cv_search_connect+:} false; then :
13017   break
13018 fi
13019 done
13020 if ${ac_cv_search_connect+:} false; then :
13021
13022 else
13023   ac_cv_search_connect=no
13024 fi
13025 rm conftest.$ac_ext
13026 LIBS=$ac_func_search_save_LIBS
13027 fi
13028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5
13029 $as_echo "$ac_cv_search_connect" >&6; }
13030 ac_res=$ac_cv_search_connect
13031 if test "$ac_res" != no; then :
13032   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13033
13034 fi
13035
13036
13037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
13038 $as_echo_n "checking for library containing inet_aton... " >&6; }
13039 if ${ac_cv_search_inet_aton+:} false; then :
13040   $as_echo_n "(cached) " >&6
13041 else
13042   ac_func_search_save_LIBS=$LIBS
13043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13044 /* end confdefs.h.  */
13045
13046 /* Override any GCC internal prototype to avoid an error.
13047    Use char because int might match the return type of a GCC
13048    builtin and then its argument prototype would still apply.  */
13049 #ifdef __cplusplus
13050 extern "C"
13051 #endif
13052 char inet_aton ();
13053 int
13054 main ()
13055 {
13056 return inet_aton ();
13057   ;
13058   return 0;
13059 }
13060 _ACEOF
13061 for ac_lib in '' resolv; do
13062   if test -z "$ac_lib"; then
13063     ac_res="none required"
13064   else
13065     ac_res=-l$ac_lib
13066     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13067   fi
13068   if ac_fn_c_try_link "$LINENO"; then :
13069   ac_cv_search_inet_aton=$ac_res
13070 fi
13071 rm -f core conftest.err conftest.$ac_objext \
13072     conftest$ac_exeext
13073   if ${ac_cv_search_inet_aton+:} false; then :
13074   break
13075 fi
13076 done
13077 if ${ac_cv_search_inet_aton+:} false; then :
13078
13079 else
13080   ac_cv_search_inet_aton=no
13081 fi
13082 rm conftest.$ac_ext
13083 LIBS=$ac_func_search_save_LIBS
13084 fi
13085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
13086 $as_echo "$ac_cv_search_inet_aton" >&6; }
13087 ac_res=$ac_cv_search_inet_aton
13088 if test "$ac_res" != no; then :
13089   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13090
13091 fi
13092
13093
13094 for ac_func in \
13095         getaddrinfo \
13096         getnameinfo \
13097         getnetbyname \
13098         getprotobyname \
13099         getprotobynumber \
13100         getservbyport \
13101         inet_network \
13102         inet_ntop \
13103         inet_pton \
13104         sendmsg \
13105         socketpair \
13106
13107 do :
13108   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13109 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13110 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13111   cat >>confdefs.h <<_ACEOF
13112 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13113 _ACEOF
13114
13115 fi
13116 done
13117
13118
13119 LDAPLIBS=""
13120
13121 if test "$ac_cv_header_ldap_h" = "yes" -a "$ac_cv_header_lber_h" = "yes"
13122 then
13123     ac_fn_c_check_type "$LINENO" "LDAPSortKey" "ac_cv_type_LDAPSortKey" "#include <ldap.h>
13124 "
13125 if test "x$ac_cv_type_LDAPSortKey" = xyes; then :
13126   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap_r" >&5
13127 $as_echo_n "checking for ldap_initialize in -lldap_r... " >&6; }
13128 if ${ac_cv_lib_ldap_r_ldap_initialize+:} false; then :
13129   $as_echo_n "(cached) " >&6
13130 else
13131   ac_check_lib_save_LIBS=$LIBS
13132 LIBS="-lldap_r $LIBPTHREAD $LIBS"
13133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13134 /* end confdefs.h.  */
13135
13136 /* Override any GCC internal prototype to avoid an error.
13137    Use char because int might match the return type of a GCC
13138    builtin and then its argument prototype would still apply.  */
13139 #ifdef __cplusplus
13140 extern "C"
13141 #endif
13142 char ldap_initialize ();
13143 int
13144 main ()
13145 {
13146 return ldap_initialize ();
13147   ;
13148   return 0;
13149 }
13150 _ACEOF
13151 if ac_fn_c_try_link "$LINENO"; then :
13152   ac_cv_lib_ldap_r_ldap_initialize=yes
13153 else
13154   ac_cv_lib_ldap_r_ldap_initialize=no
13155 fi
13156 rm -f core conftest.err conftest.$ac_objext \
13157     conftest$ac_exeext conftest.$ac_ext
13158 LIBS=$ac_check_lib_save_LIBS
13159 fi
13160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_r_ldap_initialize" >&5
13161 $as_echo "$ac_cv_lib_ldap_r_ldap_initialize" >&6; }
13162 if test "x$ac_cv_lib_ldap_r_ldap_initialize" = xyes; then :
13163   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_init in -llber" >&5
13164 $as_echo_n "checking for ber_init in -llber... " >&6; }
13165 if ${ac_cv_lib_lber_ber_init+:} false; then :
13166   $as_echo_n "(cached) " >&6
13167 else
13168   ac_check_lib_save_LIBS=$LIBS
13169 LIBS="-llber $LIBPTHREAD $LIBS"
13170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13171 /* end confdefs.h.  */
13172
13173 /* Override any GCC internal prototype to avoid an error.
13174    Use char because int might match the return type of a GCC
13175    builtin and then its argument prototype would still apply.  */
13176 #ifdef __cplusplus
13177 extern "C"
13178 #endif
13179 char ber_init ();
13180 int
13181 main ()
13182 {
13183 return ber_init ();
13184   ;
13185   return 0;
13186 }
13187 _ACEOF
13188 if ac_fn_c_try_link "$LINENO"; then :
13189   ac_cv_lib_lber_ber_init=yes
13190 else
13191   ac_cv_lib_lber_ber_init=no
13192 fi
13193 rm -f core conftest.err conftest.$ac_objext \
13194     conftest$ac_exeext conftest.$ac_ext
13195 LIBS=$ac_check_lib_save_LIBS
13196 fi
13197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_init" >&5
13198 $as_echo "$ac_cv_lib_lber_ber_init" >&6; }
13199 if test "x$ac_cv_lib_lber_ber_init" = xyes; then :
13200
13201 $as_echo "#define HAVE_LDAP 1" >>confdefs.h
13202
13203                  LDAPLIBS="-lldap_r -llber"
13204 fi
13205
13206 fi
13207
13208 fi
13209
13210     ac_wine_check_funcs_save_LIBS="$LIBS"
13211 LIBS="$LIBS $LDAPLIBS $LIBPTHREAD"
13212 for ac_func in \
13213         ldap_count_references \
13214         ldap_first_reference \
13215         ldap_next_reference \
13216         ldap_parse_reference \
13217         ldap_parse_sort_control \
13218         ldap_parse_sortresponse_control \
13219         ldap_parse_vlv_control \
13220         ldap_parse_vlvresponse_control
13221 do :
13222   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13223 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13224 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13225   cat >>confdefs.h <<_ACEOF
13226 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13227 _ACEOF
13228
13229 fi
13230 done
13231
13232 LIBS="$ac_wine_check_funcs_save_LIBS"
13233 fi
13234 if test "x$LDAPLIBS" = "x"; then :
13235   case "x$with_ldap" in
13236   x)   as_fn_append wine_notices "|libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported." ;;
13237   xno) ;;
13238   *)   as_fn_error $? "libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported.
13239 This is an error since --with-ldap was requested." "$LINENO" 5 ;;
13240 esac
13241 fi
13242
13243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir takes only one argument" >&5
13244 $as_echo_n "checking whether mkdir takes only one argument... " >&6; }
13245 if ${wine_cv_one_arg_mkdir+:} false; then :
13246   $as_echo_n "(cached) " >&6
13247 else
13248   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13249 /* end confdefs.h.  */
13250 #include <sys/stat.h>
13251 int
13252 main ()
13253 {
13254 mkdir("foo");
13255   ;
13256   return 0;
13257 }
13258 _ACEOF
13259 if ac_fn_c_try_compile "$LINENO"; then :
13260   wine_cv_one_arg_mkdir=yes
13261 else
13262   wine_cv_one_arg_mkdir=no
13263 fi
13264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13265 fi
13266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_one_arg_mkdir" >&5
13267 $as_echo "$wine_cv_one_arg_mkdir" >&6; }
13268 if test "$wine_cv_one_arg_mkdir" = "yes"
13269 then
13270
13271 $as_echo "#define HAVE_ONE_ARG_MKDIR 1" >>confdefs.h
13272
13273 fi
13274
13275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_setaffinity" >&5
13276 $as_echo_n "checking for sched_setaffinity... " >&6; }
13277 if ${wine_cv_have_sched_setaffinity+:} false; then :
13278   $as_echo_n "(cached) " >&6
13279 else
13280   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13281 /* end confdefs.h.  */
13282 #define _GNU_SOURCE
13283 #include <sched.h>
13284 int
13285 main ()
13286 {
13287 sched_setaffinity(0, 0, 0);
13288   ;
13289   return 0;
13290 }
13291 _ACEOF
13292 if ac_fn_c_try_link "$LINENO"; then :
13293   wine_cv_have_sched_setaffinity=yes
13294 else
13295   wine_cv_have_sched_setaffinity=no
13296 fi
13297 rm -f core conftest.err conftest.$ac_objext \
13298     conftest$ac_exeext conftest.$ac_ext
13299 fi
13300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sched_setaffinity" >&5
13301 $as_echo "$wine_cv_have_sched_setaffinity" >&6; }
13302 if test "$wine_cv_have_sched_setaffinity" = "yes"
13303 then
13304
13305 $as_echo "#define HAVE_SCHED_SETAFFINITY 1" >>confdefs.h
13306
13307 fi
13308
13309
13310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13311 $as_echo_n "checking for inline... " >&6; }
13312 if ${ac_cv_c_inline+:} false; then :
13313   $as_echo_n "(cached) " >&6
13314 else
13315   ac_cv_c_inline=no
13316 for ac_kw in inline __inline__ __inline; do
13317   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13318 /* end confdefs.h.  */
13319 #ifndef __cplusplus
13320 typedef int foo_t;
13321 static $ac_kw foo_t static_foo () {return 0; }
13322 $ac_kw foo_t foo () {return 0; }
13323 #endif
13324
13325 _ACEOF
13326 if ac_fn_c_try_compile "$LINENO"; then :
13327   ac_cv_c_inline=$ac_kw
13328 fi
13329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13330   test "$ac_cv_c_inline" != no && break
13331 done
13332
13333 fi
13334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13335 $as_echo "$ac_cv_c_inline" >&6; }
13336
13337 case $ac_cv_c_inline in
13338   inline | yes) ;;
13339   *)
13340     case $ac_cv_c_inline in
13341       no) ac_val=;;
13342       *) ac_val=$ac_cv_c_inline;;
13343     esac
13344     cat >>confdefs.h <<_ACEOF
13345 #ifndef __cplusplus
13346 #define inline $ac_val
13347 #endif
13348 _ACEOF
13349     ;;
13350 esac
13351
13352 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
13353 if test "x$ac_cv_type_mode_t" = xyes; then :
13354
13355 cat >>confdefs.h <<_ACEOF
13356 #define HAVE_MODE_T 1
13357 _ACEOF
13358
13359
13360 fi
13361 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
13362 if test "x$ac_cv_type_off_t" = xyes; then :
13363
13364 cat >>confdefs.h <<_ACEOF
13365 #define HAVE_OFF_T 1
13366 _ACEOF
13367
13368
13369 fi
13370 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13371 if test "x$ac_cv_type_pid_t" = xyes; then :
13372
13373 cat >>confdefs.h <<_ACEOF
13374 #define HAVE_PID_T 1
13375 _ACEOF
13376
13377
13378 fi
13379 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13380 if test "x$ac_cv_type_size_t" = xyes; then :
13381
13382 cat >>confdefs.h <<_ACEOF
13383 #define HAVE_SIZE_T 1
13384 _ACEOF
13385
13386
13387 fi
13388 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
13389 if test "x$ac_cv_type_ssize_t" = xyes; then :
13390
13391 cat >>confdefs.h <<_ACEOF
13392 #define HAVE_SSIZE_T 1
13393 _ACEOF
13394
13395
13396 fi
13397 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
13398 if test "x$ac_cv_type_long_long" = xyes; then :
13399
13400 cat >>confdefs.h <<_ACEOF
13401 #define HAVE_LONG_LONG 1
13402 _ACEOF
13403
13404
13405 fi
13406 ac_fn_c_check_type "$LINENO" "fsblkcnt_t" "ac_cv_type_fsblkcnt_t" "$ac_includes_default"
13407 if test "x$ac_cv_type_fsblkcnt_t" = xyes; then :
13408
13409 cat >>confdefs.h <<_ACEOF
13410 #define HAVE_FSBLKCNT_T 1
13411 _ACEOF
13412
13413
13414 fi
13415 ac_fn_c_check_type "$LINENO" "fsfilcnt_t" "ac_cv_type_fsfilcnt_t" "$ac_includes_default"
13416 if test "x$ac_cv_type_fsfilcnt_t" = xyes; then :
13417
13418 cat >>confdefs.h <<_ACEOF
13419 #define HAVE_FSFILCNT_T 1
13420 _ACEOF
13421
13422
13423 fi
13424
13425 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "#include <sys/types.h>
13426 #include <signal.h>
13427 "
13428 if test "x$ac_cv_type_sigset_t" = xyes; then :
13429
13430 cat >>confdefs.h <<_ACEOF
13431 #define HAVE_SIGSET_T 1
13432 _ACEOF
13433
13434
13435 fi
13436
13437 ac_fn_c_check_type "$LINENO" "request_sense" "ac_cv_type_request_sense" "#include <linux/cdrom.h>
13438 "
13439 if test "x$ac_cv_type_request_sense" = xyes; then :
13440
13441 cat >>confdefs.h <<_ACEOF
13442 #define HAVE_REQUEST_SENSE 1
13443 _ACEOF
13444
13445
13446 fi
13447
13448
13449 ac_fn_c_check_type "$LINENO" "struct xinpgen" "ac_cv_type_struct_xinpgen" "#include <sys/types.h>
13450 #ifdef HAVE_SYS_SOCKET_H
13451 #include <sys/socket.h>
13452 #endif
13453 #ifdef HAVE_SYS_SOCKETVAR_H
13454 #include <sys/socketvar.h>
13455 #endif
13456 #ifdef HAVE_NET_ROUTE_H
13457 #include <net/route.h>
13458 #endif
13459 #ifdef HAVE_NETINET_IN_H
13460 #include <netinet/in.h>
13461 #endif
13462 #ifdef HAVE_NETINET_IN_SYSTM_H
13463 #include <netinet/in_systm.h>
13464 #endif
13465 #ifdef HAVE_NETINET_IP_H
13466 #include <netinet/ip.h>
13467 #endif
13468 #ifdef HAVE_NETINET_IN_PCB_H
13469 #include <netinet/in_pcb.h>
13470 #endif
13471 "
13472 if test "x$ac_cv_type_struct_xinpgen" = xyes; then :
13473
13474 cat >>confdefs.h <<_ACEOF
13475 #define HAVE_STRUCT_XINPGEN 1
13476 _ACEOF
13477
13478
13479 fi
13480
13481
13482 ac_fn_c_check_member "$LINENO" "struct ff_effect" "direction" "ac_cv_member_struct_ff_effect_direction" "#ifdef HAVE_LINUX_INPUT_H
13483 #include <linux/input.h>
13484 #endif
13485 "
13486 if test "x$ac_cv_member_struct_ff_effect_direction" = xyes; then :
13487
13488 cat >>confdefs.h <<_ACEOF
13489 #define HAVE_STRUCT_FF_EFFECT_DIRECTION 1
13490 _ACEOF
13491
13492
13493 fi
13494
13495
13496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigaddset" >&5
13497 $as_echo_n "checking for sigaddset... " >&6; }
13498 if ${wine_cv_have_sigaddset+:} false; then :
13499   $as_echo_n "(cached) " >&6
13500 else
13501   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13502 /* end confdefs.h.  */
13503 #include <signal.h>
13504 int
13505 main ()
13506 {
13507 sigset_t set; sigaddset(&set,SIGTERM);
13508   ;
13509   return 0;
13510 }
13511 _ACEOF
13512 if ac_fn_c_try_link "$LINENO"; then :
13513   wine_cv_have_sigaddset=yes
13514 else
13515   wine_cv_have_sigaddset=no
13516 fi
13517 rm -f core conftest.err conftest.$ac_objext \
13518     conftest$ac_exeext conftest.$ac_ext
13519 fi
13520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sigaddset" >&5
13521 $as_echo "$wine_cv_have_sigaddset" >&6; }
13522 if test "$wine_cv_have_sigaddset" = "yes"
13523 then
13524
13525 $as_echo "#define HAVE_SIGADDSET 1" >>confdefs.h
13526
13527 fi
13528
13529
13530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
13531 $as_echo_n "checking whether we can use re-entrant gethostbyname_r Linux style... " >&6; }
13532 if ${wine_cv_linux_gethostbyname_r_6+:} false; then :
13533   $as_echo_n "(cached) " >&6
13534 else
13535   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13536 /* end confdefs.h.  */
13537 #include <netdb.h>
13538 int
13539 main ()
13540 {
13541
13542     char *name=0;
13543     struct hostent he;
13544     struct hostent *result;
13545     char *buf=0;
13546     int bufsize=0;
13547     int errnr;
13548     char *addr=0;
13549     int addrlen=0;
13550     int addrtype=0;
13551     gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
13552     gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
13553
13554   ;
13555   return 0;
13556 }
13557 _ACEOF
13558 if ac_fn_c_try_link "$LINENO"; then :
13559   wine_cv_linux_gethostbyname_r_6=yes
13560 else
13561   wine_cv_linux_gethostbyname_r_6=no
13562
13563 fi
13564 rm -f core conftest.err conftest.$ac_objext \
13565     conftest$ac_exeext conftest.$ac_ext
13566
13567 fi
13568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_gethostbyname_r_6" >&5
13569 $as_echo "$wine_cv_linux_gethostbyname_r_6" >&6; }
13570    if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
13571    then
13572
13573 $as_echo "#define HAVE_LINUX_GETHOSTBYNAME_R_6 1" >>confdefs.h
13574
13575    fi
13576
13577 if test "$ac_cv_header_linux_joystick_h" = "yes"
13578 then
13579    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
13580 $as_echo_n "checking whether linux/joystick.h uses the Linux 2.2+ API... " >&6; }
13581 if ${wine_cv_linux_joystick_22_api+:} false; then :
13582   $as_echo_n "(cached) " >&6
13583 else
13584   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13585 /* end confdefs.h.  */
13586
13587         #include <sys/ioctl.h>
13588         #include <sys/types.h>
13589         #include <linux/joystick.h>
13590
13591         struct js_event blub;
13592         #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
13593         #error "no 2.2 header"
13594         #endif
13595
13596 int
13597 main ()
13598 {
13599 /*empty*/
13600   ;
13601   return 0;
13602 }
13603 _ACEOF
13604 if ac_fn_c_try_compile "$LINENO"; then :
13605   wine_cv_linux_joystick_22_api=yes
13606 else
13607   wine_cv_linux_joystick_22_api=no
13608 fi
13609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13610
13611 fi
13612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_joystick_22_api" >&5
13613 $as_echo "$wine_cv_linux_joystick_22_api" >&6; }
13614    if test "$wine_cv_linux_joystick_22_api" = "yes"
13615    then
13616
13617 $as_echo "#define HAVE_LINUX_22_JOYSTICK_API 1" >>confdefs.h
13618
13619    fi
13620 fi
13621
13622
13623 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bfree" "ac_cv_member_struct_statfs_f_bfree" "#include <sys/types.h>
13624 #ifdef HAVE_SYS_PARAM_H
13625 # include <sys/param.h>
13626 #endif
13627 #ifdef HAVE_SYS_MOUNT_H
13628 # include <sys/mount.h>
13629 #endif
13630 #ifdef HAVE_SYS_VFS_H
13631 # include <sys/vfs.h>
13632 #endif
13633 #ifdef HAVE_SYS_STATFS_H
13634 # include <sys/statfs.h>
13635 #endif
13636 "
13637 if test "x$ac_cv_member_struct_statfs_f_bfree" = xyes; then :
13638
13639 cat >>confdefs.h <<_ACEOF
13640 #define HAVE_STRUCT_STATFS_F_BFREE 1
13641 _ACEOF
13642
13643
13644 fi
13645 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bavail" "ac_cv_member_struct_statfs_f_bavail" "#include <sys/types.h>
13646 #ifdef HAVE_SYS_PARAM_H
13647 # include <sys/param.h>
13648 #endif
13649 #ifdef HAVE_SYS_MOUNT_H
13650 # include <sys/mount.h>
13651 #endif
13652 #ifdef HAVE_SYS_VFS_H
13653 # include <sys/vfs.h>
13654 #endif
13655 #ifdef HAVE_SYS_STATFS_H
13656 # include <sys/statfs.h>
13657 #endif
13658 "
13659 if test "x$ac_cv_member_struct_statfs_f_bavail" = xyes; then :
13660
13661 cat >>confdefs.h <<_ACEOF
13662 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
13663 _ACEOF
13664
13665
13666 fi
13667 ac_fn_c_check_member "$LINENO" "struct statfs" "f_frsize" "ac_cv_member_struct_statfs_f_frsize" "#include <sys/types.h>
13668 #ifdef HAVE_SYS_PARAM_H
13669 # include <sys/param.h>
13670 #endif
13671 #ifdef HAVE_SYS_MOUNT_H
13672 # include <sys/mount.h>
13673 #endif
13674 #ifdef HAVE_SYS_VFS_H
13675 # include <sys/vfs.h>
13676 #endif
13677 #ifdef HAVE_SYS_STATFS_H
13678 # include <sys/statfs.h>
13679 #endif
13680 "
13681 if test "x$ac_cv_member_struct_statfs_f_frsize" = xyes; then :
13682
13683 cat >>confdefs.h <<_ACEOF
13684 #define HAVE_STRUCT_STATFS_F_FRSIZE 1
13685 _ACEOF
13686
13687
13688 fi
13689 ac_fn_c_check_member "$LINENO" "struct statfs" "f_ffree" "ac_cv_member_struct_statfs_f_ffree" "#include <sys/types.h>
13690 #ifdef HAVE_SYS_PARAM_H
13691 # include <sys/param.h>
13692 #endif
13693 #ifdef HAVE_SYS_MOUNT_H
13694 # include <sys/mount.h>
13695 #endif
13696 #ifdef HAVE_SYS_VFS_H
13697 # include <sys/vfs.h>
13698 #endif
13699 #ifdef HAVE_SYS_STATFS_H
13700 # include <sys/statfs.h>
13701 #endif
13702 "
13703 if test "x$ac_cv_member_struct_statfs_f_ffree" = xyes; then :
13704
13705 cat >>confdefs.h <<_ACEOF
13706 #define HAVE_STRUCT_STATFS_F_FFREE 1
13707 _ACEOF
13708
13709
13710 fi
13711 ac_fn_c_check_member "$LINENO" "struct statfs" "f_favail" "ac_cv_member_struct_statfs_f_favail" "#include <sys/types.h>
13712 #ifdef HAVE_SYS_PARAM_H
13713 # include <sys/param.h>
13714 #endif
13715 #ifdef HAVE_SYS_MOUNT_H
13716 # include <sys/mount.h>
13717 #endif
13718 #ifdef HAVE_SYS_VFS_H
13719 # include <sys/vfs.h>
13720 #endif
13721 #ifdef HAVE_SYS_STATFS_H
13722 # include <sys/statfs.h>
13723 #endif
13724 "
13725 if test "x$ac_cv_member_struct_statfs_f_favail" = xyes; then :
13726
13727 cat >>confdefs.h <<_ACEOF
13728 #define HAVE_STRUCT_STATFS_F_FAVAIL 1
13729 _ACEOF
13730
13731
13732 fi
13733 ac_fn_c_check_member "$LINENO" "struct statfs" "f_namelen" "ac_cv_member_struct_statfs_f_namelen" "#include <sys/types.h>
13734 #ifdef HAVE_SYS_PARAM_H
13735 # include <sys/param.h>
13736 #endif
13737 #ifdef HAVE_SYS_MOUNT_H
13738 # include <sys/mount.h>
13739 #endif
13740 #ifdef HAVE_SYS_VFS_H
13741 # include <sys/vfs.h>
13742 #endif
13743 #ifdef HAVE_SYS_STATFS_H
13744 # include <sys/statfs.h>
13745 #endif
13746 "
13747 if test "x$ac_cv_member_struct_statfs_f_namelen" = xyes; then :
13748
13749 cat >>confdefs.h <<_ACEOF
13750 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
13751 _ACEOF
13752
13753
13754 fi
13755
13756
13757 ac_fn_c_check_member "$LINENO" "struct statvfs" "f_blocks" "ac_cv_member_struct_statvfs_f_blocks" "#ifdef HAVE_SYS_STATVFS_H
13758 #include <sys/statvfs.h>
13759 #endif
13760 "
13761 if test "x$ac_cv_member_struct_statvfs_f_blocks" = xyes; then :
13762
13763 cat >>confdefs.h <<_ACEOF
13764 #define HAVE_STRUCT_STATVFS_F_BLOCKS 1
13765 _ACEOF
13766
13767
13768 fi
13769
13770
13771 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_accrights" "ac_cv_member_struct_msghdr_msg_accrights" "#include <sys/types.h>
13772 #ifdef HAVE_SYS_SOCKET_H
13773 # include <sys/socket.h>
13774 #endif
13775 #ifdef HAVE_SYS_UN_H
13776 # include <sys/un.h>
13777 #endif
13778 "
13779 if test "x$ac_cv_member_struct_msghdr_msg_accrights" = xyes; then :
13780
13781 cat >>confdefs.h <<_ACEOF
13782 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
13783 _ACEOF
13784
13785
13786 fi
13787 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
13788 #ifdef HAVE_SYS_SOCKET_H
13789 # include <sys/socket.h>
13790 #endif
13791 #ifdef HAVE_SYS_UN_H
13792 # include <sys/un.h>
13793 #endif
13794 "
13795 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
13796
13797 cat >>confdefs.h <<_ACEOF
13798 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
13799 _ACEOF
13800
13801
13802 fi
13803 ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" "#include <sys/types.h>
13804 #ifdef HAVE_SYS_SOCKET_H
13805 # include <sys/socket.h>
13806 #endif
13807 #ifdef HAVE_SYS_UN_H
13808 # include <sys/un.h>
13809 #endif
13810 "
13811 if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes; then :
13812
13813 cat >>confdefs.h <<_ACEOF
13814 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
13815 _ACEOF
13816
13817
13818 fi
13819
13820
13821 ac_fn_c_check_member "$LINENO" "scsireq_t" "cmd" "ac_cv_member_scsireq_t_cmd" "#include <sys/types.h>
13822 #ifdef HAVE_SCSI_SG_H
13823 #include <scsi/sg.h>
13824 #endif
13825 "
13826 if test "x$ac_cv_member_scsireq_t_cmd" = xyes; then :
13827
13828 cat >>confdefs.h <<_ACEOF
13829 #define HAVE_SCSIREQ_T_CMD 1
13830 _ACEOF
13831
13832
13833 fi
13834 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>
13835 #ifdef HAVE_SCSI_SG_H
13836 #include <scsi/sg.h>
13837 #endif
13838 "
13839 if test "x$ac_cv_member_sg_io_hdr_t_interface_id" = xyes; then :
13840
13841 cat >>confdefs.h <<_ACEOF
13842 #define HAVE_SG_IO_HDR_T_INTERFACE_ID 1
13843 _ACEOF
13844
13845
13846 fi
13847
13848
13849 ac_fn_c_check_member "$LINENO" "siginfo_t" "si_fd" "ac_cv_member_siginfo_t_si_fd" "#include <signal.h>
13850 "
13851 if test "x$ac_cv_member_siginfo_t_si_fd" = xyes; then :
13852
13853 cat >>confdefs.h <<_ACEOF
13854 #define HAVE_SIGINFO_T_SI_FD 1
13855 _ACEOF
13856
13857
13858 fi
13859
13860
13861 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blksiz" "ac_cv_member_struct_mtget_mt_blksiz" "#include <sys/types.h>
13862 #ifdef HAVE_SYS_MTIO_H
13863 #include <sys/mtio.h>
13864 #endif
13865 "
13866 if test "x$ac_cv_member_struct_mtget_mt_blksiz" = xyes; then :
13867
13868 cat >>confdefs.h <<_ACEOF
13869 #define HAVE_STRUCT_MTGET_MT_BLKSIZ 1
13870 _ACEOF
13871
13872
13873 fi
13874 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_gstat" "ac_cv_member_struct_mtget_mt_gstat" "#include <sys/types.h>
13875 #ifdef HAVE_SYS_MTIO_H
13876 #include <sys/mtio.h>
13877 #endif
13878 "
13879 if test "x$ac_cv_member_struct_mtget_mt_gstat" = xyes; then :
13880
13881 cat >>confdefs.h <<_ACEOF
13882 #define HAVE_STRUCT_MTGET_MT_GSTAT 1
13883 _ACEOF
13884
13885
13886 fi
13887 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blkno" "ac_cv_member_struct_mtget_mt_blkno" "#include <sys/types.h>
13888 #ifdef HAVE_SYS_MTIO_H
13889 #include <sys/mtio.h>
13890 #endif
13891 "
13892 if test "x$ac_cv_member_struct_mtget_mt_blkno" = xyes; then :
13893
13894 cat >>confdefs.h <<_ACEOF
13895 #define HAVE_STRUCT_MTGET_MT_BLKNO 1
13896 _ACEOF
13897
13898
13899 fi
13900
13901
13902 ac_fn_c_check_member "$LINENO" "struct option" "name" "ac_cv_member_struct_option_name" "#ifdef HAVE_GETOPT_H
13903 #include <getopt.h>
13904 #endif
13905 "
13906 if test "x$ac_cv_member_struct_option_name" = xyes; then :
13907
13908 cat >>confdefs.h <<_ACEOF
13909 #define HAVE_STRUCT_OPTION_NAME 1
13910 _ACEOF
13911
13912
13913 fi
13914
13915
13916 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
13917 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
13918
13919 cat >>confdefs.h <<_ACEOF
13920 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
13921 _ACEOF
13922
13923
13924 fi
13925 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
13926 if test "x$ac_cv_member_struct_stat_st_mtim" = xyes; then :
13927
13928 cat >>confdefs.h <<_ACEOF
13929 #define HAVE_STRUCT_STAT_ST_MTIM 1
13930 _ACEOF
13931
13932
13933 fi
13934 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctim" "ac_cv_member_struct_stat_st_ctim" "$ac_includes_default"
13935 if test "x$ac_cv_member_struct_stat_st_ctim" = xyes; then :
13936
13937 cat >>confdefs.h <<_ACEOF
13938 #define HAVE_STRUCT_STAT_ST_CTIM 1
13939 _ACEOF
13940
13941
13942 fi
13943 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
13944 if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
13945
13946 cat >>confdefs.h <<_ACEOF
13947 #define HAVE_STRUCT_STAT_ST_ATIM 1
13948 _ACEOF
13949
13950
13951 fi
13952
13953
13954 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
13955 #include <sys/types.h>
13956 #endif
13957 #ifdef HAVE_NETINET_IN_H
13958 #include <netinet/in.h>
13959 #endif
13960 "
13961 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = xyes; then :
13962
13963 cat >>confdefs.h <<_ACEOF
13964 #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
13965 _ACEOF
13966
13967
13968 fi
13969
13970
13971 ac_fn_c_check_member "$LINENO" "ns_msg" "_msg_ptr" "ac_cv_member_ns_msg__msg_ptr" "#ifdef HAVE_SYS_TYPES_H
13972 #include <sys/types.h>
13973 #endif
13974 #ifdef HAVE_NETINET_IN_H
13975 # include <netinet/in.h>
13976 #endif
13977 #ifdef HAVE_ARPA_NAMESER_H
13978 # include <arpa/nameser.h>
13979 #endif
13980 "
13981 if test "x$ac_cv_member_ns_msg__msg_ptr" = xyes; then :
13982
13983 cat >>confdefs.h <<_ACEOF
13984 #define HAVE_NS_MSG__MSG_PTR 1
13985 _ACEOF
13986
13987
13988 fi
13989
13990
13991 ac_fn_c_check_member "$LINENO" "struct icmpstat" "icps_outhist" "ac_cv_member_struct_icmpstat_icps_outhist" "#ifdef HAVE_SYS_TYPES_H
13992 #include <sys/types.h>
13993 #endif
13994 #ifdef HAVE_ALIAS_H
13995 #include <alias.h>
13996 #endif
13997 #ifdef HAVE_SYS_SOCKET_H
13998 #include <sys/socket.h>
13999 #endif
14000 #ifdef HAVE_SYS_SOCKETVAR_H
14001 #include <sys/socketvar.h>
14002 #endif
14003 #ifdef HAVE_SYS_TIMEOUT_H
14004 #include <sys/timeout.h>
14005 #endif
14006 #ifdef HAVE_NETINET_IN_H
14007 #include <netinet/in.h>
14008 #endif
14009 #ifdef HAVE_NETINET_IN_SYSTM_H
14010 #include <netinet/in_systm.h>
14011 #endif
14012 #ifdef HAVE_NETINET_IP_H
14013 #include <netinet/ip.h>
14014 #endif
14015 #ifdef HAVE_NETINET_IP_VAR_H
14016 #include <netinet/ip_var.h>
14017 #endif
14018 #ifdef HAVE_NETINET_IP_ICMP_H
14019 #include <netinet/ip_icmp.h>
14020 #endif
14021 #ifdef HAVE_NETINET_ICMP_VAR
14022 #include <netinet/icmp_var.h>
14023 #endif
14024 "
14025 if test "x$ac_cv_member_struct_icmpstat_icps_outhist" = xyes; then :
14026
14027 cat >>confdefs.h <<_ACEOF
14028 #define HAVE_STRUCT_ICMPSTAT_ICPS_OUTHIST 1
14029 _ACEOF
14030
14031
14032 fi
14033
14034
14035 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "#ifdef HAVE_SYS_TYPES_H
14036 #include <sys/types.h>
14037 #endif
14038 #ifdef HAVE_NET_IF_H
14039 # include <net/if.h>
14040 #endif
14041 "
14042 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = xyes; then :
14043
14044 cat >>confdefs.h <<_ACEOF
14045 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
14046 _ACEOF
14047
14048
14049 fi
14050
14051
14052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone variable" >&5
14053 $as_echo_n "checking for timezone variable... " >&6; }
14054 if ${ac_cv_have_timezone+:} false; then :
14055   $as_echo_n "(cached) " >&6
14056 else
14057   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14058 /* end confdefs.h.  */
14059 #include <time.h>
14060 int
14061 main ()
14062 {
14063 timezone = 1
14064   ;
14065   return 0;
14066 }
14067 _ACEOF
14068 if ac_fn_c_try_link "$LINENO"; then :
14069   ac_cv_have_timezone="yes"
14070 else
14071   ac_cv_have_timezone="no"
14072 fi
14073 rm -f core conftest.err conftest.$ac_objext \
14074     conftest$ac_exeext conftest.$ac_ext
14075 fi
14076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_timezone" >&5
14077 $as_echo "$ac_cv_have_timezone" >&6; }
14078 if test "$ac_cv_have_timezone" = "yes"
14079 then
14080
14081 $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
14082
14083 fi
14084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daylight variable" >&5
14085 $as_echo_n "checking for daylight variable... " >&6; }
14086 if ${ac_cv_have_daylight+:} false; then :
14087   $as_echo_n "(cached) " >&6
14088 else
14089   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14090 /* end confdefs.h.  */
14091 #include <time.h>
14092 int
14093 main ()
14094 {
14095 daylight = 1
14096   ;
14097   return 0;
14098 }
14099 _ACEOF
14100 if ac_fn_c_try_link "$LINENO"; then :
14101   ac_cv_have_daylight="yes"
14102 else
14103   ac_cv_have_daylight="no"
14104 fi
14105 rm -f core conftest.err conftest.$ac_objext \
14106     conftest$ac_exeext conftest.$ac_ext
14107 fi
14108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_daylight" >&5
14109 $as_echo "$ac_cv_have_daylight" >&6; }
14110 if test "$ac_cv_have_daylight" = "yes"
14111 then
14112
14113 $as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h
14114
14115 fi
14116
14117 ac_save_LIBS="$LIBS"
14118 LIBS="$LIBS -lm"
14119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf" >&5
14120 $as_echo_n "checking for isinf... " >&6; }
14121 if ${ac_cv_have_isinf+:} false; then :
14122   $as_echo_n "(cached) " >&6
14123 else
14124   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14125 /* end confdefs.h.  */
14126 #include <math.h>
14127 int
14128 main ()
14129 {
14130 float f = 0.0; return isinf(f)
14131   ;
14132   return 0;
14133 }
14134 _ACEOF
14135 if ac_fn_c_try_link "$LINENO"; then :
14136   ac_cv_have_isinf="yes"
14137 else
14138   ac_cv_have_isinf="no"
14139 fi
14140 rm -f core conftest.err conftest.$ac_objext \
14141     conftest$ac_exeext conftest.$ac_ext
14142 fi
14143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isinf" >&5
14144 $as_echo "$ac_cv_have_isinf" >&6; }
14145 if test "$ac_cv_have_isinf" = "yes"
14146 then
14147
14148 $as_echo "#define HAVE_ISINF 1" >>confdefs.h
14149
14150 fi
14151
14152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan" >&5
14153 $as_echo_n "checking for isnan... " >&6; }
14154 if ${ac_cv_have_isnan+:} false; then :
14155   $as_echo_n "(cached) " >&6
14156 else
14157   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14158 /* end confdefs.h.  */
14159 #include <math.h>
14160 int
14161 main ()
14162 {
14163 float f = 0.0; return isnan(f)
14164   ;
14165   return 0;
14166 }
14167 _ACEOF
14168 if ac_fn_c_try_link "$LINENO"; then :
14169   ac_cv_have_isnan="yes"
14170 else
14171   ac_cv_have_isnan="no"
14172 fi
14173 rm -f core conftest.err conftest.$ac_objext \
14174     conftest$ac_exeext conftest.$ac_ext
14175 fi
14176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isnan" >&5
14177 $as_echo "$ac_cv_have_isnan" >&6; }
14178 if test "$ac_cv_have_isnan" = "yes"
14179 then
14180
14181 $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
14182
14183 fi
14184 LIBS="$ac_save_LIBS"
14185
14186
14187 case $host_cpu in
14188   *i[3456789]86*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __i386__" >&5
14189 $as_echo_n "checking whether we need to define __i386__... " >&6; }
14190 if ${ac_cv_cpp_def___i386__+:} false; then :
14191   $as_echo_n "(cached) " >&6
14192 else
14193   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14194 /* end confdefs.h.  */
14195 #ifndef __i386__
14196 yes
14197 #endif
14198 _ACEOF
14199 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14200   $EGREP "yes" >/dev/null 2>&1; then :
14201   ac_cv_cpp_def___i386__=yes
14202 else
14203   ac_cv_cpp_def___i386__=no
14204 fi
14205 rm -f conftest*
14206
14207 fi
14208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___i386__" >&5
14209 $as_echo "$ac_cv_cpp_def___i386__" >&6; }
14210 if test $ac_cv_cpp_def___i386__ = yes; then :
14211   CFLAGS="$CFLAGS -D__i386__"
14212   LINTFLAGS="$LINTFLAGS -D__i386__"
14213 fi ;;
14214   *x86_64*)         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __x86_64__" >&5
14215 $as_echo_n "checking whether we need to define __x86_64__... " >&6; }
14216 if ${ac_cv_cpp_def___x86_64__+:} false; then :
14217   $as_echo_n "(cached) " >&6
14218 else
14219   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14220 /* end confdefs.h.  */
14221 #ifndef __x86_64__
14222 yes
14223 #endif
14224 _ACEOF
14225 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14226   $EGREP "yes" >/dev/null 2>&1; then :
14227   ac_cv_cpp_def___x86_64__=yes
14228 else
14229   ac_cv_cpp_def___x86_64__=no
14230 fi
14231 rm -f conftest*
14232
14233 fi
14234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___x86_64__" >&5
14235 $as_echo "$ac_cv_cpp_def___x86_64__" >&6; }
14236 if test $ac_cv_cpp_def___x86_64__ = yes; then :
14237   CFLAGS="$CFLAGS -D__x86_64__"
14238   LINTFLAGS="$LINTFLAGS -D__x86_64__"
14239 fi ;;
14240   *sparc64*)        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sparc64__" >&5
14241 $as_echo_n "checking whether we need to define __sparc64__... " >&6; }
14242 if ${ac_cv_cpp_def___sparc64__+:} false; then :
14243   $as_echo_n "(cached) " >&6
14244 else
14245   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14246 /* end confdefs.h.  */
14247 #ifndef __sparc64__
14248 yes
14249 #endif
14250 _ACEOF
14251 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14252   $EGREP "yes" >/dev/null 2>&1; then :
14253   ac_cv_cpp_def___sparc64__=yes
14254 else
14255   ac_cv_cpp_def___sparc64__=no
14256 fi
14257 rm -f conftest*
14258
14259 fi
14260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sparc64__" >&5
14261 $as_echo "$ac_cv_cpp_def___sparc64__" >&6; }
14262 if test $ac_cv_cpp_def___sparc64__ = yes; then :
14263   CFLAGS="$CFLAGS -D__sparc64__"
14264   LINTFLAGS="$LINTFLAGS -D__sparc64__"
14265 fi ;;
14266   *sparc*)          { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sparc__" >&5
14267 $as_echo_n "checking whether we need to define __sparc__... " >&6; }
14268 if ${ac_cv_cpp_def___sparc__+:} false; then :
14269   $as_echo_n "(cached) " >&6
14270 else
14271   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14272 /* end confdefs.h.  */
14273 #ifndef __sparc__
14274 yes
14275 #endif
14276 _ACEOF
14277 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14278   $EGREP "yes" >/dev/null 2>&1; then :
14279   ac_cv_cpp_def___sparc__=yes
14280 else
14281   ac_cv_cpp_def___sparc__=no
14282 fi
14283 rm -f conftest*
14284
14285 fi
14286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sparc__" >&5
14287 $as_echo "$ac_cv_cpp_def___sparc__" >&6; }
14288 if test $ac_cv_cpp_def___sparc__ = yes; then :
14289   CFLAGS="$CFLAGS -D__sparc__"
14290   LINTFLAGS="$LINTFLAGS -D__sparc__"
14291 fi ;;
14292   *powerpc64*)      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __powerpc64__" >&5
14293 $as_echo_n "checking whether we need to define __powerpc64__... " >&6; }
14294 if ${ac_cv_cpp_def___powerpc64__+:} false; then :
14295   $as_echo_n "(cached) " >&6
14296 else
14297   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14298 /* end confdefs.h.  */
14299 #ifndef __powerpc64__
14300 yes
14301 #endif
14302 _ACEOF
14303 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14304   $EGREP "yes" >/dev/null 2>&1; then :
14305   ac_cv_cpp_def___powerpc64__=yes
14306 else
14307   ac_cv_cpp_def___powerpc64__=no
14308 fi
14309 rm -f conftest*
14310
14311 fi
14312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___powerpc64__" >&5
14313 $as_echo "$ac_cv_cpp_def___powerpc64__" >&6; }
14314 if test $ac_cv_cpp_def___powerpc64__ = yes; then :
14315   CFLAGS="$CFLAGS -D__powerpc64__"
14316   LINTFLAGS="$LINTFLAGS -D__powerpc64__"
14317 fi ;;
14318   *powerpc*)        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __powerpc__" >&5
14319 $as_echo_n "checking whether we need to define __powerpc__... " >&6; }
14320 if ${ac_cv_cpp_def___powerpc__+:} false; then :
14321   $as_echo_n "(cached) " >&6
14322 else
14323   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14324 /* end confdefs.h.  */
14325 #ifndef __powerpc__
14326 yes
14327 #endif
14328 _ACEOF
14329 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14330   $EGREP "yes" >/dev/null 2>&1; then :
14331   ac_cv_cpp_def___powerpc__=yes
14332 else
14333   ac_cv_cpp_def___powerpc__=no
14334 fi
14335 rm -f conftest*
14336
14337 fi
14338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___powerpc__" >&5
14339 $as_echo "$ac_cv_cpp_def___powerpc__" >&6; }
14340 if test $ac_cv_cpp_def___powerpc__ = yes; then :
14341   CFLAGS="$CFLAGS -D__powerpc__"
14342   LINTFLAGS="$LINTFLAGS -D__powerpc__"
14343 fi ;;
14344   *arm*)            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __arm__" >&5
14345 $as_echo_n "checking whether we need to define __arm__... " >&6; }
14346 if ${ac_cv_cpp_def___arm__+:} false; then :
14347   $as_echo_n "(cached) " >&6
14348 else
14349   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14350 /* end confdefs.h.  */
14351 #ifndef __arm__
14352 yes
14353 #endif
14354 _ACEOF
14355 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14356   $EGREP "yes" >/dev/null 2>&1; then :
14357   ac_cv_cpp_def___arm__=yes
14358 else
14359   ac_cv_cpp_def___arm__=no
14360 fi
14361 rm -f conftest*
14362
14363 fi
14364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___arm__" >&5
14365 $as_echo "$ac_cv_cpp_def___arm__" >&6; }
14366 if test $ac_cv_cpp_def___arm__ = yes; then :
14367   CFLAGS="$CFLAGS -D__arm__"
14368   LINTFLAGS="$LINTFLAGS -D__arm__"
14369 fi ;;
14370 esac
14371
14372 case $host_vendor in
14373   *sun*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sun__" >&5
14374 $as_echo_n "checking whether we need to define __sun__... " >&6; }
14375 if ${ac_cv_cpp_def___sun__+:} false; then :
14376   $as_echo_n "(cached) " >&6
14377 else
14378   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14379 /* end confdefs.h.  */
14380 #ifndef __sun__
14381 yes
14382 #endif
14383 _ACEOF
14384 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14385   $EGREP "yes" >/dev/null 2>&1; then :
14386   ac_cv_cpp_def___sun__=yes
14387 else
14388   ac_cv_cpp_def___sun__=no
14389 fi
14390 rm -f conftest*
14391
14392 fi
14393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sun__" >&5
14394 $as_echo "$ac_cv_cpp_def___sun__" >&6; }
14395 if test $ac_cv_cpp_def___sun__ = yes; then :
14396   CFLAGS="$CFLAGS -D__sun__"
14397   LINTFLAGS="$LINTFLAGS -D__sun__"
14398 fi ;;
14399 esac
14400
14401
14402
14403
14404
14405 ac_config_commands="$ac_config_commands include/stamp-h"
14406
14407
14408 ALL_MAKEFILE_DEPENDS="
14409 # Rules automatically generated by configure
14410
14411 .INIT: Makefile
14412 .MAKEFILEDEPS:
14413 all: Makefile
14414 Makefile: Makefile.in Make.vars.in Make.rules config.status
14415         @./config.status Make.tmp Makefile"
14416
14417 ALL_POT_FILES=""
14418 ALL_TEST_RESOURCES=""
14419
14420
14421 wine_fn_append_file ()
14422 {
14423     as_fn_append $1 " \\$as_nl  $2"
14424 }
14425
14426 wine_fn_append_rule ()
14427 {
14428     as_fn_append $1 "$as_nl$2"
14429 }
14430
14431 wine_fn_has_flag ()
14432 {
14433     expr ",$2," : ".*,$1,.*" >/dev/null
14434 }
14435
14436 wine_fn_all_dir_rules ()
14437 {
14438     ac_dir=$1
14439     ac_alldeps=$2
14440     ac_makedep="\$(MAKEDEP)"
14441     ac_input=Make.vars.in:$ac_dir/Makefile.in
14442     if test $ac_dir != tools
14443     then
14444                 ac_alldeps="$2 $ac_makedep"
14445     fi
14446     case $2 in
14447       *.in) ac_input=$ac_input:$2 ;;
14448       *) ac_makedep="$2 $ac_makedep" ;;
14449     esac
14450
14451     wine_fn_append_file ALL_DIRS $ac_dir
14452     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14453 "__clean__: $ac_dir/__clean__
14454 .PHONY: $ac_dir/__clean__
14455 $ac_dir/__clean__: $ac_dir/Makefile
14456         @cd $ac_dir && \$(MAKE) clean
14457         \$(RM) $ac_dir/Makefile
14458 $ac_dir/Makefile: $ac_dir/Makefile.in Make.vars.in config.status $ac_alldeps
14459         @./config.status --file $ac_dir/Makefile:$ac_input && cd $ac_dir && \$(MAKE) depend
14460 depend: $ac_dir/__depend__
14461 .PHONY: $ac_dir/__depend__
14462 $ac_dir/__depend__: $ac_makedep dummy
14463         @./config.status --file $ac_dir/Makefile:$ac_input && cd $ac_dir && \$(MAKE) depend"
14464 }
14465
14466 wine_fn_pot_rules ()
14467 {
14468     ac_dir=$1
14469     ac_flags=$2
14470
14471     test "x$with_gettextpo" = xyes || return
14472
14473     if wine_fn_has_flag mc $ac_flags
14474     then
14475         wine_fn_append_file ALL_POT_FILES $ac_dir/msg.pot
14476         wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14477 "$ac_dir/msg.pot: $ac_dir/Makefile dummy
14478         @cd $ac_dir && \$(MAKE) msg.pot
14479 $ac_dir/msg.pot: tools/wmc include"
14480     fi
14481     if wine_fn_has_flag po $ac_flags
14482     then
14483         wine_fn_append_file ALL_POT_FILES $ac_dir/rsrc.pot
14484         wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14485 "$ac_dir/rsrc.pot: $ac_dir/Makefile dummy
14486         @cd $ac_dir && \$(MAKE) rsrc.pot
14487 $ac_dir/rsrc.pot: tools/wrc include"
14488     fi
14489 }
14490
14491 wine_fn_config_makefile ()
14492 {
14493     ac_dir=$1
14494     ac_enable=$2
14495     ac_flags=$3
14496     ac_rules=$4
14497     if eval test \"x\$"$ac_enable"\" = x"no"; then :
14498   return 0
14499 fi
14500
14501     wine_fn_all_dir_rules $ac_dir ${ac_rules:-Make.rules}
14502     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14503 "all: $ac_dir
14504 .PHONY: $ac_dir
14505 $ac_dir: $ac_dir/Makefile dummy
14506         @cd $ac_dir && \$(MAKE)"
14507
14508     wine_fn_has_flag install-lib $ac_flags || wine_fn_has_flag install-dev $ac_flags || return
14509
14510     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14511 ".PHONY: $ac_dir/__install__ $ac_dir/__uninstall__
14512 $ac_dir/__install__:: $ac_dir
14513         @cd $ac_dir && \$(MAKE) install
14514 $ac_dir/__uninstall__:: $ac_dir/Makefile
14515         @cd $ac_dir && \$(MAKE) uninstall
14516 install:: $ac_dir/__install__
14517 __uninstall__: $ac_dir/__uninstall__"
14518
14519     if wine_fn_has_flag install-lib $ac_flags
14520     then
14521         wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14522 ".PHONY: $ac_dir/__install-lib__
14523 $ac_dir/__install-lib__:: $ac_dir
14524         @cd $ac_dir && \$(MAKE) install-lib
14525 install-lib:: $ac_dir/__install-lib__"
14526     fi
14527
14528     if wine_fn_has_flag install-dev $ac_flags
14529     then
14530         wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14531 ".PHONY: $ac_dir/__install-dev
14532 $ac_dir/__install-dev__:: $ac_dir
14533         @cd $ac_dir && \$(MAKE) install-dev
14534 install-dev:: $ac_dir/__install-dev__"
14535     fi
14536 }
14537
14538 wine_fn_config_lib ()
14539 {
14540     ac_name=$1
14541     ac_flags=$2
14542     ac_dir=dlls/$ac_name
14543     wine_fn_config_makefile $ac_dir enable_$ac_name "$ac_flags" dlls/Makeimplib.rules
14544
14545     if wine_fn_has_flag install-dev $ac_flags
14546     then :
14547     else
14548         wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14549 ".PHONY: $ac_dir/__install__ $ac_dir/__uninstall__
14550 $ac_dir/__install__:: $ac_dir \$(DESTDIR)\$(dlldir)
14551         \$(INSTALL_DATA) $ac_dir/lib$ac_name.a \$(DESTDIR)\$(dlldir)/lib$ac_name.a
14552 $ac_dir/__uninstall__::
14553         \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_name.a
14554 install install-dev:: $ac_dir/__install__
14555 __uninstall__: $ac_dir/__uninstall__"
14556     fi
14557
14558     wine_fn_append_rule ALL_MAKEFILE_DEPENDS "__builddeps__: $ac_dir"
14559     wine_fn_append_rule ALL_MAKEFILE_DEPENDS "$ac_dir: tools/widl tools/winebuild tools/winegcc include"
14560 }
14561
14562 wine_fn_config_dll ()
14563 {
14564     ac_name=$1
14565     ac_dir=dlls/$ac_name
14566     ac_enable=$2
14567     ac_flags=$3
14568     ac_implib=${4:-$ac_name}
14569     ac_file=$ac_dir/lib$ac_implib
14570     ac_dll=$ac_name
14571     ac_deps="tools/widl tools/winebuild tools/winegcc include"
14572     ac_implibflags=""
14573
14574     case $ac_name in
14575       *16) ac_implibflags=" -m16" ;;
14576       *.*) ;;
14577       *)   ac_dll=$ac_dll.dll ;;
14578     esac
14579
14580     wine_fn_config_makefile $ac_dir $ac_enable "$ac_flags" dlls/Makedll.rules
14581
14582     if eval test \"x\$"$ac_enable"\" = x"no"; then :
14583                 test "$ac_enable" != enable_win16 || return 0
14584                wine_fn_has_flag implib $ac_flags && wine_fn_all_dir_rules $ac_dir dlls/Makedll.rules
14585 else
14586   wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14587 "$ac_dir: __builddeps__
14588 manpages htmlpages sgmlpages xmlpages:: $ac_dir/Makefile
14589         @cd $ac_dir && \$(MAKE) \$@"
14590
14591         if wine_fn_has_flag install-lib $ac_flags
14592         then :
14593         else
14594             wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14595 ".PHONY: $ac_dir/__install-lib__ $ac_dir/__uninstall__
14596 install install-lib:: $ac_dir/__install-lib__
14597 __uninstall__: $ac_dir/__uninstall__"
14598             if test -n "$DLLEXT"
14599             then
14600                 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14601 "$ac_dir/__install-lib__:: $ac_dir \$(DESTDIR)\$(dlldir) \$(DESTDIR)\$(fakedlldir)
14602         \$(INSTALL_PROGRAM) $ac_dir/$ac_dll$DLLEXT \$(DESTDIR)\$(dlldir)/$ac_dll$DLLEXT
14603         \$(INSTALL_DATA) $ac_dir/$ac_dll.fake \$(DESTDIR)\$(fakedlldir)/$ac_dll
14604 $ac_dir/__uninstall__::
14605         \$(RM) \$(DESTDIR)\$(dlldir)/$ac_dll$DLLEXT \$(DESTDIR)\$(fakedlldir)/$ac_dll"
14606             else
14607                 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14608 "$ac_dir/__install-lib__:: $ac_dir \$(DESTDIR)\$(dlldir)
14609         \$(INSTALL_PROGRAM) $ac_dir/$ac_dll \$(DESTDIR)\$(dlldir)/$ac_dll
14610 $ac_dir/__uninstall__::
14611         \$(RM) \$(DESTDIR)\$(dlldir)/$ac_dll"
14612             fi
14613         fi
14614
14615         wine_fn_pot_rules $ac_dir $ac_flags
14616 fi
14617
14618     if wine_fn_has_flag staticimplib $ac_flags
14619     then
14620         wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14621 "__builddeps__: $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT
14622 $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT $ac_file.cross.a: $ac_deps
14623 $ac_file.def: $ac_dir/$ac_name.spec $ac_dir/Makefile
14624         @cd $ac_dir && \$(MAKE) lib$ac_implib.def
14625 $ac_file.$STATIC_IMPLIBEXT: $ac_dir/Makefile dummy
14626         @cd $ac_dir && \$(MAKE) lib$ac_implib.$STATIC_IMPLIBEXT
14627 .PHONY: $ac_dir/__install-dev__ $ac_dir/__uninstall__
14628 $ac_dir/__install-dev__:: $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)
14629         \$(INSTALL_DATA) $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
14630 $ac_dir/__uninstall__::
14631         \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
14632 install install-dev:: $ac_dir/__install-dev__
14633 __uninstall__: $ac_dir/__uninstall__"
14634
14635         if test "$IMPLIBEXT" != "$STATIC_IMPLIBEXT"
14636         then
14637             wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14638 "$ac_dir/__install-dev__:: $ac_file.$STATIC_IMPLIBEXT \$(DESTDIR)\$(dlldir) __builddeps__
14639         \$(INSTALL_DATA) $ac_file.$STATIC_IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$STATIC_IMPLIBEXT
14640 $ac_dir/__uninstall__::
14641         \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$STATIC_IMPLIBEXT"
14642         fi
14643
14644         if test "x$CROSSTEST_DISABLE" = x
14645         then
14646             wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14647 "__builddeps__: $ac_file.cross.a
14648 $ac_file.cross.a: $ac_dir/Makefile dummy
14649         @cd $ac_dir && \$(MAKE) lib$ac_implib.cross.a"
14650         fi
14651
14652     elif wine_fn_has_flag implib $ac_flags
14653     then
14654         wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14655 "__builddeps__: $ac_file.$IMPLIBEXT
14656 $ac_file.def: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
14657         \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --def -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec
14658 $ac_file.a: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
14659         \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --implib -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec
14660 .PHONY: $ac_dir/__install-dev__ $ac_dir/__uninstall__
14661 $ac_dir/__install-dev__:: $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)
14662         \$(INSTALL_DATA) $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
14663 $ac_dir/__uninstall__::
14664         \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
14665 install install-dev:: $ac_dir/__install-dev__
14666 __uninstall__: $ac_dir/__uninstall__"
14667         if test "x$CROSSTEST_DISABLE" = x
14668         then
14669             wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14670 "__builddeps__: $ac_file.cross.a
14671 $ac_file.cross.a: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
14672         \$(WINEBUILD) \$(CROSSTARGET:%=-b %)$ac_implibflags -w --implib -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec"
14673         fi
14674
14675         if test "$ac_name" != "$ac_implib"
14676         then
14677             wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14678 "__builddeps__: dlls/lib$ac_implib.$IMPLIBEXT
14679 dlls/lib$ac_implib.$IMPLIBEXT: $ac_file.$IMPLIBEXT
14680         \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.$IMPLIBEXT \$@
14681 clean::
14682         \$(RM) dlls/lib$ac_implib.$IMPLIBEXT"
14683             if test "x$CROSSTEST_DISABLE" = x
14684             then
14685                 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14686 "__builddeps__: dlls/lib$ac_implib.cross.a
14687 dlls/lib$ac_implib.cross.a: $ac_file.cross.a
14688         \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.cross.a \$@"
14689             fi
14690         fi
14691     fi
14692 }
14693
14694 wine_fn_config_program ()
14695 {
14696     ac_name=$1
14697     ac_dir=programs/$ac_name
14698     ac_enable=$2
14699     ac_flags=$3
14700     ac_program=$ac_name
14701
14702     case $ac_name in
14703       *.*) ;;
14704       *)   ac_program=$ac_program.exe ;;
14705     esac
14706
14707     wine_fn_config_makefile $ac_dir $ac_enable "$ac_flags" programs/Makeprog.rules
14708
14709     if eval test \"x\$"$ac_enable"\" = x"no"; then :
14710
14711 else
14712   wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14713 "$ac_dir: __builddeps__"
14714
14715     wine_fn_pot_rules $ac_dir $ac_flags
14716
14717     wine_fn_has_flag install $ac_flags || return
14718     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14719 ".PHONY: $ac_dir/__install__ $ac_dir/__uninstall__
14720 install install-lib:: $ac_dir/__install__
14721 __uninstall__: $ac_dir/__uninstall__"
14722
14723     if test -n "$DLLEXT"
14724     then
14725         wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14726 "$ac_dir/__install__:: $ac_dir \$(DESTDIR)\$(dlldir) \$(DESTDIR)\$(fakedlldir)
14727         \$(INSTALL_PROGRAM) $ac_dir/$ac_program$DLLEXT \$(DESTDIR)\$(dlldir)/$ac_program$DLLEXT
14728         \$(INSTALL_DATA) $ac_dir/$ac_program.fake \$(DESTDIR)\$(fakedlldir)/$ac_program
14729 $ac_dir/__uninstall__::
14730         \$(RM) \$(DESTDIR)\$(dlldir)/$ac_program$DLLEXT \$(DESTDIR)\$(fakedlldir)/$ac_program"
14731
14732         if test "x$enable_tools" != xno && wine_fn_has_flag installbin $ac_flags
14733         then
14734             wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14735 "$ac_dir/__install__:: tools \$(DESTDIR)\$(bindir)
14736         \$(INSTALL_SCRIPT) tools/wineapploader \$(DESTDIR)\$(bindir)/$ac_name
14737 $ac_dir/__uninstall__::
14738         \$(RM) \$(DESTDIR)\$(bindir)/$ac_name"
14739         fi
14740     else
14741         wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14742 "$ac_dir/__install-lib__:: $ac_dir \$(DESTDIR)\$(dlldir)
14743         \$(INSTALL_PROGRAM) $ac_dir/$ac_program \$(DESTDIR)\$(dlldir)/$ac_program
14744 $ac_dir/__uninstall__::
14745         \$(RM) \$(DESTDIR)\$(dlldir)/$ac_program"
14746     fi
14747
14748     if test "x$enable_tools" != xno && wine_fn_has_flag manpage $ac_flags
14749     then
14750         wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14751 "$ac_dir/__install__:: $ac_dir \$(DESTDIR)\$(mandir)/man\$(prog_manext)
14752         \$(INSTALL_DATA) $ac_dir/$ac_name.man \$(DESTDIR)\$(mandir)/man\$(prog_manext)/$ac_name.\$(prog_manext)
14753 $ac_dir/__uninstall__::
14754         \$(RM) \$(DESTDIR)\$(mandir)/man\$(prog_manext)/$ac_name.\$(prog_manext)"
14755     fi
14756 fi
14757 }
14758
14759 wine_fn_config_test ()
14760 {
14761     ac_dir=$1
14762     ac_name=$2
14763     ac_flags=$3
14764     wine_fn_append_file ALL_TEST_RESOURCES $ac_name.res
14765     wine_fn_all_dir_rules $ac_dir Maketest.rules
14766
14767     if test "x$enable_tests" = xno; then :
14768
14769 else
14770   wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14771 "all: $ac_dir
14772 .PHONY: $ac_dir
14773 $ac_dir: $ac_dir/Makefile programs/winetest/Makefile __builddeps__ dummy
14774         @cd $ac_dir && \$(MAKE)
14775 programs/winetest: $ac_dir
14776 check test: $ac_dir/__test__
14777 .PHONY: $ac_dir/__test__
14778 $ac_dir/__test__: dummy
14779         @cd $ac_dir && \$(MAKE) test
14780 testclean::
14781         \$(RM) $ac_dir/*.ok"
14782
14783         if test "x$CROSSTEST_DISABLE" = x
14784         then
14785             wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14786 "crosstest: $ac_dir/__crosstest__
14787 .PHONY: $ac_dir/__crosstest__
14788 $ac_dir/__crosstest__: $ac_dir/Makefile __builddeps__ dummy
14789         @cd $ac_dir && \$(MAKE) crosstest"
14790         fi
14791 fi
14792 }
14793
14794 wine_fn_config_tool ()
14795 {
14796     ac_dir=$1
14797     ac_flags=$2
14798     if test "x$enable_tools" = xno; then :
14799   return 0
14800 fi
14801
14802     wine_fn_config_makefile $ac_dir enable_tools $ac_flags
14803
14804     wine_fn_append_rule ALL_MAKEFILE_DEPENDS "__tooldeps__: $ac_dir"
14805     wine_fn_append_rule ALL_MAKEFILE_DEPENDS "$ac_dir: libs/port"
14806     case $ac_dir in
14807       tools/winebuild) wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(WINEBUILD): $ac_dir" ;;
14808     esac
14809 }
14810
14811 wine_fn_config_makerules ()
14812 {
14813     ac_rules=$1
14814     ac_deps=$2
14815     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14816 "$ac_rules: $ac_rules.in $ac_deps config.status
14817         @./config.status $ac_rules
14818 distclean::
14819         \$(RM) $ac_rules"
14820 }
14821
14822 wine_fn_config_symlink ()
14823 {
14824     ac_link=$1
14825     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14826 "$ac_link:
14827         @./config.status $ac_link
14828 distclean::
14829         \$(RM) $ac_link"
14830 }
14831
14832 if test "x$CROSSTEST_DISABLE" != x
14833 then
14834     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14835 "crosstest:
14836         @echo \"crosstest is not supported (mingw not installed?)\" && false"
14837 fi
14838 ac_config_links="$ac_config_links dlls/shell32/AUTHORS:AUTHORS"
14839 wine_fn_config_symlink dlls/shell32/AUTHORS
14840 ac_config_links="$ac_config_links dlls/wineps.drv/generic.ppd:dlls/wineps.drv/generic.ppd"
14841 test "$srcdir" = "." || wine_fn_config_symlink dlls/wineps.drv/generic.ppd
14842 if test "x$enable_fonts" != xno; then
14843 ac_config_links="$ac_config_links fonts/marlett.ttf:fonts/marlett.ttf"
14844 test "$srcdir" = "." || wine_fn_config_symlink fonts/marlett.ttf
14845 fi
14846 if test "x$enable_fonts" != xno; then
14847 ac_config_links="$ac_config_links fonts/symbol.ttf:fonts/symbol.ttf"
14848 test "$srcdir" = "." || wine_fn_config_symlink fonts/symbol.ttf
14849 fi
14850 if test "x$enable_fonts" != xno; then
14851 ac_config_links="$ac_config_links fonts/tahoma.ttf:fonts/tahoma.ttf"
14852 test "$srcdir" = "." || wine_fn_config_symlink fonts/tahoma.ttf
14853 fi
14854 if test "x$enable_fonts" != xno; then
14855 ac_config_links="$ac_config_links fonts/tahomabd.ttf:fonts/tahomabd.ttf"
14856 test "$srcdir" = "." || wine_fn_config_symlink fonts/tahomabd.ttf
14857 fi
14858 ac_config_links="$ac_config_links po/LINGUAS:po/LINGUAS"
14859 test "$srcdir" = "." || wine_fn_config_symlink po/LINGUAS
14860 if test "x$enable_tools" != xno; then
14861 ac_config_links="$ac_config_links tools/l_intl.nls:tools/l_intl.nls"
14862 test "$srcdir" = "." || wine_fn_config_symlink tools/l_intl.nls
14863 fi
14864 ac_config_links="$ac_config_links wine:tools/winewrapper"
14865 wine_fn_config_symlink wine
14866 if test "x$enable_win64" != xno; then
14867 ac_config_links="$ac_config_links wine64:tools/winewrapper"
14868 wine_fn_config_symlink wine64
14869 fi
14870
14871 ac_config_commands="$ac_config_commands dlls/gdi32/dibdrv"
14872
14873 ac_config_commands="$ac_config_commands dlls/gdi32/enhmfdrv"
14874
14875 ac_config_commands="$ac_config_commands dlls/gdi32/mfdrv"
14876
14877 ac_config_commands="$ac_config_commands dlls/kernel32/nls"
14878
14879 ac_config_commands="$ac_config_commands dlls/user32/resources"
14880
14881 ac_config_commands="$ac_config_commands dlls/wineps.drv/data"
14882
14883 ac_config_commands="$ac_config_commands include/wine"
14884
14885
14886 wine_fn_config_makerules Make.rules
14887 MAKE_RULES=Make.rules
14888 ac_config_files="$ac_config_files Make.rules"
14889
14890 wine_fn_config_makerules Maketest.rules Make.rules
14891 MAKE_TEST_RULES=Maketest.rules
14892 ac_config_files="$ac_config_files Maketest.rules"
14893
14894 wine_fn_config_makerules dlls/Makedll.rules Make.rules
14895 MAKE_DLL_RULES=dlls/Makedll.rules
14896 ac_config_files="$ac_config_files dlls/Makedll.rules"
14897
14898 wine_fn_config_makerules dlls/Makeimplib.rules Make.rules
14899 MAKE_IMPLIB_RULES=dlls/Makeimplib.rules
14900 ac_config_files="$ac_config_files dlls/Makeimplib.rules"
14901
14902 wine_fn_config_makerules programs/Makeprog.rules Make.rules
14903 MAKE_PROG_RULES=programs/Makeprog.rules
14904 ac_config_files="$ac_config_files programs/Makeprog.rules"
14905
14906
14907 wine_fn_config_dll acledit enable_acledit
14908 wine_fn_config_dll aclui enable_aclui implib
14909 wine_fn_config_dll activeds enable_activeds implib
14910 wine_fn_config_dll actxprxy enable_actxprxy
14911 wine_fn_config_lib adsiid
14912 wine_fn_config_dll advapi32 enable_advapi32 implib
14913 wine_fn_config_test dlls/advapi32/tests advapi32_test
14914 wine_fn_config_dll advpack enable_advpack implib
14915 wine_fn_config_test dlls/advpack/tests advpack_test
14916 wine_fn_config_dll amstream enable_amstream
14917 wine_fn_config_test dlls/amstream/tests amstream_test
14918 wine_fn_config_dll apphelp enable_apphelp
14919 wine_fn_config_dll appwiz.cpl enable_appwiz_cpl po
14920 wine_fn_config_dll atl enable_atl implib
14921 wine_fn_config_test dlls/atl/tests atl_test
14922 wine_fn_config_dll authz enable_authz
14923 wine_fn_config_dll avicap32 enable_avicap32 implib
14924 wine_fn_config_dll avifil32 enable_avifil32 implib,po
14925 wine_fn_config_test dlls/avifil32/tests avifil32_test
14926 wine_fn_config_dll avifile.dll16 enable_win16
14927 wine_fn_config_dll avrt enable_avrt implib
14928 wine_fn_config_dll bcrypt enable_bcrypt
14929 wine_fn_config_dll browseui enable_browseui po
14930 wine_fn_config_test dlls/browseui/tests browseui_test
14931 wine_fn_config_dll cabinet enable_cabinet implib
14932 wine_fn_config_test dlls/cabinet/tests cabinet_test
14933 wine_fn_config_dll capi2032 enable_capi2032 implib
14934 wine_fn_config_dll cards enable_cards implib
14935 wine_fn_config_dll cfgmgr32 enable_cfgmgr32 implib
14936 wine_fn_config_dll clusapi enable_clusapi implib
14937 wine_fn_config_dll comcat enable_comcat
14938 wine_fn_config_test dlls/comcat/tests comcat_test
14939 wine_fn_config_dll comctl32 enable_comctl32 implib,po
14940 wine_fn_config_test dlls/comctl32/tests comctl32_test
14941 wine_fn_config_dll comdlg32 enable_comdlg32 implib,po
14942 wine_fn_config_test dlls/comdlg32/tests comdlg32_test
14943 wine_fn_config_dll comm.drv16 enable_win16
14944 wine_fn_config_dll commdlg.dll16 enable_win16
14945 wine_fn_config_dll compobj.dll16 enable_win16
14946 wine_fn_config_dll compstui enable_compstui implib
14947 wine_fn_config_dll credui enable_credui implib,po
14948 wine_fn_config_test dlls/credui/tests credui_test
14949 wine_fn_config_dll crtdll enable_crtdll implib
14950 wine_fn_config_dll crypt32 enable_crypt32 implib,po
14951 wine_fn_config_test dlls/crypt32/tests crypt32_test
14952 wine_fn_config_dll cryptdlg enable_cryptdlg po
14953 wine_fn_config_dll cryptdll enable_cryptdll implib
14954 wine_fn_config_dll cryptnet enable_cryptnet implib
14955 wine_fn_config_test dlls/cryptnet/tests cryptnet_test
14956 wine_fn_config_dll cryptui enable_cryptui implib,po
14957 wine_fn_config_test dlls/cryptui/tests cryptui_test
14958 wine_fn_config_dll ctapi32 enable_ctapi32
14959 wine_fn_config_dll ctl3d.dll16 enable_win16
14960 wine_fn_config_dll ctl3d32 enable_ctl3d32 implib
14961 wine_fn_config_dll ctl3dv2.dll16 enable_win16
14962 wine_fn_config_dll d3d10 enable_d3d10 implib
14963 wine_fn_config_test dlls/d3d10/tests d3d10_test
14964 wine_fn_config_dll d3d10core enable_d3d10core implib
14965 wine_fn_config_test dlls/d3d10core/tests d3d10core_test
14966 wine_fn_config_dll d3d8 enable_d3d8 implib
14967 wine_fn_config_test dlls/d3d8/tests d3d8_test
14968 wine_fn_config_dll d3d9 enable_d3d9 implib
14969 wine_fn_config_test dlls/d3d9/tests d3d9_test
14970 wine_fn_config_dll d3dcompiler_33 enable_d3dcompiler_33
14971 wine_fn_config_dll d3dcompiler_34 enable_d3dcompiler_34
14972 wine_fn_config_dll d3dcompiler_35 enable_d3dcompiler_35
14973 wine_fn_config_dll d3dcompiler_36 enable_d3dcompiler_36
14974 wine_fn_config_dll d3dcompiler_37 enable_d3dcompiler_37
14975 wine_fn_config_dll d3dcompiler_38 enable_d3dcompiler_38
14976 wine_fn_config_dll d3dcompiler_39 enable_d3dcompiler_39
14977 wine_fn_config_dll d3dcompiler_40 enable_d3dcompiler_40
14978 wine_fn_config_dll d3dcompiler_41 enable_d3dcompiler_41
14979 wine_fn_config_dll d3dcompiler_42 enable_d3dcompiler_42
14980 wine_fn_config_dll d3dcompiler_43 enable_d3dcompiler_43 implib d3dcompiler
14981 wine_fn_config_test dlls/d3dcompiler_43/tests d3dcompiler_43_test
14982 wine_fn_config_dll d3dim enable_d3dim implib
14983 wine_fn_config_dll d3drm enable_d3drm implib
14984 wine_fn_config_test dlls/d3drm/tests d3drm_test
14985 wine_fn_config_dll d3dx10_33 enable_d3dx10_33
14986 wine_fn_config_dll d3dx10_34 enable_d3dx10_34
14987 wine_fn_config_dll d3dx10_35 enable_d3dx10_35
14988 wine_fn_config_dll d3dx10_36 enable_d3dx10_36
14989 wine_fn_config_dll d3dx10_37 enable_d3dx10_37
14990 wine_fn_config_dll d3dx10_38 enable_d3dx10_38
14991 wine_fn_config_dll d3dx10_39 enable_d3dx10_39
14992 wine_fn_config_dll d3dx10_40 enable_d3dx10_40
14993 wine_fn_config_dll d3dx10_41 enable_d3dx10_41
14994 wine_fn_config_dll d3dx10_42 enable_d3dx10_42
14995 wine_fn_config_dll d3dx10_43 enable_d3dx10_43
14996 wine_fn_config_dll d3dx9_24 enable_d3dx9_24
14997 wine_fn_config_dll d3dx9_25 enable_d3dx9_25
14998 wine_fn_config_dll d3dx9_26 enable_d3dx9_26
14999 wine_fn_config_dll d3dx9_27 enable_d3dx9_27
15000 wine_fn_config_dll d3dx9_28 enable_d3dx9_28
15001 wine_fn_config_dll d3dx9_29 enable_d3dx9_29
15002 wine_fn_config_dll d3dx9_30 enable_d3dx9_30
15003 wine_fn_config_dll d3dx9_31 enable_d3dx9_31
15004 wine_fn_config_dll d3dx9_32 enable_d3dx9_32
15005 wine_fn_config_dll d3dx9_33 enable_d3dx9_33
15006 wine_fn_config_dll d3dx9_34 enable_d3dx9_34
15007 wine_fn_config_dll d3dx9_35 enable_d3dx9_35
15008 wine_fn_config_dll d3dx9_36 enable_d3dx9_36 implib d3dx9
15009 wine_fn_config_test dlls/d3dx9_36/tests d3dx9_36_test
15010 wine_fn_config_dll d3dx9_37 enable_d3dx9_37
15011 wine_fn_config_dll d3dx9_38 enable_d3dx9_38
15012 wine_fn_config_dll d3dx9_39 enable_d3dx9_39
15013 wine_fn_config_dll d3dx9_40 enable_d3dx9_40
15014 wine_fn_config_dll d3dx9_41 enable_d3dx9_41
15015 wine_fn_config_dll d3dx9_42 enable_d3dx9_42
15016 wine_fn_config_dll d3dx9_43 enable_d3dx9_43
15017 wine_fn_config_dll d3dxof enable_d3dxof implib
15018 wine_fn_config_test dlls/d3dxof/tests d3dxof_test
15019 wine_fn_config_dll dbgeng enable_dbgeng implib
15020 wine_fn_config_dll dbghelp enable_dbghelp implib
15021 wine_fn_config_dll dciman32 enable_dciman32 implib
15022 wine_fn_config_dll ddeml.dll16 enable_win16
15023 wine_fn_config_dll ddraw enable_ddraw implib
15024 wine_fn_config_test dlls/ddraw/tests ddraw_test
15025 wine_fn_config_dll ddrawex enable_ddrawex
15026 wine_fn_config_test dlls/ddrawex/tests ddrawex_test
15027 wine_fn_config_dll devenum enable_devenum po
15028 wine_fn_config_dll dhcpcsvc enable_dhcpcsvc
15029 wine_fn_config_dll dinput enable_dinput implib,po,staticimplib
15030 wine_fn_config_test dlls/dinput/tests dinput_test
15031 wine_fn_config_dll dinput8 enable_dinput8 implib
15032 wine_fn_config_test dlls/dinput8/tests dinput8_test
15033 wine_fn_config_dll dispdib.dll16 enable_win16
15034 wine_fn_config_dll dispex enable_dispex
15035 wine_fn_config_test dlls/dispex/tests dispex_test
15036 wine_fn_config_dll display.drv16 enable_win16
15037 wine_fn_config_dll dmband enable_dmband
15038 wine_fn_config_dll dmcompos enable_dmcompos
15039 wine_fn_config_dll dmime enable_dmime
15040 wine_fn_config_test dlls/dmime/tests dmime_test
15041 wine_fn_config_dll dmloader enable_dmloader
15042 wine_fn_config_test dlls/dmloader/tests dmloader_test
15043 wine_fn_config_dll dmscript enable_dmscript
15044 wine_fn_config_dll dmstyle enable_dmstyle
15045 wine_fn_config_dll dmsynth enable_dmsynth
15046 wine_fn_config_dll dmusic enable_dmusic
15047 wine_fn_config_dll dmusic32 enable_dmusic32 implib
15048 wine_fn_config_dll dnsapi enable_dnsapi implib
15049 wine_fn_config_test dlls/dnsapi/tests dnsapi_test
15050 wine_fn_config_dll dplay enable_dplay implib
15051 wine_fn_config_dll dplayx enable_dplayx implib
15052 wine_fn_config_test dlls/dplayx/tests dplayx_test
15053 wine_fn_config_dll dpnaddr enable_dpnaddr
15054 wine_fn_config_dll dpnet enable_dpnet implib
15055 wine_fn_config_test dlls/dpnet/tests dpnet_test
15056 wine_fn_config_dll dpnhpast enable_dpnhpast
15057 wine_fn_config_dll dpnlobby enable_dpnlobby
15058 wine_fn_config_dll dpwsockx enable_dpwsockx
15059 wine_fn_config_dll drmclien enable_drmclien
15060 wine_fn_config_dll dsound enable_dsound implib
15061 wine_fn_config_test dlls/dsound/tests dsound_test
15062 wine_fn_config_dll dssenh enable_dssenh
15063 wine_fn_config_dll dswave enable_dswave
15064 wine_fn_config_dll dwmapi enable_dwmapi implib
15065 wine_fn_config_dll dxdiagn enable_dxdiagn po
15066 wine_fn_config_test dlls/dxdiagn/tests dxdiagn_test
15067 wine_fn_config_lib dxerr8
15068 wine_fn_config_lib dxerr9
15069 wine_fn_config_dll dxgi enable_dxgi implib
15070 wine_fn_config_test dlls/dxgi/tests dxgi_test
15071 wine_fn_config_lib dxguid
15072 wine_fn_config_dll explorerframe enable_explorerframe
15073 wine_fn_config_test dlls/explorerframe/tests explorerframe_test
15074 wine_fn_config_dll faultrep enable_faultrep implib
15075 wine_fn_config_test dlls/faultrep/tests faultrep_test
15076 wine_fn_config_dll fltlib enable_fltlib
15077 wine_fn_config_dll fusion enable_fusion
15078 wine_fn_config_test dlls/fusion/tests fusion_test
15079 wine_fn_config_dll fwpuclnt enable_fwpuclnt
15080 wine_fn_config_dll gameux enable_gameux
15081 wine_fn_config_test dlls/gameux/tests gameux_test
15082 wine_fn_config_dll gdi.exe16 enable_win16
15083 wine_fn_config_dll gdi32 enable_gdi32 implib,po
15084 wine_fn_config_test dlls/gdi32/tests gdi32_test
15085 wine_fn_config_dll gdiplus enable_gdiplus implib
15086 wine_fn_config_test dlls/gdiplus/tests gdiplus_test
15087 wine_fn_config_dll glu32 enable_glu32 implib
15088 wine_fn_config_dll gphoto2.ds enable_gphoto2_ds po
15089 wine_fn_config_dll gpkcsp enable_gpkcsp
15090 wine_fn_config_dll hal enable_hal
15091 wine_fn_config_dll hhctrl.ocx enable_hhctrl_ocx po
15092 wine_fn_config_dll hid enable_hid implib
15093 wine_fn_config_dll hlink enable_hlink implib
15094 wine_fn_config_test dlls/hlink/tests hlink_test
15095 wine_fn_config_dll hnetcfg enable_hnetcfg
15096 wine_fn_config_dll httpapi enable_httpapi
15097 wine_fn_config_dll iccvid enable_iccvid po
15098 wine_fn_config_dll icmp enable_icmp
15099 wine_fn_config_dll ieframe enable_ieframe implib,po
15100 wine_fn_config_test dlls/ieframe/tests ieframe_test
15101 wine_fn_config_dll ifsmgr.vxd enable_win16
15102 wine_fn_config_dll imaadp32.acm enable_imaadp32_acm
15103 wine_fn_config_dll imagehlp enable_imagehlp implib
15104 wine_fn_config_test dlls/imagehlp/tests imagehlp_test
15105 wine_fn_config_dll imm.dll16 enable_win16
15106 wine_fn_config_dll imm32 enable_imm32 implib
15107 wine_fn_config_test dlls/imm32/tests imm32_test
15108 wine_fn_config_dll inetcomm enable_inetcomm implib
15109 wine_fn_config_test dlls/inetcomm/tests inetcomm_test
15110 wine_fn_config_dll inetcpl.cpl enable_inetcpl_cpl po
15111 wine_fn_config_dll inetmib1 enable_inetmib1
15112 wine_fn_config_test dlls/inetmib1/tests inetmib1_test
15113 wine_fn_config_dll infosoft enable_infosoft
15114 wine_fn_config_test dlls/infosoft/tests infosoft_test
15115 wine_fn_config_dll initpki enable_initpki
15116 wine_fn_config_dll inkobj enable_inkobj
15117 wine_fn_config_dll inseng enable_inseng
15118 wine_fn_config_dll iphlpapi enable_iphlpapi implib
15119 wine_fn_config_test dlls/iphlpapi/tests iphlpapi_test
15120 wine_fn_config_dll itircl enable_itircl
15121 wine_fn_config_dll itss enable_itss
15122 wine_fn_config_test dlls/itss/tests itss_test
15123 wine_fn_config_dll jscript enable_jscript po
15124 wine_fn_config_test dlls/jscript/tests jscript_test
15125 wine_fn_config_dll kernel32 enable_kernel32 implib,mc
15126 wine_fn_config_test dlls/kernel32/tests kernel32_test
15127 wine_fn_config_dll keyboard.drv16 enable_win16
15128 wine_fn_config_dll krnl386.exe16 enable_win16 implib kernel
15129 wine_fn_config_dll ktmw32 enable_ktmw32
15130 wine_fn_config_dll loadperf enable_loadperf implib
15131 wine_fn_config_dll localspl enable_localspl po
15132 wine_fn_config_test dlls/localspl/tests localspl_test
15133 wine_fn_config_dll localui enable_localui po
15134 wine_fn_config_test dlls/localui/tests localui_test
15135 wine_fn_config_dll lz32 enable_lz32 implib
15136 wine_fn_config_test dlls/lz32/tests lz32_test
15137 wine_fn_config_dll lzexpand.dll16 enable_win16
15138 wine_fn_config_dll mapi32 enable_mapi32 implib,po
15139 wine_fn_config_test dlls/mapi32/tests mapi32_test
15140 wine_fn_config_dll mapistub enable_mapistub
15141 wine_fn_config_dll mciavi32 enable_mciavi32
15142 wine_fn_config_dll mcicda enable_mcicda
15143 wine_fn_config_dll mciqtz32 enable_mciqtz32
15144 wine_fn_config_dll mciseq enable_mciseq
15145 wine_fn_config_dll mciwave enable_mciwave
15146 wine_fn_config_dll midimap enable_midimap
15147 wine_fn_config_dll mlang enable_mlang implib
15148 wine_fn_config_test dlls/mlang/tests mlang_test
15149 wine_fn_config_dll mmcndmgr enable_mmcndmgr
15150 wine_fn_config_dll mmdevapi enable_mmdevapi
15151 wine_fn_config_test dlls/mmdevapi/tests mmdevapi_test
15152 wine_fn_config_dll mmdevldr.vxd enable_win16
15153 wine_fn_config_dll mmsystem.dll16 enable_win16
15154 wine_fn_config_dll monodebg.vxd enable_win16
15155 wine_fn_config_dll mountmgr.sys enable_mountmgr_sys
15156 wine_fn_config_dll mouse.drv16 enable_win16
15157 wine_fn_config_dll mpr enable_mpr implib,po
15158 wine_fn_config_dll mprapi enable_mprapi implib
15159 wine_fn_config_dll msacm.dll16 enable_win16
15160 wine_fn_config_dll msacm32.drv enable_msacm32_drv
15161 wine_fn_config_dll msacm32 enable_msacm32 implib,po
15162 wine_fn_config_test dlls/msacm32/tests msacm32_test
15163 wine_fn_config_dll msadp32.acm enable_msadp32_acm
15164 wine_fn_config_dll mscat32 enable_mscat32
15165 wine_fn_config_dll mscms enable_mscms implib
15166 wine_fn_config_test dlls/mscms/tests mscms_test
15167 wine_fn_config_dll mscoree enable_mscoree
15168 wine_fn_config_test dlls/mscoree/tests mscoree_test
15169 wine_fn_config_dll msctf enable_msctf
15170 wine_fn_config_test dlls/msctf/tests msctf_test
15171 wine_fn_config_dll msdaps enable_msdaps
15172 wine_fn_config_dll msdmo enable_msdmo implib
15173 wine_fn_config_dll msftedit enable_msftedit
15174 wine_fn_config_dll msg711.acm enable_msg711_acm
15175 wine_fn_config_dll msgsm32.acm enable_msgsm32_acm
15176 wine_fn_config_dll mshtml.tlb enable_mshtml_tlb
15177 wine_fn_config_dll mshtml enable_mshtml implib,po
15178 wine_fn_config_test dlls/mshtml/tests mshtml_test
15179 wine_fn_config_dll msi enable_msi implib,po
15180 wine_fn_config_test dlls/msi/tests msi_test
15181 wine_fn_config_dll msimg32 enable_msimg32 implib
15182 wine_fn_config_dll msimsg enable_msimsg
15183 wine_fn_config_dll msimtf enable_msimtf
15184 wine_fn_config_dll msisip enable_msisip
15185 wine_fn_config_dll msisys.ocx enable_msisys_ocx
15186 wine_fn_config_dll msnet32 enable_msnet32
15187 wine_fn_config_dll mspatcha enable_mspatcha
15188 wine_fn_config_dll msrle32 enable_msrle32 po
15189 wine_fn_config_dll mssign32 enable_mssign32
15190 wine_fn_config_dll mssip32 enable_mssip32
15191 wine_fn_config_dll mstask enable_mstask
15192 wine_fn_config_test dlls/mstask/tests mstask_test
15193 wine_fn_config_dll msvcirt enable_msvcirt
15194 wine_fn_config_dll msvcp100 enable_msvcp100
15195 wine_fn_config_dll msvcp60 enable_msvcp60
15196 wine_fn_config_dll msvcp70 enable_msvcp70
15197 wine_fn_config_dll msvcp71 enable_msvcp71
15198 wine_fn_config_dll msvcp80 enable_msvcp80
15199 wine_fn_config_dll msvcp90 enable_msvcp90
15200 wine_fn_config_test dlls/msvcp90/tests msvcp90_test
15201 wine_fn_config_dll msvcr100 enable_msvcr100
15202 wine_fn_config_dll msvcr70 enable_msvcr70 implib
15203 wine_fn_config_dll msvcr71 enable_msvcr71 implib
15204 wine_fn_config_dll msvcr80 enable_msvcr80
15205 wine_fn_config_dll msvcr90 enable_msvcr90
15206 wine_fn_config_test dlls/msvcr90/tests msvcr90_test
15207 wine_fn_config_dll msvcrt enable_msvcrt implib
15208 wine_fn_config_test dlls/msvcrt/tests msvcrt_test
15209 wine_fn_config_dll msvcrt20 enable_msvcrt20 implib
15210 wine_fn_config_dll msvcrt40 enable_msvcrt40 implib
15211 wine_fn_config_dll msvcrtd enable_msvcrtd implib
15212 wine_fn_config_test dlls/msvcrtd/tests msvcrtd_test
15213 wine_fn_config_dll msvfw32 enable_msvfw32 implib,po
15214 wine_fn_config_test dlls/msvfw32/tests msvfw32_test
15215 wine_fn_config_dll msvidc32 enable_msvidc32 po
15216 wine_fn_config_dll msvideo.dll16 enable_win16
15217 wine_fn_config_dll mswsock enable_mswsock implib
15218 wine_fn_config_dll msxml enable_msxml
15219 wine_fn_config_dll msxml2 enable_msxml2
15220 wine_fn_config_dll msxml3 enable_msxml3
15221 wine_fn_config_test dlls/msxml3/tests msxml3_test
15222 wine_fn_config_dll msxml4 enable_msxml4
15223 wine_fn_config_dll msxml6 enable_msxml6
15224 wine_fn_config_dll nddeapi enable_nddeapi implib
15225 wine_fn_config_dll netapi32 enable_netapi32 implib
15226 wine_fn_config_test dlls/netapi32/tests netapi32_test
15227 wine_fn_config_dll newdev enable_newdev implib
15228 wine_fn_config_dll normaliz enable_normaliz implib
15229 wine_fn_config_dll npmshtml enable_npmshtml
15230 wine_fn_config_dll ntdll enable_ntdll implib
15231 wine_fn_config_test dlls/ntdll/tests ntdll_test
15232 wine_fn_config_dll ntdsapi enable_ntdsapi implib
15233 wine_fn_config_test dlls/ntdsapi/tests ntdsapi_test
15234 wine_fn_config_dll ntoskrnl.exe enable_ntoskrnl_exe implib
15235 wine_fn_config_dll ntprint enable_ntprint
15236 wine_fn_config_test dlls/ntprint/tests ntprint_test
15237 wine_fn_config_dll objsel enable_objsel
15238 wine_fn_config_dll odbc32 enable_odbc32 implib
15239 wine_fn_config_dll odbccp32 enable_odbccp32 implib
15240 wine_fn_config_test dlls/odbccp32/tests odbccp32_test
15241 wine_fn_config_dll ole2.dll16 enable_win16
15242 wine_fn_config_dll ole2conv.dll16 enable_win16
15243 wine_fn_config_dll ole2disp.dll16 enable_win16
15244 wine_fn_config_dll ole2nls.dll16 enable_win16
15245 wine_fn_config_dll ole2prox.dll16 enable_win16
15246 wine_fn_config_dll ole2thk.dll16 enable_win16
15247 wine_fn_config_dll ole32 enable_ole32 implib
15248 wine_fn_config_test dlls/ole32/tests ole32_test
15249 wine_fn_config_dll oleacc enable_oleacc implib,po
15250 wine_fn_config_test dlls/oleacc/tests oleacc_test
15251 wine_fn_config_dll oleaut32 enable_oleaut32 implib,po
15252 wine_fn_config_test dlls/oleaut32/tests oleaut32_test
15253 wine_fn_config_dll olecli.dll16 enable_win16
15254 wine_fn_config_dll olecli32 enable_olecli32 implib
15255 wine_fn_config_dll oledb32 enable_oledb32
15256 wine_fn_config_test dlls/oledb32/tests oledb32_test
15257 wine_fn_config_dll oledlg enable_oledlg implib,po
15258 wine_fn_config_dll olepro32 enable_olepro32 implib
15259 wine_fn_config_dll olesvr.dll16 enable_win16
15260 wine_fn_config_dll olesvr32 enable_olesvr32 implib
15261 wine_fn_config_dll olethk32 enable_olethk32
15262 wine_fn_config_dll openal32 enable_openal32
15263 wine_fn_config_dll opencl enable_opencl
15264 wine_fn_config_dll opengl32 enable_opengl32 implib
15265 wine_fn_config_test dlls/opengl32/tests opengl32_test
15266 wine_fn_config_dll pdh enable_pdh implib
15267 wine_fn_config_test dlls/pdh/tests pdh_test
15268 wine_fn_config_dll photometadatahandler enable_photometadatahandler
15269 wine_fn_config_dll pidgen enable_pidgen
15270 wine_fn_config_dll powrprof enable_powrprof implib
15271 wine_fn_config_dll printui enable_printui
15272 wine_fn_config_dll propsys enable_propsys implib
15273 wine_fn_config_test dlls/propsys/tests propsys_test
15274 wine_fn_config_dll psapi enable_psapi implib
15275 wine_fn_config_test dlls/psapi/tests psapi_test
15276 wine_fn_config_dll pstorec enable_pstorec
15277 wine_fn_config_dll qcap enable_qcap
15278 wine_fn_config_dll qedit enable_qedit
15279 wine_fn_config_test dlls/qedit/tests qedit_test
15280 wine_fn_config_dll qmgr enable_qmgr
15281 wine_fn_config_test dlls/qmgr/tests qmgr_test
15282 wine_fn_config_dll qmgrprxy enable_qmgrprxy
15283 wine_fn_config_dll quartz enable_quartz implib
15284 wine_fn_config_test dlls/quartz/tests quartz_test
15285 wine_fn_config_dll query enable_query
15286 wine_fn_config_dll rasapi16.dll16 enable_win16
15287 wine_fn_config_dll rasapi32 enable_rasapi32 implib
15288 wine_fn_config_test dlls/rasapi32/tests rasapi32_test
15289 wine_fn_config_dll rasdlg enable_rasdlg implib
15290 wine_fn_config_dll regapi enable_regapi
15291 wine_fn_config_dll resutils enable_resutils implib
15292 wine_fn_config_dll riched20 enable_riched20 implib
15293 wine_fn_config_test dlls/riched20/tests riched20_test
15294 wine_fn_config_dll riched32 enable_riched32
15295 wine_fn_config_test dlls/riched32/tests riched32_test
15296 wine_fn_config_dll rpcrt4 enable_rpcrt4 implib
15297 wine_fn_config_test dlls/rpcrt4/tests rpcrt4_test
15298 wine_fn_config_dll rsabase enable_rsabase
15299 wine_fn_config_dll rsaenh enable_rsaenh implib
15300 wine_fn_config_test dlls/rsaenh/tests rsaenh_test
15301 wine_fn_config_dll rstrtmgr enable_rstrtmgr
15302 wine_fn_config_dll rtutils enable_rtutils implib
15303 wine_fn_config_dll samlib enable_samlib
15304 wine_fn_config_dll sane.ds enable_sane_ds po
15305 wine_fn_config_dll scarddlg enable_scarddlg
15306 wine_fn_config_dll sccbase enable_sccbase
15307 wine_fn_config_dll schannel enable_schannel
15308 wine_fn_config_test dlls/schannel/tests schannel_test
15309 wine_fn_config_dll scrrun enable_scrrun
15310 wine_fn_config_dll secur32 enable_secur32 implib
15311 wine_fn_config_test dlls/secur32/tests secur32_test
15312 wine_fn_config_dll security enable_security
15313 wine_fn_config_dll sensapi enable_sensapi implib
15314 wine_fn_config_dll serialui enable_serialui implib,po
15315 wine_fn_config_test dlls/serialui/tests serialui_test
15316 wine_fn_config_dll setupapi enable_setupapi implib,po
15317 wine_fn_config_test dlls/setupapi/tests setupapi_test
15318 wine_fn_config_dll setupx.dll16 enable_win16
15319 wine_fn_config_dll sfc enable_sfc implib
15320 wine_fn_config_dll sfc_os enable_sfc_os implib
15321 wine_fn_config_dll shdoclc enable_shdoclc po
15322 wine_fn_config_dll shdocvw enable_shdocvw implib
15323 wine_fn_config_test dlls/shdocvw/tests shdocvw_test
15324 wine_fn_config_dll shell.dll16 enable_win16
15325 wine_fn_config_dll shell32 enable_shell32 implib,po
15326 wine_fn_config_test dlls/shell32/tests shell32_test
15327 wine_fn_config_dll shfolder enable_shfolder implib
15328 wine_fn_config_dll shlwapi enable_shlwapi implib,po
15329 wine_fn_config_test dlls/shlwapi/tests shlwapi_test
15330 wine_fn_config_dll slbcsp enable_slbcsp
15331 wine_fn_config_dll slc enable_slc implib
15332 wine_fn_config_dll snmpapi enable_snmpapi implib
15333 wine_fn_config_test dlls/snmpapi/tests snmpapi_test
15334 wine_fn_config_dll softpub enable_softpub
15335 wine_fn_config_dll sound.drv16 enable_win16
15336 wine_fn_config_dll spoolss enable_spoolss implib
15337 wine_fn_config_test dlls/spoolss/tests spoolss_test
15338 wine_fn_config_dll stdole2.tlb enable_stdole2_tlb
15339 wine_fn_config_dll stdole32.tlb enable_stdole32_tlb
15340 wine_fn_config_dll sti enable_sti implib
15341 wine_fn_config_test dlls/sti/tests sti_test
15342 wine_fn_config_dll storage.dll16 enable_win16
15343 wine_fn_config_dll stress.dll16 enable_win16
15344 wine_fn_config_lib strmbase
15345 wine_fn_config_lib strmiids
15346 wine_fn_config_dll svrapi enable_svrapi
15347 wine_fn_config_dll sxs enable_sxs
15348 wine_fn_config_dll system.drv16 enable_win16
15349 wine_fn_config_dll t2embed enable_t2embed
15350 wine_fn_config_dll tapi32 enable_tapi32 implib
15351 wine_fn_config_dll toolhelp.dll16 enable_win16
15352 wine_fn_config_dll traffic enable_traffic
15353 wine_fn_config_dll twain.dll16 enable_win16
15354 wine_fn_config_dll twain_32 enable_twain_32
15355 wine_fn_config_test dlls/twain_32/tests twain_32_test
15356 wine_fn_config_dll typelib.dll16 enable_win16
15357 wine_fn_config_dll unicows enable_unicows implib
15358 wine_fn_config_dll updspapi enable_updspapi
15359 wine_fn_config_dll url enable_url implib
15360 wine_fn_config_dll urlmon enable_urlmon implib
15361 wine_fn_config_test dlls/urlmon/tests urlmon_test
15362 wine_fn_config_dll usbd.sys enable_usbd_sys implib
15363 wine_fn_config_dll user.exe16 enable_win16
15364 wine_fn_config_dll user32 enable_user32 implib,po
15365 wine_fn_config_test dlls/user32/tests user32_test
15366 wine_fn_config_dll userenv enable_userenv implib
15367 wine_fn_config_test dlls/userenv/tests userenv_test
15368 wine_fn_config_dll usp10 enable_usp10 implib
15369 wine_fn_config_test dlls/usp10/tests usp10_test
15370 wine_fn_config_lib uuid
15371 wine_fn_config_dll uxtheme enable_uxtheme implib
15372 wine_fn_config_test dlls/uxtheme/tests uxtheme_test
15373 wine_fn_config_dll vbscript enable_vbscript
15374 wine_fn_config_test dlls/vbscript/tests vbscript_test
15375 wine_fn_config_dll vcomp enable_vcomp
15376 wine_fn_config_dll vdhcp.vxd enable_win16
15377 wine_fn_config_dll vdmdbg enable_vdmdbg implib
15378 wine_fn_config_dll ver.dll16 enable_win16
15379 wine_fn_config_dll version enable_version implib
15380 wine_fn_config_test dlls/version/tests version_test
15381 wine_fn_config_dll vmm.vxd enable_win16
15382 wine_fn_config_dll vnbt.vxd enable_win16
15383 wine_fn_config_dll vnetbios.vxd enable_win16
15384 wine_fn_config_dll vtdapi.vxd enable_win16
15385 wine_fn_config_dll vwin32.vxd enable_win16
15386 wine_fn_config_dll w32skrnl enable_win16
15387 wine_fn_config_dll w32sys.dll16 enable_win16
15388 wine_fn_config_dll wbemprox enable_wbemprox
15389 wine_fn_config_dll wer enable_wer implib
15390 wine_fn_config_test dlls/wer/tests wer_test
15391 wine_fn_config_dll wiaservc enable_wiaservc
15392 wine_fn_config_dll win32s16.dll16 enable_win16
15393 wine_fn_config_dll win87em.dll16 enable_win16
15394 wine_fn_config_dll winaspi.dll16 enable_win16
15395 wine_fn_config_dll windebug.dll16 enable_win16
15396 wine_fn_config_dll windowscodecs enable_windowscodecs implib
15397 wine_fn_config_test dlls/windowscodecs/tests windowscodecs_test
15398 wine_fn_config_dll winealsa.drv enable_winealsa_drv
15399 wine_fn_config_dll winecoreaudio.drv enable_winecoreaudio_drv
15400 wine_fn_config_lib winecrt0
15401 wine_fn_config_dll wined3d enable_wined3d implib
15402 wine_fn_config_dll winegstreamer enable_winegstreamer
15403 wine_fn_config_dll winejoystick.drv enable_winejoystick_drv
15404 wine_fn_config_dll winemapi enable_winemapi
15405 wine_fn_config_dll winemp3.acm enable_winemp3_acm
15406 wine_fn_config_dll wineoss.drv enable_wineoss_drv
15407 wine_fn_config_dll wineps.drv enable_wineps_drv install-lib,po
15408 wine_fn_config_dll wineps16.drv16 enable_win16
15409 wine_fn_config_dll wineqtdecoder enable_wineqtdecoder
15410 wine_fn_config_dll winequartz.drv enable_winequartz_drv
15411 wine_fn_config_dll winex11.drv enable_winex11_drv
15412 wine_fn_config_dll wing.dll16 enable_win16
15413 wine_fn_config_dll wing32 enable_wing32
15414 wine_fn_config_dll winhttp enable_winhttp implib
15415 wine_fn_config_test dlls/winhttp/tests winhttp_test
15416 wine_fn_config_dll wininet enable_wininet implib,po
15417 wine_fn_config_test dlls/wininet/tests wininet_test
15418 wine_fn_config_dll winmm enable_winmm implib,po
15419 wine_fn_config_test dlls/winmm/tests winmm_test
15420 wine_fn_config_dll winnls.dll16 enable_win16
15421 wine_fn_config_dll winnls32 enable_winnls32 implib
15422 wine_fn_config_dll winscard enable_winscard implib
15423 wine_fn_config_dll winsock.dll16 enable_win16
15424 wine_fn_config_dll winspool.drv enable_winspool_drv implib,po winspool
15425 wine_fn_config_test dlls/winspool.drv/tests winspool.drv_test
15426 wine_fn_config_dll winsta enable_winsta
15427 wine_fn_config_dll wintab.dll16 enable_win16
15428 wine_fn_config_dll wintab32 enable_wintab32 implib
15429 wine_fn_config_test dlls/wintab32/tests wintab32_test
15430 wine_fn_config_dll wintrust enable_wintrust implib
15431 wine_fn_config_test dlls/wintrust/tests wintrust_test
15432 wine_fn_config_dll wlanapi enable_wlanapi
15433 wine_fn_config_dll wldap32 enable_wldap32 implib,po
15434 wine_fn_config_test dlls/wldap32/tests wldap32_test
15435 wine_fn_config_dll wmi enable_wmi
15436 wine_fn_config_dll wmiutils enable_wmiutils
15437 wine_fn_config_dll wnaspi32 enable_wnaspi32 implib
15438 wine_fn_config_dll wow32 enable_win16 implib
15439 wine_fn_config_dll ws2_32 enable_ws2_32 implib
15440 wine_fn_config_test dlls/ws2_32/tests ws2_32_test
15441 wine_fn_config_dll wshom.ocx enable_wshom_ocx
15442 wine_fn_config_test dlls/wshom.ocx/tests wshom.ocx_test
15443 wine_fn_config_dll wsock32 enable_wsock32 implib
15444 wine_fn_config_dll wtsapi32 enable_wtsapi32 implib
15445 wine_fn_config_dll wuapi enable_wuapi
15446 wine_fn_config_dll wuaueng enable_wuaueng
15447 wine_fn_config_dll xapofx1_1 enable_xapofx1_1
15448 wine_fn_config_dll xinput1_1 enable_xinput1_1
15449 wine_fn_config_dll xinput1_2 enable_xinput1_2
15450 wine_fn_config_dll xinput1_3 enable_xinput1_3 implib xinput
15451 wine_fn_config_test dlls/xinput1_3/tests xinput1_3_test
15452 wine_fn_config_dll xinput9_1_0 enable_xinput9_1_0
15453 wine_fn_config_dll xmllite enable_xmllite
15454 wine_fn_config_test dlls/xmllite/tests xmllite_test
15455 wine_fn_config_dll xolehlp enable_xolehlp
15456 wine_fn_config_dll xpsprint enable_xpsprint
15457 wine_fn_config_makefile documentation enable_documentation
15458 wine_fn_config_makefile fonts enable_fonts install-lib
15459 wine_fn_config_makefile include enable_include install-dev
15460 wine_fn_config_makefile libs/port enable_libs_port
15461 wine_fn_config_makefile libs/wine enable_libs_wine install-dev,install-lib
15462 wine_fn_config_makefile libs/wpp enable_libs_wpp
15463 wine_fn_config_makefile loader enable_loader install-lib,manpage
15464 wine_fn_config_program aspnet_regiis enable_aspnet_regiis install
15465 wine_fn_config_program attrib enable_attrib install,po
15466 wine_fn_config_program cabarc enable_cabarc install
15467 wine_fn_config_program cacls enable_cacls install
15468 wine_fn_config_program clock enable_clock install,po
15469 wine_fn_config_program cmd enable_cmd install,po
15470 wine_fn_config_test programs/cmd/tests cmd.exe_test
15471 wine_fn_config_program control enable_control install
15472 wine_fn_config_program cscript enable_cscript install
15473 wine_fn_config_program dxdiag enable_dxdiag install,po
15474 wine_fn_config_program eject enable_eject install
15475 wine_fn_config_program expand enable_expand install
15476 wine_fn_config_program explorer enable_explorer install,po
15477 wine_fn_config_program extrac32 enable_extrac32 install
15478 wine_fn_config_program hh enable_hh install
15479 wine_fn_config_program hostname enable_hostname install,po
15480 wine_fn_config_program icinfo enable_icinfo install
15481 wine_fn_config_program iexplore enable_iexplore install
15482 wine_fn_config_program ipconfig enable_ipconfig install,po
15483 wine_fn_config_program lodctr enable_lodctr install
15484 wine_fn_config_program mofcomp enable_mofcomp install
15485 wine_fn_config_program mshta enable_mshta install
15486 wine_fn_config_program msiexec enable_msiexec install,installbin,manpage
15487 wine_fn_config_program net enable_net install,po
15488 wine_fn_config_program netsh enable_netsh install
15489 wine_fn_config_program ngen enable_ngen install
15490 wine_fn_config_program notepad enable_notepad install,installbin,manpage,po
15491 wine_fn_config_program oleview enable_oleview install,po
15492 wine_fn_config_program ping enable_ping install
15493 wine_fn_config_program plugplay enable_plugplay install
15494 wine_fn_config_program presentationfontcache enable_presentationfontcache install
15495 wine_fn_config_program progman enable_progman install,po
15496 wine_fn_config_program reg enable_reg install,po
15497 wine_fn_config_program regasm enable_regasm install
15498 wine_fn_config_program regedit enable_regedit install,installbin,manpage,po
15499 wine_fn_config_test programs/regedit/tests regedit.exe_test
15500 wine_fn_config_program regsvcs enable_regsvcs install
15501 wine_fn_config_program regsvr32 enable_regsvr32 install,installbin,manpage
15502 wine_fn_config_program rpcss enable_rpcss install
15503 wine_fn_config_program rundll.exe16 enable_win16 install
15504 wine_fn_config_program rundll32 enable_rundll32 install
15505 wine_fn_config_program sc enable_sc install
15506 wine_fn_config_program secedit enable_secedit install
15507 wine_fn_config_program servicemodelreg enable_servicemodelreg install
15508 wine_fn_config_program services enable_services install
15509 wine_fn_config_program spoolsv enable_spoolsv install
15510 wine_fn_config_program start enable_start install,po
15511 wine_fn_config_program svchost enable_svchost install
15512 wine_fn_config_program taskkill enable_taskkill install,po
15513 wine_fn_config_program taskmgr enable_taskmgr install,po
15514 wine_fn_config_program termsv enable_termsv install
15515 wine_fn_config_program uninstaller enable_uninstaller install,po
15516 wine_fn_config_program unlodctr enable_unlodctr install
15517 wine_fn_config_program view enable_view install,po
15518 wine_fn_config_program wineboot enable_wineboot install,installbin,manpage,po
15519 wine_fn_config_program winebrowser enable_winebrowser install
15520 wine_fn_config_program winecfg enable_winecfg install,installbin,manpage,po
15521 wine_fn_config_program wineconsole enable_wineconsole install,installbin,manpage,po
15522 wine_fn_config_program winedbg enable_winedbg install,installbin,manpage,po
15523 wine_fn_config_program winedevice enable_winedevice install
15524 wine_fn_config_program winefile enable_winefile install,installbin,manpage,po
15525 wine_fn_config_program winemenubuilder enable_winemenubuilder install
15526 wine_fn_config_program winemine enable_winemine install,installbin,manpage,po
15527 wine_fn_config_program winemsibuilder enable_winemsibuilder install
15528 wine_fn_config_program winepath enable_winepath install,installbin,manpage
15529 wine_fn_config_program winetest enable_winetest
15530 wine_fn_config_program winevdm enable_win16 install
15531 wine_fn_config_program winhelp.exe16 enable_win16 install
15532 wine_fn_config_program winhlp32 enable_winhlp32 install,po
15533 wine_fn_config_program winoldap.mod16 enable_win16 install
15534 wine_fn_config_program winver enable_winver install
15535 wine_fn_config_program wmic enable_wmic install
15536 wine_fn_config_program wordpad enable_wordpad install,po
15537 wine_fn_config_program write enable_write install,po
15538 wine_fn_config_program wscript enable_wscript install
15539 wine_fn_config_test programs/wscript/tests wscript.exe_test
15540 wine_fn_config_program xcopy enable_xcopy install,po
15541 wine_fn_config_makefile server enable_server install-lib,manpage
15542 wine_fn_config_tool tools install-dev,install-lib,manpage
15543 wine_fn_config_tool tools/widl install-dev,manpage
15544 wine_fn_config_tool tools/winebuild install-dev,manpage
15545 wine_fn_config_tool tools/winedump install-dev,manpage
15546 wine_fn_config_tool tools/winegcc install-dev,manpage
15547 wine_fn_config_tool tools/wmc install-dev,manpage
15548 wine_fn_config_tool tools/wrc install-dev,manpage
15549
15550 LINGUAS="\
15551 ar \
15552 bg \
15553 ca \
15554 cs \
15555 da \
15556 de \
15557 el \
15558 en \
15559 en_US \
15560 eo \
15561 es \
15562 fa \
15563 fi \
15564 fr \
15565 he \
15566 hi \
15567 hu \
15568 it \
15569 ja \
15570 ko \
15571 lt \
15572 ml \
15573 nb_NO \
15574 nl \
15575 or \
15576 pa \
15577 pl \
15578 pt_BR \
15579 pt_PT \
15580 rm \
15581 ro \
15582 ru \
15583 sk \
15584 sl \
15585 sr_RS@cyrillic \
15586 sr_RS@latin \
15587 sv \
15588 te \
15589 th \
15590 tr \
15591 uk \
15592 wa \
15593 zh_CN \
15594 zh_TW"
15595
15596
15597
15598 ac_config_commands="$ac_config_commands Makefile"
15599
15600
15601 ac_config_files="$ac_config_files Make.tmp:Make.vars.in:Makefile.in"
15602
15603
15604
15605 if test "x$enable_maintainer_mode" = xyes
15606 then
15607     wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(srcdir)/configure: configure.ac aclocal.m4
15608         cd \$(srcdir) && autoconf --warnings=all
15609 \$(srcdir)/include/config.h.in: include/stamp-h.in
15610 \$(srcdir)/include/stamp-h.in: configure.ac aclocal.m4
15611         cd \$(srcdir) && autoheader --warnings=all
15612         @echo timestamp > \$@"
15613 fi
15614
15615 if test "x$with_gettextpo" = xyes
15616 then
15617     test "$srcdir" = . || as_fn_error $? "Rebuilding po files is not supported for out of tree builds." "$LINENO" 5
15618     wine_fn_append_rule ALL_MAKEFILE_DEPENDS "ALL_POT_FILES =$ALL_POT_FILES
15619 \$(LINGUAS:%=po/%.po): \$(srcdir)/po/wine.pot
15620         msgmerge -q \$@ \$(srcdir)/po/wine.pot | msgattrib --no-obsolete -o \$@.new && mv \$@.new \$@
15621 \$(srcdir)/po/wine.pot: \$(ALL_POT_FILES)
15622         msgcat -o \$@ \$(ALL_POT_FILES)"
15623 fi
15624
15625 if test "$MSGFMT" != false
15626 then
15627     PORCFLAGS="--po-dir=\$(top_builddir)/po"
15628
15629     wine_fn_append_rule ALL_MAKEFILE_DEPENDS "__builddeps__: \$(ALL_MO_FILES)"
15630 else
15631     LINGUAS=
15632 fi
15633
15634 if test "x$enable_tools" != xno
15635 then
15636     wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(MAKEDEP): tools/Makefile
15637 clean:: __clean__
15638         \$(RM) tools/makedep\$(EXEEXT)"
15639 fi
15640
15641 if test -n "$with_wine64"
15642 then
15643 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "all: fonts server tools $with_wine64/loader/wine $with_wine64/loader/wine-preloader
15644 fonts server tools:
15645         \$(RM) \$@ && \$(LN_S) $with_wine64/\$@ \$@
15646 $with_wine64/loader/wine:
15647         \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine \$@
15648 $with_wine64/loader/wine-preloader:
15649         \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine-preloader \$@
15650 clean::
15651         \$(RM) fonts server tools $with_wine64/loader/wine $with_wine64/loader/wine-preloader"
15652 fi
15653
15654 cat >confcache <<\_ACEOF
15655 # This file is a shell script that caches the results of configure
15656 # tests run on this system so they can be shared between configure
15657 # scripts and configure runs, see configure's option --config-cache.
15658 # It is not useful on other systems.  If it contains results you don't
15659 # want to keep, you may remove or edit it.
15660 #
15661 # config.status only pays attention to the cache file if you give it
15662 # the --recheck option to rerun configure.
15663 #
15664 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15665 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15666 # following values.
15667
15668 _ACEOF
15669
15670 # The following way of writing the cache mishandles newlines in values,
15671 # but we know of no workaround that is simple, portable, and efficient.
15672 # So, we kill variables containing newlines.
15673 # Ultrix sh set writes to stderr and can't be redirected directly,
15674 # and sets the high bit in the cache file unless we assign to the vars.
15675 (
15676   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15677     eval ac_val=\$$ac_var
15678     case $ac_val in #(
15679     *${as_nl}*)
15680       case $ac_var in #(
15681       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15682 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15683       esac
15684       case $ac_var in #(
15685       _ | IFS | as_nl) ;; #(
15686       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15687       *) { eval $ac_var=; unset $ac_var;} ;;
15688       esac ;;
15689     esac
15690   done
15691
15692   (set) 2>&1 |
15693     case $as_nl`(ac_space=' '; set) 2>&1` in #(
15694     *${as_nl}ac_space=\ *)
15695       # `set' does not quote correctly, so add quotes: double-quote
15696       # substitution turns \\\\ into \\, and sed turns \\ into \.
15697       sed -n \
15698         "s/'/'\\\\''/g;
15699           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15700       ;; #(
15701     *)
15702       # `set' quotes correctly as required by POSIX, so do not add quotes.
15703       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15704       ;;
15705     esac |
15706     sort
15707 ) |
15708   sed '
15709      /^ac_cv_env_/b end
15710      t clear
15711      :clear
15712      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15713      t end
15714      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15715      :end' >>confcache
15716 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15717   if test -w "$cache_file"; then
15718     if test "x$cache_file" != "x/dev/null"; then
15719       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15720 $as_echo "$as_me: updating cache $cache_file" >&6;}
15721       if test ! -f "$cache_file" || test -h "$cache_file"; then
15722         cat confcache >"$cache_file"
15723       else
15724         case $cache_file in #(
15725         */* | ?:*)
15726           mv -f confcache "$cache_file"$$ &&
15727           mv -f "$cache_file"$$ "$cache_file" ;; #(
15728         *)
15729           mv -f confcache "$cache_file" ;;
15730         esac
15731       fi
15732     fi
15733   else
15734     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15735 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15736   fi
15737 fi
15738 rm -f confcache
15739
15740 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15741 # Let make expand exec_prefix.
15742 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15743
15744 DEFS=-DHAVE_CONFIG_H
15745
15746 ac_libobjs=
15747 ac_ltlibobjs=
15748 U=
15749 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15750   # 1. Remove the extension, and $U if already installed.
15751   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15752   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15753   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15754   #    will be set to the directory where LIBOBJS objects are built.
15755   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15756   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15757 done
15758 LIBOBJS=$ac_libobjs
15759
15760 LTLIBOBJS=$ac_ltlibobjs
15761
15762
15763
15764 : "${CONFIG_STATUS=./config.status}"
15765 ac_write_fail=0
15766 ac_clean_files_save=$ac_clean_files
15767 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15768 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15769 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15770 as_write_fail=0
15771 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15772 #! $SHELL
15773 # Generated by $as_me.
15774 # Run this file to recreate the current configuration.
15775 # Compiler output produced by configure, useful for debugging
15776 # configure, is in config.log if it exists.
15777
15778 debug=false
15779 ac_cs_recheck=false
15780 ac_cs_silent=false
15781
15782 SHELL=\${CONFIG_SHELL-$SHELL}
15783 export SHELL
15784 _ASEOF
15785 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15786 ## -------------------- ##
15787 ## M4sh Initialization. ##
15788 ## -------------------- ##
15789
15790 # Be more Bourne compatible
15791 DUALCASE=1; export DUALCASE # for MKS sh
15792 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15793   emulate sh
15794   NULLCMD=:
15795   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15796   # is contrary to our usage.  Disable this feature.
15797   alias -g '${1+"$@"}'='"$@"'
15798   setopt NO_GLOB_SUBST
15799 else
15800   case `(set -o) 2>/dev/null` in #(
15801   *posix*) :
15802     set -o posix ;; #(
15803   *) :
15804      ;;
15805 esac
15806 fi
15807
15808
15809 as_nl='
15810 '
15811 export as_nl
15812 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15813 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15814 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15815 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15816 # Prefer a ksh shell builtin over an external printf program on Solaris,
15817 # but without wasting forks for bash or zsh.
15818 if test -z "$BASH_VERSION$ZSH_VERSION" \
15819     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15820   as_echo='print -r --'
15821   as_echo_n='print -rn --'
15822 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15823   as_echo='printf %s\n'
15824   as_echo_n='printf %s'
15825 else
15826   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15827     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15828     as_echo_n='/usr/ucb/echo -n'
15829   else
15830     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15831     as_echo_n_body='eval
15832       arg=$1;
15833       case $arg in #(
15834       *"$as_nl"*)
15835         expr "X$arg" : "X\\(.*\\)$as_nl";
15836         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15837       esac;
15838       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15839     '
15840     export as_echo_n_body
15841     as_echo_n='sh -c $as_echo_n_body as_echo'
15842   fi
15843   export as_echo_body
15844   as_echo='sh -c $as_echo_body as_echo'
15845 fi
15846
15847 # The user is always right.
15848 if test "${PATH_SEPARATOR+set}" != set; then
15849   PATH_SEPARATOR=:
15850   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15851     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15852       PATH_SEPARATOR=';'
15853   }
15854 fi
15855
15856
15857 # IFS
15858 # We need space, tab and new line, in precisely that order.  Quoting is
15859 # there to prevent editors from complaining about space-tab.
15860 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15861 # splitting by setting IFS to empty value.)
15862 IFS=" ""        $as_nl"
15863
15864 # Find who we are.  Look in the path if we contain no directory separator.
15865 as_myself=
15866 case $0 in #((
15867   *[\\/]* ) as_myself=$0 ;;
15868   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15869 for as_dir in $PATH
15870 do
15871   IFS=$as_save_IFS
15872   test -z "$as_dir" && as_dir=.
15873     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15874   done
15875 IFS=$as_save_IFS
15876
15877      ;;
15878 esac
15879 # We did not find ourselves, most probably we were run as `sh COMMAND'
15880 # in which case we are not to be found in the path.
15881 if test "x$as_myself" = x; then
15882   as_myself=$0
15883 fi
15884 if test ! -f "$as_myself"; then
15885   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15886   exit 1
15887 fi
15888
15889 # Unset variables that we do not need and which cause bugs (e.g. in
15890 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15891 # suppresses any "Segmentation fault" message there.  '((' could
15892 # trigger a bug in pdksh 5.2.14.
15893 for as_var in BASH_ENV ENV MAIL MAILPATH
15894 do eval test x\${$as_var+set} = xset \
15895   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15896 done
15897 PS1='$ '
15898 PS2='> '
15899 PS4='+ '
15900
15901 # NLS nuisances.
15902 LC_ALL=C
15903 export LC_ALL
15904 LANGUAGE=C
15905 export LANGUAGE
15906
15907 # CDPATH.
15908 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15909
15910
15911 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15912 # ----------------------------------------
15913 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15914 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15915 # script with STATUS, using 1 if that was 0.
15916 as_fn_error ()
15917 {
15918   as_status=$1; test $as_status -eq 0 && as_status=1
15919   if test "$4"; then
15920     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15921     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15922   fi
15923   $as_echo "$as_me: error: $2" >&2
15924   as_fn_exit $as_status
15925 } # as_fn_error
15926
15927
15928 # as_fn_set_status STATUS
15929 # -----------------------
15930 # Set $? to STATUS, without forking.
15931 as_fn_set_status ()
15932 {
15933   return $1
15934 } # as_fn_set_status
15935
15936 # as_fn_exit STATUS
15937 # -----------------
15938 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15939 as_fn_exit ()
15940 {
15941   set +e
15942   as_fn_set_status $1
15943   exit $1
15944 } # as_fn_exit
15945
15946 # as_fn_unset VAR
15947 # ---------------
15948 # Portably unset VAR.
15949 as_fn_unset ()
15950 {
15951   { eval $1=; unset $1;}
15952 }
15953 as_unset=as_fn_unset
15954 # as_fn_append VAR VALUE
15955 # ----------------------
15956 # Append the text in VALUE to the end of the definition contained in VAR. Take
15957 # advantage of any shell optimizations that allow amortized linear growth over
15958 # repeated appends, instead of the typical quadratic growth present in naive
15959 # implementations.
15960 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15961   eval 'as_fn_append ()
15962   {
15963     eval $1+=\$2
15964   }'
15965 else
15966   as_fn_append ()
15967   {
15968     eval $1=\$$1\$2
15969   }
15970 fi # as_fn_append
15971
15972 # as_fn_arith ARG...
15973 # ------------------
15974 # Perform arithmetic evaluation on the ARGs, and store the result in the
15975 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15976 # must be portable across $(()) and expr.
15977 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15978   eval 'as_fn_arith ()
15979   {
15980     as_val=$(( $* ))
15981   }'
15982 else
15983   as_fn_arith ()
15984   {
15985     as_val=`expr "$@" || test $? -eq 1`
15986   }
15987 fi # as_fn_arith
15988
15989
15990 if expr a : '\(a\)' >/dev/null 2>&1 &&
15991    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15992   as_expr=expr
15993 else
15994   as_expr=false
15995 fi
15996
15997 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15998   as_basename=basename
15999 else
16000   as_basename=false
16001 fi
16002
16003 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16004   as_dirname=dirname
16005 else
16006   as_dirname=false
16007 fi
16008
16009 as_me=`$as_basename -- "$0" ||
16010 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16011          X"$0" : 'X\(//\)$' \| \
16012          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16013 $as_echo X/"$0" |
16014     sed '/^.*\/\([^/][^/]*\)\/*$/{
16015             s//\1/
16016             q
16017           }
16018           /^X\/\(\/\/\)$/{
16019             s//\1/
16020             q
16021           }
16022           /^X\/\(\/\).*/{
16023             s//\1/
16024             q
16025           }
16026           s/.*/./; q'`
16027
16028 # Avoid depending upon Character Ranges.
16029 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16030 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16031 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16032 as_cr_digits='0123456789'
16033 as_cr_alnum=$as_cr_Letters$as_cr_digits
16034
16035 ECHO_C= ECHO_N= ECHO_T=
16036 case `echo -n x` in #(((((
16037 -n*)
16038   case `echo 'xy\c'` in
16039   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
16040   xy)  ECHO_C='\c';;
16041   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
16042        ECHO_T=' ';;
16043   esac;;
16044 *)
16045   ECHO_N='-n';;
16046 esac
16047
16048 rm -f conf$$ conf$$.exe conf$$.file
16049 if test -d conf$$.dir; then
16050   rm -f conf$$.dir/conf$$.file
16051 else
16052   rm -f conf$$.dir
16053   mkdir conf$$.dir 2>/dev/null
16054 fi
16055 if (echo >conf$$.file) 2>/dev/null; then
16056   if ln -s conf$$.file conf$$ 2>/dev/null; then
16057     as_ln_s='ln -s'
16058     # ... but there are two gotchas:
16059     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16060     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16061     # In both cases, we have to default to `cp -pR'.
16062     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16063       as_ln_s='cp -pR'
16064   elif ln conf$$.file conf$$ 2>/dev/null; then
16065     as_ln_s=ln
16066   else
16067     as_ln_s='cp -pR'
16068   fi
16069 else
16070   as_ln_s='cp -pR'
16071 fi
16072 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16073 rmdir conf$$.dir 2>/dev/null
16074
16075
16076 # as_fn_mkdir_p
16077 # -------------
16078 # Create "$as_dir" as a directory, including parents if necessary.
16079 as_fn_mkdir_p ()
16080 {
16081
16082   case $as_dir in #(
16083   -*) as_dir=./$as_dir;;
16084   esac
16085   test -d "$as_dir" || eval $as_mkdir_p || {
16086     as_dirs=
16087     while :; do
16088       case $as_dir in #(
16089       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16090       *) as_qdir=$as_dir;;
16091       esac
16092       as_dirs="'$as_qdir' $as_dirs"
16093       as_dir=`$as_dirname -- "$as_dir" ||
16094 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16095          X"$as_dir" : 'X\(//\)[^/]' \| \
16096          X"$as_dir" : 'X\(//\)$' \| \
16097          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16098 $as_echo X"$as_dir" |
16099     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16100             s//\1/
16101             q
16102           }
16103           /^X\(\/\/\)[^/].*/{
16104             s//\1/
16105             q
16106           }
16107           /^X\(\/\/\)$/{
16108             s//\1/
16109             q
16110           }
16111           /^X\(\/\).*/{
16112             s//\1/
16113             q
16114           }
16115           s/.*/./; q'`
16116       test -d "$as_dir" && break
16117     done
16118     test -z "$as_dirs" || eval "mkdir $as_dirs"
16119   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16120
16121
16122 } # as_fn_mkdir_p
16123 if mkdir -p . 2>/dev/null; then
16124   as_mkdir_p='mkdir -p "$as_dir"'
16125 else
16126   test -d ./-p && rmdir ./-p
16127   as_mkdir_p=false
16128 fi
16129
16130
16131 # as_fn_executable_p FILE
16132 # -----------------------
16133 # Test if FILE is an executable regular file.
16134 as_fn_executable_p ()
16135 {
16136   test -f "$1" && test -x "$1"
16137 } # as_fn_executable_p
16138 as_test_x='test -x'
16139 as_executable_p=as_fn_executable_p
16140
16141 # Sed expression to map a string onto a valid CPP name.
16142 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16143
16144 # Sed expression to map a string onto a valid variable name.
16145 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16146
16147
16148 exec 6>&1
16149 ## ----------------------------------- ##
16150 ## Main body of $CONFIG_STATUS script. ##
16151 ## ----------------------------------- ##
16152 _ASEOF
16153 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16154
16155 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16156 # Save the log message, to keep $0 and so on meaningful, and to
16157 # report actual input values of CONFIG_FILES etc. instead of their
16158 # values after options handling.
16159 ac_log="
16160 This file was extended by Wine $as_me 1.4.1, which was
16161 generated by GNU Autoconf 2.69.  Invocation command line was
16162
16163   CONFIG_FILES    = $CONFIG_FILES
16164   CONFIG_HEADERS  = $CONFIG_HEADERS
16165   CONFIG_LINKS    = $CONFIG_LINKS
16166   CONFIG_COMMANDS = $CONFIG_COMMANDS
16167   $ $0 $@
16168
16169 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16170 "
16171
16172 _ACEOF
16173
16174 case $ac_config_files in *"
16175 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16176 esac
16177
16178 case $ac_config_headers in *"
16179 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16180 esac
16181
16182
16183 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16184 # Files that config.status was made for.
16185 config_files="$ac_config_files"
16186 config_headers="$ac_config_headers"
16187 config_links="$ac_config_links"
16188 config_commands="$ac_config_commands"
16189
16190 _ACEOF
16191
16192 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16193 ac_cs_usage="\
16194 \`$as_me' instantiates files and other configuration actions
16195 from templates according to the current configuration.  Unless the files
16196 and actions are specified as TAGs, all are instantiated by default.
16197
16198 Usage: $0 [OPTION]... [TAG]...
16199
16200   -h, --help       print this help, then exit
16201   -V, --version    print version number and configuration settings, then exit
16202       --config     print configuration, then exit
16203   -q, --quiet, --silent
16204                    do not print progress messages
16205   -d, --debug      don't remove temporary files
16206       --recheck    update $as_me by reconfiguring in the same conditions
16207       --file=FILE[:TEMPLATE]
16208                    instantiate the configuration file FILE
16209       --header=FILE[:TEMPLATE]
16210                    instantiate the configuration header FILE
16211
16212 Configuration files:
16213 $config_files
16214
16215 Configuration headers:
16216 $config_headers
16217
16218 Configuration links:
16219 $config_links
16220
16221 Configuration commands:
16222 $config_commands
16223
16224 Report bugs to <wine-devel@winehq.org>.
16225 Wine home page: <http://www.winehq.org>."
16226
16227 _ACEOF
16228 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16229 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16230 ac_cs_version="\\
16231 Wine config.status 1.4.1
16232 configured by $0, generated by GNU Autoconf 2.69,
16233   with options \\"\$ac_cs_config\\"
16234
16235 Copyright (C) 2012 Free Software Foundation, Inc.
16236 This config.status script is free software; the Free Software Foundation
16237 gives unlimited permission to copy, distribute and modify it."
16238
16239 ac_pwd='$ac_pwd'
16240 srcdir='$srcdir'
16241 INSTALL='$INSTALL'
16242 test -n "\$AWK" || AWK=awk
16243 _ACEOF
16244
16245 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16246 # The default lists apply if the user does not specify any file.
16247 ac_need_defaults=:
16248 while test $# != 0
16249 do
16250   case $1 in
16251   --*=?*)
16252     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16253     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16254     ac_shift=:
16255     ;;
16256   --*=)
16257     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16258     ac_optarg=
16259     ac_shift=:
16260     ;;
16261   *)
16262     ac_option=$1
16263     ac_optarg=$2
16264     ac_shift=shift
16265     ;;
16266   esac
16267
16268   case $ac_option in
16269   # Handling of the options.
16270   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16271     ac_cs_recheck=: ;;
16272   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16273     $as_echo "$ac_cs_version"; exit ;;
16274   --config | --confi | --conf | --con | --co | --c )
16275     $as_echo "$ac_cs_config"; exit ;;
16276   --debug | --debu | --deb | --de | --d | -d )
16277     debug=: ;;
16278   --file | --fil | --fi | --f )
16279     $ac_shift
16280     case $ac_optarg in
16281     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16282     '') as_fn_error $? "missing file argument" ;;
16283     esac
16284     as_fn_append CONFIG_FILES " '$ac_optarg'"
16285     ac_need_defaults=false;;
16286   --header | --heade | --head | --hea )
16287     $ac_shift
16288     case $ac_optarg in
16289     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16290     esac
16291     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16292     ac_need_defaults=false;;
16293   --he | --h)
16294     # Conflict between --help and --header
16295     as_fn_error $? "ambiguous option: \`$1'
16296 Try \`$0 --help' for more information.";;
16297   --help | --hel | -h )
16298     $as_echo "$ac_cs_usage"; exit ;;
16299   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16300   | -silent | --silent | --silen | --sile | --sil | --si | --s)
16301     ac_cs_silent=: ;;
16302
16303   # This is an error.
16304   -*) as_fn_error $? "unrecognized option: \`$1'
16305 Try \`$0 --help' for more information." ;;
16306
16307   *) as_fn_append ac_config_targets " $1"
16308      ac_need_defaults=false ;;
16309
16310   esac
16311   shift
16312 done
16313
16314 ac_configure_extra_args=
16315
16316 if $ac_cs_silent; then
16317   exec 6>/dev/null
16318   ac_configure_extra_args="$ac_configure_extra_args --silent"
16319 fi
16320
16321 _ACEOF
16322 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16323 if \$ac_cs_recheck; then
16324   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16325   shift
16326   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16327   CONFIG_SHELL='$SHELL'
16328   export CONFIG_SHELL
16329   exec "\$@"
16330 fi
16331
16332 _ACEOF
16333 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16334 exec 5>>config.log
16335 {
16336   echo
16337   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16338 ## Running $as_me. ##
16339 _ASBOX
16340   $as_echo "$ac_log"
16341 } >&5
16342
16343 _ACEOF
16344 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16345 #
16346 # INIT-COMMANDS
16347 #
16348 wine_fn_output_makefile ()
16349 {
16350     cat Make.tmp - <<\_WINE_EOF >\$tmp/makefile && mv -f \$tmp/makefile \$1 && rm -f Make.tmp && return
16351 $ALL_MAKEFILE_DEPENDS
16352 _WINE_EOF
16353     as_fn_error $? "could not create Makefile" "$LINENO" 5
16354 }
16355
16356 _ACEOF
16357
16358 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16359
16360 # Handling of arguments.
16361 for ac_config_target in $ac_config_targets
16362 do
16363   case $ac_config_target in
16364     "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
16365     "include/stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/stamp-h" ;;
16366     "dlls/shell32/AUTHORS") CONFIG_LINKS="$CONFIG_LINKS dlls/shell32/AUTHORS:AUTHORS" ;;
16367     "dlls/wineps.drv/generic.ppd") CONFIG_LINKS="$CONFIG_LINKS dlls/wineps.drv/generic.ppd:dlls/wineps.drv/generic.ppd" ;;
16368     "fonts/marlett.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/marlett.ttf:fonts/marlett.ttf" ;;
16369     "fonts/symbol.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/symbol.ttf:fonts/symbol.ttf" ;;
16370     "fonts/tahoma.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahoma.ttf:fonts/tahoma.ttf" ;;
16371     "fonts/tahomabd.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahomabd.ttf:fonts/tahomabd.ttf" ;;
16372     "po/LINGUAS") CONFIG_LINKS="$CONFIG_LINKS po/LINGUAS:po/LINGUAS" ;;
16373     "tools/l_intl.nls") CONFIG_LINKS="$CONFIG_LINKS tools/l_intl.nls:tools/l_intl.nls" ;;
16374     "wine") CONFIG_LINKS="$CONFIG_LINKS wine:tools/winewrapper" ;;
16375     "wine64") CONFIG_LINKS="$CONFIG_LINKS wine64:tools/winewrapper" ;;
16376     "dlls/gdi32/dibdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/dibdrv" ;;
16377     "dlls/gdi32/enhmfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/enhmfdrv" ;;
16378     "dlls/gdi32/mfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/mfdrv" ;;
16379     "dlls/kernel32/nls") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel32/nls" ;;
16380     "dlls/user32/resources") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user32/resources" ;;
16381     "dlls/wineps.drv/data") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps.drv/data" ;;
16382     "include/wine") CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
16383     "Make.rules") CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
16384     "Maketest.rules") CONFIG_FILES="$CONFIG_FILES Maketest.rules" ;;
16385     "dlls/Makedll.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
16386     "dlls/Makeimplib.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makeimplib.rules" ;;
16387     "programs/Makeprog.rules") CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
16388     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
16389     "Make.tmp") CONFIG_FILES="$CONFIG_FILES Make.tmp:Make.vars.in:Makefile.in" ;;
16390
16391   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16392   esac
16393 done
16394
16395
16396 # If the user did not use the arguments to specify the items to instantiate,
16397 # then the envvar interface is used.  Set only those that are not.
16398 # We use the long form for the default assignment because of an extremely
16399 # bizarre bug on SunOS 4.1.3.
16400 if $ac_need_defaults; then
16401   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16402   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16403   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
16404   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16405 fi
16406
16407 # Have a temporary directory for convenience.  Make it in the build tree
16408 # simply because there is no reason against having it here, and in addition,
16409 # creating and moving files from /tmp can sometimes cause problems.
16410 # Hook for its removal unless debugging.
16411 # Note that there is a small window in which the directory will not be cleaned:
16412 # after its creation but before its name has been assigned to `$tmp'.
16413 $debug ||
16414 {
16415   tmp= ac_tmp=
16416   trap 'exit_status=$?
16417   : "${ac_tmp:=$tmp}"
16418   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16419 ' 0
16420   trap 'as_fn_exit 1' 1 2 13 15
16421 }
16422 # Create a (secure) tmp directory for tmp files.
16423
16424 {
16425   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16426   test -d "$tmp"
16427 }  ||
16428 {
16429   tmp=./conf$$-$RANDOM
16430   (umask 077 && mkdir "$tmp")
16431 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16432 ac_tmp=$tmp
16433
16434 # Set up the scripts for CONFIG_FILES section.
16435 # No need to generate them if there are no CONFIG_FILES.
16436 # This happens for instance with `./config.status config.h'.
16437 if test -n "$CONFIG_FILES"; then
16438
16439 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16440   ac_cs_awk_getline=:
16441   ac_cs_awk_pipe_init=
16442   ac_cs_awk_read_file='
16443       while ((getline aline < (F[key])) > 0)
16444         print(aline)
16445       close(F[key])'
16446   ac_cs_awk_pipe_fini=
16447 else
16448   ac_cs_awk_getline=false
16449   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16450   ac_cs_awk_read_file='
16451       print "|#_!!_#|"
16452       print "cat " F[key] " &&"
16453       '$ac_cs_awk_pipe_init
16454   # The final `:' finishes the AND list.
16455   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16456 fi
16457 ac_cr=`echo X | tr X '\015'`
16458 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16459 # But we know of no other shell where ac_cr would be empty at this
16460 # point, so we can use a bashism as a fallback.
16461 if test "x$ac_cr" = x; then
16462   eval ac_cr=\$\'\\r\'
16463 fi
16464 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16465 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16466   ac_cs_awk_cr='\\r'
16467 else
16468   ac_cs_awk_cr=$ac_cr
16469 fi
16470
16471 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16472 _ACEOF
16473
16474 # Create commands to substitute file output variables.
16475 {
16476   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16477   echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
16478   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16479   echo "_ACAWK" &&
16480   echo "_ACEOF"
16481 } >conf$$files.sh &&
16482 . ./conf$$files.sh ||
16483   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16484 rm -f conf$$files.sh
16485
16486 {
16487   echo "cat >conf$$subs.awk <<_ACEOF" &&
16488   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16489   echo "_ACEOF"
16490 } >conf$$subs.sh ||
16491   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16492 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16493 ac_delim='%!_!# '
16494 for ac_last_try in false false false false false :; do
16495   . ./conf$$subs.sh ||
16496     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16497
16498   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16499   if test $ac_delim_n = $ac_delim_num; then
16500     break
16501   elif $ac_last_try; then
16502     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16503   else
16504     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16505   fi
16506 done
16507 rm -f conf$$subs.sh
16508
16509 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16510 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16511 _ACEOF
16512 sed -n '
16513 h
16514 s/^/S["/; s/!.*/"]=/
16515 p
16516 g
16517 s/^[^!]*!//
16518 :repl
16519 t repl
16520 s/'"$ac_delim"'$//
16521 t delim
16522 :nl
16523 h
16524 s/\(.\{148\}\)..*/\1/
16525 t more1
16526 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16527 p
16528 n
16529 b repl
16530 :more1
16531 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16532 p
16533 g
16534 s/.\{148\}//
16535 t nl
16536 :delim
16537 h
16538 s/\(.\{148\}\)..*/\1/
16539 t more2
16540 s/["\\]/\\&/g; s/^/"/; s/$/"/
16541 p
16542 b
16543 :more2
16544 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16545 p
16546 g
16547 s/.\{148\}//
16548 t delim
16549 ' <conf$$subs.awk | sed '
16550 /^[^""]/{
16551   N
16552   s/\n//
16553 }
16554 ' >>$CONFIG_STATUS || ac_write_fail=1
16555 rm -f conf$$subs.awk
16556 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16557 _ACAWK
16558 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16559   for (key in S) S_is_set[key] = 1
16560   FS = "\a"
16561   \$ac_cs_awk_pipe_init
16562 }
16563 {
16564   line = $ 0
16565   nfields = split(line, field, "@")
16566   substed = 0
16567   len = length(field[1])
16568   for (i = 2; i < nfields; i++) {
16569     key = field[i]
16570     keylen = length(key)
16571     if (S_is_set[key]) {
16572       value = S[key]
16573       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16574       len += length(value) + length(field[++i])
16575       substed = 1
16576     } else
16577       len += 1 + keylen
16578   }
16579   if (nfields == 3 && !substed) {
16580     key = field[2]
16581     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
16582       \$ac_cs_awk_read_file
16583       next
16584     }
16585   }
16586   print line
16587 }
16588 \$ac_cs_awk_pipe_fini
16589 _ACAWK
16590 _ACEOF
16591 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16592 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16593   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16594 else
16595   cat
16596 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16597   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16598 _ACEOF
16599
16600 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16601 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16602 # trailing colons and then remove the whole line if VPATH becomes empty
16603 # (actually we leave an empty line to preserve line numbers).
16604 if test "x$srcdir" = x.; then
16605   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
16606 h
16607 s///
16608 s/^/:/
16609 s/[      ]*$/:/
16610 s/:\$(srcdir):/:/g
16611 s/:\${srcdir}:/:/g
16612 s/:@srcdir@:/:/g
16613 s/^:*//
16614 s/:*$//
16615 x
16616 s/\(=[   ]*\).*/\1/
16617 G
16618 s/\n//
16619 s/^[^=]*=[       ]*$//
16620 }'
16621 fi
16622
16623 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16624 fi # test -n "$CONFIG_FILES"
16625
16626 # Set up the scripts for CONFIG_HEADERS section.
16627 # No need to generate them if there are no CONFIG_HEADERS.
16628 # This happens for instance with `./config.status Makefile'.
16629 if test -n "$CONFIG_HEADERS"; then
16630 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16631 BEGIN {
16632 _ACEOF
16633
16634 # Transform confdefs.h into an awk script `defines.awk', embedded as
16635 # here-document in config.status, that substitutes the proper values into
16636 # config.h.in to produce config.h.
16637
16638 # Create a delimiter string that does not exist in confdefs.h, to ease
16639 # handling of long lines.
16640 ac_delim='%!_!# '
16641 for ac_last_try in false false :; do
16642   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16643   if test -z "$ac_tt"; then
16644     break
16645   elif $ac_last_try; then
16646     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16647   else
16648     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16649   fi
16650 done
16651
16652 # For the awk script, D is an array of macro values keyed by name,
16653 # likewise P contains macro parameters if any.  Preserve backslash
16654 # newline sequences.
16655
16656 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16657 sed -n '
16658 s/.\{148\}/&'"$ac_delim"'/g
16659 t rset
16660 :rset
16661 s/^[     ]*#[    ]*define[       ][      ]*/ /
16662 t def
16663 d
16664 :def
16665 s/\\$//
16666 t bsnl
16667 s/["\\]/\\&/g
16668 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16669 D["\1"]=" \3"/p
16670 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
16671 d
16672 :bsnl
16673 s/["\\]/\\&/g
16674 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16675 D["\1"]=" \3\\\\\\n"\\/p
16676 t cont
16677 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16678 t cont
16679 d
16680 :cont
16681 n
16682 s/.\{148\}/&'"$ac_delim"'/g
16683 t clear
16684 :clear
16685 s/\\$//
16686 t bsnlc
16687 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16688 d
16689 :bsnlc
16690 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16691 b cont
16692 ' <confdefs.h | sed '
16693 s/'"$ac_delim"'/"\\\
16694 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16695
16696 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16697   for (key in D) D_is_set[key] = 1
16698   FS = "\a"
16699 }
16700 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16701   line = \$ 0
16702   split(line, arg, " ")
16703   if (arg[1] == "#") {
16704     defundef = arg[2]
16705     mac1 = arg[3]
16706   } else {
16707     defundef = substr(arg[1], 2)
16708     mac1 = arg[2]
16709   }
16710   split(mac1, mac2, "(") #)
16711   macro = mac2[1]
16712   prefix = substr(line, 1, index(line, defundef) - 1)
16713   if (D_is_set[macro]) {
16714     # Preserve the white space surrounding the "#".
16715     print prefix "define", macro P[macro] D[macro]
16716     next
16717   } else {
16718     # Replace #undef with comments.  This is necessary, for example,
16719     # in the case of _POSIX_SOURCE, which is predefined and required
16720     # on some systems where configure will not decide to define it.
16721     if (defundef == "undef") {
16722       print "/*", prefix defundef, macro, "*/"
16723       next
16724     }
16725   }
16726 }
16727 { print }
16728 _ACAWK
16729 _ACEOF
16730 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16731   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16732 fi # test -n "$CONFIG_HEADERS"
16733
16734
16735 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
16736 shift
16737 for ac_tag
16738 do
16739   case $ac_tag in
16740   :[FHLC]) ac_mode=$ac_tag; continue;;
16741   esac
16742   case $ac_mode$ac_tag in
16743   :[FHL]*:*);;
16744   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16745   :[FH]-) ac_tag=-:-;;
16746   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16747   esac
16748   ac_save_IFS=$IFS
16749   IFS=:
16750   set x $ac_tag
16751   IFS=$ac_save_IFS
16752   shift
16753   ac_file=$1
16754   shift
16755
16756   case $ac_mode in
16757   :L) ac_source=$1;;
16758   :[FH])
16759     ac_file_inputs=
16760     for ac_f
16761     do
16762       case $ac_f in
16763       -) ac_f="$ac_tmp/stdin";;
16764       *) # Look for the file first in the build tree, then in the source tree
16765          # (if the path is not absolute).  The absolute path cannot be DOS-style,
16766          # because $ac_f cannot contain `:'.
16767          test -f "$ac_f" ||
16768            case $ac_f in
16769            [\\/$]*) false;;
16770            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16771            esac ||
16772            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16773       esac
16774       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16775       as_fn_append ac_file_inputs " '$ac_f'"
16776     done
16777
16778     # Let's still pretend it is `configure' which instantiates (i.e., don't
16779     # use $as_me), people would be surprised to read:
16780     #    /* config.h.  Generated by config.status.  */
16781     configure_input='Generated from '`
16782           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16783         `' by configure.'
16784     if test x"$ac_file" != x-; then
16785       configure_input="$ac_file.  $configure_input"
16786       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16787 $as_echo "$as_me: creating $ac_file" >&6;}
16788     fi
16789     # Neutralize special characters interpreted by sed in replacement strings.
16790     case $configure_input in #(
16791     *\&* | *\|* | *\\* )
16792        ac_sed_conf_input=`$as_echo "$configure_input" |
16793        sed 's/[\\\\&|]/\\\\&/g'`;; #(
16794     *) ac_sed_conf_input=$configure_input;;
16795     esac
16796
16797     case $ac_tag in
16798     *:-:* | *:-) cat >"$ac_tmp/stdin" \
16799       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16800     esac
16801     ;;
16802   esac
16803
16804   ac_dir=`$as_dirname -- "$ac_file" ||
16805 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16806          X"$ac_file" : 'X\(//\)[^/]' \| \
16807          X"$ac_file" : 'X\(//\)$' \| \
16808          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16809 $as_echo X"$ac_file" |
16810     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16811             s//\1/
16812             q
16813           }
16814           /^X\(\/\/\)[^/].*/{
16815             s//\1/
16816             q
16817           }
16818           /^X\(\/\/\)$/{
16819             s//\1/
16820             q
16821           }
16822           /^X\(\/\).*/{
16823             s//\1/
16824             q
16825           }
16826           s/.*/./; q'`
16827   as_dir="$ac_dir"; as_fn_mkdir_p
16828   ac_builddir=.
16829
16830 case "$ac_dir" in
16831 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16832 *)
16833   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16834   # A ".." for each directory in $ac_dir_suffix.
16835   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16836   case $ac_top_builddir_sub in
16837   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16838   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16839   esac ;;
16840 esac
16841 ac_abs_top_builddir=$ac_pwd
16842 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16843 # for backward compatibility:
16844 ac_top_builddir=$ac_top_build_prefix
16845
16846 case $srcdir in
16847   .)  # We are building in place.
16848     ac_srcdir=.
16849     ac_top_srcdir=$ac_top_builddir_sub
16850     ac_abs_top_srcdir=$ac_pwd ;;
16851   [\\/]* | ?:[\\/]* )  # Absolute name.
16852     ac_srcdir=$srcdir$ac_dir_suffix;
16853     ac_top_srcdir=$srcdir
16854     ac_abs_top_srcdir=$srcdir ;;
16855   *) # Relative name.
16856     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16857     ac_top_srcdir=$ac_top_build_prefix$srcdir
16858     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16859 esac
16860 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16861
16862
16863   case $ac_mode in
16864   :F)
16865   #
16866   # CONFIG_FILE
16867   #
16868
16869   case $INSTALL in
16870   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16871   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16872   esac
16873 _ACEOF
16874
16875 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16876 # If the template does not know about datarootdir, expand it.
16877 # FIXME: This hack should be removed a few years after 2.60.
16878 ac_datarootdir_hack=; ac_datarootdir_seen=
16879 ac_sed_dataroot='
16880 /datarootdir/ {
16881   p
16882   q
16883 }
16884 /@datadir@/p
16885 /@docdir@/p
16886 /@infodir@/p
16887 /@localedir@/p
16888 /@mandir@/p'
16889 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16890 *datarootdir*) ac_datarootdir_seen=yes;;
16891 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16892   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16893 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16894 _ACEOF
16895 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16896   ac_datarootdir_hack='
16897   s&@datadir@&$datadir&g
16898   s&@docdir@&$docdir&g
16899   s&@infodir@&$infodir&g
16900   s&@localedir@&$localedir&g
16901   s&@mandir@&$mandir&g
16902   s&\\\${datarootdir}&$datarootdir&g' ;;
16903 esac
16904 _ACEOF
16905
16906 # Neutralize VPATH when `$srcdir' = `.'.
16907 # Shell code in configure.ac might set extrasub.
16908 # FIXME: do we really want to maintain this feature?
16909 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16910 ac_sed_extra="$ac_vpsub
16911 $extrasub
16912 _ACEOF
16913 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16914 :t
16915 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16916 s|@configure_input@|$ac_sed_conf_input|;t t
16917 s&@top_builddir@&$ac_top_builddir_sub&;t t
16918 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16919 s&@srcdir@&$ac_srcdir&;t t
16920 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16921 s&@top_srcdir@&$ac_top_srcdir&;t t
16922 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16923 s&@builddir@&$ac_builddir&;t t
16924 s&@abs_builddir@&$ac_abs_builddir&;t t
16925 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16926 s&@INSTALL@&$ac_INSTALL&;t t
16927 $ac_datarootdir_hack
16928 "
16929 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16930 if $ac_cs_awk_getline; then
16931   $AWK -f "$ac_tmp/subs.awk"
16932 else
16933   $AWK -f "$ac_tmp/subs.awk" | $SHELL
16934 fi \
16935   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16936
16937 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16938   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16939   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
16940       "$ac_tmp/out"`; test -z "$ac_out"; } &&
16941   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16942 which seems to be undefined.  Please make sure it is defined" >&5
16943 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16944 which seems to be undefined.  Please make sure it is defined" >&2;}
16945
16946   rm -f "$ac_tmp/stdin"
16947   case $ac_file in
16948   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16949   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16950   esac \
16951   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16952  ;;
16953   :H)
16954   #
16955   # CONFIG_HEADER
16956   #
16957   if test x"$ac_file" != x-; then
16958     {
16959       $as_echo "/* $configure_input  */" \
16960       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16961     } >"$ac_tmp/config.h" \
16962       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16963     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16964       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16965 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16966     else
16967       rm -f "$ac_file"
16968       mv "$ac_tmp/config.h" "$ac_file" \
16969         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16970     fi
16971   else
16972     $as_echo "/* $configure_input  */" \
16973       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16974       || as_fn_error $? "could not create -" "$LINENO" 5
16975   fi
16976  ;;
16977   :L)
16978   #
16979   # CONFIG_LINK
16980   #
16981
16982   if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
16983     :
16984   else
16985     # Prefer the file from the source tree if names are identical.
16986     if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
16987       ac_source=$srcdir/$ac_source
16988     fi
16989
16990     { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
16991 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
16992
16993     if test ! -r "$ac_source"; then
16994       as_fn_error $? "$ac_source: file not found" "$LINENO" 5
16995     fi
16996     rm -f "$ac_file"
16997
16998     # Try a relative symlink, then a hard link, then a copy.
16999     case $ac_source in
17000     [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
17001         *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
17002     esac
17003     ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
17004       ln "$ac_source" "$ac_file" 2>/dev/null ||
17005       cp -p "$ac_source" "$ac_file" ||
17006       as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
17007   fi
17008  ;;
17009   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17010 $as_echo "$as_me: executing $ac_file commands" >&6;}
17011  ;;
17012   esac
17013
17014
17015   case $ac_file$ac_mode in
17016     "include/stamp-h":C) echo timestamp > include/stamp-h ;;
17017     "dlls/gdi32/dibdrv":C) test -d "dlls/gdi32/dibdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/dibdrv" >&5
17018 $as_echo "$as_me: creating dlls/gdi32/dibdrv" >&6;}; as_dir="dlls/gdi32/dibdrv"; as_fn_mkdir_p; } ;;
17019     "dlls/gdi32/enhmfdrv":C) test -d "dlls/gdi32/enhmfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/enhmfdrv" >&5
17020 $as_echo "$as_me: creating dlls/gdi32/enhmfdrv" >&6;}; as_dir="dlls/gdi32/enhmfdrv"; as_fn_mkdir_p; } ;;
17021     "dlls/gdi32/mfdrv":C) test -d "dlls/gdi32/mfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/mfdrv" >&5
17022 $as_echo "$as_me: creating dlls/gdi32/mfdrv" >&6;}; as_dir="dlls/gdi32/mfdrv"; as_fn_mkdir_p; } ;;
17023     "dlls/kernel32/nls":C) test -d "dlls/kernel32/nls" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/kernel32/nls" >&5
17024 $as_echo "$as_me: creating dlls/kernel32/nls" >&6;}; as_dir="dlls/kernel32/nls"; as_fn_mkdir_p; } ;;
17025     "dlls/user32/resources":C) test -d "dlls/user32/resources" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/user32/resources" >&5
17026 $as_echo "$as_me: creating dlls/user32/resources" >&6;}; as_dir="dlls/user32/resources"; as_fn_mkdir_p; } ;;
17027     "dlls/wineps.drv/data":C) test -d "dlls/wineps.drv/data" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/wineps.drv/data" >&5
17028 $as_echo "$as_me: creating dlls/wineps.drv/data" >&6;}; as_dir="dlls/wineps.drv/data"; as_fn_mkdir_p; } ;;
17029     "include/wine":C) test -d "include/wine" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating include/wine" >&5
17030 $as_echo "$as_me: creating include/wine" >&6;}; as_dir="include/wine"; as_fn_mkdir_p; } ;;
17031     "Makefile":C) wine_fn_output_makefile Makefile ;;
17032
17033   esac
17034 done # for ac_tag
17035
17036
17037 as_fn_exit 0
17038 _ACEOF
17039 ac_clean_files=$ac_clean_files_save
17040
17041 test $ac_write_fail = 0 ||
17042   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17043
17044
17045 # configure is writing to config.log, and then calls config.status.
17046 # config.status does its own redirection, appending to config.log.
17047 # Unfortunately, on DOS this fails, as config.log is still kept open
17048 # by configure, so config.status won't be able to write to it; its
17049 # output is simply discarded.  So we exec the FD to /dev/null,
17050 # effectively closing config.log, so it can be properly (re)opened and
17051 # appended to by config.status.  When coming back to configure, we
17052 # need to make the FD available again.
17053 if test "$no_create" != yes; then
17054   ac_cs_success=:
17055   ac_config_status_args=
17056   test "$silent" = yes &&
17057     ac_config_status_args="$ac_config_status_args --quiet"
17058   exec 5>/dev/null
17059   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17060   exec 5>>config.log
17061   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17062   # would make configure fail if this is the last instruction.
17063   $ac_cs_success || as_fn_exit 1
17064 fi
17065 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17066   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17067 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17068 fi
17069
17070
17071 if test "$no_create" = "yes"
17072 then
17073   exit 0
17074 fi
17075
17076 ac_save_IFS="$IFS"
17077 if test "x$wine_notices != "x; then
17078     echo >&6
17079     IFS="|"
17080     for msg in $wine_notices; do
17081         IFS="$ac_save_IFS"
17082         if test -n "$msg"; then
17083             { $as_echo "$as_me:${as_lineno-$LINENO}: $msg" >&5
17084 $as_echo "$as_me: $msg" >&6;}
17085         fi
17086     done
17087 fi
17088 IFS="|"
17089 for msg in $wine_warnings; do
17090     IFS="$ac_save_IFS"
17091     if test -n "$msg"; then
17092         echo >&2
17093         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $msg" >&5
17094 $as_echo "$as_me: WARNING: $msg" >&2;}
17095     fi
17096 done
17097 IFS="$ac_save_IFS"
17098
17099 echo "
17100 $as_me: Finished.  Do '${ac_make}' to compile Wine.
17101 " >&6
17102