riched20: Move the white space painting operations to a common function.
[wine] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for Wine 1.5.23.
4 #
5 # Report bugs to <wine-devel@winehq.org>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138   # into an infinite loop, continuously re-executing ourselves.
139   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140     _as_can_reexec=no; export _as_can_reexec;
141     # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149   *v*x* | *x*v* ) as_opts=-vx ;;
150   *v* ) as_opts=-v ;;
151   *x* ) as_opts=-x ;;
152   * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159   fi
160   # We don't want this to propagate to other subprocesses.
161           { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164   emulate sh
165   NULLCMD=:
166   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167   # is contrary to our usage.  Disable this feature.
168   alias -g '\${1+\"\$@\"}'='\"\$@\"'
169   setopt NO_GLOB_SUBST
170 else
171   case \`(set -o) 2>/dev/null\` in #(
172   *posix*) :
173     set -o posix ;; #(
174   *) :
175      ;;
176 esac
177 fi
178 "
179   as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193   exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202   if (eval "$as_required") 2>/dev/null; then :
203   as_have_required=yes
204 else
205   as_have_required=no
206 fi
207   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209 else
210   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211 as_found=false
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 do
214   IFS=$as_save_IFS
215   test -z "$as_dir" && as_dir=.
216   as_found=:
217   case $as_dir in #(
218          /*)
219            for as_base in sh bash ksh sh5; do
220              # Try only shells that exist, to save several forks.
221              as_shell=$as_dir/$as_base
222              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224   CONFIG_SHELL=$as_shell as_have_required=yes
225                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226   break 2
227 fi
228 fi
229            done;;
230        esac
231   as_found=false
232 done
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235   CONFIG_SHELL=$SHELL as_have_required=yes
236 fi; }
237 IFS=$as_save_IFS
238
239
240       if test "x$CONFIG_SHELL" != x; then :
241   export CONFIG_SHELL
242              # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250   *v*x* | *x*v* ) as_opts=-vx ;;
251   *v* ) as_opts=-v ;;
252   *x* ) as_opts=-x ;;
253   * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
260 fi
261
262     if test x$as_have_required = xno; then :
263   $as_echo "$0: This script requires a shell more modern than all"
264   $as_echo "$0: the shells that I found on your system."
265   if test x${ZSH_VERSION+set} = xset ; then
266     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268   else
269     $as_echo "$0: Please tell bug-autoconf@gnu.org and
270 $0: wine-devel@winehq.org about your system, including any
271 $0: error possibly output before this message. Then install
272 $0: a modern shell, or manually run the script under such a
273 $0: shell if you do have one."
274   fi
275   exit 1
276 fi
277 fi
278 fi
279 SHELL=${CONFIG_SHELL-/bin/sh}
280 export SHELL
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE= GREP_OPTIONS=
283 unset CLICOLOR_FORCE GREP_OPTIONS
284
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
288 # as_fn_unset VAR
289 # ---------------
290 # Portably unset VAR.
291 as_fn_unset ()
292 {
293   { eval $1=; unset $1;}
294 }
295 as_unset=as_fn_unset
296
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
300 as_fn_set_status ()
301 {
302   return $1
303 } # as_fn_set_status
304
305 # as_fn_exit STATUS
306 # -----------------
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308 as_fn_exit ()
309 {
310   set +e
311   as_fn_set_status $1
312   exit $1
313 } # as_fn_exit
314
315 # as_fn_mkdir_p
316 # -------------
317 # Create "$as_dir" as a directory, including parents if necessary.
318 as_fn_mkdir_p ()
319 {
320
321   case $as_dir in #(
322   -*) as_dir=./$as_dir;;
323   esac
324   test -d "$as_dir" || eval $as_mkdir_p || {
325     as_dirs=
326     while :; do
327       case $as_dir in #(
328       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329       *) as_qdir=$as_dir;;
330       esac
331       as_dirs="'$as_qdir' $as_dirs"
332       as_dir=`$as_dirname -- "$as_dir" ||
333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334          X"$as_dir" : 'X\(//\)[^/]' \| \
335          X"$as_dir" : 'X\(//\)$' \| \
336          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337 $as_echo X"$as_dir" |
338     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339             s//\1/
340             q
341           }
342           /^X\(\/\/\)[^/].*/{
343             s//\1/
344             q
345           }
346           /^X\(\/\/\)$/{
347             s//\1/
348             q
349           }
350           /^X\(\/\).*/{
351             s//\1/
352             q
353           }
354           s/.*/./; q'`
355       test -d "$as_dir" && break
356     done
357     test -z "$as_dirs" || eval "mkdir $as_dirs"
358   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
359
360
361 } # as_fn_mkdir_p
362
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p ()
367 {
368   test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
370 # as_fn_append VAR VALUE
371 # ----------------------
372 # Append the text in VALUE to the end of the definition contained in VAR. Take
373 # advantage of any shell optimizations that allow amortized linear growth over
374 # repeated appends, instead of the typical quadratic growth present in naive
375 # implementations.
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377   eval 'as_fn_append ()
378   {
379     eval $1+=\$2
380   }'
381 else
382   as_fn_append ()
383   {
384     eval $1=\$$1\$2
385   }
386 fi # as_fn_append
387
388 # as_fn_arith ARG...
389 # ------------------
390 # Perform arithmetic evaluation on the ARGs, and store the result in the
391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
392 # must be portable across $(()) and expr.
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394   eval 'as_fn_arith ()
395   {
396     as_val=$(( $* ))
397   }'
398 else
399   as_fn_arith ()
400   {
401     as_val=`expr "$@" || test $? -eq 1`
402   }
403 fi # as_fn_arith
404
405
406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
407 # ----------------------------------------
408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410 # script with STATUS, using 1 if that was 0.
411 as_fn_error ()
412 {
413   as_status=$1; test $as_status -eq 0 && as_status=1
414   if test "$4"; then
415     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
417   fi
418   $as_echo "$as_me: error: $2" >&2
419   as_fn_exit $as_status
420 } # as_fn_error
421
422 if expr a : '\(a\)' >/dev/null 2>&1 &&
423    test "X`expr 00001 : '.*\(...\)'`" = X001; then
424   as_expr=expr
425 else
426   as_expr=false
427 fi
428
429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430   as_basename=basename
431 else
432   as_basename=false
433 fi
434
435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436   as_dirname=dirname
437 else
438   as_dirname=false
439 fi
440
441 as_me=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443          X"$0" : 'X\(//\)$' \| \
444          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445 $as_echo X/"$0" |
446     sed '/^.*\/\([^/][^/]*\)\/*$/{
447             s//\1/
448             q
449           }
450           /^X\/\(\/\/\)$/{
451             s//\1/
452             q
453           }
454           /^X\/\(\/\).*/{
455             s//\1/
456             q
457           }
458           s/.*/./; q'`
459
460 # Avoid depending upon Character Ranges.
461 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464 as_cr_digits='0123456789'
465 as_cr_alnum=$as_cr_Letters$as_cr_digits
466
467
468   as_lineno_1=$LINENO as_lineno_1a=$LINENO
469   as_lineno_2=$LINENO as_lineno_2a=$LINENO
470   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
473   sed -n '
474     p
475     /[$]LINENO/=
476   ' <$as_myself |
477     sed '
478       s/[$]LINENO.*/&-/
479       t lineno
480       b
481       :lineno
482       N
483       :loop
484       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485       t loop
486       s/-\n.*//
487     ' >$as_me.lineno &&
488   chmod +x "$as_me.lineno" ||
489     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
490
491   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492   # already done that, so ensure we don't try to do so again and fall
493   # in an infinite loop.  This has already happened in practice.
494   _as_can_reexec=no; export _as_can_reexec
495   # Don't try to exec as it changes $[0], causing all sort of problems
496   # (the dirname of $[0] is not the place where we might find the
497   # original and so on.  Autoconf is especially sensitive to this).
498   . "./$as_me.lineno"
499   # Exit status is that of the last command.
500   exit
501 }
502
503 ECHO_C= ECHO_N= ECHO_T=
504 case `echo -n x` in #(((((
505 -n*)
506   case `echo 'xy\c'` in
507   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
508   xy)  ECHO_C='\c';;
509   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
510        ECHO_T=' ';;
511   esac;;
512 *)
513   ECHO_N='-n';;
514 esac
515
516 rm -f conf$$ conf$$.exe conf$$.file
517 if test -d conf$$.dir; then
518   rm -f conf$$.dir/conf$$.file
519 else
520   rm -f conf$$.dir
521   mkdir conf$$.dir 2>/dev/null
522 fi
523 if (echo >conf$$.file) 2>/dev/null; then
524   if ln -s conf$$.file conf$$ 2>/dev/null; then
525     as_ln_s='ln -s'
526     # ... but there are two gotchas:
527     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529     # In both cases, we have to default to `cp -pR'.
530     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531       as_ln_s='cp -pR'
532   elif ln conf$$.file conf$$ 2>/dev/null; then
533     as_ln_s=ln
534   else
535     as_ln_s='cp -pR'
536   fi
537 else
538   as_ln_s='cp -pR'
539 fi
540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541 rmdir conf$$.dir 2>/dev/null
542
543 if mkdir -p . 2>/dev/null; then
544   as_mkdir_p='mkdir -p "$as_dir"'
545 else
546   test -d ./-p && rmdir ./-p
547   as_mkdir_p=false
548 fi
549
550 as_test_x='test -x'
551 as_executable_p=as_fn_executable_p
552
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
555
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
558
559
560 test -n "$DJDIR" || exec 7<&0 </dev/null
561 exec 6>&1
562
563 # Name of the host.
564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565 # so uname gets run too.
566 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
567
568 #
569 # Initializations.
570 #
571 ac_default_prefix=/usr/local
572 ac_clean_files=
573 ac_config_libobj_dir=.
574 LIBOBJS=
575 cross_compiling=no
576 subdirs=
577 MFLAGS=
578 MAKEFLAGS=
579
580 # Identity of this package.
581 PACKAGE_NAME='Wine'
582 PACKAGE_TARNAME='wine'
583 PACKAGE_VERSION='1.5.23'
584 PACKAGE_STRING='Wine 1.5.23'
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 LIBRT
632 LIBPOLL
633 LIBDL
634 EXTRA_BINARIES
635 MAIN_BINARY
636 SOCKETLIBS
637 CRTLIBS
638 TOOLSEXT
639 LDPATH
640 UNWINDFLAGS
641 BUILTINFLAG
642 EXTRACFLAGS
643 LIBKSTAT
644 LIBOPENAL
645 LIBMPG123
646 PNGINCL
647 FONTCONFIGINCL
648 CUPSINCL
649 OSS4INCL
650 ALSALIBS
651 GSTREAMER_INCL
652 GSTREAMER_LIBS
653 LIBGETTEXTPO
654 ZLIB
655 FREETYPEINCL
656 FREETYPELIBS
657 ft_devel
658 LCMSLIBS
659 RESOLVLIBS
660 GPHOTO2INCL
661 GPHOTO2LIBS
662 gphoto2port_devel
663 gphoto2_devel
664 SANEINCL
665 sane_devel
666 GNUTLSINCL
667 HALINCL
668 DBUSINCL
669 XSLTINCL
670 XML2INCL
671 XML2LIBS
672 X_EXTRA_LIBS
673 X_LIBS
674 X_PRE_LIBS
675 X_CFLAGS
676 XMKMF
677 LIBPTHREAD
678 CROSSTARGET
679 CROSSCC
680 CROSSTEST_DISABLE
681 PRELINK
682 CARBONLIB
683 QUICKTIMELIB
684 LIBOPENCL
685 FRAMEWORK_OPENAL
686 COREAUDIO
687 SECURITYLIB
688 DISKARBITRATIONLIB
689 LDEXECFLAGS
690 CORESERVICESLIB
691 APPLICATIONSERVICESLIB
692 IOKITLIB
693 COREFOUNDATIONLIB
694 DLLWRAP
695 DLLTOOL
696 ac_ct_READELF
697 READELF
698 LDD
699 LDRPATH_LOCAL
700 LDRPATH_INSTALL
701 IMPLIBEXT
702 LIBEXT
703 LDDLLFLAGS
704 LDSHARED
705 DLLFLAGS
706 DLLEXT
707 CPP
708 OPENGL_LIBS
709 XLIB
710 MAINTAINER_MODE
711 MSGFMT
712 ICOTOOL
713 CONVERT
714 RSVG
715 PKG_CONFIG
716 FONTFORGE
717 LINTFLAGS
718 LINT
719 INSTALL_DATA
720 INSTALL_SCRIPT
721 INSTALL_PROGRAM
722 LDCONFIG
723 EGREP
724 GREP
725 LN_S
726 RANLIB
727 ARFLAGS
728 ac_ct_AR
729 AR
730 BISON
731 FLEX
732 TOOLSDIR
733 WOW64_DISABLE
734 TARGETFLAGS
735 CPPBIN
736 ac_ct_CXX
737 CXXFLAGS
738 CXX
739 OBJEXT
740 EXEEXT
741 ac_ct_CC
742 CPPFLAGS
743 LDFLAGS
744 CFLAGS
745 CC
746 SET_MAKE
747 host_os
748 host_vendor
749 host_cpu
750 host
751 build_os
752 build_vendor
753 build_cpu
754 build
755 target_alias
756 host_alias
757 build_alias
758 LIBS
759 ECHO_T
760 ECHO_N
761 ECHO_C
762 DEFS
763 mandir
764 localedir
765 libdir
766 psdir
767 pdfdir
768 dvidir
769 htmldir
770 infodir
771 docdir
772 oldincludedir
773 includedir
774 localstatedir
775 sharedstatedir
776 sysconfdir
777 datadir
778 datarootdir
779 libexecdir
780 sbindir
781 bindir
782 program_transform_name
783 prefix
784 exec_prefix
785 PACKAGE_URL
786 PACKAGE_BUGREPORT
787 PACKAGE_STRING
788 PACKAGE_VERSION
789 PACKAGE_TARNAME
790 PACKAGE_NAME
791 PATH_SEPARATOR
792 SHELL'
793 ac_subst_files='MAKE_RULES
794 MAKE_TEST_RULES
795 MAKE_DLL_RULES
796 MAKE_IMPLIB_RULES
797 MAKE_PROG_RULES'
798 ac_user_opts='
799 enable_option_checking
800 enable_win16
801 enable_win64
802 enable_tests
803 enable_maintainer_mode
804 with_alsa
805 with_capi
806 with_cms
807 with_coreaudio
808 with_cups
809 with_curses
810 with_dbus
811 with_fontconfig
812 with_freetype
813 with_gettext
814 with_gettextpo
815 with_gphoto
816 with_glu
817 with_gnutls
818 with_gsm
819 with_gstreamer
820 with_hal
821 with_jpeg
822 with_ldap
823 with_mpg123
824 with_openal
825 with_opencl
826 with_opengl
827 with_openssl
828 with_osmesa
829 with_oss
830 with_png
831 with_pthread
832 with_sane
833 with_tiff
834 with_v4l
835 with_xcomposite
836 with_xcursor
837 with_xinerama
838 with_xinput
839 with_xinput2
840 with_xml
841 with_xrandr
842 with_xrender
843 with_xshape
844 with_xshm
845 with_xslt
846 with_xxf86vm
847 with_zlib
848 with_wine_tools
849 with_wine64
850 enable_largefile
851 with_x
852 '
853       ac_precious_vars='build_alias
854 host_alias
855 target_alias
856 CC
857 CFLAGS
858 LDFLAGS
859 LIBS
860 CPPFLAGS
861 CXX
862 CXXFLAGS
863 CCC
864 CPP
865 XMKMF'
866
867
868 # Initialize some variables set by options.
869 ac_init_help=
870 ac_init_version=false
871 ac_unrecognized_opts=
872 ac_unrecognized_sep=
873 # The variables have the same names as the options, with
874 # dashes changed to underlines.
875 cache_file=/dev/null
876 exec_prefix=NONE
877 no_create=
878 no_recursion=
879 prefix=NONE
880 program_prefix=NONE
881 program_suffix=NONE
882 program_transform_name=s,x,x,
883 silent=
884 site=
885 srcdir=
886 verbose=
887 x_includes=NONE
888 x_libraries=NONE
889
890 # Installation directory options.
891 # These are left unexpanded so users can "make install exec_prefix=/foo"
892 # and all the variables that are supposed to be based on exec_prefix
893 # by default will actually change.
894 # Use braces instead of parens because sh, perl, etc. also accept them.
895 # (The list follows the same order as the GNU Coding Standards.)
896 bindir='${exec_prefix}/bin'
897 sbindir='${exec_prefix}/sbin'
898 libexecdir='${exec_prefix}/libexec'
899 datarootdir='${prefix}/share'
900 datadir='${datarootdir}'
901 sysconfdir='${prefix}/etc'
902 sharedstatedir='${prefix}/com'
903 localstatedir='${prefix}/var'
904 includedir='${prefix}/include'
905 oldincludedir='/usr/include'
906 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
907 infodir='${datarootdir}/info'
908 htmldir='${docdir}'
909 dvidir='${docdir}'
910 pdfdir='${docdir}'
911 psdir='${docdir}'
912 libdir='${exec_prefix}/lib'
913 localedir='${datarootdir}/locale'
914 mandir='${datarootdir}/man'
915
916 ac_prev=
917 ac_dashdash=
918 for ac_option
919 do
920   # If the previous option needs an argument, assign it.
921   if test -n "$ac_prev"; then
922     eval $ac_prev=\$ac_option
923     ac_prev=
924     continue
925   fi
926
927   case $ac_option in
928   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
929   *=)   ac_optarg= ;;
930   *)    ac_optarg=yes ;;
931   esac
932
933   # Accept the important Cygnus configure options, so we can diagnose typos.
934
935   case $ac_dashdash$ac_option in
936   --)
937     ac_dashdash=yes ;;
938
939   -bindir | --bindir | --bindi | --bind | --bin | --bi)
940     ac_prev=bindir ;;
941   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
942     bindir=$ac_optarg ;;
943
944   -build | --build | --buil | --bui | --bu)
945     ac_prev=build_alias ;;
946   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
947     build_alias=$ac_optarg ;;
948
949   -cache-file | --cache-file | --cache-fil | --cache-fi \
950   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
951     ac_prev=cache_file ;;
952   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
953   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
954     cache_file=$ac_optarg ;;
955
956   --config-cache | -C)
957     cache_file=config.cache ;;
958
959   -datadir | --datadir | --datadi | --datad)
960     ac_prev=datadir ;;
961   -datadir=* | --datadir=* | --datadi=* | --datad=*)
962     datadir=$ac_optarg ;;
963
964   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
965   | --dataroo | --dataro | --datar)
966     ac_prev=datarootdir ;;
967   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
968   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
969     datarootdir=$ac_optarg ;;
970
971   -disable-* | --disable-*)
972     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
973     # Reject names that are not valid shell variable names.
974     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
975       as_fn_error $? "invalid feature name: $ac_useropt"
976     ac_useropt_orig=$ac_useropt
977     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
978     case $ac_user_opts in
979       *"
980 "enable_$ac_useropt"
981 "*) ;;
982       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
983          ac_unrecognized_sep=', ';;
984     esac
985     eval enable_$ac_useropt=no ;;
986
987   -docdir | --docdir | --docdi | --doc | --do)
988     ac_prev=docdir ;;
989   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
990     docdir=$ac_optarg ;;
991
992   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
993     ac_prev=dvidir ;;
994   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
995     dvidir=$ac_optarg ;;
996
997   -enable-* | --enable-*)
998     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
999     # Reject names that are not valid shell variable names.
1000     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1001       as_fn_error $? "invalid feature name: $ac_useropt"
1002     ac_useropt_orig=$ac_useropt
1003     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1004     case $ac_user_opts in
1005       *"
1006 "enable_$ac_useropt"
1007 "*) ;;
1008       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1009          ac_unrecognized_sep=', ';;
1010     esac
1011     eval enable_$ac_useropt=\$ac_optarg ;;
1012
1013   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1014   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1015   | --exec | --exe | --ex)
1016     ac_prev=exec_prefix ;;
1017   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1018   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1019   | --exec=* | --exe=* | --ex=*)
1020     exec_prefix=$ac_optarg ;;
1021
1022   -gas | --gas | --ga | --g)
1023     # Obsolete; use --with-gas.
1024     with_gas=yes ;;
1025
1026   -help | --help | --hel | --he | -h)
1027     ac_init_help=long ;;
1028   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1029     ac_init_help=recursive ;;
1030   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1031     ac_init_help=short ;;
1032
1033   -host | --host | --hos | --ho)
1034     ac_prev=host_alias ;;
1035   -host=* | --host=* | --hos=* | --ho=*)
1036     host_alias=$ac_optarg ;;
1037
1038   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1039     ac_prev=htmldir ;;
1040   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1041   | --ht=*)
1042     htmldir=$ac_optarg ;;
1043
1044   -includedir | --includedir | --includedi | --included | --include \
1045   | --includ | --inclu | --incl | --inc)
1046     ac_prev=includedir ;;
1047   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1048   | --includ=* | --inclu=* | --incl=* | --inc=*)
1049     includedir=$ac_optarg ;;
1050
1051   -infodir | --infodir | --infodi | --infod | --info | --inf)
1052     ac_prev=infodir ;;
1053   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1054     infodir=$ac_optarg ;;
1055
1056   -libdir | --libdir | --libdi | --libd)
1057     ac_prev=libdir ;;
1058   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1059     libdir=$ac_optarg ;;
1060
1061   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1062   | --libexe | --libex | --libe)
1063     ac_prev=libexecdir ;;
1064   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1065   | --libexe=* | --libex=* | --libe=*)
1066     libexecdir=$ac_optarg ;;
1067
1068   -localedir | --localedir | --localedi | --localed | --locale)
1069     ac_prev=localedir ;;
1070   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1071     localedir=$ac_optarg ;;
1072
1073   -localstatedir | --localstatedir | --localstatedi | --localstated \
1074   | --localstate | --localstat | --localsta | --localst | --locals)
1075     ac_prev=localstatedir ;;
1076   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1077   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1078     localstatedir=$ac_optarg ;;
1079
1080   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1081     ac_prev=mandir ;;
1082   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1083     mandir=$ac_optarg ;;
1084
1085   -nfp | --nfp | --nf)
1086     # Obsolete; use --without-fp.
1087     with_fp=no ;;
1088
1089   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1090   | --no-cr | --no-c | -n)
1091     no_create=yes ;;
1092
1093   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1094   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1095     no_recursion=yes ;;
1096
1097   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1098   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1099   | --oldin | --oldi | --old | --ol | --o)
1100     ac_prev=oldincludedir ;;
1101   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1102   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1103   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1104     oldincludedir=$ac_optarg ;;
1105
1106   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1107     ac_prev=prefix ;;
1108   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1109     prefix=$ac_optarg ;;
1110
1111   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1112   | --program-pre | --program-pr | --program-p)
1113     ac_prev=program_prefix ;;
1114   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1115   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1116     program_prefix=$ac_optarg ;;
1117
1118   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1119   | --program-suf | --program-su | --program-s)
1120     ac_prev=program_suffix ;;
1121   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1122   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1123     program_suffix=$ac_optarg ;;
1124
1125   -program-transform-name | --program-transform-name \
1126   | --program-transform-nam | --program-transform-na \
1127   | --program-transform-n | --program-transform- \
1128   | --program-transform | --program-transfor \
1129   | --program-transfo | --program-transf \
1130   | --program-trans | --program-tran \
1131   | --progr-tra | --program-tr | --program-t)
1132     ac_prev=program_transform_name ;;
1133   -program-transform-name=* | --program-transform-name=* \
1134   | --program-transform-nam=* | --program-transform-na=* \
1135   | --program-transform-n=* | --program-transform-=* \
1136   | --program-transform=* | --program-transfor=* \
1137   | --program-transfo=* | --program-transf=* \
1138   | --program-trans=* | --program-tran=* \
1139   | --progr-tra=* | --program-tr=* | --program-t=*)
1140     program_transform_name=$ac_optarg ;;
1141
1142   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1143     ac_prev=pdfdir ;;
1144   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1145     pdfdir=$ac_optarg ;;
1146
1147   -psdir | --psdir | --psdi | --psd | --ps)
1148     ac_prev=psdir ;;
1149   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1150     psdir=$ac_optarg ;;
1151
1152   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1153   | -silent | --silent | --silen | --sile | --sil)
1154     silent=yes ;;
1155
1156   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1157     ac_prev=sbindir ;;
1158   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1159   | --sbi=* | --sb=*)
1160     sbindir=$ac_optarg ;;
1161
1162   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1163   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1164   | --sharedst | --shareds | --shared | --share | --shar \
1165   | --sha | --sh)
1166     ac_prev=sharedstatedir ;;
1167   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1168   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1169   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1170   | --sha=* | --sh=*)
1171     sharedstatedir=$ac_optarg ;;
1172
1173   -site | --site | --sit)
1174     ac_prev=site ;;
1175   -site=* | --site=* | --sit=*)
1176     site=$ac_optarg ;;
1177
1178   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1179     ac_prev=srcdir ;;
1180   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1181     srcdir=$ac_optarg ;;
1182
1183   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1184   | --syscon | --sysco | --sysc | --sys | --sy)
1185     ac_prev=sysconfdir ;;
1186   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1187   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1188     sysconfdir=$ac_optarg ;;
1189
1190   -target | --target | --targe | --targ | --tar | --ta | --t)
1191     ac_prev=target_alias ;;
1192   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1193     target_alias=$ac_optarg ;;
1194
1195   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1196     verbose=yes ;;
1197
1198   -version | --version | --versio | --versi | --vers | -V)
1199     ac_init_version=: ;;
1200
1201   -with-* | --with-*)
1202     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1203     # Reject names that are not valid shell variable names.
1204     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1205       as_fn_error $? "invalid package name: $ac_useropt"
1206     ac_useropt_orig=$ac_useropt
1207     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1208     case $ac_user_opts in
1209       *"
1210 "with_$ac_useropt"
1211 "*) ;;
1212       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1213          ac_unrecognized_sep=', ';;
1214     esac
1215     eval with_$ac_useropt=\$ac_optarg ;;
1216
1217   -without-* | --without-*)
1218     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1219     # Reject names that are not valid shell variable names.
1220     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1221       as_fn_error $? "invalid package name: $ac_useropt"
1222     ac_useropt_orig=$ac_useropt
1223     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1224     case $ac_user_opts in
1225       *"
1226 "with_$ac_useropt"
1227 "*) ;;
1228       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1229          ac_unrecognized_sep=', ';;
1230     esac
1231     eval with_$ac_useropt=no ;;
1232
1233   --x)
1234     # Obsolete; use --with-x.
1235     with_x=yes ;;
1236
1237   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1238   | --x-incl | --x-inc | --x-in | --x-i)
1239     ac_prev=x_includes ;;
1240   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1241   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1242     x_includes=$ac_optarg ;;
1243
1244   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1245   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1246     ac_prev=x_libraries ;;
1247   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1248   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1249     x_libraries=$ac_optarg ;;
1250
1251   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1252 Try \`$0 --help' for more information"
1253     ;;
1254
1255   *=*)
1256     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1257     # Reject names that are not valid shell variable names.
1258     case $ac_envvar in #(
1259       '' | [0-9]* | *[!_$as_cr_alnum]* )
1260       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1261     esac
1262     eval $ac_envvar=\$ac_optarg
1263     export $ac_envvar ;;
1264
1265   *)
1266     # FIXME: should be removed in autoconf 3.0.
1267     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1268     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1269       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1270     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1271     ;;
1272
1273   esac
1274 done
1275
1276 if test -n "$ac_prev"; then
1277   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1278   as_fn_error $? "missing argument to $ac_option"
1279 fi
1280
1281 if test -n "$ac_unrecognized_opts"; then
1282   case $enable_option_checking in
1283     no) ;;
1284     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1285     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1286   esac
1287 fi
1288
1289 # Check all directory arguments for consistency.
1290 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1291                 datadir sysconfdir sharedstatedir localstatedir includedir \
1292                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1293                 libdir localedir mandir
1294 do
1295   eval ac_val=\$$ac_var
1296   # Remove trailing slashes.
1297   case $ac_val in
1298     */ )
1299       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1300       eval $ac_var=\$ac_val;;
1301   esac
1302   # Be sure to have absolute directory names.
1303   case $ac_val in
1304     [\\/$]* | ?:[\\/]* )  continue;;
1305     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1306   esac
1307   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1308 done
1309
1310 # There might be people who depend on the old broken behavior: `$host'
1311 # used to hold the argument of --host etc.
1312 # FIXME: To remove some day.
1313 build=$build_alias
1314 host=$host_alias
1315 target=$target_alias
1316
1317 # FIXME: To remove some day.
1318 if test "x$host_alias" != x; then
1319   if test "x$build_alias" = x; then
1320     cross_compiling=maybe
1321   elif test "x$build_alias" != "x$host_alias"; then
1322     cross_compiling=yes
1323   fi
1324 fi
1325
1326 ac_tool_prefix=
1327 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1328
1329 test "$silent" = yes && exec 6>/dev/null
1330
1331
1332 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1333 ac_ls_di=`ls -di .` &&
1334 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1335   as_fn_error $? "working directory cannot be determined"
1336 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1337   as_fn_error $? "pwd does not report name of working directory"
1338
1339
1340 # Find the source files, if location was not specified.
1341 if test -z "$srcdir"; then
1342   ac_srcdir_defaulted=yes
1343   # Try the directory containing this script, then the parent directory.
1344   ac_confdir=`$as_dirname -- "$as_myself" ||
1345 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1346          X"$as_myself" : 'X\(//\)[^/]' \| \
1347          X"$as_myself" : 'X\(//\)$' \| \
1348          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1349 $as_echo X"$as_myself" |
1350     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1351             s//\1/
1352             q
1353           }
1354           /^X\(\/\/\)[^/].*/{
1355             s//\1/
1356             q
1357           }
1358           /^X\(\/\/\)$/{
1359             s//\1/
1360             q
1361           }
1362           /^X\(\/\).*/{
1363             s//\1/
1364             q
1365           }
1366           s/.*/./; q'`
1367   srcdir=$ac_confdir
1368   if test ! -r "$srcdir/$ac_unique_file"; then
1369     srcdir=..
1370   fi
1371 else
1372   ac_srcdir_defaulted=no
1373 fi
1374 if test ! -r "$srcdir/$ac_unique_file"; then
1375   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1376   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1377 fi
1378 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1379 ac_abs_confdir=`(
1380         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1381         pwd)`
1382 # When building in place, set srcdir=.
1383 if test "$ac_abs_confdir" = "$ac_pwd"; then
1384   srcdir=.
1385 fi
1386 # Remove unnecessary trailing slashes from srcdir.
1387 # Double slashes in file names in object file debugging info
1388 # mess up M-x gdb in Emacs.
1389 case $srcdir in
1390 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1391 esac
1392 for ac_var in $ac_precious_vars; do
1393   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1394   eval ac_env_${ac_var}_value=\$${ac_var}
1395   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1396   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1397 done
1398
1399 #
1400 # Report the --help message.
1401 #
1402 if test "$ac_init_help" = "long"; then
1403   # Omit some internal or obsolete options to make the list less imposing.
1404   # This message is too long to be a string in the A/UX 3.1 sh.
1405   cat <<_ACEOF
1406 \`configure' configures Wine 1.5.23 to adapt to many kinds of systems.
1407
1408 Usage: $0 [OPTION]... [VAR=VALUE]...
1409
1410 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1411 VAR=VALUE.  See below for descriptions of some of the useful variables.
1412
1413 Defaults for the options are specified in brackets.
1414
1415 Configuration:
1416   -h, --help              display this help and exit
1417       --help=short        display options specific to this package
1418       --help=recursive    display the short help of all the included packages
1419   -V, --version           display version information and exit
1420   -q, --quiet, --silent   do not print \`checking ...' messages
1421       --cache-file=FILE   cache test results in FILE [disabled]
1422   -C, --config-cache      alias for \`--cache-file=config.cache'
1423   -n, --no-create         do not create output files
1424       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1425
1426 Installation directories:
1427   --prefix=PREFIX         install architecture-independent files in PREFIX
1428                           [$ac_default_prefix]
1429   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1430                           [PREFIX]
1431
1432 By default, \`make install' will install all the files in
1433 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1434 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1435 for instance \`--prefix=\$HOME'.
1436
1437 For better control, use the options below.
1438
1439 Fine tuning of the installation directories:
1440   --bindir=DIR            user executables [EPREFIX/bin]
1441   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1442   --libexecdir=DIR        program executables [EPREFIX/libexec]
1443   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1444   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1445   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1446   --libdir=DIR            object code libraries [EPREFIX/lib]
1447   --includedir=DIR        C header files [PREFIX/include]
1448   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1449   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1450   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1451   --infodir=DIR           info documentation [DATAROOTDIR/info]
1452   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1453   --mandir=DIR            man documentation [DATAROOTDIR/man]
1454   --docdir=DIR            documentation root [DATAROOTDIR/doc/wine]
1455   --htmldir=DIR           html documentation [DOCDIR]
1456   --dvidir=DIR            dvi documentation [DOCDIR]
1457   --pdfdir=DIR            pdf documentation [DOCDIR]
1458   --psdir=DIR             ps documentation [DOCDIR]
1459 _ACEOF
1460
1461   cat <<\_ACEOF
1462
1463 X features:
1464   --x-includes=DIR    X include files are in DIR
1465   --x-libraries=DIR   X library files are in DIR
1466
1467 System types:
1468   --build=BUILD     configure for building on BUILD [guessed]
1469   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1470 _ACEOF
1471 fi
1472
1473 if test -n "$ac_init_help"; then
1474   case $ac_init_help in
1475      short | recursive ) echo "Configuration of Wine 1.5.23:";;
1476    esac
1477   cat <<\_ACEOF
1478
1479 Optional Features:
1480   --disable-option-checking  ignore unrecognized --enable/--with options
1481   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1482   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1483   --disable-win16         do not include Win16 support
1484   --enable-win64          build a Win64 emulator on AMD64 (won't run Win32
1485                           binaries)
1486   --disable-tests         do not build the regression tests
1487   --enable-maintainer-mode
1488                           enable maintainer-specific build rules
1489   --disable-largefile     omit support for large files
1490
1491 Optional Packages:
1492   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1493   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1494   --without-alsa          do not use the Alsa sound support
1495   --without-capi          do not use CAPI (ISDN support)
1496   --without-cms           do not use CMS (color management support)
1497   --without-coreaudio     do not use the CoreAudio sound support
1498   --without-cups          do not use CUPS
1499   --without-curses        do not use (n)curses
1500   --without-dbus          do not use DBus (dynamic device support)
1501   --without-fontconfig    do not use fontconfig
1502   --without-freetype      do not use the FreeType library
1503   --without-gettext       do not use gettext
1504   --with-gettextpo        use the GetTextPO library to rebuild po files
1505   --without-gphoto        do not use gphoto (Digital Camera support)
1506   --without-glu           do not use the GLU library
1507   --without-gnutls        do not use GnuTLS (schannel support)
1508   --without-gsm           do not use libgsm (GSM 06.10 codec support)
1509   --without-gstreamer     do not use GStreamer (codecs support)
1510   --without-hal           do not use HAL (dynamic device support)
1511   --without-jpeg          do not use JPEG
1512   --without-ldap          do not use LDAP
1513   --without-mpg123        do not use the mpg123 library
1514   --without-openal        do not use OpenAL
1515   --without-opencl        do not use OpenCL
1516   --without-opengl        do not use OpenGL
1517   --without-openssl       do not use OpenSSL
1518   --without-osmesa        do not use the OSMesa library
1519   --without-oss           do not use the OSS sound support
1520   --without-png           do not use PNG
1521   --without-pthread       do not use the pthread library
1522   --without-sane          do not use SANE (scanner support)
1523   --without-tiff          do not use TIFF
1524   --without-v4l           do not use v4l1 (v4l support)
1525   --without-xcomposite    do not use the Xcomposite extension
1526   --without-xcursor       do not use the Xcursor extension
1527   --without-xinerama      do not use Xinerama (multi-monitor support)
1528   --without-xinput        do not use the Xinput extension
1529   --without-xinput2       do not use the Xinput 2 extension
1530   --without-xml           do not use XML
1531   --without-xrandr        do not use Xrandr (resolution changes)
1532   --without-xrender       do not use the Xrender extension
1533   --without-xshape        do not use the Xshape extension
1534   --without-xshm          do not use XShm (shared memory extension)
1535   --without-xslt          do not use XSLT
1536   --without-xxf86vm       do not use XFree video mode extension
1537   --without-zlib          do not use Zlib (data compression)
1538   --with-wine-tools=DIR   use Wine tools from directory DIR
1539   --with-wine64=DIR       use the 64-bit Wine in DIR for a Wow64 build
1540   --with-x                use the X Window System
1541
1542 Some influential environment variables:
1543   CC          C compiler command
1544   CFLAGS      C compiler flags
1545   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1546               nonstandard directory <lib dir>
1547   LIBS        libraries to pass to the linker, e.g. -l<library>
1548   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1549               you have headers in a nonstandard directory <include dir>
1550   CXX         C++ compiler command
1551   CXXFLAGS    C++ compiler flags
1552   CPP         C preprocessor
1553   XMKMF       Path to xmkmf, Makefile generator for X Window System
1554
1555 Use these variables to override the choices made by `configure' or to help
1556 it to find libraries and programs with nonstandard names/locations.
1557
1558 Report bugs to <wine-devel@winehq.org>.
1559 Wine home page: <http://www.winehq.org>.
1560 _ACEOF
1561 ac_status=$?
1562 fi
1563
1564 if test "$ac_init_help" = "recursive"; then
1565   # If there are subdirs, report their specific --help.
1566   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1567     test -d "$ac_dir" ||
1568       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1569       continue
1570     ac_builddir=.
1571
1572 case "$ac_dir" in
1573 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1574 *)
1575   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1576   # A ".." for each directory in $ac_dir_suffix.
1577   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1578   case $ac_top_builddir_sub in
1579   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1580   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1581   esac ;;
1582 esac
1583 ac_abs_top_builddir=$ac_pwd
1584 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1585 # for backward compatibility:
1586 ac_top_builddir=$ac_top_build_prefix
1587
1588 case $srcdir in
1589   .)  # We are building in place.
1590     ac_srcdir=.
1591     ac_top_srcdir=$ac_top_builddir_sub
1592     ac_abs_top_srcdir=$ac_pwd ;;
1593   [\\/]* | ?:[\\/]* )  # Absolute name.
1594     ac_srcdir=$srcdir$ac_dir_suffix;
1595     ac_top_srcdir=$srcdir
1596     ac_abs_top_srcdir=$srcdir ;;
1597   *) # Relative name.
1598     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1599     ac_top_srcdir=$ac_top_build_prefix$srcdir
1600     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1601 esac
1602 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1603
1604     cd "$ac_dir" || { ac_status=$?; continue; }
1605     # Check for guested configure.
1606     if test -f "$ac_srcdir/configure.gnu"; then
1607       echo &&
1608       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1609     elif test -f "$ac_srcdir/configure"; then
1610       echo &&
1611       $SHELL "$ac_srcdir/configure" --help=recursive
1612     else
1613       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1614     fi || ac_status=$?
1615     cd "$ac_pwd" || { ac_status=$?; break; }
1616   done
1617 fi
1618
1619 test -n "$ac_init_help" && exit $ac_status
1620 if $ac_init_version; then
1621   cat <<\_ACEOF
1622 Wine configure 1.5.23
1623 generated by GNU Autoconf 2.69
1624
1625 Copyright (C) 2012 Free Software Foundation, Inc.
1626 This configure script is free software; the Free Software Foundation
1627 gives unlimited permission to copy, distribute and modify it.
1628 _ACEOF
1629   exit
1630 fi
1631
1632 ## ------------------------ ##
1633 ## Autoconf initialization. ##
1634 ## ------------------------ ##
1635
1636 # ac_fn_c_try_compile LINENO
1637 # --------------------------
1638 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1639 ac_fn_c_try_compile ()
1640 {
1641   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1642   rm -f conftest.$ac_objext
1643   if { { ac_try="$ac_compile"
1644 case "(($ac_try" in
1645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1646   *) ac_try_echo=$ac_try;;
1647 esac
1648 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1649 $as_echo "$ac_try_echo"; } >&5
1650   (eval "$ac_compile") 2>conftest.err
1651   ac_status=$?
1652   if test -s conftest.err; then
1653     grep -v '^ *+' conftest.err >conftest.er1
1654     cat conftest.er1 >&5
1655     mv -f conftest.er1 conftest.err
1656   fi
1657   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1658   test $ac_status = 0; } && {
1659          test -z "$ac_c_werror_flag" ||
1660          test ! -s conftest.err
1661        } && test -s conftest.$ac_objext; then :
1662   ac_retval=0
1663 else
1664   $as_echo "$as_me: failed program was:" >&5
1665 sed 's/^/| /' conftest.$ac_ext >&5
1666
1667         ac_retval=1
1668 fi
1669   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1670   as_fn_set_status $ac_retval
1671
1672 } # ac_fn_c_try_compile
1673
1674 # ac_fn_cxx_try_compile LINENO
1675 # ----------------------------
1676 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1677 ac_fn_cxx_try_compile ()
1678 {
1679   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1680   rm -f conftest.$ac_objext
1681   if { { ac_try="$ac_compile"
1682 case "(($ac_try" in
1683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1684   *) ac_try_echo=$ac_try;;
1685 esac
1686 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1687 $as_echo "$ac_try_echo"; } >&5
1688   (eval "$ac_compile") 2>conftest.err
1689   ac_status=$?
1690   if test -s conftest.err; then
1691     grep -v '^ *+' conftest.err >conftest.er1
1692     cat conftest.er1 >&5
1693     mv -f conftest.er1 conftest.err
1694   fi
1695   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1696   test $ac_status = 0; } && {
1697          test -z "$ac_cxx_werror_flag" ||
1698          test ! -s conftest.err
1699        } && test -s conftest.$ac_objext; then :
1700   ac_retval=0
1701 else
1702   $as_echo "$as_me: failed program was:" >&5
1703 sed 's/^/| /' conftest.$ac_ext >&5
1704
1705         ac_retval=1
1706 fi
1707   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1708   as_fn_set_status $ac_retval
1709
1710 } # ac_fn_cxx_try_compile
1711
1712 # ac_fn_c_try_link LINENO
1713 # -----------------------
1714 # Try to link conftest.$ac_ext, and return whether this succeeded.
1715 ac_fn_c_try_link ()
1716 {
1717   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1718   rm -f conftest.$ac_objext conftest$ac_exeext
1719   if { { ac_try="$ac_link"
1720 case "(($ac_try" in
1721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1722   *) ac_try_echo=$ac_try;;
1723 esac
1724 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1725 $as_echo "$ac_try_echo"; } >&5
1726   (eval "$ac_link") 2>conftest.err
1727   ac_status=$?
1728   if test -s conftest.err; then
1729     grep -v '^ *+' conftest.err >conftest.er1
1730     cat conftest.er1 >&5
1731     mv -f conftest.er1 conftest.err
1732   fi
1733   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1734   test $ac_status = 0; } && {
1735          test -z "$ac_c_werror_flag" ||
1736          test ! -s conftest.err
1737        } && test -s conftest$ac_exeext && {
1738          test "$cross_compiling" = yes ||
1739          test -x conftest$ac_exeext
1740        }; then :
1741   ac_retval=0
1742 else
1743   $as_echo "$as_me: failed program was:" >&5
1744 sed 's/^/| /' conftest.$ac_ext >&5
1745
1746         ac_retval=1
1747 fi
1748   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1749   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1750   # interfere with the next link command; also delete a directory that is
1751   # left behind by Apple's compiler.  We do this before executing the actions.
1752   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1753   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1754   as_fn_set_status $ac_retval
1755
1756 } # ac_fn_c_try_link
1757
1758 # ac_fn_c_try_cpp LINENO
1759 # ----------------------
1760 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1761 ac_fn_c_try_cpp ()
1762 {
1763   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1764   if { { ac_try="$ac_cpp conftest.$ac_ext"
1765 case "(($ac_try" in
1766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1767   *) ac_try_echo=$ac_try;;
1768 esac
1769 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1770 $as_echo "$ac_try_echo"; } >&5
1771   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1772   ac_status=$?
1773   if test -s conftest.err; then
1774     grep -v '^ *+' conftest.err >conftest.er1
1775     cat conftest.er1 >&5
1776     mv -f conftest.er1 conftest.err
1777   fi
1778   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1779   test $ac_status = 0; } > conftest.i && {
1780          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1781          test ! -s conftest.err
1782        }; then :
1783   ac_retval=0
1784 else
1785   $as_echo "$as_me: failed program was:" >&5
1786 sed 's/^/| /' conftest.$ac_ext >&5
1787
1788     ac_retval=1
1789 fi
1790   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1791   as_fn_set_status $ac_retval
1792
1793 } # ac_fn_c_try_cpp
1794
1795 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1796 # -------------------------------------------------------
1797 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1798 # the include files in INCLUDES and setting the cache variable VAR
1799 # accordingly.
1800 ac_fn_c_check_header_mongrel ()
1801 {
1802   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1803   if eval \${$3+:} false; then :
1804   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1805 $as_echo_n "checking for $2... " >&6; }
1806 if eval \${$3+:} false; then :
1807   $as_echo_n "(cached) " >&6
1808 fi
1809 eval ac_res=\$$3
1810                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1811 $as_echo "$ac_res" >&6; }
1812 else
1813   # Is the header compilable?
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1815 $as_echo_n "checking $2 usability... " >&6; }
1816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1817 /* end confdefs.h.  */
1818 $4
1819 #include <$2>
1820 _ACEOF
1821 if ac_fn_c_try_compile "$LINENO"; then :
1822   ac_header_compiler=yes
1823 else
1824   ac_header_compiler=no
1825 fi
1826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1828 $as_echo "$ac_header_compiler" >&6; }
1829
1830 # Is the header present?
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1832 $as_echo_n "checking $2 presence... " >&6; }
1833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1834 /* end confdefs.h.  */
1835 #include <$2>
1836 _ACEOF
1837 if ac_fn_c_try_cpp "$LINENO"; then :
1838   ac_header_preproc=yes
1839 else
1840   ac_header_preproc=no
1841 fi
1842 rm -f conftest.err conftest.i conftest.$ac_ext
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1844 $as_echo "$ac_header_preproc" >&6; }
1845
1846 # So?  What about this header?
1847 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1848   yes:no: )
1849     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1850 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1851     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1852 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1853     ;;
1854   no:yes:* )
1855     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1856 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1857     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1858 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1859     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1860 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1861     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1862 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1863     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1864 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1865 ( $as_echo "## ------------------------------------ ##
1866 ## Report this to wine-devel@winehq.org ##
1867 ## ------------------------------------ ##"
1868      ) | sed "s/^/$as_me: WARNING:     /" >&2
1869     ;;
1870 esac
1871   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1872 $as_echo_n "checking for $2... " >&6; }
1873 if eval \${$3+:} false; then :
1874   $as_echo_n "(cached) " >&6
1875 else
1876   eval "$3=\$ac_header_compiler"
1877 fi
1878 eval ac_res=\$$3
1879                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1880 $as_echo "$ac_res" >&6; }
1881 fi
1882   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1883
1884 } # ac_fn_c_check_header_mongrel
1885
1886 # ac_fn_c_try_run LINENO
1887 # ----------------------
1888 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1889 # that executables *can* be run.
1890 ac_fn_c_try_run ()
1891 {
1892   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1893   if { { ac_try="$ac_link"
1894 case "(($ac_try" in
1895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1896   *) ac_try_echo=$ac_try;;
1897 esac
1898 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1899 $as_echo "$ac_try_echo"; } >&5
1900   (eval "$ac_link") 2>&5
1901   ac_status=$?
1902   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1903   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1904   { { case "(($ac_try" in
1905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1906   *) ac_try_echo=$ac_try;;
1907 esac
1908 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1909 $as_echo "$ac_try_echo"; } >&5
1910   (eval "$ac_try") 2>&5
1911   ac_status=$?
1912   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1913   test $ac_status = 0; }; }; then :
1914   ac_retval=0
1915 else
1916   $as_echo "$as_me: program exited with status $ac_status" >&5
1917        $as_echo "$as_me: failed program was:" >&5
1918 sed 's/^/| /' conftest.$ac_ext >&5
1919
1920        ac_retval=$ac_status
1921 fi
1922   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1923   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1924   as_fn_set_status $ac_retval
1925
1926 } # ac_fn_c_try_run
1927
1928 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1929 # -------------------------------------------------------
1930 # Tests whether HEADER exists and can be compiled using the include files in
1931 # INCLUDES, setting the cache variable VAR accordingly.
1932 ac_fn_c_check_header_compile ()
1933 {
1934   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1935   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1936 $as_echo_n "checking for $2... " >&6; }
1937 if eval \${$3+:} false; then :
1938   $as_echo_n "(cached) " >&6
1939 else
1940   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1941 /* end confdefs.h.  */
1942 $4
1943 #include <$2>
1944 _ACEOF
1945 if ac_fn_c_try_compile "$LINENO"; then :
1946   eval "$3=yes"
1947 else
1948   eval "$3=no"
1949 fi
1950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1951 fi
1952 eval ac_res=\$$3
1953                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1954 $as_echo "$ac_res" >&6; }
1955   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1956
1957 } # ac_fn_c_check_header_compile
1958
1959 # ac_fn_c_check_func LINENO FUNC VAR
1960 # ----------------------------------
1961 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1962 ac_fn_c_check_func ()
1963 {
1964   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1965   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1966 $as_echo_n "checking for $2... " >&6; }
1967 if eval \${$3+:} false; then :
1968   $as_echo_n "(cached) " >&6
1969 else
1970   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1971 /* end confdefs.h.  */
1972 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1973    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1974 #define $2 innocuous_$2
1975
1976 /* System header to define __stub macros and hopefully few prototypes,
1977     which can conflict with char $2 (); below.
1978     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1979     <limits.h> exists even on freestanding compilers.  */
1980
1981 #ifdef __STDC__
1982 # include <limits.h>
1983 #else
1984 # include <assert.h>
1985 #endif
1986
1987 #undef $2
1988
1989 /* Override any GCC internal prototype to avoid an error.
1990    Use char because int might match the return type of a GCC
1991    builtin and then its argument prototype would still apply.  */
1992 #ifdef __cplusplus
1993 extern "C"
1994 #endif
1995 char $2 ();
1996 /* The GNU C library defines this for functions which it implements
1997     to always fail with ENOSYS.  Some functions are actually named
1998     something starting with __ and the normal name is an alias.  */
1999 #if defined __stub_$2 || defined __stub___$2
2000 choke me
2001 #endif
2002
2003 int
2004 main ()
2005 {
2006 return $2 ();
2007   ;
2008   return 0;
2009 }
2010 _ACEOF
2011 if ac_fn_c_try_link "$LINENO"; then :
2012   eval "$3=yes"
2013 else
2014   eval "$3=no"
2015 fi
2016 rm -f core conftest.err conftest.$ac_objext \
2017     conftest$ac_exeext conftest.$ac_ext
2018 fi
2019 eval ac_res=\$$3
2020                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2021 $as_echo "$ac_res" >&6; }
2022   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2023
2024 } # ac_fn_c_check_func
2025
2026 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2027 # ----------------------------------------------------
2028 # Tries to find if the field MEMBER exists in type AGGR, after including
2029 # INCLUDES, setting cache variable VAR accordingly.
2030 ac_fn_c_check_member ()
2031 {
2032   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2033   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2034 $as_echo_n "checking for $2.$3... " >&6; }
2035 if eval \${$4+:} false; then :
2036   $as_echo_n "(cached) " >&6
2037 else
2038   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2039 /* end confdefs.h.  */
2040 $5
2041 int
2042 main ()
2043 {
2044 static $2 ac_aggr;
2045 if (ac_aggr.$3)
2046 return 0;
2047   ;
2048   return 0;
2049 }
2050 _ACEOF
2051 if ac_fn_c_try_compile "$LINENO"; then :
2052   eval "$4=yes"
2053 else
2054   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2055 /* end confdefs.h.  */
2056 $5
2057 int
2058 main ()
2059 {
2060 static $2 ac_aggr;
2061 if (sizeof ac_aggr.$3)
2062 return 0;
2063   ;
2064   return 0;
2065 }
2066 _ACEOF
2067 if ac_fn_c_try_compile "$LINENO"; then :
2068   eval "$4=yes"
2069 else
2070   eval "$4=no"
2071 fi
2072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2073 fi
2074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2075 fi
2076 eval ac_res=\$$4
2077                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2078 $as_echo "$ac_res" >&6; }
2079   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2080
2081 } # ac_fn_c_check_member
2082
2083 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2084 # -------------------------------------------
2085 # Tests whether TYPE exists after having included INCLUDES, setting cache
2086 # variable VAR accordingly.
2087 ac_fn_c_check_type ()
2088 {
2089   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2090   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2091 $as_echo_n "checking for $2... " >&6; }
2092 if eval \${$3+:} false; then :
2093   $as_echo_n "(cached) " >&6
2094 else
2095   eval "$3=no"
2096   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2097 /* end confdefs.h.  */
2098 $4
2099 int
2100 main ()
2101 {
2102 if (sizeof ($2))
2103          return 0;
2104   ;
2105   return 0;
2106 }
2107 _ACEOF
2108 if ac_fn_c_try_compile "$LINENO"; then :
2109   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2110 /* end confdefs.h.  */
2111 $4
2112 int
2113 main ()
2114 {
2115 if (sizeof (($2)))
2116             return 0;
2117   ;
2118   return 0;
2119 }
2120 _ACEOF
2121 if ac_fn_c_try_compile "$LINENO"; then :
2122
2123 else
2124   eval "$3=yes"
2125 fi
2126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2127 fi
2128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2129 fi
2130 eval ac_res=\$$3
2131                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2132 $as_echo "$ac_res" >&6; }
2133   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2134
2135 } # ac_fn_c_check_type
2136 cat >config.log <<_ACEOF
2137 This file contains any messages produced by compilers while
2138 running configure, to aid debugging if configure makes a mistake.
2139
2140 It was created by Wine $as_me 1.5.23, which was
2141 generated by GNU Autoconf 2.69.  Invocation command line was
2142
2143   $ $0 $@
2144
2145 _ACEOF
2146 exec 5>>config.log
2147 {
2148 cat <<_ASUNAME
2149 ## --------- ##
2150 ## Platform. ##
2151 ## --------- ##
2152
2153 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2154 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2155 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2156 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2157 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2158
2159 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2160 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2161
2162 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2163 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2164 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2165 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2166 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2167 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2168 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2169
2170 _ASUNAME
2171
2172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2173 for as_dir in $PATH
2174 do
2175   IFS=$as_save_IFS
2176   test -z "$as_dir" && as_dir=.
2177     $as_echo "PATH: $as_dir"
2178   done
2179 IFS=$as_save_IFS
2180
2181 } >&5
2182
2183 cat >&5 <<_ACEOF
2184
2185
2186 ## ----------- ##
2187 ## Core tests. ##
2188 ## ----------- ##
2189
2190 _ACEOF
2191
2192
2193 # Keep a trace of the command line.
2194 # Strip out --no-create and --no-recursion so they do not pile up.
2195 # Strip out --silent because we don't want to record it for future runs.
2196 # Also quote any args containing shell meta-characters.
2197 # Make two passes to allow for proper duplicate-argument suppression.
2198 ac_configure_args=
2199 ac_configure_args0=
2200 ac_configure_args1=
2201 ac_must_keep_next=false
2202 for ac_pass in 1 2
2203 do
2204   for ac_arg
2205   do
2206     case $ac_arg in
2207     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2208     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2209     | -silent | --silent | --silen | --sile | --sil)
2210       continue ;;
2211     *\'*)
2212       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2213     esac
2214     case $ac_pass in
2215     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2216     2)
2217       as_fn_append ac_configure_args1 " '$ac_arg'"
2218       if test $ac_must_keep_next = true; then
2219         ac_must_keep_next=false # Got value, back to normal.
2220       else
2221         case $ac_arg in
2222           *=* | --config-cache | -C | -disable-* | --disable-* \
2223           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2224           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2225           | -with-* | --with-* | -without-* | --without-* | --x)
2226             case "$ac_configure_args0 " in
2227               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2228             esac
2229             ;;
2230           -* ) ac_must_keep_next=true ;;
2231         esac
2232       fi
2233       as_fn_append ac_configure_args " '$ac_arg'"
2234       ;;
2235     esac
2236   done
2237 done
2238 { ac_configure_args0=; unset ac_configure_args0;}
2239 { ac_configure_args1=; unset ac_configure_args1;}
2240
2241 # When interrupted or exit'd, cleanup temporary files, and complete
2242 # config.log.  We remove comments because anyway the quotes in there
2243 # would cause problems or look ugly.
2244 # WARNING: Use '\'' to represent an apostrophe within the trap.
2245 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2246 trap 'exit_status=$?
2247   # Save into config.log some information that might help in debugging.
2248   {
2249     echo
2250
2251     $as_echo "## ---------------- ##
2252 ## Cache variables. ##
2253 ## ---------------- ##"
2254     echo
2255     # The following way of writing the cache mishandles newlines in values,
2256 (
2257   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2258     eval ac_val=\$$ac_var
2259     case $ac_val in #(
2260     *${as_nl}*)
2261       case $ac_var in #(
2262       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2263 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2264       esac
2265       case $ac_var in #(
2266       _ | IFS | as_nl) ;; #(
2267       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2268       *) { eval $ac_var=; unset $ac_var;} ;;
2269       esac ;;
2270     esac
2271   done
2272   (set) 2>&1 |
2273     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2274     *${as_nl}ac_space=\ *)
2275       sed -n \
2276         "s/'\''/'\''\\\\'\'''\''/g;
2277           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2278       ;; #(
2279     *)
2280       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2281       ;;
2282     esac |
2283     sort
2284 )
2285     echo
2286
2287     $as_echo "## ----------------- ##
2288 ## Output variables. ##
2289 ## ----------------- ##"
2290     echo
2291     for ac_var in $ac_subst_vars
2292     do
2293       eval ac_val=\$$ac_var
2294       case $ac_val in
2295       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2296       esac
2297       $as_echo "$ac_var='\''$ac_val'\''"
2298     done | sort
2299     echo
2300
2301     if test -n "$ac_subst_files"; then
2302       $as_echo "## ------------------- ##
2303 ## File substitutions. ##
2304 ## ------------------- ##"
2305       echo
2306       for ac_var in $ac_subst_files
2307       do
2308         eval ac_val=\$$ac_var
2309         case $ac_val in
2310         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2311         esac
2312         $as_echo "$ac_var='\''$ac_val'\''"
2313       done | sort
2314       echo
2315     fi
2316
2317     if test -s confdefs.h; then
2318       $as_echo "## ----------- ##
2319 ## confdefs.h. ##
2320 ## ----------- ##"
2321       echo
2322       cat confdefs.h
2323       echo
2324     fi
2325     test "$ac_signal" != 0 &&
2326       $as_echo "$as_me: caught signal $ac_signal"
2327     $as_echo "$as_me: exit $exit_status"
2328   } >&5
2329   rm -f core *.core core.conftest.* &&
2330     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2331     exit $exit_status
2332 ' 0
2333 for ac_signal in 1 2 13 15; do
2334   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2335 done
2336 ac_signal=0
2337
2338 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2339 rm -f -r conftest* confdefs.h
2340
2341 $as_echo "/* confdefs.h */" > confdefs.h
2342
2343 # Predefined preprocessor variables.
2344
2345 cat >>confdefs.h <<_ACEOF
2346 #define PACKAGE_NAME "$PACKAGE_NAME"
2347 _ACEOF
2348
2349 cat >>confdefs.h <<_ACEOF
2350 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2351 _ACEOF
2352
2353 cat >>confdefs.h <<_ACEOF
2354 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2355 _ACEOF
2356
2357 cat >>confdefs.h <<_ACEOF
2358 #define PACKAGE_STRING "$PACKAGE_STRING"
2359 _ACEOF
2360
2361 cat >>confdefs.h <<_ACEOF
2362 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2363 _ACEOF
2364
2365 cat >>confdefs.h <<_ACEOF
2366 #define PACKAGE_URL "$PACKAGE_URL"
2367 _ACEOF
2368
2369
2370 # Let the site file select an alternate cache file if it wants to.
2371 # Prefer an explicitly selected file to automatically selected ones.
2372 ac_site_file1=NONE
2373 ac_site_file2=NONE
2374 if test -n "$CONFIG_SITE"; then
2375   # We do not want a PATH search for config.site.
2376   case $CONFIG_SITE in #((
2377     -*)  ac_site_file1=./$CONFIG_SITE;;
2378     */*) ac_site_file1=$CONFIG_SITE;;
2379     *)   ac_site_file1=./$CONFIG_SITE;;
2380   esac
2381 elif test "x$prefix" != xNONE; then
2382   ac_site_file1=$prefix/share/config.site
2383   ac_site_file2=$prefix/etc/config.site
2384 else
2385   ac_site_file1=$ac_default_prefix/share/config.site
2386   ac_site_file2=$ac_default_prefix/etc/config.site
2387 fi
2388 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2389 do
2390   test "x$ac_site_file" = xNONE && continue
2391   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2392     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2393 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2394     sed 's/^/| /' "$ac_site_file" >&5
2395     . "$ac_site_file" \
2396       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2397 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2398 as_fn_error $? "failed to load site script $ac_site_file
2399 See \`config.log' for more details" "$LINENO" 5; }
2400   fi
2401 done
2402
2403 if test -r "$cache_file"; then
2404   # Some versions of bash will fail to source /dev/null (special files
2405   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2406   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2407     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2408 $as_echo "$as_me: loading cache $cache_file" >&6;}
2409     case $cache_file in
2410       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2411       *)                      . "./$cache_file";;
2412     esac
2413   fi
2414 else
2415   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2416 $as_echo "$as_me: creating cache $cache_file" >&6;}
2417   >$cache_file
2418 fi
2419
2420 # Check that the precious variables saved in the cache have kept the same
2421 # value.
2422 ac_cache_corrupted=false
2423 for ac_var in $ac_precious_vars; do
2424   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2425   eval ac_new_set=\$ac_env_${ac_var}_set
2426   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2427   eval ac_new_val=\$ac_env_${ac_var}_value
2428   case $ac_old_set,$ac_new_set in
2429     set,)
2430       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2431 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2432       ac_cache_corrupted=: ;;
2433     ,set)
2434       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2435 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2436       ac_cache_corrupted=: ;;
2437     ,);;
2438     *)
2439       if test "x$ac_old_val" != "x$ac_new_val"; then
2440         # differences in whitespace do not lead to failure.
2441         ac_old_val_w=`echo x $ac_old_val`
2442         ac_new_val_w=`echo x $ac_new_val`
2443         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2444           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2445 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2446           ac_cache_corrupted=:
2447         else
2448           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2449 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2450           eval $ac_var=\$ac_old_val
2451         fi
2452         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2453 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2454         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2455 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2456       fi;;
2457   esac
2458   # Pass precious variables to config.status.
2459   if test "$ac_new_set" = set; then
2460     case $ac_new_val in
2461     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2462     *) ac_arg=$ac_var=$ac_new_val ;;
2463     esac
2464     case " $ac_configure_args " in
2465       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2466       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2467     esac
2468   fi
2469 done
2470 if $ac_cache_corrupted; then
2471   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2472 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2473   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2474 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2475   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2476 fi
2477 ## -------------------- ##
2478 ## Main body of script. ##
2479 ## -------------------- ##
2480
2481 ac_ext=c
2482 ac_cpp='$CPP $CPPFLAGS'
2483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2486
2487
2488
2489 ac_config_headers="$ac_config_headers include/config.h"
2490
2491 ac_aux_dir=
2492 for ac_dir in tools "$srcdir"/tools; do
2493   if test -f "$ac_dir/install-sh"; then
2494     ac_aux_dir=$ac_dir
2495     ac_install_sh="$ac_aux_dir/install-sh -c"
2496     break
2497   elif test -f "$ac_dir/install.sh"; then
2498     ac_aux_dir=$ac_dir
2499     ac_install_sh="$ac_aux_dir/install.sh -c"
2500     break
2501   elif test -f "$ac_dir/shtool"; then
2502     ac_aux_dir=$ac_dir
2503     ac_install_sh="$ac_aux_dir/shtool install -c"
2504     break
2505   fi
2506 done
2507 if test -z "$ac_aux_dir"; then
2508   as_fn_error $? "cannot find install-sh, install.sh, or shtool in tools \"$srcdir\"/tools" "$LINENO" 5
2509 fi
2510
2511 # These three variables are undocumented and unsupported,
2512 # and are intended to be withdrawn in a future Autoconf release.
2513 # They can cause serious problems if a builder's source tree is in a directory
2514 # whose full name contains unusual characters.
2515 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2516 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2517 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2518
2519
2520
2521
2522
2523 # Check whether --enable-win16 was given.
2524 if test "${enable_win16+set}" = set; then :
2525   enableval=$enable_win16;
2526 fi
2527
2528 # Check whether --enable-win64 was given.
2529 if test "${enable_win64+set}" = set; then :
2530   enableval=$enable_win64;
2531 fi
2532
2533 # Check whether --enable-tests was given.
2534 if test "${enable_tests+set}" = set; then :
2535   enableval=$enable_tests;
2536 fi
2537
2538 # Check whether --enable-maintainer-mode was given.
2539 if test "${enable_maintainer_mode+set}" = set; then :
2540   enableval=$enable_maintainer_mode;
2541 fi
2542
2543
2544
2545 # Check whether --with-alsa was given.
2546 if test "${with_alsa+set}" = set; then :
2547   withval=$with_alsa; if test "x$withval" = "xno"; then ac_cv_header_sys_asoundlib_h=no; ac_cv_header_alsa_asoundlib_h=no; fi
2548 fi
2549
2550
2551 # Check whether --with-capi was given.
2552 if test "${with_capi+set}" = set; then :
2553   withval=$with_capi; if test "x$withval" = "xno"; then ac_cv_header_capi20_h=no; ac_cv_header_linux_capi_h=no; fi
2554 fi
2555
2556
2557 # Check whether --with-cms was given.
2558 if test "${with_cms+set}" = set; then :
2559   withval=$with_cms; if test "x$withval" = "xno"; then ac_cv_header_lcms_h=no; ac_cv_header_lcms_lcms_h=no; fi
2560 fi
2561
2562
2563 # Check whether --with-coreaudio was given.
2564 if test "${with_coreaudio+set}" = set; then :
2565   withval=$with_coreaudio; if test "x$withval" = "xno"; then ac_cv_header_CoreAudio_CoreAudio_h=no; fi
2566 fi
2567
2568
2569 # Check whether --with-cups was given.
2570 if test "${with_cups+set}" = set; then :
2571   withval=$with_cups;
2572 fi
2573
2574
2575 # Check whether --with-curses was given.
2576 if test "${with_curses+set}" = set; then :
2577   withval=$with_curses; if test "x$withval" = "xno"; then ac_cv_header_ncurses_h=no; ac_cv_header_curses_h=no; fi
2578 fi
2579
2580
2581 # Check whether --with-dbus was given.
2582 if test "${with_dbus+set}" = set; then :
2583   withval=$with_dbus;
2584 fi
2585
2586
2587 # Check whether --with-fontconfig was given.
2588 if test "${with_fontconfig+set}" = set; then :
2589   withval=$with_fontconfig;
2590 fi
2591
2592
2593 # Check whether --with-freetype was given.
2594 if test "${with_freetype+set}" = set; then :
2595   withval=$with_freetype;
2596 fi
2597
2598
2599 # Check whether --with-gettext was given.
2600 if test "${with_gettext+set}" = set; then :
2601   withval=$with_gettext;
2602 fi
2603
2604
2605 # Check whether --with-gettextpo was given.
2606 if test "${with_gettextpo+set}" = set; then :
2607   withval=$with_gettextpo; if test "x$withval" = "xno"; then ac_cv_header_gettext_po_h=no; fi
2608 fi
2609
2610
2611 # Check whether --with-gphoto was given.
2612 if test "${with_gphoto+set}" = set; then :
2613   withval=$with_gphoto;
2614 fi
2615
2616
2617 # Check whether --with-glu was given.
2618 if test "${with_glu+set}" = set; then :
2619   withval=$with_glu;
2620 fi
2621
2622
2623 # Check whether --with-gnutls was given.
2624 if test "${with_gnutls+set}" = set; then :
2625   withval=$with_gnutls;
2626 fi
2627
2628
2629 # Check whether --with-gsm was given.
2630 if test "${with_gsm+set}" = set; then :
2631   withval=$with_gsm; if test "x$withval" = "xno"; then ac_cv_header_gsm_h=no; ac_cv_header_gsm_gsm_h=no; fi
2632 fi
2633
2634
2635 # Check whether --with-gstreamer was given.
2636 if test "${with_gstreamer+set}" = set; then :
2637   withval=$with_gstreamer;
2638 fi
2639
2640
2641 # Check whether --with-hal was given.
2642 if test "${with_hal+set}" = set; then :
2643   withval=$with_hal;
2644 fi
2645
2646
2647 # Check whether --with-jpeg was given.
2648 if test "${with_jpeg+set}" = set; then :
2649   withval=$with_jpeg; if test "x$withval" = "xno"; then ac_cv_header_jpeglib_h=no; fi
2650 fi
2651
2652
2653 # Check whether --with-ldap was given.
2654 if test "${with_ldap+set}" = set; then :
2655   withval=$with_ldap; if test "x$withval" = "xno"; then ac_cv_header_ldap_h=no; ac_cv_header_lber_h=no; fi
2656 fi
2657
2658
2659 # Check whether --with-mpg123 was given.
2660 if test "${with_mpg123+set}" = set; then :
2661   withval=$with_mpg123; if test "x$withval" = "xno"; then ac_cv_header_mpg123_h=no; fi
2662 fi
2663
2664
2665 # Check whether --with-openal was given.
2666 if test "${with_openal+set}" = set; then :
2667   withval=$with_openal; if test "x$withval" = "xno"; then ac_cv_header_AL_al_h=no; ac_cv_header_OpenAL_al_h=no; fi
2668 fi
2669
2670
2671 # Check whether --with-opencl was given.
2672 if test "${with_opencl+set}" = set; then :
2673   withval=$with_opencl; if test "x$withval" = "xno"; then ac_cv_header_CL_cl_h=no; ac_cv_header_OpenCL_opencl_h=no; fi
2674 fi
2675
2676
2677 # Check whether --with-opengl was given.
2678 if test "${with_opengl+set}" = set; then :
2679   withval=$with_opengl;
2680 fi
2681
2682
2683 # Check whether --with-openssl was given.
2684 if test "${with_openssl+set}" = set; then :
2685   withval=$with_openssl; if test "x$withval" = "xno"; then ac_cv_header_openssl_err_h=no; ac_cv_header_openssl_ssl_h=no; fi
2686 fi
2687
2688
2689 # Check whether --with-osmesa was given.
2690 if test "${with_osmesa+set}" = set; then :
2691   withval=$with_osmesa;
2692 fi
2693
2694
2695 # Check whether --with-oss was given.
2696 if test "${with_oss+set}" = set; then :
2697   withval=$with_oss;
2698 fi
2699
2700
2701 # Check whether --with-png was given.
2702 if test "${with_png+set}" = set; then :
2703   withval=$with_png; if test "x$withval" = "xno"; then ac_cv_header_png_h=no; fi
2704 fi
2705
2706
2707 # Check whether --with-pthread was given.
2708 if test "${with_pthread+set}" = set; then :
2709   withval=$with_pthread; if test "x$withval" = "xno"; then ac_cv_header_pthread_h=no; fi
2710 fi
2711
2712
2713 # Check whether --with-sane was given.
2714 if test "${with_sane+set}" = set; then :
2715   withval=$with_sane;
2716 fi
2717
2718
2719 # Check whether --with-tiff was given.
2720 if test "${with_tiff+set}" = set; then :
2721   withval=$with_tiff; if test "x$withval" = "xno"; then ac_cv_header_tiffio_h=no; fi
2722 fi
2723
2724
2725 # Check whether --with-v4l was given.
2726 if test "${with_v4l+set}" = set; then :
2727   withval=$with_v4l;
2728 fi
2729
2730
2731 # Check whether --with-xcomposite was given.
2732 if test "${with_xcomposite+set}" = set; then :
2733   withval=$with_xcomposite; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xcomposite_h=no; fi
2734 fi
2735
2736
2737 # Check whether --with-xcursor was given.
2738 if test "${with_xcursor+set}" = set; then :
2739   withval=$with_xcursor; if test "x$withval" = "xno"; then ac_cv_header_X11_Xcursor_Xcursor_h=no; fi
2740 fi
2741
2742
2743 # Check whether --with-xinerama was given.
2744 if test "${with_xinerama+set}" = set; then :
2745   withval=$with_xinerama; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xinerama_h=no; fi
2746 fi
2747
2748
2749 # Check whether --with-xinput was given.
2750 if test "${with_xinput+set}" = set; then :
2751   withval=$with_xinput; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput_h=no; fi
2752 fi
2753
2754
2755 # Check whether --with-xinput2 was given.
2756 if test "${with_xinput2+set}" = set; then :
2757   withval=$with_xinput2; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput2_h=no; fi
2758 fi
2759
2760
2761 # Check whether --with-xml was given.
2762 if test "${with_xml+set}" = set; then :
2763   withval=$with_xml;
2764 fi
2765
2766
2767 # Check whether --with-xrandr was given.
2768 if test "${with_xrandr+set}" = set; then :
2769   withval=$with_xrandr; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrandr_h=no; fi
2770 fi
2771
2772
2773 # Check whether --with-xrender was given.
2774 if test "${with_xrender+set}" = set; then :
2775   withval=$with_xrender; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrender_h=no; fi
2776 fi
2777
2778
2779 # Check whether --with-xshape was given.
2780 if test "${with_xshape+set}" = set; then :
2781   withval=$with_xshape; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_shape_h=no; fi
2782 fi
2783
2784
2785 # Check whether --with-xshm was given.
2786 if test "${with_xshm+set}" = set; then :
2787   withval=$with_xshm; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XShm_h=no; fi
2788 fi
2789
2790
2791 # Check whether --with-xslt was given.
2792 if test "${with_xslt+set}" = set; then :
2793   withval=$with_xslt;
2794 fi
2795
2796
2797 # Check whether --with-xxf86vm was given.
2798 if test "${with_xxf86vm+set}" = set; then :
2799   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
2800 fi
2801
2802
2803 # Check whether --with-zlib was given.
2804 if test "${with_zlib+set}" = set; then :
2805   withval=$with_zlib; if test "x$withval" = "xno"; then ac_cv_header_zlib_h=no; fi
2806 fi
2807
2808
2809
2810 # Check whether --with-wine-tools was given.
2811 if test "${with_wine_tools+set}" = set; then :
2812   withval=$with_wine_tools;
2813 fi
2814
2815
2816 # Check whether --with-wine64 was given.
2817 if test "${with_wine64+set}" = set; then :
2818   withval=$with_wine64;
2819 fi
2820
2821
2822 # Make sure we can run config.sub.
2823 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2824   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2825
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2827 $as_echo_n "checking build system type... " >&6; }
2828 if ${ac_cv_build+:} false; then :
2829   $as_echo_n "(cached) " >&6
2830 else
2831   ac_build_alias=$build_alias
2832 test "x$ac_build_alias" = x &&
2833   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2834 test "x$ac_build_alias" = x &&
2835   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2836 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2837   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2838
2839 fi
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2841 $as_echo "$ac_cv_build" >&6; }
2842 case $ac_cv_build in
2843 *-*-*) ;;
2844 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2845 esac
2846 build=$ac_cv_build
2847 ac_save_IFS=$IFS; IFS='-'
2848 set x $ac_cv_build
2849 shift
2850 build_cpu=$1
2851 build_vendor=$2
2852 shift; shift
2853 # Remember, the first character of IFS is used to create $*,
2854 # except with old shells:
2855 build_os=$*
2856 IFS=$ac_save_IFS
2857 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2858
2859
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2861 $as_echo_n "checking host system type... " >&6; }
2862 if ${ac_cv_host+:} false; then :
2863   $as_echo_n "(cached) " >&6
2864 else
2865   if test "x$host_alias" = x; then
2866   ac_cv_host=$ac_cv_build
2867 else
2868   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2869     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2870 fi
2871
2872 fi
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2874 $as_echo "$ac_cv_host" >&6; }
2875 case $ac_cv_host in
2876 *-*-*) ;;
2877 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2878 esac
2879 host=$ac_cv_host
2880 ac_save_IFS=$IFS; IFS='-'
2881 set x $ac_cv_host
2882 shift
2883 host_cpu=$1
2884 host_vendor=$2
2885 shift; shift
2886 # Remember, the first character of IFS is used to create $*,
2887 # except with old shells:
2888 host_os=$*
2889 IFS=$ac_save_IFS
2890 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2891
2892
2893
2894 case "$srcdir" in
2895  .) ;;
2896  *) if test -f "$srcdir/Makefile" -o -f "$srcdir/include/config.h"; then
2897       as_fn_error $? "you are building out of the source tree, but the source tree contains object files.
2898 You need to run 'make distclean' in the source tree first." "$LINENO" 5
2899     fi ;;
2900 esac
2901
2902
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2904 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2905 set x ${MAKE-make}
2906 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2907 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2908   $as_echo_n "(cached) " >&6
2909 else
2910   cat >conftest.make <<\_ACEOF
2911 SHELL = /bin/sh
2912 all:
2913         @echo '@@@%%%=$(MAKE)=@@@%%%'
2914 _ACEOF
2915 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2916 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2917   *@@@%%%=?*=@@@%%%*)
2918     eval ac_cv_prog_make_${ac_make}_set=yes;;
2919   *)
2920     eval ac_cv_prog_make_${ac_make}_set=no;;
2921 esac
2922 rm -f conftest.make
2923 fi
2924 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2925   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2926 $as_echo "yes" >&6; }
2927   SET_MAKE=
2928 else
2929   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2930 $as_echo "no" >&6; }
2931   SET_MAKE="MAKE=${MAKE-make}"
2932 fi
2933
2934 ac_ext=c
2935 ac_cpp='$CPP $CPPFLAGS'
2936 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2939 if test -n "$ac_tool_prefix"; then
2940   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2941 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2943 $as_echo_n "checking for $ac_word... " >&6; }
2944 if ${ac_cv_prog_CC+:} false; then :
2945   $as_echo_n "(cached) " >&6
2946 else
2947   if test -n "$CC"; then
2948   ac_cv_prog_CC="$CC" # Let the user override the test.
2949 else
2950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2951 for as_dir in $PATH
2952 do
2953   IFS=$as_save_IFS
2954   test -z "$as_dir" && as_dir=.
2955     for ac_exec_ext in '' $ac_executable_extensions; do
2956   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2957     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2958     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2959     break 2
2960   fi
2961 done
2962   done
2963 IFS=$as_save_IFS
2964
2965 fi
2966 fi
2967 CC=$ac_cv_prog_CC
2968 if test -n "$CC"; then
2969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2970 $as_echo "$CC" >&6; }
2971 else
2972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2973 $as_echo "no" >&6; }
2974 fi
2975
2976
2977 fi
2978 if test -z "$ac_cv_prog_CC"; then
2979   ac_ct_CC=$CC
2980   # Extract the first word of "gcc", so it can be a program name with args.
2981 set dummy gcc; ac_word=$2
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2983 $as_echo_n "checking for $ac_word... " >&6; }
2984 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2985   $as_echo_n "(cached) " >&6
2986 else
2987   if test -n "$ac_ct_CC"; then
2988   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2989 else
2990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2991 for as_dir in $PATH
2992 do
2993   IFS=$as_save_IFS
2994   test -z "$as_dir" && as_dir=.
2995     for ac_exec_ext in '' $ac_executable_extensions; do
2996   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2997     ac_cv_prog_ac_ct_CC="gcc"
2998     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2999     break 2
3000   fi
3001 done
3002   done
3003 IFS=$as_save_IFS
3004
3005 fi
3006 fi
3007 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3008 if test -n "$ac_ct_CC"; then
3009   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3010 $as_echo "$ac_ct_CC" >&6; }
3011 else
3012   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3013 $as_echo "no" >&6; }
3014 fi
3015
3016   if test "x$ac_ct_CC" = x; then
3017     CC=""
3018   else
3019     case $cross_compiling:$ac_tool_warned in
3020 yes:)
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3022 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3023 ac_tool_warned=yes ;;
3024 esac
3025     CC=$ac_ct_CC
3026   fi
3027 else
3028   CC="$ac_cv_prog_CC"
3029 fi
3030
3031 if test -z "$CC"; then
3032           if test -n "$ac_tool_prefix"; then
3033     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3034 set dummy ${ac_tool_prefix}cc; ac_word=$2
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3036 $as_echo_n "checking for $ac_word... " >&6; }
3037 if ${ac_cv_prog_CC+:} false; then :
3038   $as_echo_n "(cached) " >&6
3039 else
3040   if test -n "$CC"; then
3041   ac_cv_prog_CC="$CC" # Let the user override the test.
3042 else
3043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3044 for as_dir in $PATH
3045 do
3046   IFS=$as_save_IFS
3047   test -z "$as_dir" && as_dir=.
3048     for ac_exec_ext in '' $ac_executable_extensions; do
3049   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3050     ac_cv_prog_CC="${ac_tool_prefix}cc"
3051     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3052     break 2
3053   fi
3054 done
3055   done
3056 IFS=$as_save_IFS
3057
3058 fi
3059 fi
3060 CC=$ac_cv_prog_CC
3061 if test -n "$CC"; then
3062   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3063 $as_echo "$CC" >&6; }
3064 else
3065   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3066 $as_echo "no" >&6; }
3067 fi
3068
3069
3070   fi
3071 fi
3072 if test -z "$CC"; then
3073   # Extract the first word of "cc", so it can be a program name with args.
3074 set dummy cc; ac_word=$2
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3076 $as_echo_n "checking for $ac_word... " >&6; }
3077 if ${ac_cv_prog_CC+:} false; then :
3078   $as_echo_n "(cached) " >&6
3079 else
3080   if test -n "$CC"; then
3081   ac_cv_prog_CC="$CC" # Let the user override the test.
3082 else
3083   ac_prog_rejected=no
3084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3085 for as_dir in $PATH
3086 do
3087   IFS=$as_save_IFS
3088   test -z "$as_dir" && as_dir=.
3089     for ac_exec_ext in '' $ac_executable_extensions; do
3090   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3091     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3092        ac_prog_rejected=yes
3093        continue
3094      fi
3095     ac_cv_prog_CC="cc"
3096     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3097     break 2
3098   fi
3099 done
3100   done
3101 IFS=$as_save_IFS
3102
3103 if test $ac_prog_rejected = yes; then
3104   # We found a bogon in the path, so make sure we never use it.
3105   set dummy $ac_cv_prog_CC
3106   shift
3107   if test $# != 0; then
3108     # We chose a different compiler from the bogus one.
3109     # However, it has the same basename, so the bogon will be chosen
3110     # first if we set CC to just the basename; use the full file name.
3111     shift
3112     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3113   fi
3114 fi
3115 fi
3116 fi
3117 CC=$ac_cv_prog_CC
3118 if test -n "$CC"; then
3119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3120 $as_echo "$CC" >&6; }
3121 else
3122   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3123 $as_echo "no" >&6; }
3124 fi
3125
3126
3127 fi
3128 if test -z "$CC"; then
3129   if test -n "$ac_tool_prefix"; then
3130   for ac_prog in cl.exe
3131   do
3132     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3133 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3135 $as_echo_n "checking for $ac_word... " >&6; }
3136 if ${ac_cv_prog_CC+:} false; then :
3137   $as_echo_n "(cached) " >&6
3138 else
3139   if test -n "$CC"; then
3140   ac_cv_prog_CC="$CC" # Let the user override the test.
3141 else
3142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3143 for as_dir in $PATH
3144 do
3145   IFS=$as_save_IFS
3146   test -z "$as_dir" && as_dir=.
3147     for ac_exec_ext in '' $ac_executable_extensions; do
3148   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3149     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3150     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3151     break 2
3152   fi
3153 done
3154   done
3155 IFS=$as_save_IFS
3156
3157 fi
3158 fi
3159 CC=$ac_cv_prog_CC
3160 if test -n "$CC"; then
3161   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3162 $as_echo "$CC" >&6; }
3163 else
3164   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3165 $as_echo "no" >&6; }
3166 fi
3167
3168
3169     test -n "$CC" && break
3170   done
3171 fi
3172 if test -z "$CC"; then
3173   ac_ct_CC=$CC
3174   for ac_prog in cl.exe
3175 do
3176   # Extract the first word of "$ac_prog", so it can be a program name with args.
3177 set dummy $ac_prog; ac_word=$2
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3179 $as_echo_n "checking for $ac_word... " >&6; }
3180 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3181   $as_echo_n "(cached) " >&6
3182 else
3183   if test -n "$ac_ct_CC"; then
3184   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3185 else
3186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3187 for as_dir in $PATH
3188 do
3189   IFS=$as_save_IFS
3190   test -z "$as_dir" && as_dir=.
3191     for ac_exec_ext in '' $ac_executable_extensions; do
3192   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3193     ac_cv_prog_ac_ct_CC="$ac_prog"
3194     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3195     break 2
3196   fi
3197 done
3198   done
3199 IFS=$as_save_IFS
3200
3201 fi
3202 fi
3203 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3204 if test -n "$ac_ct_CC"; then
3205   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3206 $as_echo "$ac_ct_CC" >&6; }
3207 else
3208   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3209 $as_echo "no" >&6; }
3210 fi
3211
3212
3213   test -n "$ac_ct_CC" && break
3214 done
3215
3216   if test "x$ac_ct_CC" = x; then
3217     CC=""
3218   else
3219     case $cross_compiling:$ac_tool_warned in
3220 yes:)
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3222 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3223 ac_tool_warned=yes ;;
3224 esac
3225     CC=$ac_ct_CC
3226   fi
3227 fi
3228
3229 fi
3230
3231
3232 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3233 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3234 as_fn_error $? "no acceptable C compiler found in \$PATH
3235 See \`config.log' for more details" "$LINENO" 5; }
3236
3237 # Provide some information about the compiler.
3238 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3239 set X $ac_compile
3240 ac_compiler=$2
3241 for ac_option in --version -v -V -qversion; do
3242   { { ac_try="$ac_compiler $ac_option >&5"
3243 case "(($ac_try" in
3244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3245   *) ac_try_echo=$ac_try;;
3246 esac
3247 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3248 $as_echo "$ac_try_echo"; } >&5
3249   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3250   ac_status=$?
3251   if test -s conftest.err; then
3252     sed '10a\
3253 ... rest of stderr output deleted ...
3254          10q' conftest.err >conftest.er1
3255     cat conftest.er1 >&5
3256   fi
3257   rm -f conftest.er1 conftest.err
3258   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3259   test $ac_status = 0; }
3260 done
3261
3262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3263 /* end confdefs.h.  */
3264
3265 int
3266 main ()
3267 {
3268
3269   ;
3270   return 0;
3271 }
3272 _ACEOF
3273 ac_clean_files_save=$ac_clean_files
3274 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3275 # Try to create an executable without -o first, disregard a.out.
3276 # It will help us diagnose broken compilers, and finding out an intuition
3277 # of exeext.
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3279 $as_echo_n "checking whether the C compiler works... " >&6; }
3280 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3281
3282 # The possible output files:
3283 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3284
3285 ac_rmfiles=
3286 for ac_file in $ac_files
3287 do
3288   case $ac_file in
3289     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3290     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3291   esac
3292 done
3293 rm -f $ac_rmfiles
3294
3295 if { { ac_try="$ac_link_default"
3296 case "(($ac_try" in
3297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3298   *) ac_try_echo=$ac_try;;
3299 esac
3300 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3301 $as_echo "$ac_try_echo"; } >&5
3302   (eval "$ac_link_default") 2>&5
3303   ac_status=$?
3304   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3305   test $ac_status = 0; }; then :
3306   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3307 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3308 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3309 # so that the user can short-circuit this test for compilers unknown to
3310 # Autoconf.
3311 for ac_file in $ac_files ''
3312 do
3313   test -f "$ac_file" || continue
3314   case $ac_file in
3315     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3316         ;;
3317     [ab].out )
3318         # We found the default executable, but exeext='' is most
3319         # certainly right.
3320         break;;
3321     *.* )
3322         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3323         then :; else
3324            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3325         fi
3326         # We set ac_cv_exeext here because the later test for it is not
3327         # safe: cross compilers may not add the suffix if given an `-o'
3328         # argument, so we may need to know it at that point already.
3329         # Even if this section looks crufty: it has the advantage of
3330         # actually working.
3331         break;;
3332     * )
3333         break;;
3334   esac
3335 done
3336 test "$ac_cv_exeext" = no && ac_cv_exeext=
3337
3338 else
3339   ac_file=''
3340 fi
3341 if test -z "$ac_file"; then :
3342   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3343 $as_echo "no" >&6; }
3344 $as_echo "$as_me: failed program was:" >&5
3345 sed 's/^/| /' conftest.$ac_ext >&5
3346
3347 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3348 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3349 as_fn_error 77 "C compiler cannot create executables
3350 See \`config.log' for more details" "$LINENO" 5; }
3351 else
3352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3353 $as_echo "yes" >&6; }
3354 fi
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3356 $as_echo_n "checking for C compiler default output file name... " >&6; }
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3358 $as_echo "$ac_file" >&6; }
3359 ac_exeext=$ac_cv_exeext
3360
3361 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3362 ac_clean_files=$ac_clean_files_save
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3364 $as_echo_n "checking for suffix of executables... " >&6; }
3365 if { { ac_try="$ac_link"
3366 case "(($ac_try" in
3367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3368   *) ac_try_echo=$ac_try;;
3369 esac
3370 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3371 $as_echo "$ac_try_echo"; } >&5
3372   (eval "$ac_link") 2>&5
3373   ac_status=$?
3374   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3375   test $ac_status = 0; }; then :
3376   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3377 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3378 # work properly (i.e., refer to `conftest.exe'), while it won't with
3379 # `rm'.
3380 for ac_file in conftest.exe conftest conftest.*; do
3381   test -f "$ac_file" || continue
3382   case $ac_file in
3383     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3384     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3385           break;;
3386     * ) break;;
3387   esac
3388 done
3389 else
3390   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3391 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3392 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3393 See \`config.log' for more details" "$LINENO" 5; }
3394 fi
3395 rm -f conftest conftest$ac_cv_exeext
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3397 $as_echo "$ac_cv_exeext" >&6; }
3398
3399 rm -f conftest.$ac_ext
3400 EXEEXT=$ac_cv_exeext
3401 ac_exeext=$EXEEXT
3402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3403 /* end confdefs.h.  */
3404 #include <stdio.h>
3405 int
3406 main ()
3407 {
3408 FILE *f = fopen ("conftest.out", "w");
3409  return ferror (f) || fclose (f) != 0;
3410
3411   ;
3412   return 0;
3413 }
3414 _ACEOF
3415 ac_clean_files="$ac_clean_files conftest.out"
3416 # Check that the compiler produces executables we can run.  If not, either
3417 # the compiler is broken, or we cross compile.
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3419 $as_echo_n "checking whether we are cross compiling... " >&6; }
3420 if test "$cross_compiling" != yes; then
3421   { { ac_try="$ac_link"
3422 case "(($ac_try" in
3423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3424   *) ac_try_echo=$ac_try;;
3425 esac
3426 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3427 $as_echo "$ac_try_echo"; } >&5
3428   (eval "$ac_link") 2>&5
3429   ac_status=$?
3430   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3431   test $ac_status = 0; }
3432   if { ac_try='./conftest$ac_cv_exeext'
3433   { { case "(($ac_try" in
3434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3435   *) ac_try_echo=$ac_try;;
3436 esac
3437 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3438 $as_echo "$ac_try_echo"; } >&5
3439   (eval "$ac_try") 2>&5
3440   ac_status=$?
3441   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3442   test $ac_status = 0; }; }; then
3443     cross_compiling=no
3444   else
3445     if test "$cross_compiling" = maybe; then
3446         cross_compiling=yes
3447     else
3448         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3449 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3450 as_fn_error $? "cannot run C compiled programs.
3451 If you meant to cross compile, use \`--host'.
3452 See \`config.log' for more details" "$LINENO" 5; }
3453     fi
3454   fi
3455 fi
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3457 $as_echo "$cross_compiling" >&6; }
3458
3459 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3460 ac_clean_files=$ac_clean_files_save
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3462 $as_echo_n "checking for suffix of object files... " >&6; }
3463 if ${ac_cv_objext+:} false; then :
3464   $as_echo_n "(cached) " >&6
3465 else
3466   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3467 /* end confdefs.h.  */
3468
3469 int
3470 main ()
3471 {
3472
3473   ;
3474   return 0;
3475 }
3476 _ACEOF
3477 rm -f conftest.o conftest.obj
3478 if { { ac_try="$ac_compile"
3479 case "(($ac_try" in
3480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3481   *) ac_try_echo=$ac_try;;
3482 esac
3483 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3484 $as_echo "$ac_try_echo"; } >&5
3485   (eval "$ac_compile") 2>&5
3486   ac_status=$?
3487   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3488   test $ac_status = 0; }; then :
3489   for ac_file in conftest.o conftest.obj conftest.*; do
3490   test -f "$ac_file" || continue;
3491   case $ac_file in
3492     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3493     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3494        break;;
3495   esac
3496 done
3497 else
3498   $as_echo "$as_me: failed program was:" >&5
3499 sed 's/^/| /' conftest.$ac_ext >&5
3500
3501 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3502 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3503 as_fn_error $? "cannot compute suffix of object files: cannot compile
3504 See \`config.log' for more details" "$LINENO" 5; }
3505 fi
3506 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3507 fi
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3509 $as_echo "$ac_cv_objext" >&6; }
3510 OBJEXT=$ac_cv_objext
3511 ac_objext=$OBJEXT
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3513 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3514 if ${ac_cv_c_compiler_gnu+:} false; then :
3515   $as_echo_n "(cached) " >&6
3516 else
3517   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3518 /* end confdefs.h.  */
3519
3520 int
3521 main ()
3522 {
3523 #ifndef __GNUC__
3524        choke me
3525 #endif
3526
3527   ;
3528   return 0;
3529 }
3530 _ACEOF
3531 if ac_fn_c_try_compile "$LINENO"; then :
3532   ac_compiler_gnu=yes
3533 else
3534   ac_compiler_gnu=no
3535 fi
3536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3537 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3538
3539 fi
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3541 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3542 if test $ac_compiler_gnu = yes; then
3543   GCC=yes
3544 else
3545   GCC=
3546 fi
3547 ac_test_CFLAGS=${CFLAGS+set}
3548 ac_save_CFLAGS=$CFLAGS
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3550 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3551 if ${ac_cv_prog_cc_g+:} false; then :
3552   $as_echo_n "(cached) " >&6
3553 else
3554   ac_save_c_werror_flag=$ac_c_werror_flag
3555    ac_c_werror_flag=yes
3556    ac_cv_prog_cc_g=no
3557    CFLAGS="-g"
3558    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3559 /* end confdefs.h.  */
3560
3561 int
3562 main ()
3563 {
3564
3565   ;
3566   return 0;
3567 }
3568 _ACEOF
3569 if ac_fn_c_try_compile "$LINENO"; then :
3570   ac_cv_prog_cc_g=yes
3571 else
3572   CFLAGS=""
3573       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3574 /* end confdefs.h.  */
3575
3576 int
3577 main ()
3578 {
3579
3580   ;
3581   return 0;
3582 }
3583 _ACEOF
3584 if ac_fn_c_try_compile "$LINENO"; then :
3585
3586 else
3587   ac_c_werror_flag=$ac_save_c_werror_flag
3588          CFLAGS="-g"
3589          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3590 /* end confdefs.h.  */
3591
3592 int
3593 main ()
3594 {
3595
3596   ;
3597   return 0;
3598 }
3599 _ACEOF
3600 if ac_fn_c_try_compile "$LINENO"; then :
3601   ac_cv_prog_cc_g=yes
3602 fi
3603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3604 fi
3605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3606 fi
3607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3608    ac_c_werror_flag=$ac_save_c_werror_flag
3609 fi
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3611 $as_echo "$ac_cv_prog_cc_g" >&6; }
3612 if test "$ac_test_CFLAGS" = set; then
3613   CFLAGS=$ac_save_CFLAGS
3614 elif test $ac_cv_prog_cc_g = yes; then
3615   if test "$GCC" = yes; then
3616     CFLAGS="-g -O2"
3617   else
3618     CFLAGS="-g"
3619   fi
3620 else
3621   if test "$GCC" = yes; then
3622     CFLAGS="-O2"
3623   else
3624     CFLAGS=
3625   fi
3626 fi
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3628 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3629 if ${ac_cv_prog_cc_c89+:} false; then :
3630   $as_echo_n "(cached) " >&6
3631 else
3632   ac_cv_prog_cc_c89=no
3633 ac_save_CC=$CC
3634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3635 /* end confdefs.h.  */
3636 #include <stdarg.h>
3637 #include <stdio.h>
3638 struct stat;
3639 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3640 struct buf { int x; };
3641 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3642 static char *e (p, i)
3643      char **p;
3644      int i;
3645 {
3646   return p[i];
3647 }
3648 static char *f (char * (*g) (char **, int), char **p, ...)
3649 {
3650   char *s;
3651   va_list v;
3652   va_start (v,p);
3653   s = g (p, va_arg (v,int));
3654   va_end (v);
3655   return s;
3656 }
3657
3658 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3659    function prototypes and stuff, but not '\xHH' hex character constants.
3660    These don't provoke an error unfortunately, instead are silently treated
3661    as 'x'.  The following induces an error, until -std is added to get
3662    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3663    array size at least.  It's necessary to write '\x00'==0 to get something
3664    that's true only with -std.  */
3665 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3666
3667 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3668    inside strings and character constants.  */
3669 #define FOO(x) 'x'
3670 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3671
3672 int test (int i, double x);
3673 struct s1 {int (*f) (int a);};
3674 struct s2 {int (*f) (double a);};
3675 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3676 int argc;
3677 char **argv;
3678 int
3679 main ()
3680 {
3681 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3682   ;
3683   return 0;
3684 }
3685 _ACEOF
3686 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3687         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3688 do
3689   CC="$ac_save_CC $ac_arg"
3690   if ac_fn_c_try_compile "$LINENO"; then :
3691   ac_cv_prog_cc_c89=$ac_arg
3692 fi
3693 rm -f core conftest.err conftest.$ac_objext
3694   test "x$ac_cv_prog_cc_c89" != "xno" && break
3695 done
3696 rm -f conftest.$ac_ext
3697 CC=$ac_save_CC
3698
3699 fi
3700 # AC_CACHE_VAL
3701 case "x$ac_cv_prog_cc_c89" in
3702   x)
3703     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3704 $as_echo "none needed" >&6; } ;;
3705   xno)
3706     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3707 $as_echo "unsupported" >&6; } ;;
3708   *)
3709     CC="$CC $ac_cv_prog_cc_c89"
3710     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3711 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3712 esac
3713 if test "x$ac_cv_prog_cc_c89" != xno; then :
3714
3715 fi
3716
3717 ac_ext=c
3718 ac_cpp='$CPP $CPPFLAGS'
3719 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3720 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3721 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3722
3723 ac_ext=cpp
3724 ac_cpp='$CXXCPP $CPPFLAGS'
3725 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3726 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3727 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3728 if test -z "$CXX"; then
3729   if test -n "$CCC"; then
3730     CXX=$CCC
3731   else
3732     if test -n "$ac_tool_prefix"; then
3733   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3734   do
3735     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3736 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3738 $as_echo_n "checking for $ac_word... " >&6; }
3739 if ${ac_cv_prog_CXX+:} false; then :
3740   $as_echo_n "(cached) " >&6
3741 else
3742   if test -n "$CXX"; then
3743   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3744 else
3745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3746 for as_dir in $PATH
3747 do
3748   IFS=$as_save_IFS
3749   test -z "$as_dir" && as_dir=.
3750     for ac_exec_ext in '' $ac_executable_extensions; do
3751   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3752     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3753     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3754     break 2
3755   fi
3756 done
3757   done
3758 IFS=$as_save_IFS
3759
3760 fi
3761 fi
3762 CXX=$ac_cv_prog_CXX
3763 if test -n "$CXX"; then
3764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3765 $as_echo "$CXX" >&6; }
3766 else
3767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3768 $as_echo "no" >&6; }
3769 fi
3770
3771
3772     test -n "$CXX" && break
3773   done
3774 fi
3775 if test -z "$CXX"; then
3776   ac_ct_CXX=$CXX
3777   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3778 do
3779   # Extract the first word of "$ac_prog", so it can be a program name with args.
3780 set dummy $ac_prog; ac_word=$2
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3782 $as_echo_n "checking for $ac_word... " >&6; }
3783 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3784   $as_echo_n "(cached) " >&6
3785 else
3786   if test -n "$ac_ct_CXX"; then
3787   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3788 else
3789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3790 for as_dir in $PATH
3791 do
3792   IFS=$as_save_IFS
3793   test -z "$as_dir" && as_dir=.
3794     for ac_exec_ext in '' $ac_executable_extensions; do
3795   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3796     ac_cv_prog_ac_ct_CXX="$ac_prog"
3797     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3798     break 2
3799   fi
3800 done
3801   done
3802 IFS=$as_save_IFS
3803
3804 fi
3805 fi
3806 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3807 if test -n "$ac_ct_CXX"; then
3808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3809 $as_echo "$ac_ct_CXX" >&6; }
3810 else
3811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3812 $as_echo "no" >&6; }
3813 fi
3814
3815
3816   test -n "$ac_ct_CXX" && break
3817 done
3818
3819   if test "x$ac_ct_CXX" = x; then
3820     CXX="g++"
3821   else
3822     case $cross_compiling:$ac_tool_warned in
3823 yes:)
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3825 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3826 ac_tool_warned=yes ;;
3827 esac
3828     CXX=$ac_ct_CXX
3829   fi
3830 fi
3831
3832   fi
3833 fi
3834 # Provide some information about the compiler.
3835 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3836 set X $ac_compile
3837 ac_compiler=$2
3838 for ac_option in --version -v -V -qversion; do
3839   { { ac_try="$ac_compiler $ac_option >&5"
3840 case "(($ac_try" in
3841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3842   *) ac_try_echo=$ac_try;;
3843 esac
3844 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3845 $as_echo "$ac_try_echo"; } >&5
3846   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3847   ac_status=$?
3848   if test -s conftest.err; then
3849     sed '10a\
3850 ... rest of stderr output deleted ...
3851          10q' conftest.err >conftest.er1
3852     cat conftest.er1 >&5
3853   fi
3854   rm -f conftest.er1 conftest.err
3855   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3856   test $ac_status = 0; }
3857 done
3858
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3860 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3861 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3862   $as_echo_n "(cached) " >&6
3863 else
3864   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3865 /* end confdefs.h.  */
3866
3867 int
3868 main ()
3869 {
3870 #ifndef __GNUC__
3871        choke me
3872 #endif
3873
3874   ;
3875   return 0;
3876 }
3877 _ACEOF
3878 if ac_fn_cxx_try_compile "$LINENO"; then :
3879   ac_compiler_gnu=yes
3880 else
3881   ac_compiler_gnu=no
3882 fi
3883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3884 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3885
3886 fi
3887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3888 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3889 if test $ac_compiler_gnu = yes; then
3890   GXX=yes
3891 else
3892   GXX=
3893 fi
3894 ac_test_CXXFLAGS=${CXXFLAGS+set}
3895 ac_save_CXXFLAGS=$CXXFLAGS
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3897 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3898 if ${ac_cv_prog_cxx_g+:} false; then :
3899   $as_echo_n "(cached) " >&6
3900 else
3901   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3902    ac_cxx_werror_flag=yes
3903    ac_cv_prog_cxx_g=no
3904    CXXFLAGS="-g"
3905    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3906 /* end confdefs.h.  */
3907
3908 int
3909 main ()
3910 {
3911
3912   ;
3913   return 0;
3914 }
3915 _ACEOF
3916 if ac_fn_cxx_try_compile "$LINENO"; then :
3917   ac_cv_prog_cxx_g=yes
3918 else
3919   CXXFLAGS=""
3920       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3921 /* end confdefs.h.  */
3922
3923 int
3924 main ()
3925 {
3926
3927   ;
3928   return 0;
3929 }
3930 _ACEOF
3931 if ac_fn_cxx_try_compile "$LINENO"; then :
3932
3933 else
3934   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3935          CXXFLAGS="-g"
3936          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3937 /* end confdefs.h.  */
3938
3939 int
3940 main ()
3941 {
3942
3943   ;
3944   return 0;
3945 }
3946 _ACEOF
3947 if ac_fn_cxx_try_compile "$LINENO"; then :
3948   ac_cv_prog_cxx_g=yes
3949 fi
3950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3951 fi
3952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3953 fi
3954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3955    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3956 fi
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3958 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3959 if test "$ac_test_CXXFLAGS" = set; then
3960   CXXFLAGS=$ac_save_CXXFLAGS
3961 elif test $ac_cv_prog_cxx_g = yes; then
3962   if test "$GXX" = yes; then
3963     CXXFLAGS="-g -O2"
3964   else
3965     CXXFLAGS="-g"
3966   fi
3967 else
3968   if test "$GXX" = yes; then
3969     CXXFLAGS="-O2"
3970   else
3971     CXXFLAGS=
3972   fi
3973 fi
3974 ac_ext=c
3975 ac_cpp='$CPP $CPPFLAGS'
3976 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3977 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3978 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3979
3980 if test -n "$ac_tool_prefix"; then
3981   # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
3982 set dummy ${ac_tool_prefix}cpp; ac_word=$2
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3984 $as_echo_n "checking for $ac_word... " >&6; }
3985 if ${ac_cv_prog_CPPBIN+:} false; then :
3986   $as_echo_n "(cached) " >&6
3987 else
3988   if test -n "$CPPBIN"; then
3989   ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test.
3990 else
3991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3992 for as_dir in $PATH
3993 do
3994   IFS=$as_save_IFS
3995   test -z "$as_dir" && as_dir=.
3996     for ac_exec_ext in '' $ac_executable_extensions; do
3997   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3998     ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp"
3999     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4000     break 2
4001   fi
4002 done
4003   done
4004 IFS=$as_save_IFS
4005
4006 fi
4007 fi
4008 CPPBIN=$ac_cv_prog_CPPBIN
4009 if test -n "$CPPBIN"; then
4010   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPPBIN" >&5
4011 $as_echo "$CPPBIN" >&6; }
4012 else
4013   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4014 $as_echo "no" >&6; }
4015 fi
4016
4017
4018 fi
4019 if test -z "$ac_cv_prog_CPPBIN"; then
4020   ac_ct_CPPBIN=$CPPBIN
4021   # Extract the first word of "cpp", so it can be a program name with args.
4022 set dummy cpp; ac_word=$2
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4024 $as_echo_n "checking for $ac_word... " >&6; }
4025 if ${ac_cv_prog_ac_ct_CPPBIN+:} false; then :
4026   $as_echo_n "(cached) " >&6
4027 else
4028   if test -n "$ac_ct_CPPBIN"; then
4029   ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test.
4030 else
4031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4032 for as_dir in $PATH
4033 do
4034   IFS=$as_save_IFS
4035   test -z "$as_dir" && as_dir=.
4036     for ac_exec_ext in '' $ac_executable_extensions; do
4037   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4038     ac_cv_prog_ac_ct_CPPBIN="cpp"
4039     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4040     break 2
4041   fi
4042 done
4043   done
4044 IFS=$as_save_IFS
4045
4046 fi
4047 fi
4048 ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN
4049 if test -n "$ac_ct_CPPBIN"; then
4050   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CPPBIN" >&5
4051 $as_echo "$ac_ct_CPPBIN" >&6; }
4052 else
4053   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4054 $as_echo "no" >&6; }
4055 fi
4056
4057   if test "x$ac_ct_CPPBIN" = x; then
4058     CPPBIN="cpp"
4059   else
4060     case $cross_compiling:$ac_tool_warned in
4061 yes:)
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4063 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4064 ac_tool_warned=yes ;;
4065 esac
4066     CPPBIN=$ac_ct_CPPBIN
4067   fi
4068 else
4069   CPPBIN="$ac_cv_prog_CPPBIN"
4070 fi
4071
4072
4073 cat >>confdefs.h <<_ACEOF
4074 #define EXEEXT "$ac_exeext"
4075 _ACEOF
4076
4077
4078 case $host in
4079   *-darwin*)
4080     if test "x$enable_win64" = "xyes"
4081     then
4082       CC="$CC -m64"
4083       CXX="$CXX -m64"
4084       host_cpu="x86_64"
4085       notice_platform="64-bit "
4086       TARGETFLAGS="-m64"
4087
4088     else
4089       CC="$CC -m32"
4090       CXX="$CXX -m32"
4091       host_cpu="i386"
4092       notice_platform="32-bit "
4093       TARGETFLAGS="-m32"
4094
4095       enable_win16=${enable_win16:-yes}
4096     fi
4097     with_fontconfig=${with_fontconfig:-no}
4098     ;;
4099   x86_64*)
4100     if test "x$enable_win64" != "xyes" -a "$cross_compiling" != "yes"
4101     then
4102       CC="$CC -m32"
4103       CXX="$CXX -m32"
4104       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC works" >&5
4105 $as_echo_n "checking whether $CC works... " >&6; }
4106
4107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4108 /* end confdefs.h.  */
4109
4110 int
4111 main ()
4112 {
4113
4114   ;
4115   return 0;
4116 }
4117 _ACEOF
4118 if ac_fn_c_try_link "$LINENO"; then :
4119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4120 $as_echo "yes" >&6; }
4121 else
4122   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4123 $as_echo "no" >&6; }
4124                       as_fn_error $? "Cannot build a 32-bit program, you need to install 32-bit development libraries." "$LINENO" 5
4125 fi
4126 rm -f core conftest.err conftest.$ac_objext \
4127     conftest$ac_exeext conftest.$ac_ext
4128       host_cpu="i386"
4129       notice_platform="32-bit "
4130       TARGETFLAGS="-m32"
4131
4132       enable_win16=${enable_win16:-yes}
4133     else
4134       if test "x${GCC}" = "xyes"
4135       then
4136         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports __builtin_ms_va_list" >&5
4137 $as_echo_n "checking whether $CC supports __builtin_ms_va_list... " >&6; }
4138         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4139 /* end confdefs.h.  */
4140 #include <stdarg.h>
4141 int
4142 main ()
4143 {
4144 void func(__builtin_ms_va_list *args);
4145   ;
4146   return 0;
4147 }
4148 _ACEOF
4149 if ac_fn_c_try_compile "$LINENO"; then :
4150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4151 $as_echo "yes" >&6; }
4152 else
4153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4154 $as_echo "no" >&6; }
4155                            as_fn_error $? "You need gcc >= 4.4 to build Wine as 64-bit." "$LINENO" 5
4156 fi
4157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4158       fi
4159       TARGETFLAGS="-m64"
4160
4161     fi
4162     ;;
4163   arm*)
4164     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports Thumb" >&5
4165 $as_echo_n "checking whether $CC supports Thumb... " >&6; }
4166     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4167 /* end confdefs.h.  */
4168 int ac_test(int i) { return i; }
4169 int
4170 main ()
4171 {
4172 asm(".thumb\nblx ac_test\n.arm"); if (ac_test(1)) return 1
4173   ;
4174   return 0;
4175 }
4176 _ACEOF
4177 if ac_fn_c_try_link "$LINENO"; then :
4178   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4179 $as_echo "yes" >&6; }
4180 else
4181   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4182 $as_echo "no" >&6; }
4183                        as_fn_error $? "You need a target with Thumb support to build Wine for ARM." "$LINENO" 5
4184 fi
4185 rm -f core conftest.err conftest.$ac_objext \
4186     conftest$ac_exeext conftest.$ac_ext
4187     CFLAGS="$CFLAGS -marm"
4188     ;;
4189   *-mingw32*|*-cygwin*)
4190     enable_win16=${enable_win16:-no}
4191     CFLAGS="$CFLAGS -D_WIN32"
4192     ;;
4193   i[3456789]86*)
4194     enable_win16=${enable_win16:-yes}
4195     ;;
4196 esac
4197
4198 enable_win16=${enable_win16:-no}
4199 enable_win64=${enable_win64:-no}
4200
4201 enable_winetest=${enable_winetest:-$enable_tests}
4202
4203 if test -n "$with_wine64"
4204 then
4205     if test "x$enable_win64" = "xyes"
4206     then
4207         as_fn_error $? "--enable-win64 and --with-wine64 are mutually exclusive.
4208 --enable-win64 should be used in the 64-bit build tree, --with-wine64 in the 32-bit Wow64 build tree." "$LINENO" 5
4209     fi
4210     WOW64_DISABLE=\#
4211
4212     enable_fonts=${enable_fonts:-no}
4213     enable_server=${enable_server:-no}
4214     enable_tools=${enable_tools:-no}
4215 elif test "x$enable_win64" = "xyes"
4216 then
4217     test "x$libdir" != "x\${exec_prefix}/lib" || libdir="\${exec_prefix}/lib64"
4218 fi
4219
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the directory containing the Wine tools" >&5
4221 $as_echo_n "checking for the directory containing the Wine tools... " >&6; }
4222 if ${wine_cv_toolsdir+:} false; then :
4223   $as_echo_n "(cached) " >&6
4224 else
4225   wine_cv_toolsdir="$with_wine_tools"
4226    if test -z "$with_wine_tools"; then
4227      if test "$cross_compiling" = "yes"; then
4228        as_fn_error $? "you must use the --with-wine-tools option when cross-compiling." "$LINENO" 5
4229      elif test -n "$with_wine64"; then
4230        wine_cv_toolsdir="$with_wine64"
4231      fi
4232    fi
4233    if test -z "$wine_cv_toolsdir"; then
4234      wine_cv_toolsdir="\$(top_builddir)"
4235    elif test -d "$wine_cv_toolsdir/tools/winebuild"; then
4236      case "$wine_cv_toolsdir" in
4237        /*) ;;
4238        *)  wine_cv_toolsdir="\$(top_builddir)/$wine_cv_toolsdir" ;;
4239      esac
4240    else
4241      as_fn_error $? "could not find Wine tools in $wine_cv_toolsdir" "$LINENO" 5
4242    fi
4243 fi
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_toolsdir" >&5
4245 $as_echo "$wine_cv_toolsdir" >&6; }
4246 TOOLSDIR=$wine_cv_toolsdir
4247
4248 if test -n "$host_alias" -a "$host_alias" != "$build_alias"
4249 then
4250     TARGETFLAGS="-b $host_alias $TARGETFLAGS"
4251
4252 fi
4253
4254 for ac_prog in flex
4255 do
4256   # Extract the first word of "$ac_prog", so it can be a program name with args.
4257 set dummy $ac_prog; ac_word=$2
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4259 $as_echo_n "checking for $ac_word... " >&6; }
4260 if ${ac_cv_prog_FLEX+:} false; then :
4261   $as_echo_n "(cached) " >&6
4262 else
4263   if test -n "$FLEX"; then
4264   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
4265 else
4266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4267 for as_dir in $PATH
4268 do
4269   IFS=$as_save_IFS
4270   test -z "$as_dir" && as_dir=.
4271     for ac_exec_ext in '' $ac_executable_extensions; do
4272   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4273     ac_cv_prog_FLEX="$ac_prog"
4274     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4275     break 2
4276   fi
4277 done
4278   done
4279 IFS=$as_save_IFS
4280
4281 fi
4282 fi
4283 FLEX=$ac_cv_prog_FLEX
4284 if test -n "$FLEX"; then
4285   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
4286 $as_echo "$FLEX" >&6; }
4287 else
4288   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4289 $as_echo "no" >&6; }
4290 fi
4291
4292
4293   test -n "$FLEX" && break
4294 done
4295 test -n "$FLEX" || FLEX="none"
4296
4297 if test "$FLEX" = "none"
4298 then
4299   as_fn_error $? "no suitable flex found. Please install the 'flex' package." "$LINENO" 5
4300 fi
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether flex is recent enough" >&5
4302 $as_echo_n "checking whether flex is recent enough... " >&6; }
4303 cat >conftest.l <<EOF
4304 %top{
4305 #include "prediluvian.h"
4306 }
4307 %%
4308 EOF
4309 if $FLEX -t conftest.l >/dev/null 2>&5
4310 then
4311   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4312 $as_echo "yes" >&6; }
4313 else
4314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4315 $as_echo "no" >&6; }
4316   as_fn_error $? "Your flex version is too old. Please install flex version 2.5.33 or newer." "$LINENO" 5
4317 fi
4318
4319 for ac_prog in bison
4320 do
4321   # Extract the first word of "$ac_prog", so it can be a program name with args.
4322 set dummy $ac_prog; ac_word=$2
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4324 $as_echo_n "checking for $ac_word... " >&6; }
4325 if ${ac_cv_prog_BISON+:} false; then :
4326   $as_echo_n "(cached) " >&6
4327 else
4328   if test -n "$BISON"; then
4329   ac_cv_prog_BISON="$BISON" # Let the user override the test.
4330 else
4331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4332 for as_dir in $PATH
4333 do
4334   IFS=$as_save_IFS
4335   test -z "$as_dir" && as_dir=.
4336     for ac_exec_ext in '' $ac_executable_extensions; do
4337   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4338     ac_cv_prog_BISON="$ac_prog"
4339     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4340     break 2
4341   fi
4342 done
4343   done
4344 IFS=$as_save_IFS
4345
4346 fi
4347 fi
4348 BISON=$ac_cv_prog_BISON
4349 if test -n "$BISON"; then
4350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
4351 $as_echo "$BISON" >&6; }
4352 else
4353   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4354 $as_echo "no" >&6; }
4355 fi
4356
4357
4358   test -n "$BISON" && break
4359 done
4360 test -n "$BISON" || BISON="none"
4361
4362 if test "$BISON" = "none"
4363 then
4364   as_fn_error $? "no suitable bison found. Please install the 'bison' package." "$LINENO" 5
4365 fi
4366
4367 if test -n "$ac_tool_prefix"; then
4368   for ac_prog in ar gar
4369   do
4370     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4371 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4373 $as_echo_n "checking for $ac_word... " >&6; }
4374 if ${ac_cv_prog_AR+:} false; then :
4375   $as_echo_n "(cached) " >&6
4376 else
4377   if test -n "$AR"; then
4378   ac_cv_prog_AR="$AR" # Let the user override the test.
4379 else
4380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4381 for as_dir in $PATH
4382 do
4383   IFS=$as_save_IFS
4384   test -z "$as_dir" && as_dir=.
4385     for ac_exec_ext in '' $ac_executable_extensions; do
4386   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4387     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4388     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4389     break 2
4390   fi
4391 done
4392   done
4393 IFS=$as_save_IFS
4394
4395 fi
4396 fi
4397 AR=$ac_cv_prog_AR
4398 if test -n "$AR"; then
4399   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4400 $as_echo "$AR" >&6; }
4401 else
4402   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4403 $as_echo "no" >&6; }
4404 fi
4405
4406
4407     test -n "$AR" && break
4408   done
4409 fi
4410 if test -z "$AR"; then
4411   ac_ct_AR=$AR
4412   for ac_prog in ar gar
4413 do
4414   # Extract the first word of "$ac_prog", so it can be a program name with args.
4415 set dummy $ac_prog; ac_word=$2
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4417 $as_echo_n "checking for $ac_word... " >&6; }
4418 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4419   $as_echo_n "(cached) " >&6
4420 else
4421   if test -n "$ac_ct_AR"; then
4422   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4423 else
4424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4425 for as_dir in $PATH
4426 do
4427   IFS=$as_save_IFS
4428   test -z "$as_dir" && as_dir=.
4429     for ac_exec_ext in '' $ac_executable_extensions; do
4430   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4431     ac_cv_prog_ac_ct_AR="$ac_prog"
4432     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4433     break 2
4434   fi
4435 done
4436   done
4437 IFS=$as_save_IFS
4438
4439 fi
4440 fi
4441 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4442 if test -n "$ac_ct_AR"; then
4443   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4444 $as_echo "$ac_ct_AR" >&6; }
4445 else
4446   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4447 $as_echo "no" >&6; }
4448 fi
4449
4450
4451   test -n "$ac_ct_AR" && break
4452 done
4453
4454   if test "x$ac_ct_AR" = x; then
4455     AR="ar"
4456   else
4457     case $cross_compiling:$ac_tool_warned in
4458 yes:)
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4460 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4461 ac_tool_warned=yes ;;
4462 esac
4463     AR=$ac_ct_AR
4464   fi
4465 fi
4466
4467 ARFLAGS=rc
4468
4469 if test -n "$ac_tool_prefix"; then
4470   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4471 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4473 $as_echo_n "checking for $ac_word... " >&6; }
4474 if ${ac_cv_prog_RANLIB+:} false; then :
4475   $as_echo_n "(cached) " >&6
4476 else
4477   if test -n "$RANLIB"; then
4478   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4479 else
4480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4481 for as_dir in $PATH
4482 do
4483   IFS=$as_save_IFS
4484   test -z "$as_dir" && as_dir=.
4485     for ac_exec_ext in '' $ac_executable_extensions; do
4486   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4487     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4488     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4489     break 2
4490   fi
4491 done
4492   done
4493 IFS=$as_save_IFS
4494
4495 fi
4496 fi
4497 RANLIB=$ac_cv_prog_RANLIB
4498 if test -n "$RANLIB"; then
4499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4500 $as_echo "$RANLIB" >&6; }
4501 else
4502   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4503 $as_echo "no" >&6; }
4504 fi
4505
4506
4507 fi
4508 if test -z "$ac_cv_prog_RANLIB"; then
4509   ac_ct_RANLIB=$RANLIB
4510   # Extract the first word of "ranlib", so it can be a program name with args.
4511 set dummy ranlib; ac_word=$2
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4513 $as_echo_n "checking for $ac_word... " >&6; }
4514 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4515   $as_echo_n "(cached) " >&6
4516 else
4517   if test -n "$ac_ct_RANLIB"; then
4518   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4519 else
4520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4521 for as_dir in $PATH
4522 do
4523   IFS=$as_save_IFS
4524   test -z "$as_dir" && as_dir=.
4525     for ac_exec_ext in '' $ac_executable_extensions; do
4526   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4527     ac_cv_prog_ac_ct_RANLIB="ranlib"
4528     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4529     break 2
4530   fi
4531 done
4532   done
4533 IFS=$as_save_IFS
4534
4535 fi
4536 fi
4537 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4538 if test -n "$ac_ct_RANLIB"; then
4539   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4540 $as_echo "$ac_ct_RANLIB" >&6; }
4541 else
4542   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4543 $as_echo "no" >&6; }
4544 fi
4545
4546   if test "x$ac_ct_RANLIB" = x; then
4547     RANLIB=":"
4548   else
4549     case $cross_compiling:$ac_tool_warned in
4550 yes:)
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4552 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4553 ac_tool_warned=yes ;;
4554 esac
4555     RANLIB=$ac_ct_RANLIB
4556   fi
4557 else
4558   RANLIB="$ac_cv_prog_RANLIB"
4559 fi
4560
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4562 $as_echo_n "checking whether ln -s works... " >&6; }
4563 LN_S=$as_ln_s
4564 if test "$LN_S" = "ln -s"; then
4565   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4566 $as_echo "yes" >&6; }
4567 else
4568   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4569 $as_echo "no, using $LN_S" >&6; }
4570 fi
4571
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4573 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4574 if ${ac_cv_path_GREP+:} false; then :
4575   $as_echo_n "(cached) " >&6
4576 else
4577   if test -z "$GREP"; then
4578   ac_path_GREP_found=false
4579   # Loop through the user's path and test for each of PROGNAME-LIST
4580   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4581 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4582 do
4583   IFS=$as_save_IFS
4584   test -z "$as_dir" && as_dir=.
4585     for ac_prog in grep ggrep; do
4586     for ac_exec_ext in '' $ac_executable_extensions; do
4587       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4588       as_fn_executable_p "$ac_path_GREP" || continue
4589 # Check for GNU ac_path_GREP and select it if it is found.
4590   # Check for GNU $ac_path_GREP
4591 case `"$ac_path_GREP" --version 2>&1` in
4592 *GNU*)
4593   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4594 *)
4595   ac_count=0
4596   $as_echo_n 0123456789 >"conftest.in"
4597   while :
4598   do
4599     cat "conftest.in" "conftest.in" >"conftest.tmp"
4600     mv "conftest.tmp" "conftest.in"
4601     cp "conftest.in" "conftest.nl"
4602     $as_echo 'GREP' >> "conftest.nl"
4603     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4604     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4605     as_fn_arith $ac_count + 1 && ac_count=$as_val
4606     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4607       # Best one so far, save it but keep looking for a better one
4608       ac_cv_path_GREP="$ac_path_GREP"
4609       ac_path_GREP_max=$ac_count
4610     fi
4611     # 10*(2^10) chars as input seems more than enough
4612     test $ac_count -gt 10 && break
4613   done
4614   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4615 esac
4616
4617       $ac_path_GREP_found && break 3
4618     done
4619   done
4620   done
4621 IFS=$as_save_IFS
4622   if test -z "$ac_cv_path_GREP"; then
4623     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4624   fi
4625 else
4626   ac_cv_path_GREP=$GREP
4627 fi
4628
4629 fi
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4631 $as_echo "$ac_cv_path_GREP" >&6; }
4632  GREP="$ac_cv_path_GREP"
4633
4634
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4636 $as_echo_n "checking for egrep... " >&6; }
4637 if ${ac_cv_path_EGREP+:} false; then :
4638   $as_echo_n "(cached) " >&6
4639 else
4640   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4641    then ac_cv_path_EGREP="$GREP -E"
4642    else
4643      if test -z "$EGREP"; then
4644   ac_path_EGREP_found=false
4645   # Loop through the user's path and test for each of PROGNAME-LIST
4646   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4647 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4648 do
4649   IFS=$as_save_IFS
4650   test -z "$as_dir" && as_dir=.
4651     for ac_prog in egrep; do
4652     for ac_exec_ext in '' $ac_executable_extensions; do
4653       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4654       as_fn_executable_p "$ac_path_EGREP" || continue
4655 # Check for GNU ac_path_EGREP and select it if it is found.
4656   # Check for GNU $ac_path_EGREP
4657 case `"$ac_path_EGREP" --version 2>&1` in
4658 *GNU*)
4659   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4660 *)
4661   ac_count=0
4662   $as_echo_n 0123456789 >"conftest.in"
4663   while :
4664   do
4665     cat "conftest.in" "conftest.in" >"conftest.tmp"
4666     mv "conftest.tmp" "conftest.in"
4667     cp "conftest.in" "conftest.nl"
4668     $as_echo 'EGREP' >> "conftest.nl"
4669     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4670     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4671     as_fn_arith $ac_count + 1 && ac_count=$as_val
4672     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4673       # Best one so far, save it but keep looking for a better one
4674       ac_cv_path_EGREP="$ac_path_EGREP"
4675       ac_path_EGREP_max=$ac_count
4676     fi
4677     # 10*(2^10) chars as input seems more than enough
4678     test $ac_count -gt 10 && break
4679   done
4680   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4681 esac
4682
4683       $ac_path_EGREP_found && break 3
4684     done
4685   done
4686   done
4687 IFS=$as_save_IFS
4688   if test -z "$ac_cv_path_EGREP"; then
4689     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4690   fi
4691 else
4692   ac_cv_path_EGREP=$EGREP
4693 fi
4694
4695    fi
4696 fi
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4698 $as_echo "$ac_cv_path_EGREP" >&6; }
4699  EGREP="$ac_cv_path_EGREP"
4700
4701
4702 # Extract the first word of "ldconfig", so it can be a program name with args.
4703 set dummy ldconfig; ac_word=$2
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4705 $as_echo_n "checking for $ac_word... " >&6; }
4706 if ${ac_cv_path_LDCONFIG+:} false; then :
4707   $as_echo_n "(cached) " >&6
4708 else
4709   case $LDCONFIG in
4710   [\\/]* | ?:[\\/]*)
4711   ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
4712   ;;
4713   *)
4714   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4715 for as_dir in /sbin /usr/sbin $PATH
4716 do
4717   IFS=$as_save_IFS
4718   test -z "$as_dir" && as_dir=.
4719     for ac_exec_ext in '' $ac_executable_extensions; do
4720   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4721     ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
4722     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4723     break 2
4724   fi
4725 done
4726   done
4727 IFS=$as_save_IFS
4728
4729   test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
4730   ;;
4731 esac
4732 fi
4733 LDCONFIG=$ac_cv_path_LDCONFIG
4734 if test -n "$LDCONFIG"; then
4735   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
4736 $as_echo "$LDCONFIG" >&6; }
4737 else
4738   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4739 $as_echo "no" >&6; }
4740 fi
4741
4742
4743 # Find a good install program.  We prefer a C program (faster),
4744 # so one script is as good as another.  But avoid the broken or
4745 # incompatible versions:
4746 # SysV /etc/install, /usr/sbin/install
4747 # SunOS /usr/etc/install
4748 # IRIX /sbin/install
4749 # AIX /bin/install
4750 # AmigaOS /C/install, which installs bootblocks on floppy discs
4751 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4752 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4753 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4754 # OS/2's system install, which has a completely different semantic
4755 # ./install, which can be erroneously created by make from ./install.sh.
4756 # Reject install programs that cannot install multiple files.
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4758 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4759 if test -z "$INSTALL"; then
4760 if ${ac_cv_path_install+:} false; then :
4761   $as_echo_n "(cached) " >&6
4762 else
4763   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4764 for as_dir in $PATH
4765 do
4766   IFS=$as_save_IFS
4767   test -z "$as_dir" && as_dir=.
4768     # Account for people who put trailing slashes in PATH elements.
4769 case $as_dir/ in #((
4770   ./ | .// | /[cC]/* | \
4771   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4772   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4773   /usr/ucb/* ) ;;
4774   *)
4775     # OSF1 and SCO ODT 3.0 have their own names for install.
4776     # Don't use installbsd from OSF since it installs stuff as root
4777     # by default.
4778     for ac_prog in ginstall scoinst install; do
4779       for ac_exec_ext in '' $ac_executable_extensions; do
4780         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4781           if test $ac_prog = install &&
4782             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4783             # AIX install.  It has an incompatible calling convention.
4784             :
4785           elif test $ac_prog = install &&
4786             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4787             # program-specific install script used by HP pwplus--don't use.
4788             :
4789           else
4790             rm -rf conftest.one conftest.two conftest.dir
4791             echo one > conftest.one
4792             echo two > conftest.two
4793             mkdir conftest.dir
4794             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4795               test -s conftest.one && test -s conftest.two &&
4796               test -s conftest.dir/conftest.one &&
4797               test -s conftest.dir/conftest.two
4798             then
4799               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4800               break 3
4801             fi
4802           fi
4803         fi
4804       done
4805     done
4806     ;;
4807 esac
4808
4809   done
4810 IFS=$as_save_IFS
4811
4812 rm -rf conftest.one conftest.two conftest.dir
4813
4814 fi
4815   if test "${ac_cv_path_install+set}" = set; then
4816     INSTALL=$ac_cv_path_install
4817   else
4818     # As a last resort, use the slow shell script.  Don't cache a
4819     # value for INSTALL within a source directory, because that will
4820     # break other packages using the cache if that directory is
4821     # removed, or if the value is a relative name.
4822     INSTALL=$ac_install_sh
4823   fi
4824 fi
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4826 $as_echo "$INSTALL" >&6; }
4827
4828 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4829 # It thinks the first close brace ends the variable substitution.
4830 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4831
4832 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4833
4834 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4835
4836 case "$INSTALL" in
4837   [\\/$]* | ?:[\\/]* ) ;;
4838   *)  INSTALL="\\\$(top_srcdir)/$INSTALL" ;;
4839 esac
4840
4841 for ac_prog in lclint lint
4842 do
4843   # Extract the first word of "$ac_prog", so it can be a program name with args.
4844 set dummy $ac_prog; ac_word=$2
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4846 $as_echo_n "checking for $ac_word... " >&6; }
4847 if ${ac_cv_prog_LINT+:} false; then :
4848   $as_echo_n "(cached) " >&6
4849 else
4850   if test -n "$LINT"; then
4851   ac_cv_prog_LINT="$LINT" # Let the user override the test.
4852 else
4853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4854 for as_dir in $PATH
4855 do
4856   IFS=$as_save_IFS
4857   test -z "$as_dir" && as_dir=.
4858     for ac_exec_ext in '' $ac_executable_extensions; do
4859   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4860     ac_cv_prog_LINT="$ac_prog"
4861     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4862     break 2
4863   fi
4864 done
4865   done
4866 IFS=$as_save_IFS
4867
4868 fi
4869 fi
4870 LINT=$ac_cv_prog_LINT
4871 if test -n "$LINT"; then
4872   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
4873 $as_echo "$LINT" >&6; }
4874 else
4875   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4876 $as_echo "no" >&6; }
4877 fi
4878
4879
4880   test -n "$LINT" && break
4881 done
4882
4883 if test "$LINT" = "lint"
4884 then
4885   LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
4886   fi
4887
4888
4889 for ac_prog in fontforge
4890 do
4891   # Extract the first word of "$ac_prog", so it can be a program name with args.
4892 set dummy $ac_prog; ac_word=$2
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4894 $as_echo_n "checking for $ac_word... " >&6; }
4895 if ${ac_cv_prog_FONTFORGE+:} false; then :
4896   $as_echo_n "(cached) " >&6
4897 else
4898   if test -n "$FONTFORGE"; then
4899   ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
4900 else
4901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4902 for as_dir in $PATH
4903 do
4904   IFS=$as_save_IFS
4905   test -z "$as_dir" && as_dir=.
4906     for ac_exec_ext in '' $ac_executable_extensions; do
4907   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4908     ac_cv_prog_FONTFORGE="$ac_prog"
4909     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4910     break 2
4911   fi
4912 done
4913   done
4914 IFS=$as_save_IFS
4915
4916 fi
4917 fi
4918 FONTFORGE=$ac_cv_prog_FONTFORGE
4919 if test -n "$FONTFORGE"; then
4920   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTFORGE" >&5
4921 $as_echo "$FONTFORGE" >&6; }
4922 else
4923   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4924 $as_echo "no" >&6; }
4925 fi
4926
4927
4928   test -n "$FONTFORGE" && break
4929 done
4930 test -n "$FONTFORGE" || FONTFORGE="false"
4931
4932 for ac_prog in pkg-config
4933 do
4934   # Extract the first word of "$ac_prog", so it can be a program name with args.
4935 set dummy $ac_prog; ac_word=$2
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4937 $as_echo_n "checking for $ac_word... " >&6; }
4938 if ${ac_cv_prog_PKG_CONFIG+:} false; then :
4939   $as_echo_n "(cached) " >&6
4940 else
4941   if test -n "$PKG_CONFIG"; then
4942   ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
4943 else
4944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4945 for as_dir in $PATH
4946 do
4947   IFS=$as_save_IFS
4948   test -z "$as_dir" && as_dir=.
4949     for ac_exec_ext in '' $ac_executable_extensions; do
4950   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4951     ac_cv_prog_PKG_CONFIG="$ac_prog"
4952     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4953     break 2
4954   fi
4955 done
4956   done
4957 IFS=$as_save_IFS
4958
4959 fi
4960 fi
4961 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
4962 if test -n "$PKG_CONFIG"; then
4963   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4964 $as_echo "$PKG_CONFIG" >&6; }
4965 else
4966   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4967 $as_echo "no" >&6; }
4968 fi
4969
4970
4971   test -n "$PKG_CONFIG" && break
4972 done
4973 test -n "$PKG_CONFIG" || PKG_CONFIG="false"
4974
4975 for ac_prog in rsvg
4976 do
4977   # Extract the first word of "$ac_prog", so it can be a program name with args.
4978 set dummy $ac_prog; ac_word=$2
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4980 $as_echo_n "checking for $ac_word... " >&6; }
4981 if ${ac_cv_prog_RSVG+:} false; then :
4982   $as_echo_n "(cached) " >&6
4983 else
4984   if test -n "$RSVG"; then
4985   ac_cv_prog_RSVG="$RSVG" # Let the user override the test.
4986 else
4987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4988 for as_dir in $PATH
4989 do
4990   IFS=$as_save_IFS
4991   test -z "$as_dir" && as_dir=.
4992     for ac_exec_ext in '' $ac_executable_extensions; do
4993   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4994     ac_cv_prog_RSVG="$ac_prog"
4995     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4996     break 2
4997   fi
4998 done
4999   done
5000 IFS=$as_save_IFS
5001
5002 fi
5003 fi
5004 RSVG=$ac_cv_prog_RSVG
5005 if test -n "$RSVG"; then
5006   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG" >&5
5007 $as_echo "$RSVG" >&6; }
5008 else
5009   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5010 $as_echo "no" >&6; }
5011 fi
5012
5013
5014   test -n "$RSVG" && break
5015 done
5016 test -n "$RSVG" || RSVG="false"
5017
5018 for ac_prog in convert
5019 do
5020   # Extract the first word of "$ac_prog", so it can be a program name with args.
5021 set dummy $ac_prog; ac_word=$2
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5023 $as_echo_n "checking for $ac_word... " >&6; }
5024 if ${ac_cv_prog_CONVERT+:} false; then :
5025   $as_echo_n "(cached) " >&6
5026 else
5027   if test -n "$CONVERT"; then
5028   ac_cv_prog_CONVERT="$CONVERT" # Let the user override the test.
5029 else
5030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5031 for as_dir in $PATH
5032 do
5033   IFS=$as_save_IFS
5034   test -z "$as_dir" && as_dir=.
5035     for ac_exec_ext in '' $ac_executable_extensions; do
5036   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5037     ac_cv_prog_CONVERT="$ac_prog"
5038     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5039     break 2
5040   fi
5041 done
5042   done
5043 IFS=$as_save_IFS
5044
5045 fi
5046 fi
5047 CONVERT=$ac_cv_prog_CONVERT
5048 if test -n "$CONVERT"; then
5049   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONVERT" >&5
5050 $as_echo "$CONVERT" >&6; }
5051 else
5052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5053 $as_echo "no" >&6; }
5054 fi
5055
5056
5057   test -n "$CONVERT" && break
5058 done
5059 test -n "$CONVERT" || CONVERT="false"
5060
5061 for ac_prog in icotool
5062 do
5063   # Extract the first word of "$ac_prog", so it can be a program name with args.
5064 set dummy $ac_prog; ac_word=$2
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5066 $as_echo_n "checking for $ac_word... " >&6; }
5067 if ${ac_cv_prog_ICOTOOL+:} false; then :
5068   $as_echo_n "(cached) " >&6
5069 else
5070   if test -n "$ICOTOOL"; then
5071   ac_cv_prog_ICOTOOL="$ICOTOOL" # Let the user override the test.
5072 else
5073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5074 for as_dir in $PATH
5075 do
5076   IFS=$as_save_IFS
5077   test -z "$as_dir" && as_dir=.
5078     for ac_exec_ext in '' $ac_executable_extensions; do
5079   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5080     ac_cv_prog_ICOTOOL="$ac_prog"
5081     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5082     break 2
5083   fi
5084 done
5085   done
5086 IFS=$as_save_IFS
5087
5088 fi
5089 fi
5090 ICOTOOL=$ac_cv_prog_ICOTOOL
5091 if test -n "$ICOTOOL"; then
5092   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICOTOOL" >&5
5093 $as_echo "$ICOTOOL" >&6; }
5094 else
5095   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5096 $as_echo "no" >&6; }
5097 fi
5098
5099
5100   test -n "$ICOTOOL" && break
5101 done
5102 test -n "$ICOTOOL" || ICOTOOL="false"
5103
5104 for ac_prog in msgfmt
5105 do
5106   # Extract the first word of "$ac_prog", so it can be a program name with args.
5107 set dummy $ac_prog; ac_word=$2
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5109 $as_echo_n "checking for $ac_word... " >&6; }
5110 if ${ac_cv_prog_MSGFMT+:} false; then :
5111   $as_echo_n "(cached) " >&6
5112 else
5113   if test -n "$MSGFMT"; then
5114   ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
5115 else
5116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5117 for as_dir in $PATH
5118 do
5119   IFS=$as_save_IFS
5120   test -z "$as_dir" && as_dir=.
5121     for ac_exec_ext in '' $ac_executable_extensions; do
5122   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5123     ac_cv_prog_MSGFMT="$ac_prog"
5124     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5125     break 2
5126   fi
5127 done
5128   done
5129 IFS=$as_save_IFS
5130
5131 fi
5132 fi
5133 MSGFMT=$ac_cv_prog_MSGFMT
5134 if test -n "$MSGFMT"; then
5135   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5136 $as_echo "$MSGFMT" >&6; }
5137 else
5138   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5139 $as_echo "no" >&6; }
5140 fi
5141
5142
5143   test -n "$MSGFMT" && break
5144 done
5145 test -n "$MSGFMT" || MSGFMT="false"
5146
5147
5148 if test "x$enable_maintainer_mode" != "xyes"
5149 then
5150   MAINTAINER_MODE=\#
5151
5152 else
5153   if test "$FONTFORGE" = "false"; then as_fn_error $? "You need fontforge to rebuild fonts in maintainer mode." "$LINENO" 5; fi
5154   if test "$RSVG" = "false"; then as_fn_error $? "You need rsvg to rebuild icons in maintainer mode." "$LINENO" 5; fi
5155
5156     if test "$CONVERT" = false
5157   then
5158     as_fn_error $? "You need imagemagick to rebuild icons in maintainer mode." "$LINENO" 5
5159   else
5160     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough imagemagick" >&5
5161 $as_echo_n "checking for recent enough imagemagick... " >&6; }
5162     convert_version=`convert --version | head -n1`
5163     if test "x$convert_version" != "x"
5164     then
5165       convert_version_major=`expr "$convert_version" : '.* \([0-9]*\)\.[0-9]*'`
5166       convert_version_minor=`expr "$convert_version" : '.* [0-9]*\.\([0-9]*\)'`
5167       if test "$convert_version_major" -eq 6 -a "$convert_version_minor" -lt 6
5168       then
5169         CONVERT=false
5170       fi
5171     fi
5172     if test "$CONVERT" = false
5173     then
5174       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($convert_version_major.$convert_version_minor)" >&5
5175 $as_echo "no ($convert_version_major.$convert_version_minor)" >&6; }
5176       as_fn_error $? "You need imagemagick version 6.6 or newer to rebuild icons in maintainer mode." "$LINENO" 5
5177     else
5178       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($convert_version_major.$convert_version_minor)" >&5
5179 $as_echo "yes ($convert_version_major.$convert_version_minor)" >&6; }
5180     fi
5181   fi
5182
5183     if test "$ICOTOOL" = false
5184   then
5185     as_fn_error $? "You need icotool to rebuild icons in maintainer mode." "$LINENO" 5
5186   else
5187     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough icotool" >&5
5188 $as_echo_n "checking for recent enough icotool... " >&6; }
5189     icotool_version=`icotool --version | head -n1`
5190     if test "x$icotool_version" != "x"
5191     then
5192       icotool_version_major=`expr "$icotool_version" : '.* \([0-9]*\)\.[0-9]*'`
5193       icotool_version_minor=`expr "$icotool_version" : '.* [0-9]*\.\([0-9]*\)'`
5194       if test "$icotool_version_major" -eq 0 -a "$icotool_version_minor" -lt 29
5195       then
5196         ICOTOOL=false
5197         as_fn_append wine_warnings "|icotool version 0.29.0 or newer is needed to rebuild icons."
5198       fi
5199     fi
5200     if test "$ICOTOOL" = false
5201     then
5202       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($icotool_version_major.$icotool_version_minor)" >&5
5203 $as_echo "no ($icotool_version_major.$icotool_version_minor)" >&6; }
5204       as_fn_error $? "You need icotool version 0.29.0 or newer to rebuild icons in maintainer mode." "$LINENO" 5
5205     else
5206       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($icotool_version_major.$icotool_version_minor)" >&5
5207 $as_echo "yes ($icotool_version_major.$icotool_version_minor)" >&6; }
5208     fi
5209   fi
5210
5211     with_gettext=yes
5212   with_gettextpo=yes
5213   { ac_cv_header_gettext_po_h=; unset ac_cv_header_gettext_po_h;}
5214 fi
5215
5216 test "x$with_gettext" != xno || MSGFMT=false
5217 if test "$MSGFMT" != "false"
5218 then
5219   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether msgfmt supports contexts" >&5
5220 $as_echo_n "checking whether msgfmt supports contexts... " >&6; }
5221   cat >conftest.po <<EOF
5222 # comment
5223 msgctxt "ctxt"
5224 msgid "id"
5225 msgstr "str"
5226 EOF
5227   if $MSGFMT -o /dev/null conftest.po 2>&5
5228   then
5229     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5230 $as_echo "yes" >&6; }
5231   else
5232     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5233 $as_echo "no" >&6; }
5234     MSGFMT=false
5235   fi
5236 fi
5237 if test "$MSGFMT" = false; then :
5238   case "x$with_gettext" in
5239   x)   as_fn_append wine_warnings "|gettext tools not found (or too old), translations won't be built." ;;
5240   xno) ;;
5241   *)   as_fn_error $? "gettext tools not found (or too old), translations won't be built.
5242 This is an error since --with-gettext was requested." "$LINENO" 5 ;;
5243 esac
5244 fi
5245
5246
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for i386_set_ldt in -li386" >&5
5248 $as_echo_n "checking for i386_set_ldt in -li386... " >&6; }
5249 if ${ac_cv_lib_i386_i386_set_ldt+:} false; then :
5250   $as_echo_n "(cached) " >&6
5251 else
5252   ac_check_lib_save_LIBS=$LIBS
5253 LIBS="-li386  $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 i386_set_ldt ();
5264 int
5265 main ()
5266 {
5267 return i386_set_ldt ();
5268   ;
5269   return 0;
5270 }
5271 _ACEOF
5272 if ac_fn_c_try_link "$LINENO"; then :
5273   ac_cv_lib_i386_i386_set_ldt=yes
5274 else
5275   ac_cv_lib_i386_i386_set_ldt=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_i386_i386_set_ldt" >&5
5282 $as_echo "$ac_cv_lib_i386_i386_set_ldt" >&6; }
5283 if test "x$ac_cv_lib_i386_i386_set_ldt" = xyes; then :
5284   cat >>confdefs.h <<_ACEOF
5285 #define HAVE_LIBI386 1
5286 _ACEOF
5287
5288   LIBS="-li386 $LIBS"
5289
5290 fi
5291
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
5293 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
5294 if ${ac_cv_lib_ossaudio__oss_ioctl+:} false; then :
5295   $as_echo_n "(cached) " >&6
5296 else
5297   ac_check_lib_save_LIBS=$LIBS
5298 LIBS="-lossaudio  $LIBS"
5299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5300 /* end confdefs.h.  */
5301
5302 /* Override any GCC internal prototype to avoid an error.
5303    Use char because int might match the return type of a GCC
5304    builtin and then its argument prototype would still apply.  */
5305 #ifdef __cplusplus
5306 extern "C"
5307 #endif
5308 char _oss_ioctl ();
5309 int
5310 main ()
5311 {
5312 return _oss_ioctl ();
5313   ;
5314   return 0;
5315 }
5316 _ACEOF
5317 if ac_fn_c_try_link "$LINENO"; then :
5318   ac_cv_lib_ossaudio__oss_ioctl=yes
5319 else
5320   ac_cv_lib_ossaudio__oss_ioctl=no
5321 fi
5322 rm -f core conftest.err conftest.$ac_objext \
5323     conftest$ac_exeext conftest.$ac_ext
5324 LIBS=$ac_check_lib_save_LIBS
5325 fi
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5327 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
5328 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = xyes; then :
5329   cat >>confdefs.h <<_ACEOF
5330 #define HAVE_LIBOSSAUDIO 1
5331 _ACEOF
5332
5333   LIBS="-lossaudio $LIBS"
5334
5335 fi
5336
5337
5338 XLIB=""
5339
5340 OPENGL_LIBS=""
5341
5342
5343
5344 test "x$with_fontconfig" != "xno" || ac_cv_header_fontconfig_fontconfig_h=no
5345
5346 # Check whether --enable-largefile was given.
5347 if test "${enable_largefile+set}" = set; then :
5348   enableval=$enable_largefile;
5349 fi
5350
5351 if test "$enable_largefile" != no; then
5352
5353   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5354 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5355 if ${ac_cv_sys_largefile_CC+:} false; then :
5356   $as_echo_n "(cached) " >&6
5357 else
5358   ac_cv_sys_largefile_CC=no
5359      if test "$GCC" != yes; then
5360        ac_save_CC=$CC
5361        while :; do
5362          # IRIX 6.2 and later do not support large files by default,
5363          # so use the C compiler's -n32 option if that helps.
5364          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5365 /* end confdefs.h.  */
5366 #include <sys/types.h>
5367  /* Check that off_t can represent 2**63 - 1 correctly.
5368     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5369     since some C++ compilers masquerading as C compilers
5370     incorrectly reject 9223372036854775807.  */
5371 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5372   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5373                        && LARGE_OFF_T % 2147483647 == 1)
5374                       ? 1 : -1];
5375 int
5376 main ()
5377 {
5378
5379   ;
5380   return 0;
5381 }
5382 _ACEOF
5383          if ac_fn_c_try_compile "$LINENO"; then :
5384   break
5385 fi
5386 rm -f core conftest.err conftest.$ac_objext
5387          CC="$CC -n32"
5388          if ac_fn_c_try_compile "$LINENO"; then :
5389   ac_cv_sys_largefile_CC=' -n32'; break
5390 fi
5391 rm -f core conftest.err conftest.$ac_objext
5392          break
5393        done
5394        CC=$ac_save_CC
5395        rm -f conftest.$ac_ext
5396     fi
5397 fi
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5399 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5400   if test "$ac_cv_sys_largefile_CC" != no; then
5401     CC=$CC$ac_cv_sys_largefile_CC
5402   fi
5403
5404   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5405 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5406 if ${ac_cv_sys_file_offset_bits+:} false; then :
5407   $as_echo_n "(cached) " >&6
5408 else
5409   while :; do
5410   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5411 /* end confdefs.h.  */
5412 #include <sys/types.h>
5413  /* Check that off_t can represent 2**63 - 1 correctly.
5414     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5415     since some C++ compilers masquerading as C compilers
5416     incorrectly reject 9223372036854775807.  */
5417 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5418   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5419                        && LARGE_OFF_T % 2147483647 == 1)
5420                       ? 1 : -1];
5421 int
5422 main ()
5423 {
5424
5425   ;
5426   return 0;
5427 }
5428 _ACEOF
5429 if ac_fn_c_try_compile "$LINENO"; then :
5430   ac_cv_sys_file_offset_bits=no; break
5431 fi
5432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5433   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5434 /* end confdefs.h.  */
5435 #define _FILE_OFFSET_BITS 64
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_file_offset_bits=64; break
5455 fi
5456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5457   ac_cv_sys_file_offset_bits=unknown
5458   break
5459 done
5460 fi
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5462 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5463 case $ac_cv_sys_file_offset_bits in #(
5464   no | unknown) ;;
5465   *)
5466 cat >>confdefs.h <<_ACEOF
5467 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5468 _ACEOF
5469 ;;
5470 esac
5471 rm -rf conftest*
5472   if test $ac_cv_sys_file_offset_bits = unknown; then
5473     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5474 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5475 if ${ac_cv_sys_large_files+:} false; then :
5476   $as_echo_n "(cached) " >&6
5477 else
5478   while :; do
5479   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5480 /* end confdefs.h.  */
5481 #include <sys/types.h>
5482  /* Check that off_t can represent 2**63 - 1 correctly.
5483     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5484     since some C++ compilers masquerading as C compilers
5485     incorrectly reject 9223372036854775807.  */
5486 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5487   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5488                        && LARGE_OFF_T % 2147483647 == 1)
5489                       ? 1 : -1];
5490 int
5491 main ()
5492 {
5493
5494   ;
5495   return 0;
5496 }
5497 _ACEOF
5498 if ac_fn_c_try_compile "$LINENO"; then :
5499   ac_cv_sys_large_files=no; break
5500 fi
5501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5502   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5503 /* end confdefs.h.  */
5504 #define _LARGE_FILES 1
5505 #include <sys/types.h>
5506  /* Check that off_t can represent 2**63 - 1 correctly.
5507     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5508     since some C++ compilers masquerading as C compilers
5509     incorrectly reject 9223372036854775807.  */
5510 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5511   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5512                        && LARGE_OFF_T % 2147483647 == 1)
5513                       ? 1 : -1];
5514 int
5515 main ()
5516 {
5517
5518   ;
5519   return 0;
5520 }
5521 _ACEOF
5522 if ac_fn_c_try_compile "$LINENO"; then :
5523   ac_cv_sys_large_files=1; break
5524 fi
5525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5526   ac_cv_sys_large_files=unknown
5527   break
5528 done
5529 fi
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5531 $as_echo "$ac_cv_sys_large_files" >&6; }
5532 case $ac_cv_sys_large_files in #(
5533   no | unknown) ;;
5534   *)
5535 cat >>confdefs.h <<_ACEOF
5536 #define _LARGE_FILES $ac_cv_sys_large_files
5537 _ACEOF
5538 ;;
5539 esac
5540 rm -rf conftest*
5541   fi
5542
5543
5544 fi
5545
5546
5547 ac_ext=c
5548 ac_cpp='$CPP $CPPFLAGS'
5549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5553 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5554 # On Suns, sometimes $CPP names a directory.
5555 if test -n "$CPP" && test -d "$CPP"; then
5556   CPP=
5557 fi
5558 if test -z "$CPP"; then
5559   if ${ac_cv_prog_CPP+:} false; then :
5560   $as_echo_n "(cached) " >&6
5561 else
5562       # Double quotes because CPP needs to be expanded
5563     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5564     do
5565       ac_preproc_ok=false
5566 for ac_c_preproc_warn_flag in '' yes
5567 do
5568   # Use a header file that comes with gcc, so configuring glibc
5569   # with a fresh cross-compiler works.
5570   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5571   # <limits.h> exists even on freestanding compilers.
5572   # On the NeXT, cc -E runs the code through the compiler's parser,
5573   # not just through cpp. "Syntax error" is here to catch this case.
5574   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5575 /* end confdefs.h.  */
5576 #ifdef __STDC__
5577 # include <limits.h>
5578 #else
5579 # include <assert.h>
5580 #endif
5581                      Syntax error
5582 _ACEOF
5583 if ac_fn_c_try_cpp "$LINENO"; then :
5584
5585 else
5586   # Broken: fails on valid input.
5587 continue
5588 fi
5589 rm -f conftest.err conftest.i conftest.$ac_ext
5590
5591   # OK, works on sane cases.  Now check whether nonexistent headers
5592   # can be detected and how.
5593   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5594 /* end confdefs.h.  */
5595 #include <ac_nonexistent.h>
5596 _ACEOF
5597 if ac_fn_c_try_cpp "$LINENO"; then :
5598   # Broken: success on invalid input.
5599 continue
5600 else
5601   # Passes both tests.
5602 ac_preproc_ok=:
5603 break
5604 fi
5605 rm -f conftest.err conftest.i conftest.$ac_ext
5606
5607 done
5608 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5609 rm -f conftest.i conftest.err conftest.$ac_ext
5610 if $ac_preproc_ok; then :
5611   break
5612 fi
5613
5614     done
5615     ac_cv_prog_CPP=$CPP
5616
5617 fi
5618   CPP=$ac_cv_prog_CPP
5619 else
5620   ac_cv_prog_CPP=$CPP
5621 fi
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5623 $as_echo "$CPP" >&6; }
5624 ac_preproc_ok=false
5625 for ac_c_preproc_warn_flag in '' yes
5626 do
5627   # Use a header file that comes with gcc, so configuring glibc
5628   # with a fresh cross-compiler works.
5629   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5630   # <limits.h> exists even on freestanding compilers.
5631   # On the NeXT, cc -E runs the code through the compiler's parser,
5632   # not just through cpp. "Syntax error" is here to catch this case.
5633   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5634 /* end confdefs.h.  */
5635 #ifdef __STDC__
5636 # include <limits.h>
5637 #else
5638 # include <assert.h>
5639 #endif
5640                      Syntax error
5641 _ACEOF
5642 if ac_fn_c_try_cpp "$LINENO"; then :
5643
5644 else
5645   # Broken: fails on valid input.
5646 continue
5647 fi
5648 rm -f conftest.err conftest.i conftest.$ac_ext
5649
5650   # OK, works on sane cases.  Now check whether nonexistent headers
5651   # can be detected and how.
5652   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5653 /* end confdefs.h.  */
5654 #include <ac_nonexistent.h>
5655 _ACEOF
5656 if ac_fn_c_try_cpp "$LINENO"; then :
5657   # Broken: success on invalid input.
5658 continue
5659 else
5660   # Passes both tests.
5661 ac_preproc_ok=:
5662 break
5663 fi
5664 rm -f conftest.err conftest.i conftest.$ac_ext
5665
5666 done
5667 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5668 rm -f conftest.i conftest.err conftest.$ac_ext
5669 if $ac_preproc_ok; then :
5670
5671 else
5672   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5673 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5674 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5675 See \`config.log' for more details" "$LINENO" 5; }
5676 fi
5677
5678 ac_ext=c
5679 ac_cpp='$CPP $CPPFLAGS'
5680 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5681 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5682 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5683
5684
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5686 $as_echo_n "checking for ANSI C header files... " >&6; }
5687 if ${ac_cv_header_stdc+:} false; then :
5688   $as_echo_n "(cached) " >&6
5689 else
5690   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5691 /* end confdefs.h.  */
5692 #include <stdlib.h>
5693 #include <stdarg.h>
5694 #include <string.h>
5695 #include <float.h>
5696
5697 int
5698 main ()
5699 {
5700
5701   ;
5702   return 0;
5703 }
5704 _ACEOF
5705 if ac_fn_c_try_compile "$LINENO"; then :
5706   ac_cv_header_stdc=yes
5707 else
5708   ac_cv_header_stdc=no
5709 fi
5710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5711
5712 if test $ac_cv_header_stdc = yes; then
5713   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5714   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5715 /* end confdefs.h.  */
5716 #include <string.h>
5717
5718 _ACEOF
5719 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5720   $EGREP "memchr" >/dev/null 2>&1; then :
5721
5722 else
5723   ac_cv_header_stdc=no
5724 fi
5725 rm -f conftest*
5726
5727 fi
5728
5729 if test $ac_cv_header_stdc = yes; then
5730   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5731   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5732 /* end confdefs.h.  */
5733 #include <stdlib.h>
5734
5735 _ACEOF
5736 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5737   $EGREP "free" >/dev/null 2>&1; then :
5738
5739 else
5740   ac_cv_header_stdc=no
5741 fi
5742 rm -f conftest*
5743
5744 fi
5745
5746 if test $ac_cv_header_stdc = yes; then
5747   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5748   if test "$cross_compiling" = yes; then :
5749   :
5750 else
5751   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5752 /* end confdefs.h.  */
5753 #include <ctype.h>
5754 #include <stdlib.h>
5755 #if ((' ' & 0x0FF) == 0x020)
5756 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5757 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5758 #else
5759 # define ISLOWER(c) \
5760                    (('a' <= (c) && (c) <= 'i') \
5761                      || ('j' <= (c) && (c) <= 'r') \
5762                      || ('s' <= (c) && (c) <= 'z'))
5763 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5764 #endif
5765
5766 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5767 int
5768 main ()
5769 {
5770   int i;
5771   for (i = 0; i < 256; i++)
5772     if (XOR (islower (i), ISLOWER (i))
5773         || toupper (i) != TOUPPER (i))
5774       return 2;
5775   return 0;
5776 }
5777 _ACEOF
5778 if ac_fn_c_try_run "$LINENO"; then :
5779
5780 else
5781   ac_cv_header_stdc=no
5782 fi
5783 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5784   conftest.$ac_objext conftest.beam conftest.$ac_ext
5785 fi
5786
5787 fi
5788 fi
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5790 $as_echo "$ac_cv_header_stdc" >&6; }
5791 if test $ac_cv_header_stdc = yes; then
5792
5793 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5794
5795 fi
5796
5797 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5798 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5799                   inttypes.h stdint.h unistd.h
5800 do :
5801   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5802 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5803 "
5804 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5805   cat >>confdefs.h <<_ACEOF
5806 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5807 _ACEOF
5808
5809 fi
5810
5811 done
5812
5813
5814 for ac_header in \
5815         AL/al.h \
5816         ApplicationServices/ApplicationServices.h \
5817         AudioToolbox/AudioConverter.h \
5818         AudioUnit/AudioUnit.h \
5819         AudioUnit/AudioComponent.h \
5820         CL/cl.h \
5821         Carbon/Carbon.h \
5822         CoreAudio/CoreAudio.h \
5823         CoreServices/CoreServices.h \
5824         DiskArbitration/DiskArbitration.h \
5825         IOKit/IOKitLib.h \
5826         IOKit/hid/IOHIDLib.h \
5827         OpenAL/al.h \
5828         OpenCL/opencl.h \
5829         QuickTime/ImageCompression.h \
5830         Security/Security.h \
5831         alias.h \
5832         alsa/asoundlib.h \
5833         arpa/inet.h \
5834         arpa/nameser.h \
5835         asm/types.h \
5836         capi20.h \
5837         curses.h \
5838         direct.h \
5839         dirent.h \
5840         dlfcn.h \
5841         elf.h \
5842         float.h \
5843         fnmatch.h \
5844         fontconfig/fontconfig.h \
5845         getopt.h \
5846         gettext-po.h \
5847         grp.h \
5848         gsm.h \
5849         gsm/gsm.h \
5850         ieeefp.h \
5851         inet/mib2.h \
5852         io.h \
5853         jpeglib.h \
5854         kstat.h \
5855         lber.h \
5856         lcms.h \
5857         lcms/lcms.h \
5858         ldap.h \
5859         link.h \
5860         linux/cdrom.h \
5861         linux/compiler.h \
5862         linux/filter.h \
5863         linux/hdreg.h \
5864         linux/input.h \
5865         linux/ioctl.h \
5866         linux/joystick.h \
5867         linux/major.h \
5868         linux/param.h \
5869         linux/serial.h \
5870         linux/types.h \
5871         linux/ucdrom.h \
5872         lwp.h \
5873         mach-o/nlist.h \
5874         mach-o/loader.h \
5875         mach/mach.h \
5876         mach/machine.h \
5877         machine/cpu.h \
5878         machine/limits.h \
5879         machine/sysarch.h \
5880         mntent.h \
5881         mpg123.h \
5882         ncurses.h \
5883         netdb.h \
5884         netinet/in.h \
5885         netinet/in_systm.h \
5886         netinet/tcp.h \
5887         netinet/tcp_fsm.h \
5888         openssl/err.h \
5889         openssl/ssl.h \
5890         png.h \
5891         poll.h \
5892         port.h \
5893         process.h \
5894         pthread.h \
5895         pwd.h \
5896         sched.h \
5897         scsi/scsi.h \
5898         scsi/scsi_ioctl.h \
5899         scsi/sg.h \
5900         stdbool.h \
5901         stdint.h \
5902         stropts.h \
5903         sys/asoundlib.h \
5904         sys/attr.h \
5905         sys/cdio.h \
5906         sys/elf32.h \
5907         sys/epoll.h \
5908         sys/event.h \
5909         sys/exec_elf.h \
5910         sys/filio.h \
5911         sys/inotify.h \
5912         sys/ioctl.h \
5913         sys/ipc.h \
5914         sys/limits.h \
5915         sys/link.h \
5916         sys/mman.h \
5917         sys/modem.h \
5918         sys/msg.h \
5919         sys/mtio.h \
5920         sys/param.h \
5921         sys/poll.h \
5922         sys/prctl.h \
5923         sys/protosw.h \
5924         sys/ptrace.h \
5925         sys/resource.h \
5926         sys/scsiio.h \
5927         sys/shm.h \
5928         sys/signal.h \
5929         sys/socket.h \
5930         sys/socketvar.h \
5931         sys/sockio.h \
5932         sys/statvfs.h \
5933         sys/strtio.h \
5934         sys/syscall.h \
5935         sys/tihdr.h \
5936         sys/time.h \
5937         sys/timeout.h \
5938         sys/times.h \
5939         sys/uio.h \
5940         sys/utsname.h \
5941         sys/vm86.h \
5942         sys/wait.h \
5943         syscall.h \
5944         termios.h \
5945         tiffio.h \
5946         unistd.h \
5947         utime.h \
5948         valgrind/memcheck.h \
5949         valgrind/valgrind.h \
5950         zlib.h
5951
5952 do :
5953   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5954 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5955 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5956   cat >>confdefs.h <<_ACEOF
5957 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5958 _ACEOF
5959
5960 fi
5961
5962 done
5963
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
5965 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
5966 if ${ac_cv_header_stat_broken+:} false; then :
5967   $as_echo_n "(cached) " >&6
5968 else
5969   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5970 /* end confdefs.h.  */
5971 #include <sys/types.h>
5972 #include <sys/stat.h>
5973
5974 #if defined S_ISBLK && defined S_IFDIR
5975 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
5976 #endif
5977
5978 #if defined S_ISBLK && defined S_IFCHR
5979 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
5980 #endif
5981
5982 #if defined S_ISLNK && defined S_IFREG
5983 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
5984 #endif
5985
5986 #if defined S_ISSOCK && defined S_IFREG
5987 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
5988 #endif
5989
5990 _ACEOF
5991 if ac_fn_c_try_compile "$LINENO"; then :
5992   ac_cv_header_stat_broken=no
5993 else
5994   ac_cv_header_stat_broken=yes
5995 fi
5996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5997 fi
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
5999 $as_echo "$ac_cv_header_stat_broken" >&6; }
6000 if test $ac_cv_header_stat_broken = yes; then
6001
6002 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6003
6004 fi
6005
6006
6007
6008 for ac_header in sys/mount.h sys/statfs.h sys/sysctl.h sys/user.h sys/vfs.h
6009 do :
6010   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6011 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6012      #ifdef HAVE_SYS_PARAM_H
6013      # include <sys/param.h>
6014      #endif
6015 "
6016 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6017   cat >>confdefs.h <<_ACEOF
6018 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6019 _ACEOF
6020
6021 fi
6022
6023 done
6024
6025
6026 for ac_header in \
6027         netinet/ip.h \
6028         net/if.h \
6029         net/if_arp.h \
6030         net/if_dl.h \
6031         net/if_types.h \
6032         net/route.h \
6033         netinet/if_ether.h \
6034         netinet/if_inarp.h \
6035         netinet/in_pcb.h \
6036         netinet/ip_icmp.h \
6037         netinet/ip_var.h \
6038         netinet/udp.h \
6039         netipx/ipx.h \
6040         sys/un.h \
6041
6042 do :
6043   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6044 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6045      #ifdef HAVE_SYS_SOCKET_H
6046      # include <sys/socket.h>
6047      #endif
6048      #ifdef HAVE_SYS_SOCKETVAR_H
6049      # include <sys/socketvar.h>
6050      #endif
6051      #ifdef HAVE_NET_ROUTE_H
6052      # include <net/route.h>
6053      #endif
6054      #ifdef HAVE_NETINET_IN_H
6055      # include <netinet/in.h>
6056      #endif
6057      #ifdef HAVE_NETINET_IN_SYSTM_H
6058      # include <netinet/in_systm.h>
6059      #endif
6060      #ifdef HAVE_NET_IF_H
6061      # include <net/if.h>
6062      #endif
6063      #ifdef HAVE_NETINET_IP_H
6064      # include <netinet/ip.h>
6065      #endif
6066 "
6067 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6068   cat >>confdefs.h <<_ACEOF
6069 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6070 _ACEOF
6071
6072 fi
6073
6074 done
6075
6076
6077 for ac_header in netinet/tcp_timer.h netinet/udp_var.h netinet/icmp_var.h netinet/tcp_var.h
6078 do :
6079   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6080 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6081      #ifdef HAVE_ALIAS_H
6082      # include <alias.h>
6083      #endif
6084      #ifdef HAVE_SYS_SOCKET_H
6085      # include <sys/socket.h>
6086      #endif
6087      #ifdef HAVE_SYS_SOCKETVAR_H
6088      # include <sys/socketvar.h>
6089      #endif
6090      #ifdef HAVE_SYS_TIMEOUT_H
6091      # include <sys/timeout.h>
6092      #endif
6093      #ifdef HAVE_NETINET_IN_H
6094      # include <netinet/in.h>
6095      #endif
6096      #ifdef HAVE_NETINET_IN_SYSTM_H
6097      # include <netinet/in_systm.h>
6098      #endif
6099      #ifdef HAVE_NETINET_IP_H
6100      # include <netinet/ip.h>
6101      #endif
6102      #ifdef HAVE_NETINET_IP_VAR_H
6103      # include <netinet/ip_var.h>
6104      #endif
6105      #ifdef HAVE_NETINET_IP_ICMP_H
6106      # include <netinet/ip_icmp.h>
6107      #endif
6108      #ifdef HAVE_NETINET_UDP_H
6109      # include <netinet/udp.h>
6110      #endif
6111      #ifdef HAVE_NETINET_TCP_H
6112      # include <netinet/tcp.h>
6113      #endif
6114      #ifdef HAVE_NETINET_TCP_TIMER_H
6115      #include <netinet/tcp_timer.h>
6116      #endif
6117 "
6118 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6119   cat >>confdefs.h <<_ACEOF
6120 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6121 _ACEOF
6122
6123 fi
6124
6125 done
6126
6127
6128 for ac_header in linux/ipx.h linux/irda.h
6129 do :
6130   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6131 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6132      #ifdef HAVE_ASM_TYPES_H
6133      # include <asm/types.h>
6134      #endif
6135      #ifdef HAVE_SYS_SOCKET_H
6136      # include <sys/socket.h>
6137      #endif
6138      #ifdef HAVE_LINUX_TYPES_H
6139      # include <linux/types.h>
6140      #endif
6141 "
6142 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6143   cat >>confdefs.h <<_ACEOF
6144 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6145 _ACEOF
6146
6147 fi
6148
6149 done
6150
6151
6152 for ac_header in mach-o/dyld_images.h
6153 do :
6154   ac_fn_c_check_header_compile "$LINENO" "mach-o/dyld_images.h" "ac_cv_header_mach_o_dyld_images_h" "#ifdef HAVE_STDBOOL_H
6155      # include <stdbool.h>
6156      #endif
6157      #ifdef HAVE_STDINT_H
6158      # include <stdint.h>
6159      #endif
6160 "
6161 if test "x$ac_cv_header_mach_o_dyld_images_h" = xyes; then :
6162   cat >>confdefs.h <<_ACEOF
6163 #define HAVE_MACH_O_DYLD_IMAGES_H 1
6164 _ACEOF
6165
6166 fi
6167
6168 done
6169
6170
6171 for ac_header in resolv.h
6172 do :
6173   ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "#include <sys/types.h>
6174      #ifdef HAVE_SYS_SOCKET_H
6175      # include <sys/socket.h>
6176      #endif
6177      #ifdef HAVE_NETINET_IN_H
6178      # include <netinet/in.h>
6179      #endif
6180      #ifdef HAVE_ARPA_NAMESER_H
6181      # include <arpa/nameser.h>
6182      #endif
6183 "
6184 if test "x$ac_cv_header_resolv_h" = xyes; then :
6185   cat >>confdefs.h <<_ACEOF
6186 #define HAVE_RESOLV_H 1
6187 _ACEOF
6188
6189 fi
6190
6191 done
6192
6193
6194 for ac_header in ifaddrs.h
6195 do :
6196   ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "#include <sys/types.h>
6197 "
6198 if test "x$ac_cv_header_ifaddrs_h" = xyes; then :
6199   cat >>confdefs.h <<_ACEOF
6200 #define HAVE_IFADDRS_H 1
6201 _ACEOF
6202
6203 fi
6204
6205 done
6206
6207
6208 for ac_header in ucontext.h
6209 do :
6210   ac_fn_c_check_header_compile "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "#include <signal.h>
6211 "
6212 if test "x$ac_cv_header_ucontext_h" = xyes; then :
6213   cat >>confdefs.h <<_ACEOF
6214 #define HAVE_UCONTEXT_H 1
6215 _ACEOF
6216
6217 fi
6218
6219 done
6220
6221
6222 for ac_header in sys/thr.h
6223 do :
6224   ac_fn_c_check_header_compile "$LINENO" "sys/thr.h" "ac_cv_header_sys_thr_h" "#include <sys/types.h>
6225 #ifdef HAVE_UCONTEXT_H
6226 #include <ucontext.h>
6227 #endif
6228 "
6229 if test "x$ac_cv_header_sys_thr_h" = xyes; then :
6230   cat >>confdefs.h <<_ACEOF
6231 #define HAVE_SYS_THR_H 1
6232 _ACEOF
6233
6234 fi
6235
6236 done
6237
6238
6239 for ac_header in pthread_np.h
6240 do :
6241   ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" "#ifdef HAVE_PTHREAD_H
6242 #include <pthread.h>
6243 #endif
6244 "
6245 if test "x$ac_cv_header_pthread_np_h" = xyes; then :
6246   cat >>confdefs.h <<_ACEOF
6247 #define HAVE_PTHREAD_NP_H 1
6248 _ACEOF
6249
6250 fi
6251
6252 done
6253
6254
6255 for ac_header in linux/videodev.h linux/videodev2.h libv4l1.h
6256 do :
6257   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6258 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_TIME_H
6259 #include <sys/time.h>
6260 #endif
6261 #include <sys/types.h>
6262 #ifdef HAVE_ASM_TYPES_H
6263 #include <asm/types.h>
6264 #endif
6265 "
6266 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6267   cat >>confdefs.h <<_ACEOF
6268 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6269 _ACEOF
6270
6271 fi
6272
6273 done
6274
6275
6276 for ac_header in linux/capi.h
6277 do :
6278   ac_fn_c_check_header_compile "$LINENO" "linux/capi.h" "ac_cv_header_linux_capi_h" "#define __user
6279 "
6280 if test "x$ac_cv_header_linux_capi_h" = xyes; then :
6281   cat >>confdefs.h <<_ACEOF
6282 #define HAVE_LINUX_CAPI_H 1
6283 _ACEOF
6284
6285 fi
6286
6287 done
6288
6289
6290
6291 DLLEXT=""
6292
6293 DLLFLAGS="-D_REENTRANT"
6294
6295 LDSHARED=""
6296
6297 LDDLLFLAGS=""
6298
6299 LIBEXT="so"
6300
6301 IMPLIBEXT="def"
6302
6303 LDRPATH_INSTALL=""
6304
6305 LDRPATH_LOCAL=""
6306
6307 STATIC_IMPLIBEXT="def.a"
6308 # Extract the first word of "ldd", so it can be a program name with args.
6309 set dummy ldd; 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_path_LDD+:} false; then :
6313   $as_echo_n "(cached) " >&6
6314 else
6315   case $LDD in
6316   [\\/]* | ?:[\\/]*)
6317   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
6318   ;;
6319   *)
6320   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6321 as_dummy="/sbin:/usr/sbin:$PATH"
6322 for as_dir in $as_dummy
6323 do
6324   IFS=$as_save_IFS
6325   test -z "$as_dir" && as_dir=.
6326     for ac_exec_ext in '' $ac_executable_extensions; do
6327   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6328     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
6329     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6330     break 2
6331   fi
6332 done
6333   done
6334 IFS=$as_save_IFS
6335
6336   test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
6337   ;;
6338 esac
6339 fi
6340 LDD=$ac_cv_path_LDD
6341 if test -n "$LDD"; then
6342   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
6343 $as_echo "$LDD" >&6; }
6344 else
6345   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6346 $as_echo "no" >&6; }
6347 fi
6348
6349
6350 if test -n "$ac_tool_prefix"; then
6351   for ac_prog in readelf
6352   do
6353     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6354 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6356 $as_echo_n "checking for $ac_word... " >&6; }
6357 if ${ac_cv_prog_READELF+:} false; then :
6358   $as_echo_n "(cached) " >&6
6359 else
6360   if test -n "$READELF"; then
6361   ac_cv_prog_READELF="$READELF" # Let the user override the test.
6362 else
6363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6364 for as_dir in $PATH
6365 do
6366   IFS=$as_save_IFS
6367   test -z "$as_dir" && as_dir=.
6368     for ac_exec_ext in '' $ac_executable_extensions; do
6369   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6370     ac_cv_prog_READELF="$ac_tool_prefix$ac_prog"
6371     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6372     break 2
6373   fi
6374 done
6375   done
6376 IFS=$as_save_IFS
6377
6378 fi
6379 fi
6380 READELF=$ac_cv_prog_READELF
6381 if test -n "$READELF"; then
6382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
6383 $as_echo "$READELF" >&6; }
6384 else
6385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6386 $as_echo "no" >&6; }
6387 fi
6388
6389
6390     test -n "$READELF" && break
6391   done
6392 fi
6393 if test -z "$READELF"; then
6394   ac_ct_READELF=$READELF
6395   for ac_prog in readelf
6396 do
6397   # Extract the first word of "$ac_prog", so it can be a program name with args.
6398 set dummy $ac_prog; ac_word=$2
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6400 $as_echo_n "checking for $ac_word... " >&6; }
6401 if ${ac_cv_prog_ac_ct_READELF+:} false; then :
6402   $as_echo_n "(cached) " >&6
6403 else
6404   if test -n "$ac_ct_READELF"; then
6405   ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test.
6406 else
6407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6408 for as_dir in $PATH
6409 do
6410   IFS=$as_save_IFS
6411   test -z "$as_dir" && as_dir=.
6412     for ac_exec_ext in '' $ac_executable_extensions; do
6413   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6414     ac_cv_prog_ac_ct_READELF="$ac_prog"
6415     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6416     break 2
6417   fi
6418 done
6419   done
6420 IFS=$as_save_IFS
6421
6422 fi
6423 fi
6424 ac_ct_READELF=$ac_cv_prog_ac_ct_READELF
6425 if test -n "$ac_ct_READELF"; then
6426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_READELF" >&5
6427 $as_echo "$ac_ct_READELF" >&6; }
6428 else
6429   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6430 $as_echo "no" >&6; }
6431 fi
6432
6433
6434   test -n "$ac_ct_READELF" && break
6435 done
6436
6437   if test "x$ac_ct_READELF" = x; then
6438     READELF="true"
6439   else
6440     case $cross_compiling:$ac_tool_warned in
6441 yes:)
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6443 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6444 ac_tool_warned=yes ;;
6445 esac
6446     READELF=$ac_ct_READELF
6447   fi
6448 fi
6449
6450
6451 case $host_os in
6452   cygwin*|mingw32*)
6453     if test -n "$ac_tool_prefix"; then
6454   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6455 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6457 $as_echo_n "checking for $ac_word... " >&6; }
6458 if ${ac_cv_prog_DLLTOOL+:} false; then :
6459   $as_echo_n "(cached) " >&6
6460 else
6461   if test -n "$DLLTOOL"; then
6462   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6463 else
6464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6465 for as_dir in $PATH
6466 do
6467   IFS=$as_save_IFS
6468   test -z "$as_dir" && as_dir=.
6469     for ac_exec_ext in '' $ac_executable_extensions; do
6470   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6471     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6472     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6473     break 2
6474   fi
6475 done
6476   done
6477 IFS=$as_save_IFS
6478
6479 fi
6480 fi
6481 DLLTOOL=$ac_cv_prog_DLLTOOL
6482 if test -n "$DLLTOOL"; then
6483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6484 $as_echo "$DLLTOOL" >&6; }
6485 else
6486   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6487 $as_echo "no" >&6; }
6488 fi
6489
6490
6491 fi
6492 if test -z "$ac_cv_prog_DLLTOOL"; then
6493   ac_ct_DLLTOOL=$DLLTOOL
6494   # Extract the first word of "dlltool", so it can be a program name with args.
6495 set dummy dlltool; ac_word=$2
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6497 $as_echo_n "checking for $ac_word... " >&6; }
6498 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6499   $as_echo_n "(cached) " >&6
6500 else
6501   if test -n "$ac_ct_DLLTOOL"; then
6502   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6503 else
6504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6505 for as_dir in $PATH
6506 do
6507   IFS=$as_save_IFS
6508   test -z "$as_dir" && as_dir=.
6509     for ac_exec_ext in '' $ac_executable_extensions; do
6510   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6511     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6512     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6513     break 2
6514   fi
6515 done
6516   done
6517 IFS=$as_save_IFS
6518
6519 fi
6520 fi
6521 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6522 if test -n "$ac_ct_DLLTOOL"; then
6523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6524 $as_echo "$ac_ct_DLLTOOL" >&6; }
6525 else
6526   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6527 $as_echo "no" >&6; }
6528 fi
6529
6530   if test "x$ac_ct_DLLTOOL" = x; then
6531     DLLTOOL="false"
6532   else
6533     case $cross_compiling:$ac_tool_warned in
6534 yes:)
6535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6536 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6537 ac_tool_warned=yes ;;
6538 esac
6539     DLLTOOL=$ac_ct_DLLTOOL
6540   fi
6541 else
6542   DLLTOOL="$ac_cv_prog_DLLTOOL"
6543 fi
6544
6545     if test -n "$ac_tool_prefix"; then
6546   # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
6547 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6549 $as_echo_n "checking for $ac_word... " >&6; }
6550 if ${ac_cv_prog_DLLWRAP+:} false; then :
6551   $as_echo_n "(cached) " >&6
6552 else
6553   if test -n "$DLLWRAP"; then
6554   ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
6555 else
6556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6557 for as_dir in $PATH
6558 do
6559   IFS=$as_save_IFS
6560   test -z "$as_dir" && as_dir=.
6561     for ac_exec_ext in '' $ac_executable_extensions; do
6562   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6563     ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
6564     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6565     break 2
6566   fi
6567 done
6568   done
6569 IFS=$as_save_IFS
6570
6571 fi
6572 fi
6573 DLLWRAP=$ac_cv_prog_DLLWRAP
6574 if test -n "$DLLWRAP"; then
6575   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLWRAP" >&5
6576 $as_echo "$DLLWRAP" >&6; }
6577 else
6578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6579 $as_echo "no" >&6; }
6580 fi
6581
6582
6583 fi
6584 if test -z "$ac_cv_prog_DLLWRAP"; then
6585   ac_ct_DLLWRAP=$DLLWRAP
6586   # Extract the first word of "dllwrap", so it can be a program name with args.
6587 set dummy dllwrap; ac_word=$2
6588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6589 $as_echo_n "checking for $ac_word... " >&6; }
6590 if ${ac_cv_prog_ac_ct_DLLWRAP+:} false; then :
6591   $as_echo_n "(cached) " >&6
6592 else
6593   if test -n "$ac_ct_DLLWRAP"; then
6594   ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
6595 else
6596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6597 for as_dir in $PATH
6598 do
6599   IFS=$as_save_IFS
6600   test -z "$as_dir" && as_dir=.
6601     for ac_exec_ext in '' $ac_executable_extensions; do
6602   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6603     ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
6604     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6605     break 2
6606   fi
6607 done
6608   done
6609 IFS=$as_save_IFS
6610
6611 fi
6612 fi
6613 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
6614 if test -n "$ac_ct_DLLWRAP"; then
6615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLWRAP" >&5
6616 $as_echo "$ac_ct_DLLWRAP" >&6; }
6617 else
6618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6619 $as_echo "no" >&6; }
6620 fi
6621
6622   if test "x$ac_ct_DLLWRAP" = x; then
6623     DLLWRAP="false"
6624   else
6625     case $cross_compiling:$ac_tool_warned in
6626 yes:)
6627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6628 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6629 ac_tool_warned=yes ;;
6630 esac
6631     DLLWRAP=$ac_ct_DLLWRAP
6632   fi
6633 else
6634   DLLWRAP="$ac_cv_prog_DLLWRAP"
6635 fi
6636
6637     if test "$DLLWRAP" = "false"; then
6638       LIBEXT="a"
6639     else
6640             LIBEXT="dll"
6641     fi
6642     IMPLIBEXT="a"
6643     STATIC_IMPLIBEXT="a"
6644         enable_iphlpapi=${enable_iphlpapi:-no}
6645     enable_kernel32=${enable_kernel32:-no}
6646     enable_msvcrt=${enable_msvcrt:-no}
6647     enable_ntdll=${enable_ntdll:-no}
6648     enable_ws2_32=${enable_ws2_32:-no}
6649     enable_loader=${enable_loader:-no}
6650     enable_server=${enable_server:-no}
6651         with_x=${with_x:-no}
6652     with_pthread=${with_pthread:-no}
6653     ;;
6654   darwin*|macosx*)
6655     DLLEXT=".so"
6656     LIBEXT="dylib"
6657     DLLFLAGS="$DLLFLAGS -fPIC"
6658     LDDLLFLAGS="-bundle -multiply_defined suppress"
6659     LIBWINE_LDFLAGS="-multiply_defined suppress"
6660     LDSHARED="\$(CC) -dynamiclib"
6661     LDRPATH_INSTALL="-Wl,-rpath,@loader_path/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
6662     LDRPATH_LOCAL="-Wl,-rpath,@loader_path/\$(top_builddir)/libs/wine"
6663         COREFOUNDATIONLIB="-framework CoreFoundation"
6664
6665     IOKITLIB="-framework IOKit -framework CoreFoundation"
6666
6667     APPLICATIONSERVICESLIB="-framework ApplicationServices"
6668
6669     CORESERVICESLIB="-framework CoreServices"
6670
6671     case $host_os in
6672       darwin11*)
6673         LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-macosx_version_min,10.6,-segaddr,WINE_DOS,0x00001000,-segaddr,WINE_SHAREDHEAP,0x7f000000,-sectcreate,__TEXT,__info_plist,wine_info.plist"
6674  ;;
6675       *)
6676         LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00001000,-segaddr,WINE_SHAREDHEAP,0x7f000000,-sectcreate,__TEXT,__info_plist,wine_info.plist"
6677  ;;
6678     esac
6679     if test "$ac_cv_header_DiskArbitration_DiskArbitration_h" = "yes"
6680     then
6681                 DISKARBITRATIONLIB="-framework DiskArbitration -framework CoreFoundation"
6682
6683     fi
6684     if test "$ac_cv_header_Security_Security_h" = "yes"
6685     then
6686         SECURITYLIB="-framework Security -framework CoreFoundation"
6687
6688                 ac_save_LIBS="$LIBS"
6689         LIBS="$LIBS $SECURITYLIB"
6690         for ac_func in SSLCopyPeerCertificates
6691 do :
6692   ac_fn_c_check_func "$LINENO" "SSLCopyPeerCertificates" "ac_cv_func_SSLCopyPeerCertificates"
6693 if test "x$ac_cv_func_SSLCopyPeerCertificates" = xyes; then :
6694   cat >>confdefs.h <<_ACEOF
6695 #define HAVE_SSLCOPYPEERCERTIFICATES 1
6696 _ACEOF
6697
6698 fi
6699 done
6700
6701         LIBS="$ac_save_LIBS"
6702         with_gnutls=${with_gnutls:-no}
6703     fi
6704     if test "$ac_cv_header_CoreAudio_CoreAudio_h" = "yes" -a "$ac_cv_header_AudioUnit_AudioUnit_h" = "yes"
6705     then
6706         if test "$ac_cv_header_AudioUnit_AudioComponent_h" = "yes"
6707         then
6708             COREAUDIO="-framework CoreFoundation -framework CoreAudio -framework AudioUnit -framework AudioToolbox -framework CoreMIDI"
6709
6710         else
6711                         COREAUDIO="-framework CoreAudio -framework AudioUnit -framework CoreServices -framework AudioToolbox -framework CoreMIDI"
6712
6713         fi
6714                 ac_save_LIBS="$LIBS"
6715         LIBS="$LIBS $COREAUDIO"
6716         for ac_func in AUGraphAddNode
6717 do :
6718   ac_fn_c_check_func "$LINENO" "AUGraphAddNode" "ac_cv_func_AUGraphAddNode"
6719 if test "x$ac_cv_func_AUGraphAddNode" = xyes; then :
6720   cat >>confdefs.h <<_ACEOF
6721 #define HAVE_AUGRAPHADDNODE 1
6722 _ACEOF
6723
6724 fi
6725 done
6726
6727         LIBS="$ac_save_LIBS"
6728     fi
6729     if test "$ac_cv_header_OpenAL_al_h" = "yes"
6730     then
6731         FRAMEWORK_OPENAL="-framework OpenAL"
6732
6733
6734 cat >>confdefs.h <<_ACEOF
6735 #define HAVE_OPENAL 1
6736 _ACEOF
6737
6738         ac_cv_lib_openal=yes
6739     fi
6740     if test "$ac_cv_header_OpenCL_opencl_h" = "yes"
6741     then
6742         LIBOPENCL="-framework OpenCL"
6743
6744         ac_cv_lib_OpenCL_clGetPlatformInfo=yes
6745     fi
6746     if test "$ac_cv_header_IOKit_hid_IOHIDLib_h" = "yes"
6747     then
6748         ac_save_LIBS="$LIBS"
6749         LIBS="$LIBS $IOKITLIB"
6750         for ac_func in IOHIDManagerCreate
6751 do :
6752   ac_fn_c_check_func "$LINENO" "IOHIDManagerCreate" "ac_cv_func_IOHIDManagerCreate"
6753 if test "x$ac_cv_func_IOHIDManagerCreate" = xyes; then :
6754   cat >>confdefs.h <<_ACEOF
6755 #define HAVE_IOHIDMANAGERCREATE 1
6756 _ACEOF
6757
6758 fi
6759 done
6760
6761         LIBS="$ac_save_LIBS"
6762     fi
6763     case $host_cpu in
6764       *powerpc*)
6765         LDDLLFLAGS="$LDDLLFLAGS -read_only_relocs warning"          ;;
6766     esac
6767     if test "$ac_cv_header_QuickTime_ImageCompression_h" = "yes"
6768     then
6769         QUICKTIMELIB="-framework QuickTime -framework ApplicationServices -framework CoreVideo"
6770
6771         enable_wineqtdecoder=${enable_wineqtdecoder:-yes}
6772     else
6773         as_fn_append wine_notices "|QuickTime ${notice_platform}development files not found, video decoding won't be supported."
6774     fi
6775     if test "$ac_cv_header_Carbon_Carbon_h" = "yes"
6776     then
6777         CARBONLIB="-framework Carbon"
6778
6779     fi
6780
6781         if test "$ac_cv_header_ApplicationServices_ApplicationServices_h" = "yes"
6782     then
6783         ac_save_LIBS="$LIBS"
6784         LIBS="$LIBS $APPLICATIONSERVICESLIB"
6785         ac_fn_c_check_func "$LINENO" "CGDisplayModeGetWidth" "ac_cv_func_CGDisplayModeGetWidth"
6786 if test "x$ac_cv_func_CGDisplayModeGetWidth" = xyes; then :
6787   enable_winemac_drv=${enable_winemac_drv:-yes}
6788 fi
6789
6790         LIBS="$ac_save_LIBS"
6791     fi
6792
6793         if test "x$enable_win16" = "xyes"
6794     then
6795         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 16-bit code can be built correctly" >&5
6796 $as_echo_n "checking whether 16-bit code can be built correctly... " >&6; }
6797         if test "$cross_compiling" = yes; then :
6798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5
6799 $as_echo "cross-compiling, assuming yes" >&6; }
6800 else
6801   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6802 /* end confdefs.h.  */
6803 asm(".text\n"
6804                                             "bad:\tnop;nop\n"
6805                                             "good:\tnop;nop\n\t"
6806                                             ".globl _testfunc\n"
6807                                             "_testfunc:\tcallw good");
6808                                         extern void testfunc();
6809 int
6810 main ()
6811 {
6812 unsigned short *p = (unsigned short *)testfunc;
6813                                         return p[0] != 0xe866 || p[1] != 0xfffa
6814   ;
6815   return 0;
6816 }
6817 _ACEOF
6818 if ac_fn_c_try_run "$LINENO"; then :
6819   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6820 $as_echo "yes" >&6; }
6821 else
6822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6823 $as_echo "no" >&6; }
6824                                        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
6825 fi
6826 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6827   conftest.$ac_objext conftest.beam conftest.$ac_ext
6828 fi
6829
6830     fi
6831     ;;
6832   *)
6833     DLLFLAGS="$DLLFLAGS -fPIC"
6834     DLLEXT=".so"
6835     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a GNU style ELF dll" >&5
6836 $as_echo_n "checking whether we can build a GNU style ELF dll... " >&6; }
6837 if ${ac_cv_c_dll_gnuelf+:} false; then :
6838   $as_echo_n "(cached) " >&6
6839 else
6840   ac_wine_try_cflags_saved=$CFLAGS
6841 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic"
6842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6843 /* end confdefs.h.  */
6844 void myfunc() {}
6845 _ACEOF
6846 if ac_fn_c_try_link "$LINENO"; then :
6847   ac_cv_c_dll_gnuelf="yes"
6848 else
6849   ac_cv_c_dll_gnuelf="no"
6850 fi
6851 rm -f core conftest.err conftest.$ac_objext \
6852     conftest$ac_exeext conftest.$ac_ext
6853 CFLAGS=$ac_wine_try_cflags_saved
6854 fi
6855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_gnuelf" >&5
6856 $as_echo "$ac_cv_c_dll_gnuelf" >&6; }
6857     if test "$ac_cv_c_dll_gnuelf" = "yes"
6858     then
6859       LDSHARED="\$(CC) -shared"
6860       LDDLLFLAGS="-shared -Wl,-Bsymbolic"
6861       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1" >&5
6862 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1... " >&6; }
6863 if ${ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1+:} false; then :
6864   $as_echo_n "(cached) " >&6
6865 else
6866   ac_wine_try_cflags_saved=$CFLAGS
6867 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,confest.so.1"
6868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6869 /* end confdefs.h.  */
6870 int main(int argc, char **argv) { return 0; }
6871 _ACEOF
6872 if ac_fn_c_try_link "$LINENO"; then :
6873   ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=yes
6874 else
6875   ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=no
6876 fi
6877 rm -f core conftest.err conftest.$ac_objext \
6878     conftest$ac_exeext conftest.$ac_ext
6879 CFLAGS=$ac_wine_try_cflags_saved
6880 fi
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&5
6882 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&6; }
6883 if test $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1 = yes; then :
6884   LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
6885 else
6886   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1" >&5
6887 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1... " >&6; }
6888 if ${ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1+:} false; then :
6889   $as_echo_n "(cached) " >&6
6890 else
6891   ac_wine_try_cflags_saved=$CFLAGS
6892 CFLAGS="$CFLAGS -fPIC -shared -Wl,-h,confest.so.1"
6893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6894 /* end confdefs.h.  */
6895 int main(int argc, char **argv) { return 0; }
6896 _ACEOF
6897 if ac_fn_c_try_link "$LINENO"; then :
6898   ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=yes
6899 else
6900   ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=no
6901 fi
6902 rm -f core conftest.err conftest.$ac_objext \
6903     conftest$ac_exeext conftest.$ac_ext
6904 CFLAGS=$ac_wine_try_cflags_saved
6905 fi
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&5
6907 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&6; }
6908 if test $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1 = yes; then :
6909   LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-h,%)"
6910 fi
6911 fi
6912
6913       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs" >&5
6914 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs... " >&6; }
6915 if ${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs+:} false; then :
6916   $as_echo_n "(cached) " >&6
6917 else
6918   ac_wine_try_cflags_saved=$CFLAGS
6919 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
6920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6921 /* end confdefs.h.  */
6922 int main(int argc, char **argv) { return 0; }
6923 _ACEOF
6924 if ac_fn_c_try_link "$LINENO"; then :
6925   ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=yes
6926 else
6927   ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=no
6928 fi
6929 rm -f core conftest.err conftest.$ac_objext \
6930     conftest$ac_exeext conftest.$ac_ext
6931 CFLAGS=$ac_wine_try_cflags_saved
6932 fi
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&5
6934 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&6; }
6935 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs = yes; then :
6936   LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
6937 fi
6938
6939       { $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
6940 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini... " >&6; }
6941 if ${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini+:} false; then :
6942   $as_echo_n "(cached) " >&6
6943 else
6944   ac_wine_try_cflags_saved=$CFLAGS
6945 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
6946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6947 /* end confdefs.h.  */
6948 int main(int argc, char **argv) { return 0; }
6949 _ACEOF
6950 if ac_fn_c_try_link "$LINENO"; then :
6951   ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=yes
6952 else
6953   ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=no
6954 fi
6955 rm -f core conftest.err conftest.$ac_objext \
6956     conftest$ac_exeext conftest.$ac_ext
6957 CFLAGS=$ac_wine_try_cflags_saved
6958 fi
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&5
6960 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&6; }
6961 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini = yes; then :
6962   LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
6963 fi
6964
6965       echo '{ global: *; };' >conftest.map
6966       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map" >&5
6967 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map... " >&6; }
6968 if ${ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map+:} false; then :
6969   $as_echo_n "(cached) " >&6
6970 else
6971   ac_wine_try_cflags_saved=$CFLAGS
6972 CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
6973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6974 /* end confdefs.h.  */
6975 int main(int argc, char **argv) { return 0; }
6976 _ACEOF
6977 if ac_fn_c_try_link "$LINENO"; then :
6978   ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=yes
6979 else
6980   ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=no
6981 fi
6982 rm -f core conftest.err conftest.$ac_objext \
6983     conftest$ac_exeext conftest.$ac_ext
6984 CFLAGS=$ac_wine_try_cflags_saved
6985 fi
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&5
6987 $as_echo "$ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&6; }
6988 if test $ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map = yes; then :
6989   LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)"
6990 fi
6991       rm -f conftest.map
6992
6993       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5
6994 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--export-dynamic... " >&6; }
6995 if ${ac_cv_cflags__fPIC__Wl___export_dynamic+:} false; then :
6996   $as_echo_n "(cached) " >&6
6997 else
6998   ac_wine_try_cflags_saved=$CFLAGS
6999 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
7000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7001 /* end confdefs.h.  */
7002 int main(int argc, char **argv) { return 0; }
7003 _ACEOF
7004 if ac_fn_c_try_link "$LINENO"; then :
7005   ac_cv_cflags__fPIC__Wl___export_dynamic=yes
7006 else
7007   ac_cv_cflags__fPIC__Wl___export_dynamic=no
7008 fi
7009 rm -f core conftest.err conftest.$ac_objext \
7010     conftest$ac_exeext conftest.$ac_ext
7011 CFLAGS=$ac_wine_try_cflags_saved
7012 fi
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__Wl___export_dynamic" >&5
7014 $as_echo "$ac_cv_cflags__fPIC__Wl___export_dynamic" >&6; }
7015 if test $ac_cv_cflags__fPIC__Wl___export_dynamic = yes; then :
7016   LDEXECFLAGS="-Wl,--export-dynamic"
7017
7018 fi
7019
7020       as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,--rpath,\\$ORIGIN/../lib" | $as_tr_sh`
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib" >&5
7022 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... " >&6; }
7023 if eval \${$as_ac_var+:} false; then :
7024   $as_echo_n "(cached) " >&6
7025 else
7026   ac_wine_try_cflags_saved=$CFLAGS
7027 CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
7028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7029 /* end confdefs.h.  */
7030 int main(int argc, char **argv) { return 0; }
7031 _ACEOF
7032 if ac_fn_c_try_link "$LINENO"; then :
7033   eval "$as_ac_var=yes"
7034 else
7035   eval "$as_ac_var=no"
7036 fi
7037 rm -f core conftest.err conftest.$ac_objext \
7038     conftest$ac_exeext conftest.$ac_ext
7039 CFLAGS=$ac_wine_try_cflags_saved
7040 fi
7041 eval ac_res=\$$as_ac_var
7042                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7043 $as_echo "$ac_res" >&6; }
7044 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
7045   LDRPATH_INSTALL="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
7046                        LDRPATH_LOCAL="-Wl,--rpath,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
7047 else
7048   as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,-R,\\$ORIGIN/../lib" | $as_tr_sh`
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib" >&5
7050 $as_echo_n "checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib... " >&6; }
7051 if eval \${$as_ac_var+:} false; then :
7052   $as_echo_n "(cached) " >&6
7053 else
7054   ac_wine_try_cflags_saved=$CFLAGS
7055 CFLAGS="$CFLAGS -fPIC -Wl,-R,\$ORIGIN/../lib"
7056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7057 /* end confdefs.h.  */
7058 int main(int argc, char **argv) { return 0; }
7059 _ACEOF
7060 if ac_fn_c_try_link "$LINENO"; then :
7061   eval "$as_ac_var=yes"
7062 else
7063   eval "$as_ac_var=no"
7064 fi
7065 rm -f core conftest.err conftest.$ac_objext \
7066     conftest$ac_exeext conftest.$ac_ext
7067 CFLAGS=$ac_wine_try_cflags_saved
7068 fi
7069 eval ac_res=\$$as_ac_var
7070                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7071 $as_echo "$ac_res" >&6; }
7072 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
7073   LDRPATH_INSTALL="-Wl,-R,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
7074                             LDRPATH_LOCAL="-Wl,-R,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
7075 fi
7076 fi
7077
7078       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--enable-new-dtags" >&5
7079 $as_echo_n "checking whether the compiler supports -Wl,--enable-new-dtags... " >&6; }
7080 if ${ac_cv_cflags__Wl___enable_new_dtags+:} false; then :
7081   $as_echo_n "(cached) " >&6
7082 else
7083   ac_wine_try_cflags_saved=$CFLAGS
7084 CFLAGS="$CFLAGS -Wl,--enable-new-dtags"
7085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7086 /* end confdefs.h.  */
7087 int main(int argc, char **argv) { return 0; }
7088 _ACEOF
7089 if ac_fn_c_try_link "$LINENO"; then :
7090   ac_cv_cflags__Wl___enable_new_dtags=yes
7091 else
7092   ac_cv_cflags__Wl___enable_new_dtags=no
7093 fi
7094 rm -f core conftest.err conftest.$ac_objext \
7095     conftest$ac_exeext conftest.$ac_ext
7096 CFLAGS=$ac_wine_try_cflags_saved
7097 fi
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___enable_new_dtags" >&5
7099 $as_echo "$ac_cv_cflags__Wl___enable_new_dtags" >&6; }
7100 if test $ac_cv_cflags__Wl___enable_new_dtags = yes; then :
7101   LDRPATH_INSTALL="$LDRPATH_INSTALL -Wl,--enable-new-dtags"
7102 fi
7103
7104       case $host_cpu in
7105         *i[3456789]86* | x86_64)
7106           { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400" >&5
7107 $as_echo_n "checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... " >&6; }
7108 if ${ac_cv_cflags__Wl___section_start__interp_0x7bf00400+:} false; then :
7109   $as_echo_n "(cached) " >&6
7110 else
7111   ac_wine_try_cflags_saved=$CFLAGS
7112 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
7113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7114 /* end confdefs.h.  */
7115 int main(int argc, char **argv) { return 0; }
7116 _ACEOF
7117 if ac_fn_c_try_link "$LINENO"; then :
7118   ac_cv_cflags__Wl___section_start__interp_0x7bf00400=yes
7119 else
7120   ac_cv_cflags__Wl___section_start__interp_0x7bf00400=no
7121 fi
7122 rm -f core conftest.err conftest.$ac_objext \
7123     conftest$ac_exeext conftest.$ac_ext
7124 CFLAGS=$ac_wine_try_cflags_saved
7125 fi
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&5
7127 $as_echo "$ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&6; }
7128 if test $ac_cv_cflags__Wl___section_start__interp_0x7bf00400 = yes; then :
7129   case $host_os in
7130                            freebsd* | kfreebsd*-gnu) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x60000400" ;;
7131                            *) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400" ;;
7132                            esac
7133
7134 fi
7135           # Extract the first word of "prelink", so it can be a program name with args.
7136 set dummy prelink; ac_word=$2
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7138 $as_echo_n "checking for $ac_word... " >&6; }
7139 if ${ac_cv_path_PRELINK+:} false; then :
7140   $as_echo_n "(cached) " >&6
7141 else
7142   case $PRELINK in
7143   [\\/]* | ?:[\\/]*)
7144   ac_cv_path_PRELINK="$PRELINK" # Let the user override the test with a path.
7145   ;;
7146   *)
7147   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7148 for as_dir in /sbin /usr/sbin $PATH
7149 do
7150   IFS=$as_save_IFS
7151   test -z "$as_dir" && as_dir=.
7152     for ac_exec_ext in '' $ac_executable_extensions; do
7153   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7154     ac_cv_path_PRELINK="$as_dir/$ac_word$ac_exec_ext"
7155     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7156     break 2
7157   fi
7158 done
7159   done
7160 IFS=$as_save_IFS
7161
7162   test -z "$ac_cv_path_PRELINK" && ac_cv_path_PRELINK="false"
7163   ;;
7164 esac
7165 fi
7166 PRELINK=$ac_cv_path_PRELINK
7167 if test -n "$PRELINK"; then
7168   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRELINK" >&5
7169 $as_echo "$PRELINK" >&6; }
7170 else
7171   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7172 $as_echo "no" >&6; }
7173 fi
7174
7175
7176           if test "x$PRELINK" = xfalse
7177           then
7178               as_fn_append wine_warnings "|prelink not found, base address of core dlls won't be set correctly."
7179           fi
7180           ;;
7181       esac
7182
7183     else
7184       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a UnixWare (Solaris) dll" >&5
7185 $as_echo_n "checking whether we can build a UnixWare (Solaris) dll... " >&6; }
7186 if ${ac_cv_c_dll_unixware+:} false; then :
7187   $as_echo_n "(cached) " >&6
7188 else
7189   ac_wine_try_cflags_saved=$CFLAGS
7190 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
7191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7192 /* end confdefs.h.  */
7193 void myfunc() {}
7194 _ACEOF
7195 if ac_fn_c_try_link "$LINENO"; then :
7196   ac_cv_c_dll_unixware="yes"
7197 else
7198   ac_cv_c_dll_unixware="no"
7199 fi
7200 rm -f core conftest.err conftest.$ac_objext \
7201     conftest$ac_exeext conftest.$ac_ext
7202 CFLAGS=$ac_wine_try_cflags_saved
7203 fi
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_unixware" >&5
7205 $as_echo "$ac_cv_c_dll_unixware" >&6; }
7206       if test "$ac_cv_c_dll_unixware" = "yes"
7207       then
7208         LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
7209         LDDLLFLAGS="-Wl,-G,-B,symbolic"
7210
7211       else
7212         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build an HP-UX dll" >&5
7213 $as_echo_n "checking whether we can build an HP-UX dll... " >&6; }
7214 if ${ac_cv_c_dll_hpux+:} false; then :
7215   $as_echo_n "(cached) " >&6
7216 else
7217   ac_wine_try_cflags_saved=$CFLAGS
7218 CFLAGS="$CFLAGS -shared"
7219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7220 /* end confdefs.h.  */
7221 void myfunc() {}
7222 _ACEOF
7223 if ac_fn_c_try_link "$LINENO"; then :
7224   ac_cv_c_dll_hpux="yes"
7225 else
7226   ac_cv_c_dll_hpux="no"
7227 fi
7228 rm -f core conftest.err conftest.$ac_objext \
7229     conftest$ac_exeext conftest.$ac_ext
7230 CFLAGS=$ac_wine_try_cflags_saved
7231 fi
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_hpux" >&5
7233 $as_echo "$ac_cv_c_dll_hpux" >&6; }
7234         if test "$ac_cv_c_dll_hpux" = "yes"
7235         then
7236           LIBEXT="sl"
7237           DLLEXT=".sl"
7238           LDDLLFLAGS="-shared -fPIC"
7239           LDSHARED="\$(CC) -shared"
7240         fi
7241       fi
7242     fi
7243     ;;
7244 esac
7245
7246 enable_wineqtdecoder=${enable_wineqtdecoder:-no}
7247 enable_winemac_drv=${enable_winemac_drv:-no}
7248
7249 if test "$LIBEXT" = "a"; then
7250   as_fn_error $? "could not find a way to build shared libraries.
7251 It is currently not possible to build Wine without shared library
7252 (.so) support to allow transparent switch between .so and .dll files.
7253 If you are using Linux, you will need a newer binutils.
7254 " "$LINENO" 5
7255 fi
7256
7257 CROSSTEST_DISABLE=\#
7258
7259 if test "$cross_compiling" = "no" -a "x$enable_tests" != xno -a "$LIBEXT" != "dll"
7260 then
7261     case "$host_cpu" in
7262   i[3456789]86*)
7263     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
7264                         mingw32-gcc" ;;
7265   x86_64)
7266     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 " ;;
7267   *)
7268     ac_prefix_list="" ;;
7269 esac
7270 for ac_prog in $ac_prefix_list
7271 do
7272   # Extract the first word of "$ac_prog", so it can be a program name with args.
7273 set dummy $ac_prog; ac_word=$2
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7275 $as_echo_n "checking for $ac_word... " >&6; }
7276 if ${ac_cv_prog_CROSSCC+:} false; then :
7277   $as_echo_n "(cached) " >&6
7278 else
7279   if test -n "$CROSSCC"; then
7280   ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
7281 else
7282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7283 for as_dir in $PATH
7284 do
7285   IFS=$as_save_IFS
7286   test -z "$as_dir" && as_dir=.
7287     for ac_exec_ext in '' $ac_executable_extensions; do
7288   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7289     ac_cv_prog_CROSSCC="$ac_prog"
7290     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7291     break 2
7292   fi
7293 done
7294   done
7295 IFS=$as_save_IFS
7296
7297 fi
7298 fi
7299 CROSSCC=$ac_cv_prog_CROSSCC
7300 if test -n "$CROSSCC"; then
7301   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CROSSCC" >&5
7302 $as_echo "$CROSSCC" >&6; }
7303 else
7304   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7305 $as_echo "no" >&6; }
7306 fi
7307
7308
7309   test -n "$CROSSCC" && break
7310 done
7311 test -n "$CROSSCC" || CROSSCC="false"
7312
7313     if test "$CROSSCC" != "false"
7314     then
7315         ac_save_CC="$CC"
7316         CC="$CROSSCC"
7317         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CROSSCC works" >&5
7318 $as_echo_n "checking whether $CROSSCC works... " >&6; }
7319         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7320 /* end confdefs.h.  */
7321
7322 int
7323 main ()
7324 {
7325
7326   ;
7327   return 0;
7328 }
7329 _ACEOF
7330 if ac_fn_c_try_compile "$LINENO"; then :
7331   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7332 $as_echo "yes" >&6; }
7333                            set x $CROSSCC
7334                            shift
7335                            target=""
7336                            while test $# -ge 1
7337                            do
7338                                case "$1" in
7339                                  *-gcc) target=`expr "$1" : '\(.*\)-gcc'` ;;
7340                                esac
7341                                shift
7342                            done
7343                            if test -n "$target"
7344                            then
7345                                CROSSTEST_DISABLE=""
7346                                CROSSTARGET="$target"
7347
7348                            fi
7349 else
7350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7351 $as_echo "no" >&6; }
7352 fi
7353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7354         CC="$ac_save_CC"
7355     fi
7356 fi
7357
7358
7359 if test "$ac_cv_header_pthread_h" = "yes"
7360 then
7361     ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
7362 if test "x$ac_cv_func_pthread_create" = xyes; then :
7363
7364 else
7365   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
7366 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
7367 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
7368   $as_echo_n "(cached) " >&6
7369 else
7370   ac_check_lib_save_LIBS=$LIBS
7371 LIBS="-lpthread  $LIBS"
7372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7373 /* end confdefs.h.  */
7374
7375 /* Override any GCC internal prototype to avoid an error.
7376    Use char because int might match the return type of a GCC
7377    builtin and then its argument prototype would still apply.  */
7378 #ifdef __cplusplus
7379 extern "C"
7380 #endif
7381 char pthread_create ();
7382 int
7383 main ()
7384 {
7385 return pthread_create ();
7386   ;
7387   return 0;
7388 }
7389 _ACEOF
7390 if ac_fn_c_try_link "$LINENO"; then :
7391   ac_cv_lib_pthread_pthread_create=yes
7392 else
7393   ac_cv_lib_pthread_pthread_create=no
7394 fi
7395 rm -f core conftest.err conftest.$ac_objext \
7396     conftest$ac_exeext conftest.$ac_ext
7397 LIBS=$ac_check_lib_save_LIBS
7398 fi
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
7400 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
7401 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
7402   LIBPTHREAD="-lpthread"
7403
7404 fi
7405
7406 fi
7407
7408 fi
7409 if test "x$ac_cv_func_pthread_create" != xyes -a "x$LIBPTHREAD" = x; then :
7410   case "x$with_pthread" in
7411   xno) ;;
7412   *)   as_fn_error $? "pthread ${notice_platform}development files not found.
7413 Wine cannot support threads without libpthread.
7414 Use the --without-pthread option if you really want this." "$LINENO" 5 ;;
7415 esac
7416 fi
7417
7418
7419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
7420 $as_echo_n "checking for X... " >&6; }
7421
7422
7423 # Check whether --with-x was given.
7424 if test "${with_x+set}" = set; then :
7425   withval=$with_x;
7426 fi
7427
7428 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7429 if test "x$with_x" = xno; then
7430   # The user explicitly disabled X.
7431   have_x=disabled
7432 else
7433   case $x_includes,$x_libraries in #(
7434     *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
7435     *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
7436   $as_echo_n "(cached) " >&6
7437 else
7438   # One or both of the vars are not set, and there is no cached value.
7439 ac_x_includes=no ac_x_libraries=no
7440 rm -f -r conftest.dir
7441 if mkdir conftest.dir; then
7442   cd conftest.dir
7443   cat >Imakefile <<'_ACEOF'
7444 incroot:
7445         @echo incroot='${INCROOT}'
7446 usrlibdir:
7447         @echo usrlibdir='${USRLIBDIR}'
7448 libdir:
7449         @echo libdir='${LIBDIR}'
7450 _ACEOF
7451   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
7452     # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7453     for ac_var in incroot usrlibdir libdir; do
7454       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
7455     done
7456     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7457     for ac_extension in a so sl dylib la dll; do
7458       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
7459          test -f "$ac_im_libdir/libX11.$ac_extension"; then
7460         ac_im_usrlibdir=$ac_im_libdir; break
7461       fi
7462     done
7463     # Screen out bogus values from the imake configuration.  They are
7464     # bogus both because they are the default anyway, and because
7465     # using them would break gcc on systems where it needs fixed includes.
7466     case $ac_im_incroot in
7467         /usr/include) ac_x_includes= ;;
7468         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7469     esac
7470     case $ac_im_usrlibdir in
7471         /usr/lib | /usr/lib64 | /lib | /lib64) ;;
7472         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7473     esac
7474   fi
7475   cd ..
7476   rm -f -r conftest.dir
7477 fi
7478
7479 # Standard set of common directories for X headers.
7480 # Check X11 before X11Rn because it is often a symlink to the current release.
7481 ac_x_header_dirs='
7482 /usr/X11/include
7483 /usr/X11R7/include
7484 /usr/X11R6/include
7485 /usr/X11R5/include
7486 /usr/X11R4/include
7487
7488 /usr/include/X11
7489 /usr/include/X11R7
7490 /usr/include/X11R6
7491 /usr/include/X11R5
7492 /usr/include/X11R4
7493
7494 /usr/local/X11/include
7495 /usr/local/X11R7/include
7496 /usr/local/X11R6/include
7497 /usr/local/X11R5/include
7498 /usr/local/X11R4/include
7499
7500 /usr/local/include/X11
7501 /usr/local/include/X11R7
7502 /usr/local/include/X11R6
7503 /usr/local/include/X11R5
7504 /usr/local/include/X11R4
7505
7506 /usr/X386/include
7507 /usr/x386/include
7508 /usr/XFree86/include/X11
7509
7510 /usr/include
7511 /usr/local/include
7512 /usr/unsupported/include
7513 /usr/athena/include
7514 /usr/local/x11r5/include
7515 /usr/lpp/Xamples/include
7516
7517 /usr/openwin/include
7518 /usr/openwin/share/include'
7519
7520 if test "$ac_x_includes" = no; then
7521   # Guess where to find include files, by looking for Xlib.h.
7522   # First, try using that file with no special directory specified.
7523   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7524 /* end confdefs.h.  */
7525 #include <X11/Xlib.h>
7526 _ACEOF
7527 if ac_fn_c_try_cpp "$LINENO"; then :
7528   # We can compile using X headers with no special include directory.
7529 ac_x_includes=
7530 else
7531   for ac_dir in $ac_x_header_dirs; do
7532   if test -r "$ac_dir/X11/Xlib.h"; then
7533     ac_x_includes=$ac_dir
7534     break
7535   fi
7536 done
7537 fi
7538 rm -f conftest.err conftest.i conftest.$ac_ext
7539 fi # $ac_x_includes = no
7540
7541 if test "$ac_x_libraries" = no; then
7542   # Check for the libraries.
7543   # See if we find them without any special options.
7544   # Don't add to $LIBS permanently.
7545   ac_save_LIBS=$LIBS
7546   LIBS="-lX11 $LIBS"
7547   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7548 /* end confdefs.h.  */
7549 #include <X11/Xlib.h>
7550 int
7551 main ()
7552 {
7553 XrmInitialize ()
7554   ;
7555   return 0;
7556 }
7557 _ACEOF
7558 if ac_fn_c_try_link "$LINENO"; then :
7559   LIBS=$ac_save_LIBS
7560 # We can link X programs with no special library path.
7561 ac_x_libraries=
7562 else
7563   LIBS=$ac_save_LIBS
7564 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7565 do
7566   # Don't even attempt the hair of trying to link an X program!
7567   for ac_extension in a so sl dylib la dll; do
7568     if test -r "$ac_dir/libX11.$ac_extension"; then
7569       ac_x_libraries=$ac_dir
7570       break 2
7571     fi
7572   done
7573 done
7574 fi
7575 rm -f core conftest.err conftest.$ac_objext \
7576     conftest$ac_exeext conftest.$ac_ext
7577 fi # $ac_x_libraries = no
7578
7579 case $ac_x_includes,$ac_x_libraries in #(
7580   no,* | *,no | *\'*)
7581     # Didn't find X, or a directory has "'" in its name.
7582     ac_cv_have_x="have_x=no";; #(
7583   *)
7584     # Record where we found X for the cache.
7585     ac_cv_have_x="have_x=yes\
7586         ac_x_includes='$ac_x_includes'\
7587         ac_x_libraries='$ac_x_libraries'"
7588 esac
7589 fi
7590 ;; #(
7591     *) have_x=yes;;
7592   esac
7593   eval "$ac_cv_have_x"
7594 fi # $with_x != no
7595
7596 if test "$have_x" != yes; then
7597   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
7598 $as_echo "$have_x" >&6; }
7599   no_x=yes
7600 else
7601   # If each of the values was on the command line, it overrides each guess.
7602   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7603   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7604   # Update the cache value to reflect the command line values.
7605   ac_cv_have_x="have_x=yes\
7606         ac_x_includes='$x_includes'\
7607         ac_x_libraries='$x_libraries'"
7608   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
7609 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
7610 fi
7611
7612 if test "$no_x" = yes; then
7613   # Not all programs may use this symbol, but it does not hurt to define it.
7614
7615 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
7616
7617   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7618 else
7619   if test -n "$x_includes"; then
7620     X_CFLAGS="$X_CFLAGS -I$x_includes"
7621   fi
7622
7623   # It would also be nice to do this for all -L options, not just this one.
7624   if test -n "$x_libraries"; then
7625     X_LIBS="$X_LIBS -L$x_libraries"
7626     # For Solaris; some versions of Sun CC require a space after -R and
7627     # others require no space.  Words are not sufficient . . . .
7628     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
7629 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
7630     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7631     ac_xsave_c_werror_flag=$ac_c_werror_flag
7632     ac_c_werror_flag=yes
7633     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7634 /* end confdefs.h.  */
7635
7636 int
7637 main ()
7638 {
7639
7640   ;
7641   return 0;
7642 }
7643 _ACEOF
7644 if ac_fn_c_try_link "$LINENO"; then :
7645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7646 $as_echo "no" >&6; }
7647        X_LIBS="$X_LIBS -R$x_libraries"
7648 else
7649   LIBS="$ac_xsave_LIBS -R $x_libraries"
7650        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7651 /* end confdefs.h.  */
7652
7653 int
7654 main ()
7655 {
7656
7657   ;
7658   return 0;
7659 }
7660 _ACEOF
7661 if ac_fn_c_try_link "$LINENO"; then :
7662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7663 $as_echo "yes" >&6; }
7664           X_LIBS="$X_LIBS -R $x_libraries"
7665 else
7666   { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
7667 $as_echo "neither works" >&6; }
7668 fi
7669 rm -f core conftest.err conftest.$ac_objext \
7670     conftest$ac_exeext conftest.$ac_ext
7671 fi
7672 rm -f core conftest.err conftest.$ac_objext \
7673     conftest$ac_exeext conftest.$ac_ext
7674     ac_c_werror_flag=$ac_xsave_c_werror_flag
7675     LIBS=$ac_xsave_LIBS
7676   fi
7677
7678   # Check for system-dependent libraries X programs must link with.
7679   # Do this before checking for the system-independent R6 libraries
7680   # (-lICE), since we may need -lsocket or whatever for X linking.
7681
7682   if test "$ISC" = yes; then
7683     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7684   else
7685     # Martyn Johnson says this is needed for Ultrix, if the X
7686     # libraries were built with DECnet support.  And Karl Berry says
7687     # the Alpha needs dnet_stub (dnet does not exist).
7688     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
7689     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7690 /* end confdefs.h.  */
7691
7692 /* Override any GCC internal prototype to avoid an error.
7693    Use char because int might match the return type of a GCC
7694    builtin and then its argument prototype would still apply.  */
7695 #ifdef __cplusplus
7696 extern "C"
7697 #endif
7698 char XOpenDisplay ();
7699 int
7700 main ()
7701 {
7702 return XOpenDisplay ();
7703   ;
7704   return 0;
7705 }
7706 _ACEOF
7707 if ac_fn_c_try_link "$LINENO"; then :
7708
7709 else
7710   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
7711 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
7712 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
7713   $as_echo_n "(cached) " >&6
7714 else
7715   ac_check_lib_save_LIBS=$LIBS
7716 LIBS="-ldnet  $LIBS"
7717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7718 /* end confdefs.h.  */
7719
7720 /* Override any GCC internal prototype to avoid an error.
7721    Use char because int might match the return type of a GCC
7722    builtin and then its argument prototype would still apply.  */
7723 #ifdef __cplusplus
7724 extern "C"
7725 #endif
7726 char dnet_ntoa ();
7727 int
7728 main ()
7729 {
7730 return dnet_ntoa ();
7731   ;
7732   return 0;
7733 }
7734 _ACEOF
7735 if ac_fn_c_try_link "$LINENO"; then :
7736   ac_cv_lib_dnet_dnet_ntoa=yes
7737 else
7738   ac_cv_lib_dnet_dnet_ntoa=no
7739 fi
7740 rm -f core conftest.err conftest.$ac_objext \
7741     conftest$ac_exeext conftest.$ac_ext
7742 LIBS=$ac_check_lib_save_LIBS
7743 fi
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7745 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
7746 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
7747   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7748 fi
7749
7750     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7751       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
7752 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
7753 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
7754   $as_echo_n "(cached) " >&6
7755 else
7756   ac_check_lib_save_LIBS=$LIBS
7757 LIBS="-ldnet_stub  $LIBS"
7758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7759 /* end confdefs.h.  */
7760
7761 /* Override any GCC internal prototype to avoid an error.
7762    Use char because int might match the return type of a GCC
7763    builtin and then its argument prototype would still apply.  */
7764 #ifdef __cplusplus
7765 extern "C"
7766 #endif
7767 char dnet_ntoa ();
7768 int
7769 main ()
7770 {
7771 return dnet_ntoa ();
7772   ;
7773   return 0;
7774 }
7775 _ACEOF
7776 if ac_fn_c_try_link "$LINENO"; then :
7777   ac_cv_lib_dnet_stub_dnet_ntoa=yes
7778 else
7779   ac_cv_lib_dnet_stub_dnet_ntoa=no
7780 fi
7781 rm -f core conftest.err conftest.$ac_objext \
7782     conftest$ac_exeext conftest.$ac_ext
7783 LIBS=$ac_check_lib_save_LIBS
7784 fi
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
7786 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
7787 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
7788   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7789 fi
7790
7791     fi
7792 fi
7793 rm -f core conftest.err conftest.$ac_objext \
7794     conftest$ac_exeext conftest.$ac_ext
7795     LIBS="$ac_xsave_LIBS"
7796
7797     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7798     # to get the SysV transport functions.
7799     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7800     # needs -lnsl.
7801     # The nsl library prevents programs from opening the X display
7802     # on Irix 5.2, according to T.E. Dickey.
7803     # The functions gethostbyname, getservbyname, and inet_addr are
7804     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
7805     ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
7806 if test "x$ac_cv_func_gethostbyname" = xyes; then :
7807
7808 fi
7809
7810     if test $ac_cv_func_gethostbyname = no; then
7811       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
7812 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
7813 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
7814   $as_echo_n "(cached) " >&6
7815 else
7816   ac_check_lib_save_LIBS=$LIBS
7817 LIBS="-lnsl  $LIBS"
7818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7819 /* end confdefs.h.  */
7820
7821 /* Override any GCC internal prototype to avoid an error.
7822    Use char because int might match the return type of a GCC
7823    builtin and then its argument prototype would still apply.  */
7824 #ifdef __cplusplus
7825 extern "C"
7826 #endif
7827 char gethostbyname ();
7828 int
7829 main ()
7830 {
7831 return gethostbyname ();
7832   ;
7833   return 0;
7834 }
7835 _ACEOF
7836 if ac_fn_c_try_link "$LINENO"; then :
7837   ac_cv_lib_nsl_gethostbyname=yes
7838 else
7839   ac_cv_lib_nsl_gethostbyname=no
7840 fi
7841 rm -f core conftest.err conftest.$ac_objext \
7842     conftest$ac_exeext conftest.$ac_ext
7843 LIBS=$ac_check_lib_save_LIBS
7844 fi
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
7846 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
7847 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
7848   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7849 fi
7850
7851       if test $ac_cv_lib_nsl_gethostbyname = no; then
7852         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
7853 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
7854 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
7855   $as_echo_n "(cached) " >&6
7856 else
7857   ac_check_lib_save_LIBS=$LIBS
7858 LIBS="-lbsd  $LIBS"
7859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7860 /* end confdefs.h.  */
7861
7862 /* Override any GCC internal prototype to avoid an error.
7863    Use char because int might match the return type of a GCC
7864    builtin and then its argument prototype would still apply.  */
7865 #ifdef __cplusplus
7866 extern "C"
7867 #endif
7868 char gethostbyname ();
7869 int
7870 main ()
7871 {
7872 return gethostbyname ();
7873   ;
7874   return 0;
7875 }
7876 _ACEOF
7877 if ac_fn_c_try_link "$LINENO"; then :
7878   ac_cv_lib_bsd_gethostbyname=yes
7879 else
7880   ac_cv_lib_bsd_gethostbyname=no
7881 fi
7882 rm -f core conftest.err conftest.$ac_objext \
7883     conftest$ac_exeext conftest.$ac_ext
7884 LIBS=$ac_check_lib_save_LIBS
7885 fi
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
7887 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
7888 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
7889   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
7890 fi
7891
7892       fi
7893     fi
7894
7895     # lieder@skyler.mavd.honeywell.com says without -lsocket,
7896     # socket/setsockopt and other routines are undefined under SCO ODT
7897     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
7898     # on later versions), says Simon Leinen: it contains gethostby*
7899     # variants that don't use the name server (or something).  -lsocket
7900     # must be given before -lnsl if both are needed.  We assume that
7901     # if connect needs -lnsl, so does gethostbyname.
7902     ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
7903 if test "x$ac_cv_func_connect" = xyes; then :
7904
7905 fi
7906
7907     if test $ac_cv_func_connect = no; then
7908       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
7909 $as_echo_n "checking for connect in -lsocket... " >&6; }
7910 if ${ac_cv_lib_socket_connect+:} false; then :
7911   $as_echo_n "(cached) " >&6
7912 else
7913   ac_check_lib_save_LIBS=$LIBS
7914 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7916 /* end confdefs.h.  */
7917
7918 /* Override any GCC internal prototype to avoid an error.
7919    Use char because int might match the return type of a GCC
7920    builtin and then its argument prototype would still apply.  */
7921 #ifdef __cplusplus
7922 extern "C"
7923 #endif
7924 char connect ();
7925 int
7926 main ()
7927 {
7928 return connect ();
7929   ;
7930   return 0;
7931 }
7932 _ACEOF
7933 if ac_fn_c_try_link "$LINENO"; then :
7934   ac_cv_lib_socket_connect=yes
7935 else
7936   ac_cv_lib_socket_connect=no
7937 fi
7938 rm -f core conftest.err conftest.$ac_objext \
7939     conftest$ac_exeext conftest.$ac_ext
7940 LIBS=$ac_check_lib_save_LIBS
7941 fi
7942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
7943 $as_echo "$ac_cv_lib_socket_connect" >&6; }
7944 if test "x$ac_cv_lib_socket_connect" = xyes; then :
7945   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7946 fi
7947
7948     fi
7949
7950     # Guillermo Gomez says -lposix is necessary on A/UX.
7951     ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
7952 if test "x$ac_cv_func_remove" = xyes; then :
7953
7954 fi
7955
7956     if test $ac_cv_func_remove = no; then
7957       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
7958 $as_echo_n "checking for remove in -lposix... " >&6; }
7959 if ${ac_cv_lib_posix_remove+:} false; then :
7960   $as_echo_n "(cached) " >&6
7961 else
7962   ac_check_lib_save_LIBS=$LIBS
7963 LIBS="-lposix  $LIBS"
7964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7965 /* end confdefs.h.  */
7966
7967 /* Override any GCC internal prototype to avoid an error.
7968    Use char because int might match the return type of a GCC
7969    builtin and then its argument prototype would still apply.  */
7970 #ifdef __cplusplus
7971 extern "C"
7972 #endif
7973 char remove ();
7974 int
7975 main ()
7976 {
7977 return remove ();
7978   ;
7979   return 0;
7980 }
7981 _ACEOF
7982 if ac_fn_c_try_link "$LINENO"; then :
7983   ac_cv_lib_posix_remove=yes
7984 else
7985   ac_cv_lib_posix_remove=no
7986 fi
7987 rm -f core conftest.err conftest.$ac_objext \
7988     conftest$ac_exeext conftest.$ac_ext
7989 LIBS=$ac_check_lib_save_LIBS
7990 fi
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
7992 $as_echo "$ac_cv_lib_posix_remove" >&6; }
7993 if test "x$ac_cv_lib_posix_remove" = xyes; then :
7994   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7995 fi
7996
7997     fi
7998
7999     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8000     ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
8001 if test "x$ac_cv_func_shmat" = xyes; then :
8002
8003 fi
8004
8005     if test $ac_cv_func_shmat = no; then
8006       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
8007 $as_echo_n "checking for shmat in -lipc... " >&6; }
8008 if ${ac_cv_lib_ipc_shmat+:} false; then :
8009   $as_echo_n "(cached) " >&6
8010 else
8011   ac_check_lib_save_LIBS=$LIBS
8012 LIBS="-lipc  $LIBS"
8013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8014 /* end confdefs.h.  */
8015
8016 /* Override any GCC internal prototype to avoid an error.
8017    Use char because int might match the return type of a GCC
8018    builtin and then its argument prototype would still apply.  */
8019 #ifdef __cplusplus
8020 extern "C"
8021 #endif
8022 char shmat ();
8023 int
8024 main ()
8025 {
8026 return shmat ();
8027   ;
8028   return 0;
8029 }
8030 _ACEOF
8031 if ac_fn_c_try_link "$LINENO"; then :
8032   ac_cv_lib_ipc_shmat=yes
8033 else
8034   ac_cv_lib_ipc_shmat=no
8035 fi
8036 rm -f core conftest.err conftest.$ac_objext \
8037     conftest$ac_exeext conftest.$ac_ext
8038 LIBS=$ac_check_lib_save_LIBS
8039 fi
8040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
8041 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
8042 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
8043   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8044 fi
8045
8046     fi
8047   fi
8048
8049   # Check for libraries that X11R6 Xt/Xaw programs need.
8050   ac_save_LDFLAGS=$LDFLAGS
8051   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8052   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8053   # check for ICE first), but we must link in the order -lSM -lICE or
8054   # we get undefined symbols.  So assume we have SM if we have ICE.
8055   # These have to be linked with before -lX11, unlike the other
8056   # libraries we check for below, so use a different variable.
8057   # John Interrante, Karl Berry
8058   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
8059 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
8060 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
8061   $as_echo_n "(cached) " >&6
8062 else
8063   ac_check_lib_save_LIBS=$LIBS
8064 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8066 /* end confdefs.h.  */
8067
8068 /* Override any GCC internal prototype to avoid an error.
8069    Use char because int might match the return type of a GCC
8070    builtin and then its argument prototype would still apply.  */
8071 #ifdef __cplusplus
8072 extern "C"
8073 #endif
8074 char IceConnectionNumber ();
8075 int
8076 main ()
8077 {
8078 return IceConnectionNumber ();
8079   ;
8080   return 0;
8081 }
8082 _ACEOF
8083 if ac_fn_c_try_link "$LINENO"; then :
8084   ac_cv_lib_ICE_IceConnectionNumber=yes
8085 else
8086   ac_cv_lib_ICE_IceConnectionNumber=no
8087 fi
8088 rm -f core conftest.err conftest.$ac_objext \
8089     conftest$ac_exeext conftest.$ac_ext
8090 LIBS=$ac_check_lib_save_LIBS
8091 fi
8092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
8093 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
8094 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
8095   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8096 fi
8097
8098   LDFLAGS=$ac_save_LDFLAGS
8099
8100 fi
8101
8102
8103 if test "$have_x" = "yes"
8104 then
8105     XLIB="-lX11"
8106     ac_save_CPPFLAGS="$CPPFLAGS"
8107     CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8108
8109     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lX11" >&5
8110 $as_echo_n "checking for -lX11... " >&6; }
8111 if ${ac_cv_lib_soname_X11+:} false; then :
8112   $as_echo_n "(cached) " >&6
8113 else
8114   ac_check_soname_save_LIBS=$LIBS
8115 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
8116   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8117 /* end confdefs.h.  */
8118
8119 /* Override any GCC internal prototype to avoid an error.
8120    Use char because int might match the return type of a GCC
8121    builtin and then its argument prototype would still apply.  */
8122 #ifdef __cplusplus
8123 extern "C"
8124 #endif
8125 char XCreateWindow ();
8126 int
8127 main ()
8128 {
8129 return XCreateWindow ();
8130   ;
8131   return 0;
8132 }
8133 _ACEOF
8134 if ac_fn_c_try_link "$LINENO"; then :
8135   case "$LIBEXT" in
8136     dll) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest.exe | grep "X11" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8137     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'` ;;
8138     *) ac_cv_lib_soname_X11=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libX11\\.$LIBEXT" | sed -e "s/^.*\\[\\(libX11\\.$LIBEXT[^    ]*\\)\\].*$/\1/"';2,$d'`
8139        if test "x$ac_cv_lib_soname_X11" = x; then :
8140   ac_cv_lib_soname_X11=`$LDD conftest$ac_exeext | grep "libX11\\.$LIBEXT" | sed -e "s/^.*\(libX11\.$LIBEXT[^     ]*\).*$/\1/"';2,$d'`
8141 fi ;;
8142   esac
8143 fi
8144 rm -f core conftest.err conftest.$ac_objext \
8145     conftest$ac_exeext conftest.$ac_ext
8146   LIBS=$ac_check_soname_save_LIBS
8147 fi
8148 if test "x$ac_cv_lib_soname_X11" = "x"; then :
8149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8150 $as_echo "not found" >&6; }
8151
8152 else
8153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_X11" >&5
8154 $as_echo "$ac_cv_lib_soname_X11" >&6; }
8155
8156 cat >>confdefs.h <<_ACEOF
8157 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
8158 _ACEOF
8159
8160
8161 fi
8162     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXext" >&5
8163 $as_echo_n "checking for -lXext... " >&6; }
8164 if ${ac_cv_lib_soname_Xext+:} false; then :
8165   $as_echo_n "(cached) " >&6
8166 else
8167   ac_check_soname_save_LIBS=$LIBS
8168 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
8169   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8170 /* end confdefs.h.  */
8171
8172 /* Override any GCC internal prototype to avoid an error.
8173    Use char because int might match the return type of a GCC
8174    builtin and then its argument prototype would still apply.  */
8175 #ifdef __cplusplus
8176 extern "C"
8177 #endif
8178 char XextCreateExtension ();
8179 int
8180 main ()
8181 {
8182 return XextCreateExtension ();
8183   ;
8184   return 0;
8185 }
8186 _ACEOF
8187 if ac_fn_c_try_link "$LINENO"; then :
8188   case "$LIBEXT" in
8189     dll) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest.exe | grep "Xext" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8190     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'` ;;
8191     *) ac_cv_lib_soname_Xext=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXext\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXext\\.$LIBEXT[^         ]*\\)\\].*$/\1/"';2,$d'`
8192        if test "x$ac_cv_lib_soname_Xext" = x; then :
8193   ac_cv_lib_soname_Xext=`$LDD conftest$ac_exeext | grep "libXext\\.$LIBEXT" | sed -e "s/^.*\(libXext\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'`
8194 fi ;;
8195   esac
8196 fi
8197 rm -f core conftest.err conftest.$ac_objext \
8198     conftest$ac_exeext conftest.$ac_ext
8199   LIBS=$ac_check_soname_save_LIBS
8200 fi
8201 if test "x$ac_cv_lib_soname_Xext" = "x"; then :
8202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8203 $as_echo "not found" >&6; }
8204
8205 else
8206   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xext" >&5
8207 $as_echo "$ac_cv_lib_soname_Xext" >&6; }
8208
8209 cat >>confdefs.h <<_ACEOF
8210 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
8211 _ACEOF
8212
8213        XLIB="-lXext $XLIB"
8214 fi
8215
8216         for ac_header in X11/Xlib.h \
8217                       X11/XKBlib.h \
8218                       X11/Xutil.h \
8219                       X11/Xcursor/Xcursor.h \
8220                       X11/extensions/shape.h \
8221                       X11/extensions/XInput.h \
8222                       X11/extensions/XInput2.h \
8223                       X11/extensions/XShm.h \
8224                       X11/extensions/Xcomposite.h \
8225                       X11/extensions/Xinerama.h \
8226                       X11/extensions/Xrandr.h \
8227                       X11/extensions/Xrender.h \
8228                       X11/extensions/xf86vmode.h \
8229                       X11/extensions/xf86vmproto.h
8230 do :
8231   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8232 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_X11_XLIB_H
8233 # include <X11/Xlib.h>
8234 #endif
8235 #ifdef HAVE_X11_XUTIL_H
8236 # include <X11/Xutil.h>
8237 #endif
8238 "
8239 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8240   cat >>confdefs.h <<_ACEOF
8241 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8242 _ACEOF
8243
8244 fi
8245
8246 done
8247
8248
8249                 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
8250         then
8251               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbQueryExtension in -lX11" >&5
8252 $as_echo_n "checking for XkbQueryExtension in -lX11... " >&6; }
8253 if ${ac_cv_lib_X11_XkbQueryExtension+:} false; then :
8254   $as_echo_n "(cached) " >&6
8255 else
8256   ac_check_lib_save_LIBS=$LIBS
8257 LIBS="-lX11 $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8259 /* end confdefs.h.  */
8260
8261 /* Override any GCC internal prototype to avoid an error.
8262    Use char because int might match the return type of a GCC
8263    builtin and then its argument prototype would still apply.  */
8264 #ifdef __cplusplus
8265 extern "C"
8266 #endif
8267 char XkbQueryExtension ();
8268 int
8269 main ()
8270 {
8271 return XkbQueryExtension ();
8272   ;
8273   return 0;
8274 }
8275 _ACEOF
8276 if ac_fn_c_try_link "$LINENO"; then :
8277   ac_cv_lib_X11_XkbQueryExtension=yes
8278 else
8279   ac_cv_lib_X11_XkbQueryExtension=no
8280 fi
8281 rm -f core conftest.err conftest.$ac_objext \
8282     conftest$ac_exeext conftest.$ac_ext
8283 LIBS=$ac_check_lib_save_LIBS
8284 fi
8285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
8286 $as_echo "$ac_cv_lib_X11_XkbQueryExtension" >&6; }
8287 if test "x$ac_cv_lib_X11_XkbQueryExtension" = xyes; then :
8288
8289 $as_echo "#define HAVE_XKB 1" >>confdefs.h
8290
8291 fi
8292
8293         fi
8294
8295                 if test "$ac_cv_header_X11_Xcursor_Xcursor_h" = "yes"
8296         then
8297             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcursor" >&5
8298 $as_echo_n "checking for -lXcursor... " >&6; }
8299 if ${ac_cv_lib_soname_Xcursor+:} false; then :
8300   $as_echo_n "(cached) " >&6
8301 else
8302   ac_check_soname_save_LIBS=$LIBS
8303 LIBS="-lXcursor $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8304   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8305 /* end confdefs.h.  */
8306
8307 /* Override any GCC internal prototype to avoid an error.
8308    Use char because int might match the return type of a GCC
8309    builtin and then its argument prototype would still apply.  */
8310 #ifdef __cplusplus
8311 extern "C"
8312 #endif
8313 char XcursorImageLoadCursor ();
8314 int
8315 main ()
8316 {
8317 return XcursorImageLoadCursor ();
8318   ;
8319   return 0;
8320 }
8321 _ACEOF
8322 if ac_fn_c_try_link "$LINENO"; then :
8323   case "$LIBEXT" in
8324     dll) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest.exe | grep "Xcursor" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8325     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'` ;;
8326     *) ac_cv_lib_soname_Xcursor=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXcursor\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXcursor\\.$LIBEXT[^        ]*\\)\\].*$/\1/"';2,$d'`
8327        if test "x$ac_cv_lib_soname_Xcursor" = x; then :
8328   ac_cv_lib_soname_Xcursor=`$LDD conftest$ac_exeext | grep "libXcursor\\.$LIBEXT" | sed -e "s/^.*\(libXcursor\.$LIBEXT[^         ]*\).*$/\1/"';2,$d'`
8329 fi ;;
8330   esac
8331 fi
8332 rm -f core conftest.err conftest.$ac_objext \
8333     conftest$ac_exeext conftest.$ac_ext
8334   LIBS=$ac_check_soname_save_LIBS
8335 fi
8336 if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
8337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8338 $as_echo "not found" >&6; }
8339
8340 else
8341   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcursor" >&5
8342 $as_echo "$ac_cv_lib_soname_Xcursor" >&6; }
8343
8344 cat >>confdefs.h <<_ACEOF
8345 #define SONAME_LIBXCURSOR "$ac_cv_lib_soname_Xcursor"
8346 _ACEOF
8347
8348
8349 fi
8350         fi
8351         if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
8352   case "x$with_xcursor" in
8353   x)   as_fn_append wine_notices "|libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported." ;;
8354   xno) ;;
8355   *)   as_fn_error $? "libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported.
8356 This is an error since --with-xcursor was requested." "$LINENO" 5 ;;
8357 esac
8358 fi
8359
8360                 if test "$ac_cv_header_X11_extensions_XInput_h" = "yes"
8361         then
8362             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXi" >&5
8363 $as_echo_n "checking for -lXi... " >&6; }
8364 if ${ac_cv_lib_soname_Xi+:} false; then :
8365   $as_echo_n "(cached) " >&6
8366 else
8367   ac_check_soname_save_LIBS=$LIBS
8368 LIBS="-lXi $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8369   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8370 /* end confdefs.h.  */
8371
8372 /* Override any GCC internal prototype to avoid an error.
8373    Use char because int might match the return type of a GCC
8374    builtin and then its argument prototype would still apply.  */
8375 #ifdef __cplusplus
8376 extern "C"
8377 #endif
8378 char XOpenDevice ();
8379 int
8380 main ()
8381 {
8382 return XOpenDevice ();
8383   ;
8384   return 0;
8385 }
8386 _ACEOF
8387 if ac_fn_c_try_link "$LINENO"; then :
8388   case "$LIBEXT" in
8389     dll) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest.exe | grep "Xi" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8390     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'` ;;
8391     *) ac_cv_lib_soname_Xi=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXi\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXi\\.$LIBEXT[^       ]*\\)\\].*$/\1/"';2,$d'`
8392        if test "x$ac_cv_lib_soname_Xi" = x; then :
8393   ac_cv_lib_soname_Xi=`$LDD conftest$ac_exeext | grep "libXi\\.$LIBEXT" | sed -e "s/^.*\(libXi\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'`
8394 fi ;;
8395   esac
8396 fi
8397 rm -f core conftest.err conftest.$ac_objext \
8398     conftest$ac_exeext conftest.$ac_ext
8399   LIBS=$ac_check_soname_save_LIBS
8400 fi
8401 if test "x$ac_cv_lib_soname_Xi" = "x"; then :
8402   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8403 $as_echo "not found" >&6; }
8404
8405 else
8406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xi" >&5
8407 $as_echo "$ac_cv_lib_soname_Xi" >&6; }
8408
8409 cat >>confdefs.h <<_ACEOF
8410 #define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
8411 _ACEOF
8412
8413
8414 fi
8415         fi
8416         if test "x$ac_cv_lib_soname_Xi" = "x"; then :
8417   case "x$with_xinput" in
8418   x)   as_fn_append wine_notices "|libxi ${notice_platform}development files not found, the Xinput extension won't be supported." ;;
8419   xno) ;;
8420   *)   as_fn_error $? "libxi ${notice_platform}development files not found, the Xinput extension won't be supported.
8421 This is an error since --with-xinput was requested." "$LINENO" 5 ;;
8422 esac
8423 fi
8424
8425                 if test "x$ac_cv_lib_soname_Xi" != x
8426         then
8427             if test "$ac_cv_header_X11_extensions_XInput2_h" != "yes"; then :
8428   case "x$with_xinput2" in
8429   x)   as_fn_append wine_notices "|XInput2 headers not found, the XInput 2 extension won't be supported." ;;
8430   xno) ;;
8431   *)   as_fn_error $? "XInput2 headers not found, the XInput 2 extension won't be supported.
8432 This is an error since --with-xinput2 was requested." "$LINENO" 5 ;;
8433 esac
8434 fi
8435         fi
8436
8437                 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
8438         then
8439               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
8440 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
8441 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then :
8442   $as_echo_n "(cached) " >&6
8443 else
8444   ac_check_lib_save_LIBS=$LIBS
8445 LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8447 /* end confdefs.h.  */
8448
8449 /* Override any GCC internal prototype to avoid an error.
8450    Use char because int might match the return type of a GCC
8451    builtin and then its argument prototype would still apply.  */
8452 #ifdef __cplusplus
8453 extern "C"
8454 #endif
8455 char XShmQueryExtension ();
8456 int
8457 main ()
8458 {
8459 return XShmQueryExtension ();
8460   ;
8461   return 0;
8462 }
8463 _ACEOF
8464 if ac_fn_c_try_link "$LINENO"; then :
8465   ac_cv_lib_Xext_XShmQueryExtension=yes
8466 else
8467   ac_cv_lib_Xext_XShmQueryExtension=no
8468 fi
8469 rm -f core conftest.err conftest.$ac_objext \
8470     conftest$ac_exeext conftest.$ac_ext
8471 LIBS=$ac_check_lib_save_LIBS
8472 fi
8473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
8474 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
8475 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then :
8476
8477 $as_echo "#define HAVE_LIBXXSHM 1" >>confdefs.h
8478
8479 fi
8480
8481         fi
8482         if test "$ac_cv_lib_Xext_XShmQueryExtension" != "yes"; then :
8483   case "x$with_xshm" in
8484   x)   as_fn_append wine_notices "|XShm ${notice_platform}development files not found, X Shared Memory won't be supported." ;;
8485   xno) ;;
8486   *)   as_fn_error $? "XShm ${notice_platform}development files not found, X Shared Memory won't be supported.
8487 This is an error since --with-xshm was requested." "$LINENO" 5 ;;
8488 esac
8489 fi
8490
8491                 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
8492         then
8493               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
8494 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
8495 if ${ac_cv_lib_Xext_XShapeQueryExtension+:} false; then :
8496   $as_echo_n "(cached) " >&6
8497 else
8498   ac_check_lib_save_LIBS=$LIBS
8499 LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8501 /* end confdefs.h.  */
8502
8503 /* Override any GCC internal prototype to avoid an error.
8504    Use char because int might match the return type of a GCC
8505    builtin and then its argument prototype would still apply.  */
8506 #ifdef __cplusplus
8507 extern "C"
8508 #endif
8509 char XShapeQueryExtension ();
8510 int
8511 main ()
8512 {
8513 return XShapeQueryExtension ();
8514   ;
8515   return 0;
8516 }
8517 _ACEOF
8518 if ac_fn_c_try_link "$LINENO"; then :
8519   ac_cv_lib_Xext_XShapeQueryExtension=yes
8520 else
8521   ac_cv_lib_Xext_XShapeQueryExtension=no
8522 fi
8523 rm -f core conftest.err conftest.$ac_objext \
8524     conftest$ac_exeext conftest.$ac_ext
8525 LIBS=$ac_check_lib_save_LIBS
8526 fi
8527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8528 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
8529 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = xyes; then :
8530
8531 $as_echo "#define HAVE_LIBXSHAPE 1" >>confdefs.h
8532
8533 fi
8534
8535         fi
8536         if test "$ac_cv_lib_Xext_XShapeQueryExtension" != "yes"; then :
8537   case "x$with_xshape" in
8538   x)   as_fn_append wine_notices "|XShape ${notice_platform}development files not found, XShape won't be supported." ;;
8539   xno) ;;
8540   *)   as_fn_error $? "XShape ${notice_platform}development files not found, XShape won't be supported.
8541 This is an error since --with-xshape was requested." "$LINENO" 5 ;;
8542 esac
8543 fi
8544
8545                 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes" -o "$ac_cv_header_X11_extensions_xf86vmproto_h" = "yes"
8546         then
8547             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXxf86vm" >&5
8548 $as_echo_n "checking for -lXxf86vm... " >&6; }
8549 if ${ac_cv_lib_soname_Xxf86vm+:} false; then :
8550   $as_echo_n "(cached) " >&6
8551 else
8552   ac_check_soname_save_LIBS=$LIBS
8553 LIBS="-lXxf86vm $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8554   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8555 /* end confdefs.h.  */
8556
8557 /* Override any GCC internal prototype to avoid an error.
8558    Use char because int might match the return type of a GCC
8559    builtin and then its argument prototype would still apply.  */
8560 #ifdef __cplusplus
8561 extern "C"
8562 #endif
8563 char XF86VidModeQueryExtension ();
8564 int
8565 main ()
8566 {
8567 return XF86VidModeQueryExtension ();
8568   ;
8569   return 0;
8570 }
8571 _ACEOF
8572 if ac_fn_c_try_link "$LINENO"; then :
8573   case "$LIBEXT" in
8574     dll) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest.exe | grep "Xxf86vm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8575     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'` ;;
8576     *) ac_cv_lib_soname_Xxf86vm=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXxf86vm\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXxf86vm\\.$LIBEXT[^        ]*\\)\\].*$/\1/"';2,$d'`
8577        if test "x$ac_cv_lib_soname_Xxf86vm" = x; then :
8578   ac_cv_lib_soname_Xxf86vm=`$LDD conftest$ac_exeext | grep "libXxf86vm\\.$LIBEXT" | sed -e "s/^.*\(libXxf86vm\.$LIBEXT[^         ]*\).*$/\1/"';2,$d'`
8579 fi ;;
8580   esac
8581 fi
8582 rm -f core conftest.err conftest.$ac_objext \
8583     conftest$ac_exeext conftest.$ac_ext
8584   LIBS=$ac_check_soname_save_LIBS
8585 fi
8586 if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
8587   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8588 $as_echo "not found" >&6; }
8589
8590 else
8591   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xxf86vm" >&5
8592 $as_echo "$ac_cv_lib_soname_Xxf86vm" >&6; }
8593
8594 cat >>confdefs.h <<_ACEOF
8595 #define SONAME_LIBXXF86VM "$ac_cv_lib_soname_Xxf86vm"
8596 _ACEOF
8597
8598
8599 fi
8600         fi
8601         if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
8602   case "x$with_xxf86vm" in
8603   x)   as_fn_append wine_notices "|libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported." ;;
8604   xno) ;;
8605   *)   as_fn_error $? "libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported.
8606 This is an error since --with-xxf86vm was requested." "$LINENO" 5 ;;
8607 esac
8608 fi
8609
8610                 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"
8611         then
8612             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrender" >&5
8613 $as_echo_n "checking for -lXrender... " >&6; }
8614 if ${ac_cv_lib_soname_Xrender+:} false; then :
8615   $as_echo_n "(cached) " >&6
8616 else
8617   ac_check_soname_save_LIBS=$LIBS
8618 LIBS="-lXrender $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 XRenderQueryExtension ();
8629 int
8630 main ()
8631 {
8632 return XRenderQueryExtension ();
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_Xrender=`$ac_cv_path_LDD conftest.exe | grep "Xrender" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8640     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'` ;;
8641     *) ac_cv_lib_soname_Xrender=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXrender\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXrender\\.$LIBEXT[^        ]*\\)\\].*$/\1/"';2,$d'`
8642        if test "x$ac_cv_lib_soname_Xrender" = x; then :
8643   ac_cv_lib_soname_Xrender=`$LDD conftest$ac_exeext | grep "libXrender\\.$LIBEXT" | sed -e "s/^.*\(libXrender\.$LIBEXT[^         ]*\).*$/\1/"';2,$d'`
8644 fi ;;
8645   esac
8646 fi
8647 rm -f core conftest.err conftest.$ac_objext \
8648     conftest$ac_exeext conftest.$ac_ext
8649   LIBS=$ac_check_soname_save_LIBS
8650 fi
8651 if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
8652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8653 $as_echo "not found" >&6; }
8654
8655 else
8656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrender" >&5
8657 $as_echo "$ac_cv_lib_soname_Xrender" >&6; }
8658
8659 cat >>confdefs.h <<_ACEOF
8660 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
8661 _ACEOF
8662
8663        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderSetPictureTransform in -lXrender" >&5
8664 $as_echo_n "checking for XRenderSetPictureTransform in -lXrender... " >&6; }
8665 if ${ac_cv_lib_Xrender_XRenderSetPictureTransform+:} false; then :
8666   $as_echo_n "(cached) " >&6
8667 else
8668   ac_check_lib_save_LIBS=$LIBS
8669 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8671 /* end confdefs.h.  */
8672
8673 /* Override any GCC internal prototype to avoid an error.
8674    Use char because int might match the return type of a GCC
8675    builtin and then its argument prototype would still apply.  */
8676 #ifdef __cplusplus
8677 extern "C"
8678 #endif
8679 char XRenderSetPictureTransform ();
8680 int
8681 main ()
8682 {
8683 return XRenderSetPictureTransform ();
8684   ;
8685   return 0;
8686 }
8687 _ACEOF
8688 if ac_fn_c_try_link "$LINENO"; then :
8689   ac_cv_lib_Xrender_XRenderSetPictureTransform=yes
8690 else
8691   ac_cv_lib_Xrender_XRenderSetPictureTransform=no
8692 fi
8693 rm -f core conftest.err conftest.$ac_objext \
8694     conftest$ac_exeext conftest.$ac_ext
8695 LIBS=$ac_check_lib_save_LIBS
8696 fi
8697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5
8698 $as_echo "$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6; }
8699 if test "x$ac_cv_lib_Xrender_XRenderSetPictureTransform" = xyes; then :
8700
8701 $as_echo "#define HAVE_XRENDERSETPICTURETRANSFORM 1" >>confdefs.h
8702
8703 fi
8704
8705                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderCreateLinearGradient in -lXrender" >&5
8706 $as_echo_n "checking for XRenderCreateLinearGradient in -lXrender... " >&6; }
8707 if ${ac_cv_lib_Xrender_XRenderCreateLinearGradient+:} false; then :
8708   $as_echo_n "(cached) " >&6
8709 else
8710   ac_check_lib_save_LIBS=$LIBS
8711 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8713 /* end confdefs.h.  */
8714
8715 /* Override any GCC internal prototype to avoid an error.
8716    Use char because int might match the return type of a GCC
8717    builtin and then its argument prototype would still apply.  */
8718 #ifdef __cplusplus
8719 extern "C"
8720 #endif
8721 char XRenderCreateLinearGradient ();
8722 int
8723 main ()
8724 {
8725 return XRenderCreateLinearGradient ();
8726   ;
8727   return 0;
8728 }
8729 _ACEOF
8730 if ac_fn_c_try_link "$LINENO"; then :
8731   ac_cv_lib_Xrender_XRenderCreateLinearGradient=yes
8732 else
8733   ac_cv_lib_Xrender_XRenderCreateLinearGradient=no
8734 fi
8735 rm -f core conftest.err conftest.$ac_objext \
8736     conftest$ac_exeext conftest.$ac_ext
8737 LIBS=$ac_check_lib_save_LIBS
8738 fi
8739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderCreateLinearGradient" >&5
8740 $as_echo "$ac_cv_lib_Xrender_XRenderCreateLinearGradient" >&6; }
8741 if test "x$ac_cv_lib_Xrender_XRenderCreateLinearGradient" = xyes; then :
8742
8743 $as_echo "#define HAVE_XRENDERCREATELINEARGRADIENT 1" >>confdefs.h
8744
8745 fi
8746
8747 fi
8748
8749         fi
8750         if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
8751   case "x$with_xrender" in
8752   x)   as_fn_append wine_warnings "|libxrender ${notice_platform}development files not found, XRender won't be supported." ;;
8753   xno) ;;
8754   *)   as_fn_error $? "libxrender ${notice_platform}development files not found, XRender won't be supported.
8755 This is an error since --with-xrender was requested." "$LINENO" 5 ;;
8756 esac
8757 fi
8758
8759                 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes" -a "x$ac_cv_lib_soname_Xrender" != "x"
8760         then
8761                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8762 /* end confdefs.h.  */
8763 #include <X11/Xlib.h>
8764 #include <X11/extensions/Xrandr.h>
8765 int
8766 main ()
8767 {
8768 static typeof(XRRSetScreenConfigAndRate) * func; if (func) return 0;
8769   ;
8770   return 0;
8771 }
8772 _ACEOF
8773 if ac_fn_c_try_compile "$LINENO"; then :
8774   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrandr" >&5
8775 $as_echo_n "checking for -lXrandr... " >&6; }
8776 if ${ac_cv_lib_soname_Xrandr+:} false; then :
8777   $as_echo_n "(cached) " >&6
8778 else
8779   ac_check_soname_save_LIBS=$LIBS
8780 LIBS="-lXrandr $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8781   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8782 /* end confdefs.h.  */
8783
8784 /* Override any GCC internal prototype to avoid an error.
8785    Use char because int might match the return type of a GCC
8786    builtin and then its argument prototype would still apply.  */
8787 #ifdef __cplusplus
8788 extern "C"
8789 #endif
8790 char XRRQueryExtension ();
8791 int
8792 main ()
8793 {
8794 return XRRQueryExtension ();
8795   ;
8796   return 0;
8797 }
8798 _ACEOF
8799 if ac_fn_c_try_link "$LINENO"; then :
8800   case "$LIBEXT" in
8801     dll) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest.exe | grep "Xrandr" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8802     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'` ;;
8803     *) ac_cv_lib_soname_Xrandr=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXrandr\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXrandr\\.$LIBEXT[^   ]*\\)\\].*$/\1/"';2,$d'`
8804        if test "x$ac_cv_lib_soname_Xrandr" = x; then :
8805   ac_cv_lib_soname_Xrandr=`$LDD conftest$ac_exeext | grep "libXrandr\\.$LIBEXT" | sed -e "s/^.*\(libXrandr\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'`
8806 fi ;;
8807   esac
8808 fi
8809 rm -f core conftest.err conftest.$ac_objext \
8810     conftest$ac_exeext conftest.$ac_ext
8811   LIBS=$ac_check_soname_save_LIBS
8812 fi
8813 if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
8814   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8815 $as_echo "not found" >&6; }
8816
8817 else
8818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrandr" >&5
8819 $as_echo "$ac_cv_lib_soname_Xrandr" >&6; }
8820
8821 cat >>confdefs.h <<_ACEOF
8822 #define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
8823 _ACEOF
8824
8825        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8826 /* end confdefs.h.  */
8827 #include <X11/extensions/Xrandr.h>
8828 int
8829 main ()
8830 {
8831 static typeof(XRRGetScreenResources) *f; if (f) return 0;
8832   ;
8833   return 0;
8834 }
8835 _ACEOF
8836 if ac_fn_c_try_compile "$LINENO"; then :
8837
8838 $as_echo "#define HAVE_XRRGETSCREENRESOURCES 1" >>confdefs.h
8839
8840 fi
8841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8842 fi
8843 fi
8844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8845         fi
8846         if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
8847   case "x$with_xrandr" in
8848   x)   as_fn_append wine_notices "|libxrandr ${notice_platform}development files not found, XRandr won't be supported." ;;
8849   xno) ;;
8850   *)   as_fn_error $? "libxrandr ${notice_platform}development files not found, XRandr won't be supported.
8851 This is an error since --with-xrandr was requested." "$LINENO" 5 ;;
8852 esac
8853 fi
8854
8855                 if test "$ac_cv_header_X11_extensions_Xinerama_h" = "yes"
8856         then
8857                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8858 /* end confdefs.h.  */
8859 #include <X11/Xlib.h>
8860 #include <X11/extensions/Xinerama.h>
8861 int
8862 main ()
8863 {
8864 static typeof(XineramaQueryScreens) * func; if (func) return 0;
8865   ;
8866   return 0;
8867 }
8868 _ACEOF
8869 if ac_fn_c_try_compile "$LINENO"; then :
8870   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXinerama" >&5
8871 $as_echo_n "checking for -lXinerama... " >&6; }
8872 if ${ac_cv_lib_soname_Xinerama+:} false; then :
8873   $as_echo_n "(cached) " >&6
8874 else
8875   ac_check_soname_save_LIBS=$LIBS
8876 LIBS="-lXinerama $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8877   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8878 /* end confdefs.h.  */
8879
8880 /* Override any GCC internal prototype to avoid an error.
8881    Use char because int might match the return type of a GCC
8882    builtin and then its argument prototype would still apply.  */
8883 #ifdef __cplusplus
8884 extern "C"
8885 #endif
8886 char XineramaQueryScreens ();
8887 int
8888 main ()
8889 {
8890 return XineramaQueryScreens ();
8891   ;
8892   return 0;
8893 }
8894 _ACEOF
8895 if ac_fn_c_try_link "$LINENO"; then :
8896   case "$LIBEXT" in
8897     dll) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest.exe | grep "Xinerama" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8898     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'` ;;
8899     *) ac_cv_lib_soname_Xinerama=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXinerama\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXinerama\\.$LIBEXT[^     ]*\\)\\].*$/\1/"';2,$d'`
8900        if test "x$ac_cv_lib_soname_Xinerama" = x; then :
8901   ac_cv_lib_soname_Xinerama=`$LDD conftest$ac_exeext | grep "libXinerama\\.$LIBEXT" | sed -e "s/^.*\(libXinerama\.$LIBEXT[^      ]*\).*$/\1/"';2,$d'`
8902 fi ;;
8903   esac
8904 fi
8905 rm -f core conftest.err conftest.$ac_objext \
8906     conftest$ac_exeext conftest.$ac_ext
8907   LIBS=$ac_check_soname_save_LIBS
8908 fi
8909 if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
8910   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8911 $as_echo "not found" >&6; }
8912
8913 else
8914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xinerama" >&5
8915 $as_echo "$ac_cv_lib_soname_Xinerama" >&6; }
8916
8917 cat >>confdefs.h <<_ACEOF
8918 #define SONAME_LIBXINERAMA "$ac_cv_lib_soname_Xinerama"
8919 _ACEOF
8920
8921
8922 fi
8923 fi
8924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8925         fi
8926         if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
8927   case "x$with_xinerama" in
8928   x)   as_fn_append wine_notices "|libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported." ;;
8929   xno) ;;
8930   *)   as_fn_error $? "libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported.
8931 This is an error since --with-xinerama was requested." "$LINENO" 5 ;;
8932 esac
8933 fi
8934
8935                 if test "$ac_cv_header_X11_extensions_Xcomposite_h" = "yes"
8936         then
8937             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcomposite" >&5
8938 $as_echo_n "checking for -lXcomposite... " >&6; }
8939 if ${ac_cv_lib_soname_Xcomposite+:} false; then :
8940   $as_echo_n "(cached) " >&6
8941 else
8942   ac_check_soname_save_LIBS=$LIBS
8943 LIBS="-lXcomposite $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8944   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8945 /* end confdefs.h.  */
8946
8947 /* Override any GCC internal prototype to avoid an error.
8948    Use char because int might match the return type of a GCC
8949    builtin and then its argument prototype would still apply.  */
8950 #ifdef __cplusplus
8951 extern "C"
8952 #endif
8953 char XCompositeRedirectWindow ();
8954 int
8955 main ()
8956 {
8957 return XCompositeRedirectWindow ();
8958   ;
8959   return 0;
8960 }
8961 _ACEOF
8962 if ac_fn_c_try_link "$LINENO"; then :
8963   case "$LIBEXT" in
8964     dll) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest.exe | grep "Xcomposite" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8965     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'` ;;
8966     *) ac_cv_lib_soname_Xcomposite=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXcomposite\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXcomposite\\.$LIBEXT[^       ]*\\)\\].*$/\1/"';2,$d'`
8967        if test "x$ac_cv_lib_soname_Xcomposite" = x; then :
8968   ac_cv_lib_soname_Xcomposite=`$LDD conftest$ac_exeext | grep "libXcomposite\\.$LIBEXT" | sed -e "s/^.*\(libXcomposite\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'`
8969 fi ;;
8970   esac
8971 fi
8972 rm -f core conftest.err conftest.$ac_objext \
8973     conftest$ac_exeext conftest.$ac_ext
8974   LIBS=$ac_check_soname_save_LIBS
8975 fi
8976 if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
8977   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8978 $as_echo "not found" >&6; }
8979
8980 else
8981   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcomposite" >&5
8982 $as_echo "$ac_cv_lib_soname_Xcomposite" >&6; }
8983
8984 cat >>confdefs.h <<_ACEOF
8985 #define SONAME_LIBXCOMPOSITE "$ac_cv_lib_soname_Xcomposite"
8986 _ACEOF
8987
8988
8989 fi
8990         fi
8991         if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
8992   case "x$with_xcomposite" in
8993   x)   as_fn_append wine_notices "|libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported." ;;
8994   xno) ;;
8995   *)   as_fn_error $? "libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported.
8996 This is an error since --with-xcomposite was requested." "$LINENO" 5 ;;
8997 esac
8998 fi
8999
9000                 ac_fn_c_check_member "$LINENO" "XICCallback" "callback" "ac_cv_member_XICCallback_callback" "#ifdef HAVE_X11_XLIB_H
9001 #include <X11/Xlib.h>
9002 #endif
9003 "
9004 if test "x$ac_cv_member_XICCallback_callback" = xyes; then :
9005
9006 cat >>confdefs.h <<_ACEOF
9007 #define HAVE_XICCALLBACK_CALLBACK 1
9008 _ACEOF
9009
9010
9011 fi
9012 ac_fn_c_check_member "$LINENO" "XEvent" "xcookie" "ac_cv_member_XEvent_xcookie" "#ifdef HAVE_X11_XLIB_H
9013 #include <X11/Xlib.h>
9014 #endif
9015 "
9016 if test "x$ac_cv_member_XEvent_xcookie" = xyes; then :
9017
9018 cat >>confdefs.h <<_ACEOF
9019 #define HAVE_XEVENT_XCOOKIE 1
9020 _ACEOF
9021
9022
9023 fi
9024
9025
9026
9027         opengl_msg=""
9028     if test "x$with_opengl" != "xno"
9029     then
9030         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
9031 $as_echo_n "checking for -lGL... " >&6; }
9032 if ${ac_cv_lib_soname_GL+:} false; then :
9033   $as_echo_n "(cached) " >&6
9034 else
9035   ac_check_soname_save_LIBS=$LIBS
9036 LIBS="-lGL $X_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
9037   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9038 /* end confdefs.h.  */
9039
9040 /* Override any GCC internal prototype to avoid an error.
9041    Use char because int might match the return type of a GCC
9042    builtin and then its argument prototype would still apply.  */
9043 #ifdef __cplusplus
9044 extern "C"
9045 #endif
9046 char glXCreateContext ();
9047 int
9048 main ()
9049 {
9050 return glXCreateContext ();
9051   ;
9052   return 0;
9053 }
9054 _ACEOF
9055 if ac_fn_c_try_link "$LINENO"; then :
9056   case "$LIBEXT" in
9057     dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9058     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'` ;;
9059     *) ac_cv_lib_soname_GL=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libGL\\.$LIBEXT" | sed -e "s/^.*\\[\\(libGL\\.$LIBEXT[^       ]*\\)\\].*$/\1/"';2,$d'`
9060        if test "x$ac_cv_lib_soname_GL" = x; then :
9061   ac_cv_lib_soname_GL=`$LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'`
9062 fi ;;
9063   esac
9064 fi
9065 rm -f core conftest.err conftest.$ac_objext \
9066     conftest$ac_exeext conftest.$ac_ext
9067   LIBS=$ac_check_soname_save_LIBS
9068 fi
9069 if test "x$ac_cv_lib_soname_GL" = "x"; then :
9070   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9071 $as_echo "not found" >&6; }
9072        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
9073 $as_echo_n "checking for -lGL... " >&6; }
9074 if ${ac_cv_lib_soname_GL+:} false; then :
9075   $as_echo_n "(cached) " >&6
9076 else
9077   ac_check_soname_save_LIBS=$LIBS
9078 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"
9079   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9080 /* end confdefs.h.  */
9081
9082 /* Override any GCC internal prototype to avoid an error.
9083    Use char because int might match the return type of a GCC
9084    builtin and then its argument prototype would still apply.  */
9085 #ifdef __cplusplus
9086 extern "C"
9087 #endif
9088 char glXCreateContext ();
9089 int
9090 main ()
9091 {
9092 return glXCreateContext ();
9093   ;
9094   return 0;
9095 }
9096 _ACEOF
9097 if ac_fn_c_try_link "$LINENO"; then :
9098   case "$LIBEXT" in
9099     dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9100     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'` ;;
9101     *) ac_cv_lib_soname_GL=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libGL\\.$LIBEXT" | sed -e "s/^.*\\[\\(libGL\\.$LIBEXT[^       ]*\\)\\].*$/\1/"';2,$d'`
9102        if test "x$ac_cv_lib_soname_GL" = x; then :
9103   ac_cv_lib_soname_GL=`$LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'`
9104 fi ;;
9105   esac
9106 fi
9107 rm -f core conftest.err conftest.$ac_objext \
9108     conftest$ac_exeext conftest.$ac_ext
9109   LIBS=$ac_check_soname_save_LIBS
9110 fi
9111 if test "x$ac_cv_lib_soname_GL" = "x"; then :
9112   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9113 $as_echo "not found" >&6; }
9114        if test -f /usr/X11R6/lib/libGL.a
9115                             then
9116                                 opengl_msg="/usr/X11R6/lib/libGL.a is present on your system.
9117 This probably prevents linking to OpenGL. Try deleting the file and restarting configure."
9118                             else
9119                                 opengl_msg="No OpenGL library found on this system."
9120                             fi
9121 else
9122   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
9123 $as_echo "$ac_cv_lib_soname_GL" >&6; }
9124
9125 cat >>confdefs.h <<_ACEOF
9126 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
9127 _ACEOF
9128
9129        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"
9130 fi
9131 else
9132   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
9133 $as_echo "$ac_cv_lib_soname_GL" >&6; }
9134
9135 cat >>confdefs.h <<_ACEOF
9136 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
9137 _ACEOF
9138
9139        OPENGL_LIBS="-lGL"
9140 fi
9141         if test "x$with_glu" != "xno"
9142         then
9143             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gluLookAt in -lGLU" >&5
9144 $as_echo_n "checking for gluLookAt in -lGLU... " >&6; }
9145 if ${ac_cv_lib_GLU_gluLookAt+:} false; then :
9146   $as_echo_n "(cached) " >&6
9147 else
9148   ac_check_lib_save_LIBS=$LIBS
9149 LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
9150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9151 /* end confdefs.h.  */
9152
9153 /* Override any GCC internal prototype to avoid an error.
9154    Use char because int might match the return type of a GCC
9155    builtin and then its argument prototype would still apply.  */
9156 #ifdef __cplusplus
9157 extern "C"
9158 #endif
9159 char gluLookAt ();
9160 int
9161 main ()
9162 {
9163 return gluLookAt ();
9164   ;
9165   return 0;
9166 }
9167 _ACEOF
9168 if ac_fn_c_try_link "$LINENO"; then :
9169   ac_cv_lib_GLU_gluLookAt=yes
9170 else
9171   ac_cv_lib_GLU_gluLookAt=no
9172 fi
9173 rm -f core conftest.err conftest.$ac_objext \
9174     conftest$ac_exeext conftest.$ac_ext
9175 LIBS=$ac_check_lib_save_LIBS
9176 fi
9177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GLU_gluLookAt" >&5
9178 $as_echo "$ac_cv_lib_GLU_gluLookAt" >&6; }
9179 if test "x$ac_cv_lib_GLU_gluLookAt" = xyes; then :
9180   :
9181 fi
9182
9183             if test "x$ac_cv_lib_GLU_gluLookAt" != xyes; then :
9184   case "x$with_glu" in
9185   x)   as_fn_append wine_notices "|libGLU ${notice_platform}development files not found, GLU won't be supported." ;;
9186   xno) ;;
9187   *)   as_fn_error $? "libGLU ${notice_platform}development files not found, GLU won't be supported.
9188 This is an error since --with-glu was requested." "$LINENO" 5 ;;
9189 esac
9190 fi
9191         fi
9192
9193         if test "x$with_osmesa" != "xno"
9194         then
9195             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lOSMesa" >&5
9196 $as_echo_n "checking for -lOSMesa... " >&6; }
9197 if ${ac_cv_lib_soname_OSMesa+:} false; then :
9198   $as_echo_n "(cached) " >&6
9199 else
9200   ac_check_soname_save_LIBS=$LIBS
9201 LIBS="-lOSMesa $X_LIBS $X_PRE_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
9202   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9203 /* end confdefs.h.  */
9204
9205 /* Override any GCC internal prototype to avoid an error.
9206    Use char because int might match the return type of a GCC
9207    builtin and then its argument prototype would still apply.  */
9208 #ifdef __cplusplus
9209 extern "C"
9210 #endif
9211 char glAccum ();
9212 int
9213 main ()
9214 {
9215 return glAccum ();
9216   ;
9217   return 0;
9218 }
9219 _ACEOF
9220 if ac_fn_c_try_link "$LINENO"; then :
9221   case "$LIBEXT" in
9222     dll) ac_cv_lib_soname_OSMesa=`$ac_cv_path_LDD conftest.exe | grep "OSMesa" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9223     dylib) ac_cv_lib_soname_OSMesa=`otool -L conftest$ac_exeext | grep "libOSMesa\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libOSMesa\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
9224     *) ac_cv_lib_soname_OSMesa=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libOSMesa\\.$LIBEXT" | sed -e "s/^.*\\[\\(libOSMesa\\.$LIBEXT[^   ]*\\)\\].*$/\1/"';2,$d'`
9225        if test "x$ac_cv_lib_soname_OSMesa" = x; then :
9226   ac_cv_lib_soname_OSMesa=`$LDD conftest$ac_exeext | grep "libOSMesa\\.$LIBEXT" | sed -e "s/^.*\(libOSMesa\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'`
9227 fi ;;
9228   esac
9229 fi
9230 rm -f core conftest.err conftest.$ac_objext \
9231     conftest$ac_exeext conftest.$ac_ext
9232   LIBS=$ac_check_soname_save_LIBS
9233 fi
9234 if test "x$ac_cv_lib_soname_OSMesa" = "x"; then :
9235   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9236 $as_echo "not found" >&6; }
9237
9238 else
9239   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_OSMesa" >&5
9240 $as_echo "$ac_cv_lib_soname_OSMesa" >&6; }
9241
9242 cat >>confdefs.h <<_ACEOF
9243 #define SONAME_LIBOSMESA "$ac_cv_lib_soname_OSMesa"
9244 _ACEOF
9245
9246
9247 fi
9248             if test "x$ac_cv_lib_soname_OSMesa" = "x"; then :
9249   case "x$with_osmesa" in
9250   x)   as_fn_append wine_notices "|libOSMesa ${notice_platform}development files not found (or too old), OpenGL rendering in bitmaps won't be supported." ;;
9251   xno) ;;
9252   *)   as_fn_error $? "libOSMesa ${notice_platform}development files not found (or too old), OpenGL rendering in bitmaps won't be supported.
9253 This is an error since --with-osmesa was requested." "$LINENO" 5 ;;
9254 esac
9255 fi
9256         fi
9257     fi
9258     if test -n "$opengl_msg"; then :
9259   case "x$with_opengl" in
9260   x)   as_fn_append wine_warnings "|$opengl_msg
9261 OpenGL and Direct3D won't be supported." ;;
9262   xno) ;;
9263   *)   as_fn_error $? "$opengl_msg
9264 OpenGL and Direct3D won't be supported.
9265 This is an error since --with-opengl was requested." "$LINENO" 5 ;;
9266 esac
9267 fi
9268
9269     CPPFLAGS="$ac_save_CPPFLAGS"
9270 else
9271     XLIB=""
9272     X_CFLAGS=""
9273     X_LIBS=""
9274     enable_winex11_drv=${enable_winex11_drv:-no}
9275 fi
9276 if test "x$XLIB" = "x"; then :
9277   case "x$with_x" in
9278   xno) ;;
9279   *)   as_fn_error $? "X ${notice_platform}development files not found. Wine will be built
9280 without X support, which probably isn't what you want. You will need
9281 to install ${notice_platform}development packages of Xlib/Xfree86 at the very least.
9282 Use the --without-x option if you really want this." "$LINENO" 5 ;;
9283 esac
9284 fi
9285
9286 test "x$ac_cv_lib_GLU_gluLookAt" != xyes && enable_glu32=${enable_glu32:-no}
9287
9288 if test "$ac_cv_header_CL_cl_h" = "yes"
9289 then
9290     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clGetPlatformInfo in -lOpenCL" >&5
9291 $as_echo_n "checking for clGetPlatformInfo in -lOpenCL... " >&6; }
9292 if ${ac_cv_lib_OpenCL_clGetPlatformInfo+:} false; then :
9293   $as_echo_n "(cached) " >&6
9294 else
9295   ac_check_lib_save_LIBS=$LIBS
9296 LIBS="-lOpenCL  $LIBS"
9297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9298 /* end confdefs.h.  */
9299
9300 /* Override any GCC internal prototype to avoid an error.
9301    Use char because int might match the return type of a GCC
9302    builtin and then its argument prototype would still apply.  */
9303 #ifdef __cplusplus
9304 extern "C"
9305 #endif
9306 char clGetPlatformInfo ();
9307 int
9308 main ()
9309 {
9310 return clGetPlatformInfo ();
9311   ;
9312   return 0;
9313 }
9314 _ACEOF
9315 if ac_fn_c_try_link "$LINENO"; then :
9316   ac_cv_lib_OpenCL_clGetPlatformInfo=yes
9317 else
9318   ac_cv_lib_OpenCL_clGetPlatformInfo=no
9319 fi
9320 rm -f core conftest.err conftest.$ac_objext \
9321     conftest$ac_exeext conftest.$ac_ext
9322 LIBS=$ac_check_lib_save_LIBS
9323 fi
9324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_OpenCL_clGetPlatformInfo" >&5
9325 $as_echo "$ac_cv_lib_OpenCL_clGetPlatformInfo" >&6; }
9326 if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" = xyes; then :
9327   LIBOPENCL="-lOpenCL"
9328
9329 fi
9330
9331 fi
9332 if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes; then :
9333   case "x$with_opencl" in
9334   x)   as_fn_append wine_notices "|OpenCL ${notice_platform}development files not found, OpenCL won't be supported." ;;
9335   xno) ;;
9336   *)   as_fn_error $? "OpenCL ${notice_platform}development files not found, OpenCL won't be supported.
9337 This is an error since --with-opencl was requested." "$LINENO" 5 ;;
9338 esac
9339 fi
9340 test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes && enable_opencl=${enable_opencl:-no}
9341
9342
9343 XML2LIBS=""
9344
9345 XML2INCL=""
9346
9347 XSLTINCL=""
9348
9349 if test "x$with_xml" != "xno"
9350 then
9351     ac_save_CPPFLAGS="$CPPFLAGS"
9352     if test "$PKG_CONFIG" != "false"
9353     then
9354         ac_xml_libs="`$PKG_CONFIG --libs libxml-2.0 2>/dev/null`"
9355         ac_xml_cflags="`$PKG_CONFIG --cflags libxml-2.0 2>/dev/null`"
9356     else
9357         ac_xml_libs="`xml2-config --libs 2>/dev/null`"
9358         ac_xml_cflags="`xml2-config --cflags  2>/dev/null`"
9359     fi
9360     CPPFLAGS="$CPPFLAGS $ac_xml_cflags"
9361     for ac_header in libxml/parser.h libxml/xmlsave.h libxml/SAX2.h
9362 do :
9363   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9364 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9365 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9366   cat >>confdefs.h <<_ACEOF
9367 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9368 _ACEOF
9369
9370 fi
9371
9372 done
9373
9374     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"
9375     then
9376         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseMemory in -lxml2" >&5
9377 $as_echo_n "checking for xmlParseMemory in -lxml2... " >&6; }
9378 if ${ac_cv_lib_xml2_xmlParseMemory+:} false; then :
9379   $as_echo_n "(cached) " >&6
9380 else
9381   ac_check_lib_save_LIBS=$LIBS
9382 LIBS="-lxml2 $ac_xml_libs $LIBS"
9383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9384 /* end confdefs.h.  */
9385
9386 /* Override any GCC internal prototype to avoid an error.
9387    Use char because int might match the return type of a GCC
9388    builtin and then its argument prototype would still apply.  */
9389 #ifdef __cplusplus
9390 extern "C"
9391 #endif
9392 char xmlParseMemory ();
9393 int
9394 main ()
9395 {
9396 return xmlParseMemory ();
9397   ;
9398   return 0;
9399 }
9400 _ACEOF
9401 if ac_fn_c_try_link "$LINENO"; then :
9402   ac_cv_lib_xml2_xmlParseMemory=yes
9403 else
9404   ac_cv_lib_xml2_xmlParseMemory=no
9405 fi
9406 rm -f core conftest.err conftest.$ac_objext \
9407     conftest$ac_exeext conftest.$ac_ext
9408 LIBS=$ac_check_lib_save_LIBS
9409 fi
9410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseMemory" >&5
9411 $as_echo "$ac_cv_lib_xml2_xmlParseMemory" >&6; }
9412 if test "x$ac_cv_lib_xml2_xmlParseMemory" = xyes; then :
9413
9414 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
9415
9416              XML2LIBS="$ac_xml_libs"
9417              XML2INCL="$ac_xml_cflags"
9418 fi
9419
9420         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlReadMemory in -lxml2" >&5
9421 $as_echo_n "checking for xmlReadMemory in -lxml2... " >&6; }
9422 if ${ac_cv_lib_xml2_xmlReadMemory+:} false; then :
9423   $as_echo_n "(cached) " >&6
9424 else
9425   ac_check_lib_save_LIBS=$LIBS
9426 LIBS="-lxml2 $ac_xml_libs $LIBS"
9427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9428 /* end confdefs.h.  */
9429
9430 /* Override any GCC internal prototype to avoid an error.
9431    Use char because int might match the return type of a GCC
9432    builtin and then its argument prototype would still apply.  */
9433 #ifdef __cplusplus
9434 extern "C"
9435 #endif
9436 char xmlReadMemory ();
9437 int
9438 main ()
9439 {
9440 return xmlReadMemory ();
9441   ;
9442   return 0;
9443 }
9444 _ACEOF
9445 if ac_fn_c_try_link "$LINENO"; then :
9446   ac_cv_lib_xml2_xmlReadMemory=yes
9447 else
9448   ac_cv_lib_xml2_xmlReadMemory=no
9449 fi
9450 rm -f core conftest.err conftest.$ac_objext \
9451     conftest$ac_exeext conftest.$ac_ext
9452 LIBS=$ac_check_lib_save_LIBS
9453 fi
9454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlReadMemory" >&5
9455 $as_echo "$ac_cv_lib_xml2_xmlReadMemory" >&6; }
9456 if test "x$ac_cv_lib_xml2_xmlReadMemory" = xyes; then :
9457
9458 $as_echo "#define HAVE_XMLREADMEMORY 1" >>confdefs.h
9459
9460 fi
9461
9462         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlNewDocPI in -lxml2" >&5
9463 $as_echo_n "checking for xmlNewDocPI in -lxml2... " >&6; }
9464 if ${ac_cv_lib_xml2_xmlNewDocPI+:} false; then :
9465   $as_echo_n "(cached) " >&6
9466 else
9467   ac_check_lib_save_LIBS=$LIBS
9468 LIBS="-lxml2 $ac_xml_libs $LIBS"
9469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9470 /* end confdefs.h.  */
9471
9472 /* Override any GCC internal prototype to avoid an error.
9473    Use char because int might match the return type of a GCC
9474    builtin and then its argument prototype would still apply.  */
9475 #ifdef __cplusplus
9476 extern "C"
9477 #endif
9478 char xmlNewDocPI ();
9479 int
9480 main ()
9481 {
9482 return xmlNewDocPI ();
9483   ;
9484   return 0;
9485 }
9486 _ACEOF
9487 if ac_fn_c_try_link "$LINENO"; then :
9488   ac_cv_lib_xml2_xmlNewDocPI=yes
9489 else
9490   ac_cv_lib_xml2_xmlNewDocPI=no
9491 fi
9492 rm -f core conftest.err conftest.$ac_objext \
9493     conftest$ac_exeext conftest.$ac_ext
9494 LIBS=$ac_check_lib_save_LIBS
9495 fi
9496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlNewDocPI" >&5
9497 $as_echo "$ac_cv_lib_xml2_xmlNewDocPI" >&6; }
9498 if test "x$ac_cv_lib_xml2_xmlNewDocPI" = xyes; then :
9499
9500 $as_echo "#define HAVE_XMLNEWDOCPI 1" >>confdefs.h
9501
9502 fi
9503
9504         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetParserStructuredErrors in -lxml2" >&5
9505 $as_echo_n "checking for xmlSchemaSetParserStructuredErrors in -lxml2... " >&6; }
9506 if ${ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors+:} false; then :
9507   $as_echo_n "(cached) " >&6
9508 else
9509   ac_check_lib_save_LIBS=$LIBS
9510 LIBS="-lxml2 $ac_xml_libs $LIBS"
9511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9512 /* end confdefs.h.  */
9513
9514 /* Override any GCC internal prototype to avoid an error.
9515    Use char because int might match the return type of a GCC
9516    builtin and then its argument prototype would still apply.  */
9517 #ifdef __cplusplus
9518 extern "C"
9519 #endif
9520 char xmlSchemaSetParserStructuredErrors ();
9521 int
9522 main ()
9523 {
9524 return xmlSchemaSetParserStructuredErrors ();
9525   ;
9526   return 0;
9527 }
9528 _ACEOF
9529 if ac_fn_c_try_link "$LINENO"; then :
9530   ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=yes
9531 else
9532   ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=no
9533 fi
9534 rm -f core conftest.err conftest.$ac_objext \
9535     conftest$ac_exeext conftest.$ac_ext
9536 LIBS=$ac_check_lib_save_LIBS
9537 fi
9538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&5
9539 $as_echo "$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&6; }
9540 if test "x$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" = xyes; then :
9541
9542 $as_echo "#define HAVE_XMLSCHEMASSETPARSERSTRUCTUREDERRORS 1" >>confdefs.h
9543
9544 fi
9545
9546         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetValidStructuredErrors in -lxml2" >&5
9547 $as_echo_n "checking for xmlSchemaSetValidStructuredErrors in -lxml2... " >&6; }
9548 if ${ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors+:} false; then :
9549   $as_echo_n "(cached) " >&6
9550 else
9551   ac_check_lib_save_LIBS=$LIBS
9552 LIBS="-lxml2 $ac_xml_libs $LIBS"
9553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9554 /* end confdefs.h.  */
9555
9556 /* Override any GCC internal prototype to avoid an error.
9557    Use char because int might match the return type of a GCC
9558    builtin and then its argument prototype would still apply.  */
9559 #ifdef __cplusplus
9560 extern "C"
9561 #endif
9562 char xmlSchemaSetValidStructuredErrors ();
9563 int
9564 main ()
9565 {
9566 return xmlSchemaSetValidStructuredErrors ();
9567   ;
9568   return 0;
9569 }
9570 _ACEOF
9571 if ac_fn_c_try_link "$LINENO"; then :
9572   ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=yes
9573 else
9574   ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=no
9575 fi
9576 rm -f core conftest.err conftest.$ac_objext \
9577     conftest$ac_exeext conftest.$ac_ext
9578 LIBS=$ac_check_lib_save_LIBS
9579 fi
9580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&5
9581 $as_echo "$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&6; }
9582 if test "x$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" = xyes; then :
9583
9584 $as_echo "#define HAVE_XMLSCHEMASSETVALIDSTRUCTUREDERRORS 1" >>confdefs.h
9585
9586 fi
9587
9588         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlFirstElementChild in -lxml2" >&5
9589 $as_echo_n "checking for xmlFirstElementChild in -lxml2... " >&6; }
9590 if ${ac_cv_lib_xml2_xmlFirstElementChild+:} false; then :
9591   $as_echo_n "(cached) " >&6
9592 else
9593   ac_check_lib_save_LIBS=$LIBS
9594 LIBS="-lxml2 $ac_xml_libs $LIBS"
9595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9596 /* end confdefs.h.  */
9597
9598 /* Override any GCC internal prototype to avoid an error.
9599    Use char because int might match the return type of a GCC
9600    builtin and then its argument prototype would still apply.  */
9601 #ifdef __cplusplus
9602 extern "C"
9603 #endif
9604 char xmlFirstElementChild ();
9605 int
9606 main ()
9607 {
9608 return xmlFirstElementChild ();
9609   ;
9610   return 0;
9611 }
9612 _ACEOF
9613 if ac_fn_c_try_link "$LINENO"; then :
9614   ac_cv_lib_xml2_xmlFirstElementChild=yes
9615 else
9616   ac_cv_lib_xml2_xmlFirstElementChild=no
9617 fi
9618 rm -f core conftest.err conftest.$ac_objext \
9619     conftest$ac_exeext conftest.$ac_ext
9620 LIBS=$ac_check_lib_save_LIBS
9621 fi
9622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlFirstElementChild" >&5
9623 $as_echo "$ac_cv_lib_xml2_xmlFirstElementChild" >&6; }
9624 if test "x$ac_cv_lib_xml2_xmlFirstElementChild" = xyes; then :
9625
9626 $as_echo "#define HAVE_XMLFIRSTELEMENTCHILD 1" >>confdefs.h
9627
9628 fi
9629
9630         ac_fn_c_check_type "$LINENO" "xmlDocProperties" "ac_cv_type_xmlDocProperties" "#include <libxml/tree.h>
9631 "
9632 if test "x$ac_cv_type_xmlDocProperties" = xyes; then :
9633
9634 $as_echo "#define HAVE_XMLDOC_PROPERTIES 1" >>confdefs.h
9635
9636 fi
9637
9638     fi
9639     CPPFLAGS="$ac_save_CPPFLAGS"
9640 fi
9641 if test "$ac_cv_lib_xml2_xmlParseMemory" != "yes"; then :
9642   case "x$with_xml" in
9643   x)   as_fn_append wine_warnings "|libxml2 ${notice_platform}development files not found (or too old), XML won't be supported." ;;
9644   xno) ;;
9645   *)   as_fn_error $? "libxml2 ${notice_platform}development files not found (or too old), XML won't be supported.
9646 This is an error since --with-xml was requested." "$LINENO" 5 ;;
9647 esac
9648 fi
9649
9650 if test "x$with_xslt" != "xno"
9651 then
9652     if test "$PKG_CONFIG" != "false"
9653     then
9654         ac_xslt_libs="`$PKG_CONFIG --libs libxslt 2>/dev/null`"
9655         ac_xslt_cflags="`$PKG_CONFIG --cflags libxslt 2>/dev/null`"
9656     else
9657         ac_xslt_libs="`xslt-config --libs 2>/dev/null`"
9658         ac_xslt_cflags="`xslt-config --cflags 2>/dev/null`"
9659     fi
9660     ac_save_CPPFLAGS="$CPPFLAGS"
9661     CPPFLAGS="$CPPFLAGS $ac_xslt_cflags"
9662     for ac_header in libxslt/pattern.h libxslt/transform.h
9663 do :
9664   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9665 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_LIBXSLT_PATTERN_H
9666 # include <libxslt/pattern.h>
9667 #endif
9668 "
9669 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9670   cat >>confdefs.h <<_ACEOF
9671 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9672 _ACEOF
9673
9674 fi
9675
9676 done
9677
9678     CPPFLAGS="$ac_save_CPPFLAGS"
9679     if test "$ac_cv_header_libxslt_transform_h" = "yes"
9680     then
9681         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lxslt" >&5
9682 $as_echo_n "checking for -lxslt... " >&6; }
9683 if ${ac_cv_lib_soname_xslt+:} false; then :
9684   $as_echo_n "(cached) " >&6
9685 else
9686   ac_check_soname_save_LIBS=$LIBS
9687 LIBS="-lxslt $ac_xslt_libs $LIBS"
9688   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9689 /* end confdefs.h.  */
9690
9691 /* Override any GCC internal prototype to avoid an error.
9692    Use char because int might match the return type of a GCC
9693    builtin and then its argument prototype would still apply.  */
9694 #ifdef __cplusplus
9695 extern "C"
9696 #endif
9697 char xsltCompilePattern ();
9698 int
9699 main ()
9700 {
9701 return xsltCompilePattern ();
9702   ;
9703   return 0;
9704 }
9705 _ACEOF
9706 if ac_fn_c_try_link "$LINENO"; then :
9707   case "$LIBEXT" in
9708     dll) ac_cv_lib_soname_xslt=`$ac_cv_path_LDD conftest.exe | grep "xslt" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9709     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'` ;;
9710     *) ac_cv_lib_soname_xslt=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libxslt\\.$LIBEXT" | sed -e "s/^.*\\[\\(libxslt\\.$LIBEXT[^         ]*\\)\\].*$/\1/"';2,$d'`
9711        if test "x$ac_cv_lib_soname_xslt" = x; then :
9712   ac_cv_lib_soname_xslt=`$LDD conftest$ac_exeext | grep "libxslt\\.$LIBEXT" | sed -e "s/^.*\(libxslt\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'`
9713 fi ;;
9714   esac
9715 fi
9716 rm -f core conftest.err conftest.$ac_objext \
9717     conftest$ac_exeext conftest.$ac_ext
9718   LIBS=$ac_check_soname_save_LIBS
9719 fi
9720 if test "x$ac_cv_lib_soname_xslt" = "x"; then :
9721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9722 $as_echo "not found" >&6; }
9723
9724 else
9725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_xslt" >&5
9726 $as_echo "$ac_cv_lib_soname_xslt" >&6; }
9727
9728 cat >>confdefs.h <<_ACEOF
9729 #define SONAME_LIBXSLT "$ac_cv_lib_soname_xslt"
9730 _ACEOF
9731
9732        XSLTINCL="$ac_xslt_cflags"
9733 fi
9734     fi
9735 fi
9736 if test "x$ac_cv_lib_soname_xslt" = "x"; then :
9737   case "x$with_xslt" in
9738   x)   as_fn_append wine_warnings "|libxslt ${notice_platform}development files not found, xslt won't be supported." ;;
9739   xno) ;;
9740   *)   as_fn_error $? "libxslt ${notice_platform}development files not found, xslt won't be supported.
9741 This is an error since --with-xslt was requested." "$LINENO" 5 ;;
9742 esac
9743 fi
9744
9745 if test "x$with_dbus" != "xno"
9746 then
9747     ac_save_CPPFLAGS="$CPPFLAGS"
9748     if test "$PKG_CONFIG" != "false"
9749     then
9750         ac_dbus_libs="`$PKG_CONFIG --libs dbus-1 2>/dev/null`"
9751         ac_dbus_cflags="`$PKG_CONFIG --cflags dbus-1 2>/dev/null`"
9752         CPPFLAGS="$CPPFLAGS $ac_dbus_cflags"
9753     fi
9754     ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
9755 if test "x$ac_cv_header_dbus_dbus_h" = xyes; then :
9756   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ldbus-1" >&5
9757 $as_echo_n "checking for -ldbus-1... " >&6; }
9758 if ${ac_cv_lib_soname_dbus_1+:} false; then :
9759   $as_echo_n "(cached) " >&6
9760 else
9761   ac_check_soname_save_LIBS=$LIBS
9762 LIBS="-ldbus-1 $ac_dbus_libs $LIBS"
9763   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9764 /* end confdefs.h.  */
9765
9766 /* Override any GCC internal prototype to avoid an error.
9767    Use char because int might match the return type of a GCC
9768    builtin and then its argument prototype would still apply.  */
9769 #ifdef __cplusplus
9770 extern "C"
9771 #endif
9772 char dbus_connection_close ();
9773 int
9774 main ()
9775 {
9776 return dbus_connection_close ();
9777   ;
9778   return 0;
9779 }
9780 _ACEOF
9781 if ac_fn_c_try_link "$LINENO"; then :
9782   case "$LIBEXT" in
9783     dll) ac_cv_lib_soname_dbus_1=`$ac_cv_path_LDD conftest.exe | grep "dbus-1" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9784     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'` ;;
9785     *) ac_cv_lib_soname_dbus_1=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libdbus-1\\.$LIBEXT" | sed -e "s/^.*\\[\\(libdbus-1\\.$LIBEXT[^   ]*\\)\\].*$/\1/"';2,$d'`
9786        if test "x$ac_cv_lib_soname_dbus_1" = x; then :
9787   ac_cv_lib_soname_dbus_1=`$LDD conftest$ac_exeext | grep "libdbus-1\\.$LIBEXT" | sed -e "s/^.*\(libdbus-1\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'`
9788 fi ;;
9789   esac
9790 fi
9791 rm -f core conftest.err conftest.$ac_objext \
9792     conftest$ac_exeext conftest.$ac_ext
9793   LIBS=$ac_check_soname_save_LIBS
9794 fi
9795 if test "x$ac_cv_lib_soname_dbus_1" = "x"; then :
9796   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9797 $as_echo "not found" >&6; }
9798
9799 else
9800   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_dbus_1" >&5
9801 $as_echo "$ac_cv_lib_soname_dbus_1" >&6; }
9802
9803 cat >>confdefs.h <<_ACEOF
9804 #define SONAME_LIBDBUS_1 "$ac_cv_lib_soname_dbus_1"
9805 _ACEOF
9806
9807        DBUSINCL="$ac_dbus_cflags"
9808
9809 fi
9810 fi
9811
9812
9813     CPPFLAGS="$ac_save_CPPFLAGS"
9814 fi
9815 if test "x$ac_cv_lib_soname_dbus_1" = "x" -a \
9816                             "x$ac_cv_header_DiskArbitration_DiskArbitration_h" != "xyes"; then :
9817   case "x$with_dbus" in
9818   x)   as_fn_append wine_notices "|libdbus ${notice_platform}development files not found, no dynamic device support." ;;
9819   xno) ;;
9820   *)   as_fn_error $? "libdbus ${notice_platform}development files not found, no dynamic device support.
9821 This is an error since --with-dbus was requested." "$LINENO" 5 ;;
9822 esac
9823 fi
9824
9825 if test "x$with_hal" != "xno" -a "x$ac_cv_lib_soname_dbus_1" != x
9826 then
9827     ac_save_CPPFLAGS="$CPPFLAGS"
9828     if test "$PKG_CONFIG" != "false"
9829     then
9830         ac_hal_libs="`$PKG_CONFIG --libs hal 2>/dev/null`"
9831         ac_hal_cflags="`$PKG_CONFIG --cflags hal 2>/dev/null`"
9832         CPPFLAGS="$CPPFLAGS $ac_hal_cflags"
9833     fi
9834     ac_fn_c_check_header_mongrel "$LINENO" "hal/libhal.h" "ac_cv_header_hal_libhal_h" "$ac_includes_default"
9835 if test "x$ac_cv_header_hal_libhal_h" = xyes; then :
9836   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lhal" >&5
9837 $as_echo_n "checking for -lhal... " >&6; }
9838 if ${ac_cv_lib_soname_hal+:} false; then :
9839   $as_echo_n "(cached) " >&6
9840 else
9841   ac_check_soname_save_LIBS=$LIBS
9842 LIBS="-lhal $ac_hal_libs $LIBS"
9843   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9844 /* end confdefs.h.  */
9845
9846 /* Override any GCC internal prototype to avoid an error.
9847    Use char because int might match the return type of a GCC
9848    builtin and then its argument prototype would still apply.  */
9849 #ifdef __cplusplus
9850 extern "C"
9851 #endif
9852 char libhal_ctx_new ();
9853 int
9854 main ()
9855 {
9856 return libhal_ctx_new ();
9857   ;
9858   return 0;
9859 }
9860 _ACEOF
9861 if ac_fn_c_try_link "$LINENO"; then :
9862   case "$LIBEXT" in
9863     dll) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest.exe | grep "hal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9864     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'` ;;
9865     *) ac_cv_lib_soname_hal=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libhal\\.$LIBEXT" | sed -e "s/^.*\\[\\(libhal\\.$LIBEXT[^    ]*\\)\\].*$/\1/"';2,$d'`
9866        if test "x$ac_cv_lib_soname_hal" = x; then :
9867   ac_cv_lib_soname_hal=`$LDD conftest$ac_exeext | grep "libhal\\.$LIBEXT" | sed -e "s/^.*\(libhal\.$LIBEXT[^     ]*\).*$/\1/"';2,$d'`
9868 fi ;;
9869   esac
9870 fi
9871 rm -f core conftest.err conftest.$ac_objext \
9872     conftest$ac_exeext conftest.$ac_ext
9873   LIBS=$ac_check_soname_save_LIBS
9874 fi
9875 if test "x$ac_cv_lib_soname_hal" = "x"; then :
9876   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9877 $as_echo "not found" >&6; }
9878
9879 else
9880   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_hal" >&5
9881 $as_echo "$ac_cv_lib_soname_hal" >&6; }
9882
9883 cat >>confdefs.h <<_ACEOF
9884 #define SONAME_LIBHAL "$ac_cv_lib_soname_hal"
9885 _ACEOF
9886
9887        HALINCL="$ac_hal_cflags"
9888
9889 fi
9890 fi
9891
9892
9893     CPPFLAGS="$ac_save_CPPFLAGS"
9894     if test "x$ac_cv_lib_soname_hal" = "x" -a \
9895                                "x$ac_cv_header_DiskArbitration_DiskArbitration_h" != "xyes"; then :
9896   case "x$with_hal" in
9897   x)   as_fn_append wine_notices "|libhal ${notice_platform}development files not found, no legacy dynamic device support." ;;
9898   xno) ;;
9899   *)   as_fn_error $? "libhal ${notice_platform}development files not found, no legacy dynamic device support.
9900 This is an error since --with-hal was requested." "$LINENO" 5 ;;
9901 esac
9902 fi
9903 fi
9904
9905 if test "x$with_gnutls" != "xno"
9906 then
9907     ac_save_CPPFLAGS="$CPPFLAGS"
9908     if test "$PKG_CONFIG" != "false"
9909     then
9910         ac_gnutls_libs="`$PKG_CONFIG --libs gnutls 2>/dev/null`"
9911         ac_gnutls_cflags="`$PKG_CONFIG --cflags gnutls 2>/dev/null`"
9912         CPPFLAGS="$CPPFLAGS $ac_gnutls_cflags"
9913     fi
9914     ac_fn_c_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default"
9915 if test "x$ac_cv_header_gnutls_gnutls_h" = xyes; then :
9916   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9917 /* end confdefs.h.  */
9918 #include <gnutls/gnutls.h>
9919 int
9920 main ()
9921 {
9922 static typeof(gnutls_mac_get_key_size) *func; if (func) return 0;
9923   ;
9924   return 0;
9925 }
9926 _ACEOF
9927 if ac_fn_c_try_compile "$LINENO"; then :
9928   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgnutls" >&5
9929 $as_echo_n "checking for -lgnutls... " >&6; }
9930 if ${ac_cv_lib_soname_gnutls+:} false; then :
9931   $as_echo_n "(cached) " >&6
9932 else
9933   ac_check_soname_save_LIBS=$LIBS
9934 LIBS="-lgnutls $ac_gnutls_libs $LIBS"
9935   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9936 /* end confdefs.h.  */
9937
9938 /* Override any GCC internal prototype to avoid an error.
9939    Use char because int might match the return type of a GCC
9940    builtin and then its argument prototype would still apply.  */
9941 #ifdef __cplusplus
9942 extern "C"
9943 #endif
9944 char gnutls_global_init ();
9945 int
9946 main ()
9947 {
9948 return gnutls_global_init ();
9949   ;
9950   return 0;
9951 }
9952 _ACEOF
9953 if ac_fn_c_try_link "$LINENO"; then :
9954   case "$LIBEXT" in
9955     dll) ac_cv_lib_soname_gnutls=`$ac_cv_path_LDD conftest.exe | grep "gnutls" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9956     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'` ;;
9957     *) ac_cv_lib_soname_gnutls=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libgnutls\\.$LIBEXT" | sed -e "s/^.*\\[\\(libgnutls\\.$LIBEXT[^   ]*\\)\\].*$/\1/"';2,$d'`
9958        if test "x$ac_cv_lib_soname_gnutls" = x; then :
9959   ac_cv_lib_soname_gnutls=`$LDD conftest$ac_exeext | grep "libgnutls\\.$LIBEXT" | sed -e "s/^.*\(libgnutls\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'`
9960 fi ;;
9961   esac
9962 fi
9963 rm -f core conftest.err conftest.$ac_objext \
9964     conftest$ac_exeext conftest.$ac_ext
9965   LIBS=$ac_check_soname_save_LIBS
9966 fi
9967 if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
9968   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9969 $as_echo "not found" >&6; }
9970
9971 else
9972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gnutls" >&5
9973 $as_echo "$ac_cv_lib_soname_gnutls" >&6; }
9974
9975 cat >>confdefs.h <<_ACEOF
9976 #define SONAME_LIBGNUTLS "$ac_cv_lib_soname_gnutls"
9977 _ACEOF
9978
9979        GNUTLSINCL="$ac_gnutls_cflags"
9980
9981 fi
9982 fi
9983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9984 fi
9985
9986
9987     CPPFLAGS="$ac_save_CPPFLAGS"
9988 fi
9989 if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
9990   case "x$with_gnutls" in
9991   x)   as_fn_append wine_notices "|libgnutls ${notice_platform}development files not found, no schannel support." ;;
9992   xno) ;;
9993   *)   as_fn_error $? "libgnutls ${notice_platform}development files not found, no schannel support.
9994 This is an error since --with-gnutls was requested." "$LINENO" 5 ;;
9995 esac
9996 fi
9997
9998 CURSESLIBS=""
9999 if test "$ac_cv_header_ncurses_h" = "yes"
10000 then
10001     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lncurses" >&5
10002 $as_echo_n "checking for -lncurses... " >&6; }
10003 if ${ac_cv_lib_soname_ncurses+:} false; then :
10004   $as_echo_n "(cached) " >&6
10005 else
10006   ac_check_soname_save_LIBS=$LIBS
10007 LIBS="-lncurses  $LIBS"
10008   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10009 /* end confdefs.h.  */
10010
10011 /* Override any GCC internal prototype to avoid an error.
10012    Use char because int might match the return type of a GCC
10013    builtin and then its argument prototype would still apply.  */
10014 #ifdef __cplusplus
10015 extern "C"
10016 #endif
10017 char waddch ();
10018 int
10019 main ()
10020 {
10021 return waddch ();
10022   ;
10023   return 0;
10024 }
10025 _ACEOF
10026 if ac_fn_c_try_link "$LINENO"; then :
10027   case "$LIBEXT" in
10028     dll) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest.exe | grep "ncurses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10029     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'` ;;
10030     *) ac_cv_lib_soname_ncurses=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libncurses\\.$LIBEXT" | sed -e "s/^.*\\[\\(libncurses\\.$LIBEXT[^        ]*\\)\\].*$/\1/"';2,$d'`
10031        if test "x$ac_cv_lib_soname_ncurses" = x; then :
10032   ac_cv_lib_soname_ncurses=`$LDD conftest$ac_exeext | grep "libncurses\\.$LIBEXT" | sed -e "s/^.*\(libncurses\.$LIBEXT[^         ]*\).*$/\1/"';2,$d'`
10033 fi ;;
10034   esac
10035 fi
10036 rm -f core conftest.err conftest.$ac_objext \
10037     conftest$ac_exeext conftest.$ac_ext
10038   LIBS=$ac_check_soname_save_LIBS
10039 fi
10040 if test "x$ac_cv_lib_soname_ncurses" = "x"; then :
10041   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10042 $as_echo "not found" >&6; }
10043
10044 else
10045   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ncurses" >&5
10046 $as_echo "$ac_cv_lib_soname_ncurses" >&6; }
10047
10048 cat >>confdefs.h <<_ACEOF
10049 #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
10050 _ACEOF
10051
10052        CURSESLIBS="-lncurses"
10053 fi
10054 elif test "$ac_cv_header_curses_h" = "yes"
10055 then
10056     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcurses" >&5
10057 $as_echo_n "checking for -lcurses... " >&6; }
10058 if ${ac_cv_lib_soname_curses+:} false; then :
10059   $as_echo_n "(cached) " >&6
10060 else
10061   ac_check_soname_save_LIBS=$LIBS
10062 LIBS="-lcurses  $LIBS"
10063   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10064 /* end confdefs.h.  */
10065
10066 /* Override any GCC internal prototype to avoid an error.
10067    Use char because int might match the return type of a GCC
10068    builtin and then its argument prototype would still apply.  */
10069 #ifdef __cplusplus
10070 extern "C"
10071 #endif
10072 char waddch ();
10073 int
10074 main ()
10075 {
10076 return waddch ();
10077   ;
10078   return 0;
10079 }
10080 _ACEOF
10081 if ac_fn_c_try_link "$LINENO"; then :
10082   case "$LIBEXT" in
10083     dll) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest.exe | grep "curses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10084     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'` ;;
10085     *) ac_cv_lib_soname_curses=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libcurses\\.$LIBEXT" | sed -e "s/^.*\\[\\(libcurses\\.$LIBEXT[^   ]*\\)\\].*$/\1/"';2,$d'`
10086        if test "x$ac_cv_lib_soname_curses" = x; then :
10087   ac_cv_lib_soname_curses=`$LDD conftest$ac_exeext | grep "libcurses\\.$LIBEXT" | sed -e "s/^.*\(libcurses\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'`
10088 fi ;;
10089   esac
10090 fi
10091 rm -f core conftest.err conftest.$ac_objext \
10092     conftest$ac_exeext conftest.$ac_ext
10093   LIBS=$ac_check_soname_save_LIBS
10094 fi
10095 if test "x$ac_cv_lib_soname_curses" = "x"; then :
10096   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10097 $as_echo "not found" >&6; }
10098
10099 else
10100   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_curses" >&5
10101 $as_echo "$ac_cv_lib_soname_curses" >&6; }
10102
10103 cat >>confdefs.h <<_ACEOF
10104 #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
10105 _ACEOF
10106
10107        CURSESLIBS="-lcurses"
10108 fi
10109 fi
10110 ac_save_LIBS="$LIBS"
10111 LIBS="$LIBS $CURSESLIBS"
10112 for ac_func in mousemask
10113 do :
10114   ac_fn_c_check_func "$LINENO" "mousemask" "ac_cv_func_mousemask"
10115 if test "x$ac_cv_func_mousemask" = xyes; then :
10116   cat >>confdefs.h <<_ACEOF
10117 #define HAVE_MOUSEMASK 1
10118 _ACEOF
10119
10120 fi
10121 done
10122
10123 LIBS="$ac_save_LIBS"
10124 if test "x$ac_cv_lib_soname_curses$ac_cv_lib_soname_ncurses" = "x"; then :
10125   case "x$with_curses" in
10126   x)   as_fn_append wine_notices "|lib(n)curses ${notice_platform}development files not found, curses won't be supported." ;;
10127   xno) ;;
10128   *)   as_fn_error $? "lib(n)curses ${notice_platform}development files not found, curses won't be supported.
10129 This is an error since --with-curses was requested." "$LINENO" 5 ;;
10130 esac
10131 fi
10132
10133 if test "x$with_sane" != "xno"
10134 then
10135     ac_save_CPPFLAGS="$CPPFLAGS"
10136     # Extract the first word of "sane-config", so it can be a program name with args.
10137 set dummy sane-config; ac_word=$2
10138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10139 $as_echo_n "checking for $ac_word... " >&6; }
10140 if ${ac_cv_prog_sane_devel+:} false; then :
10141   $as_echo_n "(cached) " >&6
10142 else
10143   if test -n "$sane_devel"; then
10144   ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
10145 else
10146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10147 for as_dir in $PATH
10148 do
10149   IFS=$as_save_IFS
10150   test -z "$as_dir" && as_dir=.
10151     for ac_exec_ext in '' $ac_executable_extensions; do
10152   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10153     ac_cv_prog_sane_devel="sane-config"
10154     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10155     break 2
10156   fi
10157 done
10158   done
10159 IFS=$as_save_IFS
10160
10161   test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
10162 fi
10163 fi
10164 sane_devel=$ac_cv_prog_sane_devel
10165 if test -n "$sane_devel"; then
10166   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sane_devel" >&5
10167 $as_echo "$sane_devel" >&6; }
10168 else
10169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10170 $as_echo "no" >&6; }
10171 fi
10172
10173
10174     if test "$sane_devel" != "no"
10175     then
10176         ac_sane_incl="`$sane_devel --cflags`"
10177         ac_sane_libs="`$sane_devel --ldflags`"
10178         CPPFLAGS="$CPPFLAGS $ac_sane_incl"
10179     fi
10180     ac_fn_c_check_header_mongrel "$LINENO" "sane/sane.h" "ac_cv_header_sane_sane_h" "$ac_includes_default"
10181 if test "x$ac_cv_header_sane_sane_h" = xyes; then :
10182   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lsane" >&5
10183 $as_echo_n "checking for -lsane... " >&6; }
10184 if ${ac_cv_lib_soname_sane+:} false; then :
10185   $as_echo_n "(cached) " >&6
10186 else
10187   ac_check_soname_save_LIBS=$LIBS
10188 LIBS="-lsane $ac_sane_libs $LIBS"
10189   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10190 /* end confdefs.h.  */
10191
10192 /* Override any GCC internal prototype to avoid an error.
10193    Use char because int might match the return type of a GCC
10194    builtin and then its argument prototype would still apply.  */
10195 #ifdef __cplusplus
10196 extern "C"
10197 #endif
10198 char sane_init ();
10199 int
10200 main ()
10201 {
10202 return sane_init ();
10203   ;
10204   return 0;
10205 }
10206 _ACEOF
10207 if ac_fn_c_try_link "$LINENO"; then :
10208   case "$LIBEXT" in
10209     dll) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest.exe | grep "sane" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10210     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'` ;;
10211     *) ac_cv_lib_soname_sane=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libsane\\.$LIBEXT" | sed -e "s/^.*\\[\\(libsane\\.$LIBEXT[^         ]*\\)\\].*$/\1/"';2,$d'`
10212        if test "x$ac_cv_lib_soname_sane" = x; then :
10213   ac_cv_lib_soname_sane=`$LDD conftest$ac_exeext | grep "libsane\\.$LIBEXT" | sed -e "s/^.*\(libsane\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'`
10214 fi ;;
10215   esac
10216 fi
10217 rm -f core conftest.err conftest.$ac_objext \
10218     conftest$ac_exeext conftest.$ac_ext
10219   LIBS=$ac_check_soname_save_LIBS
10220 fi
10221 if test "x$ac_cv_lib_soname_sane" = "x"; then :
10222   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10223 $as_echo "not found" >&6; }
10224
10225 else
10226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_sane" >&5
10227 $as_echo "$ac_cv_lib_soname_sane" >&6; }
10228
10229 cat >>confdefs.h <<_ACEOF
10230 #define SONAME_LIBSANE "$ac_cv_lib_soname_sane"
10231 _ACEOF
10232
10233        SANEINCL="$ac_sane_incl"
10234
10235 fi
10236 fi
10237
10238
10239     CPPFLAGS="$ac_save_CPPFLAGS"
10240 fi
10241 if test "x$ac_cv_lib_soname_sane" = "x"; then :
10242   case "x$with_sane" in
10243   x)   as_fn_append wine_notices "|libsane ${notice_platform}development files not found, scanners won't be supported." ;;
10244   xno) ;;
10245   *)   as_fn_error $? "libsane ${notice_platform}development files not found, scanners won't be supported.
10246 This is an error since --with-sane was requested." "$LINENO" 5 ;;
10247 esac
10248 fi
10249
10250 if test "x$with_v4l" != "xno"
10251 then
10252     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lv4l1" >&5
10253 $as_echo_n "checking for -lv4l1... " >&6; }
10254 if ${ac_cv_lib_soname_v4l1+:} false; then :
10255   $as_echo_n "(cached) " >&6
10256 else
10257   ac_check_soname_save_LIBS=$LIBS
10258 LIBS="-lv4l1  $LIBS"
10259   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10260 /* end confdefs.h.  */
10261
10262 /* Override any GCC internal prototype to avoid an error.
10263    Use char because int might match the return type of a GCC
10264    builtin and then its argument prototype would still apply.  */
10265 #ifdef __cplusplus
10266 extern "C"
10267 #endif
10268 char v4l1_open ();
10269 int
10270 main ()
10271 {
10272 return v4l1_open ();
10273   ;
10274   return 0;
10275 }
10276 _ACEOF
10277 if ac_fn_c_try_link "$LINENO"; then :
10278   case "$LIBEXT" in
10279     dll) ac_cv_lib_soname_v4l1=`$ac_cv_path_LDD conftest.exe | grep "v4l1" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10280     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'` ;;
10281     *) ac_cv_lib_soname_v4l1=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libv4l1\\.$LIBEXT" | sed -e "s/^.*\\[\\(libv4l1\\.$LIBEXT[^         ]*\\)\\].*$/\1/"';2,$d'`
10282        if test "x$ac_cv_lib_soname_v4l1" = x; then :
10283   ac_cv_lib_soname_v4l1=`$LDD conftest$ac_exeext | grep "libv4l1\\.$LIBEXT" | sed -e "s/^.*\(libv4l1\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'`
10284 fi ;;
10285   esac
10286 fi
10287 rm -f core conftest.err conftest.$ac_objext \
10288     conftest$ac_exeext conftest.$ac_ext
10289   LIBS=$ac_check_soname_save_LIBS
10290 fi
10291 if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
10292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10293 $as_echo "not found" >&6; }
10294
10295 else
10296   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_v4l1" >&5
10297 $as_echo "$ac_cv_lib_soname_v4l1" >&6; }
10298
10299 cat >>confdefs.h <<_ACEOF
10300 #define SONAME_LIBV4L1 "$ac_cv_lib_soname_v4l1"
10301 _ACEOF
10302
10303
10304 fi
10305 fi
10306 if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
10307   case "x$with_v4l" in
10308   x)   as_fn_append wine_notices "|libv4l ${notice_platform}development files not found." ;;
10309   xno) ;;
10310   *)   as_fn_error $? "libv4l ${notice_platform}development files not found.
10311 This is an error since --with-v4l was requested." "$LINENO" 5 ;;
10312 esac
10313 fi
10314
10315 if test "x$with_gphoto" != "xno"
10316 then
10317     ac_save_CPPFLAGS="$CPPFLAGS"
10318     # Extract the first word of "gphoto2-config", so it can be a program name with args.
10319 set dummy gphoto2-config; ac_word=$2
10320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10321 $as_echo_n "checking for $ac_word... " >&6; }
10322 if ${ac_cv_prog_gphoto2_devel+:} false; then :
10323   $as_echo_n "(cached) " >&6
10324 else
10325   if test -n "$gphoto2_devel"; then
10326   ac_cv_prog_gphoto2_devel="$gphoto2_devel" # Let the user override the test.
10327 else
10328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10329 for as_dir in $PATH
10330 do
10331   IFS=$as_save_IFS
10332   test -z "$as_dir" && as_dir=.
10333     for ac_exec_ext in '' $ac_executable_extensions; do
10334   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10335     ac_cv_prog_gphoto2_devel="gphoto2-config"
10336     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10337     break 2
10338   fi
10339 done
10340   done
10341 IFS=$as_save_IFS
10342
10343   test -z "$ac_cv_prog_gphoto2_devel" && ac_cv_prog_gphoto2_devel="no"
10344 fi
10345 fi
10346 gphoto2_devel=$ac_cv_prog_gphoto2_devel
10347 if test -n "$gphoto2_devel"; then
10348   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gphoto2_devel" >&5
10349 $as_echo "$gphoto2_devel" >&6; }
10350 else
10351   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10352 $as_echo "no" >&6; }
10353 fi
10354
10355
10356     # Extract the first word of "gphoto2-port-config", so it can be a program name with args.
10357 set dummy gphoto2-port-config; ac_word=$2
10358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10359 $as_echo_n "checking for $ac_word... " >&6; }
10360 if ${ac_cv_prog_gphoto2port_devel+:} false; then :
10361   $as_echo_n "(cached) " >&6
10362 else
10363   if test -n "$gphoto2port_devel"; then
10364   ac_cv_prog_gphoto2port_devel="$gphoto2port_devel" # Let the user override the test.
10365 else
10366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10367 for as_dir in $PATH
10368 do
10369   IFS=$as_save_IFS
10370   test -z "$as_dir" && as_dir=.
10371     for ac_exec_ext in '' $ac_executable_extensions; do
10372   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10373     ac_cv_prog_gphoto2port_devel="gphoto2-port-config"
10374     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10375     break 2
10376   fi
10377 done
10378   done
10379 IFS=$as_save_IFS
10380
10381   test -z "$ac_cv_prog_gphoto2port_devel" && ac_cv_prog_gphoto2port_devel="no"
10382 fi
10383 fi
10384 gphoto2port_devel=$ac_cv_prog_gphoto2port_devel
10385 if test -n "$gphoto2port_devel"; then
10386   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gphoto2port_devel" >&5
10387 $as_echo "$gphoto2port_devel" >&6; }
10388 else
10389   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10390 $as_echo "no" >&6; }
10391 fi
10392
10393
10394     if test "$gphoto2_devel" != "no" -a "$gphoto2port_devel" != "no"
10395     then
10396         ac_gphoto2_incl="`$gphoto2_devel --cflags` `$gphoto2port_devel --cflags`"
10397         ac_gphoto2_libs=""
10398         for i in `$gphoto2_devel --libs` `$gphoto2port_devel --libs`
10399         do
10400             case "$i" in
10401             -L/usr/lib|-L/usr/lib64) ;;
10402             -L*|-l*) ac_gphoto2_libs="$ac_gphoto2_libs $i";;
10403             esac
10404         done
10405         CPPFLAGS="$CPPFLAGS $ac_gphoto2_incl"
10406     fi
10407     ac_gphoto2_libs=${ac_gphoto2_libs:-"-lgphoto2"}
10408     ac_fn_c_check_header_mongrel "$LINENO" "gphoto2-camera.h" "ac_cv_header_gphoto2_camera_h" "$ac_includes_default"
10409 if test "x$ac_cv_header_gphoto2_camera_h" = xyes; then :
10410   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gp_camera_new in -lgphoto2" >&5
10411 $as_echo_n "checking for gp_camera_new in -lgphoto2... " >&6; }
10412 if ${ac_cv_lib_gphoto2_gp_camera_new+:} false; then :
10413   $as_echo_n "(cached) " >&6
10414 else
10415   ac_check_lib_save_LIBS=$LIBS
10416 LIBS="-lgphoto2 $ac_gphoto2_libs $LIBS"
10417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10418 /* end confdefs.h.  */
10419
10420 /* Override any GCC internal prototype to avoid an error.
10421    Use char because int might match the return type of a GCC
10422    builtin and then its argument prototype would still apply.  */
10423 #ifdef __cplusplus
10424 extern "C"
10425 #endif
10426 char gp_camera_new ();
10427 int
10428 main ()
10429 {
10430 return gp_camera_new ();
10431   ;
10432   return 0;
10433 }
10434 _ACEOF
10435 if ac_fn_c_try_link "$LINENO"; then :
10436   ac_cv_lib_gphoto2_gp_camera_new=yes
10437 else
10438   ac_cv_lib_gphoto2_gp_camera_new=no
10439 fi
10440 rm -f core conftest.err conftest.$ac_objext \
10441     conftest$ac_exeext conftest.$ac_ext
10442 LIBS=$ac_check_lib_save_LIBS
10443 fi
10444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gphoto2_gp_camera_new" >&5
10445 $as_echo "$ac_cv_lib_gphoto2_gp_camera_new" >&6; }
10446 if test "x$ac_cv_lib_gphoto2_gp_camera_new" = xyes; then :
10447
10448 $as_echo "#define HAVE_GPHOTO2 1" >>confdefs.h
10449
10450                                    GPHOTO2LIBS="$ac_gphoto2_libs"
10451
10452                                    GPHOTO2INCL="$ac_gphoto2_incl"
10453
10454 fi
10455
10456 fi
10457
10458
10459     CPPFLAGS="$ac_save_CPPFLAGS"
10460 fi
10461 if test "$ac_cv_lib_gphoto2_gp_camera_new" != "yes"; then :
10462   case "x$with_gphoto" in
10463   x)   as_fn_append wine_notices "|libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported." ;;
10464   xno) ;;
10465   *)   as_fn_error $? "libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported.
10466 This is an error since --with-gphoto was requested." "$LINENO" 5 ;;
10467 esac
10468 fi
10469
10470
10471 if test "$ac_cv_header_resolv_h" = "yes"
10472 then
10473     ac_save_LIBS="$LIBS"
10474     for lib in '' -lresolv
10475     do
10476       LIBS="$lib $ac_save_LIBS"
10477       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10478 /* end confdefs.h.  */
10479 #ifdef HAVE_NETINET_IN_H
10480 #include <netinet/in.h>
10481 #endif
10482 #include <resolv.h>
10483 int
10484 main ()
10485 {
10486 res_query("foo",ns_c_in,0,0,0);
10487   ;
10488   return 0;
10489 }
10490 _ACEOF
10491 if ac_fn_c_try_link "$LINENO"; then :
10492
10493 $as_echo "#define HAVE_RESOLV 1" >>confdefs.h
10494
10495          RESOLVLIBS="$lib"
10496
10497 fi
10498 rm -f core conftest.err conftest.$ac_objext \
10499     conftest$ac_exeext conftest.$ac_ext
10500       if test "${RESOLVLIBS+set}" = set; then
10501         break
10502       fi
10503     done
10504     LIBS="$ac_save_LIBS"
10505 fi
10506
10507 LCMSLIBS=""
10508
10509 if test "$ac_cv_header_lcms_h" = "yes" -o "$ac_cv_header_lcms_lcms_h" = "yes"
10510 then
10511     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromFile in -llcms" >&5
10512 $as_echo_n "checking for cmsOpenProfileFromFile in -llcms... " >&6; }
10513 if ${ac_cv_lib_lcms_cmsOpenProfileFromFile+:} false; then :
10514   $as_echo_n "(cached) " >&6
10515 else
10516   ac_check_lib_save_LIBS=$LIBS
10517 LIBS="-llcms  $LIBS"
10518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10519 /* end confdefs.h.  */
10520
10521 /* Override any GCC internal prototype to avoid an error.
10522    Use char because int might match the return type of a GCC
10523    builtin and then its argument prototype would still apply.  */
10524 #ifdef __cplusplus
10525 extern "C"
10526 #endif
10527 char cmsOpenProfileFromFile ();
10528 int
10529 main ()
10530 {
10531 return cmsOpenProfileFromFile ();
10532   ;
10533   return 0;
10534 }
10535 _ACEOF
10536 if ac_fn_c_try_link "$LINENO"; then :
10537   ac_cv_lib_lcms_cmsOpenProfileFromFile=yes
10538 else
10539   ac_cv_lib_lcms_cmsOpenProfileFromFile=no
10540 fi
10541 rm -f core conftest.err conftest.$ac_objext \
10542     conftest$ac_exeext conftest.$ac_ext
10543 LIBS=$ac_check_lib_save_LIBS
10544 fi
10545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsOpenProfileFromFile" >&5
10546 $as_echo "$ac_cv_lib_lcms_cmsOpenProfileFromFile" >&6; }
10547 if test "x$ac_cv_lib_lcms_cmsOpenProfileFromFile" = xyes; then :
10548
10549 $as_echo "#define HAVE_LCMS 1" >>confdefs.h
10550
10551          LCMSLIBS="-llcms"
10552 fi
10553
10554 fi
10555 if test "$ac_cv_lib_lcms_cmsOpenProfileFromFile" != "yes"; then :
10556   case "x$with_cms" in
10557   x)   as_fn_append wine_notices "|liblcms ${notice_platform}development files not found, Color Management won't be supported." ;;
10558   xno) ;;
10559   *)   as_fn_error $? "liblcms ${notice_platform}development files not found, Color Management won't be supported.
10560 This is an error since --with-cms was requested." "$LINENO" 5 ;;
10561 esac
10562 fi
10563
10564 if test "x$with_freetype" != "xno"
10565 then
10566     if test "$PKG_CONFIG" != "false"
10567     then
10568         ac_freetype_incl="`$PKG_CONFIG --cflags freetype2 2>/dev/null`"
10569         ac_freetype_libs="`$PKG_CONFIG --libs freetype2 2>/dev/null`"
10570     else
10571         for ac_prog in freetype-config freetype2-config
10572 do
10573   # Extract the first word of "$ac_prog", so it can be a program name with args.
10574 set dummy $ac_prog; ac_word=$2
10575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10576 $as_echo_n "checking for $ac_word... " >&6; }
10577 if ${ac_cv_prog_ft_devel+:} false; then :
10578   $as_echo_n "(cached) " >&6
10579 else
10580   if test -n "$ft_devel"; then
10581   ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
10582 else
10583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10584 for as_dir in $PATH
10585 do
10586   IFS=$as_save_IFS
10587   test -z "$as_dir" && as_dir=.
10588     for ac_exec_ext in '' $ac_executable_extensions; do
10589   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10590     ac_cv_prog_ft_devel="$ac_prog"
10591     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10592     break 2
10593   fi
10594 done
10595   done
10596 IFS=$as_save_IFS
10597
10598 fi
10599 fi
10600 ft_devel=$ac_cv_prog_ft_devel
10601 if test -n "$ft_devel"; then
10602   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ft_devel" >&5
10603 $as_echo "$ft_devel" >&6; }
10604 else
10605   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10606 $as_echo "no" >&6; }
10607 fi
10608
10609
10610   test -n "$ft_devel" && break
10611 done
10612 test -n "$ft_devel" || ft_devel="no"
10613
10614         if test "$ft_devel" != "no"
10615         then
10616             ac_freetype_incl=`$ft_devel --cflags`
10617             ac_freetype_libs=`$ft_devel --libs`
10618         fi
10619     fi
10620     ac_freetype_libs=${ac_freetype_libs:-"-lfreetype"}
10621     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfreetype" >&5
10622 $as_echo_n "checking for -lfreetype... " >&6; }
10623 if ${ac_cv_lib_soname_freetype+:} false; then :
10624   $as_echo_n "(cached) " >&6
10625 else
10626   ac_check_soname_save_LIBS=$LIBS
10627 LIBS="-lfreetype $ac_freetype_libs $LIBS"
10628   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10629 /* end confdefs.h.  */
10630
10631 /* Override any GCC internal prototype to avoid an error.
10632    Use char because int might match the return type of a GCC
10633    builtin and then its argument prototype would still apply.  */
10634 #ifdef __cplusplus
10635 extern "C"
10636 #endif
10637 char FT_Init_FreeType ();
10638 int
10639 main ()
10640 {
10641 return FT_Init_FreeType ();
10642   ;
10643   return 0;
10644 }
10645 _ACEOF
10646 if ac_fn_c_try_link "$LINENO"; then :
10647   case "$LIBEXT" in
10648     dll) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest.exe | grep "freetype" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10649     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'` ;;
10650     *) ac_cv_lib_soname_freetype=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libfreetype\\.$LIBEXT" | sed -e "s/^.*\\[\\(libfreetype\\.$LIBEXT[^     ]*\\)\\].*$/\1/"';2,$d'`
10651        if test "x$ac_cv_lib_soname_freetype" = x; then :
10652   ac_cv_lib_soname_freetype=`$LDD conftest$ac_exeext | grep "libfreetype\\.$LIBEXT" | sed -e "s/^.*\(libfreetype\.$LIBEXT[^      ]*\).*$/\1/"';2,$d'`
10653 fi ;;
10654   esac
10655 fi
10656 rm -f core conftest.err conftest.$ac_objext \
10657     conftest$ac_exeext conftest.$ac_ext
10658   LIBS=$ac_check_soname_save_LIBS
10659 fi
10660 if test "x$ac_cv_lib_soname_freetype" = "x"; then :
10661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10662 $as_echo "not found" >&6; }
10663        ft_lib=no
10664 else
10665   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_freetype" >&5
10666 $as_echo "$ac_cv_lib_soname_freetype" >&6; }
10667
10668 cat >>confdefs.h <<_ACEOF
10669 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
10670 _ACEOF
10671
10672        ft_lib=yes
10673 fi
10674     if test "$ft_lib" = "yes"
10675     then
10676         ac_save_CPPFLAGS="$CPPFLAGS"
10677         CPPFLAGS="$ac_freetype_incl $CPPFLAGS"
10678         for ac_header in ft2build.h \
10679                          freetype/freetype.h \
10680                          freetype/ftglyph.h \
10681                          freetype/fttypes.h \
10682                          freetype/tttables.h \
10683                          freetype/ftsnames.h \
10684                          freetype/ttnameid.h \
10685                          freetype/ftoutln.h \
10686                          freetype/ftwinfnt.h \
10687                          freetype/ftmodapi.h \
10688                          freetype/ftlcdfil.h
10689 do :
10690   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10691 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_FT2BUILD_H
10692                           # include <ft2build.h>
10693                           #endif
10694 "
10695 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10696   cat >>confdefs.h <<_ACEOF
10697 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10698 _ACEOF
10699
10700 fi
10701
10702 done
10703
10704         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10705 /* end confdefs.h.  */
10706 #include <ft2build.h>
10707                     #include <freetype/fttrigon.h>
10708 _ACEOF
10709 if ac_fn_c_try_cpp "$LINENO"; then :
10710
10711 $as_echo "#define HAVE_FREETYPE_FTTRIGON_H 1" >>confdefs.h
10712
10713                     wine_cv_fttrigon=yes
10714 else
10715   wine_cv_fttrigon=no
10716 fi
10717 rm -f conftest.err conftest.i conftest.$ac_ext
10718         ac_fn_c_check_type "$LINENO" "FT_TrueTypeEngineType" "ac_cv_type_FT_TrueTypeEngineType" "#include <freetype/ftmodapi.h>
10719 "
10720 if test "x$ac_cv_type_FT_TrueTypeEngineType" = xyes; then :
10721
10722 cat >>confdefs.h <<_ACEOF
10723 #define HAVE_FT_TRUETYPEENGINETYPE 1
10724 _ACEOF
10725
10726
10727 fi
10728
10729                 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
10730         then
10731
10732 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
10733
10734             FREETYPELIBS="$ac_freetype_libs"
10735
10736             FREETYPEINCL="$ac_freetype_incl"
10737
10738         fi
10739     fi
10740 fi
10741 if test "x$FREETYPELIBS" = "x"; then :
10742   case "x$with_freetype" in
10743   xno) ;;
10744   *)   as_fn_error $? "FreeType ${notice_platform}development files not found. Fonts will not be built.
10745 Use the --without-freetype option if you really want this." "$LINENO" 5 ;;
10746 esac
10747 fi
10748 test "x$FREETYPELIBS" = "x" && enable_fonts=${enable_fonts:-no}
10749
10750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for parport header/ppdev.h" >&5
10751 $as_echo_n "checking for parport header/ppdev.h... " >&6; }
10752 if ${ac_cv_c_ppdev+:} false; then :
10753   $as_echo_n "(cached) " >&6
10754 else
10755   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10756 /* end confdefs.h.  */
10757 #ifdef HAVE_SYS_IOCTL_H
10758 # include <sys/ioctl.h>
10759 #endif
10760 #include <linux/ppdev.h>
10761 int
10762 main ()
10763 {
10764 ioctl (1,PPCLAIM,0)
10765   ;
10766   return 0;
10767 }
10768 _ACEOF
10769 if ac_fn_c_try_compile "$LINENO"; then :
10770   ac_cv_c_ppdev="yes"
10771 else
10772   ac_cv_c_ppdev="no"
10773 fi
10774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10775 fi
10776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_ppdev" >&5
10777 $as_echo "$ac_cv_c_ppdev" >&6; }
10778 if test "$ac_cv_c_ppdev" = "yes"
10779 then
10780
10781 $as_echo "#define HAVE_PPDEV 1" >>confdefs.h
10782
10783 fi
10784
10785 ac_wine_check_funcs_save_LIBS="$LIBS"
10786 LIBS="$LIBS $LIBPTHREAD"
10787 for ac_func in \
10788         pthread_attr_get_np \
10789         pthread_getattr_np \
10790         pthread_getthreadid_np \
10791         pthread_get_stackaddr_np \
10792         pthread_get_stacksize_np
10793 do :
10794   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10795 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10796 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10797   cat >>confdefs.h <<_ACEOF
10798 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10799 _ACEOF
10800
10801 fi
10802 done
10803
10804 LIBS="$ac_wine_check_funcs_save_LIBS"
10805
10806 if test "$ac_cv_header_zlib_h" = "yes"
10807 then
10808     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
10809 $as_echo_n "checking for inflate in -lz... " >&6; }
10810 if ${ac_cv_lib_z_inflate+:} false; then :
10811   $as_echo_n "(cached) " >&6
10812 else
10813   ac_check_lib_save_LIBS=$LIBS
10814 LIBS="-lz  $LIBS"
10815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10816 /* end confdefs.h.  */
10817
10818 /* Override any GCC internal prototype to avoid an error.
10819    Use char because int might match the return type of a GCC
10820    builtin and then its argument prototype would still apply.  */
10821 #ifdef __cplusplus
10822 extern "C"
10823 #endif
10824 char inflate ();
10825 int
10826 main ()
10827 {
10828 return inflate ();
10829   ;
10830   return 0;
10831 }
10832 _ACEOF
10833 if ac_fn_c_try_link "$LINENO"; then :
10834   ac_cv_lib_z_inflate=yes
10835 else
10836   ac_cv_lib_z_inflate=no
10837 fi
10838 rm -f core conftest.err conftest.$ac_objext \
10839     conftest$ac_exeext conftest.$ac_ext
10840 LIBS=$ac_check_lib_save_LIBS
10841 fi
10842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
10843 $as_echo "$ac_cv_lib_z_inflate" >&6; }
10844 if test "x$ac_cv_lib_z_inflate" = xyes; then :
10845
10846 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
10847
10848                             ZLIB="-lz"
10849
10850 fi
10851
10852 fi
10853 if test "x$ZLIB" = "x"; then :
10854   case "x$with_zlib" in
10855   x)   as_fn_append wine_notices "|libz ${notice_platform}development files not found, data compression won't be supported." ;;
10856   xno) ;;
10857   *)   as_fn_error $? "libz ${notice_platform}development files not found, data compression won't be supported.
10858 This is an error since --with-zlib was requested." "$LINENO" 5 ;;
10859 esac
10860 fi
10861
10862 if test "x$enable_tools" != xno
10863 then
10864     if test "$ac_cv_header_gettext_po_h" = "yes"
10865     then
10866         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for po_message_msgctxt in -lgettextpo" >&5
10867 $as_echo_n "checking for po_message_msgctxt in -lgettextpo... " >&6; }
10868 if ${ac_cv_lib_gettextpo_po_message_msgctxt+:} false; then :
10869   $as_echo_n "(cached) " >&6
10870 else
10871   ac_check_lib_save_LIBS=$LIBS
10872 LIBS="-lgettextpo  $LIBS"
10873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10874 /* end confdefs.h.  */
10875
10876 /* Override any GCC internal prototype to avoid an error.
10877    Use char because int might match the return type of a GCC
10878    builtin and then its argument prototype would still apply.  */
10879 #ifdef __cplusplus
10880 extern "C"
10881 #endif
10882 char po_message_msgctxt ();
10883 int
10884 main ()
10885 {
10886 return po_message_msgctxt ();
10887   ;
10888   return 0;
10889 }
10890 _ACEOF
10891 if ac_fn_c_try_link "$LINENO"; then :
10892   ac_cv_lib_gettextpo_po_message_msgctxt=yes
10893 else
10894   ac_cv_lib_gettextpo_po_message_msgctxt=no
10895 fi
10896 rm -f core conftest.err conftest.$ac_objext \
10897     conftest$ac_exeext conftest.$ac_ext
10898 LIBS=$ac_check_lib_save_LIBS
10899 fi
10900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gettextpo_po_message_msgctxt" >&5
10901 $as_echo "$ac_cv_lib_gettextpo_po_message_msgctxt" >&6; }
10902 if test "x$ac_cv_lib_gettextpo_po_message_msgctxt" = xyes; then :
10903
10904 $as_echo "#define HAVE_LIBGETTEXTPO 1" >>confdefs.h
10905
10906                       LIBGETTEXTPO="-lgettextpo"
10907
10908 fi
10909
10910     fi
10911     test "x$with_gettextpo" != xyes || if test "x$LIBGETTEXTPO" = "x"; then :
10912   case "x$with_gettextpo" in
10913   x)   as_fn_append wine_notices "|GetText ${notice_platform}development files not found (or too old), po files can't be rebuilt." ;;
10914   xno) ;;
10915   *)   as_fn_error $? "GetText ${notice_platform}development files not found (or too old), po files can't be rebuilt.
10916 This is an error since --with-gettextpo was requested." "$LINENO" 5 ;;
10917 esac
10918 fi
10919 fi
10920
10921 if test "x$with_gstreamer" != "xno"
10922 then
10923     ac_save_CPPFLAGS="$CPPFLAGS"
10924     if test "$PKG_CONFIG" != "false"; then
10925         ac_gst_incl=""
10926         for i in `$PKG_CONFIG --cflags gstreamer-app-0.10 2>/dev/null`
10927         do
10928             case "$i" in
10929                 -I*) ac_gst_incl="$ac_gst_incl $i";;
10930             esac
10931         done
10932         ac_gst_libs="`$PKG_CONFIG --libs gstreamer-app-0.10 2>/dev/null`"
10933         CPPFLAGS="$CPPFLAGS $ac_gst_incl"
10934         ac_fn_c_check_header_mongrel "$LINENO" "gst/gstpad.h" "ac_cv_header_gst_gstpad_h" "$ac_includes_default"
10935 if test "x$ac_cv_header_gst_gstpad_h" = xyes; then :
10936   ac_fn_c_check_header_mongrel "$LINENO" "gst/app/gstappsink.h" "ac_cv_header_gst_app_gstappsink_h" "$ac_includes_default"
10937 if test "x$ac_cv_header_gst_app_gstappsink_h" = xyes; then :
10938   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gint64 defined by gst/app/gstappsink.h is indeed 64-bit" >&5
10939 $as_echo_n "checking whether gint64 defined by gst/app/gstappsink.h is indeed 64-bit... " >&6; }
10940               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10941 /* end confdefs.h.  */
10942 #include <gst/app/gstappsink.h>
10943 int
10944 main ()
10945 {
10946 static int a[sizeof(gint64) > 4 ? 1 : -1]; if (a[0]) return 0;
10947   ;
10948   return 0;
10949 }
10950 _ACEOF
10951 if ac_fn_c_try_compile "$LINENO"; then :
10952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10953 $as_echo "yes" >&6; }
10954                  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_pad_get_caps_reffed in -lgstreamer-0.10" >&5
10955 $as_echo_n "checking for gst_pad_get_caps_reffed in -lgstreamer-0.10... " >&6; }
10956 if ${ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed+:} false; then :
10957   $as_echo_n "(cached) " >&6
10958 else
10959   ac_check_lib_save_LIBS=$LIBS
10960 LIBS="-lgstreamer-0.10  $LIBS"
10961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10962 /* end confdefs.h.  */
10963
10964 /* Override any GCC internal prototype to avoid an error.
10965    Use char because int might match the return type of a GCC
10966    builtin and then its argument prototype would still apply.  */
10967 #ifdef __cplusplus
10968 extern "C"
10969 #endif
10970 char gst_pad_get_caps_reffed ();
10971 int
10972 main ()
10973 {
10974 return gst_pad_get_caps_reffed ();
10975   ;
10976   return 0;
10977 }
10978 _ACEOF
10979 if ac_fn_c_try_link "$LINENO"; then :
10980   ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=yes
10981 else
10982   ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=no
10983 fi
10984 rm -f core conftest.err conftest.$ac_objext \
10985     conftest$ac_exeext conftest.$ac_ext
10986 LIBS=$ac_check_lib_save_LIBS
10987 fi
10988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&5
10989 $as_echo "$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&6; }
10990 if test "x$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" = xyes; then :
10991   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_app_buffer_new in -lgstapp-0.10" >&5
10992 $as_echo_n "checking for gst_app_buffer_new in -lgstapp-0.10... " >&6; }
10993 if ${ac_cv_lib_gstapp_0_10_gst_app_buffer_new+:} false; then :
10994   $as_echo_n "(cached) " >&6
10995 else
10996   ac_check_lib_save_LIBS=$LIBS
10997 LIBS="-lgstapp-0.10 $ac_gst_libs $LIBS"
10998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10999 /* end confdefs.h.  */
11000
11001 /* Override any GCC internal prototype to avoid an error.
11002    Use char because int might match the return type of a GCC
11003    builtin and then its argument prototype would still apply.  */
11004 #ifdef __cplusplus
11005 extern "C"
11006 #endif
11007 char gst_app_buffer_new ();
11008 int
11009 main ()
11010 {
11011 return gst_app_buffer_new ();
11012   ;
11013   return 0;
11014 }
11015 _ACEOF
11016 if ac_fn_c_try_link "$LINENO"; then :
11017   ac_cv_lib_gstapp_0_10_gst_app_buffer_new=yes
11018 else
11019   ac_cv_lib_gstapp_0_10_gst_app_buffer_new=no
11020 fi
11021 rm -f core conftest.err conftest.$ac_objext \
11022     conftest$ac_exeext conftest.$ac_ext
11023 LIBS=$ac_check_lib_save_LIBS
11024 fi
11025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&5
11026 $as_echo "$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&6; }
11027 if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = xyes; then :
11028   GSTREAMER_LIBS="$ac_gst_libs"
11029
11030                        GSTREAMER_INCL="$ac_gst_incl"
11031
11032 fi
11033
11034 fi
11035
11036 else
11037   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11038 $as_echo "no" >&6; }
11039 fi
11040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11041 fi
11042
11043
11044 fi
11045
11046
11047     fi
11048     CPPFLAGS="$ac_save_CPPFLAGS"
11049 fi
11050 if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" != xyes -a "x$ac_cv_header_QuickTime_ImageCompression_h" != xyes; then :
11051   case "x$with_gstreamer" in
11052   x)   as_fn_append wine_notices "|gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled" ;;
11053   xno) ;;
11054   *)   as_fn_error $? "gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled
11055 This is an error since --with-gstreamer was requested." "$LINENO" 5 ;;
11056 esac
11057 fi
11058 test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = xyes || enable_winegstreamer=${enable_winegstreamer:-no}
11059
11060 ALSALIBS=""
11061
11062 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
11063 then
11064     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_hw_params_get_access_mask in -lasound" >&5
11065 $as_echo_n "checking for snd_pcm_hw_params_get_access_mask in -lasound... " >&6; }
11066 if ${ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask+:} false; then :
11067   $as_echo_n "(cached) " >&6
11068 else
11069   ac_check_lib_save_LIBS=$LIBS
11070 LIBS="-lasound  $LIBS"
11071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11072 /* end confdefs.h.  */
11073
11074 /* Override any GCC internal prototype to avoid an error.
11075    Use char because int might match the return type of a GCC
11076    builtin and then its argument prototype would still apply.  */
11077 #ifdef __cplusplus
11078 extern "C"
11079 #endif
11080 char snd_pcm_hw_params_get_access_mask ();
11081 int
11082 main ()
11083 {
11084 return snd_pcm_hw_params_get_access_mask ();
11085   ;
11086   return 0;
11087 }
11088 _ACEOF
11089 if ac_fn_c_try_link "$LINENO"; then :
11090   ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=yes
11091 else
11092   ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=no
11093 fi
11094 rm -f core conftest.err conftest.$ac_objext \
11095     conftest$ac_exeext conftest.$ac_ext
11096 LIBS=$ac_check_lib_save_LIBS
11097 fi
11098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&5
11099 $as_echo "$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&6; }
11100 if test "x$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" = xyes; then :
11101   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11102 /* end confdefs.h.  */
11103 #ifdef HAVE_ALSA_ASOUNDLIB_H
11104 #include <alsa/asoundlib.h>
11105 #elif defined(HAVE_SYS_ASOUNDLIB_H)
11106 #include <sys/asoundlib.h>
11107 #endif
11108 int
11109 main ()
11110 {
11111 snd_pcm_hw_params_get_access_mask(NULL, NULL)
11112   ;
11113   return 0;
11114 }
11115 _ACEOF
11116 if ac_fn_c_try_compile "$LINENO"; then :
11117   ALSALIBS="-lasound"
11118 fi
11119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11120 fi
11121
11122 fi
11123
11124 if test "x$with_oss" != xno
11125 then
11126     ac_save_CPPFLAGS="$CPPFLAGS"
11127     if test -f /etc/oss.conf
11128     then
11129         . /etc/oss.conf
11130     fi
11131     ac_oss_incl="-I${OSSLIBDIR:-/usr/lib/oss}/include"
11132     CPPFLAGS="$CPPFLAGS $ac_oss_incl"
11133     ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
11134 if test "x$ac_cv_header_sys_soundcard_h" = xyes; then :
11135   ac_fn_c_check_member "$LINENO" "oss_sysinfo" "numaudioengines" "ac_cv_member_oss_sysinfo_numaudioengines" "#include <sys/soundcard.h>
11136 "
11137 if test "x$ac_cv_member_oss_sysinfo_numaudioengines" = xyes; then :
11138
11139 cat >>confdefs.h <<_ACEOF
11140 #define HAVE_OSS_SYSINFO_NUMAUDIOENGINES 1
11141 _ACEOF
11142
11143 OSS4INCL="$ac_oss_incl"
11144
11145 fi
11146
11147 fi
11148
11149
11150     CPPFLAGS="$ac_save_CPPFLAGS"
11151     if test "x$ac_cv_member_oss_sysinfo_numaudioengines" != xyes
11152     then
11153         as_fn_append wine_notices "|OSS sound system found but too old (OSSv4 needed), OSS won't be supported."
11154     fi
11155 fi
11156
11157
11158 if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes"
11159 then
11160     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcapi20" >&5
11161 $as_echo_n "checking for -lcapi20... " >&6; }
11162 if ${ac_cv_lib_soname_capi20+:} false; then :
11163   $as_echo_n "(cached) " >&6
11164 else
11165   ac_check_soname_save_LIBS=$LIBS
11166 LIBS="-lcapi20  $LIBS"
11167   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11168 /* end confdefs.h.  */
11169
11170 /* Override any GCC internal prototype to avoid an error.
11171    Use char because int might match the return type of a GCC
11172    builtin and then its argument prototype would still apply.  */
11173 #ifdef __cplusplus
11174 extern "C"
11175 #endif
11176 char capi20_register ();
11177 int
11178 main ()
11179 {
11180 return capi20_register ();
11181   ;
11182   return 0;
11183 }
11184 _ACEOF
11185 if ac_fn_c_try_link "$LINENO"; then :
11186   case "$LIBEXT" in
11187     dll) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest.exe | grep "capi20" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11188     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'` ;;
11189     *) ac_cv_lib_soname_capi20=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libcapi20\\.$LIBEXT" | sed -e "s/^.*\\[\\(libcapi20\\.$LIBEXT[^   ]*\\)\\].*$/\1/"';2,$d'`
11190        if test "x$ac_cv_lib_soname_capi20" = x; then :
11191   ac_cv_lib_soname_capi20=`$LDD conftest$ac_exeext | grep "libcapi20\\.$LIBEXT" | sed -e "s/^.*\(libcapi20\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'`
11192 fi ;;
11193   esac
11194 fi
11195 rm -f core conftest.err conftest.$ac_objext \
11196     conftest$ac_exeext conftest.$ac_ext
11197   LIBS=$ac_check_soname_save_LIBS
11198 fi
11199 if test "x$ac_cv_lib_soname_capi20" = "x"; then :
11200   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11201 $as_echo "not found" >&6; }
11202
11203 else
11204   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_capi20" >&5
11205 $as_echo "$ac_cv_lib_soname_capi20" >&6; }
11206
11207 cat >>confdefs.h <<_ACEOF
11208 #define SONAME_LIBCAPI20 "$ac_cv_lib_soname_capi20"
11209 _ACEOF
11210
11211
11212 fi
11213 fi
11214 if test "x$ac_cv_lib_soname_capi20" = "x"; then :
11215   case "x$with_capi" in
11216   x)   as_fn_append wine_notices "|libcapi20 ${notice_platform}development files not found, ISDN won't be supported." ;;
11217   xno) ;;
11218   *)   as_fn_error $? "libcapi20 ${notice_platform}development files not found, ISDN won't be supported.
11219 This is an error since --with-capi was requested." "$LINENO" 5 ;;
11220 esac
11221 fi
11222
11223 CUPSINCL=""
11224
11225 if test "x$with_cups" != "xno"
11226 then
11227     ac_save_CPPFLAGS="$CPPFLAGS"
11228     ac_cups_cflags=`cups-config --cflags 2>/dev/null`
11229     ac_cups_libs=`cups-config --ldflags 2>/dev/null`
11230     CPPFLAGS="$CPPFLAGS $ac_cups_cflags"
11231     for ac_header in cups/cups.h
11232 do :
11233   ac_fn_c_check_header_mongrel "$LINENO" "cups/cups.h" "ac_cv_header_cups_cups_h" "$ac_includes_default"
11234 if test "x$ac_cv_header_cups_cups_h" = xyes; then :
11235   cat >>confdefs.h <<_ACEOF
11236 #define HAVE_CUPS_CUPS_H 1
11237 _ACEOF
11238  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcups" >&5
11239 $as_echo_n "checking for -lcups... " >&6; }
11240 if ${ac_cv_lib_soname_cups+:} false; then :
11241   $as_echo_n "(cached) " >&6
11242 else
11243   ac_check_soname_save_LIBS=$LIBS
11244 LIBS="-lcups $ac_cups_libs $LIBS"
11245   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11246 /* end confdefs.h.  */
11247
11248 /* Override any GCC internal prototype to avoid an error.
11249    Use char because int might match the return type of a GCC
11250    builtin and then its argument prototype would still apply.  */
11251 #ifdef __cplusplus
11252 extern "C"
11253 #endif
11254 char cupsGetDefault ();
11255 int
11256 main ()
11257 {
11258 return cupsGetDefault ();
11259   ;
11260   return 0;
11261 }
11262 _ACEOF
11263 if ac_fn_c_try_link "$LINENO"; then :
11264   case "$LIBEXT" in
11265     dll) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest.exe | grep "cups" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11266     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'` ;;
11267     *) ac_cv_lib_soname_cups=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libcups\\.$LIBEXT" | sed -e "s/^.*\\[\\(libcups\\.$LIBEXT[^         ]*\\)\\].*$/\1/"';2,$d'`
11268        if test "x$ac_cv_lib_soname_cups" = x; then :
11269   ac_cv_lib_soname_cups=`$LDD conftest$ac_exeext | grep "libcups\\.$LIBEXT" | sed -e "s/^.*\(libcups\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'`
11270 fi ;;
11271   esac
11272 fi
11273 rm -f core conftest.err conftest.$ac_objext \
11274     conftest$ac_exeext conftest.$ac_ext
11275   LIBS=$ac_check_soname_save_LIBS
11276 fi
11277 if test "x$ac_cv_lib_soname_cups" = "x"; then :
11278   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11279 $as_echo "not found" >&6; }
11280
11281 else
11282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_cups" >&5
11283 $as_echo "$ac_cv_lib_soname_cups" >&6; }
11284
11285 cat >>confdefs.h <<_ACEOF
11286 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
11287 _ACEOF
11288
11289        CUPSINCL="$ac_cups_cflags"
11290 fi
11291 fi
11292
11293 done
11294
11295     CPPFLAGS="$ac_save_CPPFLAGS"
11296 fi
11297 if test "x$ac_cv_lib_soname_cups" = "x"; then :
11298   case "x$with_cups" in
11299   x)   as_fn_append wine_notices "|libcups ${notice_platform}development files not found, CUPS won't be supported." ;;
11300   xno) ;;
11301   *)   as_fn_error $? "libcups ${notice_platform}development files not found, CUPS won't be supported.
11302 This is an error since --with-cups was requested." "$LINENO" 5 ;;
11303 esac
11304 fi
11305
11306 if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
11307 then
11308     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
11309 $as_echo_n "checking for -lfontconfig... " >&6; }
11310 if ${ac_cv_lib_soname_fontconfig+:} false; then :
11311   $as_echo_n "(cached) " >&6
11312 else
11313   ac_check_soname_save_LIBS=$LIBS
11314 LIBS="-lfontconfig  $LIBS"
11315   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11316 /* end confdefs.h.  */
11317
11318 /* Override any GCC internal prototype to avoid an error.
11319    Use char because int might match the return type of a GCC
11320    builtin and then its argument prototype would still apply.  */
11321 #ifdef __cplusplus
11322 extern "C"
11323 #endif
11324 char FcInit ();
11325 int
11326 main ()
11327 {
11328 return FcInit ();
11329   ;
11330   return 0;
11331 }
11332 _ACEOF
11333 if ac_fn_c_try_link "$LINENO"; then :
11334   case "$LIBEXT" in
11335     dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11336     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'` ;;
11337     *) ac_cv_lib_soname_fontconfig=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libfontconfig\\.$LIBEXT" | sed -e "s/^.*\\[\\(libfontconfig\\.$LIBEXT[^       ]*\\)\\].*$/\1/"';2,$d'`
11338        if test "x$ac_cv_lib_soname_fontconfig" = x; then :
11339   ac_cv_lib_soname_fontconfig=`$LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'`
11340 fi ;;
11341   esac
11342 fi
11343 rm -f core conftest.err conftest.$ac_objext \
11344     conftest$ac_exeext conftest.$ac_ext
11345   LIBS=$ac_check_soname_save_LIBS
11346 fi
11347 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11348   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11349 $as_echo "not found" >&6; }
11350
11351 else
11352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
11353 $as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
11354
11355 cat >>confdefs.h <<_ACEOF
11356 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
11357 _ACEOF
11358
11359
11360 fi
11361 elif test -n "$X_CFLAGS" -a "x$with_fontconfig" != "xno"
11362 then
11363         ac_save_CPPFLAGS="$CPPFLAGS"
11364     CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11365     $as_unset ac_cv_header_fontconfig_fontconfig_h
11366     for ac_header in fontconfig/fontconfig.h
11367 do :
11368   ac_fn_c_check_header_mongrel "$LINENO" "fontconfig/fontconfig.h" "ac_cv_header_fontconfig_fontconfig_h" "$ac_includes_default"
11369 if test "x$ac_cv_header_fontconfig_fontconfig_h" = xyes; then :
11370   cat >>confdefs.h <<_ACEOF
11371 #define HAVE_FONTCONFIG_FONTCONFIG_H 1
11372 _ACEOF
11373
11374 fi
11375
11376 done
11377
11378     CPPFLAGS="$ac_save_CPPFLAGS"
11379     if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
11380     then
11381         FONTCONFIGINCL="$X_CFLAGS"
11382
11383         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
11384 $as_echo_n "checking for -lfontconfig... " >&6; }
11385 if ${ac_cv_lib_soname_fontconfig+:} false; then :
11386   $as_echo_n "(cached) " >&6
11387 else
11388   ac_check_soname_save_LIBS=$LIBS
11389 LIBS="-lfontconfig $X_LIBS $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 FcInit ();
11400 int
11401 main ()
11402 {
11403 return FcInit ();
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_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11411     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'` ;;
11412     *) ac_cv_lib_soname_fontconfig=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libfontconfig\\.$LIBEXT" | sed -e "s/^.*\\[\\(libfontconfig\\.$LIBEXT[^       ]*\\)\\].*$/\1/"';2,$d'`
11413        if test "x$ac_cv_lib_soname_fontconfig" = x; then :
11414   ac_cv_lib_soname_fontconfig=`$LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'`
11415 fi ;;
11416   esac
11417 fi
11418 rm -f core conftest.err conftest.$ac_objext \
11419     conftest$ac_exeext conftest.$ac_ext
11420   LIBS=$ac_check_soname_save_LIBS
11421 fi
11422 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11424 $as_echo "not found" >&6; }
11425
11426 else
11427   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
11428 $as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
11429
11430 cat >>confdefs.h <<_ACEOF
11431 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
11432 _ACEOF
11433
11434
11435 fi
11436     fi
11437 fi
11438 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11439   case "x$with_fontconfig" in
11440   x)   as_fn_append wine_notices "|fontconfig ${notice_platform}development files not found, fontconfig won't be supported." ;;
11441   xno) ;;
11442   *)   as_fn_error $? "fontconfig ${notice_platform}development files not found, fontconfig won't be supported.
11443 This is an error since --with-fontconfig was requested." "$LINENO" 5 ;;
11444 esac
11445 fi
11446
11447 if test "$ac_cv_header_openssl_err_h" = "yes" -a "$ac_cv_header_openssl_ssl_h" = "yes"
11448 then
11449     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lssl" >&5
11450 $as_echo_n "checking for -lssl... " >&6; }
11451 if ${ac_cv_lib_soname_ssl+:} false; then :
11452   $as_echo_n "(cached) " >&6
11453 else
11454   ac_check_soname_save_LIBS=$LIBS
11455 LIBS="-lssl  $LIBS"
11456   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11457 /* end confdefs.h.  */
11458
11459 /* Override any GCC internal prototype to avoid an error.
11460    Use char because int might match the return type of a GCC
11461    builtin and then its argument prototype would still apply.  */
11462 #ifdef __cplusplus
11463 extern "C"
11464 #endif
11465 char SSL_library_init ();
11466 int
11467 main ()
11468 {
11469 return SSL_library_init ();
11470   ;
11471   return 0;
11472 }
11473 _ACEOF
11474 if ac_fn_c_try_link "$LINENO"; then :
11475   case "$LIBEXT" in
11476     dll) ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest.exe | grep "ssl" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11477     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'` ;;
11478     *) ac_cv_lib_soname_ssl=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libssl\\.$LIBEXT" | sed -e "s/^.*\\[\\(libssl\\.$LIBEXT[^    ]*\\)\\].*$/\1/"';2,$d'`
11479        if test "x$ac_cv_lib_soname_ssl" = x; then :
11480   ac_cv_lib_soname_ssl=`$LDD conftest$ac_exeext | grep "libssl\\.$LIBEXT" | sed -e "s/^.*\(libssl\.$LIBEXT[^     ]*\).*$/\1/"';2,$d'`
11481 fi ;;
11482   esac
11483 fi
11484 rm -f core conftest.err conftest.$ac_objext \
11485     conftest$ac_exeext conftest.$ac_ext
11486   LIBS=$ac_check_soname_save_LIBS
11487 fi
11488 if test "x$ac_cv_lib_soname_ssl" = "x"; then :
11489   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11490 $as_echo "not found" >&6; }
11491
11492 else
11493   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ssl" >&5
11494 $as_echo "$ac_cv_lib_soname_ssl" >&6; }
11495
11496 cat >>confdefs.h <<_ACEOF
11497 #define SONAME_LIBSSL "$ac_cv_lib_soname_ssl"
11498 _ACEOF
11499
11500
11501 fi
11502     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcrypto" >&5
11503 $as_echo_n "checking for -lcrypto... " >&6; }
11504 if ${ac_cv_lib_soname_crypto+:} false; then :
11505   $as_echo_n "(cached) " >&6
11506 else
11507   ac_check_soname_save_LIBS=$LIBS
11508 LIBS="-lcrypto  $LIBS"
11509   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11510 /* end confdefs.h.  */
11511
11512 /* Override any GCC internal prototype to avoid an error.
11513    Use char because int might match the return type of a GCC
11514    builtin and then its argument prototype would still apply.  */
11515 #ifdef __cplusplus
11516 extern "C"
11517 #endif
11518 char BIO_new_socket ();
11519 int
11520 main ()
11521 {
11522 return BIO_new_socket ();
11523   ;
11524   return 0;
11525 }
11526 _ACEOF
11527 if ac_fn_c_try_link "$LINENO"; then :
11528   case "$LIBEXT" in
11529     dll) ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest.exe | grep "crypto" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11530     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'` ;;
11531     *) ac_cv_lib_soname_crypto=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libcrypto\\.$LIBEXT" | sed -e "s/^.*\\[\\(libcrypto\\.$LIBEXT[^   ]*\\)\\].*$/\1/"';2,$d'`
11532        if test "x$ac_cv_lib_soname_crypto" = x; then :
11533   ac_cv_lib_soname_crypto=`$LDD conftest$ac_exeext | grep "libcrypto\\.$LIBEXT" | sed -e "s/^.*\(libcrypto\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'`
11534 fi ;;
11535   esac
11536 fi
11537 rm -f core conftest.err conftest.$ac_objext \
11538     conftest$ac_exeext conftest.$ac_ext
11539   LIBS=$ac_check_soname_save_LIBS
11540 fi
11541 if test "x$ac_cv_lib_soname_crypto" = "x"; then :
11542   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11543 $as_echo "not found" >&6; }
11544
11545 else
11546   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_crypto" >&5
11547 $as_echo "$ac_cv_lib_soname_crypto" >&6; }
11548
11549 cat >>confdefs.h <<_ACEOF
11550 #define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto"
11551 _ACEOF
11552
11553
11554 fi
11555 fi
11556 if test "x$ac_cv_lib_soname_ssl" = "x" -o "x$ac_cv_lib_soname_crypto" = "x"; then :
11557   case "x$with_openssl" in
11558   x)   as_fn_append wine_warnings "|OpenSSL ${notice_platform}development files not found, SSL won't be supported." ;;
11559   xno) ;;
11560   *)   as_fn_error $? "OpenSSL ${notice_platform}development files not found, SSL won't be supported.
11561 This is an error since --with-openssl was requested." "$LINENO" 5 ;;
11562 esac
11563 fi
11564
11565 if test "$ac_cv_header_gsm_h" = "yes" -o "$ac_cv_header_gsm_gsm_h" = "yes"
11566 then
11567     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgsm" >&5
11568 $as_echo_n "checking for -lgsm... " >&6; }
11569 if ${ac_cv_lib_soname_gsm+:} false; then :
11570   $as_echo_n "(cached) " >&6
11571 else
11572   ac_check_soname_save_LIBS=$LIBS
11573 LIBS="-lgsm  $LIBS"
11574   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11575 /* end confdefs.h.  */
11576
11577 /* Override any GCC internal prototype to avoid an error.
11578    Use char because int might match the return type of a GCC
11579    builtin and then its argument prototype would still apply.  */
11580 #ifdef __cplusplus
11581 extern "C"
11582 #endif
11583 char gsm_create ();
11584 int
11585 main ()
11586 {
11587 return gsm_create ();
11588   ;
11589   return 0;
11590 }
11591 _ACEOF
11592 if ac_fn_c_try_link "$LINENO"; then :
11593   case "$LIBEXT" in
11594     dll) ac_cv_lib_soname_gsm=`$ac_cv_path_LDD conftest.exe | grep "gsm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11595     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'` ;;
11596     *) ac_cv_lib_soname_gsm=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libgsm\\.$LIBEXT" | sed -e "s/^.*\\[\\(libgsm\\.$LIBEXT[^    ]*\\)\\].*$/\1/"';2,$d'`
11597        if test "x$ac_cv_lib_soname_gsm" = x; then :
11598   ac_cv_lib_soname_gsm=`$LDD conftest$ac_exeext | grep "libgsm\\.$LIBEXT" | sed -e "s/^.*\(libgsm\.$LIBEXT[^     ]*\).*$/\1/"';2,$d'`
11599 fi ;;
11600   esac
11601 fi
11602 rm -f core conftest.err conftest.$ac_objext \
11603     conftest$ac_exeext conftest.$ac_ext
11604   LIBS=$ac_check_soname_save_LIBS
11605 fi
11606 if test "x$ac_cv_lib_soname_gsm" = "x"; then :
11607   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11608 $as_echo "not found" >&6; }
11609
11610 else
11611   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gsm" >&5
11612 $as_echo "$ac_cv_lib_soname_gsm" >&6; }
11613
11614 cat >>confdefs.h <<_ACEOF
11615 #define SONAME_LIBGSM "$ac_cv_lib_soname_gsm"
11616 _ACEOF
11617
11618
11619 fi
11620 fi
11621 if test "x$ac_cv_lib_soname_gsm" = "x"; then :
11622   case "x$with_gsm" in
11623   x)   as_fn_append wine_notices "|libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported." ;;
11624   xno) ;;
11625   *)   as_fn_error $? "libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported.
11626 This is an error since --with-gsm was requested." "$LINENO" 5 ;;
11627 esac
11628 fi
11629
11630 if test "$ac_cv_header_jpeglib_h" = "yes"
11631 then
11632     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ljpeg" >&5
11633 $as_echo_n "checking for -ljpeg... " >&6; }
11634 if ${ac_cv_lib_soname_jpeg+:} false; then :
11635   $as_echo_n "(cached) " >&6
11636 else
11637   ac_check_soname_save_LIBS=$LIBS
11638 LIBS="-ljpeg  $LIBS"
11639   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11640 /* end confdefs.h.  */
11641
11642 /* Override any GCC internal prototype to avoid an error.
11643    Use char because int might match the return type of a GCC
11644    builtin and then its argument prototype would still apply.  */
11645 #ifdef __cplusplus
11646 extern "C"
11647 #endif
11648 char jpeg_start_decompress ();
11649 int
11650 main ()
11651 {
11652 return jpeg_start_decompress ();
11653   ;
11654   return 0;
11655 }
11656 _ACEOF
11657 if ac_fn_c_try_link "$LINENO"; then :
11658   case "$LIBEXT" in
11659     dll) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest.exe | grep "jpeg" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11660     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'` ;;
11661     *) ac_cv_lib_soname_jpeg=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libjpeg\\.$LIBEXT" | sed -e "s/^.*\\[\\(libjpeg\\.$LIBEXT[^         ]*\\)\\].*$/\1/"';2,$d'`
11662        if test "x$ac_cv_lib_soname_jpeg" = x; then :
11663   ac_cv_lib_soname_jpeg=`$LDD conftest$ac_exeext | grep "libjpeg\\.$LIBEXT" | sed -e "s/^.*\(libjpeg\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'`
11664 fi ;;
11665   esac
11666 fi
11667 rm -f core conftest.err conftest.$ac_objext \
11668     conftest$ac_exeext conftest.$ac_ext
11669   LIBS=$ac_check_soname_save_LIBS
11670 fi
11671 if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
11672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11673 $as_echo "not found" >&6; }
11674
11675 else
11676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_jpeg" >&5
11677 $as_echo "$ac_cv_lib_soname_jpeg" >&6; }
11678
11679 cat >>confdefs.h <<_ACEOF
11680 #define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg"
11681 _ACEOF
11682
11683
11684 fi
11685 fi
11686 if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
11687   case "x$with_jpeg" in
11688   x)   as_fn_append wine_warnings "|libjpeg ${notice_platform}development files not found, JPEG won't be supported." ;;
11689   xno) ;;
11690   *)   as_fn_error $? "libjpeg ${notice_platform}development files not found, JPEG won't be supported.
11691 This is an error since --with-jpeg was requested." "$LINENO" 5 ;;
11692 esac
11693 fi
11694
11695 if test "$ac_cv_header_png_h" = "yes"
11696 then
11697     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
11698 $as_echo_n "checking for -lpng... " >&6; }
11699 if ${ac_cv_lib_soname_png+:} false; then :
11700   $as_echo_n "(cached) " >&6
11701 else
11702   ac_check_soname_save_LIBS=$LIBS
11703 LIBS="-lpng -lm -lz $LIBS"
11704   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11705 /* end confdefs.h.  */
11706
11707 /* Override any GCC internal prototype to avoid an error.
11708    Use char because int might match the return type of a GCC
11709    builtin and then its argument prototype would still apply.  */
11710 #ifdef __cplusplus
11711 extern "C"
11712 #endif
11713 char png_create_read_struct ();
11714 int
11715 main ()
11716 {
11717 return png_create_read_struct ();
11718   ;
11719   return 0;
11720 }
11721 _ACEOF
11722 if ac_fn_c_try_link "$LINENO"; then :
11723   case "$LIBEXT" in
11724     dll) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest.exe | grep "png" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11725     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'` ;;
11726     *) ac_cv_lib_soname_png=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libpng[0-9]*\\.$LIBEXT" | sed -e "s/^.*\\[\\(libpng[0-9]*\\.$LIBEXT[^        ]*\\)\\].*$/\1/"';2,$d'`
11727        if test "x$ac_cv_lib_soname_png" = x; then :
11728   ac_cv_lib_soname_png=`$LDD conftest$ac_exeext | grep "libpng[0-9]*\\.$LIBEXT" | sed -e "s/^.*\(libpng[0-9]*\.$LIBEXT[^         ]*\).*$/\1/"';2,$d'`
11729 fi ;;
11730   esac
11731 fi
11732 rm -f core conftest.err conftest.$ac_objext \
11733     conftest$ac_exeext conftest.$ac_ext
11734   LIBS=$ac_check_soname_save_LIBS
11735 fi
11736 if test "x$ac_cv_lib_soname_png" = "x"; then :
11737   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11738 $as_echo "not found" >&6; }
11739
11740 else
11741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
11742 $as_echo "$ac_cv_lib_soname_png" >&6; }
11743
11744 cat >>confdefs.h <<_ACEOF
11745 #define SONAME_LIBPNG "$ac_cv_lib_soname_png"
11746 _ACEOF
11747
11748
11749 fi
11750     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5
11751 $as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; }
11752 if ${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+:} false; then :
11753   $as_echo_n "(cached) " >&6
11754 else
11755   ac_check_lib_save_LIBS=$LIBS
11756 LIBS="-lpng -lm -lz $LIBS"
11757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11758 /* end confdefs.h.  */
11759
11760 /* Override any GCC internal prototype to avoid an error.
11761    Use char because int might match the return type of a GCC
11762    builtin and then its argument prototype would still apply.  */
11763 #ifdef __cplusplus
11764 extern "C"
11765 #endif
11766 char png_set_expand_gray_1_2_4_to_8 ();
11767 int
11768 main ()
11769 {
11770 return png_set_expand_gray_1_2_4_to_8 ();
11771   ;
11772   return 0;
11773 }
11774 _ACEOF
11775 if ac_fn_c_try_link "$LINENO"; then :
11776   ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes
11777 else
11778   ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no
11779 fi
11780 rm -f core conftest.err conftest.$ac_objext \
11781     conftest$ac_exeext conftest.$ac_ext
11782 LIBS=$ac_check_lib_save_LIBS
11783 fi
11784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5
11785 $as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; }
11786 if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = xyes; then :
11787
11788 $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
11789
11790
11791 fi
11792
11793 elif test -n "$X_CFLAGS" -a "x$with_png" != "xno"
11794 then
11795         ac_save_CPPFLAGS="$CPPFLAGS"
11796     CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11797     $as_unset ac_cv_header_png_h
11798     for ac_header in png.h
11799 do :
11800   ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
11801 if test "x$ac_cv_header_png_h" = xyes; then :
11802   cat >>confdefs.h <<_ACEOF
11803 #define HAVE_PNG_H 1
11804 _ACEOF
11805
11806 fi
11807
11808 done
11809
11810     CPPFLAGS="$ac_save_CPPFLAGS"
11811     if test "$ac_cv_header_png_h" = "yes"
11812     then
11813         PNGINCL="$X_CFLAGS"
11814
11815         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
11816 $as_echo_n "checking for -lpng... " >&6; }
11817 if ${ac_cv_lib_soname_png+:} false; then :
11818   $as_echo_n "(cached) " >&6
11819 else
11820   ac_check_soname_save_LIBS=$LIBS
11821 LIBS="-lpng $X_LIBS -lm -lz $LIBS"
11822   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11823 /* end confdefs.h.  */
11824
11825 /* Override any GCC internal prototype to avoid an error.
11826    Use char because int might match the return type of a GCC
11827    builtin and then its argument prototype would still apply.  */
11828 #ifdef __cplusplus
11829 extern "C"
11830 #endif
11831 char png_create_read_struct ();
11832 int
11833 main ()
11834 {
11835 return png_create_read_struct ();
11836   ;
11837   return 0;
11838 }
11839 _ACEOF
11840 if ac_fn_c_try_link "$LINENO"; then :
11841   case "$LIBEXT" in
11842     dll) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest.exe | grep "png" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11843     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'` ;;
11844     *) ac_cv_lib_soname_png=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libpng[0-9]*\\.$LIBEXT" | sed -e "s/^.*\\[\\(libpng[0-9]*\\.$LIBEXT[^        ]*\\)\\].*$/\1/"';2,$d'`
11845        if test "x$ac_cv_lib_soname_png" = x; then :
11846   ac_cv_lib_soname_png=`$LDD conftest$ac_exeext | grep "libpng[0-9]*\\.$LIBEXT" | sed -e "s/^.*\(libpng[0-9]*\.$LIBEXT[^         ]*\).*$/\1/"';2,$d'`
11847 fi ;;
11848   esac
11849 fi
11850 rm -f core conftest.err conftest.$ac_objext \
11851     conftest$ac_exeext conftest.$ac_ext
11852   LIBS=$ac_check_soname_save_LIBS
11853 fi
11854 if test "x$ac_cv_lib_soname_png" = "x"; then :
11855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11856 $as_echo "not found" >&6; }
11857
11858 else
11859   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
11860 $as_echo "$ac_cv_lib_soname_png" >&6; }
11861
11862 cat >>confdefs.h <<_ACEOF
11863 #define SONAME_LIBPNG "$ac_cv_lib_soname_png"
11864 _ACEOF
11865
11866
11867 fi
11868         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5
11869 $as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; }
11870 if ${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+:} false; then :
11871   $as_echo_n "(cached) " >&6
11872 else
11873   ac_check_lib_save_LIBS=$LIBS
11874 LIBS="-lpng $X_LIBS -lm -lz $LIBS"
11875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11876 /* end confdefs.h.  */
11877
11878 /* Override any GCC internal prototype to avoid an error.
11879    Use char because int might match the return type of a GCC
11880    builtin and then its argument prototype would still apply.  */
11881 #ifdef __cplusplus
11882 extern "C"
11883 #endif
11884 char png_set_expand_gray_1_2_4_to_8 ();
11885 int
11886 main ()
11887 {
11888 return png_set_expand_gray_1_2_4_to_8 ();
11889   ;
11890   return 0;
11891 }
11892 _ACEOF
11893 if ac_fn_c_try_link "$LINENO"; then :
11894   ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes
11895 else
11896   ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no
11897 fi
11898 rm -f core conftest.err conftest.$ac_objext \
11899     conftest$ac_exeext conftest.$ac_ext
11900 LIBS=$ac_check_lib_save_LIBS
11901 fi
11902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5
11903 $as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; }
11904 if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = xyes; then :
11905   $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
11906
11907 fi
11908
11909     fi
11910 fi
11911 if test "x$ac_cv_lib_soname_png" = "x"; then :
11912   case "x$with_png" in
11913   x)   as_fn_append wine_warnings "|libpng ${notice_platform}development files not found, PNG won't be supported." ;;
11914   xno) ;;
11915   *)   as_fn_error $? "libpng ${notice_platform}development files not found, PNG won't be supported.
11916 This is an error since --with-png was requested." "$LINENO" 5 ;;
11917 esac
11918 fi
11919
11920 if test "$ac_cv_header_tiffio_h" = "yes"
11921 then
11922     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ltiff" >&5
11923 $as_echo_n "checking for -ltiff... " >&6; }
11924 if ${ac_cv_lib_soname_tiff+:} false; then :
11925   $as_echo_n "(cached) " >&6
11926 else
11927   ac_check_soname_save_LIBS=$LIBS
11928 LIBS="-ltiff  $LIBS"
11929   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11930 /* end confdefs.h.  */
11931
11932 /* Override any GCC internal prototype to avoid an error.
11933    Use char because int might match the return type of a GCC
11934    builtin and then its argument prototype would still apply.  */
11935 #ifdef __cplusplus
11936 extern "C"
11937 #endif
11938 char TIFFClientOpen ();
11939 int
11940 main ()
11941 {
11942 return TIFFClientOpen ();
11943   ;
11944   return 0;
11945 }
11946 _ACEOF
11947 if ac_fn_c_try_link "$LINENO"; then :
11948   case "$LIBEXT" in
11949     dll) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest.exe | grep "tiff" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11950     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'` ;;
11951     *) ac_cv_lib_soname_tiff=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libtiff\\.$LIBEXT" | sed -e "s/^.*\\[\\(libtiff\\.$LIBEXT[^         ]*\\)\\].*$/\1/"';2,$d'`
11952        if test "x$ac_cv_lib_soname_tiff" = x; then :
11953   ac_cv_lib_soname_tiff=`$LDD conftest$ac_exeext | grep "libtiff\\.$LIBEXT" | sed -e "s/^.*\(libtiff\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'`
11954 fi ;;
11955   esac
11956 fi
11957 rm -f core conftest.err conftest.$ac_objext \
11958     conftest$ac_exeext conftest.$ac_ext
11959   LIBS=$ac_check_soname_save_LIBS
11960 fi
11961 if test "x$ac_cv_lib_soname_tiff" = "x"; then :
11962   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11963 $as_echo "not found" >&6; }
11964
11965 else
11966   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_tiff" >&5
11967 $as_echo "$ac_cv_lib_soname_tiff" >&6; }
11968
11969 cat >>confdefs.h <<_ACEOF
11970 #define SONAME_LIBTIFF "$ac_cv_lib_soname_tiff"
11971 _ACEOF
11972
11973
11974 fi
11975 fi
11976 if test "x$ac_cv_lib_soname_tiff" = "x"; then :
11977   case "x$with_tiff" in
11978   x)   as_fn_append wine_notices "|libtiff ${notice_platform}development files not found, TIFF won't be supported." ;;
11979   xno) ;;
11980   *)   as_fn_error $? "libtiff ${notice_platform}development files not found, TIFF won't be supported.
11981 This is an error since --with-tiff was requested." "$LINENO" 5 ;;
11982 esac
11983 fi
11984
11985 if test "$ac_cv_header_mpg123_h" = "yes"
11986 then
11987     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpg123_feed in -lmpg123" >&5
11988 $as_echo_n "checking for mpg123_feed in -lmpg123... " >&6; }
11989 if ${ac_cv_lib_mpg123_mpg123_feed+:} false; then :
11990   $as_echo_n "(cached) " >&6
11991 else
11992   ac_check_lib_save_LIBS=$LIBS
11993 LIBS="-lmpg123  $LIBS"
11994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11995 /* end confdefs.h.  */
11996
11997 /* Override any GCC internal prototype to avoid an error.
11998    Use char because int might match the return type of a GCC
11999    builtin and then its argument prototype would still apply.  */
12000 #ifdef __cplusplus
12001 extern "C"
12002 #endif
12003 char mpg123_feed ();
12004 int
12005 main ()
12006 {
12007 return mpg123_feed ();
12008   ;
12009   return 0;
12010 }
12011 _ACEOF
12012 if ac_fn_c_try_link "$LINENO"; then :
12013   ac_cv_lib_mpg123_mpg123_feed=yes
12014 else
12015   ac_cv_lib_mpg123_mpg123_feed=no
12016 fi
12017 rm -f core conftest.err conftest.$ac_objext \
12018     conftest$ac_exeext conftest.$ac_ext
12019 LIBS=$ac_check_lib_save_LIBS
12020 fi
12021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpg123_mpg123_feed" >&5
12022 $as_echo "$ac_cv_lib_mpg123_mpg123_feed" >&6; }
12023 if test "x$ac_cv_lib_mpg123_mpg123_feed" = xyes; then :
12024   LIBMPG123="-lmpg123"
12025
12026 fi
12027
12028 fi
12029 if test "x$ac_cv_lib_mpg123_mpg123_feed" != xyes -a x"$ac_cv_header_CoreAudio_CoreAudio_h" != xyes; then :
12030   case "x$with_mpg123" in
12031   x)   as_fn_append wine_notices "|libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported." ;;
12032   xno) ;;
12033   *)   as_fn_error $? "libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported.
12034 This is an error since --with-mpg123 was requested." "$LINENO" 5 ;;
12035 esac
12036 fi
12037 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}
12038
12039 if test "$ac_cv_header_AL_al_h" = "yes"
12040 then
12041     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lopenal" >&5
12042 $as_echo_n "checking for -lopenal... " >&6; }
12043 if ${ac_cv_lib_soname_openal+:} false; then :
12044   $as_echo_n "(cached) " >&6
12045 else
12046   ac_check_soname_save_LIBS=$LIBS
12047 LIBS="-lopenal  $LIBS"
12048   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12049 /* end confdefs.h.  */
12050
12051 /* Override any GCC internal prototype to avoid an error.
12052    Use char because int might match the return type of a GCC
12053    builtin and then its argument prototype would still apply.  */
12054 #ifdef __cplusplus
12055 extern "C"
12056 #endif
12057 char alGetSource3i ();
12058 int
12059 main ()
12060 {
12061 return alGetSource3i ();
12062   ;
12063   return 0;
12064 }
12065 _ACEOF
12066 if ac_fn_c_try_link "$LINENO"; then :
12067   case "$LIBEXT" in
12068     dll) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest.exe | grep "openal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12069     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'` ;;
12070     *) ac_cv_lib_soname_openal=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libopenal\\.$LIBEXT" | sed -e "s/^.*\\[\\(libopenal\\.$LIBEXT[^   ]*\\)\\].*$/\1/"';2,$d'`
12071        if test "x$ac_cv_lib_soname_openal" = x; then :
12072   ac_cv_lib_soname_openal=`$LDD conftest$ac_exeext | grep "libopenal\\.$LIBEXT" | sed -e "s/^.*\(libopenal\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'`
12073 fi ;;
12074   esac
12075 fi
12076 rm -f core conftest.err conftest.$ac_objext \
12077     conftest$ac_exeext conftest.$ac_ext
12078   LIBS=$ac_check_soname_save_LIBS
12079 fi
12080 if test "x$ac_cv_lib_soname_openal" = "x"; then :
12081   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12082 $as_echo "not found" >&6; }
12083
12084 else
12085   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_openal" >&5
12086 $as_echo "$ac_cv_lib_soname_openal" >&6; }
12087
12088 cat >>confdefs.h <<_ACEOF
12089 #define SONAME_LIBOPENAL "$ac_cv_lib_soname_openal"
12090 _ACEOF
12091
12092        LIBOPENAL="-lopenal"
12093
12094                       ac_cv_lib_openal=yes
12095
12096 cat >>confdefs.h <<_ACEOF
12097 #define HAVE_OPENAL 1
12098 _ACEOF
12099
12100 fi
12101 fi
12102 if test "x$ac_cv_lib_openal" != xyes; then :
12103   case "x$with_openal" in
12104   x)   as_fn_append wine_notices "|libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported." ;;
12105   xno) ;;
12106   *)   as_fn_error $? "libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported.
12107 This is an error since --with-openal was requested." "$LINENO" 5 ;;
12108 esac
12109 fi
12110 test "x$ac_cv_lib_openal" = xyes || enable_openal32=${enable_openal32:-no}
12111
12112 if test "$ac_cv_header_kstat_h" = "yes"
12113 then
12114     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
12115 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
12116 if ${ac_cv_lib_kstat_kstat_open+:} false; then :
12117   $as_echo_n "(cached) " >&6
12118 else
12119   ac_check_lib_save_LIBS=$LIBS
12120 LIBS="-lkstat  $LIBS"
12121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12122 /* end confdefs.h.  */
12123
12124 /* Override any GCC internal prototype to avoid an error.
12125    Use char because int might match the return type of a GCC
12126    builtin and then its argument prototype would still apply.  */
12127 #ifdef __cplusplus
12128 extern "C"
12129 #endif
12130 char kstat_open ();
12131 int
12132 main ()
12133 {
12134 return kstat_open ();
12135   ;
12136   return 0;
12137 }
12138 _ACEOF
12139 if ac_fn_c_try_link "$LINENO"; then :
12140   ac_cv_lib_kstat_kstat_open=yes
12141 else
12142   ac_cv_lib_kstat_kstat_open=no
12143 fi
12144 rm -f core conftest.err conftest.$ac_objext \
12145     conftest$ac_exeext conftest.$ac_ext
12146 LIBS=$ac_check_lib_save_LIBS
12147 fi
12148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
12149 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
12150 if test "x$ac_cv_lib_kstat_kstat_open" = xyes; then :
12151
12152 $as_echo "#define HAVE_LIBKSTAT 1" >>confdefs.h
12153
12154                   LIBKSTAT="-lkstat"
12155
12156 fi
12157
12158 fi
12159
12160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lodbc" >&5
12161 $as_echo_n "checking for -lodbc... " >&6; }
12162 if ${ac_cv_lib_soname_odbc+:} false; then :
12163   $as_echo_n "(cached) " >&6
12164 else
12165   ac_check_soname_save_LIBS=$LIBS
12166 LIBS="-lodbc  $LIBS"
12167   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12168 /* end confdefs.h.  */
12169
12170 /* Override any GCC internal prototype to avoid an error.
12171    Use char because int might match the return type of a GCC
12172    builtin and then its argument prototype would still apply.  */
12173 #ifdef __cplusplus
12174 extern "C"
12175 #endif
12176 char SQLConnect ();
12177 int
12178 main ()
12179 {
12180 return SQLConnect ();
12181   ;
12182   return 0;
12183 }
12184 _ACEOF
12185 if ac_fn_c_try_link "$LINENO"; then :
12186   case "$LIBEXT" in
12187     dll) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest.exe | grep "odbc" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12188     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'` ;;
12189     *) ac_cv_lib_soname_odbc=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libodbc\\.$LIBEXT" | sed -e "s/^.*\\[\\(libodbc\\.$LIBEXT[^         ]*\\)\\].*$/\1/"';2,$d'`
12190        if test "x$ac_cv_lib_soname_odbc" = x; then :
12191   ac_cv_lib_soname_odbc=`$LDD conftest$ac_exeext | grep "libodbc\\.$LIBEXT" | sed -e "s/^.*\(libodbc\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'`
12192 fi ;;
12193   esac
12194 fi
12195 rm -f core conftest.err conftest.$ac_objext \
12196     conftest$ac_exeext conftest.$ac_ext
12197   LIBS=$ac_check_soname_save_LIBS
12198 fi
12199 if test "x$ac_cv_lib_soname_odbc" = "x"; then :
12200   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12201 $as_echo "not found" >&6; }
12202        cat >>confdefs.h <<_ACEOF
12203 #define SONAME_LIBODBC "libodbc.$LIBEXT"
12204 _ACEOF
12205
12206 else
12207   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_odbc" >&5
12208 $as_echo "$ac_cv_lib_soname_odbc" >&6; }
12209
12210 cat >>confdefs.h <<_ACEOF
12211 #define SONAME_LIBODBC "$ac_cv_lib_soname_odbc"
12212 _ACEOF
12213
12214
12215 fi
12216
12217 test -n "$ALSALIBS" || enable_winealsa_drv=${enable_winealsa_drv:-no}
12218 test -n "$COREAUDIO" || enable_winecoreaudio_drv=${enable_winecoreaudio_drv:-no}
12219 test "x$ac_cv_member_oss_sysinfo_numaudioengines" = xyes || enable_wineoss_drv=${enable_wineoss_drv:-no}
12220 test "$ac_cv_header_linux_joystick_h" = "yes" || enable_winejoystick_drv=${enable_winejoystick_drv:-no}
12221
12222 if test "x$ALSALIBS$COREAUDIO" = "x" -a \
12223         "x$ac_cv_member_oss_sysinfo_numaudioengines" != xyes -a \
12224         "x$with_alsa$with_coreaudio$with_oss" != xnonono
12225 then
12226     as_fn_append wine_warnings "|No sound system was found. Windows applications will be silent."
12227 fi
12228
12229
12230 EXTRACFLAGS=""
12231
12232 if test "x${GCC}" = "xyes"
12233 then
12234   EXTRACFLAGS="-Wall -pipe"
12235
12236     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc strength-reduce bug" >&5
12237 $as_echo_n "checking for gcc strength-reduce bug... " >&6; }
12238 if ${ac_cv_c_gcc_strength_bug+:} false; then :
12239   $as_echo_n "(cached) " >&6
12240 else
12241   if test "$cross_compiling" = yes; then :
12242   ac_cv_c_gcc_strength_bug="yes"
12243 else
12244   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12245 /* end confdefs.h.  */
12246 int L[4] = {0,1,2,3};
12247 int
12248 main ()
12249 {
12250 static int Array[3];
12251   unsigned int B = 3;
12252   int i;
12253   for(i=0; i<B; i++) Array[i] = i - 3;
12254   for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
12255   L[i] = 4;
12256   return (Array[1] != -2 || L[2] != 3)
12257   ;
12258   return 0;
12259 }
12260 _ACEOF
12261 if ac_fn_c_try_run "$LINENO"; then :
12262   ac_cv_c_gcc_strength_bug="no"
12263 else
12264   ac_cv_c_gcc_strength_bug="yes"
12265 fi
12266 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12267   conftest.$ac_objext conftest.beam conftest.$ac_ext
12268 fi
12269
12270 fi
12271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gcc_strength_bug" >&5
12272 $as_echo "$ac_cv_c_gcc_strength_bug" >&6; }
12273   if test "$ac_cv_c_gcc_strength_bug" = "yes"
12274   then
12275     EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
12276   fi
12277
12278     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-builtin" >&5
12279 $as_echo_n "checking whether the compiler supports -fno-builtin... " >&6; }
12280 if ${ac_cv_cflags__fno_builtin+:} false; then :
12281   $as_echo_n "(cached) " >&6
12282 else
12283   ac_wine_try_cflags_saved=$CFLAGS
12284 CFLAGS="$CFLAGS -fno-builtin"
12285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12286 /* end confdefs.h.  */
12287 int main(int argc, char **argv) { return 0; }
12288 _ACEOF
12289 if ac_fn_c_try_link "$LINENO"; then :
12290   ac_cv_cflags__fno_builtin=yes
12291 else
12292   ac_cv_cflags__fno_builtin=no
12293 fi
12294 rm -f core conftest.err conftest.$ac_objext \
12295     conftest$ac_exeext conftest.$ac_ext
12296 CFLAGS=$ac_wine_try_cflags_saved
12297 fi
12298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_builtin" >&5
12299 $as_echo "$ac_cv_cflags__fno_builtin" >&6; }
12300 if test $ac_cv_cflags__fno_builtin = yes; then :
12301   BUILTINFLAG="-fno-builtin"
12302
12303 fi
12304   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-strict-aliasing" >&5
12305 $as_echo_n "checking whether the compiler supports -fno-strict-aliasing... " >&6; }
12306 if ${ac_cv_cflags__fno_strict_aliasing+:} false; then :
12307   $as_echo_n "(cached) " >&6
12308 else
12309   ac_wine_try_cflags_saved=$CFLAGS
12310 CFLAGS="$CFLAGS -fno-strict-aliasing"
12311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12312 /* end confdefs.h.  */
12313 int main(int argc, char **argv) { return 0; }
12314 _ACEOF
12315 if ac_fn_c_try_link "$LINENO"; then :
12316   ac_cv_cflags__fno_strict_aliasing=yes
12317 else
12318   ac_cv_cflags__fno_strict_aliasing=no
12319 fi
12320 rm -f core conftest.err conftest.$ac_objext \
12321     conftest$ac_exeext conftest.$ac_ext
12322 CFLAGS=$ac_wine_try_cflags_saved
12323 fi
12324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_strict_aliasing" >&5
12325 $as_echo "$ac_cv_cflags__fno_strict_aliasing" >&6; }
12326 if test $ac_cv_cflags__fno_strict_aliasing = yes; then :
12327   EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
12328 fi
12329   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wdeclaration-after-statement" >&5
12330 $as_echo_n "checking whether the compiler supports -Wdeclaration-after-statement... " >&6; }
12331 if ${ac_cv_cflags__Wdeclaration_after_statement+:} false; then :
12332   $as_echo_n "(cached) " >&6
12333 else
12334   ac_wine_try_cflags_saved=$CFLAGS
12335 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
12336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12337 /* end confdefs.h.  */
12338 int main(int argc, char **argv) { return 0; }
12339 _ACEOF
12340 if ac_fn_c_try_link "$LINENO"; then :
12341   ac_cv_cflags__Wdeclaration_after_statement=yes
12342 else
12343   ac_cv_cflags__Wdeclaration_after_statement=no
12344 fi
12345 rm -f core conftest.err conftest.$ac_objext \
12346     conftest$ac_exeext conftest.$ac_ext
12347 CFLAGS=$ac_wine_try_cflags_saved
12348 fi
12349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wdeclaration_after_statement" >&5
12350 $as_echo "$ac_cv_cflags__Wdeclaration_after_statement" >&6; }
12351 if test $ac_cv_cflags__Wdeclaration_after_statement = yes; then :
12352   EXTRACFLAGS="$EXTRACFLAGS -Wdeclaration-after-statement"
12353 fi
12354   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wempty-body" >&5
12355 $as_echo_n "checking whether the compiler supports -Wempty-body... " >&6; }
12356 if ${ac_cv_cflags__Wempty_body+:} false; then :
12357   $as_echo_n "(cached) " >&6
12358 else
12359   ac_wine_try_cflags_saved=$CFLAGS
12360 CFLAGS="$CFLAGS -Wempty-body"
12361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12362 /* end confdefs.h.  */
12363 int main(int argc, char **argv) { return 0; }
12364 _ACEOF
12365 if ac_fn_c_try_link "$LINENO"; then :
12366   ac_cv_cflags__Wempty_body=yes
12367 else
12368   ac_cv_cflags__Wempty_body=no
12369 fi
12370 rm -f core conftest.err conftest.$ac_objext \
12371     conftest$ac_exeext conftest.$ac_ext
12372 CFLAGS=$ac_wine_try_cflags_saved
12373 fi
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wempty_body" >&5
12375 $as_echo "$ac_cv_cflags__Wempty_body" >&6; }
12376 if test $ac_cv_cflags__Wempty_body = yes; then :
12377   EXTRACFLAGS="$EXTRACFLAGS -Wempty-body"
12378 fi
12379   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wignored-qualifiers" >&5
12380 $as_echo_n "checking whether the compiler supports -Wignored-qualifiers... " >&6; }
12381 if ${ac_cv_cflags__Wignored_qualifiers+:} false; then :
12382   $as_echo_n "(cached) " >&6
12383 else
12384   ac_wine_try_cflags_saved=$CFLAGS
12385 CFLAGS="$CFLAGS -Wignored-qualifiers"
12386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12387 /* end confdefs.h.  */
12388 int main(int argc, char **argv) { return 0; }
12389 _ACEOF
12390 if ac_fn_c_try_link "$LINENO"; then :
12391   ac_cv_cflags__Wignored_qualifiers=yes
12392 else
12393   ac_cv_cflags__Wignored_qualifiers=no
12394 fi
12395 rm -f core conftest.err conftest.$ac_objext \
12396     conftest$ac_exeext conftest.$ac_ext
12397 CFLAGS=$ac_wine_try_cflags_saved
12398 fi
12399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wignored_qualifiers" >&5
12400 $as_echo "$ac_cv_cflags__Wignored_qualifiers" >&6; }
12401 if test $ac_cv_cflags__Wignored_qualifiers = yes; then :
12402   EXTRACFLAGS="$EXTRACFLAGS -Wignored-qualifiers"
12403 fi
12404   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wstrict-prototypes" >&5
12405 $as_echo_n "checking whether the compiler supports -Wstrict-prototypes... " >&6; }
12406 if ${ac_cv_cflags__Wstrict_prototypes+:} false; then :
12407   $as_echo_n "(cached) " >&6
12408 else
12409   ac_wine_try_cflags_saved=$CFLAGS
12410 CFLAGS="$CFLAGS -Wstrict-prototypes"
12411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12412 /* end confdefs.h.  */
12413 int main(int argc, char **argv) { return 0; }
12414 _ACEOF
12415 if ac_fn_c_try_link "$LINENO"; then :
12416   ac_cv_cflags__Wstrict_prototypes=yes
12417 else
12418   ac_cv_cflags__Wstrict_prototypes=no
12419 fi
12420 rm -f core conftest.err conftest.$ac_objext \
12421     conftest$ac_exeext conftest.$ac_ext
12422 CFLAGS=$ac_wine_try_cflags_saved
12423 fi
12424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wstrict_prototypes" >&5
12425 $as_echo "$ac_cv_cflags__Wstrict_prototypes" >&6; }
12426 if test $ac_cv_cflags__Wstrict_prototypes = yes; then :
12427   EXTRACFLAGS="$EXTRACFLAGS -Wstrict-prototypes"
12428 fi
12429   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wtype-limits" >&5
12430 $as_echo_n "checking whether the compiler supports -Wtype-limits... " >&6; }
12431 if ${ac_cv_cflags__Wtype_limits+:} false; then :
12432   $as_echo_n "(cached) " >&6
12433 else
12434   ac_wine_try_cflags_saved=$CFLAGS
12435 CFLAGS="$CFLAGS -Wtype-limits"
12436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12437 /* end confdefs.h.  */
12438 int main(int argc, char **argv) { return 0; }
12439 _ACEOF
12440 if ac_fn_c_try_link "$LINENO"; then :
12441   ac_cv_cflags__Wtype_limits=yes
12442 else
12443   ac_cv_cflags__Wtype_limits=no
12444 fi
12445 rm -f core conftest.err conftest.$ac_objext \
12446     conftest$ac_exeext conftest.$ac_ext
12447 CFLAGS=$ac_wine_try_cflags_saved
12448 fi
12449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wtype_limits" >&5
12450 $as_echo "$ac_cv_cflags__Wtype_limits" >&6; }
12451 if test $ac_cv_cflags__Wtype_limits = yes; then :
12452   EXTRACFLAGS="$EXTRACFLAGS -Wtype-limits"
12453 fi
12454   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wunused-but-set-parameter" >&5
12455 $as_echo_n "checking whether the compiler supports -Wunused-but-set-parameter... " >&6; }
12456 if ${ac_cv_cflags__Wunused_but_set_parameter+:} false; then :
12457   $as_echo_n "(cached) " >&6
12458 else
12459   ac_wine_try_cflags_saved=$CFLAGS
12460 CFLAGS="$CFLAGS -Wunused-but-set-parameter"
12461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12462 /* end confdefs.h.  */
12463 int main(int argc, char **argv) { return 0; }
12464 _ACEOF
12465 if ac_fn_c_try_link "$LINENO"; then :
12466   ac_cv_cflags__Wunused_but_set_parameter=yes
12467 else
12468   ac_cv_cflags__Wunused_but_set_parameter=no
12469 fi
12470 rm -f core conftest.err conftest.$ac_objext \
12471     conftest$ac_exeext conftest.$ac_ext
12472 CFLAGS=$ac_wine_try_cflags_saved
12473 fi
12474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wunused_but_set_parameter" >&5
12475 $as_echo "$ac_cv_cflags__Wunused_but_set_parameter" >&6; }
12476 if test $ac_cv_cflags__Wunused_but_set_parameter = yes; then :
12477   EXTRACFLAGS="$EXTRACFLAGS -Wunused-but-set-parameter"
12478 fi
12479   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wwrite-strings" >&5
12480 $as_echo_n "checking whether the compiler supports -Wwrite-strings... " >&6; }
12481 if ${ac_cv_cflags__Wwrite_strings+:} false; then :
12482   $as_echo_n "(cached) " >&6
12483 else
12484   ac_wine_try_cflags_saved=$CFLAGS
12485 CFLAGS="$CFLAGS -Wwrite-strings"
12486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12487 /* end confdefs.h.  */
12488 int main(int argc, char **argv) { return 0; }
12489 _ACEOF
12490 if ac_fn_c_try_link "$LINENO"; then :
12491   ac_cv_cflags__Wwrite_strings=yes
12492 else
12493   ac_cv_cflags__Wwrite_strings=no
12494 fi
12495 rm -f core conftest.err conftest.$ac_objext \
12496     conftest$ac_exeext conftest.$ac_ext
12497 CFLAGS=$ac_wine_try_cflags_saved
12498 fi
12499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wwrite_strings" >&5
12500 $as_echo "$ac_cv_cflags__Wwrite_strings" >&6; }
12501 if test $ac_cv_cflags__Wwrite_strings = yes; then :
12502   EXTRACFLAGS="$EXTRACFLAGS -Wwrite-strings"
12503 fi
12504
12505     for ac_flag in $CFLAGS; do
12506     case $ac_flag in
12507       -g) case $host_os in
12508             darwin*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -gstabs+" >&5
12509 $as_echo_n "checking whether the compiler supports -gstabs+... " >&6; }
12510 if ${ac_cv_cflags__gstabsp+:} false; then :
12511   $as_echo_n "(cached) " >&6
12512 else
12513   ac_wine_try_cflags_saved=$CFLAGS
12514 CFLAGS="$CFLAGS -gstabs+"
12515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12516 /* end confdefs.h.  */
12517 int main(int argc, char **argv) { return 0; }
12518 _ACEOF
12519 if ac_fn_c_try_link "$LINENO"; then :
12520   ac_cv_cflags__gstabsp=yes
12521 else
12522   ac_cv_cflags__gstabsp=no
12523 fi
12524 rm -f core conftest.err conftest.$ac_objext \
12525     conftest$ac_exeext conftest.$ac_ext
12526 CFLAGS=$ac_wine_try_cflags_saved
12527 fi
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__gstabsp" >&5
12529 $as_echo "$ac_cv_cflags__gstabsp" >&6; }
12530 if test $ac_cv_cflags__gstabsp = yes; then :
12531   EXTRACFLAGS="$EXTRACFLAGS -gstabs+"
12532 fi ;;
12533             *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -gdwarf-2" >&5
12534 $as_echo_n "checking whether the compiler supports -gdwarf-2... " >&6; }
12535 if ${ac_cv_cflags__gdwarf_2+:} false; then :
12536   $as_echo_n "(cached) " >&6
12537 else
12538   ac_wine_try_cflags_saved=$CFLAGS
12539 CFLAGS="$CFLAGS -gdwarf-2"
12540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12541 /* end confdefs.h.  */
12542 int main(int argc, char **argv) { return 0; }
12543 _ACEOF
12544 if ac_fn_c_try_link "$LINENO"; then :
12545   ac_cv_cflags__gdwarf_2=yes
12546 else
12547   ac_cv_cflags__gdwarf_2=no
12548 fi
12549 rm -f core conftest.err conftest.$ac_objext \
12550     conftest$ac_exeext conftest.$ac_ext
12551 CFLAGS=$ac_wine_try_cflags_saved
12552 fi
12553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__gdwarf_2" >&5
12554 $as_echo "$ac_cv_cflags__gdwarf_2" >&6; }
12555 if test $ac_cv_cflags__gdwarf_2 = yes; then :
12556   EXTRACFLAGS="$EXTRACFLAGS -gdwarf-2"
12557 fi
12558                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -gstrict-dwarf" >&5
12559 $as_echo_n "checking whether the compiler supports -gstrict-dwarf... " >&6; }
12560 if ${ac_cv_cflags__gstrict_dwarf+:} false; then :
12561   $as_echo_n "(cached) " >&6
12562 else
12563   ac_wine_try_cflags_saved=$CFLAGS
12564 CFLAGS="$CFLAGS -gstrict-dwarf"
12565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12566 /* end confdefs.h.  */
12567 int main(int argc, char **argv) { return 0; }
12568 _ACEOF
12569 if ac_fn_c_try_link "$LINENO"; then :
12570   ac_cv_cflags__gstrict_dwarf=yes
12571 else
12572   ac_cv_cflags__gstrict_dwarf=no
12573 fi
12574 rm -f core conftest.err conftest.$ac_objext \
12575     conftest$ac_exeext conftest.$ac_ext
12576 CFLAGS=$ac_wine_try_cflags_saved
12577 fi
12578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__gstrict_dwarf" >&5
12579 $as_echo "$ac_cv_cflags__gstrict_dwarf" >&6; }
12580 if test $ac_cv_cflags__gstrict_dwarf = yes; then :
12581   EXTRACFLAGS="$EXTRACFLAGS -gstrict-dwarf"
12582 fi ;;
12583           esac ;;
12584     esac
12585   done
12586
12587     case $host_cpu in
12588     *i[3456789]86*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-omit-frame-pointer" >&5
12589 $as_echo_n "checking whether the compiler supports -fno-omit-frame-pointer... " >&6; }
12590 if ${ac_cv_cflags__fno_omit_frame_pointer+:} false; then :
12591   $as_echo_n "(cached) " >&6
12592 else
12593   ac_wine_try_cflags_saved=$CFLAGS
12594 CFLAGS="$CFLAGS -fno-omit-frame-pointer"
12595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12596 /* end confdefs.h.  */
12597 int main(int argc, char **argv) { return 0; }
12598 _ACEOF
12599 if ac_fn_c_try_link "$LINENO"; then :
12600   ac_cv_cflags__fno_omit_frame_pointer=yes
12601 else
12602   ac_cv_cflags__fno_omit_frame_pointer=no
12603 fi
12604 rm -f core conftest.err conftest.$ac_objext \
12605     conftest$ac_exeext conftest.$ac_ext
12606 CFLAGS=$ac_wine_try_cflags_saved
12607 fi
12608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_omit_frame_pointer" >&5
12609 $as_echo "$ac_cv_cflags__fno_omit_frame_pointer" >&6; }
12610 if test $ac_cv_cflags__fno_omit_frame_pointer = yes; then :
12611   EXTRACFLAGS="$EXTRACFLAGS -fno-omit-frame-pointer"
12612 fi ;;
12613   esac
12614
12615     case $host in
12616     x86_64-*mingw32*|x86_64-*cygwin*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wno-format" >&5
12617 $as_echo_n "checking whether the compiler supports -Wno-format... " >&6; }
12618 if ${ac_cv_cflags__Wno_format+:} false; then :
12619   $as_echo_n "(cached) " >&6
12620 else
12621   ac_wine_try_cflags_saved=$CFLAGS
12622 CFLAGS="$CFLAGS -Wno-format"
12623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12624 /* end confdefs.h.  */
12625 int main(int argc, char **argv) { return 0; }
12626 _ACEOF
12627 if ac_fn_c_try_link "$LINENO"; then :
12628   ac_cv_cflags__Wno_format=yes
12629 else
12630   ac_cv_cflags__Wno_format=no
12631 fi
12632 rm -f core conftest.err conftest.$ac_objext \
12633     conftest$ac_exeext conftest.$ac_ext
12634 CFLAGS=$ac_wine_try_cflags_saved
12635 fi
12636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wno_format" >&5
12637 $as_echo "$ac_cv_cflags__Wno_format" >&6; }
12638 if test $ac_cv_cflags__Wno_format = yes; then :
12639   EXTRACFLAGS="$EXTRACFLAGS -Wno-format"
12640 fi ;;
12641   esac
12642
12643     saved_CFLAGS="$CFLAGS"
12644   CFLAGS="$CFLAGS -Wpointer-arith -Werror"
12645   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wpointer-arith" >&5
12646 $as_echo_n "checking for broken string.h that generates warnings with -Wpointer-arith... " >&6; }
12647 if ${ac_cv_c_string_h_warnings+:} false; then :
12648   $as_echo_n "(cached) " >&6
12649 else
12650   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12651 /* end confdefs.h.  */
12652 #include <string.h>
12653 int
12654 main ()
12655 {
12656
12657   ;
12658   return 0;
12659 }
12660 _ACEOF
12661 if ac_fn_c_try_compile "$LINENO"; then :
12662   ac_cv_c_string_h_warnings=no
12663 else
12664   ac_cv_c_string_h_warnings=yes
12665 fi
12666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12667 fi
12668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_string_h_warnings" >&5
12669 $as_echo "$ac_cv_c_string_h_warnings" >&6; }
12670   CFLAGS="$saved_CFLAGS"
12671   if test "$ac_cv_c_string_h_warnings" = "no"
12672   then
12673     EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
12674   fi
12675
12676     saved_CFLAGS="$CFLAGS"
12677   CFLAGS="$CFLAGS -Wlogical-op -Werror"
12678   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wlogical-op" >&5
12679 $as_echo_n "checking for broken string.h that generates warnings with -Wlogical-op... " >&6; }
12680 if ${ac_cv_c_logicalop_noisy+:} false; then :
12681   $as_echo_n "(cached) " >&6
12682 else
12683   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12684 /* end confdefs.h.  */
12685 #include <string.h>
12686 int
12687 main ()
12688 {
12689 char*f(const char *h,char n) {return strchr(h,n);}
12690   ;
12691   return 0;
12692 }
12693 _ACEOF
12694 if ac_fn_c_try_compile "$LINENO"; then :
12695   ac_cv_c_logicalop_noisy=no
12696 else
12697   ac_cv_c_logicalop_noisy=yes
12698 fi
12699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12700 fi
12701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_logicalop_noisy" >&5
12702 $as_echo "$ac_cv_c_logicalop_noisy" >&6; }
12703   CFLAGS="$saved_CFLAGS"
12704   if test "$ac_cv_c_logicalop_noisy" = "no"
12705   then
12706     EXTRACFLAGS="$EXTRACFLAGS -Wlogical-op"
12707   fi
12708
12709     if test "x$enable_maintainer_mode" = "xyes"
12710   then
12711       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Werror" >&5
12712 $as_echo_n "checking whether the compiler supports -Werror... " >&6; }
12713 if ${ac_cv_cflags__Werror+:} false; then :
12714   $as_echo_n "(cached) " >&6
12715 else
12716   ac_wine_try_cflags_saved=$CFLAGS
12717 CFLAGS="$CFLAGS -Werror"
12718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12719 /* end confdefs.h.  */
12720 int main(int argc, char **argv) { return 0; }
12721 _ACEOF
12722 if ac_fn_c_try_link "$LINENO"; then :
12723   ac_cv_cflags__Werror=yes
12724 else
12725   ac_cv_cflags__Werror=no
12726 fi
12727 rm -f core conftest.err conftest.$ac_objext \
12728     conftest$ac_exeext conftest.$ac_ext
12729 CFLAGS=$ac_wine_try_cflags_saved
12730 fi
12731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Werror" >&5
12732 $as_echo "$ac_cv_cflags__Werror" >&6; }
12733 if test $ac_cv_cflags__Werror = yes; then :
12734   EXTRACFLAGS="$EXTRACFLAGS -Werror"
12735 fi
12736   fi
12737
12738     saved_CFLAGS="$CFLAGS"
12739   CFLAGS="$CFLAGS -Werror"
12740   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ms_hook_prologue attribute" >&5
12741 $as_echo_n "checking for ms_hook_prologue attribute... " >&6; }
12742 if ${ac_cv_have_ms_hook_prologue+:} false; then :
12743   $as_echo_n "(cached) " >&6
12744 else
12745   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12746 /* end confdefs.h.  */
12747 int __attribute__((__ms_hook_prologue__)) test(void) { return 0; }
12748 int
12749 main ()
12750 {
12751
12752   ;
12753   return 0;
12754 }
12755 _ACEOF
12756 if ac_fn_c_try_compile "$LINENO"; then :
12757   ac_cv_have_ms_hook_prologue="yes"
12758 else
12759   ac_cv_have_ms_hook_prologue="no"
12760 fi
12761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12762 fi
12763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ms_hook_prologue" >&5
12764 $as_echo "$ac_cv_have_ms_hook_prologue" >&6; }
12765   CFLAGS="$saved_CFLAGS"
12766   if test "$ac_cv_have_ms_hook_prologue" = "yes"
12767   then
12768
12769 $as_echo "#define DECLSPEC_HOTPATCH __attribute__((__ms_hook_prologue__))" >>confdefs.h
12770
12771   else
12772       $as_echo "#define DECLSPEC_HOTPATCH /* */" >>confdefs.h
12773
12774   fi
12775 fi
12776
12777
12778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the need to disable Fortify" >&5
12779 $as_echo_n "checking for the need to disable Fortify... " >&6; }
12780 if ${ac_cv_c_fortify_enabled+:} false; then :
12781   $as_echo_n "(cached) " >&6
12782 else
12783   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12784 /* end confdefs.h.  */
12785 #include <string.h>
12786 int
12787 main ()
12788 {
12789 #if defined(__USE_FORTIFY_LEVEL) && __USE_FORTIFY_LEVEL > 0
12790 #error Fortify enabled
12791 #endif
12792   ;
12793   return 0;
12794 }
12795 _ACEOF
12796 if ac_fn_c_try_compile "$LINENO"; then :
12797   ac_cv_c_fortify_enabled=no
12798 else
12799   ac_cv_c_fortify_enabled=yes
12800 fi
12801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12802 fi
12803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_fortify_enabled" >&5
12804 $as_echo "$ac_cv_c_fortify_enabled" >&6; }
12805 if test "$ac_cv_c_fortify_enabled" = yes
12806 then
12807     CFLAGS="$CFLAGS -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0"
12808 fi
12809
12810
12811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need an underscore prefix" >&5
12812 $as_echo_n "checking whether external symbols need an underscore prefix... " >&6; }
12813 if ${ac_cv_c_extern_prefix+:} false; then :
12814   $as_echo_n "(cached) " >&6
12815 else
12816   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12817 /* end confdefs.h.  */
12818 extern int ac_test;
12819 int
12820 main ()
12821 {
12822 asm(".globl _ac_test\n_ac_test:\t.long 0"); if (ac_test) return 1
12823   ;
12824   return 0;
12825 }
12826 _ACEOF
12827 if ac_fn_c_try_link "$LINENO"; then :
12828   ac_cv_c_extern_prefix="yes"
12829 else
12830   ac_cv_c_extern_prefix="no"
12831 fi
12832 rm -f core conftest.err conftest.$ac_objext \
12833     conftest$ac_exeext conftest.$ac_ext
12834 fi
12835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_extern_prefix" >&5
12836 $as_echo "$ac_cv_c_extern_prefix" >&6; }
12837
12838 case $host_cpu in
12839   *i[3456789]86*)
12840     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need stdcall decoration" >&5
12841 $as_echo_n "checking whether external symbols need stdcall decoration... " >&6; }
12842 if ${ac_cv_c_stdcall_suffix+:} false; then :
12843   $as_echo_n "(cached) " >&6
12844 else
12845   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12846 /* end confdefs.h.  */
12847 #ifndef _MSC_VER
12848 #define __stdcall __attribute__((__stdcall__))
12849 #endif
12850 int __stdcall ac_test(int i) { return i; }
12851 int
12852 main ()
12853 {
12854 asm("jmp _ac_test@4"); if (ac_test(1)) return 1
12855   ;
12856   return 0;
12857 }
12858 _ACEOF
12859 if ac_fn_c_try_link "$LINENO"; then :
12860   ac_cv_c_stdcall_suffix="yes"
12861 else
12862   ac_cv_c_stdcall_suffix="no"
12863 fi
12864 rm -f core conftest.err conftest.$ac_objext \
12865     conftest$ac_exeext conftest.$ac_ext
12866 fi
12867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stdcall_suffix" >&5
12868 $as_echo "$ac_cv_c_stdcall_suffix" >&6; } ;;
12869   *) ac_cv_c_stdcall_suffix="no" ;;
12870 esac
12871
12872
12873 if test "$ac_cv_c_extern_prefix" = "yes"
12874 then
12875     $as_echo "#define __ASM_NAME(name) \"_\" name" >>confdefs.h
12876
12877     asm_name_prefix="_"
12878 else
12879     $as_echo "#define __ASM_NAME(name) name" >>confdefs.h
12880
12881     asm_name_prefix=""
12882 fi
12883
12884
12885 if test "$ac_cv_c_stdcall_suffix" = "yes"
12886 then
12887     $as_echo "#define __ASM_STDCALL(args) \"@\" #args" >>confdefs.h
12888
12889 else
12890     $as_echo "#define __ASM_STDCALL(args) \"\"" >>confdefs.h
12891
12892 fi
12893
12894
12895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to define a function in assembly code" >&5
12896 $as_echo_n "checking how to define a function in assembly code... " >&6; }
12897 if ${ac_cv_asm_func_def+:} false; then :
12898   $as_echo_n "(cached) " >&6
12899 else
12900   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12901 /* end confdefs.h.  */
12902
12903 int
12904 main ()
12905 {
12906 asm("\t.globl _ac_test\n\t.def _ac_test; .scl 2; .type 32; .endef\n_ac_test:\t.long 0");
12907   ;
12908   return 0;
12909 }
12910 _ACEOF
12911 if ac_fn_c_try_link "$LINENO"; then :
12912   ac_cv_asm_func_def=".def"
12913 else
12914   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12915 /* end confdefs.h.  */
12916
12917 int
12918 main ()
12919 {
12920 asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0");
12921   ;
12922   return 0;
12923 }
12924 _ACEOF
12925 if ac_fn_c_try_link "$LINENO"; then :
12926   ac_cv_asm_func_def=".type @function"
12927 else
12928   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12929 /* end confdefs.h.  */
12930
12931 int
12932 main ()
12933 {
12934 asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0");
12935   ;
12936   return 0;
12937 }
12938 _ACEOF
12939 if ac_fn_c_try_link "$LINENO"; then :
12940   ac_cv_asm_func_def=".type 2"
12941 else
12942   ac_cv_asm_func_def="unknown"
12943 fi
12944 rm -f core conftest.err conftest.$ac_objext \
12945     conftest$ac_exeext conftest.$ac_ext
12946 fi
12947 rm -f core conftest.err conftest.$ac_objext \
12948     conftest$ac_exeext conftest.$ac_ext
12949 fi
12950 rm -f core conftest.err conftest.$ac_objext \
12951     conftest$ac_exeext conftest.$ac_ext
12952 fi
12953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_asm_func_def" >&5
12954 $as_echo "$ac_cv_asm_func_def" >&6; }
12955
12956
12957 case "$ac_cv_asm_func_def" in
12958   ".def")
12959      $as_echo "#define __ASM_FUNC(name) \".def \" __ASM_NAME(name) \"; .scl 2; .type 32; .endef\"" >>confdefs.h
12960
12961      asm_func_header=".def $asm_name_prefix\" #name suffix \"; .scl 2; .type 32; .endef" ;;
12962   ".type @function")
12963      $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",@function\"" >>confdefs.h
12964
12965      asm_func_header=".type $asm_name_prefix\" #name suffix \",@function" ;;
12966   ".type 2")
12967      $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",2\"" >>confdefs.h
12968
12969      asm_func_header=".type $asm_name_prefix\" #name suffix \",2" ;;
12970   *)
12971      $as_echo "#define __ASM_FUNC(name) \"\"" >>confdefs.h
12972
12973      asm_func_header="" ;;
12974 esac
12975
12976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether asm() works outside of functions" >&5
12977 $as_echo_n "checking whether asm() works outside of functions... " >&6; }
12978 if ${ac_cv_c_asm_outside_funcs+:} false; then :
12979   $as_echo_n "(cached) " >&6
12980 else
12981   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12982 /* end confdefs.h.  */
12983 asm(".text\n\t.long 0");
12984 int
12985 main ()
12986 {
12987
12988   ;
12989   return 0;
12990 }
12991 _ACEOF
12992 if ac_fn_c_try_compile "$LINENO"; then :
12993   ac_cv_c_asm_outside_funcs="yes"
12994 else
12995   ac_cv_c_asm_outside_funcs="no"
12996 fi
12997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12998 fi
12999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_asm_outside_funcs" >&5
13000 $as_echo "$ac_cv_c_asm_outside_funcs" >&6; }
13001
13002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .previous is supported in assembly code" >&5
13003 $as_echo_n "checking whether .previous is supported in assembly code... " >&6; }
13004 if ${ac_cv_c_dot_previous+:} false; then :
13005   $as_echo_n "(cached) " >&6
13006 else
13007   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13008 /* end confdefs.h.  */
13009
13010 int
13011 main ()
13012 {
13013 asm(".text\nac_test:\t.long 0\n\t.previous");
13014   ;
13015   return 0;
13016 }
13017 _ACEOF
13018 if ac_fn_c_try_link "$LINENO"; then :
13019   ac_cv_c_dot_previous="yes"
13020 else
13021   ac_cv_c_dot_previous="no"
13022 fi
13023 rm -f core conftest.err conftest.$ac_objext \
13024     conftest$ac_exeext conftest.$ac_ext
13025 fi
13026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dot_previous" >&5
13027 $as_echo "$ac_cv_c_dot_previous" >&6; }
13028
13029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CFI directives are supported in assembly code" >&5
13030 $as_echo_n "checking whether CFI directives are supported in assembly code... " >&6; }
13031 if ${ac_cv_c_cfi_support+:} false; then :
13032   $as_echo_n "(cached) " >&6
13033 else
13034   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13035 /* end confdefs.h.  */
13036 asm(".text\nac_test:\t.cfi_startproc\n\t.long 0\n\t.cfi_endproc");
13037 int
13038 main ()
13039 {
13040
13041   ;
13042   return 0;
13043 }
13044 _ACEOF
13045 if ac_fn_c_try_compile "$LINENO"; then :
13046   ac_cv_c_cfi_support="yes"
13047 else
13048   ac_cv_c_cfi_support="no"
13049 fi
13050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13051 fi
13052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_cfi_support" >&5
13053 $as_echo "$ac_cv_c_cfi_support" >&6; }
13054
13055 asm_func_header=".globl $asm_name_prefix\" #name suffix \"\\n\\t$asm_func_header\\n$asm_name_prefix\" #name suffix \":\\n\\t"
13056 asm_func_trailer=""
13057 if test "$ac_cv_c_dot_previous" = "yes"
13058 then
13059    asm_func_trailer="\\n\\t.previous"
13060 fi
13061 if test "$ac_cv_c_cfi_support" = "yes"
13062 then
13063    asm_func_header="$asm_func_header.cfi_startproc\\n\\t"
13064    asm_func_trailer="\\n\\t.cfi_endproc$asm_func_trailer"
13065
13066 $as_echo "#define __ASM_CFI(str) str" >>confdefs.h
13067
13068    UNWINDFLAGS=-fasynchronous-unwind-tables
13069
13070 else
13071    $as_echo "#define __ASM_CFI(str) \"\"" >>confdefs.h
13072
13073 fi
13074
13075 asm_func_code="$asm_func_header\" code \"$asm_func_trailer"
13076
13077
13078 if test "$ac_cv_c_asm_outside_funcs" = "yes"
13079 then
13080     cat >>confdefs.h <<_ACEOF
13081 #define __ASM_DEFINE_FUNC(name,suffix,code) asm(".text\n\t.align 4\n\t$asm_func_code");
13082 _ACEOF
13083
13084 else
13085     cat >>confdefs.h <<_ACEOF
13086 #define __ASM_DEFINE_FUNC(name,suffix,code) void __asm_dummy_##name(void) { asm(".text\n\t.align 4\n\t$asm_func_code"); }
13087 _ACEOF
13088
13089 fi
13090
13091 $as_echo "#define __ASM_GLOBAL_FUNC(name,code) __ASM_DEFINE_FUNC(name,\"\",code)" >>confdefs.h
13092
13093
13094 $as_echo "#define __ASM_STDCALL_FUNC(name,args,code) __ASM_DEFINE_FUNC(name,__ASM_STDCALL(args),code)" >>confdefs.h
13095
13096
13097
13098 LDPATH=""
13099
13100 case $build_os in
13101   cygwin*|mingw32*)
13102     TOOLSEXT=".exe"
13103
13104     LDPATH="PATH=\"\$(TOOLSDIR)/libs/wine:\$\$PATH\""
13105     ;;
13106   darwin*|macosx*)
13107     ;;
13108   *)
13109     LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$LD_LIBRARY_PATH\""
13110     ;;
13111 esac
13112
13113 case $host_os in
13114   mingw32*)
13115     CRTLIBS="-lmsvcrt"
13116
13117     SOCKETLIBS="-L\$(top_builddir)/dlls/ws2_32 -lws2_32"
13118
13119     ;;
13120 esac
13121
13122 MAIN_BINARY="wine"
13123
13124 test "x$enable_win64" != "xyes" || MAIN_BINARY="wine64"
13125
13126 case $host_os in
13127   linux*)
13128     case $host_cpu in
13129       *i[3456789]86*) EXTRA_BINARIES="wine-preloader"
13130  ;;
13131       x86_64*) EXTRA_BINARIES="wine64-preloader"
13132  ;;
13133     esac
13134     ;;
13135 esac
13136
13137
13138 ac_save_CFLAGS="$CFLAGS"
13139 CFLAGS="$CFLAGS $BUILTINFLAG"
13140 for ac_func in \
13141         _finite \
13142         _isnan \
13143         _pclose \
13144         _popen \
13145         _snprintf \
13146         _spawnvp \
13147         _strdup \
13148         _stricmp \
13149         _strnicmp \
13150         _strtoi64 \
13151         _strtoui64 \
13152         _vsnprintf \
13153         asctime_r \
13154         chsize \
13155         dlopen \
13156         epoll_create \
13157         ffs \
13158         finite \
13159         fnmatch \
13160         fork \
13161         fpclass \
13162         fstatfs \
13163         fstatvfs \
13164         ftruncate \
13165         futimens \
13166         futimes \
13167         futimesat \
13168         getattrlist \
13169         getdirentries \
13170         getopt_long_only \
13171         getpwuid \
13172         gettimeofday \
13173         getuid \
13174         kqueue \
13175         lstat \
13176         memmove \
13177         mmap \
13178         pclose \
13179         pipe2 \
13180         poll \
13181         popen \
13182         port_create \
13183         prctl \
13184         pread \
13185         pwrite \
13186         readdir \
13187         readlink \
13188         sched_yield \
13189         select \
13190         setproctitle \
13191         setrlimit \
13192         settimeofday \
13193         sigaltstack \
13194         sigprocmask \
13195         snprintf \
13196         spawnvp \
13197         statfs \
13198         statvfs \
13199         strcasecmp \
13200         strdup \
13201         strerror \
13202         strncasecmp \
13203         strtold \
13204         strtoll \
13205         strtoull \
13206         symlink \
13207         tcgetattr \
13208         thr_kill2 \
13209         timegm \
13210         usleep \
13211         vsnprintf
13212
13213 do :
13214   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13215 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13216 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13217   cat >>confdefs.h <<_ACEOF
13218 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13219 _ACEOF
13220
13221 fi
13222 done
13223
13224 CFLAGS="$ac_save_CFLAGS"
13225
13226 if test "$ac_cv_func_dlopen" = no
13227 then
13228     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13229 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13230 if ${ac_cv_lib_dl_dlopen+:} false; then :
13231   $as_echo_n "(cached) " >&6
13232 else
13233   ac_check_lib_save_LIBS=$LIBS
13234 LIBS="-ldl  $LIBS"
13235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13236 /* end confdefs.h.  */
13237
13238 /* Override any GCC internal prototype to avoid an error.
13239    Use char because int might match the return type of a GCC
13240    builtin and then its argument prototype would still apply.  */
13241 #ifdef __cplusplus
13242 extern "C"
13243 #endif
13244 char dlopen ();
13245 int
13246 main ()
13247 {
13248 return dlopen ();
13249   ;
13250   return 0;
13251 }
13252 _ACEOF
13253 if ac_fn_c_try_link "$LINENO"; then :
13254   ac_cv_lib_dl_dlopen=yes
13255 else
13256   ac_cv_lib_dl_dlopen=no
13257 fi
13258 rm -f core conftest.err conftest.$ac_objext \
13259     conftest$ac_exeext conftest.$ac_ext
13260 LIBS=$ac_check_lib_save_LIBS
13261 fi
13262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13263 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13264 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13265   $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
13266  LIBDL="-ldl"
13267
13268 fi
13269
13270 fi
13271 ac_wine_check_funcs_save_LIBS="$LIBS"
13272 LIBS="$LIBS $LIBDL"
13273 for ac_func in dladdr
13274 do :
13275   ac_fn_c_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr"
13276 if test "x$ac_cv_func_dladdr" = xyes; then :
13277   cat >>confdefs.h <<_ACEOF
13278 #define HAVE_DLADDR 1
13279 _ACEOF
13280
13281 fi
13282 done
13283
13284 LIBS="$ac_wine_check_funcs_save_LIBS"
13285
13286 if test "$ac_cv_func_poll" = no
13287 then
13288     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for poll in -lpoll" >&5
13289 $as_echo_n "checking for poll in -lpoll... " >&6; }
13290 if ${ac_cv_lib_poll_poll+:} false; then :
13291   $as_echo_n "(cached) " >&6
13292 else
13293   ac_check_lib_save_LIBS=$LIBS
13294 LIBS="-lpoll  $LIBS"
13295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13296 /* end confdefs.h.  */
13297
13298 /* Override any GCC internal prototype to avoid an error.
13299    Use char because int might match the return type of a GCC
13300    builtin and then its argument prototype would still apply.  */
13301 #ifdef __cplusplus
13302 extern "C"
13303 #endif
13304 char poll ();
13305 int
13306 main ()
13307 {
13308 return poll ();
13309   ;
13310   return 0;
13311 }
13312 _ACEOF
13313 if ac_fn_c_try_link "$LINENO"; then :
13314   ac_cv_lib_poll_poll=yes
13315 else
13316   ac_cv_lib_poll_poll=no
13317 fi
13318 rm -f core conftest.err conftest.$ac_objext \
13319     conftest$ac_exeext conftest.$ac_ext
13320 LIBS=$ac_check_lib_save_LIBS
13321 fi
13322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_poll_poll" >&5
13323 $as_echo "$ac_cv_lib_poll_poll" >&6; }
13324 if test "x$ac_cv_lib_poll_poll" = xyes; then :
13325   $as_echo "#define HAVE_POLL 1" >>confdefs.h
13326  LIBPOLL="-lpoll"
13327
13328 fi
13329
13330 fi
13331
13332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
13333 $as_echo_n "checking for library containing gethostbyname... " >&6; }
13334 if ${ac_cv_search_gethostbyname+:} false; then :
13335   $as_echo_n "(cached) " >&6
13336 else
13337   ac_func_search_save_LIBS=$LIBS
13338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13339 /* end confdefs.h.  */
13340
13341 /* Override any GCC internal prototype to avoid an error.
13342    Use char because int might match the return type of a GCC
13343    builtin and then its argument prototype would still apply.  */
13344 #ifdef __cplusplus
13345 extern "C"
13346 #endif
13347 char gethostbyname ();
13348 int
13349 main ()
13350 {
13351 return gethostbyname ();
13352   ;
13353   return 0;
13354 }
13355 _ACEOF
13356 for ac_lib in '' nsl; do
13357   if test -z "$ac_lib"; then
13358     ac_res="none required"
13359   else
13360     ac_res=-l$ac_lib
13361     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13362   fi
13363   if ac_fn_c_try_link "$LINENO"; then :
13364   ac_cv_search_gethostbyname=$ac_res
13365 fi
13366 rm -f core conftest.err conftest.$ac_objext \
13367     conftest$ac_exeext
13368   if ${ac_cv_search_gethostbyname+:} false; then :
13369   break
13370 fi
13371 done
13372 if ${ac_cv_search_gethostbyname+:} false; then :
13373
13374 else
13375   ac_cv_search_gethostbyname=no
13376 fi
13377 rm conftest.$ac_ext
13378 LIBS=$ac_func_search_save_LIBS
13379 fi
13380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
13381 $as_echo "$ac_cv_search_gethostbyname" >&6; }
13382 ac_res=$ac_cv_search_gethostbyname
13383 if test "$ac_res" != no; then :
13384   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13385
13386 fi
13387
13388
13389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5
13390 $as_echo_n "checking for library containing connect... " >&6; }
13391 if ${ac_cv_search_connect+:} false; then :
13392   $as_echo_n "(cached) " >&6
13393 else
13394   ac_func_search_save_LIBS=$LIBS
13395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13396 /* end confdefs.h.  */
13397
13398 /* Override any GCC internal prototype to avoid an error.
13399    Use char because int might match the return type of a GCC
13400    builtin and then its argument prototype would still apply.  */
13401 #ifdef __cplusplus
13402 extern "C"
13403 #endif
13404 char connect ();
13405 int
13406 main ()
13407 {
13408 return connect ();
13409   ;
13410   return 0;
13411 }
13412 _ACEOF
13413 for ac_lib in '' socket; do
13414   if test -z "$ac_lib"; then
13415     ac_res="none required"
13416   else
13417     ac_res=-l$ac_lib
13418     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13419   fi
13420   if ac_fn_c_try_link "$LINENO"; then :
13421   ac_cv_search_connect=$ac_res
13422 fi
13423 rm -f core conftest.err conftest.$ac_objext \
13424     conftest$ac_exeext
13425   if ${ac_cv_search_connect+:} false; then :
13426   break
13427 fi
13428 done
13429 if ${ac_cv_search_connect+:} false; then :
13430
13431 else
13432   ac_cv_search_connect=no
13433 fi
13434 rm conftest.$ac_ext
13435 LIBS=$ac_func_search_save_LIBS
13436 fi
13437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5
13438 $as_echo "$ac_cv_search_connect" >&6; }
13439 ac_res=$ac_cv_search_connect
13440 if test "$ac_res" != no; then :
13441   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13442
13443 fi
13444
13445
13446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
13447 $as_echo_n "checking for library containing inet_aton... " >&6; }
13448 if ${ac_cv_search_inet_aton+:} false; then :
13449   $as_echo_n "(cached) " >&6
13450 else
13451   ac_func_search_save_LIBS=$LIBS
13452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13453 /* end confdefs.h.  */
13454
13455 /* Override any GCC internal prototype to avoid an error.
13456    Use char because int might match the return type of a GCC
13457    builtin and then its argument prototype would still apply.  */
13458 #ifdef __cplusplus
13459 extern "C"
13460 #endif
13461 char inet_aton ();
13462 int
13463 main ()
13464 {
13465 return inet_aton ();
13466   ;
13467   return 0;
13468 }
13469 _ACEOF
13470 for ac_lib in '' resolv; do
13471   if test -z "$ac_lib"; then
13472     ac_res="none required"
13473   else
13474     ac_res=-l$ac_lib
13475     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13476   fi
13477   if ac_fn_c_try_link "$LINENO"; then :
13478   ac_cv_search_inet_aton=$ac_res
13479 fi
13480 rm -f core conftest.err conftest.$ac_objext \
13481     conftest$ac_exeext
13482   if ${ac_cv_search_inet_aton+:} false; then :
13483   break
13484 fi
13485 done
13486 if ${ac_cv_search_inet_aton+:} false; then :
13487
13488 else
13489   ac_cv_search_inet_aton=no
13490 fi
13491 rm conftest.$ac_ext
13492 LIBS=$ac_func_search_save_LIBS
13493 fi
13494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
13495 $as_echo "$ac_cv_search_inet_aton" >&6; }
13496 ac_res=$ac_cv_search_inet_aton
13497 if test "$ac_res" != no; then :
13498   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13499
13500 fi
13501
13502
13503 for ac_func in \
13504         getaddrinfo \
13505         getnameinfo \
13506         getnetbyname \
13507         getprotobyname \
13508         getprotobynumber \
13509         getservbyport \
13510         inet_network \
13511         inet_ntop \
13512         inet_pton \
13513         sendmsg \
13514         socketpair \
13515
13516 do :
13517   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13518 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13519 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13520   cat >>confdefs.h <<_ACEOF
13521 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13522 _ACEOF
13523
13524 fi
13525 done
13526
13527
13528 ac_save_LIBS=$LIBS
13529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
13530 $as_echo_n "checking for library containing clock_gettime... " >&6; }
13531 if ${ac_cv_search_clock_gettime+:} false; then :
13532   $as_echo_n "(cached) " >&6
13533 else
13534   ac_func_search_save_LIBS=$LIBS
13535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13536 /* end confdefs.h.  */
13537
13538 /* Override any GCC internal prototype to avoid an error.
13539    Use char because int might match the return type of a GCC
13540    builtin and then its argument prototype would still apply.  */
13541 #ifdef __cplusplus
13542 extern "C"
13543 #endif
13544 char clock_gettime ();
13545 int
13546 main ()
13547 {
13548 return clock_gettime ();
13549   ;
13550   return 0;
13551 }
13552 _ACEOF
13553 for ac_lib in '' rt; do
13554   if test -z "$ac_lib"; then
13555     ac_res="none required"
13556   else
13557     ac_res=-l$ac_lib
13558     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13559   fi
13560   if ac_fn_c_try_link "$LINENO"; then :
13561   ac_cv_search_clock_gettime=$ac_res
13562 fi
13563 rm -f core conftest.err conftest.$ac_objext \
13564     conftest$ac_exeext
13565   if ${ac_cv_search_clock_gettime+:} false; then :
13566   break
13567 fi
13568 done
13569 if ${ac_cv_search_clock_gettime+:} false; then :
13570
13571 else
13572   ac_cv_search_clock_gettime=no
13573 fi
13574 rm conftest.$ac_ext
13575 LIBS=$ac_func_search_save_LIBS
13576 fi
13577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
13578 $as_echo "$ac_cv_search_clock_gettime" >&6; }
13579 ac_res=$ac_cv_search_clock_gettime
13580 if test "$ac_res" != no; then :
13581   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13582
13583 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
13584
13585                 test "$ac_res" = "none required" || LIBRT="$ac_res"
13586
13587 fi
13588
13589 LIBS=$ac_save_LIBS
13590
13591 LDAPLIBS=""
13592
13593 if test "$ac_cv_header_ldap_h" = "yes" -a "$ac_cv_header_lber_h" = "yes"
13594 then
13595     ac_fn_c_check_type "$LINENO" "LDAPSortKey" "ac_cv_type_LDAPSortKey" "#include <ldap.h>
13596 "
13597 if test "x$ac_cv_type_LDAPSortKey" = xyes; then :
13598   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap_r" >&5
13599 $as_echo_n "checking for ldap_initialize in -lldap_r... " >&6; }
13600 if ${ac_cv_lib_ldap_r_ldap_initialize+:} false; then :
13601   $as_echo_n "(cached) " >&6
13602 else
13603   ac_check_lib_save_LIBS=$LIBS
13604 LIBS="-lldap_r $LIBPTHREAD $LIBS"
13605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13606 /* end confdefs.h.  */
13607
13608 /* Override any GCC internal prototype to avoid an error.
13609    Use char because int might match the return type of a GCC
13610    builtin and then its argument prototype would still apply.  */
13611 #ifdef __cplusplus
13612 extern "C"
13613 #endif
13614 char ldap_initialize ();
13615 int
13616 main ()
13617 {
13618 return ldap_initialize ();
13619   ;
13620   return 0;
13621 }
13622 _ACEOF
13623 if ac_fn_c_try_link "$LINENO"; then :
13624   ac_cv_lib_ldap_r_ldap_initialize=yes
13625 else
13626   ac_cv_lib_ldap_r_ldap_initialize=no
13627 fi
13628 rm -f core conftest.err conftest.$ac_objext \
13629     conftest$ac_exeext conftest.$ac_ext
13630 LIBS=$ac_check_lib_save_LIBS
13631 fi
13632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_r_ldap_initialize" >&5
13633 $as_echo "$ac_cv_lib_ldap_r_ldap_initialize" >&6; }
13634 if test "x$ac_cv_lib_ldap_r_ldap_initialize" = xyes; then :
13635   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_init in -llber" >&5
13636 $as_echo_n "checking for ber_init in -llber... " >&6; }
13637 if ${ac_cv_lib_lber_ber_init+:} false; then :
13638   $as_echo_n "(cached) " >&6
13639 else
13640   ac_check_lib_save_LIBS=$LIBS
13641 LIBS="-llber $LIBPTHREAD $LIBS"
13642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13643 /* end confdefs.h.  */
13644
13645 /* Override any GCC internal prototype to avoid an error.
13646    Use char because int might match the return type of a GCC
13647    builtin and then its argument prototype would still apply.  */
13648 #ifdef __cplusplus
13649 extern "C"
13650 #endif
13651 char ber_init ();
13652 int
13653 main ()
13654 {
13655 return ber_init ();
13656   ;
13657   return 0;
13658 }
13659 _ACEOF
13660 if ac_fn_c_try_link "$LINENO"; then :
13661   ac_cv_lib_lber_ber_init=yes
13662 else
13663   ac_cv_lib_lber_ber_init=no
13664 fi
13665 rm -f core conftest.err conftest.$ac_objext \
13666     conftest$ac_exeext conftest.$ac_ext
13667 LIBS=$ac_check_lib_save_LIBS
13668 fi
13669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_init" >&5
13670 $as_echo "$ac_cv_lib_lber_ber_init" >&6; }
13671 if test "x$ac_cv_lib_lber_ber_init" = xyes; then :
13672
13673 $as_echo "#define HAVE_LDAP 1" >>confdefs.h
13674
13675                  LDAPLIBS="-lldap_r -llber"
13676 fi
13677
13678 fi
13679
13680 fi
13681
13682     ac_wine_check_funcs_save_LIBS="$LIBS"
13683 LIBS="$LIBS $LDAPLIBS $LIBPTHREAD"
13684 for ac_func in \
13685         ldap_count_references \
13686         ldap_first_reference \
13687         ldap_next_reference \
13688         ldap_parse_reference \
13689         ldap_parse_sort_control \
13690         ldap_parse_sortresponse_control \
13691         ldap_parse_vlv_control \
13692         ldap_parse_vlvresponse_control
13693 do :
13694   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13695 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13696 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13697   cat >>confdefs.h <<_ACEOF
13698 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13699 _ACEOF
13700
13701 fi
13702 done
13703
13704 LIBS="$ac_wine_check_funcs_save_LIBS"
13705 fi
13706 if test "x$LDAPLIBS" = "x"; then :
13707   case "x$with_ldap" in
13708   x)   as_fn_append wine_notices "|libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported." ;;
13709   xno) ;;
13710   *)   as_fn_error $? "libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported.
13711 This is an error since --with-ldap was requested." "$LINENO" 5 ;;
13712 esac
13713 fi
13714
13715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir takes only one argument" >&5
13716 $as_echo_n "checking whether mkdir takes only one argument... " >&6; }
13717 if ${wine_cv_one_arg_mkdir+:} false; then :
13718   $as_echo_n "(cached) " >&6
13719 else
13720   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13721 /* end confdefs.h.  */
13722 #include <sys/stat.h>
13723 int
13724 main ()
13725 {
13726 mkdir("foo");
13727   ;
13728   return 0;
13729 }
13730 _ACEOF
13731 if ac_fn_c_try_compile "$LINENO"; then :
13732   wine_cv_one_arg_mkdir=yes
13733 else
13734   wine_cv_one_arg_mkdir=no
13735 fi
13736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13737 fi
13738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_one_arg_mkdir" >&5
13739 $as_echo "$wine_cv_one_arg_mkdir" >&6; }
13740 if test "$wine_cv_one_arg_mkdir" = "yes"
13741 then
13742
13743 $as_echo "#define HAVE_ONE_ARG_MKDIR 1" >>confdefs.h
13744
13745 fi
13746
13747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_setaffinity" >&5
13748 $as_echo_n "checking for sched_setaffinity... " >&6; }
13749 if ${wine_cv_have_sched_setaffinity+:} false; then :
13750   $as_echo_n "(cached) " >&6
13751 else
13752   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13753 /* end confdefs.h.  */
13754 #define _GNU_SOURCE
13755 #include <sched.h>
13756 int
13757 main ()
13758 {
13759 sched_setaffinity(0, 0, 0);
13760   ;
13761   return 0;
13762 }
13763 _ACEOF
13764 if ac_fn_c_try_link "$LINENO"; then :
13765   wine_cv_have_sched_setaffinity=yes
13766 else
13767   wine_cv_have_sched_setaffinity=no
13768 fi
13769 rm -f core conftest.err conftest.$ac_objext \
13770     conftest$ac_exeext conftest.$ac_ext
13771 fi
13772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sched_setaffinity" >&5
13773 $as_echo "$wine_cv_have_sched_setaffinity" >&6; }
13774 if test "$wine_cv_have_sched_setaffinity" = "yes"
13775 then
13776
13777 $as_echo "#define HAVE_SCHED_SETAFFINITY 1" >>confdefs.h
13778
13779 fi
13780
13781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fallocate" >&5
13782 $as_echo_n "checking for fallocate... " >&6; }
13783 if ${wine_cv_have_fallocate+:} false; then :
13784   $as_echo_n "(cached) " >&6
13785 else
13786   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13787 /* end confdefs.h.  */
13788 #define _GNU_SOURCE
13789 #include <fcntl.h>
13790 int
13791 main ()
13792 {
13793 fallocate(-1, 0, 0, 0);
13794   ;
13795   return 0;
13796 }
13797 _ACEOF
13798 if ac_fn_c_try_link "$LINENO"; then :
13799   wine_cv_have_fallocate=yes
13800 else
13801   wine_cv_have_fallocate=no
13802 fi
13803 rm -f core conftest.err conftest.$ac_objext \
13804     conftest$ac_exeext conftest.$ac_ext
13805 fi
13806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_fallocate" >&5
13807 $as_echo "$wine_cv_have_fallocate" >&6; }
13808 if test "$wine_cv_have_fallocate" = "yes"
13809 then
13810
13811 $as_echo "#define HAVE_FALLOCATE 1" >>confdefs.h
13812
13813 fi
13814
13815
13816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13817 $as_echo_n "checking for inline... " >&6; }
13818 if ${ac_cv_c_inline+:} false; then :
13819   $as_echo_n "(cached) " >&6
13820 else
13821   ac_cv_c_inline=no
13822 for ac_kw in inline __inline__ __inline; do
13823   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13824 /* end confdefs.h.  */
13825 #ifndef __cplusplus
13826 typedef int foo_t;
13827 static $ac_kw foo_t static_foo () {return 0; }
13828 $ac_kw foo_t foo () {return 0; }
13829 #endif
13830
13831 _ACEOF
13832 if ac_fn_c_try_compile "$LINENO"; then :
13833   ac_cv_c_inline=$ac_kw
13834 fi
13835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13836   test "$ac_cv_c_inline" != no && break
13837 done
13838
13839 fi
13840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13841 $as_echo "$ac_cv_c_inline" >&6; }
13842
13843 case $ac_cv_c_inline in
13844   inline | yes) ;;
13845   *)
13846     case $ac_cv_c_inline in
13847       no) ac_val=;;
13848       *) ac_val=$ac_cv_c_inline;;
13849     esac
13850     cat >>confdefs.h <<_ACEOF
13851 #ifndef __cplusplus
13852 #define inline $ac_val
13853 #endif
13854 _ACEOF
13855     ;;
13856 esac
13857
13858 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
13859 if test "x$ac_cv_type_mode_t" = xyes; then :
13860
13861 cat >>confdefs.h <<_ACEOF
13862 #define HAVE_MODE_T 1
13863 _ACEOF
13864
13865
13866 fi
13867 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
13868 if test "x$ac_cv_type_off_t" = xyes; then :
13869
13870 cat >>confdefs.h <<_ACEOF
13871 #define HAVE_OFF_T 1
13872 _ACEOF
13873
13874
13875 fi
13876 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13877 if test "x$ac_cv_type_pid_t" = xyes; then :
13878
13879 cat >>confdefs.h <<_ACEOF
13880 #define HAVE_PID_T 1
13881 _ACEOF
13882
13883
13884 fi
13885 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13886 if test "x$ac_cv_type_size_t" = xyes; then :
13887
13888 cat >>confdefs.h <<_ACEOF
13889 #define HAVE_SIZE_T 1
13890 _ACEOF
13891
13892
13893 fi
13894 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
13895 if test "x$ac_cv_type_ssize_t" = xyes; then :
13896
13897 cat >>confdefs.h <<_ACEOF
13898 #define HAVE_SSIZE_T 1
13899 _ACEOF
13900
13901
13902 fi
13903 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
13904 if test "x$ac_cv_type_long_long" = xyes; then :
13905
13906 cat >>confdefs.h <<_ACEOF
13907 #define HAVE_LONG_LONG 1
13908 _ACEOF
13909
13910
13911 fi
13912 ac_fn_c_check_type "$LINENO" "fsblkcnt_t" "ac_cv_type_fsblkcnt_t" "$ac_includes_default"
13913 if test "x$ac_cv_type_fsblkcnt_t" = xyes; then :
13914
13915 cat >>confdefs.h <<_ACEOF
13916 #define HAVE_FSBLKCNT_T 1
13917 _ACEOF
13918
13919
13920 fi
13921 ac_fn_c_check_type "$LINENO" "fsfilcnt_t" "ac_cv_type_fsfilcnt_t" "$ac_includes_default"
13922 if test "x$ac_cv_type_fsfilcnt_t" = xyes; then :
13923
13924 cat >>confdefs.h <<_ACEOF
13925 #define HAVE_FSFILCNT_T 1
13926 _ACEOF
13927
13928
13929 fi
13930
13931 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "#include <sys/types.h>
13932 #include <signal.h>
13933 "
13934 if test "x$ac_cv_type_sigset_t" = xyes; then :
13935
13936 cat >>confdefs.h <<_ACEOF
13937 #define HAVE_SIGSET_T 1
13938 _ACEOF
13939
13940
13941 fi
13942
13943 ac_fn_c_check_type "$LINENO" "request_sense" "ac_cv_type_request_sense" "#include <linux/cdrom.h>
13944 "
13945 if test "x$ac_cv_type_request_sense" = xyes; then :
13946
13947 cat >>confdefs.h <<_ACEOF
13948 #define HAVE_REQUEST_SENSE 1
13949 _ACEOF
13950
13951
13952 fi
13953
13954
13955 ac_fn_c_check_type "$LINENO" "struct xinpgen" "ac_cv_type_struct_xinpgen" "#include <sys/types.h>
13956 #ifdef HAVE_SYS_SOCKET_H
13957 #include <sys/socket.h>
13958 #endif
13959 #ifdef HAVE_SYS_SOCKETVAR_H
13960 #include <sys/socketvar.h>
13961 #endif
13962 #ifdef HAVE_NET_ROUTE_H
13963 #include <net/route.h>
13964 #endif
13965 #ifdef HAVE_NETINET_IN_H
13966 #include <netinet/in.h>
13967 #endif
13968 #ifdef HAVE_NETINET_IN_SYSTM_H
13969 #include <netinet/in_systm.h>
13970 #endif
13971 #ifdef HAVE_NETINET_IP_H
13972 #include <netinet/ip.h>
13973 #endif
13974 #ifdef HAVE_NETINET_IN_PCB_H
13975 #include <netinet/in_pcb.h>
13976 #endif
13977 "
13978 if test "x$ac_cv_type_struct_xinpgen" = xyes; then :
13979
13980 cat >>confdefs.h <<_ACEOF
13981 #define HAVE_STRUCT_XINPGEN 1
13982 _ACEOF
13983
13984
13985 fi
13986
13987
13988 ac_fn_c_check_member "$LINENO" "struct ff_effect" "direction" "ac_cv_member_struct_ff_effect_direction" "#ifdef HAVE_LINUX_INPUT_H
13989 #include <linux/input.h>
13990 #endif
13991 "
13992 if test "x$ac_cv_member_struct_ff_effect_direction" = xyes; then :
13993
13994 cat >>confdefs.h <<_ACEOF
13995 #define HAVE_STRUCT_FF_EFFECT_DIRECTION 1
13996 _ACEOF
13997
13998
13999 fi
14000
14001
14002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigaddset" >&5
14003 $as_echo_n "checking for sigaddset... " >&6; }
14004 if ${wine_cv_have_sigaddset+:} false; then :
14005   $as_echo_n "(cached) " >&6
14006 else
14007   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14008 /* end confdefs.h.  */
14009 #include <signal.h>
14010 int
14011 main ()
14012 {
14013 sigset_t set; sigaddset(&set,SIGTERM);
14014   ;
14015   return 0;
14016 }
14017 _ACEOF
14018 if ac_fn_c_try_link "$LINENO"; then :
14019   wine_cv_have_sigaddset=yes
14020 else
14021   wine_cv_have_sigaddset=no
14022 fi
14023 rm -f core conftest.err conftest.$ac_objext \
14024     conftest$ac_exeext conftest.$ac_ext
14025 fi
14026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sigaddset" >&5
14027 $as_echo "$wine_cv_have_sigaddset" >&6; }
14028 if test "$wine_cv_have_sigaddset" = "yes"
14029 then
14030
14031 $as_echo "#define HAVE_SIGADDSET 1" >>confdefs.h
14032
14033 fi
14034
14035
14036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
14037 $as_echo_n "checking whether we can use re-entrant gethostbyname_r Linux style... " >&6; }
14038 if ${wine_cv_linux_gethostbyname_r_6+:} false; then :
14039   $as_echo_n "(cached) " >&6
14040 else
14041   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14042 /* end confdefs.h.  */
14043 #include <netdb.h>
14044 int
14045 main ()
14046 {
14047
14048     char *name=0;
14049     struct hostent he;
14050     struct hostent *result;
14051     char *buf=0;
14052     int bufsize=0;
14053     int errnr;
14054     char *addr=0;
14055     int addrlen=0;
14056     int addrtype=0;
14057     gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
14058     gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
14059
14060   ;
14061   return 0;
14062 }
14063 _ACEOF
14064 if ac_fn_c_try_link "$LINENO"; then :
14065   wine_cv_linux_gethostbyname_r_6=yes
14066 else
14067   wine_cv_linux_gethostbyname_r_6=no
14068
14069 fi
14070 rm -f core conftest.err conftest.$ac_objext \
14071     conftest$ac_exeext conftest.$ac_ext
14072
14073 fi
14074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_gethostbyname_r_6" >&5
14075 $as_echo "$wine_cv_linux_gethostbyname_r_6" >&6; }
14076    if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
14077    then
14078
14079 $as_echo "#define HAVE_LINUX_GETHOSTBYNAME_R_6 1" >>confdefs.h
14080
14081    fi
14082
14083 if test "$ac_cv_header_linux_joystick_h" = "yes"
14084 then
14085    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
14086 $as_echo_n "checking whether linux/joystick.h uses the Linux 2.2+ API... " >&6; }
14087 if ${wine_cv_linux_joystick_22_api+:} false; then :
14088   $as_echo_n "(cached) " >&6
14089 else
14090   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14091 /* end confdefs.h.  */
14092
14093         #include <sys/ioctl.h>
14094         #include <sys/types.h>
14095         #include <linux/joystick.h>
14096
14097         struct js_event blub;
14098         #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
14099         #error "no 2.2 header"
14100         #endif
14101
14102 int
14103 main ()
14104 {
14105 /*empty*/
14106   ;
14107   return 0;
14108 }
14109 _ACEOF
14110 if ac_fn_c_try_compile "$LINENO"; then :
14111   wine_cv_linux_joystick_22_api=yes
14112 else
14113   wine_cv_linux_joystick_22_api=no
14114 fi
14115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14116
14117 fi
14118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_joystick_22_api" >&5
14119 $as_echo "$wine_cv_linux_joystick_22_api" >&6; }
14120    if test "$wine_cv_linux_joystick_22_api" = "yes"
14121    then
14122
14123 $as_echo "#define HAVE_LINUX_22_JOYSTICK_API 1" >>confdefs.h
14124
14125    fi
14126 fi
14127
14128
14129 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bfree" "ac_cv_member_struct_statfs_f_bfree" "#include <sys/types.h>
14130 #ifdef HAVE_SYS_PARAM_H
14131 # include <sys/param.h>
14132 #endif
14133 #ifdef HAVE_SYS_MOUNT_H
14134 # include <sys/mount.h>
14135 #endif
14136 #ifdef HAVE_SYS_VFS_H
14137 # include <sys/vfs.h>
14138 #endif
14139 #ifdef HAVE_SYS_STATFS_H
14140 # include <sys/statfs.h>
14141 #endif
14142 "
14143 if test "x$ac_cv_member_struct_statfs_f_bfree" = xyes; then :
14144
14145 cat >>confdefs.h <<_ACEOF
14146 #define HAVE_STRUCT_STATFS_F_BFREE 1
14147 _ACEOF
14148
14149
14150 fi
14151 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bavail" "ac_cv_member_struct_statfs_f_bavail" "#include <sys/types.h>
14152 #ifdef HAVE_SYS_PARAM_H
14153 # include <sys/param.h>
14154 #endif
14155 #ifdef HAVE_SYS_MOUNT_H
14156 # include <sys/mount.h>
14157 #endif
14158 #ifdef HAVE_SYS_VFS_H
14159 # include <sys/vfs.h>
14160 #endif
14161 #ifdef HAVE_SYS_STATFS_H
14162 # include <sys/statfs.h>
14163 #endif
14164 "
14165 if test "x$ac_cv_member_struct_statfs_f_bavail" = xyes; then :
14166
14167 cat >>confdefs.h <<_ACEOF
14168 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
14169 _ACEOF
14170
14171
14172 fi
14173 ac_fn_c_check_member "$LINENO" "struct statfs" "f_frsize" "ac_cv_member_struct_statfs_f_frsize" "#include <sys/types.h>
14174 #ifdef HAVE_SYS_PARAM_H
14175 # include <sys/param.h>
14176 #endif
14177 #ifdef HAVE_SYS_MOUNT_H
14178 # include <sys/mount.h>
14179 #endif
14180 #ifdef HAVE_SYS_VFS_H
14181 # include <sys/vfs.h>
14182 #endif
14183 #ifdef HAVE_SYS_STATFS_H
14184 # include <sys/statfs.h>
14185 #endif
14186 "
14187 if test "x$ac_cv_member_struct_statfs_f_frsize" = xyes; then :
14188
14189 cat >>confdefs.h <<_ACEOF
14190 #define HAVE_STRUCT_STATFS_F_FRSIZE 1
14191 _ACEOF
14192
14193
14194 fi
14195 ac_fn_c_check_member "$LINENO" "struct statfs" "f_ffree" "ac_cv_member_struct_statfs_f_ffree" "#include <sys/types.h>
14196 #ifdef HAVE_SYS_PARAM_H
14197 # include <sys/param.h>
14198 #endif
14199 #ifdef HAVE_SYS_MOUNT_H
14200 # include <sys/mount.h>
14201 #endif
14202 #ifdef HAVE_SYS_VFS_H
14203 # include <sys/vfs.h>
14204 #endif
14205 #ifdef HAVE_SYS_STATFS_H
14206 # include <sys/statfs.h>
14207 #endif
14208 "
14209 if test "x$ac_cv_member_struct_statfs_f_ffree" = xyes; then :
14210
14211 cat >>confdefs.h <<_ACEOF
14212 #define HAVE_STRUCT_STATFS_F_FFREE 1
14213 _ACEOF
14214
14215
14216 fi
14217 ac_fn_c_check_member "$LINENO" "struct statfs" "f_favail" "ac_cv_member_struct_statfs_f_favail" "#include <sys/types.h>
14218 #ifdef HAVE_SYS_PARAM_H
14219 # include <sys/param.h>
14220 #endif
14221 #ifdef HAVE_SYS_MOUNT_H
14222 # include <sys/mount.h>
14223 #endif
14224 #ifdef HAVE_SYS_VFS_H
14225 # include <sys/vfs.h>
14226 #endif
14227 #ifdef HAVE_SYS_STATFS_H
14228 # include <sys/statfs.h>
14229 #endif
14230 "
14231 if test "x$ac_cv_member_struct_statfs_f_favail" = xyes; then :
14232
14233 cat >>confdefs.h <<_ACEOF
14234 #define HAVE_STRUCT_STATFS_F_FAVAIL 1
14235 _ACEOF
14236
14237
14238 fi
14239 ac_fn_c_check_member "$LINENO" "struct statfs" "f_namelen" "ac_cv_member_struct_statfs_f_namelen" "#include <sys/types.h>
14240 #ifdef HAVE_SYS_PARAM_H
14241 # include <sys/param.h>
14242 #endif
14243 #ifdef HAVE_SYS_MOUNT_H
14244 # include <sys/mount.h>
14245 #endif
14246 #ifdef HAVE_SYS_VFS_H
14247 # include <sys/vfs.h>
14248 #endif
14249 #ifdef HAVE_SYS_STATFS_H
14250 # include <sys/statfs.h>
14251 #endif
14252 "
14253 if test "x$ac_cv_member_struct_statfs_f_namelen" = xyes; then :
14254
14255 cat >>confdefs.h <<_ACEOF
14256 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
14257 _ACEOF
14258
14259
14260 fi
14261
14262
14263 ac_fn_c_check_member "$LINENO" "struct statvfs" "f_blocks" "ac_cv_member_struct_statvfs_f_blocks" "#ifdef HAVE_SYS_STATVFS_H
14264 #include <sys/statvfs.h>
14265 #endif
14266 "
14267 if test "x$ac_cv_member_struct_statvfs_f_blocks" = xyes; then :
14268
14269 cat >>confdefs.h <<_ACEOF
14270 #define HAVE_STRUCT_STATVFS_F_BLOCKS 1
14271 _ACEOF
14272
14273
14274 fi
14275
14276
14277 ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#ifdef HAVE_DIRENT_H
14278 #include <dirent.h>
14279 #endif
14280 "
14281 if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then :
14282
14283 cat >>confdefs.h <<_ACEOF
14284 #define HAVE_STRUCT_DIRENT_D_RECLEN 1
14285 _ACEOF
14286
14287
14288 fi
14289
14290
14291 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_accrights" "ac_cv_member_struct_msghdr_msg_accrights" "#include <sys/types.h>
14292 #ifdef HAVE_SYS_SOCKET_H
14293 # include <sys/socket.h>
14294 #endif
14295 #ifdef HAVE_SYS_UN_H
14296 # include <sys/un.h>
14297 #endif
14298 "
14299 if test "x$ac_cv_member_struct_msghdr_msg_accrights" = xyes; then :
14300
14301 cat >>confdefs.h <<_ACEOF
14302 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
14303 _ACEOF
14304
14305
14306 fi
14307 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
14308 #ifdef HAVE_SYS_SOCKET_H
14309 # include <sys/socket.h>
14310 #endif
14311 #ifdef HAVE_SYS_UN_H
14312 # include <sys/un.h>
14313 #endif
14314 "
14315 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
14316
14317 cat >>confdefs.h <<_ACEOF
14318 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
14319 _ACEOF
14320
14321
14322 fi
14323 ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" "#include <sys/types.h>
14324 #ifdef HAVE_SYS_SOCKET_H
14325 # include <sys/socket.h>
14326 #endif
14327 #ifdef HAVE_SYS_UN_H
14328 # include <sys/un.h>
14329 #endif
14330 "
14331 if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes; then :
14332
14333 cat >>confdefs.h <<_ACEOF
14334 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
14335 _ACEOF
14336
14337
14338 fi
14339
14340
14341 ac_fn_c_check_member "$LINENO" "scsireq_t" "cmd" "ac_cv_member_scsireq_t_cmd" "#include <sys/types.h>
14342 #ifdef HAVE_SCSI_SG_H
14343 #include <scsi/sg.h>
14344 #endif
14345 "
14346 if test "x$ac_cv_member_scsireq_t_cmd" = xyes; then :
14347
14348 cat >>confdefs.h <<_ACEOF
14349 #define HAVE_SCSIREQ_T_CMD 1
14350 _ACEOF
14351
14352
14353 fi
14354 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>
14355 #ifdef HAVE_SCSI_SG_H
14356 #include <scsi/sg.h>
14357 #endif
14358 "
14359 if test "x$ac_cv_member_sg_io_hdr_t_interface_id" = xyes; then :
14360
14361 cat >>confdefs.h <<_ACEOF
14362 #define HAVE_SG_IO_HDR_T_INTERFACE_ID 1
14363 _ACEOF
14364
14365
14366 fi
14367
14368
14369 ac_fn_c_check_member "$LINENO" "siginfo_t" "si_fd" "ac_cv_member_siginfo_t_si_fd" "#include <signal.h>
14370 "
14371 if test "x$ac_cv_member_siginfo_t_si_fd" = xyes; then :
14372
14373 cat >>confdefs.h <<_ACEOF
14374 #define HAVE_SIGINFO_T_SI_FD 1
14375 _ACEOF
14376
14377
14378 fi
14379
14380
14381 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blksiz" "ac_cv_member_struct_mtget_mt_blksiz" "#include <sys/types.h>
14382 #ifdef HAVE_SYS_MTIO_H
14383 #include <sys/mtio.h>
14384 #endif
14385 "
14386 if test "x$ac_cv_member_struct_mtget_mt_blksiz" = xyes; then :
14387
14388 cat >>confdefs.h <<_ACEOF
14389 #define HAVE_STRUCT_MTGET_MT_BLKSIZ 1
14390 _ACEOF
14391
14392
14393 fi
14394 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_gstat" "ac_cv_member_struct_mtget_mt_gstat" "#include <sys/types.h>
14395 #ifdef HAVE_SYS_MTIO_H
14396 #include <sys/mtio.h>
14397 #endif
14398 "
14399 if test "x$ac_cv_member_struct_mtget_mt_gstat" = xyes; then :
14400
14401 cat >>confdefs.h <<_ACEOF
14402 #define HAVE_STRUCT_MTGET_MT_GSTAT 1
14403 _ACEOF
14404
14405
14406 fi
14407 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blkno" "ac_cv_member_struct_mtget_mt_blkno" "#include <sys/types.h>
14408 #ifdef HAVE_SYS_MTIO_H
14409 #include <sys/mtio.h>
14410 #endif
14411 "
14412 if test "x$ac_cv_member_struct_mtget_mt_blkno" = xyes; then :
14413
14414 cat >>confdefs.h <<_ACEOF
14415 #define HAVE_STRUCT_MTGET_MT_BLKNO 1
14416 _ACEOF
14417
14418
14419 fi
14420
14421
14422 ac_fn_c_check_member "$LINENO" "struct option" "name" "ac_cv_member_struct_option_name" "#ifdef HAVE_GETOPT_H
14423 #include <getopt.h>
14424 #endif
14425 "
14426 if test "x$ac_cv_member_struct_option_name" = xyes; then :
14427
14428 cat >>confdefs.h <<_ACEOF
14429 #define HAVE_STRUCT_OPTION_NAME 1
14430 _ACEOF
14431
14432
14433 fi
14434
14435
14436 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
14437 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
14438
14439 cat >>confdefs.h <<_ACEOF
14440 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
14441 _ACEOF
14442
14443
14444 fi
14445 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
14446 if test "x$ac_cv_member_struct_stat_st_mtim" = xyes; then :
14447
14448 cat >>confdefs.h <<_ACEOF
14449 #define HAVE_STRUCT_STAT_ST_MTIM 1
14450 _ACEOF
14451
14452
14453 fi
14454 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimespec" "ac_cv_member_struct_stat_st_mtimespec" "$ac_includes_default"
14455 if test "x$ac_cv_member_struct_stat_st_mtimespec" = xyes; then :
14456
14457 cat >>confdefs.h <<_ACEOF
14458 #define HAVE_STRUCT_STAT_ST_MTIMESPEC 1
14459 _ACEOF
14460
14461
14462 fi
14463 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctim" "ac_cv_member_struct_stat_st_ctim" "$ac_includes_default"
14464 if test "x$ac_cv_member_struct_stat_st_ctim" = xyes; then :
14465
14466 cat >>confdefs.h <<_ACEOF
14467 #define HAVE_STRUCT_STAT_ST_CTIM 1
14468 _ACEOF
14469
14470
14471 fi
14472 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctimespec" "ac_cv_member_struct_stat_st_ctimespec" "$ac_includes_default"
14473 if test "x$ac_cv_member_struct_stat_st_ctimespec" = xyes; then :
14474
14475 cat >>confdefs.h <<_ACEOF
14476 #define HAVE_STRUCT_STAT_ST_CTIMESPEC 1
14477 _ACEOF
14478
14479
14480 fi
14481 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
14482 if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
14483
14484 cat >>confdefs.h <<_ACEOF
14485 #define HAVE_STRUCT_STAT_ST_ATIM 1
14486 _ACEOF
14487
14488
14489 fi
14490 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimespec" "ac_cv_member_struct_stat_st_atimespec" "$ac_includes_default"
14491 if test "x$ac_cv_member_struct_stat_st_atimespec" = xyes; then :
14492
14493 cat >>confdefs.h <<_ACEOF
14494 #define HAVE_STRUCT_STAT_ST_ATIMESPEC 1
14495 _ACEOF
14496
14497
14498 fi
14499 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtime" "ac_cv_member_struct_stat_st_birthtime" "$ac_includes_default"
14500 if test "x$ac_cv_member_struct_stat_st_birthtime" = xyes; then :
14501
14502 cat >>confdefs.h <<_ACEOF
14503 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
14504 _ACEOF
14505
14506
14507 fi
14508 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtim" "ac_cv_member_struct_stat_st_birthtim" "$ac_includes_default"
14509 if test "x$ac_cv_member_struct_stat_st_birthtim" = xyes; then :
14510
14511 cat >>confdefs.h <<_ACEOF
14512 #define HAVE_STRUCT_STAT_ST_BIRTHTIM 1
14513 _ACEOF
14514
14515
14516 fi
14517 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimespec" "ac_cv_member_struct_stat_st_birthtimespec" "$ac_includes_default"
14518 if test "x$ac_cv_member_struct_stat_st_birthtimespec" = xyes; then :
14519
14520 cat >>confdefs.h <<_ACEOF
14521 #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC 1
14522 _ACEOF
14523
14524
14525 fi
14526 ac_fn_c_check_member "$LINENO" "struct stat" "__st_birthtime" "ac_cv_member_struct_stat___st_birthtime" "$ac_includes_default"
14527 if test "x$ac_cv_member_struct_stat___st_birthtime" = xyes; then :
14528
14529 cat >>confdefs.h <<_ACEOF
14530 #define HAVE_STRUCT_STAT___ST_BIRTHTIME 1
14531 _ACEOF
14532
14533
14534 fi
14535 ac_fn_c_check_member "$LINENO" "struct stat" "__st_birthtim" "ac_cv_member_struct_stat___st_birthtim" "$ac_includes_default"
14536 if test "x$ac_cv_member_struct_stat___st_birthtim" = xyes; then :
14537
14538 cat >>confdefs.h <<_ACEOF
14539 #define HAVE_STRUCT_STAT___ST_BIRTHTIM 1
14540 _ACEOF
14541
14542
14543 fi
14544
14545
14546 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
14547 #include <sys/types.h>
14548 #endif
14549 #ifdef HAVE_NETINET_IN_H
14550 #include <netinet/in.h>
14551 #endif
14552 "
14553 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = xyes; then :
14554
14555 cat >>confdefs.h <<_ACEOF
14556 #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
14557 _ACEOF
14558
14559
14560 fi
14561
14562
14563 ac_fn_c_check_member "$LINENO" "ns_msg" "_msg_ptr" "ac_cv_member_ns_msg__msg_ptr" "#ifdef HAVE_SYS_TYPES_H
14564 #include <sys/types.h>
14565 #endif
14566 #ifdef HAVE_NETINET_IN_H
14567 # include <netinet/in.h>
14568 #endif
14569 #ifdef HAVE_ARPA_NAMESER_H
14570 # include <arpa/nameser.h>
14571 #endif
14572 "
14573 if test "x$ac_cv_member_ns_msg__msg_ptr" = xyes; then :
14574
14575 cat >>confdefs.h <<_ACEOF
14576 #define HAVE_NS_MSG__MSG_PTR 1
14577 _ACEOF
14578
14579
14580 fi
14581
14582
14583 ac_fn_c_check_member "$LINENO" "struct icmpstat" "icps_inhist" "ac_cv_member_struct_icmpstat_icps_inhist" "#ifdef HAVE_SYS_TYPES_H
14584 #include <sys/types.h>
14585 #endif
14586 #ifdef HAVE_NETINET_IP_H
14587 #include <netinet/ip.h>
14588 #endif
14589 #ifdef HAVE_NETINET_IP_ICMP_H
14590 #include <netinet/ip_icmp.h>
14591 #endif
14592 #ifdef HAVE_NETINET_ICMP_VAR_H
14593 #include <netinet/icmp_var.h>
14594 #endif
14595 "
14596 if test "x$ac_cv_member_struct_icmpstat_icps_inhist" = xyes; then :
14597
14598 cat >>confdefs.h <<_ACEOF
14599 #define HAVE_STRUCT_ICMPSTAT_ICPS_INHIST 1
14600 _ACEOF
14601
14602
14603 fi
14604
14605
14606 ac_fn_c_check_member "$LINENO" "struct icmpstat" "icps_outhist" "ac_cv_member_struct_icmpstat_icps_outhist" "#ifdef HAVE_SYS_TYPES_H
14607 #include <sys/types.h>
14608 #endif
14609 #ifdef HAVE_ALIAS_H
14610 #include <alias.h>
14611 #endif
14612 #ifdef HAVE_SYS_SOCKET_H
14613 #include <sys/socket.h>
14614 #endif
14615 #ifdef HAVE_SYS_SOCKETVAR_H
14616 #include <sys/socketvar.h>
14617 #endif
14618 #ifdef HAVE_SYS_TIMEOUT_H
14619 #include <sys/timeout.h>
14620 #endif
14621 #ifdef HAVE_NETINET_IN_H
14622 #include <netinet/in.h>
14623 #endif
14624 #ifdef HAVE_NETINET_IN_SYSTM_H
14625 #include <netinet/in_systm.h>
14626 #endif
14627 #ifdef HAVE_NETINET_IP_H
14628 #include <netinet/ip.h>
14629 #endif
14630 #ifdef HAVE_NETINET_IP_VAR_H
14631 #include <netinet/ip_var.h>
14632 #endif
14633 #ifdef HAVE_NETINET_IP_ICMP_H
14634 #include <netinet/ip_icmp.h>
14635 #endif
14636 #ifdef HAVE_NETINET_ICMP_VAR_H
14637 #include <netinet/icmp_var.h>
14638 #endif
14639 "
14640 if test "x$ac_cv_member_struct_icmpstat_icps_outhist" = xyes; then :
14641
14642 cat >>confdefs.h <<_ACEOF
14643 #define HAVE_STRUCT_ICMPSTAT_ICPS_OUTHIST 1
14644 _ACEOF
14645
14646
14647 fi
14648
14649
14650 ac_fn_c_check_member "$LINENO" "struct ipstat" "ips_total" "ac_cv_member_struct_ipstat_ips_total" "#ifdef HAVE_SYS_TYPES_H
14651 #include <sys/types.h>
14652 #endif
14653 #ifdef HAVE_SYS_SOCKETVAR_H
14654 #include <sys/socketvar.h>
14655 #endif
14656 #ifdef HAVE_NETINET_IN_H
14657 #include <netinet/in.h>
14658 #endif
14659 #ifdef HAVE_NETINET_IP_VAR_H
14660 #include <netinet/ip_var.h>
14661 #endif
14662 "
14663 if test "x$ac_cv_member_struct_ipstat_ips_total" = xyes; then :
14664
14665 cat >>confdefs.h <<_ACEOF
14666 #define HAVE_STRUCT_IPSTAT_IPS_TOTAL 1
14667 _ACEOF
14668
14669
14670 fi
14671
14672
14673 ac_fn_c_check_member "$LINENO" "struct ip_stats" "ips_total" "ac_cv_member_struct_ip_stats_ips_total" "#ifdef HAVE_NETINET_IP_VAR_H
14674 #include <netinet/ip_var.h>
14675 #endif
14676 "
14677 if test "x$ac_cv_member_struct_ip_stats_ips_total" = xyes; then :
14678
14679 cat >>confdefs.h <<_ACEOF
14680 #define HAVE_STRUCT_IP_STATS_IPS_TOTAL 1
14681 _ACEOF
14682
14683
14684 fi
14685
14686
14687 ac_fn_c_check_member "$LINENO" "struct tcpstat" "tcps_connattempt" "ac_cv_member_struct_tcpstat_tcps_connattempt" "#ifdef HAVE_SYS_TYPES_H
14688 #include <sys/types.h>
14689 #endif
14690 #ifdef HAVE_SYS_SOCKETVAR_H
14691 #include <sys/socketvar.h>
14692 #endif
14693 #ifdef HAVE_NETINET_IN_H
14694 #include <netinet/in.h>
14695 #endif
14696 #ifdef HAVE_NETINET_TCP_H
14697 #include <netinet/tcp.h>
14698 #endif
14699 #ifdef HAVE_NETINET_TCP_VAR_H
14700 #include <netinet/tcp_var.h>
14701 #endif
14702 "
14703 if test "x$ac_cv_member_struct_tcpstat_tcps_connattempt" = xyes; then :
14704
14705 cat >>confdefs.h <<_ACEOF
14706 #define HAVE_STRUCT_TCPSTAT_TCPS_CONNATTEMPT 1
14707 _ACEOF
14708
14709
14710 fi
14711
14712
14713 ac_fn_c_check_member "$LINENO" "struct tcp_stats" "tcps_connattempt" "ac_cv_member_struct_tcp_stats_tcps_connattempt" "#ifdef HAVE_NETINET_TCP_VAR_H
14714 #include <netinet/tcp_var.h>
14715 #endif
14716 "
14717 if test "x$ac_cv_member_struct_tcp_stats_tcps_connattempt" = xyes; then :
14718
14719 cat >>confdefs.h <<_ACEOF
14720 #define HAVE_STRUCT_TCP_STATS_TCPS_CONNATTEMPT 1
14721 _ACEOF
14722
14723
14724 fi
14725
14726
14727 ac_fn_c_check_member "$LINENO" "struct udpstat" "udps_ipackets" "ac_cv_member_struct_udpstat_udps_ipackets" "#ifdef HAVE_SYS_TYPES_H
14728 #include <sys/types.h>
14729 #endif
14730 #ifdef HAVE_NETINET_IN_H
14731 #include <netinet/in.h>
14732 #endif
14733 #ifdef HAVE_NETINET_IP_VAR_H
14734 #include <netinet/ip_var.h>
14735 #endif
14736 #ifdef HAVE_NETINET_UDP_H
14737 #include <netinet/udp.h>
14738 #endif
14739 #ifdef HAVE_NETINET_UDP_VAR_H
14740 #include <netinet/udp_var.h>
14741 #endif
14742 "
14743 if test "x$ac_cv_member_struct_udpstat_udps_ipackets" = xyes; then :
14744
14745 cat >>confdefs.h <<_ACEOF
14746 #define HAVE_STRUCT_UDPSTAT_UDPS_IPACKETS 1
14747 _ACEOF
14748
14749
14750 fi
14751
14752
14753 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "#ifdef HAVE_SYS_TYPES_H
14754 #include <sys/types.h>
14755 #endif
14756 #ifdef HAVE_NET_IF_H
14757 # include <net/if.h>
14758 #endif
14759 "
14760 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = xyes; then :
14761
14762 cat >>confdefs.h <<_ACEOF
14763 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
14764 _ACEOF
14765
14766
14767 fi
14768
14769
14770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone variable" >&5
14771 $as_echo_n "checking for timezone variable... " >&6; }
14772 if ${ac_cv_have_timezone+:} false; then :
14773   $as_echo_n "(cached) " >&6
14774 else
14775   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14776 /* end confdefs.h.  */
14777 #include <time.h>
14778 int
14779 main ()
14780 {
14781 timezone = 1
14782   ;
14783   return 0;
14784 }
14785 _ACEOF
14786 if ac_fn_c_try_link "$LINENO"; then :
14787   ac_cv_have_timezone="yes"
14788 else
14789   ac_cv_have_timezone="no"
14790 fi
14791 rm -f core conftest.err conftest.$ac_objext \
14792     conftest$ac_exeext conftest.$ac_ext
14793 fi
14794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_timezone" >&5
14795 $as_echo "$ac_cv_have_timezone" >&6; }
14796 if test "$ac_cv_have_timezone" = "yes"
14797 then
14798
14799 $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
14800
14801 fi
14802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daylight variable" >&5
14803 $as_echo_n "checking for daylight variable... " >&6; }
14804 if ${ac_cv_have_daylight+:} false; then :
14805   $as_echo_n "(cached) " >&6
14806 else
14807   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14808 /* end confdefs.h.  */
14809 #include <time.h>
14810 int
14811 main ()
14812 {
14813 daylight = 1
14814   ;
14815   return 0;
14816 }
14817 _ACEOF
14818 if ac_fn_c_try_link "$LINENO"; then :
14819   ac_cv_have_daylight="yes"
14820 else
14821   ac_cv_have_daylight="no"
14822 fi
14823 rm -f core conftest.err conftest.$ac_objext \
14824     conftest$ac_exeext conftest.$ac_ext
14825 fi
14826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_daylight" >&5
14827 $as_echo "$ac_cv_have_daylight" >&6; }
14828 if test "$ac_cv_have_daylight" = "yes"
14829 then
14830
14831 $as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h
14832
14833 fi
14834
14835 ac_save_LIBS="$LIBS"
14836 LIBS="$LIBS -lm"
14837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf" >&5
14838 $as_echo_n "checking for isinf... " >&6; }
14839 if ${ac_cv_have_isinf+:} false; then :
14840   $as_echo_n "(cached) " >&6
14841 else
14842   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14843 /* end confdefs.h.  */
14844 #include <math.h>
14845 int
14846 main ()
14847 {
14848 float f = 0.0; return isinf(f)
14849   ;
14850   return 0;
14851 }
14852 _ACEOF
14853 if ac_fn_c_try_link "$LINENO"; then :
14854   ac_cv_have_isinf="yes"
14855 else
14856   ac_cv_have_isinf="no"
14857 fi
14858 rm -f core conftest.err conftest.$ac_objext \
14859     conftest$ac_exeext conftest.$ac_ext
14860 fi
14861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isinf" >&5
14862 $as_echo "$ac_cv_have_isinf" >&6; }
14863 if test "$ac_cv_have_isinf" = "yes"
14864 then
14865
14866 $as_echo "#define HAVE_ISINF 1" >>confdefs.h
14867
14868 fi
14869
14870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan" >&5
14871 $as_echo_n "checking for isnan... " >&6; }
14872 if ${ac_cv_have_isnan+:} false; then :
14873   $as_echo_n "(cached) " >&6
14874 else
14875   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14876 /* end confdefs.h.  */
14877 #include <math.h>
14878 int
14879 main ()
14880 {
14881 float f = 0.0; return isnan(f)
14882   ;
14883   return 0;
14884 }
14885 _ACEOF
14886 if ac_fn_c_try_link "$LINENO"; then :
14887   ac_cv_have_isnan="yes"
14888 else
14889   ac_cv_have_isnan="no"
14890 fi
14891 rm -f core conftest.err conftest.$ac_objext \
14892     conftest$ac_exeext conftest.$ac_ext
14893 fi
14894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isnan" >&5
14895 $as_echo "$ac_cv_have_isnan" >&6; }
14896 if test "$ac_cv_have_isnan" = "yes"
14897 then
14898
14899 $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
14900
14901 fi
14902 LIBS="$ac_save_LIBS"
14903
14904
14905 case $host_cpu in
14906   *i[3456789]86*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __i386__" >&5
14907 $as_echo_n "checking whether we need to define __i386__... " >&6; }
14908 if ${ac_cv_cpp_def___i386__+:} false; then :
14909   $as_echo_n "(cached) " >&6
14910 else
14911   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14912 /* end confdefs.h.  */
14913 #ifndef __i386__
14914 yes
14915 #endif
14916 _ACEOF
14917 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14918   $EGREP "yes" >/dev/null 2>&1; then :
14919   ac_cv_cpp_def___i386__=yes
14920 else
14921   ac_cv_cpp_def___i386__=no
14922 fi
14923 rm -f conftest*
14924
14925 fi
14926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___i386__" >&5
14927 $as_echo "$ac_cv_cpp_def___i386__" >&6; }
14928 if test $ac_cv_cpp_def___i386__ = yes; then :
14929   CFLAGS="$CFLAGS -D__i386__"
14930   LINTFLAGS="$LINTFLAGS -D__i386__"
14931 fi ;;
14932   *x86_64*)         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __x86_64__" >&5
14933 $as_echo_n "checking whether we need to define __x86_64__... " >&6; }
14934 if ${ac_cv_cpp_def___x86_64__+:} false; then :
14935   $as_echo_n "(cached) " >&6
14936 else
14937   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14938 /* end confdefs.h.  */
14939 #ifndef __x86_64__
14940 yes
14941 #endif
14942 _ACEOF
14943 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14944   $EGREP "yes" >/dev/null 2>&1; then :
14945   ac_cv_cpp_def___x86_64__=yes
14946 else
14947   ac_cv_cpp_def___x86_64__=no
14948 fi
14949 rm -f conftest*
14950
14951 fi
14952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___x86_64__" >&5
14953 $as_echo "$ac_cv_cpp_def___x86_64__" >&6; }
14954 if test $ac_cv_cpp_def___x86_64__ = yes; then :
14955   CFLAGS="$CFLAGS -D__x86_64__"
14956   LINTFLAGS="$LINTFLAGS -D__x86_64__"
14957 fi ;;
14958   *sparc64*)        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sparc64__" >&5
14959 $as_echo_n "checking whether we need to define __sparc64__... " >&6; }
14960 if ${ac_cv_cpp_def___sparc64__+:} false; then :
14961   $as_echo_n "(cached) " >&6
14962 else
14963   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14964 /* end confdefs.h.  */
14965 #ifndef __sparc64__
14966 yes
14967 #endif
14968 _ACEOF
14969 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14970   $EGREP "yes" >/dev/null 2>&1; then :
14971   ac_cv_cpp_def___sparc64__=yes
14972 else
14973   ac_cv_cpp_def___sparc64__=no
14974 fi
14975 rm -f conftest*
14976
14977 fi
14978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sparc64__" >&5
14979 $as_echo "$ac_cv_cpp_def___sparc64__" >&6; }
14980 if test $ac_cv_cpp_def___sparc64__ = yes; then :
14981   CFLAGS="$CFLAGS -D__sparc64__"
14982   LINTFLAGS="$LINTFLAGS -D__sparc64__"
14983 fi ;;
14984   *sparc*)          { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sparc__" >&5
14985 $as_echo_n "checking whether we need to define __sparc__... " >&6; }
14986 if ${ac_cv_cpp_def___sparc__+:} false; then :
14987   $as_echo_n "(cached) " >&6
14988 else
14989   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14990 /* end confdefs.h.  */
14991 #ifndef __sparc__
14992 yes
14993 #endif
14994 _ACEOF
14995 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14996   $EGREP "yes" >/dev/null 2>&1; then :
14997   ac_cv_cpp_def___sparc__=yes
14998 else
14999   ac_cv_cpp_def___sparc__=no
15000 fi
15001 rm -f conftest*
15002
15003 fi
15004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sparc__" >&5
15005 $as_echo "$ac_cv_cpp_def___sparc__" >&6; }
15006 if test $ac_cv_cpp_def___sparc__ = yes; then :
15007   CFLAGS="$CFLAGS -D__sparc__"
15008   LINTFLAGS="$LINTFLAGS -D__sparc__"
15009 fi ;;
15010   *powerpc64*)      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __powerpc64__" >&5
15011 $as_echo_n "checking whether we need to define __powerpc64__... " >&6; }
15012 if ${ac_cv_cpp_def___powerpc64__+:} false; then :
15013   $as_echo_n "(cached) " >&6
15014 else
15015   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15016 /* end confdefs.h.  */
15017 #ifndef __powerpc64__
15018 yes
15019 #endif
15020 _ACEOF
15021 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15022   $EGREP "yes" >/dev/null 2>&1; then :
15023   ac_cv_cpp_def___powerpc64__=yes
15024 else
15025   ac_cv_cpp_def___powerpc64__=no
15026 fi
15027 rm -f conftest*
15028
15029 fi
15030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___powerpc64__" >&5
15031 $as_echo "$ac_cv_cpp_def___powerpc64__" >&6; }
15032 if test $ac_cv_cpp_def___powerpc64__ = yes; then :
15033   CFLAGS="$CFLAGS -D__powerpc64__"
15034   LINTFLAGS="$LINTFLAGS -D__powerpc64__"
15035 fi ;;
15036   *powerpc*)        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __powerpc__" >&5
15037 $as_echo_n "checking whether we need to define __powerpc__... " >&6; }
15038 if ${ac_cv_cpp_def___powerpc__+:} false; then :
15039   $as_echo_n "(cached) " >&6
15040 else
15041   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15042 /* end confdefs.h.  */
15043 #ifndef __powerpc__
15044 yes
15045 #endif
15046 _ACEOF
15047 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15048   $EGREP "yes" >/dev/null 2>&1; then :
15049   ac_cv_cpp_def___powerpc__=yes
15050 else
15051   ac_cv_cpp_def___powerpc__=no
15052 fi
15053 rm -f conftest*
15054
15055 fi
15056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___powerpc__" >&5
15057 $as_echo "$ac_cv_cpp_def___powerpc__" >&6; }
15058 if test $ac_cv_cpp_def___powerpc__ = yes; then :
15059   CFLAGS="$CFLAGS -D__powerpc__"
15060   LINTFLAGS="$LINTFLAGS -D__powerpc__"
15061 fi ;;
15062   *aarch64*)        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __aarch64__" >&5
15063 $as_echo_n "checking whether we need to define __aarch64__... " >&6; }
15064 if ${ac_cv_cpp_def___aarch64__+:} false; then :
15065   $as_echo_n "(cached) " >&6
15066 else
15067   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15068 /* end confdefs.h.  */
15069 #ifndef __aarch64__
15070 yes
15071 #endif
15072 _ACEOF
15073 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15074   $EGREP "yes" >/dev/null 2>&1; then :
15075   ac_cv_cpp_def___aarch64__=yes
15076 else
15077   ac_cv_cpp_def___aarch64__=no
15078 fi
15079 rm -f conftest*
15080
15081 fi
15082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___aarch64__" >&5
15083 $as_echo "$ac_cv_cpp_def___aarch64__" >&6; }
15084 if test $ac_cv_cpp_def___aarch64__ = yes; then :
15085   CFLAGS="$CFLAGS -D__aarch64__"
15086   LINTFLAGS="$LINTFLAGS -D__aarch64__"
15087 fi ;;
15088   *arm*)            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __arm__" >&5
15089 $as_echo_n "checking whether we need to define __arm__... " >&6; }
15090 if ${ac_cv_cpp_def___arm__+:} false; then :
15091   $as_echo_n "(cached) " >&6
15092 else
15093   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15094 /* end confdefs.h.  */
15095 #ifndef __arm__
15096 yes
15097 #endif
15098 _ACEOF
15099 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15100   $EGREP "yes" >/dev/null 2>&1; then :
15101   ac_cv_cpp_def___arm__=yes
15102 else
15103   ac_cv_cpp_def___arm__=no
15104 fi
15105 rm -f conftest*
15106
15107 fi
15108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___arm__" >&5
15109 $as_echo "$ac_cv_cpp_def___arm__" >&6; }
15110 if test $ac_cv_cpp_def___arm__ = yes; then :
15111   CFLAGS="$CFLAGS -D__arm__"
15112   LINTFLAGS="$LINTFLAGS -D__arm__"
15113 fi ;;
15114 esac
15115
15116 case $host_vendor in
15117   *sun*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sun__" >&5
15118 $as_echo_n "checking whether we need to define __sun__... " >&6; }
15119 if ${ac_cv_cpp_def___sun__+:} false; then :
15120   $as_echo_n "(cached) " >&6
15121 else
15122   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15123 /* end confdefs.h.  */
15124 #ifndef __sun__
15125 yes
15126 #endif
15127 _ACEOF
15128 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15129   $EGREP "yes" >/dev/null 2>&1; then :
15130   ac_cv_cpp_def___sun__=yes
15131 else
15132   ac_cv_cpp_def___sun__=no
15133 fi
15134 rm -f conftest*
15135
15136 fi
15137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sun__" >&5
15138 $as_echo "$ac_cv_cpp_def___sun__" >&6; }
15139 if test $ac_cv_cpp_def___sun__ = yes; then :
15140   CFLAGS="$CFLAGS -D__sun__"
15141   LINTFLAGS="$LINTFLAGS -D__sun__"
15142 fi ;;
15143 esac
15144
15145
15146
15147
15148
15149 ac_config_commands="$ac_config_commands include/stamp-h"
15150
15151
15152 ALL_MAKEFILE_DEPENDS="
15153 # Rules automatically generated by configure
15154
15155 .INIT: Makefile
15156 .MAKEFILEDEPS:
15157 all: Makefile
15158 Makefile: Makefile.in Make.vars.in Make.rules config.status
15159         @./config.status Make.tmp Makefile"
15160
15161 ALL_POT_FILES=""
15162 ALL_TEST_RESOURCES=""
15163
15164
15165 wine_fn_append_file ()
15166 {
15167     as_fn_append $1 " \\$as_nl  $2"
15168 }
15169
15170 wine_fn_append_rule ()
15171 {
15172     as_fn_append $1 "$as_nl$2"
15173 }
15174
15175 wine_fn_has_flag ()
15176 {
15177     expr ",$2," : ".*,$1,.*" >/dev/null
15178 }
15179
15180 wine_fn_all_dir_rules ()
15181 {
15182     ac_dir=$1
15183     ac_alldeps=$2
15184     ac_makedep="\$(MAKEDEP)"
15185     ac_input=Make.vars.in:$ac_dir/Makefile.in
15186     if test $ac_dir != tools
15187     then
15188                 ac_alldeps="$2 $ac_makedep"
15189     else
15190         ac_alldeps="$2 include/config.h"
15191     fi
15192     case $2 in
15193       *.in) ac_input=$ac_input:$2 ;;
15194       *) ac_makedep="$2 $ac_makedep" ;;
15195     esac
15196
15197     wine_fn_append_file ALL_DIRS $ac_dir
15198     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15199 "__clean__: $ac_dir/__clean__
15200 .PHONY: $ac_dir/__clean__
15201 $ac_dir/__clean__: $ac_dir/Makefile
15202         @cd $ac_dir && \$(MAKE) clean
15203         \$(RM) $ac_dir/Makefile
15204 $ac_dir/Makefile: $ac_dir/Makefile.in Make.vars.in config.status $ac_alldeps
15205         @./config.status --file $ac_dir/Makefile:$ac_input && cd $ac_dir && \$(MAKE) depend
15206 depend: $ac_dir/__depend__
15207 .PHONY: $ac_dir/__depend__
15208 $ac_dir/__depend__: $ac_makedep dummy
15209         @./config.status --file $ac_dir/Makefile:$ac_input && cd $ac_dir && \$(MAKE) depend"
15210 }
15211
15212 wine_fn_pot_rules ()
15213 {
15214     ac_dir=$1
15215     ac_flags=$2
15216
15217     test "x$with_gettextpo" = xyes || return
15218
15219     if wine_fn_has_flag mc $ac_flags
15220     then
15221         wine_fn_append_file ALL_POT_FILES $ac_dir/msg.pot
15222         wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15223 "$ac_dir/msg.pot: $ac_dir/Makefile dummy
15224         @cd $ac_dir && \$(MAKE) msg.pot
15225 $ac_dir/msg.pot: tools/wmc include"
15226     fi
15227     if wine_fn_has_flag po $ac_flags
15228     then
15229         wine_fn_append_file ALL_POT_FILES $ac_dir/rsrc.pot
15230         wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15231 "$ac_dir/rsrc.pot: $ac_dir/Makefile dummy
15232         @cd $ac_dir && \$(MAKE) rsrc.pot
15233 $ac_dir/rsrc.pot: tools/wrc include"
15234     fi
15235 }
15236
15237 wine_fn_config_makefile ()
15238 {
15239     ac_dir=$1
15240     ac_enable=$2
15241     ac_flags=$3
15242     ac_rules=$4
15243     if eval test \"x\$"$ac_enable"\" = x"no"; then :
15244   return 0
15245 fi
15246
15247     wine_fn_all_dir_rules $ac_dir ${ac_rules:-Make.rules}
15248     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15249 "all: $ac_dir
15250 .PHONY: $ac_dir
15251 $ac_dir: $ac_dir/Makefile dummy
15252         @cd $ac_dir && \$(MAKE)"
15253
15254     wine_fn_has_flag install-lib $ac_flags || wine_fn_has_flag install-dev $ac_flags || return
15255
15256     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15257 ".PHONY: $ac_dir/__install__ $ac_dir/__uninstall__
15258 $ac_dir/__install__:: $ac_dir
15259         @cd $ac_dir && \$(MAKE) install
15260 $ac_dir/__uninstall__:: $ac_dir/Makefile
15261         @cd $ac_dir && \$(MAKE) uninstall
15262 install:: $ac_dir/__install__
15263 __uninstall__: $ac_dir/__uninstall__"
15264
15265     if wine_fn_has_flag install-lib $ac_flags
15266     then
15267         wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15268 ".PHONY: $ac_dir/__install-lib__
15269 $ac_dir/__install-lib__:: $ac_dir
15270         @cd $ac_dir && \$(MAKE) install-lib
15271 install-lib:: $ac_dir/__install-lib__"
15272     fi
15273
15274     if wine_fn_has_flag install-dev $ac_flags
15275     then
15276         wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15277 ".PHONY: $ac_dir/__install-dev
15278 $ac_dir/__install-dev__:: $ac_dir
15279         @cd $ac_dir && \$(MAKE) install-dev
15280 install-dev:: $ac_dir/__install-dev__"
15281     fi
15282 }
15283
15284 wine_fn_config_lib ()
15285 {
15286     ac_name=$1
15287     ac_flags=$2
15288     ac_dir=dlls/$ac_name
15289     wine_fn_config_makefile $ac_dir enable_$ac_name "$ac_flags" dlls/Makeimplib.rules
15290
15291     if wine_fn_has_flag install-dev $ac_flags
15292     then :
15293     else
15294         wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15295 ".PHONY: $ac_dir/__install__ $ac_dir/__uninstall__
15296 $ac_dir/__install__:: $ac_dir \$(DESTDIR)\$(dlldir)
15297         \$(INSTALL_DATA) $ac_dir/lib$ac_name.a \$(DESTDIR)\$(dlldir)/lib$ac_name.a
15298 $ac_dir/__uninstall__::
15299         \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_name.a
15300 install install-dev:: $ac_dir/__install__
15301 __uninstall__: $ac_dir/__uninstall__"
15302     fi
15303
15304     wine_fn_append_rule ALL_MAKEFILE_DEPENDS "__builddeps__: $ac_dir"
15305     wine_fn_append_rule ALL_MAKEFILE_DEPENDS "$ac_dir: tools/widl tools/winebuild tools/winegcc include"
15306 }
15307
15308 wine_fn_config_dll ()
15309 {
15310     ac_name=$1
15311     ac_dir=dlls/$ac_name
15312     ac_enable=$2
15313     ac_flags=$3
15314     ac_implib=${4:-$ac_name}
15315     ac_file=$ac_dir/lib$ac_implib
15316     ac_dll=$ac_name
15317     ac_deps="tools/widl tools/winebuild tools/winegcc include"
15318     ac_implibflags=""
15319
15320     case $ac_name in
15321       *16) ac_implibflags=" -m16" ;;
15322       *.*) ;;
15323       *)   ac_dll=$ac_dll.dll ;;
15324     esac
15325
15326     wine_fn_config_makefile $ac_dir $ac_enable "$ac_flags" dlls/Makedll.rules
15327
15328     if eval test \"x\$"$ac_enable"\" = x"no"; then :
15329                 test "$ac_enable" != enable_win16 || return 0
15330                wine_fn_has_flag implib $ac_flags && wine_fn_all_dir_rules $ac_dir dlls/Makedll.rules
15331 else
15332   wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15333 "$ac_dir: __builddeps__
15334 manpages htmlpages sgmlpages xmlpages:: $ac_dir/Makefile
15335         @cd $ac_dir && \$(MAKE) \$@"
15336
15337         if wine_fn_has_flag install-lib $ac_flags
15338         then :
15339         else
15340             wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15341 ".PHONY: $ac_dir/__install-lib__ $ac_dir/__uninstall__
15342 install install-lib:: $ac_dir/__install-lib__
15343 __uninstall__: $ac_dir/__uninstall__"
15344             if test -n "$DLLEXT"
15345             then
15346                 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15347 "$ac_dir/__install-lib__:: $ac_dir \$(DESTDIR)\$(dlldir) \$(DESTDIR)\$(fakedlldir)
15348         \$(INSTALL_PROGRAM) $ac_dir/$ac_dll$DLLEXT \$(DESTDIR)\$(dlldir)/$ac_dll$DLLEXT
15349         \$(INSTALL_DATA) $ac_dir/$ac_dll.fake \$(DESTDIR)\$(fakedlldir)/$ac_dll
15350 $ac_dir/__uninstall__::
15351         \$(RM) \$(DESTDIR)\$(dlldir)/$ac_dll$DLLEXT \$(DESTDIR)\$(fakedlldir)/$ac_dll"
15352             else
15353                 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15354 "$ac_dir/__install-lib__:: $ac_dir \$(DESTDIR)\$(dlldir)
15355         \$(INSTALL_PROGRAM) $ac_dir/$ac_dll \$(DESTDIR)\$(dlldir)/$ac_dll
15356 $ac_dir/__uninstall__::
15357         \$(RM) \$(DESTDIR)\$(dlldir)/$ac_dll"
15358             fi
15359         fi
15360
15361         wine_fn_pot_rules $ac_dir $ac_flags
15362 fi
15363
15364     if wine_fn_has_flag staticimplib $ac_flags
15365     then
15366         wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15367 "__builddeps__: $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT
15368 $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT $ac_file.cross.a: $ac_deps
15369 $ac_file.def: $ac_dir/$ac_name.spec $ac_dir/Makefile
15370         @cd $ac_dir && \$(MAKE) lib$ac_implib.def
15371 $ac_file.$STATIC_IMPLIBEXT: $ac_dir/Makefile dummy
15372         @cd $ac_dir && \$(MAKE) lib$ac_implib.$STATIC_IMPLIBEXT
15373 .PHONY: $ac_dir/__install-dev__ $ac_dir/__uninstall__
15374 $ac_dir/__install-dev__:: $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)
15375         \$(INSTALL_DATA) $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
15376 $ac_dir/__uninstall__::
15377         \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
15378 install install-dev:: $ac_dir/__install-dev__
15379 __uninstall__: $ac_dir/__uninstall__"
15380
15381         if test "$IMPLIBEXT" != "$STATIC_IMPLIBEXT"
15382         then
15383             wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15384 "$ac_dir/__install-dev__:: $ac_file.$STATIC_IMPLIBEXT \$(DESTDIR)\$(dlldir) __builddeps__
15385         \$(INSTALL_DATA) $ac_file.$STATIC_IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$STATIC_IMPLIBEXT
15386 $ac_dir/__uninstall__::
15387         \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$STATIC_IMPLIBEXT"
15388         fi
15389
15390         if test "x$CROSSTEST_DISABLE" = x
15391         then
15392             wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15393 "__builddeps__: $ac_file.cross.a
15394 $ac_file.cross.a: $ac_dir/Makefile dummy
15395         @cd $ac_dir && \$(MAKE) lib$ac_implib.cross.a"
15396         fi
15397
15398     elif wine_fn_has_flag implib $ac_flags
15399     then
15400         wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15401 "__builddeps__: $ac_file.$IMPLIBEXT
15402 $ac_file.def: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
15403         \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --def -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec
15404 $ac_file.a: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
15405         \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --implib -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec
15406 .PHONY: $ac_dir/__install-dev__ $ac_dir/__uninstall__
15407 $ac_dir/__install-dev__:: $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)
15408         \$(INSTALL_DATA) $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
15409 $ac_dir/__uninstall__::
15410         \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
15411 install install-dev:: $ac_dir/__install-dev__
15412 __uninstall__: $ac_dir/__uninstall__"
15413         if test "x$CROSSTEST_DISABLE" = x
15414         then
15415             wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15416 "__builddeps__: $ac_file.cross.a
15417 $ac_file.cross.a: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
15418         \$(WINEBUILD) \$(CROSSTARGET:%=-b %)$ac_implibflags -w --implib -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec"
15419         fi
15420
15421         if test "$ac_name" != "$ac_implib"
15422         then
15423             wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15424 "__builddeps__: dlls/lib$ac_implib.$IMPLIBEXT
15425 dlls/lib$ac_implib.$IMPLIBEXT: $ac_file.$IMPLIBEXT
15426         \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.$IMPLIBEXT \$@
15427 clean::
15428         \$(RM) dlls/lib$ac_implib.$IMPLIBEXT"
15429             if test "x$CROSSTEST_DISABLE" = x
15430             then
15431                 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15432 "__builddeps__: dlls/lib$ac_implib.cross.a
15433 dlls/lib$ac_implib.cross.a: $ac_file.cross.a
15434         \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.cross.a \$@"
15435             fi
15436         fi
15437     fi
15438 }
15439
15440 wine_fn_config_program ()
15441 {
15442     ac_name=$1
15443     ac_dir=programs/$ac_name
15444     ac_enable=$2
15445     ac_flags=$3
15446     ac_program=$ac_name
15447
15448     case $ac_name in
15449       *.*) ;;
15450       *)   ac_program=$ac_program.exe ;;
15451     esac
15452
15453     wine_fn_config_makefile $ac_dir $ac_enable "$ac_flags" programs/Makeprog.rules
15454
15455     if eval test \"x\$"$ac_enable"\" = x"no"; then :
15456
15457 else
15458   wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15459 "$ac_dir: __builddeps__"
15460
15461     wine_fn_pot_rules $ac_dir $ac_flags
15462
15463     wine_fn_has_flag install $ac_flags || return
15464     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15465 ".PHONY: $ac_dir/__install__ $ac_dir/__uninstall__
15466 install install-lib:: $ac_dir/__install__
15467 __uninstall__: $ac_dir/__uninstall__"
15468
15469     if test -n "$DLLEXT"
15470     then
15471         wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15472 "$ac_dir/__install__:: $ac_dir \$(DESTDIR)\$(dlldir) \$(DESTDIR)\$(fakedlldir)
15473         \$(INSTALL_PROGRAM) $ac_dir/$ac_program$DLLEXT \$(DESTDIR)\$(dlldir)/$ac_program$DLLEXT
15474         \$(INSTALL_DATA) $ac_dir/$ac_program.fake \$(DESTDIR)\$(fakedlldir)/$ac_program
15475 $ac_dir/__uninstall__::
15476         \$(RM) \$(DESTDIR)\$(dlldir)/$ac_program$DLLEXT \$(DESTDIR)\$(fakedlldir)/$ac_program"
15477
15478         if test "x$enable_tools" != xno && wine_fn_has_flag installbin $ac_flags
15479         then
15480             wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15481 "$ac_dir/__install__:: tools \$(DESTDIR)\$(bindir)
15482         \$(INSTALL_SCRIPT) tools/wineapploader \$(DESTDIR)\$(bindir)/$ac_name
15483 $ac_dir/__uninstall__::
15484         \$(RM) \$(DESTDIR)\$(bindir)/$ac_name"
15485         fi
15486     else
15487         wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15488 "$ac_dir/__install-lib__:: $ac_dir \$(DESTDIR)\$(dlldir)
15489         \$(INSTALL_PROGRAM) $ac_dir/$ac_program \$(DESTDIR)\$(dlldir)/$ac_program
15490 $ac_dir/__uninstall__::
15491         \$(RM) \$(DESTDIR)\$(dlldir)/$ac_program"
15492     fi
15493
15494     if test "x$enable_tools" != xno && wine_fn_has_flag manpage $ac_flags
15495     then
15496         wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15497 "$ac_dir/__install__:: $ac_dir \$(DESTDIR)\$(mandir)/man\$(prog_manext)
15498         \$(INSTALL_DATA) $ac_dir/$ac_name.man \$(DESTDIR)\$(mandir)/man\$(prog_manext)/$ac_name.\$(prog_manext)
15499 $ac_dir/__uninstall__::
15500         \$(RM) \$(DESTDIR)\$(mandir)/man\$(prog_manext)/$ac_name.\$(prog_manext)"
15501     fi
15502 fi
15503 }
15504
15505 wine_fn_config_test ()
15506 {
15507     ac_dir=$1
15508     ac_name=$2
15509     ac_flags=$3
15510     wine_fn_append_file ALL_TEST_RESOURCES $ac_name.res
15511     wine_fn_all_dir_rules $ac_dir Maketest.rules
15512
15513     if test "x$enable_tests" = xno; then :
15514
15515 else
15516   wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15517 "all: $ac_dir
15518 .PHONY: $ac_dir
15519 $ac_dir: $ac_dir/Makefile programs/winetest/Makefile __builddeps__ dummy
15520         @cd $ac_dir && \$(MAKE)
15521 programs/winetest: $ac_dir
15522 check test: $ac_dir/__test__
15523 .PHONY: $ac_dir/__test__
15524 $ac_dir/__test__: dummy
15525         @cd $ac_dir && \$(MAKE) test
15526 testclean::
15527         \$(RM) $ac_dir/*.ok"
15528
15529         if test "x$CROSSTEST_DISABLE" = x
15530         then
15531             wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15532 "crosstest: $ac_dir/__crosstest__
15533 .PHONY: $ac_dir/__crosstest__
15534 $ac_dir/__crosstest__: $ac_dir/Makefile __builddeps__ dummy
15535         @cd $ac_dir && \$(MAKE) crosstest"
15536         fi
15537 fi
15538 }
15539
15540 wine_fn_config_tool ()
15541 {
15542     ac_dir=$1
15543     ac_flags=$2
15544     if test "x$enable_tools" = xno; then :
15545   return 0
15546 fi
15547
15548     wine_fn_config_makefile $ac_dir enable_tools $ac_flags
15549
15550     wine_fn_append_rule ALL_MAKEFILE_DEPENDS "__tooldeps__: $ac_dir"
15551     wine_fn_append_rule ALL_MAKEFILE_DEPENDS "$ac_dir: libs/port"
15552     case $ac_dir in
15553       tools/winebuild) wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(WINEBUILD): $ac_dir" ;;
15554     esac
15555 }
15556
15557 wine_fn_config_makerules ()
15558 {
15559     ac_rules=$1
15560     ac_deps=$2
15561     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15562 "$ac_rules: $ac_rules.in $ac_deps config.status
15563         @./config.status $ac_rules
15564 distclean::
15565         \$(RM) $ac_rules"
15566 }
15567
15568 wine_fn_config_symlink ()
15569 {
15570     ac_link=$1
15571     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15572 "$ac_link:
15573         @./config.status $ac_link
15574 distclean::
15575         \$(RM) $ac_link"
15576 }
15577
15578 if test "x$CROSSTEST_DISABLE" != x
15579 then
15580     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15581 "crosstest:
15582         @echo \"crosstest is not supported (mingw not installed?)\" && false"
15583 fi
15584 ac_config_links="$ac_config_links dlls/shell32/AUTHORS:AUTHORS"
15585 wine_fn_config_symlink dlls/shell32/AUTHORS
15586 ac_config_links="$ac_config_links dlls/wineps.drv/generic.ppd:dlls/wineps.drv/generic.ppd"
15587 test "$srcdir" = "." || wine_fn_config_symlink dlls/wineps.drv/generic.ppd
15588 if test "x$enable_fonts" != xno; then
15589 ac_config_links="$ac_config_links fonts/marlett.ttf:fonts/marlett.ttf"
15590 test "$srcdir" = "." || wine_fn_config_symlink fonts/marlett.ttf
15591 fi
15592 if test "x$enable_fonts" != xno; then
15593 ac_config_links="$ac_config_links fonts/symbol.ttf:fonts/symbol.ttf"
15594 test "$srcdir" = "." || wine_fn_config_symlink fonts/symbol.ttf
15595 fi
15596 if test "x$enable_fonts" != xno; then
15597 ac_config_links="$ac_config_links fonts/tahoma.ttf:fonts/tahoma.ttf"
15598 test "$srcdir" = "." || wine_fn_config_symlink fonts/tahoma.ttf
15599 fi
15600 if test "x$enable_fonts" != xno; then
15601 ac_config_links="$ac_config_links fonts/tahomabd.ttf:fonts/tahomabd.ttf"
15602 test "$srcdir" = "." || wine_fn_config_symlink fonts/tahomabd.ttf
15603 fi
15604 ac_config_links="$ac_config_links po/LINGUAS:po/LINGUAS"
15605 test "$srcdir" = "." || wine_fn_config_symlink po/LINGUAS
15606 if test "x$enable_tools" != xno; then
15607 ac_config_links="$ac_config_links tools/l_intl.nls:tools/l_intl.nls"
15608 test "$srcdir" = "." || wine_fn_config_symlink tools/l_intl.nls
15609 fi
15610 ac_config_links="$ac_config_links wine:tools/winewrapper"
15611 wine_fn_config_symlink wine
15612 if test "x$enable_win64" != xno; then
15613 ac_config_links="$ac_config_links wine64:tools/winewrapper"
15614 wine_fn_config_symlink wine64
15615 fi
15616
15617 ac_config_commands="$ac_config_commands dlls/gdi32/dibdrv"
15618
15619 ac_config_commands="$ac_config_commands dlls/gdi32/enhmfdrv"
15620
15621 ac_config_commands="$ac_config_commands dlls/gdi32/mfdrv"
15622
15623 ac_config_commands="$ac_config_commands dlls/kernel32/nls"
15624
15625 ac_config_commands="$ac_config_commands dlls/user32/resources"
15626
15627 ac_config_commands="$ac_config_commands dlls/wineps.drv/data"
15628
15629 ac_config_commands="$ac_config_commands include/wine"
15630
15631
15632 wine_fn_config_makerules Make.rules
15633 MAKE_RULES=Make.rules
15634 ac_config_files="$ac_config_files Make.rules"
15635
15636 wine_fn_config_makerules Maketest.rules Make.rules
15637 MAKE_TEST_RULES=Maketest.rules
15638 ac_config_files="$ac_config_files Maketest.rules"
15639
15640 wine_fn_config_makerules dlls/Makedll.rules Make.rules
15641 MAKE_DLL_RULES=dlls/Makedll.rules
15642 ac_config_files="$ac_config_files dlls/Makedll.rules"
15643
15644 wine_fn_config_makerules dlls/Makeimplib.rules Make.rules
15645 MAKE_IMPLIB_RULES=dlls/Makeimplib.rules
15646 ac_config_files="$ac_config_files dlls/Makeimplib.rules"
15647
15648 wine_fn_config_makerules programs/Makeprog.rules Make.rules
15649 MAKE_PROG_RULES=programs/Makeprog.rules
15650 ac_config_files="$ac_config_files programs/Makeprog.rules"
15651
15652
15653 wine_fn_config_dll acledit enable_acledit
15654 wine_fn_config_dll aclui enable_aclui implib
15655 wine_fn_config_dll activeds enable_activeds implib
15656 wine_fn_config_dll actxprxy enable_actxprxy
15657 wine_fn_config_lib adsiid
15658 wine_fn_config_dll advapi32 enable_advapi32 implib
15659 wine_fn_config_test dlls/advapi32/tests advapi32_test
15660 wine_fn_config_dll advpack enable_advpack implib
15661 wine_fn_config_test dlls/advpack/tests advpack_test
15662 wine_fn_config_dll amstream enable_amstream
15663 wine_fn_config_test dlls/amstream/tests amstream_test
15664 wine_fn_config_dll api-ms-win-core-winrt-error-l1-1-0 enable_api_ms_win_core_winrt_error_l1_1_0
15665 wine_fn_config_dll api-ms-win-core-winrt-string-l1-1-0 enable_api_ms_win_core_winrt_string_l1_1_0
15666 wine_fn_config_dll api-ms-win-downlevel-advapi32-l1-1-0 enable_api_ms_win_downlevel_advapi32_l1_1_0
15667 wine_fn_config_dll api-ms-win-downlevel-advapi32-l2-1-0 enable_api_ms_win_downlevel_advapi32_l2_1_0
15668 wine_fn_config_dll api-ms-win-downlevel-normaliz-l1-1-0 enable_api_ms_win_downlevel_normaliz_l1_1_0
15669 wine_fn_config_dll api-ms-win-downlevel-ole32-l1-1-0 enable_api_ms_win_downlevel_ole32_l1_1_0
15670 wine_fn_config_dll api-ms-win-downlevel-shell32-l1-1-0 enable_api_ms_win_downlevel_shell32_l1_1_0
15671 wine_fn_config_dll api-ms-win-downlevel-shlwapi-l1-1-0 enable_api_ms_win_downlevel_shlwapi_l1_1_0
15672 wine_fn_config_dll api-ms-win-downlevel-shlwapi-l2-1-0 enable_api_ms_win_downlevel_shlwapi_l2_1_0
15673 wine_fn_config_dll api-ms-win-downlevel-user32-l1-1-0 enable_api_ms_win_downlevel_user32_l1_1_0
15674 wine_fn_config_dll api-ms-win-downlevel-version-l1-1-0 enable_api_ms_win_downlevel_version_l1_1_0
15675 wine_fn_config_dll api-ms-win-security-base-l1-1-0 enable_api_ms_win_security_base_l1_1_0
15676 wine_fn_config_dll apphelp enable_apphelp
15677 wine_fn_config_test dlls/apphelp/tests apphelp_test
15678 wine_fn_config_dll appwiz.cpl enable_appwiz_cpl po
15679 wine_fn_config_dll atl enable_atl implib
15680 wine_fn_config_test dlls/atl/tests atl_test
15681 wine_fn_config_dll atl100 enable_atl100 implib
15682 wine_fn_config_test dlls/atl100/tests atl100_test
15683 wine_fn_config_dll atl80 enable_atl80 implib
15684 wine_fn_config_dll authz enable_authz
15685 wine_fn_config_dll avicap32 enable_avicap32 implib
15686 wine_fn_config_dll avifil32 enable_avifil32 implib,po
15687 wine_fn_config_test dlls/avifil32/tests avifil32_test
15688 wine_fn_config_dll avifile.dll16 enable_win16
15689 wine_fn_config_dll avrt enable_avrt implib
15690 wine_fn_config_dll bcrypt enable_bcrypt
15691 wine_fn_config_dll browseui enable_browseui po
15692 wine_fn_config_test dlls/browseui/tests browseui_test
15693 wine_fn_config_dll cabinet enable_cabinet implib
15694 wine_fn_config_test dlls/cabinet/tests cabinet_test
15695 wine_fn_config_dll capi2032 enable_capi2032 implib
15696 wine_fn_config_dll cards enable_cards implib
15697 wine_fn_config_dll cfgmgr32 enable_cfgmgr32 implib
15698 wine_fn_config_dll clusapi enable_clusapi implib
15699 wine_fn_config_dll comcat enable_comcat
15700 wine_fn_config_test dlls/comcat/tests comcat_test
15701 wine_fn_config_dll comctl32 enable_comctl32 implib,po
15702 wine_fn_config_test dlls/comctl32/tests comctl32_test
15703 wine_fn_config_dll comdlg32 enable_comdlg32 implib,po
15704 wine_fn_config_test dlls/comdlg32/tests comdlg32_test
15705 wine_fn_config_dll comm.drv16 enable_win16
15706 wine_fn_config_dll commdlg.dll16 enable_win16
15707 wine_fn_config_dll compobj.dll16 enable_win16
15708 wine_fn_config_dll compstui enable_compstui implib
15709 wine_fn_config_dll credui enable_credui implib,po
15710 wine_fn_config_test dlls/credui/tests credui_test
15711 wine_fn_config_dll crtdll enable_crtdll implib
15712 wine_fn_config_dll crypt32 enable_crypt32 implib,po
15713 wine_fn_config_test dlls/crypt32/tests crypt32_test
15714 wine_fn_config_dll cryptdlg enable_cryptdlg po
15715 wine_fn_config_dll cryptdll enable_cryptdll implib
15716 wine_fn_config_dll cryptnet enable_cryptnet implib
15717 wine_fn_config_test dlls/cryptnet/tests cryptnet_test
15718 wine_fn_config_dll cryptui enable_cryptui implib,po
15719 wine_fn_config_test dlls/cryptui/tests cryptui_test
15720 wine_fn_config_dll ctapi32 enable_ctapi32
15721 wine_fn_config_dll ctl3d.dll16 enable_win16
15722 wine_fn_config_dll ctl3d32 enable_ctl3d32 implib
15723 wine_fn_config_dll ctl3dv2.dll16 enable_win16
15724 wine_fn_config_dll d3d10 enable_d3d10 implib
15725 wine_fn_config_test dlls/d3d10/tests d3d10_test
15726 wine_fn_config_dll d3d10core enable_d3d10core implib
15727 wine_fn_config_test dlls/d3d10core/tests d3d10core_test
15728 wine_fn_config_dll d3d11 enable_d3d11
15729 wine_fn_config_dll d3d8 enable_d3d8 implib
15730 wine_fn_config_test dlls/d3d8/tests d3d8_test
15731 wine_fn_config_dll d3d9 enable_d3d9 implib
15732 wine_fn_config_test dlls/d3d9/tests d3d9_test
15733 wine_fn_config_dll d3dcompiler_33 enable_d3dcompiler_33
15734 wine_fn_config_dll d3dcompiler_34 enable_d3dcompiler_34
15735 wine_fn_config_dll d3dcompiler_35 enable_d3dcompiler_35
15736 wine_fn_config_dll d3dcompiler_36 enable_d3dcompiler_36
15737 wine_fn_config_dll d3dcompiler_37 enable_d3dcompiler_37
15738 wine_fn_config_dll d3dcompiler_38 enable_d3dcompiler_38
15739 wine_fn_config_dll d3dcompiler_39 enable_d3dcompiler_39
15740 wine_fn_config_dll d3dcompiler_40 enable_d3dcompiler_40
15741 wine_fn_config_dll d3dcompiler_41 enable_d3dcompiler_41
15742 wine_fn_config_dll d3dcompiler_42 enable_d3dcompiler_42
15743 wine_fn_config_dll d3dcompiler_43 enable_d3dcompiler_43 implib d3dcompiler
15744 wine_fn_config_test dlls/d3dcompiler_43/tests d3dcompiler_43_test
15745 wine_fn_config_dll d3dim enable_d3dim implib
15746 wine_fn_config_dll d3drm enable_d3drm implib
15747 wine_fn_config_test dlls/d3drm/tests d3drm_test
15748 wine_fn_config_dll d3dx10_33 enable_d3dx10_33
15749 wine_fn_config_dll d3dx10_34 enable_d3dx10_34
15750 wine_fn_config_dll d3dx10_35 enable_d3dx10_35
15751 wine_fn_config_dll d3dx10_36 enable_d3dx10_36
15752 wine_fn_config_dll d3dx10_37 enable_d3dx10_37
15753 wine_fn_config_dll d3dx10_38 enable_d3dx10_38
15754 wine_fn_config_dll d3dx10_39 enable_d3dx10_39
15755 wine_fn_config_dll d3dx10_40 enable_d3dx10_40
15756 wine_fn_config_dll d3dx10_41 enable_d3dx10_41
15757 wine_fn_config_dll d3dx10_42 enable_d3dx10_42
15758 wine_fn_config_dll d3dx10_43 enable_d3dx10_43
15759 wine_fn_config_dll d3dx9_24 enable_d3dx9_24
15760 wine_fn_config_dll d3dx9_25 enable_d3dx9_25
15761 wine_fn_config_dll d3dx9_26 enable_d3dx9_26
15762 wine_fn_config_dll d3dx9_27 enable_d3dx9_27
15763 wine_fn_config_dll d3dx9_28 enable_d3dx9_28
15764 wine_fn_config_dll d3dx9_29 enable_d3dx9_29
15765 wine_fn_config_dll d3dx9_30 enable_d3dx9_30
15766 wine_fn_config_dll d3dx9_31 enable_d3dx9_31
15767 wine_fn_config_dll d3dx9_32 enable_d3dx9_32
15768 wine_fn_config_dll d3dx9_33 enable_d3dx9_33
15769 wine_fn_config_dll d3dx9_34 enable_d3dx9_34
15770 wine_fn_config_dll d3dx9_35 enable_d3dx9_35
15771 wine_fn_config_dll d3dx9_36 enable_d3dx9_36 implib d3dx9
15772 wine_fn_config_test dlls/d3dx9_36/tests d3dx9_36_test
15773 wine_fn_config_dll d3dx9_37 enable_d3dx9_37
15774 wine_fn_config_dll d3dx9_38 enable_d3dx9_38
15775 wine_fn_config_dll d3dx9_39 enable_d3dx9_39
15776 wine_fn_config_dll d3dx9_40 enable_d3dx9_40
15777 wine_fn_config_dll d3dx9_41 enable_d3dx9_41
15778 wine_fn_config_dll d3dx9_42 enable_d3dx9_42
15779 wine_fn_config_dll d3dx9_43 enable_d3dx9_43
15780 wine_fn_config_dll d3dxof enable_d3dxof implib
15781 wine_fn_config_test dlls/d3dxof/tests d3dxof_test
15782 wine_fn_config_dll dbgeng enable_dbgeng implib
15783 wine_fn_config_dll dbghelp enable_dbghelp implib
15784 wine_fn_config_dll dciman32 enable_dciman32 implib
15785 wine_fn_config_dll ddeml.dll16 enable_win16
15786 wine_fn_config_dll ddraw enable_ddraw implib
15787 wine_fn_config_test dlls/ddraw/tests ddraw_test
15788 wine_fn_config_dll ddrawex enable_ddrawex
15789 wine_fn_config_test dlls/ddrawex/tests ddrawex_test
15790 wine_fn_config_dll devenum enable_devenum po
15791 wine_fn_config_test dlls/devenum/tests devenum_test
15792 wine_fn_config_dll dhcpcsvc enable_dhcpcsvc
15793 wine_fn_config_dll dinput enable_dinput implib,po,staticimplib
15794 wine_fn_config_test dlls/dinput/tests dinput_test
15795 wine_fn_config_dll dinput8 enable_dinput8 implib
15796 wine_fn_config_test dlls/dinput8/tests dinput8_test
15797 wine_fn_config_dll dispdib.dll16 enable_win16
15798 wine_fn_config_dll dispex enable_dispex
15799 wine_fn_config_test dlls/dispex/tests dispex_test
15800 wine_fn_config_dll display.drv16 enable_win16
15801 wine_fn_config_dll dmband enable_dmband
15802 wine_fn_config_test dlls/dmband/tests dmband_test
15803 wine_fn_config_dll dmcompos enable_dmcompos
15804 wine_fn_config_dll dmime enable_dmime
15805 wine_fn_config_test dlls/dmime/tests dmime_test
15806 wine_fn_config_dll dmloader enable_dmloader
15807 wine_fn_config_test dlls/dmloader/tests dmloader_test
15808 wine_fn_config_dll dmscript enable_dmscript
15809 wine_fn_config_dll dmstyle enable_dmstyle
15810 wine_fn_config_dll dmsynth enable_dmsynth
15811 wine_fn_config_test dlls/dmsynth/tests dmsynth_test
15812 wine_fn_config_dll dmusic enable_dmusic
15813 wine_fn_config_test dlls/dmusic/tests dmusic_test
15814 wine_fn_config_dll dmusic32 enable_dmusic32 implib
15815 wine_fn_config_dll dnsapi enable_dnsapi implib
15816 wine_fn_config_test dlls/dnsapi/tests dnsapi_test
15817 wine_fn_config_dll dplay enable_dplay implib
15818 wine_fn_config_dll dplayx enable_dplayx implib
15819 wine_fn_config_test dlls/dplayx/tests dplayx_test
15820 wine_fn_config_dll dpnaddr enable_dpnaddr
15821 wine_fn_config_dll dpnet enable_dpnet implib
15822 wine_fn_config_test dlls/dpnet/tests dpnet_test
15823 wine_fn_config_dll dpnhpast enable_dpnhpast
15824 wine_fn_config_dll dpnlobby enable_dpnlobby
15825 wine_fn_config_dll dpwsockx enable_dpwsockx
15826 wine_fn_config_dll drmclien enable_drmclien
15827 wine_fn_config_dll dsound enable_dsound implib
15828 wine_fn_config_test dlls/dsound/tests dsound_test
15829 wine_fn_config_dll dssenh enable_dssenh
15830 wine_fn_config_test dlls/dssenh/tests dssenh_test
15831 wine_fn_config_dll dswave enable_dswave
15832 wine_fn_config_dll dwmapi enable_dwmapi implib
15833 wine_fn_config_dll dwrite enable_dwrite implib
15834 wine_fn_config_test dlls/dwrite/tests dwrite_test
15835 wine_fn_config_dll dxdiagn enable_dxdiagn po
15836 wine_fn_config_test dlls/dxdiagn/tests dxdiagn_test
15837 wine_fn_config_lib dxerr8
15838 wine_fn_config_lib dxerr9
15839 wine_fn_config_dll dxgi enable_dxgi implib
15840 wine_fn_config_test dlls/dxgi/tests dxgi_test
15841 wine_fn_config_lib dxguid
15842 wine_fn_config_dll explorerframe enable_explorerframe
15843 wine_fn_config_test dlls/explorerframe/tests explorerframe_test
15844 wine_fn_config_dll faultrep enable_faultrep implib
15845 wine_fn_config_test dlls/faultrep/tests faultrep_test
15846 wine_fn_config_dll fltlib enable_fltlib
15847 wine_fn_config_dll fusion enable_fusion
15848 wine_fn_config_test dlls/fusion/tests fusion_test
15849 wine_fn_config_dll fwpuclnt enable_fwpuclnt
15850 wine_fn_config_dll gameux enable_gameux
15851 wine_fn_config_test dlls/gameux/tests gameux_test
15852 wine_fn_config_dll gdi.exe16 enable_win16
15853 wine_fn_config_dll gdi32 enable_gdi32 implib,po
15854 wine_fn_config_test dlls/gdi32/tests gdi32_test
15855 wine_fn_config_dll gdiplus enable_gdiplus implib
15856 wine_fn_config_test dlls/gdiplus/tests gdiplus_test
15857 wine_fn_config_dll glu32 enable_glu32 implib
15858 wine_fn_config_dll gphoto2.ds enable_gphoto2_ds po
15859 wine_fn_config_dll gpkcsp enable_gpkcsp
15860 wine_fn_config_dll hal enable_hal
15861 wine_fn_config_dll hhctrl.ocx enable_hhctrl_ocx implib,po htmlhelp
15862 wine_fn_config_dll hid enable_hid implib
15863 wine_fn_config_dll hlink enable_hlink implib
15864 wine_fn_config_test dlls/hlink/tests hlink_test
15865 wine_fn_config_dll hnetcfg enable_hnetcfg
15866 wine_fn_config_dll httpapi enable_httpapi
15867 wine_fn_config_dll iccvid enable_iccvid po
15868 wine_fn_config_dll icmp enable_icmp
15869 wine_fn_config_dll ieframe enable_ieframe implib,po
15870 wine_fn_config_test dlls/ieframe/tests ieframe_test
15871 wine_fn_config_dll ifsmgr.vxd enable_win16
15872 wine_fn_config_dll imaadp32.acm enable_imaadp32_acm
15873 wine_fn_config_dll imagehlp enable_imagehlp implib
15874 wine_fn_config_test dlls/imagehlp/tests imagehlp_test
15875 wine_fn_config_dll imm.dll16 enable_win16
15876 wine_fn_config_dll imm32 enable_imm32 implib
15877 wine_fn_config_test dlls/imm32/tests imm32_test
15878 wine_fn_config_dll inetcomm enable_inetcomm implib
15879 wine_fn_config_test dlls/inetcomm/tests inetcomm_test
15880 wine_fn_config_dll inetcpl.cpl enable_inetcpl_cpl po
15881 wine_fn_config_dll inetmib1 enable_inetmib1
15882 wine_fn_config_test dlls/inetmib1/tests inetmib1_test
15883 wine_fn_config_dll infosoft enable_infosoft
15884 wine_fn_config_test dlls/infosoft/tests infosoft_test
15885 wine_fn_config_dll initpki enable_initpki
15886 wine_fn_config_dll inkobj enable_inkobj
15887 wine_fn_config_dll inseng enable_inseng
15888 wine_fn_config_dll iphlpapi enable_iphlpapi implib
15889 wine_fn_config_test dlls/iphlpapi/tests iphlpapi_test
15890 wine_fn_config_dll itircl enable_itircl
15891 wine_fn_config_dll itss enable_itss
15892 wine_fn_config_test dlls/itss/tests itss_test
15893 wine_fn_config_dll joy.cpl enable_joy_cpl po
15894 wine_fn_config_dll jscript enable_jscript po
15895 wine_fn_config_test dlls/jscript/tests jscript_test
15896 wine_fn_config_dll kernel32 enable_kernel32 implib,mc
15897 wine_fn_config_test dlls/kernel32/tests kernel32_test
15898 wine_fn_config_dll keyboard.drv16 enable_win16
15899 wine_fn_config_dll krnl386.exe16 enable_win16 implib kernel
15900 wine_fn_config_dll ktmw32 enable_ktmw32
15901 wine_fn_config_dll loadperf enable_loadperf implib
15902 wine_fn_config_dll localspl enable_localspl po
15903 wine_fn_config_test dlls/localspl/tests localspl_test
15904 wine_fn_config_dll localui enable_localui po
15905 wine_fn_config_test dlls/localui/tests localui_test
15906 wine_fn_config_dll lz32 enable_lz32 implib
15907 wine_fn_config_test dlls/lz32/tests lz32_test
15908 wine_fn_config_dll lzexpand.dll16 enable_win16
15909 wine_fn_config_dll mapi32 enable_mapi32 implib,po
15910 wine_fn_config_test dlls/mapi32/tests mapi32_test
15911 wine_fn_config_dll mapistub enable_mapistub
15912 wine_fn_config_dll mciavi32 enable_mciavi32
15913 wine_fn_config_dll mcicda enable_mcicda
15914 wine_fn_config_dll mciqtz32 enable_mciqtz32
15915 wine_fn_config_dll mciseq enable_mciseq
15916 wine_fn_config_dll mciwave enable_mciwave
15917 wine_fn_config_dll mgmtapi enable_mgmtapi
15918 wine_fn_config_dll midimap enable_midimap
15919 wine_fn_config_dll mlang enable_mlang implib
15920 wine_fn_config_test dlls/mlang/tests mlang_test
15921 wine_fn_config_dll mmcndmgr enable_mmcndmgr
15922 wine_fn_config_test dlls/mmcndmgr/tests mmcndmgr_test
15923 wine_fn_config_dll mmdevapi enable_mmdevapi
15924 wine_fn_config_test dlls/mmdevapi/tests mmdevapi_test
15925 wine_fn_config_dll mmdevldr.vxd enable_win16
15926 wine_fn_config_dll mmsystem.dll16 enable_win16
15927 wine_fn_config_dll monodebg.vxd enable_win16
15928 wine_fn_config_dll mountmgr.sys enable_mountmgr_sys
15929 wine_fn_config_dll mouse.drv16 enable_win16
15930 wine_fn_config_dll mpr enable_mpr implib,po
15931 wine_fn_config_test dlls/mpr/tests mpr_test
15932 wine_fn_config_dll mprapi enable_mprapi implib
15933 wine_fn_config_dll msacm.dll16 enable_win16
15934 wine_fn_config_dll msacm32.drv enable_msacm32_drv
15935 wine_fn_config_dll msacm32 enable_msacm32 implib,po
15936 wine_fn_config_test dlls/msacm32/tests msacm32_test
15937 wine_fn_config_dll msadp32.acm enable_msadp32_acm
15938 wine_fn_config_dll mscat32 enable_mscat32
15939 wine_fn_config_dll mscms enable_mscms implib
15940 wine_fn_config_test dlls/mscms/tests mscms_test
15941 wine_fn_config_dll mscoree enable_mscoree
15942 wine_fn_config_test dlls/mscoree/tests mscoree_test
15943 wine_fn_config_dll msctf enable_msctf
15944 wine_fn_config_test dlls/msctf/tests msctf_test
15945 wine_fn_config_dll msdaps enable_msdaps
15946 wine_fn_config_dll msdmo enable_msdmo implib
15947 wine_fn_config_dll msftedit enable_msftedit
15948 wine_fn_config_dll msg711.acm enable_msg711_acm
15949 wine_fn_config_dll msgsm32.acm enable_msgsm32_acm
15950 wine_fn_config_dll mshtml.tlb enable_mshtml_tlb
15951 wine_fn_config_dll mshtml enable_mshtml implib,po
15952 wine_fn_config_test dlls/mshtml/tests mshtml_test
15953 wine_fn_config_dll msi enable_msi implib,po
15954 wine_fn_config_test dlls/msi/tests msi_test
15955 wine_fn_config_dll msident enable_msident
15956 wine_fn_config_dll msimg32 enable_msimg32 implib
15957 wine_fn_config_dll msimsg enable_msimsg
15958 wine_fn_config_dll msimtf enable_msimtf
15959 wine_fn_config_dll msisip enable_msisip
15960 wine_fn_config_dll msisys.ocx enable_msisys_ocx
15961 wine_fn_config_dll msls31 enable_msls31
15962 wine_fn_config_dll msnet32 enable_msnet32
15963 wine_fn_config_dll mspatcha enable_mspatcha
15964 wine_fn_config_dll msrle32 enable_msrle32 po
15965 wine_fn_config_dll mssign32 enable_mssign32
15966 wine_fn_config_dll mssip32 enable_mssip32
15967 wine_fn_config_dll mstask enable_mstask
15968 wine_fn_config_test dlls/mstask/tests mstask_test
15969 wine_fn_config_dll msvcirt enable_msvcirt
15970 wine_fn_config_dll msvcm80 enable_msvcm80
15971 wine_fn_config_dll msvcm90 enable_msvcm90
15972 wine_fn_config_dll msvcp100 enable_msvcp100
15973 wine_fn_config_test dlls/msvcp100/tests msvcp100_test
15974 wine_fn_config_dll msvcp60 enable_msvcp60
15975 wine_fn_config_test dlls/msvcp60/tests msvcp60_test
15976 wine_fn_config_dll msvcp70 enable_msvcp70
15977 wine_fn_config_dll msvcp71 enable_msvcp71
15978 wine_fn_config_dll msvcp80 enable_msvcp80
15979 wine_fn_config_dll msvcp90 enable_msvcp90
15980 wine_fn_config_test dlls/msvcp90/tests msvcp90_test
15981 wine_fn_config_dll msvcr100 enable_msvcr100
15982 wine_fn_config_test dlls/msvcr100/tests msvcr100_test
15983 wine_fn_config_dll msvcr70 enable_msvcr70 implib
15984 wine_fn_config_dll msvcr71 enable_msvcr71 implib
15985 wine_fn_config_dll msvcr80 enable_msvcr80
15986 wine_fn_config_dll msvcr90 enable_msvcr90
15987 wine_fn_config_test dlls/msvcr90/tests msvcr90_test
15988 wine_fn_config_dll msvcrt enable_msvcrt implib
15989 wine_fn_config_test dlls/msvcrt/tests msvcrt_test
15990 wine_fn_config_dll msvcrt20 enable_msvcrt20 implib
15991 wine_fn_config_dll msvcrt40 enable_msvcrt40 implib
15992 wine_fn_config_dll msvcrtd enable_msvcrtd implib
15993 wine_fn_config_test dlls/msvcrtd/tests msvcrtd_test
15994 wine_fn_config_dll msvfw32 enable_msvfw32 implib,po
15995 wine_fn_config_test dlls/msvfw32/tests msvfw32_test
15996 wine_fn_config_dll msvidc32 enable_msvidc32 po
15997 wine_fn_config_dll msvideo.dll16 enable_win16
15998 wine_fn_config_dll mswsock enable_mswsock implib
15999 wine_fn_config_dll msxml enable_msxml
16000 wine_fn_config_dll msxml2 enable_msxml2
16001 wine_fn_config_dll msxml3 enable_msxml3
16002 wine_fn_config_test dlls/msxml3/tests msxml3_test
16003 wine_fn_config_dll msxml4 enable_msxml4
16004 wine_fn_config_dll msxml6 enable_msxml6
16005 wine_fn_config_dll nddeapi enable_nddeapi implib
16006 wine_fn_config_dll netapi32 enable_netapi32 implib
16007 wine_fn_config_test dlls/netapi32/tests netapi32_test
16008 wine_fn_config_dll newdev enable_newdev implib
16009 wine_fn_config_dll normaliz enable_normaliz implib
16010 wine_fn_config_dll npmshtml enable_npmshtml
16011 wine_fn_config_dll ntdll enable_ntdll implib
16012 wine_fn_config_test dlls/ntdll/tests ntdll_test
16013 wine_fn_config_dll ntdsapi enable_ntdsapi implib
16014 wine_fn_config_test dlls/ntdsapi/tests ntdsapi_test
16015 wine_fn_config_dll ntoskrnl.exe enable_ntoskrnl_exe implib
16016 wine_fn_config_dll ntprint enable_ntprint
16017 wine_fn_config_test dlls/ntprint/tests ntprint_test
16018 wine_fn_config_dll objsel enable_objsel
16019 wine_fn_config_dll odbc32 enable_odbc32 implib
16020 wine_fn_config_dll odbccp32 enable_odbccp32 implib
16021 wine_fn_config_test dlls/odbccp32/tests odbccp32_test
16022 wine_fn_config_dll odbccu32 enable_odbccu32
16023 wine_fn_config_dll ole2.dll16 enable_win16
16024 wine_fn_config_dll ole2conv.dll16 enable_win16
16025 wine_fn_config_dll ole2disp.dll16 enable_win16
16026 wine_fn_config_dll ole2nls.dll16 enable_win16
16027 wine_fn_config_dll ole2prox.dll16 enable_win16
16028 wine_fn_config_dll ole2thk.dll16 enable_win16
16029 wine_fn_config_dll ole32 enable_ole32 implib
16030 wine_fn_config_test dlls/ole32/tests ole32_test
16031 wine_fn_config_dll oleacc enable_oleacc implib,po
16032 wine_fn_config_test dlls/oleacc/tests oleacc_test
16033 wine_fn_config_dll oleaut32 enable_oleaut32 implib,po
16034 wine_fn_config_test dlls/oleaut32/tests oleaut32_test
16035 wine_fn_config_dll olecli.dll16 enable_win16
16036 wine_fn_config_dll olecli32 enable_olecli32 implib
16037 wine_fn_config_dll oledb32 enable_oledb32
16038 wine_fn_config_test dlls/oledb32/tests oledb32_test
16039 wine_fn_config_dll oledlg enable_oledlg implib,po
16040 wine_fn_config_dll olepro32 enable_olepro32 implib
16041 wine_fn_config_dll olesvr.dll16 enable_win16
16042 wine_fn_config_dll olesvr32 enable_olesvr32 implib
16043 wine_fn_config_dll olethk32 enable_olethk32
16044 wine_fn_config_dll openal32 enable_openal32
16045 wine_fn_config_dll opencl enable_opencl
16046 wine_fn_config_dll opengl32 enable_opengl32 implib
16047 wine_fn_config_test dlls/opengl32/tests opengl32_test
16048 wine_fn_config_dll pdh enable_pdh implib
16049 wine_fn_config_test dlls/pdh/tests pdh_test
16050 wine_fn_config_dll photometadatahandler enable_photometadatahandler
16051 wine_fn_config_dll pidgen enable_pidgen
16052 wine_fn_config_dll powrprof enable_powrprof implib
16053 wine_fn_config_dll printui enable_printui
16054 wine_fn_config_dll propsys enable_propsys implib
16055 wine_fn_config_test dlls/propsys/tests propsys_test
16056 wine_fn_config_dll psapi enable_psapi implib
16057 wine_fn_config_test dlls/psapi/tests psapi_test
16058 wine_fn_config_dll pstorec enable_pstorec
16059 wine_fn_config_dll qcap enable_qcap
16060 wine_fn_config_dll qedit enable_qedit
16061 wine_fn_config_test dlls/qedit/tests qedit_test
16062 wine_fn_config_dll qmgr enable_qmgr
16063 wine_fn_config_test dlls/qmgr/tests qmgr_test
16064 wine_fn_config_dll qmgrprxy enable_qmgrprxy
16065 wine_fn_config_dll quartz enable_quartz implib
16066 wine_fn_config_test dlls/quartz/tests quartz_test
16067 wine_fn_config_dll query enable_query
16068 wine_fn_config_dll rasapi16.dll16 enable_win16
16069 wine_fn_config_dll rasapi32 enable_rasapi32 implib
16070 wine_fn_config_test dlls/rasapi32/tests rasapi32_test
16071 wine_fn_config_dll rasdlg enable_rasdlg implib
16072 wine_fn_config_dll regapi enable_regapi
16073 wine_fn_config_dll resutils enable_resutils implib
16074 wine_fn_config_dll riched20 enable_riched20 implib
16075 wine_fn_config_test dlls/riched20/tests riched20_test
16076 wine_fn_config_dll riched32 enable_riched32
16077 wine_fn_config_test dlls/riched32/tests riched32_test
16078 wine_fn_config_dll rpcrt4 enable_rpcrt4 implib
16079 wine_fn_config_test dlls/rpcrt4/tests rpcrt4_test
16080 wine_fn_config_dll rsabase enable_rsabase
16081 wine_fn_config_dll rsaenh enable_rsaenh implib
16082 wine_fn_config_test dlls/rsaenh/tests rsaenh_test
16083 wine_fn_config_dll rstrtmgr enable_rstrtmgr
16084 wine_fn_config_dll rtutils enable_rtutils implib
16085 wine_fn_config_dll samlib enable_samlib
16086 wine_fn_config_dll sane.ds enable_sane_ds po
16087 wine_fn_config_dll scarddlg enable_scarddlg
16088 wine_fn_config_dll sccbase enable_sccbase
16089 wine_fn_config_dll schannel enable_schannel
16090 wine_fn_config_test dlls/schannel/tests schannel_test
16091 wine_fn_config_dll scrrun enable_scrrun
16092 wine_fn_config_test dlls/scrrun/tests scrrun_test
16093 wine_fn_config_dll scsiport.sys enable_scsiport_sys
16094 wine_fn_config_dll secur32 enable_secur32 implib
16095 wine_fn_config_test dlls/secur32/tests secur32_test
16096 wine_fn_config_dll security enable_security
16097 wine_fn_config_dll sensapi enable_sensapi implib
16098 wine_fn_config_dll serialui enable_serialui implib,po
16099 wine_fn_config_test dlls/serialui/tests serialui_test
16100 wine_fn_config_dll setupapi enable_setupapi implib,po
16101 wine_fn_config_test dlls/setupapi/tests setupapi_test
16102 wine_fn_config_dll setupx.dll16 enable_win16
16103 wine_fn_config_dll sfc enable_sfc implib
16104 wine_fn_config_dll sfc_os enable_sfc_os implib
16105 wine_fn_config_dll shdoclc enable_shdoclc po
16106 wine_fn_config_dll shdocvw enable_shdocvw implib
16107 wine_fn_config_test dlls/shdocvw/tests shdocvw_test
16108 wine_fn_config_dll shell.dll16 enable_win16
16109 wine_fn_config_dll shell32 enable_shell32 implib,po
16110 wine_fn_config_test dlls/shell32/tests shell32_test
16111 wine_fn_config_dll shfolder enable_shfolder implib
16112 wine_fn_config_dll shlwapi enable_shlwapi implib,po
16113 wine_fn_config_test dlls/shlwapi/tests shlwapi_test
16114 wine_fn_config_dll slbcsp enable_slbcsp
16115 wine_fn_config_dll slc enable_slc implib
16116 wine_fn_config_dll snmpapi enable_snmpapi implib
16117 wine_fn_config_test dlls/snmpapi/tests snmpapi_test
16118 wine_fn_config_dll softpub enable_softpub
16119 wine_fn_config_dll sound.drv16 enable_win16
16120 wine_fn_config_dll spoolss enable_spoolss implib
16121 wine_fn_config_test dlls/spoolss/tests spoolss_test
16122 wine_fn_config_dll stdole2.tlb enable_stdole2_tlb
16123 wine_fn_config_dll stdole32.tlb enable_stdole32_tlb
16124 wine_fn_config_dll sti enable_sti implib
16125 wine_fn_config_test dlls/sti/tests sti_test
16126 wine_fn_config_dll storage.dll16 enable_win16
16127 wine_fn_config_dll stress.dll16 enable_win16
16128 wine_fn_config_lib strmbase
16129 wine_fn_config_lib strmiids
16130 wine_fn_config_dll svrapi enable_svrapi
16131 wine_fn_config_dll sxs enable_sxs implib
16132 wine_fn_config_test dlls/sxs/tests sxs_test
16133 wine_fn_config_dll system.drv16 enable_win16
16134 wine_fn_config_dll t2embed enable_t2embed
16135 wine_fn_config_dll tapi32 enable_tapi32 implib
16136 wine_fn_config_dll toolhelp.dll16 enable_win16
16137 wine_fn_config_dll traffic enable_traffic
16138 wine_fn_config_dll twain.dll16 enable_win16
16139 wine_fn_config_dll twain_32 enable_twain_32
16140 wine_fn_config_test dlls/twain_32/tests twain_32_test
16141 wine_fn_config_dll typelib.dll16 enable_win16
16142 wine_fn_config_dll unicows enable_unicows implib
16143 wine_fn_config_dll updspapi enable_updspapi
16144 wine_fn_config_dll url enable_url implib
16145 wine_fn_config_dll urlmon enable_urlmon implib,po
16146 wine_fn_config_test dlls/urlmon/tests urlmon_test
16147 wine_fn_config_dll usbd.sys enable_usbd_sys implib
16148 wine_fn_config_dll user.exe16 enable_win16
16149 wine_fn_config_dll user32 enable_user32 implib,po
16150 wine_fn_config_test dlls/user32/tests user32_test
16151 wine_fn_config_dll userenv enable_userenv implib
16152 wine_fn_config_test dlls/userenv/tests userenv_test
16153 wine_fn_config_dll usp10 enable_usp10 implib
16154 wine_fn_config_test dlls/usp10/tests usp10_test
16155 wine_fn_config_lib uuid
16156 wine_fn_config_dll uxtheme enable_uxtheme implib
16157 wine_fn_config_test dlls/uxtheme/tests uxtheme_test
16158 wine_fn_config_dll vbscript enable_vbscript
16159 wine_fn_config_test dlls/vbscript/tests vbscript_test
16160 wine_fn_config_dll vcomp enable_vcomp
16161 wine_fn_config_dll vcomp100 enable_vcomp100
16162 wine_fn_config_dll vcomp90 enable_vcomp90
16163 wine_fn_config_dll vdhcp.vxd enable_win16
16164 wine_fn_config_dll vdmdbg enable_vdmdbg implib
16165 wine_fn_config_dll ver.dll16 enable_win16
16166 wine_fn_config_dll version enable_version implib
16167 wine_fn_config_test dlls/version/tests version_test
16168 wine_fn_config_dll vmm.vxd enable_win16
16169 wine_fn_config_dll vnbt.vxd enable_win16
16170 wine_fn_config_dll vnetbios.vxd enable_win16
16171 wine_fn_config_dll vtdapi.vxd enable_win16
16172 wine_fn_config_dll vwin32.vxd enable_win16
16173 wine_fn_config_dll w32skrnl enable_win16
16174 wine_fn_config_dll w32sys.dll16 enable_win16
16175 wine_fn_config_dll wbemprox enable_wbemprox
16176 wine_fn_config_test dlls/wbemprox/tests wbemprox_test
16177 wine_fn_config_dll wer enable_wer implib
16178 wine_fn_config_test dlls/wer/tests wer_test
16179 wine_fn_config_dll wevtapi enable_wevtapi
16180 wine_fn_config_dll wiaservc enable_wiaservc
16181 wine_fn_config_dll win32s16.dll16 enable_win16
16182 wine_fn_config_dll win87em.dll16 enable_win16
16183 wine_fn_config_dll winaspi.dll16 enable_win16
16184 wine_fn_config_dll windebug.dll16 enable_win16
16185 wine_fn_config_dll windowscodecs enable_windowscodecs implib
16186 wine_fn_config_test dlls/windowscodecs/tests windowscodecs_test
16187 wine_fn_config_dll windowscodecsext enable_windowscodecsext implib
16188 wine_fn_config_test dlls/windowscodecsext/tests windowscodecsext_test
16189 wine_fn_config_dll winealsa.drv enable_winealsa_drv
16190 wine_fn_config_dll winecoreaudio.drv enable_winecoreaudio_drv
16191 wine_fn_config_lib winecrt0
16192 wine_fn_config_dll wined3d enable_wined3d implib
16193 wine_fn_config_dll winegstreamer enable_winegstreamer
16194 wine_fn_config_dll winejoystick.drv enable_winejoystick_drv
16195 wine_fn_config_dll winemac.drv enable_winemac_drv
16196 wine_fn_config_dll winemapi enable_winemapi
16197 wine_fn_config_dll winemp3.acm enable_winemp3_acm
16198 wine_fn_config_dll wineoss.drv enable_wineoss_drv
16199 wine_fn_config_dll wineps.drv enable_wineps_drv install-lib,po
16200 wine_fn_config_dll wineps16.drv16 enable_win16
16201 wine_fn_config_dll wineqtdecoder enable_wineqtdecoder
16202 wine_fn_config_dll winex11.drv enable_winex11_drv
16203 wine_fn_config_dll wing.dll16 enable_win16
16204 wine_fn_config_dll wing32 enable_wing32
16205 wine_fn_config_dll winhttp enable_winhttp implib
16206 wine_fn_config_test dlls/winhttp/tests winhttp_test
16207 wine_fn_config_dll wininet enable_wininet implib,po
16208 wine_fn_config_test dlls/wininet/tests wininet_test
16209 wine_fn_config_dll winmm enable_winmm implib,po
16210 wine_fn_config_test dlls/winmm/tests winmm_test
16211 wine_fn_config_dll winnls.dll16 enable_win16
16212 wine_fn_config_dll winnls32 enable_winnls32 implib
16213 wine_fn_config_dll winscard enable_winscard implib
16214 wine_fn_config_dll winsock.dll16 enable_win16
16215 wine_fn_config_dll winspool.drv enable_winspool_drv implib,po winspool
16216 wine_fn_config_test dlls/winspool.drv/tests winspool.drv_test
16217 wine_fn_config_dll winsta enable_winsta
16218 wine_fn_config_dll wintab.dll16 enable_win16
16219 wine_fn_config_dll wintab32 enable_wintab32 implib
16220 wine_fn_config_test dlls/wintab32/tests wintab32_test
16221 wine_fn_config_dll wintrust enable_wintrust implib
16222 wine_fn_config_test dlls/wintrust/tests wintrust_test
16223 wine_fn_config_dll wlanapi enable_wlanapi
16224 wine_fn_config_dll wldap32 enable_wldap32 implib,po
16225 wine_fn_config_test dlls/wldap32/tests wldap32_test
16226 wine_fn_config_dll wmi enable_wmi
16227 wine_fn_config_dll wmiutils enable_wmiutils
16228 wine_fn_config_test dlls/wmiutils/tests wmiutils_test
16229 wine_fn_config_dll wmvcore enable_wmvcore
16230 wine_fn_config_dll wnaspi32 enable_wnaspi32 implib
16231 wine_fn_config_dll wow32 enable_win16 implib
16232 wine_fn_config_dll ws2_32 enable_ws2_32 implib
16233 wine_fn_config_test dlls/ws2_32/tests ws2_32_test
16234 wine_fn_config_dll wshom.ocx enable_wshom_ocx
16235 wine_fn_config_test dlls/wshom.ocx/tests wshom.ocx_test
16236 wine_fn_config_dll wsnmp32 enable_wsnmp32
16237 wine_fn_config_dll wsock32 enable_wsock32 implib
16238 wine_fn_config_dll wtsapi32 enable_wtsapi32 implib
16239 wine_fn_config_dll wuapi enable_wuapi
16240 wine_fn_config_dll wuaueng enable_wuaueng
16241 wine_fn_config_dll xapofx1_1 enable_xapofx1_1
16242 wine_fn_config_dll xinput1_1 enable_xinput1_1
16243 wine_fn_config_dll xinput1_2 enable_xinput1_2
16244 wine_fn_config_dll xinput1_3 enable_xinput1_3 implib xinput
16245 wine_fn_config_test dlls/xinput1_3/tests xinput1_3_test
16246 wine_fn_config_dll xinput9_1_0 enable_xinput9_1_0
16247 wine_fn_config_dll xmllite enable_xmllite
16248 wine_fn_config_test dlls/xmllite/tests xmllite_test
16249 wine_fn_config_dll xolehlp enable_xolehlp
16250 wine_fn_config_dll xpsprint enable_xpsprint
16251 wine_fn_config_dll xpssvcs enable_xpssvcs
16252 wine_fn_config_makefile documentation enable_documentation
16253 wine_fn_config_makefile fonts enable_fonts install-lib
16254 wine_fn_config_makefile include enable_include install-dev
16255 wine_fn_config_makefile libs/port enable_libs_port
16256 wine_fn_config_makefile libs/wine enable_libs_wine install-dev,install-lib
16257 wine_fn_config_makefile libs/wpp enable_libs_wpp
16258 wine_fn_config_makefile loader enable_loader install-lib,manpage
16259 wine_fn_config_program aspnet_regiis enable_aspnet_regiis install
16260 wine_fn_config_program attrib enable_attrib install,po
16261 wine_fn_config_program cabarc enable_cabarc install
16262 wine_fn_config_program cacls enable_cacls install
16263 wine_fn_config_program clock enable_clock install,po
16264 wine_fn_config_program cmd enable_cmd install,po
16265 wine_fn_config_test programs/cmd/tests cmd.exe_test
16266 wine_fn_config_program conhost enable_conhost install
16267 wine_fn_config_program control enable_control install
16268 wine_fn_config_program cscript enable_cscript install
16269 wine_fn_config_program dxdiag enable_dxdiag install,po
16270 wine_fn_config_program eject enable_eject install
16271 wine_fn_config_program expand enable_expand install
16272 wine_fn_config_program explorer enable_explorer install,po
16273 wine_fn_config_program extrac32 enable_extrac32 install
16274 wine_fn_config_program findstr enable_findstr install
16275 wine_fn_config_program hh enable_hh install
16276 wine_fn_config_program hostname enable_hostname install,po
16277 wine_fn_config_program icinfo enable_icinfo install
16278 wine_fn_config_program iexplore enable_iexplore install
16279 wine_fn_config_program ipconfig enable_ipconfig install,po
16280 wine_fn_config_program lodctr enable_lodctr install
16281 wine_fn_config_program mofcomp enable_mofcomp install
16282 wine_fn_config_program mshta enable_mshta install
16283 wine_fn_config_program msiexec enable_msiexec install,installbin,manpage
16284 wine_fn_config_program net enable_net install,po
16285 wine_fn_config_program netsh enable_netsh install
16286 wine_fn_config_program netstat enable_netstat install,po
16287 wine_fn_config_program ngen enable_ngen install
16288 wine_fn_config_program notepad enable_notepad install,installbin,manpage,po
16289 wine_fn_config_program oleview enable_oleview install,po
16290 wine_fn_config_program ping enable_ping install
16291 wine_fn_config_program plugplay enable_plugplay install
16292 wine_fn_config_program presentationfontcache enable_presentationfontcache install
16293 wine_fn_config_program progman enable_progman install,po
16294 wine_fn_config_program reg enable_reg install,po
16295 wine_fn_config_program regasm enable_regasm install
16296 wine_fn_config_program regedit enable_regedit install,installbin,manpage,po
16297 wine_fn_config_test programs/regedit/tests regedit.exe_test
16298 wine_fn_config_program regsvcs enable_regsvcs install
16299 wine_fn_config_program regsvr32 enable_regsvr32 install,installbin,manpage
16300 wine_fn_config_program rpcss enable_rpcss install
16301 wine_fn_config_program rundll.exe16 enable_win16 install
16302 wine_fn_config_program rundll32 enable_rundll32 install
16303 wine_fn_config_program sc enable_sc install
16304 wine_fn_config_program schtasks enable_schtasks install
16305 wine_fn_config_program secedit enable_secedit install
16306 wine_fn_config_program servicemodelreg enable_servicemodelreg install
16307 wine_fn_config_program services enable_services install
16308 wine_fn_config_test programs/services/tests services.exe_test
16309 wine_fn_config_program spoolsv enable_spoolsv install
16310 wine_fn_config_program start enable_start install,po
16311 wine_fn_config_program svchost enable_svchost install
16312 wine_fn_config_program taskkill enable_taskkill install,po
16313 wine_fn_config_program taskmgr enable_taskmgr install,po
16314 wine_fn_config_program termsv enable_termsv install
16315 wine_fn_config_program uninstaller enable_uninstaller install,po
16316 wine_fn_config_program unlodctr enable_unlodctr install
16317 wine_fn_config_program view enable_view install,po
16318 wine_fn_config_program wineboot enable_wineboot install,installbin,manpage,po
16319 wine_fn_config_program winebrowser enable_winebrowser install
16320 wine_fn_config_program winecfg enable_winecfg install,installbin,manpage,po
16321 wine_fn_config_program wineconsole enable_wineconsole install,installbin,manpage,po
16322 wine_fn_config_program winedbg enable_winedbg install,installbin,manpage,po
16323 wine_fn_config_program winedevice enable_winedevice install
16324 wine_fn_config_program winefile enable_winefile install,installbin,manpage,po
16325 wine_fn_config_program winemenubuilder enable_winemenubuilder install
16326 wine_fn_config_program winemine enable_winemine install,installbin,manpage,po
16327 wine_fn_config_program winemsibuilder enable_winemsibuilder install
16328 wine_fn_config_program winepath enable_winepath install,installbin,manpage
16329 wine_fn_config_program winetest enable_winetest
16330 wine_fn_config_program winevdm enable_win16 install
16331 wine_fn_config_program winhelp.exe16 enable_win16 install
16332 wine_fn_config_program winhlp32 enable_winhlp32 install,po
16333 wine_fn_config_program winoldap.mod16 enable_win16 install
16334 wine_fn_config_program winver enable_winver install
16335 wine_fn_config_program wmic enable_wmic install,po
16336 wine_fn_config_program wordpad enable_wordpad install,po
16337 wine_fn_config_program write enable_write install,po
16338 wine_fn_config_program wscript enable_wscript install
16339 wine_fn_config_test programs/wscript/tests wscript.exe_test
16340 wine_fn_config_program wusa enable_wusa install
16341 wine_fn_config_program xcopy enable_xcopy install,po
16342 wine_fn_config_makefile server enable_server install-lib,manpage
16343 wine_fn_config_tool tools install-dev,install-lib,manpage
16344 wine_fn_config_tool tools/widl install-dev,manpage
16345 wine_fn_config_tool tools/winebuild install-dev,manpage
16346 wine_fn_config_tool tools/winedump install-dev,manpage
16347 wine_fn_config_tool tools/winegcc install-dev,manpage
16348 wine_fn_config_tool tools/wmc install-dev,manpage
16349 wine_fn_config_tool tools/wrc install-dev,manpage
16350
16351 LINGUAS="\
16352 ar \
16353 bg \
16354 ca \
16355 cs \
16356 da \
16357 de \
16358 el \
16359 en \
16360 en_US \
16361 eo \
16362 es \
16363 fa \
16364 fi \
16365 fr \
16366 he \
16367 hi \
16368 hu \
16369 it \
16370 ja \
16371 ko \
16372 lt \
16373 ml \
16374 nb_NO \
16375 nl \
16376 or \
16377 pa \
16378 pl \
16379 pt_BR \
16380 pt_PT \
16381 rm \
16382 ro \
16383 ru \
16384 sk \
16385 sl \
16386 sr_RS@cyrillic \
16387 sr_RS@latin \
16388 sv \
16389 te \
16390 th \
16391 tr \
16392 uk \
16393 wa \
16394 zh_CN \
16395 zh_TW"
16396
16397
16398
16399 ac_config_commands="$ac_config_commands Makefile"
16400
16401
16402 ac_config_files="$ac_config_files Make.tmp:Make.vars.in:Makefile.in"
16403
16404
16405
16406 if test "x$enable_maintainer_mode" = xyes
16407 then
16408     wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(srcdir)/configure: configure.ac aclocal.m4
16409         cd \$(srcdir) && autoconf --warnings=all
16410 \$(srcdir)/include/config.h.in: include/stamp-h.in
16411 \$(srcdir)/include/stamp-h.in: configure.ac aclocal.m4
16412         cd \$(srcdir) && autoheader --warnings=all
16413         @echo timestamp > \$@"
16414 fi
16415
16416 if test "x$with_gettextpo" = xyes
16417 then
16418     test "$srcdir" = . || as_fn_error $? "Rebuilding po files is not supported for out of tree builds." "$LINENO" 5
16419     wine_fn_append_rule ALL_MAKEFILE_DEPENDS "ALL_POT_FILES =$ALL_POT_FILES
16420 \$(LINGUAS:%=po/%.po): \$(srcdir)/po/wine.pot
16421         msgmerge --previous -q \$@ \$(srcdir)/po/wine.pot | msgattrib --no-obsolete -o \$@.new && mv \$@.new \$@
16422 \$(srcdir)/po/wine.pot: \$(ALL_POT_FILES)
16423         msgcat -o \$@ \$(ALL_POT_FILES)"
16424 fi
16425
16426 if test "$MSGFMT" != false
16427 then
16428     PORCFLAGS="--po-dir=\$(top_builddir)/po"
16429
16430     wine_fn_append_rule ALL_MAKEFILE_DEPENDS "__builddeps__: \$(ALL_MO_FILES)"
16431 else
16432     LINGUAS=
16433 fi
16434
16435 if test "x$enable_tools" != xno
16436 then
16437     wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(MAKEDEP): tools/Makefile
16438 clean:: __clean__
16439         \$(RM) tools/makedep\$(EXEEXT)"
16440 fi
16441
16442 if test -n "$with_wine64"
16443 then
16444 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "all: fonts server tools $with_wine64/loader/wine $with_wine64/loader/wine-preloader
16445 fonts server tools:
16446         \$(RM) \$@ && \$(LN_S) $with_wine64/\$@ \$@
16447 $with_wine64/loader/wine:
16448         \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine \$@
16449 $with_wine64/loader/wine-preloader:
16450         \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine-preloader \$@
16451 clean::
16452         \$(RM) fonts server tools $with_wine64/loader/wine $with_wine64/loader/wine-preloader"
16453 fi
16454
16455 cat >confcache <<\_ACEOF
16456 # This file is a shell script that caches the results of configure
16457 # tests run on this system so they can be shared between configure
16458 # scripts and configure runs, see configure's option --config-cache.
16459 # It is not useful on other systems.  If it contains results you don't
16460 # want to keep, you may remove or edit it.
16461 #
16462 # config.status only pays attention to the cache file if you give it
16463 # the --recheck option to rerun configure.
16464 #
16465 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16466 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16467 # following values.
16468
16469 _ACEOF
16470
16471 # The following way of writing the cache mishandles newlines in values,
16472 # but we know of no workaround that is simple, portable, and efficient.
16473 # So, we kill variables containing newlines.
16474 # Ultrix sh set writes to stderr and can't be redirected directly,
16475 # and sets the high bit in the cache file unless we assign to the vars.
16476 (
16477   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16478     eval ac_val=\$$ac_var
16479     case $ac_val in #(
16480     *${as_nl}*)
16481       case $ac_var in #(
16482       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16483 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16484       esac
16485       case $ac_var in #(
16486       _ | IFS | as_nl) ;; #(
16487       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16488       *) { eval $ac_var=; unset $ac_var;} ;;
16489       esac ;;
16490     esac
16491   done
16492
16493   (set) 2>&1 |
16494     case $as_nl`(ac_space=' '; set) 2>&1` in #(
16495     *${as_nl}ac_space=\ *)
16496       # `set' does not quote correctly, so add quotes: double-quote
16497       # substitution turns \\\\ into \\, and sed turns \\ into \.
16498       sed -n \
16499         "s/'/'\\\\''/g;
16500           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16501       ;; #(
16502     *)
16503       # `set' quotes correctly as required by POSIX, so do not add quotes.
16504       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16505       ;;
16506     esac |
16507     sort
16508 ) |
16509   sed '
16510      /^ac_cv_env_/b end
16511      t clear
16512      :clear
16513      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16514      t end
16515      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16516      :end' >>confcache
16517 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16518   if test -w "$cache_file"; then
16519     if test "x$cache_file" != "x/dev/null"; then
16520       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16521 $as_echo "$as_me: updating cache $cache_file" >&6;}
16522       if test ! -f "$cache_file" || test -h "$cache_file"; then
16523         cat confcache >"$cache_file"
16524       else
16525         case $cache_file in #(
16526         */* | ?:*)
16527           mv -f confcache "$cache_file"$$ &&
16528           mv -f "$cache_file"$$ "$cache_file" ;; #(
16529         *)
16530           mv -f confcache "$cache_file" ;;
16531         esac
16532       fi
16533     fi
16534   else
16535     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16536 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16537   fi
16538 fi
16539 rm -f confcache
16540
16541 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16542 # Let make expand exec_prefix.
16543 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16544
16545 DEFS=-DHAVE_CONFIG_H
16546
16547 ac_libobjs=
16548 ac_ltlibobjs=
16549 U=
16550 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16551   # 1. Remove the extension, and $U if already installed.
16552   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16553   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16554   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
16555   #    will be set to the directory where LIBOBJS objects are built.
16556   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16557   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16558 done
16559 LIBOBJS=$ac_libobjs
16560
16561 LTLIBOBJS=$ac_ltlibobjs
16562
16563
16564
16565 : "${CONFIG_STATUS=./config.status}"
16566 ac_write_fail=0
16567 ac_clean_files_save=$ac_clean_files
16568 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16569 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16570 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16571 as_write_fail=0
16572 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16573 #! $SHELL
16574 # Generated by $as_me.
16575 # Run this file to recreate the current configuration.
16576 # Compiler output produced by configure, useful for debugging
16577 # configure, is in config.log if it exists.
16578
16579 debug=false
16580 ac_cs_recheck=false
16581 ac_cs_silent=false
16582
16583 SHELL=\${CONFIG_SHELL-$SHELL}
16584 export SHELL
16585 _ASEOF
16586 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16587 ## -------------------- ##
16588 ## M4sh Initialization. ##
16589 ## -------------------- ##
16590
16591 # Be more Bourne compatible
16592 DUALCASE=1; export DUALCASE # for MKS sh
16593 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16594   emulate sh
16595   NULLCMD=:
16596   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16597   # is contrary to our usage.  Disable this feature.
16598   alias -g '${1+"$@"}'='"$@"'
16599   setopt NO_GLOB_SUBST
16600 else
16601   case `(set -o) 2>/dev/null` in #(
16602   *posix*) :
16603     set -o posix ;; #(
16604   *) :
16605      ;;
16606 esac
16607 fi
16608
16609
16610 as_nl='
16611 '
16612 export as_nl
16613 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16614 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16615 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16616 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16617 # Prefer a ksh shell builtin over an external printf program on Solaris,
16618 # but without wasting forks for bash or zsh.
16619 if test -z "$BASH_VERSION$ZSH_VERSION" \
16620     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16621   as_echo='print -r --'
16622   as_echo_n='print -rn --'
16623 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16624   as_echo='printf %s\n'
16625   as_echo_n='printf %s'
16626 else
16627   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16628     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16629     as_echo_n='/usr/ucb/echo -n'
16630   else
16631     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16632     as_echo_n_body='eval
16633       arg=$1;
16634       case $arg in #(
16635       *"$as_nl"*)
16636         expr "X$arg" : "X\\(.*\\)$as_nl";
16637         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16638       esac;
16639       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16640     '
16641     export as_echo_n_body
16642     as_echo_n='sh -c $as_echo_n_body as_echo'
16643   fi
16644   export as_echo_body
16645   as_echo='sh -c $as_echo_body as_echo'
16646 fi
16647
16648 # The user is always right.
16649 if test "${PATH_SEPARATOR+set}" != set; then
16650   PATH_SEPARATOR=:
16651   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16652     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16653       PATH_SEPARATOR=';'
16654   }
16655 fi
16656
16657
16658 # IFS
16659 # We need space, tab and new line, in precisely that order.  Quoting is
16660 # there to prevent editors from complaining about space-tab.
16661 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16662 # splitting by setting IFS to empty value.)
16663 IFS=" ""        $as_nl"
16664
16665 # Find who we are.  Look in the path if we contain no directory separator.
16666 as_myself=
16667 case $0 in #((
16668   *[\\/]* ) as_myself=$0 ;;
16669   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16670 for as_dir in $PATH
16671 do
16672   IFS=$as_save_IFS
16673   test -z "$as_dir" && as_dir=.
16674     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16675   done
16676 IFS=$as_save_IFS
16677
16678      ;;
16679 esac
16680 # We did not find ourselves, most probably we were run as `sh COMMAND'
16681 # in which case we are not to be found in the path.
16682 if test "x$as_myself" = x; then
16683   as_myself=$0
16684 fi
16685 if test ! -f "$as_myself"; then
16686   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16687   exit 1
16688 fi
16689
16690 # Unset variables that we do not need and which cause bugs (e.g. in
16691 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
16692 # suppresses any "Segmentation fault" message there.  '((' could
16693 # trigger a bug in pdksh 5.2.14.
16694 for as_var in BASH_ENV ENV MAIL MAILPATH
16695 do eval test x\${$as_var+set} = xset \
16696   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16697 done
16698 PS1='$ '
16699 PS2='> '
16700 PS4='+ '
16701
16702 # NLS nuisances.
16703 LC_ALL=C
16704 export LC_ALL
16705 LANGUAGE=C
16706 export LANGUAGE
16707
16708 # CDPATH.
16709 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16710
16711
16712 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16713 # ----------------------------------------
16714 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16715 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16716 # script with STATUS, using 1 if that was 0.
16717 as_fn_error ()
16718 {
16719   as_status=$1; test $as_status -eq 0 && as_status=1
16720   if test "$4"; then
16721     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16722     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16723   fi
16724   $as_echo "$as_me: error: $2" >&2
16725   as_fn_exit $as_status
16726 } # as_fn_error
16727
16728
16729 # as_fn_set_status STATUS
16730 # -----------------------
16731 # Set $? to STATUS, without forking.
16732 as_fn_set_status ()
16733 {
16734   return $1
16735 } # as_fn_set_status
16736
16737 # as_fn_exit STATUS
16738 # -----------------
16739 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16740 as_fn_exit ()
16741 {
16742   set +e
16743   as_fn_set_status $1
16744   exit $1
16745 } # as_fn_exit
16746
16747 # as_fn_unset VAR
16748 # ---------------
16749 # Portably unset VAR.
16750 as_fn_unset ()
16751 {
16752   { eval $1=; unset $1;}
16753 }
16754 as_unset=as_fn_unset
16755 # as_fn_append VAR VALUE
16756 # ----------------------
16757 # Append the text in VALUE to the end of the definition contained in VAR. Take
16758 # advantage of any shell optimizations that allow amortized linear growth over
16759 # repeated appends, instead of the typical quadratic growth present in naive
16760 # implementations.
16761 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16762   eval 'as_fn_append ()
16763   {
16764     eval $1+=\$2
16765   }'
16766 else
16767   as_fn_append ()
16768   {
16769     eval $1=\$$1\$2
16770   }
16771 fi # as_fn_append
16772
16773 # as_fn_arith ARG...
16774 # ------------------
16775 # Perform arithmetic evaluation on the ARGs, and store the result in the
16776 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16777 # must be portable across $(()) and expr.
16778 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16779   eval 'as_fn_arith ()
16780   {
16781     as_val=$(( $* ))
16782   }'
16783 else
16784   as_fn_arith ()
16785   {
16786     as_val=`expr "$@" || test $? -eq 1`
16787   }
16788 fi # as_fn_arith
16789
16790
16791 if expr a : '\(a\)' >/dev/null 2>&1 &&
16792    test "X`expr 00001 : '.*\(...\)'`" = X001; then
16793   as_expr=expr
16794 else
16795   as_expr=false
16796 fi
16797
16798 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16799   as_basename=basename
16800 else
16801   as_basename=false
16802 fi
16803
16804 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16805   as_dirname=dirname
16806 else
16807   as_dirname=false
16808 fi
16809
16810 as_me=`$as_basename -- "$0" ||
16811 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16812          X"$0" : 'X\(//\)$' \| \
16813          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16814 $as_echo X/"$0" |
16815     sed '/^.*\/\([^/][^/]*\)\/*$/{
16816             s//\1/
16817             q
16818           }
16819           /^X\/\(\/\/\)$/{
16820             s//\1/
16821             q
16822           }
16823           /^X\/\(\/\).*/{
16824             s//\1/
16825             q
16826           }
16827           s/.*/./; q'`
16828
16829 # Avoid depending upon Character Ranges.
16830 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16831 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16832 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16833 as_cr_digits='0123456789'
16834 as_cr_alnum=$as_cr_Letters$as_cr_digits
16835
16836 ECHO_C= ECHO_N= ECHO_T=
16837 case `echo -n x` in #(((((
16838 -n*)
16839   case `echo 'xy\c'` in
16840   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
16841   xy)  ECHO_C='\c';;
16842   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
16843        ECHO_T=' ';;
16844   esac;;
16845 *)
16846   ECHO_N='-n';;
16847 esac
16848
16849 rm -f conf$$ conf$$.exe conf$$.file
16850 if test -d conf$$.dir; then
16851   rm -f conf$$.dir/conf$$.file
16852 else
16853   rm -f conf$$.dir
16854   mkdir conf$$.dir 2>/dev/null
16855 fi
16856 if (echo >conf$$.file) 2>/dev/null; then
16857   if ln -s conf$$.file conf$$ 2>/dev/null; then
16858     as_ln_s='ln -s'
16859     # ... but there are two gotchas:
16860     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16861     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16862     # In both cases, we have to default to `cp -pR'.
16863     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16864       as_ln_s='cp -pR'
16865   elif ln conf$$.file conf$$ 2>/dev/null; then
16866     as_ln_s=ln
16867   else
16868     as_ln_s='cp -pR'
16869   fi
16870 else
16871   as_ln_s='cp -pR'
16872 fi
16873 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16874 rmdir conf$$.dir 2>/dev/null
16875
16876
16877 # as_fn_mkdir_p
16878 # -------------
16879 # Create "$as_dir" as a directory, including parents if necessary.
16880 as_fn_mkdir_p ()
16881 {
16882
16883   case $as_dir in #(
16884   -*) as_dir=./$as_dir;;
16885   esac
16886   test -d "$as_dir" || eval $as_mkdir_p || {
16887     as_dirs=
16888     while :; do
16889       case $as_dir in #(
16890       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16891       *) as_qdir=$as_dir;;
16892       esac
16893       as_dirs="'$as_qdir' $as_dirs"
16894       as_dir=`$as_dirname -- "$as_dir" ||
16895 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16896          X"$as_dir" : 'X\(//\)[^/]' \| \
16897          X"$as_dir" : 'X\(//\)$' \| \
16898          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16899 $as_echo X"$as_dir" |
16900     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16901             s//\1/
16902             q
16903           }
16904           /^X\(\/\/\)[^/].*/{
16905             s//\1/
16906             q
16907           }
16908           /^X\(\/\/\)$/{
16909             s//\1/
16910             q
16911           }
16912           /^X\(\/\).*/{
16913             s//\1/
16914             q
16915           }
16916           s/.*/./; q'`
16917       test -d "$as_dir" && break
16918     done
16919     test -z "$as_dirs" || eval "mkdir $as_dirs"
16920   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16921
16922
16923 } # as_fn_mkdir_p
16924 if mkdir -p . 2>/dev/null; then
16925   as_mkdir_p='mkdir -p "$as_dir"'
16926 else
16927   test -d ./-p && rmdir ./-p
16928   as_mkdir_p=false
16929 fi
16930
16931
16932 # as_fn_executable_p FILE
16933 # -----------------------
16934 # Test if FILE is an executable regular file.
16935 as_fn_executable_p ()
16936 {
16937   test -f "$1" && test -x "$1"
16938 } # as_fn_executable_p
16939 as_test_x='test -x'
16940 as_executable_p=as_fn_executable_p
16941
16942 # Sed expression to map a string onto a valid CPP name.
16943 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16944
16945 # Sed expression to map a string onto a valid variable name.
16946 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16947
16948
16949 exec 6>&1
16950 ## ----------------------------------- ##
16951 ## Main body of $CONFIG_STATUS script. ##
16952 ## ----------------------------------- ##
16953 _ASEOF
16954 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16955
16956 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16957 # Save the log message, to keep $0 and so on meaningful, and to
16958 # report actual input values of CONFIG_FILES etc. instead of their
16959 # values after options handling.
16960 ac_log="
16961 This file was extended by Wine $as_me 1.5.23, which was
16962 generated by GNU Autoconf 2.69.  Invocation command line was
16963
16964   CONFIG_FILES    = $CONFIG_FILES
16965   CONFIG_HEADERS  = $CONFIG_HEADERS
16966   CONFIG_LINKS    = $CONFIG_LINKS
16967   CONFIG_COMMANDS = $CONFIG_COMMANDS
16968   $ $0 $@
16969
16970 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16971 "
16972
16973 _ACEOF
16974
16975 case $ac_config_files in *"
16976 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16977 esac
16978
16979 case $ac_config_headers in *"
16980 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16981 esac
16982
16983
16984 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16985 # Files that config.status was made for.
16986 config_files="$ac_config_files"
16987 config_headers="$ac_config_headers"
16988 config_links="$ac_config_links"
16989 config_commands="$ac_config_commands"
16990
16991 _ACEOF
16992
16993 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16994 ac_cs_usage="\
16995 \`$as_me' instantiates files and other configuration actions
16996 from templates according to the current configuration.  Unless the files
16997 and actions are specified as TAGs, all are instantiated by default.
16998
16999 Usage: $0 [OPTION]... [TAG]...
17000
17001   -h, --help       print this help, then exit
17002   -V, --version    print version number and configuration settings, then exit
17003       --config     print configuration, then exit
17004   -q, --quiet, --silent
17005                    do not print progress messages
17006   -d, --debug      don't remove temporary files
17007       --recheck    update $as_me by reconfiguring in the same conditions
17008       --file=FILE[:TEMPLATE]
17009                    instantiate the configuration file FILE
17010       --header=FILE[:TEMPLATE]
17011                    instantiate the configuration header FILE
17012
17013 Configuration files:
17014 $config_files
17015
17016 Configuration headers:
17017 $config_headers
17018
17019 Configuration links:
17020 $config_links
17021
17022 Configuration commands:
17023 $config_commands
17024
17025 Report bugs to <wine-devel@winehq.org>.
17026 Wine home page: <http://www.winehq.org>."
17027
17028 _ACEOF
17029 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17030 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17031 ac_cs_version="\\
17032 Wine config.status 1.5.23
17033 configured by $0, generated by GNU Autoconf 2.69,
17034   with options \\"\$ac_cs_config\\"
17035
17036 Copyright (C) 2012 Free Software Foundation, Inc.
17037 This config.status script is free software; the Free Software Foundation
17038 gives unlimited permission to copy, distribute and modify it."
17039
17040 ac_pwd='$ac_pwd'
17041 srcdir='$srcdir'
17042 INSTALL='$INSTALL'
17043 test -n "\$AWK" || AWK=awk
17044 _ACEOF
17045
17046 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17047 # The default lists apply if the user does not specify any file.
17048 ac_need_defaults=:
17049 while test $# != 0
17050 do
17051   case $1 in
17052   --*=?*)
17053     ac_option=`expr "X$1" : 'X\([^=]*\)='`
17054     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17055     ac_shift=:
17056     ;;
17057   --*=)
17058     ac_option=`expr "X$1" : 'X\([^=]*\)='`
17059     ac_optarg=
17060     ac_shift=:
17061     ;;
17062   *)
17063     ac_option=$1
17064     ac_optarg=$2
17065     ac_shift=shift
17066     ;;
17067   esac
17068
17069   case $ac_option in
17070   # Handling of the options.
17071   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17072     ac_cs_recheck=: ;;
17073   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17074     $as_echo "$ac_cs_version"; exit ;;
17075   --config | --confi | --conf | --con | --co | --c )
17076     $as_echo "$ac_cs_config"; exit ;;
17077   --debug | --debu | --deb | --de | --d | -d )
17078     debug=: ;;
17079   --file | --fil | --fi | --f )
17080     $ac_shift
17081     case $ac_optarg in
17082     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17083     '') as_fn_error $? "missing file argument" ;;
17084     esac
17085     as_fn_append CONFIG_FILES " '$ac_optarg'"
17086     ac_need_defaults=false;;
17087   --header | --heade | --head | --hea )
17088     $ac_shift
17089     case $ac_optarg in
17090     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17091     esac
17092     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17093     ac_need_defaults=false;;
17094   --he | --h)
17095     # Conflict between --help and --header
17096     as_fn_error $? "ambiguous option: \`$1'
17097 Try \`$0 --help' for more information.";;
17098   --help | --hel | -h )
17099     $as_echo "$ac_cs_usage"; exit ;;
17100   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17101   | -silent | --silent | --silen | --sile | --sil | --si | --s)
17102     ac_cs_silent=: ;;
17103
17104   # This is an error.
17105   -*) as_fn_error $? "unrecognized option: \`$1'
17106 Try \`$0 --help' for more information." ;;
17107
17108   *) as_fn_append ac_config_targets " $1"
17109      ac_need_defaults=false ;;
17110
17111   esac
17112   shift
17113 done
17114
17115 ac_configure_extra_args=
17116
17117 if $ac_cs_silent; then
17118   exec 6>/dev/null
17119   ac_configure_extra_args="$ac_configure_extra_args --silent"
17120 fi
17121
17122 _ACEOF
17123 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17124 if \$ac_cs_recheck; then
17125   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17126   shift
17127   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17128   CONFIG_SHELL='$SHELL'
17129   export CONFIG_SHELL
17130   exec "\$@"
17131 fi
17132
17133 _ACEOF
17134 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17135 exec 5>>config.log
17136 {
17137   echo
17138   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17139 ## Running $as_me. ##
17140 _ASBOX
17141   $as_echo "$ac_log"
17142 } >&5
17143
17144 _ACEOF
17145 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17146 #
17147 # INIT-COMMANDS
17148 #
17149 wine_fn_output_makefile ()
17150 {
17151     cat Make.tmp - <<\_WINE_EOF >\$tmp/makefile && mv -f \$tmp/makefile \$1 && rm -f Make.tmp && return
17152 $ALL_MAKEFILE_DEPENDS
17153 _WINE_EOF
17154     as_fn_error $? "could not create Makefile" "$LINENO" 5
17155 }
17156
17157 _ACEOF
17158
17159 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17160
17161 # Handling of arguments.
17162 for ac_config_target in $ac_config_targets
17163 do
17164   case $ac_config_target in
17165     "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
17166     "include/stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/stamp-h" ;;
17167     "dlls/shell32/AUTHORS") CONFIG_LINKS="$CONFIG_LINKS dlls/shell32/AUTHORS:AUTHORS" ;;
17168     "dlls/wineps.drv/generic.ppd") CONFIG_LINKS="$CONFIG_LINKS dlls/wineps.drv/generic.ppd:dlls/wineps.drv/generic.ppd" ;;
17169     "fonts/marlett.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/marlett.ttf:fonts/marlett.ttf" ;;
17170     "fonts/symbol.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/symbol.ttf:fonts/symbol.ttf" ;;
17171     "fonts/tahoma.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahoma.ttf:fonts/tahoma.ttf" ;;
17172     "fonts/tahomabd.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahomabd.ttf:fonts/tahomabd.ttf" ;;
17173     "po/LINGUAS") CONFIG_LINKS="$CONFIG_LINKS po/LINGUAS:po/LINGUAS" ;;
17174     "tools/l_intl.nls") CONFIG_LINKS="$CONFIG_LINKS tools/l_intl.nls:tools/l_intl.nls" ;;
17175     "wine") CONFIG_LINKS="$CONFIG_LINKS wine:tools/winewrapper" ;;
17176     "wine64") CONFIG_LINKS="$CONFIG_LINKS wine64:tools/winewrapper" ;;
17177     "dlls/gdi32/dibdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/dibdrv" ;;
17178     "dlls/gdi32/enhmfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/enhmfdrv" ;;
17179     "dlls/gdi32/mfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/mfdrv" ;;
17180     "dlls/kernel32/nls") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel32/nls" ;;
17181     "dlls/user32/resources") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user32/resources" ;;
17182     "dlls/wineps.drv/data") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps.drv/data" ;;
17183     "include/wine") CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
17184     "Make.rules") CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
17185     "Maketest.rules") CONFIG_FILES="$CONFIG_FILES Maketest.rules" ;;
17186     "dlls/Makedll.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
17187     "dlls/Makeimplib.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makeimplib.rules" ;;
17188     "programs/Makeprog.rules") CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
17189     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
17190     "Make.tmp") CONFIG_FILES="$CONFIG_FILES Make.tmp:Make.vars.in:Makefile.in" ;;
17191
17192   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17193   esac
17194 done
17195
17196
17197 # If the user did not use the arguments to specify the items to instantiate,
17198 # then the envvar interface is used.  Set only those that are not.
17199 # We use the long form for the default assignment because of an extremely
17200 # bizarre bug on SunOS 4.1.3.
17201 if $ac_need_defaults; then
17202   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17203   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17204   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
17205   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17206 fi
17207
17208 # Have a temporary directory for convenience.  Make it in the build tree
17209 # simply because there is no reason against having it here, and in addition,
17210 # creating and moving files from /tmp can sometimes cause problems.
17211 # Hook for its removal unless debugging.
17212 # Note that there is a small window in which the directory will not be cleaned:
17213 # after its creation but before its name has been assigned to `$tmp'.
17214 $debug ||
17215 {
17216   tmp= ac_tmp=
17217   trap 'exit_status=$?
17218   : "${ac_tmp:=$tmp}"
17219   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17220 ' 0
17221   trap 'as_fn_exit 1' 1 2 13 15
17222 }
17223 # Create a (secure) tmp directory for tmp files.
17224
17225 {
17226   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17227   test -d "$tmp"
17228 }  ||
17229 {
17230   tmp=./conf$$-$RANDOM
17231   (umask 077 && mkdir "$tmp")
17232 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17233 ac_tmp=$tmp
17234
17235 # Set up the scripts for CONFIG_FILES section.
17236 # No need to generate them if there are no CONFIG_FILES.
17237 # This happens for instance with `./config.status config.h'.
17238 if test -n "$CONFIG_FILES"; then
17239
17240 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
17241   ac_cs_awk_getline=:
17242   ac_cs_awk_pipe_init=
17243   ac_cs_awk_read_file='
17244       while ((getline aline < (F[key])) > 0)
17245         print(aline)
17246       close(F[key])'
17247   ac_cs_awk_pipe_fini=
17248 else
17249   ac_cs_awk_getline=false
17250   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
17251   ac_cs_awk_read_file='
17252       print "|#_!!_#|"
17253       print "cat " F[key] " &&"
17254       '$ac_cs_awk_pipe_init
17255   # The final `:' finishes the AND list.
17256   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
17257 fi
17258 ac_cr=`echo X | tr X '\015'`
17259 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17260 # But we know of no other shell where ac_cr would be empty at this
17261 # point, so we can use a bashism as a fallback.
17262 if test "x$ac_cr" = x; then
17263   eval ac_cr=\$\'\\r\'
17264 fi
17265 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17266 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17267   ac_cs_awk_cr='\\r'
17268 else
17269   ac_cs_awk_cr=$ac_cr
17270 fi
17271
17272 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17273 _ACEOF
17274
17275 # Create commands to substitute file output variables.
17276 {
17277   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
17278   echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
17279   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
17280   echo "_ACAWK" &&
17281   echo "_ACEOF"
17282 } >conf$$files.sh &&
17283 . ./conf$$files.sh ||
17284   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17285 rm -f conf$$files.sh
17286
17287 {
17288   echo "cat >conf$$subs.awk <<_ACEOF" &&
17289   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17290   echo "_ACEOF"
17291 } >conf$$subs.sh ||
17292   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17293 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17294 ac_delim='%!_!# '
17295 for ac_last_try in false false false false false :; do
17296   . ./conf$$subs.sh ||
17297     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17298
17299   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17300   if test $ac_delim_n = $ac_delim_num; then
17301     break
17302   elif $ac_last_try; then
17303     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17304   else
17305     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17306   fi
17307 done
17308 rm -f conf$$subs.sh
17309
17310 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17311 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17312 _ACEOF
17313 sed -n '
17314 h
17315 s/^/S["/; s/!.*/"]=/
17316 p
17317 g
17318 s/^[^!]*!//
17319 :repl
17320 t repl
17321 s/'"$ac_delim"'$//
17322 t delim
17323 :nl
17324 h
17325 s/\(.\{148\}\)..*/\1/
17326 t more1
17327 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17328 p
17329 n
17330 b repl
17331 :more1
17332 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17333 p
17334 g
17335 s/.\{148\}//
17336 t nl
17337 :delim
17338 h
17339 s/\(.\{148\}\)..*/\1/
17340 t more2
17341 s/["\\]/\\&/g; s/^/"/; s/$/"/
17342 p
17343 b
17344 :more2
17345 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17346 p
17347 g
17348 s/.\{148\}//
17349 t delim
17350 ' <conf$$subs.awk | sed '
17351 /^[^""]/{
17352   N
17353   s/\n//
17354 }
17355 ' >>$CONFIG_STATUS || ac_write_fail=1
17356 rm -f conf$$subs.awk
17357 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17358 _ACAWK
17359 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17360   for (key in S) S_is_set[key] = 1
17361   FS = "\a"
17362   \$ac_cs_awk_pipe_init
17363 }
17364 {
17365   line = $ 0
17366   nfields = split(line, field, "@")
17367   substed = 0
17368   len = length(field[1])
17369   for (i = 2; i < nfields; i++) {
17370     key = field[i]
17371     keylen = length(key)
17372     if (S_is_set[key]) {
17373       value = S[key]
17374       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17375       len += length(value) + length(field[++i])
17376       substed = 1
17377     } else
17378       len += 1 + keylen
17379   }
17380   if (nfields == 3 && !substed) {
17381     key = field[2]
17382     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
17383       \$ac_cs_awk_read_file
17384       next
17385     }
17386   }
17387   print line
17388 }
17389 \$ac_cs_awk_pipe_fini
17390 _ACAWK
17391 _ACEOF
17392 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17393 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17394   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17395 else
17396   cat
17397 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17398   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17399 _ACEOF
17400
17401 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17402 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17403 # trailing colons and then remove the whole line if VPATH becomes empty
17404 # (actually we leave an empty line to preserve line numbers).
17405 if test "x$srcdir" = x.; then
17406   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
17407 h
17408 s///
17409 s/^/:/
17410 s/[      ]*$/:/
17411 s/:\$(srcdir):/:/g
17412 s/:\${srcdir}:/:/g
17413 s/:@srcdir@:/:/g
17414 s/^:*//
17415 s/:*$//
17416 x
17417 s/\(=[   ]*\).*/\1/
17418 G
17419 s/\n//
17420 s/^[^=]*=[       ]*$//
17421 }'
17422 fi
17423
17424 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17425 fi # test -n "$CONFIG_FILES"
17426
17427 # Set up the scripts for CONFIG_HEADERS section.
17428 # No need to generate them if there are no CONFIG_HEADERS.
17429 # This happens for instance with `./config.status Makefile'.
17430 if test -n "$CONFIG_HEADERS"; then
17431 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17432 BEGIN {
17433 _ACEOF
17434
17435 # Transform confdefs.h into an awk script `defines.awk', embedded as
17436 # here-document in config.status, that substitutes the proper values into
17437 # config.h.in to produce config.h.
17438
17439 # Create a delimiter string that does not exist in confdefs.h, to ease
17440 # handling of long lines.
17441 ac_delim='%!_!# '
17442 for ac_last_try in false false :; do
17443   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17444   if test -z "$ac_tt"; then
17445     break
17446   elif $ac_last_try; then
17447     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17448   else
17449     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17450   fi
17451 done
17452
17453 # For the awk script, D is an array of macro values keyed by name,
17454 # likewise P contains macro parameters if any.  Preserve backslash
17455 # newline sequences.
17456
17457 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17458 sed -n '
17459 s/.\{148\}/&'"$ac_delim"'/g
17460 t rset
17461 :rset
17462 s/^[     ]*#[    ]*define[       ][      ]*/ /
17463 t def
17464 d
17465 :def
17466 s/\\$//
17467 t bsnl
17468 s/["\\]/\\&/g
17469 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17470 D["\1"]=" \3"/p
17471 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
17472 d
17473 :bsnl
17474 s/["\\]/\\&/g
17475 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17476 D["\1"]=" \3\\\\\\n"\\/p
17477 t cont
17478 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17479 t cont
17480 d
17481 :cont
17482 n
17483 s/.\{148\}/&'"$ac_delim"'/g
17484 t clear
17485 :clear
17486 s/\\$//
17487 t bsnlc
17488 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17489 d
17490 :bsnlc
17491 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17492 b cont
17493 ' <confdefs.h | sed '
17494 s/'"$ac_delim"'/"\\\
17495 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17496
17497 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17498   for (key in D) D_is_set[key] = 1
17499   FS = "\a"
17500 }
17501 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17502   line = \$ 0
17503   split(line, arg, " ")
17504   if (arg[1] == "#") {
17505     defundef = arg[2]
17506     mac1 = arg[3]
17507   } else {
17508     defundef = substr(arg[1], 2)
17509     mac1 = arg[2]
17510   }
17511   split(mac1, mac2, "(") #)
17512   macro = mac2[1]
17513   prefix = substr(line, 1, index(line, defundef) - 1)
17514   if (D_is_set[macro]) {
17515     # Preserve the white space surrounding the "#".
17516     print prefix "define", macro P[macro] D[macro]
17517     next
17518   } else {
17519     # Replace #undef with comments.  This is necessary, for example,
17520     # in the case of _POSIX_SOURCE, which is predefined and required
17521     # on some systems where configure will not decide to define it.
17522     if (defundef == "undef") {
17523       print "/*", prefix defundef, macro, "*/"
17524       next
17525     }
17526   }
17527 }
17528 { print }
17529 _ACAWK
17530 _ACEOF
17531 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17532   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17533 fi # test -n "$CONFIG_HEADERS"
17534
17535
17536 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
17537 shift
17538 for ac_tag
17539 do
17540   case $ac_tag in
17541   :[FHLC]) ac_mode=$ac_tag; continue;;
17542   esac
17543   case $ac_mode$ac_tag in
17544   :[FHL]*:*);;
17545   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17546   :[FH]-) ac_tag=-:-;;
17547   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17548   esac
17549   ac_save_IFS=$IFS
17550   IFS=:
17551   set x $ac_tag
17552   IFS=$ac_save_IFS
17553   shift
17554   ac_file=$1
17555   shift
17556
17557   case $ac_mode in
17558   :L) ac_source=$1;;
17559   :[FH])
17560     ac_file_inputs=
17561     for ac_f
17562     do
17563       case $ac_f in
17564       -) ac_f="$ac_tmp/stdin";;
17565       *) # Look for the file first in the build tree, then in the source tree
17566          # (if the path is not absolute).  The absolute path cannot be DOS-style,
17567          # because $ac_f cannot contain `:'.
17568          test -f "$ac_f" ||
17569            case $ac_f in
17570            [\\/$]*) false;;
17571            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17572            esac ||
17573            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17574       esac
17575       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17576       as_fn_append ac_file_inputs " '$ac_f'"
17577     done
17578
17579     # Let's still pretend it is `configure' which instantiates (i.e., don't
17580     # use $as_me), people would be surprised to read:
17581     #    /* config.h.  Generated by config.status.  */
17582     configure_input='Generated from '`
17583           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17584         `' by configure.'
17585     if test x"$ac_file" != x-; then
17586       configure_input="$ac_file.  $configure_input"
17587       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17588 $as_echo "$as_me: creating $ac_file" >&6;}
17589     fi
17590     # Neutralize special characters interpreted by sed in replacement strings.
17591     case $configure_input in #(
17592     *\&* | *\|* | *\\* )
17593        ac_sed_conf_input=`$as_echo "$configure_input" |
17594        sed 's/[\\\\&|]/\\\\&/g'`;; #(
17595     *) ac_sed_conf_input=$configure_input;;
17596     esac
17597
17598     case $ac_tag in
17599     *:-:* | *:-) cat >"$ac_tmp/stdin" \
17600       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17601     esac
17602     ;;
17603   esac
17604
17605   ac_dir=`$as_dirname -- "$ac_file" ||
17606 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17607          X"$ac_file" : 'X\(//\)[^/]' \| \
17608          X"$ac_file" : 'X\(//\)$' \| \
17609          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17610 $as_echo X"$ac_file" |
17611     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17612             s//\1/
17613             q
17614           }
17615           /^X\(\/\/\)[^/].*/{
17616             s//\1/
17617             q
17618           }
17619           /^X\(\/\/\)$/{
17620             s//\1/
17621             q
17622           }
17623           /^X\(\/\).*/{
17624             s//\1/
17625             q
17626           }
17627           s/.*/./; q'`
17628   as_dir="$ac_dir"; as_fn_mkdir_p
17629   ac_builddir=.
17630
17631 case "$ac_dir" in
17632 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17633 *)
17634   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17635   # A ".." for each directory in $ac_dir_suffix.
17636   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17637   case $ac_top_builddir_sub in
17638   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17639   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17640   esac ;;
17641 esac
17642 ac_abs_top_builddir=$ac_pwd
17643 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17644 # for backward compatibility:
17645 ac_top_builddir=$ac_top_build_prefix
17646
17647 case $srcdir in
17648   .)  # We are building in place.
17649     ac_srcdir=.
17650     ac_top_srcdir=$ac_top_builddir_sub
17651     ac_abs_top_srcdir=$ac_pwd ;;
17652   [\\/]* | ?:[\\/]* )  # Absolute name.
17653     ac_srcdir=$srcdir$ac_dir_suffix;
17654     ac_top_srcdir=$srcdir
17655     ac_abs_top_srcdir=$srcdir ;;
17656   *) # Relative name.
17657     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17658     ac_top_srcdir=$ac_top_build_prefix$srcdir
17659     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17660 esac
17661 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17662
17663
17664   case $ac_mode in
17665   :F)
17666   #
17667   # CONFIG_FILE
17668   #
17669
17670   case $INSTALL in
17671   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17672   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17673   esac
17674 _ACEOF
17675
17676 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17677 # If the template does not know about datarootdir, expand it.
17678 # FIXME: This hack should be removed a few years after 2.60.
17679 ac_datarootdir_hack=; ac_datarootdir_seen=
17680 ac_sed_dataroot='
17681 /datarootdir/ {
17682   p
17683   q
17684 }
17685 /@datadir@/p
17686 /@docdir@/p
17687 /@infodir@/p
17688 /@localedir@/p
17689 /@mandir@/p'
17690 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17691 *datarootdir*) ac_datarootdir_seen=yes;;
17692 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17693   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17694 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17695 _ACEOF
17696 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17697   ac_datarootdir_hack='
17698   s&@datadir@&$datadir&g
17699   s&@docdir@&$docdir&g
17700   s&@infodir@&$infodir&g
17701   s&@localedir@&$localedir&g
17702   s&@mandir@&$mandir&g
17703   s&\\\${datarootdir}&$datarootdir&g' ;;
17704 esac
17705 _ACEOF
17706
17707 # Neutralize VPATH when `$srcdir' = `.'.
17708 # Shell code in configure.ac might set extrasub.
17709 # FIXME: do we really want to maintain this feature?
17710 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17711 ac_sed_extra="$ac_vpsub
17712 $extrasub
17713 _ACEOF
17714 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17715 :t
17716 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17717 s|@configure_input@|$ac_sed_conf_input|;t t
17718 s&@top_builddir@&$ac_top_builddir_sub&;t t
17719 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17720 s&@srcdir@&$ac_srcdir&;t t
17721 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17722 s&@top_srcdir@&$ac_top_srcdir&;t t
17723 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17724 s&@builddir@&$ac_builddir&;t t
17725 s&@abs_builddir@&$ac_abs_builddir&;t t
17726 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17727 s&@INSTALL@&$ac_INSTALL&;t t
17728 $ac_datarootdir_hack
17729 "
17730 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
17731 if $ac_cs_awk_getline; then
17732   $AWK -f "$ac_tmp/subs.awk"
17733 else
17734   $AWK -f "$ac_tmp/subs.awk" | $SHELL
17735 fi \
17736   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17737
17738 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17739   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17740   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
17741       "$ac_tmp/out"`; test -z "$ac_out"; } &&
17742   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17743 which seems to be undefined.  Please make sure it is defined" >&5
17744 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17745 which seems to be undefined.  Please make sure it is defined" >&2;}
17746
17747   rm -f "$ac_tmp/stdin"
17748   case $ac_file in
17749   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17750   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17751   esac \
17752   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17753  ;;
17754   :H)
17755   #
17756   # CONFIG_HEADER
17757   #
17758   if test x"$ac_file" != x-; then
17759     {
17760       $as_echo "/* $configure_input  */" \
17761       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17762     } >"$ac_tmp/config.h" \
17763       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17764     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17765       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17766 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17767     else
17768       rm -f "$ac_file"
17769       mv "$ac_tmp/config.h" "$ac_file" \
17770         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17771     fi
17772   else
17773     $as_echo "/* $configure_input  */" \
17774       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17775       || as_fn_error $? "could not create -" "$LINENO" 5
17776   fi
17777  ;;
17778   :L)
17779   #
17780   # CONFIG_LINK
17781   #
17782
17783   if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
17784     :
17785   else
17786     # Prefer the file from the source tree if names are identical.
17787     if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
17788       ac_source=$srcdir/$ac_source
17789     fi
17790
17791     { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
17792 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
17793
17794     if test ! -r "$ac_source"; then
17795       as_fn_error $? "$ac_source: file not found" "$LINENO" 5
17796     fi
17797     rm -f "$ac_file"
17798
17799     # Try a relative symlink, then a hard link, then a copy.
17800     case $ac_source in
17801     [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
17802         *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
17803     esac
17804     ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
17805       ln "$ac_source" "$ac_file" 2>/dev/null ||
17806       cp -p "$ac_source" "$ac_file" ||
17807       as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
17808   fi
17809  ;;
17810   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17811 $as_echo "$as_me: executing $ac_file commands" >&6;}
17812  ;;
17813   esac
17814
17815
17816   case $ac_file$ac_mode in
17817     "include/stamp-h":C) echo timestamp > include/stamp-h ;;
17818     "dlls/gdi32/dibdrv":C) test -d "dlls/gdi32/dibdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/dibdrv" >&5
17819 $as_echo "$as_me: creating dlls/gdi32/dibdrv" >&6;}; as_dir="dlls/gdi32/dibdrv"; as_fn_mkdir_p; } ;;
17820     "dlls/gdi32/enhmfdrv":C) test -d "dlls/gdi32/enhmfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/enhmfdrv" >&5
17821 $as_echo "$as_me: creating dlls/gdi32/enhmfdrv" >&6;}; as_dir="dlls/gdi32/enhmfdrv"; as_fn_mkdir_p; } ;;
17822     "dlls/gdi32/mfdrv":C) test -d "dlls/gdi32/mfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/mfdrv" >&5
17823 $as_echo "$as_me: creating dlls/gdi32/mfdrv" >&6;}; as_dir="dlls/gdi32/mfdrv"; as_fn_mkdir_p; } ;;
17824     "dlls/kernel32/nls":C) test -d "dlls/kernel32/nls" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/kernel32/nls" >&5
17825 $as_echo "$as_me: creating dlls/kernel32/nls" >&6;}; as_dir="dlls/kernel32/nls"; as_fn_mkdir_p; } ;;
17826     "dlls/user32/resources":C) test -d "dlls/user32/resources" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/user32/resources" >&5
17827 $as_echo "$as_me: creating dlls/user32/resources" >&6;}; as_dir="dlls/user32/resources"; as_fn_mkdir_p; } ;;
17828     "dlls/wineps.drv/data":C) test -d "dlls/wineps.drv/data" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/wineps.drv/data" >&5
17829 $as_echo "$as_me: creating dlls/wineps.drv/data" >&6;}; as_dir="dlls/wineps.drv/data"; as_fn_mkdir_p; } ;;
17830     "include/wine":C) test -d "include/wine" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating include/wine" >&5
17831 $as_echo "$as_me: creating include/wine" >&6;}; as_dir="include/wine"; as_fn_mkdir_p; } ;;
17832     "Makefile":C) wine_fn_output_makefile Makefile ;;
17833
17834   esac
17835 done # for ac_tag
17836
17837
17838 as_fn_exit 0
17839 _ACEOF
17840 ac_clean_files=$ac_clean_files_save
17841
17842 test $ac_write_fail = 0 ||
17843   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17844
17845
17846 # configure is writing to config.log, and then calls config.status.
17847 # config.status does its own redirection, appending to config.log.
17848 # Unfortunately, on DOS this fails, as config.log is still kept open
17849 # by configure, so config.status won't be able to write to it; its
17850 # output is simply discarded.  So we exec the FD to /dev/null,
17851 # effectively closing config.log, so it can be properly (re)opened and
17852 # appended to by config.status.  When coming back to configure, we
17853 # need to make the FD available again.
17854 if test "$no_create" != yes; then
17855   ac_cs_success=:
17856   ac_config_status_args=
17857   test "$silent" = yes &&
17858     ac_config_status_args="$ac_config_status_args --quiet"
17859   exec 5>/dev/null
17860   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17861   exec 5>>config.log
17862   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17863   # would make configure fail if this is the last instruction.
17864   $ac_cs_success || as_fn_exit 1
17865 fi
17866 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17867   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17868 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17869 fi
17870
17871
17872 if test "$no_create" = "yes"
17873 then
17874   exit 0
17875 fi
17876
17877 ac_save_IFS="$IFS"
17878 if test "x$wine_notices != "x; then
17879     echo >&6
17880     IFS="|"
17881     for msg in $wine_notices; do
17882         IFS="$ac_save_IFS"
17883         if test -n "$msg"; then
17884             { $as_echo "$as_me:${as_lineno-$LINENO}: $msg" >&5
17885 $as_echo "$as_me: $msg" >&6;}
17886         fi
17887     done
17888 fi
17889 IFS="|"
17890 for msg in $wine_warnings; do
17891     IFS="$ac_save_IFS"
17892     if test -n "$msg"; then
17893         echo >&2
17894         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $msg" >&5
17895 $as_echo "$as_me: WARNING: $msg" >&2;}
17896     fi
17897 done
17898 IFS="$ac_save_IFS"
17899
17900 echo "
17901 $as_me: Finished.  Do '${ac_make}' to compile Wine.
17902 " >&6
17903