wined3d: Don't flush just because a swapchain has multiple contexts.
[wine] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.67 for Wine 1.3.17.
4 #
5 # Report bugs to <wine-devel@winehq.org>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22   emulate sh
23   NULLCMD=:
24   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25   # is contrary to our usage.  Disable this feature.
26   alias -g '${1+"$@"}'='"$@"'
27   setopt NO_GLOB_SUBST
28 else
29   case `(set -o) 2>/dev/null` in #(
30   *posix*) :
31     set -o posix ;; #(
32   *) :
33      ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49   as_echo='print -r --'
50   as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52   as_echo='printf %s\n'
53   as_echo_n='printf %s'
54 else
55   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57     as_echo_n='/usr/ucb/echo -n'
58   else
59     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60     as_echo_n_body='eval
61       arg=$1;
62       case $arg in #(
63       *"$as_nl"*)
64         expr "X$arg" : "X\\(.*\\)$as_nl";
65         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66       esac;
67       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68     '
69     export as_echo_n_body
70     as_echo_n='sh -c $as_echo_n_body as_echo'
71   fi
72   export as_echo_body
73   as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78   PATH_SEPARATOR=:
79   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81       PATH_SEPARATOR=';'
82   }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order.  Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" ""        $as_nl"
92
93 # Find who we are.  Look in the path if we contain no directory separator.
94 case $0 in #((
95   *[\\/]* ) as_myself=$0 ;;
96   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 for as_dir in $PATH
98 do
99   IFS=$as_save_IFS
100   test -z "$as_dir" && as_dir=.
101     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102   done
103 IFS=$as_save_IFS
104
105      ;;
106 esac
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
110   as_myself=$0
111 fi
112 if test ! -f "$as_myself"; then
113   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114   exit 1
115 fi
116
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there.  '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124 done
125 PS1='$ '
126 PS2='> '
127 PS4='+ '
128
129 # NLS nuisances.
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export LANGUAGE
134
135 # CDPATH.
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138 if test "x$CONFIG_SHELL" = x; then
139   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140   emulate sh
141   NULLCMD=:
142   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143   # is contrary to our usage.  Disable this feature.
144   alias -g '\${1+\"\$@\"}'='\"\$@\"'
145   setopt NO_GLOB_SUBST
146 else
147   case \`(set -o) 2>/dev/null\` in #(
148   *posix*) :
149     set -o posix ;; #(
150   *) :
151      ;;
152 esac
153 fi
154 "
155   as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
160
161 exitcode=0
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168 else
169   exitcode=1; echo positional parameters were not saved.
170 fi
171 test x\$exitcode = x0 || exit 1"
172   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 test \$(( 1 + 1 )) = 2 || exit 1"
177   if (eval "$as_required") 2>/dev/null; then :
178   as_have_required=yes
179 else
180   as_have_required=no
181 fi
182   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183
184 else
185   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186 as_found=false
187 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188 do
189   IFS=$as_save_IFS
190   test -z "$as_dir" && as_dir=.
191   as_found=:
192   case $as_dir in #(
193          /*)
194            for as_base in sh bash ksh sh5; do
195              # Try only shells that exist, to save several forks.
196              as_shell=$as_dir/$as_base
197              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199   CONFIG_SHELL=$as_shell as_have_required=yes
200                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201   break 2
202 fi
203 fi
204            done;;
205        esac
206   as_found=false
207 done
208 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210   CONFIG_SHELL=$SHELL as_have_required=yes
211 fi; }
212 IFS=$as_save_IFS
213
214
215       if test "x$CONFIG_SHELL" != x; then :
216   # We cannot yet assume a decent shell, so we have to provide a
217         # neutralization value for shells without unset; and this also
218         # works around shells that cannot unset nonexistent variables.
219         BASH_ENV=/dev/null
220         ENV=/dev/null
221         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222         export CONFIG_SHELL
223         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 fi
225
226     if test x$as_have_required = xno; then :
227   $as_echo "$0: This script requires a shell more modern than all"
228   $as_echo "$0: the shells that I found on your system."
229   if test x${ZSH_VERSION+set} = xset ; then
230     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232   else
233     $as_echo "$0: Please tell bug-autoconf@gnu.org and
234 $0: wine-devel@winehq.org about your system, including any
235 $0: error possibly output before this message. Then install
236 $0: a modern shell, or manually run the script under such a
237 $0: shell if you do have one."
238   fi
239   exit 1
240 fi
241 fi
242 fi
243 SHELL=${CONFIG_SHELL-/bin/sh}
244 export SHELL
245 # Unset more variables known to interfere with behavior of common tools.
246 CLICOLOR_FORCE= GREP_OPTIONS=
247 unset CLICOLOR_FORCE GREP_OPTIONS
248
249 ## --------------------- ##
250 ## M4sh Shell Functions. ##
251 ## --------------------- ##
252 # as_fn_unset VAR
253 # ---------------
254 # Portably unset VAR.
255 as_fn_unset ()
256 {
257   { eval $1=; unset $1;}
258 }
259 as_unset=as_fn_unset
260
261 # as_fn_set_status STATUS
262 # -----------------------
263 # Set $? to STATUS, without forking.
264 as_fn_set_status ()
265 {
266   return $1
267 } # as_fn_set_status
268
269 # as_fn_exit STATUS
270 # -----------------
271 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
272 as_fn_exit ()
273 {
274   set +e
275   as_fn_set_status $1
276   exit $1
277 } # as_fn_exit
278
279 # as_fn_mkdir_p
280 # -------------
281 # Create "$as_dir" as a directory, including parents if necessary.
282 as_fn_mkdir_p ()
283 {
284
285   case $as_dir in #(
286   -*) as_dir=./$as_dir;;
287   esac
288   test -d "$as_dir" || eval $as_mkdir_p || {
289     as_dirs=
290     while :; do
291       case $as_dir in #(
292       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293       *) as_qdir=$as_dir;;
294       esac
295       as_dirs="'$as_qdir' $as_dirs"
296       as_dir=`$as_dirname -- "$as_dir" ||
297 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298          X"$as_dir" : 'X\(//\)[^/]' \| \
299          X"$as_dir" : 'X\(//\)$' \| \
300          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301 $as_echo X"$as_dir" |
302     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
303             s//\1/
304             q
305           }
306           /^X\(\/\/\)[^/].*/{
307             s//\1/
308             q
309           }
310           /^X\(\/\/\)$/{
311             s//\1/
312             q
313           }
314           /^X\(\/\).*/{
315             s//\1/
316             q
317           }
318           s/.*/./; q'`
319       test -d "$as_dir" && break
320     done
321     test -z "$as_dirs" || eval "mkdir $as_dirs"
322   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
323
324
325 } # as_fn_mkdir_p
326 # as_fn_append VAR VALUE
327 # ----------------------
328 # Append the text in VALUE to the end of the definition contained in VAR. Take
329 # advantage of any shell optimizations that allow amortized linear growth over
330 # repeated appends, instead of the typical quadratic growth present in naive
331 # implementations.
332 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333   eval 'as_fn_append ()
334   {
335     eval $1+=\$2
336   }'
337 else
338   as_fn_append ()
339   {
340     eval $1=\$$1\$2
341   }
342 fi # as_fn_append
343
344 # as_fn_arith ARG...
345 # ------------------
346 # Perform arithmetic evaluation on the ARGs, and store the result in the
347 # global $as_val. Take advantage of shells that can avoid forks. The arguments
348 # must be portable across $(()) and expr.
349 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
350   eval 'as_fn_arith ()
351   {
352     as_val=$(( $* ))
353   }'
354 else
355   as_fn_arith ()
356   {
357     as_val=`expr "$@" || test $? -eq 1`
358   }
359 fi # as_fn_arith
360
361
362 # as_fn_error STATUS ERROR [LINENO LOG_FD]
363 # ----------------------------------------
364 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366 # script with STATUS, using 1 if that was 0.
367 as_fn_error ()
368 {
369   as_status=$1; test $as_status -eq 0 && as_status=1
370   if test "$4"; then
371     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
373   fi
374   $as_echo "$as_me: error: $2" >&2
375   as_fn_exit $as_status
376 } # as_fn_error
377
378 if expr a : '\(a\)' >/dev/null 2>&1 &&
379    test "X`expr 00001 : '.*\(...\)'`" = X001; then
380   as_expr=expr
381 else
382   as_expr=false
383 fi
384
385 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386   as_basename=basename
387 else
388   as_basename=false
389 fi
390
391 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392   as_dirname=dirname
393 else
394   as_dirname=false
395 fi
396
397 as_me=`$as_basename -- "$0" ||
398 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399          X"$0" : 'X\(//\)$' \| \
400          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
401 $as_echo X/"$0" |
402     sed '/^.*\/\([^/][^/]*\)\/*$/{
403             s//\1/
404             q
405           }
406           /^X\/\(\/\/\)$/{
407             s//\1/
408             q
409           }
410           /^X\/\(\/\).*/{
411             s//\1/
412             q
413           }
414           s/.*/./; q'`
415
416 # Avoid depending upon Character Ranges.
417 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420 as_cr_digits='0123456789'
421 as_cr_alnum=$as_cr_Letters$as_cr_digits
422
423
424   as_lineno_1=$LINENO as_lineno_1a=$LINENO
425   as_lineno_2=$LINENO as_lineno_2a=$LINENO
426   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
429   sed -n '
430     p
431     /[$]LINENO/=
432   ' <$as_myself |
433     sed '
434       s/[$]LINENO.*/&-/
435       t lineno
436       b
437       :lineno
438       N
439       :loop
440       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441       t loop
442       s/-\n.*//
443     ' >$as_me.lineno &&
444   chmod +x "$as_me.lineno" ||
445     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
446
447   # Don't try to exec as it changes $[0], causing all sort of problems
448   # (the dirname of $[0] is not the place where we might find the
449   # original and so on.  Autoconf is especially sensitive to this).
450   . "./$as_me.lineno"
451   # Exit status is that of the last command.
452   exit
453 }
454
455 ECHO_C= ECHO_N= ECHO_T=
456 case `echo -n x` in #(((((
457 -n*)
458   case `echo 'xy\c'` in
459   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
460   xy)  ECHO_C='\c';;
461   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
462        ECHO_T=' ';;
463   esac;;
464 *)
465   ECHO_N='-n';;
466 esac
467
468 rm -f conf$$ conf$$.exe conf$$.file
469 if test -d conf$$.dir; then
470   rm -f conf$$.dir/conf$$.file
471 else
472   rm -f conf$$.dir
473   mkdir conf$$.dir 2>/dev/null
474 fi
475 if (echo >conf$$.file) 2>/dev/null; then
476   if ln -s conf$$.file conf$$ 2>/dev/null; then
477     as_ln_s='ln -s'
478     # ... but there are two gotchas:
479     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481     # In both cases, we have to default to `cp -p'.
482     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
483       as_ln_s='cp -p'
484   elif ln conf$$.file conf$$ 2>/dev/null; then
485     as_ln_s=ln
486   else
487     as_ln_s='cp -p'
488   fi
489 else
490   as_ln_s='cp -p'
491 fi
492 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493 rmdir conf$$.dir 2>/dev/null
494
495 if mkdir -p . 2>/dev/null; then
496   as_mkdir_p='mkdir -p "$as_dir"'
497 else
498   test -d ./-p && rmdir ./-p
499   as_mkdir_p=false
500 fi
501
502 if test -x / >/dev/null 2>&1; then
503   as_test_x='test -x'
504 else
505   if ls -dL / >/dev/null 2>&1; then
506     as_ls_L_option=L
507   else
508     as_ls_L_option=
509   fi
510   as_test_x='
511     eval sh -c '\''
512       if test -d "$1"; then
513         test -d "$1/.";
514       else
515         case $1 in #(
516         -*)set "./$1";;
517         esac;
518         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519         ???[sx]*):;;*)false;;esac;fi
520     '\'' sh
521   '
522 fi
523 as_executable_p=$as_test_x
524
525 # Sed expression to map a string onto a valid CPP name.
526 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
527
528 # Sed expression to map a string onto a valid variable name.
529 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530
531
532 test -n "$DJDIR" || exec 7<&0 </dev/null
533 exec 6>&1
534
535 # Name of the host.
536 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
537 # so uname gets run too.
538 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
539
540 #
541 # Initializations.
542 #
543 ac_default_prefix=/usr/local
544 ac_clean_files=
545 ac_config_libobj_dir=.
546 LIBOBJS=
547 cross_compiling=no
548 subdirs=
549 MFLAGS=
550 MAKEFLAGS=
551
552 # Identity of this package.
553 PACKAGE_NAME='Wine'
554 PACKAGE_TARNAME='wine'
555 PACKAGE_VERSION='1.3.17'
556 PACKAGE_STRING='Wine 1.3.17'
557 PACKAGE_BUGREPORT='wine-devel@winehq.org'
558 PACKAGE_URL='http://www.winehq.org'
559
560 ac_unique_file="server/atom.c"
561 # Factoring default headers for most tests.
562 ac_includes_default="\
563 #include <stdio.h>
564 #ifdef HAVE_SYS_TYPES_H
565 # include <sys/types.h>
566 #endif
567 #ifdef HAVE_SYS_STAT_H
568 # include <sys/stat.h>
569 #endif
570 #ifdef STDC_HEADERS
571 # include <stdlib.h>
572 # include <stddef.h>
573 #else
574 # ifdef HAVE_STDLIB_H
575 #  include <stdlib.h>
576 # endif
577 #endif
578 #ifdef HAVE_STRING_H
579 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
580 #  include <memory.h>
581 # endif
582 # include <string.h>
583 #endif
584 #ifdef HAVE_STRINGS_H
585 # include <strings.h>
586 #endif
587 #ifdef HAVE_INTTYPES_H
588 # include <inttypes.h>
589 #endif
590 #ifdef HAVE_STDINT_H
591 # include <stdint.h>
592 #endif
593 #ifdef HAVE_UNISTD_H
594 # include <unistd.h>
595 #endif"
596
597 ac_subst_vars='LTLIBOBJS
598 LIBOBJS
599 LINGUAS
600 ALL_TEST_BINARIES
601 ALL_WINETEST_DEPENDS
602 LDAPLIBS
603 LIBPOLL
604 LIBDL
605 EXTRA_BINARIES
606 MAIN_BINARY
607 SOCKETLIBS
608 CRTLIBS
609 TOOLSEXT
610 LDPATH
611 UNWINDFLAGS
612 BUILTINFLAG
613 EXTRACFLAGS
614 LIBKSTAT
615 LIBOPENAL
616 LIBMPG123
617 PNGINCL
618 FONTCONFIGINCL
619 CUPSINCL
620 ALSALIBS
621 GSTREAMER_INCL
622 GSTREAMER_LIBS
623 ESDLIBS
624 ESDINCL
625 ESDCONFIG
626 LIBGETTEXTPO
627 ZLIB
628 FREETYPEINCL
629 FREETYPELIBS
630 ft_devel
631 LCMSLIBS
632 RESOLVLIBS
633 GPHOTO2INCL
634 GPHOTO2LIBS
635 gphoto2port_devel
636 gphoto2_devel
637 SANEINCL
638 sane_devel
639 GNUTLSINCL
640 HALINCL
641 XSLTINCL
642 XML2INCL
643 XML2LIBS
644 NASLIBS
645 X_EXTRA_LIBS
646 X_LIBS
647 X_PRE_LIBS
648 X_CFLAGS
649 XMKMF
650 LIBPTHREAD
651 CROSSTARGET
652 CROSSCC
653 CROSSTEST_DISABLE
654 PRELINK
655 CARBONLIB
656 QUICKTIMELIB
657 LIBOPENCL
658 FRAMEWORK_OPENAL
659 COREAUDIO
660 SECURITYLIB
661 DISKARBITRATIONLIB
662 LDEXECFLAGS
663 APPLICATIONSERVICESLIB
664 IOKITLIB
665 COREFOUNDATIONLIB
666 DLLWRAP
667 DLLTOOL
668 LDD
669 LDRPATH_LOCAL
670 LDRPATH_INSTALL
671 IMPLIBEXT
672 LIBEXT
673 LDDLLFLAGS
674 LDSHARED
675 DLLFLAGS
676 DLLEXT
677 CPP
678 OPENGL_LIBS
679 XLIB
680 MAINTAINER_MODE
681 ICOTOOL
682 CONVERT
683 RSVG
684 PKG_CONFIG
685 FONTFORGE
686 LINTFLAGS
687 LINT
688 INSTALL_DATA
689 INSTALL_SCRIPT
690 INSTALL_PROGRAM
691 LDCONFIG
692 EGREP
693 GREP
694 LN_S
695 STRIP
696 RANLIB
697 ARFLAGS
698 ac_ct_AR
699 AR
700 BISON
701 FLEX
702 TOOLSDIR
703 WOW64_DISABLE
704 TARGETFLAGS
705 CPPBIN
706 ac_ct_CXX
707 CXXFLAGS
708 CXX
709 OBJEXT
710 EXEEXT
711 ac_ct_CC
712 CPPFLAGS
713 LDFLAGS
714 CFLAGS
715 CC
716 SET_MAKE
717 host_os
718 host_vendor
719 host_cpu
720 host
721 build_os
722 build_vendor
723 build_cpu
724 build
725 target_alias
726 host_alias
727 build_alias
728 LIBS
729 ECHO_T
730 ECHO_N
731 ECHO_C
732 DEFS
733 mandir
734 localedir
735 libdir
736 psdir
737 pdfdir
738 dvidir
739 htmldir
740 infodir
741 docdir
742 oldincludedir
743 includedir
744 localstatedir
745 sharedstatedir
746 sysconfdir
747 datadir
748 datarootdir
749 libexecdir
750 sbindir
751 bindir
752 program_transform_name
753 prefix
754 exec_prefix
755 PACKAGE_URL
756 PACKAGE_BUGREPORT
757 PACKAGE_STRING
758 PACKAGE_VERSION
759 PACKAGE_TARNAME
760 PACKAGE_NAME
761 PATH_SEPARATOR
762 SHELL'
763 ac_subst_files='MAKE_RULES
764 MAKE_TEST_RULES
765 MAKE_DLL_RULES
766 MAKE_IMPLIB_RULES
767 MAKE_PROG_RULES'
768 ac_user_opts='
769 enable_option_checking
770 enable_win16
771 enable_win64
772 enable_tests
773 enable_maintainer_mode
774 with_alsa
775 with_capi
776 with_cms
777 with_coreaudio
778 with_cups
779 with_curses
780 with_esd
781 with_fontconfig
782 with_freetype
783 with_gettextpo
784 with_gphoto
785 with_glu
786 with_gnutls
787 with_gsm
788 with_gstreamer
789 with_hal
790 with_jack
791 with_jpeg
792 with_ldap
793 with_mpg123
794 with_nas
795 with_openal
796 with_opencl
797 with_opengl
798 with_openssl
799 with_oss
800 with_png
801 with_pthread
802 with_sane
803 with_tiff
804 with_v4l
805 with_xcomposite
806 with_xcursor
807 with_xinerama
808 with_xinput
809 with_xinput2
810 with_xml
811 with_xrandr
812 with_xrender
813 with_xshape
814 with_xshm
815 with_xslt
816 with_xxf86vm
817 with_zlib
818 with_wine_tools
819 with_wine64
820 enable_largefile
821 with_x
822 '
823       ac_precious_vars='build_alias
824 host_alias
825 target_alias
826 CC
827 CFLAGS
828 LDFLAGS
829 LIBS
830 CPPFLAGS
831 CXX
832 CXXFLAGS
833 CCC
834 CPP
835 XMKMF'
836
837
838 # Initialize some variables set by options.
839 ac_init_help=
840 ac_init_version=false
841 ac_unrecognized_opts=
842 ac_unrecognized_sep=
843 # The variables have the same names as the options, with
844 # dashes changed to underlines.
845 cache_file=/dev/null
846 exec_prefix=NONE
847 no_create=
848 no_recursion=
849 prefix=NONE
850 program_prefix=NONE
851 program_suffix=NONE
852 program_transform_name=s,x,x,
853 silent=
854 site=
855 srcdir=
856 verbose=
857 x_includes=NONE
858 x_libraries=NONE
859
860 # Installation directory options.
861 # These are left unexpanded so users can "make install exec_prefix=/foo"
862 # and all the variables that are supposed to be based on exec_prefix
863 # by default will actually change.
864 # Use braces instead of parens because sh, perl, etc. also accept them.
865 # (The list follows the same order as the GNU Coding Standards.)
866 bindir='${exec_prefix}/bin'
867 sbindir='${exec_prefix}/sbin'
868 libexecdir='${exec_prefix}/libexec'
869 datarootdir='${prefix}/share'
870 datadir='${datarootdir}'
871 sysconfdir='${prefix}/etc'
872 sharedstatedir='${prefix}/com'
873 localstatedir='${prefix}/var'
874 includedir='${prefix}/include'
875 oldincludedir='/usr/include'
876 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
877 infodir='${datarootdir}/info'
878 htmldir='${docdir}'
879 dvidir='${docdir}'
880 pdfdir='${docdir}'
881 psdir='${docdir}'
882 libdir='${exec_prefix}/lib'
883 localedir='${datarootdir}/locale'
884 mandir='${datarootdir}/man'
885
886 ac_prev=
887 ac_dashdash=
888 for ac_option
889 do
890   # If the previous option needs an argument, assign it.
891   if test -n "$ac_prev"; then
892     eval $ac_prev=\$ac_option
893     ac_prev=
894     continue
895   fi
896
897   case $ac_option in
898   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
899   *=)   ac_optarg= ;;
900   *)    ac_optarg=yes ;;
901   esac
902
903   # Accept the important Cygnus configure options, so we can diagnose typos.
904
905   case $ac_dashdash$ac_option in
906   --)
907     ac_dashdash=yes ;;
908
909   -bindir | --bindir | --bindi | --bind | --bin | --bi)
910     ac_prev=bindir ;;
911   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
912     bindir=$ac_optarg ;;
913
914   -build | --build | --buil | --bui | --bu)
915     ac_prev=build_alias ;;
916   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
917     build_alias=$ac_optarg ;;
918
919   -cache-file | --cache-file | --cache-fil | --cache-fi \
920   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
921     ac_prev=cache_file ;;
922   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
923   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
924     cache_file=$ac_optarg ;;
925
926   --config-cache | -C)
927     cache_file=config.cache ;;
928
929   -datadir | --datadir | --datadi | --datad)
930     ac_prev=datadir ;;
931   -datadir=* | --datadir=* | --datadi=* | --datad=*)
932     datadir=$ac_optarg ;;
933
934   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
935   | --dataroo | --dataro | --datar)
936     ac_prev=datarootdir ;;
937   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
938   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
939     datarootdir=$ac_optarg ;;
940
941   -disable-* | --disable-*)
942     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
943     # Reject names that are not valid shell variable names.
944     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
945       as_fn_error $? "invalid feature name: $ac_useropt"
946     ac_useropt_orig=$ac_useropt
947     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
948     case $ac_user_opts in
949       *"
950 "enable_$ac_useropt"
951 "*) ;;
952       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
953          ac_unrecognized_sep=', ';;
954     esac
955     eval enable_$ac_useropt=no ;;
956
957   -docdir | --docdir | --docdi | --doc | --do)
958     ac_prev=docdir ;;
959   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
960     docdir=$ac_optarg ;;
961
962   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
963     ac_prev=dvidir ;;
964   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
965     dvidir=$ac_optarg ;;
966
967   -enable-* | --enable-*)
968     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
969     # Reject names that are not valid shell variable names.
970     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
971       as_fn_error $? "invalid feature name: $ac_useropt"
972     ac_useropt_orig=$ac_useropt
973     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
974     case $ac_user_opts in
975       *"
976 "enable_$ac_useropt"
977 "*) ;;
978       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
979          ac_unrecognized_sep=', ';;
980     esac
981     eval enable_$ac_useropt=\$ac_optarg ;;
982
983   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
984   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
985   | --exec | --exe | --ex)
986     ac_prev=exec_prefix ;;
987   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
988   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
989   | --exec=* | --exe=* | --ex=*)
990     exec_prefix=$ac_optarg ;;
991
992   -gas | --gas | --ga | --g)
993     # Obsolete; use --with-gas.
994     with_gas=yes ;;
995
996   -help | --help | --hel | --he | -h)
997     ac_init_help=long ;;
998   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
999     ac_init_help=recursive ;;
1000   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1001     ac_init_help=short ;;
1002
1003   -host | --host | --hos | --ho)
1004     ac_prev=host_alias ;;
1005   -host=* | --host=* | --hos=* | --ho=*)
1006     host_alias=$ac_optarg ;;
1007
1008   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1009     ac_prev=htmldir ;;
1010   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1011   | --ht=*)
1012     htmldir=$ac_optarg ;;
1013
1014   -includedir | --includedir | --includedi | --included | --include \
1015   | --includ | --inclu | --incl | --inc)
1016     ac_prev=includedir ;;
1017   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1018   | --includ=* | --inclu=* | --incl=* | --inc=*)
1019     includedir=$ac_optarg ;;
1020
1021   -infodir | --infodir | --infodi | --infod | --info | --inf)
1022     ac_prev=infodir ;;
1023   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1024     infodir=$ac_optarg ;;
1025
1026   -libdir | --libdir | --libdi | --libd)
1027     ac_prev=libdir ;;
1028   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1029     libdir=$ac_optarg ;;
1030
1031   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1032   | --libexe | --libex | --libe)
1033     ac_prev=libexecdir ;;
1034   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1035   | --libexe=* | --libex=* | --libe=*)
1036     libexecdir=$ac_optarg ;;
1037
1038   -localedir | --localedir | --localedi | --localed | --locale)
1039     ac_prev=localedir ;;
1040   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1041     localedir=$ac_optarg ;;
1042
1043   -localstatedir | --localstatedir | --localstatedi | --localstated \
1044   | --localstate | --localstat | --localsta | --localst | --locals)
1045     ac_prev=localstatedir ;;
1046   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1047   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1048     localstatedir=$ac_optarg ;;
1049
1050   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1051     ac_prev=mandir ;;
1052   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1053     mandir=$ac_optarg ;;
1054
1055   -nfp | --nfp | --nf)
1056     # Obsolete; use --without-fp.
1057     with_fp=no ;;
1058
1059   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1060   | --no-cr | --no-c | -n)
1061     no_create=yes ;;
1062
1063   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1064   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1065     no_recursion=yes ;;
1066
1067   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1068   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1069   | --oldin | --oldi | --old | --ol | --o)
1070     ac_prev=oldincludedir ;;
1071   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1072   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1073   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1074     oldincludedir=$ac_optarg ;;
1075
1076   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1077     ac_prev=prefix ;;
1078   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1079     prefix=$ac_optarg ;;
1080
1081   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1082   | --program-pre | --program-pr | --program-p)
1083     ac_prev=program_prefix ;;
1084   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1085   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1086     program_prefix=$ac_optarg ;;
1087
1088   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1089   | --program-suf | --program-su | --program-s)
1090     ac_prev=program_suffix ;;
1091   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1092   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1093     program_suffix=$ac_optarg ;;
1094
1095   -program-transform-name | --program-transform-name \
1096   | --program-transform-nam | --program-transform-na \
1097   | --program-transform-n | --program-transform- \
1098   | --program-transform | --program-transfor \
1099   | --program-transfo | --program-transf \
1100   | --program-trans | --program-tran \
1101   | --progr-tra | --program-tr | --program-t)
1102     ac_prev=program_transform_name ;;
1103   -program-transform-name=* | --program-transform-name=* \
1104   | --program-transform-nam=* | --program-transform-na=* \
1105   | --program-transform-n=* | --program-transform-=* \
1106   | --program-transform=* | --program-transfor=* \
1107   | --program-transfo=* | --program-transf=* \
1108   | --program-trans=* | --program-tran=* \
1109   | --progr-tra=* | --program-tr=* | --program-t=*)
1110     program_transform_name=$ac_optarg ;;
1111
1112   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1113     ac_prev=pdfdir ;;
1114   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1115     pdfdir=$ac_optarg ;;
1116
1117   -psdir | --psdir | --psdi | --psd | --ps)
1118     ac_prev=psdir ;;
1119   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1120     psdir=$ac_optarg ;;
1121
1122   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1123   | -silent | --silent | --silen | --sile | --sil)
1124     silent=yes ;;
1125
1126   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1127     ac_prev=sbindir ;;
1128   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1129   | --sbi=* | --sb=*)
1130     sbindir=$ac_optarg ;;
1131
1132   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1133   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1134   | --sharedst | --shareds | --shared | --share | --shar \
1135   | --sha | --sh)
1136     ac_prev=sharedstatedir ;;
1137   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1138   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1139   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1140   | --sha=* | --sh=*)
1141     sharedstatedir=$ac_optarg ;;
1142
1143   -site | --site | --sit)
1144     ac_prev=site ;;
1145   -site=* | --site=* | --sit=*)
1146     site=$ac_optarg ;;
1147
1148   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1149     ac_prev=srcdir ;;
1150   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1151     srcdir=$ac_optarg ;;
1152
1153   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1154   | --syscon | --sysco | --sysc | --sys | --sy)
1155     ac_prev=sysconfdir ;;
1156   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1157   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1158     sysconfdir=$ac_optarg ;;
1159
1160   -target | --target | --targe | --targ | --tar | --ta | --t)
1161     ac_prev=target_alias ;;
1162   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1163     target_alias=$ac_optarg ;;
1164
1165   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1166     verbose=yes ;;
1167
1168   -version | --version | --versio | --versi | --vers | -V)
1169     ac_init_version=: ;;
1170
1171   -with-* | --with-*)
1172     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1173     # Reject names that are not valid shell variable names.
1174     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1175       as_fn_error $? "invalid package name: $ac_useropt"
1176     ac_useropt_orig=$ac_useropt
1177     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1178     case $ac_user_opts in
1179       *"
1180 "with_$ac_useropt"
1181 "*) ;;
1182       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1183          ac_unrecognized_sep=', ';;
1184     esac
1185     eval with_$ac_useropt=\$ac_optarg ;;
1186
1187   -without-* | --without-*)
1188     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1189     # Reject names that are not valid shell variable names.
1190     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1191       as_fn_error $? "invalid package name: $ac_useropt"
1192     ac_useropt_orig=$ac_useropt
1193     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1194     case $ac_user_opts in
1195       *"
1196 "with_$ac_useropt"
1197 "*) ;;
1198       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1199          ac_unrecognized_sep=', ';;
1200     esac
1201     eval with_$ac_useropt=no ;;
1202
1203   --x)
1204     # Obsolete; use --with-x.
1205     with_x=yes ;;
1206
1207   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1208   | --x-incl | --x-inc | --x-in | --x-i)
1209     ac_prev=x_includes ;;
1210   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1211   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1212     x_includes=$ac_optarg ;;
1213
1214   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1215   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1216     ac_prev=x_libraries ;;
1217   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1218   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1219     x_libraries=$ac_optarg ;;
1220
1221   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1222 Try \`$0 --help' for more information"
1223     ;;
1224
1225   *=*)
1226     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1227     # Reject names that are not valid shell variable names.
1228     case $ac_envvar in #(
1229       '' | [0-9]* | *[!_$as_cr_alnum]* )
1230       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1231     esac
1232     eval $ac_envvar=\$ac_optarg
1233     export $ac_envvar ;;
1234
1235   *)
1236     # FIXME: should be removed in autoconf 3.0.
1237     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1238     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1239       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1240     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1241     ;;
1242
1243   esac
1244 done
1245
1246 if test -n "$ac_prev"; then
1247   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1248   as_fn_error $? "missing argument to $ac_option"
1249 fi
1250
1251 if test -n "$ac_unrecognized_opts"; then
1252   case $enable_option_checking in
1253     no) ;;
1254     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1255     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1256   esac
1257 fi
1258
1259 # Check all directory arguments for consistency.
1260 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1261                 datadir sysconfdir sharedstatedir localstatedir includedir \
1262                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1263                 libdir localedir mandir
1264 do
1265   eval ac_val=\$$ac_var
1266   # Remove trailing slashes.
1267   case $ac_val in
1268     */ )
1269       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1270       eval $ac_var=\$ac_val;;
1271   esac
1272   # Be sure to have absolute directory names.
1273   case $ac_val in
1274     [\\/$]* | ?:[\\/]* )  continue;;
1275     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1276   esac
1277   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1278 done
1279
1280 # There might be people who depend on the old broken behavior: `$host'
1281 # used to hold the argument of --host etc.
1282 # FIXME: To remove some day.
1283 build=$build_alias
1284 host=$host_alias
1285 target=$target_alias
1286
1287 # FIXME: To remove some day.
1288 if test "x$host_alias" != x; then
1289   if test "x$build_alias" = x; then
1290     cross_compiling=maybe
1291     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1292     If a cross compiler is detected then cross compile mode will be used" >&2
1293   elif test "x$build_alias" != "x$host_alias"; then
1294     cross_compiling=yes
1295   fi
1296 fi
1297
1298 ac_tool_prefix=
1299 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1300
1301 test "$silent" = yes && exec 6>/dev/null
1302
1303
1304 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1305 ac_ls_di=`ls -di .` &&
1306 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1307   as_fn_error $? "working directory cannot be determined"
1308 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1309   as_fn_error $? "pwd does not report name of working directory"
1310
1311
1312 # Find the source files, if location was not specified.
1313 if test -z "$srcdir"; then
1314   ac_srcdir_defaulted=yes
1315   # Try the directory containing this script, then the parent directory.
1316   ac_confdir=`$as_dirname -- "$as_myself" ||
1317 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1318          X"$as_myself" : 'X\(//\)[^/]' \| \
1319          X"$as_myself" : 'X\(//\)$' \| \
1320          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1321 $as_echo X"$as_myself" |
1322     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1323             s//\1/
1324             q
1325           }
1326           /^X\(\/\/\)[^/].*/{
1327             s//\1/
1328             q
1329           }
1330           /^X\(\/\/\)$/{
1331             s//\1/
1332             q
1333           }
1334           /^X\(\/\).*/{
1335             s//\1/
1336             q
1337           }
1338           s/.*/./; q'`
1339   srcdir=$ac_confdir
1340   if test ! -r "$srcdir/$ac_unique_file"; then
1341     srcdir=..
1342   fi
1343 else
1344   ac_srcdir_defaulted=no
1345 fi
1346 if test ! -r "$srcdir/$ac_unique_file"; then
1347   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1348   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1349 fi
1350 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1351 ac_abs_confdir=`(
1352         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1353         pwd)`
1354 # When building in place, set srcdir=.
1355 if test "$ac_abs_confdir" = "$ac_pwd"; then
1356   srcdir=.
1357 fi
1358 # Remove unnecessary trailing slashes from srcdir.
1359 # Double slashes in file names in object file debugging info
1360 # mess up M-x gdb in Emacs.
1361 case $srcdir in
1362 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1363 esac
1364 for ac_var in $ac_precious_vars; do
1365   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1366   eval ac_env_${ac_var}_value=\$${ac_var}
1367   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1368   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1369 done
1370
1371 #
1372 # Report the --help message.
1373 #
1374 if test "$ac_init_help" = "long"; then
1375   # Omit some internal or obsolete options to make the list less imposing.
1376   # This message is too long to be a string in the A/UX 3.1 sh.
1377   cat <<_ACEOF
1378 \`configure' configures Wine 1.3.17 to adapt to many kinds of systems.
1379
1380 Usage: $0 [OPTION]... [VAR=VALUE]...
1381
1382 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1383 VAR=VALUE.  See below for descriptions of some of the useful variables.
1384
1385 Defaults for the options are specified in brackets.
1386
1387 Configuration:
1388   -h, --help              display this help and exit
1389       --help=short        display options specific to this package
1390       --help=recursive    display the short help of all the included packages
1391   -V, --version           display version information and exit
1392   -q, --quiet, --silent   do not print \`checking ...' messages
1393       --cache-file=FILE   cache test results in FILE [disabled]
1394   -C, --config-cache      alias for \`--cache-file=config.cache'
1395   -n, --no-create         do not create output files
1396       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1397
1398 Installation directories:
1399   --prefix=PREFIX         install architecture-independent files in PREFIX
1400                           [$ac_default_prefix]
1401   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1402                           [PREFIX]
1403
1404 By default, \`make install' will install all the files in
1405 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1406 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1407 for instance \`--prefix=\$HOME'.
1408
1409 For better control, use the options below.
1410
1411 Fine tuning of the installation directories:
1412   --bindir=DIR            user executables [EPREFIX/bin]
1413   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1414   --libexecdir=DIR        program executables [EPREFIX/libexec]
1415   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1416   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1417   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1418   --libdir=DIR            object code libraries [EPREFIX/lib]
1419   --includedir=DIR        C header files [PREFIX/include]
1420   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1421   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1422   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1423   --infodir=DIR           info documentation [DATAROOTDIR/info]
1424   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1425   --mandir=DIR            man documentation [DATAROOTDIR/man]
1426   --docdir=DIR            documentation root [DATAROOTDIR/doc/wine]
1427   --htmldir=DIR           html documentation [DOCDIR]
1428   --dvidir=DIR            dvi documentation [DOCDIR]
1429   --pdfdir=DIR            pdf documentation [DOCDIR]
1430   --psdir=DIR             ps documentation [DOCDIR]
1431 _ACEOF
1432
1433   cat <<\_ACEOF
1434
1435 X features:
1436   --x-includes=DIR    X include files are in DIR
1437   --x-libraries=DIR   X library files are in DIR
1438
1439 System types:
1440   --build=BUILD     configure for building on BUILD [guessed]
1441   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1442 _ACEOF
1443 fi
1444
1445 if test -n "$ac_init_help"; then
1446   case $ac_init_help in
1447      short | recursive ) echo "Configuration of Wine 1.3.17:";;
1448    esac
1449   cat <<\_ACEOF
1450
1451 Optional Features:
1452   --disable-option-checking  ignore unrecognized --enable/--with options
1453   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1454   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1455   --disable-win16         do not include Win16 support
1456   --enable-win64          build a Win64 emulator on AMD64 (won't run Win32
1457                           binaries)
1458   --disable-tests         do not build the regression tests
1459   --enable-maintainer-mode
1460                           enable maintainer-specific build rules
1461   --disable-largefile     omit support for large files
1462
1463 Optional Packages:
1464   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1465   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1466   --without-alsa          do not use the Alsa sound support
1467   --without-capi          do not use CAPI (ISDN support)
1468   --without-cms           do not use CMS (color management support)
1469   --without-coreaudio     do not use the CoreAudio sound support
1470   --without-cups          do not use CUPS
1471   --without-curses        do not use (n)curses
1472   --without-esd           do not use the EsounD sound support
1473   --without-fontconfig    do not use fontconfig
1474   --without-freetype      do not use the FreeType library
1475   --without-gettextpo     do not use the GetTextPO library
1476   --without-gphoto        do not use gphoto (Digital Camera support)
1477   --without-glu           do not use the GLU library
1478   --without-gnutls        do not use GnuTLS (schannel support)
1479   --without-gsm           do not use libgsm (GSM 06.10 codec support)
1480   --without-gstreamer     do not use GStreamer (codecs support)
1481   --without-hal           do not use HAL (dynamic device support)
1482   --without-jack          do not use the Jack sound support
1483   --without-jpeg          do not use JPEG
1484   --without-ldap          do not use LDAP
1485   --without-mpg123        do not use the mpg123 library
1486   --without-nas           do not use the NAS sound support
1487   --without-openal        do not use OpenAL
1488   --without-opencl        do not use OpenCL
1489   --without-opengl        do not use OpenGL
1490   --without-openssl       do not use OpenSSL
1491   --without-oss           do not use the OSS sound support
1492   --without-png           do not use PNG
1493   --without-pthread       do not use the pthread library
1494   --without-sane          do not use SANE (scanner support)
1495   --without-tiff          do not use TIFF
1496   --without-v4l           do not use v4l1 (v4l support)
1497   --without-xcomposite    do not use the Xcomposite extension
1498   --without-xcursor       do not use the Xcursor extension
1499   --without-xinerama      do not use Xinerama (multi-monitor support)
1500   --without-xinput        do not use the Xinput extension
1501   --without-xinput2       do not use the Xinput 2 extension
1502   --without-xml           do not use XML
1503   --without-xrandr        do not use Xrandr (resolution changes)
1504   --without-xrender       do not use the Xrender extension
1505   --without-xshape        do not use the Xshape extension
1506   --without-xshm          do not use XShm (shared memory extension)
1507   --without-xslt          do not use XSLT
1508   --without-xxf86vm       do not use XFree video mode extension
1509   --without-zlib          do not use Zlib (data compression)
1510   --with-wine-tools=DIR   use Wine tools from directory DIR
1511   --with-wine64=DIR       use the 64-bit Wine in DIR for a Wow64 build
1512   --with-x                use the X Window System
1513
1514 Some influential environment variables:
1515   CC          C compiler command
1516   CFLAGS      C compiler flags
1517   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1518               nonstandard directory <lib dir>
1519   LIBS        libraries to pass to the linker, e.g. -l<library>
1520   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1521               you have headers in a nonstandard directory <include dir>
1522   CXX         C++ compiler command
1523   CXXFLAGS    C++ compiler flags
1524   CPP         C preprocessor
1525   XMKMF       Path to xmkmf, Makefile generator for X Window System
1526
1527 Use these variables to override the choices made by `configure' or to help
1528 it to find libraries and programs with nonstandard names/locations.
1529
1530 Report bugs to <wine-devel@winehq.org>.
1531 Wine home page: <http://www.winehq.org>.
1532 _ACEOF
1533 ac_status=$?
1534 fi
1535
1536 if test "$ac_init_help" = "recursive"; then
1537   # If there are subdirs, report their specific --help.
1538   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1539     test -d "$ac_dir" ||
1540       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1541       continue
1542     ac_builddir=.
1543
1544 case "$ac_dir" in
1545 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1546 *)
1547   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1548   # A ".." for each directory in $ac_dir_suffix.
1549   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1550   case $ac_top_builddir_sub in
1551   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1552   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1553   esac ;;
1554 esac
1555 ac_abs_top_builddir=$ac_pwd
1556 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1557 # for backward compatibility:
1558 ac_top_builddir=$ac_top_build_prefix
1559
1560 case $srcdir in
1561   .)  # We are building in place.
1562     ac_srcdir=.
1563     ac_top_srcdir=$ac_top_builddir_sub
1564     ac_abs_top_srcdir=$ac_pwd ;;
1565   [\\/]* | ?:[\\/]* )  # Absolute name.
1566     ac_srcdir=$srcdir$ac_dir_suffix;
1567     ac_top_srcdir=$srcdir
1568     ac_abs_top_srcdir=$srcdir ;;
1569   *) # Relative name.
1570     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1571     ac_top_srcdir=$ac_top_build_prefix$srcdir
1572     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1573 esac
1574 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1575
1576     cd "$ac_dir" || { ac_status=$?; continue; }
1577     # Check for guested configure.
1578     if test -f "$ac_srcdir/configure.gnu"; then
1579       echo &&
1580       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1581     elif test -f "$ac_srcdir/configure"; then
1582       echo &&
1583       $SHELL "$ac_srcdir/configure" --help=recursive
1584     else
1585       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1586     fi || ac_status=$?
1587     cd "$ac_pwd" || { ac_status=$?; break; }
1588   done
1589 fi
1590
1591 test -n "$ac_init_help" && exit $ac_status
1592 if $ac_init_version; then
1593   cat <<\_ACEOF
1594 Wine configure 1.3.17
1595 generated by GNU Autoconf 2.67
1596
1597 Copyright (C) 2010 Free Software Foundation, Inc.
1598 This configure script is free software; the Free Software Foundation
1599 gives unlimited permission to copy, distribute and modify it.
1600 _ACEOF
1601   exit
1602 fi
1603
1604 ## ------------------------ ##
1605 ## Autoconf initialization. ##
1606 ## ------------------------ ##
1607
1608 # ac_fn_c_try_compile LINENO
1609 # --------------------------
1610 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1611 ac_fn_c_try_compile ()
1612 {
1613   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1614   rm -f conftest.$ac_objext
1615   if { { ac_try="$ac_compile"
1616 case "(($ac_try" in
1617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1618   *) ac_try_echo=$ac_try;;
1619 esac
1620 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1621 $as_echo "$ac_try_echo"; } >&5
1622   (eval "$ac_compile") 2>conftest.err
1623   ac_status=$?
1624   if test -s conftest.err; then
1625     grep -v '^ *+' conftest.err >conftest.er1
1626     cat conftest.er1 >&5
1627     mv -f conftest.er1 conftest.err
1628   fi
1629   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1630   test $ac_status = 0; } && {
1631          test -z "$ac_c_werror_flag" ||
1632          test ! -s conftest.err
1633        } && test -s conftest.$ac_objext; then :
1634   ac_retval=0
1635 else
1636   $as_echo "$as_me: failed program was:" >&5
1637 sed 's/^/| /' conftest.$ac_ext >&5
1638
1639         ac_retval=1
1640 fi
1641   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1642   as_fn_set_status $ac_retval
1643
1644 } # ac_fn_c_try_compile
1645
1646 # ac_fn_cxx_try_compile LINENO
1647 # ----------------------------
1648 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1649 ac_fn_cxx_try_compile ()
1650 {
1651   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1652   rm -f conftest.$ac_objext
1653   if { { ac_try="$ac_compile"
1654 case "(($ac_try" in
1655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1656   *) ac_try_echo=$ac_try;;
1657 esac
1658 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1659 $as_echo "$ac_try_echo"; } >&5
1660   (eval "$ac_compile") 2>conftest.err
1661   ac_status=$?
1662   if test -s conftest.err; then
1663     grep -v '^ *+' conftest.err >conftest.er1
1664     cat conftest.er1 >&5
1665     mv -f conftest.er1 conftest.err
1666   fi
1667   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1668   test $ac_status = 0; } && {
1669          test -z "$ac_cxx_werror_flag" ||
1670          test ! -s conftest.err
1671        } && test -s conftest.$ac_objext; then :
1672   ac_retval=0
1673 else
1674   $as_echo "$as_me: failed program was:" >&5
1675 sed 's/^/| /' conftest.$ac_ext >&5
1676
1677         ac_retval=1
1678 fi
1679   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1680   as_fn_set_status $ac_retval
1681
1682 } # ac_fn_cxx_try_compile
1683
1684 # ac_fn_c_try_link LINENO
1685 # -----------------------
1686 # Try to link conftest.$ac_ext, and return whether this succeeded.
1687 ac_fn_c_try_link ()
1688 {
1689   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1690   rm -f conftest.$ac_objext conftest$ac_exeext
1691   if { { ac_try="$ac_link"
1692 case "(($ac_try" in
1693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1694   *) ac_try_echo=$ac_try;;
1695 esac
1696 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1697 $as_echo "$ac_try_echo"; } >&5
1698   (eval "$ac_link") 2>conftest.err
1699   ac_status=$?
1700   if test -s conftest.err; then
1701     grep -v '^ *+' conftest.err >conftest.er1
1702     cat conftest.er1 >&5
1703     mv -f conftest.er1 conftest.err
1704   fi
1705   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1706   test $ac_status = 0; } && {
1707          test -z "$ac_c_werror_flag" ||
1708          test ! -s conftest.err
1709        } && test -s conftest$ac_exeext && {
1710          test "$cross_compiling" = yes ||
1711          $as_test_x conftest$ac_exeext
1712        }; then :
1713   ac_retval=0
1714 else
1715   $as_echo "$as_me: failed program was:" >&5
1716 sed 's/^/| /' conftest.$ac_ext >&5
1717
1718         ac_retval=1
1719 fi
1720   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1721   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1722   # interfere with the next link command; also delete a directory that is
1723   # left behind by Apple's compiler.  We do this before executing the actions.
1724   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1725   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1726   as_fn_set_status $ac_retval
1727
1728 } # ac_fn_c_try_link
1729
1730 # ac_fn_c_try_cpp LINENO
1731 # ----------------------
1732 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1733 ac_fn_c_try_cpp ()
1734 {
1735   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1736   if { { ac_try="$ac_cpp conftest.$ac_ext"
1737 case "(($ac_try" in
1738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1739   *) ac_try_echo=$ac_try;;
1740 esac
1741 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1742 $as_echo "$ac_try_echo"; } >&5
1743   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1744   ac_status=$?
1745   if test -s conftest.err; then
1746     grep -v '^ *+' conftest.err >conftest.er1
1747     cat conftest.er1 >&5
1748     mv -f conftest.er1 conftest.err
1749   fi
1750   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1751   test $ac_status = 0; } > conftest.i && {
1752          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1753          test ! -s conftest.err
1754        }; then :
1755   ac_retval=0
1756 else
1757   $as_echo "$as_me: failed program was:" >&5
1758 sed 's/^/| /' conftest.$ac_ext >&5
1759
1760     ac_retval=1
1761 fi
1762   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1763   as_fn_set_status $ac_retval
1764
1765 } # ac_fn_c_try_cpp
1766
1767 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1768 # -------------------------------------------------------
1769 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1770 # the include files in INCLUDES and setting the cache variable VAR
1771 # accordingly.
1772 ac_fn_c_check_header_mongrel ()
1773 {
1774   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1775   if eval "test \"\${$3+set}\"" = set; then :
1776   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1777 $as_echo_n "checking for $2... " >&6; }
1778 if eval "test \"\${$3+set}\"" = set; then :
1779   $as_echo_n "(cached) " >&6
1780 fi
1781 eval ac_res=\$$3
1782                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1783 $as_echo "$ac_res" >&6; }
1784 else
1785   # Is the header compilable?
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1787 $as_echo_n "checking $2 usability... " >&6; }
1788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1789 /* end confdefs.h.  */
1790 $4
1791 #include <$2>
1792 _ACEOF
1793 if ac_fn_c_try_compile "$LINENO"; then :
1794   ac_header_compiler=yes
1795 else
1796   ac_header_compiler=no
1797 fi
1798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1800 $as_echo "$ac_header_compiler" >&6; }
1801
1802 # Is the header present?
1803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1804 $as_echo_n "checking $2 presence... " >&6; }
1805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1806 /* end confdefs.h.  */
1807 #include <$2>
1808 _ACEOF
1809 if ac_fn_c_try_cpp "$LINENO"; then :
1810   ac_header_preproc=yes
1811 else
1812   ac_header_preproc=no
1813 fi
1814 rm -f conftest.err conftest.i conftest.$ac_ext
1815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1816 $as_echo "$ac_header_preproc" >&6; }
1817
1818 # So?  What about this header?
1819 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1820   yes:no: )
1821     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1822 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1823     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1824 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1825     ;;
1826   no:yes:* )
1827     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1828 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1829     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1830 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1831     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1832 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1833     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1834 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1835     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1836 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1837 ( $as_echo "## ------------------------------------ ##
1838 ## Report this to wine-devel@winehq.org ##
1839 ## ------------------------------------ ##"
1840      ) | sed "s/^/$as_me: WARNING:     /" >&2
1841     ;;
1842 esac
1843   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1844 $as_echo_n "checking for $2... " >&6; }
1845 if eval "test \"\${$3+set}\"" = set; then :
1846   $as_echo_n "(cached) " >&6
1847 else
1848   eval "$3=\$ac_header_compiler"
1849 fi
1850 eval ac_res=\$$3
1851                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1852 $as_echo "$ac_res" >&6; }
1853 fi
1854   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1855
1856 } # ac_fn_c_check_header_mongrel
1857
1858 # ac_fn_c_try_run LINENO
1859 # ----------------------
1860 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1861 # that executables *can* be run.
1862 ac_fn_c_try_run ()
1863 {
1864   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1865   if { { ac_try="$ac_link"
1866 case "(($ac_try" in
1867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1868   *) ac_try_echo=$ac_try;;
1869 esac
1870 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1871 $as_echo "$ac_try_echo"; } >&5
1872   (eval "$ac_link") 2>&5
1873   ac_status=$?
1874   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1875   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1876   { { case "(($ac_try" in
1877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1878   *) ac_try_echo=$ac_try;;
1879 esac
1880 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1881 $as_echo "$ac_try_echo"; } >&5
1882   (eval "$ac_try") 2>&5
1883   ac_status=$?
1884   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1885   test $ac_status = 0; }; }; then :
1886   ac_retval=0
1887 else
1888   $as_echo "$as_me: program exited with status $ac_status" >&5
1889        $as_echo "$as_me: failed program was:" >&5
1890 sed 's/^/| /' conftest.$ac_ext >&5
1891
1892        ac_retval=$ac_status
1893 fi
1894   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1895   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1896   as_fn_set_status $ac_retval
1897
1898 } # ac_fn_c_try_run
1899
1900 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1901 # -------------------------------------------------------
1902 # Tests whether HEADER exists and can be compiled using the include files in
1903 # INCLUDES, setting the cache variable VAR accordingly.
1904 ac_fn_c_check_header_compile ()
1905 {
1906   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1907   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1908 $as_echo_n "checking for $2... " >&6; }
1909 if eval "test \"\${$3+set}\"" = set; then :
1910   $as_echo_n "(cached) " >&6
1911 else
1912   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1913 /* end confdefs.h.  */
1914 $4
1915 #include <$2>
1916 _ACEOF
1917 if ac_fn_c_try_compile "$LINENO"; then :
1918   eval "$3=yes"
1919 else
1920   eval "$3=no"
1921 fi
1922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1923 fi
1924 eval ac_res=\$$3
1925                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1926 $as_echo "$ac_res" >&6; }
1927   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1928
1929 } # ac_fn_c_check_header_compile
1930
1931 # ac_fn_c_check_func LINENO FUNC VAR
1932 # ----------------------------------
1933 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1934 ac_fn_c_check_func ()
1935 {
1936   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1937   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1938 $as_echo_n "checking for $2... " >&6; }
1939 if eval "test \"\${$3+set}\"" = set; then :
1940   $as_echo_n "(cached) " >&6
1941 else
1942   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1943 /* end confdefs.h.  */
1944 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1945    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1946 #define $2 innocuous_$2
1947
1948 /* System header to define __stub macros and hopefully few prototypes,
1949     which can conflict with char $2 (); below.
1950     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1951     <limits.h> exists even on freestanding compilers.  */
1952
1953 #ifdef __STDC__
1954 # include <limits.h>
1955 #else
1956 # include <assert.h>
1957 #endif
1958
1959 #undef $2
1960
1961 /* Override any GCC internal prototype to avoid an error.
1962    Use char because int might match the return type of a GCC
1963    builtin and then its argument prototype would still apply.  */
1964 #ifdef __cplusplus
1965 extern "C"
1966 #endif
1967 char $2 ();
1968 /* The GNU C library defines this for functions which it implements
1969     to always fail with ENOSYS.  Some functions are actually named
1970     something starting with __ and the normal name is an alias.  */
1971 #if defined __stub_$2 || defined __stub___$2
1972 choke me
1973 #endif
1974
1975 int
1976 main ()
1977 {
1978 return $2 ();
1979   ;
1980   return 0;
1981 }
1982 _ACEOF
1983 if ac_fn_c_try_link "$LINENO"; then :
1984   eval "$3=yes"
1985 else
1986   eval "$3=no"
1987 fi
1988 rm -f core conftest.err conftest.$ac_objext \
1989     conftest$ac_exeext conftest.$ac_ext
1990 fi
1991 eval ac_res=\$$3
1992                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1993 $as_echo "$ac_res" >&6; }
1994   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1995
1996 } # ac_fn_c_check_func
1997
1998 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1999 # ----------------------------------------------------
2000 # Tries to find if the field MEMBER exists in type AGGR, after including
2001 # INCLUDES, setting cache variable VAR accordingly.
2002 ac_fn_c_check_member ()
2003 {
2004   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2005   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2006 $as_echo_n "checking for $2.$3... " >&6; }
2007 if eval "test \"\${$4+set}\"" = set; then :
2008   $as_echo_n "(cached) " >&6
2009 else
2010   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2011 /* end confdefs.h.  */
2012 $5
2013 int
2014 main ()
2015 {
2016 static $2 ac_aggr;
2017 if (ac_aggr.$3)
2018 return 0;
2019   ;
2020   return 0;
2021 }
2022 _ACEOF
2023 if ac_fn_c_try_compile "$LINENO"; then :
2024   eval "$4=yes"
2025 else
2026   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2027 /* end confdefs.h.  */
2028 $5
2029 int
2030 main ()
2031 {
2032 static $2 ac_aggr;
2033 if (sizeof ac_aggr.$3)
2034 return 0;
2035   ;
2036   return 0;
2037 }
2038 _ACEOF
2039 if ac_fn_c_try_compile "$LINENO"; then :
2040   eval "$4=yes"
2041 else
2042   eval "$4=no"
2043 fi
2044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2045 fi
2046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2047 fi
2048 eval ac_res=\$$4
2049                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2050 $as_echo "$ac_res" >&6; }
2051   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2052
2053 } # ac_fn_c_check_member
2054
2055 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2056 # -------------------------------------------
2057 # Tests whether TYPE exists after having included INCLUDES, setting cache
2058 # variable VAR accordingly.
2059 ac_fn_c_check_type ()
2060 {
2061   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2062   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2063 $as_echo_n "checking for $2... " >&6; }
2064 if eval "test \"\${$3+set}\"" = set; then :
2065   $as_echo_n "(cached) " >&6
2066 else
2067   eval "$3=no"
2068   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2069 /* end confdefs.h.  */
2070 $4
2071 int
2072 main ()
2073 {
2074 if (sizeof ($2))
2075          return 0;
2076   ;
2077   return 0;
2078 }
2079 _ACEOF
2080 if ac_fn_c_try_compile "$LINENO"; then :
2081   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2082 /* end confdefs.h.  */
2083 $4
2084 int
2085 main ()
2086 {
2087 if (sizeof (($2)))
2088             return 0;
2089   ;
2090   return 0;
2091 }
2092 _ACEOF
2093 if ac_fn_c_try_compile "$LINENO"; then :
2094
2095 else
2096   eval "$3=yes"
2097 fi
2098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2099 fi
2100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2101 fi
2102 eval ac_res=\$$3
2103                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2104 $as_echo "$ac_res" >&6; }
2105   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2106
2107 } # ac_fn_c_check_type
2108 cat >config.log <<_ACEOF
2109 This file contains any messages produced by compilers while
2110 running configure, to aid debugging if configure makes a mistake.
2111
2112 It was created by Wine $as_me 1.3.17, which was
2113 generated by GNU Autoconf 2.67.  Invocation command line was
2114
2115   $ $0 $@
2116
2117 _ACEOF
2118 exec 5>>config.log
2119 {
2120 cat <<_ASUNAME
2121 ## --------- ##
2122 ## Platform. ##
2123 ## --------- ##
2124
2125 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2126 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2127 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2128 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2129 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2130
2131 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2132 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2133
2134 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2135 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2136 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2137 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2138 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2139 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2140 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2141
2142 _ASUNAME
2143
2144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2145 for as_dir in $PATH
2146 do
2147   IFS=$as_save_IFS
2148   test -z "$as_dir" && as_dir=.
2149     $as_echo "PATH: $as_dir"
2150   done
2151 IFS=$as_save_IFS
2152
2153 } >&5
2154
2155 cat >&5 <<_ACEOF
2156
2157
2158 ## ----------- ##
2159 ## Core tests. ##
2160 ## ----------- ##
2161
2162 _ACEOF
2163
2164
2165 # Keep a trace of the command line.
2166 # Strip out --no-create and --no-recursion so they do not pile up.
2167 # Strip out --silent because we don't want to record it for future runs.
2168 # Also quote any args containing shell meta-characters.
2169 # Make two passes to allow for proper duplicate-argument suppression.
2170 ac_configure_args=
2171 ac_configure_args0=
2172 ac_configure_args1=
2173 ac_must_keep_next=false
2174 for ac_pass in 1 2
2175 do
2176   for ac_arg
2177   do
2178     case $ac_arg in
2179     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2180     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2181     | -silent | --silent | --silen | --sile | --sil)
2182       continue ;;
2183     *\'*)
2184       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2185     esac
2186     case $ac_pass in
2187     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2188     2)
2189       as_fn_append ac_configure_args1 " '$ac_arg'"
2190       if test $ac_must_keep_next = true; then
2191         ac_must_keep_next=false # Got value, back to normal.
2192       else
2193         case $ac_arg in
2194           *=* | --config-cache | -C | -disable-* | --disable-* \
2195           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2196           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2197           | -with-* | --with-* | -without-* | --without-* | --x)
2198             case "$ac_configure_args0 " in
2199               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2200             esac
2201             ;;
2202           -* ) ac_must_keep_next=true ;;
2203         esac
2204       fi
2205       as_fn_append ac_configure_args " '$ac_arg'"
2206       ;;
2207     esac
2208   done
2209 done
2210 { ac_configure_args0=; unset ac_configure_args0;}
2211 { ac_configure_args1=; unset ac_configure_args1;}
2212
2213 # When interrupted or exit'd, cleanup temporary files, and complete
2214 # config.log.  We remove comments because anyway the quotes in there
2215 # would cause problems or look ugly.
2216 # WARNING: Use '\'' to represent an apostrophe within the trap.
2217 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2218 trap 'exit_status=$?
2219   # Save into config.log some information that might help in debugging.
2220   {
2221     echo
2222
2223     $as_echo "## ---------------- ##
2224 ## Cache variables. ##
2225 ## ---------------- ##"
2226     echo
2227     # The following way of writing the cache mishandles newlines in values,
2228 (
2229   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2230     eval ac_val=\$$ac_var
2231     case $ac_val in #(
2232     *${as_nl}*)
2233       case $ac_var in #(
2234       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2235 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2236       esac
2237       case $ac_var in #(
2238       _ | IFS | as_nl) ;; #(
2239       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2240       *) { eval $ac_var=; unset $ac_var;} ;;
2241       esac ;;
2242     esac
2243   done
2244   (set) 2>&1 |
2245     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2246     *${as_nl}ac_space=\ *)
2247       sed -n \
2248         "s/'\''/'\''\\\\'\'''\''/g;
2249           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2250       ;; #(
2251     *)
2252       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2253       ;;
2254     esac |
2255     sort
2256 )
2257     echo
2258
2259     $as_echo "## ----------------- ##
2260 ## Output variables. ##
2261 ## ----------------- ##"
2262     echo
2263     for ac_var in $ac_subst_vars
2264     do
2265       eval ac_val=\$$ac_var
2266       case $ac_val in
2267       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2268       esac
2269       $as_echo "$ac_var='\''$ac_val'\''"
2270     done | sort
2271     echo
2272
2273     if test -n "$ac_subst_files"; then
2274       $as_echo "## ------------------- ##
2275 ## File substitutions. ##
2276 ## ------------------- ##"
2277       echo
2278       for ac_var in $ac_subst_files
2279       do
2280         eval ac_val=\$$ac_var
2281         case $ac_val in
2282         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2283         esac
2284         $as_echo "$ac_var='\''$ac_val'\''"
2285       done | sort
2286       echo
2287     fi
2288
2289     if test -s confdefs.h; then
2290       $as_echo "## ----------- ##
2291 ## confdefs.h. ##
2292 ## ----------- ##"
2293       echo
2294       cat confdefs.h
2295       echo
2296     fi
2297     test "$ac_signal" != 0 &&
2298       $as_echo "$as_me: caught signal $ac_signal"
2299     $as_echo "$as_me: exit $exit_status"
2300   } >&5
2301   rm -f core *.core core.conftest.* &&
2302     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2303     exit $exit_status
2304 ' 0
2305 for ac_signal in 1 2 13 15; do
2306   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2307 done
2308 ac_signal=0
2309
2310 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2311 rm -f -r conftest* confdefs.h
2312
2313 $as_echo "/* confdefs.h */" > confdefs.h
2314
2315 # Predefined preprocessor variables.
2316
2317 cat >>confdefs.h <<_ACEOF
2318 #define PACKAGE_NAME "$PACKAGE_NAME"
2319 _ACEOF
2320
2321 cat >>confdefs.h <<_ACEOF
2322 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2323 _ACEOF
2324
2325 cat >>confdefs.h <<_ACEOF
2326 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2327 _ACEOF
2328
2329 cat >>confdefs.h <<_ACEOF
2330 #define PACKAGE_STRING "$PACKAGE_STRING"
2331 _ACEOF
2332
2333 cat >>confdefs.h <<_ACEOF
2334 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2335 _ACEOF
2336
2337 cat >>confdefs.h <<_ACEOF
2338 #define PACKAGE_URL "$PACKAGE_URL"
2339 _ACEOF
2340
2341
2342 # Let the site file select an alternate cache file if it wants to.
2343 # Prefer an explicitly selected file to automatically selected ones.
2344 ac_site_file1=NONE
2345 ac_site_file2=NONE
2346 if test -n "$CONFIG_SITE"; then
2347   # We do not want a PATH search for config.site.
2348   case $CONFIG_SITE in #((
2349     -*)  ac_site_file1=./$CONFIG_SITE;;
2350     */*) ac_site_file1=$CONFIG_SITE;;
2351     *)   ac_site_file1=./$CONFIG_SITE;;
2352   esac
2353 elif test "x$prefix" != xNONE; then
2354   ac_site_file1=$prefix/share/config.site
2355   ac_site_file2=$prefix/etc/config.site
2356 else
2357   ac_site_file1=$ac_default_prefix/share/config.site
2358   ac_site_file2=$ac_default_prefix/etc/config.site
2359 fi
2360 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2361 do
2362   test "x$ac_site_file" = xNONE && continue
2363   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2364     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2365 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2366     sed 's/^/| /' "$ac_site_file" >&5
2367     . "$ac_site_file" \
2368       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2369 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2370 as_fn_error $? "failed to load site script $ac_site_file
2371 See \`config.log' for more details" "$LINENO" 5 ; }
2372   fi
2373 done
2374
2375 if test -r "$cache_file"; then
2376   # Some versions of bash will fail to source /dev/null (special files
2377   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2378   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2379     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2380 $as_echo "$as_me: loading cache $cache_file" >&6;}
2381     case $cache_file in
2382       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2383       *)                      . "./$cache_file";;
2384     esac
2385   fi
2386 else
2387   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2388 $as_echo "$as_me: creating cache $cache_file" >&6;}
2389   >$cache_file
2390 fi
2391
2392 # Check that the precious variables saved in the cache have kept the same
2393 # value.
2394 ac_cache_corrupted=false
2395 for ac_var in $ac_precious_vars; do
2396   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2397   eval ac_new_set=\$ac_env_${ac_var}_set
2398   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2399   eval ac_new_val=\$ac_env_${ac_var}_value
2400   case $ac_old_set,$ac_new_set in
2401     set,)
2402       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2403 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2404       ac_cache_corrupted=: ;;
2405     ,set)
2406       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2407 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2408       ac_cache_corrupted=: ;;
2409     ,);;
2410     *)
2411       if test "x$ac_old_val" != "x$ac_new_val"; then
2412         # differences in whitespace do not lead to failure.
2413         ac_old_val_w=`echo x $ac_old_val`
2414         ac_new_val_w=`echo x $ac_new_val`
2415         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2416           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2417 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2418           ac_cache_corrupted=:
2419         else
2420           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2421 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2422           eval $ac_var=\$ac_old_val
2423         fi
2424         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2425 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2426         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2427 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2428       fi;;
2429   esac
2430   # Pass precious variables to config.status.
2431   if test "$ac_new_set" = set; then
2432     case $ac_new_val in
2433     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2434     *) ac_arg=$ac_var=$ac_new_val ;;
2435     esac
2436     case " $ac_configure_args " in
2437       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2438       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2439     esac
2440   fi
2441 done
2442 if $ac_cache_corrupted; then
2443   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2444 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2445   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2446 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2447   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2448 fi
2449 ## -------------------- ##
2450 ## Main body of script. ##
2451 ## -------------------- ##
2452
2453 ac_ext=c
2454 ac_cpp='$CPP $CPPFLAGS'
2455 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2456 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2457 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2458
2459
2460
2461 ac_config_headers="$ac_config_headers include/config.h"
2462
2463 ac_aux_dir=
2464 for ac_dir in tools "$srcdir"/tools; do
2465   if test -f "$ac_dir/install-sh"; then
2466     ac_aux_dir=$ac_dir
2467     ac_install_sh="$ac_aux_dir/install-sh -c"
2468     break
2469   elif test -f "$ac_dir/install.sh"; then
2470     ac_aux_dir=$ac_dir
2471     ac_install_sh="$ac_aux_dir/install.sh -c"
2472     break
2473   elif test -f "$ac_dir/shtool"; then
2474     ac_aux_dir=$ac_dir
2475     ac_install_sh="$ac_aux_dir/shtool install -c"
2476     break
2477   fi
2478 done
2479 if test -z "$ac_aux_dir"; then
2480   as_fn_error $? "cannot find install-sh, install.sh, or shtool in tools \"$srcdir\"/tools" "$LINENO" 5
2481 fi
2482
2483 # These three variables are undocumented and unsupported,
2484 # and are intended to be withdrawn in a future Autoconf release.
2485 # They can cause serious problems if a builder's source tree is in a directory
2486 # whose full name contains unusual characters.
2487 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2488 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2489 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2490
2491
2492
2493
2494
2495 # Check whether --enable-win16 was given.
2496 if test "${enable_win16+set}" = set; then :
2497   enableval=$enable_win16;
2498 fi
2499
2500 # Check whether --enable-win64 was given.
2501 if test "${enable_win64+set}" = set; then :
2502   enableval=$enable_win64;
2503 fi
2504
2505 # Check whether --enable-tests was given.
2506 if test "${enable_tests+set}" = set; then :
2507   enableval=$enable_tests;
2508 fi
2509
2510 # Check whether --enable-maintainer-mode was given.
2511 if test "${enable_maintainer_mode+set}" = set; then :
2512   enableval=$enable_maintainer_mode;
2513 fi
2514
2515
2516
2517 # Check whether --with-alsa was given.
2518 if test "${with_alsa+set}" = set; then :
2519   withval=$with_alsa; if test "x$withval" = "xno"; then ac_cv_header_sys_asoundlib_h=no; ac_cv_header_alsa_asoundlib_h=no; fi
2520 fi
2521
2522
2523 # Check whether --with-capi was given.
2524 if test "${with_capi+set}" = set; then :
2525   withval=$with_capi; if test "x$withval" = "xno"; then ac_cv_header_capi20_h=no; ac_cv_header_linux_capi_h=no; fi
2526 fi
2527
2528
2529 # Check whether --with-cms was given.
2530 if test "${with_cms+set}" = set; then :
2531   withval=$with_cms; if test "x$withval" = "xno"; then ac_cv_header_lcms_h=no; ac_cv_header_lcms_lcms_h=no; fi
2532 fi
2533
2534
2535 # Check whether --with-coreaudio was given.
2536 if test "${with_coreaudio+set}" = set; then :
2537   withval=$with_coreaudio; if test "x$withval" = "xno"; then ac_cv_header_CoreAudio_CoreAudio_h=no; fi
2538 fi
2539
2540
2541 # Check whether --with-cups was given.
2542 if test "${with_cups+set}" = set; then :
2543   withval=$with_cups;
2544 fi
2545
2546
2547 # Check whether --with-curses was given.
2548 if test "${with_curses+set}" = set; then :
2549   withval=$with_curses; if test "x$withval" = "xno"; then ac_cv_header_ncurses_h=no; ac_cv_header_curses_h=no; fi
2550 fi
2551
2552
2553 # Check whether --with-esd was given.
2554 if test "${with_esd+set}" = set; then :
2555   withval=$with_esd;
2556 fi
2557
2558
2559 # Check whether --with-fontconfig was given.
2560 if test "${with_fontconfig+set}" = set; then :
2561   withval=$with_fontconfig; if test "x$withval" = "xno"; then ac_cv_header_fontconfig_fontconfig_h=no; fi
2562 fi
2563
2564
2565 # Check whether --with-freetype was given.
2566 if test "${with_freetype+set}" = set; then :
2567   withval=$with_freetype;
2568 fi
2569
2570
2571 # Check whether --with-gettextpo was given.
2572 if test "${with_gettextpo+set}" = set; then :
2573   withval=$with_gettextpo; if test "x$withval" = "xno"; then ac_cv_header_gettext_po_h=no; fi
2574 fi
2575
2576
2577 # Check whether --with-gphoto was given.
2578 if test "${with_gphoto+set}" = set; then :
2579   withval=$with_gphoto;
2580 fi
2581
2582
2583 # Check whether --with-glu was given.
2584 if test "${with_glu+set}" = set; then :
2585   withval=$with_glu; if test "x$withval" = "xno"; then ac_cv_header_GL_glu_h=no; fi
2586 fi
2587
2588
2589 # Check whether --with-gnutls was given.
2590 if test "${with_gnutls+set}" = set; then :
2591   withval=$with_gnutls;
2592 fi
2593
2594
2595 # Check whether --with-gsm was given.
2596 if test "${with_gsm+set}" = set; then :
2597   withval=$with_gsm; if test "x$withval" = "xno"; then ac_cv_header_gsm_h=no; ac_cv_header_gsm_gsm_h=no; fi
2598 fi
2599
2600
2601 # Check whether --with-gstreamer was given.
2602 if test "${with_gstreamer+set}" = set; then :
2603   withval=$with_gstreamer;
2604 fi
2605
2606
2607 # Check whether --with-hal was given.
2608 if test "${with_hal+set}" = set; then :
2609   withval=$with_hal;
2610 fi
2611
2612
2613 # Check whether --with-jack was given.
2614 if test "${with_jack+set}" = set; then :
2615   withval=$with_jack; if test "x$withval" = "xno"; then ac_cv_header_jack_jack_h=no; fi
2616 fi
2617
2618
2619 # Check whether --with-jpeg was given.
2620 if test "${with_jpeg+set}" = set; then :
2621   withval=$with_jpeg; if test "x$withval" = "xno"; then ac_cv_header_jpeglib_h=no; fi
2622 fi
2623
2624
2625 # Check whether --with-ldap was given.
2626 if test "${with_ldap+set}" = set; then :
2627   withval=$with_ldap; if test "x$withval" = "xno"; then ac_cv_header_ldap_h=no; ac_cv_header_lber_h=no; fi
2628 fi
2629
2630
2631 # Check whether --with-mpg123 was given.
2632 if test "${with_mpg123+set}" = set; then :
2633   withval=$with_mpg123; if test "x$withval" = "xno"; then ac_cv_header_mpg123_h=no; fi
2634 fi
2635
2636
2637 # Check whether --with-nas was given.
2638 if test "${with_nas+set}" = set; then :
2639   withval=$with_nas; if test "x$withval" = "xno"; then ac_cv_header_audio_audiolib_h=no; fi
2640 fi
2641
2642
2643 # Check whether --with-openal was given.
2644 if test "${with_openal+set}" = set; then :
2645   withval=$with_openal; if test "x$withval" = "xno"; then ac_cv_header_AL_al_h=no; ac_cv_header_OpenAL_al_h=no; fi
2646 fi
2647
2648
2649 # Check whether --with-opencl was given.
2650 if test "${with_opencl+set}" = set; then :
2651   withval=$with_opencl; if test "x$withval" = "xno"; then ac_cv_header_CL_cl_h=no; ac_cv_header_OpenCL_opencl_h=no; fi
2652 fi
2653
2654
2655 # Check whether --with-opengl was given.
2656 if test "${with_opengl+set}" = set; then :
2657   withval=$with_opengl;
2658 fi
2659
2660
2661 # Check whether --with-openssl was given.
2662 if test "${with_openssl+set}" = set; then :
2663   withval=$with_openssl; if test "x$withval" = "xno"; then ac_cv_header_openssl_err_h=no; ac_cv_header_openssl_ssl_h=no; fi
2664 fi
2665
2666
2667 # Check whether --with-oss was given.
2668 if test "${with_oss+set}" = set; then :
2669   withval=$with_oss; if test "x$withval" = "xno"; then ac_cv_header_soundcard_h=no; ac_cv_header_sys_soundcard_h=no; ac_cv_header_machine_soundcard_h=no; fi
2670 fi
2671
2672
2673 # Check whether --with-png was given.
2674 if test "${with_png+set}" = set; then :
2675   withval=$with_png; if test "x$withval" = "xno"; then ac_cv_header_png_h=no; fi
2676 fi
2677
2678
2679 # Check whether --with-pthread was given.
2680 if test "${with_pthread+set}" = set; then :
2681   withval=$with_pthread; if test "x$withval" = "xno"; then ac_cv_header_pthread_h=no; fi
2682 fi
2683
2684
2685 # Check whether --with-sane was given.
2686 if test "${with_sane+set}" = set; then :
2687   withval=$with_sane;
2688 fi
2689
2690
2691 # Check whether --with-tiff was given.
2692 if test "${with_tiff+set}" = set; then :
2693   withval=$with_tiff; if test "x$withval" = "xno"; then ac_cv_header_tiffio_h=no; fi
2694 fi
2695
2696
2697 # Check whether --with-v4l was given.
2698 if test "${with_v4l+set}" = set; then :
2699   withval=$with_v4l;
2700 fi
2701
2702
2703 # Check whether --with-xcomposite was given.
2704 if test "${with_xcomposite+set}" = set; then :
2705   withval=$with_xcomposite; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xcomposite_h=no; fi
2706 fi
2707
2708
2709 # Check whether --with-xcursor was given.
2710 if test "${with_xcursor+set}" = set; then :
2711   withval=$with_xcursor; if test "x$withval" = "xno"; then ac_cv_header_X11_Xcursor_Xcursor_h=no; fi
2712 fi
2713
2714
2715 # Check whether --with-xinerama was given.
2716 if test "${with_xinerama+set}" = set; then :
2717   withval=$with_xinerama; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xinerama_h=no; fi
2718 fi
2719
2720
2721 # Check whether --with-xinput was given.
2722 if test "${with_xinput+set}" = set; then :
2723   withval=$with_xinput; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput_h=no; fi
2724 fi
2725
2726
2727 # Check whether --with-xinput2 was given.
2728 if test "${with_xinput2+set}" = set; then :
2729   withval=$with_xinput2; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput2_h=no; fi
2730 fi
2731
2732
2733 # Check whether --with-xml was given.
2734 if test "${with_xml+set}" = set; then :
2735   withval=$with_xml;
2736 fi
2737
2738
2739 # Check whether --with-xrandr was given.
2740 if test "${with_xrandr+set}" = set; then :
2741   withval=$with_xrandr; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrandr_h=no; fi
2742 fi
2743
2744
2745 # Check whether --with-xrender was given.
2746 if test "${with_xrender+set}" = set; then :
2747   withval=$with_xrender; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrender_h=no; fi
2748 fi
2749
2750
2751 # Check whether --with-xshape was given.
2752 if test "${with_xshape+set}" = set; then :
2753   withval=$with_xshape; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_shape_h=no; fi
2754 fi
2755
2756
2757 # Check whether --with-xshm was given.
2758 if test "${with_xshm+set}" = set; then :
2759   withval=$with_xshm; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XShm_h=no; fi
2760 fi
2761
2762
2763 # Check whether --with-xslt was given.
2764 if test "${with_xslt+set}" = set; then :
2765   withval=$with_xslt;
2766 fi
2767
2768
2769 # Check whether --with-xxf86vm was given.
2770 if test "${with_xxf86vm+set}" = set; then :
2771   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
2772 fi
2773
2774
2775 # Check whether --with-zlib was given.
2776 if test "${with_zlib+set}" = set; then :
2777   withval=$with_zlib; if test "x$withval" = "xno"; then ac_cv_header_zlib_h=no; fi
2778 fi
2779
2780
2781
2782 # Check whether --with-wine-tools was given.
2783 if test "${with_wine_tools+set}" = set; then :
2784   withval=$with_wine_tools;
2785 fi
2786
2787
2788 # Check whether --with-wine64 was given.
2789 if test "${with_wine64+set}" = set; then :
2790   withval=$with_wine64;
2791 fi
2792
2793
2794 # Make sure we can run config.sub.
2795 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2796   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2797
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2799 $as_echo_n "checking build system type... " >&6; }
2800 if test "${ac_cv_build+set}" = set; then :
2801   $as_echo_n "(cached) " >&6
2802 else
2803   ac_build_alias=$build_alias
2804 test "x$ac_build_alias" = x &&
2805   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2806 test "x$ac_build_alias" = x &&
2807   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2808 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2809   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2810
2811 fi
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2813 $as_echo "$ac_cv_build" >&6; }
2814 case $ac_cv_build in
2815 *-*-*) ;;
2816 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
2817 esac
2818 build=$ac_cv_build
2819 ac_save_IFS=$IFS; IFS='-'
2820 set x $ac_cv_build
2821 shift
2822 build_cpu=$1
2823 build_vendor=$2
2824 shift; shift
2825 # Remember, the first character of IFS is used to create $*,
2826 # except with old shells:
2827 build_os=$*
2828 IFS=$ac_save_IFS
2829 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2830
2831
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2833 $as_echo_n "checking host system type... " >&6; }
2834 if test "${ac_cv_host+set}" = set; then :
2835   $as_echo_n "(cached) " >&6
2836 else
2837   if test "x$host_alias" = x; then
2838   ac_cv_host=$ac_cv_build
2839 else
2840   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2841     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2842 fi
2843
2844 fi
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2846 $as_echo "$ac_cv_host" >&6; }
2847 case $ac_cv_host in
2848 *-*-*) ;;
2849 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
2850 esac
2851 host=$ac_cv_host
2852 ac_save_IFS=$IFS; IFS='-'
2853 set x $ac_cv_host
2854 shift
2855 host_cpu=$1
2856 host_vendor=$2
2857 shift; shift
2858 # Remember, the first character of IFS is used to create $*,
2859 # except with old shells:
2860 host_os=$*
2861 IFS=$ac_save_IFS
2862 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2863
2864
2865
2866 case "$srcdir" in
2867  .) ;;
2868  *) if test -f "$srcdir/Makefile" -o -f "$srcdir/include/config.h"; then
2869       as_fn_error $? "you are building out of the source tree, but the source tree contains object files.
2870 You need to run 'make distclean' in the source tree first." "$LINENO" 5
2871     fi ;;
2872 esac
2873
2874
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2876 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2877 set x ${MAKE-make}
2878 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2879 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
2880   $as_echo_n "(cached) " >&6
2881 else
2882   cat >conftest.make <<\_ACEOF
2883 SHELL = /bin/sh
2884 all:
2885         @echo '@@@%%%=$(MAKE)=@@@%%%'
2886 _ACEOF
2887 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2888 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2889   *@@@%%%=?*=@@@%%%*)
2890     eval ac_cv_prog_make_${ac_make}_set=yes;;
2891   *)
2892     eval ac_cv_prog_make_${ac_make}_set=no;;
2893 esac
2894 rm -f conftest.make
2895 fi
2896 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2897   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2898 $as_echo "yes" >&6; }
2899   SET_MAKE=
2900 else
2901   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2902 $as_echo "no" >&6; }
2903   SET_MAKE="MAKE=${MAKE-make}"
2904 fi
2905
2906 ac_ext=c
2907 ac_cpp='$CPP $CPPFLAGS'
2908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2911 if test -n "$ac_tool_prefix"; then
2912   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2913 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2915 $as_echo_n "checking for $ac_word... " >&6; }
2916 if test "${ac_cv_prog_CC+set}" = set; then :
2917   $as_echo_n "(cached) " >&6
2918 else
2919   if test -n "$CC"; then
2920   ac_cv_prog_CC="$CC" # Let the user override the test.
2921 else
2922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2923 for as_dir in $PATH
2924 do
2925   IFS=$as_save_IFS
2926   test -z "$as_dir" && as_dir=.
2927     for ac_exec_ext in '' $ac_executable_extensions; do
2928   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2929     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2930     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2931     break 2
2932   fi
2933 done
2934   done
2935 IFS=$as_save_IFS
2936
2937 fi
2938 fi
2939 CC=$ac_cv_prog_CC
2940 if test -n "$CC"; then
2941   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2942 $as_echo "$CC" >&6; }
2943 else
2944   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2945 $as_echo "no" >&6; }
2946 fi
2947
2948
2949 fi
2950 if test -z "$ac_cv_prog_CC"; then
2951   ac_ct_CC=$CC
2952   # Extract the first word of "gcc", so it can be a program name with args.
2953 set dummy gcc; ac_word=$2
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2955 $as_echo_n "checking for $ac_word... " >&6; }
2956 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2957   $as_echo_n "(cached) " >&6
2958 else
2959   if test -n "$ac_ct_CC"; then
2960   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2961 else
2962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2963 for as_dir in $PATH
2964 do
2965   IFS=$as_save_IFS
2966   test -z "$as_dir" && as_dir=.
2967     for ac_exec_ext in '' $ac_executable_extensions; do
2968   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2969     ac_cv_prog_ac_ct_CC="gcc"
2970     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2971     break 2
2972   fi
2973 done
2974   done
2975 IFS=$as_save_IFS
2976
2977 fi
2978 fi
2979 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2980 if test -n "$ac_ct_CC"; then
2981   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2982 $as_echo "$ac_ct_CC" >&6; }
2983 else
2984   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2985 $as_echo "no" >&6; }
2986 fi
2987
2988   if test "x$ac_ct_CC" = x; then
2989     CC=""
2990   else
2991     case $cross_compiling:$ac_tool_warned in
2992 yes:)
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2994 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2995 ac_tool_warned=yes ;;
2996 esac
2997     CC=$ac_ct_CC
2998   fi
2999 else
3000   CC="$ac_cv_prog_CC"
3001 fi
3002
3003 if test -z "$CC"; then
3004           if test -n "$ac_tool_prefix"; then
3005     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3006 set dummy ${ac_tool_prefix}cc; ac_word=$2
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3008 $as_echo_n "checking for $ac_word... " >&6; }
3009 if test "${ac_cv_prog_CC+set}" = set; then :
3010   $as_echo_n "(cached) " >&6
3011 else
3012   if test -n "$CC"; then
3013   ac_cv_prog_CC="$CC" # Let the user override the test.
3014 else
3015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3016 for as_dir in $PATH
3017 do
3018   IFS=$as_save_IFS
3019   test -z "$as_dir" && as_dir=.
3020     for ac_exec_ext in '' $ac_executable_extensions; do
3021   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3022     ac_cv_prog_CC="${ac_tool_prefix}cc"
3023     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3024     break 2
3025   fi
3026 done
3027   done
3028 IFS=$as_save_IFS
3029
3030 fi
3031 fi
3032 CC=$ac_cv_prog_CC
3033 if test -n "$CC"; then
3034   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3035 $as_echo "$CC" >&6; }
3036 else
3037   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3038 $as_echo "no" >&6; }
3039 fi
3040
3041
3042   fi
3043 fi
3044 if test -z "$CC"; then
3045   # Extract the first word of "cc", so it can be a program name with args.
3046 set dummy cc; ac_word=$2
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3048 $as_echo_n "checking for $ac_word... " >&6; }
3049 if test "${ac_cv_prog_CC+set}" = set; then :
3050   $as_echo_n "(cached) " >&6
3051 else
3052   if test -n "$CC"; then
3053   ac_cv_prog_CC="$CC" # Let the user override the test.
3054 else
3055   ac_prog_rejected=no
3056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3057 for as_dir in $PATH
3058 do
3059   IFS=$as_save_IFS
3060   test -z "$as_dir" && as_dir=.
3061     for ac_exec_ext in '' $ac_executable_extensions; do
3062   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3063     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3064        ac_prog_rejected=yes
3065        continue
3066      fi
3067     ac_cv_prog_CC="cc"
3068     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3069     break 2
3070   fi
3071 done
3072   done
3073 IFS=$as_save_IFS
3074
3075 if test $ac_prog_rejected = yes; then
3076   # We found a bogon in the path, so make sure we never use it.
3077   set dummy $ac_cv_prog_CC
3078   shift
3079   if test $# != 0; then
3080     # We chose a different compiler from the bogus one.
3081     # However, it has the same basename, so the bogon will be chosen
3082     # first if we set CC to just the basename; use the full file name.
3083     shift
3084     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3085   fi
3086 fi
3087 fi
3088 fi
3089 CC=$ac_cv_prog_CC
3090 if test -n "$CC"; then
3091   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3092 $as_echo "$CC" >&6; }
3093 else
3094   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3095 $as_echo "no" >&6; }
3096 fi
3097
3098
3099 fi
3100 if test -z "$CC"; then
3101   if test -n "$ac_tool_prefix"; then
3102   for ac_prog in cl.exe
3103   do
3104     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3105 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3107 $as_echo_n "checking for $ac_word... " >&6; }
3108 if test "${ac_cv_prog_CC+set}" = set; then :
3109   $as_echo_n "(cached) " >&6
3110 else
3111   if test -n "$CC"; then
3112   ac_cv_prog_CC="$CC" # Let the user override the test.
3113 else
3114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3115 for as_dir in $PATH
3116 do
3117   IFS=$as_save_IFS
3118   test -z "$as_dir" && as_dir=.
3119     for ac_exec_ext in '' $ac_executable_extensions; do
3120   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3121     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3122     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3123     break 2
3124   fi
3125 done
3126   done
3127 IFS=$as_save_IFS
3128
3129 fi
3130 fi
3131 CC=$ac_cv_prog_CC
3132 if test -n "$CC"; then
3133   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3134 $as_echo "$CC" >&6; }
3135 else
3136   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3137 $as_echo "no" >&6; }
3138 fi
3139
3140
3141     test -n "$CC" && break
3142   done
3143 fi
3144 if test -z "$CC"; then
3145   ac_ct_CC=$CC
3146   for ac_prog in cl.exe
3147 do
3148   # Extract the first word of "$ac_prog", so it can be a program name with args.
3149 set dummy $ac_prog; ac_word=$2
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3151 $as_echo_n "checking for $ac_word... " >&6; }
3152 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3153   $as_echo_n "(cached) " >&6
3154 else
3155   if test -n "$ac_ct_CC"; then
3156   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3157 else
3158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3159 for as_dir in $PATH
3160 do
3161   IFS=$as_save_IFS
3162   test -z "$as_dir" && as_dir=.
3163     for ac_exec_ext in '' $ac_executable_extensions; do
3164   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3165     ac_cv_prog_ac_ct_CC="$ac_prog"
3166     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3167     break 2
3168   fi
3169 done
3170   done
3171 IFS=$as_save_IFS
3172
3173 fi
3174 fi
3175 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3176 if test -n "$ac_ct_CC"; then
3177   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3178 $as_echo "$ac_ct_CC" >&6; }
3179 else
3180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3181 $as_echo "no" >&6; }
3182 fi
3183
3184
3185   test -n "$ac_ct_CC" && break
3186 done
3187
3188   if test "x$ac_ct_CC" = x; then
3189     CC=""
3190   else
3191     case $cross_compiling:$ac_tool_warned in
3192 yes:)
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3194 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3195 ac_tool_warned=yes ;;
3196 esac
3197     CC=$ac_ct_CC
3198   fi
3199 fi
3200
3201 fi
3202
3203
3204 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3205 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3206 as_fn_error $? "no acceptable C compiler found in \$PATH
3207 See \`config.log' for more details" "$LINENO" 5 ; }
3208
3209 # Provide some information about the compiler.
3210 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3211 set X $ac_compile
3212 ac_compiler=$2
3213 for ac_option in --version -v -V -qversion; do
3214   { { ac_try="$ac_compiler $ac_option >&5"
3215 case "(($ac_try" in
3216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3217   *) ac_try_echo=$ac_try;;
3218 esac
3219 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3220 $as_echo "$ac_try_echo"; } >&5
3221   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3222   ac_status=$?
3223   if test -s conftest.err; then
3224     sed '10a\
3225 ... rest of stderr output deleted ...
3226          10q' conftest.err >conftest.er1
3227     cat conftest.er1 >&5
3228   fi
3229   rm -f conftest.er1 conftest.err
3230   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3231   test $ac_status = 0; }
3232 done
3233
3234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3235 /* end confdefs.h.  */
3236
3237 int
3238 main ()
3239 {
3240
3241   ;
3242   return 0;
3243 }
3244 _ACEOF
3245 ac_clean_files_save=$ac_clean_files
3246 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3247 # Try to create an executable without -o first, disregard a.out.
3248 # It will help us diagnose broken compilers, and finding out an intuition
3249 # of exeext.
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3251 $as_echo_n "checking whether the C compiler works... " >&6; }
3252 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3253
3254 # The possible output files:
3255 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3256
3257 ac_rmfiles=
3258 for ac_file in $ac_files
3259 do
3260   case $ac_file in
3261     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3262     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3263   esac
3264 done
3265 rm -f $ac_rmfiles
3266
3267 if { { ac_try="$ac_link_default"
3268 case "(($ac_try" in
3269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3270   *) ac_try_echo=$ac_try;;
3271 esac
3272 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3273 $as_echo "$ac_try_echo"; } >&5
3274   (eval "$ac_link_default") 2>&5
3275   ac_status=$?
3276   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3277   test $ac_status = 0; }; then :
3278   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3279 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3280 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3281 # so that the user can short-circuit this test for compilers unknown to
3282 # Autoconf.
3283 for ac_file in $ac_files ''
3284 do
3285   test -f "$ac_file" || continue
3286   case $ac_file in
3287     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3288         ;;
3289     [ab].out )
3290         # We found the default executable, but exeext='' is most
3291         # certainly right.
3292         break;;
3293     *.* )
3294         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3295         then :; else
3296            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3297         fi
3298         # We set ac_cv_exeext here because the later test for it is not
3299         # safe: cross compilers may not add the suffix if given an `-o'
3300         # argument, so we may need to know it at that point already.
3301         # Even if this section looks crufty: it has the advantage of
3302         # actually working.
3303         break;;
3304     * )
3305         break;;
3306   esac
3307 done
3308 test "$ac_cv_exeext" = no && ac_cv_exeext=
3309
3310 else
3311   ac_file=''
3312 fi
3313 if test -z "$ac_file"; then :
3314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3315 $as_echo "no" >&6; }
3316 $as_echo "$as_me: failed program was:" >&5
3317 sed 's/^/| /' conftest.$ac_ext >&5
3318
3319 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3320 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3321 as_fn_error 77 "C compiler cannot create executables
3322 See \`config.log' for more details" "$LINENO" 5 ; }
3323 else
3324   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3325 $as_echo "yes" >&6; }
3326 fi
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3328 $as_echo_n "checking for C compiler default output file name... " >&6; }
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3330 $as_echo "$ac_file" >&6; }
3331 ac_exeext=$ac_cv_exeext
3332
3333 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3334 ac_clean_files=$ac_clean_files_save
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3336 $as_echo_n "checking for suffix of executables... " >&6; }
3337 if { { ac_try="$ac_link"
3338 case "(($ac_try" in
3339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3340   *) ac_try_echo=$ac_try;;
3341 esac
3342 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3343 $as_echo "$ac_try_echo"; } >&5
3344   (eval "$ac_link") 2>&5
3345   ac_status=$?
3346   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3347   test $ac_status = 0; }; then :
3348   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3349 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3350 # work properly (i.e., refer to `conftest.exe'), while it won't with
3351 # `rm'.
3352 for ac_file in conftest.exe conftest conftest.*; do
3353   test -f "$ac_file" || continue
3354   case $ac_file in
3355     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3356     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3357           break;;
3358     * ) break;;
3359   esac
3360 done
3361 else
3362   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3363 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3364 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3365 See \`config.log' for more details" "$LINENO" 5 ; }
3366 fi
3367 rm -f conftest conftest$ac_cv_exeext
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3369 $as_echo "$ac_cv_exeext" >&6; }
3370
3371 rm -f conftest.$ac_ext
3372 EXEEXT=$ac_cv_exeext
3373 ac_exeext=$EXEEXT
3374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3375 /* end confdefs.h.  */
3376 #include <stdio.h>
3377 int
3378 main ()
3379 {
3380 FILE *f = fopen ("conftest.out", "w");
3381  return ferror (f) || fclose (f) != 0;
3382
3383   ;
3384   return 0;
3385 }
3386 _ACEOF
3387 ac_clean_files="$ac_clean_files conftest.out"
3388 # Check that the compiler produces executables we can run.  If not, either
3389 # the compiler is broken, or we cross compile.
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3391 $as_echo_n "checking whether we are cross compiling... " >&6; }
3392 if test "$cross_compiling" != yes; then
3393   { { ac_try="$ac_link"
3394 case "(($ac_try" in
3395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3396   *) ac_try_echo=$ac_try;;
3397 esac
3398 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3399 $as_echo "$ac_try_echo"; } >&5
3400   (eval "$ac_link") 2>&5
3401   ac_status=$?
3402   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3403   test $ac_status = 0; }
3404   if { ac_try='./conftest$ac_cv_exeext'
3405   { { case "(($ac_try" in
3406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3407   *) ac_try_echo=$ac_try;;
3408 esac
3409 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3410 $as_echo "$ac_try_echo"; } >&5
3411   (eval "$ac_try") 2>&5
3412   ac_status=$?
3413   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3414   test $ac_status = 0; }; }; then
3415     cross_compiling=no
3416   else
3417     if test "$cross_compiling" = maybe; then
3418         cross_compiling=yes
3419     else
3420         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3421 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3422 as_fn_error $? "cannot run C compiled programs.
3423 If you meant to cross compile, use \`--host'.
3424 See \`config.log' for more details" "$LINENO" 5 ; }
3425     fi
3426   fi
3427 fi
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3429 $as_echo "$cross_compiling" >&6; }
3430
3431 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3432 ac_clean_files=$ac_clean_files_save
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3434 $as_echo_n "checking for suffix of object files... " >&6; }
3435 if test "${ac_cv_objext+set}" = set; then :
3436   $as_echo_n "(cached) " >&6
3437 else
3438   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3439 /* end confdefs.h.  */
3440
3441 int
3442 main ()
3443 {
3444
3445   ;
3446   return 0;
3447 }
3448 _ACEOF
3449 rm -f conftest.o conftest.obj
3450 if { { ac_try="$ac_compile"
3451 case "(($ac_try" in
3452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3453   *) ac_try_echo=$ac_try;;
3454 esac
3455 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3456 $as_echo "$ac_try_echo"; } >&5
3457   (eval "$ac_compile") 2>&5
3458   ac_status=$?
3459   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3460   test $ac_status = 0; }; then :
3461   for ac_file in conftest.o conftest.obj conftest.*; do
3462   test -f "$ac_file" || continue;
3463   case $ac_file in
3464     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3465     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3466        break;;
3467   esac
3468 done
3469 else
3470   $as_echo "$as_me: failed program was:" >&5
3471 sed 's/^/| /' conftest.$ac_ext >&5
3472
3473 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3474 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3475 as_fn_error $? "cannot compute suffix of object files: cannot compile
3476 See \`config.log' for more details" "$LINENO" 5 ; }
3477 fi
3478 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3479 fi
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3481 $as_echo "$ac_cv_objext" >&6; }
3482 OBJEXT=$ac_cv_objext
3483 ac_objext=$OBJEXT
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3485 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3486 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3487   $as_echo_n "(cached) " >&6
3488 else
3489   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3490 /* end confdefs.h.  */
3491
3492 int
3493 main ()
3494 {
3495 #ifndef __GNUC__
3496        choke me
3497 #endif
3498
3499   ;
3500   return 0;
3501 }
3502 _ACEOF
3503 if ac_fn_c_try_compile "$LINENO"; then :
3504   ac_compiler_gnu=yes
3505 else
3506   ac_compiler_gnu=no
3507 fi
3508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3509 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3510
3511 fi
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3513 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3514 if test $ac_compiler_gnu = yes; then
3515   GCC=yes
3516 else
3517   GCC=
3518 fi
3519 ac_test_CFLAGS=${CFLAGS+set}
3520 ac_save_CFLAGS=$CFLAGS
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3522 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3523 if test "${ac_cv_prog_cc_g+set}" = set; then :
3524   $as_echo_n "(cached) " >&6
3525 else
3526   ac_save_c_werror_flag=$ac_c_werror_flag
3527    ac_c_werror_flag=yes
3528    ac_cv_prog_cc_g=no
3529    CFLAGS="-g"
3530    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3531 /* end confdefs.h.  */
3532
3533 int
3534 main ()
3535 {
3536
3537   ;
3538   return 0;
3539 }
3540 _ACEOF
3541 if ac_fn_c_try_compile "$LINENO"; then :
3542   ac_cv_prog_cc_g=yes
3543 else
3544   CFLAGS=""
3545       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3546 /* end confdefs.h.  */
3547
3548 int
3549 main ()
3550 {
3551
3552   ;
3553   return 0;
3554 }
3555 _ACEOF
3556 if ac_fn_c_try_compile "$LINENO"; then :
3557
3558 else
3559   ac_c_werror_flag=$ac_save_c_werror_flag
3560          CFLAGS="-g"
3561          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3562 /* end confdefs.h.  */
3563
3564 int
3565 main ()
3566 {
3567
3568   ;
3569   return 0;
3570 }
3571 _ACEOF
3572 if ac_fn_c_try_compile "$LINENO"; then :
3573   ac_cv_prog_cc_g=yes
3574 fi
3575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3576 fi
3577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3578 fi
3579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3580    ac_c_werror_flag=$ac_save_c_werror_flag
3581 fi
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3583 $as_echo "$ac_cv_prog_cc_g" >&6; }
3584 if test "$ac_test_CFLAGS" = set; then
3585   CFLAGS=$ac_save_CFLAGS
3586 elif test $ac_cv_prog_cc_g = yes; then
3587   if test "$GCC" = yes; then
3588     CFLAGS="-g -O2"
3589   else
3590     CFLAGS="-g"
3591   fi
3592 else
3593   if test "$GCC" = yes; then
3594     CFLAGS="-O2"
3595   else
3596     CFLAGS=
3597   fi
3598 fi
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3600 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3601 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3602   $as_echo_n "(cached) " >&6
3603 else
3604   ac_cv_prog_cc_c89=no
3605 ac_save_CC=$CC
3606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3607 /* end confdefs.h.  */
3608 #include <stdarg.h>
3609 #include <stdio.h>
3610 #include <sys/types.h>
3611 #include <sys/stat.h>
3612 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3613 struct buf { int x; };
3614 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3615 static char *e (p, i)
3616      char **p;
3617      int i;
3618 {
3619   return p[i];
3620 }
3621 static char *f (char * (*g) (char **, int), char **p, ...)
3622 {
3623   char *s;
3624   va_list v;
3625   va_start (v,p);
3626   s = g (p, va_arg (v,int));
3627   va_end (v);
3628   return s;
3629 }
3630
3631 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3632    function prototypes and stuff, but not '\xHH' hex character constants.
3633    These don't provoke an error unfortunately, instead are silently treated
3634    as 'x'.  The following induces an error, until -std is added to get
3635    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3636    array size at least.  It's necessary to write '\x00'==0 to get something
3637    that's true only with -std.  */
3638 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3639
3640 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3641    inside strings and character constants.  */
3642 #define FOO(x) 'x'
3643 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3644
3645 int test (int i, double x);
3646 struct s1 {int (*f) (int a);};
3647 struct s2 {int (*f) (double a);};
3648 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3649 int argc;
3650 char **argv;
3651 int
3652 main ()
3653 {
3654 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3655   ;
3656   return 0;
3657 }
3658 _ACEOF
3659 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3660         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3661 do
3662   CC="$ac_save_CC $ac_arg"
3663   if ac_fn_c_try_compile "$LINENO"; then :
3664   ac_cv_prog_cc_c89=$ac_arg
3665 fi
3666 rm -f core conftest.err conftest.$ac_objext
3667   test "x$ac_cv_prog_cc_c89" != "xno" && break
3668 done
3669 rm -f conftest.$ac_ext
3670 CC=$ac_save_CC
3671
3672 fi
3673 # AC_CACHE_VAL
3674 case "x$ac_cv_prog_cc_c89" in
3675   x)
3676     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3677 $as_echo "none needed" >&6; } ;;
3678   xno)
3679     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3680 $as_echo "unsupported" >&6; } ;;
3681   *)
3682     CC="$CC $ac_cv_prog_cc_c89"
3683     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3684 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3685 esac
3686 if test "x$ac_cv_prog_cc_c89" != xno; then :
3687
3688 fi
3689
3690 ac_ext=c
3691 ac_cpp='$CPP $CPPFLAGS'
3692 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3693 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3694 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3695
3696 ac_ext=cpp
3697 ac_cpp='$CXXCPP $CPPFLAGS'
3698 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3699 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3700 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3701 if test -z "$CXX"; then
3702   if test -n "$CCC"; then
3703     CXX=$CCC
3704   else
3705     if test -n "$ac_tool_prefix"; then
3706   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3707   do
3708     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3709 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3711 $as_echo_n "checking for $ac_word... " >&6; }
3712 if test "${ac_cv_prog_CXX+set}" = set; then :
3713   $as_echo_n "(cached) " >&6
3714 else
3715   if test -n "$CXX"; then
3716   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3717 else
3718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3719 for as_dir in $PATH
3720 do
3721   IFS=$as_save_IFS
3722   test -z "$as_dir" && as_dir=.
3723     for ac_exec_ext in '' $ac_executable_extensions; do
3724   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3725     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3726     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3727     break 2
3728   fi
3729 done
3730   done
3731 IFS=$as_save_IFS
3732
3733 fi
3734 fi
3735 CXX=$ac_cv_prog_CXX
3736 if test -n "$CXX"; then
3737   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3738 $as_echo "$CXX" >&6; }
3739 else
3740   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3741 $as_echo "no" >&6; }
3742 fi
3743
3744
3745     test -n "$CXX" && break
3746   done
3747 fi
3748 if test -z "$CXX"; then
3749   ac_ct_CXX=$CXX
3750   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3751 do
3752   # Extract the first word of "$ac_prog", so it can be a program name with args.
3753 set dummy $ac_prog; ac_word=$2
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3755 $as_echo_n "checking for $ac_word... " >&6; }
3756 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3757   $as_echo_n "(cached) " >&6
3758 else
3759   if test -n "$ac_ct_CXX"; then
3760   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3761 else
3762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3763 for as_dir in $PATH
3764 do
3765   IFS=$as_save_IFS
3766   test -z "$as_dir" && as_dir=.
3767     for ac_exec_ext in '' $ac_executable_extensions; do
3768   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3769     ac_cv_prog_ac_ct_CXX="$ac_prog"
3770     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3771     break 2
3772   fi
3773 done
3774   done
3775 IFS=$as_save_IFS
3776
3777 fi
3778 fi
3779 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3780 if test -n "$ac_ct_CXX"; then
3781   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3782 $as_echo "$ac_ct_CXX" >&6; }
3783 else
3784   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3785 $as_echo "no" >&6; }
3786 fi
3787
3788
3789   test -n "$ac_ct_CXX" && break
3790 done
3791
3792   if test "x$ac_ct_CXX" = x; then
3793     CXX="g++"
3794   else
3795     case $cross_compiling:$ac_tool_warned in
3796 yes:)
3797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3798 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3799 ac_tool_warned=yes ;;
3800 esac
3801     CXX=$ac_ct_CXX
3802   fi
3803 fi
3804
3805   fi
3806 fi
3807 # Provide some information about the compiler.
3808 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3809 set X $ac_compile
3810 ac_compiler=$2
3811 for ac_option in --version -v -V -qversion; do
3812   { { ac_try="$ac_compiler $ac_option >&5"
3813 case "(($ac_try" in
3814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3815   *) ac_try_echo=$ac_try;;
3816 esac
3817 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3818 $as_echo "$ac_try_echo"; } >&5
3819   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3820   ac_status=$?
3821   if test -s conftest.err; then
3822     sed '10a\
3823 ... rest of stderr output deleted ...
3824          10q' conftest.err >conftest.er1
3825     cat conftest.er1 >&5
3826   fi
3827   rm -f conftest.er1 conftest.err
3828   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3829   test $ac_status = 0; }
3830 done
3831
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3833 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3834 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3835   $as_echo_n "(cached) " >&6
3836 else
3837   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3838 /* end confdefs.h.  */
3839
3840 int
3841 main ()
3842 {
3843 #ifndef __GNUC__
3844        choke me
3845 #endif
3846
3847   ;
3848   return 0;
3849 }
3850 _ACEOF
3851 if ac_fn_cxx_try_compile "$LINENO"; then :
3852   ac_compiler_gnu=yes
3853 else
3854   ac_compiler_gnu=no
3855 fi
3856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3857 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3858
3859 fi
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3861 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3862 if test $ac_compiler_gnu = yes; then
3863   GXX=yes
3864 else
3865   GXX=
3866 fi
3867 ac_test_CXXFLAGS=${CXXFLAGS+set}
3868 ac_save_CXXFLAGS=$CXXFLAGS
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3870 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3871 if test "${ac_cv_prog_cxx_g+set}" = set; then :
3872   $as_echo_n "(cached) " >&6
3873 else
3874   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3875    ac_cxx_werror_flag=yes
3876    ac_cv_prog_cxx_g=no
3877    CXXFLAGS="-g"
3878    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3879 /* end confdefs.h.  */
3880
3881 int
3882 main ()
3883 {
3884
3885   ;
3886   return 0;
3887 }
3888 _ACEOF
3889 if ac_fn_cxx_try_compile "$LINENO"; then :
3890   ac_cv_prog_cxx_g=yes
3891 else
3892   CXXFLAGS=""
3893       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3894 /* end confdefs.h.  */
3895
3896 int
3897 main ()
3898 {
3899
3900   ;
3901   return 0;
3902 }
3903 _ACEOF
3904 if ac_fn_cxx_try_compile "$LINENO"; then :
3905
3906 else
3907   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3908          CXXFLAGS="-g"
3909          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3910 /* end confdefs.h.  */
3911
3912 int
3913 main ()
3914 {
3915
3916   ;
3917   return 0;
3918 }
3919 _ACEOF
3920 if ac_fn_cxx_try_compile "$LINENO"; then :
3921   ac_cv_prog_cxx_g=yes
3922 fi
3923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3924 fi
3925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3926 fi
3927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3928    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3929 fi
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3931 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3932 if test "$ac_test_CXXFLAGS" = set; then
3933   CXXFLAGS=$ac_save_CXXFLAGS
3934 elif test $ac_cv_prog_cxx_g = yes; then
3935   if test "$GXX" = yes; then
3936     CXXFLAGS="-g -O2"
3937   else
3938     CXXFLAGS="-g"
3939   fi
3940 else
3941   if test "$GXX" = yes; then
3942     CXXFLAGS="-O2"
3943   else
3944     CXXFLAGS=
3945   fi
3946 fi
3947 ac_ext=c
3948 ac_cpp='$CPP $CPPFLAGS'
3949 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3950 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3951 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3952
3953 if test -n "$ac_tool_prefix"; then
3954   # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
3955 set dummy ${ac_tool_prefix}cpp; ac_word=$2
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3957 $as_echo_n "checking for $ac_word... " >&6; }
3958 if test "${ac_cv_prog_CPPBIN+set}" = set; then :
3959   $as_echo_n "(cached) " >&6
3960 else
3961   if test -n "$CPPBIN"; then
3962   ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test.
3963 else
3964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3965 for as_dir in $PATH
3966 do
3967   IFS=$as_save_IFS
3968   test -z "$as_dir" && as_dir=.
3969     for ac_exec_ext in '' $ac_executable_extensions; do
3970   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3971     ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp"
3972     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3973     break 2
3974   fi
3975 done
3976   done
3977 IFS=$as_save_IFS
3978
3979 fi
3980 fi
3981 CPPBIN=$ac_cv_prog_CPPBIN
3982 if test -n "$CPPBIN"; then
3983   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPPBIN" >&5
3984 $as_echo "$CPPBIN" >&6; }
3985 else
3986   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3987 $as_echo "no" >&6; }
3988 fi
3989
3990
3991 fi
3992 if test -z "$ac_cv_prog_CPPBIN"; then
3993   ac_ct_CPPBIN=$CPPBIN
3994   # Extract the first word of "cpp", so it can be a program name with args.
3995 set dummy cpp; ac_word=$2
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3997 $as_echo_n "checking for $ac_word... " >&6; }
3998 if test "${ac_cv_prog_ac_ct_CPPBIN+set}" = set; then :
3999   $as_echo_n "(cached) " >&6
4000 else
4001   if test -n "$ac_ct_CPPBIN"; then
4002   ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test.
4003 else
4004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4005 for as_dir in $PATH
4006 do
4007   IFS=$as_save_IFS
4008   test -z "$as_dir" && as_dir=.
4009     for ac_exec_ext in '' $ac_executable_extensions; do
4010   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4011     ac_cv_prog_ac_ct_CPPBIN="cpp"
4012     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4013     break 2
4014   fi
4015 done
4016   done
4017 IFS=$as_save_IFS
4018
4019 fi
4020 fi
4021 ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN
4022 if test -n "$ac_ct_CPPBIN"; then
4023   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CPPBIN" >&5
4024 $as_echo "$ac_ct_CPPBIN" >&6; }
4025 else
4026   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4027 $as_echo "no" >&6; }
4028 fi
4029
4030   if test "x$ac_ct_CPPBIN" = x; then
4031     CPPBIN="cpp"
4032   else
4033     case $cross_compiling:$ac_tool_warned in
4034 yes:)
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4036 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4037 ac_tool_warned=yes ;;
4038 esac
4039     CPPBIN=$ac_ct_CPPBIN
4040   fi
4041 else
4042   CPPBIN="$ac_cv_prog_CPPBIN"
4043 fi
4044
4045
4046 cat >>confdefs.h <<_ACEOF
4047 #define EXEEXT "$ac_exeext"
4048 _ACEOF
4049
4050
4051 case $host in
4052   *-darwin*)
4053     if test "x$enable_win64" = "xyes"
4054     then
4055       CC="$CC -m64"
4056       CXX="$CXX -m64"
4057       LD="${LD:-ld} -arch x86_64"
4058       AS="${AS:-as} -arch x86_64"
4059       host_cpu="x86_64"
4060       notice_platform="64-bit "
4061       TARGETFLAGS="-m64"
4062
4063     else
4064       CC="$CC -m32"
4065       CXX="$CXX -m32"
4066       LD="${LD:-ld} -arch i386"
4067       AS="${AS:-as} -arch i386"
4068       host_cpu="i386"
4069       notice_platform="32-bit "
4070       TARGETFLAGS="-m32"
4071
4072       enable_win16=${enable_win16:-yes}
4073     fi
4074     ;;
4075   x86_64*)
4076     if test "x$enable_win64" != "xyes" -a "$cross_compiling" != "yes"
4077     then
4078       CC="$CC -m32"
4079       CXX="$CXX -m32"
4080       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC works" >&5
4081 $as_echo_n "checking whether $CC works... " >&6; }
4082
4083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4084 /* end confdefs.h.  */
4085
4086 int
4087 main ()
4088 {
4089
4090   ;
4091   return 0;
4092 }
4093 _ACEOF
4094 if ac_fn_c_try_link "$LINENO"; then :
4095   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4096 $as_echo "yes" >&6; }
4097 else
4098   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4099 $as_echo "no" >&6; }
4100                       as_fn_error $? "Cannot build a 32-bit program, you need to install 32-bit development libraries." "$LINENO" 5
4101 fi
4102 rm -f core conftest.err conftest.$ac_objext \
4103     conftest$ac_exeext conftest.$ac_ext
4104       LD="${LD:-ld} -m elf_i386"
4105       AS="${AS:-as} --32"
4106       host_cpu="i386"
4107       notice_platform="32-bit "
4108       TARGETFLAGS="-m32"
4109
4110       enable_win16=${enable_win16:-yes}
4111     else
4112       if test "x${GCC}" = "xyes"
4113       then
4114         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports __builtin_ms_va_list" >&5
4115 $as_echo_n "checking whether $CC supports __builtin_ms_va_list... " >&6; }
4116         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4117 /* end confdefs.h.  */
4118 #include <stdarg.h>
4119 int
4120 main ()
4121 {
4122 void func(__builtin_ms_va_list *args);
4123   ;
4124   return 0;
4125 }
4126 _ACEOF
4127 if ac_fn_c_try_compile "$LINENO"; then :
4128   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4129 $as_echo "yes" >&6; }
4130 else
4131   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4132 $as_echo "no" >&6; }
4133                            as_fn_error $? "You need gcc >= 4.4 to build Wine as 64-bit." "$LINENO" 5
4134 fi
4135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4136       fi
4137       TARGETFLAGS="-m64"
4138
4139     fi
4140     ;;
4141   *-mingw32*|*-cygwin*)
4142     enable_win16=${enable_win16:-no}
4143     CFLAGS="$CFLAGS -D_WIN32"
4144     ;;
4145   i[3456789]86*)
4146     enable_win16=${enable_win16:-yes}
4147     ;;
4148 esac
4149
4150 enable_win16=${enable_win16:-no}
4151
4152 enable_winetest=${enable_winetest:-$enable_tests}
4153
4154 if test -n "$with_wine64"
4155 then
4156     if test "x$enable_win64" = "xyes"
4157     then
4158         as_fn_error $? "--enable-win64 and --with-wine64 are mutually exclusive.
4159 --enable-win64 should be used in the 64-bit build tree, --with-wine64 in the 32-bit Wow64 build tree." "$LINENO" 5
4160     fi
4161     WOW64_DISABLE=\#
4162
4163     enable_fonts=${enable_fonts:-no}
4164     enable_server=${enable_server:-no}
4165     enable_tools=${enable_tools:-no}
4166 elif test "x$enable_win64" = "xyes"
4167 then
4168     test "x$libdir" != "x\${exec_prefix}/lib" || libdir="\${exec_prefix}/lib64"
4169 fi
4170
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the directory containing the Wine tools" >&5
4172 $as_echo_n "checking for the directory containing the Wine tools... " >&6; }
4173 if test "${wine_cv_toolsdir+set}" = set; then :
4174   $as_echo_n "(cached) " >&6
4175 else
4176   wine_cv_toolsdir="$with_wine_tools"
4177    if test -z "$with_wine_tools"; then
4178      if test "$cross_compiling" = "yes"; then
4179        as_fn_error $? "you must use the --with-wine-tools option when cross-compiling." "$LINENO" 5
4180      elif test -n "$with_wine64"; then
4181        wine_cv_toolsdir="$with_wine64"
4182      fi
4183    fi
4184    if test -z "$wine_cv_toolsdir"; then
4185      wine_cv_toolsdir="\$(top_builddir)"
4186    elif test -d "$wine_cv_toolsdir/tools/winebuild"; then
4187      case "$wine_cv_toolsdir" in
4188        /*) ;;
4189        *)  wine_cv_toolsdir="\$(top_builddir)/$wine_cv_toolsdir" ;;
4190      esac
4191    else
4192      as_fn_error $? "could not find Wine tools in $wine_cv_toolsdir" "$LINENO" 5
4193    fi
4194 fi
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_toolsdir" >&5
4196 $as_echo "$wine_cv_toolsdir" >&6; }
4197 TOOLSDIR=$wine_cv_toolsdir
4198
4199 if test -n "$host_alias" -a "$host_alias" != "$build_alias"
4200 then
4201     TARGETFLAGS="-b $host_alias $TARGETFLAGS"
4202
4203 fi
4204
4205 for ac_prog in flex
4206 do
4207   # Extract the first word of "$ac_prog", so it can be a program name with args.
4208 set dummy $ac_prog; ac_word=$2
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4210 $as_echo_n "checking for $ac_word... " >&6; }
4211 if test "${ac_cv_prog_FLEX+set}" = set; then :
4212   $as_echo_n "(cached) " >&6
4213 else
4214   if test -n "$FLEX"; then
4215   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
4216 else
4217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4218 for as_dir in $PATH
4219 do
4220   IFS=$as_save_IFS
4221   test -z "$as_dir" && as_dir=.
4222     for ac_exec_ext in '' $ac_executable_extensions; do
4223   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4224     ac_cv_prog_FLEX="$ac_prog"
4225     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4226     break 2
4227   fi
4228 done
4229   done
4230 IFS=$as_save_IFS
4231
4232 fi
4233 fi
4234 FLEX=$ac_cv_prog_FLEX
4235 if test -n "$FLEX"; then
4236   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
4237 $as_echo "$FLEX" >&6; }
4238 else
4239   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4240 $as_echo "no" >&6; }
4241 fi
4242
4243
4244   test -n "$FLEX" && break
4245 done
4246 test -n "$FLEX" || FLEX="none"
4247
4248 if test "$FLEX" = "none"
4249 then
4250   as_fn_error $? "no suitable flex found. Please install the 'flex' package." "$LINENO" 5
4251 fi
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether flex is recent enough" >&5
4253 $as_echo_n "checking whether flex is recent enough... " >&6; }
4254 cat >conftest.l <<EOF
4255 %top{
4256 #include "prediluvian.h"
4257 }
4258 %%
4259 EOF
4260 if $FLEX -t conftest.l >/dev/null 2>&5
4261 then
4262   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4263 $as_echo "yes" >&6; }
4264 else
4265   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4266 $as_echo "no" >&6; }
4267   as_fn_error $? "Your flex version is too old. Please install flex version 2.5.33 or newer." "$LINENO" 5
4268 fi
4269
4270 for ac_prog in bison
4271 do
4272   # Extract the first word of "$ac_prog", so it can be a program name with args.
4273 set dummy $ac_prog; ac_word=$2
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4275 $as_echo_n "checking for $ac_word... " >&6; }
4276 if test "${ac_cv_prog_BISON+set}" = set; then :
4277   $as_echo_n "(cached) " >&6
4278 else
4279   if test -n "$BISON"; then
4280   ac_cv_prog_BISON="$BISON" # Let the user override the test.
4281 else
4282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4283 for as_dir in $PATH
4284 do
4285   IFS=$as_save_IFS
4286   test -z "$as_dir" && as_dir=.
4287     for ac_exec_ext in '' $ac_executable_extensions; do
4288   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4289     ac_cv_prog_BISON="$ac_prog"
4290     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4291     break 2
4292   fi
4293 done
4294   done
4295 IFS=$as_save_IFS
4296
4297 fi
4298 fi
4299 BISON=$ac_cv_prog_BISON
4300 if test -n "$BISON"; then
4301   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
4302 $as_echo "$BISON" >&6; }
4303 else
4304   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4305 $as_echo "no" >&6; }
4306 fi
4307
4308
4309   test -n "$BISON" && break
4310 done
4311 test -n "$BISON" || BISON="none"
4312
4313 if test "$BISON" = "none"
4314 then
4315   as_fn_error $? "no suitable bison found. Please install the 'bison' package." "$LINENO" 5
4316 fi
4317
4318 if test -n "$ac_tool_prefix"; then
4319   for ac_prog in ar gar
4320   do
4321     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4322 set dummy $ac_tool_prefix$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 test "${ac_cv_prog_AR+set}" = set; then :
4326   $as_echo_n "(cached) " >&6
4327 else
4328   if test -n "$AR"; then
4329   ac_cv_prog_AR="$AR" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4338     ac_cv_prog_AR="$ac_tool_prefix$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 AR=$ac_cv_prog_AR
4349 if test -n "$AR"; then
4350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4351 $as_echo "$AR" >&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 "$AR" && break
4359   done
4360 fi
4361 if test -z "$AR"; then
4362   ac_ct_AR=$AR
4363   for ac_prog in ar gar
4364 do
4365   # Extract the first word of "$ac_prog", so it can be a program name with args.
4366 set dummy $ac_prog; ac_word=$2
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4368 $as_echo_n "checking for $ac_word... " >&6; }
4369 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4370   $as_echo_n "(cached) " >&6
4371 else
4372   if test -n "$ac_ct_AR"; then
4373   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4374 else
4375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4376 for as_dir in $PATH
4377 do
4378   IFS=$as_save_IFS
4379   test -z "$as_dir" && as_dir=.
4380     for ac_exec_ext in '' $ac_executable_extensions; do
4381   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4382     ac_cv_prog_ac_ct_AR="$ac_prog"
4383     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4384     break 2
4385   fi
4386 done
4387   done
4388 IFS=$as_save_IFS
4389
4390 fi
4391 fi
4392 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4393 if test -n "$ac_ct_AR"; then
4394   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4395 $as_echo "$ac_ct_AR" >&6; }
4396 else
4397   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4398 $as_echo "no" >&6; }
4399 fi
4400
4401
4402   test -n "$ac_ct_AR" && break
4403 done
4404
4405   if test "x$ac_ct_AR" = x; then
4406     AR="ar"
4407   else
4408     case $cross_compiling:$ac_tool_warned in
4409 yes:)
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4411 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4412 ac_tool_warned=yes ;;
4413 esac
4414     AR=$ac_ct_AR
4415   fi
4416 fi
4417
4418 ARFLAGS=rc
4419
4420 if test -n "$ac_tool_prefix"; then
4421   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4422 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4424 $as_echo_n "checking for $ac_word... " >&6; }
4425 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4426   $as_echo_n "(cached) " >&6
4427 else
4428   if test -n "$RANLIB"; then
4429   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4430 else
4431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4432 for as_dir in $PATH
4433 do
4434   IFS=$as_save_IFS
4435   test -z "$as_dir" && as_dir=.
4436     for ac_exec_ext in '' $ac_executable_extensions; do
4437   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4438     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4439     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4440     break 2
4441   fi
4442 done
4443   done
4444 IFS=$as_save_IFS
4445
4446 fi
4447 fi
4448 RANLIB=$ac_cv_prog_RANLIB
4449 if test -n "$RANLIB"; then
4450   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4451 $as_echo "$RANLIB" >&6; }
4452 else
4453   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4454 $as_echo "no" >&6; }
4455 fi
4456
4457
4458 fi
4459 if test -z "$ac_cv_prog_RANLIB"; then
4460   ac_ct_RANLIB=$RANLIB
4461   # Extract the first word of "ranlib", so it can be a program name with args.
4462 set dummy ranlib; ac_word=$2
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4464 $as_echo_n "checking for $ac_word... " >&6; }
4465 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4466   $as_echo_n "(cached) " >&6
4467 else
4468   if test -n "$ac_ct_RANLIB"; then
4469   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4470 else
4471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4472 for as_dir in $PATH
4473 do
4474   IFS=$as_save_IFS
4475   test -z "$as_dir" && as_dir=.
4476     for ac_exec_ext in '' $ac_executable_extensions; do
4477   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4478     ac_cv_prog_ac_ct_RANLIB="ranlib"
4479     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4480     break 2
4481   fi
4482 done
4483   done
4484 IFS=$as_save_IFS
4485
4486 fi
4487 fi
4488 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4489 if test -n "$ac_ct_RANLIB"; then
4490   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4491 $as_echo "$ac_ct_RANLIB" >&6; }
4492 else
4493   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4494 $as_echo "no" >&6; }
4495 fi
4496
4497   if test "x$ac_ct_RANLIB" = x; then
4498     RANLIB=":"
4499   else
4500     case $cross_compiling:$ac_tool_warned in
4501 yes:)
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4503 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4504 ac_tool_warned=yes ;;
4505 esac
4506     RANLIB=$ac_ct_RANLIB
4507   fi
4508 else
4509   RANLIB="$ac_cv_prog_RANLIB"
4510 fi
4511
4512 if test -n "$ac_tool_prefix"; then
4513   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4514 set dummy ${ac_tool_prefix}strip; ac_word=$2
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4516 $as_echo_n "checking for $ac_word... " >&6; }
4517 if test "${ac_cv_prog_STRIP+set}" = set; then :
4518   $as_echo_n "(cached) " >&6
4519 else
4520   if test -n "$STRIP"; then
4521   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4522 else
4523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4524 for as_dir in $PATH
4525 do
4526   IFS=$as_save_IFS
4527   test -z "$as_dir" && as_dir=.
4528     for ac_exec_ext in '' $ac_executable_extensions; do
4529   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4530     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4531     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4532     break 2
4533   fi
4534 done
4535   done
4536 IFS=$as_save_IFS
4537
4538 fi
4539 fi
4540 STRIP=$ac_cv_prog_STRIP
4541 if test -n "$STRIP"; then
4542   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4543 $as_echo "$STRIP" >&6; }
4544 else
4545   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4546 $as_echo "no" >&6; }
4547 fi
4548
4549
4550 fi
4551 if test -z "$ac_cv_prog_STRIP"; then
4552   ac_ct_STRIP=$STRIP
4553   # Extract the first word of "strip", so it can be a program name with args.
4554 set dummy strip; ac_word=$2
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4556 $as_echo_n "checking for $ac_word... " >&6; }
4557 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4558   $as_echo_n "(cached) " >&6
4559 else
4560   if test -n "$ac_ct_STRIP"; then
4561   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4562 else
4563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4564 for as_dir in $PATH
4565 do
4566   IFS=$as_save_IFS
4567   test -z "$as_dir" && as_dir=.
4568     for ac_exec_ext in '' $ac_executable_extensions; do
4569   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4570     ac_cv_prog_ac_ct_STRIP="strip"
4571     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4572     break 2
4573   fi
4574 done
4575   done
4576 IFS=$as_save_IFS
4577
4578 fi
4579 fi
4580 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4581 if test -n "$ac_ct_STRIP"; then
4582   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4583 $as_echo "$ac_ct_STRIP" >&6; }
4584 else
4585   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4586 $as_echo "no" >&6; }
4587 fi
4588
4589   if test "x$ac_ct_STRIP" = x; then
4590     STRIP="strip"
4591   else
4592     case $cross_compiling:$ac_tool_warned in
4593 yes:)
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4595 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4596 ac_tool_warned=yes ;;
4597 esac
4598     STRIP=$ac_ct_STRIP
4599   fi
4600 else
4601   STRIP="$ac_cv_prog_STRIP"
4602 fi
4603
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4605 $as_echo_n "checking whether ln -s works... " >&6; }
4606 LN_S=$as_ln_s
4607 if test "$LN_S" = "ln -s"; then
4608   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4609 $as_echo "yes" >&6; }
4610 else
4611   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4612 $as_echo "no, using $LN_S" >&6; }
4613 fi
4614
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4616 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4617 if test "${ac_cv_path_GREP+set}" = set; then :
4618   $as_echo_n "(cached) " >&6
4619 else
4620   if test -z "$GREP"; then
4621   ac_path_GREP_found=false
4622   # Loop through the user's path and test for each of PROGNAME-LIST
4623   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4624 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4625 do
4626   IFS=$as_save_IFS
4627   test -z "$as_dir" && as_dir=.
4628     for ac_prog in grep ggrep; do
4629     for ac_exec_ext in '' $ac_executable_extensions; do
4630       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4631       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4632 # Check for GNU ac_path_GREP and select it if it is found.
4633   # Check for GNU $ac_path_GREP
4634 case `"$ac_path_GREP" --version 2>&1` in
4635 *GNU*)
4636   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4637 *)
4638   ac_count=0
4639   $as_echo_n 0123456789 >"conftest.in"
4640   while :
4641   do
4642     cat "conftest.in" "conftest.in" >"conftest.tmp"
4643     mv "conftest.tmp" "conftest.in"
4644     cp "conftest.in" "conftest.nl"
4645     $as_echo 'GREP' >> "conftest.nl"
4646     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4647     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4648     as_fn_arith $ac_count + 1 && ac_count=$as_val
4649     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4650       # Best one so far, save it but keep looking for a better one
4651       ac_cv_path_GREP="$ac_path_GREP"
4652       ac_path_GREP_max=$ac_count
4653     fi
4654     # 10*(2^10) chars as input seems more than enough
4655     test $ac_count -gt 10 && break
4656   done
4657   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4658 esac
4659
4660       $ac_path_GREP_found && break 3
4661     done
4662   done
4663   done
4664 IFS=$as_save_IFS
4665   if test -z "$ac_cv_path_GREP"; then
4666     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4667   fi
4668 else
4669   ac_cv_path_GREP=$GREP
4670 fi
4671
4672 fi
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4674 $as_echo "$ac_cv_path_GREP" >&6; }
4675  GREP="$ac_cv_path_GREP"
4676
4677
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4679 $as_echo_n "checking for egrep... " >&6; }
4680 if test "${ac_cv_path_EGREP+set}" = set; then :
4681   $as_echo_n "(cached) " >&6
4682 else
4683   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4684    then ac_cv_path_EGREP="$GREP -E"
4685    else
4686      if test -z "$EGREP"; then
4687   ac_path_EGREP_found=false
4688   # Loop through the user's path and test for each of PROGNAME-LIST
4689   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4690 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4691 do
4692   IFS=$as_save_IFS
4693   test -z "$as_dir" && as_dir=.
4694     for ac_prog in egrep; do
4695     for ac_exec_ext in '' $ac_executable_extensions; do
4696       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4697       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4698 # Check for GNU ac_path_EGREP and select it if it is found.
4699   # Check for GNU $ac_path_EGREP
4700 case `"$ac_path_EGREP" --version 2>&1` in
4701 *GNU*)
4702   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4703 *)
4704   ac_count=0
4705   $as_echo_n 0123456789 >"conftest.in"
4706   while :
4707   do
4708     cat "conftest.in" "conftest.in" >"conftest.tmp"
4709     mv "conftest.tmp" "conftest.in"
4710     cp "conftest.in" "conftest.nl"
4711     $as_echo 'EGREP' >> "conftest.nl"
4712     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4713     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4714     as_fn_arith $ac_count + 1 && ac_count=$as_val
4715     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4716       # Best one so far, save it but keep looking for a better one
4717       ac_cv_path_EGREP="$ac_path_EGREP"
4718       ac_path_EGREP_max=$ac_count
4719     fi
4720     # 10*(2^10) chars as input seems more than enough
4721     test $ac_count -gt 10 && break
4722   done
4723   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4724 esac
4725
4726       $ac_path_EGREP_found && break 3
4727     done
4728   done
4729   done
4730 IFS=$as_save_IFS
4731   if test -z "$ac_cv_path_EGREP"; then
4732     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4733   fi
4734 else
4735   ac_cv_path_EGREP=$EGREP
4736 fi
4737
4738    fi
4739 fi
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4741 $as_echo "$ac_cv_path_EGREP" >&6; }
4742  EGREP="$ac_cv_path_EGREP"
4743
4744
4745 # Extract the first word of "ldconfig", so it can be a program name with args.
4746 set dummy ldconfig; ac_word=$2
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4748 $as_echo_n "checking for $ac_word... " >&6; }
4749 if test "${ac_cv_path_LDCONFIG+set}" = set; then :
4750   $as_echo_n "(cached) " >&6
4751 else
4752   case $LDCONFIG in
4753   [\\/]* | ?:[\\/]*)
4754   ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
4755   ;;
4756   *)
4757   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4758 for as_dir in /sbin /usr/sbin $PATH
4759 do
4760   IFS=$as_save_IFS
4761   test -z "$as_dir" && as_dir=.
4762     for ac_exec_ext in '' $ac_executable_extensions; do
4763   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4764     ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
4765     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4766     break 2
4767   fi
4768 done
4769   done
4770 IFS=$as_save_IFS
4771
4772   test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
4773   ;;
4774 esac
4775 fi
4776 LDCONFIG=$ac_cv_path_LDCONFIG
4777 if test -n "$LDCONFIG"; then
4778   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
4779 $as_echo "$LDCONFIG" >&6; }
4780 else
4781   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4782 $as_echo "no" >&6; }
4783 fi
4784
4785
4786 # Find a good install program.  We prefer a C program (faster),
4787 # so one script is as good as another.  But avoid the broken or
4788 # incompatible versions:
4789 # SysV /etc/install, /usr/sbin/install
4790 # SunOS /usr/etc/install
4791 # IRIX /sbin/install
4792 # AIX /bin/install
4793 # AmigaOS /C/install, which installs bootblocks on floppy discs
4794 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4795 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4796 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4797 # OS/2's system install, which has a completely different semantic
4798 # ./install, which can be erroneously created by make from ./install.sh.
4799 # Reject install programs that cannot install multiple files.
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4801 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4802 if test -z "$INSTALL"; then
4803 if test "${ac_cv_path_install+set}" = set; then :
4804   $as_echo_n "(cached) " >&6
4805 else
4806   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4807 for as_dir in $PATH
4808 do
4809   IFS=$as_save_IFS
4810   test -z "$as_dir" && as_dir=.
4811     # Account for people who put trailing slashes in PATH elements.
4812 case $as_dir/ in #((
4813   ./ | .// | /[cC]/* | \
4814   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4815   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4816   /usr/ucb/* ) ;;
4817   *)
4818     # OSF1 and SCO ODT 3.0 have their own names for install.
4819     # Don't use installbsd from OSF since it installs stuff as root
4820     # by default.
4821     for ac_prog in ginstall scoinst install; do
4822       for ac_exec_ext in '' $ac_executable_extensions; do
4823         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4824           if test $ac_prog = install &&
4825             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4826             # AIX install.  It has an incompatible calling convention.
4827             :
4828           elif test $ac_prog = install &&
4829             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4830             # program-specific install script used by HP pwplus--don't use.
4831             :
4832           else
4833             rm -rf conftest.one conftest.two conftest.dir
4834             echo one > conftest.one
4835             echo two > conftest.two
4836             mkdir conftest.dir
4837             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4838               test -s conftest.one && test -s conftest.two &&
4839               test -s conftest.dir/conftest.one &&
4840               test -s conftest.dir/conftest.two
4841             then
4842               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4843               break 3
4844             fi
4845           fi
4846         fi
4847       done
4848     done
4849     ;;
4850 esac
4851
4852   done
4853 IFS=$as_save_IFS
4854
4855 rm -rf conftest.one conftest.two conftest.dir
4856
4857 fi
4858   if test "${ac_cv_path_install+set}" = set; then
4859     INSTALL=$ac_cv_path_install
4860   else
4861     # As a last resort, use the slow shell script.  Don't cache a
4862     # value for INSTALL within a source directory, because that will
4863     # break other packages using the cache if that directory is
4864     # removed, or if the value is a relative name.
4865     INSTALL=$ac_install_sh
4866   fi
4867 fi
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4869 $as_echo "$INSTALL" >&6; }
4870
4871 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4872 # It thinks the first close brace ends the variable substitution.
4873 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4874
4875 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4876
4877 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4878
4879 case "$INSTALL" in
4880   [\\/$]* | ?:[\\/]* ) ;;
4881   *)  INSTALL="\\\$(top_srcdir)/$INSTALL" ;;
4882 esac
4883
4884 for ac_prog in lclint lint
4885 do
4886   # Extract the first word of "$ac_prog", so it can be a program name with args.
4887 set dummy $ac_prog; ac_word=$2
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4889 $as_echo_n "checking for $ac_word... " >&6; }
4890 if test "${ac_cv_prog_LINT+set}" = set; then :
4891   $as_echo_n "(cached) " >&6
4892 else
4893   if test -n "$LINT"; then
4894   ac_cv_prog_LINT="$LINT" # Let the user override the test.
4895 else
4896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4897 for as_dir in $PATH
4898 do
4899   IFS=$as_save_IFS
4900   test -z "$as_dir" && as_dir=.
4901     for ac_exec_ext in '' $ac_executable_extensions; do
4902   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4903     ac_cv_prog_LINT="$ac_prog"
4904     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4905     break 2
4906   fi
4907 done
4908   done
4909 IFS=$as_save_IFS
4910
4911 fi
4912 fi
4913 LINT=$ac_cv_prog_LINT
4914 if test -n "$LINT"; then
4915   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
4916 $as_echo "$LINT" >&6; }
4917 else
4918   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4919 $as_echo "no" >&6; }
4920 fi
4921
4922
4923   test -n "$LINT" && break
4924 done
4925
4926 if test "$LINT" = "lint"
4927 then
4928   LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
4929   fi
4930
4931
4932
4933 for ac_prog in fontforge
4934 do
4935   # Extract the first word of "$ac_prog", so it can be a program name with args.
4936 set dummy $ac_prog; ac_word=$2
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4938 $as_echo_n "checking for $ac_word... " >&6; }
4939 if test "${ac_cv_prog_FONTFORGE+set}" = set; then :
4940   $as_echo_n "(cached) " >&6
4941 else
4942   if test -n "$FONTFORGE"; then
4943   ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
4944 else
4945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4946 for as_dir in $PATH
4947 do
4948   IFS=$as_save_IFS
4949   test -z "$as_dir" && as_dir=.
4950     for ac_exec_ext in '' $ac_executable_extensions; do
4951   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4952     ac_cv_prog_FONTFORGE="$ac_prog"
4953     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4954     break 2
4955   fi
4956 done
4957   done
4958 IFS=$as_save_IFS
4959
4960 fi
4961 fi
4962 FONTFORGE=$ac_cv_prog_FONTFORGE
4963 if test -n "$FONTFORGE"; then
4964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTFORGE" >&5
4965 $as_echo "$FONTFORGE" >&6; }
4966 else
4967   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4968 $as_echo "no" >&6; }
4969 fi
4970
4971
4972   test -n "$FONTFORGE" && break
4973 done
4974 test -n "$FONTFORGE" || FONTFORGE="false"
4975
4976 for ac_prog in pkg-config
4977 do
4978   # Extract the first word of "$ac_prog", so it can be a program name with args.
4979 set dummy $ac_prog; ac_word=$2
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4981 $as_echo_n "checking for $ac_word... " >&6; }
4982 if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then :
4983   $as_echo_n "(cached) " >&6
4984 else
4985   if test -n "$PKG_CONFIG"; then
4986   ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
4987 else
4988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4989 for as_dir in $PATH
4990 do
4991   IFS=$as_save_IFS
4992   test -z "$as_dir" && as_dir=.
4993     for ac_exec_ext in '' $ac_executable_extensions; do
4994   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4995     ac_cv_prog_PKG_CONFIG="$ac_prog"
4996     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4997     break 2
4998   fi
4999 done
5000   done
5001 IFS=$as_save_IFS
5002
5003 fi
5004 fi
5005 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
5006 if test -n "$PKG_CONFIG"; then
5007   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5008 $as_echo "$PKG_CONFIG" >&6; }
5009 else
5010   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5011 $as_echo "no" >&6; }
5012 fi
5013
5014
5015   test -n "$PKG_CONFIG" && break
5016 done
5017 test -n "$PKG_CONFIG" || PKG_CONFIG="false"
5018
5019 for ac_prog in rsvg
5020 do
5021   # Extract the first word of "$ac_prog", so it can be a program name with args.
5022 set dummy $ac_prog; ac_word=$2
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5024 $as_echo_n "checking for $ac_word... " >&6; }
5025 if test "${ac_cv_prog_RSVG+set}" = set; then :
5026   $as_echo_n "(cached) " >&6
5027 else
5028   if test -n "$RSVG"; then
5029   ac_cv_prog_RSVG="$RSVG" # Let the user override the test.
5030 else
5031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5032 for as_dir in $PATH
5033 do
5034   IFS=$as_save_IFS
5035   test -z "$as_dir" && as_dir=.
5036     for ac_exec_ext in '' $ac_executable_extensions; do
5037   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5038     ac_cv_prog_RSVG="$ac_prog"
5039     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5040     break 2
5041   fi
5042 done
5043   done
5044 IFS=$as_save_IFS
5045
5046 fi
5047 fi
5048 RSVG=$ac_cv_prog_RSVG
5049 if test -n "$RSVG"; then
5050   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG" >&5
5051 $as_echo "$RSVG" >&6; }
5052 else
5053   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5054 $as_echo "no" >&6; }
5055 fi
5056
5057
5058   test -n "$RSVG" && break
5059 done
5060 test -n "$RSVG" || RSVG="false"
5061
5062 for ac_prog in convert
5063 do
5064   # Extract the first word of "$ac_prog", so it can be a program name with args.
5065 set dummy $ac_prog; ac_word=$2
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5067 $as_echo_n "checking for $ac_word... " >&6; }
5068 if test "${ac_cv_prog_CONVERT+set}" = set; then :
5069   $as_echo_n "(cached) " >&6
5070 else
5071   if test -n "$CONVERT"; then
5072   ac_cv_prog_CONVERT="$CONVERT" # Let the user override the test.
5073 else
5074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5075 for as_dir in $PATH
5076 do
5077   IFS=$as_save_IFS
5078   test -z "$as_dir" && as_dir=.
5079     for ac_exec_ext in '' $ac_executable_extensions; do
5080   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5081     ac_cv_prog_CONVERT="$ac_prog"
5082     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5083     break 2
5084   fi
5085 done
5086   done
5087 IFS=$as_save_IFS
5088
5089 fi
5090 fi
5091 CONVERT=$ac_cv_prog_CONVERT
5092 if test -n "$CONVERT"; then
5093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONVERT" >&5
5094 $as_echo "$CONVERT" >&6; }
5095 else
5096   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5097 $as_echo "no" >&6; }
5098 fi
5099
5100
5101   test -n "$CONVERT" && break
5102 done
5103 test -n "$CONVERT" || CONVERT="false"
5104
5105 for ac_prog in icotool
5106 do
5107   # Extract the first word of "$ac_prog", so it can be a program name with args.
5108 set dummy $ac_prog; ac_word=$2
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5110 $as_echo_n "checking for $ac_word... " >&6; }
5111 if test "${ac_cv_prog_ICOTOOL+set}" = set; then :
5112   $as_echo_n "(cached) " >&6
5113 else
5114   if test -n "$ICOTOOL"; then
5115   ac_cv_prog_ICOTOOL="$ICOTOOL" # Let the user override the test.
5116 else
5117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5118 for as_dir in $PATH
5119 do
5120   IFS=$as_save_IFS
5121   test -z "$as_dir" && as_dir=.
5122     for ac_exec_ext in '' $ac_executable_extensions; do
5123   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5124     ac_cv_prog_ICOTOOL="$ac_prog"
5125     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5126     break 2
5127   fi
5128 done
5129   done
5130 IFS=$as_save_IFS
5131
5132 fi
5133 fi
5134 ICOTOOL=$ac_cv_prog_ICOTOOL
5135 if test -n "$ICOTOOL"; then
5136   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICOTOOL" >&5
5137 $as_echo "$ICOTOOL" >&6; }
5138 else
5139   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5140 $as_echo "no" >&6; }
5141 fi
5142
5143
5144   test -n "$ICOTOOL" && break
5145 done
5146 test -n "$ICOTOOL" || ICOTOOL="false"
5147
5148
5149 if test "x$enable_maintainer_mode" != "xyes"
5150 then
5151   MAINTAINER_MODE=\#
5152
5153 else
5154   if test "$FONTFORGE" = "false"; then as_fn_error $? "You need fontforge to rebuild fonts in maintainer mode." "$LINENO" 5 ; fi
5155   if test "$RSVG" = "false"; then as_fn_error $? "You need rsvg to rebuild icons in maintainer mode." "$LINENO" 5 ; fi
5156
5157     if test "$CONVERT" = false
5158   then
5159     as_fn_error $? "You need imagemagick to rebuild icons in maintainer mode." "$LINENO" 5
5160   else
5161     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough imagemagick" >&5
5162 $as_echo_n "checking for recent enough imagemagick... " >&6; }
5163     convert_version=`convert --version | head -n1`
5164     if test "x$convert_version" != "x"
5165     then
5166       convert_version_major=`expr "$convert_version" : '.* \([0-9]*\)\.[0-9]*'`
5167       convert_version_minor=`expr "$convert_version" : '.* [0-9]*\.\([0-9]*\)'`
5168       if test "$convert_version_major" -eq 6 -a "$convert_version_minor" -lt 6
5169       then
5170         CONVERT=false
5171       fi
5172     fi
5173     if test "$CONVERT" = false
5174     then
5175       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($convert_version_major.$convert_version_minor)" >&5
5176 $as_echo "no ($convert_version_major.$convert_version_minor)" >&6; }
5177       as_fn_error $? "You need imagemagick version 6.6 or newer to rebuild icons in maintainer mode." "$LINENO" 5
5178     else
5179       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($convert_version_major.$convert_version_minor)" >&5
5180 $as_echo "yes ($convert_version_major.$convert_version_minor)" >&6; }
5181     fi
5182   fi
5183
5184     if test "$ICOTOOL" = false
5185   then
5186     as_fn_error $? "You need icotool to rebuild icons in maintainer mode." "$LINENO" 5
5187   else
5188     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough icotool" >&5
5189 $as_echo_n "checking for recent enough icotool... " >&6; }
5190     icotool_version=`icotool --version | head -n1`
5191     if test "x$icotool_version" != "x"
5192     then
5193       icotool_version_major=`expr "$icotool_version" : '.* \([0-9]*\)\.[0-9]*'`
5194       icotool_version_minor=`expr "$icotool_version" : '.* [0-9]*\.\([0-9]*\)'`
5195       if test "$icotool_version_major" -eq 0 -a "$icotool_version_minor" -lt 29
5196       then
5197         ICOTOOL=false
5198         as_fn_append wine_warnings "|icotool version 0.29.0 or newer is needed to rebuild icons."
5199       fi
5200     fi
5201     if test "$ICOTOOL" = false
5202     then
5203       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($icotool_version_major.$icotool_version_minor)" >&5
5204 $as_echo "no ($icotool_version_major.$icotool_version_minor)" >&6; }
5205       as_fn_error $? "You need icotool version 0.29.0 or newer to rebuild icons in maintainer mode." "$LINENO" 5
5206     else
5207       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($icotool_version_major.$icotool_version_minor)" >&5
5208 $as_echo "yes ($icotool_version_major.$icotool_version_minor)" >&6; }
5209     fi
5210   fi
5211
5212 fi
5213
5214
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for i386_set_ldt in -li386" >&5
5216 $as_echo_n "checking for i386_set_ldt in -li386... " >&6; }
5217 if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then :
5218   $as_echo_n "(cached) " >&6
5219 else
5220   ac_check_lib_save_LIBS=$LIBS
5221 LIBS="-li386  $LIBS"
5222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5223 /* end confdefs.h.  */
5224
5225 /* Override any GCC internal prototype to avoid an error.
5226    Use char because int might match the return type of a GCC
5227    builtin and then its argument prototype would still apply.  */
5228 #ifdef __cplusplus
5229 extern "C"
5230 #endif
5231 char i386_set_ldt ();
5232 int
5233 main ()
5234 {
5235 return i386_set_ldt ();
5236   ;
5237   return 0;
5238 }
5239 _ACEOF
5240 if ac_fn_c_try_link "$LINENO"; then :
5241   ac_cv_lib_i386_i386_set_ldt=yes
5242 else
5243   ac_cv_lib_i386_i386_set_ldt=no
5244 fi
5245 rm -f core conftest.err conftest.$ac_objext \
5246     conftest$ac_exeext conftest.$ac_ext
5247 LIBS=$ac_check_lib_save_LIBS
5248 fi
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_i386_i386_set_ldt" >&5
5250 $as_echo "$ac_cv_lib_i386_i386_set_ldt" >&6; }
5251 if test "x$ac_cv_lib_i386_i386_set_ldt" = x""yes; then :
5252   cat >>confdefs.h <<_ACEOF
5253 #define HAVE_LIBI386 1
5254 _ACEOF
5255
5256   LIBS="-li386 $LIBS"
5257
5258 fi
5259
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
5261 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
5262 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
5263   $as_echo_n "(cached) " >&6
5264 else
5265   ac_check_lib_save_LIBS=$LIBS
5266 LIBS="-lossaudio  $LIBS"
5267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5268 /* end confdefs.h.  */
5269
5270 /* Override any GCC internal prototype to avoid an error.
5271    Use char because int might match the return type of a GCC
5272    builtin and then its argument prototype would still apply.  */
5273 #ifdef __cplusplus
5274 extern "C"
5275 #endif
5276 char _oss_ioctl ();
5277 int
5278 main ()
5279 {
5280 return _oss_ioctl ();
5281   ;
5282   return 0;
5283 }
5284 _ACEOF
5285 if ac_fn_c_try_link "$LINENO"; then :
5286   ac_cv_lib_ossaudio__oss_ioctl=yes
5287 else
5288   ac_cv_lib_ossaudio__oss_ioctl=no
5289 fi
5290 rm -f core conftest.err conftest.$ac_objext \
5291     conftest$ac_exeext conftest.$ac_ext
5292 LIBS=$ac_check_lib_save_LIBS
5293 fi
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5295 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
5296 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
5297   cat >>confdefs.h <<_ACEOF
5298 #define HAVE_LIBOSSAUDIO 1
5299 _ACEOF
5300
5301   LIBS="-lossaudio $LIBS"
5302
5303 fi
5304
5305
5306 XLIB=""
5307
5308 OPENGL_LIBS=""
5309
5310
5311
5312 # Check whether --enable-largefile was given.
5313 if test "${enable_largefile+set}" = set; then :
5314   enableval=$enable_largefile;
5315 fi
5316
5317 if test "$enable_largefile" != no; then
5318
5319   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5320 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5321 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5322   $as_echo_n "(cached) " >&6
5323 else
5324   ac_cv_sys_largefile_CC=no
5325      if test "$GCC" != yes; then
5326        ac_save_CC=$CC
5327        while :; do
5328          # IRIX 6.2 and later do not support large files by default,
5329          # so use the C compiler's -n32 option if that helps.
5330          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5331 /* end confdefs.h.  */
5332 #include <sys/types.h>
5333  /* Check that off_t can represent 2**63 - 1 correctly.
5334     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5335     since some C++ compilers masquerading as C compilers
5336     incorrectly reject 9223372036854775807.  */
5337 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5338   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5339                        && LARGE_OFF_T % 2147483647 == 1)
5340                       ? 1 : -1];
5341 int
5342 main ()
5343 {
5344
5345   ;
5346   return 0;
5347 }
5348 _ACEOF
5349          if ac_fn_c_try_compile "$LINENO"; then :
5350   break
5351 fi
5352 rm -f core conftest.err conftest.$ac_objext
5353          CC="$CC -n32"
5354          if ac_fn_c_try_compile "$LINENO"; then :
5355   ac_cv_sys_largefile_CC=' -n32'; break
5356 fi
5357 rm -f core conftest.err conftest.$ac_objext
5358          break
5359        done
5360        CC=$ac_save_CC
5361        rm -f conftest.$ac_ext
5362     fi
5363 fi
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5365 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5366   if test "$ac_cv_sys_largefile_CC" != no; then
5367     CC=$CC$ac_cv_sys_largefile_CC
5368   fi
5369
5370   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5371 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5372 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5373   $as_echo_n "(cached) " >&6
5374 else
5375   while :; do
5376   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5377 /* end confdefs.h.  */
5378 #include <sys/types.h>
5379  /* Check that off_t can represent 2**63 - 1 correctly.
5380     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5381     since some C++ compilers masquerading as C compilers
5382     incorrectly reject 9223372036854775807.  */
5383 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5384   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5385                        && LARGE_OFF_T % 2147483647 == 1)
5386                       ? 1 : -1];
5387 int
5388 main ()
5389 {
5390
5391   ;
5392   return 0;
5393 }
5394 _ACEOF
5395 if ac_fn_c_try_compile "$LINENO"; then :
5396   ac_cv_sys_file_offset_bits=no; break
5397 fi
5398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5399   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5400 /* end confdefs.h.  */
5401 #define _FILE_OFFSET_BITS 64
5402 #include <sys/types.h>
5403  /* Check that off_t can represent 2**63 - 1 correctly.
5404     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5405     since some C++ compilers masquerading as C compilers
5406     incorrectly reject 9223372036854775807.  */
5407 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5408   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5409                        && LARGE_OFF_T % 2147483647 == 1)
5410                       ? 1 : -1];
5411 int
5412 main ()
5413 {
5414
5415   ;
5416   return 0;
5417 }
5418 _ACEOF
5419 if ac_fn_c_try_compile "$LINENO"; then :
5420   ac_cv_sys_file_offset_bits=64; break
5421 fi
5422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5423   ac_cv_sys_file_offset_bits=unknown
5424   break
5425 done
5426 fi
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5428 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5429 case $ac_cv_sys_file_offset_bits in #(
5430   no | unknown) ;;
5431   *)
5432 cat >>confdefs.h <<_ACEOF
5433 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5434 _ACEOF
5435 ;;
5436 esac
5437 rm -rf conftest*
5438   if test $ac_cv_sys_file_offset_bits = unknown; then
5439     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5440 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5441 if test "${ac_cv_sys_large_files+set}" = set; then :
5442   $as_echo_n "(cached) " >&6
5443 else
5444   while :; do
5445   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5446 /* end confdefs.h.  */
5447 #include <sys/types.h>
5448  /* Check that off_t can represent 2**63 - 1 correctly.
5449     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5450     since some C++ compilers masquerading as C compilers
5451     incorrectly reject 9223372036854775807.  */
5452 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5453   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5454                        && LARGE_OFF_T % 2147483647 == 1)
5455                       ? 1 : -1];
5456 int
5457 main ()
5458 {
5459
5460   ;
5461   return 0;
5462 }
5463 _ACEOF
5464 if ac_fn_c_try_compile "$LINENO"; then :
5465   ac_cv_sys_large_files=no; break
5466 fi
5467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5468   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5469 /* end confdefs.h.  */
5470 #define _LARGE_FILES 1
5471 #include <sys/types.h>
5472  /* Check that off_t can represent 2**63 - 1 correctly.
5473     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5474     since some C++ compilers masquerading as C compilers
5475     incorrectly reject 9223372036854775807.  */
5476 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5477   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5478                        && LARGE_OFF_T % 2147483647 == 1)
5479                       ? 1 : -1];
5480 int
5481 main ()
5482 {
5483
5484   ;
5485   return 0;
5486 }
5487 _ACEOF
5488 if ac_fn_c_try_compile "$LINENO"; then :
5489   ac_cv_sys_large_files=1; break
5490 fi
5491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5492   ac_cv_sys_large_files=unknown
5493   break
5494 done
5495 fi
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5497 $as_echo "$ac_cv_sys_large_files" >&6; }
5498 case $ac_cv_sys_large_files in #(
5499   no | unknown) ;;
5500   *)
5501 cat >>confdefs.h <<_ACEOF
5502 #define _LARGE_FILES $ac_cv_sys_large_files
5503 _ACEOF
5504 ;;
5505 esac
5506 rm -rf conftest*
5507   fi
5508 fi
5509
5510
5511 ac_ext=c
5512 ac_cpp='$CPP $CPPFLAGS'
5513 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5514 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5515 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5517 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5518 # On Suns, sometimes $CPP names a directory.
5519 if test -n "$CPP" && test -d "$CPP"; then
5520   CPP=
5521 fi
5522 if test -z "$CPP"; then
5523   if test "${ac_cv_prog_CPP+set}" = set; then :
5524   $as_echo_n "(cached) " >&6
5525 else
5526       # Double quotes because CPP needs to be expanded
5527     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5528     do
5529       ac_preproc_ok=false
5530 for ac_c_preproc_warn_flag in '' yes
5531 do
5532   # Use a header file that comes with gcc, so configuring glibc
5533   # with a fresh cross-compiler works.
5534   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5535   # <limits.h> exists even on freestanding compilers.
5536   # On the NeXT, cc -E runs the code through the compiler's parser,
5537   # not just through cpp. "Syntax error" is here to catch this case.
5538   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5539 /* end confdefs.h.  */
5540 #ifdef __STDC__
5541 # include <limits.h>
5542 #else
5543 # include <assert.h>
5544 #endif
5545                      Syntax error
5546 _ACEOF
5547 if ac_fn_c_try_cpp "$LINENO"; then :
5548
5549 else
5550   # Broken: fails on valid input.
5551 continue
5552 fi
5553 rm -f conftest.err conftest.i conftest.$ac_ext
5554
5555   # OK, works on sane cases.  Now check whether nonexistent headers
5556   # can be detected and how.
5557   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5558 /* end confdefs.h.  */
5559 #include <ac_nonexistent.h>
5560 _ACEOF
5561 if ac_fn_c_try_cpp "$LINENO"; then :
5562   # Broken: success on invalid input.
5563 continue
5564 else
5565   # Passes both tests.
5566 ac_preproc_ok=:
5567 break
5568 fi
5569 rm -f conftest.err conftest.i conftest.$ac_ext
5570
5571 done
5572 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5573 rm -f conftest.i conftest.err conftest.$ac_ext
5574 if $ac_preproc_ok; then :
5575   break
5576 fi
5577
5578     done
5579     ac_cv_prog_CPP=$CPP
5580
5581 fi
5582   CPP=$ac_cv_prog_CPP
5583 else
5584   ac_cv_prog_CPP=$CPP
5585 fi
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5587 $as_echo "$CPP" >&6; }
5588 ac_preproc_ok=false
5589 for ac_c_preproc_warn_flag in '' yes
5590 do
5591   # Use a header file that comes with gcc, so configuring glibc
5592   # with a fresh cross-compiler works.
5593   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5594   # <limits.h> exists even on freestanding compilers.
5595   # On the NeXT, cc -E runs the code through the compiler's parser,
5596   # not just through cpp. "Syntax error" is here to catch this case.
5597   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5598 /* end confdefs.h.  */
5599 #ifdef __STDC__
5600 # include <limits.h>
5601 #else
5602 # include <assert.h>
5603 #endif
5604                      Syntax error
5605 _ACEOF
5606 if ac_fn_c_try_cpp "$LINENO"; then :
5607
5608 else
5609   # Broken: fails on valid input.
5610 continue
5611 fi
5612 rm -f conftest.err conftest.i conftest.$ac_ext
5613
5614   # OK, works on sane cases.  Now check whether nonexistent headers
5615   # can be detected and how.
5616   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5617 /* end confdefs.h.  */
5618 #include <ac_nonexistent.h>
5619 _ACEOF
5620 if ac_fn_c_try_cpp "$LINENO"; then :
5621   # Broken: success on invalid input.
5622 continue
5623 else
5624   # Passes both tests.
5625 ac_preproc_ok=:
5626 break
5627 fi
5628 rm -f conftest.err conftest.i conftest.$ac_ext
5629
5630 done
5631 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5632 rm -f conftest.i conftest.err conftest.$ac_ext
5633 if $ac_preproc_ok; then :
5634
5635 else
5636   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5637 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5638 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5639 See \`config.log' for more details" "$LINENO" 5 ; }
5640 fi
5641
5642 ac_ext=c
5643 ac_cpp='$CPP $CPPFLAGS'
5644 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5645 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5646 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5647
5648
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5650 $as_echo_n "checking for ANSI C header files... " >&6; }
5651 if test "${ac_cv_header_stdc+set}" = set; then :
5652   $as_echo_n "(cached) " >&6
5653 else
5654   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5655 /* end confdefs.h.  */
5656 #include <stdlib.h>
5657 #include <stdarg.h>
5658 #include <string.h>
5659 #include <float.h>
5660
5661 int
5662 main ()
5663 {
5664
5665   ;
5666   return 0;
5667 }
5668 _ACEOF
5669 if ac_fn_c_try_compile "$LINENO"; then :
5670   ac_cv_header_stdc=yes
5671 else
5672   ac_cv_header_stdc=no
5673 fi
5674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5675
5676 if test $ac_cv_header_stdc = yes; then
5677   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5678   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5679 /* end confdefs.h.  */
5680 #include <string.h>
5681
5682 _ACEOF
5683 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5684   $EGREP "memchr" >/dev/null 2>&1; then :
5685
5686 else
5687   ac_cv_header_stdc=no
5688 fi
5689 rm -f conftest*
5690
5691 fi
5692
5693 if test $ac_cv_header_stdc = yes; then
5694   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5695   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5696 /* end confdefs.h.  */
5697 #include <stdlib.h>
5698
5699 _ACEOF
5700 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5701   $EGREP "free" >/dev/null 2>&1; then :
5702
5703 else
5704   ac_cv_header_stdc=no
5705 fi
5706 rm -f conftest*
5707
5708 fi
5709
5710 if test $ac_cv_header_stdc = yes; then
5711   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5712   if test "$cross_compiling" = yes; then :
5713   :
5714 else
5715   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5716 /* end confdefs.h.  */
5717 #include <ctype.h>
5718 #include <stdlib.h>
5719 #if ((' ' & 0x0FF) == 0x020)
5720 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5721 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5722 #else
5723 # define ISLOWER(c) \
5724                    (('a' <= (c) && (c) <= 'i') \
5725                      || ('j' <= (c) && (c) <= 'r') \
5726                      || ('s' <= (c) && (c) <= 'z'))
5727 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5728 #endif
5729
5730 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5731 int
5732 main ()
5733 {
5734   int i;
5735   for (i = 0; i < 256; i++)
5736     if (XOR (islower (i), ISLOWER (i))
5737         || toupper (i) != TOUPPER (i))
5738       return 2;
5739   return 0;
5740 }
5741 _ACEOF
5742 if ac_fn_c_try_run "$LINENO"; then :
5743
5744 else
5745   ac_cv_header_stdc=no
5746 fi
5747 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5748   conftest.$ac_objext conftest.beam conftest.$ac_ext
5749 fi
5750
5751 fi
5752 fi
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5754 $as_echo "$ac_cv_header_stdc" >&6; }
5755 if test $ac_cv_header_stdc = yes; then
5756
5757 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5758
5759 fi
5760
5761 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5762 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5763                   inttypes.h stdint.h unistd.h
5764 do :
5765   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5766 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5767 "
5768 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5769   cat >>confdefs.h <<_ACEOF
5770 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5771 _ACEOF
5772
5773 fi
5774
5775 done
5776
5777
5778 for ac_header in \
5779         AL/al.h \
5780         ApplicationServices/ApplicationServices.h \
5781         AudioToolbox/AudioConverter.h \
5782         AudioUnit/AudioUnit.h \
5783         AudioUnit/AudioComponent.h \
5784         CL/cl.h \
5785         Carbon/Carbon.h \
5786         CoreAudio/CoreAudio.h \
5787         DiskArbitration/DiskArbitration.h \
5788         IOKit/IOKitLib.h \
5789         IOKit/hid/IOHIDLib.h \
5790         OpenAL/al.h \
5791         OpenCL/opencl.h \
5792         QuickTime/ImageCompression.h \
5793         Security/Security.h \
5794         alias.h \
5795         alsa/asoundlib.h \
5796         arpa/inet.h \
5797         arpa/nameser.h \
5798         asm/types.h \
5799         capi20.h \
5800         curses.h \
5801         direct.h \
5802         dirent.h \
5803         dlfcn.h \
5804         elf.h \
5805         float.h \
5806         fnmatch.h \
5807         fontconfig/fontconfig.h \
5808         getopt.h \
5809         gettext-po.h \
5810         grp.h \
5811         gsm.h \
5812         gsm/gsm.h \
5813         ieeefp.h \
5814         inet/mib2.h \
5815         io.h \
5816         jack/jack.h \
5817         jpeglib.h \
5818         kstat.h \
5819         lber.h \
5820         lcms.h \
5821         lcms/lcms.h \
5822         ldap.h \
5823         link.h \
5824         linux/cdrom.h \
5825         linux/compiler.h \
5826         linux/hdreg.h \
5827         linux/input.h \
5828         linux/ioctl.h \
5829         linux/joystick.h \
5830         linux/major.h \
5831         linux/param.h \
5832         linux/serial.h \
5833         linux/types.h \
5834         linux/ucdrom.h \
5835         mach-o/nlist.h \
5836         mach-o/loader.h \
5837         mach/mach.h \
5838         mach/machine.h \
5839         machine/cpu.h \
5840         machine/limits.h \
5841         machine/soundcard.h \
5842         machine/sysarch.h \
5843         mntent.h \
5844         mpg123.h \
5845         ncurses.h \
5846         netdb.h \
5847         netinet/in.h \
5848         netinet/in_systm.h \
5849         netinet/tcp.h \
5850         netinet/tcp_fsm.h \
5851         openssl/err.h \
5852         openssl/ssl.h \
5853         png.h \
5854         poll.h \
5855         port.h \
5856         process.h \
5857         pthread.h \
5858         pwd.h \
5859         regex.h \
5860         sched.h \
5861         scsi/scsi.h \
5862         scsi/scsi_ioctl.h \
5863         scsi/sg.h \
5864         soundcard.h \
5865         stdbool.h \
5866         stdint.h \
5867         strings.h \
5868         stropts.h \
5869         sys/asoundlib.h \
5870         sys/attr.h \
5871         sys/cdio.h \
5872         sys/elf32.h \
5873         sys/epoll.h \
5874         sys/errno.h \
5875         sys/event.h \
5876         sys/exec_elf.h \
5877         sys/filio.h \
5878         sys/inotify.h \
5879         sys/ioctl.h \
5880         sys/ipc.h \
5881         sys/limits.h \
5882         sys/link.h \
5883         sys/mman.h \
5884         sys/modem.h \
5885         sys/msg.h \
5886         sys/mtio.h \
5887         sys/param.h \
5888         sys/poll.h \
5889         sys/prctl.h \
5890         sys/protosw.h \
5891         sys/ptrace.h \
5892         sys/resource.h \
5893         sys/scsiio.h \
5894         sys/shm.h \
5895         sys/signal.h \
5896         sys/socket.h \
5897         sys/socketvar.h \
5898         sys/sockio.h \
5899         sys/soundcard.h \
5900         sys/statvfs.h \
5901         sys/strtio.h \
5902         sys/syscall.h \
5903         sys/tihdr.h \
5904         sys/time.h \
5905         sys/timeout.h \
5906         sys/times.h \
5907         sys/uio.h \
5908         sys/un.h \
5909         sys/utsname.h \
5910         sys/vm86.h \
5911         sys/wait.h \
5912         syscall.h \
5913         termios.h \
5914         tiffio.h \
5915         unistd.h \
5916         utime.h \
5917         valgrind/memcheck.h \
5918         valgrind/valgrind.h \
5919         zlib.h
5920
5921 do :
5922   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5923 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5924 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5925   cat >>confdefs.h <<_ACEOF
5926 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5927 _ACEOF
5928
5929 fi
5930
5931 done
5932
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
5934 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
5935 if test "${ac_cv_header_stat_broken+set}" = set; then :
5936   $as_echo_n "(cached) " >&6
5937 else
5938   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5939 /* end confdefs.h.  */
5940 #include <sys/types.h>
5941 #include <sys/stat.h>
5942
5943 #if defined S_ISBLK && defined S_IFDIR
5944 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
5945 #endif
5946
5947 #if defined S_ISBLK && defined S_IFCHR
5948 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
5949 #endif
5950
5951 #if defined S_ISLNK && defined S_IFREG
5952 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
5953 #endif
5954
5955 #if defined S_ISSOCK && defined S_IFREG
5956 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
5957 #endif
5958
5959 _ACEOF
5960 if ac_fn_c_try_compile "$LINENO"; then :
5961   ac_cv_header_stat_broken=no
5962 else
5963   ac_cv_header_stat_broken=yes
5964 fi
5965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5966 fi
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
5968 $as_echo "$ac_cv_header_stat_broken" >&6; }
5969 if test $ac_cv_header_stat_broken = yes; then
5970
5971 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
5972
5973 fi
5974
5975
5976
5977 for ac_header in sys/mount.h sys/statfs.h sys/sysctl.h sys/user.h sys/vfs.h
5978 do :
5979   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5980 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
5981      #ifdef HAVE_SYS_PARAM_H
5982      # include <sys/param.h>
5983      #endif
5984 "
5985 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5986   cat >>confdefs.h <<_ACEOF
5987 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5988 _ACEOF
5989
5990 fi
5991
5992 done
5993
5994
5995 for ac_header in \
5996         netinet/ip.h \
5997         net/if.h \
5998         net/if_arp.h \
5999         net/if_dl.h \
6000         net/if_types.h \
6001         net/route.h \
6002         netinet/if_ether.h \
6003         netinet/if_inarp.h \
6004         netinet/in_pcb.h \
6005         netinet/ip_icmp.h \
6006         netinet/ip_var.h \
6007         netinet/udp.h \
6008         netipx/ipx.h \
6009
6010 do :
6011   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6012 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6013      #ifdef HAVE_SYS_SOCKET_H
6014      # include <sys/socket.h>
6015      #endif
6016      #ifdef HAVE_SYS_SOCKETVAR_H
6017      # include <sys/socketvar.h>
6018      #endif
6019      #ifdef HAVE_NET_ROUTE_H
6020      # include <net/route.h>
6021      #endif
6022      #ifdef HAVE_NETINET_IN_H
6023      # include <netinet/in.h>
6024      #endif
6025      #ifdef HAVE_NETINET_IN_SYSTM_H
6026      # include <netinet/in_systm.h>
6027      #endif
6028      #ifdef HAVE_NET_IF_H
6029      # include <net/if.h>
6030      #endif
6031      #ifdef HAVE_NETINET_IP_H
6032      # include <netinet/ip.h>
6033      #endif
6034 "
6035 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6036   cat >>confdefs.h <<_ACEOF
6037 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6038 _ACEOF
6039
6040 fi
6041
6042 done
6043
6044
6045 for ac_header in netinet/tcp_timer.h netinet/udp_var.h netinet/icmp_var.h netinet/tcp_var.h
6046 do :
6047   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6048 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6049      #ifdef HAVE_ALIAS_H
6050      # include <alias.h>
6051      #endif
6052      #ifdef HAVE_SYS_SOCKET_H
6053      # include <sys/socket.h>
6054      #endif
6055      #ifdef HAVE_SYS_SOCKETVAR_H
6056      # include <sys/socketvar.h>
6057      #endif
6058      #ifdef HAVE_SYS_TIMEOUT_H
6059      # include <sys/timeout.h>
6060      #endif
6061      #ifdef HAVE_NETINET_IN_H
6062      # include <netinet/in.h>
6063      #endif
6064      #ifdef HAVE_NETINET_IN_SYSTM_H
6065      # include <netinet/in_systm.h>
6066      #endif
6067      #ifdef HAVE_NETINET_IP_H
6068      # include <netinet/ip.h>
6069      #endif
6070      #ifdef HAVE_NETINET_IP_VAR_H
6071      # include <netinet/ip_var.h>
6072      #endif
6073      #ifdef HAVE_NETINET_IP_ICMP_H
6074      # include <netinet/ip_icmp.h>
6075      #endif
6076      #ifdef HAVE_NETINET_UDP_H
6077      # include <netinet/udp.h>
6078      #endif
6079      #ifdef HAVE_NETINET_TCP_H
6080      # include <netinet/tcp.h>
6081      #endif
6082      #ifdef HAVE_NETINET_TCP_TIMER_H
6083      #include <netinet/tcp_timer.h>
6084      #endif
6085 "
6086 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6087   cat >>confdefs.h <<_ACEOF
6088 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6089 _ACEOF
6090
6091 fi
6092
6093 done
6094
6095
6096 for ac_header in linux/ipx.h linux/irda.h
6097 do :
6098   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6099 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6100      #ifdef HAVE_ASM_TYPES_H
6101      # include <asm/types.h>
6102      #endif
6103      #ifdef HAVE_SYS_SOCKET_H
6104      # include <sys/socket.h>
6105      #endif
6106      #ifdef HAVE_LINUX_TYPES_H
6107      # include <linux/types.h>
6108      #endif
6109 "
6110 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6111   cat >>confdefs.h <<_ACEOF
6112 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6113 _ACEOF
6114
6115 fi
6116
6117 done
6118
6119
6120 for ac_header in mach-o/dyld_images.h
6121 do :
6122   ac_fn_c_check_header_compile "$LINENO" "mach-o/dyld_images.h" "ac_cv_header_mach_o_dyld_images_h" "#ifdef HAVE_STDBOOL_H
6123      # include <stdbool.h>
6124      #endif
6125      #ifdef HAVE_STDINT_H
6126      # include <stdint.h>
6127      #endif
6128 "
6129 if test "x$ac_cv_header_mach_o_dyld_images_h" = x""yes; then :
6130   cat >>confdefs.h <<_ACEOF
6131 #define HAVE_MACH_O_DYLD_IMAGES_H 1
6132 _ACEOF
6133
6134 fi
6135
6136 done
6137
6138
6139 for ac_header in resolv.h
6140 do :
6141   ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "#include <sys/types.h>
6142      #ifdef HAVE_SYS_SOCKET_H
6143      # include <sys/socket.h>
6144      #endif
6145      #ifdef HAVE_NETINET_IN_H
6146      # include <netinet/in.h>
6147      #endif
6148      #ifdef HAVE_ARPA_NAMESER_H
6149      # include <arpa/nameser.h>
6150      #endif
6151 "
6152 if test "x$ac_cv_header_resolv_h" = x""yes; then :
6153   cat >>confdefs.h <<_ACEOF
6154 #define HAVE_RESOLV_H 1
6155 _ACEOF
6156
6157 fi
6158
6159 done
6160
6161
6162 for ac_header in ifaddrs.h
6163 do :
6164   ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "#include <sys/types.h>
6165 "
6166 if test "x$ac_cv_header_ifaddrs_h" = x""yes; then :
6167   cat >>confdefs.h <<_ACEOF
6168 #define HAVE_IFADDRS_H 1
6169 _ACEOF
6170
6171 fi
6172
6173 done
6174
6175
6176 for ac_header in ucontext.h
6177 do :
6178   ac_fn_c_check_header_compile "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "#include <signal.h>
6179 "
6180 if test "x$ac_cv_header_ucontext_h" = x""yes; then :
6181   cat >>confdefs.h <<_ACEOF
6182 #define HAVE_UCONTEXT_H 1
6183 _ACEOF
6184
6185 fi
6186
6187 done
6188
6189
6190 for ac_header in sys/thr.h
6191 do :
6192   ac_fn_c_check_header_compile "$LINENO" "sys/thr.h" "ac_cv_header_sys_thr_h" "#include <sys/types.h>
6193 #ifdef HAVE_UCONTEXT_H
6194 #include <ucontext.h>
6195 #endif
6196 "
6197 if test "x$ac_cv_header_sys_thr_h" = x""yes; then :
6198   cat >>confdefs.h <<_ACEOF
6199 #define HAVE_SYS_THR_H 1
6200 _ACEOF
6201
6202 fi
6203
6204 done
6205
6206
6207 for ac_header in pthread_np.h
6208 do :
6209   ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" "#ifdef HAVE_PTHREAD_H
6210 #include <pthread.h>
6211 #endif
6212 "
6213 if test "x$ac_cv_header_pthread_np_h" = x""yes; then :
6214   cat >>confdefs.h <<_ACEOF
6215 #define HAVE_PTHREAD_NP_H 1
6216 _ACEOF
6217
6218 fi
6219
6220 done
6221
6222
6223 for ac_header in linux/videodev.h
6224 do :
6225   ac_fn_c_check_header_compile "$LINENO" "linux/videodev.h" "ac_cv_header_linux_videodev_h" "#ifdef HAVE_SYS_TIME_H
6226 #include <sys/time.h>
6227 #endif
6228 #include <sys/types.h>
6229 #ifdef HAVE_ASM_TYPES_H
6230 #include <asm/types.h>
6231 #endif
6232 "
6233 if test "x$ac_cv_header_linux_videodev_h" = x""yes; then :
6234   cat >>confdefs.h <<_ACEOF
6235 #define HAVE_LINUX_VIDEODEV_H 1
6236 _ACEOF
6237
6238 fi
6239
6240 done
6241
6242
6243 for ac_header in linux/capi.h
6244 do :
6245   ac_fn_c_check_header_compile "$LINENO" "linux/capi.h" "ac_cv_header_linux_capi_h" "#define __user
6246 "
6247 if test "x$ac_cv_header_linux_capi_h" = x""yes; then :
6248   cat >>confdefs.h <<_ACEOF
6249 #define HAVE_LINUX_CAPI_H 1
6250 _ACEOF
6251
6252 fi
6253
6254 done
6255
6256
6257
6258 DLLEXT=""
6259
6260 DLLFLAGS="-D_REENTRANT"
6261
6262 LDSHARED=""
6263
6264 LDDLLFLAGS=""
6265
6266 LIBEXT="so"
6267
6268 IMPLIBEXT="def"
6269
6270 LDRPATH_INSTALL=""
6271
6272 LDRPATH_LOCAL=""
6273
6274 STATIC_IMPLIBEXT="def.a"
6275 # Extract the first word of "ldd", so it can be a program name with args.
6276 set dummy ldd; ac_word=$2
6277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6278 $as_echo_n "checking for $ac_word... " >&6; }
6279 if test "${ac_cv_path_LDD+set}" = set; then :
6280   $as_echo_n "(cached) " >&6
6281 else
6282   case $LDD in
6283   [\\/]* | ?:[\\/]*)
6284   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
6285   ;;
6286   *)
6287   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6288 as_dummy="/sbin:/usr/sbin:$PATH"
6289 for as_dir in $as_dummy
6290 do
6291   IFS=$as_save_IFS
6292   test -z "$as_dir" && as_dir=.
6293     for ac_exec_ext in '' $ac_executable_extensions; do
6294   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6295     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
6296     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6297     break 2
6298   fi
6299 done
6300   done
6301 IFS=$as_save_IFS
6302
6303   test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
6304   ;;
6305 esac
6306 fi
6307 LDD=$ac_cv_path_LDD
6308 if test -n "$LDD"; then
6309   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
6310 $as_echo "$LDD" >&6; }
6311 else
6312   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6313 $as_echo "no" >&6; }
6314 fi
6315
6316
6317
6318 case $host_os in
6319   cygwin*|mingw32*)
6320     if test -n "$ac_tool_prefix"; then
6321   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6322 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6324 $as_echo_n "checking for $ac_word... " >&6; }
6325 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
6326   $as_echo_n "(cached) " >&6
6327 else
6328   if test -n "$DLLTOOL"; then
6329   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6330 else
6331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6332 for as_dir in $PATH
6333 do
6334   IFS=$as_save_IFS
6335   test -z "$as_dir" && as_dir=.
6336     for ac_exec_ext in '' $ac_executable_extensions; do
6337   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6338     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6339     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6340     break 2
6341   fi
6342 done
6343   done
6344 IFS=$as_save_IFS
6345
6346 fi
6347 fi
6348 DLLTOOL=$ac_cv_prog_DLLTOOL
6349 if test -n "$DLLTOOL"; then
6350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6351 $as_echo "$DLLTOOL" >&6; }
6352 else
6353   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6354 $as_echo "no" >&6; }
6355 fi
6356
6357
6358 fi
6359 if test -z "$ac_cv_prog_DLLTOOL"; then
6360   ac_ct_DLLTOOL=$DLLTOOL
6361   # Extract the first word of "dlltool", so it can be a program name with args.
6362 set dummy dlltool; ac_word=$2
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6364 $as_echo_n "checking for $ac_word... " >&6; }
6365 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
6366   $as_echo_n "(cached) " >&6
6367 else
6368   if test -n "$ac_ct_DLLTOOL"; then
6369   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6370 else
6371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6372 for as_dir in $PATH
6373 do
6374   IFS=$as_save_IFS
6375   test -z "$as_dir" && as_dir=.
6376     for ac_exec_ext in '' $ac_executable_extensions; do
6377   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6378     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6379     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6380     break 2
6381   fi
6382 done
6383   done
6384 IFS=$as_save_IFS
6385
6386 fi
6387 fi
6388 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6389 if test -n "$ac_ct_DLLTOOL"; then
6390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6391 $as_echo "$ac_ct_DLLTOOL" >&6; }
6392 else
6393   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6394 $as_echo "no" >&6; }
6395 fi
6396
6397   if test "x$ac_ct_DLLTOOL" = x; then
6398     DLLTOOL="false"
6399   else
6400     case $cross_compiling:$ac_tool_warned in
6401 yes:)
6402 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6403 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6404 ac_tool_warned=yes ;;
6405 esac
6406     DLLTOOL=$ac_ct_DLLTOOL
6407   fi
6408 else
6409   DLLTOOL="$ac_cv_prog_DLLTOOL"
6410 fi
6411
6412     if test -n "$ac_tool_prefix"; then
6413   # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
6414 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6416 $as_echo_n "checking for $ac_word... " >&6; }
6417 if test "${ac_cv_prog_DLLWRAP+set}" = set; then :
6418   $as_echo_n "(cached) " >&6
6419 else
6420   if test -n "$DLLWRAP"; then
6421   ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
6422 else
6423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6424 for as_dir in $PATH
6425 do
6426   IFS=$as_save_IFS
6427   test -z "$as_dir" && as_dir=.
6428     for ac_exec_ext in '' $ac_executable_extensions; do
6429   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6430     ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
6431     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6432     break 2
6433   fi
6434 done
6435   done
6436 IFS=$as_save_IFS
6437
6438 fi
6439 fi
6440 DLLWRAP=$ac_cv_prog_DLLWRAP
6441 if test -n "$DLLWRAP"; then
6442   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLWRAP" >&5
6443 $as_echo "$DLLWRAP" >&6; }
6444 else
6445   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6446 $as_echo "no" >&6; }
6447 fi
6448
6449
6450 fi
6451 if test -z "$ac_cv_prog_DLLWRAP"; then
6452   ac_ct_DLLWRAP=$DLLWRAP
6453   # Extract the first word of "dllwrap", so it can be a program name with args.
6454 set dummy dllwrap; ac_word=$2
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6456 $as_echo_n "checking for $ac_word... " >&6; }
6457 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then :
6458   $as_echo_n "(cached) " >&6
6459 else
6460   if test -n "$ac_ct_DLLWRAP"; then
6461   ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
6462 else
6463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6464 for as_dir in $PATH
6465 do
6466   IFS=$as_save_IFS
6467   test -z "$as_dir" && as_dir=.
6468     for ac_exec_ext in '' $ac_executable_extensions; do
6469   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6470     ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
6471     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6472     break 2
6473   fi
6474 done
6475   done
6476 IFS=$as_save_IFS
6477
6478 fi
6479 fi
6480 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
6481 if test -n "$ac_ct_DLLWRAP"; then
6482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLWRAP" >&5
6483 $as_echo "$ac_ct_DLLWRAP" >&6; }
6484 else
6485   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6486 $as_echo "no" >&6; }
6487 fi
6488
6489   if test "x$ac_ct_DLLWRAP" = x; then
6490     DLLWRAP="false"
6491   else
6492     case $cross_compiling:$ac_tool_warned in
6493 yes:)
6494 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6495 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6496 ac_tool_warned=yes ;;
6497 esac
6498     DLLWRAP=$ac_ct_DLLWRAP
6499   fi
6500 else
6501   DLLWRAP="$ac_cv_prog_DLLWRAP"
6502 fi
6503
6504     if test "$DLLWRAP" = "false"; then
6505       LIBEXT="a"
6506     else
6507             LIBEXT="dll"
6508     fi
6509     IMPLIBEXT="a"
6510     STATIC_IMPLIBEXT="a"
6511         enable_iphlpapi=${enable_iphlpapi:-no}
6512     enable_kernel32=${enable_kernel32:-no}
6513     enable_msvcrt=${enable_msvcrt:-no}
6514     enable_ntdll=${enable_ntdll:-no}
6515     enable_ws2_32=${enable_ws2_32:-no}
6516     enable_loader=${enable_loader:-no}
6517     enable_server=${enable_server:-no}
6518         with_x=${with_x:-no}
6519     with_pthread=${with_pthread:-no}
6520     ;;
6521   darwin*|macosx*)
6522     DLLEXT=".so"
6523     LIBEXT="dylib"
6524     DLLFLAGS="$DLLFLAGS -fPIC"
6525     LDDLLFLAGS="-bundle -multiply_defined suppress"
6526     LIBWINE_LDFLAGS="-multiply_defined suppress"
6527     LDSHARED="\$(CC) -dynamiclib"
6528     STRIP="$STRIP -x"
6529     LDRPATH_LOCAL="&& install_name_tool -change @executable_path/\`\$(RELPATH) \$(bindir) \$(libdir)\`/libwine.1.dylib @executable_path/\$(top_builddir)/libs/wine/libwine.1.dylib \$@ || \$(RM) \$@"
6530         COREFOUNDATIONLIB="-framework CoreFoundation"
6531
6532     IOKITLIB="-framework IOKit -framework CoreFoundation"
6533
6534     APPLICATIONSERVICESLIB="-framework ApplicationServices"
6535
6536     LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00000000,-segaddr,WINE_SHAREDHEAP,0x7f000000"
6537
6538     if test "$ac_cv_header_DiskArbitration_DiskArbitration_h" = "yes"
6539     then
6540                 DISKARBITRATIONLIB="-framework DiskArbitration -framework CoreFoundation"
6541
6542     fi
6543     if test "$ac_cv_header_Security_Security_h" = "yes"
6544     then
6545         SECURITYLIB="-framework Security -framework CoreFoundation"
6546
6547         with_gnutls=${with_gnutls:-no}
6548     fi
6549     if test "$ac_cv_header_CoreAudio_CoreAudio_h" = "yes" -a "$ac_cv_header_AudioUnit_AudioUnit_h" = "yes"
6550     then
6551         if test "$ac_cv_header_AudioUnit_AudioComponent_h" = "yes"
6552         then
6553             COREAUDIO="-framework CoreFoundation -framework CoreAudio -framework AudioUnit -framework AudioToolbox -framework CoreMIDI"
6554
6555         else
6556                         COREAUDIO="-framework CoreAudio -framework AudioUnit -framework CoreServices -framework AudioToolbox -framework CoreMIDI"
6557
6558         fi
6559                 ac_save_LIBS="$LIBS"
6560         LIBS="$LIBS $COREAUDIO"
6561         for ac_func in AUGraphAddNode
6562 do :
6563   ac_fn_c_check_func "$LINENO" "AUGraphAddNode" "ac_cv_func_AUGraphAddNode"
6564 if test "x$ac_cv_func_AUGraphAddNode" = x""yes; then :
6565   cat >>confdefs.h <<_ACEOF
6566 #define HAVE_AUGRAPHADDNODE 1
6567 _ACEOF
6568
6569 fi
6570 done
6571
6572         LIBS="$ac_save_LIBS"
6573     fi
6574     if test "$ac_cv_header_OpenAL_al_h" = "yes"
6575     then
6576         FRAMEWORK_OPENAL="-framework OpenAL"
6577
6578
6579 cat >>confdefs.h <<_ACEOF
6580 #define HAVE_OPENAL 1
6581 _ACEOF
6582
6583         ac_cv_lib_openal=yes
6584     fi
6585     if test "$ac_cv_header_OpenCL_opencl_h" = "yes"
6586     then
6587         LIBOPENCL="-framework OpenCL"
6588
6589         ac_cv_lib_OpenCL_clGetPlatformInfo=yes
6590     fi
6591     if test "$ac_cv_header_IOKit_hid_IOHIDLib_h" = "yes"
6592     then
6593         ac_save_LIBS="$LIBS"
6594         LIBS="$LIBS $IOKITLIB"
6595         for ac_func in IOHIDManagerCreate
6596 do :
6597   ac_fn_c_check_func "$LINENO" "IOHIDManagerCreate" "ac_cv_func_IOHIDManagerCreate"
6598 if test "x$ac_cv_func_IOHIDManagerCreate" = x""yes; then :
6599   cat >>confdefs.h <<_ACEOF
6600 #define HAVE_IOHIDMANAGERCREATE 1
6601 _ACEOF
6602
6603 fi
6604 done
6605
6606         LIBS="$ac_save_LIBS"
6607     fi
6608     case $host_cpu in
6609       *powerpc*)
6610         LDDLLFLAGS="$LDDLLFLAGS -read_only_relocs warning"          ;;
6611     esac
6612     if test "$ac_cv_header_QuickTime_ImageCompression_h" = "yes"
6613     then
6614         QUICKTIMELIB="-framework QuickTime -framework ApplicationServices -framework CoreVideo"
6615
6616         enable_wineqtdecoder=${enable_wineqtdecoder:-yes}
6617     else
6618         as_fn_append wine_notices "|QuickTime ${notice_platform}development files not found, video decoding won't be supported."
6619     fi
6620         if test "$ac_cv_header_Carbon_Carbon_h" = "yes"
6621     then
6622         CARBONLIB="-framework Carbon"
6623
6624         enable_winequartz_drv=${enable_winequartz_drv:-yes}
6625     fi
6626         if test "x$enable_win16" = "xyes"
6627     then
6628         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 16-bit code can be built correctly" >&5
6629 $as_echo_n "checking whether 16-bit code can be built correctly... " >&6; }
6630         if test "$cross_compiling" = yes; then :
6631   { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5
6632 $as_echo "cross-compiling, assuming yes" >&6; }
6633 else
6634   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6635 /* end confdefs.h.  */
6636 asm(".text\n"
6637                                             "bad:\tnop;nop\n"
6638                                             "good:\tnop;nop\n\t"
6639                                             ".globl _testfunc\n"
6640                                             "_testfunc:\tcallw good");
6641                                         extern void testfunc();
6642 int
6643 main ()
6644 {
6645 unsigned short *p = (unsigned short *)testfunc;
6646                                         return p[0] != 0xe866 || p[1] != 0xfffa
6647   ;
6648   return 0;
6649 }
6650 _ACEOF
6651 if ac_fn_c_try_run "$LINENO"; then :
6652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6653 $as_echo "yes" >&6; }
6654 else
6655   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6656 $as_echo "no" >&6; }
6657                                        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
6658 fi
6659 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6660   conftest.$ac_objext conftest.beam conftest.$ac_ext
6661 fi
6662
6663     fi
6664     ;;
6665   *)
6666     DLLFLAGS="$DLLFLAGS -fPIC"
6667     DLLEXT=".so"
6668     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a GNU style ELF dll" >&5
6669 $as_echo_n "checking whether we can build a GNU style ELF dll... " >&6; }
6670 if test "${ac_cv_c_dll_gnuelf+set}" = set; then :
6671   $as_echo_n "(cached) " >&6
6672 else
6673   ac_wine_try_cflags_saved=$CFLAGS
6674 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic"
6675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6676 /* end confdefs.h.  */
6677 void myfunc() {}
6678 _ACEOF
6679 if ac_fn_c_try_link "$LINENO"; then :
6680   ac_cv_c_dll_gnuelf="yes"
6681 else
6682   ac_cv_c_dll_gnuelf="no"
6683 fi
6684 rm -f core conftest.err conftest.$ac_objext \
6685     conftest$ac_exeext conftest.$ac_ext
6686 CFLAGS=$ac_wine_try_cflags_saved
6687 fi
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_gnuelf" >&5
6689 $as_echo "$ac_cv_c_dll_gnuelf" >&6; }
6690     if test "$ac_cv_c_dll_gnuelf" = "yes"
6691     then
6692       LDSHARED="\$(CC) -shared"
6693       LDDLLFLAGS="-shared -Wl,-Bsymbolic"
6694       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1" >&5
6695 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1... " >&6; }
6696 if test "${ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1+set}" = set; then :
6697   $as_echo_n "(cached) " >&6
6698 else
6699   ac_wine_try_cflags_saved=$CFLAGS
6700 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,confest.so.1"
6701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6702 /* end confdefs.h.  */
6703 int main(int argc, char **argv) { return 0; }
6704 _ACEOF
6705 if ac_fn_c_try_link "$LINENO"; then :
6706   ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=yes
6707 else
6708   ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=no
6709 fi
6710 rm -f core conftest.err conftest.$ac_objext \
6711     conftest$ac_exeext conftest.$ac_ext
6712 CFLAGS=$ac_wine_try_cflags_saved
6713 fi
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&5
6715 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&6; }
6716 if test $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1 = yes; then :
6717   LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
6718 else
6719   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1" >&5
6720 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1... " >&6; }
6721 if test "${ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1+set}" = set; then :
6722   $as_echo_n "(cached) " >&6
6723 else
6724   ac_wine_try_cflags_saved=$CFLAGS
6725 CFLAGS="$CFLAGS -fPIC -shared -Wl,-h,confest.so.1"
6726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6727 /* end confdefs.h.  */
6728 int main(int argc, char **argv) { return 0; }
6729 _ACEOF
6730 if ac_fn_c_try_link "$LINENO"; then :
6731   ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=yes
6732 else
6733   ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=no
6734 fi
6735 rm -f core conftest.err conftest.$ac_objext \
6736     conftest$ac_exeext conftest.$ac_ext
6737 CFLAGS=$ac_wine_try_cflags_saved
6738 fi
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&5
6740 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&6; }
6741 if test $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1 = yes; then :
6742   LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-h,%)"
6743 fi
6744 fi
6745
6746       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs" >&5
6747 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs... " >&6; }
6748 if test "${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs+set}" = set; then :
6749   $as_echo_n "(cached) " >&6
6750 else
6751   ac_wine_try_cflags_saved=$CFLAGS
6752 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
6753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6754 /* end confdefs.h.  */
6755 int main(int argc, char **argv) { return 0; }
6756 _ACEOF
6757 if ac_fn_c_try_link "$LINENO"; then :
6758   ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=yes
6759 else
6760   ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=no
6761 fi
6762 rm -f core conftest.err conftest.$ac_objext \
6763     conftest$ac_exeext conftest.$ac_ext
6764 CFLAGS=$ac_wine_try_cflags_saved
6765 fi
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&5
6767 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&6; }
6768 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs = yes; then :
6769   LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
6770 fi
6771
6772       { $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
6773 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini... " >&6; }
6774 if test "${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini+set}" = set; then :
6775   $as_echo_n "(cached) " >&6
6776 else
6777   ac_wine_try_cflags_saved=$CFLAGS
6778 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
6779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6780 /* end confdefs.h.  */
6781 int main(int argc, char **argv) { return 0; }
6782 _ACEOF
6783 if ac_fn_c_try_link "$LINENO"; then :
6784   ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=yes
6785 else
6786   ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=no
6787 fi
6788 rm -f core conftest.err conftest.$ac_objext \
6789     conftest$ac_exeext conftest.$ac_ext
6790 CFLAGS=$ac_wine_try_cflags_saved
6791 fi
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&5
6793 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&6; }
6794 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini = yes; then :
6795   LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
6796 fi
6797
6798       echo '{ global: *; };' >conftest.map
6799       as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -shared -Wl,--version-script=conftest.map" | $as_tr_sh`
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map" >&5
6801 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map... " >&6; }
6802 if eval "test \"\${$as_ac_var+set}\"" = set; then :
6803   $as_echo_n "(cached) " >&6
6804 else
6805   ac_wine_try_cflags_saved=$CFLAGS
6806 CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
6807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6808 /* end confdefs.h.  */
6809 int main(int argc, char **argv) { return 0; }
6810 _ACEOF
6811 if ac_fn_c_try_link "$LINENO"; then :
6812   eval "$as_ac_var=yes"
6813 else
6814   eval "$as_ac_var=no"
6815 fi
6816 rm -f core conftest.err conftest.$ac_objext \
6817     conftest$ac_exeext conftest.$ac_ext
6818 CFLAGS=$ac_wine_try_cflags_saved
6819 fi
6820 eval ac_res=\$$as_ac_var
6821                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6822 $as_echo "$ac_res" >&6; }
6823 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6824   LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)"
6825 fi
6826       rm -f conftest.map
6827
6828       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5
6829 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--export-dynamic... " >&6; }
6830 if test "${ac_cv_cflags__fPIC__Wl___export_dynamic+set}" = set; then :
6831   $as_echo_n "(cached) " >&6
6832 else
6833   ac_wine_try_cflags_saved=$CFLAGS
6834 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
6835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6836 /* end confdefs.h.  */
6837 int main(int argc, char **argv) { return 0; }
6838 _ACEOF
6839 if ac_fn_c_try_link "$LINENO"; then :
6840   ac_cv_cflags__fPIC__Wl___export_dynamic=yes
6841 else
6842   ac_cv_cflags__fPIC__Wl___export_dynamic=no
6843 fi
6844 rm -f core conftest.err conftest.$ac_objext \
6845     conftest$ac_exeext conftest.$ac_ext
6846 CFLAGS=$ac_wine_try_cflags_saved
6847 fi
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__Wl___export_dynamic" >&5
6849 $as_echo "$ac_cv_cflags__fPIC__Wl___export_dynamic" >&6; }
6850 if test $ac_cv_cflags__fPIC__Wl___export_dynamic = yes; then :
6851   LDEXECFLAGS="-Wl,--export-dynamic"
6852
6853 fi
6854
6855       as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,--rpath,\\$ORIGIN/../lib" | $as_tr_sh`
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib" >&5
6857 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... " >&6; }
6858 if eval "test \"\${$as_ac_var+set}\"" = set; then :
6859   $as_echo_n "(cached) " >&6
6860 else
6861   ac_wine_try_cflags_saved=$CFLAGS
6862 CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
6863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6864 /* end confdefs.h.  */
6865 int main(int argc, char **argv) { return 0; }
6866 _ACEOF
6867 if ac_fn_c_try_link "$LINENO"; then :
6868   eval "$as_ac_var=yes"
6869 else
6870   eval "$as_ac_var=no"
6871 fi
6872 rm -f core conftest.err conftest.$ac_objext \
6873     conftest$ac_exeext conftest.$ac_ext
6874 CFLAGS=$ac_wine_try_cflags_saved
6875 fi
6876 eval ac_res=\$$as_ac_var
6877                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6878 $as_echo "$ac_res" >&6; }
6879 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6880   LDRPATH_INSTALL="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
6881                        LDRPATH_LOCAL="-Wl,--rpath,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
6882 else
6883   as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,-R,\\$ORIGIN/../lib" | $as_tr_sh`
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib" >&5
6885 $as_echo_n "checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib... " >&6; }
6886 if eval "test \"\${$as_ac_var+set}\"" = set; then :
6887   $as_echo_n "(cached) " >&6
6888 else
6889   ac_wine_try_cflags_saved=$CFLAGS
6890 CFLAGS="$CFLAGS -fPIC -Wl,-R,\$ORIGIN/../lib"
6891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6892 /* end confdefs.h.  */
6893 int main(int argc, char **argv) { return 0; }
6894 _ACEOF
6895 if ac_fn_c_try_link "$LINENO"; then :
6896   eval "$as_ac_var=yes"
6897 else
6898   eval "$as_ac_var=no"
6899 fi
6900 rm -f core conftest.err conftest.$ac_objext \
6901     conftest$ac_exeext conftest.$ac_ext
6902 CFLAGS=$ac_wine_try_cflags_saved
6903 fi
6904 eval ac_res=\$$as_ac_var
6905                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6906 $as_echo "$ac_res" >&6; }
6907 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6908   LDRPATH_INSTALL="-Wl,-R,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
6909                             LDRPATH_LOCAL="-Wl,-R,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
6910 fi
6911 fi
6912
6913       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--enable-new-dtags" >&5
6914 $as_echo_n "checking whether the compiler supports -Wl,--enable-new-dtags... " >&6; }
6915 if test "${ac_cv_cflags__Wl___enable_new_dtags+set}" = set; then :
6916   $as_echo_n "(cached) " >&6
6917 else
6918   ac_wine_try_cflags_saved=$CFLAGS
6919 CFLAGS="$CFLAGS -Wl,--enable-new-dtags"
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__Wl___enable_new_dtags=yes
6926 else
6927   ac_cv_cflags__Wl___enable_new_dtags=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__Wl___enable_new_dtags" >&5
6934 $as_echo "$ac_cv_cflags__Wl___enable_new_dtags" >&6; }
6935 if test $ac_cv_cflags__Wl___enable_new_dtags = yes; then :
6936   LDRPATH_INSTALL="$LDRPATH_INSTALL -Wl,--enable-new-dtags"
6937 fi
6938
6939       case $host_cpu in
6940         *i[3456789]86* | x86_64)
6941           as_ac_var=`$as_echo "ac_cv_cflags_-Wl,--section-start,.interp=0x7bf00400" | $as_tr_sh`
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400" >&5
6943 $as_echo_n "checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... " >&6; }
6944 if eval "test \"\${$as_ac_var+set}\"" = set; then :
6945   $as_echo_n "(cached) " >&6
6946 else
6947   ac_wine_try_cflags_saved=$CFLAGS
6948 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
6949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6950 /* end confdefs.h.  */
6951 int main(int argc, char **argv) { return 0; }
6952 _ACEOF
6953 if ac_fn_c_try_link "$LINENO"; then :
6954   eval "$as_ac_var=yes"
6955 else
6956   eval "$as_ac_var=no"
6957 fi
6958 rm -f core conftest.err conftest.$ac_objext \
6959     conftest$ac_exeext conftest.$ac_ext
6960 CFLAGS=$ac_wine_try_cflags_saved
6961 fi
6962 eval ac_res=\$$as_ac_var
6963                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6964 $as_echo "$ac_res" >&6; }
6965 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6966   case $host_os in
6967                            freebsd*)  LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x60000400" ;;
6968                            *) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400" ;;
6969                            esac
6970
6971 fi
6972           # Extract the first word of "prelink", so it can be a program name with args.
6973 set dummy prelink; ac_word=$2
6974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6975 $as_echo_n "checking for $ac_word... " >&6; }
6976 if test "${ac_cv_path_PRELINK+set}" = set; then :
6977   $as_echo_n "(cached) " >&6
6978 else
6979   case $PRELINK in
6980   [\\/]* | ?:[\\/]*)
6981   ac_cv_path_PRELINK="$PRELINK" # Let the user override the test with a path.
6982   ;;
6983   *)
6984   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6985 for as_dir in /sbin /usr/sbin $PATH
6986 do
6987   IFS=$as_save_IFS
6988   test -z "$as_dir" && as_dir=.
6989     for ac_exec_ext in '' $ac_executable_extensions; do
6990   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6991     ac_cv_path_PRELINK="$as_dir/$ac_word$ac_exec_ext"
6992     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6993     break 2
6994   fi
6995 done
6996   done
6997 IFS=$as_save_IFS
6998
6999   test -z "$ac_cv_path_PRELINK" && ac_cv_path_PRELINK="false"
7000   ;;
7001 esac
7002 fi
7003 PRELINK=$ac_cv_path_PRELINK
7004 if test -n "$PRELINK"; then
7005   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRELINK" >&5
7006 $as_echo "$PRELINK" >&6; }
7007 else
7008   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7009 $as_echo "no" >&6; }
7010 fi
7011
7012
7013           if test "x$PRELINK" = xfalse
7014           then
7015               as_fn_append wine_warnings "|prelink not found, base address of core dlls won't be set correctly."
7016           fi
7017           ;;
7018       esac
7019
7020     else
7021       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a UnixWare (Solaris) dll" >&5
7022 $as_echo_n "checking whether we can build a UnixWare (Solaris) dll... " >&6; }
7023 if test "${ac_cv_c_dll_unixware+set}" = set; then :
7024   $as_echo_n "(cached) " >&6
7025 else
7026   ac_wine_try_cflags_saved=$CFLAGS
7027 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
7028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7029 /* end confdefs.h.  */
7030 void myfunc() {}
7031 _ACEOF
7032 if ac_fn_c_try_link "$LINENO"; then :
7033   ac_cv_c_dll_unixware="yes"
7034 else
7035   ac_cv_c_dll_unixware="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 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_unixware" >&5
7042 $as_echo "$ac_cv_c_dll_unixware" >&6; }
7043       if test "$ac_cv_c_dll_unixware" = "yes"
7044       then
7045         LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
7046         LDDLLFLAGS="-Wl,-G,-B,symbolic"
7047
7048       else
7049         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build an HP-UX dll" >&5
7050 $as_echo_n "checking whether we can build an HP-UX dll... " >&6; }
7051 if test "${ac_cv_c_dll_hpux+set}" = set; then :
7052   $as_echo_n "(cached) " >&6
7053 else
7054   ac_wine_try_cflags_saved=$CFLAGS
7055 CFLAGS="$CFLAGS -shared"
7056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7057 /* end confdefs.h.  */
7058 void myfunc() {}
7059 _ACEOF
7060 if ac_fn_c_try_link "$LINENO"; then :
7061   ac_cv_c_dll_hpux="yes"
7062 else
7063   ac_cv_c_dll_hpux="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 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_hpux" >&5
7070 $as_echo "$ac_cv_c_dll_hpux" >&6; }
7071         if test "$ac_cv_c_dll_hpux" = "yes"
7072         then
7073           LIBEXT="sl"
7074           DLLEXT=".sl"
7075           LDDLLFLAGS="-shared -fPIC"
7076           LDSHARED="\$(CC) -shared"
7077         fi
7078       fi
7079     fi
7080     ;;
7081 esac
7082
7083 enable_wineqtdecoder=${enable_wineqtdecoder:-no}
7084 enable_winequartz_drv=${enable_winequartz_drv:-no}
7085
7086 if test "$LIBEXT" = "a"; then
7087   as_fn_error $? "could not find a way to build shared libraries.
7088 It is currently not possible to build Wine without shared library
7089 (.so) support to allow transparent switch between .so and .dll files.
7090 If you are using Linux, you will need a newer binutils.
7091 " "$LINENO" 5
7092 fi
7093
7094 CROSSTEST_DISABLE=\#
7095
7096 if test "$cross_compiling" = "no" -a "x$enable_tests" != xno -a "$LIBEXT" != "dll"
7097 then
7098     case "$host_cpu" in
7099   i[3456789]86*)
7100     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 " ;;
7101   x86_64)
7102     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 " ;;
7103   *)
7104     ac_prefix_list="" ;;
7105 esac
7106 for ac_prog in $ac_prefix_list
7107 do
7108   # Extract the first word of "$ac_prog", so it can be a program name with args.
7109 set dummy $ac_prog; ac_word=$2
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7111 $as_echo_n "checking for $ac_word... " >&6; }
7112 if test "${ac_cv_prog_CROSSCC+set}" = set; then :
7113   $as_echo_n "(cached) " >&6
7114 else
7115   if test -n "$CROSSCC"; then
7116   ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
7117 else
7118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7119 for as_dir in $PATH
7120 do
7121   IFS=$as_save_IFS
7122   test -z "$as_dir" && as_dir=.
7123     for ac_exec_ext in '' $ac_executable_extensions; do
7124   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7125     ac_cv_prog_CROSSCC="$ac_prog"
7126     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7127     break 2
7128   fi
7129 done
7130   done
7131 IFS=$as_save_IFS
7132
7133 fi
7134 fi
7135 CROSSCC=$ac_cv_prog_CROSSCC
7136 if test -n "$CROSSCC"; then
7137   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CROSSCC" >&5
7138 $as_echo "$CROSSCC" >&6; }
7139 else
7140   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7141 $as_echo "no" >&6; }
7142 fi
7143
7144
7145   test -n "$CROSSCC" && break
7146 done
7147 test -n "$CROSSCC" || CROSSCC="false"
7148
7149     if test "$CROSSCC" != "false"
7150     then
7151         ac_save_CC="$CC"
7152         CC="$CROSSCC"
7153         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CROSSCC works" >&5
7154 $as_echo_n "checking whether $CROSSCC works... " >&6; }
7155         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7156 /* end confdefs.h.  */
7157
7158 int
7159 main ()
7160 {
7161
7162   ;
7163   return 0;
7164 }
7165 _ACEOF
7166 if ac_fn_c_try_compile "$LINENO"; then :
7167   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7168 $as_echo "yes" >&6; }
7169                            set x $CROSSCC
7170                            shift
7171                            target=""
7172                            while test $# -ge 1
7173                            do
7174                                case "$1" in
7175                                  *-gcc) target=`expr "$1" : '\(.*\)-gcc'` ;;
7176                                esac
7177                                shift
7178                            done
7179                            if test -n "$target"
7180                            then
7181                                CROSSTEST_DISABLE=""
7182                                CROSSTARGET="$target"
7183
7184                            fi
7185 else
7186   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7187 $as_echo "no" >&6; }
7188 fi
7189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7190         CC="$ac_save_CC"
7191     fi
7192 fi
7193
7194
7195 if test "$ac_cv_header_pthread_h" = "yes"
7196 then
7197     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
7198 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
7199 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
7200   $as_echo_n "(cached) " >&6
7201 else
7202   ac_check_lib_save_LIBS=$LIBS
7203 LIBS="-lpthread  $LIBS"
7204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7205 /* end confdefs.h.  */
7206
7207 /* Override any GCC internal prototype to avoid an error.
7208    Use char because int might match the return type of a GCC
7209    builtin and then its argument prototype would still apply.  */
7210 #ifdef __cplusplus
7211 extern "C"
7212 #endif
7213 char pthread_create ();
7214 int
7215 main ()
7216 {
7217 return pthread_create ();
7218   ;
7219   return 0;
7220 }
7221 _ACEOF
7222 if ac_fn_c_try_link "$LINENO"; then :
7223   ac_cv_lib_pthread_pthread_create=yes
7224 else
7225   ac_cv_lib_pthread_pthread_create=no
7226 fi
7227 rm -f core conftest.err conftest.$ac_objext \
7228     conftest$ac_exeext conftest.$ac_ext
7229 LIBS=$ac_check_lib_save_LIBS
7230 fi
7231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
7232 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
7233 if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
7234   LIBPTHREAD="-lpthread"
7235
7236 fi
7237
7238 fi
7239 if test "x$LIBPTHREAD" = "x"; then :
7240   case "x$with_pthread" in
7241   xno) ;;
7242   *)   as_fn_error $? "pthread ${notice_platform}development files not found.
7243 Wine cannot support threads without libpthread.
7244 Use the --without-pthread option if you really want this." "$LINENO" 5  ;;
7245 esac
7246 fi
7247
7248
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
7250 $as_echo_n "checking for X... " >&6; }
7251
7252
7253 # Check whether --with-x was given.
7254 if test "${with_x+set}" = set; then :
7255   withval=$with_x;
7256 fi
7257
7258 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7259 if test "x$with_x" = xno; then
7260   # The user explicitly disabled X.
7261   have_x=disabled
7262 else
7263   case $x_includes,$x_libraries in #(
7264     *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5 ;; #(
7265     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
7266   $as_echo_n "(cached) " >&6
7267 else
7268   # One or both of the vars are not set, and there is no cached value.
7269 ac_x_includes=no ac_x_libraries=no
7270 rm -f -r conftest.dir
7271 if mkdir conftest.dir; then
7272   cd conftest.dir
7273   cat >Imakefile <<'_ACEOF'
7274 incroot:
7275         @echo incroot='${INCROOT}'
7276 usrlibdir:
7277         @echo usrlibdir='${USRLIBDIR}'
7278 libdir:
7279         @echo libdir='${LIBDIR}'
7280 _ACEOF
7281   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
7282     # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7283     for ac_var in incroot usrlibdir libdir; do
7284       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
7285     done
7286     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7287     for ac_extension in a so sl dylib la dll; do
7288       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
7289          test -f "$ac_im_libdir/libX11.$ac_extension"; then
7290         ac_im_usrlibdir=$ac_im_libdir; break
7291       fi
7292     done
7293     # Screen out bogus values from the imake configuration.  They are
7294     # bogus both because they are the default anyway, and because
7295     # using them would break gcc on systems where it needs fixed includes.
7296     case $ac_im_incroot in
7297         /usr/include) ac_x_includes= ;;
7298         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7299     esac
7300     case $ac_im_usrlibdir in
7301         /usr/lib | /usr/lib64 | /lib | /lib64) ;;
7302         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7303     esac
7304   fi
7305   cd ..
7306   rm -f -r conftest.dir
7307 fi
7308
7309 # Standard set of common directories for X headers.
7310 # Check X11 before X11Rn because it is often a symlink to the current release.
7311 ac_x_header_dirs='
7312 /usr/X11/include
7313 /usr/X11R7/include
7314 /usr/X11R6/include
7315 /usr/X11R5/include
7316 /usr/X11R4/include
7317
7318 /usr/include/X11
7319 /usr/include/X11R7
7320 /usr/include/X11R6
7321 /usr/include/X11R5
7322 /usr/include/X11R4
7323
7324 /usr/local/X11/include
7325 /usr/local/X11R7/include
7326 /usr/local/X11R6/include
7327 /usr/local/X11R5/include
7328 /usr/local/X11R4/include
7329
7330 /usr/local/include/X11
7331 /usr/local/include/X11R7
7332 /usr/local/include/X11R6
7333 /usr/local/include/X11R5
7334 /usr/local/include/X11R4
7335
7336 /usr/X386/include
7337 /usr/x386/include
7338 /usr/XFree86/include/X11
7339
7340 /usr/include
7341 /usr/local/include
7342 /usr/unsupported/include
7343 /usr/athena/include
7344 /usr/local/x11r5/include
7345 /usr/lpp/Xamples/include
7346
7347 /usr/openwin/include
7348 /usr/openwin/share/include'
7349
7350 if test "$ac_x_includes" = no; then
7351   # Guess where to find include files, by looking for Xlib.h.
7352   # First, try using that file with no special directory specified.
7353   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7354 /* end confdefs.h.  */
7355 #include <X11/Xlib.h>
7356 _ACEOF
7357 if ac_fn_c_try_cpp "$LINENO"; then :
7358   # We can compile using X headers with no special include directory.
7359 ac_x_includes=
7360 else
7361   for ac_dir in $ac_x_header_dirs; do
7362   if test -r "$ac_dir/X11/Xlib.h"; then
7363     ac_x_includes=$ac_dir
7364     break
7365   fi
7366 done
7367 fi
7368 rm -f conftest.err conftest.i conftest.$ac_ext
7369 fi # $ac_x_includes = no
7370
7371 if test "$ac_x_libraries" = no; then
7372   # Check for the libraries.
7373   # See if we find them without any special options.
7374   # Don't add to $LIBS permanently.
7375   ac_save_LIBS=$LIBS
7376   LIBS="-lX11 $LIBS"
7377   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7378 /* end confdefs.h.  */
7379 #include <X11/Xlib.h>
7380 int
7381 main ()
7382 {
7383 XrmInitialize ()
7384   ;
7385   return 0;
7386 }
7387 _ACEOF
7388 if ac_fn_c_try_link "$LINENO"; then :
7389   LIBS=$ac_save_LIBS
7390 # We can link X programs with no special library path.
7391 ac_x_libraries=
7392 else
7393   LIBS=$ac_save_LIBS
7394 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7395 do
7396   # Don't even attempt the hair of trying to link an X program!
7397   for ac_extension in a so sl dylib la dll; do
7398     if test -r "$ac_dir/libX11.$ac_extension"; then
7399       ac_x_libraries=$ac_dir
7400       break 2
7401     fi
7402   done
7403 done
7404 fi
7405 rm -f core conftest.err conftest.$ac_objext \
7406     conftest$ac_exeext conftest.$ac_ext
7407 fi # $ac_x_libraries = no
7408
7409 case $ac_x_includes,$ac_x_libraries in #(
7410   no,* | *,no | *\'*)
7411     # Didn't find X, or a directory has "'" in its name.
7412     ac_cv_have_x="have_x=no";; #(
7413   *)
7414     # Record where we found X for the cache.
7415     ac_cv_have_x="have_x=yes\
7416         ac_x_includes='$ac_x_includes'\
7417         ac_x_libraries='$ac_x_libraries'"
7418 esac
7419 fi
7420 ;; #(
7421     *) have_x=yes;;
7422   esac
7423   eval "$ac_cv_have_x"
7424 fi # $with_x != no
7425
7426 if test "$have_x" != yes; then
7427   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
7428 $as_echo "$have_x" >&6; }
7429   no_x=yes
7430 else
7431   # If each of the values was on the command line, it overrides each guess.
7432   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7433   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7434   # Update the cache value to reflect the command line values.
7435   ac_cv_have_x="have_x=yes\
7436         ac_x_includes='$x_includes'\
7437         ac_x_libraries='$x_libraries'"
7438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
7439 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
7440 fi
7441
7442 if test "$no_x" = yes; then
7443   # Not all programs may use this symbol, but it does not hurt to define it.
7444
7445 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
7446
7447   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7448 else
7449   if test -n "$x_includes"; then
7450     X_CFLAGS="$X_CFLAGS -I$x_includes"
7451   fi
7452
7453   # It would also be nice to do this for all -L options, not just this one.
7454   if test -n "$x_libraries"; then
7455     X_LIBS="$X_LIBS -L$x_libraries"
7456     # For Solaris; some versions of Sun CC require a space after -R and
7457     # others require no space.  Words are not sufficient . . . .
7458     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
7459 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
7460     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7461     ac_xsave_c_werror_flag=$ac_c_werror_flag
7462     ac_c_werror_flag=yes
7463     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7464 /* end confdefs.h.  */
7465
7466 int
7467 main ()
7468 {
7469
7470   ;
7471   return 0;
7472 }
7473 _ACEOF
7474 if ac_fn_c_try_link "$LINENO"; then :
7475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7476 $as_echo "no" >&6; }
7477        X_LIBS="$X_LIBS -R$x_libraries"
7478 else
7479   LIBS="$ac_xsave_LIBS -R $x_libraries"
7480        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7481 /* end confdefs.h.  */
7482
7483 int
7484 main ()
7485 {
7486
7487   ;
7488   return 0;
7489 }
7490 _ACEOF
7491 if ac_fn_c_try_link "$LINENO"; then :
7492   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7493 $as_echo "yes" >&6; }
7494           X_LIBS="$X_LIBS -R $x_libraries"
7495 else
7496   { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
7497 $as_echo "neither works" >&6; }
7498 fi
7499 rm -f core conftest.err conftest.$ac_objext \
7500     conftest$ac_exeext conftest.$ac_ext
7501 fi
7502 rm -f core conftest.err conftest.$ac_objext \
7503     conftest$ac_exeext conftest.$ac_ext
7504     ac_c_werror_flag=$ac_xsave_c_werror_flag
7505     LIBS=$ac_xsave_LIBS
7506   fi
7507
7508   # Check for system-dependent libraries X programs must link with.
7509   # Do this before checking for the system-independent R6 libraries
7510   # (-lICE), since we may need -lsocket or whatever for X linking.
7511
7512   if test "$ISC" = yes; then
7513     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7514   else
7515     # Martyn Johnson says this is needed for Ultrix, if the X
7516     # libraries were built with DECnet support.  And Karl Berry says
7517     # the Alpha needs dnet_stub (dnet does not exist).
7518     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
7519     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7520 /* end confdefs.h.  */
7521
7522 /* Override any GCC internal prototype to avoid an error.
7523    Use char because int might match the return type of a GCC
7524    builtin and then its argument prototype would still apply.  */
7525 #ifdef __cplusplus
7526 extern "C"
7527 #endif
7528 char XOpenDisplay ();
7529 int
7530 main ()
7531 {
7532 return XOpenDisplay ();
7533   ;
7534   return 0;
7535 }
7536 _ACEOF
7537 if ac_fn_c_try_link "$LINENO"; then :
7538
7539 else
7540   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
7541 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
7542 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
7543   $as_echo_n "(cached) " >&6
7544 else
7545   ac_check_lib_save_LIBS=$LIBS
7546 LIBS="-ldnet  $LIBS"
7547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7548 /* end confdefs.h.  */
7549
7550 /* Override any GCC internal prototype to avoid an error.
7551    Use char because int might match the return type of a GCC
7552    builtin and then its argument prototype would still apply.  */
7553 #ifdef __cplusplus
7554 extern "C"
7555 #endif
7556 char dnet_ntoa ();
7557 int
7558 main ()
7559 {
7560 return dnet_ntoa ();
7561   ;
7562   return 0;
7563 }
7564 _ACEOF
7565 if ac_fn_c_try_link "$LINENO"; then :
7566   ac_cv_lib_dnet_dnet_ntoa=yes
7567 else
7568   ac_cv_lib_dnet_dnet_ntoa=no
7569 fi
7570 rm -f core conftest.err conftest.$ac_objext \
7571     conftest$ac_exeext conftest.$ac_ext
7572 LIBS=$ac_check_lib_save_LIBS
7573 fi
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7575 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
7576 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
7577   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7578 fi
7579
7580     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7581       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
7582 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
7583 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
7584   $as_echo_n "(cached) " >&6
7585 else
7586   ac_check_lib_save_LIBS=$LIBS
7587 LIBS="-ldnet_stub  $LIBS"
7588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7589 /* end confdefs.h.  */
7590
7591 /* Override any GCC internal prototype to avoid an error.
7592    Use char because int might match the return type of a GCC
7593    builtin and then its argument prototype would still apply.  */
7594 #ifdef __cplusplus
7595 extern "C"
7596 #endif
7597 char dnet_ntoa ();
7598 int
7599 main ()
7600 {
7601 return dnet_ntoa ();
7602   ;
7603   return 0;
7604 }
7605 _ACEOF
7606 if ac_fn_c_try_link "$LINENO"; then :
7607   ac_cv_lib_dnet_stub_dnet_ntoa=yes
7608 else
7609   ac_cv_lib_dnet_stub_dnet_ntoa=no
7610 fi
7611 rm -f core conftest.err conftest.$ac_objext \
7612     conftest$ac_exeext conftest.$ac_ext
7613 LIBS=$ac_check_lib_save_LIBS
7614 fi
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
7616 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
7617 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
7618   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7619 fi
7620
7621     fi
7622 fi
7623 rm -f core conftest.err conftest.$ac_objext \
7624     conftest$ac_exeext conftest.$ac_ext
7625     LIBS="$ac_xsave_LIBS"
7626
7627     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7628     # to get the SysV transport functions.
7629     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7630     # needs -lnsl.
7631     # The nsl library prevents programs from opening the X display
7632     # on Irix 5.2, according to T.E. Dickey.
7633     # The functions gethostbyname, getservbyname, and inet_addr are
7634     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
7635     ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
7636 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
7637
7638 fi
7639
7640     if test $ac_cv_func_gethostbyname = no; then
7641       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
7642 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
7643 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
7644   $as_echo_n "(cached) " >&6
7645 else
7646   ac_check_lib_save_LIBS=$LIBS
7647 LIBS="-lnsl  $LIBS"
7648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7649 /* end confdefs.h.  */
7650
7651 /* Override any GCC internal prototype to avoid an error.
7652    Use char because int might match the return type of a GCC
7653    builtin and then its argument prototype would still apply.  */
7654 #ifdef __cplusplus
7655 extern "C"
7656 #endif
7657 char gethostbyname ();
7658 int
7659 main ()
7660 {
7661 return gethostbyname ();
7662   ;
7663   return 0;
7664 }
7665 _ACEOF
7666 if ac_fn_c_try_link "$LINENO"; then :
7667   ac_cv_lib_nsl_gethostbyname=yes
7668 else
7669   ac_cv_lib_nsl_gethostbyname=no
7670 fi
7671 rm -f core conftest.err conftest.$ac_objext \
7672     conftest$ac_exeext conftest.$ac_ext
7673 LIBS=$ac_check_lib_save_LIBS
7674 fi
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
7676 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
7677 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
7678   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7679 fi
7680
7681       if test $ac_cv_lib_nsl_gethostbyname = no; then
7682         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
7683 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
7684 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
7685   $as_echo_n "(cached) " >&6
7686 else
7687   ac_check_lib_save_LIBS=$LIBS
7688 LIBS="-lbsd  $LIBS"
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 gethostbyname ();
7699 int
7700 main ()
7701 {
7702 return gethostbyname ();
7703   ;
7704   return 0;
7705 }
7706 _ACEOF
7707 if ac_fn_c_try_link "$LINENO"; then :
7708   ac_cv_lib_bsd_gethostbyname=yes
7709 else
7710   ac_cv_lib_bsd_gethostbyname=no
7711 fi
7712 rm -f core conftest.err conftest.$ac_objext \
7713     conftest$ac_exeext conftest.$ac_ext
7714 LIBS=$ac_check_lib_save_LIBS
7715 fi
7716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
7717 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
7718 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
7719   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
7720 fi
7721
7722       fi
7723     fi
7724
7725     # lieder@skyler.mavd.honeywell.com says without -lsocket,
7726     # socket/setsockopt and other routines are undefined under SCO ODT
7727     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
7728     # on later versions), says Simon Leinen: it contains gethostby*
7729     # variants that don't use the name server (or something).  -lsocket
7730     # must be given before -lnsl if both are needed.  We assume that
7731     # if connect needs -lnsl, so does gethostbyname.
7732     ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
7733 if test "x$ac_cv_func_connect" = x""yes; then :
7734
7735 fi
7736
7737     if test $ac_cv_func_connect = no; then
7738       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
7739 $as_echo_n "checking for connect in -lsocket... " >&6; }
7740 if test "${ac_cv_lib_socket_connect+set}" = set; then :
7741   $as_echo_n "(cached) " >&6
7742 else
7743   ac_check_lib_save_LIBS=$LIBS
7744 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7746 /* end confdefs.h.  */
7747
7748 /* Override any GCC internal prototype to avoid an error.
7749    Use char because int might match the return type of a GCC
7750    builtin and then its argument prototype would still apply.  */
7751 #ifdef __cplusplus
7752 extern "C"
7753 #endif
7754 char connect ();
7755 int
7756 main ()
7757 {
7758 return connect ();
7759   ;
7760   return 0;
7761 }
7762 _ACEOF
7763 if ac_fn_c_try_link "$LINENO"; then :
7764   ac_cv_lib_socket_connect=yes
7765 else
7766   ac_cv_lib_socket_connect=no
7767 fi
7768 rm -f core conftest.err conftest.$ac_objext \
7769     conftest$ac_exeext conftest.$ac_ext
7770 LIBS=$ac_check_lib_save_LIBS
7771 fi
7772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
7773 $as_echo "$ac_cv_lib_socket_connect" >&6; }
7774 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
7775   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7776 fi
7777
7778     fi
7779
7780     # Guillermo Gomez says -lposix is necessary on A/UX.
7781     ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
7782 if test "x$ac_cv_func_remove" = x""yes; then :
7783
7784 fi
7785
7786     if test $ac_cv_func_remove = no; then
7787       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
7788 $as_echo_n "checking for remove in -lposix... " >&6; }
7789 if test "${ac_cv_lib_posix_remove+set}" = set; then :
7790   $as_echo_n "(cached) " >&6
7791 else
7792   ac_check_lib_save_LIBS=$LIBS
7793 LIBS="-lposix  $LIBS"
7794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7795 /* end confdefs.h.  */
7796
7797 /* Override any GCC internal prototype to avoid an error.
7798    Use char because int might match the return type of a GCC
7799    builtin and then its argument prototype would still apply.  */
7800 #ifdef __cplusplus
7801 extern "C"
7802 #endif
7803 char remove ();
7804 int
7805 main ()
7806 {
7807 return remove ();
7808   ;
7809   return 0;
7810 }
7811 _ACEOF
7812 if ac_fn_c_try_link "$LINENO"; then :
7813   ac_cv_lib_posix_remove=yes
7814 else
7815   ac_cv_lib_posix_remove=no
7816 fi
7817 rm -f core conftest.err conftest.$ac_objext \
7818     conftest$ac_exeext conftest.$ac_ext
7819 LIBS=$ac_check_lib_save_LIBS
7820 fi
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
7822 $as_echo "$ac_cv_lib_posix_remove" >&6; }
7823 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
7824   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7825 fi
7826
7827     fi
7828
7829     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7830     ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
7831 if test "x$ac_cv_func_shmat" = x""yes; then :
7832
7833 fi
7834
7835     if test $ac_cv_func_shmat = no; then
7836       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
7837 $as_echo_n "checking for shmat in -lipc... " >&6; }
7838 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
7839   $as_echo_n "(cached) " >&6
7840 else
7841   ac_check_lib_save_LIBS=$LIBS
7842 LIBS="-lipc  $LIBS"
7843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7844 /* end confdefs.h.  */
7845
7846 /* Override any GCC internal prototype to avoid an error.
7847    Use char because int might match the return type of a GCC
7848    builtin and then its argument prototype would still apply.  */
7849 #ifdef __cplusplus
7850 extern "C"
7851 #endif
7852 char shmat ();
7853 int
7854 main ()
7855 {
7856 return shmat ();
7857   ;
7858   return 0;
7859 }
7860 _ACEOF
7861 if ac_fn_c_try_link "$LINENO"; then :
7862   ac_cv_lib_ipc_shmat=yes
7863 else
7864   ac_cv_lib_ipc_shmat=no
7865 fi
7866 rm -f core conftest.err conftest.$ac_objext \
7867     conftest$ac_exeext conftest.$ac_ext
7868 LIBS=$ac_check_lib_save_LIBS
7869 fi
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
7871 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
7872 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
7873   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7874 fi
7875
7876     fi
7877   fi
7878
7879   # Check for libraries that X11R6 Xt/Xaw programs need.
7880   ac_save_LDFLAGS=$LDFLAGS
7881   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7882   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7883   # check for ICE first), but we must link in the order -lSM -lICE or
7884   # we get undefined symbols.  So assume we have SM if we have ICE.
7885   # These have to be linked with before -lX11, unlike the other
7886   # libraries we check for below, so use a different variable.
7887   # John Interrante, Karl Berry
7888   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
7889 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
7890 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
7891   $as_echo_n "(cached) " >&6
7892 else
7893   ac_check_lib_save_LIBS=$LIBS
7894 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7896 /* end confdefs.h.  */
7897
7898 /* Override any GCC internal prototype to avoid an error.
7899    Use char because int might match the return type of a GCC
7900    builtin and then its argument prototype would still apply.  */
7901 #ifdef __cplusplus
7902 extern "C"
7903 #endif
7904 char IceConnectionNumber ();
7905 int
7906 main ()
7907 {
7908 return IceConnectionNumber ();
7909   ;
7910   return 0;
7911 }
7912 _ACEOF
7913 if ac_fn_c_try_link "$LINENO"; then :
7914   ac_cv_lib_ICE_IceConnectionNumber=yes
7915 else
7916   ac_cv_lib_ICE_IceConnectionNumber=no
7917 fi
7918 rm -f core conftest.err conftest.$ac_objext \
7919     conftest$ac_exeext conftest.$ac_ext
7920 LIBS=$ac_check_lib_save_LIBS
7921 fi
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7923 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
7924 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
7925   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7926 fi
7927
7928   LDFLAGS=$ac_save_LDFLAGS
7929
7930 fi
7931
7932
7933 if test "$have_x" = "yes"
7934 then
7935     XLIB="-lX11"
7936     ac_save_CPPFLAGS="$CPPFLAGS"
7937     CPPFLAGS="$CPPFLAGS $X_CFLAGS"
7938
7939     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lX11" >&5
7940 $as_echo_n "checking for -lX11... " >&6; }
7941 if test "${ac_cv_lib_soname_X11+set}" = set; then :
7942   $as_echo_n "(cached) " >&6
7943 else
7944   ac_check_soname_save_LIBS=$LIBS
7945 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
7946   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7947 /* end confdefs.h.  */
7948
7949 /* Override any GCC internal prototype to avoid an error.
7950    Use char because int might match the return type of a GCC
7951    builtin and then its argument prototype would still apply.  */
7952 #ifdef __cplusplus
7953 extern "C"
7954 #endif
7955 char XCreateWindow ();
7956 int
7957 main ()
7958 {
7959 return XCreateWindow ();
7960   ;
7961   return 0;
7962 }
7963 _ACEOF
7964 if ac_fn_c_try_link "$LINENO"; then :
7965   case "$LIBEXT" in
7966     dll) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest.exe | grep "X11" | sed -e "s/dll.*/dll/"';2,$d'` ;;
7967     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'` ;;
7968     *) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep "libX11\\.$LIBEXT" | sed -e "s/^.*\(libX11\.$LIBEXT[^     ]*\).*$/\1/"';2,$d'` ;;
7969   esac
7970 fi
7971 rm -f core conftest.err conftest.$ac_objext \
7972     conftest$ac_exeext conftest.$ac_ext
7973   LIBS=$ac_check_soname_save_LIBS
7974 fi
7975 if test "x$ac_cv_lib_soname_X11" = "x"; then :
7976   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7977 $as_echo "not found" >&6; }
7978
7979 else
7980   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_X11" >&5
7981 $as_echo "$ac_cv_lib_soname_X11" >&6; }
7982
7983 cat >>confdefs.h <<_ACEOF
7984 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
7985 _ACEOF
7986
7987
7988 fi
7989     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXext" >&5
7990 $as_echo_n "checking for -lXext... " >&6; }
7991 if test "${ac_cv_lib_soname_Xext+set}" = set; then :
7992   $as_echo_n "(cached) " >&6
7993 else
7994   ac_check_soname_save_LIBS=$LIBS
7995 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
7996   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7997 /* end confdefs.h.  */
7998
7999 /* Override any GCC internal prototype to avoid an error.
8000    Use char because int might match the return type of a GCC
8001    builtin and then its argument prototype would still apply.  */
8002 #ifdef __cplusplus
8003 extern "C"
8004 #endif
8005 char XextCreateExtension ();
8006 int
8007 main ()
8008 {
8009 return XextCreateExtension ();
8010   ;
8011   return 0;
8012 }
8013 _ACEOF
8014 if ac_fn_c_try_link "$LINENO"; then :
8015   case "$LIBEXT" in
8016     dll) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest.exe | grep "Xext" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8017     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'` ;;
8018     *) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXext\\.$LIBEXT" | sed -e "s/^.*\(libXext\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
8019   esac
8020 fi
8021 rm -f core conftest.err conftest.$ac_objext \
8022     conftest$ac_exeext conftest.$ac_ext
8023   LIBS=$ac_check_soname_save_LIBS
8024 fi
8025 if test "x$ac_cv_lib_soname_Xext" = "x"; then :
8026   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8027 $as_echo "not found" >&6; }
8028
8029 else
8030   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xext" >&5
8031 $as_echo "$ac_cv_lib_soname_Xext" >&6; }
8032
8033 cat >>confdefs.h <<_ACEOF
8034 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
8035 _ACEOF
8036
8037        XLIB="-lXext $XLIB"
8038 fi
8039
8040         for ac_header in X11/Xlib.h \
8041                       X11/XKBlib.h \
8042                       X11/Xutil.h \
8043                       X11/Xcursor/Xcursor.h \
8044                       X11/extensions/shape.h \
8045                       X11/extensions/XInput.h \
8046                       X11/extensions/XInput2.h \
8047                       X11/extensions/XShm.h \
8048                       X11/extensions/Xcomposite.h \
8049                       X11/extensions/Xinerama.h \
8050                       X11/extensions/Xrandr.h \
8051                       X11/extensions/Xrender.h \
8052                       X11/extensions/xf86vmode.h \
8053                       X11/extensions/xf86vmproto.h
8054 do :
8055   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8056 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_X11_XLIB_H
8057 # include <X11/Xlib.h>
8058 #endif
8059 #ifdef HAVE_X11_XUTIL_H
8060 # include <X11/Xutil.h>
8061 #endif
8062 "
8063 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8064   cat >>confdefs.h <<_ACEOF
8065 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8066 _ACEOF
8067
8068 fi
8069
8070 done
8071
8072
8073                 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
8074         then
8075               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbQueryExtension in -lX11" >&5
8076 $as_echo_n "checking for XkbQueryExtension in -lX11... " >&6; }
8077 if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then :
8078   $as_echo_n "(cached) " >&6
8079 else
8080   ac_check_lib_save_LIBS=$LIBS
8081 LIBS="-lX11 $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8083 /* end confdefs.h.  */
8084
8085 /* Override any GCC internal prototype to avoid an error.
8086    Use char because int might match the return type of a GCC
8087    builtin and then its argument prototype would still apply.  */
8088 #ifdef __cplusplus
8089 extern "C"
8090 #endif
8091 char XkbQueryExtension ();
8092 int
8093 main ()
8094 {
8095 return XkbQueryExtension ();
8096   ;
8097   return 0;
8098 }
8099 _ACEOF
8100 if ac_fn_c_try_link "$LINENO"; then :
8101   ac_cv_lib_X11_XkbQueryExtension=yes
8102 else
8103   ac_cv_lib_X11_XkbQueryExtension=no
8104 fi
8105 rm -f core conftest.err conftest.$ac_objext \
8106     conftest$ac_exeext conftest.$ac_ext
8107 LIBS=$ac_check_lib_save_LIBS
8108 fi
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
8110 $as_echo "$ac_cv_lib_X11_XkbQueryExtension" >&6; }
8111 if test "x$ac_cv_lib_X11_XkbQueryExtension" = x""yes; then :
8112
8113 $as_echo "#define HAVE_XKB 1" >>confdefs.h
8114
8115 fi
8116
8117         fi
8118
8119                 if test "$ac_cv_header_X11_Xcursor_Xcursor_h" = "yes"
8120         then
8121             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcursor" >&5
8122 $as_echo_n "checking for -lXcursor... " >&6; }
8123 if test "${ac_cv_lib_soname_Xcursor+set}" = set; then :
8124   $as_echo_n "(cached) " >&6
8125 else
8126   ac_check_soname_save_LIBS=$LIBS
8127 LIBS="-lXcursor $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8128   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8129 /* end confdefs.h.  */
8130
8131 /* Override any GCC internal prototype to avoid an error.
8132    Use char because int might match the return type of a GCC
8133    builtin and then its argument prototype would still apply.  */
8134 #ifdef __cplusplus
8135 extern "C"
8136 #endif
8137 char XcursorImageLoadCursor ();
8138 int
8139 main ()
8140 {
8141 return XcursorImageLoadCursor ();
8142   ;
8143   return 0;
8144 }
8145 _ACEOF
8146 if ac_fn_c_try_link "$LINENO"; then :
8147   case "$LIBEXT" in
8148     dll) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest.exe | grep "Xcursor" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8149     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'` ;;
8150     *) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXcursor\\.$LIBEXT" | sed -e "s/^.*\(libXcursor\.$LIBEXT[^         ]*\).*$/\1/"';2,$d'` ;;
8151   esac
8152 fi
8153 rm -f core conftest.err conftest.$ac_objext \
8154     conftest$ac_exeext conftest.$ac_ext
8155   LIBS=$ac_check_soname_save_LIBS
8156 fi
8157 if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
8158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8159 $as_echo "not found" >&6; }
8160
8161 else
8162   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcursor" >&5
8163 $as_echo "$ac_cv_lib_soname_Xcursor" >&6; }
8164
8165 cat >>confdefs.h <<_ACEOF
8166 #define SONAME_LIBXCURSOR "$ac_cv_lib_soname_Xcursor"
8167 _ACEOF
8168
8169
8170 fi
8171         fi
8172         if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
8173   case "x$with_xcursor" in
8174   x)   as_fn_append wine_notices "|libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported." ;;
8175   xno) ;;
8176   *)   as_fn_error $? "libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported.
8177 This is an error since --with-xcursor was requested." "$LINENO" 5  ;;
8178 esac
8179 fi
8180
8181                 if test "$ac_cv_header_X11_extensions_XInput_h" = "yes"
8182         then
8183             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXi" >&5
8184 $as_echo_n "checking for -lXi... " >&6; }
8185 if test "${ac_cv_lib_soname_Xi+set}" = set; then :
8186   $as_echo_n "(cached) " >&6
8187 else
8188   ac_check_soname_save_LIBS=$LIBS
8189 LIBS="-lXi $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8190   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8191 /* end confdefs.h.  */
8192
8193 /* Override any GCC internal prototype to avoid an error.
8194    Use char because int might match the return type of a GCC
8195    builtin and then its argument prototype would still apply.  */
8196 #ifdef __cplusplus
8197 extern "C"
8198 #endif
8199 char XOpenDevice ();
8200 int
8201 main ()
8202 {
8203 return XOpenDevice ();
8204   ;
8205   return 0;
8206 }
8207 _ACEOF
8208 if ac_fn_c_try_link "$LINENO"; then :
8209   case "$LIBEXT" in
8210     dll) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest.exe | grep "Xi" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8211     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'` ;;
8212     *) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXi\\.$LIBEXT" | sed -e "s/^.*\(libXi\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'` ;;
8213   esac
8214 fi
8215 rm -f core conftest.err conftest.$ac_objext \
8216     conftest$ac_exeext conftest.$ac_ext
8217   LIBS=$ac_check_soname_save_LIBS
8218 fi
8219 if test "x$ac_cv_lib_soname_Xi" = "x"; then :
8220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8221 $as_echo "not found" >&6; }
8222
8223 else
8224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xi" >&5
8225 $as_echo "$ac_cv_lib_soname_Xi" >&6; }
8226
8227 cat >>confdefs.h <<_ACEOF
8228 #define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
8229 _ACEOF
8230
8231
8232 fi
8233         fi
8234         if test "x$ac_cv_lib_soname_Xi" = "x"; then :
8235   case "x$with_xinput" in
8236   x)   as_fn_append wine_notices "|libxi ${notice_platform}development files not found, the Xinput extension won't be supported." ;;
8237   xno) ;;
8238   *)   as_fn_error $? "libxi ${notice_platform}development files not found, the Xinput extension won't be supported.
8239 This is an error since --with-xinput was requested." "$LINENO" 5  ;;
8240 esac
8241 fi
8242
8243                 if test "x$ac_cv_lib_soname_Xi" != x
8244         then
8245             if test "$ac_cv_header_X11_extensions_XInput2_h" != "yes"; then :
8246   case "x$with_xinput2" in
8247   x)   as_fn_append wine_notices "|XInput2 headers not found, the XInput 2 extension won't be supported." ;;
8248   xno) ;;
8249   *)   as_fn_error $? "XInput2 headers not found, the XInput 2 extension won't be supported.
8250 This is an error since --with-xinput2 was requested." "$LINENO" 5  ;;
8251 esac
8252 fi
8253         fi
8254
8255                 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
8256         then
8257               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
8258 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
8259 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then :
8260   $as_echo_n "(cached) " >&6
8261 else
8262   ac_check_lib_save_LIBS=$LIBS
8263 LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8265 /* end confdefs.h.  */
8266
8267 /* Override any GCC internal prototype to avoid an error.
8268    Use char because int might match the return type of a GCC
8269    builtin and then its argument prototype would still apply.  */
8270 #ifdef __cplusplus
8271 extern "C"
8272 #endif
8273 char XShmQueryExtension ();
8274 int
8275 main ()
8276 {
8277 return XShmQueryExtension ();
8278   ;
8279   return 0;
8280 }
8281 _ACEOF
8282 if ac_fn_c_try_link "$LINENO"; then :
8283   ac_cv_lib_Xext_XShmQueryExtension=yes
8284 else
8285   ac_cv_lib_Xext_XShmQueryExtension=no
8286 fi
8287 rm -f core conftest.err conftest.$ac_objext \
8288     conftest$ac_exeext conftest.$ac_ext
8289 LIBS=$ac_check_lib_save_LIBS
8290 fi
8291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
8292 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
8293 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = x""yes; then :
8294
8295 $as_echo "#define HAVE_LIBXXSHM 1" >>confdefs.h
8296
8297 fi
8298
8299         fi
8300         if test "$ac_cv_lib_Xext_XShmQueryExtension" != "yes"; then :
8301   case "x$with_xshm" in
8302   x)   as_fn_append wine_notices "|XShm ${notice_platform}development files not found, X Shared Memory won't be supported." ;;
8303   xno) ;;
8304   *)   as_fn_error $? "XShm ${notice_platform}development files not found, X Shared Memory won't be supported.
8305 This is an error since --with-xshm was requested." "$LINENO" 5  ;;
8306 esac
8307 fi
8308
8309                 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
8310         then
8311               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
8312 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
8313 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
8314   $as_echo_n "(cached) " >&6
8315 else
8316   ac_check_lib_save_LIBS=$LIBS
8317 LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8319 /* end confdefs.h.  */
8320
8321 /* Override any GCC internal prototype to avoid an error.
8322    Use char because int might match the return type of a GCC
8323    builtin and then its argument prototype would still apply.  */
8324 #ifdef __cplusplus
8325 extern "C"
8326 #endif
8327 char XShapeQueryExtension ();
8328 int
8329 main ()
8330 {
8331 return XShapeQueryExtension ();
8332   ;
8333   return 0;
8334 }
8335 _ACEOF
8336 if ac_fn_c_try_link "$LINENO"; then :
8337   ac_cv_lib_Xext_XShapeQueryExtension=yes
8338 else
8339   ac_cv_lib_Xext_XShapeQueryExtension=no
8340 fi
8341 rm -f core conftest.err conftest.$ac_objext \
8342     conftest$ac_exeext conftest.$ac_ext
8343 LIBS=$ac_check_lib_save_LIBS
8344 fi
8345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8346 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
8347 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
8348
8349 $as_echo "#define HAVE_LIBXSHAPE 1" >>confdefs.h
8350
8351 fi
8352
8353         fi
8354         if test "$ac_cv_lib_Xext_XShapeQueryExtension" != "yes"; then :
8355   case "x$with_xshape" in
8356   x)   as_fn_append wine_notices "|XShape ${notice_platform}development files not found, XShape won't be supported." ;;
8357   xno) ;;
8358   *)   as_fn_error $? "XShape ${notice_platform}development files not found, XShape won't be supported.
8359 This is an error since --with-xshape was requested." "$LINENO" 5  ;;
8360 esac
8361 fi
8362
8363                 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes" -o "$ac_cv_header_X11_extensions_xf86vmproto_h" = "yes"
8364         then
8365             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXxf86vm" >&5
8366 $as_echo_n "checking for -lXxf86vm... " >&6; }
8367 if test "${ac_cv_lib_soname_Xxf86vm+set}" = set; then :
8368   $as_echo_n "(cached) " >&6
8369 else
8370   ac_check_soname_save_LIBS=$LIBS
8371 LIBS="-lXxf86vm $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8372   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8373 /* end confdefs.h.  */
8374
8375 /* Override any GCC internal prototype to avoid an error.
8376    Use char because int might match the return type of a GCC
8377    builtin and then its argument prototype would still apply.  */
8378 #ifdef __cplusplus
8379 extern "C"
8380 #endif
8381 char XF86VidModeQueryExtension ();
8382 int
8383 main ()
8384 {
8385 return XF86VidModeQueryExtension ();
8386   ;
8387   return 0;
8388 }
8389 _ACEOF
8390 if ac_fn_c_try_link "$LINENO"; then :
8391   case "$LIBEXT" in
8392     dll) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest.exe | grep "Xxf86vm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8393     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'` ;;
8394     *) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXxf86vm\\.$LIBEXT" | sed -e "s/^.*\(libXxf86vm\.$LIBEXT[^         ]*\).*$/\1/"';2,$d'` ;;
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_Xxf86vm" = "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_Xxf86vm" >&5
8407 $as_echo "$ac_cv_lib_soname_Xxf86vm" >&6; }
8408
8409 cat >>confdefs.h <<_ACEOF
8410 #define SONAME_LIBXXF86VM "$ac_cv_lib_soname_Xxf86vm"
8411 _ACEOF
8412
8413
8414 fi
8415         fi
8416         if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
8417   case "x$with_xxf86vm" in
8418   x)   as_fn_append wine_notices "|libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported." ;;
8419   xno) ;;
8420   *)   as_fn_error $? "libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported.
8421 This is an error since --with-xxf86vm was requested." "$LINENO" 5  ;;
8422 esac
8423 fi
8424
8425                 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"
8426         then
8427             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrender" >&5
8428 $as_echo_n "checking for -lXrender... " >&6; }
8429 if test "${ac_cv_lib_soname_Xrender+set}" = set; then :
8430   $as_echo_n "(cached) " >&6
8431 else
8432   ac_check_soname_save_LIBS=$LIBS
8433 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8434   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8435 /* end confdefs.h.  */
8436
8437 /* Override any GCC internal prototype to avoid an error.
8438    Use char because int might match the return type of a GCC
8439    builtin and then its argument prototype would still apply.  */
8440 #ifdef __cplusplus
8441 extern "C"
8442 #endif
8443 char XRenderQueryExtension ();
8444 int
8445 main ()
8446 {
8447 return XRenderQueryExtension ();
8448   ;
8449   return 0;
8450 }
8451 _ACEOF
8452 if ac_fn_c_try_link "$LINENO"; then :
8453   case "$LIBEXT" in
8454     dll) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest.exe | grep "Xrender" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8455     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'` ;;
8456     *) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXrender\\.$LIBEXT" | sed -e "s/^.*\(libXrender\.$LIBEXT[^         ]*\).*$/\1/"';2,$d'` ;;
8457   esac
8458 fi
8459 rm -f core conftest.err conftest.$ac_objext \
8460     conftest$ac_exeext conftest.$ac_ext
8461   LIBS=$ac_check_soname_save_LIBS
8462 fi
8463 if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
8464   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8465 $as_echo "not found" >&6; }
8466
8467 else
8468   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrender" >&5
8469 $as_echo "$ac_cv_lib_soname_Xrender" >&6; }
8470
8471 cat >>confdefs.h <<_ACEOF
8472 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
8473 _ACEOF
8474
8475        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderSetPictureTransform in -lXrender" >&5
8476 $as_echo_n "checking for XRenderSetPictureTransform in -lXrender... " >&6; }
8477 if test "${ac_cv_lib_Xrender_XRenderSetPictureTransform+set}" = set; then :
8478   $as_echo_n "(cached) " >&6
8479 else
8480   ac_check_lib_save_LIBS=$LIBS
8481 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8483 /* end confdefs.h.  */
8484
8485 /* Override any GCC internal prototype to avoid an error.
8486    Use char because int might match the return type of a GCC
8487    builtin and then its argument prototype would still apply.  */
8488 #ifdef __cplusplus
8489 extern "C"
8490 #endif
8491 char XRenderSetPictureTransform ();
8492 int
8493 main ()
8494 {
8495 return XRenderSetPictureTransform ();
8496   ;
8497   return 0;
8498 }
8499 _ACEOF
8500 if ac_fn_c_try_link "$LINENO"; then :
8501   ac_cv_lib_Xrender_XRenderSetPictureTransform=yes
8502 else
8503   ac_cv_lib_Xrender_XRenderSetPictureTransform=no
8504 fi
8505 rm -f core conftest.err conftest.$ac_objext \
8506     conftest$ac_exeext conftest.$ac_ext
8507 LIBS=$ac_check_lib_save_LIBS
8508 fi
8509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5
8510 $as_echo "$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6; }
8511 if test "x$ac_cv_lib_Xrender_XRenderSetPictureTransform" = x""yes; then :
8512
8513 $as_echo "#define HAVE_XRENDERSETPICTURETRANSFORM 1" >>confdefs.h
8514
8515 fi
8516
8517 fi
8518
8519         fi
8520         if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
8521   case "x$with_xrender" in
8522   x)   as_fn_append wine_warnings "|libxrender ${notice_platform}development files not found, XRender won't be supported." ;;
8523   xno) ;;
8524   *)   as_fn_error $? "libxrender ${notice_platform}development files not found, XRender won't be supported.
8525 This is an error since --with-xrender was requested." "$LINENO" 5  ;;
8526 esac
8527 fi
8528
8529                 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes" -a "x$ac_cv_lib_soname_Xrender" != "x"
8530         then
8531                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8532 /* end confdefs.h.  */
8533 #include <X11/Xlib.h>
8534 #include <X11/extensions/Xrandr.h>
8535 int
8536 main ()
8537 {
8538 static typeof(XRRSetScreenConfigAndRate) * func;
8539   ;
8540   return 0;
8541 }
8542 _ACEOF
8543 if ac_fn_c_try_compile "$LINENO"; then :
8544   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrandr" >&5
8545 $as_echo_n "checking for -lXrandr... " >&6; }
8546 if test "${ac_cv_lib_soname_Xrandr+set}" = set; then :
8547   $as_echo_n "(cached) " >&6
8548 else
8549   ac_check_soname_save_LIBS=$LIBS
8550 LIBS="-lXrandr $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8551   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8552 /* end confdefs.h.  */
8553
8554 /* Override any GCC internal prototype to avoid an error.
8555    Use char because int might match the return type of a GCC
8556    builtin and then its argument prototype would still apply.  */
8557 #ifdef __cplusplus
8558 extern "C"
8559 #endif
8560 char XRRQueryExtension ();
8561 int
8562 main ()
8563 {
8564 return XRRQueryExtension ();
8565   ;
8566   return 0;
8567 }
8568 _ACEOF
8569 if ac_fn_c_try_link "$LINENO"; then :
8570   case "$LIBEXT" in
8571     dll) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest.exe | grep "Xrandr" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8572     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'` ;;
8573     *) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXrandr\\.$LIBEXT" | sed -e "s/^.*\(libXrandr\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'` ;;
8574   esac
8575 fi
8576 rm -f core conftest.err conftest.$ac_objext \
8577     conftest$ac_exeext conftest.$ac_ext
8578   LIBS=$ac_check_soname_save_LIBS
8579 fi
8580 if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
8581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8582 $as_echo "not found" >&6; }
8583
8584 else
8585   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrandr" >&5
8586 $as_echo "$ac_cv_lib_soname_Xrandr" >&6; }
8587
8588 cat >>confdefs.h <<_ACEOF
8589 #define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
8590 _ACEOF
8591
8592
8593 fi
8594 fi
8595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8596         fi
8597         if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
8598   case "x$with_xrandr" in
8599   x)   as_fn_append wine_notices "|libxrandr ${notice_platform}development files not found, XRandr won't be supported." ;;
8600   xno) ;;
8601   *)   as_fn_error $? "libxrandr ${notice_platform}development files not found, XRandr won't be supported.
8602 This is an error since --with-xrandr was requested." "$LINENO" 5  ;;
8603 esac
8604 fi
8605
8606                 if test "$ac_cv_header_X11_extensions_Xinerama_h" = "yes"
8607         then
8608                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8609 /* end confdefs.h.  */
8610 #include <X11/Xlib.h>
8611 #include <X11/extensions/Xinerama.h>
8612 int
8613 main ()
8614 {
8615 static typeof(XineramaQueryScreens) * func;
8616   ;
8617   return 0;
8618 }
8619 _ACEOF
8620 if ac_fn_c_try_compile "$LINENO"; then :
8621   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXinerama" >&5
8622 $as_echo_n "checking for -lXinerama... " >&6; }
8623 if test "${ac_cv_lib_soname_Xinerama+set}" = set; then :
8624   $as_echo_n "(cached) " >&6
8625 else
8626   ac_check_soname_save_LIBS=$LIBS
8627 LIBS="-lXinerama $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8628   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8629 /* end confdefs.h.  */
8630
8631 /* Override any GCC internal prototype to avoid an error.
8632    Use char because int might match the return type of a GCC
8633    builtin and then its argument prototype would still apply.  */
8634 #ifdef __cplusplus
8635 extern "C"
8636 #endif
8637 char XineramaQueryScreens ();
8638 int
8639 main ()
8640 {
8641 return XineramaQueryScreens ();
8642   ;
8643   return 0;
8644 }
8645 _ACEOF
8646 if ac_fn_c_try_link "$LINENO"; then :
8647   case "$LIBEXT" in
8648     dll) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest.exe | grep "Xinerama" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8649     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'` ;;
8650     *) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXinerama\\.$LIBEXT" | sed -e "s/^.*\(libXinerama\.$LIBEXT[^      ]*\).*$/\1/"';2,$d'` ;;
8651   esac
8652 fi
8653 rm -f core conftest.err conftest.$ac_objext \
8654     conftest$ac_exeext conftest.$ac_ext
8655   LIBS=$ac_check_soname_save_LIBS
8656 fi
8657 if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
8658   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8659 $as_echo "not found" >&6; }
8660
8661 else
8662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xinerama" >&5
8663 $as_echo "$ac_cv_lib_soname_Xinerama" >&6; }
8664
8665 cat >>confdefs.h <<_ACEOF
8666 #define SONAME_LIBXINERAMA "$ac_cv_lib_soname_Xinerama"
8667 _ACEOF
8668
8669
8670 fi
8671 fi
8672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8673         fi
8674         if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
8675   case "x$with_xinerama" in
8676   x)   as_fn_append wine_notices "|libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported." ;;
8677   xno) ;;
8678   *)   as_fn_error $? "libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported.
8679 This is an error since --with-xinerama was requested." "$LINENO" 5  ;;
8680 esac
8681 fi
8682
8683                 if test "$ac_cv_header_X11_extensions_Xcomposite_h" = "yes"
8684         then
8685             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcomposite" >&5
8686 $as_echo_n "checking for -lXcomposite... " >&6; }
8687 if test "${ac_cv_lib_soname_Xcomposite+set}" = set; then :
8688   $as_echo_n "(cached) " >&6
8689 else
8690   ac_check_soname_save_LIBS=$LIBS
8691 LIBS="-lXcomposite $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8692   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8693 /* end confdefs.h.  */
8694
8695 /* Override any GCC internal prototype to avoid an error.
8696    Use char because int might match the return type of a GCC
8697    builtin and then its argument prototype would still apply.  */
8698 #ifdef __cplusplus
8699 extern "C"
8700 #endif
8701 char XCompositeRedirectWindow ();
8702 int
8703 main ()
8704 {
8705 return XCompositeRedirectWindow ();
8706   ;
8707   return 0;
8708 }
8709 _ACEOF
8710 if ac_fn_c_try_link "$LINENO"; then :
8711   case "$LIBEXT" in
8712     dll) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest.exe | grep "Xcomposite" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8713     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'` ;;
8714     *) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXcomposite\\.$LIBEXT" | sed -e "s/^.*\(libXcomposite\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'` ;;
8715   esac
8716 fi
8717 rm -f core conftest.err conftest.$ac_objext \
8718     conftest$ac_exeext conftest.$ac_ext
8719   LIBS=$ac_check_soname_save_LIBS
8720 fi
8721 if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
8722   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8723 $as_echo "not found" >&6; }
8724
8725 else
8726   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcomposite" >&5
8727 $as_echo "$ac_cv_lib_soname_Xcomposite" >&6; }
8728
8729 cat >>confdefs.h <<_ACEOF
8730 #define SONAME_LIBXCOMPOSITE "$ac_cv_lib_soname_Xcomposite"
8731 _ACEOF
8732
8733
8734 fi
8735         fi
8736         if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
8737   case "x$with_xcomposite" in
8738   x)   as_fn_append wine_notices "|libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported." ;;
8739   xno) ;;
8740   *)   as_fn_error $? "libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported.
8741 This is an error since --with-xcomposite was requested." "$LINENO" 5  ;;
8742 esac
8743 fi
8744
8745                 ac_fn_c_check_member "$LINENO" "XICCallback" "callback" "ac_cv_member_XICCallback_callback" "#ifdef HAVE_X11_XLIB_H
8746 #include <X11/Xlib.h>
8747 #endif
8748 "
8749 if test "x$ac_cv_member_XICCallback_callback" = x""yes; then :
8750
8751 cat >>confdefs.h <<_ACEOF
8752 #define HAVE_XICCALLBACK_CALLBACK 1
8753 _ACEOF
8754
8755
8756 fi
8757 ac_fn_c_check_member "$LINENO" "XEvent" "xcookie" "ac_cv_member_XEvent_xcookie" "#ifdef HAVE_X11_XLIB_H
8758 #include <X11/Xlib.h>
8759 #endif
8760 "
8761 if test "x$ac_cv_member_XEvent_xcookie" = x""yes; then :
8762
8763 cat >>confdefs.h <<_ACEOF
8764 #define HAVE_XEVENT_XCOOKIE 1
8765 _ACEOF
8766
8767
8768 fi
8769
8770
8771
8772         opengl_msg=""
8773     if test "x$with_opengl" != "xno"
8774     then
8775         for ac_header in GL/gl.h GL/glx.h GL/glu.h
8776 do :
8777   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8778 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_GL_GLX_H
8779 # include <GL/glx.h>
8780 #endif
8781 "
8782 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8783   cat >>confdefs.h <<_ACEOF
8784 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8785 _ACEOF
8786
8787 fi
8788
8789 done
8790
8791         if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
8792         then
8793                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for up-to-date OpenGL version" >&5
8794 $as_echo_n "checking for up-to-date OpenGL version... " >&6; }
8795 if test "${wine_cv_opengl_header_version_OK+set}" = set; then :
8796   $as_echo_n "(cached) " >&6
8797 else
8798   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8799 /* end confdefs.h.  */
8800 #include <GL/gl.h>
8801 int
8802 main ()
8803 {
8804 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
8805   ;
8806   return 0;
8807 }
8808 _ACEOF
8809 if ac_fn_c_try_compile "$LINENO"; then :
8810   wine_cv_opengl_header_version_OK="yes"
8811 else
8812   wine_cv_opengl_header_version_OK="no"
8813 fi
8814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8815 fi
8816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_opengl_header_version_OK" >&5
8817 $as_echo "$wine_cv_opengl_header_version_OK" >&6; }
8818
8819             if test "$wine_cv_opengl_header_version_OK" = "yes"
8820             then
8821                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
8822 $as_echo_n "checking for -lGL... " >&6; }
8823 if test "${ac_cv_lib_soname_GL+set}" = set; then :
8824   $as_echo_n "(cached) " >&6
8825 else
8826   ac_check_soname_save_LIBS=$LIBS
8827 LIBS="-lGL $X_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
8828   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8829 /* end confdefs.h.  */
8830
8831 /* Override any GCC internal prototype to avoid an error.
8832    Use char because int might match the return type of a GCC
8833    builtin and then its argument prototype would still apply.  */
8834 #ifdef __cplusplus
8835 extern "C"
8836 #endif
8837 char glXCreateContext ();
8838 int
8839 main ()
8840 {
8841 return glXCreateContext ();
8842   ;
8843   return 0;
8844 }
8845 _ACEOF
8846 if ac_fn_c_try_link "$LINENO"; then :
8847   case "$LIBEXT" in
8848     dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8849     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'` ;;
8850     *) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'` ;;
8851   esac
8852 fi
8853 rm -f core conftest.err conftest.$ac_objext \
8854     conftest$ac_exeext conftest.$ac_ext
8855   LIBS=$ac_check_soname_save_LIBS
8856 fi
8857 if test "x$ac_cv_lib_soname_GL" = "x"; then :
8858   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8859 $as_echo "not found" >&6; }
8860        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
8861 $as_echo_n "checking for -lGL... " >&6; }
8862 if test "${ac_cv_lib_soname_GL+set}" = set; then :
8863   $as_echo_n "(cached) " >&6
8864 else
8865   ac_check_soname_save_LIBS=$LIBS
8866 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"
8867   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8868 /* end confdefs.h.  */
8869
8870 /* Override any GCC internal prototype to avoid an error.
8871    Use char because int might match the return type of a GCC
8872    builtin and then its argument prototype would still apply.  */
8873 #ifdef __cplusplus
8874 extern "C"
8875 #endif
8876 char glXCreateContext ();
8877 int
8878 main ()
8879 {
8880 return glXCreateContext ();
8881   ;
8882   return 0;
8883 }
8884 _ACEOF
8885 if ac_fn_c_try_link "$LINENO"; then :
8886   case "$LIBEXT" in
8887     dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8888     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'` ;;
8889     *) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'` ;;
8890   esac
8891 fi
8892 rm -f core conftest.err conftest.$ac_objext \
8893     conftest$ac_exeext conftest.$ac_ext
8894   LIBS=$ac_check_soname_save_LIBS
8895 fi
8896 if test "x$ac_cv_lib_soname_GL" = "x"; then :
8897   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8898 $as_echo "not found" >&6; }
8899        if test -f /usr/X11R6/lib/libGL.a
8900                                     then
8901                                         opengl_msg="/usr/X11R6/lib/libGL.a is present on your system.
8902 This probably prevents linking to OpenGL. Try deleting the file and restarting configure."
8903                                     else
8904                                         opengl_msg="No OpenGL library found on this system."
8905                                     fi
8906 else
8907   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
8908 $as_echo "$ac_cv_lib_soname_GL" >&6; }
8909
8910 cat >>confdefs.h <<_ACEOF
8911 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
8912 _ACEOF
8913
8914        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"
8915
8916 $as_echo "#define HAVE_OPENGL 1" >>confdefs.h
8917
8918 fi
8919 else
8920   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
8921 $as_echo "$ac_cv_lib_soname_GL" >&6; }
8922
8923 cat >>confdefs.h <<_ACEOF
8924 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
8925 _ACEOF
8926
8927        OPENGL_LIBS="-lGL"
8928
8929 $as_echo "#define HAVE_OPENGL 1" >>confdefs.h
8930
8931 fi
8932                  if test "$ac_cv_header_GL_glu_h" = "yes"
8933                  then
8934                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGLU" >&5
8935 $as_echo_n "checking for -lGLU... " >&6; }
8936 if test "${ac_cv_lib_soname_GLU+set}" = set; then :
8937   $as_echo_n "(cached) " >&6
8938 else
8939   ac_check_soname_save_LIBS=$LIBS
8940 LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
8941   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8942 /* end confdefs.h.  */
8943
8944 /* Override any GCC internal prototype to avoid an error.
8945    Use char because int might match the return type of a GCC
8946    builtin and then its argument prototype would still apply.  */
8947 #ifdef __cplusplus
8948 extern "C"
8949 #endif
8950 char gluLookAt ();
8951 int
8952 main ()
8953 {
8954 return gluLookAt ();
8955   ;
8956   return 0;
8957 }
8958 _ACEOF
8959 if ac_fn_c_try_link "$LINENO"; then :
8960   case "$LIBEXT" in
8961     dll) ac_cv_lib_soname_GLU=`$ac_cv_path_LDD conftest.exe | grep "GLU" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8962     dylib) ac_cv_lib_soname_GLU=`otool -L conftest$ac_exeext | grep "libGLU\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libGLU\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
8963     *) ac_cv_lib_soname_GLU=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGLU\\.$LIBEXT" | sed -e "s/^.*\(libGLU\.$LIBEXT[^     ]*\).*$/\1/"';2,$d'` ;;
8964   esac
8965 fi
8966 rm -f core conftest.err conftest.$ac_objext \
8967     conftest$ac_exeext conftest.$ac_ext
8968   LIBS=$ac_check_soname_save_LIBS
8969 fi
8970 if test "x$ac_cv_lib_soname_GLU" = "x"; then :
8971   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8972 $as_echo "not found" >&6; }
8973
8974 else
8975   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GLU" >&5
8976 $as_echo "$ac_cv_lib_soname_GLU" >&6; }
8977
8978 cat >>confdefs.h <<_ACEOF
8979 #define SONAME_LIBGLU "$ac_cv_lib_soname_GLU"
8980 _ACEOF
8981
8982
8983 fi
8984                  fi
8985                  if test "x$ac_cv_lib_soname_GLU" = "x"; then :
8986   case "x$with_glu" in
8987   x)   as_fn_append wine_notices "|libGLU ${notice_platform}development files not found, GLU won't be supported." ;;
8988   xno) ;;
8989   *)   as_fn_error $? "libGLU ${notice_platform}development files not found, GLU won't be supported.
8990 This is an error since --with-glu was requested." "$LINENO" 5  ;;
8991 esac
8992 fi
8993              else
8994                  opengl_msg="Old Mesa headers detected. Consider upgrading your Mesa libraries."
8995              fi
8996          else
8997              opengl_msg="OpenGL development headers not found."
8998          fi
8999          test -n "$opengl_msg" && enable_opengl32=${enable_opengl32:-no}
9000          test "x$ac_cv_lib_soname_GLU" = "x" && enable_glu32=${enable_glu32:-no}
9001     else
9002          enable_opengl32=${enable_opengl32:-no}
9003          enable_glu32=${enable_glu32:-no}
9004     fi
9005     if test -n "$opengl_msg"; then :
9006   case "x$with_opengl" in
9007   x)   as_fn_append wine_warnings "|$opengl_msg
9008 OpenGL and Direct3D won't be supported." ;;
9009   xno) ;;
9010   *)   as_fn_error $? "$opengl_msg
9011 OpenGL and Direct3D won't be supported.
9012 This is an error since --with-opengl was requested." "$LINENO" 5  ;;
9013 esac
9014 fi
9015
9016         NASLIBS=""
9017
9018     for ac_header in audio/audiolib.h
9019 do :
9020   ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
9021 if test "x$ac_cv_header_audio_audiolib_h" = x""yes; then :
9022   cat >>confdefs.h <<_ACEOF
9023 #define HAVE_AUDIO_AUDIOLIB_H 1
9024 _ACEOF
9025  for ac_header in audio/soundlib.h
9026 do :
9027   ac_fn_c_check_header_compile "$LINENO" "audio/soundlib.h" "ac_cv_header_audio_soundlib_h" "#include <audio/audiolib.h>
9028 "
9029 if test "x$ac_cv_header_audio_soundlib_h" = x""yes; then :
9030   cat >>confdefs.h <<_ACEOF
9031 #define HAVE_AUDIO_SOUNDLIB_H 1
9032 _ACEOF
9033
9034 fi
9035
9036 done
9037
9038           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AuCreateFlow in -laudio" >&5
9039 $as_echo_n "checking for AuCreateFlow in -laudio... " >&6; }
9040 if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then :
9041   $as_echo_n "(cached) " >&6
9042 else
9043   ac_check_lib_save_LIBS=$LIBS
9044 LIBS="-laudio -lXt $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
9045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9046 /* end confdefs.h.  */
9047
9048 /* Override any GCC internal prototype to avoid an error.
9049    Use char because int might match the return type of a GCC
9050    builtin and then its argument prototype would still apply.  */
9051 #ifdef __cplusplus
9052 extern "C"
9053 #endif
9054 char AuCreateFlow ();
9055 int
9056 main ()
9057 {
9058 return AuCreateFlow ();
9059   ;
9060   return 0;
9061 }
9062 _ACEOF
9063 if ac_fn_c_try_link "$LINENO"; then :
9064   ac_cv_lib_audio_AuCreateFlow=yes
9065 else
9066   ac_cv_lib_audio_AuCreateFlow=no
9067 fi
9068 rm -f core conftest.err conftest.$ac_objext \
9069     conftest$ac_exeext conftest.$ac_ext
9070 LIBS=$ac_check_lib_save_LIBS
9071 fi
9072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuCreateFlow" >&5
9073 $as_echo "$ac_cv_lib_audio_AuCreateFlow" >&6; }
9074 if test "x$ac_cv_lib_audio_AuCreateFlow" = x""yes; then :
9075   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XauGetBestAuthByAddr in -lXau" >&5
9076 $as_echo_n "checking for XauGetBestAuthByAddr in -lXau... " >&6; }
9077 if test "${ac_cv_lib_Xau_XauGetBestAuthByAddr+set}" = set; then :
9078   $as_echo_n "(cached) " >&6
9079 else
9080   ac_check_lib_save_LIBS=$LIBS
9081 LIBS="-lXau $X_LIBS $LIBS"
9082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9083 /* end confdefs.h.  */
9084
9085 /* Override any GCC internal prototype to avoid an error.
9086    Use char because int might match the return type of a GCC
9087    builtin and then its argument prototype would still apply.  */
9088 #ifdef __cplusplus
9089 extern "C"
9090 #endif
9091 char XauGetBestAuthByAddr ();
9092 int
9093 main ()
9094 {
9095 return XauGetBestAuthByAddr ();
9096   ;
9097   return 0;
9098 }
9099 _ACEOF
9100 if ac_fn_c_try_link "$LINENO"; then :
9101   ac_cv_lib_Xau_XauGetBestAuthByAddr=yes
9102 else
9103   ac_cv_lib_Xau_XauGetBestAuthByAddr=no
9104 fi
9105 rm -f core conftest.err conftest.$ac_objext \
9106     conftest$ac_exeext conftest.$ac_ext
9107 LIBS=$ac_check_lib_save_LIBS
9108 fi
9109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xau_XauGetBestAuthByAddr" >&5
9110 $as_echo "$ac_cv_lib_Xau_XauGetBestAuthByAddr" >&6; }
9111 if test "x$ac_cv_lib_Xau_XauGetBestAuthByAddr" = x""yes; then :
9112   NASLIBS="-lXau -laudio -lXt $X_LIBS $XLIB $X_EXTRA_LIBS"
9113 else
9114   NASLIBS="-laudio -lXt $X_LIBS $XLIB $X_EXTRA_LIBS"
9115 fi
9116
9117
9118 fi
9119
9120 fi
9121
9122 done
9123
9124
9125     CPPFLAGS="$ac_save_CPPFLAGS"
9126 else
9127     XLIB=""
9128     X_CFLAGS=""
9129     X_LIBS=""
9130     enable_winex11_drv=${enable_winex11_drv:-no}
9131     enable_opengl32=${enable_opengl32:-no}
9132     enable_glu32=${enable_glu32:-no}
9133 fi
9134 if test "x$XLIB" = "x"; then :
9135   case "x$with_x" in
9136   xno) ;;
9137   *)   as_fn_error $? "X ${notice_platform}development files not found. Wine will be built
9138 without X support, which probably isn't what you want. You will need
9139 to install ${notice_platform}development packages of Xlib/Xfree86 at the very least.
9140 Use the --without-x option if you really want this." "$LINENO" 5  ;;
9141 esac
9142 fi
9143
9144 if test "$ac_cv_header_CL_cl_h" = "yes"
9145 then
9146     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clGetPlatformInfo in -lOpenCL" >&5
9147 $as_echo_n "checking for clGetPlatformInfo in -lOpenCL... " >&6; }
9148 if test "${ac_cv_lib_OpenCL_clGetPlatformInfo+set}" = set; then :
9149   $as_echo_n "(cached) " >&6
9150 else
9151   ac_check_lib_save_LIBS=$LIBS
9152 LIBS="-lOpenCL  $LIBS"
9153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9154 /* end confdefs.h.  */
9155
9156 /* Override any GCC internal prototype to avoid an error.
9157    Use char because int might match the return type of a GCC
9158    builtin and then its argument prototype would still apply.  */
9159 #ifdef __cplusplus
9160 extern "C"
9161 #endif
9162 char clGetPlatformInfo ();
9163 int
9164 main ()
9165 {
9166 return clGetPlatformInfo ();
9167   ;
9168   return 0;
9169 }
9170 _ACEOF
9171 if ac_fn_c_try_link "$LINENO"; then :
9172   ac_cv_lib_OpenCL_clGetPlatformInfo=yes
9173 else
9174   ac_cv_lib_OpenCL_clGetPlatformInfo=no
9175 fi
9176 rm -f core conftest.err conftest.$ac_objext \
9177     conftest$ac_exeext conftest.$ac_ext
9178 LIBS=$ac_check_lib_save_LIBS
9179 fi
9180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_OpenCL_clGetPlatformInfo" >&5
9181 $as_echo "$ac_cv_lib_OpenCL_clGetPlatformInfo" >&6; }
9182 if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" = x""yes; then :
9183   LIBOPENCL="-lOpenCL"
9184
9185 fi
9186
9187 fi
9188 if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes; then :
9189   case "x$with_opencl" in
9190   x)   as_fn_append wine_notices "|OpenCL ${notice_platform}development files not found, OpenCL won't be supported." ;;
9191   xno) ;;
9192   *)   as_fn_error $? "OpenCL ${notice_platform}development files not found, OpenCL won't be supported.
9193 This is an error since --with-opencl was requested." "$LINENO" 5  ;;
9194 esac
9195 fi
9196 test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes && enable_opencl=${enable_opencl:-no}
9197
9198
9199 XML2LIBS=""
9200
9201 XML2INCL=""
9202
9203 XSLTINCL=""
9204
9205 if test "x$with_xml" != "xno"
9206 then
9207     ac_save_CPPFLAGS="$CPPFLAGS"
9208     if test "$PKG_CONFIG" != "false"
9209     then
9210         ac_xml_libs="`$PKG_CONFIG --libs libxml-2.0 2>/dev/null`"
9211         ac_xml_cflags="`$PKG_CONFIG --cflags libxml-2.0 2>/dev/null`"
9212     else
9213         ac_xml_libs="`xml2-config --libs 2>/dev/null`"
9214         ac_xml_cflags="`xml2-config --cflags  2>/dev/null`"
9215     fi
9216     CPPFLAGS="$CPPFLAGS $ac_xml_cflags"
9217     for ac_header in libxml/parser.h libxml/xmlsave.h libxml/SAX2.h
9218 do :
9219   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9220 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9221 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9222   cat >>confdefs.h <<_ACEOF
9223 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9224 _ACEOF
9225
9226 fi
9227
9228 done
9229
9230     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"
9231     then
9232         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseMemory in -lxml2" >&5
9233 $as_echo_n "checking for xmlParseMemory in -lxml2... " >&6; }
9234 if test "${ac_cv_lib_xml2_xmlParseMemory+set}" = set; then :
9235   $as_echo_n "(cached) " >&6
9236 else
9237   ac_check_lib_save_LIBS=$LIBS
9238 LIBS="-lxml2 $ac_xml_libs $LIBS"
9239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9240 /* end confdefs.h.  */
9241
9242 /* Override any GCC internal prototype to avoid an error.
9243    Use char because int might match the return type of a GCC
9244    builtin and then its argument prototype would still apply.  */
9245 #ifdef __cplusplus
9246 extern "C"
9247 #endif
9248 char xmlParseMemory ();
9249 int
9250 main ()
9251 {
9252 return xmlParseMemory ();
9253   ;
9254   return 0;
9255 }
9256 _ACEOF
9257 if ac_fn_c_try_link "$LINENO"; then :
9258   ac_cv_lib_xml2_xmlParseMemory=yes
9259 else
9260   ac_cv_lib_xml2_xmlParseMemory=no
9261 fi
9262 rm -f core conftest.err conftest.$ac_objext \
9263     conftest$ac_exeext conftest.$ac_ext
9264 LIBS=$ac_check_lib_save_LIBS
9265 fi
9266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseMemory" >&5
9267 $as_echo "$ac_cv_lib_xml2_xmlParseMemory" >&6; }
9268 if test "x$ac_cv_lib_xml2_xmlParseMemory" = x""yes; then :
9269
9270 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
9271
9272              XML2LIBS="$ac_xml_libs"
9273              XML2INCL="$ac_xml_cflags"
9274 fi
9275
9276         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlReadMemory in -lxml2" >&5
9277 $as_echo_n "checking for xmlReadMemory in -lxml2... " >&6; }
9278 if test "${ac_cv_lib_xml2_xmlReadMemory+set}" = set; then :
9279   $as_echo_n "(cached) " >&6
9280 else
9281   ac_check_lib_save_LIBS=$LIBS
9282 LIBS="-lxml2 $ac_xml_libs $LIBS"
9283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9284 /* end confdefs.h.  */
9285
9286 /* Override any GCC internal prototype to avoid an error.
9287    Use char because int might match the return type of a GCC
9288    builtin and then its argument prototype would still apply.  */
9289 #ifdef __cplusplus
9290 extern "C"
9291 #endif
9292 char xmlReadMemory ();
9293 int
9294 main ()
9295 {
9296 return xmlReadMemory ();
9297   ;
9298   return 0;
9299 }
9300 _ACEOF
9301 if ac_fn_c_try_link "$LINENO"; then :
9302   ac_cv_lib_xml2_xmlReadMemory=yes
9303 else
9304   ac_cv_lib_xml2_xmlReadMemory=no
9305 fi
9306 rm -f core conftest.err conftest.$ac_objext \
9307     conftest$ac_exeext conftest.$ac_ext
9308 LIBS=$ac_check_lib_save_LIBS
9309 fi
9310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlReadMemory" >&5
9311 $as_echo "$ac_cv_lib_xml2_xmlReadMemory" >&6; }
9312 if test "x$ac_cv_lib_xml2_xmlReadMemory" = x""yes; then :
9313
9314 $as_echo "#define HAVE_XMLREADMEMORY 1" >>confdefs.h
9315
9316 fi
9317
9318         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlNewDocPI in -lxml2" >&5
9319 $as_echo_n "checking for xmlNewDocPI in -lxml2... " >&6; }
9320 if test "${ac_cv_lib_xml2_xmlNewDocPI+set}" = set; then :
9321   $as_echo_n "(cached) " >&6
9322 else
9323   ac_check_lib_save_LIBS=$LIBS
9324 LIBS="-lxml2 $ac_xml_libs $LIBS"
9325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9326 /* end confdefs.h.  */
9327
9328 /* Override any GCC internal prototype to avoid an error.
9329    Use char because int might match the return type of a GCC
9330    builtin and then its argument prototype would still apply.  */
9331 #ifdef __cplusplus
9332 extern "C"
9333 #endif
9334 char xmlNewDocPI ();
9335 int
9336 main ()
9337 {
9338 return xmlNewDocPI ();
9339   ;
9340   return 0;
9341 }
9342 _ACEOF
9343 if ac_fn_c_try_link "$LINENO"; then :
9344   ac_cv_lib_xml2_xmlNewDocPI=yes
9345 else
9346   ac_cv_lib_xml2_xmlNewDocPI=no
9347 fi
9348 rm -f core conftest.err conftest.$ac_objext \
9349     conftest$ac_exeext conftest.$ac_ext
9350 LIBS=$ac_check_lib_save_LIBS
9351 fi
9352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlNewDocPI" >&5
9353 $as_echo "$ac_cv_lib_xml2_xmlNewDocPI" >&6; }
9354 if test "x$ac_cv_lib_xml2_xmlNewDocPI" = x""yes; then :
9355
9356 $as_echo "#define HAVE_XMLNEWDOCPI 1" >>confdefs.h
9357
9358 fi
9359
9360         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetParserStructuredErrors in -lxml2" >&5
9361 $as_echo_n "checking for xmlSchemaSetParserStructuredErrors in -lxml2... " >&6; }
9362 if test "${ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors+set}" = set; then :
9363   $as_echo_n "(cached) " >&6
9364 else
9365   ac_check_lib_save_LIBS=$LIBS
9366 LIBS="-lxml2 $ac_xml_libs $LIBS"
9367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9368 /* end confdefs.h.  */
9369
9370 /* Override any GCC internal prototype to avoid an error.
9371    Use char because int might match the return type of a GCC
9372    builtin and then its argument prototype would still apply.  */
9373 #ifdef __cplusplus
9374 extern "C"
9375 #endif
9376 char xmlSchemaSetParserStructuredErrors ();
9377 int
9378 main ()
9379 {
9380 return xmlSchemaSetParserStructuredErrors ();
9381   ;
9382   return 0;
9383 }
9384 _ACEOF
9385 if ac_fn_c_try_link "$LINENO"; then :
9386   ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=yes
9387 else
9388   ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=no
9389 fi
9390 rm -f core conftest.err conftest.$ac_objext \
9391     conftest$ac_exeext conftest.$ac_ext
9392 LIBS=$ac_check_lib_save_LIBS
9393 fi
9394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&5
9395 $as_echo "$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&6; }
9396 if test "x$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" = x""yes; then :
9397
9398 $as_echo "#define HAVE_XMLSCHEMASSETPARSERSTRUCTUREDERRORS 1" >>confdefs.h
9399
9400 fi
9401
9402         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetValidStructuredErrors in -lxml2" >&5
9403 $as_echo_n "checking for xmlSchemaSetValidStructuredErrors in -lxml2... " >&6; }
9404 if test "${ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors+set}" = set; then :
9405   $as_echo_n "(cached) " >&6
9406 else
9407   ac_check_lib_save_LIBS=$LIBS
9408 LIBS="-lxml2 $ac_xml_libs $LIBS"
9409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9410 /* end confdefs.h.  */
9411
9412 /* Override any GCC internal prototype to avoid an error.
9413    Use char because int might match the return type of a GCC
9414    builtin and then its argument prototype would still apply.  */
9415 #ifdef __cplusplus
9416 extern "C"
9417 #endif
9418 char xmlSchemaSetValidStructuredErrors ();
9419 int
9420 main ()
9421 {
9422 return xmlSchemaSetValidStructuredErrors ();
9423   ;
9424   return 0;
9425 }
9426 _ACEOF
9427 if ac_fn_c_try_link "$LINENO"; then :
9428   ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=yes
9429 else
9430   ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=no
9431 fi
9432 rm -f core conftest.err conftest.$ac_objext \
9433     conftest$ac_exeext conftest.$ac_ext
9434 LIBS=$ac_check_lib_save_LIBS
9435 fi
9436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&5
9437 $as_echo "$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&6; }
9438 if test "x$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" = x""yes; then :
9439
9440 $as_echo "#define HAVE_XMLSCHEMASSETVALIDSTRUCTUREDERRORS 1" >>confdefs.h
9441
9442 fi
9443
9444         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlFirstElementChild in -lxml2" >&5
9445 $as_echo_n "checking for xmlFirstElementChild in -lxml2... " >&6; }
9446 if test "${ac_cv_lib_xml2_xmlFirstElementChild+set}" = set; then :
9447   $as_echo_n "(cached) " >&6
9448 else
9449   ac_check_lib_save_LIBS=$LIBS
9450 LIBS="-lxml2 $ac_xml_libs $LIBS"
9451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9452 /* end confdefs.h.  */
9453
9454 /* Override any GCC internal prototype to avoid an error.
9455    Use char because int might match the return type of a GCC
9456    builtin and then its argument prototype would still apply.  */
9457 #ifdef __cplusplus
9458 extern "C"
9459 #endif
9460 char xmlFirstElementChild ();
9461 int
9462 main ()
9463 {
9464 return xmlFirstElementChild ();
9465   ;
9466   return 0;
9467 }
9468 _ACEOF
9469 if ac_fn_c_try_link "$LINENO"; then :
9470   ac_cv_lib_xml2_xmlFirstElementChild=yes
9471 else
9472   ac_cv_lib_xml2_xmlFirstElementChild=no
9473 fi
9474 rm -f core conftest.err conftest.$ac_objext \
9475     conftest$ac_exeext conftest.$ac_ext
9476 LIBS=$ac_check_lib_save_LIBS
9477 fi
9478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlFirstElementChild" >&5
9479 $as_echo "$ac_cv_lib_xml2_xmlFirstElementChild" >&6; }
9480 if test "x$ac_cv_lib_xml2_xmlFirstElementChild" = x""yes; then :
9481
9482 $as_echo "#define HAVE_XMLFIRSTELEMENTCHILD 1" >>confdefs.h
9483
9484 fi
9485
9486         ac_fn_c_check_type "$LINENO" "xmlDocProperties" "ac_cv_type_xmlDocProperties" "#include <libxml/tree.h>
9487 "
9488 if test "x$ac_cv_type_xmlDocProperties" = x""yes; then :
9489
9490 $as_echo "#define HAVE_XMLDOC_PROPERTIES 1" >>confdefs.h
9491
9492 fi
9493
9494     fi
9495     CPPFLAGS="$ac_save_CPPFLAGS"
9496 fi
9497 if test "$ac_cv_lib_xml2_xmlParseMemory" != "yes"; then :
9498   case "x$with_xml" in
9499   x)   as_fn_append wine_warnings "|libxml2 ${notice_platform}development files not found (or too old), XML won't be supported." ;;
9500   xno) ;;
9501   *)   as_fn_error $? "libxml2 ${notice_platform}development files not found (or too old), XML won't be supported.
9502 This is an error since --with-xml was requested." "$LINENO" 5  ;;
9503 esac
9504 fi
9505
9506 if test "x$with_xslt" != "xno"
9507 then
9508     if test "$PKG_CONFIG" != "false"
9509     then
9510         ac_xslt_libs="`$PKG_CONFIG --libs libxslt 2>/dev/null`"
9511         ac_xslt_cflags="`$PKG_CONFIG --cflags libxslt 2>/dev/null`"
9512     else
9513         ac_xslt_libs="`xslt-config --libs 2>/dev/null`"
9514         ac_xslt_cflags="`xslt-config --cflags 2>/dev/null`"
9515     fi
9516     ac_save_CPPFLAGS="$CPPFLAGS"
9517     CPPFLAGS="$CPPFLAGS $ac_xslt_cflags"
9518     for ac_header in libxslt/pattern.h libxslt/transform.h
9519 do :
9520   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9521 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_LIBXSLT_PATTERN_H
9522 # include <libxslt/pattern.h>
9523 #endif
9524 "
9525 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9526   cat >>confdefs.h <<_ACEOF
9527 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9528 _ACEOF
9529
9530 fi
9531
9532 done
9533
9534     CPPFLAGS="$ac_save_CPPFLAGS"
9535     if test "$ac_cv_header_libxslt_transform_h" = "yes"
9536     then
9537         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lxslt" >&5
9538 $as_echo_n "checking for -lxslt... " >&6; }
9539 if test "${ac_cv_lib_soname_xslt+set}" = set; then :
9540   $as_echo_n "(cached) " >&6
9541 else
9542   ac_check_soname_save_LIBS=$LIBS
9543 LIBS="-lxslt $ac_xslt_libs $LIBS"
9544   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9545 /* end confdefs.h.  */
9546
9547 /* Override any GCC internal prototype to avoid an error.
9548    Use char because int might match the return type of a GCC
9549    builtin and then its argument prototype would still apply.  */
9550 #ifdef __cplusplus
9551 extern "C"
9552 #endif
9553 char xsltCompilePattern ();
9554 int
9555 main ()
9556 {
9557 return xsltCompilePattern ();
9558   ;
9559   return 0;
9560 }
9561 _ACEOF
9562 if ac_fn_c_try_link "$LINENO"; then :
9563   case "$LIBEXT" in
9564     dll) ac_cv_lib_soname_xslt=`$ac_cv_path_LDD conftest.exe | grep "xslt" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9565     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'` ;;
9566     *) ac_cv_lib_soname_xslt=`$ac_cv_path_LDD conftest$ac_exeext | grep "libxslt\\.$LIBEXT" | sed -e "s/^.*\(libxslt\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
9567   esac
9568 fi
9569 rm -f core conftest.err conftest.$ac_objext \
9570     conftest$ac_exeext conftest.$ac_ext
9571   LIBS=$ac_check_soname_save_LIBS
9572 fi
9573 if test "x$ac_cv_lib_soname_xslt" = "x"; then :
9574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9575 $as_echo "not found" >&6; }
9576
9577 else
9578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_xslt" >&5
9579 $as_echo "$ac_cv_lib_soname_xslt" >&6; }
9580
9581 cat >>confdefs.h <<_ACEOF
9582 #define SONAME_LIBXSLT "$ac_cv_lib_soname_xslt"
9583 _ACEOF
9584
9585        XSLTINCL="$ac_xslt_cflags"
9586 fi
9587     fi
9588 fi
9589 if test "x$ac_cv_lib_soname_xslt" = "x"; then :
9590   case "x$with_xslt" in
9591   x)   as_fn_append wine_warnings "|libxslt ${notice_platform}development files not found, xslt won't be supported." ;;
9592   xno) ;;
9593   *)   as_fn_error $? "libxslt ${notice_platform}development files not found, xslt won't be supported.
9594 This is an error since --with-xslt was requested." "$LINENO" 5  ;;
9595 esac
9596 fi
9597
9598 HALINCL=""
9599
9600 if test "x$with_hal" != "xno"
9601 then
9602     ac_save_CPPFLAGS="$CPPFLAGS"
9603     if test "$PKG_CONFIG" != "false"
9604     then
9605         ac_hal_libs="`$PKG_CONFIG --libs hal 2>/dev/null`"
9606         ac_hal_cflags="`$PKG_CONFIG --cflags hal 2>/dev/null`"
9607         CPPFLAGS="$CPPFLAGS $ac_hal_cflags"
9608     fi
9609     for ac_header in dbus/dbus.h hal/libhal.h
9610 do :
9611   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9612 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9613 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9614   cat >>confdefs.h <<_ACEOF
9615 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9616 _ACEOF
9617
9618 fi
9619
9620 done
9621
9622     if test "$ac_cv_header_dbus_dbus_h" = "yes" -a "$ac_cv_header_hal_libhal_h" = "yes"
9623     then
9624         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus_connection_close in -ldbus-1" >&5
9625 $as_echo_n "checking for dbus_connection_close in -ldbus-1... " >&6; }
9626 if test "${ac_cv_lib_dbus_1_dbus_connection_close+set}" = set; then :
9627   $as_echo_n "(cached) " >&6
9628 else
9629   ac_check_lib_save_LIBS=$LIBS
9630 LIBS="-ldbus-1 $ac_hal_libs $LIBS"
9631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9632 /* end confdefs.h.  */
9633
9634 /* Override any GCC internal prototype to avoid an error.
9635    Use char because int might match the return type of a GCC
9636    builtin and then its argument prototype would still apply.  */
9637 #ifdef __cplusplus
9638 extern "C"
9639 #endif
9640 char dbus_connection_close ();
9641 int
9642 main ()
9643 {
9644 return dbus_connection_close ();
9645   ;
9646   return 0;
9647 }
9648 _ACEOF
9649 if ac_fn_c_try_link "$LINENO"; then :
9650   ac_cv_lib_dbus_1_dbus_connection_close=yes
9651 else
9652   ac_cv_lib_dbus_1_dbus_connection_close=no
9653 fi
9654 rm -f core conftest.err conftest.$ac_objext \
9655     conftest$ac_exeext conftest.$ac_ext
9656 LIBS=$ac_check_lib_save_LIBS
9657 fi
9658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dbus_1_dbus_connection_close" >&5
9659 $as_echo "$ac_cv_lib_dbus_1_dbus_connection_close" >&6; }
9660 if test "x$ac_cv_lib_dbus_1_dbus_connection_close" = x""yes; then :
9661   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lhal" >&5
9662 $as_echo_n "checking for -lhal... " >&6; }
9663 if test "${ac_cv_lib_soname_hal+set}" = set; then :
9664   $as_echo_n "(cached) " >&6
9665 else
9666   ac_check_soname_save_LIBS=$LIBS
9667 LIBS="-lhal $ac_hal_libs $LIBS"
9668   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9669 /* end confdefs.h.  */
9670
9671 /* Override any GCC internal prototype to avoid an error.
9672    Use char because int might match the return type of a GCC
9673    builtin and then its argument prototype would still apply.  */
9674 #ifdef __cplusplus
9675 extern "C"
9676 #endif
9677 char libhal_ctx_new ();
9678 int
9679 main ()
9680 {
9681 return libhal_ctx_new ();
9682   ;
9683   return 0;
9684 }
9685 _ACEOF
9686 if ac_fn_c_try_link "$LINENO"; then :
9687   case "$LIBEXT" in
9688     dll) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest.exe | grep "hal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9689     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'` ;;
9690     *) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest$ac_exeext | grep "libhal\\.$LIBEXT" | sed -e "s/^.*\(libhal\.$LIBEXT[^     ]*\).*$/\1/"';2,$d'` ;;
9691   esac
9692 fi
9693 rm -f core conftest.err conftest.$ac_objext \
9694     conftest$ac_exeext conftest.$ac_ext
9695   LIBS=$ac_check_soname_save_LIBS
9696 fi
9697 if test "x$ac_cv_lib_soname_hal" = "x"; then :
9698   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9699 $as_echo "not found" >&6; }
9700
9701 else
9702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_hal" >&5
9703 $as_echo "$ac_cv_lib_soname_hal" >&6; }
9704
9705 cat >>confdefs.h <<_ACEOF
9706 #define SONAME_LIBHAL "$ac_cv_lib_soname_hal"
9707 _ACEOF
9708
9709        HALINCL="$ac_hal_cflags"
9710 fi
9711 fi
9712
9713     fi
9714     CPPFLAGS="$ac_save_CPPFLAGS"
9715 fi
9716 if test "x$ac_cv_lib_soname_hal" = "x" -a "x$ac_cv_header_DiskArbitration_DiskArbitration_h" != "xyes"; then :
9717   case "x$with_hal" in
9718   x)   as_fn_append wine_notices "|libhal/libdbus ${notice_platform}development files not found, no dynamic device support." ;;
9719   xno) ;;
9720   *)   as_fn_error $? "libhal/libdbus ${notice_platform}development files not found, no dynamic device support.
9721 This is an error since --with-hal was requested." "$LINENO" 5  ;;
9722 esac
9723 fi
9724
9725 if test "x$with_gnutls" != "xno"
9726 then
9727     ac_save_CPPFLAGS="$CPPFLAGS"
9728     if test "$PKG_CONFIG" != "false"
9729     then
9730         ac_gnutls_libs="`$PKG_CONFIG --libs gnutls 2>/dev/null`"
9731         ac_gnutls_cflags="`$PKG_CONFIG --cflags gnutls 2>/dev/null`"
9732         CPPFLAGS="$CPPFLAGS $ac_gnutls_cflags"
9733     fi
9734     ac_fn_c_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default"
9735 if test "x$ac_cv_header_gnutls_gnutls_h" = x""yes; then :
9736   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9737 /* end confdefs.h.  */
9738 #include <gnutls/gnutls.h>
9739 int
9740 main ()
9741 {
9742 typeof(gnutls_mac_get_key_size) *pfunc;
9743   ;
9744   return 0;
9745 }
9746 _ACEOF
9747 if ac_fn_c_try_compile "$LINENO"; then :
9748   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgnutls" >&5
9749 $as_echo_n "checking for -lgnutls... " >&6; }
9750 if test "${ac_cv_lib_soname_gnutls+set}" = set; then :
9751   $as_echo_n "(cached) " >&6
9752 else
9753   ac_check_soname_save_LIBS=$LIBS
9754 LIBS="-lgnutls $ac_gnutls_libs $LIBS"
9755   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9756 /* end confdefs.h.  */
9757
9758 /* Override any GCC internal prototype to avoid an error.
9759    Use char because int might match the return type of a GCC
9760    builtin and then its argument prototype would still apply.  */
9761 #ifdef __cplusplus
9762 extern "C"
9763 #endif
9764 char gnutls_global_init ();
9765 int
9766 main ()
9767 {
9768 return gnutls_global_init ();
9769   ;
9770   return 0;
9771 }
9772 _ACEOF
9773 if ac_fn_c_try_link "$LINENO"; then :
9774   case "$LIBEXT" in
9775     dll) ac_cv_lib_soname_gnutls=`$ac_cv_path_LDD conftest.exe | grep "gnutls" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9776     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'` ;;
9777     *) ac_cv_lib_soname_gnutls=`$ac_cv_path_LDD conftest$ac_exeext | grep "libgnutls\\.$LIBEXT" | sed -e "s/^.*\(libgnutls\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'` ;;
9778   esac
9779 fi
9780 rm -f core conftest.err conftest.$ac_objext \
9781     conftest$ac_exeext conftest.$ac_ext
9782   LIBS=$ac_check_soname_save_LIBS
9783 fi
9784 if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
9785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9786 $as_echo "not found" >&6; }
9787
9788 else
9789   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gnutls" >&5
9790 $as_echo "$ac_cv_lib_soname_gnutls" >&6; }
9791
9792 cat >>confdefs.h <<_ACEOF
9793 #define SONAME_LIBGNUTLS "$ac_cv_lib_soname_gnutls"
9794 _ACEOF
9795
9796        GNUTLSINCL="$ac_gnutls_cflags"
9797
9798 fi
9799 fi
9800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9801 fi
9802
9803
9804     CPPFLAGS="$ac_save_CPPFLAGS"
9805 fi
9806 if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
9807   case "x$with_gnutls" in
9808   x)   as_fn_append wine_notices "|libgnutls ${notice_platform}development files not found, no schannel support." ;;
9809   xno) ;;
9810   *)   as_fn_error $? "libgnutls ${notice_platform}development files not found, no schannel support.
9811 This is an error since --with-gnutls was requested." "$LINENO" 5  ;;
9812 esac
9813 fi
9814
9815 CURSESLIBS=""
9816 if test "$ac_cv_header_ncurses_h" = "yes"
9817 then
9818     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lncurses" >&5
9819 $as_echo_n "checking for -lncurses... " >&6; }
9820 if test "${ac_cv_lib_soname_ncurses+set}" = set; then :
9821   $as_echo_n "(cached) " >&6
9822 else
9823   ac_check_soname_save_LIBS=$LIBS
9824 LIBS="-lncurses  $LIBS"
9825   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9826 /* end confdefs.h.  */
9827
9828 /* Override any GCC internal prototype to avoid an error.
9829    Use char because int might match the return type of a GCC
9830    builtin and then its argument prototype would still apply.  */
9831 #ifdef __cplusplus
9832 extern "C"
9833 #endif
9834 char waddch ();
9835 int
9836 main ()
9837 {
9838 return waddch ();
9839   ;
9840   return 0;
9841 }
9842 _ACEOF
9843 if ac_fn_c_try_link "$LINENO"; then :
9844   case "$LIBEXT" in
9845     dll) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest.exe | grep "ncurses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9846     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'` ;;
9847     *) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest$ac_exeext | grep "libncurses\\.$LIBEXT" | sed -e "s/^.*\(libncurses\.$LIBEXT[^         ]*\).*$/\1/"';2,$d'` ;;
9848   esac
9849 fi
9850 rm -f core conftest.err conftest.$ac_objext \
9851     conftest$ac_exeext conftest.$ac_ext
9852   LIBS=$ac_check_soname_save_LIBS
9853 fi
9854 if test "x$ac_cv_lib_soname_ncurses" = "x"; then :
9855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9856 $as_echo "not found" >&6; }
9857
9858 else
9859   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ncurses" >&5
9860 $as_echo "$ac_cv_lib_soname_ncurses" >&6; }
9861
9862 cat >>confdefs.h <<_ACEOF
9863 #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
9864 _ACEOF
9865
9866        CURSESLIBS="-lncurses"
9867 fi
9868 elif test "$ac_cv_header_curses_h" = "yes"
9869 then
9870     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcurses" >&5
9871 $as_echo_n "checking for -lcurses... " >&6; }
9872 if test "${ac_cv_lib_soname_curses+set}" = set; then :
9873   $as_echo_n "(cached) " >&6
9874 else
9875   ac_check_soname_save_LIBS=$LIBS
9876 LIBS="-lcurses  $LIBS"
9877   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9878 /* end confdefs.h.  */
9879
9880 /* Override any GCC internal prototype to avoid an error.
9881    Use char because int might match the return type of a GCC
9882    builtin and then its argument prototype would still apply.  */
9883 #ifdef __cplusplus
9884 extern "C"
9885 #endif
9886 char waddch ();
9887 int
9888 main ()
9889 {
9890 return waddch ();
9891   ;
9892   return 0;
9893 }
9894 _ACEOF
9895 if ac_fn_c_try_link "$LINENO"; then :
9896   case "$LIBEXT" in
9897     dll) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest.exe | grep "curses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9898     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'` ;;
9899     *) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcurses\\.$LIBEXT" | sed -e "s/^.*\(libcurses\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'` ;;
9900   esac
9901 fi
9902 rm -f core conftest.err conftest.$ac_objext \
9903     conftest$ac_exeext conftest.$ac_ext
9904   LIBS=$ac_check_soname_save_LIBS
9905 fi
9906 if test "x$ac_cv_lib_soname_curses" = "x"; then :
9907   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9908 $as_echo "not found" >&6; }
9909
9910 else
9911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_curses" >&5
9912 $as_echo "$ac_cv_lib_soname_curses" >&6; }
9913
9914 cat >>confdefs.h <<_ACEOF
9915 #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
9916 _ACEOF
9917
9918        CURSESLIBS="-lcurses"
9919 fi
9920 fi
9921 ac_save_LIBS="$LIBS"
9922 LIBS="$LIBS $CURSESLIBS"
9923 for ac_func in mousemask
9924 do :
9925   ac_fn_c_check_func "$LINENO" "mousemask" "ac_cv_func_mousemask"
9926 if test "x$ac_cv_func_mousemask" = x""yes; then :
9927   cat >>confdefs.h <<_ACEOF
9928 #define HAVE_MOUSEMASK 1
9929 _ACEOF
9930
9931 fi
9932 done
9933
9934 LIBS="$ac_save_LIBS"
9935 if test "x$ac_cv_lib_soname_curses$ac_cv_lib_soname_ncurses" = "x"; then :
9936   case "x$with_curses" in
9937   x)   as_fn_append wine_notices "|lib(n)curses ${notice_platform}development files not found, curses won't be supported." ;;
9938   xno) ;;
9939   *)   as_fn_error $? "lib(n)curses ${notice_platform}development files not found, curses won't be supported.
9940 This is an error since --with-curses was requested." "$LINENO" 5  ;;
9941 esac
9942 fi
9943
9944 if test "x$with_sane" != "xno"
9945 then
9946     ac_save_CPPFLAGS="$CPPFLAGS"
9947     # Extract the first word of "sane-config", so it can be a program name with args.
9948 set dummy sane-config; ac_word=$2
9949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9950 $as_echo_n "checking for $ac_word... " >&6; }
9951 if test "${ac_cv_prog_sane_devel+set}" = set; then :
9952   $as_echo_n "(cached) " >&6
9953 else
9954   if test -n "$sane_devel"; then
9955   ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
9956 else
9957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9958 for as_dir in $PATH
9959 do
9960   IFS=$as_save_IFS
9961   test -z "$as_dir" && as_dir=.
9962     for ac_exec_ext in '' $ac_executable_extensions; do
9963   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9964     ac_cv_prog_sane_devel="sane-config"
9965     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9966     break 2
9967   fi
9968 done
9969   done
9970 IFS=$as_save_IFS
9971
9972   test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
9973 fi
9974 fi
9975 sane_devel=$ac_cv_prog_sane_devel
9976 if test -n "$sane_devel"; then
9977   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sane_devel" >&5
9978 $as_echo "$sane_devel" >&6; }
9979 else
9980   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9981 $as_echo "no" >&6; }
9982 fi
9983
9984
9985     if test "$sane_devel" != "no"
9986     then
9987         ac_sane_incl="`$sane_devel --cflags`"
9988         ac_sane_libs="`$sane_devel --ldflags`"
9989         CPPFLAGS="$CPPFLAGS $ac_sane_incl"
9990     fi
9991     ac_fn_c_check_header_mongrel "$LINENO" "sane/sane.h" "ac_cv_header_sane_sane_h" "$ac_includes_default"
9992 if test "x$ac_cv_header_sane_sane_h" = x""yes; then :
9993   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lsane" >&5
9994 $as_echo_n "checking for -lsane... " >&6; }
9995 if test "${ac_cv_lib_soname_sane+set}" = set; then :
9996   $as_echo_n "(cached) " >&6
9997 else
9998   ac_check_soname_save_LIBS=$LIBS
9999 LIBS="-lsane $ac_sane_libs $LIBS"
10000   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10001 /* end confdefs.h.  */
10002
10003 /* Override any GCC internal prototype to avoid an error.
10004    Use char because int might match the return type of a GCC
10005    builtin and then its argument prototype would still apply.  */
10006 #ifdef __cplusplus
10007 extern "C"
10008 #endif
10009 char sane_init ();
10010 int
10011 main ()
10012 {
10013 return sane_init ();
10014   ;
10015   return 0;
10016 }
10017 _ACEOF
10018 if ac_fn_c_try_link "$LINENO"; then :
10019   case "$LIBEXT" in
10020     dll) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest.exe | grep "sane" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10021     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'` ;;
10022     *) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest$ac_exeext | grep "libsane\\.$LIBEXT" | sed -e "s/^.*\(libsane\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
10023   esac
10024 fi
10025 rm -f core conftest.err conftest.$ac_objext \
10026     conftest$ac_exeext conftest.$ac_ext
10027   LIBS=$ac_check_soname_save_LIBS
10028 fi
10029 if test "x$ac_cv_lib_soname_sane" = "x"; then :
10030   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10031 $as_echo "not found" >&6; }
10032
10033 else
10034   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_sane" >&5
10035 $as_echo "$ac_cv_lib_soname_sane" >&6; }
10036
10037 cat >>confdefs.h <<_ACEOF
10038 #define SONAME_LIBSANE "$ac_cv_lib_soname_sane"
10039 _ACEOF
10040
10041        SANEINCL="$ac_sane_incl"
10042
10043 fi
10044 fi
10045
10046
10047     CPPFLAGS="$ac_save_CPPFLAGS"
10048 fi
10049 if test "x$ac_cv_lib_soname_sane" = "x"; then :
10050   case "x$with_sane" in
10051   x)   as_fn_append wine_notices "|libsane ${notice_platform}development files not found, scanners won't be supported." ;;
10052   xno) ;;
10053   *)   as_fn_error $? "libsane ${notice_platform}development files not found, scanners won't be supported.
10054 This is an error since --with-sane was requested." "$LINENO" 5  ;;
10055 esac
10056 fi
10057
10058 if test "x$with_v4l" != "xno"
10059 then
10060     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lv4l1" >&5
10061 $as_echo_n "checking for -lv4l1... " >&6; }
10062 if test "${ac_cv_lib_soname_v4l1+set}" = set; then :
10063   $as_echo_n "(cached) " >&6
10064 else
10065   ac_check_soname_save_LIBS=$LIBS
10066 LIBS="-lv4l1  $LIBS"
10067   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10068 /* end confdefs.h.  */
10069
10070 /* Override any GCC internal prototype to avoid an error.
10071    Use char because int might match the return type of a GCC
10072    builtin and then its argument prototype would still apply.  */
10073 #ifdef __cplusplus
10074 extern "C"
10075 #endif
10076 char v4l1_open ();
10077 int
10078 main ()
10079 {
10080 return v4l1_open ();
10081   ;
10082   return 0;
10083 }
10084 _ACEOF
10085 if ac_fn_c_try_link "$LINENO"; then :
10086   case "$LIBEXT" in
10087     dll) ac_cv_lib_soname_v4l1=`$ac_cv_path_LDD conftest.exe | grep "v4l1" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10088     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'` ;;
10089     *) ac_cv_lib_soname_v4l1=`$ac_cv_path_LDD conftest$ac_exeext | grep "libv4l1\\.$LIBEXT" | sed -e "s/^.*\(libv4l1\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
10090   esac
10091 fi
10092 rm -f core conftest.err conftest.$ac_objext \
10093     conftest$ac_exeext conftest.$ac_ext
10094   LIBS=$ac_check_soname_save_LIBS
10095 fi
10096 if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
10097   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10098 $as_echo "not found" >&6; }
10099
10100 else
10101   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_v4l1" >&5
10102 $as_echo "$ac_cv_lib_soname_v4l1" >&6; }
10103
10104 cat >>confdefs.h <<_ACEOF
10105 #define SONAME_LIBV4L1 "$ac_cv_lib_soname_v4l1"
10106 _ACEOF
10107
10108
10109 fi
10110 fi
10111 if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
10112   case "x$with_v4l" in
10113   x)   as_fn_append wine_notices "|libv4l ${notice_platform}development files not found." ;;
10114   xno) ;;
10115   *)   as_fn_error $? "libv4l ${notice_platform}development files not found.
10116 This is an error since --with-v4l was requested." "$LINENO" 5  ;;
10117 esac
10118 fi
10119
10120 if test "x$with_gphoto" != "xno"
10121 then
10122     ac_save_CPPFLAGS="$CPPFLAGS"
10123     # Extract the first word of "gphoto2-config", so it can be a program name with args.
10124 set dummy gphoto2-config; ac_word=$2
10125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10126 $as_echo_n "checking for $ac_word... " >&6; }
10127 if test "${ac_cv_prog_gphoto2_devel+set}" = set; then :
10128   $as_echo_n "(cached) " >&6
10129 else
10130   if test -n "$gphoto2_devel"; then
10131   ac_cv_prog_gphoto2_devel="$gphoto2_devel" # Let the user override the test.
10132 else
10133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10134 for as_dir in $PATH
10135 do
10136   IFS=$as_save_IFS
10137   test -z "$as_dir" && as_dir=.
10138     for ac_exec_ext in '' $ac_executable_extensions; do
10139   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10140     ac_cv_prog_gphoto2_devel="gphoto2-config"
10141     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10142     break 2
10143   fi
10144 done
10145   done
10146 IFS=$as_save_IFS
10147
10148   test -z "$ac_cv_prog_gphoto2_devel" && ac_cv_prog_gphoto2_devel="no"
10149 fi
10150 fi
10151 gphoto2_devel=$ac_cv_prog_gphoto2_devel
10152 if test -n "$gphoto2_devel"; then
10153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gphoto2_devel" >&5
10154 $as_echo "$gphoto2_devel" >&6; }
10155 else
10156   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10157 $as_echo "no" >&6; }
10158 fi
10159
10160
10161     # Extract the first word of "gphoto2-port-config", so it can be a program name with args.
10162 set dummy gphoto2-port-config; ac_word=$2
10163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10164 $as_echo_n "checking for $ac_word... " >&6; }
10165 if test "${ac_cv_prog_gphoto2port_devel+set}" = set; then :
10166   $as_echo_n "(cached) " >&6
10167 else
10168   if test -n "$gphoto2port_devel"; then
10169   ac_cv_prog_gphoto2port_devel="$gphoto2port_devel" # Let the user override the test.
10170 else
10171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10172 for as_dir in $PATH
10173 do
10174   IFS=$as_save_IFS
10175   test -z "$as_dir" && as_dir=.
10176     for ac_exec_ext in '' $ac_executable_extensions; do
10177   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10178     ac_cv_prog_gphoto2port_devel="gphoto2-port-config"
10179     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10180     break 2
10181   fi
10182 done
10183   done
10184 IFS=$as_save_IFS
10185
10186   test -z "$ac_cv_prog_gphoto2port_devel" && ac_cv_prog_gphoto2port_devel="no"
10187 fi
10188 fi
10189 gphoto2port_devel=$ac_cv_prog_gphoto2port_devel
10190 if test -n "$gphoto2port_devel"; then
10191   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gphoto2port_devel" >&5
10192 $as_echo "$gphoto2port_devel" >&6; }
10193 else
10194   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10195 $as_echo "no" >&6; }
10196 fi
10197
10198
10199     if test "$gphoto2_devel" != "no" -a "$gphoto2port_devel" != "no"
10200     then
10201         ac_gphoto2_incl="`$gphoto2_devel --cflags` `$gphoto2port_devel --cflags`"
10202         ac_gphoto2_libs=""
10203         for i in `$gphoto2_devel --libs` `$gphoto2port_devel --libs`
10204         do
10205             case "$i" in
10206             -L/usr/lib|-L/usr/lib64) ;;
10207             -L*|-l*) ac_gphoto2_libs="$ac_gphoto2_libs $i";;
10208             esac
10209         done
10210         CPPFLAGS="$CPPFLAGS $ac_gphoto2_incl"
10211     fi
10212     ac_gphoto2_libs=${ac_gphoto2_libs:-"-lgphoto2"}
10213     ac_fn_c_check_header_mongrel "$LINENO" "gphoto2-camera.h" "ac_cv_header_gphoto2_camera_h" "$ac_includes_default"
10214 if test "x$ac_cv_header_gphoto2_camera_h" = x""yes; then :
10215   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gp_camera_new in -lgphoto2" >&5
10216 $as_echo_n "checking for gp_camera_new in -lgphoto2... " >&6; }
10217 if test "${ac_cv_lib_gphoto2_gp_camera_new+set}" = set; then :
10218   $as_echo_n "(cached) " >&6
10219 else
10220   ac_check_lib_save_LIBS=$LIBS
10221 LIBS="-lgphoto2 $ac_gphoto2_libs $LIBS"
10222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10223 /* end confdefs.h.  */
10224
10225 /* Override any GCC internal prototype to avoid an error.
10226    Use char because int might match the return type of a GCC
10227    builtin and then its argument prototype would still apply.  */
10228 #ifdef __cplusplus
10229 extern "C"
10230 #endif
10231 char gp_camera_new ();
10232 int
10233 main ()
10234 {
10235 return gp_camera_new ();
10236   ;
10237   return 0;
10238 }
10239 _ACEOF
10240 if ac_fn_c_try_link "$LINENO"; then :
10241   ac_cv_lib_gphoto2_gp_camera_new=yes
10242 else
10243   ac_cv_lib_gphoto2_gp_camera_new=no
10244 fi
10245 rm -f core conftest.err conftest.$ac_objext \
10246     conftest$ac_exeext conftest.$ac_ext
10247 LIBS=$ac_check_lib_save_LIBS
10248 fi
10249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gphoto2_gp_camera_new" >&5
10250 $as_echo "$ac_cv_lib_gphoto2_gp_camera_new" >&6; }
10251 if test "x$ac_cv_lib_gphoto2_gp_camera_new" = x""yes; then :
10252
10253 $as_echo "#define HAVE_GPHOTO2 1" >>confdefs.h
10254
10255                                    GPHOTO2LIBS="$ac_gphoto2_libs"
10256
10257                                    GPHOTO2INCL="$ac_gphoto2_incl"
10258
10259 fi
10260
10261 fi
10262
10263
10264     CPPFLAGS="$ac_save_CPPFLAGS"
10265 fi
10266 if test "$ac_cv_lib_gphoto2_gp_camera_new" != "yes"; then :
10267   case "x$with_gphoto" in
10268   x)   as_fn_append wine_notices "|libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported." ;;
10269   xno) ;;
10270   *)   as_fn_error $? "libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported.
10271 This is an error since --with-gphoto was requested." "$LINENO" 5  ;;
10272 esac
10273 fi
10274
10275
10276 if test "$ac_cv_header_resolv_h" = "yes"
10277 then
10278     ac_save_LIBS="$LIBS"
10279     for lib in '' -lresolv
10280     do
10281       LIBS="$lib $ac_save_LIBS"
10282       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10283 /* end confdefs.h.  */
10284 #ifdef HAVE_NETINET_IN_H
10285 #include <netinet/in.h>
10286 #endif
10287 #include <resolv.h>
10288 int
10289 main ()
10290 {
10291 res_query("foo",ns_c_in,0,0,0);
10292   ;
10293   return 0;
10294 }
10295 _ACEOF
10296 if ac_fn_c_try_link "$LINENO"; then :
10297
10298 $as_echo "#define HAVE_RESOLV 1" >>confdefs.h
10299
10300          RESOLVLIBS="$lib"
10301
10302 fi
10303 rm -f core conftest.err conftest.$ac_objext \
10304     conftest$ac_exeext conftest.$ac_ext
10305       if test "${RESOLVLIBS+set}" = set; then
10306         break
10307       fi
10308     done
10309     LIBS="$ac_save_LIBS"
10310 fi
10311
10312 LCMSLIBS=""
10313
10314 if test "$ac_cv_header_lcms_h" = "yes" -o "$ac_cv_header_lcms_lcms_h" = "yes"
10315 then
10316     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromFile in -llcms" >&5
10317 $as_echo_n "checking for cmsOpenProfileFromFile in -llcms... " >&6; }
10318 if test "${ac_cv_lib_lcms_cmsOpenProfileFromFile+set}" = set; then :
10319   $as_echo_n "(cached) " >&6
10320 else
10321   ac_check_lib_save_LIBS=$LIBS
10322 LIBS="-llcms  $LIBS"
10323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10324 /* end confdefs.h.  */
10325
10326 /* Override any GCC internal prototype to avoid an error.
10327    Use char because int might match the return type of a GCC
10328    builtin and then its argument prototype would still apply.  */
10329 #ifdef __cplusplus
10330 extern "C"
10331 #endif
10332 char cmsOpenProfileFromFile ();
10333 int
10334 main ()
10335 {
10336 return cmsOpenProfileFromFile ();
10337   ;
10338   return 0;
10339 }
10340 _ACEOF
10341 if ac_fn_c_try_link "$LINENO"; then :
10342   ac_cv_lib_lcms_cmsOpenProfileFromFile=yes
10343 else
10344   ac_cv_lib_lcms_cmsOpenProfileFromFile=no
10345 fi
10346 rm -f core conftest.err conftest.$ac_objext \
10347     conftest$ac_exeext conftest.$ac_ext
10348 LIBS=$ac_check_lib_save_LIBS
10349 fi
10350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsOpenProfileFromFile" >&5
10351 $as_echo "$ac_cv_lib_lcms_cmsOpenProfileFromFile" >&6; }
10352 if test "x$ac_cv_lib_lcms_cmsOpenProfileFromFile" = x""yes; then :
10353
10354 $as_echo "#define HAVE_LCMS 1" >>confdefs.h
10355
10356          LCMSLIBS="-llcms"
10357 fi
10358
10359 fi
10360 if test "$ac_cv_lib_lcms_cmsOpenProfileFromFile" != "yes"; then :
10361   case "x$with_cms" in
10362   x)   as_fn_append wine_notices "|liblcms ${notice_platform}development files not found, Color Management won't be supported." ;;
10363   xno) ;;
10364   *)   as_fn_error $? "liblcms ${notice_platform}development files not found, Color Management won't be supported.
10365 This is an error since --with-cms was requested." "$LINENO" 5  ;;
10366 esac
10367 fi
10368
10369 if test "x$with_freetype" != "xno"
10370 then
10371     for ac_prog in freetype-config freetype2-config
10372 do
10373   # Extract the first word of "$ac_prog", so it can be a program name with args.
10374 set dummy $ac_prog; ac_word=$2
10375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10376 $as_echo_n "checking for $ac_word... " >&6; }
10377 if test "${ac_cv_prog_ft_devel+set}" = set; then :
10378   $as_echo_n "(cached) " >&6
10379 else
10380   if test -n "$ft_devel"; then
10381   ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
10382 else
10383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10384 for as_dir in $PATH
10385 do
10386   IFS=$as_save_IFS
10387   test -z "$as_dir" && as_dir=.
10388     for ac_exec_ext in '' $ac_executable_extensions; do
10389   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10390     ac_cv_prog_ft_devel="$ac_prog"
10391     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10392     break 2
10393   fi
10394 done
10395   done
10396 IFS=$as_save_IFS
10397
10398 fi
10399 fi
10400 ft_devel=$ac_cv_prog_ft_devel
10401 if test -n "$ft_devel"; then
10402   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ft_devel" >&5
10403 $as_echo "$ft_devel" >&6; }
10404 else
10405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10406 $as_echo "no" >&6; }
10407 fi
10408
10409
10410   test -n "$ft_devel" && break
10411 done
10412 test -n "$ft_devel" || ft_devel="no"
10413
10414     if test "$ft_devel" != "no"
10415     then
10416         ac_freetype_incl=`$ft_devel --cflags`
10417         ac_freetype_libs=`$ft_devel --libs`
10418     fi
10419     ac_freetype_libs=${ac_freetype_libs:-"-lfreetype"}
10420     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfreetype" >&5
10421 $as_echo_n "checking for -lfreetype... " >&6; }
10422 if test "${ac_cv_lib_soname_freetype+set}" = set; then :
10423   $as_echo_n "(cached) " >&6
10424 else
10425   ac_check_soname_save_LIBS=$LIBS
10426 LIBS="-lfreetype $ac_freetype_libs $LIBS"
10427   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10428 /* end confdefs.h.  */
10429
10430 /* Override any GCC internal prototype to avoid an error.
10431    Use char because int might match the return type of a GCC
10432    builtin and then its argument prototype would still apply.  */
10433 #ifdef __cplusplus
10434 extern "C"
10435 #endif
10436 char FT_Init_FreeType ();
10437 int
10438 main ()
10439 {
10440 return FT_Init_FreeType ();
10441   ;
10442   return 0;
10443 }
10444 _ACEOF
10445 if ac_fn_c_try_link "$LINENO"; then :
10446   case "$LIBEXT" in
10447     dll) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest.exe | grep "freetype" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10448     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'` ;;
10449     *) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfreetype\\.$LIBEXT" | sed -e "s/^.*\(libfreetype\.$LIBEXT[^      ]*\).*$/\1/"';2,$d'` ;;
10450   esac
10451 fi
10452 rm -f core conftest.err conftest.$ac_objext \
10453     conftest$ac_exeext conftest.$ac_ext
10454   LIBS=$ac_check_soname_save_LIBS
10455 fi
10456 if test "x$ac_cv_lib_soname_freetype" = "x"; then :
10457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10458 $as_echo "not found" >&6; }
10459        ft_lib=no
10460 else
10461   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_freetype" >&5
10462 $as_echo "$ac_cv_lib_soname_freetype" >&6; }
10463
10464 cat >>confdefs.h <<_ACEOF
10465 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
10466 _ACEOF
10467
10468        ft_lib=yes
10469 fi
10470     if test "$ft_lib" = "yes"
10471     then
10472         ac_save_CPPFLAGS="$CPPFLAGS"
10473         CPPFLAGS="$ac_freetype_incl $CPPFLAGS"
10474         for ac_header in ft2build.h \
10475                          freetype/freetype.h \
10476                          freetype/ftglyph.h \
10477                          freetype/fttypes.h \
10478                          freetype/tttables.h \
10479                          freetype/ftsnames.h \
10480                          freetype/ttnameid.h \
10481                          freetype/ftoutln.h \
10482                          freetype/ftwinfnt.h \
10483                          freetype/ftmodapi.h \
10484                          freetype/ftlcdfil.h \
10485                          freetype/internal/sfnt.h
10486 do :
10487   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10488 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_FT2BUILD_H
10489                           # include <ft2build.h>
10490                           #endif
10491 "
10492 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10493   cat >>confdefs.h <<_ACEOF
10494 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10495 _ACEOF
10496
10497 fi
10498
10499 done
10500
10501         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10502 /* end confdefs.h.  */
10503 #include <ft2build.h>
10504                     #include <freetype/fttrigon.h>
10505 _ACEOF
10506 if ac_fn_c_try_cpp "$LINENO"; then :
10507
10508 $as_echo "#define HAVE_FREETYPE_FTTRIGON_H 1" >>confdefs.h
10509
10510                     wine_cv_fttrigon=yes
10511 else
10512   wine_cv_fttrigon=no
10513 fi
10514 rm -f conftest.err conftest.i conftest.$ac_ext
10515         ac_fn_c_check_type "$LINENO" "FT_TrueTypeEngineType" "ac_cv_type_FT_TrueTypeEngineType" "#include <freetype/ftmodapi.h>
10516 "
10517 if test "x$ac_cv_type_FT_TrueTypeEngineType" = x""yes; then :
10518
10519 cat >>confdefs.h <<_ACEOF
10520 #define HAVE_FT_TRUETYPEENGINETYPE 1
10521 _ACEOF
10522
10523
10524 fi
10525
10526         ac_save_CFLAGS="$CFLAGS"
10527         CFLAGS="$CFLAGS $ac_freetype_libs"
10528         for ac_func in FT_Load_Sfnt_Table
10529 do :
10530   ac_fn_c_check_func "$LINENO" "FT_Load_Sfnt_Table" "ac_cv_func_FT_Load_Sfnt_Table"
10531 if test "x$ac_cv_func_FT_Load_Sfnt_Table" = x""yes; then :
10532   cat >>confdefs.h <<_ACEOF
10533 #define HAVE_FT_LOAD_SFNT_TABLE 1
10534 _ACEOF
10535
10536 fi
10537 done
10538
10539         CFLAGS="$ac_save_CFLAGS"
10540         CPPFLAGS="$ac_save_CPPFLAGS"
10541                 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
10542         then
10543
10544 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
10545
10546             FREETYPELIBS="$ac_freetype_libs"
10547
10548             FREETYPEINCL="$ac_freetype_incl"
10549
10550         fi
10551     fi
10552 fi
10553 if test "x$FREETYPELIBS" = "x"; then :
10554   case "x$with_freetype" in
10555   xno) ;;
10556   *)   as_fn_error $? "FreeType ${notice_platform}development files not found. Fonts will not be built.
10557 Use the --without-freetype option if you really want this." "$LINENO" 5  ;;
10558 esac
10559 fi
10560 test "x$FREETYPELIBS" = "x" && enable_fonts=${enable_fonts:-no}
10561
10562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for parport header/ppdev.h" >&5
10563 $as_echo_n "checking for parport header/ppdev.h... " >&6; }
10564 if test "${ac_cv_c_ppdev+set}" = set; then :
10565   $as_echo_n "(cached) " >&6
10566 else
10567   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10568 /* end confdefs.h.  */
10569 #ifdef HAVE_SYS_IOCTL_H
10570 # include <sys/ioctl.h>
10571 #endif
10572 #include <linux/ppdev.h>
10573 int
10574 main ()
10575 {
10576 ioctl (1,PPCLAIM,0)
10577   ;
10578   return 0;
10579 }
10580 _ACEOF
10581 if ac_fn_c_try_compile "$LINENO"; then :
10582   ac_cv_c_ppdev="yes"
10583 else
10584   ac_cv_c_ppdev="no"
10585 fi
10586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10587 fi
10588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_ppdev" >&5
10589 $as_echo "$ac_cv_c_ppdev" >&6; }
10590 if test "$ac_cv_c_ppdev" = "yes"
10591 then
10592
10593 $as_echo "#define HAVE_PPDEV 1" >>confdefs.h
10594
10595 fi
10596
10597 ac_wine_check_funcs_save_LIBS="$LIBS"
10598 LIBS="$LIBS $LIBPTHREAD"
10599 for ac_func in \
10600         pthread_attr_get_np \
10601         pthread_getattr_np \
10602         pthread_get_stackaddr_np \
10603         pthread_get_stacksize_np
10604 do :
10605   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10606 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10607 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10608   cat >>confdefs.h <<_ACEOF
10609 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10610 _ACEOF
10611
10612 fi
10613 done
10614
10615 LIBS="$ac_wine_check_funcs_save_LIBS"
10616
10617 if test "$ac_cv_header_zlib_h" = "yes"
10618 then
10619     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
10620 $as_echo_n "checking for inflate in -lz... " >&6; }
10621 if test "${ac_cv_lib_z_inflate+set}" = set; then :
10622   $as_echo_n "(cached) " >&6
10623 else
10624   ac_check_lib_save_LIBS=$LIBS
10625 LIBS="-lz  $LIBS"
10626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10627 /* end confdefs.h.  */
10628
10629 /* Override any GCC internal prototype to avoid an error.
10630    Use char because int might match the return type of a GCC
10631    builtin and then its argument prototype would still apply.  */
10632 #ifdef __cplusplus
10633 extern "C"
10634 #endif
10635 char inflate ();
10636 int
10637 main ()
10638 {
10639 return inflate ();
10640   ;
10641   return 0;
10642 }
10643 _ACEOF
10644 if ac_fn_c_try_link "$LINENO"; then :
10645   ac_cv_lib_z_inflate=yes
10646 else
10647   ac_cv_lib_z_inflate=no
10648 fi
10649 rm -f core conftest.err conftest.$ac_objext \
10650     conftest$ac_exeext conftest.$ac_ext
10651 LIBS=$ac_check_lib_save_LIBS
10652 fi
10653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
10654 $as_echo "$ac_cv_lib_z_inflate" >&6; }
10655 if test "x$ac_cv_lib_z_inflate" = x""yes; then :
10656
10657 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
10658
10659                             ZLIB="-lz"
10660
10661 fi
10662
10663 fi
10664 if test "x$ZLIB" = "x"; then :
10665   case "x$with_zlib" in
10666   x)   as_fn_append wine_notices "|libz ${notice_platform}development files not found, data compression won't be supported." ;;
10667   xno) ;;
10668   *)   as_fn_error $? "libz ${notice_platform}development files not found, data compression won't be supported.
10669 This is an error since --with-zlib was requested." "$LINENO" 5  ;;
10670 esac
10671 fi
10672
10673 if test "x$enable_tools" != xno
10674 then
10675     if test "$ac_cv_header_gettext_po_h" = "yes"
10676     then
10677         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for po_message_msgctxt in -lgettextpo" >&5
10678 $as_echo_n "checking for po_message_msgctxt in -lgettextpo... " >&6; }
10679 if test "${ac_cv_lib_gettextpo_po_message_msgctxt+set}" = set; then :
10680   $as_echo_n "(cached) " >&6
10681 else
10682   ac_check_lib_save_LIBS=$LIBS
10683 LIBS="-lgettextpo  $LIBS"
10684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10685 /* end confdefs.h.  */
10686
10687 /* Override any GCC internal prototype to avoid an error.
10688    Use char because int might match the return type of a GCC
10689    builtin and then its argument prototype would still apply.  */
10690 #ifdef __cplusplus
10691 extern "C"
10692 #endif
10693 char po_message_msgctxt ();
10694 int
10695 main ()
10696 {
10697 return po_message_msgctxt ();
10698   ;
10699   return 0;
10700 }
10701 _ACEOF
10702 if ac_fn_c_try_link "$LINENO"; then :
10703   ac_cv_lib_gettextpo_po_message_msgctxt=yes
10704 else
10705   ac_cv_lib_gettextpo_po_message_msgctxt=no
10706 fi
10707 rm -f core conftest.err conftest.$ac_objext \
10708     conftest$ac_exeext conftest.$ac_ext
10709 LIBS=$ac_check_lib_save_LIBS
10710 fi
10711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gettextpo_po_message_msgctxt" >&5
10712 $as_echo "$ac_cv_lib_gettextpo_po_message_msgctxt" >&6; }
10713 if test "x$ac_cv_lib_gettextpo_po_message_msgctxt" = x""yes; then :
10714
10715 $as_echo "#define HAVE_LIBGETTEXTPO 1" >>confdefs.h
10716
10717                       LIBGETTEXTPO="-lgettextpo"
10718
10719 fi
10720
10721     fi
10722     if test "x$LIBGETTEXTPO" = "x"; then :
10723   case "x$with_gettextpo" in
10724   x)   as_fn_append wine_warnings "|GetText ${notice_platform}development files not found (or too old). Internationalization won't be fully supported." ;;
10725   xno) ;;
10726   *)   as_fn_error $? "GetText ${notice_platform}development files not found (or too old). Internationalization won't be fully supported.
10727 This is an error since --with-gettextpo was requested." "$LINENO" 5  ;;
10728 esac
10729 fi
10730 fi
10731
10732 if test "x$with_esd" != xno
10733 then
10734     save_CFLAGS="$CFLAGS"
10735     # Extract the first word of "esd-config", so it can be a program name with args.
10736 set dummy esd-config; ac_word=$2
10737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10738 $as_echo_n "checking for $ac_word... " >&6; }
10739 if test "${ac_cv_path_ESDCONFIG+set}" = set; then :
10740   $as_echo_n "(cached) " >&6
10741 else
10742   case $ESDCONFIG in
10743   [\\/]* | ?:[\\/]*)
10744   ac_cv_path_ESDCONFIG="$ESDCONFIG" # Let the user override the test with a path.
10745   ;;
10746   *)
10747   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10748 for as_dir in $PATH
10749 do
10750   IFS=$as_save_IFS
10751   test -z "$as_dir" && as_dir=.
10752     for ac_exec_ext in '' $ac_executable_extensions; do
10753   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10754     ac_cv_path_ESDCONFIG="$as_dir/$ac_word$ac_exec_ext"
10755     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10756     break 2
10757   fi
10758 done
10759   done
10760 IFS=$as_save_IFS
10761
10762   test -z "$ac_cv_path_ESDCONFIG" && ac_cv_path_ESDCONFIG="no"
10763   ;;
10764 esac
10765 fi
10766 ESDCONFIG=$ac_cv_path_ESDCONFIG
10767 if test -n "$ESDCONFIG"; then
10768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ESDCONFIG" >&5
10769 $as_echo "$ESDCONFIG" >&6; }
10770 else
10771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10772 $as_echo "no" >&6; }
10773 fi
10774
10775
10776     if test "x$ESDCONFIG" != "xno"
10777     then
10778         ac_esd_incl=""
10779         for i in `$ESDCONFIG --cflags`
10780         do
10781             case "$i" in
10782                 -I*) ac_esd_incl="$ac_esd_incl $i";;
10783             esac
10784         done
10785         ac_esd_libs=`$ESDCONFIG --libs`
10786         CFLAGS="$CFLAGS $ac_esd_incl"
10787     fi
10788     ac_esd_libs=${ac_esd_libs:-"-lesd"}
10789     ac_fn_c_check_header_mongrel "$LINENO" "esd.h" "ac_cv_header_esd_h" "$ac_includes_default"
10790 if test "x$ac_cv_header_esd_h" = x""yes; then :
10791   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for esd_open_sound in -lesd" >&5
10792 $as_echo_n "checking for esd_open_sound in -lesd... " >&6; }
10793 if test "${ac_cv_lib_esd_esd_open_sound+set}" = set; then :
10794   $as_echo_n "(cached) " >&6
10795 else
10796   ac_check_lib_save_LIBS=$LIBS
10797 LIBS="-lesd $ac_esd_libs $LIBS"
10798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10799 /* end confdefs.h.  */
10800
10801 /* Override any GCC internal prototype to avoid an error.
10802    Use char because int might match the return type of a GCC
10803    builtin and then its argument prototype would still apply.  */
10804 #ifdef __cplusplus
10805 extern "C"
10806 #endif
10807 char esd_open_sound ();
10808 int
10809 main ()
10810 {
10811 return esd_open_sound ();
10812   ;
10813   return 0;
10814 }
10815 _ACEOF
10816 if ac_fn_c_try_link "$LINENO"; then :
10817   ac_cv_lib_esd_esd_open_sound=yes
10818 else
10819   ac_cv_lib_esd_esd_open_sound=no
10820 fi
10821 rm -f core conftest.err conftest.$ac_objext \
10822     conftest$ac_exeext conftest.$ac_ext
10823 LIBS=$ac_check_lib_save_LIBS
10824 fi
10825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_esd_esd_open_sound" >&5
10826 $as_echo "$ac_cv_lib_esd_esd_open_sound" >&6; }
10827 if test "x$ac_cv_lib_esd_esd_open_sound" = x""yes; then :
10828   ESDINCL="$ac_esd_incl"
10829
10830              ESDLIBS="$ac_esd_libs"
10831
10832 fi
10833
10834 fi
10835
10836
10837     CFLAGS="$save_CFLAGS"
10838 fi
10839
10840 if test "x$with_gstreamer" != "xno"
10841 then
10842     ac_save_CPPFLAGS="$CPPFLAGS"
10843     if test "$PKG_CONFIG" != "false"; then
10844         ac_gst_incl=""
10845         for i in `$PKG_CONFIG --cflags gstreamer-app-0.10 2>/dev/null`
10846         do
10847             case "$i" in
10848                 -I*) ac_gst_incl="$ac_gst_incl $i";;
10849             esac
10850         done
10851         ac_gst_libs="`$PKG_CONFIG --libs gstreamer-app-0.10 2>/dev/null`"
10852         CPPFLAGS="$CPPFLAGS $ac_gst_incl"
10853         ac_fn_c_check_header_mongrel "$LINENO" "gst/gstpad.h" "ac_cv_header_gst_gstpad_h" "$ac_includes_default"
10854 if test "x$ac_cv_header_gst_gstpad_h" = x""yes; then :
10855   ac_fn_c_check_header_mongrel "$LINENO" "gst/app/gstappsink.h" "ac_cv_header_gst_app_gstappsink_h" "$ac_includes_default"
10856 if test "x$ac_cv_header_gst_app_gstappsink_h" = x""yes; then :
10857   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_pad_get_caps_reffed in -lgstreamer-0.10" >&5
10858 $as_echo_n "checking for gst_pad_get_caps_reffed in -lgstreamer-0.10... " >&6; }
10859 if test "${ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed+set}" = set; then :
10860   $as_echo_n "(cached) " >&6
10861 else
10862   ac_check_lib_save_LIBS=$LIBS
10863 LIBS="-lgstreamer-0.10  $LIBS"
10864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10865 /* end confdefs.h.  */
10866
10867 /* Override any GCC internal prototype to avoid an error.
10868    Use char because int might match the return type of a GCC
10869    builtin and then its argument prototype would still apply.  */
10870 #ifdef __cplusplus
10871 extern "C"
10872 #endif
10873 char gst_pad_get_caps_reffed ();
10874 int
10875 main ()
10876 {
10877 return gst_pad_get_caps_reffed ();
10878   ;
10879   return 0;
10880 }
10881 _ACEOF
10882 if ac_fn_c_try_link "$LINENO"; then :
10883   ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=yes
10884 else
10885   ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=no
10886 fi
10887 rm -f core conftest.err conftest.$ac_objext \
10888     conftest$ac_exeext conftest.$ac_ext
10889 LIBS=$ac_check_lib_save_LIBS
10890 fi
10891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&5
10892 $as_echo "$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&6; }
10893 if test "x$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" = x""yes; then :
10894   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_app_buffer_new in -lgstapp-0.10" >&5
10895 $as_echo_n "checking for gst_app_buffer_new in -lgstapp-0.10... " >&6; }
10896 if test "${ac_cv_lib_gstapp_0_10_gst_app_buffer_new+set}" = set; then :
10897   $as_echo_n "(cached) " >&6
10898 else
10899   ac_check_lib_save_LIBS=$LIBS
10900 LIBS="-lgstapp-0.10 $ac_gst_libs $LIBS"
10901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10902 /* end confdefs.h.  */
10903
10904 /* Override any GCC internal prototype to avoid an error.
10905    Use char because int might match the return type of a GCC
10906    builtin and then its argument prototype would still apply.  */
10907 #ifdef __cplusplus
10908 extern "C"
10909 #endif
10910 char gst_app_buffer_new ();
10911 int
10912 main ()
10913 {
10914 return gst_app_buffer_new ();
10915   ;
10916   return 0;
10917 }
10918 _ACEOF
10919 if ac_fn_c_try_link "$LINENO"; then :
10920   ac_cv_lib_gstapp_0_10_gst_app_buffer_new=yes
10921 else
10922   ac_cv_lib_gstapp_0_10_gst_app_buffer_new=no
10923 fi
10924 rm -f core conftest.err conftest.$ac_objext \
10925     conftest$ac_exeext conftest.$ac_ext
10926 LIBS=$ac_check_lib_save_LIBS
10927 fi
10928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&5
10929 $as_echo "$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&6; }
10930 if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = x""yes; then :
10931   GSTREAMER_LIBS="$ac_gst_libs"
10932
10933                      GSTREAMER_INCL="$ac_gst_incl"
10934
10935 fi
10936
10937 fi
10938
10939 fi
10940
10941
10942 fi
10943
10944
10945     fi
10946     CPPFLAGS="$ac_save_CPPFLAGS"
10947 fi
10948 if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" != xyes -a "x$ac_cv_header_QuickTime_ImageCompression_h" != xyes; then :
10949   case "x$with_gstreamer" in
10950   x)   as_fn_append wine_notices "|gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled" ;;
10951   xno) ;;
10952   *)   as_fn_error $? "gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled
10953 This is an error since --with-gstreamer was requested." "$LINENO" 5  ;;
10954 esac
10955 fi
10956 test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = xyes || enable_winegstreamer=${enable_winegstreamer:-no}
10957
10958 ALSALIBS=""
10959
10960 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
10961 then
10962     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_hw_params_get_access_mask in -lasound" >&5
10963 $as_echo_n "checking for snd_pcm_hw_params_get_access_mask in -lasound... " >&6; }
10964 if test "${ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask+set}" = set; then :
10965   $as_echo_n "(cached) " >&6
10966 else
10967   ac_check_lib_save_LIBS=$LIBS
10968 LIBS="-lasound  $LIBS"
10969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10970 /* end confdefs.h.  */
10971
10972 /* Override any GCC internal prototype to avoid an error.
10973    Use char because int might match the return type of a GCC
10974    builtin and then its argument prototype would still apply.  */
10975 #ifdef __cplusplus
10976 extern "C"
10977 #endif
10978 char snd_pcm_hw_params_get_access_mask ();
10979 int
10980 main ()
10981 {
10982 return snd_pcm_hw_params_get_access_mask ();
10983   ;
10984   return 0;
10985 }
10986 _ACEOF
10987 if ac_fn_c_try_link "$LINENO"; then :
10988   ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=yes
10989 else
10990   ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=no
10991 fi
10992 rm -f core conftest.err conftest.$ac_objext \
10993     conftest$ac_exeext conftest.$ac_ext
10994 LIBS=$ac_check_lib_save_LIBS
10995 fi
10996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&5
10997 $as_echo "$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&6; }
10998 if test "x$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" = x""yes; then :
10999   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11000 /* end confdefs.h.  */
11001 #ifdef HAVE_ALSA_ASOUNDLIB_H
11002 #include <alsa/asoundlib.h>
11003 #elif defined(HAVE_SYS_ASOUNDLIB_H)
11004 #include <sys/asoundlib.h>
11005 #endif
11006 int
11007 main ()
11008 {
11009 int ret = snd_pcm_hw_params_get_access_mask(NULL, NULL)
11010   ;
11011   return 0;
11012 }
11013 _ACEOF
11014 if ac_fn_c_try_compile "$LINENO"; then :
11015   ALSALIBS="-lasound"
11016 fi
11017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11018 fi
11019
11020 fi
11021
11022
11023 if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes"
11024 then
11025     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcapi20" >&5
11026 $as_echo_n "checking for -lcapi20... " >&6; }
11027 if test "${ac_cv_lib_soname_capi20+set}" = set; then :
11028   $as_echo_n "(cached) " >&6
11029 else
11030   ac_check_soname_save_LIBS=$LIBS
11031 LIBS="-lcapi20  $LIBS"
11032   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11033 /* end confdefs.h.  */
11034
11035 /* Override any GCC internal prototype to avoid an error.
11036    Use char because int might match the return type of a GCC
11037    builtin and then its argument prototype would still apply.  */
11038 #ifdef __cplusplus
11039 extern "C"
11040 #endif
11041 char capi20_register ();
11042 int
11043 main ()
11044 {
11045 return capi20_register ();
11046   ;
11047   return 0;
11048 }
11049 _ACEOF
11050 if ac_fn_c_try_link "$LINENO"; then :
11051   case "$LIBEXT" in
11052     dll) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest.exe | grep "capi20" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11053     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'` ;;
11054     *) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcapi20\\.$LIBEXT" | sed -e "s/^.*\(libcapi20\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'` ;;
11055   esac
11056 fi
11057 rm -f core conftest.err conftest.$ac_objext \
11058     conftest$ac_exeext conftest.$ac_ext
11059   LIBS=$ac_check_soname_save_LIBS
11060 fi
11061 if test "x$ac_cv_lib_soname_capi20" = "x"; then :
11062   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11063 $as_echo "not found" >&6; }
11064
11065 else
11066   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_capi20" >&5
11067 $as_echo "$ac_cv_lib_soname_capi20" >&6; }
11068
11069 cat >>confdefs.h <<_ACEOF
11070 #define SONAME_LIBCAPI20 "$ac_cv_lib_soname_capi20"
11071 _ACEOF
11072
11073
11074 fi
11075 fi
11076 if test "x$ac_cv_lib_soname_capi20" = "x"; then :
11077   case "x$with_capi" in
11078   x)   as_fn_append wine_notices "|libcapi20 ${notice_platform}development files not found, ISDN won't be supported." ;;
11079   xno) ;;
11080   *)   as_fn_error $? "libcapi20 ${notice_platform}development files not found, ISDN won't be supported.
11081 This is an error since --with-capi was requested." "$LINENO" 5  ;;
11082 esac
11083 fi
11084
11085 CUPSINCL=""
11086
11087 if test "x$with_cups" != "xno"
11088 then
11089     ac_save_CPPFLAGS="$CPPFLAGS"
11090     ac_cups_cflags=`cups-config --cflags 2>/dev/null`
11091     ac_cups_libs=`cups-config --ldflags 2>/dev/null`
11092     CPPFLAGS="$CPPFLAGS $ac_cups_cflags"
11093     for ac_header in cups/cups.h
11094 do :
11095   ac_fn_c_check_header_mongrel "$LINENO" "cups/cups.h" "ac_cv_header_cups_cups_h" "$ac_includes_default"
11096 if test "x$ac_cv_header_cups_cups_h" = x""yes; then :
11097   cat >>confdefs.h <<_ACEOF
11098 #define HAVE_CUPS_CUPS_H 1
11099 _ACEOF
11100  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcups" >&5
11101 $as_echo_n "checking for -lcups... " >&6; }
11102 if test "${ac_cv_lib_soname_cups+set}" = set; then :
11103   $as_echo_n "(cached) " >&6
11104 else
11105   ac_check_soname_save_LIBS=$LIBS
11106 LIBS="-lcups $ac_cups_libs $LIBS"
11107   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11108 /* end confdefs.h.  */
11109
11110 /* Override any GCC internal prototype to avoid an error.
11111    Use char because int might match the return type of a GCC
11112    builtin and then its argument prototype would still apply.  */
11113 #ifdef __cplusplus
11114 extern "C"
11115 #endif
11116 char cupsGetDefault ();
11117 int
11118 main ()
11119 {
11120 return cupsGetDefault ();
11121   ;
11122   return 0;
11123 }
11124 _ACEOF
11125 if ac_fn_c_try_link "$LINENO"; then :
11126   case "$LIBEXT" in
11127     dll) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest.exe | grep "cups" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11128     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'` ;;
11129     *) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcups\\.$LIBEXT" | sed -e "s/^.*\(libcups\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
11130   esac
11131 fi
11132 rm -f core conftest.err conftest.$ac_objext \
11133     conftest$ac_exeext conftest.$ac_ext
11134   LIBS=$ac_check_soname_save_LIBS
11135 fi
11136 if test "x$ac_cv_lib_soname_cups" = "x"; then :
11137   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11138 $as_echo "not found" >&6; }
11139
11140 else
11141   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_cups" >&5
11142 $as_echo "$ac_cv_lib_soname_cups" >&6; }
11143
11144 cat >>confdefs.h <<_ACEOF
11145 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
11146 _ACEOF
11147
11148        CUPSINCL="$ac_cups_cflags"
11149 fi
11150 fi
11151
11152 done
11153
11154     CPPFLAGS="$ac_save_CPPFLAGS"
11155 fi
11156 if test "x$ac_cv_lib_soname_cups" = "x"; then :
11157   case "x$with_cups" in
11158   x)   as_fn_append wine_notices "|libcups ${notice_platform}development files not found, CUPS won't be supported." ;;
11159   xno) ;;
11160   *)   as_fn_error $? "libcups ${notice_platform}development files not found, CUPS won't be supported.
11161 This is an error since --with-cups was requested." "$LINENO" 5  ;;
11162 esac
11163 fi
11164
11165 if test "$ac_cv_header_jack_jack_h" = "yes"
11166 then
11167     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ljack" >&5
11168 $as_echo_n "checking for -ljack... " >&6; }
11169 if test "${ac_cv_lib_soname_jack+set}" = set; then :
11170   $as_echo_n "(cached) " >&6
11171 else
11172   ac_check_soname_save_LIBS=$LIBS
11173 LIBS="-ljack  $LIBS"
11174   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11175 /* end confdefs.h.  */
11176
11177 /* Override any GCC internal prototype to avoid an error.
11178    Use char because int might match the return type of a GCC
11179    builtin and then its argument prototype would still apply.  */
11180 #ifdef __cplusplus
11181 extern "C"
11182 #endif
11183 char jack_client_new ();
11184 int
11185 main ()
11186 {
11187 return jack_client_new ();
11188   ;
11189   return 0;
11190 }
11191 _ACEOF
11192 if ac_fn_c_try_link "$LINENO"; then :
11193   case "$LIBEXT" in
11194     dll) ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest.exe | grep "jack" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11195     dylib) ac_cv_lib_soname_jack=`otool -L conftest$ac_exeext | grep "libjack-*[0-9.]*\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libjack-*[0-9.]*\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
11196     *) ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest$ac_exeext | grep "libjack-*[0-9.]*\\.$LIBEXT" | sed -e "s/^.*\(libjack-*[0-9.]*\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'` ;;
11197   esac
11198 fi
11199 rm -f core conftest.err conftest.$ac_objext \
11200     conftest$ac_exeext conftest.$ac_ext
11201   LIBS=$ac_check_soname_save_LIBS
11202 fi
11203 if test "x$ac_cv_lib_soname_jack" = "x"; then :
11204   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11205 $as_echo "not found" >&6; }
11206
11207 else
11208   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_jack" >&5
11209 $as_echo "$ac_cv_lib_soname_jack" >&6; }
11210
11211 cat >>confdefs.h <<_ACEOF
11212 #define SONAME_LIBJACK "$ac_cv_lib_soname_jack"
11213 _ACEOF
11214
11215
11216 fi
11217 fi
11218
11219 if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
11220 then
11221     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
11222 $as_echo_n "checking for -lfontconfig... " >&6; }
11223 if test "${ac_cv_lib_soname_fontconfig+set}" = set; then :
11224   $as_echo_n "(cached) " >&6
11225 else
11226   ac_check_soname_save_LIBS=$LIBS
11227 LIBS="-lfontconfig  $LIBS"
11228   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11229 /* end confdefs.h.  */
11230
11231 /* Override any GCC internal prototype to avoid an error.
11232    Use char because int might match the return type of a GCC
11233    builtin and then its argument prototype would still apply.  */
11234 #ifdef __cplusplus
11235 extern "C"
11236 #endif
11237 char FcInit ();
11238 int
11239 main ()
11240 {
11241 return FcInit ();
11242   ;
11243   return 0;
11244 }
11245 _ACEOF
11246 if ac_fn_c_try_link "$LINENO"; then :
11247   case "$LIBEXT" in
11248     dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11249     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'` ;;
11250     *) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'` ;;
11251   esac
11252 fi
11253 rm -f core conftest.err conftest.$ac_objext \
11254     conftest$ac_exeext conftest.$ac_ext
11255   LIBS=$ac_check_soname_save_LIBS
11256 fi
11257 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11258   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11259 $as_echo "not found" >&6; }
11260
11261 else
11262   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
11263 $as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
11264
11265 cat >>confdefs.h <<_ACEOF
11266 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
11267 _ACEOF
11268
11269
11270 fi
11271 elif test -n "$X_CFLAGS" -a "x$with_fontconfig" != "xno"
11272 then
11273         ac_save_CPPFLAGS="$CPPFLAGS"
11274     CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11275     $as_unset ac_cv_header_fontconfig_fontconfig_h
11276     for ac_header in fontconfig/fontconfig.h
11277 do :
11278   ac_fn_c_check_header_mongrel "$LINENO" "fontconfig/fontconfig.h" "ac_cv_header_fontconfig_fontconfig_h" "$ac_includes_default"
11279 if test "x$ac_cv_header_fontconfig_fontconfig_h" = x""yes; then :
11280   cat >>confdefs.h <<_ACEOF
11281 #define HAVE_FONTCONFIG_FONTCONFIG_H 1
11282 _ACEOF
11283
11284 fi
11285
11286 done
11287
11288     CPPFLAGS="$ac_save_CPPFLAGS"
11289     if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
11290     then
11291         FONTCONFIGINCL="$X_CFLAGS"
11292
11293         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
11294 $as_echo_n "checking for -lfontconfig... " >&6; }
11295 if test "${ac_cv_lib_soname_fontconfig+set}" = set; then :
11296   $as_echo_n "(cached) " >&6
11297 else
11298   ac_check_soname_save_LIBS=$LIBS
11299 LIBS="-lfontconfig $X_LIBS $LIBS"
11300   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11301 /* end confdefs.h.  */
11302
11303 /* Override any GCC internal prototype to avoid an error.
11304    Use char because int might match the return type of a GCC
11305    builtin and then its argument prototype would still apply.  */
11306 #ifdef __cplusplus
11307 extern "C"
11308 #endif
11309 char FcInit ();
11310 int
11311 main ()
11312 {
11313 return FcInit ();
11314   ;
11315   return 0;
11316 }
11317 _ACEOF
11318 if ac_fn_c_try_link "$LINENO"; then :
11319   case "$LIBEXT" in
11320     dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11321     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'` ;;
11322     *) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'` ;;
11323   esac
11324 fi
11325 rm -f core conftest.err conftest.$ac_objext \
11326     conftest$ac_exeext conftest.$ac_ext
11327   LIBS=$ac_check_soname_save_LIBS
11328 fi
11329 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11331 $as_echo "not found" >&6; }
11332
11333 else
11334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
11335 $as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
11336
11337 cat >>confdefs.h <<_ACEOF
11338 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
11339 _ACEOF
11340
11341
11342 fi
11343     fi
11344 fi
11345 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11346   case "x$with_fontconfig" in
11347   x)   as_fn_append wine_notices "|fontconfig ${notice_platform}development files not found, fontconfig won't be supported." ;;
11348   xno) ;;
11349   *)   as_fn_error $? "fontconfig ${notice_platform}development files not found, fontconfig won't be supported.
11350 This is an error since --with-fontconfig was requested." "$LINENO" 5  ;;
11351 esac
11352 fi
11353
11354 if test "$ac_cv_header_openssl_err_h" = "yes" -a "$ac_cv_header_openssl_ssl_h" = "yes"
11355 then
11356     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lssl" >&5
11357 $as_echo_n "checking for -lssl... " >&6; }
11358 if test "${ac_cv_lib_soname_ssl+set}" = set; then :
11359   $as_echo_n "(cached) " >&6
11360 else
11361   ac_check_soname_save_LIBS=$LIBS
11362 LIBS="-lssl  $LIBS"
11363   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11364 /* end confdefs.h.  */
11365
11366 /* Override any GCC internal prototype to avoid an error.
11367    Use char because int might match the return type of a GCC
11368    builtin and then its argument prototype would still apply.  */
11369 #ifdef __cplusplus
11370 extern "C"
11371 #endif
11372 char SSL_library_init ();
11373 int
11374 main ()
11375 {
11376 return SSL_library_init ();
11377   ;
11378   return 0;
11379 }
11380 _ACEOF
11381 if ac_fn_c_try_link "$LINENO"; then :
11382   case "$LIBEXT" in
11383     dll) ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest.exe | grep "ssl" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11384     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'` ;;
11385     *) ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep "libssl\\.$LIBEXT" | sed -e "s/^.*\(libssl\.$LIBEXT[^     ]*\).*$/\1/"';2,$d'` ;;
11386   esac
11387 fi
11388 rm -f core conftest.err conftest.$ac_objext \
11389     conftest$ac_exeext conftest.$ac_ext
11390   LIBS=$ac_check_soname_save_LIBS
11391 fi
11392 if test "x$ac_cv_lib_soname_ssl" = "x"; then :
11393   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11394 $as_echo "not found" >&6; }
11395
11396 else
11397   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ssl" >&5
11398 $as_echo "$ac_cv_lib_soname_ssl" >&6; }
11399
11400 cat >>confdefs.h <<_ACEOF
11401 #define SONAME_LIBSSL "$ac_cv_lib_soname_ssl"
11402 _ACEOF
11403
11404
11405 fi
11406     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcrypto" >&5
11407 $as_echo_n "checking for -lcrypto... " >&6; }
11408 if test "${ac_cv_lib_soname_crypto+set}" = set; then :
11409   $as_echo_n "(cached) " >&6
11410 else
11411   ac_check_soname_save_LIBS=$LIBS
11412 LIBS="-lcrypto  $LIBS"
11413   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11414 /* end confdefs.h.  */
11415
11416 /* Override any GCC internal prototype to avoid an error.
11417    Use char because int might match the return type of a GCC
11418    builtin and then its argument prototype would still apply.  */
11419 #ifdef __cplusplus
11420 extern "C"
11421 #endif
11422 char BIO_new_socket ();
11423 int
11424 main ()
11425 {
11426 return BIO_new_socket ();
11427   ;
11428   return 0;
11429 }
11430 _ACEOF
11431 if ac_fn_c_try_link "$LINENO"; then :
11432   case "$LIBEXT" in
11433     dll) ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest.exe | grep "crypto" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11434     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'` ;;
11435     *) ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcrypto\\.$LIBEXT" | sed -e "s/^.*\(libcrypto\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'` ;;
11436   esac
11437 fi
11438 rm -f core conftest.err conftest.$ac_objext \
11439     conftest$ac_exeext conftest.$ac_ext
11440   LIBS=$ac_check_soname_save_LIBS
11441 fi
11442 if test "x$ac_cv_lib_soname_crypto" = "x"; then :
11443   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11444 $as_echo "not found" >&6; }
11445
11446 else
11447   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_crypto" >&5
11448 $as_echo "$ac_cv_lib_soname_crypto" >&6; }
11449
11450 cat >>confdefs.h <<_ACEOF
11451 #define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto"
11452 _ACEOF
11453
11454
11455 fi
11456 fi
11457 if test "x$ac_cv_lib_soname_ssl" = "x" -o "x$ac_cv_lib_soname_crypto" = "x"; then :
11458   case "x$with_openssl" in
11459   x)   as_fn_append wine_warnings "|OpenSSL ${notice_platform}development files not found, SSL won't be supported." ;;
11460   xno) ;;
11461   *)   as_fn_error $? "OpenSSL ${notice_platform}development files not found, SSL won't be supported.
11462 This is an error since --with-openssl was requested." "$LINENO" 5  ;;
11463 esac
11464 fi
11465
11466 if test "$ac_cv_header_gsm_h" = "yes" -o "$ac_cv_header_gsm_gsm_h" = "yes"
11467 then
11468     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgsm" >&5
11469 $as_echo_n "checking for -lgsm... " >&6; }
11470 if test "${ac_cv_lib_soname_gsm+set}" = set; then :
11471   $as_echo_n "(cached) " >&6
11472 else
11473   ac_check_soname_save_LIBS=$LIBS
11474 LIBS="-lgsm  $LIBS"
11475   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11476 /* end confdefs.h.  */
11477
11478 /* Override any GCC internal prototype to avoid an error.
11479    Use char because int might match the return type of a GCC
11480    builtin and then its argument prototype would still apply.  */
11481 #ifdef __cplusplus
11482 extern "C"
11483 #endif
11484 char gsm_create ();
11485 int
11486 main ()
11487 {
11488 return gsm_create ();
11489   ;
11490   return 0;
11491 }
11492 _ACEOF
11493 if ac_fn_c_try_link "$LINENO"; then :
11494   case "$LIBEXT" in
11495     dll) ac_cv_lib_soname_gsm=`$ac_cv_path_LDD conftest.exe | grep "gsm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11496     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'` ;;
11497     *) ac_cv_lib_soname_gsm=`$ac_cv_path_LDD conftest$ac_exeext | grep "libgsm\\.$LIBEXT" | sed -e "s/^.*\(libgsm\.$LIBEXT[^     ]*\).*$/\1/"';2,$d'` ;;
11498   esac
11499 fi
11500 rm -f core conftest.err conftest.$ac_objext \
11501     conftest$ac_exeext conftest.$ac_ext
11502   LIBS=$ac_check_soname_save_LIBS
11503 fi
11504 if test "x$ac_cv_lib_soname_gsm" = "x"; then :
11505   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11506 $as_echo "not found" >&6; }
11507
11508 else
11509   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gsm" >&5
11510 $as_echo "$ac_cv_lib_soname_gsm" >&6; }
11511
11512 cat >>confdefs.h <<_ACEOF
11513 #define SONAME_LIBGSM "$ac_cv_lib_soname_gsm"
11514 _ACEOF
11515
11516
11517 fi
11518 fi
11519 if test "x$ac_cv_lib_soname_gsm" = "x"; then :
11520   case "x$with_gsm" in
11521   x)   as_fn_append wine_notices "|libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported." ;;
11522   xno) ;;
11523   *)   as_fn_error $? "libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported.
11524 This is an error since --with-gsm was requested." "$LINENO" 5  ;;
11525 esac
11526 fi
11527
11528 if test "$ac_cv_header_jpeglib_h" = "yes"
11529 then
11530     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ljpeg" >&5
11531 $as_echo_n "checking for -ljpeg... " >&6; }
11532 if test "${ac_cv_lib_soname_jpeg+set}" = set; then :
11533   $as_echo_n "(cached) " >&6
11534 else
11535   ac_check_soname_save_LIBS=$LIBS
11536 LIBS="-ljpeg  $LIBS"
11537   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11538 /* end confdefs.h.  */
11539
11540 /* Override any GCC internal prototype to avoid an error.
11541    Use char because int might match the return type of a GCC
11542    builtin and then its argument prototype would still apply.  */
11543 #ifdef __cplusplus
11544 extern "C"
11545 #endif
11546 char jpeg_start_decompress ();
11547 int
11548 main ()
11549 {
11550 return jpeg_start_decompress ();
11551   ;
11552   return 0;
11553 }
11554 _ACEOF
11555 if ac_fn_c_try_link "$LINENO"; then :
11556   case "$LIBEXT" in
11557     dll) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest.exe | grep "jpeg" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11558     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'` ;;
11559     *) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest$ac_exeext | grep "libjpeg\\.$LIBEXT" | sed -e "s/^.*\(libjpeg\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
11560   esac
11561 fi
11562 rm -f core conftest.err conftest.$ac_objext \
11563     conftest$ac_exeext conftest.$ac_ext
11564   LIBS=$ac_check_soname_save_LIBS
11565 fi
11566 if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
11567   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11568 $as_echo "not found" >&6; }
11569
11570 else
11571   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_jpeg" >&5
11572 $as_echo "$ac_cv_lib_soname_jpeg" >&6; }
11573
11574 cat >>confdefs.h <<_ACEOF
11575 #define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg"
11576 _ACEOF
11577
11578
11579 fi
11580 fi
11581 if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
11582   case "x$with_jpeg" in
11583   x)   as_fn_append wine_warnings "|libjpeg ${notice_platform}development files not found, JPEG won't be supported." ;;
11584   xno) ;;
11585   *)   as_fn_error $? "libjpeg ${notice_platform}development files not found, JPEG won't be supported.
11586 This is an error since --with-jpeg was requested." "$LINENO" 5  ;;
11587 esac
11588 fi
11589
11590 if test "$ac_cv_header_png_h" = "yes"
11591 then
11592     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
11593 $as_echo_n "checking for -lpng... " >&6; }
11594 if test "${ac_cv_lib_soname_png+set}" = set; then :
11595   $as_echo_n "(cached) " >&6
11596 else
11597   ac_check_soname_save_LIBS=$LIBS
11598 LIBS="-lpng -lm -lz $LIBS"
11599   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11600 /* end confdefs.h.  */
11601
11602 /* Override any GCC internal prototype to avoid an error.
11603    Use char because int might match the return type of a GCC
11604    builtin and then its argument prototype would still apply.  */
11605 #ifdef __cplusplus
11606 extern "C"
11607 #endif
11608 char png_create_read_struct ();
11609 int
11610 main ()
11611 {
11612 return png_create_read_struct ();
11613   ;
11614   return 0;
11615 }
11616 _ACEOF
11617 if ac_fn_c_try_link "$LINENO"; then :
11618   case "$LIBEXT" in
11619     dll) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest.exe | grep "png" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11620     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'` ;;
11621     *) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest$ac_exeext | grep "libpng[0-9]*\\.$LIBEXT" | sed -e "s/^.*\(libpng[0-9]*\.$LIBEXT[^         ]*\).*$/\1/"';2,$d'` ;;
11622   esac
11623 fi
11624 rm -f core conftest.err conftest.$ac_objext \
11625     conftest$ac_exeext conftest.$ac_ext
11626   LIBS=$ac_check_soname_save_LIBS
11627 fi
11628 if test "x$ac_cv_lib_soname_png" = "x"; then :
11629   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11630 $as_echo "not found" >&6; }
11631
11632 else
11633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
11634 $as_echo "$ac_cv_lib_soname_png" >&6; }
11635
11636 cat >>confdefs.h <<_ACEOF
11637 #define SONAME_LIBPNG "$ac_cv_lib_soname_png"
11638 _ACEOF
11639
11640
11641 fi
11642     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5
11643 $as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; }
11644 if test "${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+set}" = set; then :
11645   $as_echo_n "(cached) " >&6
11646 else
11647   ac_check_lib_save_LIBS=$LIBS
11648 LIBS="-lpng -lm -lz $LIBS"
11649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11650 /* end confdefs.h.  */
11651
11652 /* Override any GCC internal prototype to avoid an error.
11653    Use char because int might match the return type of a GCC
11654    builtin and then its argument prototype would still apply.  */
11655 #ifdef __cplusplus
11656 extern "C"
11657 #endif
11658 char png_set_expand_gray_1_2_4_to_8 ();
11659 int
11660 main ()
11661 {
11662 return png_set_expand_gray_1_2_4_to_8 ();
11663   ;
11664   return 0;
11665 }
11666 _ACEOF
11667 if ac_fn_c_try_link "$LINENO"; then :
11668   ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes
11669 else
11670   ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no
11671 fi
11672 rm -f core conftest.err conftest.$ac_objext \
11673     conftest$ac_exeext conftest.$ac_ext
11674 LIBS=$ac_check_lib_save_LIBS
11675 fi
11676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5
11677 $as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; }
11678 if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = x""yes; then :
11679
11680 $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
11681
11682
11683 fi
11684
11685 elif test -n "$X_CFLAGS" -a "x$with_png" != "xno"
11686 then
11687         ac_save_CPPFLAGS="$CPPFLAGS"
11688     CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11689     $as_unset ac_cv_header_png_h
11690     for ac_header in png.h
11691 do :
11692   ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
11693 if test "x$ac_cv_header_png_h" = x""yes; then :
11694   cat >>confdefs.h <<_ACEOF
11695 #define HAVE_PNG_H 1
11696 _ACEOF
11697
11698 fi
11699
11700 done
11701
11702     CPPFLAGS="$ac_save_CPPFLAGS"
11703     if test "$ac_cv_header_png_h" = "yes"
11704     then
11705         PNGINCL="$X_CFLAGS"
11706
11707         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
11708 $as_echo_n "checking for -lpng... " >&6; }
11709 if test "${ac_cv_lib_soname_png+set}" = set; then :
11710   $as_echo_n "(cached) " >&6
11711 else
11712   ac_check_soname_save_LIBS=$LIBS
11713 LIBS="-lpng $X_LIBS -lm -lz $LIBS"
11714   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11715 /* end confdefs.h.  */
11716
11717 /* Override any GCC internal prototype to avoid an error.
11718    Use char because int might match the return type of a GCC
11719    builtin and then its argument prototype would still apply.  */
11720 #ifdef __cplusplus
11721 extern "C"
11722 #endif
11723 char png_create_read_struct ();
11724 int
11725 main ()
11726 {
11727 return png_create_read_struct ();
11728   ;
11729   return 0;
11730 }
11731 _ACEOF
11732 if ac_fn_c_try_link "$LINENO"; then :
11733   case "$LIBEXT" in
11734     dll) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest.exe | grep "png" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11735     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'` ;;
11736     *) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest$ac_exeext | grep "libpng[0-9]*\\.$LIBEXT" | sed -e "s/^.*\(libpng[0-9]*\.$LIBEXT[^         ]*\).*$/\1/"';2,$d'` ;;
11737   esac
11738 fi
11739 rm -f core conftest.err conftest.$ac_objext \
11740     conftest$ac_exeext conftest.$ac_ext
11741   LIBS=$ac_check_soname_save_LIBS
11742 fi
11743 if test "x$ac_cv_lib_soname_png" = "x"; then :
11744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11745 $as_echo "not found" >&6; }
11746
11747 else
11748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
11749 $as_echo "$ac_cv_lib_soname_png" >&6; }
11750
11751 cat >>confdefs.h <<_ACEOF
11752 #define SONAME_LIBPNG "$ac_cv_lib_soname_png"
11753 _ACEOF
11754
11755
11756 fi
11757         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5
11758 $as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; }
11759 if test "${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+set}" = set; then :
11760   $as_echo_n "(cached) " >&6
11761 else
11762   ac_check_lib_save_LIBS=$LIBS
11763 LIBS="-lpng $X_LIBS -lm -lz $LIBS"
11764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11765 /* end confdefs.h.  */
11766
11767 /* Override any GCC internal prototype to avoid an error.
11768    Use char because int might match the return type of a GCC
11769    builtin and then its argument prototype would still apply.  */
11770 #ifdef __cplusplus
11771 extern "C"
11772 #endif
11773 char png_set_expand_gray_1_2_4_to_8 ();
11774 int
11775 main ()
11776 {
11777 return png_set_expand_gray_1_2_4_to_8 ();
11778   ;
11779   return 0;
11780 }
11781 _ACEOF
11782 if ac_fn_c_try_link "$LINENO"; then :
11783   ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes
11784 else
11785   ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no
11786 fi
11787 rm -f core conftest.err conftest.$ac_objext \
11788     conftest$ac_exeext conftest.$ac_ext
11789 LIBS=$ac_check_lib_save_LIBS
11790 fi
11791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5
11792 $as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; }
11793 if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = x""yes; then :
11794   $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
11795
11796 fi
11797
11798     fi
11799 fi
11800 if test "x$ac_cv_lib_soname_png" = "x"; then :
11801   case "x$with_png" in
11802   x)   as_fn_append wine_warnings "|libpng ${notice_platform}development files not found, PNG won't be supported." ;;
11803   xno) ;;
11804   *)   as_fn_error $? "libpng ${notice_platform}development files not found, PNG won't be supported.
11805 This is an error since --with-png was requested." "$LINENO" 5  ;;
11806 esac
11807 fi
11808
11809 if test "$ac_cv_header_tiffio_h" = "yes"
11810 then
11811     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ltiff" >&5
11812 $as_echo_n "checking for -ltiff... " >&6; }
11813 if test "${ac_cv_lib_soname_tiff+set}" = set; then :
11814   $as_echo_n "(cached) " >&6
11815 else
11816   ac_check_soname_save_LIBS=$LIBS
11817 LIBS="-ltiff  $LIBS"
11818   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11819 /* end confdefs.h.  */
11820
11821 /* Override any GCC internal prototype to avoid an error.
11822    Use char because int might match the return type of a GCC
11823    builtin and then its argument prototype would still apply.  */
11824 #ifdef __cplusplus
11825 extern "C"
11826 #endif
11827 char TIFFClientOpen ();
11828 int
11829 main ()
11830 {
11831 return TIFFClientOpen ();
11832   ;
11833   return 0;
11834 }
11835 _ACEOF
11836 if ac_fn_c_try_link "$LINENO"; then :
11837   case "$LIBEXT" in
11838     dll) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest.exe | grep "tiff" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11839     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'` ;;
11840     *) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest$ac_exeext | grep "libtiff\\.$LIBEXT" | sed -e "s/^.*\(libtiff\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
11841   esac
11842 fi
11843 rm -f core conftest.err conftest.$ac_objext \
11844     conftest$ac_exeext conftest.$ac_ext
11845   LIBS=$ac_check_soname_save_LIBS
11846 fi
11847 if test "x$ac_cv_lib_soname_tiff" = "x"; then :
11848   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11849 $as_echo "not found" >&6; }
11850
11851 else
11852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_tiff" >&5
11853 $as_echo "$ac_cv_lib_soname_tiff" >&6; }
11854
11855 cat >>confdefs.h <<_ACEOF
11856 #define SONAME_LIBTIFF "$ac_cv_lib_soname_tiff"
11857 _ACEOF
11858
11859
11860 fi
11861 fi
11862 if test "x$ac_cv_lib_soname_tiff" = "x"; then :
11863   case "x$with_tiff" in
11864   x)   as_fn_append wine_notices "|libtiff ${notice_platform}development files not found, TIFF won't be supported." ;;
11865   xno) ;;
11866   *)   as_fn_error $? "libtiff ${notice_platform}development files not found, TIFF won't be supported.
11867 This is an error since --with-tiff was requested." "$LINENO" 5  ;;
11868 esac
11869 fi
11870
11871 if test "$ac_cv_header_mpg123_h" = "yes"
11872 then
11873     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpg123_feed in -lmpg123" >&5
11874 $as_echo_n "checking for mpg123_feed in -lmpg123... " >&6; }
11875 if test "${ac_cv_lib_mpg123_mpg123_feed+set}" = set; then :
11876   $as_echo_n "(cached) " >&6
11877 else
11878   ac_check_lib_save_LIBS=$LIBS
11879 LIBS="-lmpg123  $LIBS"
11880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11881 /* end confdefs.h.  */
11882
11883 /* Override any GCC internal prototype to avoid an error.
11884    Use char because int might match the return type of a GCC
11885    builtin and then its argument prototype would still apply.  */
11886 #ifdef __cplusplus
11887 extern "C"
11888 #endif
11889 char mpg123_feed ();
11890 int
11891 main ()
11892 {
11893 return mpg123_feed ();
11894   ;
11895   return 0;
11896 }
11897 _ACEOF
11898 if ac_fn_c_try_link "$LINENO"; then :
11899   ac_cv_lib_mpg123_mpg123_feed=yes
11900 else
11901   ac_cv_lib_mpg123_mpg123_feed=no
11902 fi
11903 rm -f core conftest.err conftest.$ac_objext \
11904     conftest$ac_exeext conftest.$ac_ext
11905 LIBS=$ac_check_lib_save_LIBS
11906 fi
11907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpg123_mpg123_feed" >&5
11908 $as_echo "$ac_cv_lib_mpg123_mpg123_feed" >&6; }
11909 if test "x$ac_cv_lib_mpg123_mpg123_feed" = x""yes; then :
11910   LIBMPG123="-lmpg123"
11911
11912 fi
11913
11914 fi
11915 if test "x$ac_cv_lib_mpg123_mpg123_feed" != xyes -a x"$ac_cv_header_CoreAudio_CoreAudio_h" != xyes; then :
11916   case "x$with_mpg123" in
11917   x)   as_fn_append wine_notices "|libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported." ;;
11918   xno) ;;
11919   *)   as_fn_error $? "libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported.
11920 This is an error since --with-mpg123 was requested." "$LINENO" 5  ;;
11921 esac
11922 fi
11923 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}
11924
11925 if test "$ac_cv_header_AL_al_h" = "yes"
11926 then
11927     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lopenal" >&5
11928 $as_echo_n "checking for -lopenal... " >&6; }
11929 if test "${ac_cv_lib_soname_openal+set}" = set; then :
11930   $as_echo_n "(cached) " >&6
11931 else
11932   ac_check_soname_save_LIBS=$LIBS
11933 LIBS="-lopenal  $LIBS"
11934   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11935 /* end confdefs.h.  */
11936
11937 /* Override any GCC internal prototype to avoid an error.
11938    Use char because int might match the return type of a GCC
11939    builtin and then its argument prototype would still apply.  */
11940 #ifdef __cplusplus
11941 extern "C"
11942 #endif
11943 char alGetSource3i ();
11944 int
11945 main ()
11946 {
11947 return alGetSource3i ();
11948   ;
11949   return 0;
11950 }
11951 _ACEOF
11952 if ac_fn_c_try_link "$LINENO"; then :
11953   case "$LIBEXT" in
11954     dll) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest.exe | grep "openal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11955     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'` ;;
11956     *) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest$ac_exeext | grep "libopenal\\.$LIBEXT" | sed -e "s/^.*\(libopenal\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'` ;;
11957   esac
11958 fi
11959 rm -f core conftest.err conftest.$ac_objext \
11960     conftest$ac_exeext conftest.$ac_ext
11961   LIBS=$ac_check_soname_save_LIBS
11962 fi
11963 if test "x$ac_cv_lib_soname_openal" = "x"; then :
11964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11965 $as_echo "not found" >&6; }
11966
11967 else
11968   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_openal" >&5
11969 $as_echo "$ac_cv_lib_soname_openal" >&6; }
11970
11971 cat >>confdefs.h <<_ACEOF
11972 #define SONAME_LIBOPENAL "$ac_cv_lib_soname_openal"
11973 _ACEOF
11974
11975        LIBOPENAL="-lopenal"
11976
11977                       ac_cv_lib_openal=yes
11978
11979 cat >>confdefs.h <<_ACEOF
11980 #define HAVE_OPENAL 1
11981 _ACEOF
11982
11983 fi
11984 fi
11985 if test "x$ac_cv_lib_openal" != xyes; then :
11986   case "x$with_openal" in
11987   x)   as_fn_append wine_notices "|libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported." ;;
11988   xno) ;;
11989   *)   as_fn_error $? "libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported.
11990 This is an error since --with-openal was requested." "$LINENO" 5  ;;
11991 esac
11992 fi
11993 test "x$ac_cv_lib_openal" = xyes || enable_openal32=${enable_openal32:-no}
11994
11995 if test "$ac_cv_header_kstat_h" = "yes"
11996 then
11997     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
11998 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
11999 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
12000   $as_echo_n "(cached) " >&6
12001 else
12002   ac_check_lib_save_LIBS=$LIBS
12003 LIBS="-lkstat  $LIBS"
12004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12005 /* end confdefs.h.  */
12006
12007 /* Override any GCC internal prototype to avoid an error.
12008    Use char because int might match the return type of a GCC
12009    builtin and then its argument prototype would still apply.  */
12010 #ifdef __cplusplus
12011 extern "C"
12012 #endif
12013 char kstat_open ();
12014 int
12015 main ()
12016 {
12017 return kstat_open ();
12018   ;
12019   return 0;
12020 }
12021 _ACEOF
12022 if ac_fn_c_try_link "$LINENO"; then :
12023   ac_cv_lib_kstat_kstat_open=yes
12024 else
12025   ac_cv_lib_kstat_kstat_open=no
12026 fi
12027 rm -f core conftest.err conftest.$ac_objext \
12028     conftest$ac_exeext conftest.$ac_ext
12029 LIBS=$ac_check_lib_save_LIBS
12030 fi
12031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
12032 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
12033 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
12034
12035 $as_echo "#define HAVE_LIBKSTAT 1" >>confdefs.h
12036
12037                   LIBKSTAT="-lkstat"
12038
12039 fi
12040
12041 fi
12042
12043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lodbc" >&5
12044 $as_echo_n "checking for -lodbc... " >&6; }
12045 if test "${ac_cv_lib_soname_odbc+set}" = set; then :
12046   $as_echo_n "(cached) " >&6
12047 else
12048   ac_check_soname_save_LIBS=$LIBS
12049 LIBS="-lodbc  $LIBS"
12050   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12051 /* end confdefs.h.  */
12052
12053 /* Override any GCC internal prototype to avoid an error.
12054    Use char because int might match the return type of a GCC
12055    builtin and then its argument prototype would still apply.  */
12056 #ifdef __cplusplus
12057 extern "C"
12058 #endif
12059 char SQLConnect ();
12060 int
12061 main ()
12062 {
12063 return SQLConnect ();
12064   ;
12065   return 0;
12066 }
12067 _ACEOF
12068 if ac_fn_c_try_link "$LINENO"; then :
12069   case "$LIBEXT" in
12070     dll) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest.exe | grep "odbc" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12071     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'` ;;
12072     *) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest$ac_exeext | grep "libodbc\\.$LIBEXT" | sed -e "s/^.*\(libodbc\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
12073   esac
12074 fi
12075 rm -f core conftest.err conftest.$ac_objext \
12076     conftest$ac_exeext conftest.$ac_ext
12077   LIBS=$ac_check_soname_save_LIBS
12078 fi
12079 if test "x$ac_cv_lib_soname_odbc" = "x"; then :
12080   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12081 $as_echo "not found" >&6; }
12082        cat >>confdefs.h <<_ACEOF
12083 #define SONAME_LIBODBC "libodbc.$LIBEXT"
12084 _ACEOF
12085
12086 else
12087   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_odbc" >&5
12088 $as_echo "$ac_cv_lib_soname_odbc" >&6; }
12089
12090 cat >>confdefs.h <<_ACEOF
12091 #define SONAME_LIBODBC "$ac_cv_lib_soname_odbc"
12092 _ACEOF
12093
12094
12095 fi
12096
12097 test -n "$ALSALIBS" || enable_winealsa_drv=${enable_winealsa_drv:-no}
12098 test -n "$COREAUDIO" || enable_winecoreaudio_drv=${enable_winecoreaudio_drv:-no}
12099 test -n "$NASLIBS" || enable_winenas_drv=${enable_winenas_drv:-no}
12100 test -n "$ESDLIBS" || enable_wineesd_drv=${enable_wineesd_drv:-no}
12101 test -n "$ac_cv_lib_soname_jack" || enable_winejack_drv=${enable_winejack_drv:-no}
12102 test "$ac_cv_header_sys_soundcard_h" = "yes" -o \
12103      "$ac_cv_header_machine_soundcard_h" = "yes" -o \
12104      "$ac_cv_header_soundcard_h" = "yes" || enable_wineoss_drv=${enable_wineoss_drv:-no}
12105 test "$ac_cv_header_linux_joystick_h" = "yes" || enable_winejoystick_drv=${enable_winejoystick_drv:-no}
12106
12107 if test "x$ALSALIBS$COREAUDIO$NASLIBS$ESDLIBS$ac_cv_lib_soname_jack" = "x" -a \
12108         "$ac_cv_header_sys_soundcard_h" != "yes" -a \
12109         "$ac_cv_header_machine_soundcard_h" != "yes" -a \
12110         "$ac_cv_header_soundcard_h" != "yes" -a \
12111         "x$with_alsa$with_coreaudio$with_nas$with_esd$with_jack$with_oss" != xnononononono
12112 then
12113     as_fn_append wine_warnings "|No sound system was found. Windows applications will be silent."
12114 fi
12115
12116
12117 EXTRACFLAGS=""
12118
12119 if test "x${GCC}" = "xyes"
12120 then
12121   EXTRACFLAGS="-Wall -pipe"
12122
12123     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc strength-reduce bug" >&5
12124 $as_echo_n "checking for gcc strength-reduce bug... " >&6; }
12125 if test "${ac_cv_c_gcc_strength_bug+set}" = set; then :
12126   $as_echo_n "(cached) " >&6
12127 else
12128   if test "$cross_compiling" = yes; then :
12129   ac_cv_c_gcc_strength_bug="yes"
12130 else
12131   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12132 /* end confdefs.h.  */
12133 int L[4] = {0,1,2,3};
12134 int
12135 main ()
12136 {
12137 static int Array[3];
12138   unsigned int B = 3;
12139   int i;
12140   for(i=0; i<B; i++) Array[i] = i - 3;
12141   for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
12142   L[i] = 4;
12143   return (Array[1] != -2 || L[2] != 3)
12144   ;
12145   return 0;
12146 }
12147 _ACEOF
12148 if ac_fn_c_try_run "$LINENO"; then :
12149   ac_cv_c_gcc_strength_bug="no"
12150 else
12151   ac_cv_c_gcc_strength_bug="yes"
12152 fi
12153 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12154   conftest.$ac_objext conftest.beam conftest.$ac_ext
12155 fi
12156
12157 fi
12158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gcc_strength_bug" >&5
12159 $as_echo "$ac_cv_c_gcc_strength_bug" >&6; }
12160   if test "$ac_cv_c_gcc_strength_bug" = "yes"
12161   then
12162     EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
12163   fi
12164
12165     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-builtin" >&5
12166 $as_echo_n "checking whether the compiler supports -fno-builtin... " >&6; }
12167 if test "${ac_cv_cflags__fno_builtin+set}" = set; then :
12168   $as_echo_n "(cached) " >&6
12169 else
12170   ac_wine_try_cflags_saved=$CFLAGS
12171 CFLAGS="$CFLAGS -fno-builtin"
12172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12173 /* end confdefs.h.  */
12174 int main(int argc, char **argv) { return 0; }
12175 _ACEOF
12176 if ac_fn_c_try_link "$LINENO"; then :
12177   ac_cv_cflags__fno_builtin=yes
12178 else
12179   ac_cv_cflags__fno_builtin=no
12180 fi
12181 rm -f core conftest.err conftest.$ac_objext \
12182     conftest$ac_exeext conftest.$ac_ext
12183 CFLAGS=$ac_wine_try_cflags_saved
12184 fi
12185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_builtin" >&5
12186 $as_echo "$ac_cv_cflags__fno_builtin" >&6; }
12187 if test $ac_cv_cflags__fno_builtin = yes; then :
12188   BUILTINFLAG="-fno-builtin"
12189
12190 fi
12191   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-strict-aliasing" >&5
12192 $as_echo_n "checking whether the compiler supports -fno-strict-aliasing... " >&6; }
12193 if test "${ac_cv_cflags__fno_strict_aliasing+set}" = set; then :
12194   $as_echo_n "(cached) " >&6
12195 else
12196   ac_wine_try_cflags_saved=$CFLAGS
12197 CFLAGS="$CFLAGS -fno-strict-aliasing"
12198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12199 /* end confdefs.h.  */
12200 int main(int argc, char **argv) { return 0; }
12201 _ACEOF
12202 if ac_fn_c_try_link "$LINENO"; then :
12203   ac_cv_cflags__fno_strict_aliasing=yes
12204 else
12205   ac_cv_cflags__fno_strict_aliasing=no
12206 fi
12207 rm -f core conftest.err conftest.$ac_objext \
12208     conftest$ac_exeext conftest.$ac_ext
12209 CFLAGS=$ac_wine_try_cflags_saved
12210 fi
12211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_strict_aliasing" >&5
12212 $as_echo "$ac_cv_cflags__fno_strict_aliasing" >&6; }
12213 if test $ac_cv_cflags__fno_strict_aliasing = yes; then :
12214   EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
12215 fi
12216   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wdeclaration-after-statement" >&5
12217 $as_echo_n "checking whether the compiler supports -Wdeclaration-after-statement... " >&6; }
12218 if test "${ac_cv_cflags__Wdeclaration_after_statement+set}" = set; then :
12219   $as_echo_n "(cached) " >&6
12220 else
12221   ac_wine_try_cflags_saved=$CFLAGS
12222 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
12223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12224 /* end confdefs.h.  */
12225 int main(int argc, char **argv) { return 0; }
12226 _ACEOF
12227 if ac_fn_c_try_link "$LINENO"; then :
12228   ac_cv_cflags__Wdeclaration_after_statement=yes
12229 else
12230   ac_cv_cflags__Wdeclaration_after_statement=no
12231 fi
12232 rm -f core conftest.err conftest.$ac_objext \
12233     conftest$ac_exeext conftest.$ac_ext
12234 CFLAGS=$ac_wine_try_cflags_saved
12235 fi
12236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wdeclaration_after_statement" >&5
12237 $as_echo "$ac_cv_cflags__Wdeclaration_after_statement" >&6; }
12238 if test $ac_cv_cflags__Wdeclaration_after_statement = yes; then :
12239   EXTRACFLAGS="$EXTRACFLAGS -Wdeclaration-after-statement"
12240 fi
12241   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wstrict-prototypes" >&5
12242 $as_echo_n "checking whether the compiler supports -Wstrict-prototypes... " >&6; }
12243 if test "${ac_cv_cflags__Wstrict_prototypes+set}" = set; then :
12244   $as_echo_n "(cached) " >&6
12245 else
12246   ac_wine_try_cflags_saved=$CFLAGS
12247 CFLAGS="$CFLAGS -Wstrict-prototypes"
12248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12249 /* end confdefs.h.  */
12250 int main(int argc, char **argv) { return 0; }
12251 _ACEOF
12252 if ac_fn_c_try_link "$LINENO"; then :
12253   ac_cv_cflags__Wstrict_prototypes=yes
12254 else
12255   ac_cv_cflags__Wstrict_prototypes=no
12256 fi
12257 rm -f core conftest.err conftest.$ac_objext \
12258     conftest$ac_exeext conftest.$ac_ext
12259 CFLAGS=$ac_wine_try_cflags_saved
12260 fi
12261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wstrict_prototypes" >&5
12262 $as_echo "$ac_cv_cflags__Wstrict_prototypes" >&6; }
12263 if test $ac_cv_cflags__Wstrict_prototypes = yes; then :
12264   EXTRACFLAGS="$EXTRACFLAGS -Wstrict-prototypes"
12265 fi
12266   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wtype-limits" >&5
12267 $as_echo_n "checking whether the compiler supports -Wtype-limits... " >&6; }
12268 if test "${ac_cv_cflags__Wtype_limits+set}" = set; then :
12269   $as_echo_n "(cached) " >&6
12270 else
12271   ac_wine_try_cflags_saved=$CFLAGS
12272 CFLAGS="$CFLAGS -Wtype-limits"
12273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12274 /* end confdefs.h.  */
12275 int main(int argc, char **argv) { return 0; }
12276 _ACEOF
12277 if ac_fn_c_try_link "$LINENO"; then :
12278   ac_cv_cflags__Wtype_limits=yes
12279 else
12280   ac_cv_cflags__Wtype_limits=no
12281 fi
12282 rm -f core conftest.err conftest.$ac_objext \
12283     conftest$ac_exeext conftest.$ac_ext
12284 CFLAGS=$ac_wine_try_cflags_saved
12285 fi
12286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wtype_limits" >&5
12287 $as_echo "$ac_cv_cflags__Wtype_limits" >&6; }
12288 if test $ac_cv_cflags__Wtype_limits = yes; then :
12289   EXTRACFLAGS="$EXTRACFLAGS -Wtype-limits"
12290 fi
12291   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wunused-but-set-parameter" >&5
12292 $as_echo_n "checking whether the compiler supports -Wunused-but-set-parameter... " >&6; }
12293 if test "${ac_cv_cflags__Wunused_but_set_parameter+set}" = set; then :
12294   $as_echo_n "(cached) " >&6
12295 else
12296   ac_wine_try_cflags_saved=$CFLAGS
12297 CFLAGS="$CFLAGS -Wunused-but-set-parameter"
12298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12299 /* end confdefs.h.  */
12300 int main(int argc, char **argv) { return 0; }
12301 _ACEOF
12302 if ac_fn_c_try_link "$LINENO"; then :
12303   ac_cv_cflags__Wunused_but_set_parameter=yes
12304 else
12305   ac_cv_cflags__Wunused_but_set_parameter=no
12306 fi
12307 rm -f core conftest.err conftest.$ac_objext \
12308     conftest$ac_exeext conftest.$ac_ext
12309 CFLAGS=$ac_wine_try_cflags_saved
12310 fi
12311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wunused_but_set_parameter" >&5
12312 $as_echo "$ac_cv_cflags__Wunused_but_set_parameter" >&6; }
12313 if test $ac_cv_cflags__Wunused_but_set_parameter = yes; then :
12314   EXTRACFLAGS="$EXTRACFLAGS -Wunused-but-set-parameter"
12315 fi
12316   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wwrite-strings" >&5
12317 $as_echo_n "checking whether the compiler supports -Wwrite-strings... " >&6; }
12318 if test "${ac_cv_cflags__Wwrite_strings+set}" = set; then :
12319   $as_echo_n "(cached) " >&6
12320 else
12321   ac_wine_try_cflags_saved=$CFLAGS
12322 CFLAGS="$CFLAGS -Wwrite-strings"
12323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12324 /* end confdefs.h.  */
12325 int main(int argc, char **argv) { return 0; }
12326 _ACEOF
12327 if ac_fn_c_try_link "$LINENO"; then :
12328   ac_cv_cflags__Wwrite_strings=yes
12329 else
12330   ac_cv_cflags__Wwrite_strings=no
12331 fi
12332 rm -f core conftest.err conftest.$ac_objext \
12333     conftest$ac_exeext conftest.$ac_ext
12334 CFLAGS=$ac_wine_try_cflags_saved
12335 fi
12336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wwrite_strings" >&5
12337 $as_echo "$ac_cv_cflags__Wwrite_strings" >&6; }
12338 if test $ac_cv_cflags__Wwrite_strings = yes; then :
12339   EXTRACFLAGS="$EXTRACFLAGS -Wwrite-strings"
12340 fi
12341
12342     saved_CFLAGS="$CFLAGS"
12343   CFLAGS="$CFLAGS -Wpointer-arith -Werror"
12344   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wpointer-arith" >&5
12345 $as_echo_n "checking for broken string.h that generates warnings with -Wpointer-arith... " >&6; }
12346 if test "${ac_cv_c_string_h_warnings+set}" = set; then :
12347   $as_echo_n "(cached) " >&6
12348 else
12349   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12350 /* end confdefs.h.  */
12351 #include <string.h>
12352 int
12353 main ()
12354 {
12355
12356   ;
12357   return 0;
12358 }
12359 _ACEOF
12360 if ac_fn_c_try_compile "$LINENO"; then :
12361   ac_cv_c_string_h_warnings=no
12362 else
12363   ac_cv_c_string_h_warnings=yes
12364 fi
12365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12366 fi
12367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_string_h_warnings" >&5
12368 $as_echo "$ac_cv_c_string_h_warnings" >&6; }
12369   CFLAGS="$saved_CFLAGS"
12370   if test "$ac_cv_c_string_h_warnings" = "no"
12371   then
12372     EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
12373   fi
12374
12375     saved_CFLAGS="$CFLAGS"
12376   CFLAGS="$CFLAGS -Wlogical-op -Werror"
12377   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wlogical-op" >&5
12378 $as_echo_n "checking for broken string.h that generates warnings with -Wlogical-op... " >&6; }
12379 if test "${ac_cv_c_logicalop_noisy+set}" = set; then :
12380   $as_echo_n "(cached) " >&6
12381 else
12382   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12383 /* end confdefs.h.  */
12384 #include <string.h>
12385 int
12386 main ()
12387 {
12388 char*f(const char *h,char n) {return strchr(h,n);}
12389   ;
12390   return 0;
12391 }
12392 _ACEOF
12393 if ac_fn_c_try_compile "$LINENO"; then :
12394   ac_cv_c_logicalop_noisy=no
12395 else
12396   ac_cv_c_logicalop_noisy=yes
12397 fi
12398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12399 fi
12400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_logicalop_noisy" >&5
12401 $as_echo "$ac_cv_c_logicalop_noisy" >&6; }
12402   CFLAGS="$saved_CFLAGS"
12403   if test "$ac_cv_c_logicalop_noisy" = "no"
12404   then
12405     EXTRACFLAGS="$EXTRACFLAGS -Wlogical-op"
12406   fi
12407
12408     if test "x$enable_maintainer_mode" = "xyes"
12409   then
12410       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Werror" >&5
12411 $as_echo_n "checking whether the compiler supports -Werror... " >&6; }
12412 if test "${ac_cv_cflags__Werror+set}" = set; then :
12413   $as_echo_n "(cached) " >&6
12414 else
12415   ac_wine_try_cflags_saved=$CFLAGS
12416 CFLAGS="$CFLAGS -Werror"
12417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12418 /* end confdefs.h.  */
12419 int main(int argc, char **argv) { return 0; }
12420 _ACEOF
12421 if ac_fn_c_try_link "$LINENO"; then :
12422   ac_cv_cflags__Werror=yes
12423 else
12424   ac_cv_cflags__Werror=no
12425 fi
12426 rm -f core conftest.err conftest.$ac_objext \
12427     conftest$ac_exeext conftest.$ac_ext
12428 CFLAGS=$ac_wine_try_cflags_saved
12429 fi
12430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Werror" >&5
12431 $as_echo "$ac_cv_cflags__Werror" >&6; }
12432 if test $ac_cv_cflags__Werror = yes; then :
12433   EXTRACFLAGS="$EXTRACFLAGS -Werror"
12434 fi
12435   fi
12436
12437     saved_CFLAGS="$CFLAGS"
12438   CFLAGS="$CFLAGS -Werror"
12439   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ms_hook_prologue attribute" >&5
12440 $as_echo_n "checking for ms_hook_prologue attribute... " >&6; }
12441 if test "${ac_cv_have_ms_hook_prologue+set}" = set; then :
12442   $as_echo_n "(cached) " >&6
12443 else
12444   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12445 /* end confdefs.h.  */
12446 int __attribute__((__ms_hook_prologue__)) test(void) { return 0; }
12447 int
12448 main ()
12449 {
12450
12451   ;
12452   return 0;
12453 }
12454 _ACEOF
12455 if ac_fn_c_try_compile "$LINENO"; then :
12456   ac_cv_have_ms_hook_prologue="yes"
12457 else
12458   ac_cv_have_ms_hook_prologue="no"
12459 fi
12460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12461 fi
12462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ms_hook_prologue" >&5
12463 $as_echo "$ac_cv_have_ms_hook_prologue" >&6; }
12464   CFLAGS="$saved_CFLAGS"
12465   if test "$ac_cv_have_ms_hook_prologue" = "yes"
12466   then
12467
12468 $as_echo "#define DECLSPEC_HOTPATCH __attribute__((__ms_hook_prologue__))" >>confdefs.h
12469
12470   else
12471       $as_echo "#define DECLSPEC_HOTPATCH /* */" >>confdefs.h
12472
12473   fi
12474 fi
12475
12476
12477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the need to disable Fortify" >&5
12478 $as_echo_n "checking for the need to disable Fortify... " >&6; }
12479 if test "${ac_cv_c_fortify_enabled+set}" = set; then :
12480   $as_echo_n "(cached) " >&6
12481 else
12482   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12483 /* end confdefs.h.  */
12484 #include <string.h>
12485 int
12486 main ()
12487 {
12488 #if defined(__USE_FORTIFY_LEVEL) && __USE_FORTIFY_LEVEL > 0
12489 #error Fortify enabled
12490 #endif
12491   ;
12492   return 0;
12493 }
12494 _ACEOF
12495 if ac_fn_c_try_compile "$LINENO"; then :
12496   ac_cv_c_fortify_enabled=no
12497 else
12498   ac_cv_c_fortify_enabled=yes
12499 fi
12500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12501 fi
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_fortify_enabled" >&5
12503 $as_echo "$ac_cv_c_fortify_enabled" >&6; }
12504 if test "$ac_cv_c_fortify_enabled" = yes
12505 then
12506     CFLAGS="$CFLAGS -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0"
12507 fi
12508
12509
12510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need an underscore prefix" >&5
12511 $as_echo_n "checking whether external symbols need an underscore prefix... " >&6; }
12512 if test "${ac_cv_c_extern_prefix+set}" = set; then :
12513   $as_echo_n "(cached) " >&6
12514 else
12515   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12516 /* end confdefs.h.  */
12517 extern int ac_test;
12518 int
12519 main ()
12520 {
12521 asm(".globl _ac_test\n_ac_test:\t.long 0"); if (ac_test) return 1
12522   ;
12523   return 0;
12524 }
12525 _ACEOF
12526 if ac_fn_c_try_link "$LINENO"; then :
12527   ac_cv_c_extern_prefix="yes"
12528 else
12529   ac_cv_c_extern_prefix="no"
12530 fi
12531 rm -f core conftest.err conftest.$ac_objext \
12532     conftest$ac_exeext conftest.$ac_ext
12533 fi
12534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_extern_prefix" >&5
12535 $as_echo "$ac_cv_c_extern_prefix" >&6; }
12536
12537 case $host_cpu in
12538   *i[3456789]86*)
12539     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need stdcall decoration" >&5
12540 $as_echo_n "checking whether external symbols need stdcall decoration... " >&6; }
12541 if test "${ac_cv_c_stdcall_suffix+set}" = set; then :
12542   $as_echo_n "(cached) " >&6
12543 else
12544   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12545 /* end confdefs.h.  */
12546 #ifndef _MSC_VER
12547 #define __stdcall __attribute__((__stdcall__))
12548 #endif
12549 int __stdcall ac_test(int i) { return i; }
12550 int
12551 main ()
12552 {
12553 asm("jmp _ac_test@4"); if (ac_test(1)) return 1
12554   ;
12555   return 0;
12556 }
12557 _ACEOF
12558 if ac_fn_c_try_link "$LINENO"; then :
12559   ac_cv_c_stdcall_suffix="yes"
12560 else
12561   ac_cv_c_stdcall_suffix="no"
12562 fi
12563 rm -f core conftest.err conftest.$ac_objext \
12564     conftest$ac_exeext conftest.$ac_ext
12565 fi
12566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stdcall_suffix" >&5
12567 $as_echo "$ac_cv_c_stdcall_suffix" >&6; } ;;
12568   *) ac_cv_c_stdcall_suffix="no" ;;
12569 esac
12570
12571
12572 if test "$ac_cv_c_extern_prefix" = "yes"
12573 then
12574     $as_echo "#define __ASM_NAME(name) \"_\" name" >>confdefs.h
12575
12576     asm_name_prefix="_"
12577 else
12578     $as_echo "#define __ASM_NAME(name) name" >>confdefs.h
12579
12580     asm_name_prefix=""
12581 fi
12582
12583
12584 if test "$ac_cv_c_stdcall_suffix" = "yes"
12585 then
12586     $as_echo "#define __ASM_STDCALL(args) \"@\" #args" >>confdefs.h
12587
12588 else
12589     $as_echo "#define __ASM_STDCALL(args) \"\"" >>confdefs.h
12590
12591 fi
12592
12593
12594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to define a function in assembly code" >&5
12595 $as_echo_n "checking how to define a function in assembly code... " >&6; }
12596 if test "${ac_cv_asm_func_def+set}" = set; then :
12597   $as_echo_n "(cached) " >&6
12598 else
12599   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12600 /* end confdefs.h.  */
12601
12602 int
12603 main ()
12604 {
12605 asm("\t.globl _ac_test\n\t.def _ac_test; .scl 2; .type 32; .endef\n_ac_test:\t.long 0");
12606   ;
12607   return 0;
12608 }
12609 _ACEOF
12610 if ac_fn_c_try_link "$LINENO"; then :
12611   ac_cv_asm_func_def=".def"
12612 else
12613   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12614 /* end confdefs.h.  */
12615
12616 int
12617 main ()
12618 {
12619 asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0");
12620   ;
12621   return 0;
12622 }
12623 _ACEOF
12624 if ac_fn_c_try_link "$LINENO"; then :
12625   ac_cv_asm_func_def=".type @function"
12626 else
12627   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12628 /* end confdefs.h.  */
12629
12630 int
12631 main ()
12632 {
12633 asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0");
12634   ;
12635   return 0;
12636 }
12637 _ACEOF
12638 if ac_fn_c_try_link "$LINENO"; then :
12639   ac_cv_asm_func_def=".type 2"
12640 else
12641   ac_cv_asm_func_def="unknown"
12642 fi
12643 rm -f core conftest.err conftest.$ac_objext \
12644     conftest$ac_exeext conftest.$ac_ext
12645 fi
12646 rm -f core conftest.err conftest.$ac_objext \
12647     conftest$ac_exeext conftest.$ac_ext
12648 fi
12649 rm -f core conftest.err conftest.$ac_objext \
12650     conftest$ac_exeext conftest.$ac_ext
12651 fi
12652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_asm_func_def" >&5
12653 $as_echo "$ac_cv_asm_func_def" >&6; }
12654
12655
12656 case "$ac_cv_asm_func_def" in
12657   ".def")
12658      $as_echo "#define __ASM_FUNC(name) \".def \" __ASM_NAME(name) \"; .scl 2; .type 32; .endef\"" >>confdefs.h
12659
12660      asm_func_header=".def $asm_name_prefix\" #name suffix \"; .scl 2; .type 32; .endef" ;;
12661   ".type @function")
12662      $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",@function\"" >>confdefs.h
12663
12664      asm_func_header=".type $asm_name_prefix\" #name suffix \",@function" ;;
12665   ".type 2")
12666      $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",2\"" >>confdefs.h
12667
12668      asm_func_header=".type $asm_name_prefix\" #name suffix \",2" ;;
12669   *)
12670      $as_echo "#define __ASM_FUNC(name) \"\"" >>confdefs.h
12671
12672      asm_func_header="" ;;
12673 esac
12674
12675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether asm() works outside of functions" >&5
12676 $as_echo_n "checking whether asm() works outside of functions... " >&6; }
12677 if test "${ac_cv_c_asm_outside_funcs+set}" = set; then :
12678   $as_echo_n "(cached) " >&6
12679 else
12680   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12681 /* end confdefs.h.  */
12682 asm(".text\n\t.long 0");
12683 int
12684 main ()
12685 {
12686
12687   ;
12688   return 0;
12689 }
12690 _ACEOF
12691 if ac_fn_c_try_compile "$LINENO"; then :
12692   ac_cv_c_asm_outside_funcs="yes"
12693 else
12694   ac_cv_c_asm_outside_funcs="no"
12695 fi
12696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12697 fi
12698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_asm_outside_funcs" >&5
12699 $as_echo "$ac_cv_c_asm_outside_funcs" >&6; }
12700
12701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .previous is supported in assembly code" >&5
12702 $as_echo_n "checking whether .previous is supported in assembly code... " >&6; }
12703 if test "${ac_cv_c_dot_previous+set}" = set; then :
12704   $as_echo_n "(cached) " >&6
12705 else
12706   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12707 /* end confdefs.h.  */
12708
12709 int
12710 main ()
12711 {
12712 asm(".text\nac_test:\t.long 0\n\t.previous");
12713   ;
12714   return 0;
12715 }
12716 _ACEOF
12717 if ac_fn_c_try_link "$LINENO"; then :
12718   ac_cv_c_dot_previous="yes"
12719 else
12720   ac_cv_c_dot_previous="no"
12721 fi
12722 rm -f core conftest.err conftest.$ac_objext \
12723     conftest$ac_exeext conftest.$ac_ext
12724 fi
12725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dot_previous" >&5
12726 $as_echo "$ac_cv_c_dot_previous" >&6; }
12727
12728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CFI directives are supported in assembly code" >&5
12729 $as_echo_n "checking whether CFI directives are supported in assembly code... " >&6; }
12730 if test "${ac_cv_c_cfi_support+set}" = set; then :
12731   $as_echo_n "(cached) " >&6
12732 else
12733   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12734 /* end confdefs.h.  */
12735 asm(".text\nac_test:\t.cfi_startproc\n\t.long 0\n\t.cfi_endproc");
12736 int
12737 main ()
12738 {
12739
12740   ;
12741   return 0;
12742 }
12743 _ACEOF
12744 if ac_fn_c_try_compile "$LINENO"; then :
12745   ac_cv_c_cfi_support="yes"
12746 else
12747   ac_cv_c_cfi_support="no"
12748 fi
12749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12750 fi
12751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_cfi_support" >&5
12752 $as_echo "$ac_cv_c_cfi_support" >&6; }
12753
12754 asm_func_header=".globl $asm_name_prefix\" #name suffix \"\\n\\t$asm_func_header\\n$asm_name_prefix\" #name suffix \":\\n\\t"
12755 asm_func_trailer=""
12756 if test "$ac_cv_c_dot_previous" = "yes"
12757 then
12758    asm_func_trailer="\\n\\t.previous"
12759 fi
12760 if test "$ac_cv_c_cfi_support" = "yes"
12761 then
12762    asm_func_header="$asm_func_header.cfi_startproc\\n\\t"
12763    asm_func_trailer="\\n\\t.cfi_endproc$asm_func_trailer"
12764
12765 $as_echo "#define __ASM_CFI(str) str" >>confdefs.h
12766
12767    UNWINDFLAGS=-fasynchronous-unwind-tables
12768
12769 else
12770    $as_echo "#define __ASM_CFI(str) \"\"" >>confdefs.h
12771
12772 fi
12773
12774 asm_func_code="$asm_func_header\" code \"$asm_func_trailer"
12775
12776
12777 if test "$ac_cv_c_asm_outside_funcs" = "yes"
12778 then
12779     cat >>confdefs.h <<_ACEOF
12780 #define __ASM_DEFINE_FUNC(name,suffix,code) asm(".text\n\t.align 4\n\t$asm_func_code");
12781 _ACEOF
12782
12783 else
12784     cat >>confdefs.h <<_ACEOF
12785 #define __ASM_DEFINE_FUNC(name,suffix,code) void __asm_dummy_##name(void) { asm(".text\n\t.align 4\n\t$asm_func_code"); }
12786 _ACEOF
12787
12788 fi
12789
12790 $as_echo "#define __ASM_GLOBAL_FUNC(name,code) __ASM_DEFINE_FUNC(name,\"\",code)" >>confdefs.h
12791
12792
12793 $as_echo "#define __ASM_STDCALL_FUNC(name,args,code) __ASM_DEFINE_FUNC(name,__ASM_STDCALL(args),code)" >>confdefs.h
12794
12795
12796
12797 LDPATH=""
12798
12799 case $build_os in
12800   cygwin*|mingw32*)
12801     TOOLSEXT=".exe"
12802
12803     LDPATH="PATH=\"\$(TOOLSDIR)/libs/wine:\$\$PATH\""
12804     ;;
12805   darwin*|macosx*)
12806     ;;
12807   *)
12808     LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$LD_LIBRARY_PATH\""
12809     ;;
12810 esac
12811
12812 case $host_os in
12813   mingw32*)
12814     CRTLIBS="-lmsvcrt"
12815
12816     SOCKETLIBS="-L\$(top_builddir)/dlls/ws2_32 -lws2_32"
12817
12818     ;;
12819 esac
12820
12821 MAIN_BINARY="wine"
12822
12823 test "x$enable_win64" != "xyes" || MAIN_BINARY="wine64"
12824
12825 case $host_os in
12826   linux*)
12827     case $host_cpu in
12828       *i[3456789]86*) EXTRA_BINARIES="wine-preloader"
12829  ;;
12830       x86_64*) EXTRA_BINARIES="wine64-preloader"
12831  ;;
12832     esac
12833     ;;
12834 esac
12835
12836
12837 ac_save_CFLAGS="$CFLAGS"
12838 CFLAGS="$CFLAGS $BUILTINFLAG"
12839 for ac_func in \
12840         _pclose \
12841         _popen \
12842         _snprintf \
12843         _spawnvp \
12844         _strdup \
12845         _stricmp \
12846         _strnicmp \
12847         _strtoi64 \
12848         _strtoui64 \
12849         _vsnprintf \
12850         asctime_r \
12851         chsize \
12852         dlopen \
12853         epoll_create \
12854         ffs \
12855         finite \
12856         fnmatch \
12857         fork \
12858         fpclass \
12859         fstatfs \
12860         fstatvfs \
12861         ftruncate \
12862         futimes \
12863         futimesat \
12864         getattrlist \
12865         getdirentries \
12866         getopt_long \
12867         getpagesize \
12868         getpwuid \
12869         gettimeofday \
12870         getuid \
12871         kqueue \
12872         lstat \
12873         memmove \
12874         mmap \
12875         pclose \
12876         pipe2 \
12877         poll \
12878         popen \
12879         port_create \
12880         prctl \
12881         pread \
12882         pwrite \
12883         readdir \
12884         readlink \
12885         sched_yield \
12886         select \
12887         setproctitle \
12888         setrlimit \
12889         settimeofday \
12890         sigaltstack \
12891         sigprocmask \
12892         snprintf \
12893         spawnvp \
12894         statfs \
12895         statvfs \
12896         strcasecmp \
12897         strdup \
12898         strerror \
12899         strncasecmp \
12900         strtold \
12901         strtoll \
12902         strtoull \
12903         symlink \
12904         tcgetattr \
12905         thr_kill2 \
12906         timegm \
12907         usleep \
12908         vsnprintf \
12909         wait4 \
12910         waitpid \
12911
12912 do :
12913   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12914 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12915 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12916   cat >>confdefs.h <<_ACEOF
12917 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12918 _ACEOF
12919
12920 fi
12921 done
12922
12923 CFLAGS="$ac_save_CFLAGS"
12924
12925 if test "$ac_cv_func_dlopen" = no
12926 then
12927     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12928 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12929 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12930   $as_echo_n "(cached) " >&6
12931 else
12932   ac_check_lib_save_LIBS=$LIBS
12933 LIBS="-ldl  $LIBS"
12934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12935 /* end confdefs.h.  */
12936
12937 /* Override any GCC internal prototype to avoid an error.
12938    Use char because int might match the return type of a GCC
12939    builtin and then its argument prototype would still apply.  */
12940 #ifdef __cplusplus
12941 extern "C"
12942 #endif
12943 char dlopen ();
12944 int
12945 main ()
12946 {
12947 return dlopen ();
12948   ;
12949   return 0;
12950 }
12951 _ACEOF
12952 if ac_fn_c_try_link "$LINENO"; then :
12953   ac_cv_lib_dl_dlopen=yes
12954 else
12955   ac_cv_lib_dl_dlopen=no
12956 fi
12957 rm -f core conftest.err conftest.$ac_objext \
12958     conftest$ac_exeext conftest.$ac_ext
12959 LIBS=$ac_check_lib_save_LIBS
12960 fi
12961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12962 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12963 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12964   $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
12965  LIBDL="-ldl"
12966
12967 fi
12968
12969 fi
12970 ac_wine_check_funcs_save_LIBS="$LIBS"
12971 LIBS="$LIBS $LIBDL"
12972 for ac_func in dladdr
12973 do :
12974   ac_fn_c_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr"
12975 if test "x$ac_cv_func_dladdr" = x""yes; then :
12976   cat >>confdefs.h <<_ACEOF
12977 #define HAVE_DLADDR 1
12978 _ACEOF
12979
12980 fi
12981 done
12982
12983 LIBS="$ac_wine_check_funcs_save_LIBS"
12984
12985 if test "$ac_cv_func_poll" = no
12986 then
12987     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for poll in -lpoll" >&5
12988 $as_echo_n "checking for poll in -lpoll... " >&6; }
12989 if test "${ac_cv_lib_poll_poll+set}" = set; then :
12990   $as_echo_n "(cached) " >&6
12991 else
12992   ac_check_lib_save_LIBS=$LIBS
12993 LIBS="-lpoll  $LIBS"
12994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12995 /* end confdefs.h.  */
12996
12997 /* Override any GCC internal prototype to avoid an error.
12998    Use char because int might match the return type of a GCC
12999    builtin and then its argument prototype would still apply.  */
13000 #ifdef __cplusplus
13001 extern "C"
13002 #endif
13003 char poll ();
13004 int
13005 main ()
13006 {
13007 return poll ();
13008   ;
13009   return 0;
13010 }
13011 _ACEOF
13012 if ac_fn_c_try_link "$LINENO"; then :
13013   ac_cv_lib_poll_poll=yes
13014 else
13015   ac_cv_lib_poll_poll=no
13016 fi
13017 rm -f core conftest.err conftest.$ac_objext \
13018     conftest$ac_exeext conftest.$ac_ext
13019 LIBS=$ac_check_lib_save_LIBS
13020 fi
13021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_poll_poll" >&5
13022 $as_echo "$ac_cv_lib_poll_poll" >&6; }
13023 if test "x$ac_cv_lib_poll_poll" = x""yes; then :
13024   $as_echo "#define HAVE_POLL 1" >>confdefs.h
13025  LIBPOLL="-lpoll"
13026
13027 fi
13028
13029 fi
13030
13031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
13032 $as_echo_n "checking for library containing gethostbyname... " >&6; }
13033 if test "${ac_cv_search_gethostbyname+set}" = set; then :
13034   $as_echo_n "(cached) " >&6
13035 else
13036   ac_func_search_save_LIBS=$LIBS
13037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13038 /* end confdefs.h.  */
13039
13040 /* Override any GCC internal prototype to avoid an error.
13041    Use char because int might match the return type of a GCC
13042    builtin and then its argument prototype would still apply.  */
13043 #ifdef __cplusplus
13044 extern "C"
13045 #endif
13046 char gethostbyname ();
13047 int
13048 main ()
13049 {
13050 return gethostbyname ();
13051   ;
13052   return 0;
13053 }
13054 _ACEOF
13055 for ac_lib in '' nsl; do
13056   if test -z "$ac_lib"; then
13057     ac_res="none required"
13058   else
13059     ac_res=-l$ac_lib
13060     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13061   fi
13062   if ac_fn_c_try_link "$LINENO"; then :
13063   ac_cv_search_gethostbyname=$ac_res
13064 fi
13065 rm -f core conftest.err conftest.$ac_objext \
13066     conftest$ac_exeext
13067   if test "${ac_cv_search_gethostbyname+set}" = set; then :
13068   break
13069 fi
13070 done
13071 if test "${ac_cv_search_gethostbyname+set}" = set; then :
13072
13073 else
13074   ac_cv_search_gethostbyname=no
13075 fi
13076 rm conftest.$ac_ext
13077 LIBS=$ac_func_search_save_LIBS
13078 fi
13079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
13080 $as_echo "$ac_cv_search_gethostbyname" >&6; }
13081 ac_res=$ac_cv_search_gethostbyname
13082 if test "$ac_res" != no; then :
13083   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13084
13085 fi
13086
13087
13088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5
13089 $as_echo_n "checking for library containing connect... " >&6; }
13090 if test "${ac_cv_search_connect+set}" = set; then :
13091   $as_echo_n "(cached) " >&6
13092 else
13093   ac_func_search_save_LIBS=$LIBS
13094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13095 /* end confdefs.h.  */
13096
13097 /* Override any GCC internal prototype to avoid an error.
13098    Use char because int might match the return type of a GCC
13099    builtin and then its argument prototype would still apply.  */
13100 #ifdef __cplusplus
13101 extern "C"
13102 #endif
13103 char connect ();
13104 int
13105 main ()
13106 {
13107 return connect ();
13108   ;
13109   return 0;
13110 }
13111 _ACEOF
13112 for ac_lib in '' socket; do
13113   if test -z "$ac_lib"; then
13114     ac_res="none required"
13115   else
13116     ac_res=-l$ac_lib
13117     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13118   fi
13119   if ac_fn_c_try_link "$LINENO"; then :
13120   ac_cv_search_connect=$ac_res
13121 fi
13122 rm -f core conftest.err conftest.$ac_objext \
13123     conftest$ac_exeext
13124   if test "${ac_cv_search_connect+set}" = set; then :
13125   break
13126 fi
13127 done
13128 if test "${ac_cv_search_connect+set}" = set; then :
13129
13130 else
13131   ac_cv_search_connect=no
13132 fi
13133 rm conftest.$ac_ext
13134 LIBS=$ac_func_search_save_LIBS
13135 fi
13136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5
13137 $as_echo "$ac_cv_search_connect" >&6; }
13138 ac_res=$ac_cv_search_connect
13139 if test "$ac_res" != no; then :
13140   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13141
13142 fi
13143
13144
13145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
13146 $as_echo_n "checking for library containing inet_aton... " >&6; }
13147 if test "${ac_cv_search_inet_aton+set}" = set; then :
13148   $as_echo_n "(cached) " >&6
13149 else
13150   ac_func_search_save_LIBS=$LIBS
13151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13152 /* end confdefs.h.  */
13153
13154 /* Override any GCC internal prototype to avoid an error.
13155    Use char because int might match the return type of a GCC
13156    builtin and then its argument prototype would still apply.  */
13157 #ifdef __cplusplus
13158 extern "C"
13159 #endif
13160 char inet_aton ();
13161 int
13162 main ()
13163 {
13164 return inet_aton ();
13165   ;
13166   return 0;
13167 }
13168 _ACEOF
13169 for ac_lib in '' resolv; do
13170   if test -z "$ac_lib"; then
13171     ac_res="none required"
13172   else
13173     ac_res=-l$ac_lib
13174     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13175   fi
13176   if ac_fn_c_try_link "$LINENO"; then :
13177   ac_cv_search_inet_aton=$ac_res
13178 fi
13179 rm -f core conftest.err conftest.$ac_objext \
13180     conftest$ac_exeext
13181   if test "${ac_cv_search_inet_aton+set}" = set; then :
13182   break
13183 fi
13184 done
13185 if test "${ac_cv_search_inet_aton+set}" = set; then :
13186
13187 else
13188   ac_cv_search_inet_aton=no
13189 fi
13190 rm conftest.$ac_ext
13191 LIBS=$ac_func_search_save_LIBS
13192 fi
13193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
13194 $as_echo "$ac_cv_search_inet_aton" >&6; }
13195 ac_res=$ac_cv_search_inet_aton
13196 if test "$ac_res" != no; then :
13197   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13198
13199 fi
13200
13201
13202 for ac_func in \
13203         getaddrinfo \
13204         getnameinfo \
13205         getnetbyname \
13206         getprotobyname \
13207         getprotobynumber \
13208         getservbyport \
13209         inet_network \
13210         inet_ntop \
13211         inet_pton \
13212         sendmsg \
13213         socketpair \
13214
13215 do :
13216   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13217 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13218 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13219   cat >>confdefs.h <<_ACEOF
13220 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13221 _ACEOF
13222
13223 fi
13224 done
13225
13226
13227 LDAPLIBS=""
13228
13229 if test "$ac_cv_header_ldap_h" = "yes" -a "$ac_cv_header_lber_h" = "yes"
13230 then
13231     ac_fn_c_check_type "$LINENO" "LDAPSortKey" "ac_cv_type_LDAPSortKey" "#include <ldap.h>
13232 "
13233 if test "x$ac_cv_type_LDAPSortKey" = x""yes; then :
13234   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap_r" >&5
13235 $as_echo_n "checking for ldap_initialize in -lldap_r... " >&6; }
13236 if test "${ac_cv_lib_ldap_r_ldap_initialize+set}" = set; then :
13237   $as_echo_n "(cached) " >&6
13238 else
13239   ac_check_lib_save_LIBS=$LIBS
13240 LIBS="-lldap_r $LIBPTHREAD $LIBS"
13241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13242 /* end confdefs.h.  */
13243
13244 /* Override any GCC internal prototype to avoid an error.
13245    Use char because int might match the return type of a GCC
13246    builtin and then its argument prototype would still apply.  */
13247 #ifdef __cplusplus
13248 extern "C"
13249 #endif
13250 char ldap_initialize ();
13251 int
13252 main ()
13253 {
13254 return ldap_initialize ();
13255   ;
13256   return 0;
13257 }
13258 _ACEOF
13259 if ac_fn_c_try_link "$LINENO"; then :
13260   ac_cv_lib_ldap_r_ldap_initialize=yes
13261 else
13262   ac_cv_lib_ldap_r_ldap_initialize=no
13263 fi
13264 rm -f core conftest.err conftest.$ac_objext \
13265     conftest$ac_exeext conftest.$ac_ext
13266 LIBS=$ac_check_lib_save_LIBS
13267 fi
13268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_r_ldap_initialize" >&5
13269 $as_echo "$ac_cv_lib_ldap_r_ldap_initialize" >&6; }
13270 if test "x$ac_cv_lib_ldap_r_ldap_initialize" = x""yes; then :
13271   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_init in -llber" >&5
13272 $as_echo_n "checking for ber_init in -llber... " >&6; }
13273 if test "${ac_cv_lib_lber_ber_init+set}" = set; then :
13274   $as_echo_n "(cached) " >&6
13275 else
13276   ac_check_lib_save_LIBS=$LIBS
13277 LIBS="-llber $LIBPTHREAD $LIBS"
13278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13279 /* end confdefs.h.  */
13280
13281 /* Override any GCC internal prototype to avoid an error.
13282    Use char because int might match the return type of a GCC
13283    builtin and then its argument prototype would still apply.  */
13284 #ifdef __cplusplus
13285 extern "C"
13286 #endif
13287 char ber_init ();
13288 int
13289 main ()
13290 {
13291 return ber_init ();
13292   ;
13293   return 0;
13294 }
13295 _ACEOF
13296 if ac_fn_c_try_link "$LINENO"; then :
13297   ac_cv_lib_lber_ber_init=yes
13298 else
13299   ac_cv_lib_lber_ber_init=no
13300 fi
13301 rm -f core conftest.err conftest.$ac_objext \
13302     conftest$ac_exeext conftest.$ac_ext
13303 LIBS=$ac_check_lib_save_LIBS
13304 fi
13305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_init" >&5
13306 $as_echo "$ac_cv_lib_lber_ber_init" >&6; }
13307 if test "x$ac_cv_lib_lber_ber_init" = x""yes; then :
13308
13309 $as_echo "#define HAVE_LDAP 1" >>confdefs.h
13310
13311                  LDAPLIBS="-lldap_r -llber"
13312 fi
13313
13314 fi
13315
13316 fi
13317
13318     ac_wine_check_funcs_save_LIBS="$LIBS"
13319 LIBS="$LIBS $LDAPLIBS $LIBPTHREAD"
13320 for ac_func in \
13321         ldap_count_references \
13322         ldap_first_reference \
13323         ldap_next_reference \
13324         ldap_parse_reference \
13325         ldap_parse_sort_control \
13326         ldap_parse_sortresponse_control \
13327         ldap_parse_vlv_control \
13328         ldap_parse_vlvresponse_control
13329 do :
13330   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13331 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13332 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13333   cat >>confdefs.h <<_ACEOF
13334 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13335 _ACEOF
13336
13337 fi
13338 done
13339
13340 LIBS="$ac_wine_check_funcs_save_LIBS"
13341 fi
13342 if test "x$LDAPLIBS" = "x"; then :
13343   case "x$with_ldap" in
13344   x)   as_fn_append wine_notices "|libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported." ;;
13345   xno) ;;
13346   *)   as_fn_error $? "libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported.
13347 This is an error since --with-ldap was requested." "$LINENO" 5  ;;
13348 esac
13349 fi
13350
13351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir takes only one argument" >&5
13352 $as_echo_n "checking whether mkdir takes only one argument... " >&6; }
13353 if test "${wine_cv_one_arg_mkdir+set}" = set; then :
13354   $as_echo_n "(cached) " >&6
13355 else
13356   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13357 /* end confdefs.h.  */
13358 #include <sys/stat.h>
13359 int
13360 main ()
13361 {
13362 mkdir("foo");
13363   ;
13364   return 0;
13365 }
13366 _ACEOF
13367 if ac_fn_c_try_compile "$LINENO"; then :
13368   wine_cv_one_arg_mkdir=yes
13369 else
13370   wine_cv_one_arg_mkdir=no
13371 fi
13372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13373 fi
13374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_one_arg_mkdir" >&5
13375 $as_echo "$wine_cv_one_arg_mkdir" >&6; }
13376 if test "$wine_cv_one_arg_mkdir" = "yes"
13377 then
13378
13379 $as_echo "#define HAVE_ONE_ARG_MKDIR 1" >>confdefs.h
13380
13381 fi
13382
13383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_setaffinity" >&5
13384 $as_echo_n "checking for sched_setaffinity... " >&6; }
13385 if test "${wine_cv_have_sched_setaffinity+set}" = set; then :
13386   $as_echo_n "(cached) " >&6
13387 else
13388   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13389 /* end confdefs.h.  */
13390 #define _GNU_SOURCE
13391 #include <sched.h>
13392 int
13393 main ()
13394 {
13395 sched_setaffinity(0, 0, 0);
13396   ;
13397   return 0;
13398 }
13399 _ACEOF
13400 if ac_fn_c_try_link "$LINENO"; then :
13401   wine_cv_have_sched_setaffinity=yes
13402 else
13403   wine_cv_have_sched_setaffinity=no
13404 fi
13405 rm -f core conftest.err conftest.$ac_objext \
13406     conftest$ac_exeext conftest.$ac_ext
13407 fi
13408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sched_setaffinity" >&5
13409 $as_echo "$wine_cv_have_sched_setaffinity" >&6; }
13410 if test "$wine_cv_have_sched_setaffinity" = "yes"
13411 then
13412
13413 $as_echo "#define HAVE_SCHED_SETAFFINITY 1" >>confdefs.h
13414
13415 fi
13416
13417
13418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13419 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13420 if test "${ac_cv_c_const+set}" = set; then :
13421   $as_echo_n "(cached) " >&6
13422 else
13423   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13424 /* end confdefs.h.  */
13425
13426 int
13427 main ()
13428 {
13429 /* FIXME: Include the comments suggested by Paul. */
13430 #ifndef __cplusplus
13431   /* Ultrix mips cc rejects this.  */
13432   typedef int charset[2];
13433   const charset cs;
13434   /* SunOS 4.1.1 cc rejects this.  */
13435   char const *const *pcpcc;
13436   char **ppc;
13437   /* NEC SVR4.0.2 mips cc rejects this.  */
13438   struct point {int x, y;};
13439   static struct point const zero = {0,0};
13440   /* AIX XL C 1.02.0.0 rejects this.
13441      It does not let you subtract one const X* pointer from another in
13442      an arm of an if-expression whose if-part is not a constant
13443      expression */
13444   const char *g = "string";
13445   pcpcc = &g + (g ? g-g : 0);
13446   /* HPUX 7.0 cc rejects these. */
13447   ++pcpcc;
13448   ppc = (char**) pcpcc;
13449   pcpcc = (char const *const *) ppc;
13450   { /* SCO 3.2v4 cc rejects this.  */
13451     char *t;
13452     char const *s = 0 ? (char *) 0 : (char const *) 0;
13453
13454     *t++ = 0;
13455     if (s) return 0;
13456   }
13457   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
13458     int x[] = {25, 17};
13459     const int *foo = &x[0];
13460     ++foo;
13461   }
13462   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13463     typedef const int *iptr;
13464     iptr p = 0;
13465     ++p;
13466   }
13467   { /* AIX XL C 1.02.0.0 rejects this saying
13468        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13469     struct s { int j; const int *ap[3]; };
13470     struct s *b; b->j = 5;
13471   }
13472   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13473     const int foo = 10;
13474     if (!foo) return 0;
13475   }
13476   return !cs[0] && !zero.x;
13477 #endif
13478
13479   ;
13480   return 0;
13481 }
13482 _ACEOF
13483 if ac_fn_c_try_compile "$LINENO"; then :
13484   ac_cv_c_const=yes
13485 else
13486   ac_cv_c_const=no
13487 fi
13488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13489 fi
13490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13491 $as_echo "$ac_cv_c_const" >&6; }
13492 if test $ac_cv_c_const = no; then
13493
13494 $as_echo "#define const /**/" >>confdefs.h
13495
13496 fi
13497
13498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13499 $as_echo_n "checking for inline... " >&6; }
13500 if test "${ac_cv_c_inline+set}" = set; then :
13501   $as_echo_n "(cached) " >&6
13502 else
13503   ac_cv_c_inline=no
13504 for ac_kw in inline __inline__ __inline; do
13505   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13506 /* end confdefs.h.  */
13507 #ifndef __cplusplus
13508 typedef int foo_t;
13509 static $ac_kw foo_t static_foo () {return 0; }
13510 $ac_kw foo_t foo () {return 0; }
13511 #endif
13512
13513 _ACEOF
13514 if ac_fn_c_try_compile "$LINENO"; then :
13515   ac_cv_c_inline=$ac_kw
13516 fi
13517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13518   test "$ac_cv_c_inline" != no && break
13519 done
13520
13521 fi
13522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13523 $as_echo "$ac_cv_c_inline" >&6; }
13524
13525 case $ac_cv_c_inline in
13526   inline | yes) ;;
13527   *)
13528     case $ac_cv_c_inline in
13529       no) ac_val=;;
13530       *) ac_val=$ac_cv_c_inline;;
13531     esac
13532     cat >>confdefs.h <<_ACEOF
13533 #ifndef __cplusplus
13534 #define inline $ac_val
13535 #endif
13536 _ACEOF
13537     ;;
13538 esac
13539
13540 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
13541 if test "x$ac_cv_type_mode_t" = x""yes; then :
13542
13543 cat >>confdefs.h <<_ACEOF
13544 #define HAVE_MODE_T 1
13545 _ACEOF
13546
13547
13548 fi
13549 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
13550 if test "x$ac_cv_type_off_t" = x""yes; then :
13551
13552 cat >>confdefs.h <<_ACEOF
13553 #define HAVE_OFF_T 1
13554 _ACEOF
13555
13556
13557 fi
13558 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13559 if test "x$ac_cv_type_pid_t" = x""yes; then :
13560
13561 cat >>confdefs.h <<_ACEOF
13562 #define HAVE_PID_T 1
13563 _ACEOF
13564
13565
13566 fi
13567 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13568 if test "x$ac_cv_type_size_t" = x""yes; then :
13569
13570 cat >>confdefs.h <<_ACEOF
13571 #define HAVE_SIZE_T 1
13572 _ACEOF
13573
13574
13575 fi
13576 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
13577 if test "x$ac_cv_type_ssize_t" = x""yes; then :
13578
13579 cat >>confdefs.h <<_ACEOF
13580 #define HAVE_SSIZE_T 1
13581 _ACEOF
13582
13583
13584 fi
13585 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
13586 if test "x$ac_cv_type_long_long" = x""yes; then :
13587
13588 cat >>confdefs.h <<_ACEOF
13589 #define HAVE_LONG_LONG 1
13590 _ACEOF
13591
13592
13593 fi
13594 ac_fn_c_check_type "$LINENO" "fsblkcnt_t" "ac_cv_type_fsblkcnt_t" "$ac_includes_default"
13595 if test "x$ac_cv_type_fsblkcnt_t" = x""yes; then :
13596
13597 cat >>confdefs.h <<_ACEOF
13598 #define HAVE_FSBLKCNT_T 1
13599 _ACEOF
13600
13601
13602 fi
13603 ac_fn_c_check_type "$LINENO" "fsfilcnt_t" "ac_cv_type_fsfilcnt_t" "$ac_includes_default"
13604 if test "x$ac_cv_type_fsfilcnt_t" = x""yes; then :
13605
13606 cat >>confdefs.h <<_ACEOF
13607 #define HAVE_FSFILCNT_T 1
13608 _ACEOF
13609
13610
13611 fi
13612
13613 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "#include <sys/types.h>
13614 #include <signal.h>
13615 "
13616 if test "x$ac_cv_type_sigset_t" = x""yes; then :
13617
13618 cat >>confdefs.h <<_ACEOF
13619 #define HAVE_SIGSET_T 1
13620 _ACEOF
13621
13622
13623 fi
13624
13625 ac_fn_c_check_type "$LINENO" "request_sense" "ac_cv_type_request_sense" "#include <linux/cdrom.h>
13626 "
13627 if test "x$ac_cv_type_request_sense" = x""yes; then :
13628
13629 cat >>confdefs.h <<_ACEOF
13630 #define HAVE_REQUEST_SENSE 1
13631 _ACEOF
13632
13633
13634 fi
13635
13636
13637 ac_fn_c_check_type "$LINENO" "struct xinpgen" "ac_cv_type_struct_xinpgen" "#include <sys/types.h>
13638 #ifdef HAVE_SYS_SOCKET_H
13639 #include <sys/socket.h>
13640 #endif
13641 #ifdef HAVE_SYS_SOCKETVAR_H
13642 #include <sys/socketvar.h>
13643 #endif
13644 #ifdef HAVE_NET_ROUTE_H
13645 #include <net/route.h>
13646 #endif
13647 #ifdef HAVE_NETINET_IN_H
13648 #include <netinet/in.h>
13649 #endif
13650 #ifdef HAVE_NETINET_IN_SYSTM_H
13651 #include <netinet/in_systm.h>
13652 #endif
13653 #ifdef HAVE_NETINET_IP_H
13654 #include <netinet/ip.h>
13655 #endif
13656 #ifdef HAVE_NETINET_IN_PCB_H
13657 #include <netinet/in_pcb.h>
13658 #endif
13659 "
13660 if test "x$ac_cv_type_struct_xinpgen" = x""yes; then :
13661
13662 cat >>confdefs.h <<_ACEOF
13663 #define HAVE_STRUCT_XINPGEN 1
13664 _ACEOF
13665
13666
13667 fi
13668
13669
13670 ac_fn_c_check_member "$LINENO" "struct ff_effect" "direction" "ac_cv_member_struct_ff_effect_direction" "#ifdef HAVE_LINUX_INPUT_H
13671 #include <linux/input.h>
13672 #endif
13673 "
13674 if test "x$ac_cv_member_struct_ff_effect_direction" = x""yes; then :
13675
13676 cat >>confdefs.h <<_ACEOF
13677 #define HAVE_STRUCT_FF_EFFECT_DIRECTION 1
13678 _ACEOF
13679
13680
13681 fi
13682
13683
13684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigaddset" >&5
13685 $as_echo_n "checking for sigaddset... " >&6; }
13686 if test "${wine_cv_have_sigaddset+set}" = set; then :
13687   $as_echo_n "(cached) " >&6
13688 else
13689   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13690 /* end confdefs.h.  */
13691 #include <signal.h>
13692 int
13693 main ()
13694 {
13695 sigset_t set; sigaddset(&set,SIGTERM);
13696   ;
13697   return 0;
13698 }
13699 _ACEOF
13700 if ac_fn_c_try_link "$LINENO"; then :
13701   wine_cv_have_sigaddset=yes
13702 else
13703   wine_cv_have_sigaddset=no
13704 fi
13705 rm -f core conftest.err conftest.$ac_objext \
13706     conftest$ac_exeext conftest.$ac_ext
13707 fi
13708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sigaddset" >&5
13709 $as_echo "$wine_cv_have_sigaddset" >&6; }
13710 if test "$wine_cv_have_sigaddset" = "yes"
13711 then
13712
13713 $as_echo "#define HAVE_SIGADDSET 1" >>confdefs.h
13714
13715 fi
13716
13717
13718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
13719 $as_echo_n "checking whether we can use re-entrant gethostbyname_r Linux style... " >&6; }
13720 if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then :
13721   $as_echo_n "(cached) " >&6
13722 else
13723   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13724 /* end confdefs.h.  */
13725 #include <netdb.h>
13726 int
13727 main ()
13728 {
13729
13730     char *name=0;
13731     struct hostent he;
13732     struct hostent *result;
13733     char *buf=0;
13734     int bufsize=0;
13735     int res,errnr;
13736     char *addr=0;
13737     int addrlen=0;
13738     int addrtype=0;
13739     res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
13740     res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
13741
13742   ;
13743   return 0;
13744 }
13745 _ACEOF
13746 if ac_fn_c_try_link "$LINENO"; then :
13747   wine_cv_linux_gethostbyname_r_6=yes
13748 else
13749   wine_cv_linux_gethostbyname_r_6=no
13750
13751 fi
13752 rm -f core conftest.err conftest.$ac_objext \
13753     conftest$ac_exeext conftest.$ac_ext
13754
13755 fi
13756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_gethostbyname_r_6" >&5
13757 $as_echo "$wine_cv_linux_gethostbyname_r_6" >&6; }
13758    if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
13759    then
13760
13761 $as_echo "#define HAVE_LINUX_GETHOSTBYNAME_R_6 1" >>confdefs.h
13762
13763    fi
13764
13765 if test "$ac_cv_header_linux_joystick_h" = "yes"
13766 then
13767    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
13768 $as_echo_n "checking whether linux/joystick.h uses the Linux 2.2+ API... " >&6; }
13769 if test "${wine_cv_linux_joystick_22_api+set}" = set; then :
13770   $as_echo_n "(cached) " >&6
13771 else
13772   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13773 /* end confdefs.h.  */
13774
13775         #include <sys/ioctl.h>
13776         #include <sys/types.h>
13777         #include <linux/joystick.h>
13778
13779         struct js_event blub;
13780         #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
13781         #error "no 2.2 header"
13782         #endif
13783
13784 int
13785 main ()
13786 {
13787 /*empty*/
13788   ;
13789   return 0;
13790 }
13791 _ACEOF
13792 if ac_fn_c_try_compile "$LINENO"; then :
13793   wine_cv_linux_joystick_22_api=yes
13794 else
13795   wine_cv_linux_joystick_22_api=no
13796 fi
13797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13798
13799 fi
13800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_joystick_22_api" >&5
13801 $as_echo "$wine_cv_linux_joystick_22_api" >&6; }
13802    if test "$wine_cv_linux_joystick_22_api" = "yes"
13803    then
13804
13805 $as_echo "#define HAVE_LINUX_22_JOYSTICK_API 1" >>confdefs.h
13806
13807    fi
13808 fi
13809
13810
13811 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bfree" "ac_cv_member_struct_statfs_f_bfree" "#include <sys/types.h>
13812 #ifdef HAVE_SYS_PARAM_H
13813 # include <sys/param.h>
13814 #endif
13815 #ifdef HAVE_SYS_MOUNT_H
13816 # include <sys/mount.h>
13817 #endif
13818 #ifdef HAVE_SYS_VFS_H
13819 # include <sys/vfs.h>
13820 #endif
13821 #ifdef HAVE_SYS_STATFS_H
13822 # include <sys/statfs.h>
13823 #endif
13824 "
13825 if test "x$ac_cv_member_struct_statfs_f_bfree" = x""yes; then :
13826
13827 cat >>confdefs.h <<_ACEOF
13828 #define HAVE_STRUCT_STATFS_F_BFREE 1
13829 _ACEOF
13830
13831
13832 fi
13833 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bavail" "ac_cv_member_struct_statfs_f_bavail" "#include <sys/types.h>
13834 #ifdef HAVE_SYS_PARAM_H
13835 # include <sys/param.h>
13836 #endif
13837 #ifdef HAVE_SYS_MOUNT_H
13838 # include <sys/mount.h>
13839 #endif
13840 #ifdef HAVE_SYS_VFS_H
13841 # include <sys/vfs.h>
13842 #endif
13843 #ifdef HAVE_SYS_STATFS_H
13844 # include <sys/statfs.h>
13845 #endif
13846 "
13847 if test "x$ac_cv_member_struct_statfs_f_bavail" = x""yes; then :
13848
13849 cat >>confdefs.h <<_ACEOF
13850 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
13851 _ACEOF
13852
13853
13854 fi
13855 ac_fn_c_check_member "$LINENO" "struct statfs" "f_frsize" "ac_cv_member_struct_statfs_f_frsize" "#include <sys/types.h>
13856 #ifdef HAVE_SYS_PARAM_H
13857 # include <sys/param.h>
13858 #endif
13859 #ifdef HAVE_SYS_MOUNT_H
13860 # include <sys/mount.h>
13861 #endif
13862 #ifdef HAVE_SYS_VFS_H
13863 # include <sys/vfs.h>
13864 #endif
13865 #ifdef HAVE_SYS_STATFS_H
13866 # include <sys/statfs.h>
13867 #endif
13868 "
13869 if test "x$ac_cv_member_struct_statfs_f_frsize" = x""yes; then :
13870
13871 cat >>confdefs.h <<_ACEOF
13872 #define HAVE_STRUCT_STATFS_F_FRSIZE 1
13873 _ACEOF
13874
13875
13876 fi
13877 ac_fn_c_check_member "$LINENO" "struct statfs" "f_ffree" "ac_cv_member_struct_statfs_f_ffree" "#include <sys/types.h>
13878 #ifdef HAVE_SYS_PARAM_H
13879 # include <sys/param.h>
13880 #endif
13881 #ifdef HAVE_SYS_MOUNT_H
13882 # include <sys/mount.h>
13883 #endif
13884 #ifdef HAVE_SYS_VFS_H
13885 # include <sys/vfs.h>
13886 #endif
13887 #ifdef HAVE_SYS_STATFS_H
13888 # include <sys/statfs.h>
13889 #endif
13890 "
13891 if test "x$ac_cv_member_struct_statfs_f_ffree" = x""yes; then :
13892
13893 cat >>confdefs.h <<_ACEOF
13894 #define HAVE_STRUCT_STATFS_F_FFREE 1
13895 _ACEOF
13896
13897
13898 fi
13899 ac_fn_c_check_member "$LINENO" "struct statfs" "f_favail" "ac_cv_member_struct_statfs_f_favail" "#include <sys/types.h>
13900 #ifdef HAVE_SYS_PARAM_H
13901 # include <sys/param.h>
13902 #endif
13903 #ifdef HAVE_SYS_MOUNT_H
13904 # include <sys/mount.h>
13905 #endif
13906 #ifdef HAVE_SYS_VFS_H
13907 # include <sys/vfs.h>
13908 #endif
13909 #ifdef HAVE_SYS_STATFS_H
13910 # include <sys/statfs.h>
13911 #endif
13912 "
13913 if test "x$ac_cv_member_struct_statfs_f_favail" = x""yes; then :
13914
13915 cat >>confdefs.h <<_ACEOF
13916 #define HAVE_STRUCT_STATFS_F_FAVAIL 1
13917 _ACEOF
13918
13919
13920 fi
13921 ac_fn_c_check_member "$LINENO" "struct statfs" "f_namelen" "ac_cv_member_struct_statfs_f_namelen" "#include <sys/types.h>
13922 #ifdef HAVE_SYS_PARAM_H
13923 # include <sys/param.h>
13924 #endif
13925 #ifdef HAVE_SYS_MOUNT_H
13926 # include <sys/mount.h>
13927 #endif
13928 #ifdef HAVE_SYS_VFS_H
13929 # include <sys/vfs.h>
13930 #endif
13931 #ifdef HAVE_SYS_STATFS_H
13932 # include <sys/statfs.h>
13933 #endif
13934 "
13935 if test "x$ac_cv_member_struct_statfs_f_namelen" = x""yes; then :
13936
13937 cat >>confdefs.h <<_ACEOF
13938 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
13939 _ACEOF
13940
13941
13942 fi
13943
13944
13945 ac_fn_c_check_member "$LINENO" "struct statvfs" "f_blocks" "ac_cv_member_struct_statvfs_f_blocks" "#ifdef HAVE_SYS_STATVFS_H
13946 #include <sys/statvfs.h>
13947 #endif
13948 "
13949 if test "x$ac_cv_member_struct_statvfs_f_blocks" = x""yes; then :
13950
13951 cat >>confdefs.h <<_ACEOF
13952 #define HAVE_STRUCT_STATVFS_F_BLOCKS 1
13953 _ACEOF
13954
13955
13956 fi
13957
13958
13959 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_accrights" "ac_cv_member_struct_msghdr_msg_accrights" "#include <sys/types.h>
13960 #ifdef HAVE_SYS_SOCKET_H
13961 # include <sys/socket.h>
13962 #endif
13963 #ifdef HAVE_SYS_UN_H
13964 # include <sys/un.h>
13965 #endif
13966 "
13967 if test "x$ac_cv_member_struct_msghdr_msg_accrights" = x""yes; then :
13968
13969 cat >>confdefs.h <<_ACEOF
13970 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
13971 _ACEOF
13972
13973
13974 fi
13975 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
13976 #ifdef HAVE_SYS_SOCKET_H
13977 # include <sys/socket.h>
13978 #endif
13979 #ifdef HAVE_SYS_UN_H
13980 # include <sys/un.h>
13981 #endif
13982 "
13983 if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then :
13984
13985 cat >>confdefs.h <<_ACEOF
13986 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
13987 _ACEOF
13988
13989
13990 fi
13991 ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" "#include <sys/types.h>
13992 #ifdef HAVE_SYS_SOCKET_H
13993 # include <sys/socket.h>
13994 #endif
13995 #ifdef HAVE_SYS_UN_H
13996 # include <sys/un.h>
13997 #endif
13998 "
13999 if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = x""yes; then :
14000
14001 cat >>confdefs.h <<_ACEOF
14002 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
14003 _ACEOF
14004
14005
14006 fi
14007
14008
14009 ac_fn_c_check_member "$LINENO" "scsireq_t" "cmd" "ac_cv_member_scsireq_t_cmd" "#include <sys/types.h>
14010 #ifdef HAVE_SCSI_SG_H
14011 #include <scsi/sg.h>
14012 #endif
14013 "
14014 if test "x$ac_cv_member_scsireq_t_cmd" = x""yes; then :
14015
14016 cat >>confdefs.h <<_ACEOF
14017 #define HAVE_SCSIREQ_T_CMD 1
14018 _ACEOF
14019
14020
14021 fi
14022 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>
14023 #ifdef HAVE_SCSI_SG_H
14024 #include <scsi/sg.h>
14025 #endif
14026 "
14027 if test "x$ac_cv_member_sg_io_hdr_t_interface_id" = x""yes; then :
14028
14029 cat >>confdefs.h <<_ACEOF
14030 #define HAVE_SG_IO_HDR_T_INTERFACE_ID 1
14031 _ACEOF
14032
14033
14034 fi
14035
14036
14037 ac_fn_c_check_member "$LINENO" "siginfo_t" "si_fd" "ac_cv_member_siginfo_t_si_fd" "#include <signal.h>
14038 "
14039 if test "x$ac_cv_member_siginfo_t_si_fd" = x""yes; then :
14040
14041 cat >>confdefs.h <<_ACEOF
14042 #define HAVE_SIGINFO_T_SI_FD 1
14043 _ACEOF
14044
14045
14046 fi
14047
14048
14049 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blksiz" "ac_cv_member_struct_mtget_mt_blksiz" "#include <sys/types.h>
14050 #ifdef HAVE_SYS_MTIO_H
14051 #include <sys/mtio.h>
14052 #endif
14053 "
14054 if test "x$ac_cv_member_struct_mtget_mt_blksiz" = x""yes; then :
14055
14056 cat >>confdefs.h <<_ACEOF
14057 #define HAVE_STRUCT_MTGET_MT_BLKSIZ 1
14058 _ACEOF
14059
14060
14061 fi
14062 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_gstat" "ac_cv_member_struct_mtget_mt_gstat" "#include <sys/types.h>
14063 #ifdef HAVE_SYS_MTIO_H
14064 #include <sys/mtio.h>
14065 #endif
14066 "
14067 if test "x$ac_cv_member_struct_mtget_mt_gstat" = x""yes; then :
14068
14069 cat >>confdefs.h <<_ACEOF
14070 #define HAVE_STRUCT_MTGET_MT_GSTAT 1
14071 _ACEOF
14072
14073
14074 fi
14075 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blkno" "ac_cv_member_struct_mtget_mt_blkno" "#include <sys/types.h>
14076 #ifdef HAVE_SYS_MTIO_H
14077 #include <sys/mtio.h>
14078 #endif
14079 "
14080 if test "x$ac_cv_member_struct_mtget_mt_blkno" = x""yes; then :
14081
14082 cat >>confdefs.h <<_ACEOF
14083 #define HAVE_STRUCT_MTGET_MT_BLKNO 1
14084 _ACEOF
14085
14086
14087 fi
14088
14089
14090 ac_fn_c_check_member "$LINENO" "struct option" "name" "ac_cv_member_struct_option_name" "#ifdef HAVE_GETOPT_H
14091 #include <getopt.h>
14092 #endif
14093 "
14094 if test "x$ac_cv_member_struct_option_name" = x""yes; then :
14095
14096 cat >>confdefs.h <<_ACEOF
14097 #define HAVE_STRUCT_OPTION_NAME 1
14098 _ACEOF
14099
14100
14101 fi
14102
14103
14104 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
14105 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
14106
14107 cat >>confdefs.h <<_ACEOF
14108 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
14109 _ACEOF
14110
14111
14112 fi
14113 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
14114 if test "x$ac_cv_member_struct_stat_st_mtim" = x""yes; then :
14115
14116 cat >>confdefs.h <<_ACEOF
14117 #define HAVE_STRUCT_STAT_ST_MTIM 1
14118 _ACEOF
14119
14120
14121 fi
14122 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctim" "ac_cv_member_struct_stat_st_ctim" "$ac_includes_default"
14123 if test "x$ac_cv_member_struct_stat_st_ctim" = x""yes; then :
14124
14125 cat >>confdefs.h <<_ACEOF
14126 #define HAVE_STRUCT_STAT_ST_CTIM 1
14127 _ACEOF
14128
14129
14130 fi
14131 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
14132 if test "x$ac_cv_member_struct_stat_st_atim" = x""yes; then :
14133
14134 cat >>confdefs.h <<_ACEOF
14135 #define HAVE_STRUCT_STAT_ST_ATIM 1
14136 _ACEOF
14137
14138
14139 fi
14140
14141
14142 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
14143 #include <sys/types.h>
14144 #endif
14145 #ifdef HAVE_NETINET_IN_H
14146 #include <netinet/in.h>
14147 #endif
14148 "
14149 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = x""yes; then :
14150
14151 cat >>confdefs.h <<_ACEOF
14152 #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
14153 _ACEOF
14154
14155
14156 fi
14157
14158
14159 ac_fn_c_check_member "$LINENO" "ns_msg" "_msg_ptr" "ac_cv_member_ns_msg__msg_ptr" "#ifdef HAVE_SYS_TYPES_H
14160 #include <sys/types.h>
14161 #endif
14162 #ifdef HAVE_NETINET_IN_H
14163 # include <netinet/in.h>
14164 #endif
14165 #ifdef HAVE_ARPA_NAMESER_H
14166 # include <arpa/nameser.h>
14167 #endif
14168 "
14169 if test "x$ac_cv_member_ns_msg__msg_ptr" = x""yes; then :
14170
14171 cat >>confdefs.h <<_ACEOF
14172 #define HAVE_NS_MSG__MSG_PTR 1
14173 _ACEOF
14174
14175
14176 fi
14177
14178
14179 ac_fn_c_check_member "$LINENO" "struct icmpstat" "icps_outhist" "ac_cv_member_struct_icmpstat_icps_outhist" "#ifdef HAVE_SYS_TYPES_H
14180 #include <sys/types.h>
14181 #endif
14182 #ifdef HAVE_ALIAS_H
14183 #include <alias.h>
14184 #endif
14185 #ifdef HAVE_SYS_SOCKET_H
14186 #include <sys/socket.h>
14187 #endif
14188 #ifdef HAVE_SYS_SOCKETVAR_H
14189 #include <sys/socketvar.h>
14190 #endif
14191 #ifdef HAVE_SYS_TIMEOUT_H
14192 #include <sys/timeout.h>
14193 #endif
14194 #ifdef HAVE_NETINET_IN_H
14195 #include <netinet/in.h>
14196 #endif
14197 #ifdef HAVE_NETINET_IN_SYSTM_H
14198 #include <netinet/in_systm.h>
14199 #endif
14200 #ifdef HAVE_NETINET_IP_H
14201 #include <netinet/ip.h>
14202 #endif
14203 #ifdef HAVE_NETINET_IP_VAR_H
14204 #include <netinet/ip_var.h>
14205 #endif
14206 #ifdef HAVE_NETINET_IP_ICMP_H
14207 #include <netinet/ip_icmp.h>
14208 #endif
14209 #ifdef HAVE_NETINET_ICMP_VAR
14210 #include <netinet/icmp_var.h>
14211 #endif
14212 "
14213 if test "x$ac_cv_member_struct_icmpstat_icps_outhist" = x""yes; then :
14214
14215 cat >>confdefs.h <<_ACEOF
14216 #define HAVE_STRUCT_ICMPSTAT_ICPS_OUTHIST 1
14217 _ACEOF
14218
14219
14220 fi
14221
14222
14223 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "#ifdef HAVE_SYS_TYPES_H
14224 #include <sys/types.h>
14225 #endif
14226 #ifdef HAVE_NET_IF_H
14227 # include <net/if.h>
14228 #endif
14229 "
14230 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
14231
14232 cat >>confdefs.h <<_ACEOF
14233 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
14234 _ACEOF
14235
14236
14237 fi
14238
14239
14240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone variable" >&5
14241 $as_echo_n "checking for timezone variable... " >&6; }
14242 if test "${ac_cv_have_timezone+set}" = set; then :
14243   $as_echo_n "(cached) " >&6
14244 else
14245   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14246 /* end confdefs.h.  */
14247 #include <time.h>
14248 int
14249 main ()
14250 {
14251 timezone = 1
14252   ;
14253   return 0;
14254 }
14255 _ACEOF
14256 if ac_fn_c_try_link "$LINENO"; then :
14257   ac_cv_have_timezone="yes"
14258 else
14259   ac_cv_have_timezone="no"
14260 fi
14261 rm -f core conftest.err conftest.$ac_objext \
14262     conftest$ac_exeext conftest.$ac_ext
14263 fi
14264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_timezone" >&5
14265 $as_echo "$ac_cv_have_timezone" >&6; }
14266 if test "$ac_cv_have_timezone" = "yes"
14267 then
14268
14269 $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
14270
14271 fi
14272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daylight variable" >&5
14273 $as_echo_n "checking for daylight variable... " >&6; }
14274 if test "${ac_cv_have_daylight+set}" = set; then :
14275   $as_echo_n "(cached) " >&6
14276 else
14277   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14278 /* end confdefs.h.  */
14279 #include <time.h>
14280 int
14281 main ()
14282 {
14283 daylight = 1
14284   ;
14285   return 0;
14286 }
14287 _ACEOF
14288 if ac_fn_c_try_link "$LINENO"; then :
14289   ac_cv_have_daylight="yes"
14290 else
14291   ac_cv_have_daylight="no"
14292 fi
14293 rm -f core conftest.err conftest.$ac_objext \
14294     conftest$ac_exeext conftest.$ac_ext
14295 fi
14296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_daylight" >&5
14297 $as_echo "$ac_cv_have_daylight" >&6; }
14298 if test "$ac_cv_have_daylight" = "yes"
14299 then
14300
14301 $as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h
14302
14303 fi
14304
14305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf" >&5
14306 $as_echo_n "checking for isinf... " >&6; }
14307 if test "${ac_cv_have_isinf+set}" = set; then :
14308   $as_echo_n "(cached) " >&6
14309 else
14310   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14311 /* end confdefs.h.  */
14312 #include <math.h>
14313 int
14314 main ()
14315 {
14316 float f = 0.0; int i=isinf(f)
14317   ;
14318   return 0;
14319 }
14320 _ACEOF
14321 if ac_fn_c_try_link "$LINENO"; then :
14322   ac_cv_have_isinf="yes"
14323 else
14324   ac_cv_have_isinf="no"
14325 fi
14326 rm -f core conftest.err conftest.$ac_objext \
14327     conftest$ac_exeext conftest.$ac_ext
14328 fi
14329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isinf" >&5
14330 $as_echo "$ac_cv_have_isinf" >&6; }
14331 if test "$ac_cv_have_isinf" = "yes"
14332 then
14333
14334 $as_echo "#define HAVE_ISINF 1" >>confdefs.h
14335
14336 fi
14337
14338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan" >&5
14339 $as_echo_n "checking for isnan... " >&6; }
14340 if test "${ac_cv_have_isnan+set}" = set; then :
14341   $as_echo_n "(cached) " >&6
14342 else
14343   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14344 /* end confdefs.h.  */
14345 #include <math.h>
14346 int
14347 main ()
14348 {
14349 float f = 0.0; int i=isnan(f)
14350   ;
14351   return 0;
14352 }
14353 _ACEOF
14354 if ac_fn_c_try_link "$LINENO"; then :
14355   ac_cv_have_isnan="yes"
14356 else
14357   ac_cv_have_isnan="no"
14358 fi
14359 rm -f core conftest.err conftest.$ac_objext \
14360     conftest$ac_exeext conftest.$ac_ext
14361 fi
14362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isnan" >&5
14363 $as_echo "$ac_cv_have_isnan" >&6; }
14364 if test "$ac_cv_have_isnan" = "yes"
14365 then
14366
14367 $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
14368
14369 fi
14370
14371
14372 case $host_cpu in
14373   *i[3456789]86*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __i386__" >&5
14374 $as_echo_n "checking whether we need to define __i386__... " >&6; }
14375 if test "${ac_cv_cpp_def___i386__+set}" = set; then :
14376   $as_echo_n "(cached) " >&6
14377 else
14378   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14379 /* end confdefs.h.  */
14380 #ifndef __i386__
14381 yes
14382 #endif
14383 _ACEOF
14384 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14385   $EGREP "yes" >/dev/null 2>&1; then :
14386   ac_cv_cpp_def___i386__=yes
14387 else
14388   ac_cv_cpp_def___i386__=no
14389 fi
14390 rm -f conftest*
14391
14392 fi
14393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___i386__" >&5
14394 $as_echo "$ac_cv_cpp_def___i386__" >&6; }
14395 if test $ac_cv_cpp_def___i386__ = yes; then :
14396   CFLAGS="$CFLAGS -D__i386__"
14397   LINTFLAGS="$LINTFLAGS -D__i386__"
14398 fi ;;
14399   *x86_64*)         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __x86_64__" >&5
14400 $as_echo_n "checking whether we need to define __x86_64__... " >&6; }
14401 if test "${ac_cv_cpp_def___x86_64__+set}" = set; then :
14402   $as_echo_n "(cached) " >&6
14403 else
14404   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14405 /* end confdefs.h.  */
14406 #ifndef __x86_64__
14407 yes
14408 #endif
14409 _ACEOF
14410 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14411   $EGREP "yes" >/dev/null 2>&1; then :
14412   ac_cv_cpp_def___x86_64__=yes
14413 else
14414   ac_cv_cpp_def___x86_64__=no
14415 fi
14416 rm -f conftest*
14417
14418 fi
14419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___x86_64__" >&5
14420 $as_echo "$ac_cv_cpp_def___x86_64__" >&6; }
14421 if test $ac_cv_cpp_def___x86_64__ = yes; then :
14422   CFLAGS="$CFLAGS -D__x86_64__"
14423   LINTFLAGS="$LINTFLAGS -D__x86_64__"
14424 fi ;;
14425   *alpha*)          { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __ALPHA__" >&5
14426 $as_echo_n "checking whether we need to define __ALPHA__... " >&6; }
14427 if test "${ac_cv_cpp_def___ALPHA__+set}" = set; then :
14428   $as_echo_n "(cached) " >&6
14429 else
14430   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14431 /* end confdefs.h.  */
14432 #ifndef __ALPHA__
14433 yes
14434 #endif
14435 _ACEOF
14436 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14437   $EGREP "yes" >/dev/null 2>&1; then :
14438   ac_cv_cpp_def___ALPHA__=yes
14439 else
14440   ac_cv_cpp_def___ALPHA__=no
14441 fi
14442 rm -f conftest*
14443
14444 fi
14445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___ALPHA__" >&5
14446 $as_echo "$ac_cv_cpp_def___ALPHA__" >&6; }
14447 if test $ac_cv_cpp_def___ALPHA__ = yes; then :
14448   CFLAGS="$CFLAGS -D__ALPHA__"
14449   LINTFLAGS="$LINTFLAGS -D__ALPHA__"
14450 fi ;;
14451   *sparc*)          { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sparc__" >&5
14452 $as_echo_n "checking whether we need to define __sparc__... " >&6; }
14453 if test "${ac_cv_cpp_def___sparc__+set}" = set; then :
14454   $as_echo_n "(cached) " >&6
14455 else
14456   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14457 /* end confdefs.h.  */
14458 #ifndef __sparc__
14459 yes
14460 #endif
14461 _ACEOF
14462 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14463   $EGREP "yes" >/dev/null 2>&1; then :
14464   ac_cv_cpp_def___sparc__=yes
14465 else
14466   ac_cv_cpp_def___sparc__=no
14467 fi
14468 rm -f conftest*
14469
14470 fi
14471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sparc__" >&5
14472 $as_echo "$ac_cv_cpp_def___sparc__" >&6; }
14473 if test $ac_cv_cpp_def___sparc__ = yes; then :
14474   CFLAGS="$CFLAGS -D__sparc__"
14475   LINTFLAGS="$LINTFLAGS -D__sparc__"
14476 fi ;;
14477   *powerpc*)        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __powerpc__" >&5
14478 $as_echo_n "checking whether we need to define __powerpc__... " >&6; }
14479 if test "${ac_cv_cpp_def___powerpc__+set}" = set; then :
14480   $as_echo_n "(cached) " >&6
14481 else
14482   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14483 /* end confdefs.h.  */
14484 #ifndef __powerpc__
14485 yes
14486 #endif
14487 _ACEOF
14488 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14489   $EGREP "yes" >/dev/null 2>&1; then :
14490   ac_cv_cpp_def___powerpc__=yes
14491 else
14492   ac_cv_cpp_def___powerpc__=no
14493 fi
14494 rm -f conftest*
14495
14496 fi
14497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___powerpc__" >&5
14498 $as_echo "$ac_cv_cpp_def___powerpc__" >&6; }
14499 if test $ac_cv_cpp_def___powerpc__ = yes; then :
14500   CFLAGS="$CFLAGS -D__powerpc__"
14501   LINTFLAGS="$LINTFLAGS -D__powerpc__"
14502 fi ;;
14503 esac
14504
14505 case $host_vendor in
14506   *sun*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sun__" >&5
14507 $as_echo_n "checking whether we need to define __sun__... " >&6; }
14508 if test "${ac_cv_cpp_def___sun__+set}" = set; then :
14509   $as_echo_n "(cached) " >&6
14510 else
14511   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14512 /* end confdefs.h.  */
14513 #ifndef __sun__
14514 yes
14515 #endif
14516 _ACEOF
14517 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14518   $EGREP "yes" >/dev/null 2>&1; then :
14519   ac_cv_cpp_def___sun__=yes
14520 else
14521   ac_cv_cpp_def___sun__=no
14522 fi
14523 rm -f conftest*
14524
14525 fi
14526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sun__" >&5
14527 $as_echo "$ac_cv_cpp_def___sun__" >&6; }
14528 if test $ac_cv_cpp_def___sun__ = yes; then :
14529   CFLAGS="$CFLAGS -D__sun__"
14530   LINTFLAGS="$LINTFLAGS -D__sun__"
14531 fi ;;
14532 esac
14533
14534
14535
14536
14537
14538 ac_config_commands="$ac_config_commands include/stamp-h"
14539
14540
14541 ALL_MAKEFILE_DEPENDS="
14542 # Rules automatically generated by configure
14543
14544 .INIT: Makefile
14545 .MAKEFILEDEPS:
14546 all: Makefile
14547 Makefile: Makefile.in Make.vars.in Make.rules config.status
14548         @./config.status Make.tmp Makefile"
14549
14550 ALL_POT_FILES=""
14551 ALL_WINETEST_DEPENDS="# Test binaries"
14552
14553 ALL_TEST_BINARIES=""
14554
14555
14556 wine_fn_append_file ()
14557 {
14558     as_fn_append $1 " \\$as_nl  $2"
14559 }
14560
14561 wine_fn_append_rule ()
14562 {
14563     as_fn_append $1 "$as_nl$2"
14564 }
14565
14566 wine_fn_has_flag ()
14567 {
14568     expr ",$2," : ".*,$1,.*" >/dev/null
14569 }
14570
14571 wine_fn_all_dir_rules ()
14572 {
14573     ac_dir=$1
14574     ac_alldeps=$2
14575     ac_makedep="\$(MAKEDEP)"
14576     ac_input=Make.vars.in:$ac_dir/Makefile.in
14577     if test $ac_dir != tools
14578     then
14579                 ac_alldeps="$2 $ac_makedep"
14580     fi
14581     case $2 in
14582       *.in) ac_input=$ac_input:$2 ;;
14583       *) ac_makedep="$2 $ac_makedep" ;;
14584     esac
14585
14586     wine_fn_append_file ALL_DIRS $ac_dir
14587     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14588 "__clean__: $ac_dir/__clean__
14589 .PHONY: $ac_dir/__clean__
14590 $ac_dir/__clean__: $ac_dir/Makefile
14591         @cd $ac_dir && \$(MAKE) clean
14592         \$(RM) $ac_dir/Makefile
14593 $ac_dir/Makefile: $ac_dir/Makefile.in Make.vars.in config.status $ac_alldeps
14594         @./config.status --file $ac_dir/Makefile:$ac_input && cd $ac_dir && \$(MAKE) depend
14595 depend: $ac_dir/__depend__
14596 .PHONY: $ac_dir/__depend__
14597 $ac_dir/__depend__: $ac_makedep dummy
14598         @./config.status --file $ac_dir/Makefile:$ac_input && cd $ac_dir && \$(MAKE) depend"
14599 }
14600
14601 wine_fn_config_makefile ()
14602 {
14603     ac_dir=$1
14604     ac_enable=$2
14605     if eval test \"x\$"$ac_enable"\" = x"no"; then :
14606   return 0
14607 fi
14608
14609     wine_fn_all_dir_rules $ac_dir Make.rules
14610     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14611 "all: $ac_dir
14612 .PHONY: $ac_dir
14613 $ac_dir: $ac_dir/Makefile dummy
14614         @cd $ac_dir && \$(MAKE)
14615 install:: $ac_dir
14616         @cd $ac_dir && \$(MAKE) install
14617 install-lib:: $ac_dir
14618         @cd $ac_dir && \$(MAKE) install-lib
14619 install-dev:: $ac_dir
14620         @cd $ac_dir && \$(MAKE) install-dev
14621 uninstall:: $ac_dir/Makefile
14622         @cd $ac_dir && \$(MAKE) uninstall"
14623 }
14624
14625 wine_fn_config_lib ()
14626 {
14627     ac_name=$1
14628     ac_dir=dlls/$ac_name
14629     wine_fn_all_dir_rules $ac_dir dlls/Makeimplib.rules
14630     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14631 "all __builddeps__: $ac_dir
14632 $ac_dir: $ac_dir/Makefile tools/widl tools/winebuild tools/winegcc include dummy
14633         @cd $ac_dir && \$(MAKE)
14634 install install-dev:: $ac_dir
14635         @cd $ac_dir && \$(MAKE) install
14636 uninstall:: $ac_dir/Makefile
14637         @cd $ac_dir && \$(MAKE) uninstall"
14638 }
14639
14640 wine_fn_config_dll ()
14641 {
14642     ac_name=$1
14643     ac_dir=dlls/$ac_name
14644     ac_enable=$2
14645     ac_flags=$3
14646     ac_implib=${4:-$ac_name}
14647     ac_file=$ac_dir/lib$ac_implib
14648     ac_deps="tools/widl tools/winebuild tools/winegcc include"
14649     ac_implibflags=""
14650
14651     case $ac_name in
14652       *16) ac_implibflags=" -m16" ;;
14653     esac
14654
14655     wine_fn_all_dir_rules $ac_dir dlls/Makedll.rules
14656
14657     if eval test \"x\$"$ac_enable"\" = x"no"; then :
14658                 test "$ac_enable" != enable_win16 || return 0
14659 else
14660   wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14661 "all: $ac_dir
14662 .PHONY: $ac_dir
14663 $ac_dir: $ac_dir/Makefile __builddeps__ dummy
14664         @cd $ac_dir && \$(MAKE)
14665 install:: $ac_dir/Makefile __builddeps__
14666         @cd $ac_dir && \$(MAKE) install
14667 install-lib:: $ac_dir/Makefile __builddeps__
14668         @cd $ac_dir && \$(MAKE) install-lib
14669 uninstall manpages htmlpages sgmlpages xmlpages:: $ac_dir/Makefile
14670         @cd $ac_dir && \$(MAKE) \$@"
14671
14672         if test "x$enable_maintainer_mode" = xyes
14673         then
14674             if wine_fn_has_flag mc $ac_flags
14675             then
14676                 wine_fn_append_file ALL_POT_FILES $ac_dir/msg.pot
14677                 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14678 "$ac_dir/msg.pot: $ac_dir"
14679             fi
14680             if wine_fn_has_flag po $ac_flags
14681             then
14682                 wine_fn_append_file ALL_POT_FILES $ac_dir/rsrc.pot
14683                 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14684 "$ac_dir/rsrc.pot: $ac_dir"
14685             fi
14686         fi
14687 fi
14688
14689     if wine_fn_has_flag staticimplib $ac_flags
14690     then
14691         wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14692 "__builddeps__: $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT
14693 $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT $ac_file.cross.a: $ac_deps
14694 $ac_file.def: $ac_dir/$ac_name.spec $ac_dir/Makefile
14695         @cd $ac_dir && \$(MAKE) lib$ac_implib.def
14696 $ac_file.$STATIC_IMPLIBEXT: $ac_dir/Makefile dummy
14697         @cd $ac_dir && \$(MAKE) lib$ac_implib.$STATIC_IMPLIBEXT
14698 install-dev:: $ac_dir/Makefile __builddeps__
14699         @cd $ac_dir && \$(MAKE) install-dev"
14700         if test "x$CROSSTEST_DISABLE" = x
14701         then
14702             wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14703 "__builddeps__: $ac_file.cross.a
14704 $ac_file.cross.a: $ac_dir/Makefile dummy
14705         @cd $ac_dir && \$(MAKE) lib$ac_implib.cross.a"
14706         fi
14707
14708     elif wine_fn_has_flag implib $ac_flags
14709     then
14710         wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14711 "__builddeps__: $ac_file.$IMPLIBEXT
14712 $ac_file.def: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
14713         \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --def -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec
14714 $ac_file.a: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
14715         \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --implib -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec
14716 install-dev:: $ac_dir/Makefile __builddeps__
14717         @cd $ac_dir && \$(MAKE) install-dev"
14718         if test "x$CROSSTEST_DISABLE" = x
14719         then
14720             wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14721 "__builddeps__: $ac_file.cross.a
14722 $ac_file.cross.a: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
14723         \$(WINEBUILD) \$(CROSSTARGET:%=-b %)$ac_implibflags -w --implib -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec"
14724         fi
14725
14726         if test "$ac_name" != "$ac_implib"
14727         then
14728             wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14729 "__builddeps__: dlls/lib$ac_implib.$IMPLIBEXT
14730 dlls/lib$ac_implib.$IMPLIBEXT: $ac_file.$IMPLIBEXT
14731         \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.$IMPLIBEXT \$@
14732 clean::
14733         \$(RM) dlls/lib$ac_implib.$IMPLIBEXT"
14734             if test "x$CROSSTEST_DISABLE" = x
14735             then
14736                 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14737 "__builddeps__: dlls/lib$ac_implib.cross.a
14738 dlls/lib$ac_implib.cross.a: $ac_file.cross.a
14739         \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.cross.a \$@"
14740             fi
14741         fi
14742     fi
14743 }
14744
14745 wine_fn_config_program ()
14746 {
14747     ac_name=$1
14748     ac_dir=programs/$ac_name
14749     ac_enable=$2
14750     ac_flags=$3
14751     wine_fn_all_dir_rules $ac_dir programs/Makeprog.rules
14752
14753     if eval test \"x\$"$ac_enable"\" = x"no"; then :
14754
14755 else
14756   wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14757 "all: $ac_dir
14758 .PHONY: $ac_dir
14759 $ac_dir: $ac_dir/Makefile __builddeps__ dummy
14760         @cd $ac_dir && \$(MAKE)"
14761
14762     if test "x$enable_maintainer_mode" = xyes
14763     then
14764         if wine_fn_has_flag mc $ac_flags
14765         then
14766             wine_fn_append_file ALL_POT_FILES $ac_dir/msg.pot
14767             wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14768 "$ac_dir/msg.pot: $ac_dir"
14769         fi
14770         if wine_fn_has_flag po $ac_flags
14771         then
14772             wine_fn_append_file ALL_POT_FILES $ac_dir/rsrc.pot
14773             wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14774 "$ac_dir/rsrc.pot: $ac_dir"
14775         fi
14776     fi
14777
14778     wine_fn_has_flag install $ac_flags || return
14779     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14780 "install install-lib:: $ac_dir/Makefile __builddeps__
14781         @cd $ac_dir && \$(MAKE) install
14782 uninstall:: $ac_dir/Makefile
14783         @cd $ac_dir && \$(MAKE) uninstall"
14784     if test -n "$DLLEXT" -a "x$enable_tools" != xno && wine_fn_has_flag installbin $ac_flags
14785     then
14786         wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14787 "install install-lib:: tools \$(DESTDIR)\$(bindir)
14788         \$(INSTALL_SCRIPT) tools/wineapploader \$(DESTDIR)\$(bindir)/$ac_name
14789 uninstall::
14790         \$(RM) \$(DESTDIR)\$(bindir)/$ac_name"
14791     fi
14792 fi
14793 }
14794
14795 wine_fn_config_test ()
14796 {
14797     ac_dir=$1
14798     ac_name=$2
14799     wine_fn_append_file ALL_TEST_BINARIES $ac_name.exe
14800     wine_fn_append_rule ALL_WINETEST_DEPENDS \
14801 "$ac_name.exe: \$(top_builddir)/$ac_dir/$ac_name.exe$DLLEXT
14802         cp \$(top_builddir)/$ac_dir/$ac_name.exe$DLLEXT \$@ && \$(STRIP) \$@
14803 $ac_name.rc:
14804         echo \"$ac_name.exe TESTRES \\\"$ac_name.exe\\\"\" >\$@ || (\$(RM) \$@ && false)
14805 $ac_name.res: $ac_name.rc $ac_name.exe"
14806     wine_fn_all_dir_rules $ac_dir Maketest.rules
14807
14808     if test "x$enable_tests" = x""no; then :
14809
14810 else
14811   wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14812 "all programs/winetest: $ac_dir
14813 .PHONY: $ac_dir
14814 $ac_dir: $ac_dir/Makefile __builddeps__ dummy
14815         @cd $ac_dir && \$(MAKE)
14816 test: $ac_dir/__test__
14817 .PHONY: $ac_dir/__test__
14818 $ac_dir/__test__: dummy
14819         @cd $ac_dir && \$(MAKE) test
14820 testclean::
14821         \$(RM) $ac_dir/*.ok"
14822
14823         if test "x$CROSSTEST_DISABLE" = x
14824         then
14825             wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14826 "crosstest: $ac_dir/__crosstest__
14827 .PHONY: $ac_dir/__crosstest__
14828 $ac_dir/__crosstest__: $ac_dir/Makefile __builddeps__ dummy
14829         @cd $ac_dir && \$(MAKE) crosstest"
14830         fi
14831 fi
14832 }
14833
14834 wine_fn_config_tool ()
14835 {
14836     ac_dir=$1
14837     wine_fn_all_dir_rules $ac_dir Make.rules
14838
14839     if test "x$enable_tools" = x""no; then :
14840
14841 else
14842   case $ac_dir in
14843             tools) wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14844 "install:: $ac_dir
14845         @cd $ac_dir && \$(MAKE) install
14846 install-lib:: $ac_dir
14847         @cd $ac_dir && \$(MAKE) install-lib
14848 install-dev:: $ac_dir
14849         @cd $ac_dir && \$(MAKE) install-dev" ;;
14850       *)     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14851 "install install-dev:: $ac_dir
14852         @cd $ac_dir && \$(MAKE) install" ;;
14853       esac
14854       wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14855 "uninstall:: $ac_dir/Makefile
14856         @cd $ac_dir && \$(MAKE) uninstall
14857 all __tooldeps__: $ac_dir
14858 .PHONY: $ac_dir
14859 $ac_dir: $ac_dir/Makefile libs/port dummy
14860         @cd $ac_dir && \$(MAKE)"
14861       case $ac_dir in
14862         tools/winebuild) wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(WINEBUILD): $ac_dir" ;;
14863       esac
14864 fi
14865 }
14866
14867 wine_fn_config_makerules ()
14868 {
14869     ac_rules=$1
14870     ac_deps=$2
14871     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14872 "$ac_rules: $ac_rules.in $ac_deps config.status
14873         @./config.status $ac_rules
14874 distclean::
14875         \$(RM) $ac_rules"
14876 }
14877
14878 wine_fn_config_symlink ()
14879 {
14880     ac_link=$1
14881     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14882 "$ac_link:
14883         @./config.status $ac_link
14884 distclean::
14885         \$(RM) $ac_link"
14886 }
14887
14888 if test "x$CROSSTEST_DISABLE" != x
14889 then
14890     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14891 "crosstest:
14892         @echo \"crosstest is not supported (mingw not installed?)\" && false"
14893 fi
14894 ac_config_links="$ac_config_links dlls/shell32/AUTHORS:AUTHORS"
14895 wine_fn_config_symlink dlls/shell32/AUTHORS
14896 ac_config_links="$ac_config_links dlls/wineps.drv/generic.ppd:dlls/wineps.drv/generic.ppd"
14897 test "$srcdir" = "." || wine_fn_config_symlink dlls/wineps.drv/generic.ppd
14898 if test "x$enable_fonts" != xno; then
14899 ac_config_links="$ac_config_links fonts/marlett.ttf:fonts/marlett.ttf"
14900 test "$srcdir" = "." || wine_fn_config_symlink fonts/marlett.ttf
14901 fi
14902 if test "x$enable_fonts" != xno; then
14903 ac_config_links="$ac_config_links fonts/symbol.ttf:fonts/symbol.ttf"
14904 test "$srcdir" = "." || wine_fn_config_symlink fonts/symbol.ttf
14905 fi
14906 if test "x$enable_fonts" != xno; then
14907 ac_config_links="$ac_config_links fonts/tahoma.ttf:fonts/tahoma.ttf"
14908 test "$srcdir" = "." || wine_fn_config_symlink fonts/tahoma.ttf
14909 fi
14910 if test "x$enable_fonts" != xno; then
14911 ac_config_links="$ac_config_links fonts/tahomabd.ttf:fonts/tahomabd.ttf"
14912 test "$srcdir" = "." || wine_fn_config_symlink fonts/tahomabd.ttf
14913 fi
14914 ac_config_links="$ac_config_links tools/l_intl.nls:tools/l_intl.nls"
14915 test "$srcdir" = "." || wine_fn_config_symlink tools/l_intl.nls
14916 ac_config_links="$ac_config_links wine:tools/winewrapper"
14917 wine_fn_config_symlink wine
14918
14919 ac_config_commands="$ac_config_commands dlls/gdi32/dibdrv"
14920
14921 ac_config_commands="$ac_config_commands dlls/gdi32/enhmfdrv"
14922
14923 ac_config_commands="$ac_config_commands dlls/gdi32/mfdrv"
14924
14925 ac_config_commands="$ac_config_commands dlls/kernel32/nls"
14926
14927 ac_config_commands="$ac_config_commands dlls/user32/resources"
14928
14929 ac_config_commands="$ac_config_commands dlls/wineps.drv/data"
14930
14931 ac_config_commands="$ac_config_commands include/wine"
14932
14933
14934 wine_fn_config_makerules Make.rules
14935 MAKE_RULES=Make.rules
14936 ac_config_files="$ac_config_files Make.rules"
14937
14938 wine_fn_config_makerules Maketest.rules Make.rules
14939 MAKE_TEST_RULES=Maketest.rules
14940 ac_config_files="$ac_config_files Maketest.rules"
14941
14942 wine_fn_config_makerules dlls/Makedll.rules Make.rules
14943 MAKE_DLL_RULES=dlls/Makedll.rules
14944 ac_config_files="$ac_config_files dlls/Makedll.rules"
14945
14946 wine_fn_config_makerules dlls/Makeimplib.rules Make.rules
14947 MAKE_IMPLIB_RULES=dlls/Makeimplib.rules
14948 ac_config_files="$ac_config_files dlls/Makeimplib.rules"
14949
14950 wine_fn_config_makerules programs/Makeprog.rules Make.rules
14951 MAKE_PROG_RULES=programs/Makeprog.rules
14952 ac_config_files="$ac_config_files programs/Makeprog.rules"
14953
14954
14955 wine_fn_config_dll acledit enable_acledit
14956 wine_fn_config_dll aclui enable_aclui implib
14957 wine_fn_config_dll activeds enable_activeds implib
14958 wine_fn_config_dll actxprxy enable_actxprxy
14959 wine_fn_config_lib adsiid
14960 wine_fn_config_dll advapi32 enable_advapi32 implib
14961 wine_fn_config_test dlls/advapi32/tests advapi32_test
14962 wine_fn_config_dll advpack enable_advpack implib
14963 wine_fn_config_test dlls/advpack/tests advpack_test
14964 wine_fn_config_dll amstream enable_amstream
14965 wine_fn_config_test dlls/amstream/tests amstream_test
14966 wine_fn_config_dll appwiz.cpl enable_appwiz_cpl po
14967 wine_fn_config_dll atl enable_atl implib
14968 wine_fn_config_test dlls/atl/tests atl_test
14969 wine_fn_config_dll authz enable_authz
14970 wine_fn_config_dll avicap32 enable_avicap32 implib
14971 wine_fn_config_dll avifil32 enable_avifil32 po,implib
14972 wine_fn_config_test dlls/avifil32/tests avifil32_test
14973 wine_fn_config_dll avifile.dll16 enable_win16
14974 wine_fn_config_dll avrt enable_avrt implib
14975 wine_fn_config_dll bcrypt enable_bcrypt
14976 wine_fn_config_dll browseui enable_browseui po
14977 wine_fn_config_test dlls/browseui/tests browseui_test
14978 wine_fn_config_dll cabinet enable_cabinet implib
14979 wine_fn_config_test dlls/cabinet/tests cabinet_test
14980 wine_fn_config_dll capi2032 enable_capi2032 implib
14981 wine_fn_config_dll cards enable_cards implib
14982 wine_fn_config_dll cfgmgr32 enable_cfgmgr32 implib
14983 wine_fn_config_dll clusapi enable_clusapi implib
14984 wine_fn_config_dll comcat enable_comcat
14985 wine_fn_config_test dlls/comcat/tests comcat_test
14986 wine_fn_config_dll comctl32 enable_comctl32 po,implib
14987 wine_fn_config_test dlls/comctl32/tests comctl32_test
14988 wine_fn_config_dll comdlg32 enable_comdlg32 po,implib
14989 wine_fn_config_test dlls/comdlg32/tests comdlg32_test
14990 wine_fn_config_dll comm.drv16 enable_win16
14991 wine_fn_config_dll commdlg.dll16 enable_win16
14992 wine_fn_config_dll compobj.dll16 enable_win16
14993 wine_fn_config_dll compstui enable_compstui implib
14994 wine_fn_config_dll credui enable_credui po,implib
14995 wine_fn_config_test dlls/credui/tests credui_test
14996 wine_fn_config_dll crtdll enable_crtdll implib
14997 wine_fn_config_dll crypt32 enable_crypt32 po,implib
14998 wine_fn_config_test dlls/crypt32/tests crypt32_test
14999 wine_fn_config_dll cryptdlg enable_cryptdlg po
15000 wine_fn_config_dll cryptdll enable_cryptdll implib
15001 wine_fn_config_dll cryptnet enable_cryptnet implib
15002 wine_fn_config_test dlls/cryptnet/tests cryptnet_test
15003 wine_fn_config_dll cryptui enable_cryptui po,implib
15004 wine_fn_config_test dlls/cryptui/tests cryptui_test
15005 wine_fn_config_dll ctapi32 enable_ctapi32
15006 wine_fn_config_dll ctl3d.dll16 enable_win16
15007 wine_fn_config_dll ctl3d32 enable_ctl3d32 implib
15008 wine_fn_config_dll ctl3dv2.dll16 enable_win16
15009 wine_fn_config_dll d3d10 enable_d3d10 implib
15010 wine_fn_config_test dlls/d3d10/tests d3d10_test
15011 wine_fn_config_dll d3d10core enable_d3d10core implib
15012 wine_fn_config_test dlls/d3d10core/tests d3d10core_test
15013 wine_fn_config_dll d3d8 enable_d3d8 implib
15014 wine_fn_config_test dlls/d3d8/tests d3d8_test
15015 wine_fn_config_dll d3d9 enable_d3d9 implib
15016 wine_fn_config_test dlls/d3d9/tests d3d9_test
15017 wine_fn_config_dll d3dcompiler_33 enable_d3dcompiler_33
15018 wine_fn_config_dll d3dcompiler_34 enable_d3dcompiler_34
15019 wine_fn_config_dll d3dcompiler_35 enable_d3dcompiler_35
15020 wine_fn_config_dll d3dcompiler_36 enable_d3dcompiler_36
15021 wine_fn_config_dll d3dcompiler_37 enable_d3dcompiler_37
15022 wine_fn_config_dll d3dcompiler_38 enable_d3dcompiler_38
15023 wine_fn_config_dll d3dcompiler_39 enable_d3dcompiler_39
15024 wine_fn_config_dll d3dcompiler_40 enable_d3dcompiler_40
15025 wine_fn_config_dll d3dcompiler_41 enable_d3dcompiler_41
15026 wine_fn_config_dll d3dcompiler_42 enable_d3dcompiler_42
15027 wine_fn_config_dll d3dcompiler_43 enable_d3dcompiler_43 implib d3dcompiler
15028 wine_fn_config_test dlls/d3dcompiler_43/tests d3dcompiler_43_test
15029 wine_fn_config_dll d3dim enable_d3dim implib
15030 wine_fn_config_dll d3drm enable_d3drm implib
15031 wine_fn_config_test dlls/d3drm/tests d3drm_test
15032 wine_fn_config_dll d3dx10_33 enable_d3dx10_33
15033 wine_fn_config_dll d3dx10_34 enable_d3dx10_34
15034 wine_fn_config_dll d3dx10_35 enable_d3dx10_35
15035 wine_fn_config_dll d3dx10_36 enable_d3dx10_36
15036 wine_fn_config_dll d3dx10_37 enable_d3dx10_37
15037 wine_fn_config_dll d3dx10_38 enable_d3dx10_38
15038 wine_fn_config_dll d3dx10_39 enable_d3dx10_39
15039 wine_fn_config_dll d3dx10_40 enable_d3dx10_40
15040 wine_fn_config_dll d3dx10_41 enable_d3dx10_41
15041 wine_fn_config_dll d3dx10_42 enable_d3dx10_42
15042 wine_fn_config_dll d3dx10_43 enable_d3dx10_43
15043 wine_fn_config_dll d3dx9_24 enable_d3dx9_24
15044 wine_fn_config_dll d3dx9_25 enable_d3dx9_25
15045 wine_fn_config_dll d3dx9_26 enable_d3dx9_26
15046 wine_fn_config_dll d3dx9_27 enable_d3dx9_27
15047 wine_fn_config_dll d3dx9_28 enable_d3dx9_28
15048 wine_fn_config_dll d3dx9_29 enable_d3dx9_29
15049 wine_fn_config_dll d3dx9_30 enable_d3dx9_30
15050 wine_fn_config_dll d3dx9_31 enable_d3dx9_31
15051 wine_fn_config_dll d3dx9_32 enable_d3dx9_32
15052 wine_fn_config_dll d3dx9_33 enable_d3dx9_33
15053 wine_fn_config_dll d3dx9_34 enable_d3dx9_34
15054 wine_fn_config_dll d3dx9_35 enable_d3dx9_35
15055 wine_fn_config_dll d3dx9_36 enable_d3dx9_36 implib d3dx9
15056 wine_fn_config_test dlls/d3dx9_36/tests d3dx9_36_test
15057 wine_fn_config_dll d3dx9_37 enable_d3dx9_37
15058 wine_fn_config_dll d3dx9_38 enable_d3dx9_38
15059 wine_fn_config_dll d3dx9_39 enable_d3dx9_39
15060 wine_fn_config_dll d3dx9_40 enable_d3dx9_40
15061 wine_fn_config_dll d3dx9_41 enable_d3dx9_41
15062 wine_fn_config_dll d3dx9_42 enable_d3dx9_42
15063 wine_fn_config_dll d3dx9_43 enable_d3dx9_43
15064 wine_fn_config_dll d3dxof enable_d3dxof implib
15065 wine_fn_config_test dlls/d3dxof/tests d3dxof_test
15066 wine_fn_config_dll dbgeng enable_dbgeng implib
15067 wine_fn_config_dll dbghelp enable_dbghelp implib
15068 wine_fn_config_dll dciman32 enable_dciman32 implib
15069 wine_fn_config_dll ddeml.dll16 enable_win16
15070 wine_fn_config_dll ddraw enable_ddraw implib
15071 wine_fn_config_test dlls/ddraw/tests ddraw_test
15072 wine_fn_config_dll ddrawex enable_ddrawex
15073 wine_fn_config_test dlls/ddrawex/tests ddrawex_test
15074 wine_fn_config_dll devenum enable_devenum po
15075 wine_fn_config_dll dinput enable_dinput implib,staticimplib
15076 wine_fn_config_test dlls/dinput/tests dinput_test
15077 wine_fn_config_dll dinput8 enable_dinput8 implib
15078 wine_fn_config_dll dispdib.dll16 enable_win16
15079 wine_fn_config_dll dispex enable_dispex
15080 wine_fn_config_test dlls/dispex/tests dispex_test
15081 wine_fn_config_dll display.drv16 enable_win16
15082 wine_fn_config_dll dmband enable_dmband
15083 wine_fn_config_dll dmcompos enable_dmcompos
15084 wine_fn_config_dll dmime enable_dmime
15085 wine_fn_config_test dlls/dmime/tests dmime_test
15086 wine_fn_config_dll dmloader enable_dmloader
15087 wine_fn_config_test dlls/dmloader/tests dmloader_test
15088 wine_fn_config_dll dmscript enable_dmscript
15089 wine_fn_config_dll dmstyle enable_dmstyle
15090 wine_fn_config_dll dmsynth enable_dmsynth
15091 wine_fn_config_dll dmusic enable_dmusic
15092 wine_fn_config_dll dmusic32 enable_dmusic32 implib
15093 wine_fn_config_dll dnsapi enable_dnsapi implib
15094 wine_fn_config_test dlls/dnsapi/tests dnsapi_test
15095 wine_fn_config_dll dplay enable_dplay implib
15096 wine_fn_config_dll dplayx enable_dplayx implib
15097 wine_fn_config_test dlls/dplayx/tests dplayx_test
15098 wine_fn_config_dll dpnaddr enable_dpnaddr
15099 wine_fn_config_dll dpnet enable_dpnet implib
15100 wine_fn_config_dll dpnhpast enable_dpnhpast
15101 wine_fn_config_dll dpnlobby enable_dpnlobby
15102 wine_fn_config_dll dpwsockx enable_dpwsockx
15103 wine_fn_config_dll drmclien enable_drmclien
15104 wine_fn_config_dll dsound enable_dsound implib
15105 wine_fn_config_test dlls/dsound/tests dsound_test
15106 wine_fn_config_dll dssenh enable_dssenh
15107 wine_fn_config_dll dswave enable_dswave
15108 wine_fn_config_dll dwmapi enable_dwmapi implib
15109 wine_fn_config_dll dxdiagn enable_dxdiagn po
15110 wine_fn_config_test dlls/dxdiagn/tests dxdiagn_test
15111 wine_fn_config_lib dxerr8
15112 wine_fn_config_lib dxerr9
15113 wine_fn_config_dll dxgi enable_dxgi implib
15114 wine_fn_config_test dlls/dxgi/tests dxgi_test
15115 wine_fn_config_lib dxguid
15116 wine_fn_config_dll explorerframe enable_explorerframe
15117 wine_fn_config_test dlls/explorerframe/tests explorerframe_test
15118 wine_fn_config_dll faultrep enable_faultrep implib
15119 wine_fn_config_test dlls/faultrep/tests faultrep_test
15120 wine_fn_config_dll fltlib enable_fltlib
15121 wine_fn_config_dll fusion enable_fusion
15122 wine_fn_config_test dlls/fusion/tests fusion_test
15123 wine_fn_config_dll fwpuclnt enable_fwpuclnt
15124 wine_fn_config_dll gameux enable_gameux
15125 wine_fn_config_test dlls/gameux/tests gameux_test
15126 wine_fn_config_dll gdi.exe16 enable_win16
15127 wine_fn_config_dll gdi32 enable_gdi32 implib
15128 wine_fn_config_test dlls/gdi32/tests gdi32_test
15129 wine_fn_config_dll gdiplus enable_gdiplus implib
15130 wine_fn_config_test dlls/gdiplus/tests gdiplus_test
15131 wine_fn_config_dll glu32 enable_glu32 implib
15132 wine_fn_config_dll gphoto2.ds enable_gphoto2_ds
15133 wine_fn_config_dll gpkcsp enable_gpkcsp
15134 wine_fn_config_dll hal enable_hal
15135 wine_fn_config_dll hhctrl.ocx enable_hhctrl_ocx po
15136 wine_fn_config_dll hid enable_hid implib
15137 wine_fn_config_dll hlink enable_hlink implib
15138 wine_fn_config_test dlls/hlink/tests hlink_test
15139 wine_fn_config_dll hnetcfg enable_hnetcfg
15140 wine_fn_config_dll httpapi enable_httpapi
15141 wine_fn_config_dll iccvid enable_iccvid po
15142 wine_fn_config_dll icmp enable_icmp
15143 wine_fn_config_dll ifsmgr.vxd enable_win16
15144 wine_fn_config_dll imaadp32.acm enable_imaadp32_acm
15145 wine_fn_config_dll imagehlp enable_imagehlp implib
15146 wine_fn_config_test dlls/imagehlp/tests imagehlp_test
15147 wine_fn_config_dll imm.dll16 enable_win16
15148 wine_fn_config_dll imm32 enable_imm32 implib
15149 wine_fn_config_test dlls/imm32/tests imm32_test
15150 wine_fn_config_dll inetcomm enable_inetcomm implib
15151 wine_fn_config_test dlls/inetcomm/tests inetcomm_test
15152 wine_fn_config_dll inetcpl.cpl enable_inetcpl_cpl po
15153 wine_fn_config_dll inetmib1 enable_inetmib1
15154 wine_fn_config_test dlls/inetmib1/tests inetmib1_test
15155 wine_fn_config_dll infosoft enable_infosoft
15156 wine_fn_config_test dlls/infosoft/tests infosoft_test
15157 wine_fn_config_dll initpki enable_initpki
15158 wine_fn_config_dll inkobj enable_inkobj
15159 wine_fn_config_dll inseng enable_inseng
15160 wine_fn_config_dll iphlpapi enable_iphlpapi implib
15161 wine_fn_config_test dlls/iphlpapi/tests iphlpapi_test
15162 wine_fn_config_dll itircl enable_itircl
15163 wine_fn_config_dll itss enable_itss
15164 wine_fn_config_test dlls/itss/tests itss_test
15165 wine_fn_config_dll jscript enable_jscript po
15166 wine_fn_config_test dlls/jscript/tests jscript_test
15167 wine_fn_config_dll kernel32 enable_kernel32 mc,implib
15168 wine_fn_config_test dlls/kernel32/tests kernel32_test
15169 wine_fn_config_dll keyboard.drv16 enable_win16
15170 wine_fn_config_dll krnl386.exe16 enable_win16 implib kernel
15171 wine_fn_config_dll ktmw32 enable_ktmw32
15172 wine_fn_config_dll loadperf enable_loadperf implib
15173 wine_fn_config_dll localspl enable_localspl po
15174 wine_fn_config_test dlls/localspl/tests localspl_test
15175 wine_fn_config_dll localui enable_localui po
15176 wine_fn_config_test dlls/localui/tests localui_test
15177 wine_fn_config_dll lz32 enable_lz32 implib
15178 wine_fn_config_test dlls/lz32/tests lz32_test
15179 wine_fn_config_dll lzexpand.dll16 enable_win16
15180 wine_fn_config_dll mapi32 enable_mapi32 po,implib
15181 wine_fn_config_test dlls/mapi32/tests mapi32_test
15182 wine_fn_config_dll mapistub enable_mapistub
15183 wine_fn_config_dll mciavi32 enable_mciavi32
15184 wine_fn_config_dll mcicda enable_mcicda
15185 wine_fn_config_dll mciqtz32 enable_mciqtz32
15186 wine_fn_config_dll mciseq enable_mciseq
15187 wine_fn_config_dll mciwave enable_mciwave
15188 wine_fn_config_dll midimap enable_midimap
15189 wine_fn_config_dll mlang enable_mlang implib
15190 wine_fn_config_test dlls/mlang/tests mlang_test
15191 wine_fn_config_dll mmdevapi enable_mmdevapi
15192 wine_fn_config_test dlls/mmdevapi/tests mmdevapi_test
15193 wine_fn_config_dll mmdevldr.vxd enable_win16
15194 wine_fn_config_dll mmsystem.dll16 enable_win16
15195 wine_fn_config_dll monodebg.vxd enable_win16
15196 wine_fn_config_dll mountmgr.sys enable_mountmgr_sys
15197 wine_fn_config_dll mouse.drv16 enable_win16
15198 wine_fn_config_dll mpr enable_mpr po,implib
15199 wine_fn_config_dll mprapi enable_mprapi implib
15200 wine_fn_config_dll msacm.dll16 enable_win16
15201 wine_fn_config_dll msacm32.drv enable_msacm32_drv
15202 wine_fn_config_dll msacm32 enable_msacm32 implib
15203 wine_fn_config_test dlls/msacm32/tests msacm32_test
15204 wine_fn_config_dll msadp32.acm enable_msadp32_acm
15205 wine_fn_config_dll mscat32 enable_mscat32
15206 wine_fn_config_dll mscms enable_mscms implib
15207 wine_fn_config_test dlls/mscms/tests mscms_test
15208 wine_fn_config_dll mscoree enable_mscoree
15209 wine_fn_config_test dlls/mscoree/tests mscoree_test
15210 wine_fn_config_dll msctf enable_msctf
15211 wine_fn_config_test dlls/msctf/tests msctf_test
15212 wine_fn_config_dll msdaps enable_msdaps
15213 wine_fn_config_dll msdmo enable_msdmo implib
15214 wine_fn_config_dll msftedit enable_msftedit
15215 wine_fn_config_dll msg711.acm enable_msg711_acm
15216 wine_fn_config_dll msgsm32.acm enable_msgsm32_acm
15217 wine_fn_config_dll mshtml.tlb enable_mshtml_tlb
15218 wine_fn_config_dll mshtml enable_mshtml po,implib
15219 wine_fn_config_test dlls/mshtml/tests mshtml_test
15220 wine_fn_config_dll msi enable_msi po,implib
15221 wine_fn_config_test dlls/msi/tests msi_test
15222 wine_fn_config_dll msimg32 enable_msimg32 implib
15223 wine_fn_config_dll msimsg enable_msimsg
15224 wine_fn_config_dll msimtf enable_msimtf
15225 wine_fn_config_dll msisip enable_msisip
15226 wine_fn_config_dll msisys.ocx enable_msisys_ocx
15227 wine_fn_config_dll msnet32 enable_msnet32
15228 wine_fn_config_dll mspatcha enable_mspatcha
15229 wine_fn_config_dll msrle32 enable_msrle32 po
15230 wine_fn_config_dll mssign32 enable_mssign32
15231 wine_fn_config_dll mssip32 enable_mssip32
15232 wine_fn_config_dll mstask enable_mstask
15233 wine_fn_config_test dlls/mstask/tests mstask_test
15234 wine_fn_config_dll msvcirt enable_msvcirt
15235 wine_fn_config_dll msvcp100 enable_msvcp100
15236 wine_fn_config_dll msvcp80 enable_msvcp80
15237 wine_fn_config_dll msvcp90 enable_msvcp90
15238 wine_fn_config_test dlls/msvcp90/tests msvcp90_test
15239 wine_fn_config_dll msvcr100 enable_msvcr100
15240 wine_fn_config_dll msvcr70 enable_msvcr70 implib
15241 wine_fn_config_dll msvcr71 enable_msvcr71 implib
15242 wine_fn_config_dll msvcr80 enable_msvcr80
15243 wine_fn_config_dll msvcr90 enable_msvcr90
15244 wine_fn_config_test dlls/msvcr90/tests msvcr90_test
15245 wine_fn_config_dll msvcrt enable_msvcrt implib
15246 wine_fn_config_test dlls/msvcrt/tests msvcrt_test
15247 wine_fn_config_dll msvcrt20 enable_msvcrt20 implib
15248 wine_fn_config_dll msvcrt40 enable_msvcrt40 implib
15249 wine_fn_config_dll msvcrtd enable_msvcrtd implib
15250 wine_fn_config_test dlls/msvcrtd/tests msvcrtd_test
15251 wine_fn_config_dll msvfw32 enable_msvfw32 po,implib
15252 wine_fn_config_test dlls/msvfw32/tests msvfw32_test
15253 wine_fn_config_dll msvidc32 enable_msvidc32 po
15254 wine_fn_config_dll msvideo.dll16 enable_win16
15255 wine_fn_config_dll mswsock enable_mswsock implib
15256 wine_fn_config_dll msxml enable_msxml
15257 wine_fn_config_dll msxml2 enable_msxml2
15258 wine_fn_config_dll msxml3 enable_msxml3
15259 wine_fn_config_test dlls/msxml3/tests msxml3_test
15260 wine_fn_config_dll msxml4 enable_msxml4
15261 wine_fn_config_dll msxml6 enable_msxml6
15262 wine_fn_config_dll nddeapi enable_nddeapi implib
15263 wine_fn_config_dll netapi32 enable_netapi32 implib
15264 wine_fn_config_test dlls/netapi32/tests netapi32_test
15265 wine_fn_config_dll newdev enable_newdev implib
15266 wine_fn_config_dll normaliz enable_normaliz implib
15267 wine_fn_config_dll npmshtml enable_npmshtml
15268 wine_fn_config_dll ntdll enable_ntdll implib
15269 wine_fn_config_test dlls/ntdll/tests ntdll_test
15270 wine_fn_config_dll ntdsapi enable_ntdsapi implib
15271 wine_fn_config_test dlls/ntdsapi/tests ntdsapi_test
15272 wine_fn_config_dll ntoskrnl.exe enable_ntoskrnl_exe implib
15273 wine_fn_config_dll ntprint enable_ntprint
15274 wine_fn_config_test dlls/ntprint/tests ntprint_test
15275 wine_fn_config_dll objsel enable_objsel
15276 wine_fn_config_dll odbc32 enable_odbc32 implib
15277 wine_fn_config_dll odbccp32 enable_odbccp32 implib
15278 wine_fn_config_test dlls/odbccp32/tests odbccp32_test
15279 wine_fn_config_dll ole2.dll16 enable_win16
15280 wine_fn_config_dll ole2conv.dll16 enable_win16
15281 wine_fn_config_dll ole2disp.dll16 enable_win16
15282 wine_fn_config_dll ole2nls.dll16 enable_win16
15283 wine_fn_config_dll ole2prox.dll16 enable_win16
15284 wine_fn_config_dll ole2thk.dll16 enable_win16
15285 wine_fn_config_dll ole32 enable_ole32 implib
15286 wine_fn_config_test dlls/ole32/tests ole32_test
15287 wine_fn_config_dll oleacc enable_oleacc po,implib
15288 wine_fn_config_test dlls/oleacc/tests oleacc_test
15289 wine_fn_config_dll oleaut32 enable_oleaut32 po,implib
15290 wine_fn_config_test dlls/oleaut32/tests oleaut32_test
15291 wine_fn_config_dll olecli.dll16 enable_win16
15292 wine_fn_config_dll olecli32 enable_olecli32 implib
15293 wine_fn_config_dll oledb32 enable_oledb32
15294 wine_fn_config_test dlls/oledb32/tests oledb32_test
15295 wine_fn_config_dll oledlg enable_oledlg po,implib
15296 wine_fn_config_dll olepro32 enable_olepro32 implib
15297 wine_fn_config_dll olesvr.dll16 enable_win16
15298 wine_fn_config_dll olesvr32 enable_olesvr32 implib
15299 wine_fn_config_dll olethk32 enable_olethk32
15300 wine_fn_config_dll openal32 enable_openal32
15301 wine_fn_config_dll opencl enable_opencl
15302 wine_fn_config_dll opengl32 enable_opengl32 implib
15303 wine_fn_config_test dlls/opengl32/tests opengl32_test
15304 wine_fn_config_dll pdh enable_pdh implib
15305 wine_fn_config_test dlls/pdh/tests pdh_test
15306 wine_fn_config_dll pidgen enable_pidgen
15307 wine_fn_config_dll powrprof enable_powrprof implib
15308 wine_fn_config_dll printui enable_printui
15309 wine_fn_config_dll propsys enable_propsys implib
15310 wine_fn_config_test dlls/propsys/tests propsys_test
15311 wine_fn_config_dll psapi enable_psapi implib
15312 wine_fn_config_test dlls/psapi/tests psapi_test
15313 wine_fn_config_dll pstorec enable_pstorec
15314 wine_fn_config_dll qcap enable_qcap
15315 wine_fn_config_dll qedit enable_qedit
15316 wine_fn_config_test dlls/qedit/tests qedit_test
15317 wine_fn_config_dll qmgr enable_qmgr
15318 wine_fn_config_test dlls/qmgr/tests qmgr_test
15319 wine_fn_config_dll qmgrprxy enable_qmgrprxy
15320 wine_fn_config_dll quartz enable_quartz implib
15321 wine_fn_config_test dlls/quartz/tests quartz_test
15322 wine_fn_config_dll query enable_query
15323 wine_fn_config_dll rasapi16.dll16 enable_win16
15324 wine_fn_config_dll rasapi32 enable_rasapi32 implib
15325 wine_fn_config_test dlls/rasapi32/tests rasapi32_test
15326 wine_fn_config_dll rasdlg enable_rasdlg implib
15327 wine_fn_config_dll resutils enable_resutils implib
15328 wine_fn_config_dll riched20 enable_riched20 implib
15329 wine_fn_config_test dlls/riched20/tests riched20_test
15330 wine_fn_config_dll riched32 enable_riched32
15331 wine_fn_config_test dlls/riched32/tests riched32_test
15332 wine_fn_config_dll rpcrt4 enable_rpcrt4 implib
15333 wine_fn_config_test dlls/rpcrt4/tests rpcrt4_test
15334 wine_fn_config_dll rsabase enable_rsabase
15335 wine_fn_config_dll rsaenh enable_rsaenh implib
15336 wine_fn_config_test dlls/rsaenh/tests rsaenh_test
15337 wine_fn_config_dll rstrtmgr enable_rstrtmgr
15338 wine_fn_config_dll rtutils enable_rtutils implib
15339 wine_fn_config_dll samlib enable_samlib
15340 wine_fn_config_dll sane.ds enable_sane_ds po
15341 wine_fn_config_dll scarddlg enable_scarddlg
15342 wine_fn_config_dll sccbase enable_sccbase
15343 wine_fn_config_dll schannel enable_schannel
15344 wine_fn_config_test dlls/schannel/tests schannel_test
15345 wine_fn_config_dll secur32 enable_secur32 implib
15346 wine_fn_config_test dlls/secur32/tests secur32_test
15347 wine_fn_config_dll security enable_security
15348 wine_fn_config_dll sensapi enable_sensapi implib
15349 wine_fn_config_dll serialui enable_serialui implib
15350 wine_fn_config_test dlls/serialui/tests serialui_test
15351 wine_fn_config_dll setupapi enable_setupapi po,implib
15352 wine_fn_config_test dlls/setupapi/tests setupapi_test
15353 wine_fn_config_dll setupx.dll16 enable_win16
15354 wine_fn_config_dll sfc enable_sfc implib
15355 wine_fn_config_dll sfc_os enable_sfc_os implib
15356 wine_fn_config_dll shdoclc enable_shdoclc po
15357 wine_fn_config_dll shdocvw enable_shdocvw po,implib
15358 wine_fn_config_test dlls/shdocvw/tests shdocvw_test
15359 wine_fn_config_dll shell.dll16 enable_win16
15360 wine_fn_config_dll shell32 enable_shell32 po,implib
15361 wine_fn_config_test dlls/shell32/tests shell32_test
15362 wine_fn_config_dll shfolder enable_shfolder implib
15363 wine_fn_config_dll shlwapi enable_shlwapi po,implib
15364 wine_fn_config_test dlls/shlwapi/tests shlwapi_test
15365 wine_fn_config_dll slbcsp enable_slbcsp
15366 wine_fn_config_dll slc enable_slc implib
15367 wine_fn_config_dll snmpapi enable_snmpapi implib
15368 wine_fn_config_test dlls/snmpapi/tests snmpapi_test
15369 wine_fn_config_dll softpub enable_softpub
15370 wine_fn_config_dll sound.drv16 enable_win16
15371 wine_fn_config_dll spoolss enable_spoolss implib
15372 wine_fn_config_test dlls/spoolss/tests spoolss_test
15373 wine_fn_config_dll stdole2.tlb enable_stdole2_tlb
15374 wine_fn_config_dll stdole32.tlb enable_stdole32_tlb
15375 wine_fn_config_dll sti enable_sti implib
15376 wine_fn_config_test dlls/sti/tests sti_test
15377 wine_fn_config_dll storage.dll16 enable_win16
15378 wine_fn_config_dll stress.dll16 enable_win16
15379 wine_fn_config_lib strmbase
15380 wine_fn_config_lib strmiids
15381 wine_fn_config_dll svrapi enable_svrapi
15382 wine_fn_config_dll sxs enable_sxs
15383 wine_fn_config_dll system.drv16 enable_win16
15384 wine_fn_config_dll t2embed enable_t2embed
15385 wine_fn_config_dll tapi32 enable_tapi32 implib
15386 wine_fn_config_dll toolhelp.dll16 enable_win16
15387 wine_fn_config_dll traffic enable_traffic
15388 wine_fn_config_dll twain.dll16 enable_win16
15389 wine_fn_config_dll twain_32 enable_twain_32
15390 wine_fn_config_test dlls/twain_32/tests twain_32_test
15391 wine_fn_config_dll typelib.dll16 enable_win16
15392 wine_fn_config_dll unicows enable_unicows implib
15393 wine_fn_config_dll updspapi enable_updspapi
15394 wine_fn_config_dll url enable_url implib
15395 wine_fn_config_dll urlmon enable_urlmon implib
15396 wine_fn_config_test dlls/urlmon/tests urlmon_test
15397 wine_fn_config_dll usbd.sys enable_usbd_sys implib
15398 wine_fn_config_dll user.exe16 enable_win16
15399 wine_fn_config_dll user32 enable_user32 po,implib
15400 wine_fn_config_test dlls/user32/tests user32_test
15401 wine_fn_config_dll userenv enable_userenv implib
15402 wine_fn_config_test dlls/userenv/tests userenv_test
15403 wine_fn_config_dll usp10 enable_usp10 implib
15404 wine_fn_config_test dlls/usp10/tests usp10_test
15405 wine_fn_config_lib uuid
15406 wine_fn_config_dll uxtheme enable_uxtheme implib
15407 wine_fn_config_test dlls/uxtheme/tests uxtheme_test
15408 wine_fn_config_dll vcomp enable_vcomp
15409 wine_fn_config_dll vdhcp.vxd enable_win16
15410 wine_fn_config_dll vdmdbg enable_vdmdbg implib
15411 wine_fn_config_dll ver.dll16 enable_win16
15412 wine_fn_config_dll version enable_version implib
15413 wine_fn_config_test dlls/version/tests version_test
15414 wine_fn_config_dll vmm.vxd enable_win16
15415 wine_fn_config_dll vnbt.vxd enable_win16
15416 wine_fn_config_dll vnetbios.vxd enable_win16
15417 wine_fn_config_dll vtdapi.vxd enable_win16
15418 wine_fn_config_dll vwin32.vxd enable_win16
15419 wine_fn_config_dll w32skrnl enable_win16
15420 wine_fn_config_dll w32sys.dll16 enable_win16
15421 wine_fn_config_dll wbemprox enable_wbemprox
15422 wine_fn_config_dll wer enable_wer implib
15423 wine_fn_config_test dlls/wer/tests wer_test
15424 wine_fn_config_dll wiaservc enable_wiaservc
15425 wine_fn_config_dll win32s16.dll16 enable_win16
15426 wine_fn_config_dll win87em.dll16 enable_win16
15427 wine_fn_config_dll winaspi.dll16 enable_win16
15428 wine_fn_config_dll windebug.dll16 enable_win16
15429 wine_fn_config_dll windowscodecs enable_windowscodecs implib
15430 wine_fn_config_test dlls/windowscodecs/tests windowscodecs_test
15431 wine_fn_config_dll winealsa.drv enable_winealsa_drv
15432 wine_fn_config_dll winecoreaudio.drv enable_winecoreaudio_drv
15433 wine_fn_config_lib winecrt0
15434 wine_fn_config_dll wined3d enable_wined3d implib
15435 wine_fn_config_dll wineesd.drv enable_wineesd_drv
15436 wine_fn_config_dll winegstreamer enable_winegstreamer
15437 wine_fn_config_dll winejack.drv enable_winejack_drv
15438 wine_fn_config_dll winejoystick.drv enable_winejoystick_drv
15439 wine_fn_config_dll winemapi enable_winemapi
15440 wine_fn_config_dll winemp3.acm enable_winemp3_acm
15441 wine_fn_config_dll winenas.drv enable_winenas_drv
15442 wine_fn_config_dll wineoss.drv enable_wineoss_drv
15443 wine_fn_config_dll wineps.drv enable_wineps_drv
15444 wine_fn_config_dll wineps16.drv16 enable_win16
15445 wine_fn_config_dll wineqtdecoder enable_wineqtdecoder
15446 wine_fn_config_dll winequartz.drv enable_winequartz_drv
15447 wine_fn_config_dll winex11.drv enable_winex11_drv
15448 wine_fn_config_dll wing.dll16 enable_win16
15449 wine_fn_config_dll wing32 enable_wing32
15450 wine_fn_config_dll winhttp enable_winhttp implib
15451 wine_fn_config_test dlls/winhttp/tests winhttp_test
15452 wine_fn_config_dll wininet enable_wininet po,implib
15453 wine_fn_config_test dlls/wininet/tests wininet_test
15454 wine_fn_config_dll winmm enable_winmm po,implib
15455 wine_fn_config_test dlls/winmm/tests winmm_test
15456 wine_fn_config_dll winnls.dll16 enable_win16
15457 wine_fn_config_dll winnls32 enable_winnls32 implib
15458 wine_fn_config_dll winscard enable_winscard implib
15459 wine_fn_config_dll winsock.dll16 enable_win16
15460 wine_fn_config_dll winspool.drv enable_winspool_drv po,implib winspool
15461 wine_fn_config_test dlls/winspool.drv/tests winspool.drv_test
15462 wine_fn_config_dll wintab.dll16 enable_win16
15463 wine_fn_config_dll wintab32 enable_wintab32 implib
15464 wine_fn_config_test dlls/wintab32/tests wintab32_test
15465 wine_fn_config_dll wintrust enable_wintrust implib
15466 wine_fn_config_test dlls/wintrust/tests wintrust_test
15467 wine_fn_config_dll wlanapi enable_wlanapi
15468 wine_fn_config_dll wldap32 enable_wldap32 po,implib
15469 wine_fn_config_test dlls/wldap32/tests wldap32_test
15470 wine_fn_config_dll wmi enable_wmi
15471 wine_fn_config_dll wmiutils enable_wmiutils
15472 wine_fn_config_dll wnaspi32 enable_wnaspi32 implib
15473 wine_fn_config_dll wow32 enable_win16 implib
15474 wine_fn_config_dll ws2_32 enable_ws2_32 implib
15475 wine_fn_config_test dlls/ws2_32/tests ws2_32_test
15476 wine_fn_config_dll wsock32 enable_wsock32 implib
15477 wine_fn_config_dll wtsapi32 enable_wtsapi32 implib
15478 wine_fn_config_dll wuapi enable_wuapi
15479 wine_fn_config_dll wuaueng enable_wuaueng
15480 wine_fn_config_dll xapofx1_1 enable_xapofx1_1
15481 wine_fn_config_dll xinput1_1 enable_xinput1_1
15482 wine_fn_config_dll xinput1_2 enable_xinput1_2
15483 wine_fn_config_dll xinput1_3 enable_xinput1_3 implib xinput
15484 wine_fn_config_test dlls/xinput1_3/tests xinput1_3_test
15485 wine_fn_config_dll xinput9_1_0 enable_xinput9_1_0
15486 wine_fn_config_dll xmllite enable_xmllite
15487 wine_fn_config_test dlls/xmllite/tests xmllite_test
15488 wine_fn_config_makefile documentation enable_documentation
15489 wine_fn_config_makefile fonts enable_fonts
15490 wine_fn_config_makefile include enable_include
15491 wine_fn_config_makefile libs/port enable_libs_port
15492 wine_fn_config_makefile libs/wine enable_libs_wine
15493 wine_fn_config_makefile libs/wpp enable_libs_wpp
15494 wine_fn_config_makefile loader enable_loader
15495 wine_fn_config_program aspnet_regiis enable_aspnet_regiis install
15496 wine_fn_config_program attrib enable_attrib install
15497 wine_fn_config_program cabarc enable_cabarc install
15498 wine_fn_config_program cacls enable_cacls install
15499 wine_fn_config_program clock enable_clock po,install
15500 wine_fn_config_program cmd enable_cmd po,install
15501 wine_fn_config_test programs/cmd/tests cmd.exe_test
15502 wine_fn_config_program cmdlgtst enable_cmdlgtst
15503 wine_fn_config_program control enable_control install
15504 wine_fn_config_program dxdiag enable_dxdiag install
15505 wine_fn_config_program eject enable_eject install
15506 wine_fn_config_program expand enable_expand install
15507 wine_fn_config_program explorer enable_explorer install
15508 wine_fn_config_program extrac32 enable_extrac32 install
15509 wine_fn_config_program hh enable_hh install
15510 wine_fn_config_program icinfo enable_icinfo install
15511 wine_fn_config_program iexplore enable_iexplore install
15512 wine_fn_config_program ipconfig enable_ipconfig po,install
15513 wine_fn_config_program lodctr enable_lodctr install
15514 wine_fn_config_program mofcomp enable_mofcomp install
15515 wine_fn_config_program mshta enable_mshta install
15516 wine_fn_config_program msiexec enable_msiexec install,installbin
15517 wine_fn_config_program net enable_net po,install
15518 wine_fn_config_program netsh enable_netsh install
15519 wine_fn_config_program ngen enable_ngen install
15520 wine_fn_config_program notepad enable_notepad po,install,installbin
15521 wine_fn_config_program oleview enable_oleview po,install
15522 wine_fn_config_program ping enable_ping install
15523 wine_fn_config_program plugplay enable_plugplay install
15524 wine_fn_config_program progman enable_progman po,install
15525 wine_fn_config_program reg enable_reg po,install
15526 wine_fn_config_program regedit enable_regedit po,install,installbin
15527 wine_fn_config_test programs/regedit/tests regedit.exe_test
15528 wine_fn_config_program regsvcs enable_regsvcs install
15529 wine_fn_config_program regsvr32 enable_regsvr32 install,installbin
15530 wine_fn_config_program rpcss enable_rpcss install
15531 wine_fn_config_program rundll.exe16 enable_win16 install
15532 wine_fn_config_program rundll32 enable_rundll32 install
15533 wine_fn_config_program sc enable_sc install
15534 wine_fn_config_program secedit enable_secedit install
15535 wine_fn_config_program servicemodelreg enable_servicemodelreg install
15536 wine_fn_config_program services enable_services install
15537 wine_fn_config_program spoolsv enable_spoolsv install
15538 wine_fn_config_program start enable_start po,install
15539 wine_fn_config_program svchost enable_svchost install
15540 wine_fn_config_program taskkill enable_taskkill po,install
15541 wine_fn_config_program taskmgr enable_taskmgr po,install
15542 wine_fn_config_program termsv enable_termsv install
15543 wine_fn_config_program uninstaller enable_uninstaller po,install
15544 wine_fn_config_program unlodctr enable_unlodctr install
15545 wine_fn_config_program view enable_view po
15546 wine_fn_config_program wineboot enable_wineboot install,installbin
15547 wine_fn_config_program winebrowser enable_winebrowser install
15548 wine_fn_config_program winecfg enable_winecfg po,install,installbin
15549 wine_fn_config_program wineconsole enable_wineconsole po,install,installbin
15550 wine_fn_config_program winedbg enable_winedbg po,install,installbin
15551 wine_fn_config_program winedevice enable_winedevice install
15552 wine_fn_config_program winefile enable_winefile po,install,installbin
15553 wine_fn_config_program winemenubuilder enable_winemenubuilder install
15554 wine_fn_config_program winemine enable_winemine po,install,installbin
15555 wine_fn_config_program winemsibuilder enable_winemsibuilder install
15556 wine_fn_config_program winepath enable_winepath install,installbin
15557 wine_fn_config_program winetest enable_winetest
15558 wine_fn_config_program winevdm enable_win16 install
15559 wine_fn_config_program winhelp.exe16 enable_win16 install
15560 wine_fn_config_program winhlp32 enable_winhlp32 po,install
15561 wine_fn_config_program winoldap.mod16 enable_win16 install
15562 wine_fn_config_program winver enable_winver install
15563 wine_fn_config_program wmic enable_wmic install
15564 wine_fn_config_program wordpad enable_wordpad po,install
15565 wine_fn_config_program write enable_write po,install
15566 wine_fn_config_program wscript enable_wscript install
15567 wine_fn_config_test programs/wscript/tests wscript.exe_test
15568 wine_fn_config_program xcopy enable_xcopy po,install
15569 wine_fn_config_makefile server enable_server
15570 wine_fn_config_tool tools
15571 wine_fn_config_tool tools/widl
15572 wine_fn_config_tool tools/winebuild
15573 wine_fn_config_tool tools/winedump
15574 wine_fn_config_tool tools/winegcc
15575 wine_fn_config_tool tools/wmc
15576 wine_fn_config_tool tools/wrc
15577
15578 LINGUAS="\
15579 ar \
15580 bg \
15581 ca \
15582 cs \
15583 da \
15584 de \
15585 el \
15586 en \
15587 en_US \
15588 eo \
15589 es \
15590 fa \
15591 fi \
15592 fr \
15593 he \
15594 hi \
15595 hu \
15596 it \
15597 ja \
15598 ko \
15599 lt \
15600 ml \
15601 nb_NO \
15602 nl \
15603 or \
15604 pa \
15605 pl \
15606 pt_BR \
15607 pt_PT \
15608 rm \
15609 ro \
15610 ru \
15611 sk \
15612 sl \
15613 sr_RS@cyrillic \
15614 sr_RS@latin \
15615 sv \
15616 te \
15617 th \
15618 tr \
15619 uk \
15620 wa \
15621 zh_CN \
15622 zh_TW"
15623
15624
15625
15626 ac_config_commands="$ac_config_commands Makefile"
15627
15628
15629 ac_config_files="$ac_config_files Make.tmp:Make.vars.in:Makefile.in"
15630
15631
15632
15633 if test "x$enable_maintainer_mode" = xyes
15634 then
15635     wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(srcdir)/configure: configure.ac aclocal.m4
15636         cd \$(srcdir) && autoconf --warnings=all
15637 \$(srcdir)/include/config.h.in: include/stamp-h.in
15638 \$(srcdir)/include/stamp-h.in: configure.ac aclocal.m4
15639         cd \$(srcdir) && autoheader --warnings=all
15640         @echo timestamp > \$@
15641
15642 ALL_POT_FILES =$ALL_POT_FILES
15643 all: \$(ALL_PO_FILES)
15644 \$(ALL_PO_FILES): \$(srcdir)/po/wine.pot
15645         msgmerge -q \$@ \$(srcdir)/po/wine.pot | msgattrib --no-obsolete -o \$@.new && mv \$@.new \$@
15646 \$(srcdir)/po/wine.pot: \$(ALL_POT_FILES)
15647         msgcat -o \$@ \$(ALL_POT_FILES)"
15648 fi
15649
15650 if test -n "$with_wine64"
15651 then
15652 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "all: fonts server $with_wine64/loader/wine $with_wine64/loader/wine-preloader
15653 fonts server:
15654         \$(RM) \$@ && \$(LN_S) $with_wine64/\$@ \$@
15655 $with_wine64/loader/wine:
15656         \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine \$@
15657 $with_wine64/loader/wine-preloader:
15658         \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine-preloader \$@
15659 clean::
15660         \$(RM) fonts server $with_wine64/loader/wine $with_wine64/loader/wine-preloader"
15661 fi
15662
15663 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "uninstall::
15664         -rmdir \$(DESTDIR)\$(datadir)/wine \$(DESTDIR)\$(fakedlldir) \$(DESTDIR)\$(dlldir)"
15665
15666 cat >confcache <<\_ACEOF
15667 # This file is a shell script that caches the results of configure
15668 # tests run on this system so they can be shared between configure
15669 # scripts and configure runs, see configure's option --config-cache.
15670 # It is not useful on other systems.  If it contains results you don't
15671 # want to keep, you may remove or edit it.
15672 #
15673 # config.status only pays attention to the cache file if you give it
15674 # the --recheck option to rerun configure.
15675 #
15676 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15677 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15678 # following values.
15679
15680 _ACEOF
15681
15682 # The following way of writing the cache mishandles newlines in values,
15683 # but we know of no workaround that is simple, portable, and efficient.
15684 # So, we kill variables containing newlines.
15685 # Ultrix sh set writes to stderr and can't be redirected directly,
15686 # and sets the high bit in the cache file unless we assign to the vars.
15687 (
15688   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15689     eval ac_val=\$$ac_var
15690     case $ac_val in #(
15691     *${as_nl}*)
15692       case $ac_var in #(
15693       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15694 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15695       esac
15696       case $ac_var in #(
15697       _ | IFS | as_nl) ;; #(
15698       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15699       *) { eval $ac_var=; unset $ac_var;} ;;
15700       esac ;;
15701     esac
15702   done
15703
15704   (set) 2>&1 |
15705     case $as_nl`(ac_space=' '; set) 2>&1` in #(
15706     *${as_nl}ac_space=\ *)
15707       # `set' does not quote correctly, so add quotes: double-quote
15708       # substitution turns \\\\ into \\, and sed turns \\ into \.
15709       sed -n \
15710         "s/'/'\\\\''/g;
15711           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15712       ;; #(
15713     *)
15714       # `set' quotes correctly as required by POSIX, so do not add quotes.
15715       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15716       ;;
15717     esac |
15718     sort
15719 ) |
15720   sed '
15721      /^ac_cv_env_/b end
15722      t clear
15723      :clear
15724      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15725      t end
15726      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15727      :end' >>confcache
15728 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15729   if test -w "$cache_file"; then
15730     test "x$cache_file" != "x/dev/null" &&
15731       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15732 $as_echo "$as_me: updating cache $cache_file" >&6;}
15733     cat confcache >$cache_file
15734   else
15735     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15736 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15737   fi
15738 fi
15739 rm -f confcache
15740
15741 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15742 # Let make expand exec_prefix.
15743 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15744
15745 DEFS=-DHAVE_CONFIG_H
15746
15747 ac_libobjs=
15748 ac_ltlibobjs=
15749 U=
15750 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15751   # 1. Remove the extension, and $U if already installed.
15752   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15753   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15754   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15755   #    will be set to the directory where LIBOBJS objects are built.
15756   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15757   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15758 done
15759 LIBOBJS=$ac_libobjs
15760
15761 LTLIBOBJS=$ac_ltlibobjs
15762
15763
15764
15765 : ${CONFIG_STATUS=./config.status}
15766 ac_write_fail=0
15767 ac_clean_files_save=$ac_clean_files
15768 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15769 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15770 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15771 as_write_fail=0
15772 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15773 #! $SHELL
15774 # Generated by $as_me.
15775 # Run this file to recreate the current configuration.
15776 # Compiler output produced by configure, useful for debugging
15777 # configure, is in config.log if it exists.
15778
15779 debug=false
15780 ac_cs_recheck=false
15781 ac_cs_silent=false
15782
15783 SHELL=\${CONFIG_SHELL-$SHELL}
15784 export SHELL
15785 _ASEOF
15786 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15787 ## -------------------- ##
15788 ## M4sh Initialization. ##
15789 ## -------------------- ##
15790
15791 # Be more Bourne compatible
15792 DUALCASE=1; export DUALCASE # for MKS sh
15793 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15794   emulate sh
15795   NULLCMD=:
15796   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15797   # is contrary to our usage.  Disable this feature.
15798   alias -g '${1+"$@"}'='"$@"'
15799   setopt NO_GLOB_SUBST
15800 else
15801   case `(set -o) 2>/dev/null` in #(
15802   *posix*) :
15803     set -o posix ;; #(
15804   *) :
15805      ;;
15806 esac
15807 fi
15808
15809
15810 as_nl='
15811 '
15812 export as_nl
15813 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15814 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15815 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15816 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15817 # Prefer a ksh shell builtin over an external printf program on Solaris,
15818 # but without wasting forks for bash or zsh.
15819 if test -z "$BASH_VERSION$ZSH_VERSION" \
15820     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15821   as_echo='print -r --'
15822   as_echo_n='print -rn --'
15823 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15824   as_echo='printf %s\n'
15825   as_echo_n='printf %s'
15826 else
15827   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15828     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15829     as_echo_n='/usr/ucb/echo -n'
15830   else
15831     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15832     as_echo_n_body='eval
15833       arg=$1;
15834       case $arg in #(
15835       *"$as_nl"*)
15836         expr "X$arg" : "X\\(.*\\)$as_nl";
15837         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15838       esac;
15839       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15840     '
15841     export as_echo_n_body
15842     as_echo_n='sh -c $as_echo_n_body as_echo'
15843   fi
15844   export as_echo_body
15845   as_echo='sh -c $as_echo_body as_echo'
15846 fi
15847
15848 # The user is always right.
15849 if test "${PATH_SEPARATOR+set}" != set; then
15850   PATH_SEPARATOR=:
15851   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15852     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15853       PATH_SEPARATOR=';'
15854   }
15855 fi
15856
15857
15858 # IFS
15859 # We need space, tab and new line, in precisely that order.  Quoting is
15860 # there to prevent editors from complaining about space-tab.
15861 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15862 # splitting by setting IFS to empty value.)
15863 IFS=" ""        $as_nl"
15864
15865 # Find who we are.  Look in the path if we contain no directory separator.
15866 case $0 in #((
15867   *[\\/]* ) as_myself=$0 ;;
15868   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15869 for as_dir in $PATH
15870 do
15871   IFS=$as_save_IFS
15872   test -z "$as_dir" && as_dir=.
15873     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15874   done
15875 IFS=$as_save_IFS
15876
15877      ;;
15878 esac
15879 # We did not find ourselves, most probably we were run as `sh COMMAND'
15880 # in which case we are not to be found in the path.
15881 if test "x$as_myself" = x; then
15882   as_myself=$0
15883 fi
15884 if test ! -f "$as_myself"; then
15885   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15886   exit 1
15887 fi
15888
15889 # Unset variables that we do not need and which cause bugs (e.g. in
15890 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15891 # suppresses any "Segmentation fault" message there.  '((' could
15892 # trigger a bug in pdksh 5.2.14.
15893 for as_var in BASH_ENV ENV MAIL MAILPATH
15894 do eval test x\${$as_var+set} = xset \
15895   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15896 done
15897 PS1='$ '
15898 PS2='> '
15899 PS4='+ '
15900
15901 # NLS nuisances.
15902 LC_ALL=C
15903 export LC_ALL
15904 LANGUAGE=C
15905 export LANGUAGE
15906
15907 # CDPATH.
15908 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15909
15910
15911 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15912 # ----------------------------------------
15913 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15914 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15915 # script with STATUS, using 1 if that was 0.
15916 as_fn_error ()
15917 {
15918   as_status=$1; test $as_status -eq 0 && as_status=1
15919   if test "$4"; then
15920     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15921     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15922   fi
15923   $as_echo "$as_me: error: $2" >&2
15924   as_fn_exit $as_status
15925 } # as_fn_error
15926
15927
15928 # as_fn_set_status STATUS
15929 # -----------------------
15930 # Set $? to STATUS, without forking.
15931 as_fn_set_status ()
15932 {
15933   return $1
15934 } # as_fn_set_status
15935
15936 # as_fn_exit STATUS
15937 # -----------------
15938 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15939 as_fn_exit ()
15940 {
15941   set +e
15942   as_fn_set_status $1
15943   exit $1
15944 } # as_fn_exit
15945
15946 # as_fn_unset VAR
15947 # ---------------
15948 # Portably unset VAR.
15949 as_fn_unset ()
15950 {
15951   { eval $1=; unset $1;}
15952 }
15953 as_unset=as_fn_unset
15954 # as_fn_append VAR VALUE
15955 # ----------------------
15956 # Append the text in VALUE to the end of the definition contained in VAR. Take
15957 # advantage of any shell optimizations that allow amortized linear growth over
15958 # repeated appends, instead of the typical quadratic growth present in naive
15959 # implementations.
15960 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15961   eval 'as_fn_append ()
15962   {
15963     eval $1+=\$2
15964   }'
15965 else
15966   as_fn_append ()
15967   {
15968     eval $1=\$$1\$2
15969   }
15970 fi # as_fn_append
15971
15972 # as_fn_arith ARG...
15973 # ------------------
15974 # Perform arithmetic evaluation on the ARGs, and store the result in the
15975 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15976 # must be portable across $(()) and expr.
15977 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15978   eval 'as_fn_arith ()
15979   {
15980     as_val=$(( $* ))
15981   }'
15982 else
15983   as_fn_arith ()
15984   {
15985     as_val=`expr "$@" || test $? -eq 1`
15986   }
15987 fi # as_fn_arith
15988
15989
15990 if expr a : '\(a\)' >/dev/null 2>&1 &&
15991    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15992   as_expr=expr
15993 else
15994   as_expr=false
15995 fi
15996
15997 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15998   as_basename=basename
15999 else
16000   as_basename=false
16001 fi
16002
16003 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16004   as_dirname=dirname
16005 else
16006   as_dirname=false
16007 fi
16008
16009 as_me=`$as_basename -- "$0" ||
16010 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16011          X"$0" : 'X\(//\)$' \| \
16012          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16013 $as_echo X/"$0" |
16014     sed '/^.*\/\([^/][^/]*\)\/*$/{
16015             s//\1/
16016             q
16017           }
16018           /^X\/\(\/\/\)$/{
16019             s//\1/
16020             q
16021           }
16022           /^X\/\(\/\).*/{
16023             s//\1/
16024             q
16025           }
16026           s/.*/./; q'`
16027
16028 # Avoid depending upon Character Ranges.
16029 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16030 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16031 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16032 as_cr_digits='0123456789'
16033 as_cr_alnum=$as_cr_Letters$as_cr_digits
16034
16035 ECHO_C= ECHO_N= ECHO_T=
16036 case `echo -n x` in #(((((
16037 -n*)
16038   case `echo 'xy\c'` in
16039   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
16040   xy)  ECHO_C='\c';;
16041   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
16042        ECHO_T=' ';;
16043   esac;;
16044 *)
16045   ECHO_N='-n';;
16046 esac
16047
16048 rm -f conf$$ conf$$.exe conf$$.file
16049 if test -d conf$$.dir; then
16050   rm -f conf$$.dir/conf$$.file
16051 else
16052   rm -f conf$$.dir
16053   mkdir conf$$.dir 2>/dev/null
16054 fi
16055 if (echo >conf$$.file) 2>/dev/null; then
16056   if ln -s conf$$.file conf$$ 2>/dev/null; then
16057     as_ln_s='ln -s'
16058     # ... but there are two gotchas:
16059     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16060     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16061     # In both cases, we have to default to `cp -p'.
16062     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16063       as_ln_s='cp -p'
16064   elif ln conf$$.file conf$$ 2>/dev/null; then
16065     as_ln_s=ln
16066   else
16067     as_ln_s='cp -p'
16068   fi
16069 else
16070   as_ln_s='cp -p'
16071 fi
16072 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16073 rmdir conf$$.dir 2>/dev/null
16074
16075
16076 # as_fn_mkdir_p
16077 # -------------
16078 # Create "$as_dir" as a directory, including parents if necessary.
16079 as_fn_mkdir_p ()
16080 {
16081
16082   case $as_dir in #(
16083   -*) as_dir=./$as_dir;;
16084   esac
16085   test -d "$as_dir" || eval $as_mkdir_p || {
16086     as_dirs=
16087     while :; do
16088       case $as_dir in #(
16089       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16090       *) as_qdir=$as_dir;;
16091       esac
16092       as_dirs="'$as_qdir' $as_dirs"
16093       as_dir=`$as_dirname -- "$as_dir" ||
16094 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16095          X"$as_dir" : 'X\(//\)[^/]' \| \
16096          X"$as_dir" : 'X\(//\)$' \| \
16097          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16098 $as_echo X"$as_dir" |
16099     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16100             s//\1/
16101             q
16102           }
16103           /^X\(\/\/\)[^/].*/{
16104             s//\1/
16105             q
16106           }
16107           /^X\(\/\/\)$/{
16108             s//\1/
16109             q
16110           }
16111           /^X\(\/\).*/{
16112             s//\1/
16113             q
16114           }
16115           s/.*/./; q'`
16116       test -d "$as_dir" && break
16117     done
16118     test -z "$as_dirs" || eval "mkdir $as_dirs"
16119   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16120
16121
16122 } # as_fn_mkdir_p
16123 if mkdir -p . 2>/dev/null; then
16124   as_mkdir_p='mkdir -p "$as_dir"'
16125 else
16126   test -d ./-p && rmdir ./-p
16127   as_mkdir_p=false
16128 fi
16129
16130 if test -x / >/dev/null 2>&1; then
16131   as_test_x='test -x'
16132 else
16133   if ls -dL / >/dev/null 2>&1; then
16134     as_ls_L_option=L
16135   else
16136     as_ls_L_option=
16137   fi
16138   as_test_x='
16139     eval sh -c '\''
16140       if test -d "$1"; then
16141         test -d "$1/.";
16142       else
16143         case $1 in #(
16144         -*)set "./$1";;
16145         esac;
16146         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16147         ???[sx]*):;;*)false;;esac;fi
16148     '\'' sh
16149   '
16150 fi
16151 as_executable_p=$as_test_x
16152
16153 # Sed expression to map a string onto a valid CPP name.
16154 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16155
16156 # Sed expression to map a string onto a valid variable name.
16157 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16158
16159
16160 exec 6>&1
16161 ## ----------------------------------- ##
16162 ## Main body of $CONFIG_STATUS script. ##
16163 ## ----------------------------------- ##
16164 _ASEOF
16165 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16166
16167 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16168 # Save the log message, to keep $0 and so on meaningful, and to
16169 # report actual input values of CONFIG_FILES etc. instead of their
16170 # values after options handling.
16171 ac_log="
16172 This file was extended by Wine $as_me 1.3.17, which was
16173 generated by GNU Autoconf 2.67.  Invocation command line was
16174
16175   CONFIG_FILES    = $CONFIG_FILES
16176   CONFIG_HEADERS  = $CONFIG_HEADERS
16177   CONFIG_LINKS    = $CONFIG_LINKS
16178   CONFIG_COMMANDS = $CONFIG_COMMANDS
16179   $ $0 $@
16180
16181 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16182 "
16183
16184 _ACEOF
16185
16186 case $ac_config_files in *"
16187 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16188 esac
16189
16190 case $ac_config_headers in *"
16191 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16192 esac
16193
16194
16195 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16196 # Files that config.status was made for.
16197 config_files="$ac_config_files"
16198 config_headers="$ac_config_headers"
16199 config_links="$ac_config_links"
16200 config_commands="$ac_config_commands"
16201
16202 _ACEOF
16203
16204 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16205 ac_cs_usage="\
16206 \`$as_me' instantiates files and other configuration actions
16207 from templates according to the current configuration.  Unless the files
16208 and actions are specified as TAGs, all are instantiated by default.
16209
16210 Usage: $0 [OPTION]... [TAG]...
16211
16212   -h, --help       print this help, then exit
16213   -V, --version    print version number and configuration settings, then exit
16214       --config     print configuration, then exit
16215   -q, --quiet, --silent
16216                    do not print progress messages
16217   -d, --debug      don't remove temporary files
16218       --recheck    update $as_me by reconfiguring in the same conditions
16219       --file=FILE[:TEMPLATE]
16220                    instantiate the configuration file FILE
16221       --header=FILE[:TEMPLATE]
16222                    instantiate the configuration header FILE
16223
16224 Configuration files:
16225 $config_files
16226
16227 Configuration headers:
16228 $config_headers
16229
16230 Configuration links:
16231 $config_links
16232
16233 Configuration commands:
16234 $config_commands
16235
16236 Report bugs to <wine-devel@winehq.org>.
16237 Wine home page: <http://www.winehq.org>."
16238
16239 _ACEOF
16240 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16241 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16242 ac_cs_version="\\
16243 Wine config.status 1.3.17
16244 configured by $0, generated by GNU Autoconf 2.67,
16245   with options \\"\$ac_cs_config\\"
16246
16247 Copyright (C) 2010 Free Software Foundation, Inc.
16248 This config.status script is free software; the Free Software Foundation
16249 gives unlimited permission to copy, distribute and modify it."
16250
16251 ac_pwd='$ac_pwd'
16252 srcdir='$srcdir'
16253 INSTALL='$INSTALL'
16254 test -n "\$AWK" || AWK=awk
16255 _ACEOF
16256
16257 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16258 # The default lists apply if the user does not specify any file.
16259 ac_need_defaults=:
16260 while test $# != 0
16261 do
16262   case $1 in
16263   --*=?*)
16264     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16265     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16266     ac_shift=:
16267     ;;
16268   --*=)
16269     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16270     ac_optarg=
16271     ac_shift=:
16272     ;;
16273   *)
16274     ac_option=$1
16275     ac_optarg=$2
16276     ac_shift=shift
16277     ;;
16278   esac
16279
16280   case $ac_option in
16281   # Handling of the options.
16282   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16283     ac_cs_recheck=: ;;
16284   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16285     $as_echo "$ac_cs_version"; exit ;;
16286   --config | --confi | --conf | --con | --co | --c )
16287     $as_echo "$ac_cs_config"; exit ;;
16288   --debug | --debu | --deb | --de | --d | -d )
16289     debug=: ;;
16290   --file | --fil | --fi | --f )
16291     $ac_shift
16292     case $ac_optarg in
16293     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16294     '') as_fn_error $? "missing file argument" ;;
16295     esac
16296     as_fn_append CONFIG_FILES " '$ac_optarg'"
16297     ac_need_defaults=false;;
16298   --header | --heade | --head | --hea )
16299     $ac_shift
16300     case $ac_optarg in
16301     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16302     esac
16303     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16304     ac_need_defaults=false;;
16305   --he | --h)
16306     # Conflict between --help and --header
16307     as_fn_error $? "ambiguous option: \`$1'
16308 Try \`$0 --help' for more information.";;
16309   --help | --hel | -h )
16310     $as_echo "$ac_cs_usage"; exit ;;
16311   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16312   | -silent | --silent | --silen | --sile | --sil | --si | --s)
16313     ac_cs_silent=: ;;
16314
16315   # This is an error.
16316   -*) as_fn_error $? "unrecognized option: \`$1'
16317 Try \`$0 --help' for more information." ;;
16318
16319   *) as_fn_append ac_config_targets " $1"
16320      ac_need_defaults=false ;;
16321
16322   esac
16323   shift
16324 done
16325
16326 ac_configure_extra_args=
16327
16328 if $ac_cs_silent; then
16329   exec 6>/dev/null
16330   ac_configure_extra_args="$ac_configure_extra_args --silent"
16331 fi
16332
16333 _ACEOF
16334 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16335 if \$ac_cs_recheck; then
16336   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16337   shift
16338   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16339   CONFIG_SHELL='$SHELL'
16340   export CONFIG_SHELL
16341   exec "\$@"
16342 fi
16343
16344 _ACEOF
16345 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16346 exec 5>>config.log
16347 {
16348   echo
16349   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16350 ## Running $as_me. ##
16351 _ASBOX
16352   $as_echo "$ac_log"
16353 } >&5
16354
16355 _ACEOF
16356 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16357 #
16358 # INIT-COMMANDS
16359 #
16360 wine_fn_output_makefile ()
16361 {
16362     cat Make.tmp - <<\_WINE_EOF >\$tmp/makefile && mv -f \$tmp/makefile \$1 && rm -f Make.tmp && return
16363 $ALL_MAKEFILE_DEPENDS
16364 _WINE_EOF
16365     as_fn_error $? "could not create Makefile" "$LINENO" 5
16366 }
16367
16368 _ACEOF
16369
16370 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16371
16372 # Handling of arguments.
16373 for ac_config_target in $ac_config_targets
16374 do
16375   case $ac_config_target in
16376     "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
16377     "include/stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/stamp-h" ;;
16378     "dlls/shell32/AUTHORS") CONFIG_LINKS="$CONFIG_LINKS dlls/shell32/AUTHORS:AUTHORS" ;;
16379     "dlls/wineps.drv/generic.ppd") CONFIG_LINKS="$CONFIG_LINKS dlls/wineps.drv/generic.ppd:dlls/wineps.drv/generic.ppd" ;;
16380     "fonts/marlett.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/marlett.ttf:fonts/marlett.ttf" ;;
16381     "fonts/symbol.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/symbol.ttf:fonts/symbol.ttf" ;;
16382     "fonts/tahoma.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahoma.ttf:fonts/tahoma.ttf" ;;
16383     "fonts/tahomabd.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahomabd.ttf:fonts/tahomabd.ttf" ;;
16384     "tools/l_intl.nls") CONFIG_LINKS="$CONFIG_LINKS tools/l_intl.nls:tools/l_intl.nls" ;;
16385     "wine") CONFIG_LINKS="$CONFIG_LINKS wine:tools/winewrapper" ;;
16386     "dlls/gdi32/dibdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/dibdrv" ;;
16387     "dlls/gdi32/enhmfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/enhmfdrv" ;;
16388     "dlls/gdi32/mfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/mfdrv" ;;
16389     "dlls/kernel32/nls") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel32/nls" ;;
16390     "dlls/user32/resources") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user32/resources" ;;
16391     "dlls/wineps.drv/data") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps.drv/data" ;;
16392     "include/wine") CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
16393     "Make.rules") CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
16394     "Maketest.rules") CONFIG_FILES="$CONFIG_FILES Maketest.rules" ;;
16395     "dlls/Makedll.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
16396     "dlls/Makeimplib.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makeimplib.rules" ;;
16397     "programs/Makeprog.rules") CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
16398     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
16399     "Make.tmp") CONFIG_FILES="$CONFIG_FILES Make.tmp:Make.vars.in:Makefile.in" ;;
16400
16401   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
16402   esac
16403 done
16404
16405
16406 # If the user did not use the arguments to specify the items to instantiate,
16407 # then the envvar interface is used.  Set only those that are not.
16408 # We use the long form for the default assignment because of an extremely
16409 # bizarre bug on SunOS 4.1.3.
16410 if $ac_need_defaults; then
16411   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16412   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16413   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
16414   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16415 fi
16416
16417 # Have a temporary directory for convenience.  Make it in the build tree
16418 # simply because there is no reason against having it here, and in addition,
16419 # creating and moving files from /tmp can sometimes cause problems.
16420 # Hook for its removal unless debugging.
16421 # Note that there is a small window in which the directory will not be cleaned:
16422 # after its creation but before its name has been assigned to `$tmp'.
16423 $debug ||
16424 {
16425   tmp=
16426   trap 'exit_status=$?
16427   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16428 ' 0
16429   trap 'as_fn_exit 1' 1 2 13 15
16430 }
16431 # Create a (secure) tmp directory for tmp files.
16432
16433 {
16434   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16435   test -n "$tmp" && test -d "$tmp"
16436 }  ||
16437 {
16438   tmp=./conf$$-$RANDOM
16439   (umask 077 && mkdir "$tmp")
16440 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16441
16442 # Set up the scripts for CONFIG_FILES section.
16443 # No need to generate them if there are no CONFIG_FILES.
16444 # This happens for instance with `./config.status config.h'.
16445 if test -n "$CONFIG_FILES"; then
16446
16447 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16448   ac_cs_awk_getline=:
16449   ac_cs_awk_pipe_init=
16450   ac_cs_awk_read_file='
16451       while ((getline aline < (F[key])) > 0)
16452         print(aline)
16453       close(F[key])'
16454   ac_cs_awk_pipe_fini=
16455 else
16456   ac_cs_awk_getline=false
16457   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16458   ac_cs_awk_read_file='
16459       print "|#_!!_#|"
16460       print "cat " F[key] " &&"
16461       '$ac_cs_awk_pipe_init
16462   # The final `:' finishes the AND list.
16463   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16464 fi
16465 ac_cr=`echo X | tr X '\015'`
16466 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16467 # But we know of no other shell where ac_cr would be empty at this
16468 # point, so we can use a bashism as a fallback.
16469 if test "x$ac_cr" = x; then
16470   eval ac_cr=\$\'\\r\'
16471 fi
16472 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16473 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16474   ac_cs_awk_cr='\\r'
16475 else
16476   ac_cs_awk_cr=$ac_cr
16477 fi
16478
16479 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16480 _ACEOF
16481
16482 # Create commands to substitute file output variables.
16483 {
16484   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16485   echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
16486   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16487   echo "_ACAWK" &&
16488   echo "_ACEOF"
16489 } >conf$$files.sh &&
16490 . ./conf$$files.sh ||
16491   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16492 rm -f conf$$files.sh
16493
16494 {
16495   echo "cat >conf$$subs.awk <<_ACEOF" &&
16496   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16497   echo "_ACEOF"
16498 } >conf$$subs.sh ||
16499   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16500 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16501 ac_delim='%!_!# '
16502 for ac_last_try in false false false false false :; do
16503   . ./conf$$subs.sh ||
16504     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16505
16506   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16507   if test $ac_delim_n = $ac_delim_num; then
16508     break
16509   elif $ac_last_try; then
16510     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16511   else
16512     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16513   fi
16514 done
16515 rm -f conf$$subs.sh
16516
16517 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16518 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16519 _ACEOF
16520 sed -n '
16521 h
16522 s/^/S["/; s/!.*/"]=/
16523 p
16524 g
16525 s/^[^!]*!//
16526 :repl
16527 t repl
16528 s/'"$ac_delim"'$//
16529 t delim
16530 :nl
16531 h
16532 s/\(.\{148\}\)..*/\1/
16533 t more1
16534 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16535 p
16536 n
16537 b repl
16538 :more1
16539 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16540 p
16541 g
16542 s/.\{148\}//
16543 t nl
16544 :delim
16545 h
16546 s/\(.\{148\}\)..*/\1/
16547 t more2
16548 s/["\\]/\\&/g; s/^/"/; s/$/"/
16549 p
16550 b
16551 :more2
16552 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16553 p
16554 g
16555 s/.\{148\}//
16556 t delim
16557 ' <conf$$subs.awk | sed '
16558 /^[^""]/{
16559   N
16560   s/\n//
16561 }
16562 ' >>$CONFIG_STATUS || ac_write_fail=1
16563 rm -f conf$$subs.awk
16564 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16565 _ACAWK
16566 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16567   for (key in S) S_is_set[key] = 1
16568   FS = "\a"
16569   \$ac_cs_awk_pipe_init
16570 }
16571 {
16572   line = $ 0
16573   nfields = split(line, field, "@")
16574   substed = 0
16575   len = length(field[1])
16576   for (i = 2; i < nfields; i++) {
16577     key = field[i]
16578     keylen = length(key)
16579     if (S_is_set[key]) {
16580       value = S[key]
16581       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16582       len += length(value) + length(field[++i])
16583       substed = 1
16584     } else
16585       len += 1 + keylen
16586   }
16587   if (nfields == 3 && !substed) {
16588     key = field[2]
16589     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
16590       \$ac_cs_awk_read_file
16591       next
16592     }
16593   }
16594   print line
16595 }
16596 \$ac_cs_awk_pipe_fini
16597 _ACAWK
16598 _ACEOF
16599 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16600 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16601   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16602 else
16603   cat
16604 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16605   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16606 _ACEOF
16607
16608 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16609 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16610 # trailing colons and then remove the whole line if VPATH becomes empty
16611 # (actually we leave an empty line to preserve line numbers).
16612 if test "x$srcdir" = x.; then
16613   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
16614 h
16615 s///
16616 s/^/:/
16617 s/[      ]*$/:/
16618 s/:\$(srcdir):/:/g
16619 s/:\${srcdir}:/:/g
16620 s/:@srcdir@:/:/g
16621 s/^:*//
16622 s/:*$//
16623 x
16624 s/\(=[   ]*\).*/\1/
16625 G
16626 s/\n//
16627 s/^[^=]*=[       ]*$//
16628 }'
16629 fi
16630
16631 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16632 fi # test -n "$CONFIG_FILES"
16633
16634 # Set up the scripts for CONFIG_HEADERS section.
16635 # No need to generate them if there are no CONFIG_HEADERS.
16636 # This happens for instance with `./config.status Makefile'.
16637 if test -n "$CONFIG_HEADERS"; then
16638 cat >"$tmp/defines.awk" <<\_ACAWK ||
16639 BEGIN {
16640 _ACEOF
16641
16642 # Transform confdefs.h into an awk script `defines.awk', embedded as
16643 # here-document in config.status, that substitutes the proper values into
16644 # config.h.in to produce config.h.
16645
16646 # Create a delimiter string that does not exist in confdefs.h, to ease
16647 # handling of long lines.
16648 ac_delim='%!_!# '
16649 for ac_last_try in false false :; do
16650   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16651   if test -z "$ac_t"; then
16652     break
16653   elif $ac_last_try; then
16654     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16655   else
16656     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16657   fi
16658 done
16659
16660 # For the awk script, D is an array of macro values keyed by name,
16661 # likewise P contains macro parameters if any.  Preserve backslash
16662 # newline sequences.
16663
16664 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16665 sed -n '
16666 s/.\{148\}/&'"$ac_delim"'/g
16667 t rset
16668 :rset
16669 s/^[     ]*#[    ]*define[       ][      ]*/ /
16670 t def
16671 d
16672 :def
16673 s/\\$//
16674 t bsnl
16675 s/["\\]/\\&/g
16676 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16677 D["\1"]=" \3"/p
16678 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
16679 d
16680 :bsnl
16681 s/["\\]/\\&/g
16682 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16683 D["\1"]=" \3\\\\\\n"\\/p
16684 t cont
16685 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16686 t cont
16687 d
16688 :cont
16689 n
16690 s/.\{148\}/&'"$ac_delim"'/g
16691 t clear
16692 :clear
16693 s/\\$//
16694 t bsnlc
16695 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16696 d
16697 :bsnlc
16698 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16699 b cont
16700 ' <confdefs.h | sed '
16701 s/'"$ac_delim"'/"\\\
16702 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16703
16704 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16705   for (key in D) D_is_set[key] = 1
16706   FS = "\a"
16707 }
16708 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16709   line = \$ 0
16710   split(line, arg, " ")
16711   if (arg[1] == "#") {
16712     defundef = arg[2]
16713     mac1 = arg[3]
16714   } else {
16715     defundef = substr(arg[1], 2)
16716     mac1 = arg[2]
16717   }
16718   split(mac1, mac2, "(") #)
16719   macro = mac2[1]
16720   prefix = substr(line, 1, index(line, defundef) - 1)
16721   if (D_is_set[macro]) {
16722     # Preserve the white space surrounding the "#".
16723     print prefix "define", macro P[macro] D[macro]
16724     next
16725   } else {
16726     # Replace #undef with comments.  This is necessary, for example,
16727     # in the case of _POSIX_SOURCE, which is predefined and required
16728     # on some systems where configure will not decide to define it.
16729     if (defundef == "undef") {
16730       print "/*", prefix defundef, macro, "*/"
16731       next
16732     }
16733   }
16734 }
16735 { print }
16736 _ACAWK
16737 _ACEOF
16738 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16739   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16740 fi # test -n "$CONFIG_HEADERS"
16741
16742
16743 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
16744 shift
16745 for ac_tag
16746 do
16747   case $ac_tag in
16748   :[FHLC]) ac_mode=$ac_tag; continue;;
16749   esac
16750   case $ac_mode$ac_tag in
16751   :[FHL]*:*);;
16752   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
16753   :[FH]-) ac_tag=-:-;;
16754   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16755   esac
16756   ac_save_IFS=$IFS
16757   IFS=:
16758   set x $ac_tag
16759   IFS=$ac_save_IFS
16760   shift
16761   ac_file=$1
16762   shift
16763
16764   case $ac_mode in
16765   :L) ac_source=$1;;
16766   :[FH])
16767     ac_file_inputs=
16768     for ac_f
16769     do
16770       case $ac_f in
16771       -) ac_f="$tmp/stdin";;
16772       *) # Look for the file first in the build tree, then in the source tree
16773          # (if the path is not absolute).  The absolute path cannot be DOS-style,
16774          # because $ac_f cannot contain `:'.
16775          test -f "$ac_f" ||
16776            case $ac_f in
16777            [\\/$]*) false;;
16778            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16779            esac ||
16780            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
16781       esac
16782       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16783       as_fn_append ac_file_inputs " '$ac_f'"
16784     done
16785
16786     # Let's still pretend it is `configure' which instantiates (i.e., don't
16787     # use $as_me), people would be surprised to read:
16788     #    /* config.h.  Generated by config.status.  */
16789     configure_input='Generated from '`
16790           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16791         `' by configure.'
16792     if test x"$ac_file" != x-; then
16793       configure_input="$ac_file.  $configure_input"
16794       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16795 $as_echo "$as_me: creating $ac_file" >&6;}
16796     fi
16797     # Neutralize special characters interpreted by sed in replacement strings.
16798     case $configure_input in #(
16799     *\&* | *\|* | *\\* )
16800        ac_sed_conf_input=`$as_echo "$configure_input" |
16801        sed 's/[\\\\&|]/\\\\&/g'`;; #(
16802     *) ac_sed_conf_input=$configure_input;;
16803     esac
16804
16805     case $ac_tag in
16806     *:-:* | *:-) cat >"$tmp/stdin" \
16807       || as_fn_error $? "could not create $ac_file" "$LINENO" 5  ;;
16808     esac
16809     ;;
16810   esac
16811
16812   ac_dir=`$as_dirname -- "$ac_file" ||
16813 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16814          X"$ac_file" : 'X\(//\)[^/]' \| \
16815          X"$ac_file" : 'X\(//\)$' \| \
16816          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16817 $as_echo X"$ac_file" |
16818     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16819             s//\1/
16820             q
16821           }
16822           /^X\(\/\/\)[^/].*/{
16823             s//\1/
16824             q
16825           }
16826           /^X\(\/\/\)$/{
16827             s//\1/
16828             q
16829           }
16830           /^X\(\/\).*/{
16831             s//\1/
16832             q
16833           }
16834           s/.*/./; q'`
16835   as_dir="$ac_dir"; as_fn_mkdir_p
16836   ac_builddir=.
16837
16838 case "$ac_dir" in
16839 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16840 *)
16841   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16842   # A ".." for each directory in $ac_dir_suffix.
16843   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16844   case $ac_top_builddir_sub in
16845   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16846   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16847   esac ;;
16848 esac
16849 ac_abs_top_builddir=$ac_pwd
16850 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16851 # for backward compatibility:
16852 ac_top_builddir=$ac_top_build_prefix
16853
16854 case $srcdir in
16855   .)  # We are building in place.
16856     ac_srcdir=.
16857     ac_top_srcdir=$ac_top_builddir_sub
16858     ac_abs_top_srcdir=$ac_pwd ;;
16859   [\\/]* | ?:[\\/]* )  # Absolute name.
16860     ac_srcdir=$srcdir$ac_dir_suffix;
16861     ac_top_srcdir=$srcdir
16862     ac_abs_top_srcdir=$srcdir ;;
16863   *) # Relative name.
16864     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16865     ac_top_srcdir=$ac_top_build_prefix$srcdir
16866     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16867 esac
16868 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16869
16870
16871   case $ac_mode in
16872   :F)
16873   #
16874   # CONFIG_FILE
16875   #
16876
16877   case $INSTALL in
16878   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16879   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16880   esac
16881 _ACEOF
16882
16883 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16884 # If the template does not know about datarootdir, expand it.
16885 # FIXME: This hack should be removed a few years after 2.60.
16886 ac_datarootdir_hack=; ac_datarootdir_seen=
16887 ac_sed_dataroot='
16888 /datarootdir/ {
16889   p
16890   q
16891 }
16892 /@datadir@/p
16893 /@docdir@/p
16894 /@infodir@/p
16895 /@localedir@/p
16896 /@mandir@/p'
16897 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16898 *datarootdir*) ac_datarootdir_seen=yes;;
16899 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16900   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16901 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16902 _ACEOF
16903 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16904   ac_datarootdir_hack='
16905   s&@datadir@&$datadir&g
16906   s&@docdir@&$docdir&g
16907   s&@infodir@&$infodir&g
16908   s&@localedir@&$localedir&g
16909   s&@mandir@&$mandir&g
16910   s&\\\${datarootdir}&$datarootdir&g' ;;
16911 esac
16912 _ACEOF
16913
16914 # Neutralize VPATH when `$srcdir' = `.'.
16915 # Shell code in configure.ac might set extrasub.
16916 # FIXME: do we really want to maintain this feature?
16917 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16918 ac_sed_extra="$ac_vpsub
16919 $extrasub
16920 _ACEOF
16921 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16922 :t
16923 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16924 s|@configure_input@|$ac_sed_conf_input|;t t
16925 s&@top_builddir@&$ac_top_builddir_sub&;t t
16926 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16927 s&@srcdir@&$ac_srcdir&;t t
16928 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16929 s&@top_srcdir@&$ac_top_srcdir&;t t
16930 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16931 s&@builddir@&$ac_builddir&;t t
16932 s&@abs_builddir@&$ac_abs_builddir&;t t
16933 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16934 s&@INSTALL@&$ac_INSTALL&;t t
16935 $ac_datarootdir_hack
16936 "
16937 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16938 if $ac_cs_awk_getline; then
16939   $AWK -f "$tmp/subs.awk"
16940 else
16941   $AWK -f "$tmp/subs.awk" | $SHELL
16942 fi >$tmp/out \
16943   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16944
16945 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16946   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16947   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16948   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16949 which seems to be undefined.  Please make sure it is defined" >&5
16950 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16951 which seems to be undefined.  Please make sure it is defined" >&2;}
16952
16953   rm -f "$tmp/stdin"
16954   case $ac_file in
16955   -) cat "$tmp/out" && rm -f "$tmp/out";;
16956   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16957   esac \
16958   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16959  ;;
16960   :H)
16961   #
16962   # CONFIG_HEADER
16963   #
16964   if test x"$ac_file" != x-; then
16965     {
16966       $as_echo "/* $configure_input  */" \
16967       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16968     } >"$tmp/config.h" \
16969       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16970     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16971       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16972 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16973     else
16974       rm -f "$ac_file"
16975       mv "$tmp/config.h" "$ac_file" \
16976         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16977     fi
16978   else
16979     $as_echo "/* $configure_input  */" \
16980       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16981       || as_fn_error $? "could not create -" "$LINENO" 5
16982   fi
16983  ;;
16984   :L)
16985   #
16986   # CONFIG_LINK
16987   #
16988
16989   if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
16990     :
16991   else
16992     # Prefer the file from the source tree if names are identical.
16993     if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
16994       ac_source=$srcdir/$ac_source
16995     fi
16996
16997     { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
16998 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
16999
17000     if test ! -r "$ac_source"; then
17001       as_fn_error $? "$ac_source: file not found" "$LINENO" 5
17002     fi
17003     rm -f "$ac_file"
17004
17005     # Try a relative symlink, then a hard link, then a copy.
17006     case $ac_source in
17007     [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
17008         *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
17009     esac
17010     ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
17011       ln "$ac_source" "$ac_file" 2>/dev/null ||
17012       cp -p "$ac_source" "$ac_file" ||
17013       as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
17014   fi
17015  ;;
17016   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17017 $as_echo "$as_me: executing $ac_file commands" >&6;}
17018  ;;
17019   esac
17020
17021
17022   case $ac_file$ac_mode in
17023     "include/stamp-h":C) echo timestamp > include/stamp-h ;;
17024     "dlls/gdi32/dibdrv":C) test -d "dlls/gdi32/dibdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/dibdrv" >&5
17025 $as_echo "$as_me: creating dlls/gdi32/dibdrv" >&6;}; as_dir="dlls/gdi32/dibdrv"; as_fn_mkdir_p; } ;;
17026     "dlls/gdi32/enhmfdrv":C) test -d "dlls/gdi32/enhmfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/enhmfdrv" >&5
17027 $as_echo "$as_me: creating dlls/gdi32/enhmfdrv" >&6;}; as_dir="dlls/gdi32/enhmfdrv"; as_fn_mkdir_p; } ;;
17028     "dlls/gdi32/mfdrv":C) test -d "dlls/gdi32/mfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/mfdrv" >&5
17029 $as_echo "$as_me: creating dlls/gdi32/mfdrv" >&6;}; as_dir="dlls/gdi32/mfdrv"; as_fn_mkdir_p; } ;;
17030     "dlls/kernel32/nls":C) test -d "dlls/kernel32/nls" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/kernel32/nls" >&5
17031 $as_echo "$as_me: creating dlls/kernel32/nls" >&6;}; as_dir="dlls/kernel32/nls"; as_fn_mkdir_p; } ;;
17032     "dlls/user32/resources":C) test -d "dlls/user32/resources" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/user32/resources" >&5
17033 $as_echo "$as_me: creating dlls/user32/resources" >&6;}; as_dir="dlls/user32/resources"; as_fn_mkdir_p; } ;;
17034     "dlls/wineps.drv/data":C) test -d "dlls/wineps.drv/data" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/wineps.drv/data" >&5
17035 $as_echo "$as_me: creating dlls/wineps.drv/data" >&6;}; as_dir="dlls/wineps.drv/data"; as_fn_mkdir_p; } ;;
17036     "include/wine":C) test -d "include/wine" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating include/wine" >&5
17037 $as_echo "$as_me: creating include/wine" >&6;}; as_dir="include/wine"; as_fn_mkdir_p; } ;;
17038     "Makefile":C) wine_fn_output_makefile Makefile ;;
17039
17040   esac
17041 done # for ac_tag
17042
17043
17044 as_fn_exit 0
17045 _ACEOF
17046 ac_clean_files=$ac_clean_files_save
17047
17048 test $ac_write_fail = 0 ||
17049   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17050
17051
17052 # configure is writing to config.log, and then calls config.status.
17053 # config.status does its own redirection, appending to config.log.
17054 # Unfortunately, on DOS this fails, as config.log is still kept open
17055 # by configure, so config.status won't be able to write to it; its
17056 # output is simply discarded.  So we exec the FD to /dev/null,
17057 # effectively closing config.log, so it can be properly (re)opened and
17058 # appended to by config.status.  When coming back to configure, we
17059 # need to make the FD available again.
17060 if test "$no_create" != yes; then
17061   ac_cs_success=:
17062   ac_config_status_args=
17063   test "$silent" = yes &&
17064     ac_config_status_args="$ac_config_status_args --quiet"
17065   exec 5>/dev/null
17066   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17067   exec 5>>config.log
17068   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17069   # would make configure fail if this is the last instruction.
17070   $ac_cs_success || as_fn_exit 1
17071 fi
17072 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17073   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17074 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17075 fi
17076
17077
17078 if test "$no_create" = "yes"
17079 then
17080   exit 0
17081 fi
17082
17083 ac_save_IFS="$IFS"
17084 if test "x$wine_notices != "x; then
17085     echo >&6
17086     IFS="|"
17087     for msg in $wine_notices; do
17088         IFS="$ac_save_IFS"
17089         if test -n "$msg"; then
17090             { $as_echo "$as_me:${as_lineno-$LINENO}: $msg" >&5
17091 $as_echo "$as_me: $msg" >&6;}
17092         fi
17093     done
17094 fi
17095 IFS="|"
17096 for msg in $wine_warnings; do
17097     IFS="$ac_save_IFS"
17098     if test -n "$msg"; then
17099         echo >&2
17100         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $msg" >&5
17101 $as_echo "$as_me: WARNING: $msg" >&2;}
17102     fi
17103 done
17104 IFS="$ac_save_IFS"
17105
17106 echo "
17107 $as_me: Finished.  Do '${ac_make}' to compile Wine.
17108 " >&6
17109