makefiles: Add dependencies on all po files for po-translated resources.
[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.10.
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.10'
556 PACKAGE_STRING='Wine 1.3.10'
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 LIBOPENCL
657 FRAMEWORK_OPENAL
658 COREAUDIO
659 DISKARBITRATIONLIB
660 LDEXECFLAGS
661 QUICKTIMELIB
662 IOKITLIB
663 COREFOUNDATIONLIB
664 SECURITYLIB
665 DLLWRAP
666 DLLTOOL
667 LDD
668 LDRPATH_LOCAL
669 LDRPATH_INSTALL
670 IMPLIBEXT
671 LIBEXT
672 LDDLLFLAGS
673 LDSHARED
674 DLLFLAGS
675 DLLEXT
676 CPP
677 OPENGL_LIBS
678 XLIB
679 MAINTAINER_MODE
680 ICOTOOL
681 CONVERT
682 RSVG
683 PKG_CONFIG
684 FONTFORGE
685 LINTFLAGS
686 LINT
687 INSTALL_DATA
688 INSTALL_SCRIPT
689 INSTALL_PROGRAM
690 LDCONFIG
691 EGREP
692 GREP
693 LN_S
694 STRIP
695 RANLIB
696 ARFLAGS
697 ac_ct_AR
698 AR
699 BISON
700 FLEX
701 TOOLSDIR
702 WOW64_DISABLE
703 TARGETFLAGS
704 CPPBIN
705 ac_ct_CXX
706 CXXFLAGS
707 CXX
708 OBJEXT
709 EXEEXT
710 ac_ct_CC
711 CPPFLAGS
712 LDFLAGS
713 CFLAGS
714 CC
715 SET_MAKE
716 host_os
717 host_vendor
718 host_cpu
719 host
720 build_os
721 build_vendor
722 build_cpu
723 build
724 target_alias
725 host_alias
726 build_alias
727 LIBS
728 ECHO_T
729 ECHO_N
730 ECHO_C
731 DEFS
732 mandir
733 localedir
734 libdir
735 psdir
736 pdfdir
737 dvidir
738 htmldir
739 infodir
740 docdir
741 oldincludedir
742 includedir
743 localstatedir
744 sharedstatedir
745 sysconfdir
746 datadir
747 datarootdir
748 libexecdir
749 sbindir
750 bindir
751 program_transform_name
752 prefix
753 exec_prefix
754 PACKAGE_URL
755 PACKAGE_BUGREPORT
756 PACKAGE_STRING
757 PACKAGE_VERSION
758 PACKAGE_TARNAME
759 PACKAGE_NAME
760 PATH_SEPARATOR
761 SHELL'
762 ac_subst_files='MAKE_RULES
763 MAKE_TEST_RULES
764 MAKE_DLL_RULES
765 MAKE_IMPLIB_RULES
766 MAKE_PROG_RULES'
767 ac_user_opts='
768 enable_option_checking
769 enable_win16
770 enable_win64
771 enable_tests
772 enable_maintainer_mode
773 with_alsa
774 with_capi
775 with_cms
776 with_coreaudio
777 with_cups
778 with_curses
779 with_esd
780 with_fontconfig
781 with_freetype
782 with_gettextpo
783 with_gphoto
784 with_glu
785 with_gnutls
786 with_gsm
787 with_gstreamer
788 with_hal
789 with_icns
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_xml
810 with_xrandr
811 with_xrender
812 with_xshape
813 with_xshm
814 with_xslt
815 with_xxf86vm
816 with_wine_tools
817 with_wine64
818 enable_largefile
819 with_x
820 '
821       ac_precious_vars='build_alias
822 host_alias
823 target_alias
824 CC
825 CFLAGS
826 LDFLAGS
827 LIBS
828 CPPFLAGS
829 CXX
830 CXXFLAGS
831 CCC
832 CPP
833 XMKMF'
834
835
836 # Initialize some variables set by options.
837 ac_init_help=
838 ac_init_version=false
839 ac_unrecognized_opts=
840 ac_unrecognized_sep=
841 # The variables have the same names as the options, with
842 # dashes changed to underlines.
843 cache_file=/dev/null
844 exec_prefix=NONE
845 no_create=
846 no_recursion=
847 prefix=NONE
848 program_prefix=NONE
849 program_suffix=NONE
850 program_transform_name=s,x,x,
851 silent=
852 site=
853 srcdir=
854 verbose=
855 x_includes=NONE
856 x_libraries=NONE
857
858 # Installation directory options.
859 # These are left unexpanded so users can "make install exec_prefix=/foo"
860 # and all the variables that are supposed to be based on exec_prefix
861 # by default will actually change.
862 # Use braces instead of parens because sh, perl, etc. also accept them.
863 # (The list follows the same order as the GNU Coding Standards.)
864 bindir='${exec_prefix}/bin'
865 sbindir='${exec_prefix}/sbin'
866 libexecdir='${exec_prefix}/libexec'
867 datarootdir='${prefix}/share'
868 datadir='${datarootdir}'
869 sysconfdir='${prefix}/etc'
870 sharedstatedir='${prefix}/com'
871 localstatedir='${prefix}/var'
872 includedir='${prefix}/include'
873 oldincludedir='/usr/include'
874 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
875 infodir='${datarootdir}/info'
876 htmldir='${docdir}'
877 dvidir='${docdir}'
878 pdfdir='${docdir}'
879 psdir='${docdir}'
880 libdir='${exec_prefix}/lib'
881 localedir='${datarootdir}/locale'
882 mandir='${datarootdir}/man'
883
884 ac_prev=
885 ac_dashdash=
886 for ac_option
887 do
888   # If the previous option needs an argument, assign it.
889   if test -n "$ac_prev"; then
890     eval $ac_prev=\$ac_option
891     ac_prev=
892     continue
893   fi
894
895   case $ac_option in
896   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
897   *=)   ac_optarg= ;;
898   *)    ac_optarg=yes ;;
899   esac
900
901   # Accept the important Cygnus configure options, so we can diagnose typos.
902
903   case $ac_dashdash$ac_option in
904   --)
905     ac_dashdash=yes ;;
906
907   -bindir | --bindir | --bindi | --bind | --bin | --bi)
908     ac_prev=bindir ;;
909   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
910     bindir=$ac_optarg ;;
911
912   -build | --build | --buil | --bui | --bu)
913     ac_prev=build_alias ;;
914   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
915     build_alias=$ac_optarg ;;
916
917   -cache-file | --cache-file | --cache-fil | --cache-fi \
918   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
919     ac_prev=cache_file ;;
920   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
921   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
922     cache_file=$ac_optarg ;;
923
924   --config-cache | -C)
925     cache_file=config.cache ;;
926
927   -datadir | --datadir | --datadi | --datad)
928     ac_prev=datadir ;;
929   -datadir=* | --datadir=* | --datadi=* | --datad=*)
930     datadir=$ac_optarg ;;
931
932   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
933   | --dataroo | --dataro | --datar)
934     ac_prev=datarootdir ;;
935   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
936   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
937     datarootdir=$ac_optarg ;;
938
939   -disable-* | --disable-*)
940     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
941     # Reject names that are not valid shell variable names.
942     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
943       as_fn_error $? "invalid feature name: $ac_useropt"
944     ac_useropt_orig=$ac_useropt
945     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
946     case $ac_user_opts in
947       *"
948 "enable_$ac_useropt"
949 "*) ;;
950       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
951          ac_unrecognized_sep=', ';;
952     esac
953     eval enable_$ac_useropt=no ;;
954
955   -docdir | --docdir | --docdi | --doc | --do)
956     ac_prev=docdir ;;
957   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
958     docdir=$ac_optarg ;;
959
960   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
961     ac_prev=dvidir ;;
962   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
963     dvidir=$ac_optarg ;;
964
965   -enable-* | --enable-*)
966     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
967     # Reject names that are not valid shell variable names.
968     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
969       as_fn_error $? "invalid feature name: $ac_useropt"
970     ac_useropt_orig=$ac_useropt
971     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
972     case $ac_user_opts in
973       *"
974 "enable_$ac_useropt"
975 "*) ;;
976       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
977          ac_unrecognized_sep=', ';;
978     esac
979     eval enable_$ac_useropt=\$ac_optarg ;;
980
981   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
982   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
983   | --exec | --exe | --ex)
984     ac_prev=exec_prefix ;;
985   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
986   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
987   | --exec=* | --exe=* | --ex=*)
988     exec_prefix=$ac_optarg ;;
989
990   -gas | --gas | --ga | --g)
991     # Obsolete; use --with-gas.
992     with_gas=yes ;;
993
994   -help | --help | --hel | --he | -h)
995     ac_init_help=long ;;
996   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
997     ac_init_help=recursive ;;
998   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
999     ac_init_help=short ;;
1000
1001   -host | --host | --hos | --ho)
1002     ac_prev=host_alias ;;
1003   -host=* | --host=* | --hos=* | --ho=*)
1004     host_alias=$ac_optarg ;;
1005
1006   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1007     ac_prev=htmldir ;;
1008   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1009   | --ht=*)
1010     htmldir=$ac_optarg ;;
1011
1012   -includedir | --includedir | --includedi | --included | --include \
1013   | --includ | --inclu | --incl | --inc)
1014     ac_prev=includedir ;;
1015   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1016   | --includ=* | --inclu=* | --incl=* | --inc=*)
1017     includedir=$ac_optarg ;;
1018
1019   -infodir | --infodir | --infodi | --infod | --info | --inf)
1020     ac_prev=infodir ;;
1021   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1022     infodir=$ac_optarg ;;
1023
1024   -libdir | --libdir | --libdi | --libd)
1025     ac_prev=libdir ;;
1026   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1027     libdir=$ac_optarg ;;
1028
1029   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1030   | --libexe | --libex | --libe)
1031     ac_prev=libexecdir ;;
1032   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1033   | --libexe=* | --libex=* | --libe=*)
1034     libexecdir=$ac_optarg ;;
1035
1036   -localedir | --localedir | --localedi | --localed | --locale)
1037     ac_prev=localedir ;;
1038   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1039     localedir=$ac_optarg ;;
1040
1041   -localstatedir | --localstatedir | --localstatedi | --localstated \
1042   | --localstate | --localstat | --localsta | --localst | --locals)
1043     ac_prev=localstatedir ;;
1044   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1045   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1046     localstatedir=$ac_optarg ;;
1047
1048   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1049     ac_prev=mandir ;;
1050   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1051     mandir=$ac_optarg ;;
1052
1053   -nfp | --nfp | --nf)
1054     # Obsolete; use --without-fp.
1055     with_fp=no ;;
1056
1057   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1058   | --no-cr | --no-c | -n)
1059     no_create=yes ;;
1060
1061   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1062   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1063     no_recursion=yes ;;
1064
1065   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1066   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1067   | --oldin | --oldi | --old | --ol | --o)
1068     ac_prev=oldincludedir ;;
1069   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1070   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1071   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1072     oldincludedir=$ac_optarg ;;
1073
1074   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1075     ac_prev=prefix ;;
1076   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1077     prefix=$ac_optarg ;;
1078
1079   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1080   | --program-pre | --program-pr | --program-p)
1081     ac_prev=program_prefix ;;
1082   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1083   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1084     program_prefix=$ac_optarg ;;
1085
1086   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1087   | --program-suf | --program-su | --program-s)
1088     ac_prev=program_suffix ;;
1089   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1090   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1091     program_suffix=$ac_optarg ;;
1092
1093   -program-transform-name | --program-transform-name \
1094   | --program-transform-nam | --program-transform-na \
1095   | --program-transform-n | --program-transform- \
1096   | --program-transform | --program-transfor \
1097   | --program-transfo | --program-transf \
1098   | --program-trans | --program-tran \
1099   | --progr-tra | --program-tr | --program-t)
1100     ac_prev=program_transform_name ;;
1101   -program-transform-name=* | --program-transform-name=* \
1102   | --program-transform-nam=* | --program-transform-na=* \
1103   | --program-transform-n=* | --program-transform-=* \
1104   | --program-transform=* | --program-transfor=* \
1105   | --program-transfo=* | --program-transf=* \
1106   | --program-trans=* | --program-tran=* \
1107   | --progr-tra=* | --program-tr=* | --program-t=*)
1108     program_transform_name=$ac_optarg ;;
1109
1110   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1111     ac_prev=pdfdir ;;
1112   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1113     pdfdir=$ac_optarg ;;
1114
1115   -psdir | --psdir | --psdi | --psd | --ps)
1116     ac_prev=psdir ;;
1117   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1118     psdir=$ac_optarg ;;
1119
1120   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1121   | -silent | --silent | --silen | --sile | --sil)
1122     silent=yes ;;
1123
1124   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1125     ac_prev=sbindir ;;
1126   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1127   | --sbi=* | --sb=*)
1128     sbindir=$ac_optarg ;;
1129
1130   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1131   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1132   | --sharedst | --shareds | --shared | --share | --shar \
1133   | --sha | --sh)
1134     ac_prev=sharedstatedir ;;
1135   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1136   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1137   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1138   | --sha=* | --sh=*)
1139     sharedstatedir=$ac_optarg ;;
1140
1141   -site | --site | --sit)
1142     ac_prev=site ;;
1143   -site=* | --site=* | --sit=*)
1144     site=$ac_optarg ;;
1145
1146   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1147     ac_prev=srcdir ;;
1148   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1149     srcdir=$ac_optarg ;;
1150
1151   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1152   | --syscon | --sysco | --sysc | --sys | --sy)
1153     ac_prev=sysconfdir ;;
1154   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1155   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1156     sysconfdir=$ac_optarg ;;
1157
1158   -target | --target | --targe | --targ | --tar | --ta | --t)
1159     ac_prev=target_alias ;;
1160   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1161     target_alias=$ac_optarg ;;
1162
1163   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1164     verbose=yes ;;
1165
1166   -version | --version | --versio | --versi | --vers | -V)
1167     ac_init_version=: ;;
1168
1169   -with-* | --with-*)
1170     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1171     # Reject names that are not valid shell variable names.
1172     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1173       as_fn_error $? "invalid package name: $ac_useropt"
1174     ac_useropt_orig=$ac_useropt
1175     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1176     case $ac_user_opts in
1177       *"
1178 "with_$ac_useropt"
1179 "*) ;;
1180       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1181          ac_unrecognized_sep=', ';;
1182     esac
1183     eval with_$ac_useropt=\$ac_optarg ;;
1184
1185   -without-* | --without-*)
1186     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1187     # Reject names that are not valid shell variable names.
1188     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1189       as_fn_error $? "invalid package name: $ac_useropt"
1190     ac_useropt_orig=$ac_useropt
1191     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1192     case $ac_user_opts in
1193       *"
1194 "with_$ac_useropt"
1195 "*) ;;
1196       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1197          ac_unrecognized_sep=', ';;
1198     esac
1199     eval with_$ac_useropt=no ;;
1200
1201   --x)
1202     # Obsolete; use --with-x.
1203     with_x=yes ;;
1204
1205   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1206   | --x-incl | --x-inc | --x-in | --x-i)
1207     ac_prev=x_includes ;;
1208   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1209   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1210     x_includes=$ac_optarg ;;
1211
1212   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1213   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1214     ac_prev=x_libraries ;;
1215   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1216   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1217     x_libraries=$ac_optarg ;;
1218
1219   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1220 Try \`$0 --help' for more information"
1221     ;;
1222
1223   *=*)
1224     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1225     # Reject names that are not valid shell variable names.
1226     case $ac_envvar in #(
1227       '' | [0-9]* | *[!_$as_cr_alnum]* )
1228       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1229     esac
1230     eval $ac_envvar=\$ac_optarg
1231     export $ac_envvar ;;
1232
1233   *)
1234     # FIXME: should be removed in autoconf 3.0.
1235     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1236     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1237       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1238     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1239     ;;
1240
1241   esac
1242 done
1243
1244 if test -n "$ac_prev"; then
1245   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1246   as_fn_error $? "missing argument to $ac_option"
1247 fi
1248
1249 if test -n "$ac_unrecognized_opts"; then
1250   case $enable_option_checking in
1251     no) ;;
1252     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1253     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1254   esac
1255 fi
1256
1257 # Check all directory arguments for consistency.
1258 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1259                 datadir sysconfdir sharedstatedir localstatedir includedir \
1260                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1261                 libdir localedir mandir
1262 do
1263   eval ac_val=\$$ac_var
1264   # Remove trailing slashes.
1265   case $ac_val in
1266     */ )
1267       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1268       eval $ac_var=\$ac_val;;
1269   esac
1270   # Be sure to have absolute directory names.
1271   case $ac_val in
1272     [\\/$]* | ?:[\\/]* )  continue;;
1273     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1274   esac
1275   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1276 done
1277
1278 # There might be people who depend on the old broken behavior: `$host'
1279 # used to hold the argument of --host etc.
1280 # FIXME: To remove some day.
1281 build=$build_alias
1282 host=$host_alias
1283 target=$target_alias
1284
1285 # FIXME: To remove some day.
1286 if test "x$host_alias" != x; then
1287   if test "x$build_alias" = x; then
1288     cross_compiling=maybe
1289     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1290     If a cross compiler is detected then cross compile mode will be used" >&2
1291   elif test "x$build_alias" != "x$host_alias"; then
1292     cross_compiling=yes
1293   fi
1294 fi
1295
1296 ac_tool_prefix=
1297 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1298
1299 test "$silent" = yes && exec 6>/dev/null
1300
1301
1302 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1303 ac_ls_di=`ls -di .` &&
1304 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1305   as_fn_error $? "working directory cannot be determined"
1306 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1307   as_fn_error $? "pwd does not report name of working directory"
1308
1309
1310 # Find the source files, if location was not specified.
1311 if test -z "$srcdir"; then
1312   ac_srcdir_defaulted=yes
1313   # Try the directory containing this script, then the parent directory.
1314   ac_confdir=`$as_dirname -- "$as_myself" ||
1315 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1316          X"$as_myself" : 'X\(//\)[^/]' \| \
1317          X"$as_myself" : 'X\(//\)$' \| \
1318          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1319 $as_echo X"$as_myself" |
1320     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1321             s//\1/
1322             q
1323           }
1324           /^X\(\/\/\)[^/].*/{
1325             s//\1/
1326             q
1327           }
1328           /^X\(\/\/\)$/{
1329             s//\1/
1330             q
1331           }
1332           /^X\(\/\).*/{
1333             s//\1/
1334             q
1335           }
1336           s/.*/./; q'`
1337   srcdir=$ac_confdir
1338   if test ! -r "$srcdir/$ac_unique_file"; then
1339     srcdir=..
1340   fi
1341 else
1342   ac_srcdir_defaulted=no
1343 fi
1344 if test ! -r "$srcdir/$ac_unique_file"; then
1345   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1346   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1347 fi
1348 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1349 ac_abs_confdir=`(
1350         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1351         pwd)`
1352 # When building in place, set srcdir=.
1353 if test "$ac_abs_confdir" = "$ac_pwd"; then
1354   srcdir=.
1355 fi
1356 # Remove unnecessary trailing slashes from srcdir.
1357 # Double slashes in file names in object file debugging info
1358 # mess up M-x gdb in Emacs.
1359 case $srcdir in
1360 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1361 esac
1362 for ac_var in $ac_precious_vars; do
1363   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1364   eval ac_env_${ac_var}_value=\$${ac_var}
1365   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1366   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1367 done
1368
1369 #
1370 # Report the --help message.
1371 #
1372 if test "$ac_init_help" = "long"; then
1373   # Omit some internal or obsolete options to make the list less imposing.
1374   # This message is too long to be a string in the A/UX 3.1 sh.
1375   cat <<_ACEOF
1376 \`configure' configures Wine 1.3.10 to adapt to many kinds of systems.
1377
1378 Usage: $0 [OPTION]... [VAR=VALUE]...
1379
1380 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1381 VAR=VALUE.  See below for descriptions of some of the useful variables.
1382
1383 Defaults for the options are specified in brackets.
1384
1385 Configuration:
1386   -h, --help              display this help and exit
1387       --help=short        display options specific to this package
1388       --help=recursive    display the short help of all the included packages
1389   -V, --version           display version information and exit
1390   -q, --quiet, --silent   do not print \`checking ...' messages
1391       --cache-file=FILE   cache test results in FILE [disabled]
1392   -C, --config-cache      alias for \`--cache-file=config.cache'
1393   -n, --no-create         do not create output files
1394       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1395
1396 Installation directories:
1397   --prefix=PREFIX         install architecture-independent files in PREFIX
1398                           [$ac_default_prefix]
1399   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1400                           [PREFIX]
1401
1402 By default, \`make install' will install all the files in
1403 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1404 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1405 for instance \`--prefix=\$HOME'.
1406
1407 For better control, use the options below.
1408
1409 Fine tuning of the installation directories:
1410   --bindir=DIR            user executables [EPREFIX/bin]
1411   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1412   --libexecdir=DIR        program executables [EPREFIX/libexec]
1413   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1414   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1415   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1416   --libdir=DIR            object code libraries [EPREFIX/lib]
1417   --includedir=DIR        C header files [PREFIX/include]
1418   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1419   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1420   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1421   --infodir=DIR           info documentation [DATAROOTDIR/info]
1422   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1423   --mandir=DIR            man documentation [DATAROOTDIR/man]
1424   --docdir=DIR            documentation root [DATAROOTDIR/doc/wine]
1425   --htmldir=DIR           html documentation [DOCDIR]
1426   --dvidir=DIR            dvi documentation [DOCDIR]
1427   --pdfdir=DIR            pdf documentation [DOCDIR]
1428   --psdir=DIR             ps documentation [DOCDIR]
1429 _ACEOF
1430
1431   cat <<\_ACEOF
1432
1433 X features:
1434   --x-includes=DIR    X include files are in DIR
1435   --x-libraries=DIR   X library files are in DIR
1436
1437 System types:
1438   --build=BUILD     configure for building on BUILD [guessed]
1439   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1440 _ACEOF
1441 fi
1442
1443 if test -n "$ac_init_help"; then
1444   case $ac_init_help in
1445      short | recursive ) echo "Configuration of Wine 1.3.10:";;
1446    esac
1447   cat <<\_ACEOF
1448
1449 Optional Features:
1450   --disable-option-checking  ignore unrecognized --enable/--with options
1451   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1452   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1453   --disable-win16         do not include Win16 support
1454   --enable-win64          build a Win64 emulator on AMD64 (won't run Win32
1455                           binaries)
1456   --disable-tests         do not build the regression tests
1457   --enable-maintainer-mode
1458                           enable maintainer-specific build rules
1459   --disable-largefile     omit support for large files
1460
1461 Optional Packages:
1462   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1463   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1464   --without-alsa          do not use the Alsa sound support
1465   --without-capi          do not use CAPI (ISDN support)
1466   --without-cms           do not use CMS (color management support)
1467   --without-coreaudio     do not use the CoreAudio sound support
1468   --without-cups          do not use CUPS
1469   --without-curses        do not use (n)curses
1470   --without-esd           do not use the EsounD sound support
1471   --without-fontconfig    do not use fontconfig
1472   --without-freetype      do not use the FreeType library
1473   --without-gettextpo     do not use the GetTextPO library
1474   --without-gphoto        do not use gphoto (Digital Camera support)
1475   --without-glu           do not use the GLU library
1476   --without-gnutls        do not use GnuTLS (schannel support)
1477   --without-gsm           do not use libgsm (GSM 06.10 codec support)
1478   --without-gstreamer     do not use GStreamer (codecs support)
1479   --without-hal           do not use HAL (dynamic device support)
1480   --without-icns          do not use ICNS icon support
1481   --without-jack          do not use the Jack sound support
1482   --without-jpeg          do not use JPEG
1483   --without-ldap          do not use LDAP
1484   --without-mpg123        do not use the mpg123 library
1485   --without-nas           do not use the NAS sound support
1486   --without-openal        do not use OpenAL
1487   --without-opencl        do not use OpenCL
1488   --without-opengl        do not use OpenGL
1489   --without-openssl       do not use OpenSSL
1490   --without-oss           do not use the OSS sound support
1491   --without-png           do not use PNG
1492   --without-pthread       do not use the pthread library
1493   --without-sane          do not use SANE (scanner support)
1494   --without-tiff          do not use TIFF
1495   --without-v4l           do not use v4l1 (v4l support)
1496   --without-xcomposite    do not use the Xcomposite extension
1497   --without-xcursor       do not use the Xcursor extension
1498   --without-xinerama      do not use Xinerama (multi-monitor support)
1499   --without-xinput        do not use the Xinput extension
1500   --without-xml           do not use XML
1501   --without-xrandr        do not use Xrandr (resolution changes)
1502   --without-xrender       do not use the Xrender extension
1503   --without-xshape        do not use the Xshape extension
1504   --without-xshm          do not use XShm (shared memory extension)
1505   --without-xslt          do not use XSLT
1506   --without-xxf86vm       do not use XFree video mode extension
1507   --with-wine-tools=DIR   use Wine tools from directory DIR
1508   --with-wine64=DIR       use the 64-bit Wine in DIR for a Wow64 build
1509   --with-x                use the X Window System
1510
1511 Some influential environment variables:
1512   CC          C compiler command
1513   CFLAGS      C compiler flags
1514   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1515               nonstandard directory <lib dir>
1516   LIBS        libraries to pass to the linker, e.g. -l<library>
1517   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1518               you have headers in a nonstandard directory <include dir>
1519   CXX         C++ compiler command
1520   CXXFLAGS    C++ compiler flags
1521   CPP         C preprocessor
1522   XMKMF       Path to xmkmf, Makefile generator for X Window System
1523
1524 Use these variables to override the choices made by `configure' or to help
1525 it to find libraries and programs with nonstandard names/locations.
1526
1527 Report bugs to <wine-devel@winehq.org>.
1528 Wine home page: <http://www.winehq.org>.
1529 _ACEOF
1530 ac_status=$?
1531 fi
1532
1533 if test "$ac_init_help" = "recursive"; then
1534   # If there are subdirs, report their specific --help.
1535   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1536     test -d "$ac_dir" ||
1537       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1538       continue
1539     ac_builddir=.
1540
1541 case "$ac_dir" in
1542 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1543 *)
1544   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1545   # A ".." for each directory in $ac_dir_suffix.
1546   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1547   case $ac_top_builddir_sub in
1548   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1549   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1550   esac ;;
1551 esac
1552 ac_abs_top_builddir=$ac_pwd
1553 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1554 # for backward compatibility:
1555 ac_top_builddir=$ac_top_build_prefix
1556
1557 case $srcdir in
1558   .)  # We are building in place.
1559     ac_srcdir=.
1560     ac_top_srcdir=$ac_top_builddir_sub
1561     ac_abs_top_srcdir=$ac_pwd ;;
1562   [\\/]* | ?:[\\/]* )  # Absolute name.
1563     ac_srcdir=$srcdir$ac_dir_suffix;
1564     ac_top_srcdir=$srcdir
1565     ac_abs_top_srcdir=$srcdir ;;
1566   *) # Relative name.
1567     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1568     ac_top_srcdir=$ac_top_build_prefix$srcdir
1569     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1570 esac
1571 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1572
1573     cd "$ac_dir" || { ac_status=$?; continue; }
1574     # Check for guested configure.
1575     if test -f "$ac_srcdir/configure.gnu"; then
1576       echo &&
1577       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1578     elif test -f "$ac_srcdir/configure"; then
1579       echo &&
1580       $SHELL "$ac_srcdir/configure" --help=recursive
1581     else
1582       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1583     fi || ac_status=$?
1584     cd "$ac_pwd" || { ac_status=$?; break; }
1585   done
1586 fi
1587
1588 test -n "$ac_init_help" && exit $ac_status
1589 if $ac_init_version; then
1590   cat <<\_ACEOF
1591 Wine configure 1.3.10
1592 generated by GNU Autoconf 2.67
1593
1594 Copyright (C) 2010 Free Software Foundation, Inc.
1595 This configure script is free software; the Free Software Foundation
1596 gives unlimited permission to copy, distribute and modify it.
1597 _ACEOF
1598   exit
1599 fi
1600
1601 ## ------------------------ ##
1602 ## Autoconf initialization. ##
1603 ## ------------------------ ##
1604
1605 # ac_fn_c_try_compile LINENO
1606 # --------------------------
1607 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1608 ac_fn_c_try_compile ()
1609 {
1610   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1611   rm -f conftest.$ac_objext
1612   if { { ac_try="$ac_compile"
1613 case "(($ac_try" in
1614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1615   *) ac_try_echo=$ac_try;;
1616 esac
1617 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1618 $as_echo "$ac_try_echo"; } >&5
1619   (eval "$ac_compile") 2>conftest.err
1620   ac_status=$?
1621   if test -s conftest.err; then
1622     grep -v '^ *+' conftest.err >conftest.er1
1623     cat conftest.er1 >&5
1624     mv -f conftest.er1 conftest.err
1625   fi
1626   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1627   test $ac_status = 0; } && {
1628          test -z "$ac_c_werror_flag" ||
1629          test ! -s conftest.err
1630        } && test -s conftest.$ac_objext; then :
1631   ac_retval=0
1632 else
1633   $as_echo "$as_me: failed program was:" >&5
1634 sed 's/^/| /' conftest.$ac_ext >&5
1635
1636         ac_retval=1
1637 fi
1638   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1639   as_fn_set_status $ac_retval
1640
1641 } # ac_fn_c_try_compile
1642
1643 # ac_fn_cxx_try_compile LINENO
1644 # ----------------------------
1645 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1646 ac_fn_cxx_try_compile ()
1647 {
1648   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1649   rm -f conftest.$ac_objext
1650   if { { ac_try="$ac_compile"
1651 case "(($ac_try" in
1652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1653   *) ac_try_echo=$ac_try;;
1654 esac
1655 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1656 $as_echo "$ac_try_echo"; } >&5
1657   (eval "$ac_compile") 2>conftest.err
1658   ac_status=$?
1659   if test -s conftest.err; then
1660     grep -v '^ *+' conftest.err >conftest.er1
1661     cat conftest.er1 >&5
1662     mv -f conftest.er1 conftest.err
1663   fi
1664   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1665   test $ac_status = 0; } && {
1666          test -z "$ac_cxx_werror_flag" ||
1667          test ! -s conftest.err
1668        } && test -s conftest.$ac_objext; then :
1669   ac_retval=0
1670 else
1671   $as_echo "$as_me: failed program was:" >&5
1672 sed 's/^/| /' conftest.$ac_ext >&5
1673
1674         ac_retval=1
1675 fi
1676   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1677   as_fn_set_status $ac_retval
1678
1679 } # ac_fn_cxx_try_compile
1680
1681 # ac_fn_c_try_link LINENO
1682 # -----------------------
1683 # Try to link conftest.$ac_ext, and return whether this succeeded.
1684 ac_fn_c_try_link ()
1685 {
1686   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1687   rm -f conftest.$ac_objext conftest$ac_exeext
1688   if { { ac_try="$ac_link"
1689 case "(($ac_try" in
1690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1691   *) ac_try_echo=$ac_try;;
1692 esac
1693 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1694 $as_echo "$ac_try_echo"; } >&5
1695   (eval "$ac_link") 2>conftest.err
1696   ac_status=$?
1697   if test -s conftest.err; then
1698     grep -v '^ *+' conftest.err >conftest.er1
1699     cat conftest.er1 >&5
1700     mv -f conftest.er1 conftest.err
1701   fi
1702   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1703   test $ac_status = 0; } && {
1704          test -z "$ac_c_werror_flag" ||
1705          test ! -s conftest.err
1706        } && test -s conftest$ac_exeext && {
1707          test "$cross_compiling" = yes ||
1708          $as_test_x conftest$ac_exeext
1709        }; then :
1710   ac_retval=0
1711 else
1712   $as_echo "$as_me: failed program was:" >&5
1713 sed 's/^/| /' conftest.$ac_ext >&5
1714
1715         ac_retval=1
1716 fi
1717   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1718   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1719   # interfere with the next link command; also delete a directory that is
1720   # left behind by Apple's compiler.  We do this before executing the actions.
1721   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1722   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1723   as_fn_set_status $ac_retval
1724
1725 } # ac_fn_c_try_link
1726
1727 # ac_fn_c_try_cpp LINENO
1728 # ----------------------
1729 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1730 ac_fn_c_try_cpp ()
1731 {
1732   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1733   if { { ac_try="$ac_cpp conftest.$ac_ext"
1734 case "(($ac_try" in
1735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1736   *) ac_try_echo=$ac_try;;
1737 esac
1738 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1739 $as_echo "$ac_try_echo"; } >&5
1740   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1741   ac_status=$?
1742   if test -s conftest.err; then
1743     grep -v '^ *+' conftest.err >conftest.er1
1744     cat conftest.er1 >&5
1745     mv -f conftest.er1 conftest.err
1746   fi
1747   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1748   test $ac_status = 0; } > conftest.i && {
1749          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1750          test ! -s conftest.err
1751        }; then :
1752   ac_retval=0
1753 else
1754   $as_echo "$as_me: failed program was:" >&5
1755 sed 's/^/| /' conftest.$ac_ext >&5
1756
1757     ac_retval=1
1758 fi
1759   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1760   as_fn_set_status $ac_retval
1761
1762 } # ac_fn_c_try_cpp
1763
1764 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1765 # -------------------------------------------------------
1766 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1767 # the include files in INCLUDES and setting the cache variable VAR
1768 # accordingly.
1769 ac_fn_c_check_header_mongrel ()
1770 {
1771   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1772   if eval "test \"\${$3+set}\"" = set; then :
1773   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1774 $as_echo_n "checking for $2... " >&6; }
1775 if eval "test \"\${$3+set}\"" = set; then :
1776   $as_echo_n "(cached) " >&6
1777 fi
1778 eval ac_res=\$$3
1779                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1780 $as_echo "$ac_res" >&6; }
1781 else
1782   # Is the header compilable?
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1784 $as_echo_n "checking $2 usability... " >&6; }
1785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1786 /* end confdefs.h.  */
1787 $4
1788 #include <$2>
1789 _ACEOF
1790 if ac_fn_c_try_compile "$LINENO"; then :
1791   ac_header_compiler=yes
1792 else
1793   ac_header_compiler=no
1794 fi
1795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1797 $as_echo "$ac_header_compiler" >&6; }
1798
1799 # Is the header present?
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1801 $as_echo_n "checking $2 presence... " >&6; }
1802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1803 /* end confdefs.h.  */
1804 #include <$2>
1805 _ACEOF
1806 if ac_fn_c_try_cpp "$LINENO"; then :
1807   ac_header_preproc=yes
1808 else
1809   ac_header_preproc=no
1810 fi
1811 rm -f conftest.err conftest.i conftest.$ac_ext
1812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1813 $as_echo "$ac_header_preproc" >&6; }
1814
1815 # So?  What about this header?
1816 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1817   yes:no: )
1818     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1819 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1820     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1821 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1822     ;;
1823   no:yes:* )
1824     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1825 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1826     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1827 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1828     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1829 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1830     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1831 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1832     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1833 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1834 ( $as_echo "## ------------------------------------ ##
1835 ## Report this to wine-devel@winehq.org ##
1836 ## ------------------------------------ ##"
1837      ) | sed "s/^/$as_me: WARNING:     /" >&2
1838     ;;
1839 esac
1840   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1841 $as_echo_n "checking for $2... " >&6; }
1842 if eval "test \"\${$3+set}\"" = set; then :
1843   $as_echo_n "(cached) " >&6
1844 else
1845   eval "$3=\$ac_header_compiler"
1846 fi
1847 eval ac_res=\$$3
1848                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1849 $as_echo "$ac_res" >&6; }
1850 fi
1851   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1852
1853 } # ac_fn_c_check_header_mongrel
1854
1855 # ac_fn_c_try_run LINENO
1856 # ----------------------
1857 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1858 # that executables *can* be run.
1859 ac_fn_c_try_run ()
1860 {
1861   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1862   if { { ac_try="$ac_link"
1863 case "(($ac_try" in
1864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1865   *) ac_try_echo=$ac_try;;
1866 esac
1867 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1868 $as_echo "$ac_try_echo"; } >&5
1869   (eval "$ac_link") 2>&5
1870   ac_status=$?
1871   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1872   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1873   { { case "(($ac_try" in
1874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1875   *) ac_try_echo=$ac_try;;
1876 esac
1877 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1878 $as_echo "$ac_try_echo"; } >&5
1879   (eval "$ac_try") 2>&5
1880   ac_status=$?
1881   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1882   test $ac_status = 0; }; }; then :
1883   ac_retval=0
1884 else
1885   $as_echo "$as_me: program exited with status $ac_status" >&5
1886        $as_echo "$as_me: failed program was:" >&5
1887 sed 's/^/| /' conftest.$ac_ext >&5
1888
1889        ac_retval=$ac_status
1890 fi
1891   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1892   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1893   as_fn_set_status $ac_retval
1894
1895 } # ac_fn_c_try_run
1896
1897 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1898 # -------------------------------------------------------
1899 # Tests whether HEADER exists and can be compiled using the include files in
1900 # INCLUDES, setting the cache variable VAR accordingly.
1901 ac_fn_c_check_header_compile ()
1902 {
1903   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1904   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1905 $as_echo_n "checking for $2... " >&6; }
1906 if eval "test \"\${$3+set}\"" = set; then :
1907   $as_echo_n "(cached) " >&6
1908 else
1909   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1910 /* end confdefs.h.  */
1911 $4
1912 #include <$2>
1913 _ACEOF
1914 if ac_fn_c_try_compile "$LINENO"; then :
1915   eval "$3=yes"
1916 else
1917   eval "$3=no"
1918 fi
1919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1920 fi
1921 eval ac_res=\$$3
1922                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1923 $as_echo "$ac_res" >&6; }
1924   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1925
1926 } # ac_fn_c_check_header_compile
1927
1928 # ac_fn_c_check_func LINENO FUNC VAR
1929 # ----------------------------------
1930 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1931 ac_fn_c_check_func ()
1932 {
1933   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1934   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1935 $as_echo_n "checking for $2... " >&6; }
1936 if eval "test \"\${$3+set}\"" = set; then :
1937   $as_echo_n "(cached) " >&6
1938 else
1939   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1940 /* end confdefs.h.  */
1941 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1942    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1943 #define $2 innocuous_$2
1944
1945 /* System header to define __stub macros and hopefully few prototypes,
1946     which can conflict with char $2 (); below.
1947     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1948     <limits.h> exists even on freestanding compilers.  */
1949
1950 #ifdef __STDC__
1951 # include <limits.h>
1952 #else
1953 # include <assert.h>
1954 #endif
1955
1956 #undef $2
1957
1958 /* Override any GCC internal prototype to avoid an error.
1959    Use char because int might match the return type of a GCC
1960    builtin and then its argument prototype would still apply.  */
1961 #ifdef __cplusplus
1962 extern "C"
1963 #endif
1964 char $2 ();
1965 /* The GNU C library defines this for functions which it implements
1966     to always fail with ENOSYS.  Some functions are actually named
1967     something starting with __ and the normal name is an alias.  */
1968 #if defined __stub_$2 || defined __stub___$2
1969 choke me
1970 #endif
1971
1972 int
1973 main ()
1974 {
1975 return $2 ();
1976   ;
1977   return 0;
1978 }
1979 _ACEOF
1980 if ac_fn_c_try_link "$LINENO"; then :
1981   eval "$3=yes"
1982 else
1983   eval "$3=no"
1984 fi
1985 rm -f core conftest.err conftest.$ac_objext \
1986     conftest$ac_exeext conftest.$ac_ext
1987 fi
1988 eval ac_res=\$$3
1989                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1990 $as_echo "$ac_res" >&6; }
1991   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1992
1993 } # ac_fn_c_check_func
1994
1995 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1996 # ----------------------------------------------------
1997 # Tries to find if the field MEMBER exists in type AGGR, after including
1998 # INCLUDES, setting cache variable VAR accordingly.
1999 ac_fn_c_check_member ()
2000 {
2001   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2002   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2003 $as_echo_n "checking for $2.$3... " >&6; }
2004 if eval "test \"\${$4+set}\"" = set; then :
2005   $as_echo_n "(cached) " >&6
2006 else
2007   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2008 /* end confdefs.h.  */
2009 $5
2010 int
2011 main ()
2012 {
2013 static $2 ac_aggr;
2014 if (ac_aggr.$3)
2015 return 0;
2016   ;
2017   return 0;
2018 }
2019 _ACEOF
2020 if ac_fn_c_try_compile "$LINENO"; then :
2021   eval "$4=yes"
2022 else
2023   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2024 /* end confdefs.h.  */
2025 $5
2026 int
2027 main ()
2028 {
2029 static $2 ac_aggr;
2030 if (sizeof ac_aggr.$3)
2031 return 0;
2032   ;
2033   return 0;
2034 }
2035 _ACEOF
2036 if ac_fn_c_try_compile "$LINENO"; then :
2037   eval "$4=yes"
2038 else
2039   eval "$4=no"
2040 fi
2041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2042 fi
2043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2044 fi
2045 eval ac_res=\$$4
2046                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2047 $as_echo "$ac_res" >&6; }
2048   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2049
2050 } # ac_fn_c_check_member
2051
2052 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2053 # -------------------------------------------
2054 # Tests whether TYPE exists after having included INCLUDES, setting cache
2055 # variable VAR accordingly.
2056 ac_fn_c_check_type ()
2057 {
2058   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2059   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2060 $as_echo_n "checking for $2... " >&6; }
2061 if eval "test \"\${$3+set}\"" = set; then :
2062   $as_echo_n "(cached) " >&6
2063 else
2064   eval "$3=no"
2065   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2066 /* end confdefs.h.  */
2067 $4
2068 int
2069 main ()
2070 {
2071 if (sizeof ($2))
2072          return 0;
2073   ;
2074   return 0;
2075 }
2076 _ACEOF
2077 if ac_fn_c_try_compile "$LINENO"; then :
2078   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2079 /* end confdefs.h.  */
2080 $4
2081 int
2082 main ()
2083 {
2084 if (sizeof (($2)))
2085             return 0;
2086   ;
2087   return 0;
2088 }
2089 _ACEOF
2090 if ac_fn_c_try_compile "$LINENO"; then :
2091
2092 else
2093   eval "$3=yes"
2094 fi
2095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2096 fi
2097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2098 fi
2099 eval ac_res=\$$3
2100                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2101 $as_echo "$ac_res" >&6; }
2102   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2103
2104 } # ac_fn_c_check_type
2105 cat >config.log <<_ACEOF
2106 This file contains any messages produced by compilers while
2107 running configure, to aid debugging if configure makes a mistake.
2108
2109 It was created by Wine $as_me 1.3.10, which was
2110 generated by GNU Autoconf 2.67.  Invocation command line was
2111
2112   $ $0 $@
2113
2114 _ACEOF
2115 exec 5>>config.log
2116 {
2117 cat <<_ASUNAME
2118 ## --------- ##
2119 ## Platform. ##
2120 ## --------- ##
2121
2122 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2123 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2124 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2125 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2126 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2127
2128 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2129 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2130
2131 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2132 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2133 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2134 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2135 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2136 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2137 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2138
2139 _ASUNAME
2140
2141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2142 for as_dir in $PATH
2143 do
2144   IFS=$as_save_IFS
2145   test -z "$as_dir" && as_dir=.
2146     $as_echo "PATH: $as_dir"
2147   done
2148 IFS=$as_save_IFS
2149
2150 } >&5
2151
2152 cat >&5 <<_ACEOF
2153
2154
2155 ## ----------- ##
2156 ## Core tests. ##
2157 ## ----------- ##
2158
2159 _ACEOF
2160
2161
2162 # Keep a trace of the command line.
2163 # Strip out --no-create and --no-recursion so they do not pile up.
2164 # Strip out --silent because we don't want to record it for future runs.
2165 # Also quote any args containing shell meta-characters.
2166 # Make two passes to allow for proper duplicate-argument suppression.
2167 ac_configure_args=
2168 ac_configure_args0=
2169 ac_configure_args1=
2170 ac_must_keep_next=false
2171 for ac_pass in 1 2
2172 do
2173   for ac_arg
2174   do
2175     case $ac_arg in
2176     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2177     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2178     | -silent | --silent | --silen | --sile | --sil)
2179       continue ;;
2180     *\'*)
2181       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2182     esac
2183     case $ac_pass in
2184     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2185     2)
2186       as_fn_append ac_configure_args1 " '$ac_arg'"
2187       if test $ac_must_keep_next = true; then
2188         ac_must_keep_next=false # Got value, back to normal.
2189       else
2190         case $ac_arg in
2191           *=* | --config-cache | -C | -disable-* | --disable-* \
2192           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2193           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2194           | -with-* | --with-* | -without-* | --without-* | --x)
2195             case "$ac_configure_args0 " in
2196               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2197             esac
2198             ;;
2199           -* ) ac_must_keep_next=true ;;
2200         esac
2201       fi
2202       as_fn_append ac_configure_args " '$ac_arg'"
2203       ;;
2204     esac
2205   done
2206 done
2207 { ac_configure_args0=; unset ac_configure_args0;}
2208 { ac_configure_args1=; unset ac_configure_args1;}
2209
2210 # When interrupted or exit'd, cleanup temporary files, and complete
2211 # config.log.  We remove comments because anyway the quotes in there
2212 # would cause problems or look ugly.
2213 # WARNING: Use '\'' to represent an apostrophe within the trap.
2214 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2215 trap 'exit_status=$?
2216   # Save into config.log some information that might help in debugging.
2217   {
2218     echo
2219
2220     $as_echo "## ---------------- ##
2221 ## Cache variables. ##
2222 ## ---------------- ##"
2223     echo
2224     # The following way of writing the cache mishandles newlines in values,
2225 (
2226   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2227     eval ac_val=\$$ac_var
2228     case $ac_val in #(
2229     *${as_nl}*)
2230       case $ac_var in #(
2231       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2232 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2233       esac
2234       case $ac_var in #(
2235       _ | IFS | as_nl) ;; #(
2236       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2237       *) { eval $ac_var=; unset $ac_var;} ;;
2238       esac ;;
2239     esac
2240   done
2241   (set) 2>&1 |
2242     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2243     *${as_nl}ac_space=\ *)
2244       sed -n \
2245         "s/'\''/'\''\\\\'\'''\''/g;
2246           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2247       ;; #(
2248     *)
2249       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2250       ;;
2251     esac |
2252     sort
2253 )
2254     echo
2255
2256     $as_echo "## ----------------- ##
2257 ## Output variables. ##
2258 ## ----------------- ##"
2259     echo
2260     for ac_var in $ac_subst_vars
2261     do
2262       eval ac_val=\$$ac_var
2263       case $ac_val in
2264       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2265       esac
2266       $as_echo "$ac_var='\''$ac_val'\''"
2267     done | sort
2268     echo
2269
2270     if test -n "$ac_subst_files"; then
2271       $as_echo "## ------------------- ##
2272 ## File substitutions. ##
2273 ## ------------------- ##"
2274       echo
2275       for ac_var in $ac_subst_files
2276       do
2277         eval ac_val=\$$ac_var
2278         case $ac_val in
2279         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2280         esac
2281         $as_echo "$ac_var='\''$ac_val'\''"
2282       done | sort
2283       echo
2284     fi
2285
2286     if test -s confdefs.h; then
2287       $as_echo "## ----------- ##
2288 ## confdefs.h. ##
2289 ## ----------- ##"
2290       echo
2291       cat confdefs.h
2292       echo
2293     fi
2294     test "$ac_signal" != 0 &&
2295       $as_echo "$as_me: caught signal $ac_signal"
2296     $as_echo "$as_me: exit $exit_status"
2297   } >&5
2298   rm -f core *.core core.conftest.* &&
2299     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2300     exit $exit_status
2301 ' 0
2302 for ac_signal in 1 2 13 15; do
2303   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2304 done
2305 ac_signal=0
2306
2307 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2308 rm -f -r conftest* confdefs.h
2309
2310 $as_echo "/* confdefs.h */" > confdefs.h
2311
2312 # Predefined preprocessor variables.
2313
2314 cat >>confdefs.h <<_ACEOF
2315 #define PACKAGE_NAME "$PACKAGE_NAME"
2316 _ACEOF
2317
2318 cat >>confdefs.h <<_ACEOF
2319 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2320 _ACEOF
2321
2322 cat >>confdefs.h <<_ACEOF
2323 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2324 _ACEOF
2325
2326 cat >>confdefs.h <<_ACEOF
2327 #define PACKAGE_STRING "$PACKAGE_STRING"
2328 _ACEOF
2329
2330 cat >>confdefs.h <<_ACEOF
2331 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2332 _ACEOF
2333
2334 cat >>confdefs.h <<_ACEOF
2335 #define PACKAGE_URL "$PACKAGE_URL"
2336 _ACEOF
2337
2338
2339 # Let the site file select an alternate cache file if it wants to.
2340 # Prefer an explicitly selected file to automatically selected ones.
2341 ac_site_file1=NONE
2342 ac_site_file2=NONE
2343 if test -n "$CONFIG_SITE"; then
2344   # We do not want a PATH search for config.site.
2345   case $CONFIG_SITE in #((
2346     -*)  ac_site_file1=./$CONFIG_SITE;;
2347     */*) ac_site_file1=$CONFIG_SITE;;
2348     *)   ac_site_file1=./$CONFIG_SITE;;
2349   esac
2350 elif test "x$prefix" != xNONE; then
2351   ac_site_file1=$prefix/share/config.site
2352   ac_site_file2=$prefix/etc/config.site
2353 else
2354   ac_site_file1=$ac_default_prefix/share/config.site
2355   ac_site_file2=$ac_default_prefix/etc/config.site
2356 fi
2357 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2358 do
2359   test "x$ac_site_file" = xNONE && continue
2360   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2361     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2362 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2363     sed 's/^/| /' "$ac_site_file" >&5
2364     . "$ac_site_file" \
2365       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2366 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2367 as_fn_error $? "failed to load site script $ac_site_file
2368 See \`config.log' for more details" "$LINENO" 5 ; }
2369   fi
2370 done
2371
2372 if test -r "$cache_file"; then
2373   # Some versions of bash will fail to source /dev/null (special files
2374   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2375   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2376     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2377 $as_echo "$as_me: loading cache $cache_file" >&6;}
2378     case $cache_file in
2379       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2380       *)                      . "./$cache_file";;
2381     esac
2382   fi
2383 else
2384   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2385 $as_echo "$as_me: creating cache $cache_file" >&6;}
2386   >$cache_file
2387 fi
2388
2389 # Check that the precious variables saved in the cache have kept the same
2390 # value.
2391 ac_cache_corrupted=false
2392 for ac_var in $ac_precious_vars; do
2393   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2394   eval ac_new_set=\$ac_env_${ac_var}_set
2395   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2396   eval ac_new_val=\$ac_env_${ac_var}_value
2397   case $ac_old_set,$ac_new_set in
2398     set,)
2399       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2400 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2401       ac_cache_corrupted=: ;;
2402     ,set)
2403       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2404 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2405       ac_cache_corrupted=: ;;
2406     ,);;
2407     *)
2408       if test "x$ac_old_val" != "x$ac_new_val"; then
2409         # differences in whitespace do not lead to failure.
2410         ac_old_val_w=`echo x $ac_old_val`
2411         ac_new_val_w=`echo x $ac_new_val`
2412         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2413           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2414 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2415           ac_cache_corrupted=:
2416         else
2417           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2418 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2419           eval $ac_var=\$ac_old_val
2420         fi
2421         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2422 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2423         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2424 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2425       fi;;
2426   esac
2427   # Pass precious variables to config.status.
2428   if test "$ac_new_set" = set; then
2429     case $ac_new_val in
2430     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2431     *) ac_arg=$ac_var=$ac_new_val ;;
2432     esac
2433     case " $ac_configure_args " in
2434       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2435       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2436     esac
2437   fi
2438 done
2439 if $ac_cache_corrupted; then
2440   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2441 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2442   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2443 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2444   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2445 fi
2446 ## -------------------- ##
2447 ## Main body of script. ##
2448 ## -------------------- ##
2449
2450 ac_ext=c
2451 ac_cpp='$CPP $CPPFLAGS'
2452 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2453 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2454 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2455
2456
2457
2458 ac_config_headers="$ac_config_headers include/config.h"
2459
2460 ac_aux_dir=
2461 for ac_dir in tools "$srcdir"/tools; do
2462   if test -f "$ac_dir/install-sh"; then
2463     ac_aux_dir=$ac_dir
2464     ac_install_sh="$ac_aux_dir/install-sh -c"
2465     break
2466   elif test -f "$ac_dir/install.sh"; then
2467     ac_aux_dir=$ac_dir
2468     ac_install_sh="$ac_aux_dir/install.sh -c"
2469     break
2470   elif test -f "$ac_dir/shtool"; then
2471     ac_aux_dir=$ac_dir
2472     ac_install_sh="$ac_aux_dir/shtool install -c"
2473     break
2474   fi
2475 done
2476 if test -z "$ac_aux_dir"; then
2477   as_fn_error $? "cannot find install-sh, install.sh, or shtool in tools \"$srcdir\"/tools" "$LINENO" 5
2478 fi
2479
2480 # These three variables are undocumented and unsupported,
2481 # and are intended to be withdrawn in a future Autoconf release.
2482 # They can cause serious problems if a builder's source tree is in a directory
2483 # whose full name contains unusual characters.
2484 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2485 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2486 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2487
2488
2489
2490
2491
2492 # Check whether --enable-win16 was given.
2493 if test "${enable_win16+set}" = set; then :
2494   enableval=$enable_win16;
2495 fi
2496
2497 # Check whether --enable-win64 was given.
2498 if test "${enable_win64+set}" = set; then :
2499   enableval=$enable_win64;
2500 fi
2501
2502 # Check whether --enable-tests was given.
2503 if test "${enable_tests+set}" = set; then :
2504   enableval=$enable_tests;
2505 fi
2506
2507 # Check whether --enable-maintainer-mode was given.
2508 if test "${enable_maintainer_mode+set}" = set; then :
2509   enableval=$enable_maintainer_mode;
2510 fi
2511
2512
2513
2514 # Check whether --with-alsa was given.
2515 if test "${with_alsa+set}" = set; then :
2516   withval=$with_alsa; if test "x$withval" = "xno"; then ac_cv_header_sys_asoundlib_h=no; ac_cv_header_alsa_asoundlib_h=no; fi
2517 fi
2518
2519
2520 # Check whether --with-capi was given.
2521 if test "${with_capi+set}" = set; then :
2522   withval=$with_capi; if test "x$withval" = "xno"; then ac_cv_header_capi20_h=no; ac_cv_header_linux_capi_h=no; fi
2523 fi
2524
2525
2526 # Check whether --with-cms was given.
2527 if test "${with_cms+set}" = set; then :
2528   withval=$with_cms; if test "x$withval" = "xno"; then ac_cv_header_lcms_h=no; ac_cv_header_lcms_lcms_h=no; fi
2529 fi
2530
2531
2532 # Check whether --with-coreaudio was given.
2533 if test "${with_coreaudio+set}" = set; then :
2534   withval=$with_coreaudio; if test "x$withval" = "xno"; then ac_cv_header_CoreAudio_CoreAudio_h=no; fi
2535 fi
2536
2537
2538 # Check whether --with-cups was given.
2539 if test "${with_cups+set}" = set; then :
2540   withval=$with_cups;
2541 fi
2542
2543
2544 # Check whether --with-curses was given.
2545 if test "${with_curses+set}" = set; then :
2546   withval=$with_curses; if test "x$withval" = "xno"; then ac_cv_header_ncurses_h=no; ac_cv_header_curses_h=no; fi
2547 fi
2548
2549
2550 # Check whether --with-esd was given.
2551 if test "${with_esd+set}" = set; then :
2552   withval=$with_esd;
2553 fi
2554
2555
2556 # Check whether --with-fontconfig was given.
2557 if test "${with_fontconfig+set}" = set; then :
2558   withval=$with_fontconfig; if test "x$withval" = "xno"; then ac_cv_header_fontconfig_fontconfig_h=no; fi
2559 fi
2560
2561
2562 # Check whether --with-freetype was given.
2563 if test "${with_freetype+set}" = set; then :
2564   withval=$with_freetype;
2565 fi
2566
2567
2568 # Check whether --with-gettextpo was given.
2569 if test "${with_gettextpo+set}" = set; then :
2570   withval=$with_gettextpo; if test "x$withval" = "xno"; then ac_cv_header_gettext_po_h=no; fi
2571 fi
2572
2573
2574 # Check whether --with-gphoto was given.
2575 if test "${with_gphoto+set}" = set; then :
2576   withval=$with_gphoto;
2577 fi
2578
2579
2580 # Check whether --with-glu was given.
2581 if test "${with_glu+set}" = set; then :
2582   withval=$with_glu; if test "x$withval" = "xno"; then ac_cv_header_GL_glu_h=no; fi
2583 fi
2584
2585
2586 # Check whether --with-gnutls was given.
2587 if test "${with_gnutls+set}" = set; then :
2588   withval=$with_gnutls;
2589 fi
2590
2591
2592 # Check whether --with-gsm was given.
2593 if test "${with_gsm+set}" = set; then :
2594   withval=$with_gsm; if test "x$withval" = "xno"; then ac_cv_header_gsm_h=no; ac_cv_header_gsm_gsm_h=no; fi
2595 fi
2596
2597
2598 # Check whether --with-gstreamer was given.
2599 if test "${with_gstreamer+set}" = set; then :
2600   withval=$with_gstreamer;
2601 fi
2602
2603
2604 # Check whether --with-hal was given.
2605 if test "${with_hal+set}" = set; then :
2606   withval=$with_hal;
2607 fi
2608
2609
2610 # Check whether --with-icns was given.
2611 if test "${with_icns+set}" = set; then :
2612   withval=$with_icns; if test "x$withval" = "xno"; then ac_cv_header_icns_h=no; fi
2613 fi
2614
2615
2616 # Check whether --with-jack was given.
2617 if test "${with_jack+set}" = set; then :
2618   withval=$with_jack; if test "x$withval" = "xno"; then ac_cv_header_jack_jack_h=no; fi
2619 fi
2620
2621
2622 # Check whether --with-jpeg was given.
2623 if test "${with_jpeg+set}" = set; then :
2624   withval=$with_jpeg; if test "x$withval" = "xno"; then ac_cv_header_jpeglib_h=no; fi
2625 fi
2626
2627
2628 # Check whether --with-ldap was given.
2629 if test "${with_ldap+set}" = set; then :
2630   withval=$with_ldap; if test "x$withval" = "xno"; then ac_cv_header_ldap_h=no; ac_cv_header_lber_h=no; fi
2631 fi
2632
2633
2634 # Check whether --with-mpg123 was given.
2635 if test "${with_mpg123+set}" = set; then :
2636   withval=$with_mpg123; if test "x$withval" = "xno"; then ac_cv_header_mpg123_h=no; fi
2637 fi
2638
2639
2640 # Check whether --with-nas was given.
2641 if test "${with_nas+set}" = set; then :
2642   withval=$with_nas; if test "x$withval" = "xno"; then ac_cv_header_audio_audiolib_h=no; fi
2643 fi
2644
2645
2646 # Check whether --with-openal was given.
2647 if test "${with_openal+set}" = set; then :
2648   withval=$with_openal; if test "x$withval" = "xno"; then ac_cv_header_AL_al_h=no; ac_cv_header_OpenAL_al_h=no; fi
2649 fi
2650
2651
2652 # Check whether --with-opencl was given.
2653 if test "${with_opencl+set}" = set; then :
2654   withval=$with_opencl; if test "x$withval" = "xno"; then ac_cv_header_CL_cl_h=no; ac_cv_header_OpenCL_opencl_h=no; fi
2655 fi
2656
2657
2658 # Check whether --with-opengl was given.
2659 if test "${with_opengl+set}" = set; then :
2660   withval=$with_opengl;
2661 fi
2662
2663
2664 # Check whether --with-openssl was given.
2665 if test "${with_openssl+set}" = set; then :
2666   withval=$with_openssl; if test "x$withval" = "xno"; then ac_cv_header_openssl_err_h=no; ac_cv_header_openssl_ssl_h=no; fi
2667 fi
2668
2669
2670 # Check whether --with-oss was given.
2671 if test "${with_oss+set}" = set; then :
2672   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
2673 fi
2674
2675
2676 # Check whether --with-png was given.
2677 if test "${with_png+set}" = set; then :
2678   withval=$with_png; if test "x$withval" = "xno"; then ac_cv_header_png_h=no; fi
2679 fi
2680
2681
2682 # Check whether --with-pthread was given.
2683 if test "${with_pthread+set}" = set; then :
2684   withval=$with_pthread; if test "x$withval" = "xno"; then ac_cv_header_pthread_h=no; fi
2685 fi
2686
2687
2688 # Check whether --with-sane was given.
2689 if test "${with_sane+set}" = set; then :
2690   withval=$with_sane;
2691 fi
2692
2693
2694 # Check whether --with-tiff was given.
2695 if test "${with_tiff+set}" = set; then :
2696   withval=$with_tiff; if test "x$withval" = "xno"; then ac_cv_header_tiffio_h=no; fi
2697 fi
2698
2699
2700 # Check whether --with-v4l was given.
2701 if test "${with_v4l+set}" = set; then :
2702   withval=$with_v4l;
2703 fi
2704
2705
2706 # Check whether --with-xcomposite was given.
2707 if test "${with_xcomposite+set}" = set; then :
2708   withval=$with_xcomposite; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xcomposite_h=no; fi
2709 fi
2710
2711
2712 # Check whether --with-xcursor was given.
2713 if test "${with_xcursor+set}" = set; then :
2714   withval=$with_xcursor; if test "x$withval" = "xno"; then ac_cv_header_X11_Xcursor_Xcursor_h=no; fi
2715 fi
2716
2717
2718 # Check whether --with-xinerama was given.
2719 if test "${with_xinerama+set}" = set; then :
2720   withval=$with_xinerama; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xinerama_h=no; fi
2721 fi
2722
2723
2724 # Check whether --with-xinput was given.
2725 if test "${with_xinput+set}" = set; then :
2726   withval=$with_xinput; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput_h=no; fi
2727 fi
2728
2729
2730 # Check whether --with-xml was given.
2731 if test "${with_xml+set}" = set; then :
2732   withval=$with_xml;
2733 fi
2734
2735
2736 # Check whether --with-xrandr was given.
2737 if test "${with_xrandr+set}" = set; then :
2738   withval=$with_xrandr; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrandr_h=no; fi
2739 fi
2740
2741
2742 # Check whether --with-xrender was given.
2743 if test "${with_xrender+set}" = set; then :
2744   withval=$with_xrender; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrender_h=no; fi
2745 fi
2746
2747
2748 # Check whether --with-xshape was given.
2749 if test "${with_xshape+set}" = set; then :
2750   withval=$with_xshape; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_shape_h=no; fi
2751 fi
2752
2753
2754 # Check whether --with-xshm was given.
2755 if test "${with_xshm+set}" = set; then :
2756   withval=$with_xshm; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XShm_h=no; fi
2757 fi
2758
2759
2760 # Check whether --with-xslt was given.
2761 if test "${with_xslt+set}" = set; then :
2762   withval=$with_xslt;
2763 fi
2764
2765
2766 # Check whether --with-xxf86vm was given.
2767 if test "${with_xxf86vm+set}" = set; then :
2768   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
2769 fi
2770
2771
2772
2773 # Check whether --with-wine-tools was given.
2774 if test "${with_wine_tools+set}" = set; then :
2775   withval=$with_wine_tools;
2776 fi
2777
2778
2779 # Check whether --with-wine64 was given.
2780 if test "${with_wine64+set}" = set; then :
2781   withval=$with_wine64;
2782 fi
2783
2784
2785 # Make sure we can run config.sub.
2786 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2787   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2788
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2790 $as_echo_n "checking build system type... " >&6; }
2791 if test "${ac_cv_build+set}" = set; then :
2792   $as_echo_n "(cached) " >&6
2793 else
2794   ac_build_alias=$build_alias
2795 test "x$ac_build_alias" = x &&
2796   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2797 test "x$ac_build_alias" = x &&
2798   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2799 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2800   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2801
2802 fi
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2804 $as_echo "$ac_cv_build" >&6; }
2805 case $ac_cv_build in
2806 *-*-*) ;;
2807 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
2808 esac
2809 build=$ac_cv_build
2810 ac_save_IFS=$IFS; IFS='-'
2811 set x $ac_cv_build
2812 shift
2813 build_cpu=$1
2814 build_vendor=$2
2815 shift; shift
2816 # Remember, the first character of IFS is used to create $*,
2817 # except with old shells:
2818 build_os=$*
2819 IFS=$ac_save_IFS
2820 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2821
2822
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2824 $as_echo_n "checking host system type... " >&6; }
2825 if test "${ac_cv_host+set}" = set; then :
2826   $as_echo_n "(cached) " >&6
2827 else
2828   if test "x$host_alias" = x; then
2829   ac_cv_host=$ac_cv_build
2830 else
2831   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2832     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2833 fi
2834
2835 fi
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2837 $as_echo "$ac_cv_host" >&6; }
2838 case $ac_cv_host in
2839 *-*-*) ;;
2840 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
2841 esac
2842 host=$ac_cv_host
2843 ac_save_IFS=$IFS; IFS='-'
2844 set x $ac_cv_host
2845 shift
2846 host_cpu=$1
2847 host_vendor=$2
2848 shift; shift
2849 # Remember, the first character of IFS is used to create $*,
2850 # except with old shells:
2851 host_os=$*
2852 IFS=$ac_save_IFS
2853 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2854
2855
2856
2857 case "$srcdir" in
2858  .) ;;
2859  *) if test -f "$srcdir/Makefile" -o -f "$srcdir/include/config.h"; then
2860       as_fn_error $? "you are building out of the source tree, but the source tree contains object files.
2861 You need to run 'make distclean' in the source tree first." "$LINENO" 5
2862     fi ;;
2863 esac
2864
2865
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2867 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2868 set x ${MAKE-make}
2869 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2870 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
2871   $as_echo_n "(cached) " >&6
2872 else
2873   cat >conftest.make <<\_ACEOF
2874 SHELL = /bin/sh
2875 all:
2876         @echo '@@@%%%=$(MAKE)=@@@%%%'
2877 _ACEOF
2878 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2879 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2880   *@@@%%%=?*=@@@%%%*)
2881     eval ac_cv_prog_make_${ac_make}_set=yes;;
2882   *)
2883     eval ac_cv_prog_make_${ac_make}_set=no;;
2884 esac
2885 rm -f conftest.make
2886 fi
2887 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2888   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2889 $as_echo "yes" >&6; }
2890   SET_MAKE=
2891 else
2892   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2893 $as_echo "no" >&6; }
2894   SET_MAKE="MAKE=${MAKE-make}"
2895 fi
2896
2897 ac_ext=c
2898 ac_cpp='$CPP $CPPFLAGS'
2899 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2900 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2901 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2902 if test -n "$ac_tool_prefix"; then
2903   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2904 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2906 $as_echo_n "checking for $ac_word... " >&6; }
2907 if test "${ac_cv_prog_CC+set}" = set; then :
2908   $as_echo_n "(cached) " >&6
2909 else
2910   if test -n "$CC"; then
2911   ac_cv_prog_CC="$CC" # Let the user override the test.
2912 else
2913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2914 for as_dir in $PATH
2915 do
2916   IFS=$as_save_IFS
2917   test -z "$as_dir" && as_dir=.
2918     for ac_exec_ext in '' $ac_executable_extensions; do
2919   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2920     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2921     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2922     break 2
2923   fi
2924 done
2925   done
2926 IFS=$as_save_IFS
2927
2928 fi
2929 fi
2930 CC=$ac_cv_prog_CC
2931 if test -n "$CC"; then
2932   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2933 $as_echo "$CC" >&6; }
2934 else
2935   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2936 $as_echo "no" >&6; }
2937 fi
2938
2939
2940 fi
2941 if test -z "$ac_cv_prog_CC"; then
2942   ac_ct_CC=$CC
2943   # Extract the first word of "gcc", so it can be a program name with args.
2944 set dummy gcc; ac_word=$2
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2946 $as_echo_n "checking for $ac_word... " >&6; }
2947 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2948   $as_echo_n "(cached) " >&6
2949 else
2950   if test -n "$ac_ct_CC"; then
2951   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2952 else
2953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2954 for as_dir in $PATH
2955 do
2956   IFS=$as_save_IFS
2957   test -z "$as_dir" && as_dir=.
2958     for ac_exec_ext in '' $ac_executable_extensions; do
2959   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2960     ac_cv_prog_ac_ct_CC="gcc"
2961     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2962     break 2
2963   fi
2964 done
2965   done
2966 IFS=$as_save_IFS
2967
2968 fi
2969 fi
2970 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2971 if test -n "$ac_ct_CC"; then
2972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2973 $as_echo "$ac_ct_CC" >&6; }
2974 else
2975   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2976 $as_echo "no" >&6; }
2977 fi
2978
2979   if test "x$ac_ct_CC" = x; then
2980     CC=""
2981   else
2982     case $cross_compiling:$ac_tool_warned in
2983 yes:)
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2985 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2986 ac_tool_warned=yes ;;
2987 esac
2988     CC=$ac_ct_CC
2989   fi
2990 else
2991   CC="$ac_cv_prog_CC"
2992 fi
2993
2994 if test -z "$CC"; then
2995           if test -n "$ac_tool_prefix"; then
2996     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2997 set dummy ${ac_tool_prefix}cc; ac_word=$2
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2999 $as_echo_n "checking for $ac_word... " >&6; }
3000 if test "${ac_cv_prog_CC+set}" = set; then :
3001   $as_echo_n "(cached) " >&6
3002 else
3003   if test -n "$CC"; then
3004   ac_cv_prog_CC="$CC" # Let the user override the test.
3005 else
3006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3007 for as_dir in $PATH
3008 do
3009   IFS=$as_save_IFS
3010   test -z "$as_dir" && as_dir=.
3011     for ac_exec_ext in '' $ac_executable_extensions; do
3012   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3013     ac_cv_prog_CC="${ac_tool_prefix}cc"
3014     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3015     break 2
3016   fi
3017 done
3018   done
3019 IFS=$as_save_IFS
3020
3021 fi
3022 fi
3023 CC=$ac_cv_prog_CC
3024 if test -n "$CC"; then
3025   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3026 $as_echo "$CC" >&6; }
3027 else
3028   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3029 $as_echo "no" >&6; }
3030 fi
3031
3032
3033   fi
3034 fi
3035 if test -z "$CC"; then
3036   # Extract the first word of "cc", so it can be a program name with args.
3037 set dummy cc; ac_word=$2
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3039 $as_echo_n "checking for $ac_word... " >&6; }
3040 if test "${ac_cv_prog_CC+set}" = set; then :
3041   $as_echo_n "(cached) " >&6
3042 else
3043   if test -n "$CC"; then
3044   ac_cv_prog_CC="$CC" # Let the user override the test.
3045 else
3046   ac_prog_rejected=no
3047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3048 for as_dir in $PATH
3049 do
3050   IFS=$as_save_IFS
3051   test -z "$as_dir" && as_dir=.
3052     for ac_exec_ext in '' $ac_executable_extensions; do
3053   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3054     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3055        ac_prog_rejected=yes
3056        continue
3057      fi
3058     ac_cv_prog_CC="cc"
3059     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3060     break 2
3061   fi
3062 done
3063   done
3064 IFS=$as_save_IFS
3065
3066 if test $ac_prog_rejected = yes; then
3067   # We found a bogon in the path, so make sure we never use it.
3068   set dummy $ac_cv_prog_CC
3069   shift
3070   if test $# != 0; then
3071     # We chose a different compiler from the bogus one.
3072     # However, it has the same basename, so the bogon will be chosen
3073     # first if we set CC to just the basename; use the full file name.
3074     shift
3075     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3076   fi
3077 fi
3078 fi
3079 fi
3080 CC=$ac_cv_prog_CC
3081 if test -n "$CC"; then
3082   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3083 $as_echo "$CC" >&6; }
3084 else
3085   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3086 $as_echo "no" >&6; }
3087 fi
3088
3089
3090 fi
3091 if test -z "$CC"; then
3092   if test -n "$ac_tool_prefix"; then
3093   for ac_prog in cl.exe
3094   do
3095     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3096 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3098 $as_echo_n "checking for $ac_word... " >&6; }
3099 if test "${ac_cv_prog_CC+set}" = set; then :
3100   $as_echo_n "(cached) " >&6
3101 else
3102   if test -n "$CC"; then
3103   ac_cv_prog_CC="$CC" # Let the user override the test.
3104 else
3105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3106 for as_dir in $PATH
3107 do
3108   IFS=$as_save_IFS
3109   test -z "$as_dir" && as_dir=.
3110     for ac_exec_ext in '' $ac_executable_extensions; do
3111   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3112     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3113     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3114     break 2
3115   fi
3116 done
3117   done
3118 IFS=$as_save_IFS
3119
3120 fi
3121 fi
3122 CC=$ac_cv_prog_CC
3123 if test -n "$CC"; then
3124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3125 $as_echo "$CC" >&6; }
3126 else
3127   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3128 $as_echo "no" >&6; }
3129 fi
3130
3131
3132     test -n "$CC" && break
3133   done
3134 fi
3135 if test -z "$CC"; then
3136   ac_ct_CC=$CC
3137   for ac_prog in cl.exe
3138 do
3139   # Extract the first word of "$ac_prog", so it can be a program name with args.
3140 set dummy $ac_prog; ac_word=$2
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3142 $as_echo_n "checking for $ac_word... " >&6; }
3143 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3144   $as_echo_n "(cached) " >&6
3145 else
3146   if test -n "$ac_ct_CC"; then
3147   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3148 else
3149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3150 for as_dir in $PATH
3151 do
3152   IFS=$as_save_IFS
3153   test -z "$as_dir" && as_dir=.
3154     for ac_exec_ext in '' $ac_executable_extensions; do
3155   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3156     ac_cv_prog_ac_ct_CC="$ac_prog"
3157     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3158     break 2
3159   fi
3160 done
3161   done
3162 IFS=$as_save_IFS
3163
3164 fi
3165 fi
3166 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3167 if test -n "$ac_ct_CC"; then
3168   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3169 $as_echo "$ac_ct_CC" >&6; }
3170 else
3171   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3172 $as_echo "no" >&6; }
3173 fi
3174
3175
3176   test -n "$ac_ct_CC" && break
3177 done
3178
3179   if test "x$ac_ct_CC" = x; then
3180     CC=""
3181   else
3182     case $cross_compiling:$ac_tool_warned in
3183 yes:)
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3185 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3186 ac_tool_warned=yes ;;
3187 esac
3188     CC=$ac_ct_CC
3189   fi
3190 fi
3191
3192 fi
3193
3194
3195 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3196 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3197 as_fn_error $? "no acceptable C compiler found in \$PATH
3198 See \`config.log' for more details" "$LINENO" 5 ; }
3199
3200 # Provide some information about the compiler.
3201 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3202 set X $ac_compile
3203 ac_compiler=$2
3204 for ac_option in --version -v -V -qversion; do
3205   { { ac_try="$ac_compiler $ac_option >&5"
3206 case "(($ac_try" in
3207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3208   *) ac_try_echo=$ac_try;;
3209 esac
3210 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3211 $as_echo "$ac_try_echo"; } >&5
3212   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3213   ac_status=$?
3214   if test -s conftest.err; then
3215     sed '10a\
3216 ... rest of stderr output deleted ...
3217          10q' conftest.err >conftest.er1
3218     cat conftest.er1 >&5
3219   fi
3220   rm -f conftest.er1 conftest.err
3221   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3222   test $ac_status = 0; }
3223 done
3224
3225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3226 /* end confdefs.h.  */
3227
3228 int
3229 main ()
3230 {
3231
3232   ;
3233   return 0;
3234 }
3235 _ACEOF
3236 ac_clean_files_save=$ac_clean_files
3237 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3238 # Try to create an executable without -o first, disregard a.out.
3239 # It will help us diagnose broken compilers, and finding out an intuition
3240 # of exeext.
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3242 $as_echo_n "checking whether the C compiler works... " >&6; }
3243 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3244
3245 # The possible output files:
3246 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3247
3248 ac_rmfiles=
3249 for ac_file in $ac_files
3250 do
3251   case $ac_file in
3252     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3253     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3254   esac
3255 done
3256 rm -f $ac_rmfiles
3257
3258 if { { ac_try="$ac_link_default"
3259 case "(($ac_try" in
3260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3261   *) ac_try_echo=$ac_try;;
3262 esac
3263 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3264 $as_echo "$ac_try_echo"; } >&5
3265   (eval "$ac_link_default") 2>&5
3266   ac_status=$?
3267   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3268   test $ac_status = 0; }; then :
3269   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3270 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3271 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3272 # so that the user can short-circuit this test for compilers unknown to
3273 # Autoconf.
3274 for ac_file in $ac_files ''
3275 do
3276   test -f "$ac_file" || continue
3277   case $ac_file in
3278     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3279         ;;
3280     [ab].out )
3281         # We found the default executable, but exeext='' is most
3282         # certainly right.
3283         break;;
3284     *.* )
3285         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3286         then :; else
3287            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3288         fi
3289         # We set ac_cv_exeext here because the later test for it is not
3290         # safe: cross compilers may not add the suffix if given an `-o'
3291         # argument, so we may need to know it at that point already.
3292         # Even if this section looks crufty: it has the advantage of
3293         # actually working.
3294         break;;
3295     * )
3296         break;;
3297   esac
3298 done
3299 test "$ac_cv_exeext" = no && ac_cv_exeext=
3300
3301 else
3302   ac_file=''
3303 fi
3304 if test -z "$ac_file"; then :
3305   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3306 $as_echo "no" >&6; }
3307 $as_echo "$as_me: failed program was:" >&5
3308 sed 's/^/| /' conftest.$ac_ext >&5
3309
3310 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3311 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3312 as_fn_error 77 "C compiler cannot create executables
3313 See \`config.log' for more details" "$LINENO" 5 ; }
3314 else
3315   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3316 $as_echo "yes" >&6; }
3317 fi
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3319 $as_echo_n "checking for C compiler default output file name... " >&6; }
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3321 $as_echo "$ac_file" >&6; }
3322 ac_exeext=$ac_cv_exeext
3323
3324 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3325 ac_clean_files=$ac_clean_files_save
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3327 $as_echo_n "checking for suffix of executables... " >&6; }
3328 if { { ac_try="$ac_link"
3329 case "(($ac_try" in
3330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3331   *) ac_try_echo=$ac_try;;
3332 esac
3333 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3334 $as_echo "$ac_try_echo"; } >&5
3335   (eval "$ac_link") 2>&5
3336   ac_status=$?
3337   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3338   test $ac_status = 0; }; then :
3339   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3340 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3341 # work properly (i.e., refer to `conftest.exe'), while it won't with
3342 # `rm'.
3343 for ac_file in conftest.exe conftest conftest.*; do
3344   test -f "$ac_file" || continue
3345   case $ac_file in
3346     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3347     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3348           break;;
3349     * ) break;;
3350   esac
3351 done
3352 else
3353   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3354 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3355 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3356 See \`config.log' for more details" "$LINENO" 5 ; }
3357 fi
3358 rm -f conftest conftest$ac_cv_exeext
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3360 $as_echo "$ac_cv_exeext" >&6; }
3361
3362 rm -f conftest.$ac_ext
3363 EXEEXT=$ac_cv_exeext
3364 ac_exeext=$EXEEXT
3365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3366 /* end confdefs.h.  */
3367 #include <stdio.h>
3368 int
3369 main ()
3370 {
3371 FILE *f = fopen ("conftest.out", "w");
3372  return ferror (f) || fclose (f) != 0;
3373
3374   ;
3375   return 0;
3376 }
3377 _ACEOF
3378 ac_clean_files="$ac_clean_files conftest.out"
3379 # Check that the compiler produces executables we can run.  If not, either
3380 # the compiler is broken, or we cross compile.
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3382 $as_echo_n "checking whether we are cross compiling... " >&6; }
3383 if test "$cross_compiling" != yes; then
3384   { { ac_try="$ac_link"
3385 case "(($ac_try" in
3386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3387   *) ac_try_echo=$ac_try;;
3388 esac
3389 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3390 $as_echo "$ac_try_echo"; } >&5
3391   (eval "$ac_link") 2>&5
3392   ac_status=$?
3393   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3394   test $ac_status = 0; }
3395   if { ac_try='./conftest$ac_cv_exeext'
3396   { { case "(($ac_try" in
3397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3398   *) ac_try_echo=$ac_try;;
3399 esac
3400 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3401 $as_echo "$ac_try_echo"; } >&5
3402   (eval "$ac_try") 2>&5
3403   ac_status=$?
3404   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3405   test $ac_status = 0; }; }; then
3406     cross_compiling=no
3407   else
3408     if test "$cross_compiling" = maybe; then
3409         cross_compiling=yes
3410     else
3411         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3412 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3413 as_fn_error $? "cannot run C compiled programs.
3414 If you meant to cross compile, use \`--host'.
3415 See \`config.log' for more details" "$LINENO" 5 ; }
3416     fi
3417   fi
3418 fi
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3420 $as_echo "$cross_compiling" >&6; }
3421
3422 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3423 ac_clean_files=$ac_clean_files_save
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3425 $as_echo_n "checking for suffix of object files... " >&6; }
3426 if test "${ac_cv_objext+set}" = set; then :
3427   $as_echo_n "(cached) " >&6
3428 else
3429   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3430 /* end confdefs.h.  */
3431
3432 int
3433 main ()
3434 {
3435
3436   ;
3437   return 0;
3438 }
3439 _ACEOF
3440 rm -f conftest.o conftest.obj
3441 if { { ac_try="$ac_compile"
3442 case "(($ac_try" in
3443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3444   *) ac_try_echo=$ac_try;;
3445 esac
3446 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3447 $as_echo "$ac_try_echo"; } >&5
3448   (eval "$ac_compile") 2>&5
3449   ac_status=$?
3450   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3451   test $ac_status = 0; }; then :
3452   for ac_file in conftest.o conftest.obj conftest.*; do
3453   test -f "$ac_file" || continue;
3454   case $ac_file in
3455     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3456     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3457        break;;
3458   esac
3459 done
3460 else
3461   $as_echo "$as_me: failed program was:" >&5
3462 sed 's/^/| /' conftest.$ac_ext >&5
3463
3464 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3465 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3466 as_fn_error $? "cannot compute suffix of object files: cannot compile
3467 See \`config.log' for more details" "$LINENO" 5 ; }
3468 fi
3469 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3470 fi
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3472 $as_echo "$ac_cv_objext" >&6; }
3473 OBJEXT=$ac_cv_objext
3474 ac_objext=$OBJEXT
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3476 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3477 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3478   $as_echo_n "(cached) " >&6
3479 else
3480   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3481 /* end confdefs.h.  */
3482
3483 int
3484 main ()
3485 {
3486 #ifndef __GNUC__
3487        choke me
3488 #endif
3489
3490   ;
3491   return 0;
3492 }
3493 _ACEOF
3494 if ac_fn_c_try_compile "$LINENO"; then :
3495   ac_compiler_gnu=yes
3496 else
3497   ac_compiler_gnu=no
3498 fi
3499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3500 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3501
3502 fi
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3504 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3505 if test $ac_compiler_gnu = yes; then
3506   GCC=yes
3507 else
3508   GCC=
3509 fi
3510 ac_test_CFLAGS=${CFLAGS+set}
3511 ac_save_CFLAGS=$CFLAGS
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3513 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3514 if test "${ac_cv_prog_cc_g+set}" = set; then :
3515   $as_echo_n "(cached) " >&6
3516 else
3517   ac_save_c_werror_flag=$ac_c_werror_flag
3518    ac_c_werror_flag=yes
3519    ac_cv_prog_cc_g=no
3520    CFLAGS="-g"
3521    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3522 /* end confdefs.h.  */
3523
3524 int
3525 main ()
3526 {
3527
3528   ;
3529   return 0;
3530 }
3531 _ACEOF
3532 if ac_fn_c_try_compile "$LINENO"; then :
3533   ac_cv_prog_cc_g=yes
3534 else
3535   CFLAGS=""
3536       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3537 /* end confdefs.h.  */
3538
3539 int
3540 main ()
3541 {
3542
3543   ;
3544   return 0;
3545 }
3546 _ACEOF
3547 if ac_fn_c_try_compile "$LINENO"; then :
3548
3549 else
3550   ac_c_werror_flag=$ac_save_c_werror_flag
3551          CFLAGS="-g"
3552          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3553 /* end confdefs.h.  */
3554
3555 int
3556 main ()
3557 {
3558
3559   ;
3560   return 0;
3561 }
3562 _ACEOF
3563 if ac_fn_c_try_compile "$LINENO"; then :
3564   ac_cv_prog_cc_g=yes
3565 fi
3566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3567 fi
3568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3569 fi
3570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3571    ac_c_werror_flag=$ac_save_c_werror_flag
3572 fi
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3574 $as_echo "$ac_cv_prog_cc_g" >&6; }
3575 if test "$ac_test_CFLAGS" = set; then
3576   CFLAGS=$ac_save_CFLAGS
3577 elif test $ac_cv_prog_cc_g = yes; then
3578   if test "$GCC" = yes; then
3579     CFLAGS="-g -O2"
3580   else
3581     CFLAGS="-g"
3582   fi
3583 else
3584   if test "$GCC" = yes; then
3585     CFLAGS="-O2"
3586   else
3587     CFLAGS=
3588   fi
3589 fi
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3591 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3592 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3593   $as_echo_n "(cached) " >&6
3594 else
3595   ac_cv_prog_cc_c89=no
3596 ac_save_CC=$CC
3597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3598 /* end confdefs.h.  */
3599 #include <stdarg.h>
3600 #include <stdio.h>
3601 #include <sys/types.h>
3602 #include <sys/stat.h>
3603 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3604 struct buf { int x; };
3605 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3606 static char *e (p, i)
3607      char **p;
3608      int i;
3609 {
3610   return p[i];
3611 }
3612 static char *f (char * (*g) (char **, int), char **p, ...)
3613 {
3614   char *s;
3615   va_list v;
3616   va_start (v,p);
3617   s = g (p, va_arg (v,int));
3618   va_end (v);
3619   return s;
3620 }
3621
3622 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3623    function prototypes and stuff, but not '\xHH' hex character constants.
3624    These don't provoke an error unfortunately, instead are silently treated
3625    as 'x'.  The following induces an error, until -std is added to get
3626    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3627    array size at least.  It's necessary to write '\x00'==0 to get something
3628    that's true only with -std.  */
3629 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3630
3631 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3632    inside strings and character constants.  */
3633 #define FOO(x) 'x'
3634 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3635
3636 int test (int i, double x);
3637 struct s1 {int (*f) (int a);};
3638 struct s2 {int (*f) (double a);};
3639 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3640 int argc;
3641 char **argv;
3642 int
3643 main ()
3644 {
3645 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3646   ;
3647   return 0;
3648 }
3649 _ACEOF
3650 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3651         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3652 do
3653   CC="$ac_save_CC $ac_arg"
3654   if ac_fn_c_try_compile "$LINENO"; then :
3655   ac_cv_prog_cc_c89=$ac_arg
3656 fi
3657 rm -f core conftest.err conftest.$ac_objext
3658   test "x$ac_cv_prog_cc_c89" != "xno" && break
3659 done
3660 rm -f conftest.$ac_ext
3661 CC=$ac_save_CC
3662
3663 fi
3664 # AC_CACHE_VAL
3665 case "x$ac_cv_prog_cc_c89" in
3666   x)
3667     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3668 $as_echo "none needed" >&6; } ;;
3669   xno)
3670     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3671 $as_echo "unsupported" >&6; } ;;
3672   *)
3673     CC="$CC $ac_cv_prog_cc_c89"
3674     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3675 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3676 esac
3677 if test "x$ac_cv_prog_cc_c89" != xno; then :
3678
3679 fi
3680
3681 ac_ext=c
3682 ac_cpp='$CPP $CPPFLAGS'
3683 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3684 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3685 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3686
3687 ac_ext=cpp
3688 ac_cpp='$CXXCPP $CPPFLAGS'
3689 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3690 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3691 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3692 if test -z "$CXX"; then
3693   if test -n "$CCC"; then
3694     CXX=$CCC
3695   else
3696     if test -n "$ac_tool_prefix"; then
3697   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3698   do
3699     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3700 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3702 $as_echo_n "checking for $ac_word... " >&6; }
3703 if test "${ac_cv_prog_CXX+set}" = set; then :
3704   $as_echo_n "(cached) " >&6
3705 else
3706   if test -n "$CXX"; then
3707   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3708 else
3709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3710 for as_dir in $PATH
3711 do
3712   IFS=$as_save_IFS
3713   test -z "$as_dir" && as_dir=.
3714     for ac_exec_ext in '' $ac_executable_extensions; do
3715   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3716     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3717     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3718     break 2
3719   fi
3720 done
3721   done
3722 IFS=$as_save_IFS
3723
3724 fi
3725 fi
3726 CXX=$ac_cv_prog_CXX
3727 if test -n "$CXX"; then
3728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3729 $as_echo "$CXX" >&6; }
3730 else
3731   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3732 $as_echo "no" >&6; }
3733 fi
3734
3735
3736     test -n "$CXX" && break
3737   done
3738 fi
3739 if test -z "$CXX"; then
3740   ac_ct_CXX=$CXX
3741   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3742 do
3743   # Extract the first word of "$ac_prog", so it can be a program name with args.
3744 set dummy $ac_prog; ac_word=$2
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3746 $as_echo_n "checking for $ac_word... " >&6; }
3747 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3748   $as_echo_n "(cached) " >&6
3749 else
3750   if test -n "$ac_ct_CXX"; then
3751   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3752 else
3753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3754 for as_dir in $PATH
3755 do
3756   IFS=$as_save_IFS
3757   test -z "$as_dir" && as_dir=.
3758     for ac_exec_ext in '' $ac_executable_extensions; do
3759   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3760     ac_cv_prog_ac_ct_CXX="$ac_prog"
3761     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3762     break 2
3763   fi
3764 done
3765   done
3766 IFS=$as_save_IFS
3767
3768 fi
3769 fi
3770 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3771 if test -n "$ac_ct_CXX"; then
3772   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3773 $as_echo "$ac_ct_CXX" >&6; }
3774 else
3775   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3776 $as_echo "no" >&6; }
3777 fi
3778
3779
3780   test -n "$ac_ct_CXX" && break
3781 done
3782
3783   if test "x$ac_ct_CXX" = x; then
3784     CXX="g++"
3785   else
3786     case $cross_compiling:$ac_tool_warned in
3787 yes:)
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3789 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3790 ac_tool_warned=yes ;;
3791 esac
3792     CXX=$ac_ct_CXX
3793   fi
3794 fi
3795
3796   fi
3797 fi
3798 # Provide some information about the compiler.
3799 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3800 set X $ac_compile
3801 ac_compiler=$2
3802 for ac_option in --version -v -V -qversion; do
3803   { { ac_try="$ac_compiler $ac_option >&5"
3804 case "(($ac_try" in
3805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3806   *) ac_try_echo=$ac_try;;
3807 esac
3808 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3809 $as_echo "$ac_try_echo"; } >&5
3810   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3811   ac_status=$?
3812   if test -s conftest.err; then
3813     sed '10a\
3814 ... rest of stderr output deleted ...
3815          10q' conftest.err >conftest.er1
3816     cat conftest.er1 >&5
3817   fi
3818   rm -f conftest.er1 conftest.err
3819   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3820   test $ac_status = 0; }
3821 done
3822
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3824 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3825 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3826   $as_echo_n "(cached) " >&6
3827 else
3828   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3829 /* end confdefs.h.  */
3830
3831 int
3832 main ()
3833 {
3834 #ifndef __GNUC__
3835        choke me
3836 #endif
3837
3838   ;
3839   return 0;
3840 }
3841 _ACEOF
3842 if ac_fn_cxx_try_compile "$LINENO"; then :
3843   ac_compiler_gnu=yes
3844 else
3845   ac_compiler_gnu=no
3846 fi
3847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3848 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3849
3850 fi
3851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3852 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3853 if test $ac_compiler_gnu = yes; then
3854   GXX=yes
3855 else
3856   GXX=
3857 fi
3858 ac_test_CXXFLAGS=${CXXFLAGS+set}
3859 ac_save_CXXFLAGS=$CXXFLAGS
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3861 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3862 if test "${ac_cv_prog_cxx_g+set}" = set; then :
3863   $as_echo_n "(cached) " >&6
3864 else
3865   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3866    ac_cxx_werror_flag=yes
3867    ac_cv_prog_cxx_g=no
3868    CXXFLAGS="-g"
3869    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3870 /* end confdefs.h.  */
3871
3872 int
3873 main ()
3874 {
3875
3876   ;
3877   return 0;
3878 }
3879 _ACEOF
3880 if ac_fn_cxx_try_compile "$LINENO"; then :
3881   ac_cv_prog_cxx_g=yes
3882 else
3883   CXXFLAGS=""
3884       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3885 /* end confdefs.h.  */
3886
3887 int
3888 main ()
3889 {
3890
3891   ;
3892   return 0;
3893 }
3894 _ACEOF
3895 if ac_fn_cxx_try_compile "$LINENO"; then :
3896
3897 else
3898   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3899          CXXFLAGS="-g"
3900          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3901 /* end confdefs.h.  */
3902
3903 int
3904 main ()
3905 {
3906
3907   ;
3908   return 0;
3909 }
3910 _ACEOF
3911 if ac_fn_cxx_try_compile "$LINENO"; then :
3912   ac_cv_prog_cxx_g=yes
3913 fi
3914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3915 fi
3916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3917 fi
3918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3919    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3920 fi
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3922 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3923 if test "$ac_test_CXXFLAGS" = set; then
3924   CXXFLAGS=$ac_save_CXXFLAGS
3925 elif test $ac_cv_prog_cxx_g = yes; then
3926   if test "$GXX" = yes; then
3927     CXXFLAGS="-g -O2"
3928   else
3929     CXXFLAGS="-g"
3930   fi
3931 else
3932   if test "$GXX" = yes; then
3933     CXXFLAGS="-O2"
3934   else
3935     CXXFLAGS=
3936   fi
3937 fi
3938 ac_ext=c
3939 ac_cpp='$CPP $CPPFLAGS'
3940 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3941 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3942 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3943
3944 if test -n "$ac_tool_prefix"; then
3945   # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
3946 set dummy ${ac_tool_prefix}cpp; ac_word=$2
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3948 $as_echo_n "checking for $ac_word... " >&6; }
3949 if test "${ac_cv_prog_CPPBIN+set}" = set; then :
3950   $as_echo_n "(cached) " >&6
3951 else
3952   if test -n "$CPPBIN"; then
3953   ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test.
3954 else
3955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3956 for as_dir in $PATH
3957 do
3958   IFS=$as_save_IFS
3959   test -z "$as_dir" && as_dir=.
3960     for ac_exec_ext in '' $ac_executable_extensions; do
3961   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3962     ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp"
3963     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3964     break 2
3965   fi
3966 done
3967   done
3968 IFS=$as_save_IFS
3969
3970 fi
3971 fi
3972 CPPBIN=$ac_cv_prog_CPPBIN
3973 if test -n "$CPPBIN"; then
3974   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPPBIN" >&5
3975 $as_echo "$CPPBIN" >&6; }
3976 else
3977   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3978 $as_echo "no" >&6; }
3979 fi
3980
3981
3982 fi
3983 if test -z "$ac_cv_prog_CPPBIN"; then
3984   ac_ct_CPPBIN=$CPPBIN
3985   # Extract the first word of "cpp", so it can be a program name with args.
3986 set dummy cpp; ac_word=$2
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3988 $as_echo_n "checking for $ac_word... " >&6; }
3989 if test "${ac_cv_prog_ac_ct_CPPBIN+set}" = set; then :
3990   $as_echo_n "(cached) " >&6
3991 else
3992   if test -n "$ac_ct_CPPBIN"; then
3993   ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test.
3994 else
3995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3996 for as_dir in $PATH
3997 do
3998   IFS=$as_save_IFS
3999   test -z "$as_dir" && as_dir=.
4000     for ac_exec_ext in '' $ac_executable_extensions; do
4001   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4002     ac_cv_prog_ac_ct_CPPBIN="cpp"
4003     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4004     break 2
4005   fi
4006 done
4007   done
4008 IFS=$as_save_IFS
4009
4010 fi
4011 fi
4012 ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN
4013 if test -n "$ac_ct_CPPBIN"; then
4014   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CPPBIN" >&5
4015 $as_echo "$ac_ct_CPPBIN" >&6; }
4016 else
4017   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4018 $as_echo "no" >&6; }
4019 fi
4020
4021   if test "x$ac_ct_CPPBIN" = x; then
4022     CPPBIN="cpp"
4023   else
4024     case $cross_compiling:$ac_tool_warned in
4025 yes:)
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4027 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4028 ac_tool_warned=yes ;;
4029 esac
4030     CPPBIN=$ac_ct_CPPBIN
4031   fi
4032 else
4033   CPPBIN="$ac_cv_prog_CPPBIN"
4034 fi
4035
4036
4037 cat >>confdefs.h <<_ACEOF
4038 #define EXEEXT "$ac_exeext"
4039 _ACEOF
4040
4041
4042 case $host in
4043   *-darwin*)
4044     if test "x$enable_win64" = "xyes"
4045     then
4046       CC="$CC -m64"
4047       CXX="$CXX -m64"
4048       LD="${LD:-ld} -arch x86_64"
4049       AS="${AS:-as} -arch x86_64"
4050       host_cpu="x86_64"
4051       notice_platform="64-bit "
4052       TARGETFLAGS="-m64"
4053
4054     else
4055       CC="$CC -m32"
4056       CXX="$CXX -m32"
4057       LD="${LD:-ld} -arch i386"
4058       AS="${AS:-as} -arch i386"
4059       host_cpu="i386"
4060       notice_platform="32-bit "
4061       TARGETFLAGS="-m32"
4062
4063       enable_win16=${enable_win16:-yes}
4064     fi
4065     ;;
4066   x86_64*)
4067     if test "x$enable_win64" != "xyes" -a "$cross_compiling" != "yes"
4068     then
4069       CC="$CC -m32"
4070       CXX="$CXX -m32"
4071       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC works" >&5
4072 $as_echo_n "checking whether $CC works... " >&6; }
4073
4074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4075 /* end confdefs.h.  */
4076
4077 int
4078 main ()
4079 {
4080
4081   ;
4082   return 0;
4083 }
4084 _ACEOF
4085 if ac_fn_c_try_link "$LINENO"; then :
4086   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4087 $as_echo "yes" >&6; }
4088 else
4089   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4090 $as_echo "no" >&6; }
4091                       as_fn_error $? "Cannot build a 32-bit program, you need to install 32-bit development libraries." "$LINENO" 5
4092 fi
4093 rm -f core conftest.err conftest.$ac_objext \
4094     conftest$ac_exeext conftest.$ac_ext
4095       LD="${LD:-ld} -m elf_i386"
4096       AS="${AS:-as} --32"
4097       host_cpu="i386"
4098       notice_platform="32-bit "
4099       TARGETFLAGS="-m32"
4100
4101       enable_win16=${enable_win16:-yes}
4102     else
4103       if test "x${GCC}" = "xyes"
4104       then
4105         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports __builtin_ms_va_list" >&5
4106 $as_echo_n "checking whether $CC supports __builtin_ms_va_list... " >&6; }
4107         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4108 /* end confdefs.h.  */
4109 #include <stdarg.h>
4110 int
4111 main ()
4112 {
4113 void func(__builtin_ms_va_list *args);
4114   ;
4115   return 0;
4116 }
4117 _ACEOF
4118 if ac_fn_c_try_compile "$LINENO"; then :
4119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4120 $as_echo "yes" >&6; }
4121 else
4122   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4123 $as_echo "no" >&6; }
4124                            as_fn_error $? "You need gcc >= 4.4 to build Wine as 64-bit." "$LINENO" 5
4125 fi
4126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4127       fi
4128       TARGETFLAGS="-m64"
4129
4130     fi
4131     ;;
4132   *-mingw32*|*-cygwin*)
4133     enable_win16=${enable_win16:-no}
4134     CFLAGS="$CFLAGS -D_WIN32"
4135     ;;
4136   i[3456789]86*)
4137     enable_win16=${enable_win16:-yes}
4138     ;;
4139 esac
4140
4141 enable_win16=${enable_win16:-no}
4142
4143 enable_winetest=${enable_winetest:-$enable_tests}
4144
4145 if test -n "$with_wine64"
4146 then
4147     if test "x$enable_win64" = "xyes"
4148     then
4149         as_fn_error $? "--enable-win64 and --with-wine64 are mutually exclusive.
4150 --enable-win64 should be used in the 64-bit build tree, --with-wine64 in the 32-bit Wow64 build tree." "$LINENO" 5
4151     fi
4152     WOW64_DISABLE=\#
4153
4154     enable_fonts=${enable_fonts:-no}
4155     enable_server=${enable_server:-no}
4156     enable_tools=${enable_tools:-no}
4157 elif test "x$enable_win64" = "xyes"
4158 then
4159     test "x$libdir" != "x\${exec_prefix}/lib" || libdir="\${exec_prefix}/lib64"
4160 fi
4161
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the directory containing the Wine tools" >&5
4163 $as_echo_n "checking for the directory containing the Wine tools... " >&6; }
4164 if test "${wine_cv_toolsdir+set}" = set; then :
4165   $as_echo_n "(cached) " >&6
4166 else
4167   wine_cv_toolsdir="$with_wine_tools"
4168    if test -z "$with_wine_tools"; then
4169      if test "$cross_compiling" = "yes"; then
4170        as_fn_error $? "you must use the --with-wine-tools option when cross-compiling." "$LINENO" 5
4171      elif test -n "$with_wine64"; then
4172        wine_cv_toolsdir="$with_wine64"
4173      fi
4174    fi
4175    if test -z "$wine_cv_toolsdir"; then
4176      wine_cv_toolsdir="\$(top_builddir)"
4177    elif test -d "$wine_cv_toolsdir/tools/winebuild"; then
4178      case "$wine_cv_toolsdir" in
4179        /*) ;;
4180        *)  wine_cv_toolsdir="\$(top_builddir)/$wine_cv_toolsdir" ;;
4181      esac
4182    else
4183      as_fn_error $? "could not find Wine tools in $wine_cv_toolsdir" "$LINENO" 5
4184    fi
4185 fi
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_toolsdir" >&5
4187 $as_echo "$wine_cv_toolsdir" >&6; }
4188 TOOLSDIR=$wine_cv_toolsdir
4189
4190 if test -n "$host_alias" -a "$host_alias" != "$build_alias"
4191 then
4192     TARGETFLAGS="-b $host_alias $TARGETFLAGS"
4193
4194 fi
4195
4196 for ac_prog in flex
4197 do
4198   # Extract the first word of "$ac_prog", so it can be a program name with args.
4199 set dummy $ac_prog; ac_word=$2
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4201 $as_echo_n "checking for $ac_word... " >&6; }
4202 if test "${ac_cv_prog_FLEX+set}" = set; then :
4203   $as_echo_n "(cached) " >&6
4204 else
4205   if test -n "$FLEX"; then
4206   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
4207 else
4208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4209 for as_dir in $PATH
4210 do
4211   IFS=$as_save_IFS
4212   test -z "$as_dir" && as_dir=.
4213     for ac_exec_ext in '' $ac_executable_extensions; do
4214   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4215     ac_cv_prog_FLEX="$ac_prog"
4216     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4217     break 2
4218   fi
4219 done
4220   done
4221 IFS=$as_save_IFS
4222
4223 fi
4224 fi
4225 FLEX=$ac_cv_prog_FLEX
4226 if test -n "$FLEX"; then
4227   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
4228 $as_echo "$FLEX" >&6; }
4229 else
4230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4231 $as_echo "no" >&6; }
4232 fi
4233
4234
4235   test -n "$FLEX" && break
4236 done
4237 test -n "$FLEX" || FLEX="none"
4238
4239 if test "$FLEX" = "none"
4240 then
4241   as_fn_error $? "no suitable flex found. Please install the 'flex' package." "$LINENO" 5
4242 fi
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether flex is recent enough" >&5
4244 $as_echo_n "checking whether flex is recent enough... " >&6; }
4245 cat >conftest.l <<EOF
4246 %top{
4247 #include "prediluvian.h"
4248 }
4249 %%
4250 EOF
4251 if $FLEX -t conftest.l >/dev/null 2>&5
4252 then
4253   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4254 $as_echo "yes" >&6; }
4255 else
4256   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4257 $as_echo "no" >&6; }
4258   as_fn_error $? "Your flex version is too old. Please install flex version 2.5.33 or newer." "$LINENO" 5
4259 fi
4260
4261 for ac_prog in bison
4262 do
4263   # Extract the first word of "$ac_prog", so it can be a program name with args.
4264 set dummy $ac_prog; ac_word=$2
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4266 $as_echo_n "checking for $ac_word... " >&6; }
4267 if test "${ac_cv_prog_BISON+set}" = set; then :
4268   $as_echo_n "(cached) " >&6
4269 else
4270   if test -n "$BISON"; then
4271   ac_cv_prog_BISON="$BISON" # Let the user override the test.
4272 else
4273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4274 for as_dir in $PATH
4275 do
4276   IFS=$as_save_IFS
4277   test -z "$as_dir" && as_dir=.
4278     for ac_exec_ext in '' $ac_executable_extensions; do
4279   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4280     ac_cv_prog_BISON="$ac_prog"
4281     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4282     break 2
4283   fi
4284 done
4285   done
4286 IFS=$as_save_IFS
4287
4288 fi
4289 fi
4290 BISON=$ac_cv_prog_BISON
4291 if test -n "$BISON"; then
4292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
4293 $as_echo "$BISON" >&6; }
4294 else
4295   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4296 $as_echo "no" >&6; }
4297 fi
4298
4299
4300   test -n "$BISON" && break
4301 done
4302 test -n "$BISON" || BISON="none"
4303
4304 if test "$BISON" = "none"
4305 then
4306   as_fn_error $? "no suitable bison found. Please install the 'bison' package." "$LINENO" 5
4307 fi
4308
4309 if test -n "$ac_tool_prefix"; then
4310   for ac_prog in ar gar
4311   do
4312     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4313 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4315 $as_echo_n "checking for $ac_word... " >&6; }
4316 if test "${ac_cv_prog_AR+set}" = set; then :
4317   $as_echo_n "(cached) " >&6
4318 else
4319   if test -n "$AR"; then
4320   ac_cv_prog_AR="$AR" # Let the user override the test.
4321 else
4322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4323 for as_dir in $PATH
4324 do
4325   IFS=$as_save_IFS
4326   test -z "$as_dir" && as_dir=.
4327     for ac_exec_ext in '' $ac_executable_extensions; do
4328   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4329     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4330     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4331     break 2
4332   fi
4333 done
4334   done
4335 IFS=$as_save_IFS
4336
4337 fi
4338 fi
4339 AR=$ac_cv_prog_AR
4340 if test -n "$AR"; then
4341   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4342 $as_echo "$AR" >&6; }
4343 else
4344   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4345 $as_echo "no" >&6; }
4346 fi
4347
4348
4349     test -n "$AR" && break
4350   done
4351 fi
4352 if test -z "$AR"; then
4353   ac_ct_AR=$AR
4354   for ac_prog in ar gar
4355 do
4356   # Extract the first word of "$ac_prog", so it can be a program name with args.
4357 set dummy $ac_prog; ac_word=$2
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4359 $as_echo_n "checking for $ac_word... " >&6; }
4360 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4361   $as_echo_n "(cached) " >&6
4362 else
4363   if test -n "$ac_ct_AR"; then
4364   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4365 else
4366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4367 for as_dir in $PATH
4368 do
4369   IFS=$as_save_IFS
4370   test -z "$as_dir" && as_dir=.
4371     for ac_exec_ext in '' $ac_executable_extensions; do
4372   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4373     ac_cv_prog_ac_ct_AR="$ac_prog"
4374     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4375     break 2
4376   fi
4377 done
4378   done
4379 IFS=$as_save_IFS
4380
4381 fi
4382 fi
4383 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4384 if test -n "$ac_ct_AR"; then
4385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4386 $as_echo "$ac_ct_AR" >&6; }
4387 else
4388   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4389 $as_echo "no" >&6; }
4390 fi
4391
4392
4393   test -n "$ac_ct_AR" && break
4394 done
4395
4396   if test "x$ac_ct_AR" = x; then
4397     AR="ar"
4398   else
4399     case $cross_compiling:$ac_tool_warned in
4400 yes:)
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4402 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4403 ac_tool_warned=yes ;;
4404 esac
4405     AR=$ac_ct_AR
4406   fi
4407 fi
4408
4409 ARFLAGS=rc
4410
4411 if test -n "$ac_tool_prefix"; then
4412   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4413 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4415 $as_echo_n "checking for $ac_word... " >&6; }
4416 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4417   $as_echo_n "(cached) " >&6
4418 else
4419   if test -n "$RANLIB"; then
4420   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4421 else
4422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4423 for as_dir in $PATH
4424 do
4425   IFS=$as_save_IFS
4426   test -z "$as_dir" && as_dir=.
4427     for ac_exec_ext in '' $ac_executable_extensions; do
4428   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4429     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4430     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4431     break 2
4432   fi
4433 done
4434   done
4435 IFS=$as_save_IFS
4436
4437 fi
4438 fi
4439 RANLIB=$ac_cv_prog_RANLIB
4440 if test -n "$RANLIB"; then
4441   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4442 $as_echo "$RANLIB" >&6; }
4443 else
4444   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4445 $as_echo "no" >&6; }
4446 fi
4447
4448
4449 fi
4450 if test -z "$ac_cv_prog_RANLIB"; then
4451   ac_ct_RANLIB=$RANLIB
4452   # Extract the first word of "ranlib", so it can be a program name with args.
4453 set dummy ranlib; ac_word=$2
4454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4455 $as_echo_n "checking for $ac_word... " >&6; }
4456 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4457   $as_echo_n "(cached) " >&6
4458 else
4459   if test -n "$ac_ct_RANLIB"; then
4460   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4461 else
4462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4463 for as_dir in $PATH
4464 do
4465   IFS=$as_save_IFS
4466   test -z "$as_dir" && as_dir=.
4467     for ac_exec_ext in '' $ac_executable_extensions; do
4468   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4469     ac_cv_prog_ac_ct_RANLIB="ranlib"
4470     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4471     break 2
4472   fi
4473 done
4474   done
4475 IFS=$as_save_IFS
4476
4477 fi
4478 fi
4479 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4480 if test -n "$ac_ct_RANLIB"; then
4481   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4482 $as_echo "$ac_ct_RANLIB" >&6; }
4483 else
4484   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4485 $as_echo "no" >&6; }
4486 fi
4487
4488   if test "x$ac_ct_RANLIB" = x; then
4489     RANLIB=":"
4490   else
4491     case $cross_compiling:$ac_tool_warned in
4492 yes:)
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4494 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4495 ac_tool_warned=yes ;;
4496 esac
4497     RANLIB=$ac_ct_RANLIB
4498   fi
4499 else
4500   RANLIB="$ac_cv_prog_RANLIB"
4501 fi
4502
4503 if test -n "$ac_tool_prefix"; then
4504   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4505 set dummy ${ac_tool_prefix}strip; ac_word=$2
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4507 $as_echo_n "checking for $ac_word... " >&6; }
4508 if test "${ac_cv_prog_STRIP+set}" = set; then :
4509   $as_echo_n "(cached) " >&6
4510 else
4511   if test -n "$STRIP"; then
4512   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4513 else
4514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4515 for as_dir in $PATH
4516 do
4517   IFS=$as_save_IFS
4518   test -z "$as_dir" && as_dir=.
4519     for ac_exec_ext in '' $ac_executable_extensions; do
4520   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4521     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4522     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4523     break 2
4524   fi
4525 done
4526   done
4527 IFS=$as_save_IFS
4528
4529 fi
4530 fi
4531 STRIP=$ac_cv_prog_STRIP
4532 if test -n "$STRIP"; then
4533   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4534 $as_echo "$STRIP" >&6; }
4535 else
4536   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4537 $as_echo "no" >&6; }
4538 fi
4539
4540
4541 fi
4542 if test -z "$ac_cv_prog_STRIP"; then
4543   ac_ct_STRIP=$STRIP
4544   # Extract the first word of "strip", so it can be a program name with args.
4545 set dummy strip; ac_word=$2
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4547 $as_echo_n "checking for $ac_word... " >&6; }
4548 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4549   $as_echo_n "(cached) " >&6
4550 else
4551   if test -n "$ac_ct_STRIP"; then
4552   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4553 else
4554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4555 for as_dir in $PATH
4556 do
4557   IFS=$as_save_IFS
4558   test -z "$as_dir" && as_dir=.
4559     for ac_exec_ext in '' $ac_executable_extensions; do
4560   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4561     ac_cv_prog_ac_ct_STRIP="strip"
4562     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4563     break 2
4564   fi
4565 done
4566   done
4567 IFS=$as_save_IFS
4568
4569 fi
4570 fi
4571 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4572 if test -n "$ac_ct_STRIP"; then
4573   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4574 $as_echo "$ac_ct_STRIP" >&6; }
4575 else
4576   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4577 $as_echo "no" >&6; }
4578 fi
4579
4580   if test "x$ac_ct_STRIP" = x; then
4581     STRIP="strip"
4582   else
4583     case $cross_compiling:$ac_tool_warned in
4584 yes:)
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4586 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4587 ac_tool_warned=yes ;;
4588 esac
4589     STRIP=$ac_ct_STRIP
4590   fi
4591 else
4592   STRIP="$ac_cv_prog_STRIP"
4593 fi
4594
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4596 $as_echo_n "checking whether ln -s works... " >&6; }
4597 LN_S=$as_ln_s
4598 if test "$LN_S" = "ln -s"; then
4599   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4600 $as_echo "yes" >&6; }
4601 else
4602   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4603 $as_echo "no, using $LN_S" >&6; }
4604 fi
4605
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4607 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4608 if test "${ac_cv_path_GREP+set}" = set; then :
4609   $as_echo_n "(cached) " >&6
4610 else
4611   if test -z "$GREP"; then
4612   ac_path_GREP_found=false
4613   # Loop through the user's path and test for each of PROGNAME-LIST
4614   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4615 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4616 do
4617   IFS=$as_save_IFS
4618   test -z "$as_dir" && as_dir=.
4619     for ac_prog in grep ggrep; do
4620     for ac_exec_ext in '' $ac_executable_extensions; do
4621       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4622       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4623 # Check for GNU ac_path_GREP and select it if it is found.
4624   # Check for GNU $ac_path_GREP
4625 case `"$ac_path_GREP" --version 2>&1` in
4626 *GNU*)
4627   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4628 *)
4629   ac_count=0
4630   $as_echo_n 0123456789 >"conftest.in"
4631   while :
4632   do
4633     cat "conftest.in" "conftest.in" >"conftest.tmp"
4634     mv "conftest.tmp" "conftest.in"
4635     cp "conftest.in" "conftest.nl"
4636     $as_echo 'GREP' >> "conftest.nl"
4637     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4638     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4639     as_fn_arith $ac_count + 1 && ac_count=$as_val
4640     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4641       # Best one so far, save it but keep looking for a better one
4642       ac_cv_path_GREP="$ac_path_GREP"
4643       ac_path_GREP_max=$ac_count
4644     fi
4645     # 10*(2^10) chars as input seems more than enough
4646     test $ac_count -gt 10 && break
4647   done
4648   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4649 esac
4650
4651       $ac_path_GREP_found && break 3
4652     done
4653   done
4654   done
4655 IFS=$as_save_IFS
4656   if test -z "$ac_cv_path_GREP"; then
4657     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4658   fi
4659 else
4660   ac_cv_path_GREP=$GREP
4661 fi
4662
4663 fi
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4665 $as_echo "$ac_cv_path_GREP" >&6; }
4666  GREP="$ac_cv_path_GREP"
4667
4668
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4670 $as_echo_n "checking for egrep... " >&6; }
4671 if test "${ac_cv_path_EGREP+set}" = set; then :
4672   $as_echo_n "(cached) " >&6
4673 else
4674   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4675    then ac_cv_path_EGREP="$GREP -E"
4676    else
4677      if test -z "$EGREP"; then
4678   ac_path_EGREP_found=false
4679   # Loop through the user's path and test for each of PROGNAME-LIST
4680   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4681 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4682 do
4683   IFS=$as_save_IFS
4684   test -z "$as_dir" && as_dir=.
4685     for ac_prog in egrep; do
4686     for ac_exec_ext in '' $ac_executable_extensions; do
4687       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4688       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4689 # Check for GNU ac_path_EGREP and select it if it is found.
4690   # Check for GNU $ac_path_EGREP
4691 case `"$ac_path_EGREP" --version 2>&1` in
4692 *GNU*)
4693   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4694 *)
4695   ac_count=0
4696   $as_echo_n 0123456789 >"conftest.in"
4697   while :
4698   do
4699     cat "conftest.in" "conftest.in" >"conftest.tmp"
4700     mv "conftest.tmp" "conftest.in"
4701     cp "conftest.in" "conftest.nl"
4702     $as_echo 'EGREP' >> "conftest.nl"
4703     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4704     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4705     as_fn_arith $ac_count + 1 && ac_count=$as_val
4706     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4707       # Best one so far, save it but keep looking for a better one
4708       ac_cv_path_EGREP="$ac_path_EGREP"
4709       ac_path_EGREP_max=$ac_count
4710     fi
4711     # 10*(2^10) chars as input seems more than enough
4712     test $ac_count -gt 10 && break
4713   done
4714   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4715 esac
4716
4717       $ac_path_EGREP_found && break 3
4718     done
4719   done
4720   done
4721 IFS=$as_save_IFS
4722   if test -z "$ac_cv_path_EGREP"; then
4723     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4724   fi
4725 else
4726   ac_cv_path_EGREP=$EGREP
4727 fi
4728
4729    fi
4730 fi
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4732 $as_echo "$ac_cv_path_EGREP" >&6; }
4733  EGREP="$ac_cv_path_EGREP"
4734
4735
4736 # Extract the first word of "ldconfig", so it can be a program name with args.
4737 set dummy ldconfig; ac_word=$2
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4739 $as_echo_n "checking for $ac_word... " >&6; }
4740 if test "${ac_cv_path_LDCONFIG+set}" = set; then :
4741   $as_echo_n "(cached) " >&6
4742 else
4743   case $LDCONFIG in
4744   [\\/]* | ?:[\\/]*)
4745   ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
4746   ;;
4747   *)
4748   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4749 for as_dir in /sbin /usr/sbin $PATH
4750 do
4751   IFS=$as_save_IFS
4752   test -z "$as_dir" && as_dir=.
4753     for ac_exec_ext in '' $ac_executable_extensions; do
4754   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4755     ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
4756     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4757     break 2
4758   fi
4759 done
4760   done
4761 IFS=$as_save_IFS
4762
4763   test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
4764   ;;
4765 esac
4766 fi
4767 LDCONFIG=$ac_cv_path_LDCONFIG
4768 if test -n "$LDCONFIG"; then
4769   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
4770 $as_echo "$LDCONFIG" >&6; }
4771 else
4772   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4773 $as_echo "no" >&6; }
4774 fi
4775
4776
4777 # Find a good install program.  We prefer a C program (faster),
4778 # so one script is as good as another.  But avoid the broken or
4779 # incompatible versions:
4780 # SysV /etc/install, /usr/sbin/install
4781 # SunOS /usr/etc/install
4782 # IRIX /sbin/install
4783 # AIX /bin/install
4784 # AmigaOS /C/install, which installs bootblocks on floppy discs
4785 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4786 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4787 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4788 # OS/2's system install, which has a completely different semantic
4789 # ./install, which can be erroneously created by make from ./install.sh.
4790 # Reject install programs that cannot install multiple files.
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4792 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4793 if test -z "$INSTALL"; then
4794 if test "${ac_cv_path_install+set}" = set; then :
4795   $as_echo_n "(cached) " >&6
4796 else
4797   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4798 for as_dir in $PATH
4799 do
4800   IFS=$as_save_IFS
4801   test -z "$as_dir" && as_dir=.
4802     # Account for people who put trailing slashes in PATH elements.
4803 case $as_dir/ in #((
4804   ./ | .// | /[cC]/* | \
4805   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4806   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4807   /usr/ucb/* ) ;;
4808   *)
4809     # OSF1 and SCO ODT 3.0 have their own names for install.
4810     # Don't use installbsd from OSF since it installs stuff as root
4811     # by default.
4812     for ac_prog in ginstall scoinst install; do
4813       for ac_exec_ext in '' $ac_executable_extensions; do
4814         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4815           if test $ac_prog = install &&
4816             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4817             # AIX install.  It has an incompatible calling convention.
4818             :
4819           elif test $ac_prog = install &&
4820             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4821             # program-specific install script used by HP pwplus--don't use.
4822             :
4823           else
4824             rm -rf conftest.one conftest.two conftest.dir
4825             echo one > conftest.one
4826             echo two > conftest.two
4827             mkdir conftest.dir
4828             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4829               test -s conftest.one && test -s conftest.two &&
4830               test -s conftest.dir/conftest.one &&
4831               test -s conftest.dir/conftest.two
4832             then
4833               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4834               break 3
4835             fi
4836           fi
4837         fi
4838       done
4839     done
4840     ;;
4841 esac
4842
4843   done
4844 IFS=$as_save_IFS
4845
4846 rm -rf conftest.one conftest.two conftest.dir
4847
4848 fi
4849   if test "${ac_cv_path_install+set}" = set; then
4850     INSTALL=$ac_cv_path_install
4851   else
4852     # As a last resort, use the slow shell script.  Don't cache a
4853     # value for INSTALL within a source directory, because that will
4854     # break other packages using the cache if that directory is
4855     # removed, or if the value is a relative name.
4856     INSTALL=$ac_install_sh
4857   fi
4858 fi
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4860 $as_echo "$INSTALL" >&6; }
4861
4862 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4863 # It thinks the first close brace ends the variable substitution.
4864 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4865
4866 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4867
4868 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4869
4870 case "$INSTALL" in
4871   [\\/$]* | ?:[\\/]* ) ;;
4872   *)  INSTALL="\\\$(top_srcdir)/$INSTALL" ;;
4873 esac
4874
4875 for ac_prog in lclint lint
4876 do
4877   # Extract the first word of "$ac_prog", so it can be a program name with args.
4878 set dummy $ac_prog; ac_word=$2
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4880 $as_echo_n "checking for $ac_word... " >&6; }
4881 if test "${ac_cv_prog_LINT+set}" = set; then :
4882   $as_echo_n "(cached) " >&6
4883 else
4884   if test -n "$LINT"; then
4885   ac_cv_prog_LINT="$LINT" # Let the user override the test.
4886 else
4887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4888 for as_dir in $PATH
4889 do
4890   IFS=$as_save_IFS
4891   test -z "$as_dir" && as_dir=.
4892     for ac_exec_ext in '' $ac_executable_extensions; do
4893   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4894     ac_cv_prog_LINT="$ac_prog"
4895     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4896     break 2
4897   fi
4898 done
4899   done
4900 IFS=$as_save_IFS
4901
4902 fi
4903 fi
4904 LINT=$ac_cv_prog_LINT
4905 if test -n "$LINT"; then
4906   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
4907 $as_echo "$LINT" >&6; }
4908 else
4909   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4910 $as_echo "no" >&6; }
4911 fi
4912
4913
4914   test -n "$LINT" && break
4915 done
4916
4917 if test "$LINT" = "lint"
4918 then
4919   LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
4920   fi
4921
4922
4923
4924 for ac_prog in fontforge
4925 do
4926   # Extract the first word of "$ac_prog", so it can be a program name with args.
4927 set dummy $ac_prog; ac_word=$2
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4929 $as_echo_n "checking for $ac_word... " >&6; }
4930 if test "${ac_cv_prog_FONTFORGE+set}" = set; then :
4931   $as_echo_n "(cached) " >&6
4932 else
4933   if test -n "$FONTFORGE"; then
4934   ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
4935 else
4936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4937 for as_dir in $PATH
4938 do
4939   IFS=$as_save_IFS
4940   test -z "$as_dir" && as_dir=.
4941     for ac_exec_ext in '' $ac_executable_extensions; do
4942   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4943     ac_cv_prog_FONTFORGE="$ac_prog"
4944     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4945     break 2
4946   fi
4947 done
4948   done
4949 IFS=$as_save_IFS
4950
4951 fi
4952 fi
4953 FONTFORGE=$ac_cv_prog_FONTFORGE
4954 if test -n "$FONTFORGE"; then
4955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTFORGE" >&5
4956 $as_echo "$FONTFORGE" >&6; }
4957 else
4958   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4959 $as_echo "no" >&6; }
4960 fi
4961
4962
4963   test -n "$FONTFORGE" && break
4964 done
4965 test -n "$FONTFORGE" || FONTFORGE="false"
4966
4967 for ac_prog in pkg-config
4968 do
4969   # Extract the first word of "$ac_prog", so it can be a program name with args.
4970 set dummy $ac_prog; ac_word=$2
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4972 $as_echo_n "checking for $ac_word... " >&6; }
4973 if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then :
4974   $as_echo_n "(cached) " >&6
4975 else
4976   if test -n "$PKG_CONFIG"; then
4977   ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
4978 else
4979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4980 for as_dir in $PATH
4981 do
4982   IFS=$as_save_IFS
4983   test -z "$as_dir" && as_dir=.
4984     for ac_exec_ext in '' $ac_executable_extensions; do
4985   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4986     ac_cv_prog_PKG_CONFIG="$ac_prog"
4987     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4988     break 2
4989   fi
4990 done
4991   done
4992 IFS=$as_save_IFS
4993
4994 fi
4995 fi
4996 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
4997 if test -n "$PKG_CONFIG"; then
4998   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4999 $as_echo "$PKG_CONFIG" >&6; }
5000 else
5001   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5002 $as_echo "no" >&6; }
5003 fi
5004
5005
5006   test -n "$PKG_CONFIG" && break
5007 done
5008 test -n "$PKG_CONFIG" || PKG_CONFIG="false"
5009
5010 for ac_prog in rsvg
5011 do
5012   # Extract the first word of "$ac_prog", so it can be a program name with args.
5013 set dummy $ac_prog; ac_word=$2
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5015 $as_echo_n "checking for $ac_word... " >&6; }
5016 if test "${ac_cv_prog_RSVG+set}" = set; then :
5017   $as_echo_n "(cached) " >&6
5018 else
5019   if test -n "$RSVG"; then
5020   ac_cv_prog_RSVG="$RSVG" # Let the user override the test.
5021 else
5022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5023 for as_dir in $PATH
5024 do
5025   IFS=$as_save_IFS
5026   test -z "$as_dir" && as_dir=.
5027     for ac_exec_ext in '' $ac_executable_extensions; do
5028   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5029     ac_cv_prog_RSVG="$ac_prog"
5030     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5031     break 2
5032   fi
5033 done
5034   done
5035 IFS=$as_save_IFS
5036
5037 fi
5038 fi
5039 RSVG=$ac_cv_prog_RSVG
5040 if test -n "$RSVG"; then
5041   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG" >&5
5042 $as_echo "$RSVG" >&6; }
5043 else
5044   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5045 $as_echo "no" >&6; }
5046 fi
5047
5048
5049   test -n "$RSVG" && break
5050 done
5051 test -n "$RSVG" || RSVG="false"
5052
5053 for ac_prog in convert
5054 do
5055   # Extract the first word of "$ac_prog", so it can be a program name with args.
5056 set dummy $ac_prog; ac_word=$2
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5058 $as_echo_n "checking for $ac_word... " >&6; }
5059 if test "${ac_cv_prog_CONVERT+set}" = set; then :
5060   $as_echo_n "(cached) " >&6
5061 else
5062   if test -n "$CONVERT"; then
5063   ac_cv_prog_CONVERT="$CONVERT" # Let the user override the test.
5064 else
5065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5066 for as_dir in $PATH
5067 do
5068   IFS=$as_save_IFS
5069   test -z "$as_dir" && as_dir=.
5070     for ac_exec_ext in '' $ac_executable_extensions; do
5071   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5072     ac_cv_prog_CONVERT="$ac_prog"
5073     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5074     break 2
5075   fi
5076 done
5077   done
5078 IFS=$as_save_IFS
5079
5080 fi
5081 fi
5082 CONVERT=$ac_cv_prog_CONVERT
5083 if test -n "$CONVERT"; then
5084   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONVERT" >&5
5085 $as_echo "$CONVERT" >&6; }
5086 else
5087   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5088 $as_echo "no" >&6; }
5089 fi
5090
5091
5092   test -n "$CONVERT" && break
5093 done
5094 test -n "$CONVERT" || CONVERT="false"
5095
5096 for ac_prog in icotool
5097 do
5098   # Extract the first word of "$ac_prog", so it can be a program name with args.
5099 set dummy $ac_prog; ac_word=$2
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5101 $as_echo_n "checking for $ac_word... " >&6; }
5102 if test "${ac_cv_prog_ICOTOOL+set}" = set; then :
5103   $as_echo_n "(cached) " >&6
5104 else
5105   if test -n "$ICOTOOL"; then
5106   ac_cv_prog_ICOTOOL="$ICOTOOL" # Let the user override the test.
5107 else
5108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5109 for as_dir in $PATH
5110 do
5111   IFS=$as_save_IFS
5112   test -z "$as_dir" && as_dir=.
5113     for ac_exec_ext in '' $ac_executable_extensions; do
5114   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5115     ac_cv_prog_ICOTOOL="$ac_prog"
5116     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5117     break 2
5118   fi
5119 done
5120   done
5121 IFS=$as_save_IFS
5122
5123 fi
5124 fi
5125 ICOTOOL=$ac_cv_prog_ICOTOOL
5126 if test -n "$ICOTOOL"; then
5127   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICOTOOL" >&5
5128 $as_echo "$ICOTOOL" >&6; }
5129 else
5130   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5131 $as_echo "no" >&6; }
5132 fi
5133
5134
5135   test -n "$ICOTOOL" && break
5136 done
5137 test -n "$ICOTOOL" || ICOTOOL="false"
5138
5139
5140 if test "x$enable_maintainer_mode" != "xyes"
5141 then
5142   MAINTAINER_MODE=\#
5143
5144 else
5145   if test "$FONTFORGE" = "false"; then as_fn_error $? "You need fontforge to rebuild fonts in maintainer mode." "$LINENO" 5 ; fi
5146   if test "$RSVG" = "false"; then as_fn_error $? "You need rsvg to rebuild icons in maintainer mode." "$LINENO" 5 ; fi
5147
5148     if test "$CONVERT" = false
5149   then
5150     as_fn_error $? "You need imagemagick to rebuild icons in maintainer mode." "$LINENO" 5
5151   else
5152     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough imagemagick" >&5
5153 $as_echo_n "checking for recent enough imagemagick... " >&6; }
5154     convert_version=`convert --version | head -n1`
5155     if test "x$convert_version" != "x"
5156     then
5157       convert_version_major=`expr "$convert_version" : '.* \([0-9]*\)\.[0-9]*'`
5158       convert_version_minor=`expr "$convert_version" : '.* [0-9]*\.\([0-9]*\)'`
5159       if test "$convert_version_major" -eq 6 -a "$convert_version_minor" -lt 6
5160       then
5161         CONVERT=false
5162       fi
5163     fi
5164     if test "$CONVERT" = false
5165     then
5166       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($convert_version_major.$convert_version_minor)" >&5
5167 $as_echo "no ($convert_version_major.$convert_version_minor)" >&6; }
5168       as_fn_error $? "You need imagemagick version 6.6 or newer to rebuild icons in maintainer mode." "$LINENO" 5
5169     else
5170       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($convert_version_major.$convert_version_minor)" >&5
5171 $as_echo "yes ($convert_version_major.$convert_version_minor)" >&6; }
5172     fi
5173   fi
5174
5175     if test "$ICOTOOL" = false
5176   then
5177     as_fn_error $? "You need icotool to rebuild icons in maintainer mode." "$LINENO" 5
5178   else
5179     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough icotool" >&5
5180 $as_echo_n "checking for recent enough icotool... " >&6; }
5181     icotool_version=`icotool --version | head -n1`
5182     if test "x$icotool_version" != "x"
5183     then
5184       icotool_version_major=`expr "$icotool_version" : '.* \([0-9]*\)\.[0-9]*'`
5185       icotool_version_minor=`expr "$icotool_version" : '.* [0-9]*\.\([0-9]*\)'`
5186       if test "$icotool_version_major" -eq 0 -a "$icotool_version_minor" -lt 29
5187       then
5188         ICOTOOL=false
5189         as_fn_append wine_warnings "|icotool version 0.29.0 or newer is needed to rebuild icons."
5190       fi
5191     fi
5192     if test "$ICOTOOL" = false
5193     then
5194       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($icotool_version_major.$icotool_version_minor)" >&5
5195 $as_echo "no ($icotool_version_major.$icotool_version_minor)" >&6; }
5196       as_fn_error $? "You need icotool version 0.29.0 or newer to rebuild icons in maintainer mode." "$LINENO" 5
5197     else
5198       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($icotool_version_major.$icotool_version_minor)" >&5
5199 $as_echo "yes ($icotool_version_major.$icotool_version_minor)" >&6; }
5200     fi
5201   fi
5202
5203 fi
5204
5205
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for i386_set_ldt in -li386" >&5
5207 $as_echo_n "checking for i386_set_ldt in -li386... " >&6; }
5208 if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then :
5209   $as_echo_n "(cached) " >&6
5210 else
5211   ac_check_lib_save_LIBS=$LIBS
5212 LIBS="-li386  $LIBS"
5213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5214 /* end confdefs.h.  */
5215
5216 /* Override any GCC internal prototype to avoid an error.
5217    Use char because int might match the return type of a GCC
5218    builtin and then its argument prototype would still apply.  */
5219 #ifdef __cplusplus
5220 extern "C"
5221 #endif
5222 char i386_set_ldt ();
5223 int
5224 main ()
5225 {
5226 return i386_set_ldt ();
5227   ;
5228   return 0;
5229 }
5230 _ACEOF
5231 if ac_fn_c_try_link "$LINENO"; then :
5232   ac_cv_lib_i386_i386_set_ldt=yes
5233 else
5234   ac_cv_lib_i386_i386_set_ldt=no
5235 fi
5236 rm -f core conftest.err conftest.$ac_objext \
5237     conftest$ac_exeext conftest.$ac_ext
5238 LIBS=$ac_check_lib_save_LIBS
5239 fi
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_i386_i386_set_ldt" >&5
5241 $as_echo "$ac_cv_lib_i386_i386_set_ldt" >&6; }
5242 if test "x$ac_cv_lib_i386_i386_set_ldt" = x""yes; then :
5243   cat >>confdefs.h <<_ACEOF
5244 #define HAVE_LIBI386 1
5245 _ACEOF
5246
5247   LIBS="-li386 $LIBS"
5248
5249 fi
5250
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
5252 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
5253 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
5254   $as_echo_n "(cached) " >&6
5255 else
5256   ac_check_lib_save_LIBS=$LIBS
5257 LIBS="-lossaudio  $LIBS"
5258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5259 /* end confdefs.h.  */
5260
5261 /* Override any GCC internal prototype to avoid an error.
5262    Use char because int might match the return type of a GCC
5263    builtin and then its argument prototype would still apply.  */
5264 #ifdef __cplusplus
5265 extern "C"
5266 #endif
5267 char _oss_ioctl ();
5268 int
5269 main ()
5270 {
5271 return _oss_ioctl ();
5272   ;
5273   return 0;
5274 }
5275 _ACEOF
5276 if ac_fn_c_try_link "$LINENO"; then :
5277   ac_cv_lib_ossaudio__oss_ioctl=yes
5278 else
5279   ac_cv_lib_ossaudio__oss_ioctl=no
5280 fi
5281 rm -f core conftest.err conftest.$ac_objext \
5282     conftest$ac_exeext conftest.$ac_ext
5283 LIBS=$ac_check_lib_save_LIBS
5284 fi
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5286 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
5287 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
5288   cat >>confdefs.h <<_ACEOF
5289 #define HAVE_LIBOSSAUDIO 1
5290 _ACEOF
5291
5292   LIBS="-lossaudio $LIBS"
5293
5294 fi
5295
5296
5297 XLIB=""
5298
5299 OPENGL_LIBS=""
5300
5301
5302
5303 # Check whether --enable-largefile was given.
5304 if test "${enable_largefile+set}" = set; then :
5305   enableval=$enable_largefile;
5306 fi
5307
5308 if test "$enable_largefile" != no; then
5309
5310   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5311 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5312 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5313   $as_echo_n "(cached) " >&6
5314 else
5315   ac_cv_sys_largefile_CC=no
5316      if test "$GCC" != yes; then
5317        ac_save_CC=$CC
5318        while :; do
5319          # IRIX 6.2 and later do not support large files by default,
5320          # so use the C compiler's -n32 option if that helps.
5321          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5322 /* end confdefs.h.  */
5323 #include <sys/types.h>
5324  /* Check that off_t can represent 2**63 - 1 correctly.
5325     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5326     since some C++ compilers masquerading as C compilers
5327     incorrectly reject 9223372036854775807.  */
5328 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5329   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5330                        && LARGE_OFF_T % 2147483647 == 1)
5331                       ? 1 : -1];
5332 int
5333 main ()
5334 {
5335
5336   ;
5337   return 0;
5338 }
5339 _ACEOF
5340          if ac_fn_c_try_compile "$LINENO"; then :
5341   break
5342 fi
5343 rm -f core conftest.err conftest.$ac_objext
5344          CC="$CC -n32"
5345          if ac_fn_c_try_compile "$LINENO"; then :
5346   ac_cv_sys_largefile_CC=' -n32'; break
5347 fi
5348 rm -f core conftest.err conftest.$ac_objext
5349          break
5350        done
5351        CC=$ac_save_CC
5352        rm -f conftest.$ac_ext
5353     fi
5354 fi
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5356 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5357   if test "$ac_cv_sys_largefile_CC" != no; then
5358     CC=$CC$ac_cv_sys_largefile_CC
5359   fi
5360
5361   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5362 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5363 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5364   $as_echo_n "(cached) " >&6
5365 else
5366   while :; do
5367   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5368 /* end confdefs.h.  */
5369 #include <sys/types.h>
5370  /* Check that off_t can represent 2**63 - 1 correctly.
5371     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5372     since some C++ compilers masquerading as C compilers
5373     incorrectly reject 9223372036854775807.  */
5374 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5375   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5376                        && LARGE_OFF_T % 2147483647 == 1)
5377                       ? 1 : -1];
5378 int
5379 main ()
5380 {
5381
5382   ;
5383   return 0;
5384 }
5385 _ACEOF
5386 if ac_fn_c_try_compile "$LINENO"; then :
5387   ac_cv_sys_file_offset_bits=no; break
5388 fi
5389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5390   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5391 /* end confdefs.h.  */
5392 #define _FILE_OFFSET_BITS 64
5393 #include <sys/types.h>
5394  /* Check that off_t can represent 2**63 - 1 correctly.
5395     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5396     since some C++ compilers masquerading as C compilers
5397     incorrectly reject 9223372036854775807.  */
5398 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5399   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5400                        && LARGE_OFF_T % 2147483647 == 1)
5401                       ? 1 : -1];
5402 int
5403 main ()
5404 {
5405
5406   ;
5407   return 0;
5408 }
5409 _ACEOF
5410 if ac_fn_c_try_compile "$LINENO"; then :
5411   ac_cv_sys_file_offset_bits=64; break
5412 fi
5413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5414   ac_cv_sys_file_offset_bits=unknown
5415   break
5416 done
5417 fi
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5419 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5420 case $ac_cv_sys_file_offset_bits in #(
5421   no | unknown) ;;
5422   *)
5423 cat >>confdefs.h <<_ACEOF
5424 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5425 _ACEOF
5426 ;;
5427 esac
5428 rm -rf conftest*
5429   if test $ac_cv_sys_file_offset_bits = unknown; then
5430     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5431 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5432 if test "${ac_cv_sys_large_files+set}" = set; then :
5433   $as_echo_n "(cached) " >&6
5434 else
5435   while :; do
5436   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5437 /* end confdefs.h.  */
5438 #include <sys/types.h>
5439  /* Check that off_t can represent 2**63 - 1 correctly.
5440     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5441     since some C++ compilers masquerading as C compilers
5442     incorrectly reject 9223372036854775807.  */
5443 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5444   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5445                        && LARGE_OFF_T % 2147483647 == 1)
5446                       ? 1 : -1];
5447 int
5448 main ()
5449 {
5450
5451   ;
5452   return 0;
5453 }
5454 _ACEOF
5455 if ac_fn_c_try_compile "$LINENO"; then :
5456   ac_cv_sys_large_files=no; break
5457 fi
5458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5459   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5460 /* end confdefs.h.  */
5461 #define _LARGE_FILES 1
5462 #include <sys/types.h>
5463  /* Check that off_t can represent 2**63 - 1 correctly.
5464     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5465     since some C++ compilers masquerading as C compilers
5466     incorrectly reject 9223372036854775807.  */
5467 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5468   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5469                        && LARGE_OFF_T % 2147483647 == 1)
5470                       ? 1 : -1];
5471 int
5472 main ()
5473 {
5474
5475   ;
5476   return 0;
5477 }
5478 _ACEOF
5479 if ac_fn_c_try_compile "$LINENO"; then :
5480   ac_cv_sys_large_files=1; break
5481 fi
5482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5483   ac_cv_sys_large_files=unknown
5484   break
5485 done
5486 fi
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5488 $as_echo "$ac_cv_sys_large_files" >&6; }
5489 case $ac_cv_sys_large_files in #(
5490   no | unknown) ;;
5491   *)
5492 cat >>confdefs.h <<_ACEOF
5493 #define _LARGE_FILES $ac_cv_sys_large_files
5494 _ACEOF
5495 ;;
5496 esac
5497 rm -rf conftest*
5498   fi
5499 fi
5500
5501
5502 ac_ext=c
5503 ac_cpp='$CPP $CPPFLAGS'
5504 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5505 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5506 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5508 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5509 # On Suns, sometimes $CPP names a directory.
5510 if test -n "$CPP" && test -d "$CPP"; then
5511   CPP=
5512 fi
5513 if test -z "$CPP"; then
5514   if test "${ac_cv_prog_CPP+set}" = set; then :
5515   $as_echo_n "(cached) " >&6
5516 else
5517       # Double quotes because CPP needs to be expanded
5518     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5519     do
5520       ac_preproc_ok=false
5521 for ac_c_preproc_warn_flag in '' yes
5522 do
5523   # Use a header file that comes with gcc, so configuring glibc
5524   # with a fresh cross-compiler works.
5525   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5526   # <limits.h> exists even on freestanding compilers.
5527   # On the NeXT, cc -E runs the code through the compiler's parser,
5528   # not just through cpp. "Syntax error" is here to catch this case.
5529   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5530 /* end confdefs.h.  */
5531 #ifdef __STDC__
5532 # include <limits.h>
5533 #else
5534 # include <assert.h>
5535 #endif
5536                      Syntax error
5537 _ACEOF
5538 if ac_fn_c_try_cpp "$LINENO"; then :
5539
5540 else
5541   # Broken: fails on valid input.
5542 continue
5543 fi
5544 rm -f conftest.err conftest.i conftest.$ac_ext
5545
5546   # OK, works on sane cases.  Now check whether nonexistent headers
5547   # can be detected and how.
5548   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5549 /* end confdefs.h.  */
5550 #include <ac_nonexistent.h>
5551 _ACEOF
5552 if ac_fn_c_try_cpp "$LINENO"; then :
5553   # Broken: success on invalid input.
5554 continue
5555 else
5556   # Passes both tests.
5557 ac_preproc_ok=:
5558 break
5559 fi
5560 rm -f conftest.err conftest.i conftest.$ac_ext
5561
5562 done
5563 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5564 rm -f conftest.i conftest.err conftest.$ac_ext
5565 if $ac_preproc_ok; then :
5566   break
5567 fi
5568
5569     done
5570     ac_cv_prog_CPP=$CPP
5571
5572 fi
5573   CPP=$ac_cv_prog_CPP
5574 else
5575   ac_cv_prog_CPP=$CPP
5576 fi
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5578 $as_echo "$CPP" >&6; }
5579 ac_preproc_ok=false
5580 for ac_c_preproc_warn_flag in '' yes
5581 do
5582   # Use a header file that comes with gcc, so configuring glibc
5583   # with a fresh cross-compiler works.
5584   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5585   # <limits.h> exists even on freestanding compilers.
5586   # On the NeXT, cc -E runs the code through the compiler's parser,
5587   # not just through cpp. "Syntax error" is here to catch this case.
5588   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5589 /* end confdefs.h.  */
5590 #ifdef __STDC__
5591 # include <limits.h>
5592 #else
5593 # include <assert.h>
5594 #endif
5595                      Syntax error
5596 _ACEOF
5597 if ac_fn_c_try_cpp "$LINENO"; then :
5598
5599 else
5600   # Broken: fails on valid input.
5601 continue
5602 fi
5603 rm -f conftest.err conftest.i conftest.$ac_ext
5604
5605   # OK, works on sane cases.  Now check whether nonexistent headers
5606   # can be detected and how.
5607   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5608 /* end confdefs.h.  */
5609 #include <ac_nonexistent.h>
5610 _ACEOF
5611 if ac_fn_c_try_cpp "$LINENO"; then :
5612   # Broken: success on invalid input.
5613 continue
5614 else
5615   # Passes both tests.
5616 ac_preproc_ok=:
5617 break
5618 fi
5619 rm -f conftest.err conftest.i conftest.$ac_ext
5620
5621 done
5622 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5623 rm -f conftest.i conftest.err conftest.$ac_ext
5624 if $ac_preproc_ok; then :
5625
5626 else
5627   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5628 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5629 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5630 See \`config.log' for more details" "$LINENO" 5 ; }
5631 fi
5632
5633 ac_ext=c
5634 ac_cpp='$CPP $CPPFLAGS'
5635 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5636 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5637 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5638
5639
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5641 $as_echo_n "checking for ANSI C header files... " >&6; }
5642 if test "${ac_cv_header_stdc+set}" = set; then :
5643   $as_echo_n "(cached) " >&6
5644 else
5645   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5646 /* end confdefs.h.  */
5647 #include <stdlib.h>
5648 #include <stdarg.h>
5649 #include <string.h>
5650 #include <float.h>
5651
5652 int
5653 main ()
5654 {
5655
5656   ;
5657   return 0;
5658 }
5659 _ACEOF
5660 if ac_fn_c_try_compile "$LINENO"; then :
5661   ac_cv_header_stdc=yes
5662 else
5663   ac_cv_header_stdc=no
5664 fi
5665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5666
5667 if test $ac_cv_header_stdc = yes; then
5668   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5669   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5670 /* end confdefs.h.  */
5671 #include <string.h>
5672
5673 _ACEOF
5674 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5675   $EGREP "memchr" >/dev/null 2>&1; then :
5676
5677 else
5678   ac_cv_header_stdc=no
5679 fi
5680 rm -f conftest*
5681
5682 fi
5683
5684 if test $ac_cv_header_stdc = yes; then
5685   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5686   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5687 /* end confdefs.h.  */
5688 #include <stdlib.h>
5689
5690 _ACEOF
5691 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5692   $EGREP "free" >/dev/null 2>&1; then :
5693
5694 else
5695   ac_cv_header_stdc=no
5696 fi
5697 rm -f conftest*
5698
5699 fi
5700
5701 if test $ac_cv_header_stdc = yes; then
5702   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5703   if test "$cross_compiling" = yes; then :
5704   :
5705 else
5706   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5707 /* end confdefs.h.  */
5708 #include <ctype.h>
5709 #include <stdlib.h>
5710 #if ((' ' & 0x0FF) == 0x020)
5711 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5712 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5713 #else
5714 # define ISLOWER(c) \
5715                    (('a' <= (c) && (c) <= 'i') \
5716                      || ('j' <= (c) && (c) <= 'r') \
5717                      || ('s' <= (c) && (c) <= 'z'))
5718 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5719 #endif
5720
5721 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5722 int
5723 main ()
5724 {
5725   int i;
5726   for (i = 0; i < 256; i++)
5727     if (XOR (islower (i), ISLOWER (i))
5728         || toupper (i) != TOUPPER (i))
5729       return 2;
5730   return 0;
5731 }
5732 _ACEOF
5733 if ac_fn_c_try_run "$LINENO"; then :
5734
5735 else
5736   ac_cv_header_stdc=no
5737 fi
5738 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5739   conftest.$ac_objext conftest.beam conftest.$ac_ext
5740 fi
5741
5742 fi
5743 fi
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5745 $as_echo "$ac_cv_header_stdc" >&6; }
5746 if test $ac_cv_header_stdc = yes; then
5747
5748 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5749
5750 fi
5751
5752 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5753 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5754                   inttypes.h stdint.h unistd.h
5755 do :
5756   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5757 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5758 "
5759 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5760   cat >>confdefs.h <<_ACEOF
5761 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5762 _ACEOF
5763
5764 fi
5765
5766 done
5767
5768
5769 for ac_header in \
5770         AL/al.h \
5771         AudioToolbox/AudioConverter.h \
5772         AudioUnit/AudioUnit.h \
5773         CL/cl.h \
5774         Carbon/Carbon.h \
5775         CoreAudio/CoreAudio.h \
5776         DiskArbitration/DiskArbitration.h \
5777         IOKit/IOKitLib.h \
5778         IOKit/hid/IOHIDLib.h \
5779         OpenAL/al.h \
5780         OpenCL/opencl.h \
5781         alias.h \
5782         alsa/asoundlib.h \
5783         arpa/inet.h \
5784         arpa/nameser.h \
5785         asm/types.h \
5786         capi20.h \
5787         curses.h \
5788         direct.h \
5789         dirent.h \
5790         dlfcn.h \
5791         elf.h \
5792         float.h \
5793         fnmatch.h \
5794         fontconfig/fontconfig.h \
5795         getopt.h \
5796         gettext-po.h \
5797         grp.h \
5798         gsm.h \
5799         gsm/gsm.h \
5800         icns.h \
5801         ieeefp.h \
5802         inet/mib2.h \
5803         io.h \
5804         jack/jack.h \
5805         jpeglib.h \
5806         kstat.h \
5807         lber.h \
5808         lcms.h \
5809         lcms/lcms.h \
5810         ldap.h \
5811         link.h \
5812         linux/cdrom.h \
5813         linux/compiler.h \
5814         linux/hdreg.h \
5815         linux/input.h \
5816         linux/ioctl.h \
5817         linux/joystick.h \
5818         linux/major.h \
5819         linux/param.h \
5820         linux/serial.h \
5821         linux/types.h \
5822         linux/ucdrom.h \
5823         mach-o/nlist.h \
5824         mach-o/loader.h \
5825         mach/mach.h \
5826         mach/machine.h \
5827         machine/cpu.h \
5828         machine/limits.h \
5829         machine/soundcard.h \
5830         machine/sysarch.h \
5831         mntent.h \
5832         mpg123.h \
5833         ncurses.h \
5834         netdb.h \
5835         netinet/in.h \
5836         netinet/in_systm.h \
5837         netinet/tcp.h \
5838         netinet/tcp_fsm.h \
5839         openssl/err.h \
5840         openssl/ssl.h \
5841         png.h \
5842         poll.h \
5843         port.h \
5844         process.h \
5845         pthread.h \
5846         pwd.h \
5847         regex.h \
5848         sched.h \
5849         scsi/scsi.h \
5850         scsi/scsi_ioctl.h \
5851         scsi/sg.h \
5852         soundcard.h \
5853         stdbool.h \
5854         stdint.h \
5855         strings.h \
5856         stropts.h \
5857         sys/asoundlib.h \
5858         sys/cdio.h \
5859         sys/elf32.h \
5860         sys/epoll.h \
5861         sys/errno.h \
5862         sys/event.h \
5863         sys/exec_elf.h \
5864         sys/filio.h \
5865         sys/inotify.h \
5866         sys/ioctl.h \
5867         sys/ipc.h \
5868         sys/limits.h \
5869         sys/link.h \
5870         sys/mman.h \
5871         sys/modem.h \
5872         sys/msg.h \
5873         sys/mtio.h \
5874         sys/param.h \
5875         sys/poll.h \
5876         sys/prctl.h \
5877         sys/protosw.h \
5878         sys/ptrace.h \
5879         sys/resource.h \
5880         sys/scsiio.h \
5881         sys/shm.h \
5882         sys/signal.h \
5883         sys/socket.h \
5884         sys/socketvar.h \
5885         sys/sockio.h \
5886         sys/soundcard.h \
5887         sys/statvfs.h \
5888         sys/strtio.h \
5889         sys/syscall.h \
5890         sys/tihdr.h \
5891         sys/time.h \
5892         sys/timeout.h \
5893         sys/times.h \
5894         sys/uio.h \
5895         sys/un.h \
5896         sys/utsname.h \
5897         sys/vm86.h \
5898         sys/wait.h \
5899         syscall.h \
5900         termios.h \
5901         tiffio.h \
5902         unistd.h \
5903         utime.h \
5904         valgrind/memcheck.h \
5905         valgrind/valgrind.h \
5906         zlib.h
5907
5908 do :
5909   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5910 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5911 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5912   cat >>confdefs.h <<_ACEOF
5913 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5914 _ACEOF
5915
5916 fi
5917
5918 done
5919
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
5921 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
5922 if test "${ac_cv_header_stat_broken+set}" = set; then :
5923   $as_echo_n "(cached) " >&6
5924 else
5925   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5926 /* end confdefs.h.  */
5927 #include <sys/types.h>
5928 #include <sys/stat.h>
5929
5930 #if defined S_ISBLK && defined S_IFDIR
5931 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
5932 #endif
5933
5934 #if defined S_ISBLK && defined S_IFCHR
5935 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
5936 #endif
5937
5938 #if defined S_ISLNK && defined S_IFREG
5939 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
5940 #endif
5941
5942 #if defined S_ISSOCK && defined S_IFREG
5943 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
5944 #endif
5945
5946 _ACEOF
5947 if ac_fn_c_try_compile "$LINENO"; then :
5948   ac_cv_header_stat_broken=no
5949 else
5950   ac_cv_header_stat_broken=yes
5951 fi
5952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5953 fi
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
5955 $as_echo "$ac_cv_header_stat_broken" >&6; }
5956 if test $ac_cv_header_stat_broken = yes; then
5957
5958 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
5959
5960 fi
5961
5962
5963
5964 for ac_header in sys/mount.h sys/statfs.h sys/sysctl.h sys/user.h sys/vfs.h
5965 do :
5966   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5967 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
5968      #ifdef HAVE_SYS_PARAM_H
5969      # include <sys/param.h>
5970      #endif
5971 "
5972 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5973   cat >>confdefs.h <<_ACEOF
5974 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5975 _ACEOF
5976
5977 fi
5978
5979 done
5980
5981
5982 for ac_header in \
5983         netinet/ip.h \
5984         net/if.h \
5985         net/if_arp.h \
5986         net/if_dl.h \
5987         net/if_types.h \
5988         net/route.h \
5989         netinet/if_ether.h \
5990         netinet/if_inarp.h \
5991         netinet/in_pcb.h \
5992         netinet/ip_icmp.h \
5993         netinet/ip_var.h \
5994         netinet/udp.h \
5995         netipx/ipx.h \
5996
5997 do :
5998   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5999 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6000      #ifdef HAVE_SYS_SOCKET_H
6001      # include <sys/socket.h>
6002      #endif
6003      #ifdef HAVE_SYS_SOCKETVAR_H
6004      # include <sys/socketvar.h>
6005      #endif
6006      #ifdef HAVE_NET_ROUTE_H
6007      # include <net/route.h>
6008      #endif
6009      #ifdef HAVE_NETINET_IN_H
6010      # include <netinet/in.h>
6011      #endif
6012      #ifdef HAVE_NETINET_IN_SYSTM_H
6013      # include <netinet/in_systm.h>
6014      #endif
6015      #ifdef HAVE_NET_IF_H
6016      # include <net/if.h>
6017      #endif
6018      #ifdef HAVE_NETINET_IP_H
6019      # include <netinet/ip.h>
6020      #endif
6021 "
6022 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6023   cat >>confdefs.h <<_ACEOF
6024 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6025 _ACEOF
6026
6027 fi
6028
6029 done
6030
6031
6032 for ac_header in netinet/tcp_timer.h netinet/udp_var.h netinet/icmp_var.h netinet/tcp_var.h
6033 do :
6034   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6035 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6036      #ifdef HAVE_ALIAS_H
6037      # include <alias.h>
6038      #endif
6039      #ifdef HAVE_SYS_SOCKET_H
6040      # include <sys/socket.h>
6041      #endif
6042      #ifdef HAVE_SYS_SOCKETVAR_H
6043      # include <sys/socketvar.h>
6044      #endif
6045      #ifdef HAVE_SYS_TIMEOUT_H
6046      # include <sys/timeout.h>
6047      #endif
6048      #ifdef HAVE_NETINET_IN_H
6049      # include <netinet/in.h>
6050      #endif
6051      #ifdef HAVE_NETINET_IN_SYSTM_H
6052      # include <netinet/in_systm.h>
6053      #endif
6054      #ifdef HAVE_NETINET_IP_H
6055      # include <netinet/ip.h>
6056      #endif
6057      #ifdef HAVE_NETINET_IP_VAR_H
6058      # include <netinet/ip_var.h>
6059      #endif
6060      #ifdef HAVE_NETINET_IP_ICMP_H
6061      # include <netinet/ip_icmp.h>
6062      #endif
6063      #ifdef HAVE_NETINET_UDP_H
6064      # include <netinet/udp.h>
6065      #endif
6066      #ifdef HAVE_NETINET_TCP_H
6067      # include <netinet/tcp.h>
6068      #endif
6069      #ifdef HAVE_NETINET_TCP_TIMER_H
6070      #include <netinet/tcp_timer.h>
6071      #endif
6072 "
6073 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6074   cat >>confdefs.h <<_ACEOF
6075 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6076 _ACEOF
6077
6078 fi
6079
6080 done
6081
6082
6083 for ac_header in linux/ipx.h linux/irda.h
6084 do :
6085   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6086 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6087      #ifdef HAVE_ASM_TYPES_H
6088      # include <asm/types.h>
6089      #endif
6090      #ifdef HAVE_SYS_SOCKET_H
6091      # include <sys/socket.h>
6092      #endif
6093      #ifdef HAVE_LINUX_TYPES_H
6094      # include <linux/types.h>
6095      #endif
6096 "
6097 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6098   cat >>confdefs.h <<_ACEOF
6099 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6100 _ACEOF
6101
6102 fi
6103
6104 done
6105
6106
6107 for ac_header in mach-o/dyld_images.h
6108 do :
6109   ac_fn_c_check_header_compile "$LINENO" "mach-o/dyld_images.h" "ac_cv_header_mach_o_dyld_images_h" "#ifdef HAVE_STDBOOL_H
6110      # include <stdbool.h>
6111      #endif
6112      #ifdef HAVE_STDINT_H
6113      # include <stdint.h>
6114      #endif
6115 "
6116 if test "x$ac_cv_header_mach_o_dyld_images_h" = x""yes; then :
6117   cat >>confdefs.h <<_ACEOF
6118 #define HAVE_MACH_O_DYLD_IMAGES_H 1
6119 _ACEOF
6120
6121 fi
6122
6123 done
6124
6125
6126 for ac_header in resolv.h
6127 do :
6128   ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "#include <sys/types.h>
6129      #ifdef HAVE_SYS_SOCKET_H
6130      # include <sys/socket.h>
6131      #endif
6132      #ifdef HAVE_NETINET_IN_H
6133      # include <netinet/in.h>
6134      #endif
6135      #ifdef HAVE_ARPA_NAMESER_H
6136      # include <arpa/nameser.h>
6137      #endif
6138 "
6139 if test "x$ac_cv_header_resolv_h" = x""yes; then :
6140   cat >>confdefs.h <<_ACEOF
6141 #define HAVE_RESOLV_H 1
6142 _ACEOF
6143
6144 fi
6145
6146 done
6147
6148
6149 for ac_header in ifaddrs.h
6150 do :
6151   ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "#include <sys/types.h>
6152 "
6153 if test "x$ac_cv_header_ifaddrs_h" = x""yes; then :
6154   cat >>confdefs.h <<_ACEOF
6155 #define HAVE_IFADDRS_H 1
6156 _ACEOF
6157
6158 fi
6159
6160 done
6161
6162
6163 for ac_header in ucontext.h
6164 do :
6165   ac_fn_c_check_header_compile "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "#include <signal.h>
6166 "
6167 if test "x$ac_cv_header_ucontext_h" = x""yes; then :
6168   cat >>confdefs.h <<_ACEOF
6169 #define HAVE_UCONTEXT_H 1
6170 _ACEOF
6171
6172 fi
6173
6174 done
6175
6176
6177 for ac_header in sys/thr.h
6178 do :
6179   ac_fn_c_check_header_compile "$LINENO" "sys/thr.h" "ac_cv_header_sys_thr_h" "#include <sys/types.h>
6180 #ifdef HAVE_UCONTEXT_H
6181 #include <ucontext.h>
6182 #endif
6183 "
6184 if test "x$ac_cv_header_sys_thr_h" = x""yes; then :
6185   cat >>confdefs.h <<_ACEOF
6186 #define HAVE_SYS_THR_H 1
6187 _ACEOF
6188
6189 fi
6190
6191 done
6192
6193
6194 for ac_header in pthread_np.h
6195 do :
6196   ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" "#ifdef HAVE_PTHREAD_H
6197 #include <pthread.h>
6198 #endif
6199 "
6200 if test "x$ac_cv_header_pthread_np_h" = x""yes; then :
6201   cat >>confdefs.h <<_ACEOF
6202 #define HAVE_PTHREAD_NP_H 1
6203 _ACEOF
6204
6205 fi
6206
6207 done
6208
6209
6210 for ac_header in linux/videodev.h
6211 do :
6212   ac_fn_c_check_header_compile "$LINENO" "linux/videodev.h" "ac_cv_header_linux_videodev_h" "#ifdef HAVE_SYS_TIME_H
6213 #include <sys/time.h>
6214 #endif
6215 #include <sys/types.h>
6216 #ifdef HAVE_ASM_TYPES_H
6217 #include <asm/types.h>
6218 #endif
6219 "
6220 if test "x$ac_cv_header_linux_videodev_h" = x""yes; then :
6221   cat >>confdefs.h <<_ACEOF
6222 #define HAVE_LINUX_VIDEODEV_H 1
6223 _ACEOF
6224
6225 fi
6226
6227 done
6228
6229
6230 for ac_header in linux/capi.h
6231 do :
6232   ac_fn_c_check_header_compile "$LINENO" "linux/capi.h" "ac_cv_header_linux_capi_h" "#define __user
6233 "
6234 if test "x$ac_cv_header_linux_capi_h" = x""yes; then :
6235   cat >>confdefs.h <<_ACEOF
6236 #define HAVE_LINUX_CAPI_H 1
6237 _ACEOF
6238
6239 fi
6240
6241 done
6242
6243
6244
6245 DLLEXT=""
6246
6247 DLLFLAGS="-D_REENTRANT"
6248
6249 LDSHARED=""
6250
6251 LDDLLFLAGS=""
6252
6253 LIBEXT="so"
6254
6255 IMPLIBEXT="def"
6256
6257 LDRPATH_INSTALL=""
6258
6259 LDRPATH_LOCAL=""
6260
6261 STATIC_IMPLIBEXT="def.a"
6262 # Extract the first word of "ldd", so it can be a program name with args.
6263 set dummy ldd; ac_word=$2
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6265 $as_echo_n "checking for $ac_word... " >&6; }
6266 if test "${ac_cv_path_LDD+set}" = set; then :
6267   $as_echo_n "(cached) " >&6
6268 else
6269   case $LDD in
6270   [\\/]* | ?:[\\/]*)
6271   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
6272   ;;
6273   *)
6274   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6275 as_dummy="/sbin:/usr/sbin:$PATH"
6276 for as_dir in $as_dummy
6277 do
6278   IFS=$as_save_IFS
6279   test -z "$as_dir" && as_dir=.
6280     for ac_exec_ext in '' $ac_executable_extensions; do
6281   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6282     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
6283     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6284     break 2
6285   fi
6286 done
6287   done
6288 IFS=$as_save_IFS
6289
6290   test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
6291   ;;
6292 esac
6293 fi
6294 LDD=$ac_cv_path_LDD
6295 if test -n "$LDD"; then
6296   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
6297 $as_echo "$LDD" >&6; }
6298 else
6299   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6300 $as_echo "no" >&6; }
6301 fi
6302
6303
6304
6305 case $host_os in
6306   cygwin*|mingw32*)
6307     if test -n "$ac_tool_prefix"; then
6308   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6309 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6311 $as_echo_n "checking for $ac_word... " >&6; }
6312 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
6313   $as_echo_n "(cached) " >&6
6314 else
6315   if test -n "$DLLTOOL"; then
6316   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6317 else
6318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6319 for as_dir in $PATH
6320 do
6321   IFS=$as_save_IFS
6322   test -z "$as_dir" && as_dir=.
6323     for ac_exec_ext in '' $ac_executable_extensions; do
6324   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6325     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6326     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6327     break 2
6328   fi
6329 done
6330   done
6331 IFS=$as_save_IFS
6332
6333 fi
6334 fi
6335 DLLTOOL=$ac_cv_prog_DLLTOOL
6336 if test -n "$DLLTOOL"; then
6337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6338 $as_echo "$DLLTOOL" >&6; }
6339 else
6340   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6341 $as_echo "no" >&6; }
6342 fi
6343
6344
6345 fi
6346 if test -z "$ac_cv_prog_DLLTOOL"; then
6347   ac_ct_DLLTOOL=$DLLTOOL
6348   # Extract the first word of "dlltool", so it can be a program name with args.
6349 set dummy dlltool; ac_word=$2
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6351 $as_echo_n "checking for $ac_word... " >&6; }
6352 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
6353   $as_echo_n "(cached) " >&6
6354 else
6355   if test -n "$ac_ct_DLLTOOL"; then
6356   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6357 else
6358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6359 for as_dir in $PATH
6360 do
6361   IFS=$as_save_IFS
6362   test -z "$as_dir" && as_dir=.
6363     for ac_exec_ext in '' $ac_executable_extensions; do
6364   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6365     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6366     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6367     break 2
6368   fi
6369 done
6370   done
6371 IFS=$as_save_IFS
6372
6373 fi
6374 fi
6375 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6376 if test -n "$ac_ct_DLLTOOL"; then
6377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6378 $as_echo "$ac_ct_DLLTOOL" >&6; }
6379 else
6380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6381 $as_echo "no" >&6; }
6382 fi
6383
6384   if test "x$ac_ct_DLLTOOL" = x; then
6385     DLLTOOL="false"
6386   else
6387     case $cross_compiling:$ac_tool_warned in
6388 yes:)
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6390 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6391 ac_tool_warned=yes ;;
6392 esac
6393     DLLTOOL=$ac_ct_DLLTOOL
6394   fi
6395 else
6396   DLLTOOL="$ac_cv_prog_DLLTOOL"
6397 fi
6398
6399     if test -n "$ac_tool_prefix"; then
6400   # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
6401 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
6402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6403 $as_echo_n "checking for $ac_word... " >&6; }
6404 if test "${ac_cv_prog_DLLWRAP+set}" = set; then :
6405   $as_echo_n "(cached) " >&6
6406 else
6407   if test -n "$DLLWRAP"; then
6408   ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
6409 else
6410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6411 for as_dir in $PATH
6412 do
6413   IFS=$as_save_IFS
6414   test -z "$as_dir" && as_dir=.
6415     for ac_exec_ext in '' $ac_executable_extensions; do
6416   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6417     ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
6418     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6419     break 2
6420   fi
6421 done
6422   done
6423 IFS=$as_save_IFS
6424
6425 fi
6426 fi
6427 DLLWRAP=$ac_cv_prog_DLLWRAP
6428 if test -n "$DLLWRAP"; then
6429   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLWRAP" >&5
6430 $as_echo "$DLLWRAP" >&6; }
6431 else
6432   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6433 $as_echo "no" >&6; }
6434 fi
6435
6436
6437 fi
6438 if test -z "$ac_cv_prog_DLLWRAP"; then
6439   ac_ct_DLLWRAP=$DLLWRAP
6440   # Extract the first word of "dllwrap", so it can be a program name with args.
6441 set dummy dllwrap; ac_word=$2
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6443 $as_echo_n "checking for $ac_word... " >&6; }
6444 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then :
6445   $as_echo_n "(cached) " >&6
6446 else
6447   if test -n "$ac_ct_DLLWRAP"; then
6448   ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
6449 else
6450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6451 for as_dir in $PATH
6452 do
6453   IFS=$as_save_IFS
6454   test -z "$as_dir" && as_dir=.
6455     for ac_exec_ext in '' $ac_executable_extensions; do
6456   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6457     ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
6458     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6459     break 2
6460   fi
6461 done
6462   done
6463 IFS=$as_save_IFS
6464
6465 fi
6466 fi
6467 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
6468 if test -n "$ac_ct_DLLWRAP"; then
6469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLWRAP" >&5
6470 $as_echo "$ac_ct_DLLWRAP" >&6; }
6471 else
6472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6473 $as_echo "no" >&6; }
6474 fi
6475
6476   if test "x$ac_ct_DLLWRAP" = x; then
6477     DLLWRAP="false"
6478   else
6479     case $cross_compiling:$ac_tool_warned in
6480 yes:)
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6482 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6483 ac_tool_warned=yes ;;
6484 esac
6485     DLLWRAP=$ac_ct_DLLWRAP
6486   fi
6487 else
6488   DLLWRAP="$ac_cv_prog_DLLWRAP"
6489 fi
6490
6491     if test "$DLLWRAP" = "false"; then
6492       LIBEXT="a"
6493     else
6494             LIBEXT="dll"
6495     fi
6496     IMPLIBEXT="a"
6497     STATIC_IMPLIBEXT="a"
6498         enable_iphlpapi=${enable_iphlpapi:-no}
6499     enable_kernel32=${enable_kernel32:-no}
6500     enable_msvcrt=${enable_msvcrt:-no}
6501     enable_ntdll=${enable_ntdll:-no}
6502     enable_ws2_32=${enable_ws2_32:-no}
6503     enable_loader=${enable_loader:-no}
6504     enable_server=${enable_server:-no}
6505         with_x=${with_x:-no}
6506     with_pthread=${with_pthread:-no}
6507     ;;
6508   darwin*|macosx*)
6509     DLLEXT=".so"
6510     LIBEXT="dylib"
6511     DLLFLAGS="$DLLFLAGS -fPIC"
6512     LDDLLFLAGS="-bundle -multiply_defined suppress"
6513     LIBWINE_LDFLAGS="-multiply_defined suppress"
6514     LDSHARED="\$(CC) -dynamiclib"
6515     STRIP="$STRIP -x"
6516     LDRPATH_LOCAL="&& install_name_tool -change @executable_path/\`\$(RELPATH) \$(bindir) \$(libdir)\`/libwine.1.dylib @executable_path/\$(top_builddir)/libs/wine/libwine.1.dylib \$@ || \$(RM) \$@"
6517         SECURITYLIB="-framework Security -framework CoreFoundation"
6518
6519     COREFOUNDATIONLIB="-framework CoreFoundation"
6520
6521     IOKITLIB="-framework IOKit -framework CoreFoundation"
6522
6523     QUICKTIMELIB="-framework QuickTime -framework ApplicationServices -framework CoreVideo"
6524
6525     LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00000000,-segaddr,WINE_SHAREDHEAP,0x7f000000"
6526
6527     if test "$ac_cv_header_DiskArbitration_DiskArbitration_h" = "yes"
6528     then
6529                 DISKARBITRATIONLIB="-framework DiskArbitration -framework CoreFoundation"
6530
6531     fi
6532     if test "$ac_cv_header_CoreAudio_CoreAudio_h" = "yes" -a "$ac_cv_header_AudioUnit_AudioUnit_h" = "yes"
6533     then
6534                 COREAUDIO="-framework CoreAudio -framework AudioUnit -framework CoreServices -framework AudioToolbox -framework CoreMIDI"
6535
6536     fi
6537     if test "$ac_cv_header_OpenAL_al_h" = "yes"
6538     then
6539         FRAMEWORK_OPENAL="-framework OpenAL"
6540
6541
6542 cat >>confdefs.h <<_ACEOF
6543 #define HAVE_OPENAL 1
6544 _ACEOF
6545
6546         ac_cv_lib_openal=yes
6547     fi
6548     if test "$ac_cv_header_OpenCL_opencl_h" = "yes"
6549     then
6550         LIBOPENCL="-framework OpenCL"
6551
6552         ac_cv_lib_OpenCL_clGetPlatformInfo=yes
6553     fi
6554     if test "$ac_cv_header_IOKit_hid_IOHIDLib_h" = "yes"
6555     then
6556         ac_save_LIBS="$LIBS"
6557         LIBS="$LIBS $IOKITLIB"
6558         for ac_func in IOHIDManagerCreate
6559 do :
6560   ac_fn_c_check_func "$LINENO" "IOHIDManagerCreate" "ac_cv_func_IOHIDManagerCreate"
6561 if test "x$ac_cv_func_IOHIDManagerCreate" = x""yes; then :
6562   cat >>confdefs.h <<_ACEOF
6563 #define HAVE_IOHIDMANAGERCREATE 1
6564 _ACEOF
6565
6566 fi
6567 done
6568
6569         LIBS="$ac_save_LIBS"
6570     fi
6571     enable_wineqtdecoder=${enable_wineqtdecoder:-yes}
6572     case $host_cpu in
6573       *powerpc*)
6574         LDDLLFLAGS="$LDDLLFLAGS -read_only_relocs warning"          ;;
6575     esac
6576         if test "$ac_cv_header_Carbon_Carbon_h" = "yes"
6577     then
6578         CARBONLIB="-framework Carbon"
6579
6580         enable_winequartz_drv=${enable_winequartz_drv:-yes}
6581     fi
6582         if test "x$enable_win16" = "xyes"
6583     then
6584         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 16-bit code can be built correctly" >&5
6585 $as_echo_n "checking whether 16-bit code can be built correctly... " >&6; }
6586         if test "$cross_compiling" = yes; then :
6587   { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5
6588 $as_echo "cross-compiling, assuming yes" >&6; }
6589 else
6590   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6591 /* end confdefs.h.  */
6592 asm(".text\n"
6593                                             "bad:\tnop;nop\n"
6594                                             "good:\tnop;nop\n\t"
6595                                             ".globl _testfunc\n"
6596                                             "_testfunc:\tcallw good");
6597                                         extern void testfunc();
6598 int
6599 main ()
6600 {
6601 unsigned short *p = (unsigned short *)testfunc;
6602                                         return p[0] != 0xe866 || p[1] != 0xfffa
6603   ;
6604   return 0;
6605 }
6606 _ACEOF
6607 if ac_fn_c_try_run "$LINENO"; then :
6608   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6609 $as_echo "yes" >&6; }
6610 else
6611   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6612 $as_echo "no" >&6; }
6613                                        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
6614 fi
6615 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6616   conftest.$ac_objext conftest.beam conftest.$ac_ext
6617 fi
6618
6619     fi
6620     ;;
6621   *)
6622     DLLFLAGS="$DLLFLAGS -fPIC"
6623     DLLEXT=".so"
6624     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a GNU style ELF dll" >&5
6625 $as_echo_n "checking whether we can build a GNU style ELF dll... " >&6; }
6626 if test "${ac_cv_c_dll_gnuelf+set}" = set; then :
6627   $as_echo_n "(cached) " >&6
6628 else
6629   ac_wine_try_cflags_saved=$CFLAGS
6630 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic"
6631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6632 /* end confdefs.h.  */
6633 void myfunc() {}
6634 _ACEOF
6635 if ac_fn_c_try_link "$LINENO"; then :
6636   ac_cv_c_dll_gnuelf="yes"
6637 else
6638   ac_cv_c_dll_gnuelf="no"
6639 fi
6640 rm -f core conftest.err conftest.$ac_objext \
6641     conftest$ac_exeext conftest.$ac_ext
6642 CFLAGS=$ac_wine_try_cflags_saved
6643 fi
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_gnuelf" >&5
6645 $as_echo "$ac_cv_c_dll_gnuelf" >&6; }
6646     if test "$ac_cv_c_dll_gnuelf" = "yes"
6647     then
6648       LDSHARED="\$(CC) -shared"
6649       LDDLLFLAGS="-shared -Wl,-Bsymbolic"
6650       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1" >&5
6651 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1... " >&6; }
6652 if test "${ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1+set}" = set; then :
6653   $as_echo_n "(cached) " >&6
6654 else
6655   ac_wine_try_cflags_saved=$CFLAGS
6656 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,confest.so.1"
6657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6658 /* end confdefs.h.  */
6659 int main(int argc, char **argv) { return 0; }
6660 _ACEOF
6661 if ac_fn_c_try_link "$LINENO"; then :
6662   ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=yes
6663 else
6664   ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=no
6665 fi
6666 rm -f core conftest.err conftest.$ac_objext \
6667     conftest$ac_exeext conftest.$ac_ext
6668 CFLAGS=$ac_wine_try_cflags_saved
6669 fi
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&5
6671 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&6; }
6672 if test $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1 = yes; then :
6673   LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
6674 else
6675   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1" >&5
6676 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1... " >&6; }
6677 if test "${ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1+set}" = set; then :
6678   $as_echo_n "(cached) " >&6
6679 else
6680   ac_wine_try_cflags_saved=$CFLAGS
6681 CFLAGS="$CFLAGS -fPIC -shared -Wl,-h,confest.so.1"
6682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6683 /* end confdefs.h.  */
6684 int main(int argc, char **argv) { return 0; }
6685 _ACEOF
6686 if ac_fn_c_try_link "$LINENO"; then :
6687   ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=yes
6688 else
6689   ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=no
6690 fi
6691 rm -f core conftest.err conftest.$ac_objext \
6692     conftest$ac_exeext conftest.$ac_ext
6693 CFLAGS=$ac_wine_try_cflags_saved
6694 fi
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&5
6696 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&6; }
6697 if test $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1 = yes; then :
6698   LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-h,%)"
6699 fi
6700 fi
6701
6702       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs" >&5
6703 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs... " >&6; }
6704 if test "${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs+set}" = set; then :
6705   $as_echo_n "(cached) " >&6
6706 else
6707   ac_wine_try_cflags_saved=$CFLAGS
6708 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
6709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6710 /* end confdefs.h.  */
6711 int main(int argc, char **argv) { return 0; }
6712 _ACEOF
6713 if ac_fn_c_try_link "$LINENO"; then :
6714   ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=yes
6715 else
6716   ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=no
6717 fi
6718 rm -f core conftest.err conftest.$ac_objext \
6719     conftest$ac_exeext conftest.$ac_ext
6720 CFLAGS=$ac_wine_try_cflags_saved
6721 fi
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&5
6723 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&6; }
6724 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs = yes; then :
6725   LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
6726 fi
6727
6728       { $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
6729 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini... " >&6; }
6730 if test "${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini+set}" = set; then :
6731   $as_echo_n "(cached) " >&6
6732 else
6733   ac_wine_try_cflags_saved=$CFLAGS
6734 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
6735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6736 /* end confdefs.h.  */
6737 int main(int argc, char **argv) { return 0; }
6738 _ACEOF
6739 if ac_fn_c_try_link "$LINENO"; then :
6740   ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=yes
6741 else
6742   ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=no
6743 fi
6744 rm -f core conftest.err conftest.$ac_objext \
6745     conftest$ac_exeext conftest.$ac_ext
6746 CFLAGS=$ac_wine_try_cflags_saved
6747 fi
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&5
6749 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&6; }
6750 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini = yes; then :
6751   LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
6752 fi
6753
6754       echo '{ global: *; };' >conftest.map
6755       as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -shared -Wl,--version-script=conftest.map" | $as_tr_sh`
6756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map" >&5
6757 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map... " >&6; }
6758 if eval "test \"\${$as_ac_var+set}\"" = set; then :
6759   $as_echo_n "(cached) " >&6
6760 else
6761   ac_wine_try_cflags_saved=$CFLAGS
6762 CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
6763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6764 /* end confdefs.h.  */
6765 int main(int argc, char **argv) { return 0; }
6766 _ACEOF
6767 if ac_fn_c_try_link "$LINENO"; then :
6768   eval "$as_ac_var=yes"
6769 else
6770   eval "$as_ac_var=no"
6771 fi
6772 rm -f core conftest.err conftest.$ac_objext \
6773     conftest$ac_exeext conftest.$ac_ext
6774 CFLAGS=$ac_wine_try_cflags_saved
6775 fi
6776 eval ac_res=\$$as_ac_var
6777                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6778 $as_echo "$ac_res" >&6; }
6779 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6780   LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)"
6781 fi
6782       rm -f conftest.map
6783
6784       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5
6785 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--export-dynamic... " >&6; }
6786 if test "${ac_cv_cflags__fPIC__Wl___export_dynamic+set}" = set; then :
6787   $as_echo_n "(cached) " >&6
6788 else
6789   ac_wine_try_cflags_saved=$CFLAGS
6790 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
6791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6792 /* end confdefs.h.  */
6793 int main(int argc, char **argv) { return 0; }
6794 _ACEOF
6795 if ac_fn_c_try_link "$LINENO"; then :
6796   ac_cv_cflags__fPIC__Wl___export_dynamic=yes
6797 else
6798   ac_cv_cflags__fPIC__Wl___export_dynamic=no
6799 fi
6800 rm -f core conftest.err conftest.$ac_objext \
6801     conftest$ac_exeext conftest.$ac_ext
6802 CFLAGS=$ac_wine_try_cflags_saved
6803 fi
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__Wl___export_dynamic" >&5
6805 $as_echo "$ac_cv_cflags__fPIC__Wl___export_dynamic" >&6; }
6806 if test $ac_cv_cflags__fPIC__Wl___export_dynamic = yes; then :
6807   LDEXECFLAGS="-Wl,--export-dynamic"
6808
6809 fi
6810
6811       as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,--rpath,\\$ORIGIN/../lib" | $as_tr_sh`
6812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib" >&5
6813 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... " >&6; }
6814 if eval "test \"\${$as_ac_var+set}\"" = set; then :
6815   $as_echo_n "(cached) " >&6
6816 else
6817   ac_wine_try_cflags_saved=$CFLAGS
6818 CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
6819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6820 /* end confdefs.h.  */
6821 int main(int argc, char **argv) { return 0; }
6822 _ACEOF
6823 if ac_fn_c_try_link "$LINENO"; then :
6824   eval "$as_ac_var=yes"
6825 else
6826   eval "$as_ac_var=no"
6827 fi
6828 rm -f core conftest.err conftest.$ac_objext \
6829     conftest$ac_exeext conftest.$ac_ext
6830 CFLAGS=$ac_wine_try_cflags_saved
6831 fi
6832 eval ac_res=\$$as_ac_var
6833                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6834 $as_echo "$ac_res" >&6; }
6835 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6836   LDRPATH_INSTALL="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
6837                        LDRPATH_LOCAL="-Wl,--rpath,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
6838 else
6839   as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,-R,\\$ORIGIN/../lib" | $as_tr_sh`
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib" >&5
6841 $as_echo_n "checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib... " >&6; }
6842 if eval "test \"\${$as_ac_var+set}\"" = set; then :
6843   $as_echo_n "(cached) " >&6
6844 else
6845   ac_wine_try_cflags_saved=$CFLAGS
6846 CFLAGS="$CFLAGS -fPIC -Wl,-R,\$ORIGIN/../lib"
6847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6848 /* end confdefs.h.  */
6849 int main(int argc, char **argv) { return 0; }
6850 _ACEOF
6851 if ac_fn_c_try_link "$LINENO"; then :
6852   eval "$as_ac_var=yes"
6853 else
6854   eval "$as_ac_var=no"
6855 fi
6856 rm -f core conftest.err conftest.$ac_objext \
6857     conftest$ac_exeext conftest.$ac_ext
6858 CFLAGS=$ac_wine_try_cflags_saved
6859 fi
6860 eval ac_res=\$$as_ac_var
6861                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6862 $as_echo "$ac_res" >&6; }
6863 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6864   LDRPATH_INSTALL="-Wl,-R,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
6865                             LDRPATH_LOCAL="-Wl,-R,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
6866 fi
6867 fi
6868
6869       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--enable-new-dtags" >&5
6870 $as_echo_n "checking whether the compiler supports -Wl,--enable-new-dtags... " >&6; }
6871 if test "${ac_cv_cflags__Wl___enable_new_dtags+set}" = set; then :
6872   $as_echo_n "(cached) " >&6
6873 else
6874   ac_wine_try_cflags_saved=$CFLAGS
6875 CFLAGS="$CFLAGS -Wl,--enable-new-dtags"
6876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6877 /* end confdefs.h.  */
6878 int main(int argc, char **argv) { return 0; }
6879 _ACEOF
6880 if ac_fn_c_try_link "$LINENO"; then :
6881   ac_cv_cflags__Wl___enable_new_dtags=yes
6882 else
6883   ac_cv_cflags__Wl___enable_new_dtags=no
6884 fi
6885 rm -f core conftest.err conftest.$ac_objext \
6886     conftest$ac_exeext conftest.$ac_ext
6887 CFLAGS=$ac_wine_try_cflags_saved
6888 fi
6889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___enable_new_dtags" >&5
6890 $as_echo "$ac_cv_cflags__Wl___enable_new_dtags" >&6; }
6891 if test $ac_cv_cflags__Wl___enable_new_dtags = yes; then :
6892   LDRPATH_INSTALL="$LDRPATH_INSTALL -Wl,--enable-new-dtags"
6893 fi
6894
6895       case $host_cpu in
6896         *i[3456789]86* | x86_64)
6897           as_ac_var=`$as_echo "ac_cv_cflags_-Wl,--section-start,.interp=0x7bf00400" | $as_tr_sh`
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400" >&5
6899 $as_echo_n "checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... " >&6; }
6900 if eval "test \"\${$as_ac_var+set}\"" = set; then :
6901   $as_echo_n "(cached) " >&6
6902 else
6903   ac_wine_try_cflags_saved=$CFLAGS
6904 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
6905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6906 /* end confdefs.h.  */
6907 int main(int argc, char **argv) { return 0; }
6908 _ACEOF
6909 if ac_fn_c_try_link "$LINENO"; then :
6910   eval "$as_ac_var=yes"
6911 else
6912   eval "$as_ac_var=no"
6913 fi
6914 rm -f core conftest.err conftest.$ac_objext \
6915     conftest$ac_exeext conftest.$ac_ext
6916 CFLAGS=$ac_wine_try_cflags_saved
6917 fi
6918 eval ac_res=\$$as_ac_var
6919                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6920 $as_echo "$ac_res" >&6; }
6921 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6922   case $host_os in
6923                            freebsd*)  LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x60000400" ;;
6924                            *) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400" ;;
6925                            esac
6926
6927 fi
6928           # Extract the first word of "prelink", so it can be a program name with args.
6929 set dummy prelink; ac_word=$2
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6931 $as_echo_n "checking for $ac_word... " >&6; }
6932 if test "${ac_cv_path_PRELINK+set}" = set; then :
6933   $as_echo_n "(cached) " >&6
6934 else
6935   case $PRELINK in
6936   [\\/]* | ?:[\\/]*)
6937   ac_cv_path_PRELINK="$PRELINK" # Let the user override the test with a path.
6938   ;;
6939   *)
6940   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6941 for as_dir in /sbin /usr/sbin $PATH
6942 do
6943   IFS=$as_save_IFS
6944   test -z "$as_dir" && as_dir=.
6945     for ac_exec_ext in '' $ac_executable_extensions; do
6946   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6947     ac_cv_path_PRELINK="$as_dir/$ac_word$ac_exec_ext"
6948     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6949     break 2
6950   fi
6951 done
6952   done
6953 IFS=$as_save_IFS
6954
6955   test -z "$ac_cv_path_PRELINK" && ac_cv_path_PRELINK="false"
6956   ;;
6957 esac
6958 fi
6959 PRELINK=$ac_cv_path_PRELINK
6960 if test -n "$PRELINK"; then
6961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRELINK" >&5
6962 $as_echo "$PRELINK" >&6; }
6963 else
6964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6965 $as_echo "no" >&6; }
6966 fi
6967
6968
6969           if test "x$PRELINK" = xfalse
6970           then
6971               as_fn_append wine_warnings "|prelink not found, base address of core dlls won't be set correctly."
6972           fi
6973           ;;
6974       esac
6975
6976     else
6977       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a UnixWare (Solaris) dll" >&5
6978 $as_echo_n "checking whether we can build a UnixWare (Solaris) dll... " >&6; }
6979 if test "${ac_cv_c_dll_unixware+set}" = set; then :
6980   $as_echo_n "(cached) " >&6
6981 else
6982   ac_wine_try_cflags_saved=$CFLAGS
6983 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
6984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6985 /* end confdefs.h.  */
6986 void myfunc() {}
6987 _ACEOF
6988 if ac_fn_c_try_link "$LINENO"; then :
6989   ac_cv_c_dll_unixware="yes"
6990 else
6991   ac_cv_c_dll_unixware="no"
6992 fi
6993 rm -f core conftest.err conftest.$ac_objext \
6994     conftest$ac_exeext conftest.$ac_ext
6995 CFLAGS=$ac_wine_try_cflags_saved
6996 fi
6997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_unixware" >&5
6998 $as_echo "$ac_cv_c_dll_unixware" >&6; }
6999       if test "$ac_cv_c_dll_unixware" = "yes"
7000       then
7001         LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
7002         LDDLLFLAGS="-Wl,-G,-B,symbolic"
7003
7004       else
7005         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build an HP-UX dll" >&5
7006 $as_echo_n "checking whether we can build an HP-UX dll... " >&6; }
7007 if test "${ac_cv_c_dll_hpux+set}" = set; then :
7008   $as_echo_n "(cached) " >&6
7009 else
7010   ac_wine_try_cflags_saved=$CFLAGS
7011 CFLAGS="$CFLAGS -shared"
7012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7013 /* end confdefs.h.  */
7014 void myfunc() {}
7015 _ACEOF
7016 if ac_fn_c_try_link "$LINENO"; then :
7017   ac_cv_c_dll_hpux="yes"
7018 else
7019   ac_cv_c_dll_hpux="no"
7020 fi
7021 rm -f core conftest.err conftest.$ac_objext \
7022     conftest$ac_exeext conftest.$ac_ext
7023 CFLAGS=$ac_wine_try_cflags_saved
7024 fi
7025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_hpux" >&5
7026 $as_echo "$ac_cv_c_dll_hpux" >&6; }
7027         if test "$ac_cv_c_dll_hpux" = "yes"
7028         then
7029           LIBEXT="sl"
7030           DLLEXT=".sl"
7031           LDDLLFLAGS="-shared -fPIC"
7032           LDSHARED="\$(CC) -shared"
7033         fi
7034       fi
7035     fi
7036     ;;
7037 esac
7038
7039 enable_wineqtdecoder=${enable_wineqtdecoder:-no}
7040 enable_winequartz_drv=${enable_winequartz_drv:-no}
7041
7042 if test "$LIBEXT" = "a"; then
7043   as_fn_error $? "could not find a way to build shared libraries.
7044 It is currently not possible to build Wine without shared library
7045 (.so) support to allow transparent switch between .so and .dll files.
7046 If you are using Linux, you will need a newer binutils.
7047 " "$LINENO" 5
7048 fi
7049
7050 CROSSTEST_DISABLE=\#
7051
7052 if test "$cross_compiling" = "no" -a "x$enable_tests" != xno -a "$LIBEXT" != "dll"
7053 then
7054     case "$host_cpu" in
7055   i[3456789]86*)
7056     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 " ;;
7057   x86_64)
7058     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 " ;;
7059   *)
7060     ac_prefix_list="" ;;
7061 esac
7062 for ac_prog in $ac_prefix_list
7063 do
7064   # Extract the first word of "$ac_prog", so it can be a program name with args.
7065 set dummy $ac_prog; ac_word=$2
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7067 $as_echo_n "checking for $ac_word... " >&6; }
7068 if test "${ac_cv_prog_CROSSCC+set}" = set; then :
7069   $as_echo_n "(cached) " >&6
7070 else
7071   if test -n "$CROSSCC"; then
7072   ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
7073 else
7074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7075 for as_dir in $PATH
7076 do
7077   IFS=$as_save_IFS
7078   test -z "$as_dir" && as_dir=.
7079     for ac_exec_ext in '' $ac_executable_extensions; do
7080   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7081     ac_cv_prog_CROSSCC="$ac_prog"
7082     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7083     break 2
7084   fi
7085 done
7086   done
7087 IFS=$as_save_IFS
7088
7089 fi
7090 fi
7091 CROSSCC=$ac_cv_prog_CROSSCC
7092 if test -n "$CROSSCC"; then
7093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CROSSCC" >&5
7094 $as_echo "$CROSSCC" >&6; }
7095 else
7096   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7097 $as_echo "no" >&6; }
7098 fi
7099
7100
7101   test -n "$CROSSCC" && break
7102 done
7103 test -n "$CROSSCC" || CROSSCC="false"
7104
7105     if test "$CROSSCC" != "false"
7106     then
7107         ac_save_CC="$CC"
7108         CC="$CROSSCC"
7109         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CROSSCC works" >&5
7110 $as_echo_n "checking whether $CROSSCC works... " >&6; }
7111         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7112 /* end confdefs.h.  */
7113
7114 int
7115 main ()
7116 {
7117
7118   ;
7119   return 0;
7120 }
7121 _ACEOF
7122 if ac_fn_c_try_compile "$LINENO"; then :
7123   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7124 $as_echo "yes" >&6; }
7125                            set x $CROSSCC
7126                            shift
7127                            target=""
7128                            while test $# -ge 1
7129                            do
7130                                case "$1" in
7131                                  *-gcc) target=`expr "$1" : '\(.*\)-gcc'` ;;
7132                                esac
7133                                shift
7134                            done
7135                            if test -n "$target"
7136                            then
7137                                CROSSTEST_DISABLE=""
7138                                CROSSTARGET="$target"
7139
7140                            fi
7141 else
7142   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7143 $as_echo "no" >&6; }
7144 fi
7145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7146         CC="$ac_save_CC"
7147     fi
7148 fi
7149
7150
7151 if test "$ac_cv_header_pthread_h" = "yes"
7152 then
7153     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
7154 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
7155 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
7156   $as_echo_n "(cached) " >&6
7157 else
7158   ac_check_lib_save_LIBS=$LIBS
7159 LIBS="-lpthread  $LIBS"
7160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7161 /* end confdefs.h.  */
7162
7163 /* Override any GCC internal prototype to avoid an error.
7164    Use char because int might match the return type of a GCC
7165    builtin and then its argument prototype would still apply.  */
7166 #ifdef __cplusplus
7167 extern "C"
7168 #endif
7169 char pthread_create ();
7170 int
7171 main ()
7172 {
7173 return pthread_create ();
7174   ;
7175   return 0;
7176 }
7177 _ACEOF
7178 if ac_fn_c_try_link "$LINENO"; then :
7179   ac_cv_lib_pthread_pthread_create=yes
7180 else
7181   ac_cv_lib_pthread_pthread_create=no
7182 fi
7183 rm -f core conftest.err conftest.$ac_objext \
7184     conftest$ac_exeext conftest.$ac_ext
7185 LIBS=$ac_check_lib_save_LIBS
7186 fi
7187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
7188 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
7189 if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
7190   LIBPTHREAD="-lpthread"
7191
7192 fi
7193
7194 fi
7195 if test "x$LIBPTHREAD" = "x"; then :
7196   case "x$with_pthread" in
7197   xno) ;;
7198   *)   as_fn_error $? "pthread ${notice_platform}development files not found.
7199 Wine cannot support threads without libpthread.
7200 Use the --without-pthread option if you really want this." "$LINENO" 5  ;;
7201 esac
7202 fi
7203
7204
7205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
7206 $as_echo_n "checking for X... " >&6; }
7207
7208
7209 # Check whether --with-x was given.
7210 if test "${with_x+set}" = set; then :
7211   withval=$with_x;
7212 fi
7213
7214 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7215 if test "x$with_x" = xno; then
7216   # The user explicitly disabled X.
7217   have_x=disabled
7218 else
7219   case $x_includes,$x_libraries in #(
7220     *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5 ;; #(
7221     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
7222   $as_echo_n "(cached) " >&6
7223 else
7224   # One or both of the vars are not set, and there is no cached value.
7225 ac_x_includes=no ac_x_libraries=no
7226 rm -f -r conftest.dir
7227 if mkdir conftest.dir; then
7228   cd conftest.dir
7229   cat >Imakefile <<'_ACEOF'
7230 incroot:
7231         @echo incroot='${INCROOT}'
7232 usrlibdir:
7233         @echo usrlibdir='${USRLIBDIR}'
7234 libdir:
7235         @echo libdir='${LIBDIR}'
7236 _ACEOF
7237   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
7238     # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7239     for ac_var in incroot usrlibdir libdir; do
7240       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
7241     done
7242     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7243     for ac_extension in a so sl dylib la dll; do
7244       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
7245          test -f "$ac_im_libdir/libX11.$ac_extension"; then
7246         ac_im_usrlibdir=$ac_im_libdir; break
7247       fi
7248     done
7249     # Screen out bogus values from the imake configuration.  They are
7250     # bogus both because they are the default anyway, and because
7251     # using them would break gcc on systems where it needs fixed includes.
7252     case $ac_im_incroot in
7253         /usr/include) ac_x_includes= ;;
7254         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7255     esac
7256     case $ac_im_usrlibdir in
7257         /usr/lib | /usr/lib64 | /lib | /lib64) ;;
7258         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7259     esac
7260   fi
7261   cd ..
7262   rm -f -r conftest.dir
7263 fi
7264
7265 # Standard set of common directories for X headers.
7266 # Check X11 before X11Rn because it is often a symlink to the current release.
7267 ac_x_header_dirs='
7268 /usr/X11/include
7269 /usr/X11R7/include
7270 /usr/X11R6/include
7271 /usr/X11R5/include
7272 /usr/X11R4/include
7273
7274 /usr/include/X11
7275 /usr/include/X11R7
7276 /usr/include/X11R6
7277 /usr/include/X11R5
7278 /usr/include/X11R4
7279
7280 /usr/local/X11/include
7281 /usr/local/X11R7/include
7282 /usr/local/X11R6/include
7283 /usr/local/X11R5/include
7284 /usr/local/X11R4/include
7285
7286 /usr/local/include/X11
7287 /usr/local/include/X11R7
7288 /usr/local/include/X11R6
7289 /usr/local/include/X11R5
7290 /usr/local/include/X11R4
7291
7292 /usr/X386/include
7293 /usr/x386/include
7294 /usr/XFree86/include/X11
7295
7296 /usr/include
7297 /usr/local/include
7298 /usr/unsupported/include
7299 /usr/athena/include
7300 /usr/local/x11r5/include
7301 /usr/lpp/Xamples/include
7302
7303 /usr/openwin/include
7304 /usr/openwin/share/include'
7305
7306 if test "$ac_x_includes" = no; then
7307   # Guess where to find include files, by looking for Xlib.h.
7308   # First, try using that file with no special directory specified.
7309   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7310 /* end confdefs.h.  */
7311 #include <X11/Xlib.h>
7312 _ACEOF
7313 if ac_fn_c_try_cpp "$LINENO"; then :
7314   # We can compile using X headers with no special include directory.
7315 ac_x_includes=
7316 else
7317   for ac_dir in $ac_x_header_dirs; do
7318   if test -r "$ac_dir/X11/Xlib.h"; then
7319     ac_x_includes=$ac_dir
7320     break
7321   fi
7322 done
7323 fi
7324 rm -f conftest.err conftest.i conftest.$ac_ext
7325 fi # $ac_x_includes = no
7326
7327 if test "$ac_x_libraries" = no; then
7328   # Check for the libraries.
7329   # See if we find them without any special options.
7330   # Don't add to $LIBS permanently.
7331   ac_save_LIBS=$LIBS
7332   LIBS="-lX11 $LIBS"
7333   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7334 /* end confdefs.h.  */
7335 #include <X11/Xlib.h>
7336 int
7337 main ()
7338 {
7339 XrmInitialize ()
7340   ;
7341   return 0;
7342 }
7343 _ACEOF
7344 if ac_fn_c_try_link "$LINENO"; then :
7345   LIBS=$ac_save_LIBS
7346 # We can link X programs with no special library path.
7347 ac_x_libraries=
7348 else
7349   LIBS=$ac_save_LIBS
7350 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7351 do
7352   # Don't even attempt the hair of trying to link an X program!
7353   for ac_extension in a so sl dylib la dll; do
7354     if test -r "$ac_dir/libX11.$ac_extension"; then
7355       ac_x_libraries=$ac_dir
7356       break 2
7357     fi
7358   done
7359 done
7360 fi
7361 rm -f core conftest.err conftest.$ac_objext \
7362     conftest$ac_exeext conftest.$ac_ext
7363 fi # $ac_x_libraries = no
7364
7365 case $ac_x_includes,$ac_x_libraries in #(
7366   no,* | *,no | *\'*)
7367     # Didn't find X, or a directory has "'" in its name.
7368     ac_cv_have_x="have_x=no";; #(
7369   *)
7370     # Record where we found X for the cache.
7371     ac_cv_have_x="have_x=yes\
7372         ac_x_includes='$ac_x_includes'\
7373         ac_x_libraries='$ac_x_libraries'"
7374 esac
7375 fi
7376 ;; #(
7377     *) have_x=yes;;
7378   esac
7379   eval "$ac_cv_have_x"
7380 fi # $with_x != no
7381
7382 if test "$have_x" != yes; then
7383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
7384 $as_echo "$have_x" >&6; }
7385   no_x=yes
7386 else
7387   # If each of the values was on the command line, it overrides each guess.
7388   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7389   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7390   # Update the cache value to reflect the command line values.
7391   ac_cv_have_x="have_x=yes\
7392         ac_x_includes='$x_includes'\
7393         ac_x_libraries='$x_libraries'"
7394   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
7395 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
7396 fi
7397
7398 if test "$no_x" = yes; then
7399   # Not all programs may use this symbol, but it does not hurt to define it.
7400
7401 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
7402
7403   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7404 else
7405   if test -n "$x_includes"; then
7406     X_CFLAGS="$X_CFLAGS -I$x_includes"
7407   fi
7408
7409   # It would also be nice to do this for all -L options, not just this one.
7410   if test -n "$x_libraries"; then
7411     X_LIBS="$X_LIBS -L$x_libraries"
7412     # For Solaris; some versions of Sun CC require a space after -R and
7413     # others require no space.  Words are not sufficient . . . .
7414     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
7415 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
7416     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7417     ac_xsave_c_werror_flag=$ac_c_werror_flag
7418     ac_c_werror_flag=yes
7419     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7420 /* end confdefs.h.  */
7421
7422 int
7423 main ()
7424 {
7425
7426   ;
7427   return 0;
7428 }
7429 _ACEOF
7430 if ac_fn_c_try_link "$LINENO"; then :
7431   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7432 $as_echo "no" >&6; }
7433        X_LIBS="$X_LIBS -R$x_libraries"
7434 else
7435   LIBS="$ac_xsave_LIBS -R $x_libraries"
7436        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7437 /* end confdefs.h.  */
7438
7439 int
7440 main ()
7441 {
7442
7443   ;
7444   return 0;
7445 }
7446 _ACEOF
7447 if ac_fn_c_try_link "$LINENO"; then :
7448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7449 $as_echo "yes" >&6; }
7450           X_LIBS="$X_LIBS -R $x_libraries"
7451 else
7452   { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
7453 $as_echo "neither works" >&6; }
7454 fi
7455 rm -f core conftest.err conftest.$ac_objext \
7456     conftest$ac_exeext conftest.$ac_ext
7457 fi
7458 rm -f core conftest.err conftest.$ac_objext \
7459     conftest$ac_exeext conftest.$ac_ext
7460     ac_c_werror_flag=$ac_xsave_c_werror_flag
7461     LIBS=$ac_xsave_LIBS
7462   fi
7463
7464   # Check for system-dependent libraries X programs must link with.
7465   # Do this before checking for the system-independent R6 libraries
7466   # (-lICE), since we may need -lsocket or whatever for X linking.
7467
7468   if test "$ISC" = yes; then
7469     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7470   else
7471     # Martyn Johnson says this is needed for Ultrix, if the X
7472     # libraries were built with DECnet support.  And Karl Berry says
7473     # the Alpha needs dnet_stub (dnet does not exist).
7474     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
7475     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7476 /* end confdefs.h.  */
7477
7478 /* Override any GCC internal prototype to avoid an error.
7479    Use char because int might match the return type of a GCC
7480    builtin and then its argument prototype would still apply.  */
7481 #ifdef __cplusplus
7482 extern "C"
7483 #endif
7484 char XOpenDisplay ();
7485 int
7486 main ()
7487 {
7488 return XOpenDisplay ();
7489   ;
7490   return 0;
7491 }
7492 _ACEOF
7493 if ac_fn_c_try_link "$LINENO"; then :
7494
7495 else
7496   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
7497 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
7498 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
7499   $as_echo_n "(cached) " >&6
7500 else
7501   ac_check_lib_save_LIBS=$LIBS
7502 LIBS="-ldnet  $LIBS"
7503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7504 /* end confdefs.h.  */
7505
7506 /* Override any GCC internal prototype to avoid an error.
7507    Use char because int might match the return type of a GCC
7508    builtin and then its argument prototype would still apply.  */
7509 #ifdef __cplusplus
7510 extern "C"
7511 #endif
7512 char dnet_ntoa ();
7513 int
7514 main ()
7515 {
7516 return dnet_ntoa ();
7517   ;
7518   return 0;
7519 }
7520 _ACEOF
7521 if ac_fn_c_try_link "$LINENO"; then :
7522   ac_cv_lib_dnet_dnet_ntoa=yes
7523 else
7524   ac_cv_lib_dnet_dnet_ntoa=no
7525 fi
7526 rm -f core conftest.err conftest.$ac_objext \
7527     conftest$ac_exeext conftest.$ac_ext
7528 LIBS=$ac_check_lib_save_LIBS
7529 fi
7530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7531 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
7532 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
7533   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7534 fi
7535
7536     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7537       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
7538 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
7539 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
7540   $as_echo_n "(cached) " >&6
7541 else
7542   ac_check_lib_save_LIBS=$LIBS
7543 LIBS="-ldnet_stub  $LIBS"
7544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7545 /* end confdefs.h.  */
7546
7547 /* Override any GCC internal prototype to avoid an error.
7548    Use char because int might match the return type of a GCC
7549    builtin and then its argument prototype would still apply.  */
7550 #ifdef __cplusplus
7551 extern "C"
7552 #endif
7553 char dnet_ntoa ();
7554 int
7555 main ()
7556 {
7557 return dnet_ntoa ();
7558   ;
7559   return 0;
7560 }
7561 _ACEOF
7562 if ac_fn_c_try_link "$LINENO"; then :
7563   ac_cv_lib_dnet_stub_dnet_ntoa=yes
7564 else
7565   ac_cv_lib_dnet_stub_dnet_ntoa=no
7566 fi
7567 rm -f core conftest.err conftest.$ac_objext \
7568     conftest$ac_exeext conftest.$ac_ext
7569 LIBS=$ac_check_lib_save_LIBS
7570 fi
7571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
7572 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
7573 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
7574   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7575 fi
7576
7577     fi
7578 fi
7579 rm -f core conftest.err conftest.$ac_objext \
7580     conftest$ac_exeext conftest.$ac_ext
7581     LIBS="$ac_xsave_LIBS"
7582
7583     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7584     # to get the SysV transport functions.
7585     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7586     # needs -lnsl.
7587     # The nsl library prevents programs from opening the X display
7588     # on Irix 5.2, according to T.E. Dickey.
7589     # The functions gethostbyname, getservbyname, and inet_addr are
7590     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
7591     ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
7592 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
7593
7594 fi
7595
7596     if test $ac_cv_func_gethostbyname = no; then
7597       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
7598 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
7599 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
7600   $as_echo_n "(cached) " >&6
7601 else
7602   ac_check_lib_save_LIBS=$LIBS
7603 LIBS="-lnsl  $LIBS"
7604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7605 /* end confdefs.h.  */
7606
7607 /* Override any GCC internal prototype to avoid an error.
7608    Use char because int might match the return type of a GCC
7609    builtin and then its argument prototype would still apply.  */
7610 #ifdef __cplusplus
7611 extern "C"
7612 #endif
7613 char gethostbyname ();
7614 int
7615 main ()
7616 {
7617 return gethostbyname ();
7618   ;
7619   return 0;
7620 }
7621 _ACEOF
7622 if ac_fn_c_try_link "$LINENO"; then :
7623   ac_cv_lib_nsl_gethostbyname=yes
7624 else
7625   ac_cv_lib_nsl_gethostbyname=no
7626 fi
7627 rm -f core conftest.err conftest.$ac_objext \
7628     conftest$ac_exeext conftest.$ac_ext
7629 LIBS=$ac_check_lib_save_LIBS
7630 fi
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
7632 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
7633 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
7634   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7635 fi
7636
7637       if test $ac_cv_lib_nsl_gethostbyname = no; then
7638         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
7639 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
7640 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
7641   $as_echo_n "(cached) " >&6
7642 else
7643   ac_check_lib_save_LIBS=$LIBS
7644 LIBS="-lbsd  $LIBS"
7645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7646 /* end confdefs.h.  */
7647
7648 /* Override any GCC internal prototype to avoid an error.
7649    Use char because int might match the return type of a GCC
7650    builtin and then its argument prototype would still apply.  */
7651 #ifdef __cplusplus
7652 extern "C"
7653 #endif
7654 char gethostbyname ();
7655 int
7656 main ()
7657 {
7658 return gethostbyname ();
7659   ;
7660   return 0;
7661 }
7662 _ACEOF
7663 if ac_fn_c_try_link "$LINENO"; then :
7664   ac_cv_lib_bsd_gethostbyname=yes
7665 else
7666   ac_cv_lib_bsd_gethostbyname=no
7667 fi
7668 rm -f core conftest.err conftest.$ac_objext \
7669     conftest$ac_exeext conftest.$ac_ext
7670 LIBS=$ac_check_lib_save_LIBS
7671 fi
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
7673 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
7674 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
7675   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
7676 fi
7677
7678       fi
7679     fi
7680
7681     # lieder@skyler.mavd.honeywell.com says without -lsocket,
7682     # socket/setsockopt and other routines are undefined under SCO ODT
7683     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
7684     # on later versions), says Simon Leinen: it contains gethostby*
7685     # variants that don't use the name server (or something).  -lsocket
7686     # must be given before -lnsl if both are needed.  We assume that
7687     # if connect needs -lnsl, so does gethostbyname.
7688     ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
7689 if test "x$ac_cv_func_connect" = x""yes; then :
7690
7691 fi
7692
7693     if test $ac_cv_func_connect = no; then
7694       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
7695 $as_echo_n "checking for connect in -lsocket... " >&6; }
7696 if test "${ac_cv_lib_socket_connect+set}" = set; then :
7697   $as_echo_n "(cached) " >&6
7698 else
7699   ac_check_lib_save_LIBS=$LIBS
7700 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7702 /* end confdefs.h.  */
7703
7704 /* Override any GCC internal prototype to avoid an error.
7705    Use char because int might match the return type of a GCC
7706    builtin and then its argument prototype would still apply.  */
7707 #ifdef __cplusplus
7708 extern "C"
7709 #endif
7710 char connect ();
7711 int
7712 main ()
7713 {
7714 return connect ();
7715   ;
7716   return 0;
7717 }
7718 _ACEOF
7719 if ac_fn_c_try_link "$LINENO"; then :
7720   ac_cv_lib_socket_connect=yes
7721 else
7722   ac_cv_lib_socket_connect=no
7723 fi
7724 rm -f core conftest.err conftest.$ac_objext \
7725     conftest$ac_exeext conftest.$ac_ext
7726 LIBS=$ac_check_lib_save_LIBS
7727 fi
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
7729 $as_echo "$ac_cv_lib_socket_connect" >&6; }
7730 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
7731   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7732 fi
7733
7734     fi
7735
7736     # Guillermo Gomez says -lposix is necessary on A/UX.
7737     ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
7738 if test "x$ac_cv_func_remove" = x""yes; then :
7739
7740 fi
7741
7742     if test $ac_cv_func_remove = no; then
7743       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
7744 $as_echo_n "checking for remove in -lposix... " >&6; }
7745 if test "${ac_cv_lib_posix_remove+set}" = set; then :
7746   $as_echo_n "(cached) " >&6
7747 else
7748   ac_check_lib_save_LIBS=$LIBS
7749 LIBS="-lposix  $LIBS"
7750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7751 /* end confdefs.h.  */
7752
7753 /* Override any GCC internal prototype to avoid an error.
7754    Use char because int might match the return type of a GCC
7755    builtin and then its argument prototype would still apply.  */
7756 #ifdef __cplusplus
7757 extern "C"
7758 #endif
7759 char remove ();
7760 int
7761 main ()
7762 {
7763 return remove ();
7764   ;
7765   return 0;
7766 }
7767 _ACEOF
7768 if ac_fn_c_try_link "$LINENO"; then :
7769   ac_cv_lib_posix_remove=yes
7770 else
7771   ac_cv_lib_posix_remove=no
7772 fi
7773 rm -f core conftest.err conftest.$ac_objext \
7774     conftest$ac_exeext conftest.$ac_ext
7775 LIBS=$ac_check_lib_save_LIBS
7776 fi
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
7778 $as_echo "$ac_cv_lib_posix_remove" >&6; }
7779 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
7780   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7781 fi
7782
7783     fi
7784
7785     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7786     ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
7787 if test "x$ac_cv_func_shmat" = x""yes; then :
7788
7789 fi
7790
7791     if test $ac_cv_func_shmat = no; then
7792       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
7793 $as_echo_n "checking for shmat in -lipc... " >&6; }
7794 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
7795   $as_echo_n "(cached) " >&6
7796 else
7797   ac_check_lib_save_LIBS=$LIBS
7798 LIBS="-lipc  $LIBS"
7799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7800 /* end confdefs.h.  */
7801
7802 /* Override any GCC internal prototype to avoid an error.
7803    Use char because int might match the return type of a GCC
7804    builtin and then its argument prototype would still apply.  */
7805 #ifdef __cplusplus
7806 extern "C"
7807 #endif
7808 char shmat ();
7809 int
7810 main ()
7811 {
7812 return shmat ();
7813   ;
7814   return 0;
7815 }
7816 _ACEOF
7817 if ac_fn_c_try_link "$LINENO"; then :
7818   ac_cv_lib_ipc_shmat=yes
7819 else
7820   ac_cv_lib_ipc_shmat=no
7821 fi
7822 rm -f core conftest.err conftest.$ac_objext \
7823     conftest$ac_exeext conftest.$ac_ext
7824 LIBS=$ac_check_lib_save_LIBS
7825 fi
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
7827 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
7828 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
7829   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7830 fi
7831
7832     fi
7833   fi
7834
7835   # Check for libraries that X11R6 Xt/Xaw programs need.
7836   ac_save_LDFLAGS=$LDFLAGS
7837   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7838   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7839   # check for ICE first), but we must link in the order -lSM -lICE or
7840   # we get undefined symbols.  So assume we have SM if we have ICE.
7841   # These have to be linked with before -lX11, unlike the other
7842   # libraries we check for below, so use a different variable.
7843   # John Interrante, Karl Berry
7844   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
7845 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
7846 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
7847   $as_echo_n "(cached) " >&6
7848 else
7849   ac_check_lib_save_LIBS=$LIBS
7850 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7852 /* end confdefs.h.  */
7853
7854 /* Override any GCC internal prototype to avoid an error.
7855    Use char because int might match the return type of a GCC
7856    builtin and then its argument prototype would still apply.  */
7857 #ifdef __cplusplus
7858 extern "C"
7859 #endif
7860 char IceConnectionNumber ();
7861 int
7862 main ()
7863 {
7864 return IceConnectionNumber ();
7865   ;
7866   return 0;
7867 }
7868 _ACEOF
7869 if ac_fn_c_try_link "$LINENO"; then :
7870   ac_cv_lib_ICE_IceConnectionNumber=yes
7871 else
7872   ac_cv_lib_ICE_IceConnectionNumber=no
7873 fi
7874 rm -f core conftest.err conftest.$ac_objext \
7875     conftest$ac_exeext conftest.$ac_ext
7876 LIBS=$ac_check_lib_save_LIBS
7877 fi
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7879 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
7880 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
7881   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7882 fi
7883
7884   LDFLAGS=$ac_save_LDFLAGS
7885
7886 fi
7887
7888
7889 if test "$have_x" = "yes"
7890 then
7891     XLIB="-lX11"
7892     ac_save_CPPFLAGS="$CPPFLAGS"
7893     CPPFLAGS="$CPPFLAGS $X_CFLAGS"
7894
7895     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lX11" >&5
7896 $as_echo_n "checking for -lX11... " >&6; }
7897 if test "${ac_cv_lib_soname_X11+set}" = set; then :
7898   $as_echo_n "(cached) " >&6
7899 else
7900   ac_check_soname_save_LIBS=$LIBS
7901 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
7902   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7903 /* end confdefs.h.  */
7904
7905 /* Override any GCC internal prototype to avoid an error.
7906    Use char because int might match the return type of a GCC
7907    builtin and then its argument prototype would still apply.  */
7908 #ifdef __cplusplus
7909 extern "C"
7910 #endif
7911 char XCreateWindow ();
7912 int
7913 main ()
7914 {
7915 return XCreateWindow ();
7916   ;
7917   return 0;
7918 }
7919 _ACEOF
7920 if ac_fn_c_try_link "$LINENO"; then :
7921   case "$LIBEXT" in
7922     dll) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest.exe | grep "X11" | sed -e "s/dll.*/dll/"';2,$d'` ;;
7923     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'` ;;
7924     *) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep "libX11\\.$LIBEXT" | sed -e "s/^.*\(libX11\.$LIBEXT[^     ]*\).*$/\1/"';2,$d'` ;;
7925   esac
7926 fi
7927 rm -f core conftest.err conftest.$ac_objext \
7928     conftest$ac_exeext conftest.$ac_ext
7929   LIBS=$ac_check_soname_save_LIBS
7930 fi
7931 if test "x$ac_cv_lib_soname_X11" = "x"; then :
7932   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7933 $as_echo "not found" >&6; }
7934
7935 else
7936   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_X11" >&5
7937 $as_echo "$ac_cv_lib_soname_X11" >&6; }
7938
7939 cat >>confdefs.h <<_ACEOF
7940 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
7941 _ACEOF
7942
7943
7944 fi
7945     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXext" >&5
7946 $as_echo_n "checking for -lXext... " >&6; }
7947 if test "${ac_cv_lib_soname_Xext+set}" = set; then :
7948   $as_echo_n "(cached) " >&6
7949 else
7950   ac_check_soname_save_LIBS=$LIBS
7951 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
7952   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7953 /* end confdefs.h.  */
7954
7955 /* Override any GCC internal prototype to avoid an error.
7956    Use char because int might match the return type of a GCC
7957    builtin and then its argument prototype would still apply.  */
7958 #ifdef __cplusplus
7959 extern "C"
7960 #endif
7961 char XextCreateExtension ();
7962 int
7963 main ()
7964 {
7965 return XextCreateExtension ();
7966   ;
7967   return 0;
7968 }
7969 _ACEOF
7970 if ac_fn_c_try_link "$LINENO"; then :
7971   case "$LIBEXT" in
7972     dll) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest.exe | grep "Xext" | sed -e "s/dll.*/dll/"';2,$d'` ;;
7973     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'` ;;
7974     *) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXext\\.$LIBEXT" | sed -e "s/^.*\(libXext\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
7975   esac
7976 fi
7977 rm -f core conftest.err conftest.$ac_objext \
7978     conftest$ac_exeext conftest.$ac_ext
7979   LIBS=$ac_check_soname_save_LIBS
7980 fi
7981 if test "x$ac_cv_lib_soname_Xext" = "x"; then :
7982   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7983 $as_echo "not found" >&6; }
7984
7985 else
7986   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xext" >&5
7987 $as_echo "$ac_cv_lib_soname_Xext" >&6; }
7988
7989 cat >>confdefs.h <<_ACEOF
7990 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
7991 _ACEOF
7992
7993        XLIB="-lXext $XLIB"
7994 fi
7995
7996         for ac_header in X11/Xlib.h \
7997                       X11/XKBlib.h \
7998                       X11/Xutil.h \
7999                       X11/Xcursor/Xcursor.h \
8000                       X11/extensions/shape.h \
8001                       X11/extensions/XInput.h \
8002                       X11/extensions/XShm.h \
8003                       X11/extensions/Xcomposite.h \
8004                       X11/extensions/Xinerama.h \
8005                       X11/extensions/Xrandr.h \
8006                       X11/extensions/Xrender.h \
8007                       X11/extensions/xf86vmode.h \
8008                       X11/extensions/xf86vmproto.h
8009 do :
8010   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8011 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_X11_XLIB_H
8012 # include <X11/Xlib.h>
8013 #endif
8014 #ifdef HAVE_X11_XUTIL_H
8015 # include <X11/Xutil.h>
8016 #endif
8017 "
8018 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8019   cat >>confdefs.h <<_ACEOF
8020 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8021 _ACEOF
8022
8023 fi
8024
8025 done
8026
8027
8028                 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
8029         then
8030               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbQueryExtension in -lX11" >&5
8031 $as_echo_n "checking for XkbQueryExtension in -lX11... " >&6; }
8032 if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then :
8033   $as_echo_n "(cached) " >&6
8034 else
8035   ac_check_lib_save_LIBS=$LIBS
8036 LIBS="-lX11 $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8038 /* end confdefs.h.  */
8039
8040 /* Override any GCC internal prototype to avoid an error.
8041    Use char because int might match the return type of a GCC
8042    builtin and then its argument prototype would still apply.  */
8043 #ifdef __cplusplus
8044 extern "C"
8045 #endif
8046 char XkbQueryExtension ();
8047 int
8048 main ()
8049 {
8050 return XkbQueryExtension ();
8051   ;
8052   return 0;
8053 }
8054 _ACEOF
8055 if ac_fn_c_try_link "$LINENO"; then :
8056   ac_cv_lib_X11_XkbQueryExtension=yes
8057 else
8058   ac_cv_lib_X11_XkbQueryExtension=no
8059 fi
8060 rm -f core conftest.err conftest.$ac_objext \
8061     conftest$ac_exeext conftest.$ac_ext
8062 LIBS=$ac_check_lib_save_LIBS
8063 fi
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
8065 $as_echo "$ac_cv_lib_X11_XkbQueryExtension" >&6; }
8066 if test "x$ac_cv_lib_X11_XkbQueryExtension" = x""yes; then :
8067
8068 $as_echo "#define HAVE_XKB 1" >>confdefs.h
8069
8070 fi
8071
8072         fi
8073
8074                 if test "$ac_cv_header_X11_Xcursor_Xcursor_h" = "yes"
8075         then
8076             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcursor" >&5
8077 $as_echo_n "checking for -lXcursor... " >&6; }
8078 if test "${ac_cv_lib_soname_Xcursor+set}" = set; then :
8079   $as_echo_n "(cached) " >&6
8080 else
8081   ac_check_soname_save_LIBS=$LIBS
8082 LIBS="-lXcursor $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8083   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8084 /* end confdefs.h.  */
8085
8086 /* Override any GCC internal prototype to avoid an error.
8087    Use char because int might match the return type of a GCC
8088    builtin and then its argument prototype would still apply.  */
8089 #ifdef __cplusplus
8090 extern "C"
8091 #endif
8092 char XcursorImageLoadCursor ();
8093 int
8094 main ()
8095 {
8096 return XcursorImageLoadCursor ();
8097   ;
8098   return 0;
8099 }
8100 _ACEOF
8101 if ac_fn_c_try_link "$LINENO"; then :
8102   case "$LIBEXT" in
8103     dll) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest.exe | grep "Xcursor" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8104     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'` ;;
8105     *) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXcursor\\.$LIBEXT" | sed -e "s/^.*\(libXcursor\.$LIBEXT[^         ]*\).*$/\1/"';2,$d'` ;;
8106   esac
8107 fi
8108 rm -f core conftest.err conftest.$ac_objext \
8109     conftest$ac_exeext conftest.$ac_ext
8110   LIBS=$ac_check_soname_save_LIBS
8111 fi
8112 if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
8113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8114 $as_echo "not found" >&6; }
8115
8116 else
8117   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcursor" >&5
8118 $as_echo "$ac_cv_lib_soname_Xcursor" >&6; }
8119
8120 cat >>confdefs.h <<_ACEOF
8121 #define SONAME_LIBXCURSOR "$ac_cv_lib_soname_Xcursor"
8122 _ACEOF
8123
8124
8125 fi
8126         fi
8127         if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
8128   case "x$with_xcursor" in
8129   x)   as_fn_append wine_notices "|libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported." ;;
8130   xno) ;;
8131   *)   as_fn_error $? "libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported.
8132 This is an error since --with-xcursor was requested." "$LINENO" 5  ;;
8133 esac
8134 fi
8135
8136                 if test "$ac_cv_header_X11_extensions_XInput_h" = "yes"
8137         then
8138             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXi" >&5
8139 $as_echo_n "checking for -lXi... " >&6; }
8140 if test "${ac_cv_lib_soname_Xi+set}" = set; then :
8141   $as_echo_n "(cached) " >&6
8142 else
8143   ac_check_soname_save_LIBS=$LIBS
8144 LIBS="-lXi $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8145   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8146 /* end confdefs.h.  */
8147
8148 /* Override any GCC internal prototype to avoid an error.
8149    Use char because int might match the return type of a GCC
8150    builtin and then its argument prototype would still apply.  */
8151 #ifdef __cplusplus
8152 extern "C"
8153 #endif
8154 char XOpenDevice ();
8155 int
8156 main ()
8157 {
8158 return XOpenDevice ();
8159   ;
8160   return 0;
8161 }
8162 _ACEOF
8163 if ac_fn_c_try_link "$LINENO"; then :
8164   case "$LIBEXT" in
8165     dll) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest.exe | grep "Xi" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8166     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'` ;;
8167     *) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXi\\.$LIBEXT" | sed -e "s/^.*\(libXi\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'` ;;
8168   esac
8169 fi
8170 rm -f core conftest.err conftest.$ac_objext \
8171     conftest$ac_exeext conftest.$ac_ext
8172   LIBS=$ac_check_soname_save_LIBS
8173 fi
8174 if test "x$ac_cv_lib_soname_Xi" = "x"; then :
8175   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8176 $as_echo "not found" >&6; }
8177
8178 else
8179   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xi" >&5
8180 $as_echo "$ac_cv_lib_soname_Xi" >&6; }
8181
8182 cat >>confdefs.h <<_ACEOF
8183 #define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
8184 _ACEOF
8185
8186
8187 fi
8188         fi
8189         if test "x$ac_cv_lib_soname_Xi" = "x"; then :
8190   case "x$with_xinput" in
8191   x)   as_fn_append wine_notices "|libxi ${notice_platform}development files not found, the Xinput extension won't be supported." ;;
8192   xno) ;;
8193   *)   as_fn_error $? "libxi ${notice_platform}development files not found, the Xinput extension won't be supported.
8194 This is an error since --with-xinput was requested." "$LINENO" 5  ;;
8195 esac
8196 fi
8197
8198                 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
8199         then
8200               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
8201 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
8202 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then :
8203   $as_echo_n "(cached) " >&6
8204 else
8205   ac_check_lib_save_LIBS=$LIBS
8206 LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8208 /* end confdefs.h.  */
8209
8210 /* Override any GCC internal prototype to avoid an error.
8211    Use char because int might match the return type of a GCC
8212    builtin and then its argument prototype would still apply.  */
8213 #ifdef __cplusplus
8214 extern "C"
8215 #endif
8216 char XShmQueryExtension ();
8217 int
8218 main ()
8219 {
8220 return XShmQueryExtension ();
8221   ;
8222   return 0;
8223 }
8224 _ACEOF
8225 if ac_fn_c_try_link "$LINENO"; then :
8226   ac_cv_lib_Xext_XShmQueryExtension=yes
8227 else
8228   ac_cv_lib_Xext_XShmQueryExtension=no
8229 fi
8230 rm -f core conftest.err conftest.$ac_objext \
8231     conftest$ac_exeext conftest.$ac_ext
8232 LIBS=$ac_check_lib_save_LIBS
8233 fi
8234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
8235 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
8236 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = x""yes; then :
8237
8238 $as_echo "#define HAVE_LIBXXSHM 1" >>confdefs.h
8239
8240 fi
8241
8242         fi
8243         if test "$ac_cv_lib_Xext_XShmQueryExtension" != "yes"; then :
8244   case "x$with_xshm" in
8245   x)   as_fn_append wine_notices "|XShm ${notice_platform}development files not found, X Shared Memory won't be supported." ;;
8246   xno) ;;
8247   *)   as_fn_error $? "XShm ${notice_platform}development files not found, X Shared Memory won't be supported.
8248 This is an error since --with-xshm was requested." "$LINENO" 5  ;;
8249 esac
8250 fi
8251
8252                 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
8253         then
8254               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
8255 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
8256 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
8257   $as_echo_n "(cached) " >&6
8258 else
8259   ac_check_lib_save_LIBS=$LIBS
8260 LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8262 /* end confdefs.h.  */
8263
8264 /* Override any GCC internal prototype to avoid an error.
8265    Use char because int might match the return type of a GCC
8266    builtin and then its argument prototype would still apply.  */
8267 #ifdef __cplusplus
8268 extern "C"
8269 #endif
8270 char XShapeQueryExtension ();
8271 int
8272 main ()
8273 {
8274 return XShapeQueryExtension ();
8275   ;
8276   return 0;
8277 }
8278 _ACEOF
8279 if ac_fn_c_try_link "$LINENO"; then :
8280   ac_cv_lib_Xext_XShapeQueryExtension=yes
8281 else
8282   ac_cv_lib_Xext_XShapeQueryExtension=no
8283 fi
8284 rm -f core conftest.err conftest.$ac_objext \
8285     conftest$ac_exeext conftest.$ac_ext
8286 LIBS=$ac_check_lib_save_LIBS
8287 fi
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8289 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
8290 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
8291
8292 $as_echo "#define HAVE_LIBXSHAPE 1" >>confdefs.h
8293
8294 fi
8295
8296         fi
8297         if test "$ac_cv_lib_Xext_XShapeQueryExtension" != "yes"; then :
8298   case "x$with_xshape" in
8299   x)   as_fn_append wine_notices "|XShape ${notice_platform}development files not found, XShape won't be supported." ;;
8300   xno) ;;
8301   *)   as_fn_error $? "XShape ${notice_platform}development files not found, XShape won't be supported.
8302 This is an error since --with-xshape was requested." "$LINENO" 5  ;;
8303 esac
8304 fi
8305
8306                 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes" -o "$ac_cv_header_X11_extensions_xf86vmproto_h" = "yes"
8307         then
8308             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXxf86vm" >&5
8309 $as_echo_n "checking for -lXxf86vm... " >&6; }
8310 if test "${ac_cv_lib_soname_Xxf86vm+set}" = set; then :
8311   $as_echo_n "(cached) " >&6
8312 else
8313   ac_check_soname_save_LIBS=$LIBS
8314 LIBS="-lXxf86vm $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8315   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8316 /* end confdefs.h.  */
8317
8318 /* Override any GCC internal prototype to avoid an error.
8319    Use char because int might match the return type of a GCC
8320    builtin and then its argument prototype would still apply.  */
8321 #ifdef __cplusplus
8322 extern "C"
8323 #endif
8324 char XF86VidModeQueryExtension ();
8325 int
8326 main ()
8327 {
8328 return XF86VidModeQueryExtension ();
8329   ;
8330   return 0;
8331 }
8332 _ACEOF
8333 if ac_fn_c_try_link "$LINENO"; then :
8334   case "$LIBEXT" in
8335     dll) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest.exe | grep "Xxf86vm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8336     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'` ;;
8337     *) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXxf86vm\\.$LIBEXT" | sed -e "s/^.*\(libXxf86vm\.$LIBEXT[^         ]*\).*$/\1/"';2,$d'` ;;
8338   esac
8339 fi
8340 rm -f core conftest.err conftest.$ac_objext \
8341     conftest$ac_exeext conftest.$ac_ext
8342   LIBS=$ac_check_soname_save_LIBS
8343 fi
8344 if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
8345   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8346 $as_echo "not found" >&6; }
8347
8348 else
8349   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xxf86vm" >&5
8350 $as_echo "$ac_cv_lib_soname_Xxf86vm" >&6; }
8351
8352 cat >>confdefs.h <<_ACEOF
8353 #define SONAME_LIBXXF86VM "$ac_cv_lib_soname_Xxf86vm"
8354 _ACEOF
8355
8356
8357 fi
8358         fi
8359         if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
8360   case "x$with_xxf86vm" in
8361   x)   as_fn_append wine_notices "|libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported." ;;
8362   xno) ;;
8363   *)   as_fn_error $? "libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported.
8364 This is an error since --with-xxf86vm was requested." "$LINENO" 5  ;;
8365 esac
8366 fi
8367
8368                 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"
8369         then
8370             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrender" >&5
8371 $as_echo_n "checking for -lXrender... " >&6; }
8372 if test "${ac_cv_lib_soname_Xrender+set}" = set; then :
8373   $as_echo_n "(cached) " >&6
8374 else
8375   ac_check_soname_save_LIBS=$LIBS
8376 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8377   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8378 /* end confdefs.h.  */
8379
8380 /* Override any GCC internal prototype to avoid an error.
8381    Use char because int might match the return type of a GCC
8382    builtin and then its argument prototype would still apply.  */
8383 #ifdef __cplusplus
8384 extern "C"
8385 #endif
8386 char XRenderQueryExtension ();
8387 int
8388 main ()
8389 {
8390 return XRenderQueryExtension ();
8391   ;
8392   return 0;
8393 }
8394 _ACEOF
8395 if ac_fn_c_try_link "$LINENO"; then :
8396   case "$LIBEXT" in
8397     dll) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest.exe | grep "Xrender" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8398     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'` ;;
8399     *) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXrender\\.$LIBEXT" | sed -e "s/^.*\(libXrender\.$LIBEXT[^         ]*\).*$/\1/"';2,$d'` ;;
8400   esac
8401 fi
8402 rm -f core conftest.err conftest.$ac_objext \
8403     conftest$ac_exeext conftest.$ac_ext
8404   LIBS=$ac_check_soname_save_LIBS
8405 fi
8406 if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
8407   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8408 $as_echo "not found" >&6; }
8409
8410 else
8411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrender" >&5
8412 $as_echo "$ac_cv_lib_soname_Xrender" >&6; }
8413
8414 cat >>confdefs.h <<_ACEOF
8415 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
8416 _ACEOF
8417
8418        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderSetPictureTransform in -lXrender" >&5
8419 $as_echo_n "checking for XRenderSetPictureTransform in -lXrender... " >&6; }
8420 if test "${ac_cv_lib_Xrender_XRenderSetPictureTransform+set}" = set; then :
8421   $as_echo_n "(cached) " >&6
8422 else
8423   ac_check_lib_save_LIBS=$LIBS
8424 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8426 /* end confdefs.h.  */
8427
8428 /* Override any GCC internal prototype to avoid an error.
8429    Use char because int might match the return type of a GCC
8430    builtin and then its argument prototype would still apply.  */
8431 #ifdef __cplusplus
8432 extern "C"
8433 #endif
8434 char XRenderSetPictureTransform ();
8435 int
8436 main ()
8437 {
8438 return XRenderSetPictureTransform ();
8439   ;
8440   return 0;
8441 }
8442 _ACEOF
8443 if ac_fn_c_try_link "$LINENO"; then :
8444   ac_cv_lib_Xrender_XRenderSetPictureTransform=yes
8445 else
8446   ac_cv_lib_Xrender_XRenderSetPictureTransform=no
8447 fi
8448 rm -f core conftest.err conftest.$ac_objext \
8449     conftest$ac_exeext conftest.$ac_ext
8450 LIBS=$ac_check_lib_save_LIBS
8451 fi
8452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5
8453 $as_echo "$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6; }
8454 if test "x$ac_cv_lib_Xrender_XRenderSetPictureTransform" = x""yes; then :
8455
8456 $as_echo "#define HAVE_XRENDERSETPICTURETRANSFORM 1" >>confdefs.h
8457
8458 fi
8459
8460 fi
8461
8462         fi
8463         if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
8464   case "x$with_xrender" in
8465   x)   as_fn_append wine_warnings "|libxrender ${notice_platform}development files not found, XRender won't be supported." ;;
8466   xno) ;;
8467   *)   as_fn_error $? "libxrender ${notice_platform}development files not found, XRender won't be supported.
8468 This is an error since --with-xrender was requested." "$LINENO" 5  ;;
8469 esac
8470 fi
8471
8472                 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes" -a "x$ac_cv_lib_soname_Xrender" != "x"
8473         then
8474                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8475 /* end confdefs.h.  */
8476 #include <X11/Xlib.h>
8477 #include <X11/extensions/Xrandr.h>
8478 int
8479 main ()
8480 {
8481 static typeof(XRRSetScreenConfigAndRate) * func;
8482   ;
8483   return 0;
8484 }
8485 _ACEOF
8486 if ac_fn_c_try_compile "$LINENO"; then :
8487   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrandr" >&5
8488 $as_echo_n "checking for -lXrandr... " >&6; }
8489 if test "${ac_cv_lib_soname_Xrandr+set}" = set; then :
8490   $as_echo_n "(cached) " >&6
8491 else
8492   ac_check_soname_save_LIBS=$LIBS
8493 LIBS="-lXrandr $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8494   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8495 /* end confdefs.h.  */
8496
8497 /* Override any GCC internal prototype to avoid an error.
8498    Use char because int might match the return type of a GCC
8499    builtin and then its argument prototype would still apply.  */
8500 #ifdef __cplusplus
8501 extern "C"
8502 #endif
8503 char XRRQueryExtension ();
8504 int
8505 main ()
8506 {
8507 return XRRQueryExtension ();
8508   ;
8509   return 0;
8510 }
8511 _ACEOF
8512 if ac_fn_c_try_link "$LINENO"; then :
8513   case "$LIBEXT" in
8514     dll) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest.exe | grep "Xrandr" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8515     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'` ;;
8516     *) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXrandr\\.$LIBEXT" | sed -e "s/^.*\(libXrandr\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'` ;;
8517   esac
8518 fi
8519 rm -f core conftest.err conftest.$ac_objext \
8520     conftest$ac_exeext conftest.$ac_ext
8521   LIBS=$ac_check_soname_save_LIBS
8522 fi
8523 if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
8524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8525 $as_echo "not found" >&6; }
8526
8527 else
8528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrandr" >&5
8529 $as_echo "$ac_cv_lib_soname_Xrandr" >&6; }
8530
8531 cat >>confdefs.h <<_ACEOF
8532 #define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
8533 _ACEOF
8534
8535
8536 fi
8537 fi
8538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8539         fi
8540         if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
8541   case "x$with_xrandr" in
8542   x)   as_fn_append wine_notices "|libxrandr ${notice_platform}development files not found, XRandr won't be supported." ;;
8543   xno) ;;
8544   *)   as_fn_error $? "libxrandr ${notice_platform}development files not found, XRandr won't be supported.
8545 This is an error since --with-xrandr was requested." "$LINENO" 5  ;;
8546 esac
8547 fi
8548
8549                 if test "$ac_cv_header_X11_extensions_Xinerama_h" = "yes"
8550         then
8551                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8552 /* end confdefs.h.  */
8553 #include <X11/Xlib.h>
8554 #include <X11/extensions/Xinerama.h>
8555 int
8556 main ()
8557 {
8558 static typeof(XineramaQueryScreens) * func;
8559   ;
8560   return 0;
8561 }
8562 _ACEOF
8563 if ac_fn_c_try_compile "$LINENO"; then :
8564   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXinerama" >&5
8565 $as_echo_n "checking for -lXinerama... " >&6; }
8566 if test "${ac_cv_lib_soname_Xinerama+set}" = set; then :
8567   $as_echo_n "(cached) " >&6
8568 else
8569   ac_check_soname_save_LIBS=$LIBS
8570 LIBS="-lXinerama $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8571   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8572 /* end confdefs.h.  */
8573
8574 /* Override any GCC internal prototype to avoid an error.
8575    Use char because int might match the return type of a GCC
8576    builtin and then its argument prototype would still apply.  */
8577 #ifdef __cplusplus
8578 extern "C"
8579 #endif
8580 char XineramaQueryScreens ();
8581 int
8582 main ()
8583 {
8584 return XineramaQueryScreens ();
8585   ;
8586   return 0;
8587 }
8588 _ACEOF
8589 if ac_fn_c_try_link "$LINENO"; then :
8590   case "$LIBEXT" in
8591     dll) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest.exe | grep "Xinerama" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8592     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'` ;;
8593     *) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXinerama\\.$LIBEXT" | sed -e "s/^.*\(libXinerama\.$LIBEXT[^      ]*\).*$/\1/"';2,$d'` ;;
8594   esac
8595 fi
8596 rm -f core conftest.err conftest.$ac_objext \
8597     conftest$ac_exeext conftest.$ac_ext
8598   LIBS=$ac_check_soname_save_LIBS
8599 fi
8600 if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
8601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8602 $as_echo "not found" >&6; }
8603
8604 else
8605   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xinerama" >&5
8606 $as_echo "$ac_cv_lib_soname_Xinerama" >&6; }
8607
8608 cat >>confdefs.h <<_ACEOF
8609 #define SONAME_LIBXINERAMA "$ac_cv_lib_soname_Xinerama"
8610 _ACEOF
8611
8612
8613 fi
8614 fi
8615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8616         fi
8617         if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
8618   case "x$with_xinerama" in
8619   x)   as_fn_append wine_notices "|libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported." ;;
8620   xno) ;;
8621   *)   as_fn_error $? "libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported.
8622 This is an error since --with-xinerama was requested." "$LINENO" 5  ;;
8623 esac
8624 fi
8625
8626                 if test "$ac_cv_header_X11_extensions_Xcomposite_h" = "yes"
8627         then
8628             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcomposite" >&5
8629 $as_echo_n "checking for -lXcomposite... " >&6; }
8630 if test "${ac_cv_lib_soname_Xcomposite+set}" = set; then :
8631   $as_echo_n "(cached) " >&6
8632 else
8633   ac_check_soname_save_LIBS=$LIBS
8634 LIBS="-lXcomposite $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8635   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8636 /* end confdefs.h.  */
8637
8638 /* Override any GCC internal prototype to avoid an error.
8639    Use char because int might match the return type of a GCC
8640    builtin and then its argument prototype would still apply.  */
8641 #ifdef __cplusplus
8642 extern "C"
8643 #endif
8644 char XCompositeRedirectWindow ();
8645 int
8646 main ()
8647 {
8648 return XCompositeRedirectWindow ();
8649   ;
8650   return 0;
8651 }
8652 _ACEOF
8653 if ac_fn_c_try_link "$LINENO"; then :
8654   case "$LIBEXT" in
8655     dll) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest.exe | grep "Xcomposite" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8656     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'` ;;
8657     *) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXcomposite\\.$LIBEXT" | sed -e "s/^.*\(libXcomposite\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'` ;;
8658   esac
8659 fi
8660 rm -f core conftest.err conftest.$ac_objext \
8661     conftest$ac_exeext conftest.$ac_ext
8662   LIBS=$ac_check_soname_save_LIBS
8663 fi
8664 if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
8665   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8666 $as_echo "not found" >&6; }
8667
8668 else
8669   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcomposite" >&5
8670 $as_echo "$ac_cv_lib_soname_Xcomposite" >&6; }
8671
8672 cat >>confdefs.h <<_ACEOF
8673 #define SONAME_LIBXCOMPOSITE "$ac_cv_lib_soname_Xcomposite"
8674 _ACEOF
8675
8676
8677 fi
8678         fi
8679         if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
8680   case "x$with_xcomposite" in
8681   x)   as_fn_append wine_notices "|libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported." ;;
8682   xno) ;;
8683   *)   as_fn_error $? "libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported.
8684 This is an error since --with-xcomposite was requested." "$LINENO" 5  ;;
8685 esac
8686 fi
8687
8688                 ac_fn_c_check_member "$LINENO" "XICCallback" "callback" "ac_cv_member_XICCallback_callback" "#ifdef HAVE_X11_XLIB_H
8689 #include <X11/Xlib.h>
8690 #endif
8691 "
8692 if test "x$ac_cv_member_XICCallback_callback" = x""yes; then :
8693
8694 cat >>confdefs.h <<_ACEOF
8695 #define HAVE_XICCALLBACK_CALLBACK 1
8696 _ACEOF
8697
8698
8699 fi
8700
8701
8702
8703         opengl_msg=""
8704     if test "x$with_opengl" != "xno"
8705     then
8706         for ac_header in GL/gl.h GL/glx.h GL/glu.h
8707 do :
8708   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8709 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_GL_GLX_H
8710 # include <GL/glx.h>
8711 #endif
8712 "
8713 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8714   cat >>confdefs.h <<_ACEOF
8715 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8716 _ACEOF
8717
8718 fi
8719
8720 done
8721
8722         if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
8723         then
8724                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for up-to-date OpenGL version" >&5
8725 $as_echo_n "checking for up-to-date OpenGL version... " >&6; }
8726 if test "${wine_cv_opengl_header_version_OK+set}" = set; then :
8727   $as_echo_n "(cached) " >&6
8728 else
8729   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8730 /* end confdefs.h.  */
8731 #include <GL/gl.h>
8732 int
8733 main ()
8734 {
8735 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
8736   ;
8737   return 0;
8738 }
8739 _ACEOF
8740 if ac_fn_c_try_compile "$LINENO"; then :
8741   wine_cv_opengl_header_version_OK="yes"
8742 else
8743   wine_cv_opengl_header_version_OK="no"
8744 fi
8745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8746 fi
8747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_opengl_header_version_OK" >&5
8748 $as_echo "$wine_cv_opengl_header_version_OK" >&6; }
8749
8750             if test "$wine_cv_opengl_header_version_OK" = "yes"
8751             then
8752                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
8753 $as_echo_n "checking for -lGL... " >&6; }
8754 if test "${ac_cv_lib_soname_GL+set}" = set; then :
8755   $as_echo_n "(cached) " >&6
8756 else
8757   ac_check_soname_save_LIBS=$LIBS
8758 LIBS="-lGL $X_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
8759   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8760 /* end confdefs.h.  */
8761
8762 /* Override any GCC internal prototype to avoid an error.
8763    Use char because int might match the return type of a GCC
8764    builtin and then its argument prototype would still apply.  */
8765 #ifdef __cplusplus
8766 extern "C"
8767 #endif
8768 char glXCreateContext ();
8769 int
8770 main ()
8771 {
8772 return glXCreateContext ();
8773   ;
8774   return 0;
8775 }
8776 _ACEOF
8777 if ac_fn_c_try_link "$LINENO"; then :
8778   case "$LIBEXT" in
8779     dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8780     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'` ;;
8781     *) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'` ;;
8782   esac
8783 fi
8784 rm -f core conftest.err conftest.$ac_objext \
8785     conftest$ac_exeext conftest.$ac_ext
8786   LIBS=$ac_check_soname_save_LIBS
8787 fi
8788 if test "x$ac_cv_lib_soname_GL" = "x"; then :
8789   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8790 $as_echo "not found" >&6; }
8791        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
8792 $as_echo_n "checking for -lGL... " >&6; }
8793 if test "${ac_cv_lib_soname_GL+set}" = set; then :
8794   $as_echo_n "(cached) " >&6
8795 else
8796   ac_check_soname_save_LIBS=$LIBS
8797 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"
8798   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8799 /* end confdefs.h.  */
8800
8801 /* Override any GCC internal prototype to avoid an error.
8802    Use char because int might match the return type of a GCC
8803    builtin and then its argument prototype would still apply.  */
8804 #ifdef __cplusplus
8805 extern "C"
8806 #endif
8807 char glXCreateContext ();
8808 int
8809 main ()
8810 {
8811 return glXCreateContext ();
8812   ;
8813   return 0;
8814 }
8815 _ACEOF
8816 if ac_fn_c_try_link "$LINENO"; then :
8817   case "$LIBEXT" in
8818     dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8819     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'` ;;
8820     *) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'` ;;
8821   esac
8822 fi
8823 rm -f core conftest.err conftest.$ac_objext \
8824     conftest$ac_exeext conftest.$ac_ext
8825   LIBS=$ac_check_soname_save_LIBS
8826 fi
8827 if test "x$ac_cv_lib_soname_GL" = "x"; then :
8828   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8829 $as_echo "not found" >&6; }
8830        if test -f /usr/X11R6/lib/libGL.a
8831                                     then
8832                                         opengl_msg="/usr/X11R6/lib/libGL.a is present on your system.
8833 This probably prevents linking to OpenGL. Try deleting the file and restarting configure."
8834                                     else
8835                                         opengl_msg="No OpenGL library found on this system."
8836                                     fi
8837 else
8838   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
8839 $as_echo "$ac_cv_lib_soname_GL" >&6; }
8840
8841 cat >>confdefs.h <<_ACEOF
8842 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
8843 _ACEOF
8844
8845        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"
8846
8847 $as_echo "#define HAVE_OPENGL 1" >>confdefs.h
8848
8849 fi
8850 else
8851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
8852 $as_echo "$ac_cv_lib_soname_GL" >&6; }
8853
8854 cat >>confdefs.h <<_ACEOF
8855 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
8856 _ACEOF
8857
8858        OPENGL_LIBS="-lGL"
8859
8860 $as_echo "#define HAVE_OPENGL 1" >>confdefs.h
8861
8862 fi
8863                  if test "$ac_cv_header_GL_glu_h" = "yes"
8864                  then
8865                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGLU" >&5
8866 $as_echo_n "checking for -lGLU... " >&6; }
8867 if test "${ac_cv_lib_soname_GLU+set}" = set; then :
8868   $as_echo_n "(cached) " >&6
8869 else
8870   ac_check_soname_save_LIBS=$LIBS
8871 LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
8872   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8873 /* end confdefs.h.  */
8874
8875 /* Override any GCC internal prototype to avoid an error.
8876    Use char because int might match the return type of a GCC
8877    builtin and then its argument prototype would still apply.  */
8878 #ifdef __cplusplus
8879 extern "C"
8880 #endif
8881 char gluLookAt ();
8882 int
8883 main ()
8884 {
8885 return gluLookAt ();
8886   ;
8887   return 0;
8888 }
8889 _ACEOF
8890 if ac_fn_c_try_link "$LINENO"; then :
8891   case "$LIBEXT" in
8892     dll) ac_cv_lib_soname_GLU=`$ac_cv_path_LDD conftest.exe | grep "GLU" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8893     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'` ;;
8894     *) ac_cv_lib_soname_GLU=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGLU\\.$LIBEXT" | sed -e "s/^.*\(libGLU\.$LIBEXT[^     ]*\).*$/\1/"';2,$d'` ;;
8895   esac
8896 fi
8897 rm -f core conftest.err conftest.$ac_objext \
8898     conftest$ac_exeext conftest.$ac_ext
8899   LIBS=$ac_check_soname_save_LIBS
8900 fi
8901 if test "x$ac_cv_lib_soname_GLU" = "x"; then :
8902   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8903 $as_echo "not found" >&6; }
8904
8905 else
8906   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GLU" >&5
8907 $as_echo "$ac_cv_lib_soname_GLU" >&6; }
8908
8909 cat >>confdefs.h <<_ACEOF
8910 #define SONAME_LIBGLU "$ac_cv_lib_soname_GLU"
8911 _ACEOF
8912
8913
8914 fi
8915                  fi
8916                  if test "x$ac_cv_lib_soname_GLU" = "x"; then :
8917   case "x$with_glu" in
8918   x)   as_fn_append wine_notices "|libGLU ${notice_platform}development files not found, GLU won't be supported." ;;
8919   xno) ;;
8920   *)   as_fn_error $? "libGLU ${notice_platform}development files not found, GLU won't be supported.
8921 This is an error since --with-glu was requested." "$LINENO" 5  ;;
8922 esac
8923 fi
8924              else
8925                  opengl_msg="Old Mesa headers detected. Consider upgrading your Mesa libraries."
8926              fi
8927          else
8928              opengl_msg="OpenGL development headers not found."
8929          fi
8930          test -n "$opengl_msg" && enable_opengl32=${enable_opengl32:-no}
8931          test "x$ac_cv_lib_soname_GLU" = "x" && enable_glu32=${enable_glu32:-no}
8932     else
8933          enable_opengl32=${enable_opengl32:-no}
8934          enable_glu32=${enable_glu32:-no}
8935     fi
8936     if test -n "$opengl_msg"; then :
8937   case "x$with_opengl" in
8938   x)   as_fn_append wine_warnings "|$opengl_msg
8939 OpenGL and Direct3D won't be supported." ;;
8940   xno) ;;
8941   *)   as_fn_error $? "$opengl_msg
8942 OpenGL and Direct3D won't be supported.
8943 This is an error since --with-opengl was requested." "$LINENO" 5  ;;
8944 esac
8945 fi
8946
8947         NASLIBS=""
8948
8949     for ac_header in audio/audiolib.h
8950 do :
8951   ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
8952 if test "x$ac_cv_header_audio_audiolib_h" = x""yes; then :
8953   cat >>confdefs.h <<_ACEOF
8954 #define HAVE_AUDIO_AUDIOLIB_H 1
8955 _ACEOF
8956  for ac_header in audio/soundlib.h
8957 do :
8958   ac_fn_c_check_header_compile "$LINENO" "audio/soundlib.h" "ac_cv_header_audio_soundlib_h" "#include <audio/audiolib.h>
8959 "
8960 if test "x$ac_cv_header_audio_soundlib_h" = x""yes; then :
8961   cat >>confdefs.h <<_ACEOF
8962 #define HAVE_AUDIO_SOUNDLIB_H 1
8963 _ACEOF
8964
8965 fi
8966
8967 done
8968
8969           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AuCreateFlow in -laudio" >&5
8970 $as_echo_n "checking for AuCreateFlow in -laudio... " >&6; }
8971 if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then :
8972   $as_echo_n "(cached) " >&6
8973 else
8974   ac_check_lib_save_LIBS=$LIBS
8975 LIBS="-laudio -lXt $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8977 /* end confdefs.h.  */
8978
8979 /* Override any GCC internal prototype to avoid an error.
8980    Use char because int might match the return type of a GCC
8981    builtin and then its argument prototype would still apply.  */
8982 #ifdef __cplusplus
8983 extern "C"
8984 #endif
8985 char AuCreateFlow ();
8986 int
8987 main ()
8988 {
8989 return AuCreateFlow ();
8990   ;
8991   return 0;
8992 }
8993 _ACEOF
8994 if ac_fn_c_try_link "$LINENO"; then :
8995   ac_cv_lib_audio_AuCreateFlow=yes
8996 else
8997   ac_cv_lib_audio_AuCreateFlow=no
8998 fi
8999 rm -f core conftest.err conftest.$ac_objext \
9000     conftest$ac_exeext conftest.$ac_ext
9001 LIBS=$ac_check_lib_save_LIBS
9002 fi
9003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuCreateFlow" >&5
9004 $as_echo "$ac_cv_lib_audio_AuCreateFlow" >&6; }
9005 if test "x$ac_cv_lib_audio_AuCreateFlow" = x""yes; then :
9006
9007 $as_echo "#define HAVE_NAS 1" >>confdefs.h
9008
9009                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XauGetBestAuthByAddr in -lXau" >&5
9010 $as_echo_n "checking for XauGetBestAuthByAddr in -lXau... " >&6; }
9011 if test "${ac_cv_lib_Xau_XauGetBestAuthByAddr+set}" = set; then :
9012   $as_echo_n "(cached) " >&6
9013 else
9014   ac_check_lib_save_LIBS=$LIBS
9015 LIBS="-lXau $X_LIBS $LIBS"
9016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9017 /* end confdefs.h.  */
9018
9019 /* Override any GCC internal prototype to avoid an error.
9020    Use char because int might match the return type of a GCC
9021    builtin and then its argument prototype would still apply.  */
9022 #ifdef __cplusplus
9023 extern "C"
9024 #endif
9025 char XauGetBestAuthByAddr ();
9026 int
9027 main ()
9028 {
9029 return XauGetBestAuthByAddr ();
9030   ;
9031   return 0;
9032 }
9033 _ACEOF
9034 if ac_fn_c_try_link "$LINENO"; then :
9035   ac_cv_lib_Xau_XauGetBestAuthByAddr=yes
9036 else
9037   ac_cv_lib_Xau_XauGetBestAuthByAddr=no
9038 fi
9039 rm -f core conftest.err conftest.$ac_objext \
9040     conftest$ac_exeext conftest.$ac_ext
9041 LIBS=$ac_check_lib_save_LIBS
9042 fi
9043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xau_XauGetBestAuthByAddr" >&5
9044 $as_echo "$ac_cv_lib_Xau_XauGetBestAuthByAddr" >&6; }
9045 if test "x$ac_cv_lib_Xau_XauGetBestAuthByAddr" = x""yes; then :
9046   NASLIBS="-lXau -laudio -lXt $X_LIBS $XLIB $X_EXTRA_LIBS"
9047 else
9048   NASLIBS="-laudio -lXt $X_LIBS $XLIB $X_EXTRA_LIBS"
9049 fi
9050
9051
9052 fi
9053
9054 fi
9055
9056 done
9057
9058
9059     CPPFLAGS="$ac_save_CPPFLAGS"
9060 else
9061     XLIB=""
9062     X_CFLAGS=""
9063     X_LIBS=""
9064     enable_winex11_drv=${enable_winex11_drv:-no}
9065     enable_opengl32=${enable_opengl32:-no}
9066     enable_glu32=${enable_glu32:-no}
9067 fi
9068 if test "x$XLIB" = "x"; then :
9069   case "x$with_x" in
9070   xno) ;;
9071   *)   as_fn_error $? "X ${notice_platform}development files not found. Wine will be built
9072 without X support, which probably isn't what you want. You will need
9073 to install ${notice_platform}development packages of Xlib/Xfree86 at the very least.
9074 Use the --without-x option if you really want this." "$LINENO" 5  ;;
9075 esac
9076 fi
9077
9078 if test "$ac_cv_header_CL_cl_h" = "yes"
9079 then
9080     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clGetPlatformInfo in -lOpenCL" >&5
9081 $as_echo_n "checking for clGetPlatformInfo in -lOpenCL... " >&6; }
9082 if test "${ac_cv_lib_OpenCL_clGetPlatformInfo+set}" = set; then :
9083   $as_echo_n "(cached) " >&6
9084 else
9085   ac_check_lib_save_LIBS=$LIBS
9086 LIBS="-lOpenCL  $LIBS"
9087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9088 /* end confdefs.h.  */
9089
9090 /* Override any GCC internal prototype to avoid an error.
9091    Use char because int might match the return type of a GCC
9092    builtin and then its argument prototype would still apply.  */
9093 #ifdef __cplusplus
9094 extern "C"
9095 #endif
9096 char clGetPlatformInfo ();
9097 int
9098 main ()
9099 {
9100 return clGetPlatformInfo ();
9101   ;
9102   return 0;
9103 }
9104 _ACEOF
9105 if ac_fn_c_try_link "$LINENO"; then :
9106   ac_cv_lib_OpenCL_clGetPlatformInfo=yes
9107 else
9108   ac_cv_lib_OpenCL_clGetPlatformInfo=no
9109 fi
9110 rm -f core conftest.err conftest.$ac_objext \
9111     conftest$ac_exeext conftest.$ac_ext
9112 LIBS=$ac_check_lib_save_LIBS
9113 fi
9114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_OpenCL_clGetPlatformInfo" >&5
9115 $as_echo "$ac_cv_lib_OpenCL_clGetPlatformInfo" >&6; }
9116 if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" = x""yes; then :
9117   LIBOPENCL="-lOpenCL"
9118
9119 fi
9120
9121 fi
9122 if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes; then :
9123   case "x$with_opencl" in
9124   x)   as_fn_append wine_notices "|OpenCL ${notice_platform}development files not found, OpenCL won't be supported." ;;
9125   xno) ;;
9126   *)   as_fn_error $? "OpenCL ${notice_platform}development files not found, OpenCL won't be supported.
9127 This is an error since --with-opencl was requested." "$LINENO" 5  ;;
9128 esac
9129 fi
9130 test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes && enable_opencl=${enable_opencl:-no}
9131
9132
9133 XML2LIBS=""
9134
9135 XML2INCL=""
9136
9137 XSLTINCL=""
9138
9139 if test "x$with_xml" != "xno"
9140 then
9141     ac_save_CPPFLAGS="$CPPFLAGS"
9142     if test "$PKG_CONFIG" != "false"
9143     then
9144         ac_xml_libs="`$PKG_CONFIG --libs libxml-2.0 2>/dev/null`"
9145         ac_xml_cflags="`$PKG_CONFIG --cflags libxml-2.0 2>/dev/null`"
9146     else
9147         ac_xml_libs="`xml2-config --libs 2>/dev/null`"
9148         ac_xml_cflags="`xml2-config --cflags  2>/dev/null`"
9149     fi
9150     CPPFLAGS="$CPPFLAGS $ac_xml_cflags"
9151     for ac_header in libxml/parser.h
9152 do :
9153   ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
9154 if test "x$ac_cv_header_libxml_parser_h" = x""yes; then :
9155   cat >>confdefs.h <<_ACEOF
9156 #define HAVE_LIBXML_PARSER_H 1
9157 _ACEOF
9158  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseMemory in -lxml2" >&5
9159 $as_echo_n "checking for xmlParseMemory in -lxml2... " >&6; }
9160 if test "${ac_cv_lib_xml2_xmlParseMemory+set}" = set; then :
9161   $as_echo_n "(cached) " >&6
9162 else
9163   ac_check_lib_save_LIBS=$LIBS
9164 LIBS="-lxml2 $ac_xml_libs $LIBS"
9165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9166 /* end confdefs.h.  */
9167
9168 /* Override any GCC internal prototype to avoid an error.
9169    Use char because int might match the return type of a GCC
9170    builtin and then its argument prototype would still apply.  */
9171 #ifdef __cplusplus
9172 extern "C"
9173 #endif
9174 char xmlParseMemory ();
9175 int
9176 main ()
9177 {
9178 return xmlParseMemory ();
9179   ;
9180   return 0;
9181 }
9182 _ACEOF
9183 if ac_fn_c_try_link "$LINENO"; then :
9184   ac_cv_lib_xml2_xmlParseMemory=yes
9185 else
9186   ac_cv_lib_xml2_xmlParseMemory=no
9187 fi
9188 rm -f core conftest.err conftest.$ac_objext \
9189     conftest$ac_exeext conftest.$ac_ext
9190 LIBS=$ac_check_lib_save_LIBS
9191 fi
9192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseMemory" >&5
9193 $as_echo "$ac_cv_lib_xml2_xmlParseMemory" >&6; }
9194 if test "x$ac_cv_lib_xml2_xmlParseMemory" = x""yes; then :
9195
9196 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
9197
9198                  XML2LIBS="$ac_xml_libs"
9199                  XML2INCL="$ac_xml_cflags"
9200 fi
9201
9202              { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlReadMemory in -lxml2" >&5
9203 $as_echo_n "checking for xmlReadMemory in -lxml2... " >&6; }
9204 if test "${ac_cv_lib_xml2_xmlReadMemory+set}" = set; then :
9205   $as_echo_n "(cached) " >&6
9206 else
9207   ac_check_lib_save_LIBS=$LIBS
9208 LIBS="-lxml2 $ac_xml_libs $LIBS"
9209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9210 /* end confdefs.h.  */
9211
9212 /* Override any GCC internal prototype to avoid an error.
9213    Use char because int might match the return type of a GCC
9214    builtin and then its argument prototype would still apply.  */
9215 #ifdef __cplusplus
9216 extern "C"
9217 #endif
9218 char xmlReadMemory ();
9219 int
9220 main ()
9221 {
9222 return xmlReadMemory ();
9223   ;
9224   return 0;
9225 }
9226 _ACEOF
9227 if ac_fn_c_try_link "$LINENO"; then :
9228   ac_cv_lib_xml2_xmlReadMemory=yes
9229 else
9230   ac_cv_lib_xml2_xmlReadMemory=no
9231 fi
9232 rm -f core conftest.err conftest.$ac_objext \
9233     conftest$ac_exeext conftest.$ac_ext
9234 LIBS=$ac_check_lib_save_LIBS
9235 fi
9236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlReadMemory" >&5
9237 $as_echo "$ac_cv_lib_xml2_xmlReadMemory" >&6; }
9238 if test "x$ac_cv_lib_xml2_xmlReadMemory" = x""yes; then :
9239
9240 $as_echo "#define HAVE_XMLREADMEMORY 1" >>confdefs.h
9241
9242 fi
9243
9244              { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlNewDocPI in -lxml2" >&5
9245 $as_echo_n "checking for xmlNewDocPI in -lxml2... " >&6; }
9246 if test "${ac_cv_lib_xml2_xmlNewDocPI+set}" = set; then :
9247   $as_echo_n "(cached) " >&6
9248 else
9249   ac_check_lib_save_LIBS=$LIBS
9250 LIBS="-lxml2 $ac_xml_libs $LIBS"
9251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9252 /* end confdefs.h.  */
9253
9254 /* Override any GCC internal prototype to avoid an error.
9255    Use char because int might match the return type of a GCC
9256    builtin and then its argument prototype would still apply.  */
9257 #ifdef __cplusplus
9258 extern "C"
9259 #endif
9260 char xmlNewDocPI ();
9261 int
9262 main ()
9263 {
9264 return xmlNewDocPI ();
9265   ;
9266   return 0;
9267 }
9268 _ACEOF
9269 if ac_fn_c_try_link "$LINENO"; then :
9270   ac_cv_lib_xml2_xmlNewDocPI=yes
9271 else
9272   ac_cv_lib_xml2_xmlNewDocPI=no
9273 fi
9274 rm -f core conftest.err conftest.$ac_objext \
9275     conftest$ac_exeext conftest.$ac_ext
9276 LIBS=$ac_check_lib_save_LIBS
9277 fi
9278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlNewDocPI" >&5
9279 $as_echo "$ac_cv_lib_xml2_xmlNewDocPI" >&6; }
9280 if test "x$ac_cv_lib_xml2_xmlNewDocPI" = x""yes; then :
9281
9282 $as_echo "#define HAVE_XMLNEWDOCPI 1" >>confdefs.h
9283
9284 fi
9285
9286              { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetParserStructuredErrors in -lxml2" >&5
9287 $as_echo_n "checking for xmlSchemaSetParserStructuredErrors in -lxml2... " >&6; }
9288 if test "${ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors+set}" = set; then :
9289   $as_echo_n "(cached) " >&6
9290 else
9291   ac_check_lib_save_LIBS=$LIBS
9292 LIBS="-lxml2 $ac_xml_libs $LIBS"
9293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9294 /* end confdefs.h.  */
9295
9296 /* Override any GCC internal prototype to avoid an error.
9297    Use char because int might match the return type of a GCC
9298    builtin and then its argument prototype would still apply.  */
9299 #ifdef __cplusplus
9300 extern "C"
9301 #endif
9302 char xmlSchemaSetParserStructuredErrors ();
9303 int
9304 main ()
9305 {
9306 return xmlSchemaSetParserStructuredErrors ();
9307   ;
9308   return 0;
9309 }
9310 _ACEOF
9311 if ac_fn_c_try_link "$LINENO"; then :
9312   ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=yes
9313 else
9314   ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=no
9315 fi
9316 rm -f core conftest.err conftest.$ac_objext \
9317     conftest$ac_exeext conftest.$ac_ext
9318 LIBS=$ac_check_lib_save_LIBS
9319 fi
9320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&5
9321 $as_echo "$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&6; }
9322 if test "x$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" = x""yes; then :
9323
9324 $as_echo "#define HAVE_XMLSCHEMASSETPARSERSTRUCTUREDERRORS 1" >>confdefs.h
9325
9326 fi
9327
9328              { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetValidStructuredErrors in -lxml2" >&5
9329 $as_echo_n "checking for xmlSchemaSetValidStructuredErrors in -lxml2... " >&6; }
9330 if test "${ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors+set}" = set; then :
9331   $as_echo_n "(cached) " >&6
9332 else
9333   ac_check_lib_save_LIBS=$LIBS
9334 LIBS="-lxml2 $ac_xml_libs $LIBS"
9335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9336 /* end confdefs.h.  */
9337
9338 /* Override any GCC internal prototype to avoid an error.
9339    Use char because int might match the return type of a GCC
9340    builtin and then its argument prototype would still apply.  */
9341 #ifdef __cplusplus
9342 extern "C"
9343 #endif
9344 char xmlSchemaSetValidStructuredErrors ();
9345 int
9346 main ()
9347 {
9348 return xmlSchemaSetValidStructuredErrors ();
9349   ;
9350   return 0;
9351 }
9352 _ACEOF
9353 if ac_fn_c_try_link "$LINENO"; then :
9354   ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=yes
9355 else
9356   ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=no
9357 fi
9358 rm -f core conftest.err conftest.$ac_objext \
9359     conftest$ac_exeext conftest.$ac_ext
9360 LIBS=$ac_check_lib_save_LIBS
9361 fi
9362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&5
9363 $as_echo "$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&6; }
9364 if test "x$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" = x""yes; then :
9365
9366 $as_echo "#define HAVE_XMLSCHEMASSETVALIDSTRUCTUREDERRORS 1" >>confdefs.h
9367
9368 fi
9369
9370              { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlFirstElementChild in -lxml2" >&5
9371 $as_echo_n "checking for xmlFirstElementChild in -lxml2... " >&6; }
9372 if test "${ac_cv_lib_xml2_xmlFirstElementChild+set}" = set; then :
9373   $as_echo_n "(cached) " >&6
9374 else
9375   ac_check_lib_save_LIBS=$LIBS
9376 LIBS="-lxml2 $ac_xml_libs $LIBS"
9377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9378 /* end confdefs.h.  */
9379
9380 /* Override any GCC internal prototype to avoid an error.
9381    Use char because int might match the return type of a GCC
9382    builtin and then its argument prototype would still apply.  */
9383 #ifdef __cplusplus
9384 extern "C"
9385 #endif
9386 char xmlFirstElementChild ();
9387 int
9388 main ()
9389 {
9390 return xmlFirstElementChild ();
9391   ;
9392   return 0;
9393 }
9394 _ACEOF
9395 if ac_fn_c_try_link "$LINENO"; then :
9396   ac_cv_lib_xml2_xmlFirstElementChild=yes
9397 else
9398   ac_cv_lib_xml2_xmlFirstElementChild=no
9399 fi
9400 rm -f core conftest.err conftest.$ac_objext \
9401     conftest$ac_exeext conftest.$ac_ext
9402 LIBS=$ac_check_lib_save_LIBS
9403 fi
9404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlFirstElementChild" >&5
9405 $as_echo "$ac_cv_lib_xml2_xmlFirstElementChild" >&6; }
9406 if test "x$ac_cv_lib_xml2_xmlFirstElementChild" = x""yes; then :
9407
9408 $as_echo "#define HAVE_XMLFIRSTELEMENTCHILD 1" >>confdefs.h
9409
9410 fi
9411
9412              ac_fn_c_check_type "$LINENO" "xmlDocProperties" "ac_cv_type_xmlDocProperties" "#include <libxml/tree.h>
9413 "
9414 if test "x$ac_cv_type_xmlDocProperties" = x""yes; then :
9415
9416 $as_echo "#define HAVE_XMLDOC_PROPERTIES 1" >>confdefs.h
9417
9418 fi
9419
9420
9421 fi
9422
9423 done
9424
9425     CPPFLAGS="$ac_save_CPPFLAGS"
9426 fi
9427 if test "$ac_cv_lib_xml2_xmlParseMemory" != "yes"; then :
9428   case "x$with_xml" in
9429   x)   as_fn_append wine_warnings "|libxml2 ${notice_platform}development files not found, XML won't be supported." ;;
9430   xno) ;;
9431   *)   as_fn_error $? "libxml2 ${notice_platform}development files not found, XML won't be supported.
9432 This is an error since --with-xml was requested." "$LINENO" 5  ;;
9433 esac
9434 fi
9435
9436 if test "x$with_xslt" != "xno"
9437 then
9438     if test "$PKG_CONFIG" != "false"
9439     then
9440         ac_xslt_libs="`$PKG_CONFIG --libs libxslt 2>/dev/null`"
9441         ac_xslt_cflags="`$PKG_CONFIG --cflags libxslt 2>/dev/null`"
9442     else
9443         ac_xslt_libs="`xslt-config --libs 2>/dev/null`"
9444         ac_xslt_cflags="`xslt-config --cflags 2>/dev/null`"
9445     fi
9446     ac_save_CPPFLAGS="$CPPFLAGS"
9447     CPPFLAGS="$CPPFLAGS $ac_xslt_cflags"
9448     for ac_header in libxslt/pattern.h libxslt/transform.h
9449 do :
9450   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9451 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_LIBXSLT_PATTERN_H
9452 # include <libxslt/pattern.h>
9453 #endif
9454 "
9455 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9456   cat >>confdefs.h <<_ACEOF
9457 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9458 _ACEOF
9459
9460 fi
9461
9462 done
9463
9464     CPPFLAGS="$ac_save_CPPFLAGS"
9465     if test "$ac_cv_header_libxslt_transform_h" = "yes"
9466     then
9467         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lxslt" >&5
9468 $as_echo_n "checking for -lxslt... " >&6; }
9469 if test "${ac_cv_lib_soname_xslt+set}" = set; then :
9470   $as_echo_n "(cached) " >&6
9471 else
9472   ac_check_soname_save_LIBS=$LIBS
9473 LIBS="-lxslt $ac_xslt_libs $LIBS"
9474   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9475 /* end confdefs.h.  */
9476
9477 /* Override any GCC internal prototype to avoid an error.
9478    Use char because int might match the return type of a GCC
9479    builtin and then its argument prototype would still apply.  */
9480 #ifdef __cplusplus
9481 extern "C"
9482 #endif
9483 char xsltCompilePattern ();
9484 int
9485 main ()
9486 {
9487 return xsltCompilePattern ();
9488   ;
9489   return 0;
9490 }
9491 _ACEOF
9492 if ac_fn_c_try_link "$LINENO"; then :
9493   case "$LIBEXT" in
9494     dll) ac_cv_lib_soname_xslt=`$ac_cv_path_LDD conftest.exe | grep "xslt" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9495     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'` ;;
9496     *) ac_cv_lib_soname_xslt=`$ac_cv_path_LDD conftest$ac_exeext | grep "libxslt\\.$LIBEXT" | sed -e "s/^.*\(libxslt\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
9497   esac
9498 fi
9499 rm -f core conftest.err conftest.$ac_objext \
9500     conftest$ac_exeext conftest.$ac_ext
9501   LIBS=$ac_check_soname_save_LIBS
9502 fi
9503 if test "x$ac_cv_lib_soname_xslt" = "x"; then :
9504   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9505 $as_echo "not found" >&6; }
9506
9507 else
9508   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_xslt" >&5
9509 $as_echo "$ac_cv_lib_soname_xslt" >&6; }
9510
9511 cat >>confdefs.h <<_ACEOF
9512 #define SONAME_LIBXSLT "$ac_cv_lib_soname_xslt"
9513 _ACEOF
9514
9515        XSLTINCL="$ac_xslt_cflags"
9516 fi
9517     fi
9518 fi
9519 if test "x$ac_cv_lib_soname_xslt" = "x"; then :
9520   case "x$with_xslt" in
9521   x)   as_fn_append wine_warnings "|libxslt ${notice_platform}development files not found, xslt won't be supported." ;;
9522   xno) ;;
9523   *)   as_fn_error $? "libxslt ${notice_platform}development files not found, xslt won't be supported.
9524 This is an error since --with-xslt was requested." "$LINENO" 5  ;;
9525 esac
9526 fi
9527
9528 HALINCL=""
9529
9530 if test "x$with_hal" != "xno"
9531 then
9532     ac_save_CPPFLAGS="$CPPFLAGS"
9533     if test "$PKG_CONFIG" != "false"
9534     then
9535         ac_hal_libs="`$PKG_CONFIG --libs hal 2>/dev/null`"
9536         ac_hal_cflags="`$PKG_CONFIG --cflags hal 2>/dev/null`"
9537         CPPFLAGS="$CPPFLAGS $ac_hal_cflags"
9538     fi
9539     for ac_header in dbus/dbus.h hal/libhal.h
9540 do :
9541   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9542 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9543 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9544   cat >>confdefs.h <<_ACEOF
9545 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9546 _ACEOF
9547
9548 fi
9549
9550 done
9551
9552     if test "$ac_cv_header_dbus_dbus_h" = "yes" -a "$ac_cv_header_hal_libhal_h" = "yes"
9553     then
9554         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus_connection_close in -ldbus-1" >&5
9555 $as_echo_n "checking for dbus_connection_close in -ldbus-1... " >&6; }
9556 if test "${ac_cv_lib_dbus_1_dbus_connection_close+set}" = set; then :
9557   $as_echo_n "(cached) " >&6
9558 else
9559   ac_check_lib_save_LIBS=$LIBS
9560 LIBS="-ldbus-1 $ac_hal_libs $LIBS"
9561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9562 /* end confdefs.h.  */
9563
9564 /* Override any GCC internal prototype to avoid an error.
9565    Use char because int might match the return type of a GCC
9566    builtin and then its argument prototype would still apply.  */
9567 #ifdef __cplusplus
9568 extern "C"
9569 #endif
9570 char dbus_connection_close ();
9571 int
9572 main ()
9573 {
9574 return dbus_connection_close ();
9575   ;
9576   return 0;
9577 }
9578 _ACEOF
9579 if ac_fn_c_try_link "$LINENO"; then :
9580   ac_cv_lib_dbus_1_dbus_connection_close=yes
9581 else
9582   ac_cv_lib_dbus_1_dbus_connection_close=no
9583 fi
9584 rm -f core conftest.err conftest.$ac_objext \
9585     conftest$ac_exeext conftest.$ac_ext
9586 LIBS=$ac_check_lib_save_LIBS
9587 fi
9588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dbus_1_dbus_connection_close" >&5
9589 $as_echo "$ac_cv_lib_dbus_1_dbus_connection_close" >&6; }
9590 if test "x$ac_cv_lib_dbus_1_dbus_connection_close" = x""yes; then :
9591   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lhal" >&5
9592 $as_echo_n "checking for -lhal... " >&6; }
9593 if test "${ac_cv_lib_soname_hal+set}" = set; then :
9594   $as_echo_n "(cached) " >&6
9595 else
9596   ac_check_soname_save_LIBS=$LIBS
9597 LIBS="-lhal $ac_hal_libs $LIBS"
9598   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9599 /* end confdefs.h.  */
9600
9601 /* Override any GCC internal prototype to avoid an error.
9602    Use char because int might match the return type of a GCC
9603    builtin and then its argument prototype would still apply.  */
9604 #ifdef __cplusplus
9605 extern "C"
9606 #endif
9607 char libhal_ctx_new ();
9608 int
9609 main ()
9610 {
9611 return libhal_ctx_new ();
9612   ;
9613   return 0;
9614 }
9615 _ACEOF
9616 if ac_fn_c_try_link "$LINENO"; then :
9617   case "$LIBEXT" in
9618     dll) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest.exe | grep "hal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9619     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'` ;;
9620     *) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest$ac_exeext | grep "libhal\\.$LIBEXT" | sed -e "s/^.*\(libhal\.$LIBEXT[^     ]*\).*$/\1/"';2,$d'` ;;
9621   esac
9622 fi
9623 rm -f core conftest.err conftest.$ac_objext \
9624     conftest$ac_exeext conftest.$ac_ext
9625   LIBS=$ac_check_soname_save_LIBS
9626 fi
9627 if test "x$ac_cv_lib_soname_hal" = "x"; then :
9628   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9629 $as_echo "not found" >&6; }
9630
9631 else
9632   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_hal" >&5
9633 $as_echo "$ac_cv_lib_soname_hal" >&6; }
9634
9635 cat >>confdefs.h <<_ACEOF
9636 #define SONAME_LIBHAL "$ac_cv_lib_soname_hal"
9637 _ACEOF
9638
9639        HALINCL="$ac_hal_cflags"
9640 fi
9641 fi
9642
9643     fi
9644     CPPFLAGS="$ac_save_CPPFLAGS"
9645 fi
9646 if test "x$ac_cv_lib_soname_hal" = "x" -a "x$ac_cv_header_DiskArbitration_DiskArbitration_h" != "xyes"; then :
9647   case "x$with_hal" in
9648   x)   as_fn_append wine_notices "|libhal/libdbus ${notice_platform}development files not found, no dynamic device support." ;;
9649   xno) ;;
9650   *)   as_fn_error $? "libhal/libdbus ${notice_platform}development files not found, no dynamic device support.
9651 This is an error since --with-hal was requested." "$LINENO" 5  ;;
9652 esac
9653 fi
9654
9655 if test "x$with_gnutls" != "xno"
9656 then
9657     ac_save_CPPFLAGS="$CPPFLAGS"
9658     if test "$PKG_CONFIG" != "false"
9659     then
9660         ac_gnutls_libs="`$PKG_CONFIG --libs gnutls 2>/dev/null`"
9661         ac_gnutls_cflags="`$PKG_CONFIG --cflags gnutls 2>/dev/null`"
9662         CPPFLAGS="$CPPFLAGS $ac_gnutls_cflags"
9663     fi
9664     ac_fn_c_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default"
9665 if test "x$ac_cv_header_gnutls_gnutls_h" = x""yes; then :
9666   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9667 /* end confdefs.h.  */
9668 #include <gnutls/gnutls.h>
9669 int
9670 main ()
9671 {
9672 typeof(gnutls_mac_get_key_size) *pfunc;
9673   ;
9674   return 0;
9675 }
9676 _ACEOF
9677 if ac_fn_c_try_compile "$LINENO"; then :
9678   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgnutls" >&5
9679 $as_echo_n "checking for -lgnutls... " >&6; }
9680 if test "${ac_cv_lib_soname_gnutls+set}" = set; then :
9681   $as_echo_n "(cached) " >&6
9682 else
9683   ac_check_soname_save_LIBS=$LIBS
9684 LIBS="-lgnutls $ac_gnutls_libs $LIBS"
9685   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9686 /* end confdefs.h.  */
9687
9688 /* Override any GCC internal prototype to avoid an error.
9689    Use char because int might match the return type of a GCC
9690    builtin and then its argument prototype would still apply.  */
9691 #ifdef __cplusplus
9692 extern "C"
9693 #endif
9694 char gnutls_global_init ();
9695 int
9696 main ()
9697 {
9698 return gnutls_global_init ();
9699   ;
9700   return 0;
9701 }
9702 _ACEOF
9703 if ac_fn_c_try_link "$LINENO"; then :
9704   case "$LIBEXT" in
9705     dll) ac_cv_lib_soname_gnutls=`$ac_cv_path_LDD conftest.exe | grep "gnutls" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9706     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'` ;;
9707     *) ac_cv_lib_soname_gnutls=`$ac_cv_path_LDD conftest$ac_exeext | grep "libgnutls\\.$LIBEXT" | sed -e "s/^.*\(libgnutls\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'` ;;
9708   esac
9709 fi
9710 rm -f core conftest.err conftest.$ac_objext \
9711     conftest$ac_exeext conftest.$ac_ext
9712   LIBS=$ac_check_soname_save_LIBS
9713 fi
9714 if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
9715   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9716 $as_echo "not found" >&6; }
9717
9718 else
9719   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gnutls" >&5
9720 $as_echo "$ac_cv_lib_soname_gnutls" >&6; }
9721
9722 cat >>confdefs.h <<_ACEOF
9723 #define SONAME_LIBGNUTLS "$ac_cv_lib_soname_gnutls"
9724 _ACEOF
9725
9726        GNUTLSINCL="$ac_gnutls_cflags"
9727
9728 fi
9729 fi
9730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9731 fi
9732
9733
9734     CPPFLAGS="$ac_save_CPPFLAGS"
9735 fi
9736 if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
9737   case "x$with_gnutls" in
9738   x)   as_fn_append wine_notices "|libgnutls ${notice_platform}development files not found, no schannel support." ;;
9739   xno) ;;
9740   *)   as_fn_error $? "libgnutls ${notice_platform}development files not found, no schannel support.
9741 This is an error since --with-gnutls was requested." "$LINENO" 5  ;;
9742 esac
9743 fi
9744
9745 CURSESLIBS=""
9746 if test "$ac_cv_header_ncurses_h" = "yes"
9747 then
9748     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lncurses" >&5
9749 $as_echo_n "checking for -lncurses... " >&6; }
9750 if test "${ac_cv_lib_soname_ncurses+set}" = set; then :
9751   $as_echo_n "(cached) " >&6
9752 else
9753   ac_check_soname_save_LIBS=$LIBS
9754 LIBS="-lncurses  $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 waddch ();
9765 int
9766 main ()
9767 {
9768 return waddch ();
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_ncurses=`$ac_cv_path_LDD conftest.exe | grep "ncurses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9776     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'` ;;
9777     *) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest$ac_exeext | grep "libncurses\\.$LIBEXT" | sed -e "s/^.*\(libncurses\.$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_ncurses" = "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_ncurses" >&5
9790 $as_echo "$ac_cv_lib_soname_ncurses" >&6; }
9791
9792 cat >>confdefs.h <<_ACEOF
9793 #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
9794 _ACEOF
9795
9796        CURSESLIBS="-lncurses"
9797 fi
9798 elif test "$ac_cv_header_curses_h" = "yes"
9799 then
9800     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcurses" >&5
9801 $as_echo_n "checking for -lcurses... " >&6; }
9802 if test "${ac_cv_lib_soname_curses+set}" = set; then :
9803   $as_echo_n "(cached) " >&6
9804 else
9805   ac_check_soname_save_LIBS=$LIBS
9806 LIBS="-lcurses  $LIBS"
9807   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9808 /* end confdefs.h.  */
9809
9810 /* Override any GCC internal prototype to avoid an error.
9811    Use char because int might match the return type of a GCC
9812    builtin and then its argument prototype would still apply.  */
9813 #ifdef __cplusplus
9814 extern "C"
9815 #endif
9816 char waddch ();
9817 int
9818 main ()
9819 {
9820 return waddch ();
9821   ;
9822   return 0;
9823 }
9824 _ACEOF
9825 if ac_fn_c_try_link "$LINENO"; then :
9826   case "$LIBEXT" in
9827     dll) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest.exe | grep "curses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9828     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'` ;;
9829     *) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcurses\\.$LIBEXT" | sed -e "s/^.*\(libcurses\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'` ;;
9830   esac
9831 fi
9832 rm -f core conftest.err conftest.$ac_objext \
9833     conftest$ac_exeext conftest.$ac_ext
9834   LIBS=$ac_check_soname_save_LIBS
9835 fi
9836 if test "x$ac_cv_lib_soname_curses" = "x"; then :
9837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9838 $as_echo "not found" >&6; }
9839
9840 else
9841   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_curses" >&5
9842 $as_echo "$ac_cv_lib_soname_curses" >&6; }
9843
9844 cat >>confdefs.h <<_ACEOF
9845 #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
9846 _ACEOF
9847
9848        CURSESLIBS="-lcurses"
9849 fi
9850 fi
9851 ac_save_LIBS="$LIBS"
9852 LIBS="$LIBS $CURSESLIBS"
9853 for ac_func in mousemask
9854 do :
9855   ac_fn_c_check_func "$LINENO" "mousemask" "ac_cv_func_mousemask"
9856 if test "x$ac_cv_func_mousemask" = x""yes; then :
9857   cat >>confdefs.h <<_ACEOF
9858 #define HAVE_MOUSEMASK 1
9859 _ACEOF
9860
9861 fi
9862 done
9863
9864 LIBS="$ac_save_LIBS"
9865 if test "x$ac_cv_lib_soname_curses$ac_cv_lib_soname_ncurses" = "x"; then :
9866   case "x$with_curses" in
9867   x)   as_fn_append wine_notices "|lib(n)curses ${notice_platform}development files not found, curses won't be supported." ;;
9868   xno) ;;
9869   *)   as_fn_error $? "lib(n)curses ${notice_platform}development files not found, curses won't be supported.
9870 This is an error since --with-curses was requested." "$LINENO" 5  ;;
9871 esac
9872 fi
9873
9874 if test "x$with_sane" != "xno"
9875 then
9876     ac_save_CPPFLAGS="$CPPFLAGS"
9877     # Extract the first word of "sane-config", so it can be a program name with args.
9878 set dummy sane-config; ac_word=$2
9879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9880 $as_echo_n "checking for $ac_word... " >&6; }
9881 if test "${ac_cv_prog_sane_devel+set}" = set; then :
9882   $as_echo_n "(cached) " >&6
9883 else
9884   if test -n "$sane_devel"; then
9885   ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
9886 else
9887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9888 for as_dir in $PATH
9889 do
9890   IFS=$as_save_IFS
9891   test -z "$as_dir" && as_dir=.
9892     for ac_exec_ext in '' $ac_executable_extensions; do
9893   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9894     ac_cv_prog_sane_devel="sane-config"
9895     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9896     break 2
9897   fi
9898 done
9899   done
9900 IFS=$as_save_IFS
9901
9902   test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
9903 fi
9904 fi
9905 sane_devel=$ac_cv_prog_sane_devel
9906 if test -n "$sane_devel"; then
9907   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sane_devel" >&5
9908 $as_echo "$sane_devel" >&6; }
9909 else
9910   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9911 $as_echo "no" >&6; }
9912 fi
9913
9914
9915     if test "$sane_devel" != "no"
9916     then
9917         ac_sane_incl="`$sane_devel --cflags`"
9918         ac_sane_libs="`$sane_devel --ldflags`"
9919         CPPFLAGS="$CPPFLAGS $ac_sane_incl"
9920     fi
9921     ac_fn_c_check_header_mongrel "$LINENO" "sane/sane.h" "ac_cv_header_sane_sane_h" "$ac_includes_default"
9922 if test "x$ac_cv_header_sane_sane_h" = x""yes; then :
9923   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lsane" >&5
9924 $as_echo_n "checking for -lsane... " >&6; }
9925 if test "${ac_cv_lib_soname_sane+set}" = set; then :
9926   $as_echo_n "(cached) " >&6
9927 else
9928   ac_check_soname_save_LIBS=$LIBS
9929 LIBS="-lsane $ac_sane_libs $LIBS"
9930   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9931 /* end confdefs.h.  */
9932
9933 /* Override any GCC internal prototype to avoid an error.
9934    Use char because int might match the return type of a GCC
9935    builtin and then its argument prototype would still apply.  */
9936 #ifdef __cplusplus
9937 extern "C"
9938 #endif
9939 char sane_init ();
9940 int
9941 main ()
9942 {
9943 return sane_init ();
9944   ;
9945   return 0;
9946 }
9947 _ACEOF
9948 if ac_fn_c_try_link "$LINENO"; then :
9949   case "$LIBEXT" in
9950     dll) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest.exe | grep "sane" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9951     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'` ;;
9952     *) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest$ac_exeext | grep "libsane\\.$LIBEXT" | sed -e "s/^.*\(libsane\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
9953   esac
9954 fi
9955 rm -f core conftest.err conftest.$ac_objext \
9956     conftest$ac_exeext conftest.$ac_ext
9957   LIBS=$ac_check_soname_save_LIBS
9958 fi
9959 if test "x$ac_cv_lib_soname_sane" = "x"; then :
9960   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9961 $as_echo "not found" >&6; }
9962
9963 else
9964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_sane" >&5
9965 $as_echo "$ac_cv_lib_soname_sane" >&6; }
9966
9967 cat >>confdefs.h <<_ACEOF
9968 #define SONAME_LIBSANE "$ac_cv_lib_soname_sane"
9969 _ACEOF
9970
9971        SANEINCL="$ac_sane_incl"
9972
9973 fi
9974 fi
9975
9976
9977     CPPFLAGS="$ac_save_CPPFLAGS"
9978 fi
9979 if test "x$ac_cv_lib_soname_sane" = "x"; then :
9980   case "x$with_sane" in
9981   x)   as_fn_append wine_notices "|libsane ${notice_platform}development files not found, scanners won't be supported." ;;
9982   xno) ;;
9983   *)   as_fn_error $? "libsane ${notice_platform}development files not found, scanners won't be supported.
9984 This is an error since --with-sane was requested." "$LINENO" 5  ;;
9985 esac
9986 fi
9987
9988 if test "x$with_v4l" != "xno"
9989 then
9990     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lv4l1" >&5
9991 $as_echo_n "checking for -lv4l1... " >&6; }
9992 if test "${ac_cv_lib_soname_v4l1+set}" = set; then :
9993   $as_echo_n "(cached) " >&6
9994 else
9995   ac_check_soname_save_LIBS=$LIBS
9996 LIBS="-lv4l1  $LIBS"
9997   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9998 /* end confdefs.h.  */
9999
10000 /* Override any GCC internal prototype to avoid an error.
10001    Use char because int might match the return type of a GCC
10002    builtin and then its argument prototype would still apply.  */
10003 #ifdef __cplusplus
10004 extern "C"
10005 #endif
10006 char v4l1_open ();
10007 int
10008 main ()
10009 {
10010 return v4l1_open ();
10011   ;
10012   return 0;
10013 }
10014 _ACEOF
10015 if ac_fn_c_try_link "$LINENO"; then :
10016   case "$LIBEXT" in
10017     dll) ac_cv_lib_soname_v4l1=`$ac_cv_path_LDD conftest.exe | grep "v4l1" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10018     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'` ;;
10019     *) ac_cv_lib_soname_v4l1=`$ac_cv_path_LDD conftest$ac_exeext | grep "libv4l1\\.$LIBEXT" | sed -e "s/^.*\(libv4l1\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
10020   esac
10021 fi
10022 rm -f core conftest.err conftest.$ac_objext \
10023     conftest$ac_exeext conftest.$ac_ext
10024   LIBS=$ac_check_soname_save_LIBS
10025 fi
10026 if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
10027   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10028 $as_echo "not found" >&6; }
10029
10030 else
10031   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_v4l1" >&5
10032 $as_echo "$ac_cv_lib_soname_v4l1" >&6; }
10033
10034 cat >>confdefs.h <<_ACEOF
10035 #define SONAME_LIBV4L1 "$ac_cv_lib_soname_v4l1"
10036 _ACEOF
10037
10038
10039 fi
10040 fi
10041 if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
10042   case "x$with_v4l" in
10043   x)   as_fn_append wine_notices "|libv4l ${notice_platform}development files not found." ;;
10044   xno) ;;
10045   *)   as_fn_error $? "libv4l ${notice_platform}development files not found.
10046 This is an error since --with-v4l was requested." "$LINENO" 5  ;;
10047 esac
10048 fi
10049
10050 if test "x$with_gphoto" != "xno"
10051 then
10052     ac_save_CPPFLAGS="$CPPFLAGS"
10053     # Extract the first word of "gphoto2-config", so it can be a program name with args.
10054 set dummy gphoto2-config; ac_word=$2
10055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10056 $as_echo_n "checking for $ac_word... " >&6; }
10057 if test "${ac_cv_prog_gphoto2_devel+set}" = set; then :
10058   $as_echo_n "(cached) " >&6
10059 else
10060   if test -n "$gphoto2_devel"; then
10061   ac_cv_prog_gphoto2_devel="$gphoto2_devel" # Let the user override the test.
10062 else
10063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10064 for as_dir in $PATH
10065 do
10066   IFS=$as_save_IFS
10067   test -z "$as_dir" && as_dir=.
10068     for ac_exec_ext in '' $ac_executable_extensions; do
10069   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10070     ac_cv_prog_gphoto2_devel="gphoto2-config"
10071     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10072     break 2
10073   fi
10074 done
10075   done
10076 IFS=$as_save_IFS
10077
10078   test -z "$ac_cv_prog_gphoto2_devel" && ac_cv_prog_gphoto2_devel="no"
10079 fi
10080 fi
10081 gphoto2_devel=$ac_cv_prog_gphoto2_devel
10082 if test -n "$gphoto2_devel"; then
10083   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gphoto2_devel" >&5
10084 $as_echo "$gphoto2_devel" >&6; }
10085 else
10086   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10087 $as_echo "no" >&6; }
10088 fi
10089
10090
10091     # Extract the first word of "gphoto2-port-config", so it can be a program name with args.
10092 set dummy gphoto2-port-config; ac_word=$2
10093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10094 $as_echo_n "checking for $ac_word... " >&6; }
10095 if test "${ac_cv_prog_gphoto2port_devel+set}" = set; then :
10096   $as_echo_n "(cached) " >&6
10097 else
10098   if test -n "$gphoto2port_devel"; then
10099   ac_cv_prog_gphoto2port_devel="$gphoto2port_devel" # Let the user override the test.
10100 else
10101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10102 for as_dir in $PATH
10103 do
10104   IFS=$as_save_IFS
10105   test -z "$as_dir" && as_dir=.
10106     for ac_exec_ext in '' $ac_executable_extensions; do
10107   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10108     ac_cv_prog_gphoto2port_devel="gphoto2-port-config"
10109     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10110     break 2
10111   fi
10112 done
10113   done
10114 IFS=$as_save_IFS
10115
10116   test -z "$ac_cv_prog_gphoto2port_devel" && ac_cv_prog_gphoto2port_devel="no"
10117 fi
10118 fi
10119 gphoto2port_devel=$ac_cv_prog_gphoto2port_devel
10120 if test -n "$gphoto2port_devel"; then
10121   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gphoto2port_devel" >&5
10122 $as_echo "$gphoto2port_devel" >&6; }
10123 else
10124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10125 $as_echo "no" >&6; }
10126 fi
10127
10128
10129     if test "$gphoto2_devel" != "no" -a "$gphoto2port_devel" != "no"
10130     then
10131         ac_gphoto2_incl="`$gphoto2_devel --cflags` `$gphoto2port_devel --cflags`"
10132         ac_gphoto2_libs=""
10133         for i in `$gphoto2_devel --libs` `$gphoto2port_devel --libs`
10134         do
10135             case "$i" in
10136             -L/usr/lib|-L/usr/lib64) ;;
10137             -L*|-l*) ac_gphoto2_libs="$ac_gphoto2_libs $i";;
10138             esac
10139         done
10140         CPPFLAGS="$CPPFLAGS $ac_gphoto2_incl"
10141     fi
10142     ac_gphoto2_libs=${ac_gphoto2_libs:-"-lgphoto2"}
10143     ac_fn_c_check_header_mongrel "$LINENO" "gphoto2-camera.h" "ac_cv_header_gphoto2_camera_h" "$ac_includes_default"
10144 if test "x$ac_cv_header_gphoto2_camera_h" = x""yes; then :
10145   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gp_camera_new in -lgphoto2" >&5
10146 $as_echo_n "checking for gp_camera_new in -lgphoto2... " >&6; }
10147 if test "${ac_cv_lib_gphoto2_gp_camera_new+set}" = set; then :
10148   $as_echo_n "(cached) " >&6
10149 else
10150   ac_check_lib_save_LIBS=$LIBS
10151 LIBS="-lgphoto2 $ac_gphoto2_libs $LIBS"
10152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10153 /* end confdefs.h.  */
10154
10155 /* Override any GCC internal prototype to avoid an error.
10156    Use char because int might match the return type of a GCC
10157    builtin and then its argument prototype would still apply.  */
10158 #ifdef __cplusplus
10159 extern "C"
10160 #endif
10161 char gp_camera_new ();
10162 int
10163 main ()
10164 {
10165 return gp_camera_new ();
10166   ;
10167   return 0;
10168 }
10169 _ACEOF
10170 if ac_fn_c_try_link "$LINENO"; then :
10171   ac_cv_lib_gphoto2_gp_camera_new=yes
10172 else
10173   ac_cv_lib_gphoto2_gp_camera_new=no
10174 fi
10175 rm -f core conftest.err conftest.$ac_objext \
10176     conftest$ac_exeext conftest.$ac_ext
10177 LIBS=$ac_check_lib_save_LIBS
10178 fi
10179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gphoto2_gp_camera_new" >&5
10180 $as_echo "$ac_cv_lib_gphoto2_gp_camera_new" >&6; }
10181 if test "x$ac_cv_lib_gphoto2_gp_camera_new" = x""yes; then :
10182
10183 $as_echo "#define HAVE_GPHOTO2 1" >>confdefs.h
10184
10185                                    GPHOTO2LIBS="$ac_gphoto2_libs"
10186
10187                                    GPHOTO2INCL="$ac_gphoto2_incl"
10188
10189 fi
10190
10191 fi
10192
10193
10194     CPPFLAGS="$ac_save_CPPFLAGS"
10195 fi
10196 if test "$ac_cv_lib_gphoto2_gp_camera_new" != "yes"; then :
10197   case "x$with_gphoto" in
10198   x)   as_fn_append wine_notices "|libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported." ;;
10199   xno) ;;
10200   *)   as_fn_error $? "libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported.
10201 This is an error since --with-gphoto was requested." "$LINENO" 5  ;;
10202 esac
10203 fi
10204
10205
10206 if test "$ac_cv_header_resolv_h" = "yes"
10207 then
10208     ac_save_LIBS="$LIBS"
10209     for lib in '' -lresolv
10210     do
10211       LIBS="$lib $ac_save_LIBS"
10212       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10213 /* end confdefs.h.  */
10214 #ifdef HAVE_NETINET_IN_H
10215 #include <netinet/in.h>
10216 #endif
10217 #include <resolv.h>
10218 int
10219 main ()
10220 {
10221 res_query("foo",ns_c_in,0,0,0);
10222   ;
10223   return 0;
10224 }
10225 _ACEOF
10226 if ac_fn_c_try_link "$LINENO"; then :
10227
10228 $as_echo "#define HAVE_RESOLV 1" >>confdefs.h
10229
10230          RESOLVLIBS="$lib"
10231
10232 fi
10233 rm -f core conftest.err conftest.$ac_objext \
10234     conftest$ac_exeext conftest.$ac_ext
10235       if test "${RESOLVLIBS+set}" = set; then
10236         break
10237       fi
10238     done
10239     LIBS="$ac_save_LIBS"
10240 fi
10241
10242 LCMSLIBS=""
10243
10244 if test "$ac_cv_header_lcms_h" = "yes" -o "$ac_cv_header_lcms_lcms_h" = "yes"
10245 then
10246     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromFile in -llcms" >&5
10247 $as_echo_n "checking for cmsOpenProfileFromFile in -llcms... " >&6; }
10248 if test "${ac_cv_lib_lcms_cmsOpenProfileFromFile+set}" = set; then :
10249   $as_echo_n "(cached) " >&6
10250 else
10251   ac_check_lib_save_LIBS=$LIBS
10252 LIBS="-llcms  $LIBS"
10253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10254 /* end confdefs.h.  */
10255
10256 /* Override any GCC internal prototype to avoid an error.
10257    Use char because int might match the return type of a GCC
10258    builtin and then its argument prototype would still apply.  */
10259 #ifdef __cplusplus
10260 extern "C"
10261 #endif
10262 char cmsOpenProfileFromFile ();
10263 int
10264 main ()
10265 {
10266 return cmsOpenProfileFromFile ();
10267   ;
10268   return 0;
10269 }
10270 _ACEOF
10271 if ac_fn_c_try_link "$LINENO"; then :
10272   ac_cv_lib_lcms_cmsOpenProfileFromFile=yes
10273 else
10274   ac_cv_lib_lcms_cmsOpenProfileFromFile=no
10275 fi
10276 rm -f core conftest.err conftest.$ac_objext \
10277     conftest$ac_exeext conftest.$ac_ext
10278 LIBS=$ac_check_lib_save_LIBS
10279 fi
10280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsOpenProfileFromFile" >&5
10281 $as_echo "$ac_cv_lib_lcms_cmsOpenProfileFromFile" >&6; }
10282 if test "x$ac_cv_lib_lcms_cmsOpenProfileFromFile" = x""yes; then :
10283
10284 $as_echo "#define HAVE_LCMS 1" >>confdefs.h
10285
10286          LCMSLIBS="-llcms"
10287 fi
10288
10289 fi
10290 if test "$ac_cv_lib_lcms_cmsOpenProfileFromFile" != "yes"; then :
10291   case "x$with_cms" in
10292   x)   as_fn_append wine_notices "|liblcms ${notice_platform}development files not found, Color Management won't be supported." ;;
10293   xno) ;;
10294   *)   as_fn_error $? "liblcms ${notice_platform}development files not found, Color Management won't be supported.
10295 This is an error since --with-cms was requested." "$LINENO" 5  ;;
10296 esac
10297 fi
10298
10299 if test "x$with_freetype" != "xno"
10300 then
10301     for ac_prog in freetype-config freetype2-config
10302 do
10303   # Extract the first word of "$ac_prog", so it can be a program name with args.
10304 set dummy $ac_prog; ac_word=$2
10305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10306 $as_echo_n "checking for $ac_word... " >&6; }
10307 if test "${ac_cv_prog_ft_devel+set}" = set; then :
10308   $as_echo_n "(cached) " >&6
10309 else
10310   if test -n "$ft_devel"; then
10311   ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
10312 else
10313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10314 for as_dir in $PATH
10315 do
10316   IFS=$as_save_IFS
10317   test -z "$as_dir" && as_dir=.
10318     for ac_exec_ext in '' $ac_executable_extensions; do
10319   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10320     ac_cv_prog_ft_devel="$ac_prog"
10321     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10322     break 2
10323   fi
10324 done
10325   done
10326 IFS=$as_save_IFS
10327
10328 fi
10329 fi
10330 ft_devel=$ac_cv_prog_ft_devel
10331 if test -n "$ft_devel"; then
10332   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ft_devel" >&5
10333 $as_echo "$ft_devel" >&6; }
10334 else
10335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10336 $as_echo "no" >&6; }
10337 fi
10338
10339
10340   test -n "$ft_devel" && break
10341 done
10342 test -n "$ft_devel" || ft_devel="no"
10343
10344     if test "$ft_devel" != "no"
10345     then
10346         ac_freetype_incl=`$ft_devel --cflags`
10347         ac_freetype_libs=`$ft_devel --libs`
10348     fi
10349     ac_freetype_libs=${ac_freetype_libs:-"-lfreetype"}
10350     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfreetype" >&5
10351 $as_echo_n "checking for -lfreetype... " >&6; }
10352 if test "${ac_cv_lib_soname_freetype+set}" = set; then :
10353   $as_echo_n "(cached) " >&6
10354 else
10355   ac_check_soname_save_LIBS=$LIBS
10356 LIBS="-lfreetype $ac_freetype_libs $LIBS"
10357   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10358 /* end confdefs.h.  */
10359
10360 /* Override any GCC internal prototype to avoid an error.
10361    Use char because int might match the return type of a GCC
10362    builtin and then its argument prototype would still apply.  */
10363 #ifdef __cplusplus
10364 extern "C"
10365 #endif
10366 char FT_Init_FreeType ();
10367 int
10368 main ()
10369 {
10370 return FT_Init_FreeType ();
10371   ;
10372   return 0;
10373 }
10374 _ACEOF
10375 if ac_fn_c_try_link "$LINENO"; then :
10376   case "$LIBEXT" in
10377     dll) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest.exe | grep "freetype" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10378     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'` ;;
10379     *) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfreetype\\.$LIBEXT" | sed -e "s/^.*\(libfreetype\.$LIBEXT[^      ]*\).*$/\1/"';2,$d'` ;;
10380   esac
10381 fi
10382 rm -f core conftest.err conftest.$ac_objext \
10383     conftest$ac_exeext conftest.$ac_ext
10384   LIBS=$ac_check_soname_save_LIBS
10385 fi
10386 if test "x$ac_cv_lib_soname_freetype" = "x"; then :
10387   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10388 $as_echo "not found" >&6; }
10389        ft_lib=no
10390 else
10391   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_freetype" >&5
10392 $as_echo "$ac_cv_lib_soname_freetype" >&6; }
10393
10394 cat >>confdefs.h <<_ACEOF
10395 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
10396 _ACEOF
10397
10398        ft_lib=yes
10399 fi
10400     if test "$ft_lib" = "yes"
10401     then
10402         ac_save_CPPFLAGS="$CPPFLAGS"
10403         CPPFLAGS="$ac_freetype_incl $CPPFLAGS"
10404         for ac_header in ft2build.h \
10405                          freetype/freetype.h \
10406                          freetype/ftglyph.h \
10407                          freetype/fttypes.h \
10408                          freetype/tttables.h \
10409                          freetype/ftsnames.h \
10410                          freetype/ttnameid.h \
10411                          freetype/ftoutln.h \
10412                          freetype/ftwinfnt.h \
10413                          freetype/ftmodapi.h \
10414                          freetype/ftlcdfil.h \
10415                          freetype/internal/sfnt.h
10416 do :
10417   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10418 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_FT2BUILD_H
10419                           # include <ft2build.h>
10420                           #endif
10421 "
10422 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10423   cat >>confdefs.h <<_ACEOF
10424 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10425 _ACEOF
10426
10427 fi
10428
10429 done
10430
10431         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10432 /* end confdefs.h.  */
10433 #include <ft2build.h>
10434                     #include <freetype/fttrigon.h>
10435 _ACEOF
10436 if ac_fn_c_try_cpp "$LINENO"; then :
10437
10438 $as_echo "#define HAVE_FREETYPE_FTTRIGON_H 1" >>confdefs.h
10439
10440                     wine_cv_fttrigon=yes
10441 else
10442   wine_cv_fttrigon=no
10443 fi
10444 rm -f conftest.err conftest.i conftest.$ac_ext
10445         ac_fn_c_check_type "$LINENO" "FT_TrueTypeEngineType" "ac_cv_type_FT_TrueTypeEngineType" "#include <freetype/ftmodapi.h>
10446 "
10447 if test "x$ac_cv_type_FT_TrueTypeEngineType" = x""yes; then :
10448
10449 cat >>confdefs.h <<_ACEOF
10450 #define HAVE_FT_TRUETYPEENGINETYPE 1
10451 _ACEOF
10452
10453
10454 fi
10455
10456         ac_save_CFLAGS="$CFLAGS"
10457         CFLAGS="$CFLAGS $ac_freetype_libs"
10458         for ac_func in FT_Load_Sfnt_Table
10459 do :
10460   ac_fn_c_check_func "$LINENO" "FT_Load_Sfnt_Table" "ac_cv_func_FT_Load_Sfnt_Table"
10461 if test "x$ac_cv_func_FT_Load_Sfnt_Table" = x""yes; then :
10462   cat >>confdefs.h <<_ACEOF
10463 #define HAVE_FT_LOAD_SFNT_TABLE 1
10464 _ACEOF
10465
10466 fi
10467 done
10468
10469         CFLAGS="$ac_save_CFLAGS"
10470         CPPFLAGS="$ac_save_CPPFLAGS"
10471                 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
10472         then
10473
10474 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
10475
10476             FREETYPELIBS="$ac_freetype_libs"
10477
10478             FREETYPEINCL="$ac_freetype_incl"
10479
10480         fi
10481     fi
10482 fi
10483 if test "x$FREETYPELIBS" = "x"; then :
10484   case "x$with_freetype" in
10485   xno) ;;
10486   *)   as_fn_error $? "FreeType ${notice_platform}development files not found. Fonts will not be built.
10487 Use the --without-freetype option if you really want this." "$LINENO" 5  ;;
10488 esac
10489 fi
10490 test "x$FREETYPELIBS" = "x" && enable_fonts=${enable_fonts:-no}
10491
10492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for parport header/ppdev.h" >&5
10493 $as_echo_n "checking for parport header/ppdev.h... " >&6; }
10494 if test "${ac_cv_c_ppdev+set}" = set; then :
10495   $as_echo_n "(cached) " >&6
10496 else
10497   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10498 /* end confdefs.h.  */
10499 #ifdef HAVE_SYS_IOCTL_H
10500 # include <sys/ioctl.h>
10501 #endif
10502 #include <linux/ppdev.h>
10503 int
10504 main ()
10505 {
10506 ioctl (1,PPCLAIM,0)
10507   ;
10508   return 0;
10509 }
10510 _ACEOF
10511 if ac_fn_c_try_compile "$LINENO"; then :
10512   ac_cv_c_ppdev="yes"
10513 else
10514   ac_cv_c_ppdev="no"
10515 fi
10516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10517 fi
10518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_ppdev" >&5
10519 $as_echo "$ac_cv_c_ppdev" >&6; }
10520 if test "$ac_cv_c_ppdev" = "yes"
10521 then
10522
10523 $as_echo "#define HAVE_PPDEV 1" >>confdefs.h
10524
10525 fi
10526
10527 ac_wine_check_funcs_save_LIBS="$LIBS"
10528 LIBS="$LIBS $LIBPTHREAD"
10529 for ac_func in \
10530         pthread_attr_get_np \
10531         pthread_getattr_np \
10532         pthread_get_stackaddr_np \
10533         pthread_get_stacksize_np
10534 do :
10535   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10536 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10537 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10538   cat >>confdefs.h <<_ACEOF
10539 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10540 _ACEOF
10541
10542 fi
10543 done
10544
10545 LIBS="$ac_wine_check_funcs_save_LIBS"
10546
10547 if test "$ac_cv_header_zlib_h" = "yes"
10548 then
10549     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
10550 $as_echo_n "checking for inflate in -lz... " >&6; }
10551 if test "${ac_cv_lib_z_inflate+set}" = set; then :
10552   $as_echo_n "(cached) " >&6
10553 else
10554   ac_check_lib_save_LIBS=$LIBS
10555 LIBS="-lz  $LIBS"
10556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10557 /* end confdefs.h.  */
10558
10559 /* Override any GCC internal prototype to avoid an error.
10560    Use char because int might match the return type of a GCC
10561    builtin and then its argument prototype would still apply.  */
10562 #ifdef __cplusplus
10563 extern "C"
10564 #endif
10565 char inflate ();
10566 int
10567 main ()
10568 {
10569 return inflate ();
10570   ;
10571   return 0;
10572 }
10573 _ACEOF
10574 if ac_fn_c_try_link "$LINENO"; then :
10575   ac_cv_lib_z_inflate=yes
10576 else
10577   ac_cv_lib_z_inflate=no
10578 fi
10579 rm -f core conftest.err conftest.$ac_objext \
10580     conftest$ac_exeext conftest.$ac_ext
10581 LIBS=$ac_check_lib_save_LIBS
10582 fi
10583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
10584 $as_echo "$ac_cv_lib_z_inflate" >&6; }
10585 if test "x$ac_cv_lib_z_inflate" = x""yes; then :
10586
10587 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
10588
10589                             ZLIB="-lz"
10590
10591 fi
10592
10593 fi
10594
10595 if test "x$enable_tools" != xno
10596 then
10597     if test "$ac_cv_header_gettext_po_h" = "yes"
10598     then
10599         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for po_file_write in -lgettextpo" >&5
10600 $as_echo_n "checking for po_file_write in -lgettextpo... " >&6; }
10601 if test "${ac_cv_lib_gettextpo_po_file_write+set}" = set; then :
10602   $as_echo_n "(cached) " >&6
10603 else
10604   ac_check_lib_save_LIBS=$LIBS
10605 LIBS="-lgettextpo  $LIBS"
10606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10607 /* end confdefs.h.  */
10608
10609 /* Override any GCC internal prototype to avoid an error.
10610    Use char because int might match the return type of a GCC
10611    builtin and then its argument prototype would still apply.  */
10612 #ifdef __cplusplus
10613 extern "C"
10614 #endif
10615 char po_file_write ();
10616 int
10617 main ()
10618 {
10619 return po_file_write ();
10620   ;
10621   return 0;
10622 }
10623 _ACEOF
10624 if ac_fn_c_try_link "$LINENO"; then :
10625   ac_cv_lib_gettextpo_po_file_write=yes
10626 else
10627   ac_cv_lib_gettextpo_po_file_write=no
10628 fi
10629 rm -f core conftest.err conftest.$ac_objext \
10630     conftest$ac_exeext conftest.$ac_ext
10631 LIBS=$ac_check_lib_save_LIBS
10632 fi
10633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gettextpo_po_file_write" >&5
10634 $as_echo "$ac_cv_lib_gettextpo_po_file_write" >&6; }
10635 if test "x$ac_cv_lib_gettextpo_po_file_write" = x""yes; then :
10636
10637 $as_echo "#define HAVE_LIBGETTEXTPO 1" >>confdefs.h
10638
10639                       LIBGETTEXTPO="-lgettextpo"
10640
10641 fi
10642
10643     fi
10644     if test "x$LIBGETTEXTPO" = "x"; then :
10645   case "x$with_gettextpo" in
10646   x)   as_fn_append wine_warnings "|GetText ${notice_platform}development files not found. Internationalization won't be fully supported." ;;
10647   xno) ;;
10648   *)   as_fn_error $? "GetText ${notice_platform}development files not found. Internationalization won't be fully supported.
10649 This is an error since --with-gettextpo was requested." "$LINENO" 5  ;;
10650 esac
10651 fi
10652 fi
10653
10654 if test "x$with_esd" != xno
10655 then
10656     save_CFLAGS="$CFLAGS"
10657     # Extract the first word of "esd-config", so it can be a program name with args.
10658 set dummy esd-config; ac_word=$2
10659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10660 $as_echo_n "checking for $ac_word... " >&6; }
10661 if test "${ac_cv_path_ESDCONFIG+set}" = set; then :
10662   $as_echo_n "(cached) " >&6
10663 else
10664   case $ESDCONFIG in
10665   [\\/]* | ?:[\\/]*)
10666   ac_cv_path_ESDCONFIG="$ESDCONFIG" # Let the user override the test with a path.
10667   ;;
10668   *)
10669   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10670 for as_dir in $PATH
10671 do
10672   IFS=$as_save_IFS
10673   test -z "$as_dir" && as_dir=.
10674     for ac_exec_ext in '' $ac_executable_extensions; do
10675   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10676     ac_cv_path_ESDCONFIG="$as_dir/$ac_word$ac_exec_ext"
10677     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10678     break 2
10679   fi
10680 done
10681   done
10682 IFS=$as_save_IFS
10683
10684   test -z "$ac_cv_path_ESDCONFIG" && ac_cv_path_ESDCONFIG="no"
10685   ;;
10686 esac
10687 fi
10688 ESDCONFIG=$ac_cv_path_ESDCONFIG
10689 if test -n "$ESDCONFIG"; then
10690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ESDCONFIG" >&5
10691 $as_echo "$ESDCONFIG" >&6; }
10692 else
10693   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10694 $as_echo "no" >&6; }
10695 fi
10696
10697
10698     if test "x$ESDCONFIG" != "xno"
10699     then
10700         ac_esd_incl=""
10701         for i in `$ESDCONFIG --cflags`
10702         do
10703             case "$i" in
10704                 -I*) ac_esd_incl="$ac_esd_incl $i";;
10705             esac
10706         done
10707         ac_esd_libs=`$ESDCONFIG --libs`
10708         CFLAGS="$CFLAGS $ac_esd_incl"
10709     fi
10710     ac_esd_libs=${ac_esd_libs:-"-lesd"}
10711     ac_fn_c_check_header_mongrel "$LINENO" "esd.h" "ac_cv_header_esd_h" "$ac_includes_default"
10712 if test "x$ac_cv_header_esd_h" = x""yes; then :
10713   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for esd_open_sound in -lesd" >&5
10714 $as_echo_n "checking for esd_open_sound in -lesd... " >&6; }
10715 if test "${ac_cv_lib_esd_esd_open_sound+set}" = set; then :
10716   $as_echo_n "(cached) " >&6
10717 else
10718   ac_check_lib_save_LIBS=$LIBS
10719 LIBS="-lesd $ac_esd_libs $LIBS"
10720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10721 /* end confdefs.h.  */
10722
10723 /* Override any GCC internal prototype to avoid an error.
10724    Use char because int might match the return type of a GCC
10725    builtin and then its argument prototype would still apply.  */
10726 #ifdef __cplusplus
10727 extern "C"
10728 #endif
10729 char esd_open_sound ();
10730 int
10731 main ()
10732 {
10733 return esd_open_sound ();
10734   ;
10735   return 0;
10736 }
10737 _ACEOF
10738 if ac_fn_c_try_link "$LINENO"; then :
10739   ac_cv_lib_esd_esd_open_sound=yes
10740 else
10741   ac_cv_lib_esd_esd_open_sound=no
10742 fi
10743 rm -f core conftest.err conftest.$ac_objext \
10744     conftest$ac_exeext conftest.$ac_ext
10745 LIBS=$ac_check_lib_save_LIBS
10746 fi
10747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_esd_esd_open_sound" >&5
10748 $as_echo "$ac_cv_lib_esd_esd_open_sound" >&6; }
10749 if test "x$ac_cv_lib_esd_esd_open_sound" = x""yes; then :
10750   ESDINCL="$ac_esd_incl"
10751
10752              ESDLIBS="$ac_esd_libs"
10753
10754
10755 $as_echo "#define HAVE_ESD 1" >>confdefs.h
10756
10757 fi
10758
10759 fi
10760
10761
10762     CFLAGS="$save_CFLAGS"
10763 fi
10764
10765 if test "x$with_gstreamer" != "xno"
10766 then
10767     ac_save_CPPFLAGS="$CPPFLAGS"
10768     if test "$PKG_CONFIG" != "false"; then
10769         ac_gst_incl=""
10770         for i in `$PKG_CONFIG --cflags gstreamer-app-0.10 2>/dev/null`
10771         do
10772             case "$i" in
10773                 -I*) ac_gst_incl="$ac_gst_incl $i";;
10774             esac
10775         done
10776         ac_gst_libs="`$PKG_CONFIG --libs gstreamer-app-0.10 2>/dev/null`"
10777         CPPFLAGS="$CPPFLAGS $ac_gst_incl"
10778         ac_fn_c_check_header_mongrel "$LINENO" "gst/gstpad.h" "ac_cv_header_gst_gstpad_h" "$ac_includes_default"
10779 if test "x$ac_cv_header_gst_gstpad_h" = x""yes; then :
10780   ac_fn_c_check_header_mongrel "$LINENO" "gst/app/gstappsink.h" "ac_cv_header_gst_app_gstappsink_h" "$ac_includes_default"
10781 if test "x$ac_cv_header_gst_app_gstappsink_h" = x""yes; then :
10782   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_pad_get_caps_reffed in -lgstreamer-0.10" >&5
10783 $as_echo_n "checking for gst_pad_get_caps_reffed in -lgstreamer-0.10... " >&6; }
10784 if test "${ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed+set}" = set; then :
10785   $as_echo_n "(cached) " >&6
10786 else
10787   ac_check_lib_save_LIBS=$LIBS
10788 LIBS="-lgstreamer-0.10  $LIBS"
10789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10790 /* end confdefs.h.  */
10791
10792 /* Override any GCC internal prototype to avoid an error.
10793    Use char because int might match the return type of a GCC
10794    builtin and then its argument prototype would still apply.  */
10795 #ifdef __cplusplus
10796 extern "C"
10797 #endif
10798 char gst_pad_get_caps_reffed ();
10799 int
10800 main ()
10801 {
10802 return gst_pad_get_caps_reffed ();
10803   ;
10804   return 0;
10805 }
10806 _ACEOF
10807 if ac_fn_c_try_link "$LINENO"; then :
10808   ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=yes
10809 else
10810   ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=no
10811 fi
10812 rm -f core conftest.err conftest.$ac_objext \
10813     conftest$ac_exeext conftest.$ac_ext
10814 LIBS=$ac_check_lib_save_LIBS
10815 fi
10816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&5
10817 $as_echo "$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&6; }
10818 if test "x$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" = x""yes; then :
10819   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_app_buffer_new in -lgstapp-0.10" >&5
10820 $as_echo_n "checking for gst_app_buffer_new in -lgstapp-0.10... " >&6; }
10821 if test "${ac_cv_lib_gstapp_0_10_gst_app_buffer_new+set}" = set; then :
10822   $as_echo_n "(cached) " >&6
10823 else
10824   ac_check_lib_save_LIBS=$LIBS
10825 LIBS="-lgstapp-0.10 $ac_gst_libs $LIBS"
10826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10827 /* end confdefs.h.  */
10828
10829 /* Override any GCC internal prototype to avoid an error.
10830    Use char because int might match the return type of a GCC
10831    builtin and then its argument prototype would still apply.  */
10832 #ifdef __cplusplus
10833 extern "C"
10834 #endif
10835 char gst_app_buffer_new ();
10836 int
10837 main ()
10838 {
10839 return gst_app_buffer_new ();
10840   ;
10841   return 0;
10842 }
10843 _ACEOF
10844 if ac_fn_c_try_link "$LINENO"; then :
10845   ac_cv_lib_gstapp_0_10_gst_app_buffer_new=yes
10846 else
10847   ac_cv_lib_gstapp_0_10_gst_app_buffer_new=no
10848 fi
10849 rm -f core conftest.err conftest.$ac_objext \
10850     conftest$ac_exeext conftest.$ac_ext
10851 LIBS=$ac_check_lib_save_LIBS
10852 fi
10853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&5
10854 $as_echo "$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&6; }
10855 if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = x""yes; then :
10856   GSTREAMER_LIBS="$ac_gst_libs"
10857
10858                      GSTREAMER_INCL="$ac_gst_incl"
10859
10860 fi
10861
10862 fi
10863
10864 fi
10865
10866
10867 fi
10868
10869
10870     fi
10871     CPPFLAGS="$ac_save_CPPFLAGS"
10872 fi
10873 if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" != xyes; then :
10874   case "x$with_gstreamer" in
10875   x)   as_fn_append wine_notices "|gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled" ;;
10876   xno) ;;
10877   *)   as_fn_error $? "gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled
10878 This is an error since --with-gstreamer was requested." "$LINENO" 5  ;;
10879 esac
10880 fi
10881 test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = xyes || enable_winegstreamer=${enable_winegstreamer:-no}
10882
10883 ALSALIBS=""
10884
10885 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
10886 then
10887     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_hw_params_get_access in -lasound" >&5
10888 $as_echo_n "checking for snd_pcm_hw_params_get_access in -lasound... " >&6; }
10889 if test "${ac_cv_lib_asound_snd_pcm_hw_params_get_access+set}" = set; then :
10890   $as_echo_n "(cached) " >&6
10891 else
10892   ac_check_lib_save_LIBS=$LIBS
10893 LIBS="-lasound  $LIBS"
10894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10895 /* end confdefs.h.  */
10896
10897 /* Override any GCC internal prototype to avoid an error.
10898    Use char because int might match the return type of a GCC
10899    builtin and then its argument prototype would still apply.  */
10900 #ifdef __cplusplus
10901 extern "C"
10902 #endif
10903 char snd_pcm_hw_params_get_access ();
10904 int
10905 main ()
10906 {
10907 return snd_pcm_hw_params_get_access ();
10908   ;
10909   return 0;
10910 }
10911 _ACEOF
10912 if ac_fn_c_try_link "$LINENO"; then :
10913   ac_cv_lib_asound_snd_pcm_hw_params_get_access=yes
10914 else
10915   ac_cv_lib_asound_snd_pcm_hw_params_get_access=no
10916 fi
10917 rm -f core conftest.err conftest.$ac_objext \
10918     conftest$ac_exeext conftest.$ac_ext
10919 LIBS=$ac_check_lib_save_LIBS
10920 fi
10921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&5
10922 $as_echo "$ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&6; }
10923 if test "x$ac_cv_lib_asound_snd_pcm_hw_params_get_access" = x""yes; then :
10924   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10925 /* end confdefs.h.  */
10926 #ifdef HAVE_ALSA_ASOUNDLIB_H
10927 #include <alsa/asoundlib.h>
10928 #elif defined(HAVE_SYS_ASOUNDLIB_H)
10929 #include <sys/asoundlib.h>
10930 #endif
10931 int
10932 main ()
10933 {
10934 int ret = snd_pcm_hw_params_get_access(NULL, NULL)
10935   ;
10936   return 0;
10937 }
10938 _ACEOF
10939 if ac_fn_c_try_compile "$LINENO"; then :
10940
10941 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
10942
10943                          ALSALIBS="-lasound"
10944 fi
10945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10946 fi
10947
10948 fi
10949
10950
10951 if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes"
10952 then
10953     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcapi20" >&5
10954 $as_echo_n "checking for -lcapi20... " >&6; }
10955 if test "${ac_cv_lib_soname_capi20+set}" = set; then :
10956   $as_echo_n "(cached) " >&6
10957 else
10958   ac_check_soname_save_LIBS=$LIBS
10959 LIBS="-lcapi20  $LIBS"
10960   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10961 /* end confdefs.h.  */
10962
10963 /* Override any GCC internal prototype to avoid an error.
10964    Use char because int might match the return type of a GCC
10965    builtin and then its argument prototype would still apply.  */
10966 #ifdef __cplusplus
10967 extern "C"
10968 #endif
10969 char capi20_register ();
10970 int
10971 main ()
10972 {
10973 return capi20_register ();
10974   ;
10975   return 0;
10976 }
10977 _ACEOF
10978 if ac_fn_c_try_link "$LINENO"; then :
10979   case "$LIBEXT" in
10980     dll) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest.exe | grep "capi20" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10981     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'` ;;
10982     *) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcapi20\\.$LIBEXT" | sed -e "s/^.*\(libcapi20\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'` ;;
10983   esac
10984 fi
10985 rm -f core conftest.err conftest.$ac_objext \
10986     conftest$ac_exeext conftest.$ac_ext
10987   LIBS=$ac_check_soname_save_LIBS
10988 fi
10989 if test "x$ac_cv_lib_soname_capi20" = "x"; then :
10990   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10991 $as_echo "not found" >&6; }
10992
10993 else
10994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_capi20" >&5
10995 $as_echo "$ac_cv_lib_soname_capi20" >&6; }
10996
10997 cat >>confdefs.h <<_ACEOF
10998 #define SONAME_LIBCAPI20 "$ac_cv_lib_soname_capi20"
10999 _ACEOF
11000
11001
11002 fi
11003 fi
11004 if test "x$ac_cv_lib_soname_capi20" = "x"; then :
11005   case "x$with_capi" in
11006   x)   as_fn_append wine_notices "|libcapi20 ${notice_platform}development files not found, ISDN won't be supported." ;;
11007   xno) ;;
11008   *)   as_fn_error $? "libcapi20 ${notice_platform}development files not found, ISDN won't be supported.
11009 This is an error since --with-capi was requested." "$LINENO" 5  ;;
11010 esac
11011 fi
11012
11013 CUPSINCL=""
11014
11015 if test "x$with_cups" != "xno"
11016 then
11017     ac_save_CPPFLAGS="$CPPFLAGS"
11018     ac_cups_cflags=`cups-config --cflags 2>/dev/null`
11019     ac_cups_libs=`cups-config --ldflags 2>/dev/null`
11020     CPPFLAGS="$CPPFLAGS $ac_cups_cflags"
11021     for ac_header in cups/cups.h
11022 do :
11023   ac_fn_c_check_header_mongrel "$LINENO" "cups/cups.h" "ac_cv_header_cups_cups_h" "$ac_includes_default"
11024 if test "x$ac_cv_header_cups_cups_h" = x""yes; then :
11025   cat >>confdefs.h <<_ACEOF
11026 #define HAVE_CUPS_CUPS_H 1
11027 _ACEOF
11028  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcups" >&5
11029 $as_echo_n "checking for -lcups... " >&6; }
11030 if test "${ac_cv_lib_soname_cups+set}" = set; then :
11031   $as_echo_n "(cached) " >&6
11032 else
11033   ac_check_soname_save_LIBS=$LIBS
11034 LIBS="-lcups $ac_cups_libs $LIBS"
11035   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11036 /* end confdefs.h.  */
11037
11038 /* Override any GCC internal prototype to avoid an error.
11039    Use char because int might match the return type of a GCC
11040    builtin and then its argument prototype would still apply.  */
11041 #ifdef __cplusplus
11042 extern "C"
11043 #endif
11044 char cupsGetDefault ();
11045 int
11046 main ()
11047 {
11048 return cupsGetDefault ();
11049   ;
11050   return 0;
11051 }
11052 _ACEOF
11053 if ac_fn_c_try_link "$LINENO"; then :
11054   case "$LIBEXT" in
11055     dll) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest.exe | grep "cups" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11056     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'` ;;
11057     *) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcups\\.$LIBEXT" | sed -e "s/^.*\(libcups\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
11058   esac
11059 fi
11060 rm -f core conftest.err conftest.$ac_objext \
11061     conftest$ac_exeext conftest.$ac_ext
11062   LIBS=$ac_check_soname_save_LIBS
11063 fi
11064 if test "x$ac_cv_lib_soname_cups" = "x"; then :
11065   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11066 $as_echo "not found" >&6; }
11067
11068 else
11069   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_cups" >&5
11070 $as_echo "$ac_cv_lib_soname_cups" >&6; }
11071
11072 cat >>confdefs.h <<_ACEOF
11073 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
11074 _ACEOF
11075
11076        CUPSINCL="$ac_cups_cflags"
11077 fi
11078 fi
11079
11080 done
11081
11082     CPPFLAGS="$ac_save_CPPFLAGS"
11083 fi
11084 if test "x$ac_cv_lib_soname_cups" = "x"; then :
11085   case "x$with_cups" in
11086   x)   as_fn_append wine_notices "|libcups ${notice_platform}development files not found, CUPS won't be supported." ;;
11087   xno) ;;
11088   *)   as_fn_error $? "libcups ${notice_platform}development files not found, CUPS won't be supported.
11089 This is an error since --with-cups was requested." "$LINENO" 5  ;;
11090 esac
11091 fi
11092
11093 if test "$ac_cv_header_jack_jack_h" = "yes"
11094 then
11095     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ljack" >&5
11096 $as_echo_n "checking for -ljack... " >&6; }
11097 if test "${ac_cv_lib_soname_jack+set}" = set; then :
11098   $as_echo_n "(cached) " >&6
11099 else
11100   ac_check_soname_save_LIBS=$LIBS
11101 LIBS="-ljack  $LIBS"
11102   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11103 /* end confdefs.h.  */
11104
11105 /* Override any GCC internal prototype to avoid an error.
11106    Use char because int might match the return type of a GCC
11107    builtin and then its argument prototype would still apply.  */
11108 #ifdef __cplusplus
11109 extern "C"
11110 #endif
11111 char jack_client_new ();
11112 int
11113 main ()
11114 {
11115 return jack_client_new ();
11116   ;
11117   return 0;
11118 }
11119 _ACEOF
11120 if ac_fn_c_try_link "$LINENO"; then :
11121   case "$LIBEXT" in
11122     dll) ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest.exe | grep "jack" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11123     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'` ;;
11124     *) 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'` ;;
11125   esac
11126 fi
11127 rm -f core conftest.err conftest.$ac_objext \
11128     conftest$ac_exeext conftest.$ac_ext
11129   LIBS=$ac_check_soname_save_LIBS
11130 fi
11131 if test "x$ac_cv_lib_soname_jack" = "x"; then :
11132   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11133 $as_echo "not found" >&6; }
11134
11135 else
11136   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_jack" >&5
11137 $as_echo "$ac_cv_lib_soname_jack" >&6; }
11138
11139 cat >>confdefs.h <<_ACEOF
11140 #define SONAME_LIBJACK "$ac_cv_lib_soname_jack"
11141 _ACEOF
11142
11143
11144 fi
11145 fi
11146
11147 if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
11148 then
11149     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
11150 $as_echo_n "checking for -lfontconfig... " >&6; }
11151 if test "${ac_cv_lib_soname_fontconfig+set}" = set; then :
11152   $as_echo_n "(cached) " >&6
11153 else
11154   ac_check_soname_save_LIBS=$LIBS
11155 LIBS="-lfontconfig  $LIBS"
11156   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11157 /* end confdefs.h.  */
11158
11159 /* Override any GCC internal prototype to avoid an error.
11160    Use char because int might match the return type of a GCC
11161    builtin and then its argument prototype would still apply.  */
11162 #ifdef __cplusplus
11163 extern "C"
11164 #endif
11165 char FcInit ();
11166 int
11167 main ()
11168 {
11169 return FcInit ();
11170   ;
11171   return 0;
11172 }
11173 _ACEOF
11174 if ac_fn_c_try_link "$LINENO"; then :
11175   case "$LIBEXT" in
11176     dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11177     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'` ;;
11178     *) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'` ;;
11179   esac
11180 fi
11181 rm -f core conftest.err conftest.$ac_objext \
11182     conftest$ac_exeext conftest.$ac_ext
11183   LIBS=$ac_check_soname_save_LIBS
11184 fi
11185 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11186   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11187 $as_echo "not found" >&6; }
11188
11189 else
11190   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
11191 $as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
11192
11193 cat >>confdefs.h <<_ACEOF
11194 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
11195 _ACEOF
11196
11197
11198 fi
11199 elif test -n "$X_CFLAGS" -a "x$with_fontconfig" != "xno"
11200 then
11201         ac_save_CPPFLAGS="$CPPFLAGS"
11202     CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11203     $as_unset ac_cv_header_fontconfig_fontconfig_h
11204     for ac_header in fontconfig/fontconfig.h
11205 do :
11206   ac_fn_c_check_header_mongrel "$LINENO" "fontconfig/fontconfig.h" "ac_cv_header_fontconfig_fontconfig_h" "$ac_includes_default"
11207 if test "x$ac_cv_header_fontconfig_fontconfig_h" = x""yes; then :
11208   cat >>confdefs.h <<_ACEOF
11209 #define HAVE_FONTCONFIG_FONTCONFIG_H 1
11210 _ACEOF
11211
11212 fi
11213
11214 done
11215
11216     CPPFLAGS="$ac_save_CPPFLAGS"
11217     if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
11218     then
11219         FONTCONFIGINCL="$X_CFLAGS"
11220
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 $X_LIBS $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     fi
11272 fi
11273 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11274   case "x$with_fontconfig" in
11275   x)   as_fn_append wine_notices "|fontconfig ${notice_platform}development files not found, fontconfig won't be supported." ;;
11276   xno) ;;
11277   *)   as_fn_error $? "fontconfig ${notice_platform}development files not found, fontconfig won't be supported.
11278 This is an error since --with-fontconfig was requested." "$LINENO" 5  ;;
11279 esac
11280 fi
11281
11282 if test "$ac_cv_header_openssl_err_h" = "yes" -a "$ac_cv_header_openssl_ssl_h" = "yes"
11283 then
11284     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lssl" >&5
11285 $as_echo_n "checking for -lssl... " >&6; }
11286 if test "${ac_cv_lib_soname_ssl+set}" = set; then :
11287   $as_echo_n "(cached) " >&6
11288 else
11289   ac_check_soname_save_LIBS=$LIBS
11290 LIBS="-lssl  $LIBS"
11291   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11292 /* end confdefs.h.  */
11293
11294 /* Override any GCC internal prototype to avoid an error.
11295    Use char because int might match the return type of a GCC
11296    builtin and then its argument prototype would still apply.  */
11297 #ifdef __cplusplus
11298 extern "C"
11299 #endif
11300 char SSL_library_init ();
11301 int
11302 main ()
11303 {
11304 return SSL_library_init ();
11305   ;
11306   return 0;
11307 }
11308 _ACEOF
11309 if ac_fn_c_try_link "$LINENO"; then :
11310   case "$LIBEXT" in
11311     dll) ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest.exe | grep "ssl" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11312     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'` ;;
11313     *) ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep "libssl\\.$LIBEXT" | sed -e "s/^.*\(libssl\.$LIBEXT[^     ]*\).*$/\1/"';2,$d'` ;;
11314   esac
11315 fi
11316 rm -f core conftest.err conftest.$ac_objext \
11317     conftest$ac_exeext conftest.$ac_ext
11318   LIBS=$ac_check_soname_save_LIBS
11319 fi
11320 if test "x$ac_cv_lib_soname_ssl" = "x"; then :
11321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11322 $as_echo "not found" >&6; }
11323
11324 else
11325   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ssl" >&5
11326 $as_echo "$ac_cv_lib_soname_ssl" >&6; }
11327
11328 cat >>confdefs.h <<_ACEOF
11329 #define SONAME_LIBSSL "$ac_cv_lib_soname_ssl"
11330 _ACEOF
11331
11332
11333 fi
11334     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcrypto" >&5
11335 $as_echo_n "checking for -lcrypto... " >&6; }
11336 if test "${ac_cv_lib_soname_crypto+set}" = set; then :
11337   $as_echo_n "(cached) " >&6
11338 else
11339   ac_check_soname_save_LIBS=$LIBS
11340 LIBS="-lcrypto  $LIBS"
11341   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11342 /* end confdefs.h.  */
11343
11344 /* Override any GCC internal prototype to avoid an error.
11345    Use char because int might match the return type of a GCC
11346    builtin and then its argument prototype would still apply.  */
11347 #ifdef __cplusplus
11348 extern "C"
11349 #endif
11350 char BIO_new_socket ();
11351 int
11352 main ()
11353 {
11354 return BIO_new_socket ();
11355   ;
11356   return 0;
11357 }
11358 _ACEOF
11359 if ac_fn_c_try_link "$LINENO"; then :
11360   case "$LIBEXT" in
11361     dll) ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest.exe | grep "crypto" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11362     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'` ;;
11363     *) ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcrypto\\.$LIBEXT" | sed -e "s/^.*\(libcrypto\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'` ;;
11364   esac
11365 fi
11366 rm -f core conftest.err conftest.$ac_objext \
11367     conftest$ac_exeext conftest.$ac_ext
11368   LIBS=$ac_check_soname_save_LIBS
11369 fi
11370 if test "x$ac_cv_lib_soname_crypto" = "x"; then :
11371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11372 $as_echo "not found" >&6; }
11373
11374 else
11375   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_crypto" >&5
11376 $as_echo "$ac_cv_lib_soname_crypto" >&6; }
11377
11378 cat >>confdefs.h <<_ACEOF
11379 #define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto"
11380 _ACEOF
11381
11382
11383 fi
11384 fi
11385 if test "x$ac_cv_lib_soname_ssl" = "x" -o "x$ac_cv_lib_soname_crypto" = "x"; then :
11386   case "x$with_openssl" in
11387   x)   as_fn_append wine_warnings "|OpenSSL ${notice_platform}development files not found, SSL won't be supported." ;;
11388   xno) ;;
11389   *)   as_fn_error $? "OpenSSL ${notice_platform}development files not found, SSL won't be supported.
11390 This is an error since --with-openssl was requested." "$LINENO" 5  ;;
11391 esac
11392 fi
11393
11394 if test "$ac_cv_header_gsm_h" = "yes" -o "$ac_cv_header_gsm_gsm_h" = "yes"
11395 then
11396     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgsm" >&5
11397 $as_echo_n "checking for -lgsm... " >&6; }
11398 if test "${ac_cv_lib_soname_gsm+set}" = set; then :
11399   $as_echo_n "(cached) " >&6
11400 else
11401   ac_check_soname_save_LIBS=$LIBS
11402 LIBS="-lgsm  $LIBS"
11403   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11404 /* end confdefs.h.  */
11405
11406 /* Override any GCC internal prototype to avoid an error.
11407    Use char because int might match the return type of a GCC
11408    builtin and then its argument prototype would still apply.  */
11409 #ifdef __cplusplus
11410 extern "C"
11411 #endif
11412 char gsm_create ();
11413 int
11414 main ()
11415 {
11416 return gsm_create ();
11417   ;
11418   return 0;
11419 }
11420 _ACEOF
11421 if ac_fn_c_try_link "$LINENO"; then :
11422   case "$LIBEXT" in
11423     dll) ac_cv_lib_soname_gsm=`$ac_cv_path_LDD conftest.exe | grep "gsm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11424     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'` ;;
11425     *) ac_cv_lib_soname_gsm=`$ac_cv_path_LDD conftest$ac_exeext | grep "libgsm\\.$LIBEXT" | sed -e "s/^.*\(libgsm\.$LIBEXT[^     ]*\).*$/\1/"';2,$d'` ;;
11426   esac
11427 fi
11428 rm -f core conftest.err conftest.$ac_objext \
11429     conftest$ac_exeext conftest.$ac_ext
11430   LIBS=$ac_check_soname_save_LIBS
11431 fi
11432 if test "x$ac_cv_lib_soname_gsm" = "x"; then :
11433   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11434 $as_echo "not found" >&6; }
11435
11436 else
11437   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gsm" >&5
11438 $as_echo "$ac_cv_lib_soname_gsm" >&6; }
11439
11440 cat >>confdefs.h <<_ACEOF
11441 #define SONAME_LIBGSM "$ac_cv_lib_soname_gsm"
11442 _ACEOF
11443
11444
11445 fi
11446 fi
11447 if test "x$ac_cv_lib_soname_gsm" = "x"; then :
11448   case "x$with_gsm" in
11449   x)   as_fn_append wine_notices "|libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported." ;;
11450   xno) ;;
11451   *)   as_fn_error $? "libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported.
11452 This is an error since --with-gsm was requested." "$LINENO" 5  ;;
11453 esac
11454 fi
11455
11456 if test "$ac_cv_header_icns_h" = "yes"
11457 then
11458     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -licns" >&5
11459 $as_echo_n "checking for -licns... " >&6; }
11460 if test "${ac_cv_lib_soname_icns+set}" = set; then :
11461   $as_echo_n "(cached) " >&6
11462 else
11463   ac_check_soname_save_LIBS=$LIBS
11464 LIBS="-licns  $LIBS"
11465   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11466 /* end confdefs.h.  */
11467
11468 /* Override any GCC internal prototype to avoid an error.
11469    Use char because int might match the return type of a GCC
11470    builtin and then its argument prototype would still apply.  */
11471 #ifdef __cplusplus
11472 extern "C"
11473 #endif
11474 char icns_write_family_to_file ();
11475 int
11476 main ()
11477 {
11478 return icns_write_family_to_file ();
11479   ;
11480   return 0;
11481 }
11482 _ACEOF
11483 if ac_fn_c_try_link "$LINENO"; then :
11484   case "$LIBEXT" in
11485     dll) ac_cv_lib_soname_icns=`$ac_cv_path_LDD conftest.exe | grep "icns" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11486     dylib) ac_cv_lib_soname_icns=`otool -L conftest$ac_exeext | grep "libicns\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libicns\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
11487     *) ac_cv_lib_soname_icns=`$ac_cv_path_LDD conftest$ac_exeext | grep "libicns\\.$LIBEXT" | sed -e "s/^.*\(libicns\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
11488   esac
11489 fi
11490 rm -f core conftest.err conftest.$ac_objext \
11491     conftest$ac_exeext conftest.$ac_ext
11492   LIBS=$ac_check_soname_save_LIBS
11493 fi
11494 if test "x$ac_cv_lib_soname_icns" = "x"; then :
11495   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11496 $as_echo "not found" >&6; }
11497
11498 else
11499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_icns" >&5
11500 $as_echo "$ac_cv_lib_soname_icns" >&6; }
11501
11502 cat >>confdefs.h <<_ACEOF
11503 #define SONAME_LIBICNS "$ac_cv_lib_soname_icns"
11504 _ACEOF
11505
11506
11507 fi
11508 fi
11509 case $host_os in
11510   darwin*|macosx*)
11511     if test "x$ac_cv_lib_soname_icns" = "x"; then :
11512   case "x$with_icns" in
11513   x)   as_fn_append wine_notices "|libicns ${notice_platform}development files not found, ICNS icons won't be supported." ;;
11514   xno) ;;
11515   *)   as_fn_error $? "libicns ${notice_platform}development files not found, ICNS icons won't be supported.
11516 This is an error since --with-icns was requested." "$LINENO" 5  ;;
11517 esac
11518 fi ;;
11519 esac
11520
11521 if test "$ac_cv_header_jpeglib_h" = "yes"
11522 then
11523     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ljpeg" >&5
11524 $as_echo_n "checking for -ljpeg... " >&6; }
11525 if test "${ac_cv_lib_soname_jpeg+set}" = set; then :
11526   $as_echo_n "(cached) " >&6
11527 else
11528   ac_check_soname_save_LIBS=$LIBS
11529 LIBS="-ljpeg  $LIBS"
11530   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11531 /* end confdefs.h.  */
11532
11533 /* Override any GCC internal prototype to avoid an error.
11534    Use char because int might match the return type of a GCC
11535    builtin and then its argument prototype would still apply.  */
11536 #ifdef __cplusplus
11537 extern "C"
11538 #endif
11539 char jpeg_start_decompress ();
11540 int
11541 main ()
11542 {
11543 return jpeg_start_decompress ();
11544   ;
11545   return 0;
11546 }
11547 _ACEOF
11548 if ac_fn_c_try_link "$LINENO"; then :
11549   case "$LIBEXT" in
11550     dll) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest.exe | grep "jpeg" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11551     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'` ;;
11552     *) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest$ac_exeext | grep "libjpeg\\.$LIBEXT" | sed -e "s/^.*\(libjpeg\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
11553   esac
11554 fi
11555 rm -f core conftest.err conftest.$ac_objext \
11556     conftest$ac_exeext conftest.$ac_ext
11557   LIBS=$ac_check_soname_save_LIBS
11558 fi
11559 if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
11560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11561 $as_echo "not found" >&6; }
11562
11563 else
11564   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_jpeg" >&5
11565 $as_echo "$ac_cv_lib_soname_jpeg" >&6; }
11566
11567 cat >>confdefs.h <<_ACEOF
11568 #define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg"
11569 _ACEOF
11570
11571
11572 fi
11573 fi
11574 if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
11575   case "x$with_jpeg" in
11576   x)   as_fn_append wine_warnings "|libjpeg ${notice_platform}development files not found, JPEG won't be supported." ;;
11577   xno) ;;
11578   *)   as_fn_error $? "libjpeg ${notice_platform}development files not found, JPEG won't be supported.
11579 This is an error since --with-jpeg was requested." "$LINENO" 5  ;;
11580 esac
11581 fi
11582
11583 if test "$ac_cv_header_png_h" = "yes"
11584 then
11585     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
11586 $as_echo_n "checking for -lpng... " >&6; }
11587 if test "${ac_cv_lib_soname_png+set}" = set; then :
11588   $as_echo_n "(cached) " >&6
11589 else
11590   ac_check_soname_save_LIBS=$LIBS
11591 LIBS="-lpng -lm -lz $LIBS"
11592   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11593 /* end confdefs.h.  */
11594
11595 /* Override any GCC internal prototype to avoid an error.
11596    Use char because int might match the return type of a GCC
11597    builtin and then its argument prototype would still apply.  */
11598 #ifdef __cplusplus
11599 extern "C"
11600 #endif
11601 char png_create_read_struct ();
11602 int
11603 main ()
11604 {
11605 return png_create_read_struct ();
11606   ;
11607   return 0;
11608 }
11609 _ACEOF
11610 if ac_fn_c_try_link "$LINENO"; then :
11611   case "$LIBEXT" in
11612     dll) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest.exe | grep "png" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11613     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'` ;;
11614     *) 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'` ;;
11615   esac
11616 fi
11617 rm -f core conftest.err conftest.$ac_objext \
11618     conftest$ac_exeext conftest.$ac_ext
11619   LIBS=$ac_check_soname_save_LIBS
11620 fi
11621 if test "x$ac_cv_lib_soname_png" = "x"; then :
11622   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11623 $as_echo "not found" >&6; }
11624
11625 else
11626   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
11627 $as_echo "$ac_cv_lib_soname_png" >&6; }
11628
11629 cat >>confdefs.h <<_ACEOF
11630 #define SONAME_LIBPNG "$ac_cv_lib_soname_png"
11631 _ACEOF
11632
11633
11634 fi
11635     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5
11636 $as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; }
11637 if test "${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+set}" = set; then :
11638   $as_echo_n "(cached) " >&6
11639 else
11640   ac_check_lib_save_LIBS=$LIBS
11641 LIBS="-lpng -lm -lz $LIBS"
11642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11643 /* end confdefs.h.  */
11644
11645 /* Override any GCC internal prototype to avoid an error.
11646    Use char because int might match the return type of a GCC
11647    builtin and then its argument prototype would still apply.  */
11648 #ifdef __cplusplus
11649 extern "C"
11650 #endif
11651 char png_set_expand_gray_1_2_4_to_8 ();
11652 int
11653 main ()
11654 {
11655 return png_set_expand_gray_1_2_4_to_8 ();
11656   ;
11657   return 0;
11658 }
11659 _ACEOF
11660 if ac_fn_c_try_link "$LINENO"; then :
11661   ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes
11662 else
11663   ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no
11664 fi
11665 rm -f core conftest.err conftest.$ac_objext \
11666     conftest$ac_exeext conftest.$ac_ext
11667 LIBS=$ac_check_lib_save_LIBS
11668 fi
11669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5
11670 $as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; }
11671 if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = x""yes; then :
11672
11673 $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
11674
11675
11676 fi
11677
11678 elif test -n "$X_CFLAGS" -a "x$with_png" != "xno"
11679 then
11680         ac_save_CPPFLAGS="$CPPFLAGS"
11681     CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11682     $as_unset ac_cv_header_png_h
11683     for ac_header in png.h
11684 do :
11685   ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
11686 if test "x$ac_cv_header_png_h" = x""yes; then :
11687   cat >>confdefs.h <<_ACEOF
11688 #define HAVE_PNG_H 1
11689 _ACEOF
11690
11691 fi
11692
11693 done
11694
11695     CPPFLAGS="$ac_save_CPPFLAGS"
11696     if test "$ac_cv_header_png_h" = "yes"
11697     then
11698         PNGINCL="$X_CFLAGS"
11699
11700         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
11701 $as_echo_n "checking for -lpng... " >&6; }
11702 if test "${ac_cv_lib_soname_png+set}" = set; then :
11703   $as_echo_n "(cached) " >&6
11704 else
11705   ac_check_soname_save_LIBS=$LIBS
11706 LIBS="-lpng $X_LIBS -lm -lz $LIBS"
11707   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11708 /* end confdefs.h.  */
11709
11710 /* Override any GCC internal prototype to avoid an error.
11711    Use char because int might match the return type of a GCC
11712    builtin and then its argument prototype would still apply.  */
11713 #ifdef __cplusplus
11714 extern "C"
11715 #endif
11716 char png_create_read_struct ();
11717 int
11718 main ()
11719 {
11720 return png_create_read_struct ();
11721   ;
11722   return 0;
11723 }
11724 _ACEOF
11725 if ac_fn_c_try_link "$LINENO"; then :
11726   case "$LIBEXT" in
11727     dll) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest.exe | grep "png" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11728     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'` ;;
11729     *) 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'` ;;
11730   esac
11731 fi
11732 rm -f core conftest.err conftest.$ac_objext \
11733     conftest$ac_exeext conftest.$ac_ext
11734   LIBS=$ac_check_soname_save_LIBS
11735 fi
11736 if test "x$ac_cv_lib_soname_png" = "x"; then :
11737   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11738 $as_echo "not found" >&6; }
11739
11740 else
11741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
11742 $as_echo "$ac_cv_lib_soname_png" >&6; }
11743
11744 cat >>confdefs.h <<_ACEOF
11745 #define SONAME_LIBPNG "$ac_cv_lib_soname_png"
11746 _ACEOF
11747
11748
11749 fi
11750         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5
11751 $as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; }
11752 if test "${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+set}" = set; then :
11753   $as_echo_n "(cached) " >&6
11754 else
11755   ac_check_lib_save_LIBS=$LIBS
11756 LIBS="-lpng $X_LIBS -lm -lz $LIBS"
11757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11758 /* end confdefs.h.  */
11759
11760 /* Override any GCC internal prototype to avoid an error.
11761    Use char because int might match the return type of a GCC
11762    builtin and then its argument prototype would still apply.  */
11763 #ifdef __cplusplus
11764 extern "C"
11765 #endif
11766 char png_set_expand_gray_1_2_4_to_8 ();
11767 int
11768 main ()
11769 {
11770 return png_set_expand_gray_1_2_4_to_8 ();
11771   ;
11772   return 0;
11773 }
11774 _ACEOF
11775 if ac_fn_c_try_link "$LINENO"; then :
11776   ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes
11777 else
11778   ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no
11779 fi
11780 rm -f core conftest.err conftest.$ac_objext \
11781     conftest$ac_exeext conftest.$ac_ext
11782 LIBS=$ac_check_lib_save_LIBS
11783 fi
11784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5
11785 $as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; }
11786 if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = x""yes; then :
11787   $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
11788
11789 fi
11790
11791     fi
11792 fi
11793 if test "x$ac_cv_lib_soname_png" = "x"; then :
11794   case "x$with_png" in
11795   x)   as_fn_append wine_warnings "|libpng ${notice_platform}development files not found, PNG won't be supported." ;;
11796   xno) ;;
11797   *)   as_fn_error $? "libpng ${notice_platform}development files not found, PNG won't be supported.
11798 This is an error since --with-png was requested." "$LINENO" 5  ;;
11799 esac
11800 fi
11801
11802 if test "$ac_cv_header_tiffio_h" = "yes"
11803 then
11804     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ltiff" >&5
11805 $as_echo_n "checking for -ltiff... " >&6; }
11806 if test "${ac_cv_lib_soname_tiff+set}" = set; then :
11807   $as_echo_n "(cached) " >&6
11808 else
11809   ac_check_soname_save_LIBS=$LIBS
11810 LIBS="-ltiff  $LIBS"
11811   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11812 /* end confdefs.h.  */
11813
11814 /* Override any GCC internal prototype to avoid an error.
11815    Use char because int might match the return type of a GCC
11816    builtin and then its argument prototype would still apply.  */
11817 #ifdef __cplusplus
11818 extern "C"
11819 #endif
11820 char TIFFClientOpen ();
11821 int
11822 main ()
11823 {
11824 return TIFFClientOpen ();
11825   ;
11826   return 0;
11827 }
11828 _ACEOF
11829 if ac_fn_c_try_link "$LINENO"; then :
11830   case "$LIBEXT" in
11831     dll) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest.exe | grep "tiff" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11832     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'` ;;
11833     *) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest$ac_exeext | grep "libtiff\\.$LIBEXT" | sed -e "s/^.*\(libtiff\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
11834   esac
11835 fi
11836 rm -f core conftest.err conftest.$ac_objext \
11837     conftest$ac_exeext conftest.$ac_ext
11838   LIBS=$ac_check_soname_save_LIBS
11839 fi
11840 if test "x$ac_cv_lib_soname_tiff" = "x"; then :
11841   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11842 $as_echo "not found" >&6; }
11843
11844 else
11845   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_tiff" >&5
11846 $as_echo "$ac_cv_lib_soname_tiff" >&6; }
11847
11848 cat >>confdefs.h <<_ACEOF
11849 #define SONAME_LIBTIFF "$ac_cv_lib_soname_tiff"
11850 _ACEOF
11851
11852
11853 fi
11854 fi
11855 if test "x$ac_cv_lib_soname_tiff" = "x"; then :
11856   case "x$with_tiff" in
11857   x)   as_fn_append wine_notices "|libtiff ${notice_platform}development files not found, TIFF won't be supported." ;;
11858   xno) ;;
11859   *)   as_fn_error $? "libtiff ${notice_platform}development files not found, TIFF won't be supported.
11860 This is an error since --with-tiff was requested." "$LINENO" 5  ;;
11861 esac
11862 fi
11863
11864 if test "$ac_cv_header_mpg123_h" = "yes"
11865 then
11866     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpg123_feed in -lmpg123" >&5
11867 $as_echo_n "checking for mpg123_feed in -lmpg123... " >&6; }
11868 if test "${ac_cv_lib_mpg123_mpg123_feed+set}" = set; then :
11869   $as_echo_n "(cached) " >&6
11870 else
11871   ac_check_lib_save_LIBS=$LIBS
11872 LIBS="-lmpg123  $LIBS"
11873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11874 /* end confdefs.h.  */
11875
11876 /* Override any GCC internal prototype to avoid an error.
11877    Use char because int might match the return type of a GCC
11878    builtin and then its argument prototype would still apply.  */
11879 #ifdef __cplusplus
11880 extern "C"
11881 #endif
11882 char mpg123_feed ();
11883 int
11884 main ()
11885 {
11886 return mpg123_feed ();
11887   ;
11888   return 0;
11889 }
11890 _ACEOF
11891 if ac_fn_c_try_link "$LINENO"; then :
11892   ac_cv_lib_mpg123_mpg123_feed=yes
11893 else
11894   ac_cv_lib_mpg123_mpg123_feed=no
11895 fi
11896 rm -f core conftest.err conftest.$ac_objext \
11897     conftest$ac_exeext conftest.$ac_ext
11898 LIBS=$ac_check_lib_save_LIBS
11899 fi
11900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpg123_mpg123_feed" >&5
11901 $as_echo "$ac_cv_lib_mpg123_mpg123_feed" >&6; }
11902 if test "x$ac_cv_lib_mpg123_mpg123_feed" = x""yes; then :
11903   LIBMPG123="-lmpg123"
11904
11905 fi
11906
11907 fi
11908 if test "x$ac_cv_lib_mpg123_mpg123_feed" != xyes -a x"$ac_cv_header_CoreAudio_CoreAudio_h" != xyes; then :
11909   case "x$with_mpg123" in
11910   x)   as_fn_append wine_notices "|libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported." ;;
11911   xno) ;;
11912   *)   as_fn_error $? "libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported.
11913 This is an error since --with-mpg123 was requested." "$LINENO" 5  ;;
11914 esac
11915 fi
11916 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}
11917
11918 if test "$ac_cv_header_AL_al_h" = "yes"
11919 then
11920     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lopenal" >&5
11921 $as_echo_n "checking for -lopenal... " >&6; }
11922 if test "${ac_cv_lib_soname_openal+set}" = set; then :
11923   $as_echo_n "(cached) " >&6
11924 else
11925   ac_check_soname_save_LIBS=$LIBS
11926 LIBS="-lopenal  $LIBS"
11927   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11928 /* end confdefs.h.  */
11929
11930 /* Override any GCC internal prototype to avoid an error.
11931    Use char because int might match the return type of a GCC
11932    builtin and then its argument prototype would still apply.  */
11933 #ifdef __cplusplus
11934 extern "C"
11935 #endif
11936 char alGetSource3i ();
11937 int
11938 main ()
11939 {
11940 return alGetSource3i ();
11941   ;
11942   return 0;
11943 }
11944 _ACEOF
11945 if ac_fn_c_try_link "$LINENO"; then :
11946   case "$LIBEXT" in
11947     dll) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest.exe | grep "openal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11948     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'` ;;
11949     *) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest$ac_exeext | grep "libopenal\\.$LIBEXT" | sed -e "s/^.*\(libopenal\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'` ;;
11950   esac
11951 fi
11952 rm -f core conftest.err conftest.$ac_objext \
11953     conftest$ac_exeext conftest.$ac_ext
11954   LIBS=$ac_check_soname_save_LIBS
11955 fi
11956 if test "x$ac_cv_lib_soname_openal" = "x"; then :
11957   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11958 $as_echo "not found" >&6; }
11959
11960 else
11961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_openal" >&5
11962 $as_echo "$ac_cv_lib_soname_openal" >&6; }
11963
11964 cat >>confdefs.h <<_ACEOF
11965 #define SONAME_LIBOPENAL "$ac_cv_lib_soname_openal"
11966 _ACEOF
11967
11968        LIBOPENAL="-lopenal"
11969
11970                       ac_cv_lib_openal=yes
11971
11972 cat >>confdefs.h <<_ACEOF
11973 #define HAVE_OPENAL 1
11974 _ACEOF
11975
11976 fi
11977 fi
11978 if test "x$ac_cv_lib_openal" != xyes; then :
11979   case "x$with_openal" in
11980   x)   as_fn_append wine_notices "|libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported." ;;
11981   xno) ;;
11982   *)   as_fn_error $? "libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported.
11983 This is an error since --with-openal was requested." "$LINENO" 5  ;;
11984 esac
11985 fi
11986 test "x$ac_cv_lib_openal" = xyes || enable_openal32=${enable_openal32:-no}
11987
11988 if test "$ac_cv_header_kstat_h" = "yes"
11989 then
11990     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
11991 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
11992 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
11993   $as_echo_n "(cached) " >&6
11994 else
11995   ac_check_lib_save_LIBS=$LIBS
11996 LIBS="-lkstat  $LIBS"
11997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11998 /* end confdefs.h.  */
11999
12000 /* Override any GCC internal prototype to avoid an error.
12001    Use char because int might match the return type of a GCC
12002    builtin and then its argument prototype would still apply.  */
12003 #ifdef __cplusplus
12004 extern "C"
12005 #endif
12006 char kstat_open ();
12007 int
12008 main ()
12009 {
12010 return kstat_open ();
12011   ;
12012   return 0;
12013 }
12014 _ACEOF
12015 if ac_fn_c_try_link "$LINENO"; then :
12016   ac_cv_lib_kstat_kstat_open=yes
12017 else
12018   ac_cv_lib_kstat_kstat_open=no
12019 fi
12020 rm -f core conftest.err conftest.$ac_objext \
12021     conftest$ac_exeext conftest.$ac_ext
12022 LIBS=$ac_check_lib_save_LIBS
12023 fi
12024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
12025 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
12026 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
12027
12028 $as_echo "#define HAVE_LIBKSTAT 1" >>confdefs.h
12029
12030                   LIBKSTAT="-lkstat"
12031
12032 fi
12033
12034 fi
12035
12036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lodbc" >&5
12037 $as_echo_n "checking for -lodbc... " >&6; }
12038 if test "${ac_cv_lib_soname_odbc+set}" = set; then :
12039   $as_echo_n "(cached) " >&6
12040 else
12041   ac_check_soname_save_LIBS=$LIBS
12042 LIBS="-lodbc  $LIBS"
12043   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12044 /* end confdefs.h.  */
12045
12046 /* Override any GCC internal prototype to avoid an error.
12047    Use char because int might match the return type of a GCC
12048    builtin and then its argument prototype would still apply.  */
12049 #ifdef __cplusplus
12050 extern "C"
12051 #endif
12052 char SQLConnect ();
12053 int
12054 main ()
12055 {
12056 return SQLConnect ();
12057   ;
12058   return 0;
12059 }
12060 _ACEOF
12061 if ac_fn_c_try_link "$LINENO"; then :
12062   case "$LIBEXT" in
12063     dll) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest.exe | grep "odbc" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12064     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'` ;;
12065     *) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest$ac_exeext | grep "libodbc\\.$LIBEXT" | sed -e "s/^.*\(libodbc\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
12066   esac
12067 fi
12068 rm -f core conftest.err conftest.$ac_objext \
12069     conftest$ac_exeext conftest.$ac_ext
12070   LIBS=$ac_check_soname_save_LIBS
12071 fi
12072 if test "x$ac_cv_lib_soname_odbc" = "x"; then :
12073   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12074 $as_echo "not found" >&6; }
12075        cat >>confdefs.h <<_ACEOF
12076 #define SONAME_LIBODBC "libodbc.$LIBEXT"
12077 _ACEOF
12078
12079 else
12080   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_odbc" >&5
12081 $as_echo "$ac_cv_lib_soname_odbc" >&6; }
12082
12083 cat >>confdefs.h <<_ACEOF
12084 #define SONAME_LIBODBC "$ac_cv_lib_soname_odbc"
12085 _ACEOF
12086
12087
12088 fi
12089
12090 if test "x$ALSALIBS$COREAUDIO$NASLIBS$ESDLIBS$ac_cv_lib_soname_jack" = "x" -a \
12091         "$ac_cv_header_sys_soundcard_h" != "yes" -a \
12092         "$ac_cv_header_machine_soundcard_h" != "yes" -a \
12093         "$ac_cv_header_soundcard_h" != "yes" -a \
12094         "x$with_alsa$with_coreaudio$with_nas$with_esd$with_jack$with_oss" != xnononononono
12095 then
12096     as_fn_append wine_warnings "|No sound system was found. Windows applications will be silent."
12097 fi
12098
12099
12100 EXTRACFLAGS=""
12101
12102 if test "x${GCC}" = "xyes"
12103 then
12104   EXTRACFLAGS="-Wall -pipe"
12105
12106     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc strength-reduce bug" >&5
12107 $as_echo_n "checking for gcc strength-reduce bug... " >&6; }
12108 if test "${ac_cv_c_gcc_strength_bug+set}" = set; then :
12109   $as_echo_n "(cached) " >&6
12110 else
12111   if test "$cross_compiling" = yes; then :
12112   ac_cv_c_gcc_strength_bug="yes"
12113 else
12114   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12115 /* end confdefs.h.  */
12116 int L[4] = {0,1,2,3};
12117 int
12118 main ()
12119 {
12120 static int Array[3];
12121   unsigned int B = 3;
12122   int i;
12123   for(i=0; i<B; i++) Array[i] = i - 3;
12124   for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
12125   L[i] = 4;
12126   return (Array[1] != -2 || L[2] != 3)
12127   ;
12128   return 0;
12129 }
12130 _ACEOF
12131 if ac_fn_c_try_run "$LINENO"; then :
12132   ac_cv_c_gcc_strength_bug="no"
12133 else
12134   ac_cv_c_gcc_strength_bug="yes"
12135 fi
12136 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12137   conftest.$ac_objext conftest.beam conftest.$ac_ext
12138 fi
12139
12140 fi
12141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gcc_strength_bug" >&5
12142 $as_echo "$ac_cv_c_gcc_strength_bug" >&6; }
12143   if test "$ac_cv_c_gcc_strength_bug" = "yes"
12144   then
12145     EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
12146   fi
12147
12148     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-builtin" >&5
12149 $as_echo_n "checking whether the compiler supports -fno-builtin... " >&6; }
12150 if test "${ac_cv_cflags__fno_builtin+set}" = set; then :
12151   $as_echo_n "(cached) " >&6
12152 else
12153   ac_wine_try_cflags_saved=$CFLAGS
12154 CFLAGS="$CFLAGS -fno-builtin"
12155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12156 /* end confdefs.h.  */
12157 int main(int argc, char **argv) { return 0; }
12158 _ACEOF
12159 if ac_fn_c_try_link "$LINENO"; then :
12160   ac_cv_cflags__fno_builtin=yes
12161 else
12162   ac_cv_cflags__fno_builtin=no
12163 fi
12164 rm -f core conftest.err conftest.$ac_objext \
12165     conftest$ac_exeext conftest.$ac_ext
12166 CFLAGS=$ac_wine_try_cflags_saved
12167 fi
12168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_builtin" >&5
12169 $as_echo "$ac_cv_cflags__fno_builtin" >&6; }
12170 if test $ac_cv_cflags__fno_builtin = yes; then :
12171   BUILTINFLAG="-fno-builtin"
12172
12173 fi
12174   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-strict-aliasing" >&5
12175 $as_echo_n "checking whether the compiler supports -fno-strict-aliasing... " >&6; }
12176 if test "${ac_cv_cflags__fno_strict_aliasing+set}" = set; then :
12177   $as_echo_n "(cached) " >&6
12178 else
12179   ac_wine_try_cflags_saved=$CFLAGS
12180 CFLAGS="$CFLAGS -fno-strict-aliasing"
12181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12182 /* end confdefs.h.  */
12183 int main(int argc, char **argv) { return 0; }
12184 _ACEOF
12185 if ac_fn_c_try_link "$LINENO"; then :
12186   ac_cv_cflags__fno_strict_aliasing=yes
12187 else
12188   ac_cv_cflags__fno_strict_aliasing=no
12189 fi
12190 rm -f core conftest.err conftest.$ac_objext \
12191     conftest$ac_exeext conftest.$ac_ext
12192 CFLAGS=$ac_wine_try_cflags_saved
12193 fi
12194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_strict_aliasing" >&5
12195 $as_echo "$ac_cv_cflags__fno_strict_aliasing" >&6; }
12196 if test $ac_cv_cflags__fno_strict_aliasing = yes; then :
12197   EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
12198 fi
12199   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wdeclaration-after-statement" >&5
12200 $as_echo_n "checking whether the compiler supports -Wdeclaration-after-statement... " >&6; }
12201 if test "${ac_cv_cflags__Wdeclaration_after_statement+set}" = set; then :
12202   $as_echo_n "(cached) " >&6
12203 else
12204   ac_wine_try_cflags_saved=$CFLAGS
12205 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
12206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12207 /* end confdefs.h.  */
12208 int main(int argc, char **argv) { return 0; }
12209 _ACEOF
12210 if ac_fn_c_try_link "$LINENO"; then :
12211   ac_cv_cflags__Wdeclaration_after_statement=yes
12212 else
12213   ac_cv_cflags__Wdeclaration_after_statement=no
12214 fi
12215 rm -f core conftest.err conftest.$ac_objext \
12216     conftest$ac_exeext conftest.$ac_ext
12217 CFLAGS=$ac_wine_try_cflags_saved
12218 fi
12219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wdeclaration_after_statement" >&5
12220 $as_echo "$ac_cv_cflags__Wdeclaration_after_statement" >&6; }
12221 if test $ac_cv_cflags__Wdeclaration_after_statement = yes; then :
12222   EXTRACFLAGS="$EXTRACFLAGS -Wdeclaration-after-statement"
12223 fi
12224   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wstrict-prototypes" >&5
12225 $as_echo_n "checking whether the compiler supports -Wstrict-prototypes... " >&6; }
12226 if test "${ac_cv_cflags__Wstrict_prototypes+set}" = set; then :
12227   $as_echo_n "(cached) " >&6
12228 else
12229   ac_wine_try_cflags_saved=$CFLAGS
12230 CFLAGS="$CFLAGS -Wstrict-prototypes"
12231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12232 /* end confdefs.h.  */
12233 int main(int argc, char **argv) { return 0; }
12234 _ACEOF
12235 if ac_fn_c_try_link "$LINENO"; then :
12236   ac_cv_cflags__Wstrict_prototypes=yes
12237 else
12238   ac_cv_cflags__Wstrict_prototypes=no
12239 fi
12240 rm -f core conftest.err conftest.$ac_objext \
12241     conftest$ac_exeext conftest.$ac_ext
12242 CFLAGS=$ac_wine_try_cflags_saved
12243 fi
12244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wstrict_prototypes" >&5
12245 $as_echo "$ac_cv_cflags__Wstrict_prototypes" >&6; }
12246 if test $ac_cv_cflags__Wstrict_prototypes = yes; then :
12247   EXTRACFLAGS="$EXTRACFLAGS -Wstrict-prototypes"
12248 fi
12249   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wtype-limits" >&5
12250 $as_echo_n "checking whether the compiler supports -Wtype-limits... " >&6; }
12251 if test "${ac_cv_cflags__Wtype_limits+set}" = set; then :
12252   $as_echo_n "(cached) " >&6
12253 else
12254   ac_wine_try_cflags_saved=$CFLAGS
12255 CFLAGS="$CFLAGS -Wtype-limits"
12256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12257 /* end confdefs.h.  */
12258 int main(int argc, char **argv) { return 0; }
12259 _ACEOF
12260 if ac_fn_c_try_link "$LINENO"; then :
12261   ac_cv_cflags__Wtype_limits=yes
12262 else
12263   ac_cv_cflags__Wtype_limits=no
12264 fi
12265 rm -f core conftest.err conftest.$ac_objext \
12266     conftest$ac_exeext conftest.$ac_ext
12267 CFLAGS=$ac_wine_try_cflags_saved
12268 fi
12269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wtype_limits" >&5
12270 $as_echo "$ac_cv_cflags__Wtype_limits" >&6; }
12271 if test $ac_cv_cflags__Wtype_limits = yes; then :
12272   EXTRACFLAGS="$EXTRACFLAGS -Wtype-limits"
12273 fi
12274   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wwrite-strings" >&5
12275 $as_echo_n "checking whether the compiler supports -Wwrite-strings... " >&6; }
12276 if test "${ac_cv_cflags__Wwrite_strings+set}" = set; then :
12277   $as_echo_n "(cached) " >&6
12278 else
12279   ac_wine_try_cflags_saved=$CFLAGS
12280 CFLAGS="$CFLAGS -Wwrite-strings"
12281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12282 /* end confdefs.h.  */
12283 int main(int argc, char **argv) { return 0; }
12284 _ACEOF
12285 if ac_fn_c_try_link "$LINENO"; then :
12286   ac_cv_cflags__Wwrite_strings=yes
12287 else
12288   ac_cv_cflags__Wwrite_strings=no
12289 fi
12290 rm -f core conftest.err conftest.$ac_objext \
12291     conftest$ac_exeext conftest.$ac_ext
12292 CFLAGS=$ac_wine_try_cflags_saved
12293 fi
12294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wwrite_strings" >&5
12295 $as_echo "$ac_cv_cflags__Wwrite_strings" >&6; }
12296 if test $ac_cv_cflags__Wwrite_strings = yes; then :
12297   EXTRACFLAGS="$EXTRACFLAGS -Wwrite-strings"
12298 fi
12299
12300     saved_CFLAGS="$CFLAGS"
12301   CFLAGS="$CFLAGS -Wpointer-arith -Werror"
12302   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wpointer-arith" >&5
12303 $as_echo_n "checking for broken string.h that generates warnings with -Wpointer-arith... " >&6; }
12304 if test "${ac_cv_c_string_h_warnings+set}" = set; then :
12305   $as_echo_n "(cached) " >&6
12306 else
12307   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12308 /* end confdefs.h.  */
12309 #include <string.h>
12310 int
12311 main ()
12312 {
12313
12314   ;
12315   return 0;
12316 }
12317 _ACEOF
12318 if ac_fn_c_try_compile "$LINENO"; then :
12319   ac_cv_c_string_h_warnings=no
12320 else
12321   ac_cv_c_string_h_warnings=yes
12322 fi
12323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12324 fi
12325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_string_h_warnings" >&5
12326 $as_echo "$ac_cv_c_string_h_warnings" >&6; }
12327   CFLAGS="$saved_CFLAGS"
12328   if test "$ac_cv_c_string_h_warnings" = "no"
12329   then
12330     EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
12331   fi
12332
12333     saved_CFLAGS="$CFLAGS"
12334   CFLAGS="$CFLAGS -Wlogical-op -Werror"
12335   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wlogical-op" >&5
12336 $as_echo_n "checking for broken string.h that generates warnings with -Wlogical-op... " >&6; }
12337 if test "${ac_cv_c_logicalop_noisy+set}" = set; then :
12338   $as_echo_n "(cached) " >&6
12339 else
12340   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12341 /* end confdefs.h.  */
12342 #include <string.h>
12343 int
12344 main ()
12345 {
12346 char*f(const char *h,char n) {return strchr(h,n);}
12347   ;
12348   return 0;
12349 }
12350 _ACEOF
12351 if ac_fn_c_try_compile "$LINENO"; then :
12352   ac_cv_c_logicalop_noisy=no
12353 else
12354   ac_cv_c_logicalop_noisy=yes
12355 fi
12356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12357 fi
12358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_logicalop_noisy" >&5
12359 $as_echo "$ac_cv_c_logicalop_noisy" >&6; }
12360   CFLAGS="$saved_CFLAGS"
12361   if test "$ac_cv_c_logicalop_noisy" = "no"
12362   then
12363     EXTRACFLAGS="$EXTRACFLAGS -Wlogical-op"
12364   fi
12365
12366     if test "x$enable_maintainer_mode" = "xyes"
12367   then
12368       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Werror" >&5
12369 $as_echo_n "checking whether the compiler supports -Werror... " >&6; }
12370 if test "${ac_cv_cflags__Werror+set}" = set; then :
12371   $as_echo_n "(cached) " >&6
12372 else
12373   ac_wine_try_cflags_saved=$CFLAGS
12374 CFLAGS="$CFLAGS -Werror"
12375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12376 /* end confdefs.h.  */
12377 int main(int argc, char **argv) { return 0; }
12378 _ACEOF
12379 if ac_fn_c_try_link "$LINENO"; then :
12380   ac_cv_cflags__Werror=yes
12381 else
12382   ac_cv_cflags__Werror=no
12383 fi
12384 rm -f core conftest.err conftest.$ac_objext \
12385     conftest$ac_exeext conftest.$ac_ext
12386 CFLAGS=$ac_wine_try_cflags_saved
12387 fi
12388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Werror" >&5
12389 $as_echo "$ac_cv_cflags__Werror" >&6; }
12390 if test $ac_cv_cflags__Werror = yes; then :
12391   EXTRACFLAGS="$EXTRACFLAGS -Werror"
12392 fi
12393   fi
12394
12395     saved_CFLAGS="$CFLAGS"
12396   CFLAGS="$CFLAGS -Werror"
12397   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ms_hook_prologue attribute" >&5
12398 $as_echo_n "checking for ms_hook_prologue attribute... " >&6; }
12399 if test "${ac_cv_have_ms_hook_prologue+set}" = set; then :
12400   $as_echo_n "(cached) " >&6
12401 else
12402   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12403 /* end confdefs.h.  */
12404 int __attribute__((__ms_hook_prologue__)) test(void) { return 0; }
12405 int
12406 main ()
12407 {
12408
12409   ;
12410   return 0;
12411 }
12412 _ACEOF
12413 if ac_fn_c_try_compile "$LINENO"; then :
12414   ac_cv_have_ms_hook_prologue="yes"
12415 else
12416   ac_cv_have_ms_hook_prologue="no"
12417 fi
12418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12419 fi
12420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ms_hook_prologue" >&5
12421 $as_echo "$ac_cv_have_ms_hook_prologue" >&6; }
12422   CFLAGS="$saved_CFLAGS"
12423   if test "$ac_cv_have_ms_hook_prologue" = "yes"
12424   then
12425
12426 $as_echo "#define DECLSPEC_HOTPATCH __attribute__((__ms_hook_prologue__))" >>confdefs.h
12427
12428   else
12429       $as_echo "#define DECLSPEC_HOTPATCH /* */" >>confdefs.h
12430
12431   fi
12432 fi
12433
12434
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the need to disable Fortify" >&5
12436 $as_echo_n "checking for the need to disable Fortify... " >&6; }
12437 if test "${ac_cv_c_fortify_enabled+set}" = set; then :
12438   $as_echo_n "(cached) " >&6
12439 else
12440   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12441 /* end confdefs.h.  */
12442 #include <string.h>
12443 int
12444 main ()
12445 {
12446 #if defined(__USE_FORTIFY_LEVEL) && __USE_FORTIFY_LEVEL > 0
12447 #error Fortify enabled
12448 #endif
12449   ;
12450   return 0;
12451 }
12452 _ACEOF
12453 if ac_fn_c_try_compile "$LINENO"; then :
12454   ac_cv_c_fortify_enabled=no
12455 else
12456   ac_cv_c_fortify_enabled=yes
12457 fi
12458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12459 fi
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_fortify_enabled" >&5
12461 $as_echo "$ac_cv_c_fortify_enabled" >&6; }
12462 if test "$ac_cv_c_fortify_enabled" = yes
12463 then
12464     CFLAGS="$CFLAGS -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0"
12465 fi
12466
12467
12468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need an underscore prefix" >&5
12469 $as_echo_n "checking whether external symbols need an underscore prefix... " >&6; }
12470 if test "${ac_cv_c_extern_prefix+set}" = set; then :
12471   $as_echo_n "(cached) " >&6
12472 else
12473   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12474 /* end confdefs.h.  */
12475 extern int ac_test;
12476 int
12477 main ()
12478 {
12479 asm(".globl _ac_test\n_ac_test:\t.long 0"); if (ac_test) return 1
12480   ;
12481   return 0;
12482 }
12483 _ACEOF
12484 if ac_fn_c_try_link "$LINENO"; then :
12485   ac_cv_c_extern_prefix="yes"
12486 else
12487   ac_cv_c_extern_prefix="no"
12488 fi
12489 rm -f core conftest.err conftest.$ac_objext \
12490     conftest$ac_exeext conftest.$ac_ext
12491 fi
12492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_extern_prefix" >&5
12493 $as_echo "$ac_cv_c_extern_prefix" >&6; }
12494
12495 case $host_cpu in
12496   *i[3456789]86*)
12497     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need stdcall decoration" >&5
12498 $as_echo_n "checking whether external symbols need stdcall decoration... " >&6; }
12499 if test "${ac_cv_c_stdcall_suffix+set}" = set; then :
12500   $as_echo_n "(cached) " >&6
12501 else
12502   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12503 /* end confdefs.h.  */
12504 #ifndef _MSC_VER
12505 #define __stdcall __attribute__((__stdcall__))
12506 #endif
12507 int __stdcall ac_test(int i) { return i; }
12508 int
12509 main ()
12510 {
12511 asm("jmp _ac_test@4"); if (ac_test(1)) return 1
12512   ;
12513   return 0;
12514 }
12515 _ACEOF
12516 if ac_fn_c_try_link "$LINENO"; then :
12517   ac_cv_c_stdcall_suffix="yes"
12518 else
12519   ac_cv_c_stdcall_suffix="no"
12520 fi
12521 rm -f core conftest.err conftest.$ac_objext \
12522     conftest$ac_exeext conftest.$ac_ext
12523 fi
12524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stdcall_suffix" >&5
12525 $as_echo "$ac_cv_c_stdcall_suffix" >&6; } ;;
12526   *) ac_cv_c_stdcall_suffix="no" ;;
12527 esac
12528
12529
12530 if test "$ac_cv_c_extern_prefix" = "yes"
12531 then
12532     $as_echo "#define __ASM_NAME(name) \"_\" name" >>confdefs.h
12533
12534     asm_name_prefix="_"
12535 else
12536     $as_echo "#define __ASM_NAME(name) name" >>confdefs.h
12537
12538     asm_name_prefix=""
12539 fi
12540
12541
12542 if test "$ac_cv_c_stdcall_suffix" = "yes"
12543 then
12544     $as_echo "#define __ASM_STDCALL(args) \"@\" #args" >>confdefs.h
12545
12546 else
12547     $as_echo "#define __ASM_STDCALL(args) \"\"" >>confdefs.h
12548
12549 fi
12550
12551
12552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to define a function in assembly code" >&5
12553 $as_echo_n "checking how to define a function in assembly code... " >&6; }
12554 if test "${ac_cv_asm_func_def+set}" = set; then :
12555   $as_echo_n "(cached) " >&6
12556 else
12557   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12558 /* end confdefs.h.  */
12559
12560 int
12561 main ()
12562 {
12563 asm("\t.globl _ac_test\n\t.def _ac_test; .scl 2; .type 32; .endef\n_ac_test:\t.long 0");
12564   ;
12565   return 0;
12566 }
12567 _ACEOF
12568 if ac_fn_c_try_link "$LINENO"; then :
12569   ac_cv_asm_func_def=".def"
12570 else
12571   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12572 /* end confdefs.h.  */
12573
12574 int
12575 main ()
12576 {
12577 asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0");
12578   ;
12579   return 0;
12580 }
12581 _ACEOF
12582 if ac_fn_c_try_link "$LINENO"; then :
12583   ac_cv_asm_func_def=".type @function"
12584 else
12585   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12586 /* end confdefs.h.  */
12587
12588 int
12589 main ()
12590 {
12591 asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0");
12592   ;
12593   return 0;
12594 }
12595 _ACEOF
12596 if ac_fn_c_try_link "$LINENO"; then :
12597   ac_cv_asm_func_def=".type 2"
12598 else
12599   ac_cv_asm_func_def="unknown"
12600 fi
12601 rm -f core conftest.err conftest.$ac_objext \
12602     conftest$ac_exeext conftest.$ac_ext
12603 fi
12604 rm -f core conftest.err conftest.$ac_objext \
12605     conftest$ac_exeext conftest.$ac_ext
12606 fi
12607 rm -f core conftest.err conftest.$ac_objext \
12608     conftest$ac_exeext conftest.$ac_ext
12609 fi
12610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_asm_func_def" >&5
12611 $as_echo "$ac_cv_asm_func_def" >&6; }
12612
12613
12614 case "$ac_cv_asm_func_def" in
12615   ".def")
12616      $as_echo "#define __ASM_FUNC(name) \".def \" __ASM_NAME(name) \"; .scl 2; .type 32; .endef\"" >>confdefs.h
12617
12618      asm_func_header=".def $asm_name_prefix\" #name suffix \"; .scl 2; .type 32; .endef" ;;
12619   ".type @function")
12620      $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",@function\"" >>confdefs.h
12621
12622      asm_func_header=".type $asm_name_prefix\" #name suffix \",@function" ;;
12623   ".type 2")
12624      $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",2\"" >>confdefs.h
12625
12626      asm_func_header=".type $asm_name_prefix\" #name suffix \",2" ;;
12627   *)
12628      $as_echo "#define __ASM_FUNC(name) \"\"" >>confdefs.h
12629
12630      asm_func_header="" ;;
12631 esac
12632
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether asm() works outside of functions" >&5
12634 $as_echo_n "checking whether asm() works outside of functions... " >&6; }
12635 if test "${ac_cv_c_asm_outside_funcs+set}" = set; then :
12636   $as_echo_n "(cached) " >&6
12637 else
12638   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12639 /* end confdefs.h.  */
12640 asm(".text\n\t.long 0");
12641 int
12642 main ()
12643 {
12644
12645   ;
12646   return 0;
12647 }
12648 _ACEOF
12649 if ac_fn_c_try_compile "$LINENO"; then :
12650   ac_cv_c_asm_outside_funcs="yes"
12651 else
12652   ac_cv_c_asm_outside_funcs="no"
12653 fi
12654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12655 fi
12656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_asm_outside_funcs" >&5
12657 $as_echo "$ac_cv_c_asm_outside_funcs" >&6; }
12658
12659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .previous is supported in assembly code" >&5
12660 $as_echo_n "checking whether .previous is supported in assembly code... " >&6; }
12661 if test "${ac_cv_c_dot_previous+set}" = set; then :
12662   $as_echo_n "(cached) " >&6
12663 else
12664   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12665 /* end confdefs.h.  */
12666
12667 int
12668 main ()
12669 {
12670 asm(".text\nac_test:\t.long 0\n\t.previous");
12671   ;
12672   return 0;
12673 }
12674 _ACEOF
12675 if ac_fn_c_try_link "$LINENO"; then :
12676   ac_cv_c_dot_previous="yes"
12677 else
12678   ac_cv_c_dot_previous="no"
12679 fi
12680 rm -f core conftest.err conftest.$ac_objext \
12681     conftest$ac_exeext conftest.$ac_ext
12682 fi
12683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dot_previous" >&5
12684 $as_echo "$ac_cv_c_dot_previous" >&6; }
12685
12686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CFI directives are supported in assembly code" >&5
12687 $as_echo_n "checking whether CFI directives are supported in assembly code... " >&6; }
12688 if test "${ac_cv_c_cfi_support+set}" = set; then :
12689   $as_echo_n "(cached) " >&6
12690 else
12691   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12692 /* end confdefs.h.  */
12693 asm(".text\nac_test:\t.cfi_startproc\n\t.long 0\n\t.cfi_endproc");
12694 int
12695 main ()
12696 {
12697
12698   ;
12699   return 0;
12700 }
12701 _ACEOF
12702 if ac_fn_c_try_compile "$LINENO"; then :
12703   ac_cv_c_cfi_support="yes"
12704 else
12705   ac_cv_c_cfi_support="no"
12706 fi
12707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12708 fi
12709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_cfi_support" >&5
12710 $as_echo "$ac_cv_c_cfi_support" >&6; }
12711
12712 asm_func_header=".globl $asm_name_prefix\" #name suffix \"\\n\\t$asm_func_header\\n$asm_name_prefix\" #name suffix \":\\n\\t"
12713 asm_func_trailer=""
12714 if test "$ac_cv_c_dot_previous" = "yes"
12715 then
12716    asm_func_trailer="\\n\\t.previous"
12717 fi
12718 if test "$ac_cv_c_cfi_support" = "yes"
12719 then
12720    asm_func_header="$asm_func_header.cfi_startproc\\n\\t"
12721    asm_func_trailer="\\n\\t.cfi_endproc$asm_func_trailer"
12722
12723 $as_echo "#define __ASM_CFI(str) str" >>confdefs.h
12724
12725    UNWINDFLAGS=-fasynchronous-unwind-tables
12726
12727 else
12728    $as_echo "#define __ASM_CFI(str) \"\"" >>confdefs.h
12729
12730 fi
12731
12732 asm_func_code="$asm_func_header\" code \"$asm_func_trailer"
12733
12734
12735 if test "$ac_cv_c_asm_outside_funcs" = "yes"
12736 then
12737     cat >>confdefs.h <<_ACEOF
12738 #define __ASM_DEFINE_FUNC(name,suffix,code) asm(".text\n\t.align 4\n\t$asm_func_code");
12739 _ACEOF
12740
12741 else
12742     cat >>confdefs.h <<_ACEOF
12743 #define __ASM_DEFINE_FUNC(name,suffix,code) void __asm_dummy_##name(void) { asm(".text\n\t.align 4\n\t$asm_func_code"); }
12744 _ACEOF
12745
12746 fi
12747
12748 $as_echo "#define __ASM_GLOBAL_FUNC(name,code) __ASM_DEFINE_FUNC(name,\"\",code)" >>confdefs.h
12749
12750
12751 $as_echo "#define __ASM_STDCALL_FUNC(name,args,code) __ASM_DEFINE_FUNC(name,__ASM_STDCALL(args),code)" >>confdefs.h
12752
12753
12754
12755 LDPATH=""
12756
12757 case $build_os in
12758   cygwin*|mingw32*)
12759     TOOLSEXT=".exe"
12760
12761     LDPATH="PATH=\"\$(TOOLSDIR)/libs/wine:\$\$PATH\""
12762     ;;
12763   darwin*|macosx*)
12764     ;;
12765   *)
12766     LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$LD_LIBRARY_PATH\""
12767     ;;
12768 esac
12769
12770 case $host_os in
12771   mingw32*)
12772     CRTLIBS="-lmsvcrt"
12773
12774     SOCKETLIBS="-L\$(top_builddir)/dlls/ws2_32 -lws2_32"
12775
12776     ;;
12777 esac
12778
12779 MAIN_BINARY="wine"
12780
12781 test "x$enable_win64" != "xyes" || MAIN_BINARY="wine64"
12782
12783 case $host_os in
12784   linux*)
12785     case $host_cpu in
12786       *i[3456789]86*) EXTRA_BINARIES="wine-preloader"
12787  ;;
12788       x86_64*) EXTRA_BINARIES="wine64-preloader"
12789  ;;
12790     esac
12791     ;;
12792 esac
12793
12794
12795 ac_save_CFLAGS="$CFLAGS"
12796 CFLAGS="$CFLAGS $BUILTINFLAG"
12797 for ac_func in \
12798         _pclose \
12799         _popen \
12800         _snprintf \
12801         _spawnvp \
12802         _strdup \
12803         _stricmp \
12804         _strnicmp \
12805         _strtoi64 \
12806         _strtoui64 \
12807         _vsnprintf \
12808         asctime_r \
12809         chsize \
12810         dlopen \
12811         epoll_create \
12812         ffs \
12813         finite \
12814         fnmatch \
12815         fork \
12816         fpclass \
12817         fstatfs \
12818         fstatvfs \
12819         ftruncate \
12820         futimes \
12821         futimesat \
12822         getdirentries \
12823         getopt_long \
12824         getpagesize \
12825         getpwuid \
12826         gettimeofday \
12827         getuid \
12828         kqueue \
12829         lstat \
12830         memmove \
12831         mmap \
12832         pclose \
12833         pipe2 \
12834         poll \
12835         popen \
12836         port_create \
12837         prctl \
12838         pread \
12839         pwrite \
12840         readdir \
12841         readlink \
12842         sched_setaffinity \
12843         sched_yield \
12844         select \
12845         setproctitle \
12846         setrlimit \
12847         settimeofday \
12848         sigaltstack \
12849         sigprocmask \
12850         snprintf \
12851         spawnvp \
12852         statfs \
12853         statvfs \
12854         strcasecmp \
12855         strdup \
12856         strerror \
12857         strncasecmp \
12858         strtold \
12859         strtoll \
12860         strtoull \
12861         symlink \
12862         tcgetattr \
12863         thr_kill2 \
12864         timegm \
12865         usleep \
12866         vsnprintf \
12867         wait4 \
12868         waitpid \
12869
12870 do :
12871   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12872 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12873 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12874   cat >>confdefs.h <<_ACEOF
12875 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12876 _ACEOF
12877
12878 fi
12879 done
12880
12881 CFLAGS="$ac_save_CFLAGS"
12882
12883 if test "$ac_cv_func_dlopen" = no
12884 then
12885     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12886 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12887 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12888   $as_echo_n "(cached) " >&6
12889 else
12890   ac_check_lib_save_LIBS=$LIBS
12891 LIBS="-ldl  $LIBS"
12892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12893 /* end confdefs.h.  */
12894
12895 /* Override any GCC internal prototype to avoid an error.
12896    Use char because int might match the return type of a GCC
12897    builtin and then its argument prototype would still apply.  */
12898 #ifdef __cplusplus
12899 extern "C"
12900 #endif
12901 char dlopen ();
12902 int
12903 main ()
12904 {
12905 return dlopen ();
12906   ;
12907   return 0;
12908 }
12909 _ACEOF
12910 if ac_fn_c_try_link "$LINENO"; then :
12911   ac_cv_lib_dl_dlopen=yes
12912 else
12913   ac_cv_lib_dl_dlopen=no
12914 fi
12915 rm -f core conftest.err conftest.$ac_objext \
12916     conftest$ac_exeext conftest.$ac_ext
12917 LIBS=$ac_check_lib_save_LIBS
12918 fi
12919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12920 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12921 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12922   $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
12923  LIBDL="-ldl"
12924
12925 fi
12926
12927 fi
12928 ac_wine_check_funcs_save_LIBS="$LIBS"
12929 LIBS="$LIBS $LIBDL"
12930 for ac_func in dladdr
12931 do :
12932   ac_fn_c_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr"
12933 if test "x$ac_cv_func_dladdr" = x""yes; then :
12934   cat >>confdefs.h <<_ACEOF
12935 #define HAVE_DLADDR 1
12936 _ACEOF
12937
12938 fi
12939 done
12940
12941 LIBS="$ac_wine_check_funcs_save_LIBS"
12942
12943 if test "$ac_cv_func_poll" = no
12944 then
12945     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for poll in -lpoll" >&5
12946 $as_echo_n "checking for poll in -lpoll... " >&6; }
12947 if test "${ac_cv_lib_poll_poll+set}" = set; then :
12948   $as_echo_n "(cached) " >&6
12949 else
12950   ac_check_lib_save_LIBS=$LIBS
12951 LIBS="-lpoll  $LIBS"
12952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12953 /* end confdefs.h.  */
12954
12955 /* Override any GCC internal prototype to avoid an error.
12956    Use char because int might match the return type of a GCC
12957    builtin and then its argument prototype would still apply.  */
12958 #ifdef __cplusplus
12959 extern "C"
12960 #endif
12961 char poll ();
12962 int
12963 main ()
12964 {
12965 return poll ();
12966   ;
12967   return 0;
12968 }
12969 _ACEOF
12970 if ac_fn_c_try_link "$LINENO"; then :
12971   ac_cv_lib_poll_poll=yes
12972 else
12973   ac_cv_lib_poll_poll=no
12974 fi
12975 rm -f core conftest.err conftest.$ac_objext \
12976     conftest$ac_exeext conftest.$ac_ext
12977 LIBS=$ac_check_lib_save_LIBS
12978 fi
12979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_poll_poll" >&5
12980 $as_echo "$ac_cv_lib_poll_poll" >&6; }
12981 if test "x$ac_cv_lib_poll_poll" = x""yes; then :
12982   $as_echo "#define HAVE_POLL 1" >>confdefs.h
12983  LIBPOLL="-lpoll"
12984
12985 fi
12986
12987 fi
12988
12989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
12990 $as_echo_n "checking for library containing gethostbyname... " >&6; }
12991 if test "${ac_cv_search_gethostbyname+set}" = set; then :
12992   $as_echo_n "(cached) " >&6
12993 else
12994   ac_func_search_save_LIBS=$LIBS
12995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12996 /* end confdefs.h.  */
12997
12998 /* Override any GCC internal prototype to avoid an error.
12999    Use char because int might match the return type of a GCC
13000    builtin and then its argument prototype would still apply.  */
13001 #ifdef __cplusplus
13002 extern "C"
13003 #endif
13004 char gethostbyname ();
13005 int
13006 main ()
13007 {
13008 return gethostbyname ();
13009   ;
13010   return 0;
13011 }
13012 _ACEOF
13013 for ac_lib in '' nsl; do
13014   if test -z "$ac_lib"; then
13015     ac_res="none required"
13016   else
13017     ac_res=-l$ac_lib
13018     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13019   fi
13020   if ac_fn_c_try_link "$LINENO"; then :
13021   ac_cv_search_gethostbyname=$ac_res
13022 fi
13023 rm -f core conftest.err conftest.$ac_objext \
13024     conftest$ac_exeext
13025   if test "${ac_cv_search_gethostbyname+set}" = set; then :
13026   break
13027 fi
13028 done
13029 if test "${ac_cv_search_gethostbyname+set}" = set; then :
13030
13031 else
13032   ac_cv_search_gethostbyname=no
13033 fi
13034 rm conftest.$ac_ext
13035 LIBS=$ac_func_search_save_LIBS
13036 fi
13037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
13038 $as_echo "$ac_cv_search_gethostbyname" >&6; }
13039 ac_res=$ac_cv_search_gethostbyname
13040 if test "$ac_res" != no; then :
13041   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13042
13043 fi
13044
13045
13046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5
13047 $as_echo_n "checking for library containing connect... " >&6; }
13048 if test "${ac_cv_search_connect+set}" = set; then :
13049   $as_echo_n "(cached) " >&6
13050 else
13051   ac_func_search_save_LIBS=$LIBS
13052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13053 /* end confdefs.h.  */
13054
13055 /* Override any GCC internal prototype to avoid an error.
13056    Use char because int might match the return type of a GCC
13057    builtin and then its argument prototype would still apply.  */
13058 #ifdef __cplusplus
13059 extern "C"
13060 #endif
13061 char connect ();
13062 int
13063 main ()
13064 {
13065 return connect ();
13066   ;
13067   return 0;
13068 }
13069 _ACEOF
13070 for ac_lib in '' socket; do
13071   if test -z "$ac_lib"; then
13072     ac_res="none required"
13073   else
13074     ac_res=-l$ac_lib
13075     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13076   fi
13077   if ac_fn_c_try_link "$LINENO"; then :
13078   ac_cv_search_connect=$ac_res
13079 fi
13080 rm -f core conftest.err conftest.$ac_objext \
13081     conftest$ac_exeext
13082   if test "${ac_cv_search_connect+set}" = set; then :
13083   break
13084 fi
13085 done
13086 if test "${ac_cv_search_connect+set}" = set; then :
13087
13088 else
13089   ac_cv_search_connect=no
13090 fi
13091 rm conftest.$ac_ext
13092 LIBS=$ac_func_search_save_LIBS
13093 fi
13094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5
13095 $as_echo "$ac_cv_search_connect" >&6; }
13096 ac_res=$ac_cv_search_connect
13097 if test "$ac_res" != no; then :
13098   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13099
13100 fi
13101
13102
13103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
13104 $as_echo_n "checking for library containing inet_aton... " >&6; }
13105 if test "${ac_cv_search_inet_aton+set}" = set; then :
13106   $as_echo_n "(cached) " >&6
13107 else
13108   ac_func_search_save_LIBS=$LIBS
13109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13110 /* end confdefs.h.  */
13111
13112 /* Override any GCC internal prototype to avoid an error.
13113    Use char because int might match the return type of a GCC
13114    builtin and then its argument prototype would still apply.  */
13115 #ifdef __cplusplus
13116 extern "C"
13117 #endif
13118 char inet_aton ();
13119 int
13120 main ()
13121 {
13122 return inet_aton ();
13123   ;
13124   return 0;
13125 }
13126 _ACEOF
13127 for ac_lib in '' resolv; do
13128   if test -z "$ac_lib"; then
13129     ac_res="none required"
13130   else
13131     ac_res=-l$ac_lib
13132     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13133   fi
13134   if ac_fn_c_try_link "$LINENO"; then :
13135   ac_cv_search_inet_aton=$ac_res
13136 fi
13137 rm -f core conftest.err conftest.$ac_objext \
13138     conftest$ac_exeext
13139   if test "${ac_cv_search_inet_aton+set}" = set; then :
13140   break
13141 fi
13142 done
13143 if test "${ac_cv_search_inet_aton+set}" = set; then :
13144
13145 else
13146   ac_cv_search_inet_aton=no
13147 fi
13148 rm conftest.$ac_ext
13149 LIBS=$ac_func_search_save_LIBS
13150 fi
13151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
13152 $as_echo "$ac_cv_search_inet_aton" >&6; }
13153 ac_res=$ac_cv_search_inet_aton
13154 if test "$ac_res" != no; then :
13155   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13156
13157 fi
13158
13159
13160 for ac_func in \
13161         getaddrinfo \
13162         getnameinfo \
13163         getnetbyname \
13164         getprotobyname \
13165         getprotobynumber \
13166         getservbyport \
13167         inet_network \
13168         inet_ntop \
13169         inet_pton \
13170         sendmsg \
13171         socketpair \
13172
13173 do :
13174   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13175 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13176 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13177   cat >>confdefs.h <<_ACEOF
13178 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13179 _ACEOF
13180
13181 fi
13182 done
13183
13184
13185 LDAPLIBS=""
13186
13187 if test "$ac_cv_header_ldap_h" = "yes" -a "$ac_cv_header_lber_h" = "yes"
13188 then
13189     ac_fn_c_check_type "$LINENO" "LDAPSortKey" "ac_cv_type_LDAPSortKey" "#include <ldap.h>
13190 "
13191 if test "x$ac_cv_type_LDAPSortKey" = x""yes; then :
13192   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap_r" >&5
13193 $as_echo_n "checking for ldap_initialize in -lldap_r... " >&6; }
13194 if test "${ac_cv_lib_ldap_r_ldap_initialize+set}" = set; then :
13195   $as_echo_n "(cached) " >&6
13196 else
13197   ac_check_lib_save_LIBS=$LIBS
13198 LIBS="-lldap_r $LIBPTHREAD $LIBS"
13199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13200 /* end confdefs.h.  */
13201
13202 /* Override any GCC internal prototype to avoid an error.
13203    Use char because int might match the return type of a GCC
13204    builtin and then its argument prototype would still apply.  */
13205 #ifdef __cplusplus
13206 extern "C"
13207 #endif
13208 char ldap_initialize ();
13209 int
13210 main ()
13211 {
13212 return ldap_initialize ();
13213   ;
13214   return 0;
13215 }
13216 _ACEOF
13217 if ac_fn_c_try_link "$LINENO"; then :
13218   ac_cv_lib_ldap_r_ldap_initialize=yes
13219 else
13220   ac_cv_lib_ldap_r_ldap_initialize=no
13221 fi
13222 rm -f core conftest.err conftest.$ac_objext \
13223     conftest$ac_exeext conftest.$ac_ext
13224 LIBS=$ac_check_lib_save_LIBS
13225 fi
13226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_r_ldap_initialize" >&5
13227 $as_echo "$ac_cv_lib_ldap_r_ldap_initialize" >&6; }
13228 if test "x$ac_cv_lib_ldap_r_ldap_initialize" = x""yes; then :
13229   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_init in -llber" >&5
13230 $as_echo_n "checking for ber_init in -llber... " >&6; }
13231 if test "${ac_cv_lib_lber_ber_init+set}" = set; then :
13232   $as_echo_n "(cached) " >&6
13233 else
13234   ac_check_lib_save_LIBS=$LIBS
13235 LIBS="-llber $LIBPTHREAD $LIBS"
13236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13237 /* end confdefs.h.  */
13238
13239 /* Override any GCC internal prototype to avoid an error.
13240    Use char because int might match the return type of a GCC
13241    builtin and then its argument prototype would still apply.  */
13242 #ifdef __cplusplus
13243 extern "C"
13244 #endif
13245 char ber_init ();
13246 int
13247 main ()
13248 {
13249 return ber_init ();
13250   ;
13251   return 0;
13252 }
13253 _ACEOF
13254 if ac_fn_c_try_link "$LINENO"; then :
13255   ac_cv_lib_lber_ber_init=yes
13256 else
13257   ac_cv_lib_lber_ber_init=no
13258 fi
13259 rm -f core conftest.err conftest.$ac_objext \
13260     conftest$ac_exeext conftest.$ac_ext
13261 LIBS=$ac_check_lib_save_LIBS
13262 fi
13263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_init" >&5
13264 $as_echo "$ac_cv_lib_lber_ber_init" >&6; }
13265 if test "x$ac_cv_lib_lber_ber_init" = x""yes; then :
13266
13267 $as_echo "#define HAVE_LDAP 1" >>confdefs.h
13268
13269                  LDAPLIBS="-lldap_r -llber"
13270 fi
13271
13272 fi
13273
13274 fi
13275
13276     ac_wine_check_funcs_save_LIBS="$LIBS"
13277 LIBS="$LIBS $LDAPLIBS $LIBPTHREAD"
13278 for ac_func in \
13279         ldap_count_references \
13280         ldap_first_reference \
13281         ldap_next_reference \
13282         ldap_parse_reference \
13283         ldap_parse_sort_control \
13284         ldap_parse_sortresponse_control \
13285         ldap_parse_vlv_control \
13286         ldap_parse_vlvresponse_control
13287 do :
13288   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13289 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13290 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13291   cat >>confdefs.h <<_ACEOF
13292 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13293 _ACEOF
13294
13295 fi
13296 done
13297
13298 LIBS="$ac_wine_check_funcs_save_LIBS"
13299 fi
13300 if test "x$LDAPLIBS" = "x"; then :
13301   case "x$with_ldap" in
13302   x)   as_fn_append wine_notices "|libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported." ;;
13303   xno) ;;
13304   *)   as_fn_error $? "libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported.
13305 This is an error since --with-ldap was requested." "$LINENO" 5  ;;
13306 esac
13307 fi
13308
13309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir takes only one argument" >&5
13310 $as_echo_n "checking whether mkdir takes only one argument... " >&6; }
13311 if test "${wine_cv_one_arg_mkdir+set}" = set; then :
13312   $as_echo_n "(cached) " >&6
13313 else
13314   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13315 /* end confdefs.h.  */
13316 #include <sys/stat.h>
13317 int
13318 main ()
13319 {
13320 mkdir("foo");
13321   ;
13322   return 0;
13323 }
13324 _ACEOF
13325 if ac_fn_c_try_compile "$LINENO"; then :
13326   wine_cv_one_arg_mkdir=yes
13327 else
13328   wine_cv_one_arg_mkdir=no
13329 fi
13330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13331 fi
13332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_one_arg_mkdir" >&5
13333 $as_echo "$wine_cv_one_arg_mkdir" >&6; }
13334 if test "$wine_cv_one_arg_mkdir" = "yes"
13335 then
13336
13337 $as_echo "#define HAVE_ONE_ARG_MKDIR 1" >>confdefs.h
13338
13339 fi
13340
13341
13342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13343 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13344 if test "${ac_cv_c_const+set}" = set; then :
13345   $as_echo_n "(cached) " >&6
13346 else
13347   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13348 /* end confdefs.h.  */
13349
13350 int
13351 main ()
13352 {
13353 /* FIXME: Include the comments suggested by Paul. */
13354 #ifndef __cplusplus
13355   /* Ultrix mips cc rejects this.  */
13356   typedef int charset[2];
13357   const charset cs;
13358   /* SunOS 4.1.1 cc rejects this.  */
13359   char const *const *pcpcc;
13360   char **ppc;
13361   /* NEC SVR4.0.2 mips cc rejects this.  */
13362   struct point {int x, y;};
13363   static struct point const zero = {0,0};
13364   /* AIX XL C 1.02.0.0 rejects this.
13365      It does not let you subtract one const X* pointer from another in
13366      an arm of an if-expression whose if-part is not a constant
13367      expression */
13368   const char *g = "string";
13369   pcpcc = &g + (g ? g-g : 0);
13370   /* HPUX 7.0 cc rejects these. */
13371   ++pcpcc;
13372   ppc = (char**) pcpcc;
13373   pcpcc = (char const *const *) ppc;
13374   { /* SCO 3.2v4 cc rejects this.  */
13375     char *t;
13376     char const *s = 0 ? (char *) 0 : (char const *) 0;
13377
13378     *t++ = 0;
13379     if (s) return 0;
13380   }
13381   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
13382     int x[] = {25, 17};
13383     const int *foo = &x[0];
13384     ++foo;
13385   }
13386   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13387     typedef const int *iptr;
13388     iptr p = 0;
13389     ++p;
13390   }
13391   { /* AIX XL C 1.02.0.0 rejects this saying
13392        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13393     struct s { int j; const int *ap[3]; };
13394     struct s *b; b->j = 5;
13395   }
13396   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13397     const int foo = 10;
13398     if (!foo) return 0;
13399   }
13400   return !cs[0] && !zero.x;
13401 #endif
13402
13403   ;
13404   return 0;
13405 }
13406 _ACEOF
13407 if ac_fn_c_try_compile "$LINENO"; then :
13408   ac_cv_c_const=yes
13409 else
13410   ac_cv_c_const=no
13411 fi
13412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13413 fi
13414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13415 $as_echo "$ac_cv_c_const" >&6; }
13416 if test $ac_cv_c_const = no; then
13417
13418 $as_echo "#define const /**/" >>confdefs.h
13419
13420 fi
13421
13422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13423 $as_echo_n "checking for inline... " >&6; }
13424 if test "${ac_cv_c_inline+set}" = set; then :
13425   $as_echo_n "(cached) " >&6
13426 else
13427   ac_cv_c_inline=no
13428 for ac_kw in inline __inline__ __inline; do
13429   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13430 /* end confdefs.h.  */
13431 #ifndef __cplusplus
13432 typedef int foo_t;
13433 static $ac_kw foo_t static_foo () {return 0; }
13434 $ac_kw foo_t foo () {return 0; }
13435 #endif
13436
13437 _ACEOF
13438 if ac_fn_c_try_compile "$LINENO"; then :
13439   ac_cv_c_inline=$ac_kw
13440 fi
13441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13442   test "$ac_cv_c_inline" != no && break
13443 done
13444
13445 fi
13446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13447 $as_echo "$ac_cv_c_inline" >&6; }
13448
13449 case $ac_cv_c_inline in
13450   inline | yes) ;;
13451   *)
13452     case $ac_cv_c_inline in
13453       no) ac_val=;;
13454       *) ac_val=$ac_cv_c_inline;;
13455     esac
13456     cat >>confdefs.h <<_ACEOF
13457 #ifndef __cplusplus
13458 #define inline $ac_val
13459 #endif
13460 _ACEOF
13461     ;;
13462 esac
13463
13464 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
13465 if test "x$ac_cv_type_mode_t" = x""yes; then :
13466
13467 cat >>confdefs.h <<_ACEOF
13468 #define HAVE_MODE_T 1
13469 _ACEOF
13470
13471
13472 fi
13473 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
13474 if test "x$ac_cv_type_off_t" = x""yes; then :
13475
13476 cat >>confdefs.h <<_ACEOF
13477 #define HAVE_OFF_T 1
13478 _ACEOF
13479
13480
13481 fi
13482 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13483 if test "x$ac_cv_type_pid_t" = x""yes; then :
13484
13485 cat >>confdefs.h <<_ACEOF
13486 #define HAVE_PID_T 1
13487 _ACEOF
13488
13489
13490 fi
13491 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13492 if test "x$ac_cv_type_size_t" = x""yes; then :
13493
13494 cat >>confdefs.h <<_ACEOF
13495 #define HAVE_SIZE_T 1
13496 _ACEOF
13497
13498
13499 fi
13500 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
13501 if test "x$ac_cv_type_ssize_t" = x""yes; then :
13502
13503 cat >>confdefs.h <<_ACEOF
13504 #define HAVE_SSIZE_T 1
13505 _ACEOF
13506
13507
13508 fi
13509 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
13510 if test "x$ac_cv_type_long_long" = x""yes; then :
13511
13512 cat >>confdefs.h <<_ACEOF
13513 #define HAVE_LONG_LONG 1
13514 _ACEOF
13515
13516
13517 fi
13518 ac_fn_c_check_type "$LINENO" "fsblkcnt_t" "ac_cv_type_fsblkcnt_t" "$ac_includes_default"
13519 if test "x$ac_cv_type_fsblkcnt_t" = x""yes; then :
13520
13521 cat >>confdefs.h <<_ACEOF
13522 #define HAVE_FSBLKCNT_T 1
13523 _ACEOF
13524
13525
13526 fi
13527 ac_fn_c_check_type "$LINENO" "fsfilcnt_t" "ac_cv_type_fsfilcnt_t" "$ac_includes_default"
13528 if test "x$ac_cv_type_fsfilcnt_t" = x""yes; then :
13529
13530 cat >>confdefs.h <<_ACEOF
13531 #define HAVE_FSFILCNT_T 1
13532 _ACEOF
13533
13534
13535 fi
13536
13537 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "#include <sys/types.h>
13538 #include <signal.h>
13539 "
13540 if test "x$ac_cv_type_sigset_t" = x""yes; then :
13541
13542 cat >>confdefs.h <<_ACEOF
13543 #define HAVE_SIGSET_T 1
13544 _ACEOF
13545
13546
13547 fi
13548
13549 ac_fn_c_check_type "$LINENO" "request_sense" "ac_cv_type_request_sense" "#include <linux/cdrom.h>
13550 "
13551 if test "x$ac_cv_type_request_sense" = x""yes; then :
13552
13553 cat >>confdefs.h <<_ACEOF
13554 #define HAVE_REQUEST_SENSE 1
13555 _ACEOF
13556
13557
13558 fi
13559
13560
13561 ac_fn_c_check_type "$LINENO" "struct xinpgen" "ac_cv_type_struct_xinpgen" "#include <sys/types.h>
13562 #ifdef HAVE_SYS_SOCKET_H
13563 #include <sys/socket.h>
13564 #endif
13565 #ifdef HAVE_SYS_SOCKETVAR_H
13566 #include <sys/socketvar.h>
13567 #endif
13568 #ifdef HAVE_NET_ROUTE_H
13569 #include <net/route.h>
13570 #endif
13571 #ifdef HAVE_NETINET_IN_H
13572 #include <netinet/in.h>
13573 #endif
13574 #ifdef HAVE_NETINET_IN_SYSTM_H
13575 #include <netinet/in_systm.h>
13576 #endif
13577 #ifdef HAVE_NETINET_IP_H
13578 #include <netinet/ip.h>
13579 #endif
13580 #ifdef HAVE_NETINET_IN_PCB_H
13581 #include <netinet/in_pcb.h>
13582 #endif
13583 "
13584 if test "x$ac_cv_type_struct_xinpgen" = x""yes; then :
13585
13586 cat >>confdefs.h <<_ACEOF
13587 #define HAVE_STRUCT_XINPGEN 1
13588 _ACEOF
13589
13590
13591 fi
13592
13593
13594 ac_fn_c_check_member "$LINENO" "struct ff_effect" "direction" "ac_cv_member_struct_ff_effect_direction" "#ifdef HAVE_LINUX_INPUT_H
13595 #include <linux/input.h>
13596 #endif
13597 "
13598 if test "x$ac_cv_member_struct_ff_effect_direction" = x""yes; then :
13599
13600 cat >>confdefs.h <<_ACEOF
13601 #define HAVE_STRUCT_FF_EFFECT_DIRECTION 1
13602 _ACEOF
13603
13604
13605 fi
13606
13607
13608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigaddset" >&5
13609 $as_echo_n "checking for sigaddset... " >&6; }
13610 if test "${wine_cv_have_sigaddset+set}" = set; then :
13611   $as_echo_n "(cached) " >&6
13612 else
13613   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13614 /* end confdefs.h.  */
13615 #include <signal.h>
13616 int
13617 main ()
13618 {
13619 sigset_t set; sigaddset(&set,SIGTERM);
13620   ;
13621   return 0;
13622 }
13623 _ACEOF
13624 if ac_fn_c_try_link "$LINENO"; then :
13625   wine_cv_have_sigaddset=yes
13626 else
13627   wine_cv_have_sigaddset=no
13628 fi
13629 rm -f core conftest.err conftest.$ac_objext \
13630     conftest$ac_exeext conftest.$ac_ext
13631 fi
13632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sigaddset" >&5
13633 $as_echo "$wine_cv_have_sigaddset" >&6; }
13634 if test "$wine_cv_have_sigaddset" = "yes"
13635 then
13636
13637 $as_echo "#define HAVE_SIGADDSET 1" >>confdefs.h
13638
13639 fi
13640
13641
13642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
13643 $as_echo_n "checking whether we can use re-entrant gethostbyname_r Linux style... " >&6; }
13644 if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then :
13645   $as_echo_n "(cached) " >&6
13646 else
13647   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13648 /* end confdefs.h.  */
13649 #include <netdb.h>
13650 int
13651 main ()
13652 {
13653
13654     char *name=0;
13655     struct hostent he;
13656     struct hostent *result;
13657     char *buf=0;
13658     int bufsize=0;
13659     int res,errnr;
13660     char *addr=0;
13661     int addrlen=0;
13662     int addrtype=0;
13663     res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
13664     res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
13665
13666   ;
13667   return 0;
13668 }
13669 _ACEOF
13670 if ac_fn_c_try_link "$LINENO"; then :
13671   wine_cv_linux_gethostbyname_r_6=yes
13672 else
13673   wine_cv_linux_gethostbyname_r_6=no
13674
13675 fi
13676 rm -f core conftest.err conftest.$ac_objext \
13677     conftest$ac_exeext conftest.$ac_ext
13678
13679 fi
13680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_gethostbyname_r_6" >&5
13681 $as_echo "$wine_cv_linux_gethostbyname_r_6" >&6; }
13682    if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
13683    then
13684
13685 $as_echo "#define HAVE_LINUX_GETHOSTBYNAME_R_6 1" >>confdefs.h
13686
13687    fi
13688
13689 if test "$ac_cv_header_linux_joystick_h" = "yes"
13690 then
13691    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
13692 $as_echo_n "checking whether linux/joystick.h uses the Linux 2.2+ API... " >&6; }
13693 if test "${wine_cv_linux_joystick_22_api+set}" = set; then :
13694   $as_echo_n "(cached) " >&6
13695 else
13696   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13697 /* end confdefs.h.  */
13698
13699         #include <sys/ioctl.h>
13700         #include <sys/types.h>
13701         #include <linux/joystick.h>
13702
13703         struct js_event blub;
13704         #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
13705         #error "no 2.2 header"
13706         #endif
13707
13708 int
13709 main ()
13710 {
13711 /*empty*/
13712   ;
13713   return 0;
13714 }
13715 _ACEOF
13716 if ac_fn_c_try_compile "$LINENO"; then :
13717   wine_cv_linux_joystick_22_api=yes
13718 else
13719   wine_cv_linux_joystick_22_api=no
13720 fi
13721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13722
13723 fi
13724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_joystick_22_api" >&5
13725 $as_echo "$wine_cv_linux_joystick_22_api" >&6; }
13726    if test "$wine_cv_linux_joystick_22_api" = "yes"
13727    then
13728
13729 $as_echo "#define HAVE_LINUX_22_JOYSTICK_API 1" >>confdefs.h
13730
13731    fi
13732 fi
13733
13734
13735 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bfree" "ac_cv_member_struct_statfs_f_bfree" "#include <sys/types.h>
13736 #ifdef HAVE_SYS_PARAM_H
13737 # include <sys/param.h>
13738 #endif
13739 #ifdef HAVE_SYS_MOUNT_H
13740 # include <sys/mount.h>
13741 #endif
13742 #ifdef HAVE_SYS_VFS_H
13743 # include <sys/vfs.h>
13744 #endif
13745 #ifdef HAVE_SYS_STATFS_H
13746 # include <sys/statfs.h>
13747 #endif
13748 "
13749 if test "x$ac_cv_member_struct_statfs_f_bfree" = x""yes; then :
13750
13751 cat >>confdefs.h <<_ACEOF
13752 #define HAVE_STRUCT_STATFS_F_BFREE 1
13753 _ACEOF
13754
13755
13756 fi
13757 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bavail" "ac_cv_member_struct_statfs_f_bavail" "#include <sys/types.h>
13758 #ifdef HAVE_SYS_PARAM_H
13759 # include <sys/param.h>
13760 #endif
13761 #ifdef HAVE_SYS_MOUNT_H
13762 # include <sys/mount.h>
13763 #endif
13764 #ifdef HAVE_SYS_VFS_H
13765 # include <sys/vfs.h>
13766 #endif
13767 #ifdef HAVE_SYS_STATFS_H
13768 # include <sys/statfs.h>
13769 #endif
13770 "
13771 if test "x$ac_cv_member_struct_statfs_f_bavail" = x""yes; then :
13772
13773 cat >>confdefs.h <<_ACEOF
13774 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
13775 _ACEOF
13776
13777
13778 fi
13779 ac_fn_c_check_member "$LINENO" "struct statfs" "f_frsize" "ac_cv_member_struct_statfs_f_frsize" "#include <sys/types.h>
13780 #ifdef HAVE_SYS_PARAM_H
13781 # include <sys/param.h>
13782 #endif
13783 #ifdef HAVE_SYS_MOUNT_H
13784 # include <sys/mount.h>
13785 #endif
13786 #ifdef HAVE_SYS_VFS_H
13787 # include <sys/vfs.h>
13788 #endif
13789 #ifdef HAVE_SYS_STATFS_H
13790 # include <sys/statfs.h>
13791 #endif
13792 "
13793 if test "x$ac_cv_member_struct_statfs_f_frsize" = x""yes; then :
13794
13795 cat >>confdefs.h <<_ACEOF
13796 #define HAVE_STRUCT_STATFS_F_FRSIZE 1
13797 _ACEOF
13798
13799
13800 fi
13801 ac_fn_c_check_member "$LINENO" "struct statfs" "f_ffree" "ac_cv_member_struct_statfs_f_ffree" "#include <sys/types.h>
13802 #ifdef HAVE_SYS_PARAM_H
13803 # include <sys/param.h>
13804 #endif
13805 #ifdef HAVE_SYS_MOUNT_H
13806 # include <sys/mount.h>
13807 #endif
13808 #ifdef HAVE_SYS_VFS_H
13809 # include <sys/vfs.h>
13810 #endif
13811 #ifdef HAVE_SYS_STATFS_H
13812 # include <sys/statfs.h>
13813 #endif
13814 "
13815 if test "x$ac_cv_member_struct_statfs_f_ffree" = x""yes; then :
13816
13817 cat >>confdefs.h <<_ACEOF
13818 #define HAVE_STRUCT_STATFS_F_FFREE 1
13819 _ACEOF
13820
13821
13822 fi
13823 ac_fn_c_check_member "$LINENO" "struct statfs" "f_favail" "ac_cv_member_struct_statfs_f_favail" "#include <sys/types.h>
13824 #ifdef HAVE_SYS_PARAM_H
13825 # include <sys/param.h>
13826 #endif
13827 #ifdef HAVE_SYS_MOUNT_H
13828 # include <sys/mount.h>
13829 #endif
13830 #ifdef HAVE_SYS_VFS_H
13831 # include <sys/vfs.h>
13832 #endif
13833 #ifdef HAVE_SYS_STATFS_H
13834 # include <sys/statfs.h>
13835 #endif
13836 "
13837 if test "x$ac_cv_member_struct_statfs_f_favail" = x""yes; then :
13838
13839 cat >>confdefs.h <<_ACEOF
13840 #define HAVE_STRUCT_STATFS_F_FAVAIL 1
13841 _ACEOF
13842
13843
13844 fi
13845 ac_fn_c_check_member "$LINENO" "struct statfs" "f_namelen" "ac_cv_member_struct_statfs_f_namelen" "#include <sys/types.h>
13846 #ifdef HAVE_SYS_PARAM_H
13847 # include <sys/param.h>
13848 #endif
13849 #ifdef HAVE_SYS_MOUNT_H
13850 # include <sys/mount.h>
13851 #endif
13852 #ifdef HAVE_SYS_VFS_H
13853 # include <sys/vfs.h>
13854 #endif
13855 #ifdef HAVE_SYS_STATFS_H
13856 # include <sys/statfs.h>
13857 #endif
13858 "
13859 if test "x$ac_cv_member_struct_statfs_f_namelen" = x""yes; then :
13860
13861 cat >>confdefs.h <<_ACEOF
13862 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
13863 _ACEOF
13864
13865
13866 fi
13867
13868
13869 ac_fn_c_check_member "$LINENO" "struct statvfs" "f_blocks" "ac_cv_member_struct_statvfs_f_blocks" "#ifdef HAVE_SYS_STATVFS_H
13870 #include <sys/statvfs.h>
13871 #endif
13872 "
13873 if test "x$ac_cv_member_struct_statvfs_f_blocks" = x""yes; then :
13874
13875 cat >>confdefs.h <<_ACEOF
13876 #define HAVE_STRUCT_STATVFS_F_BLOCKS 1
13877 _ACEOF
13878
13879
13880 fi
13881
13882
13883 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_accrights" "ac_cv_member_struct_msghdr_msg_accrights" "#include <sys/types.h>
13884 #ifdef HAVE_SYS_SOCKET_H
13885 # include <sys/socket.h>
13886 #endif
13887 #ifdef HAVE_SYS_UN_H
13888 # include <sys/un.h>
13889 #endif
13890 "
13891 if test "x$ac_cv_member_struct_msghdr_msg_accrights" = x""yes; then :
13892
13893 cat >>confdefs.h <<_ACEOF
13894 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
13895 _ACEOF
13896
13897
13898 fi
13899 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
13900 #ifdef HAVE_SYS_SOCKET_H
13901 # include <sys/socket.h>
13902 #endif
13903 #ifdef HAVE_SYS_UN_H
13904 # include <sys/un.h>
13905 #endif
13906 "
13907 if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then :
13908
13909 cat >>confdefs.h <<_ACEOF
13910 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
13911 _ACEOF
13912
13913
13914 fi
13915 ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" "#include <sys/types.h>
13916 #ifdef HAVE_SYS_SOCKET_H
13917 # include <sys/socket.h>
13918 #endif
13919 #ifdef HAVE_SYS_UN_H
13920 # include <sys/un.h>
13921 #endif
13922 "
13923 if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = x""yes; then :
13924
13925 cat >>confdefs.h <<_ACEOF
13926 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
13927 _ACEOF
13928
13929
13930 fi
13931
13932
13933 ac_fn_c_check_member "$LINENO" "scsireq_t" "cmd" "ac_cv_member_scsireq_t_cmd" "#include <sys/types.h>
13934 #ifdef HAVE_SCSI_SG_H
13935 #include <scsi/sg.h>
13936 #endif
13937 "
13938 if test "x$ac_cv_member_scsireq_t_cmd" = x""yes; then :
13939
13940 cat >>confdefs.h <<_ACEOF
13941 #define HAVE_SCSIREQ_T_CMD 1
13942 _ACEOF
13943
13944
13945 fi
13946 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>
13947 #ifdef HAVE_SCSI_SG_H
13948 #include <scsi/sg.h>
13949 #endif
13950 "
13951 if test "x$ac_cv_member_sg_io_hdr_t_interface_id" = x""yes; then :
13952
13953 cat >>confdefs.h <<_ACEOF
13954 #define HAVE_SG_IO_HDR_T_INTERFACE_ID 1
13955 _ACEOF
13956
13957
13958 fi
13959
13960
13961 ac_fn_c_check_member "$LINENO" "siginfo_t" "si_fd" "ac_cv_member_siginfo_t_si_fd" "#include <signal.h>
13962 "
13963 if test "x$ac_cv_member_siginfo_t_si_fd" = x""yes; then :
13964
13965 cat >>confdefs.h <<_ACEOF
13966 #define HAVE_SIGINFO_T_SI_FD 1
13967 _ACEOF
13968
13969
13970 fi
13971
13972
13973 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blksiz" "ac_cv_member_struct_mtget_mt_blksiz" "#include <sys/types.h>
13974 #ifdef HAVE_SYS_MTIO_H
13975 #include <sys/mtio.h>
13976 #endif
13977 "
13978 if test "x$ac_cv_member_struct_mtget_mt_blksiz" = x""yes; then :
13979
13980 cat >>confdefs.h <<_ACEOF
13981 #define HAVE_STRUCT_MTGET_MT_BLKSIZ 1
13982 _ACEOF
13983
13984
13985 fi
13986 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_gstat" "ac_cv_member_struct_mtget_mt_gstat" "#include <sys/types.h>
13987 #ifdef HAVE_SYS_MTIO_H
13988 #include <sys/mtio.h>
13989 #endif
13990 "
13991 if test "x$ac_cv_member_struct_mtget_mt_gstat" = x""yes; then :
13992
13993 cat >>confdefs.h <<_ACEOF
13994 #define HAVE_STRUCT_MTGET_MT_GSTAT 1
13995 _ACEOF
13996
13997
13998 fi
13999 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blkno" "ac_cv_member_struct_mtget_mt_blkno" "#include <sys/types.h>
14000 #ifdef HAVE_SYS_MTIO_H
14001 #include <sys/mtio.h>
14002 #endif
14003 "
14004 if test "x$ac_cv_member_struct_mtget_mt_blkno" = x""yes; then :
14005
14006 cat >>confdefs.h <<_ACEOF
14007 #define HAVE_STRUCT_MTGET_MT_BLKNO 1
14008 _ACEOF
14009
14010
14011 fi
14012
14013
14014 ac_fn_c_check_member "$LINENO" "struct option" "name" "ac_cv_member_struct_option_name" "#ifdef HAVE_GETOPT_H
14015 #include <getopt.h>
14016 #endif
14017 "
14018 if test "x$ac_cv_member_struct_option_name" = x""yes; then :
14019
14020 cat >>confdefs.h <<_ACEOF
14021 #define HAVE_STRUCT_OPTION_NAME 1
14022 _ACEOF
14023
14024
14025 fi
14026
14027
14028 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
14029 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
14030
14031 cat >>confdefs.h <<_ACEOF
14032 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
14033 _ACEOF
14034
14035
14036 fi
14037 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
14038 if test "x$ac_cv_member_struct_stat_st_mtim" = x""yes; then :
14039
14040 cat >>confdefs.h <<_ACEOF
14041 #define HAVE_STRUCT_STAT_ST_MTIM 1
14042 _ACEOF
14043
14044
14045 fi
14046 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctim" "ac_cv_member_struct_stat_st_ctim" "$ac_includes_default"
14047 if test "x$ac_cv_member_struct_stat_st_ctim" = x""yes; then :
14048
14049 cat >>confdefs.h <<_ACEOF
14050 #define HAVE_STRUCT_STAT_ST_CTIM 1
14051 _ACEOF
14052
14053
14054 fi
14055 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
14056 if test "x$ac_cv_member_struct_stat_st_atim" = x""yes; then :
14057
14058 cat >>confdefs.h <<_ACEOF
14059 #define HAVE_STRUCT_STAT_ST_ATIM 1
14060 _ACEOF
14061
14062
14063 fi
14064
14065
14066 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
14067 #include <sys/types.h>
14068 #endif
14069 #ifdef HAVE_NETINET_IN_H
14070 #include <netinet/in.h>
14071 #endif
14072 "
14073 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = x""yes; then :
14074
14075 cat >>confdefs.h <<_ACEOF
14076 #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
14077 _ACEOF
14078
14079
14080 fi
14081
14082
14083 ac_fn_c_check_member "$LINENO" "ns_msg" "_msg_ptr" "ac_cv_member_ns_msg__msg_ptr" "#ifdef HAVE_SYS_TYPES_H
14084 #include <sys/types.h>
14085 #endif
14086 #ifdef HAVE_NETINET_IN_H
14087 # include <netinet/in.h>
14088 #endif
14089 #ifdef HAVE_ARPA_NAMESER_H
14090 # include <arpa/nameser.h>
14091 #endif
14092 "
14093 if test "x$ac_cv_member_ns_msg__msg_ptr" = x""yes; then :
14094
14095 cat >>confdefs.h <<_ACEOF
14096 #define HAVE_NS_MSG__MSG_PTR 1
14097 _ACEOF
14098
14099
14100 fi
14101
14102
14103 ac_fn_c_check_member "$LINENO" "struct icmpstat" "icps_outhist" "ac_cv_member_struct_icmpstat_icps_outhist" "#ifdef HAVE_SYS_TYPES_H
14104 #include <sys/types.h>
14105 #endif
14106 #ifdef HAVE_ALIAS_H
14107 #include <alias.h>
14108 #endif
14109 #ifdef HAVE_SYS_SOCKET_H
14110 #include <sys/socket.h>
14111 #endif
14112 #ifdef HAVE_SYS_SOCKETVAR_H
14113 #include <sys/socketvar.h>
14114 #endif
14115 #ifdef HAVE_SYS_TIMEOUT_H
14116 #include <sys/timeout.h>
14117 #endif
14118 #ifdef HAVE_NETINET_IN_H
14119 #include <netinet/in.h>
14120 #endif
14121 #ifdef HAVE_NETINET_IN_SYSTM_H
14122 #include <netinet/in_systm.h>
14123 #endif
14124 #ifdef HAVE_NETINET_IP_H
14125 #include <netinet/ip.h>
14126 #endif
14127 #ifdef HAVE_NETINET_IP_VAR_H
14128 #include <netinet/ip_var.h>
14129 #endif
14130 #ifdef HAVE_NETINET_IP_ICMP_H
14131 #include <netinet/ip_icmp.h>
14132 #endif
14133 #ifdef HAVE_NETINET_ICMP_VAR
14134 #include <netinet/icmp_var.h>
14135 #endif
14136 "
14137 if test "x$ac_cv_member_struct_icmpstat_icps_outhist" = x""yes; then :
14138
14139 cat >>confdefs.h <<_ACEOF
14140 #define HAVE_STRUCT_ICMPSTAT_ICPS_OUTHIST 1
14141 _ACEOF
14142
14143
14144 fi
14145
14146
14147 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "#ifdef HAVE_SYS_TYPES_H
14148 #include <sys/types.h>
14149 #endif
14150 #ifdef HAVE_NET_IF_H
14151 # include <net/if.h>
14152 #endif
14153 "
14154 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
14155
14156 cat >>confdefs.h <<_ACEOF
14157 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
14158 _ACEOF
14159
14160
14161 fi
14162
14163
14164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone variable" >&5
14165 $as_echo_n "checking for timezone variable... " >&6; }
14166 if test "${ac_cv_have_timezone+set}" = set; then :
14167   $as_echo_n "(cached) " >&6
14168 else
14169   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14170 /* end confdefs.h.  */
14171 #include <time.h>
14172 int
14173 main ()
14174 {
14175 timezone = 1
14176   ;
14177   return 0;
14178 }
14179 _ACEOF
14180 if ac_fn_c_try_link "$LINENO"; then :
14181   ac_cv_have_timezone="yes"
14182 else
14183   ac_cv_have_timezone="no"
14184 fi
14185 rm -f core conftest.err conftest.$ac_objext \
14186     conftest$ac_exeext conftest.$ac_ext
14187 fi
14188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_timezone" >&5
14189 $as_echo "$ac_cv_have_timezone" >&6; }
14190 if test "$ac_cv_have_timezone" = "yes"
14191 then
14192
14193 $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
14194
14195 fi
14196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daylight variable" >&5
14197 $as_echo_n "checking for daylight variable... " >&6; }
14198 if test "${ac_cv_have_daylight+set}" = set; then :
14199   $as_echo_n "(cached) " >&6
14200 else
14201   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14202 /* end confdefs.h.  */
14203 #include <time.h>
14204 int
14205 main ()
14206 {
14207 daylight = 1
14208   ;
14209   return 0;
14210 }
14211 _ACEOF
14212 if ac_fn_c_try_link "$LINENO"; then :
14213   ac_cv_have_daylight="yes"
14214 else
14215   ac_cv_have_daylight="no"
14216 fi
14217 rm -f core conftest.err conftest.$ac_objext \
14218     conftest$ac_exeext conftest.$ac_ext
14219 fi
14220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_daylight" >&5
14221 $as_echo "$ac_cv_have_daylight" >&6; }
14222 if test "$ac_cv_have_daylight" = "yes"
14223 then
14224
14225 $as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h
14226
14227 fi
14228
14229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf" >&5
14230 $as_echo_n "checking for isinf... " >&6; }
14231 if test "${ac_cv_have_isinf+set}" = set; then :
14232   $as_echo_n "(cached) " >&6
14233 else
14234   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14235 /* end confdefs.h.  */
14236 #include <math.h>
14237 int
14238 main ()
14239 {
14240 float f = 0.0; int i=isinf(f)
14241   ;
14242   return 0;
14243 }
14244 _ACEOF
14245 if ac_fn_c_try_link "$LINENO"; then :
14246   ac_cv_have_isinf="yes"
14247 else
14248   ac_cv_have_isinf="no"
14249 fi
14250 rm -f core conftest.err conftest.$ac_objext \
14251     conftest$ac_exeext conftest.$ac_ext
14252 fi
14253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isinf" >&5
14254 $as_echo "$ac_cv_have_isinf" >&6; }
14255 if test "$ac_cv_have_isinf" = "yes"
14256 then
14257
14258 $as_echo "#define HAVE_ISINF 1" >>confdefs.h
14259
14260 fi
14261
14262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan" >&5
14263 $as_echo_n "checking for isnan... " >&6; }
14264 if test "${ac_cv_have_isnan+set}" = set; then :
14265   $as_echo_n "(cached) " >&6
14266 else
14267   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14268 /* end confdefs.h.  */
14269 #include <math.h>
14270 int
14271 main ()
14272 {
14273 float f = 0.0; int i=isnan(f)
14274   ;
14275   return 0;
14276 }
14277 _ACEOF
14278 if ac_fn_c_try_link "$LINENO"; then :
14279   ac_cv_have_isnan="yes"
14280 else
14281   ac_cv_have_isnan="no"
14282 fi
14283 rm -f core conftest.err conftest.$ac_objext \
14284     conftest$ac_exeext conftest.$ac_ext
14285 fi
14286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isnan" >&5
14287 $as_echo "$ac_cv_have_isnan" >&6; }
14288 if test "$ac_cv_have_isnan" = "yes"
14289 then
14290
14291 $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
14292
14293 fi
14294
14295
14296 case $host_cpu in
14297   *i[3456789]86*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __i386__" >&5
14298 $as_echo_n "checking whether we need to define __i386__... " >&6; }
14299 if test "${ac_cv_cpp_def___i386__+set}" = set; then :
14300   $as_echo_n "(cached) " >&6
14301 else
14302   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14303 /* end confdefs.h.  */
14304 #ifndef __i386__
14305 yes
14306 #endif
14307 _ACEOF
14308 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14309   $EGREP "yes" >/dev/null 2>&1; then :
14310   ac_cv_cpp_def___i386__=yes
14311 else
14312   ac_cv_cpp_def___i386__=no
14313 fi
14314 rm -f conftest*
14315
14316 fi
14317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___i386__" >&5
14318 $as_echo "$ac_cv_cpp_def___i386__" >&6; }
14319 if test $ac_cv_cpp_def___i386__ = yes; then :
14320   CFLAGS="$CFLAGS -D__i386__"
14321   LINTFLAGS="$LINTFLAGS -D__i386__"
14322 fi ;;
14323   *x86_64*)         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __x86_64__" >&5
14324 $as_echo_n "checking whether we need to define __x86_64__... " >&6; }
14325 if test "${ac_cv_cpp_def___x86_64__+set}" = set; then :
14326   $as_echo_n "(cached) " >&6
14327 else
14328   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14329 /* end confdefs.h.  */
14330 #ifndef __x86_64__
14331 yes
14332 #endif
14333 _ACEOF
14334 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14335   $EGREP "yes" >/dev/null 2>&1; then :
14336   ac_cv_cpp_def___x86_64__=yes
14337 else
14338   ac_cv_cpp_def___x86_64__=no
14339 fi
14340 rm -f conftest*
14341
14342 fi
14343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___x86_64__" >&5
14344 $as_echo "$ac_cv_cpp_def___x86_64__" >&6; }
14345 if test $ac_cv_cpp_def___x86_64__ = yes; then :
14346   CFLAGS="$CFLAGS -D__x86_64__"
14347   LINTFLAGS="$LINTFLAGS -D__x86_64__"
14348 fi ;;
14349   *alpha*)          { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __ALPHA__" >&5
14350 $as_echo_n "checking whether we need to define __ALPHA__... " >&6; }
14351 if test "${ac_cv_cpp_def___ALPHA__+set}" = set; then :
14352   $as_echo_n "(cached) " >&6
14353 else
14354   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14355 /* end confdefs.h.  */
14356 #ifndef __ALPHA__
14357 yes
14358 #endif
14359 _ACEOF
14360 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14361   $EGREP "yes" >/dev/null 2>&1; then :
14362   ac_cv_cpp_def___ALPHA__=yes
14363 else
14364   ac_cv_cpp_def___ALPHA__=no
14365 fi
14366 rm -f conftest*
14367
14368 fi
14369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___ALPHA__" >&5
14370 $as_echo "$ac_cv_cpp_def___ALPHA__" >&6; }
14371 if test $ac_cv_cpp_def___ALPHA__ = yes; then :
14372   CFLAGS="$CFLAGS -D__ALPHA__"
14373   LINTFLAGS="$LINTFLAGS -D__ALPHA__"
14374 fi ;;
14375   *sparc*)          { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sparc__" >&5
14376 $as_echo_n "checking whether we need to define __sparc__... " >&6; }
14377 if test "${ac_cv_cpp_def___sparc__+set}" = set; then :
14378   $as_echo_n "(cached) " >&6
14379 else
14380   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14381 /* end confdefs.h.  */
14382 #ifndef __sparc__
14383 yes
14384 #endif
14385 _ACEOF
14386 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14387   $EGREP "yes" >/dev/null 2>&1; then :
14388   ac_cv_cpp_def___sparc__=yes
14389 else
14390   ac_cv_cpp_def___sparc__=no
14391 fi
14392 rm -f conftest*
14393
14394 fi
14395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sparc__" >&5
14396 $as_echo "$ac_cv_cpp_def___sparc__" >&6; }
14397 if test $ac_cv_cpp_def___sparc__ = yes; then :
14398   CFLAGS="$CFLAGS -D__sparc__"
14399   LINTFLAGS="$LINTFLAGS -D__sparc__"
14400 fi ;;
14401   *powerpc*)        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __powerpc__" >&5
14402 $as_echo_n "checking whether we need to define __powerpc__... " >&6; }
14403 if test "${ac_cv_cpp_def___powerpc__+set}" = set; then :
14404   $as_echo_n "(cached) " >&6
14405 else
14406   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14407 /* end confdefs.h.  */
14408 #ifndef __powerpc__
14409 yes
14410 #endif
14411 _ACEOF
14412 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14413   $EGREP "yes" >/dev/null 2>&1; then :
14414   ac_cv_cpp_def___powerpc__=yes
14415 else
14416   ac_cv_cpp_def___powerpc__=no
14417 fi
14418 rm -f conftest*
14419
14420 fi
14421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___powerpc__" >&5
14422 $as_echo "$ac_cv_cpp_def___powerpc__" >&6; }
14423 if test $ac_cv_cpp_def___powerpc__ = yes; then :
14424   CFLAGS="$CFLAGS -D__powerpc__"
14425   LINTFLAGS="$LINTFLAGS -D__powerpc__"
14426 fi ;;
14427 esac
14428
14429 case $host_vendor in
14430   *sun*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sun__" >&5
14431 $as_echo_n "checking whether we need to define __sun__... " >&6; }
14432 if test "${ac_cv_cpp_def___sun__+set}" = set; then :
14433   $as_echo_n "(cached) " >&6
14434 else
14435   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14436 /* end confdefs.h.  */
14437 #ifndef __sun__
14438 yes
14439 #endif
14440 _ACEOF
14441 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14442   $EGREP "yes" >/dev/null 2>&1; then :
14443   ac_cv_cpp_def___sun__=yes
14444 else
14445   ac_cv_cpp_def___sun__=no
14446 fi
14447 rm -f conftest*
14448
14449 fi
14450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sun__" >&5
14451 $as_echo "$ac_cv_cpp_def___sun__" >&6; }
14452 if test $ac_cv_cpp_def___sun__ = yes; then :
14453   CFLAGS="$CFLAGS -D__sun__"
14454   LINTFLAGS="$LINTFLAGS -D__sun__"
14455 fi ;;
14456 esac
14457
14458
14459
14460
14461
14462 ac_config_commands="$ac_config_commands include/stamp-h"
14463
14464
14465 ALL_MAKEFILE_DEPENDS="
14466 # Rules automatically generated by configure
14467
14468 .INIT: Makefile
14469 .MAKEFILEDEPS:
14470 all: Makefile
14471 Makefile: Makefile.in Make.vars.in Make.rules config.status
14472         @./config.status Make.tmp Makefile"
14473
14474 ALL_WINETEST_DEPENDS="# Test binaries"
14475
14476 ALL_TEST_BINARIES=""
14477
14478
14479 wine_fn_append_file ()
14480 {
14481     as_fn_append $1 " \\$as_nl  $2"
14482 }
14483
14484 wine_fn_append_rule ()
14485 {
14486     as_fn_append $1 "$as_nl$2"
14487 }
14488
14489 wine_fn_has_flag ()
14490 {
14491     expr ",$2," : ".*,$1,.*" >/dev/null
14492 }
14493
14494 wine_fn_all_dir_rules ()
14495 {
14496     ac_dir=$1
14497     ac_alldeps=$2
14498     ac_makedep="\$(MAKEDEP)"
14499     ac_input=Make.vars.in:$ac_dir/Makefile.in
14500     if test $ac_dir != tools
14501     then
14502                 ac_alldeps="$2 $ac_makedep"
14503     fi
14504     case $2 in
14505       *.in) ac_input=$ac_input:$2 ;;
14506       *) ac_makedep="$2 $ac_makedep" ;;
14507     esac
14508
14509     wine_fn_append_file ALL_DIRS $ac_dir
14510     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14511 "__clean__: $ac_dir/__clean__
14512 .PHONY: $ac_dir/__clean__
14513 $ac_dir/__clean__: $ac_dir/Makefile
14514         @cd $ac_dir && \$(MAKE) clean
14515         \$(RM) $ac_dir/Makefile
14516 $ac_dir/Makefile: $ac_dir/Makefile.in Make.vars.in config.status $ac_alldeps
14517         @./config.status --file $ac_dir/Makefile:$ac_input && cd $ac_dir && \$(MAKE) depend
14518 depend: $ac_dir/__depend__
14519 .PHONY: $ac_dir/__depend__
14520 $ac_dir/__depend__: $ac_makedep dummy
14521         @./config.status --file $ac_dir/Makefile:$ac_input && cd $ac_dir && \$(MAKE) depend"
14522 }
14523
14524 wine_fn_config_makefile ()
14525 {
14526     ac_dir=$1
14527     ac_enable=$2
14528     if eval test \"x\$"$ac_enable"\" = x"no"; then :
14529   return 0
14530 fi
14531
14532     wine_fn_all_dir_rules $ac_dir Make.rules
14533     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14534 "all: $ac_dir
14535 .PHONY: $ac_dir
14536 $ac_dir: $ac_dir/Makefile dummy
14537         @cd $ac_dir && \$(MAKE)
14538 install:: $ac_dir
14539         @cd $ac_dir && \$(MAKE) install
14540 install-lib:: $ac_dir
14541         @cd $ac_dir && \$(MAKE) install-lib
14542 install-dev:: $ac_dir
14543         @cd $ac_dir && \$(MAKE) install-dev
14544 uninstall:: $ac_dir/Makefile
14545         @cd $ac_dir && \$(MAKE) uninstall"
14546 }
14547
14548 wine_fn_config_lib ()
14549 {
14550     ac_name=$1
14551     ac_dir=dlls/$ac_name
14552     wine_fn_all_dir_rules $ac_dir dlls/Makeimplib.rules
14553     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14554 "all __builddeps__: $ac_dir
14555 $ac_dir: $ac_dir/Makefile tools/widl tools/winebuild tools/winegcc include dummy
14556         @cd $ac_dir && \$(MAKE)
14557 install install-dev:: $ac_dir
14558         @cd $ac_dir && \$(MAKE) install
14559 uninstall:: $ac_dir/Makefile
14560         @cd $ac_dir && \$(MAKE) uninstall"
14561 }
14562
14563 wine_fn_config_dll ()
14564 {
14565     ac_name=$1
14566     ac_dir=dlls/$ac_name
14567     ac_enable=$2
14568     ac_flags=$3
14569     ac_implib=${4:-$ac_name}
14570     ac_file=$ac_dir/lib$ac_implib
14571     ac_deps="tools/widl tools/winebuild tools/winegcc include"
14572     ac_implibflags=""
14573
14574     case $ac_name in
14575       *16) ac_implibflags=" -m16" ;;
14576     esac
14577
14578     wine_fn_all_dir_rules $ac_dir dlls/Makedll.rules
14579
14580     if eval test \"x\$"$ac_enable"\" = x"no"; then :
14581                 test "$ac_enable" != enable_win16 || return 0
14582 else
14583   wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14584 "all: $ac_dir
14585 .PHONY: $ac_dir
14586 $ac_dir: $ac_dir/Makefile __builddeps__ dummy
14587         @cd $ac_dir && \$(MAKE)
14588 install:: $ac_dir/Makefile __builddeps__
14589         @cd $ac_dir && \$(MAKE) install
14590 install-lib:: $ac_dir/Makefile __builddeps__
14591         @cd $ac_dir && \$(MAKE) install-lib
14592 uninstall manpages htmlpages sgmlpages xmlpages:: $ac_dir/Makefile
14593         @cd $ac_dir && \$(MAKE) \$@"
14594 fi
14595
14596     if wine_fn_has_flag staticimplib $ac_flags
14597     then
14598         wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14599 "__builddeps__: $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT
14600 $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT $ac_file.cross.a: $ac_deps
14601 $ac_file.def: $ac_dir/$ac_name.spec $ac_dir/Makefile
14602         @cd $ac_dir && \$(MAKE) lib$ac_implib.def
14603 $ac_file.$STATIC_IMPLIBEXT: $ac_dir/Makefile dummy
14604         @cd $ac_dir && \$(MAKE) lib$ac_implib.$STATIC_IMPLIBEXT
14605 install-dev:: $ac_dir/Makefile __builddeps__
14606         @cd $ac_dir && \$(MAKE) install-dev"
14607         if test "x$CROSSTEST_DISABLE" = x
14608         then
14609             wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14610 "__builddeps__: $ac_file.cross.a
14611 $ac_file.cross.a: $ac_dir/Makefile dummy
14612         @cd $ac_dir && \$(MAKE) lib$ac_implib.cross.a"
14613         fi
14614
14615     elif wine_fn_has_flag implib $ac_flags
14616     then
14617         wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14618 "__builddeps__: $ac_file.$IMPLIBEXT
14619 $ac_file.def: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
14620         \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --def -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec
14621 $ac_file.a: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
14622         \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --implib -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec
14623 install-dev:: $ac_dir/Makefile __builddeps__
14624         @cd $ac_dir && \$(MAKE) install-dev"
14625         if test "x$CROSSTEST_DISABLE" = x
14626         then
14627             wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14628 "__builddeps__: $ac_file.cross.a
14629 $ac_file.cross.a: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
14630         \$(WINEBUILD) \$(CROSSTARGET:%=-b %)$ac_implibflags -w --implib -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec"
14631         fi
14632
14633         if test "$ac_name" != "$ac_implib"
14634         then
14635             wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14636 "__builddeps__: dlls/lib$ac_implib.$IMPLIBEXT
14637 dlls/lib$ac_implib.$IMPLIBEXT: $ac_file.$IMPLIBEXT
14638         \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.$IMPLIBEXT \$@
14639 clean::
14640         \$(RM) dlls/lib$ac_implib.$IMPLIBEXT"
14641             if test "x$CROSSTEST_DISABLE" = x
14642             then
14643                 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14644 "__builddeps__: dlls/lib$ac_implib.cross.a
14645 dlls/lib$ac_implib.cross.a: $ac_file.cross.a
14646         \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.cross.a \$@"
14647             fi
14648         fi
14649     fi
14650 }
14651
14652 wine_fn_config_program ()
14653 {
14654     ac_name=$1
14655     ac_dir=programs/$ac_name
14656     ac_enable=$2
14657     ac_flags=$3
14658     wine_fn_all_dir_rules $ac_dir programs/Makeprog.rules
14659
14660     if eval test \"x\$"$ac_enable"\" = x"no"; then :
14661
14662 else
14663   wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14664 "all: $ac_dir
14665 .PHONY: $ac_dir
14666 $ac_dir: $ac_dir/Makefile __builddeps__ dummy
14667         @cd $ac_dir && \$(MAKE)"
14668
14669     wine_fn_has_flag install $ac_flags || return
14670     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14671 "install install-lib:: $ac_dir/Makefile __builddeps__
14672         @cd $ac_dir && \$(MAKE) install
14673 uninstall:: $ac_dir/Makefile
14674         @cd $ac_dir && \$(MAKE) uninstall"
14675     if test -n "$DLLEXT" -a "x$enable_tools" != xno && wine_fn_has_flag installbin $ac_flags
14676     then
14677         wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14678 "install install-lib:: tools \$(DESTDIR)\$(bindir)
14679         \$(INSTALL_SCRIPT) tools/wineapploader \$(DESTDIR)\$(bindir)/$ac_name
14680 uninstall::
14681         \$(RM) \$(DESTDIR)\$(bindir)/$ac_name"
14682     fi
14683 fi
14684 }
14685
14686 wine_fn_config_test ()
14687 {
14688     ac_dir=$1
14689     ac_name=$2
14690     wine_fn_append_file ALL_TEST_BINARIES $ac_name.exe
14691     wine_fn_append_rule ALL_WINETEST_DEPENDS \
14692 "$ac_name.exe: \$(top_builddir)/$ac_dir/$ac_name.exe$DLLEXT
14693         cp \$(top_builddir)/$ac_dir/$ac_name.exe$DLLEXT \$@ && \$(STRIP) \$@
14694 $ac_name.rc:
14695         echo \"$ac_name.exe TESTRES \\\"$ac_name.exe\\\"\" >\$@ || (\$(RM) \$@ && false)
14696 $ac_name.res: $ac_name.rc $ac_name.exe"
14697     wine_fn_all_dir_rules $ac_dir Maketest.rules
14698
14699     if test "x$enable_tests" = x""no; then :
14700
14701 else
14702   wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14703 "all programs/winetest: $ac_dir
14704 .PHONY: $ac_dir
14705 $ac_dir: $ac_dir/Makefile __builddeps__ dummy
14706         @cd $ac_dir && \$(MAKE)
14707 test: $ac_dir/__test__
14708 .PHONY: $ac_dir/__test__
14709 $ac_dir/__test__: dummy
14710         @cd $ac_dir && \$(MAKE) test
14711 testclean::
14712         \$(RM) $ac_dir/*.ok"
14713
14714         if test "x$CROSSTEST_DISABLE" = x
14715         then
14716             wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14717 "crosstest: $ac_dir/__crosstest__
14718 .PHONY: $ac_dir/__crosstest__
14719 $ac_dir/__crosstest__: $ac_dir/Makefile __builddeps__ dummy
14720         @cd $ac_dir && \$(MAKE) crosstest"
14721         fi
14722 fi
14723 }
14724
14725 wine_fn_config_tool ()
14726 {
14727     ac_dir=$1
14728     wine_fn_all_dir_rules $ac_dir Make.rules
14729
14730     if test "x$enable_tools" = x""no; then :
14731
14732 else
14733   case $ac_dir in
14734             tools) wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14735 "install:: $ac_dir
14736         @cd $ac_dir && \$(MAKE) install
14737 install-lib:: $ac_dir
14738         @cd $ac_dir && \$(MAKE) install-lib
14739 install-dev:: $ac_dir
14740         @cd $ac_dir && \$(MAKE) install-dev" ;;
14741       *)     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14742 "install install-dev:: $ac_dir
14743         @cd $ac_dir && \$(MAKE) install" ;;
14744       esac
14745       wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14746 "uninstall:: $ac_dir/Makefile
14747         @cd $ac_dir && \$(MAKE) uninstall
14748 all __tooldeps__: $ac_dir
14749 .PHONY: $ac_dir
14750 $ac_dir: $ac_dir/Makefile libs/port dummy
14751         @cd $ac_dir && \$(MAKE)"
14752       case $ac_dir in
14753         tools/winebuild) wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(WINEBUILD): $ac_dir" ;;
14754       esac
14755 fi
14756 }
14757
14758 wine_fn_config_makerules ()
14759 {
14760     ac_rules=$1
14761     ac_deps=$2
14762     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14763 "$ac_rules: $ac_rules.in $ac_deps config.status
14764         @./config.status $ac_rules
14765 distclean::
14766         \$(RM) $ac_rules"
14767 }
14768
14769 wine_fn_config_symlink ()
14770 {
14771     ac_link=$1
14772     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14773 "$ac_link:
14774         @./config.status $ac_link
14775 distclean::
14776         \$(RM) $ac_link"
14777 }
14778
14779 if test "x$CROSSTEST_DISABLE" != x
14780 then
14781     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14782 "crosstest:
14783         @echo \"crosstest is not supported (mingw not installed?)\" && false"
14784 fi
14785 ac_config_links="$ac_config_links dlls/shell32/AUTHORS:AUTHORS"
14786 wine_fn_config_symlink dlls/shell32/AUTHORS
14787 ac_config_links="$ac_config_links dlls/wineps.drv/generic.ppd:dlls/wineps.drv/generic.ppd"
14788 test "$srcdir" = "." || wine_fn_config_symlink dlls/wineps.drv/generic.ppd
14789 if test "x$enable_fonts" != xno; then
14790 ac_config_links="$ac_config_links fonts/marlett.ttf:fonts/marlett.ttf"
14791 test "$srcdir" = "." || wine_fn_config_symlink fonts/marlett.ttf
14792 fi
14793 if test "x$enable_fonts" != xno; then
14794 ac_config_links="$ac_config_links fonts/symbol.ttf:fonts/symbol.ttf"
14795 test "$srcdir" = "." || wine_fn_config_symlink fonts/symbol.ttf
14796 fi
14797 if test "x$enable_fonts" != xno; then
14798 ac_config_links="$ac_config_links fonts/tahoma.ttf:fonts/tahoma.ttf"
14799 test "$srcdir" = "." || wine_fn_config_symlink fonts/tahoma.ttf
14800 fi
14801 if test "x$enable_fonts" != xno; then
14802 ac_config_links="$ac_config_links fonts/tahomabd.ttf:fonts/tahomabd.ttf"
14803 test "$srcdir" = "." || wine_fn_config_symlink fonts/tahomabd.ttf
14804 fi
14805 ac_config_links="$ac_config_links tools/l_intl.nls:tools/l_intl.nls"
14806 test "$srcdir" = "." || wine_fn_config_symlink tools/l_intl.nls
14807 ac_config_links="$ac_config_links wine:tools/winewrapper"
14808 wine_fn_config_symlink wine
14809
14810 ac_config_commands="$ac_config_commands dlls/gdi32/enhmfdrv"
14811
14812 ac_config_commands="$ac_config_commands dlls/gdi32/mfdrv"
14813
14814 ac_config_commands="$ac_config_commands dlls/kernel32/nls"
14815
14816 ac_config_commands="$ac_config_commands dlls/user32/resources"
14817
14818 ac_config_commands="$ac_config_commands dlls/wineps.drv/data"
14819
14820 ac_config_commands="$ac_config_commands include/wine"
14821
14822
14823 wine_fn_config_makerules Make.rules
14824 MAKE_RULES=Make.rules
14825 ac_config_files="$ac_config_files Make.rules"
14826
14827 wine_fn_config_makerules Maketest.rules Make.rules
14828 MAKE_TEST_RULES=Maketest.rules
14829 ac_config_files="$ac_config_files Maketest.rules"
14830
14831 wine_fn_config_makerules dlls/Makedll.rules Make.rules
14832 MAKE_DLL_RULES=dlls/Makedll.rules
14833 ac_config_files="$ac_config_files dlls/Makedll.rules"
14834
14835 wine_fn_config_makerules dlls/Makeimplib.rules Make.rules
14836 MAKE_IMPLIB_RULES=dlls/Makeimplib.rules
14837 ac_config_files="$ac_config_files dlls/Makeimplib.rules"
14838
14839 wine_fn_config_makerules programs/Makeprog.rules Make.rules
14840 MAKE_PROG_RULES=programs/Makeprog.rules
14841 ac_config_files="$ac_config_files programs/Makeprog.rules"
14842
14843
14844 wine_fn_config_dll acledit enable_acledit
14845 wine_fn_config_dll aclui enable_aclui implib
14846 wine_fn_config_dll activeds enable_activeds implib
14847 wine_fn_config_dll actxprxy enable_actxprxy
14848 wine_fn_config_lib adsiid
14849 wine_fn_config_dll advapi32 enable_advapi32 implib
14850 wine_fn_config_test dlls/advapi32/tests advapi32_test
14851 wine_fn_config_dll advpack enable_advpack implib
14852 wine_fn_config_test dlls/advpack/tests advpack_test
14853 wine_fn_config_dll amstream enable_amstream
14854 wine_fn_config_test dlls/amstream/tests amstream_test
14855 wine_fn_config_dll appwiz.cpl enable_appwiz_cpl
14856 wine_fn_config_dll atl enable_atl implib
14857 wine_fn_config_test dlls/atl/tests atl_test
14858 wine_fn_config_dll authz enable_authz
14859 wine_fn_config_dll avicap32 enable_avicap32 implib
14860 wine_fn_config_dll avifil32 enable_avifil32 implib
14861 wine_fn_config_test dlls/avifil32/tests avifil32_test
14862 wine_fn_config_dll avifile.dll16 enable_win16
14863 wine_fn_config_dll avrt enable_avrt implib
14864 wine_fn_config_dll bcrypt enable_bcrypt
14865 wine_fn_config_dll browseui enable_browseui
14866 wine_fn_config_test dlls/browseui/tests browseui_test
14867 wine_fn_config_dll cabinet enable_cabinet implib
14868 wine_fn_config_test dlls/cabinet/tests cabinet_test
14869 wine_fn_config_dll capi2032 enable_capi2032 implib
14870 wine_fn_config_dll cards enable_cards implib
14871 wine_fn_config_dll cfgmgr32 enable_cfgmgr32 implib
14872 wine_fn_config_dll clusapi enable_clusapi implib
14873 wine_fn_config_dll comcat enable_comcat
14874 wine_fn_config_test dlls/comcat/tests comcat_test
14875 wine_fn_config_dll comctl32 enable_comctl32 implib
14876 wine_fn_config_test dlls/comctl32/tests comctl32_test
14877 wine_fn_config_dll comdlg32 enable_comdlg32 implib
14878 wine_fn_config_test dlls/comdlg32/tests comdlg32_test
14879 wine_fn_config_dll comm.drv16 enable_win16
14880 wine_fn_config_dll commdlg.dll16 enable_win16
14881 wine_fn_config_dll compobj.dll16 enable_win16
14882 wine_fn_config_dll compstui enable_compstui implib
14883 wine_fn_config_dll credui enable_credui implib
14884 wine_fn_config_test dlls/credui/tests credui_test
14885 wine_fn_config_dll crtdll enable_crtdll implib
14886 wine_fn_config_dll crypt32 enable_crypt32 implib
14887 wine_fn_config_test dlls/crypt32/tests crypt32_test
14888 wine_fn_config_dll cryptdlg enable_cryptdlg
14889 wine_fn_config_dll cryptdll enable_cryptdll implib
14890 wine_fn_config_dll cryptnet enable_cryptnet implib
14891 wine_fn_config_test dlls/cryptnet/tests cryptnet_test
14892 wine_fn_config_dll cryptui enable_cryptui implib
14893 wine_fn_config_test dlls/cryptui/tests cryptui_test
14894 wine_fn_config_dll ctapi32 enable_ctapi32
14895 wine_fn_config_dll ctl3d.dll16 enable_win16
14896 wine_fn_config_dll ctl3d32 enable_ctl3d32 implib
14897 wine_fn_config_dll ctl3dv2.dll16 enable_win16
14898 wine_fn_config_dll d3d10 enable_d3d10 implib
14899 wine_fn_config_test dlls/d3d10/tests d3d10_test
14900 wine_fn_config_dll d3d10core enable_d3d10core implib
14901 wine_fn_config_test dlls/d3d10core/tests d3d10core_test
14902 wine_fn_config_dll d3d8 enable_d3d8 implib
14903 wine_fn_config_test dlls/d3d8/tests d3d8_test
14904 wine_fn_config_dll d3d9 enable_d3d9 implib
14905 wine_fn_config_test dlls/d3d9/tests d3d9_test
14906 wine_fn_config_dll d3dcompiler_33 enable_d3dcompiler_33
14907 wine_fn_config_dll d3dcompiler_34 enable_d3dcompiler_34
14908 wine_fn_config_dll d3dcompiler_35 enable_d3dcompiler_35
14909 wine_fn_config_dll d3dcompiler_36 enable_d3dcompiler_36
14910 wine_fn_config_dll d3dcompiler_37 enable_d3dcompiler_37
14911 wine_fn_config_dll d3dcompiler_38 enable_d3dcompiler_38
14912 wine_fn_config_dll d3dcompiler_39 enable_d3dcompiler_39
14913 wine_fn_config_dll d3dcompiler_40 enable_d3dcompiler_40
14914 wine_fn_config_dll d3dcompiler_41 enable_d3dcompiler_41
14915 wine_fn_config_dll d3dcompiler_42 enable_d3dcompiler_42
14916 wine_fn_config_dll d3dcompiler_43 enable_d3dcompiler_43 implib d3dcompiler
14917 wine_fn_config_test dlls/d3dcompiler_43/tests d3dcompiler_43_test
14918 wine_fn_config_dll d3dim enable_d3dim implib
14919 wine_fn_config_dll d3drm enable_d3drm implib
14920 wine_fn_config_test dlls/d3drm/tests d3drm_test
14921 wine_fn_config_dll d3dx10_33 enable_d3dx10_33
14922 wine_fn_config_dll d3dx10_34 enable_d3dx10_34
14923 wine_fn_config_dll d3dx10_35 enable_d3dx10_35
14924 wine_fn_config_dll d3dx10_36 enable_d3dx10_36
14925 wine_fn_config_dll d3dx10_37 enable_d3dx10_37
14926 wine_fn_config_dll d3dx10_38 enable_d3dx10_38
14927 wine_fn_config_dll d3dx10_39 enable_d3dx10_39
14928 wine_fn_config_dll d3dx10_40 enable_d3dx10_40
14929 wine_fn_config_dll d3dx10_41 enable_d3dx10_41
14930 wine_fn_config_dll d3dx10_42 enable_d3dx10_42
14931 wine_fn_config_dll d3dx10_43 enable_d3dx10_43
14932 wine_fn_config_dll d3dx9_24 enable_d3dx9_24
14933 wine_fn_config_dll d3dx9_25 enable_d3dx9_25
14934 wine_fn_config_dll d3dx9_26 enable_d3dx9_26
14935 wine_fn_config_dll d3dx9_27 enable_d3dx9_27
14936 wine_fn_config_dll d3dx9_28 enable_d3dx9_28
14937 wine_fn_config_dll d3dx9_29 enable_d3dx9_29
14938 wine_fn_config_dll d3dx9_30 enable_d3dx9_30
14939 wine_fn_config_dll d3dx9_31 enable_d3dx9_31
14940 wine_fn_config_dll d3dx9_32 enable_d3dx9_32
14941 wine_fn_config_dll d3dx9_33 enable_d3dx9_33
14942 wine_fn_config_dll d3dx9_34 enable_d3dx9_34
14943 wine_fn_config_dll d3dx9_35 enable_d3dx9_35
14944 wine_fn_config_dll d3dx9_36 enable_d3dx9_36 implib d3dx9
14945 wine_fn_config_test dlls/d3dx9_36/tests d3dx9_36_test
14946 wine_fn_config_dll d3dx9_37 enable_d3dx9_37
14947 wine_fn_config_dll d3dx9_38 enable_d3dx9_38
14948 wine_fn_config_dll d3dx9_39 enable_d3dx9_39
14949 wine_fn_config_dll d3dx9_40 enable_d3dx9_40
14950 wine_fn_config_dll d3dx9_41 enable_d3dx9_41
14951 wine_fn_config_dll d3dx9_42 enable_d3dx9_42
14952 wine_fn_config_dll d3dx9_43 enable_d3dx9_43
14953 wine_fn_config_dll d3dxof enable_d3dxof implib
14954 wine_fn_config_test dlls/d3dxof/tests d3dxof_test
14955 wine_fn_config_dll dbgeng enable_dbgeng implib
14956 wine_fn_config_dll dbghelp enable_dbghelp implib
14957 wine_fn_config_dll dciman32 enable_dciman32 implib
14958 wine_fn_config_dll ddeml.dll16 enable_win16
14959 wine_fn_config_dll ddraw enable_ddraw implib
14960 wine_fn_config_test dlls/ddraw/tests ddraw_test
14961 wine_fn_config_dll ddrawex enable_ddrawex
14962 wine_fn_config_test dlls/ddrawex/tests ddrawex_test
14963 wine_fn_config_dll devenum enable_devenum
14964 wine_fn_config_dll dinput enable_dinput implib,staticimplib
14965 wine_fn_config_test dlls/dinput/tests dinput_test
14966 wine_fn_config_dll dinput8 enable_dinput8 implib
14967 wine_fn_config_dll dispdib.dll16 enable_win16
14968 wine_fn_config_dll dispex enable_dispex
14969 wine_fn_config_test dlls/dispex/tests dispex_test
14970 wine_fn_config_dll display.drv16 enable_win16
14971 wine_fn_config_dll dmband enable_dmband
14972 wine_fn_config_dll dmcompos enable_dmcompos
14973 wine_fn_config_dll dmime enable_dmime
14974 wine_fn_config_test dlls/dmime/tests dmime_test
14975 wine_fn_config_dll dmloader enable_dmloader
14976 wine_fn_config_test dlls/dmloader/tests dmloader_test
14977 wine_fn_config_dll dmscript enable_dmscript
14978 wine_fn_config_dll dmstyle enable_dmstyle
14979 wine_fn_config_dll dmsynth enable_dmsynth
14980 wine_fn_config_dll dmusic enable_dmusic
14981 wine_fn_config_dll dmusic32 enable_dmusic32 implib
14982 wine_fn_config_dll dnsapi enable_dnsapi implib
14983 wine_fn_config_test dlls/dnsapi/tests dnsapi_test
14984 wine_fn_config_dll dplay enable_dplay implib
14985 wine_fn_config_dll dplayx enable_dplayx implib
14986 wine_fn_config_test dlls/dplayx/tests dplayx_test
14987 wine_fn_config_dll dpnaddr enable_dpnaddr
14988 wine_fn_config_dll dpnet enable_dpnet implib
14989 wine_fn_config_dll dpnhpast enable_dpnhpast
14990 wine_fn_config_dll dpnlobby enable_dpnlobby
14991 wine_fn_config_dll dpwsockx enable_dpwsockx
14992 wine_fn_config_dll drmclien enable_drmclien
14993 wine_fn_config_dll dsound enable_dsound implib
14994 wine_fn_config_test dlls/dsound/tests dsound_test
14995 wine_fn_config_dll dssenh enable_dssenh
14996 wine_fn_config_dll dswave enable_dswave
14997 wine_fn_config_dll dwmapi enable_dwmapi implib
14998 wine_fn_config_dll dxdiagn enable_dxdiagn
14999 wine_fn_config_test dlls/dxdiagn/tests dxdiagn_test
15000 wine_fn_config_lib dxerr8
15001 wine_fn_config_lib dxerr9
15002 wine_fn_config_dll dxgi enable_dxgi implib
15003 wine_fn_config_test dlls/dxgi/tests dxgi_test
15004 wine_fn_config_lib dxguid
15005 wine_fn_config_dll explorerframe enable_explorerframe
15006 wine_fn_config_test dlls/explorerframe/tests explorerframe_test
15007 wine_fn_config_dll faultrep enable_faultrep implib
15008 wine_fn_config_test dlls/faultrep/tests faultrep_test
15009 wine_fn_config_dll fltlib enable_fltlib
15010 wine_fn_config_dll fusion enable_fusion
15011 wine_fn_config_test dlls/fusion/tests fusion_test
15012 wine_fn_config_dll fwpuclnt enable_fwpuclnt
15013 wine_fn_config_dll gameux enable_gameux
15014 wine_fn_config_test dlls/gameux/tests gameux_test
15015 wine_fn_config_dll gdi.exe16 enable_win16
15016 wine_fn_config_dll gdi32 enable_gdi32 implib
15017 wine_fn_config_test dlls/gdi32/tests gdi32_test
15018 wine_fn_config_dll gdiplus enable_gdiplus implib
15019 wine_fn_config_test dlls/gdiplus/tests gdiplus_test
15020 wine_fn_config_dll glu32 enable_glu32 implib
15021 wine_fn_config_dll gphoto2.ds enable_gphoto2_ds
15022 wine_fn_config_dll gpkcsp enable_gpkcsp
15023 wine_fn_config_dll hal enable_hal
15024 wine_fn_config_dll hhctrl.ocx enable_hhctrl_ocx
15025 wine_fn_config_dll hid enable_hid implib
15026 wine_fn_config_dll hlink enable_hlink implib
15027 wine_fn_config_test dlls/hlink/tests hlink_test
15028 wine_fn_config_dll hnetcfg enable_hnetcfg
15029 wine_fn_config_dll httpapi enable_httpapi
15030 wine_fn_config_dll iccvid enable_iccvid
15031 wine_fn_config_dll icmp enable_icmp
15032 wine_fn_config_dll ifsmgr.vxd enable_win16
15033 wine_fn_config_dll imaadp32.acm enable_imaadp32_acm
15034 wine_fn_config_dll imagehlp enable_imagehlp implib
15035 wine_fn_config_test dlls/imagehlp/tests imagehlp_test
15036 wine_fn_config_dll imm.dll16 enable_win16
15037 wine_fn_config_dll imm32 enable_imm32 implib
15038 wine_fn_config_test dlls/imm32/tests imm32_test
15039 wine_fn_config_dll inetcomm enable_inetcomm implib
15040 wine_fn_config_test dlls/inetcomm/tests inetcomm_test
15041 wine_fn_config_dll inetcpl.cpl enable_inetcpl_cpl
15042 wine_fn_config_dll inetmib1 enable_inetmib1
15043 wine_fn_config_test dlls/inetmib1/tests inetmib1_test
15044 wine_fn_config_dll infosoft enable_infosoft
15045 wine_fn_config_test dlls/infosoft/tests infosoft_test
15046 wine_fn_config_dll initpki enable_initpki
15047 wine_fn_config_dll inkobj enable_inkobj
15048 wine_fn_config_dll inseng enable_inseng
15049 wine_fn_config_dll iphlpapi enable_iphlpapi implib
15050 wine_fn_config_test dlls/iphlpapi/tests iphlpapi_test
15051 wine_fn_config_dll itircl enable_itircl
15052 wine_fn_config_dll itss enable_itss
15053 wine_fn_config_test dlls/itss/tests itss_test
15054 wine_fn_config_dll jscript enable_jscript
15055 wine_fn_config_test dlls/jscript/tests jscript_test
15056 wine_fn_config_dll kernel32 enable_kernel32 implib
15057 wine_fn_config_test dlls/kernel32/tests kernel32_test
15058 wine_fn_config_dll keyboard.drv16 enable_win16
15059 wine_fn_config_dll krnl386.exe16 enable_win16 implib kernel
15060 wine_fn_config_dll ktmw32 enable_ktmw32
15061 wine_fn_config_dll loadperf enable_loadperf implib
15062 wine_fn_config_dll localspl enable_localspl
15063 wine_fn_config_test dlls/localspl/tests localspl_test
15064 wine_fn_config_dll localui enable_localui
15065 wine_fn_config_test dlls/localui/tests localui_test
15066 wine_fn_config_dll lz32 enable_lz32 implib
15067 wine_fn_config_test dlls/lz32/tests lz32_test
15068 wine_fn_config_dll lzexpand.dll16 enable_win16
15069 wine_fn_config_dll mapi32 enable_mapi32 implib
15070 wine_fn_config_test dlls/mapi32/tests mapi32_test
15071 wine_fn_config_dll mapistub enable_mapistub
15072 wine_fn_config_dll mciavi32 enable_mciavi32
15073 wine_fn_config_dll mcicda enable_mcicda
15074 wine_fn_config_dll mciqtz32 enable_mciqtz32
15075 wine_fn_config_dll mciseq enable_mciseq
15076 wine_fn_config_dll mciwave enable_mciwave
15077 wine_fn_config_dll midimap enable_midimap
15078 wine_fn_config_dll mlang enable_mlang implib
15079 wine_fn_config_test dlls/mlang/tests mlang_test
15080 wine_fn_config_dll mmdevapi enable_mmdevapi
15081 wine_fn_config_test dlls/mmdevapi/tests mmdevapi_test
15082 wine_fn_config_dll mmdevldr.vxd enable_win16
15083 wine_fn_config_dll mmsystem.dll16 enable_win16
15084 wine_fn_config_dll monodebg.vxd enable_win16
15085 wine_fn_config_dll mountmgr.sys enable_mountmgr_sys
15086 wine_fn_config_dll mouse.drv16 enable_win16
15087 wine_fn_config_dll mpr enable_mpr implib
15088 wine_fn_config_dll mprapi enable_mprapi implib
15089 wine_fn_config_dll msacm.dll16 enable_win16
15090 wine_fn_config_dll msacm32.drv enable_msacm32_drv
15091 wine_fn_config_dll msacm32 enable_msacm32 implib
15092 wine_fn_config_test dlls/msacm32/tests msacm32_test
15093 wine_fn_config_dll msadp32.acm enable_msadp32_acm
15094 wine_fn_config_dll mscat32 enable_mscat32
15095 wine_fn_config_dll mscms enable_mscms implib
15096 wine_fn_config_test dlls/mscms/tests mscms_test
15097 wine_fn_config_dll mscoree enable_mscoree
15098 wine_fn_config_test dlls/mscoree/tests mscoree_test
15099 wine_fn_config_dll msctf enable_msctf
15100 wine_fn_config_test dlls/msctf/tests msctf_test
15101 wine_fn_config_dll msdaps enable_msdaps
15102 wine_fn_config_dll msdmo enable_msdmo implib
15103 wine_fn_config_dll msftedit enable_msftedit
15104 wine_fn_config_dll msg711.acm enable_msg711_acm
15105 wine_fn_config_dll msgsm32.acm enable_msgsm32_acm
15106 wine_fn_config_dll mshtml.tlb enable_mshtml_tlb
15107 wine_fn_config_dll mshtml enable_mshtml implib
15108 wine_fn_config_test dlls/mshtml/tests mshtml_test
15109 wine_fn_config_dll msi enable_msi implib
15110 wine_fn_config_test dlls/msi/tests msi_test
15111 wine_fn_config_dll msimg32 enable_msimg32 implib
15112 wine_fn_config_dll msimtf enable_msimtf
15113 wine_fn_config_dll msisip enable_msisip
15114 wine_fn_config_dll msisys.ocx enable_msisys_ocx
15115 wine_fn_config_dll msnet32 enable_msnet32
15116 wine_fn_config_dll msrle32 enable_msrle32
15117 wine_fn_config_dll mssign32 enable_mssign32
15118 wine_fn_config_dll mssip32 enable_mssip32
15119 wine_fn_config_dll mstask enable_mstask
15120 wine_fn_config_test dlls/mstask/tests mstask_test
15121 wine_fn_config_dll msvcirt enable_msvcirt
15122 wine_fn_config_dll msvcp80 enable_msvcp80
15123 wine_fn_config_dll msvcp90 enable_msvcp90
15124 wine_fn_config_test dlls/msvcp90/tests msvcp90_test
15125 wine_fn_config_dll msvcr100 enable_msvcr100
15126 wine_fn_config_dll msvcr70 enable_msvcr70 implib
15127 wine_fn_config_dll msvcr71 enable_msvcr71 implib
15128 wine_fn_config_dll msvcr80 enable_msvcr80
15129 wine_fn_config_dll msvcr90 enable_msvcr90
15130 wine_fn_config_test dlls/msvcr90/tests msvcr90_test
15131 wine_fn_config_dll msvcrt enable_msvcrt implib
15132 wine_fn_config_test dlls/msvcrt/tests msvcrt_test
15133 wine_fn_config_dll msvcrt20 enable_msvcrt20 implib
15134 wine_fn_config_dll msvcrt40 enable_msvcrt40 implib
15135 wine_fn_config_dll msvcrtd enable_msvcrtd implib
15136 wine_fn_config_test dlls/msvcrtd/tests msvcrtd_test
15137 wine_fn_config_dll msvfw32 enable_msvfw32 implib
15138 wine_fn_config_test dlls/msvfw32/tests msvfw32_test
15139 wine_fn_config_dll msvidc32 enable_msvidc32
15140 wine_fn_config_dll msvideo.dll16 enable_win16
15141 wine_fn_config_dll mswsock enable_mswsock implib
15142 wine_fn_config_dll msxml enable_msxml
15143 wine_fn_config_dll msxml2 enable_msxml2
15144 wine_fn_config_dll msxml3 enable_msxml3
15145 wine_fn_config_test dlls/msxml3/tests msxml3_test
15146 wine_fn_config_dll msxml4 enable_msxml4
15147 wine_fn_config_dll msxml6 enable_msxml6
15148 wine_fn_config_dll nddeapi enable_nddeapi implib
15149 wine_fn_config_dll netapi32 enable_netapi32 implib
15150 wine_fn_config_test dlls/netapi32/tests netapi32_test
15151 wine_fn_config_dll newdev enable_newdev implib
15152 wine_fn_config_dll normaliz enable_normaliz implib
15153 wine_fn_config_dll npmshtml enable_npmshtml
15154 wine_fn_config_dll ntdll enable_ntdll implib
15155 wine_fn_config_test dlls/ntdll/tests ntdll_test
15156 wine_fn_config_dll ntdsapi enable_ntdsapi implib
15157 wine_fn_config_test dlls/ntdsapi/tests ntdsapi_test
15158 wine_fn_config_dll ntoskrnl.exe enable_ntoskrnl_exe implib
15159 wine_fn_config_dll ntprint enable_ntprint
15160 wine_fn_config_test dlls/ntprint/tests ntprint_test
15161 wine_fn_config_dll objsel enable_objsel
15162 wine_fn_config_dll odbc32 enable_odbc32 implib
15163 wine_fn_config_dll odbccp32 enable_odbccp32 implib
15164 wine_fn_config_test dlls/odbccp32/tests odbccp32_test
15165 wine_fn_config_dll ole2.dll16 enable_win16
15166 wine_fn_config_dll ole2conv.dll16 enable_win16
15167 wine_fn_config_dll ole2disp.dll16 enable_win16
15168 wine_fn_config_dll ole2nls.dll16 enable_win16
15169 wine_fn_config_dll ole2prox.dll16 enable_win16
15170 wine_fn_config_dll ole2thk.dll16 enable_win16
15171 wine_fn_config_dll ole32 enable_ole32 implib
15172 wine_fn_config_test dlls/ole32/tests ole32_test
15173 wine_fn_config_dll oleacc enable_oleacc implib
15174 wine_fn_config_test dlls/oleacc/tests oleacc_test
15175 wine_fn_config_dll oleaut32 enable_oleaut32 implib
15176 wine_fn_config_test dlls/oleaut32/tests oleaut32_test
15177 wine_fn_config_dll olecli.dll16 enable_win16
15178 wine_fn_config_dll olecli32 enable_olecli32 implib
15179 wine_fn_config_dll oledb32 enable_oledb32
15180 wine_fn_config_test dlls/oledb32/tests oledb32_test
15181 wine_fn_config_dll oledlg enable_oledlg implib
15182 wine_fn_config_dll olepro32 enable_olepro32 implib
15183 wine_fn_config_dll olesvr.dll16 enable_win16
15184 wine_fn_config_dll olesvr32 enable_olesvr32 implib
15185 wine_fn_config_dll olethk32 enable_olethk32
15186 wine_fn_config_dll openal32 enable_openal32
15187 wine_fn_config_dll opencl enable_opencl
15188 wine_fn_config_dll opengl32 enable_opengl32 implib
15189 wine_fn_config_test dlls/opengl32/tests opengl32_test
15190 wine_fn_config_dll pdh enable_pdh implib
15191 wine_fn_config_test dlls/pdh/tests pdh_test
15192 wine_fn_config_dll pidgen enable_pidgen
15193 wine_fn_config_dll powrprof enable_powrprof implib
15194 wine_fn_config_dll printui enable_printui
15195 wine_fn_config_dll propsys enable_propsys implib
15196 wine_fn_config_test dlls/propsys/tests propsys_test
15197 wine_fn_config_dll psapi enable_psapi implib
15198 wine_fn_config_test dlls/psapi/tests psapi_test
15199 wine_fn_config_dll pstorec enable_pstorec
15200 wine_fn_config_dll qcap enable_qcap
15201 wine_fn_config_dll qedit enable_qedit
15202 wine_fn_config_test dlls/qedit/tests qedit_test
15203 wine_fn_config_dll qmgr enable_qmgr
15204 wine_fn_config_test dlls/qmgr/tests qmgr_test
15205 wine_fn_config_dll qmgrprxy enable_qmgrprxy
15206 wine_fn_config_dll quartz enable_quartz implib
15207 wine_fn_config_test dlls/quartz/tests quartz_test
15208 wine_fn_config_dll query enable_query
15209 wine_fn_config_dll rasapi16.dll16 enable_win16
15210 wine_fn_config_dll rasapi32 enable_rasapi32 implib
15211 wine_fn_config_test dlls/rasapi32/tests rasapi32_test
15212 wine_fn_config_dll rasdlg enable_rasdlg implib
15213 wine_fn_config_dll resutils enable_resutils implib
15214 wine_fn_config_dll riched20 enable_riched20 implib
15215 wine_fn_config_test dlls/riched20/tests riched20_test
15216 wine_fn_config_dll riched32 enable_riched32
15217 wine_fn_config_test dlls/riched32/tests riched32_test
15218 wine_fn_config_dll rpcrt4 enable_rpcrt4 implib
15219 wine_fn_config_test dlls/rpcrt4/tests rpcrt4_test
15220 wine_fn_config_dll rsabase enable_rsabase
15221 wine_fn_config_dll rsaenh enable_rsaenh implib
15222 wine_fn_config_test dlls/rsaenh/tests rsaenh_test
15223 wine_fn_config_dll rstrtmgr enable_rstrtmgr
15224 wine_fn_config_dll rtutils enable_rtutils implib
15225 wine_fn_config_dll samlib enable_samlib
15226 wine_fn_config_dll sane.ds enable_sane_ds
15227 wine_fn_config_dll sccbase enable_sccbase
15228 wine_fn_config_dll schannel enable_schannel
15229 wine_fn_config_test dlls/schannel/tests schannel_test
15230 wine_fn_config_dll secur32 enable_secur32 implib
15231 wine_fn_config_test dlls/secur32/tests secur32_test
15232 wine_fn_config_dll security enable_security
15233 wine_fn_config_dll sensapi enable_sensapi implib
15234 wine_fn_config_dll serialui enable_serialui implib
15235 wine_fn_config_test dlls/serialui/tests serialui_test
15236 wine_fn_config_dll setupapi enable_setupapi implib
15237 wine_fn_config_test dlls/setupapi/tests setupapi_test
15238 wine_fn_config_dll setupx.dll16 enable_win16
15239 wine_fn_config_dll sfc enable_sfc implib
15240 wine_fn_config_dll sfc_os enable_sfc_os implib
15241 wine_fn_config_dll shdoclc enable_shdoclc
15242 wine_fn_config_dll shdocvw enable_shdocvw implib
15243 wine_fn_config_test dlls/shdocvw/tests shdocvw_test
15244 wine_fn_config_dll shell.dll16 enable_win16
15245 wine_fn_config_dll shell32 enable_shell32 implib
15246 wine_fn_config_test dlls/shell32/tests shell32_test
15247 wine_fn_config_dll shfolder enable_shfolder implib
15248 wine_fn_config_dll shlwapi enable_shlwapi implib
15249 wine_fn_config_test dlls/shlwapi/tests shlwapi_test
15250 wine_fn_config_dll slbcsp enable_slbcsp
15251 wine_fn_config_dll slc enable_slc implib
15252 wine_fn_config_dll snmpapi enable_snmpapi implib
15253 wine_fn_config_test dlls/snmpapi/tests snmpapi_test
15254 wine_fn_config_dll softpub enable_softpub
15255 wine_fn_config_dll sound.drv16 enable_win16
15256 wine_fn_config_dll spoolss enable_spoolss implib
15257 wine_fn_config_test dlls/spoolss/tests spoolss_test
15258 wine_fn_config_dll stdole2.tlb enable_stdole2_tlb
15259 wine_fn_config_dll stdole32.tlb enable_stdole32_tlb
15260 wine_fn_config_dll sti enable_sti implib
15261 wine_fn_config_test dlls/sti/tests sti_test
15262 wine_fn_config_dll storage.dll16 enable_win16
15263 wine_fn_config_dll stress.dll16 enable_win16
15264 wine_fn_config_lib strmbase
15265 wine_fn_config_lib strmiids
15266 wine_fn_config_dll svrapi enable_svrapi
15267 wine_fn_config_dll sxs enable_sxs
15268 wine_fn_config_dll system.drv16 enable_win16
15269 wine_fn_config_dll t2embed enable_t2embed
15270 wine_fn_config_dll tapi32 enable_tapi32 implib
15271 wine_fn_config_dll toolhelp.dll16 enable_win16
15272 wine_fn_config_dll traffic enable_traffic
15273 wine_fn_config_dll twain.dll16 enable_win16
15274 wine_fn_config_dll twain_32 enable_twain_32
15275 wine_fn_config_test dlls/twain_32/tests twain_32_test
15276 wine_fn_config_dll typelib.dll16 enable_win16
15277 wine_fn_config_dll unicows enable_unicows implib
15278 wine_fn_config_dll updspapi enable_updspapi
15279 wine_fn_config_dll url enable_url implib
15280 wine_fn_config_dll urlmon enable_urlmon implib
15281 wine_fn_config_test dlls/urlmon/tests urlmon_test
15282 wine_fn_config_dll usbd.sys enable_usbd_sys implib
15283 wine_fn_config_dll user.exe16 enable_win16
15284 wine_fn_config_dll user32 enable_user32 implib
15285 wine_fn_config_test dlls/user32/tests user32_test
15286 wine_fn_config_dll userenv enable_userenv implib
15287 wine_fn_config_test dlls/userenv/tests userenv_test
15288 wine_fn_config_dll usp10 enable_usp10 implib
15289 wine_fn_config_test dlls/usp10/tests usp10_test
15290 wine_fn_config_lib uuid
15291 wine_fn_config_dll uxtheme enable_uxtheme implib
15292 wine_fn_config_test dlls/uxtheme/tests uxtheme_test
15293 wine_fn_config_dll vdhcp.vxd enable_win16
15294 wine_fn_config_dll vdmdbg enable_vdmdbg implib
15295 wine_fn_config_dll ver.dll16 enable_win16
15296 wine_fn_config_dll version enable_version implib
15297 wine_fn_config_test dlls/version/tests version_test
15298 wine_fn_config_dll vmm.vxd enable_win16
15299 wine_fn_config_dll vnbt.vxd enable_win16
15300 wine_fn_config_dll vnetbios.vxd enable_win16
15301 wine_fn_config_dll vtdapi.vxd enable_win16
15302 wine_fn_config_dll vwin32.vxd enable_win16
15303 wine_fn_config_dll w32skrnl enable_win16
15304 wine_fn_config_dll w32sys.dll16 enable_win16
15305 wine_fn_config_dll wbemprox enable_wbemprox
15306 wine_fn_config_dll wer enable_wer implib
15307 wine_fn_config_test dlls/wer/tests wer_test
15308 wine_fn_config_dll wiaservc enable_wiaservc
15309 wine_fn_config_dll win32s16.dll16 enable_win16
15310 wine_fn_config_dll win87em.dll16 enable_win16
15311 wine_fn_config_dll winaspi.dll16 enable_win16
15312 wine_fn_config_dll windebug.dll16 enable_win16
15313 wine_fn_config_dll windowscodecs enable_windowscodecs implib
15314 wine_fn_config_test dlls/windowscodecs/tests windowscodecs_test
15315 wine_fn_config_dll winealsa.drv enable_winealsa_drv
15316 wine_fn_config_dll winecoreaudio.drv enable_winecoreaudio_drv
15317 wine_fn_config_lib winecrt0
15318 wine_fn_config_dll wined3d enable_wined3d implib
15319 wine_fn_config_dll wineesd.drv enable_wineesd_drv
15320 wine_fn_config_dll winegstreamer enable_winegstreamer
15321 wine_fn_config_dll winejack.drv enable_winejack_drv
15322 wine_fn_config_dll winejoystick.drv enable_winejoystick_drv
15323 wine_fn_config_dll winemapi enable_winemapi
15324 wine_fn_config_dll winemp3.acm enable_winemp3_acm
15325 wine_fn_config_dll winenas.drv enable_winenas_drv
15326 wine_fn_config_dll wineoss.drv enable_wineoss_drv
15327 wine_fn_config_dll wineps.drv enable_wineps_drv
15328 wine_fn_config_dll wineps16.drv16 enable_win16
15329 wine_fn_config_dll wineqtdecoder enable_wineqtdecoder
15330 wine_fn_config_dll winequartz.drv enable_winequartz_drv
15331 wine_fn_config_dll winex11.drv enable_winex11_drv
15332 wine_fn_config_dll wing.dll16 enable_win16
15333 wine_fn_config_dll wing32 enable_wing32
15334 wine_fn_config_dll winhttp enable_winhttp implib
15335 wine_fn_config_test dlls/winhttp/tests winhttp_test
15336 wine_fn_config_dll wininet enable_wininet implib
15337 wine_fn_config_test dlls/wininet/tests wininet_test
15338 wine_fn_config_dll winmm enable_winmm implib
15339 wine_fn_config_test dlls/winmm/tests winmm_test
15340 wine_fn_config_dll winnls.dll16 enable_win16
15341 wine_fn_config_dll winnls32 enable_winnls32 implib
15342 wine_fn_config_dll winscard enable_winscard implib
15343 wine_fn_config_dll winsock.dll16 enable_win16
15344 wine_fn_config_dll winspool.drv enable_winspool_drv implib winspool
15345 wine_fn_config_test dlls/winspool.drv/tests winspool.drv_test
15346 wine_fn_config_dll wintab.dll16 enable_win16
15347 wine_fn_config_dll wintab32 enable_wintab32 implib
15348 wine_fn_config_test dlls/wintab32/tests wintab32_test
15349 wine_fn_config_dll wintrust enable_wintrust implib
15350 wine_fn_config_test dlls/wintrust/tests wintrust_test
15351 wine_fn_config_dll wlanapi enable_wlanapi
15352 wine_fn_config_dll wldap32 enable_wldap32 implib
15353 wine_fn_config_test dlls/wldap32/tests wldap32_test
15354 wine_fn_config_dll wmi enable_wmi
15355 wine_fn_config_dll wmiutils enable_wmiutils
15356 wine_fn_config_dll wnaspi32 enable_wnaspi32 implib
15357 wine_fn_config_dll wow32 enable_win16 implib
15358 wine_fn_config_dll ws2_32 enable_ws2_32 implib
15359 wine_fn_config_test dlls/ws2_32/tests ws2_32_test
15360 wine_fn_config_dll wsock32 enable_wsock32 implib
15361 wine_fn_config_dll wtsapi32 enable_wtsapi32 implib
15362 wine_fn_config_dll wuapi enable_wuapi
15363 wine_fn_config_dll wuaueng enable_wuaueng
15364 wine_fn_config_dll xapofx1_1 enable_xapofx1_1
15365 wine_fn_config_dll xinput1_1 enable_xinput1_1
15366 wine_fn_config_dll xinput1_2 enable_xinput1_2
15367 wine_fn_config_dll xinput1_3 enable_xinput1_3 implib xinput
15368 wine_fn_config_test dlls/xinput1_3/tests xinput1_3_test
15369 wine_fn_config_dll xinput9_1_0 enable_xinput9_1_0
15370 wine_fn_config_dll xmllite enable_xmllite
15371 wine_fn_config_test dlls/xmllite/tests xmllite_test
15372 wine_fn_config_makefile documentation enable_documentation
15373 wine_fn_config_makefile fonts enable_fonts
15374 wine_fn_config_makefile include enable_include
15375 wine_fn_config_makefile libs/port enable_libs_port
15376 wine_fn_config_makefile libs/wine enable_libs_wine
15377 wine_fn_config_makefile libs/wpp enable_libs_wpp
15378 wine_fn_config_makefile loader enable_loader
15379 wine_fn_config_program aspnet_regiis enable_aspnet_regiis install
15380 wine_fn_config_program attrib enable_attrib install
15381 wine_fn_config_program cacls enable_cacls install
15382 wine_fn_config_program clock enable_clock install
15383 wine_fn_config_program cmd enable_cmd install
15384 wine_fn_config_test programs/cmd/tests cmd.exe_test
15385 wine_fn_config_program cmdlgtst enable_cmdlgtst
15386 wine_fn_config_program control enable_control install
15387 wine_fn_config_program dxdiag enable_dxdiag install
15388 wine_fn_config_program eject enable_eject install
15389 wine_fn_config_program expand enable_expand install
15390 wine_fn_config_program explorer enable_explorer install
15391 wine_fn_config_program extrac32 enable_extrac32 install
15392 wine_fn_config_program hh enable_hh install
15393 wine_fn_config_program icinfo enable_icinfo install
15394 wine_fn_config_program iexplore enable_iexplore install
15395 wine_fn_config_program ipconfig enable_ipconfig install
15396 wine_fn_config_program lodctr enable_lodctr install
15397 wine_fn_config_program mofcomp enable_mofcomp install
15398 wine_fn_config_program mshta enable_mshta install
15399 wine_fn_config_program msiexec enable_msiexec install,installbin
15400 wine_fn_config_program net enable_net install
15401 wine_fn_config_program netsh enable_netsh install
15402 wine_fn_config_program ngen enable_ngen install
15403 wine_fn_config_program notepad enable_notepad install,installbin
15404 wine_fn_config_program oleview enable_oleview install
15405 wine_fn_config_program ping enable_ping install
15406 wine_fn_config_program progman enable_progman install
15407 wine_fn_config_program reg enable_reg install
15408 wine_fn_config_program regedit enable_regedit install,installbin
15409 wine_fn_config_test programs/regedit/tests regedit.exe_test
15410 wine_fn_config_program regsvcs enable_regsvcs install
15411 wine_fn_config_program regsvr32 enable_regsvr32 install,installbin
15412 wine_fn_config_program rpcss enable_rpcss install
15413 wine_fn_config_program rundll.exe16 enable_win16 install
15414 wine_fn_config_program rundll32 enable_rundll32 install
15415 wine_fn_config_program sc enable_sc install
15416 wine_fn_config_program secedit enable_secedit install
15417 wine_fn_config_program servicemodelreg enable_servicemodelreg install
15418 wine_fn_config_program services enable_services install
15419 wine_fn_config_program spoolsv enable_spoolsv install
15420 wine_fn_config_program start enable_start install
15421 wine_fn_config_program svchost enable_svchost install
15422 wine_fn_config_program taskkill enable_taskkill install
15423 wine_fn_config_program taskmgr enable_taskmgr install
15424 wine_fn_config_program termsv enable_termsv install
15425 wine_fn_config_program uninstaller enable_uninstaller install
15426 wine_fn_config_program unlodctr enable_unlodctr install
15427 wine_fn_config_program view enable_view
15428 wine_fn_config_program wineboot enable_wineboot install,installbin
15429 wine_fn_config_program winebrowser enable_winebrowser install
15430 wine_fn_config_program winecfg enable_winecfg install,installbin
15431 wine_fn_config_program wineconsole enable_wineconsole install,installbin
15432 wine_fn_config_program winedbg enable_winedbg install,installbin
15433 wine_fn_config_program winedevice enable_winedevice install
15434 wine_fn_config_program winefile enable_winefile install,installbin
15435 wine_fn_config_program winemenubuilder enable_winemenubuilder install
15436 wine_fn_config_program winemine enable_winemine install,installbin
15437 wine_fn_config_program winepath enable_winepath install,installbin
15438 wine_fn_config_program winetest enable_winetest
15439 wine_fn_config_program winevdm enable_win16 install
15440 wine_fn_config_program winhelp.exe16 enable_win16 install
15441 wine_fn_config_program winhlp32 enable_winhlp32 install
15442 wine_fn_config_program winoldap.mod16 enable_win16 install
15443 wine_fn_config_program winver enable_winver install
15444 wine_fn_config_program wmic enable_wmic install
15445 wine_fn_config_program wordpad enable_wordpad install
15446 wine_fn_config_program write enable_write install
15447 wine_fn_config_program wscript enable_wscript install
15448 wine_fn_config_program xcopy enable_xcopy install
15449 wine_fn_config_makefile server enable_server
15450 wine_fn_config_tool tools
15451 wine_fn_config_tool tools/widl
15452 wine_fn_config_tool tools/winebuild
15453 wine_fn_config_tool tools/winedump
15454 wine_fn_config_tool tools/winegcc
15455 wine_fn_config_tool tools/wmc
15456 wine_fn_config_tool tools/wrc
15457
15458 LINGUAS="\
15459 cs \
15460 da \
15461 de \
15462 en_US \
15463 eo \
15464 es \
15465 fi \
15466 fr \
15467 he \
15468 hi \
15469 hu \
15470 it \
15471 ja \
15472 ko \
15473 lt \
15474 ml \
15475 nb_NO \
15476 nl \
15477 or \
15478 pa \
15479 pl \
15480 pt_BR \
15481 pt_PT \
15482 ro \
15483 ru \
15484 sk \
15485 sl \
15486 sr_Latn_SP \
15487 sr_SP \
15488 sv \
15489 te \
15490 th \
15491 tr \
15492 uk \
15493 wa \
15494 zh_CN \
15495 zh_TW"
15496
15497
15498
15499 ac_config_commands="$ac_config_commands Makefile"
15500
15501
15502 ac_config_files="$ac_config_files Make.tmp:Make.vars.in:Makefile.in"
15503
15504
15505
15506 if test "x$enable_maintainer_mode" = xyes
15507 then
15508     wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(srcdir)/configure: configure.ac aclocal.m4
15509         cd \$(srcdir) && autoconf --warnings=all
15510 \$(srcdir)/include/config.h.in: include/stamp-h.in
15511 \$(srcdir)/include/stamp-h.in: configure.ac aclocal.m4
15512         cd \$(srcdir) && autoheader --warnings=all
15513         @echo timestamp > \$@"
15514 fi
15515
15516 if test -n "$with_wine64"
15517 then
15518 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "all: fonts server $with_wine64/loader/wine $with_wine64/loader/wine-preloader
15519 fonts server:
15520         \$(RM) \$@ && \$(LN_S) $with_wine64/\$@ \$@
15521 $with_wine64/loader/wine:
15522         \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine \$@
15523 $with_wine64/loader/wine-preloader:
15524         \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine-preloader \$@
15525 clean::
15526         \$(RM) fonts server $with_wine64/loader/wine $with_wine64/loader/wine-preloader"
15527 fi
15528
15529 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "uninstall::
15530         -rmdir \$(DESTDIR)\$(datadir)/wine \$(DESTDIR)\$(fakedlldir) \$(DESTDIR)\$(dlldir)"
15531
15532 cat >confcache <<\_ACEOF
15533 # This file is a shell script that caches the results of configure
15534 # tests run on this system so they can be shared between configure
15535 # scripts and configure runs, see configure's option --config-cache.
15536 # It is not useful on other systems.  If it contains results you don't
15537 # want to keep, you may remove or edit it.
15538 #
15539 # config.status only pays attention to the cache file if you give it
15540 # the --recheck option to rerun configure.
15541 #
15542 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15543 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15544 # following values.
15545
15546 _ACEOF
15547
15548 # The following way of writing the cache mishandles newlines in values,
15549 # but we know of no workaround that is simple, portable, and efficient.
15550 # So, we kill variables containing newlines.
15551 # Ultrix sh set writes to stderr and can't be redirected directly,
15552 # and sets the high bit in the cache file unless we assign to the vars.
15553 (
15554   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15555     eval ac_val=\$$ac_var
15556     case $ac_val in #(
15557     *${as_nl}*)
15558       case $ac_var in #(
15559       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15560 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15561       esac
15562       case $ac_var in #(
15563       _ | IFS | as_nl) ;; #(
15564       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15565       *) { eval $ac_var=; unset $ac_var;} ;;
15566       esac ;;
15567     esac
15568   done
15569
15570   (set) 2>&1 |
15571     case $as_nl`(ac_space=' '; set) 2>&1` in #(
15572     *${as_nl}ac_space=\ *)
15573       # `set' does not quote correctly, so add quotes: double-quote
15574       # substitution turns \\\\ into \\, and sed turns \\ into \.
15575       sed -n \
15576         "s/'/'\\\\''/g;
15577           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15578       ;; #(
15579     *)
15580       # `set' quotes correctly as required by POSIX, so do not add quotes.
15581       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15582       ;;
15583     esac |
15584     sort
15585 ) |
15586   sed '
15587      /^ac_cv_env_/b end
15588      t clear
15589      :clear
15590      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15591      t end
15592      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15593      :end' >>confcache
15594 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15595   if test -w "$cache_file"; then
15596     test "x$cache_file" != "x/dev/null" &&
15597       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15598 $as_echo "$as_me: updating cache $cache_file" >&6;}
15599     cat confcache >$cache_file
15600   else
15601     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15602 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15603   fi
15604 fi
15605 rm -f confcache
15606
15607 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15608 # Let make expand exec_prefix.
15609 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15610
15611 DEFS=-DHAVE_CONFIG_H
15612
15613 ac_libobjs=
15614 ac_ltlibobjs=
15615 U=
15616 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15617   # 1. Remove the extension, and $U if already installed.
15618   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15619   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15620   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15621   #    will be set to the directory where LIBOBJS objects are built.
15622   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15623   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15624 done
15625 LIBOBJS=$ac_libobjs
15626
15627 LTLIBOBJS=$ac_ltlibobjs
15628
15629
15630
15631 : ${CONFIG_STATUS=./config.status}
15632 ac_write_fail=0
15633 ac_clean_files_save=$ac_clean_files
15634 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15635 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15636 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15637 as_write_fail=0
15638 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15639 #! $SHELL
15640 # Generated by $as_me.
15641 # Run this file to recreate the current configuration.
15642 # Compiler output produced by configure, useful for debugging
15643 # configure, is in config.log if it exists.
15644
15645 debug=false
15646 ac_cs_recheck=false
15647 ac_cs_silent=false
15648
15649 SHELL=\${CONFIG_SHELL-$SHELL}
15650 export SHELL
15651 _ASEOF
15652 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15653 ## -------------------- ##
15654 ## M4sh Initialization. ##
15655 ## -------------------- ##
15656
15657 # Be more Bourne compatible
15658 DUALCASE=1; export DUALCASE # for MKS sh
15659 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15660   emulate sh
15661   NULLCMD=:
15662   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15663   # is contrary to our usage.  Disable this feature.
15664   alias -g '${1+"$@"}'='"$@"'
15665   setopt NO_GLOB_SUBST
15666 else
15667   case `(set -o) 2>/dev/null` in #(
15668   *posix*) :
15669     set -o posix ;; #(
15670   *) :
15671      ;;
15672 esac
15673 fi
15674
15675
15676 as_nl='
15677 '
15678 export as_nl
15679 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15680 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15681 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15682 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15683 # Prefer a ksh shell builtin over an external printf program on Solaris,
15684 # but without wasting forks for bash or zsh.
15685 if test -z "$BASH_VERSION$ZSH_VERSION" \
15686     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15687   as_echo='print -r --'
15688   as_echo_n='print -rn --'
15689 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15690   as_echo='printf %s\n'
15691   as_echo_n='printf %s'
15692 else
15693   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15694     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15695     as_echo_n='/usr/ucb/echo -n'
15696   else
15697     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15698     as_echo_n_body='eval
15699       arg=$1;
15700       case $arg in #(
15701       *"$as_nl"*)
15702         expr "X$arg" : "X\\(.*\\)$as_nl";
15703         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15704       esac;
15705       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15706     '
15707     export as_echo_n_body
15708     as_echo_n='sh -c $as_echo_n_body as_echo'
15709   fi
15710   export as_echo_body
15711   as_echo='sh -c $as_echo_body as_echo'
15712 fi
15713
15714 # The user is always right.
15715 if test "${PATH_SEPARATOR+set}" != set; then
15716   PATH_SEPARATOR=:
15717   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15718     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15719       PATH_SEPARATOR=';'
15720   }
15721 fi
15722
15723
15724 # IFS
15725 # We need space, tab and new line, in precisely that order.  Quoting is
15726 # there to prevent editors from complaining about space-tab.
15727 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15728 # splitting by setting IFS to empty value.)
15729 IFS=" ""        $as_nl"
15730
15731 # Find who we are.  Look in the path if we contain no directory separator.
15732 case $0 in #((
15733   *[\\/]* ) as_myself=$0 ;;
15734   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15735 for as_dir in $PATH
15736 do
15737   IFS=$as_save_IFS
15738   test -z "$as_dir" && as_dir=.
15739     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15740   done
15741 IFS=$as_save_IFS
15742
15743      ;;
15744 esac
15745 # We did not find ourselves, most probably we were run as `sh COMMAND'
15746 # in which case we are not to be found in the path.
15747 if test "x$as_myself" = x; then
15748   as_myself=$0
15749 fi
15750 if test ! -f "$as_myself"; then
15751   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15752   exit 1
15753 fi
15754
15755 # Unset variables that we do not need and which cause bugs (e.g. in
15756 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15757 # suppresses any "Segmentation fault" message there.  '((' could
15758 # trigger a bug in pdksh 5.2.14.
15759 for as_var in BASH_ENV ENV MAIL MAILPATH
15760 do eval test x\${$as_var+set} = xset \
15761   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15762 done
15763 PS1='$ '
15764 PS2='> '
15765 PS4='+ '
15766
15767 # NLS nuisances.
15768 LC_ALL=C
15769 export LC_ALL
15770 LANGUAGE=C
15771 export LANGUAGE
15772
15773 # CDPATH.
15774 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15775
15776
15777 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15778 # ----------------------------------------
15779 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15780 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15781 # script with STATUS, using 1 if that was 0.
15782 as_fn_error ()
15783 {
15784   as_status=$1; test $as_status -eq 0 && as_status=1
15785   if test "$4"; then
15786     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15787     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15788   fi
15789   $as_echo "$as_me: error: $2" >&2
15790   as_fn_exit $as_status
15791 } # as_fn_error
15792
15793
15794 # as_fn_set_status STATUS
15795 # -----------------------
15796 # Set $? to STATUS, without forking.
15797 as_fn_set_status ()
15798 {
15799   return $1
15800 } # as_fn_set_status
15801
15802 # as_fn_exit STATUS
15803 # -----------------
15804 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15805 as_fn_exit ()
15806 {
15807   set +e
15808   as_fn_set_status $1
15809   exit $1
15810 } # as_fn_exit
15811
15812 # as_fn_unset VAR
15813 # ---------------
15814 # Portably unset VAR.
15815 as_fn_unset ()
15816 {
15817   { eval $1=; unset $1;}
15818 }
15819 as_unset=as_fn_unset
15820 # as_fn_append VAR VALUE
15821 # ----------------------
15822 # Append the text in VALUE to the end of the definition contained in VAR. Take
15823 # advantage of any shell optimizations that allow amortized linear growth over
15824 # repeated appends, instead of the typical quadratic growth present in naive
15825 # implementations.
15826 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15827   eval 'as_fn_append ()
15828   {
15829     eval $1+=\$2
15830   }'
15831 else
15832   as_fn_append ()
15833   {
15834     eval $1=\$$1\$2
15835   }
15836 fi # as_fn_append
15837
15838 # as_fn_arith ARG...
15839 # ------------------
15840 # Perform arithmetic evaluation on the ARGs, and store the result in the
15841 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15842 # must be portable across $(()) and expr.
15843 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15844   eval 'as_fn_arith ()
15845   {
15846     as_val=$(( $* ))
15847   }'
15848 else
15849   as_fn_arith ()
15850   {
15851     as_val=`expr "$@" || test $? -eq 1`
15852   }
15853 fi # as_fn_arith
15854
15855
15856 if expr a : '\(a\)' >/dev/null 2>&1 &&
15857    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15858   as_expr=expr
15859 else
15860   as_expr=false
15861 fi
15862
15863 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15864   as_basename=basename
15865 else
15866   as_basename=false
15867 fi
15868
15869 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15870   as_dirname=dirname
15871 else
15872   as_dirname=false
15873 fi
15874
15875 as_me=`$as_basename -- "$0" ||
15876 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15877          X"$0" : 'X\(//\)$' \| \
15878          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15879 $as_echo X/"$0" |
15880     sed '/^.*\/\([^/][^/]*\)\/*$/{
15881             s//\1/
15882             q
15883           }
15884           /^X\/\(\/\/\)$/{
15885             s//\1/
15886             q
15887           }
15888           /^X\/\(\/\).*/{
15889             s//\1/
15890             q
15891           }
15892           s/.*/./; q'`
15893
15894 # Avoid depending upon Character Ranges.
15895 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15896 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15897 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15898 as_cr_digits='0123456789'
15899 as_cr_alnum=$as_cr_Letters$as_cr_digits
15900
15901 ECHO_C= ECHO_N= ECHO_T=
15902 case `echo -n x` in #(((((
15903 -n*)
15904   case `echo 'xy\c'` in
15905   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
15906   xy)  ECHO_C='\c';;
15907   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15908        ECHO_T=' ';;
15909   esac;;
15910 *)
15911   ECHO_N='-n';;
15912 esac
15913
15914 rm -f conf$$ conf$$.exe conf$$.file
15915 if test -d conf$$.dir; then
15916   rm -f conf$$.dir/conf$$.file
15917 else
15918   rm -f conf$$.dir
15919   mkdir conf$$.dir 2>/dev/null
15920 fi
15921 if (echo >conf$$.file) 2>/dev/null; then
15922   if ln -s conf$$.file conf$$ 2>/dev/null; then
15923     as_ln_s='ln -s'
15924     # ... but there are two gotchas:
15925     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15926     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15927     # In both cases, we have to default to `cp -p'.
15928     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15929       as_ln_s='cp -p'
15930   elif ln conf$$.file conf$$ 2>/dev/null; then
15931     as_ln_s=ln
15932   else
15933     as_ln_s='cp -p'
15934   fi
15935 else
15936   as_ln_s='cp -p'
15937 fi
15938 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15939 rmdir conf$$.dir 2>/dev/null
15940
15941
15942 # as_fn_mkdir_p
15943 # -------------
15944 # Create "$as_dir" as a directory, including parents if necessary.
15945 as_fn_mkdir_p ()
15946 {
15947
15948   case $as_dir in #(
15949   -*) as_dir=./$as_dir;;
15950   esac
15951   test -d "$as_dir" || eval $as_mkdir_p || {
15952     as_dirs=
15953     while :; do
15954       case $as_dir in #(
15955       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15956       *) as_qdir=$as_dir;;
15957       esac
15958       as_dirs="'$as_qdir' $as_dirs"
15959       as_dir=`$as_dirname -- "$as_dir" ||
15960 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15961          X"$as_dir" : 'X\(//\)[^/]' \| \
15962          X"$as_dir" : 'X\(//\)$' \| \
15963          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15964 $as_echo X"$as_dir" |
15965     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15966             s//\1/
15967             q
15968           }
15969           /^X\(\/\/\)[^/].*/{
15970             s//\1/
15971             q
15972           }
15973           /^X\(\/\/\)$/{
15974             s//\1/
15975             q
15976           }
15977           /^X\(\/\).*/{
15978             s//\1/
15979             q
15980           }
15981           s/.*/./; q'`
15982       test -d "$as_dir" && break
15983     done
15984     test -z "$as_dirs" || eval "mkdir $as_dirs"
15985   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15986
15987
15988 } # as_fn_mkdir_p
15989 if mkdir -p . 2>/dev/null; then
15990   as_mkdir_p='mkdir -p "$as_dir"'
15991 else
15992   test -d ./-p && rmdir ./-p
15993   as_mkdir_p=false
15994 fi
15995
15996 if test -x / >/dev/null 2>&1; then
15997   as_test_x='test -x'
15998 else
15999   if ls -dL / >/dev/null 2>&1; then
16000     as_ls_L_option=L
16001   else
16002     as_ls_L_option=
16003   fi
16004   as_test_x='
16005     eval sh -c '\''
16006       if test -d "$1"; then
16007         test -d "$1/.";
16008       else
16009         case $1 in #(
16010         -*)set "./$1";;
16011         esac;
16012         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16013         ???[sx]*):;;*)false;;esac;fi
16014     '\'' sh
16015   '
16016 fi
16017 as_executable_p=$as_test_x
16018
16019 # Sed expression to map a string onto a valid CPP name.
16020 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16021
16022 # Sed expression to map a string onto a valid variable name.
16023 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16024
16025
16026 exec 6>&1
16027 ## ----------------------------------- ##
16028 ## Main body of $CONFIG_STATUS script. ##
16029 ## ----------------------------------- ##
16030 _ASEOF
16031 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16032
16033 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16034 # Save the log message, to keep $0 and so on meaningful, and to
16035 # report actual input values of CONFIG_FILES etc. instead of their
16036 # values after options handling.
16037 ac_log="
16038 This file was extended by Wine $as_me 1.3.10, which was
16039 generated by GNU Autoconf 2.67.  Invocation command line was
16040
16041   CONFIG_FILES    = $CONFIG_FILES
16042   CONFIG_HEADERS  = $CONFIG_HEADERS
16043   CONFIG_LINKS    = $CONFIG_LINKS
16044   CONFIG_COMMANDS = $CONFIG_COMMANDS
16045   $ $0 $@
16046
16047 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16048 "
16049
16050 _ACEOF
16051
16052 case $ac_config_files in *"
16053 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16054 esac
16055
16056 case $ac_config_headers in *"
16057 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16058 esac
16059
16060
16061 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16062 # Files that config.status was made for.
16063 config_files="$ac_config_files"
16064 config_headers="$ac_config_headers"
16065 config_links="$ac_config_links"
16066 config_commands="$ac_config_commands"
16067
16068 _ACEOF
16069
16070 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16071 ac_cs_usage="\
16072 \`$as_me' instantiates files and other configuration actions
16073 from templates according to the current configuration.  Unless the files
16074 and actions are specified as TAGs, all are instantiated by default.
16075
16076 Usage: $0 [OPTION]... [TAG]...
16077
16078   -h, --help       print this help, then exit
16079   -V, --version    print version number and configuration settings, then exit
16080       --config     print configuration, then exit
16081   -q, --quiet, --silent
16082                    do not print progress messages
16083   -d, --debug      don't remove temporary files
16084       --recheck    update $as_me by reconfiguring in the same conditions
16085       --file=FILE[:TEMPLATE]
16086                    instantiate the configuration file FILE
16087       --header=FILE[:TEMPLATE]
16088                    instantiate the configuration header FILE
16089
16090 Configuration files:
16091 $config_files
16092
16093 Configuration headers:
16094 $config_headers
16095
16096 Configuration links:
16097 $config_links
16098
16099 Configuration commands:
16100 $config_commands
16101
16102 Report bugs to <wine-devel@winehq.org>.
16103 Wine home page: <http://www.winehq.org>."
16104
16105 _ACEOF
16106 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16107 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16108 ac_cs_version="\\
16109 Wine config.status 1.3.10
16110 configured by $0, generated by GNU Autoconf 2.67,
16111   with options \\"\$ac_cs_config\\"
16112
16113 Copyright (C) 2010 Free Software Foundation, Inc.
16114 This config.status script is free software; the Free Software Foundation
16115 gives unlimited permission to copy, distribute and modify it."
16116
16117 ac_pwd='$ac_pwd'
16118 srcdir='$srcdir'
16119 INSTALL='$INSTALL'
16120 test -n "\$AWK" || AWK=awk
16121 _ACEOF
16122
16123 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16124 # The default lists apply if the user does not specify any file.
16125 ac_need_defaults=:
16126 while test $# != 0
16127 do
16128   case $1 in
16129   --*=?*)
16130     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16131     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16132     ac_shift=:
16133     ;;
16134   --*=)
16135     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16136     ac_optarg=
16137     ac_shift=:
16138     ;;
16139   *)
16140     ac_option=$1
16141     ac_optarg=$2
16142     ac_shift=shift
16143     ;;
16144   esac
16145
16146   case $ac_option in
16147   # Handling of the options.
16148   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16149     ac_cs_recheck=: ;;
16150   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16151     $as_echo "$ac_cs_version"; exit ;;
16152   --config | --confi | --conf | --con | --co | --c )
16153     $as_echo "$ac_cs_config"; exit ;;
16154   --debug | --debu | --deb | --de | --d | -d )
16155     debug=: ;;
16156   --file | --fil | --fi | --f )
16157     $ac_shift
16158     case $ac_optarg in
16159     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16160     '') as_fn_error $? "missing file argument" ;;
16161     esac
16162     as_fn_append CONFIG_FILES " '$ac_optarg'"
16163     ac_need_defaults=false;;
16164   --header | --heade | --head | --hea )
16165     $ac_shift
16166     case $ac_optarg in
16167     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16168     esac
16169     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16170     ac_need_defaults=false;;
16171   --he | --h)
16172     # Conflict between --help and --header
16173     as_fn_error $? "ambiguous option: \`$1'
16174 Try \`$0 --help' for more information.";;
16175   --help | --hel | -h )
16176     $as_echo "$ac_cs_usage"; exit ;;
16177   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16178   | -silent | --silent | --silen | --sile | --sil | --si | --s)
16179     ac_cs_silent=: ;;
16180
16181   # This is an error.
16182   -*) as_fn_error $? "unrecognized option: \`$1'
16183 Try \`$0 --help' for more information." ;;
16184
16185   *) as_fn_append ac_config_targets " $1"
16186      ac_need_defaults=false ;;
16187
16188   esac
16189   shift
16190 done
16191
16192 ac_configure_extra_args=
16193
16194 if $ac_cs_silent; then
16195   exec 6>/dev/null
16196   ac_configure_extra_args="$ac_configure_extra_args --silent"
16197 fi
16198
16199 _ACEOF
16200 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16201 if \$ac_cs_recheck; then
16202   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16203   shift
16204   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16205   CONFIG_SHELL='$SHELL'
16206   export CONFIG_SHELL
16207   exec "\$@"
16208 fi
16209
16210 _ACEOF
16211 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16212 exec 5>>config.log
16213 {
16214   echo
16215   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16216 ## Running $as_me. ##
16217 _ASBOX
16218   $as_echo "$ac_log"
16219 } >&5
16220
16221 _ACEOF
16222 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16223 #
16224 # INIT-COMMANDS
16225 #
16226 wine_fn_output_makefile ()
16227 {
16228     cat Make.tmp - <<\_WINE_EOF >\$tmp/makefile && mv -f \$tmp/makefile \$1 && rm -f Make.tmp && return
16229 $ALL_MAKEFILE_DEPENDS
16230 _WINE_EOF
16231     as_fn_error $? "could not create Makefile" "$LINENO" 5
16232 }
16233
16234 _ACEOF
16235
16236 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16237
16238 # Handling of arguments.
16239 for ac_config_target in $ac_config_targets
16240 do
16241   case $ac_config_target in
16242     "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
16243     "include/stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/stamp-h" ;;
16244     "dlls/shell32/AUTHORS") CONFIG_LINKS="$CONFIG_LINKS dlls/shell32/AUTHORS:AUTHORS" ;;
16245     "dlls/wineps.drv/generic.ppd") CONFIG_LINKS="$CONFIG_LINKS dlls/wineps.drv/generic.ppd:dlls/wineps.drv/generic.ppd" ;;
16246     "fonts/marlett.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/marlett.ttf:fonts/marlett.ttf" ;;
16247     "fonts/symbol.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/symbol.ttf:fonts/symbol.ttf" ;;
16248     "fonts/tahoma.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahoma.ttf:fonts/tahoma.ttf" ;;
16249     "fonts/tahomabd.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahomabd.ttf:fonts/tahomabd.ttf" ;;
16250     "tools/l_intl.nls") CONFIG_LINKS="$CONFIG_LINKS tools/l_intl.nls:tools/l_intl.nls" ;;
16251     "wine") CONFIG_LINKS="$CONFIG_LINKS wine:tools/winewrapper" ;;
16252     "dlls/gdi32/enhmfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/enhmfdrv" ;;
16253     "dlls/gdi32/mfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/mfdrv" ;;
16254     "dlls/kernel32/nls") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel32/nls" ;;
16255     "dlls/user32/resources") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user32/resources" ;;
16256     "dlls/wineps.drv/data") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps.drv/data" ;;
16257     "include/wine") CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
16258     "Make.rules") CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
16259     "Maketest.rules") CONFIG_FILES="$CONFIG_FILES Maketest.rules" ;;
16260     "dlls/Makedll.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
16261     "dlls/Makeimplib.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makeimplib.rules" ;;
16262     "programs/Makeprog.rules") CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
16263     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
16264     "Make.tmp") CONFIG_FILES="$CONFIG_FILES Make.tmp:Make.vars.in:Makefile.in" ;;
16265
16266   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
16267   esac
16268 done
16269
16270
16271 # If the user did not use the arguments to specify the items to instantiate,
16272 # then the envvar interface is used.  Set only those that are not.
16273 # We use the long form for the default assignment because of an extremely
16274 # bizarre bug on SunOS 4.1.3.
16275 if $ac_need_defaults; then
16276   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16277   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16278   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
16279   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16280 fi
16281
16282 # Have a temporary directory for convenience.  Make it in the build tree
16283 # simply because there is no reason against having it here, and in addition,
16284 # creating and moving files from /tmp can sometimes cause problems.
16285 # Hook for its removal unless debugging.
16286 # Note that there is a small window in which the directory will not be cleaned:
16287 # after its creation but before its name has been assigned to `$tmp'.
16288 $debug ||
16289 {
16290   tmp=
16291   trap 'exit_status=$?
16292   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16293 ' 0
16294   trap 'as_fn_exit 1' 1 2 13 15
16295 }
16296 # Create a (secure) tmp directory for tmp files.
16297
16298 {
16299   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16300   test -n "$tmp" && test -d "$tmp"
16301 }  ||
16302 {
16303   tmp=./conf$$-$RANDOM
16304   (umask 077 && mkdir "$tmp")
16305 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16306
16307 # Set up the scripts for CONFIG_FILES section.
16308 # No need to generate them if there are no CONFIG_FILES.
16309 # This happens for instance with `./config.status config.h'.
16310 if test -n "$CONFIG_FILES"; then
16311
16312 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16313   ac_cs_awk_getline=:
16314   ac_cs_awk_pipe_init=
16315   ac_cs_awk_read_file='
16316       while ((getline aline < (F[key])) > 0)
16317         print(aline)
16318       close(F[key])'
16319   ac_cs_awk_pipe_fini=
16320 else
16321   ac_cs_awk_getline=false
16322   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16323   ac_cs_awk_read_file='
16324       print "|#_!!_#|"
16325       print "cat " F[key] " &&"
16326       '$ac_cs_awk_pipe_init
16327   # The final `:' finishes the AND list.
16328   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16329 fi
16330 ac_cr=`echo X | tr X '\015'`
16331 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16332 # But we know of no other shell where ac_cr would be empty at this
16333 # point, so we can use a bashism as a fallback.
16334 if test "x$ac_cr" = x; then
16335   eval ac_cr=\$\'\\r\'
16336 fi
16337 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16338 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16339   ac_cs_awk_cr='\\r'
16340 else
16341   ac_cs_awk_cr=$ac_cr
16342 fi
16343
16344 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16345 _ACEOF
16346
16347 # Create commands to substitute file output variables.
16348 {
16349   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16350   echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
16351   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16352   echo "_ACAWK" &&
16353   echo "_ACEOF"
16354 } >conf$$files.sh &&
16355 . ./conf$$files.sh ||
16356   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16357 rm -f conf$$files.sh
16358
16359 {
16360   echo "cat >conf$$subs.awk <<_ACEOF" &&
16361   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16362   echo "_ACEOF"
16363 } >conf$$subs.sh ||
16364   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16365 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16366 ac_delim='%!_!# '
16367 for ac_last_try in false false false false false :; do
16368   . ./conf$$subs.sh ||
16369     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16370
16371   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16372   if test $ac_delim_n = $ac_delim_num; then
16373     break
16374   elif $ac_last_try; then
16375     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16376   else
16377     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16378   fi
16379 done
16380 rm -f conf$$subs.sh
16381
16382 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16383 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16384 _ACEOF
16385 sed -n '
16386 h
16387 s/^/S["/; s/!.*/"]=/
16388 p
16389 g
16390 s/^[^!]*!//
16391 :repl
16392 t repl
16393 s/'"$ac_delim"'$//
16394 t delim
16395 :nl
16396 h
16397 s/\(.\{148\}\)..*/\1/
16398 t more1
16399 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16400 p
16401 n
16402 b repl
16403 :more1
16404 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16405 p
16406 g
16407 s/.\{148\}//
16408 t nl
16409 :delim
16410 h
16411 s/\(.\{148\}\)..*/\1/
16412 t more2
16413 s/["\\]/\\&/g; s/^/"/; s/$/"/
16414 p
16415 b
16416 :more2
16417 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16418 p
16419 g
16420 s/.\{148\}//
16421 t delim
16422 ' <conf$$subs.awk | sed '
16423 /^[^""]/{
16424   N
16425   s/\n//
16426 }
16427 ' >>$CONFIG_STATUS || ac_write_fail=1
16428 rm -f conf$$subs.awk
16429 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16430 _ACAWK
16431 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16432   for (key in S) S_is_set[key] = 1
16433   FS = "\a"
16434   \$ac_cs_awk_pipe_init
16435 }
16436 {
16437   line = $ 0
16438   nfields = split(line, field, "@")
16439   substed = 0
16440   len = length(field[1])
16441   for (i = 2; i < nfields; i++) {
16442     key = field[i]
16443     keylen = length(key)
16444     if (S_is_set[key]) {
16445       value = S[key]
16446       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16447       len += length(value) + length(field[++i])
16448       substed = 1
16449     } else
16450       len += 1 + keylen
16451   }
16452   if (nfields == 3 && !substed) {
16453     key = field[2]
16454     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
16455       \$ac_cs_awk_read_file
16456       next
16457     }
16458   }
16459   print line
16460 }
16461 \$ac_cs_awk_pipe_fini
16462 _ACAWK
16463 _ACEOF
16464 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16465 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16466   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16467 else
16468   cat
16469 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16470   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16471 _ACEOF
16472
16473 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16474 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16475 # trailing colons and then remove the whole line if VPATH becomes empty
16476 # (actually we leave an empty line to preserve line numbers).
16477 if test "x$srcdir" = x.; then
16478   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
16479 h
16480 s///
16481 s/^/:/
16482 s/[      ]*$/:/
16483 s/:\$(srcdir):/:/g
16484 s/:\${srcdir}:/:/g
16485 s/:@srcdir@:/:/g
16486 s/^:*//
16487 s/:*$//
16488 x
16489 s/\(=[   ]*\).*/\1/
16490 G
16491 s/\n//
16492 s/^[^=]*=[       ]*$//
16493 }'
16494 fi
16495
16496 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16497 fi # test -n "$CONFIG_FILES"
16498
16499 # Set up the scripts for CONFIG_HEADERS section.
16500 # No need to generate them if there are no CONFIG_HEADERS.
16501 # This happens for instance with `./config.status Makefile'.
16502 if test -n "$CONFIG_HEADERS"; then
16503 cat >"$tmp/defines.awk" <<\_ACAWK ||
16504 BEGIN {
16505 _ACEOF
16506
16507 # Transform confdefs.h into an awk script `defines.awk', embedded as
16508 # here-document in config.status, that substitutes the proper values into
16509 # config.h.in to produce config.h.
16510
16511 # Create a delimiter string that does not exist in confdefs.h, to ease
16512 # handling of long lines.
16513 ac_delim='%!_!# '
16514 for ac_last_try in false false :; do
16515   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16516   if test -z "$ac_t"; then
16517     break
16518   elif $ac_last_try; then
16519     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16520   else
16521     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16522   fi
16523 done
16524
16525 # For the awk script, D is an array of macro values keyed by name,
16526 # likewise P contains macro parameters if any.  Preserve backslash
16527 # newline sequences.
16528
16529 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16530 sed -n '
16531 s/.\{148\}/&'"$ac_delim"'/g
16532 t rset
16533 :rset
16534 s/^[     ]*#[    ]*define[       ][      ]*/ /
16535 t def
16536 d
16537 :def
16538 s/\\$//
16539 t bsnl
16540 s/["\\]/\\&/g
16541 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16542 D["\1"]=" \3"/p
16543 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
16544 d
16545 :bsnl
16546 s/["\\]/\\&/g
16547 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16548 D["\1"]=" \3\\\\\\n"\\/p
16549 t cont
16550 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16551 t cont
16552 d
16553 :cont
16554 n
16555 s/.\{148\}/&'"$ac_delim"'/g
16556 t clear
16557 :clear
16558 s/\\$//
16559 t bsnlc
16560 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16561 d
16562 :bsnlc
16563 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16564 b cont
16565 ' <confdefs.h | sed '
16566 s/'"$ac_delim"'/"\\\
16567 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16568
16569 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16570   for (key in D) D_is_set[key] = 1
16571   FS = "\a"
16572 }
16573 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16574   line = \$ 0
16575   split(line, arg, " ")
16576   if (arg[1] == "#") {
16577     defundef = arg[2]
16578     mac1 = arg[3]
16579   } else {
16580     defundef = substr(arg[1], 2)
16581     mac1 = arg[2]
16582   }
16583   split(mac1, mac2, "(") #)
16584   macro = mac2[1]
16585   prefix = substr(line, 1, index(line, defundef) - 1)
16586   if (D_is_set[macro]) {
16587     # Preserve the white space surrounding the "#".
16588     print prefix "define", macro P[macro] D[macro]
16589     next
16590   } else {
16591     # Replace #undef with comments.  This is necessary, for example,
16592     # in the case of _POSIX_SOURCE, which is predefined and required
16593     # on some systems where configure will not decide to define it.
16594     if (defundef == "undef") {
16595       print "/*", prefix defundef, macro, "*/"
16596       next
16597     }
16598   }
16599 }
16600 { print }
16601 _ACAWK
16602 _ACEOF
16603 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16604   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16605 fi # test -n "$CONFIG_HEADERS"
16606
16607
16608 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
16609 shift
16610 for ac_tag
16611 do
16612   case $ac_tag in
16613   :[FHLC]) ac_mode=$ac_tag; continue;;
16614   esac
16615   case $ac_mode$ac_tag in
16616   :[FHL]*:*);;
16617   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
16618   :[FH]-) ac_tag=-:-;;
16619   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16620   esac
16621   ac_save_IFS=$IFS
16622   IFS=:
16623   set x $ac_tag
16624   IFS=$ac_save_IFS
16625   shift
16626   ac_file=$1
16627   shift
16628
16629   case $ac_mode in
16630   :L) ac_source=$1;;
16631   :[FH])
16632     ac_file_inputs=
16633     for ac_f
16634     do
16635       case $ac_f in
16636       -) ac_f="$tmp/stdin";;
16637       *) # Look for the file first in the build tree, then in the source tree
16638          # (if the path is not absolute).  The absolute path cannot be DOS-style,
16639          # because $ac_f cannot contain `:'.
16640          test -f "$ac_f" ||
16641            case $ac_f in
16642            [\\/$]*) false;;
16643            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16644            esac ||
16645            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
16646       esac
16647       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16648       as_fn_append ac_file_inputs " '$ac_f'"
16649     done
16650
16651     # Let's still pretend it is `configure' which instantiates (i.e., don't
16652     # use $as_me), people would be surprised to read:
16653     #    /* config.h.  Generated by config.status.  */
16654     configure_input='Generated from '`
16655           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16656         `' by configure.'
16657     if test x"$ac_file" != x-; then
16658       configure_input="$ac_file.  $configure_input"
16659       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16660 $as_echo "$as_me: creating $ac_file" >&6;}
16661     fi
16662     # Neutralize special characters interpreted by sed in replacement strings.
16663     case $configure_input in #(
16664     *\&* | *\|* | *\\* )
16665        ac_sed_conf_input=`$as_echo "$configure_input" |
16666        sed 's/[\\\\&|]/\\\\&/g'`;; #(
16667     *) ac_sed_conf_input=$configure_input;;
16668     esac
16669
16670     case $ac_tag in
16671     *:-:* | *:-) cat >"$tmp/stdin" \
16672       || as_fn_error $? "could not create $ac_file" "$LINENO" 5  ;;
16673     esac
16674     ;;
16675   esac
16676
16677   ac_dir=`$as_dirname -- "$ac_file" ||
16678 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16679          X"$ac_file" : 'X\(//\)[^/]' \| \
16680          X"$ac_file" : 'X\(//\)$' \| \
16681          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16682 $as_echo X"$ac_file" |
16683     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16684             s//\1/
16685             q
16686           }
16687           /^X\(\/\/\)[^/].*/{
16688             s//\1/
16689             q
16690           }
16691           /^X\(\/\/\)$/{
16692             s//\1/
16693             q
16694           }
16695           /^X\(\/\).*/{
16696             s//\1/
16697             q
16698           }
16699           s/.*/./; q'`
16700   as_dir="$ac_dir"; as_fn_mkdir_p
16701   ac_builddir=.
16702
16703 case "$ac_dir" in
16704 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16705 *)
16706   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16707   # A ".." for each directory in $ac_dir_suffix.
16708   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16709   case $ac_top_builddir_sub in
16710   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16711   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16712   esac ;;
16713 esac
16714 ac_abs_top_builddir=$ac_pwd
16715 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16716 # for backward compatibility:
16717 ac_top_builddir=$ac_top_build_prefix
16718
16719 case $srcdir in
16720   .)  # We are building in place.
16721     ac_srcdir=.
16722     ac_top_srcdir=$ac_top_builddir_sub
16723     ac_abs_top_srcdir=$ac_pwd ;;
16724   [\\/]* | ?:[\\/]* )  # Absolute name.
16725     ac_srcdir=$srcdir$ac_dir_suffix;
16726     ac_top_srcdir=$srcdir
16727     ac_abs_top_srcdir=$srcdir ;;
16728   *) # Relative name.
16729     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16730     ac_top_srcdir=$ac_top_build_prefix$srcdir
16731     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16732 esac
16733 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16734
16735
16736   case $ac_mode in
16737   :F)
16738   #
16739   # CONFIG_FILE
16740   #
16741
16742   case $INSTALL in
16743   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16744   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16745   esac
16746 _ACEOF
16747
16748 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16749 # If the template does not know about datarootdir, expand it.
16750 # FIXME: This hack should be removed a few years after 2.60.
16751 ac_datarootdir_hack=; ac_datarootdir_seen=
16752 ac_sed_dataroot='
16753 /datarootdir/ {
16754   p
16755   q
16756 }
16757 /@datadir@/p
16758 /@docdir@/p
16759 /@infodir@/p
16760 /@localedir@/p
16761 /@mandir@/p'
16762 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16763 *datarootdir*) ac_datarootdir_seen=yes;;
16764 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16765   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16766 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16767 _ACEOF
16768 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16769   ac_datarootdir_hack='
16770   s&@datadir@&$datadir&g
16771   s&@docdir@&$docdir&g
16772   s&@infodir@&$infodir&g
16773   s&@localedir@&$localedir&g
16774   s&@mandir@&$mandir&g
16775   s&\\\${datarootdir}&$datarootdir&g' ;;
16776 esac
16777 _ACEOF
16778
16779 # Neutralize VPATH when `$srcdir' = `.'.
16780 # Shell code in configure.ac might set extrasub.
16781 # FIXME: do we really want to maintain this feature?
16782 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16783 ac_sed_extra="$ac_vpsub
16784 $extrasub
16785 _ACEOF
16786 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16787 :t
16788 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16789 s|@configure_input@|$ac_sed_conf_input|;t t
16790 s&@top_builddir@&$ac_top_builddir_sub&;t t
16791 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16792 s&@srcdir@&$ac_srcdir&;t t
16793 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16794 s&@top_srcdir@&$ac_top_srcdir&;t t
16795 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16796 s&@builddir@&$ac_builddir&;t t
16797 s&@abs_builddir@&$ac_abs_builddir&;t t
16798 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16799 s&@INSTALL@&$ac_INSTALL&;t t
16800 $ac_datarootdir_hack
16801 "
16802 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16803 if $ac_cs_awk_getline; then
16804   $AWK -f "$tmp/subs.awk"
16805 else
16806   $AWK -f "$tmp/subs.awk" | $SHELL
16807 fi >$tmp/out \
16808   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16809
16810 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16811   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16812   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16813   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16814 which seems to be undefined.  Please make sure it is defined" >&5
16815 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16816 which seems to be undefined.  Please make sure it is defined" >&2;}
16817
16818   rm -f "$tmp/stdin"
16819   case $ac_file in
16820   -) cat "$tmp/out" && rm -f "$tmp/out";;
16821   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16822   esac \
16823   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16824  ;;
16825   :H)
16826   #
16827   # CONFIG_HEADER
16828   #
16829   if test x"$ac_file" != x-; then
16830     {
16831       $as_echo "/* $configure_input  */" \
16832       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16833     } >"$tmp/config.h" \
16834       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16835     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16836       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16837 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16838     else
16839       rm -f "$ac_file"
16840       mv "$tmp/config.h" "$ac_file" \
16841         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16842     fi
16843   else
16844     $as_echo "/* $configure_input  */" \
16845       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16846       || as_fn_error $? "could not create -" "$LINENO" 5
16847   fi
16848  ;;
16849   :L)
16850   #
16851   # CONFIG_LINK
16852   #
16853
16854   if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
16855     :
16856   else
16857     # Prefer the file from the source tree if names are identical.
16858     if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
16859       ac_source=$srcdir/$ac_source
16860     fi
16861
16862     { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
16863 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
16864
16865     if test ! -r "$ac_source"; then
16866       as_fn_error $? "$ac_source: file not found" "$LINENO" 5
16867     fi
16868     rm -f "$ac_file"
16869
16870     # Try a relative symlink, then a hard link, then a copy.
16871     case $ac_source in
16872     [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
16873         *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
16874     esac
16875     ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
16876       ln "$ac_source" "$ac_file" 2>/dev/null ||
16877       cp -p "$ac_source" "$ac_file" ||
16878       as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
16879   fi
16880  ;;
16881   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16882 $as_echo "$as_me: executing $ac_file commands" >&6;}
16883  ;;
16884   esac
16885
16886
16887   case $ac_file$ac_mode in
16888     "include/stamp-h":C) echo timestamp > include/stamp-h ;;
16889     "dlls/gdi32/enhmfdrv":C) test -d "dlls/gdi32/enhmfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/enhmfdrv" >&5
16890 $as_echo "$as_me: creating dlls/gdi32/enhmfdrv" >&6;}; as_dir="dlls/gdi32/enhmfdrv"; as_fn_mkdir_p; } ;;
16891     "dlls/gdi32/mfdrv":C) test -d "dlls/gdi32/mfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/mfdrv" >&5
16892 $as_echo "$as_me: creating dlls/gdi32/mfdrv" >&6;}; as_dir="dlls/gdi32/mfdrv"; as_fn_mkdir_p; } ;;
16893     "dlls/kernel32/nls":C) test -d "dlls/kernel32/nls" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/kernel32/nls" >&5
16894 $as_echo "$as_me: creating dlls/kernel32/nls" >&6;}; as_dir="dlls/kernel32/nls"; as_fn_mkdir_p; } ;;
16895     "dlls/user32/resources":C) test -d "dlls/user32/resources" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/user32/resources" >&5
16896 $as_echo "$as_me: creating dlls/user32/resources" >&6;}; as_dir="dlls/user32/resources"; as_fn_mkdir_p; } ;;
16897     "dlls/wineps.drv/data":C) test -d "dlls/wineps.drv/data" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/wineps.drv/data" >&5
16898 $as_echo "$as_me: creating dlls/wineps.drv/data" >&6;}; as_dir="dlls/wineps.drv/data"; as_fn_mkdir_p; } ;;
16899     "include/wine":C) test -d "include/wine" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating include/wine" >&5
16900 $as_echo "$as_me: creating include/wine" >&6;}; as_dir="include/wine"; as_fn_mkdir_p; } ;;
16901     "Makefile":C) wine_fn_output_makefile Makefile ;;
16902
16903   esac
16904 done # for ac_tag
16905
16906
16907 as_fn_exit 0
16908 _ACEOF
16909 ac_clean_files=$ac_clean_files_save
16910
16911 test $ac_write_fail = 0 ||
16912   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16913
16914
16915 # configure is writing to config.log, and then calls config.status.
16916 # config.status does its own redirection, appending to config.log.
16917 # Unfortunately, on DOS this fails, as config.log is still kept open
16918 # by configure, so config.status won't be able to write to it; its
16919 # output is simply discarded.  So we exec the FD to /dev/null,
16920 # effectively closing config.log, so it can be properly (re)opened and
16921 # appended to by config.status.  When coming back to configure, we
16922 # need to make the FD available again.
16923 if test "$no_create" != yes; then
16924   ac_cs_success=:
16925   ac_config_status_args=
16926   test "$silent" = yes &&
16927     ac_config_status_args="$ac_config_status_args --quiet"
16928   exec 5>/dev/null
16929   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16930   exec 5>>config.log
16931   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16932   # would make configure fail if this is the last instruction.
16933   $ac_cs_success || as_fn_exit 1
16934 fi
16935 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16936   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16937 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16938 fi
16939
16940
16941 if test "$no_create" = "yes"
16942 then
16943   exit 0
16944 fi
16945
16946 ac_save_IFS="$IFS"
16947 if test "x$wine_notices != "x; then
16948     echo >&6
16949     IFS="|"
16950     for msg in $wine_notices; do
16951         IFS="$ac_save_IFS"
16952         if test -n "$msg"; then
16953             { $as_echo "$as_me:${as_lineno-$LINENO}: $msg" >&5
16954 $as_echo "$as_me: $msg" >&6;}
16955         fi
16956     done
16957 fi
16958 IFS="|"
16959 for msg in $wine_warnings; do
16960     IFS="$ac_save_IFS"
16961     if test -n "$msg"; then
16962         echo >&2
16963         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $msg" >&5
16964 $as_echo "$as_me: WARNING: $msg" >&2;}
16965     fi
16966 done
16967 IFS="$ac_save_IFS"
16968
16969 echo "
16970 $as_me: Finished.  Do '${ac_make}' to compile Wine.
16971 " >&6
16972