configure: Add some quoting required by autoconf 2.68.
[wine] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for Wine 1.3.18.
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 as_myself=
95 case $0 in #((
96   *[\\/]* ) as_myself=$0 ;;
97   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100   IFS=$as_save_IFS
101   test -z "$as_dir" && as_dir=.
102     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103   done
104 IFS=$as_save_IFS
105
106      ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111   as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115   exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there.  '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 if test "x$CONFIG_SHELL" = x; then
140   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141   emulate sh
142   NULLCMD=:
143   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144   # is contrary to our usage.  Disable this feature.
145   alias -g '\${1+\"\$@\"}'='\"\$@\"'
146   setopt NO_GLOB_SUBST
147 else
148   case \`(set -o) 2>/dev/null\` in #(
149   *posix*) :
150     set -o posix ;; #(
151   *) :
152      ;;
153 esac
154 fi
155 "
156   as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
161
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169 else
170   exitcode=1; echo positional parameters were not saved.
171 fi
172 test x\$exitcode = x0 || exit 1"
173   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1"
178   if (eval "$as_required") 2>/dev/null; then :
179   as_have_required=yes
180 else
181   as_have_required=no
182 fi
183   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184
185 else
186   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187 as_found=false
188 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189 do
190   IFS=$as_save_IFS
191   test -z "$as_dir" && as_dir=.
192   as_found=:
193   case $as_dir in #(
194          /*)
195            for as_base in sh bash ksh sh5; do
196              # Try only shells that exist, to save several forks.
197              as_shell=$as_dir/$as_base
198              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200   CONFIG_SHELL=$as_shell as_have_required=yes
201                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
202   break 2
203 fi
204 fi
205            done;;
206        esac
207   as_found=false
208 done
209 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211   CONFIG_SHELL=$SHELL as_have_required=yes
212 fi; }
213 IFS=$as_save_IFS
214
215
216       if test "x$CONFIG_SHELL" != x; then :
217   # We cannot yet assume a decent shell, so we have to provide a
218         # neutralization value for shells without unset; and this also
219         # works around shells that cannot unset nonexistent variables.
220         # Preserve -v and -x to the replacement shell.
221         BASH_ENV=/dev/null
222         ENV=/dev/null
223         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224         export CONFIG_SHELL
225         case $- in # ((((
226           *v*x* | *x*v* ) as_opts=-vx ;;
227           *v* ) as_opts=-v ;;
228           *x* ) as_opts=-x ;;
229           * ) as_opts= ;;
230         esac
231         exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232 fi
233
234     if test x$as_have_required = xno; then :
235   $as_echo "$0: This script requires a shell more modern than all"
236   $as_echo "$0: the shells that I found on your system."
237   if test x${ZSH_VERSION+set} = xset ; then
238     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240   else
241     $as_echo "$0: Please tell bug-autoconf@gnu.org and
242 $0: wine-devel@winehq.org about your system, including any
243 $0: error possibly output before this message. Then install
244 $0: a modern shell, or manually run the script under such a
245 $0: shell if you do have one."
246   fi
247   exit 1
248 fi
249 fi
250 fi
251 SHELL=${CONFIG_SHELL-/bin/sh}
252 export SHELL
253 # Unset more variables known to interfere with behavior of common tools.
254 CLICOLOR_FORCE= GREP_OPTIONS=
255 unset CLICOLOR_FORCE GREP_OPTIONS
256
257 ## --------------------- ##
258 ## M4sh Shell Functions. ##
259 ## --------------------- ##
260 # as_fn_unset VAR
261 # ---------------
262 # Portably unset VAR.
263 as_fn_unset ()
264 {
265   { eval $1=; unset $1;}
266 }
267 as_unset=as_fn_unset
268
269 # as_fn_set_status STATUS
270 # -----------------------
271 # Set $? to STATUS, without forking.
272 as_fn_set_status ()
273 {
274   return $1
275 } # as_fn_set_status
276
277 # as_fn_exit STATUS
278 # -----------------
279 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
280 as_fn_exit ()
281 {
282   set +e
283   as_fn_set_status $1
284   exit $1
285 } # as_fn_exit
286
287 # as_fn_mkdir_p
288 # -------------
289 # Create "$as_dir" as a directory, including parents if necessary.
290 as_fn_mkdir_p ()
291 {
292
293   case $as_dir in #(
294   -*) as_dir=./$as_dir;;
295   esac
296   test -d "$as_dir" || eval $as_mkdir_p || {
297     as_dirs=
298     while :; do
299       case $as_dir in #(
300       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
301       *) as_qdir=$as_dir;;
302       esac
303       as_dirs="'$as_qdir' $as_dirs"
304       as_dir=`$as_dirname -- "$as_dir" ||
305 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
306          X"$as_dir" : 'X\(//\)[^/]' \| \
307          X"$as_dir" : 'X\(//\)$' \| \
308          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
309 $as_echo X"$as_dir" |
310     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
311             s//\1/
312             q
313           }
314           /^X\(\/\/\)[^/].*/{
315             s//\1/
316             q
317           }
318           /^X\(\/\/\)$/{
319             s//\1/
320             q
321           }
322           /^X\(\/\).*/{
323             s//\1/
324             q
325           }
326           s/.*/./; q'`
327       test -d "$as_dir" && break
328     done
329     test -z "$as_dirs" || eval "mkdir $as_dirs"
330   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
331
332
333 } # as_fn_mkdir_p
334 # as_fn_append VAR VALUE
335 # ----------------------
336 # Append the text in VALUE to the end of the definition contained in VAR. Take
337 # advantage of any shell optimizations that allow amortized linear growth over
338 # repeated appends, instead of the typical quadratic growth present in naive
339 # implementations.
340 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
341   eval 'as_fn_append ()
342   {
343     eval $1+=\$2
344   }'
345 else
346   as_fn_append ()
347   {
348     eval $1=\$$1\$2
349   }
350 fi # as_fn_append
351
352 # as_fn_arith ARG...
353 # ------------------
354 # Perform arithmetic evaluation on the ARGs, and store the result in the
355 # global $as_val. Take advantage of shells that can avoid forks. The arguments
356 # must be portable across $(()) and expr.
357 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
358   eval 'as_fn_arith ()
359   {
360     as_val=$(( $* ))
361   }'
362 else
363   as_fn_arith ()
364   {
365     as_val=`expr "$@" || test $? -eq 1`
366   }
367 fi # as_fn_arith
368
369
370 # as_fn_error STATUS ERROR [LINENO LOG_FD]
371 # ----------------------------------------
372 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
373 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
374 # script with STATUS, using 1 if that was 0.
375 as_fn_error ()
376 {
377   as_status=$1; test $as_status -eq 0 && as_status=1
378   if test "$4"; then
379     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
380     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
381   fi
382   $as_echo "$as_me: error: $2" >&2
383   as_fn_exit $as_status
384 } # as_fn_error
385
386 if expr a : '\(a\)' >/dev/null 2>&1 &&
387    test "X`expr 00001 : '.*\(...\)'`" = X001; then
388   as_expr=expr
389 else
390   as_expr=false
391 fi
392
393 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
394   as_basename=basename
395 else
396   as_basename=false
397 fi
398
399 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
400   as_dirname=dirname
401 else
402   as_dirname=false
403 fi
404
405 as_me=`$as_basename -- "$0" ||
406 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
407          X"$0" : 'X\(//\)$' \| \
408          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
409 $as_echo X/"$0" |
410     sed '/^.*\/\([^/][^/]*\)\/*$/{
411             s//\1/
412             q
413           }
414           /^X\/\(\/\/\)$/{
415             s//\1/
416             q
417           }
418           /^X\/\(\/\).*/{
419             s//\1/
420             q
421           }
422           s/.*/./; q'`
423
424 # Avoid depending upon Character Ranges.
425 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
426 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
427 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
428 as_cr_digits='0123456789'
429 as_cr_alnum=$as_cr_Letters$as_cr_digits
430
431
432   as_lineno_1=$LINENO as_lineno_1a=$LINENO
433   as_lineno_2=$LINENO as_lineno_2a=$LINENO
434   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
435   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
436   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
437   sed -n '
438     p
439     /[$]LINENO/=
440   ' <$as_myself |
441     sed '
442       s/[$]LINENO.*/&-/
443       t lineno
444       b
445       :lineno
446       N
447       :loop
448       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449       t loop
450       s/-\n.*//
451     ' >$as_me.lineno &&
452   chmod +x "$as_me.lineno" ||
453     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
454
455   # Don't try to exec as it changes $[0], causing all sort of problems
456   # (the dirname of $[0] is not the place where we might find the
457   # original and so on.  Autoconf is especially sensitive to this).
458   . "./$as_me.lineno"
459   # Exit status is that of the last command.
460   exit
461 }
462
463 ECHO_C= ECHO_N= ECHO_T=
464 case `echo -n x` in #(((((
465 -n*)
466   case `echo 'xy\c'` in
467   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
468   xy)  ECHO_C='\c';;
469   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
470        ECHO_T=' ';;
471   esac;;
472 *)
473   ECHO_N='-n';;
474 esac
475
476 rm -f conf$$ conf$$.exe conf$$.file
477 if test -d conf$$.dir; then
478   rm -f conf$$.dir/conf$$.file
479 else
480   rm -f conf$$.dir
481   mkdir conf$$.dir 2>/dev/null
482 fi
483 if (echo >conf$$.file) 2>/dev/null; then
484   if ln -s conf$$.file conf$$ 2>/dev/null; then
485     as_ln_s='ln -s'
486     # ... but there are two gotchas:
487     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
488     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
489     # In both cases, we have to default to `cp -p'.
490     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
491       as_ln_s='cp -p'
492   elif ln conf$$.file conf$$ 2>/dev/null; then
493     as_ln_s=ln
494   else
495     as_ln_s='cp -p'
496   fi
497 else
498   as_ln_s='cp -p'
499 fi
500 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
501 rmdir conf$$.dir 2>/dev/null
502
503 if mkdir -p . 2>/dev/null; then
504   as_mkdir_p='mkdir -p "$as_dir"'
505 else
506   test -d ./-p && rmdir ./-p
507   as_mkdir_p=false
508 fi
509
510 if test -x / >/dev/null 2>&1; then
511   as_test_x='test -x'
512 else
513   if ls -dL / >/dev/null 2>&1; then
514     as_ls_L_option=L
515   else
516     as_ls_L_option=
517   fi
518   as_test_x='
519     eval sh -c '\''
520       if test -d "$1"; then
521         test -d "$1/.";
522       else
523         case $1 in #(
524         -*)set "./$1";;
525         esac;
526         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
527         ???[sx]*):;;*)false;;esac;fi
528     '\'' sh
529   '
530 fi
531 as_executable_p=$as_test_x
532
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538
539
540 test -n "$DJDIR" || exec 7<&0 </dev/null
541 exec 6>&1
542
543 # Name of the host.
544 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
545 # so uname gets run too.
546 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547
548 #
549 # Initializations.
550 #
551 ac_default_prefix=/usr/local
552 ac_clean_files=
553 ac_config_libobj_dir=.
554 LIBOBJS=
555 cross_compiling=no
556 subdirs=
557 MFLAGS=
558 MAKEFLAGS=
559
560 # Identity of this package.
561 PACKAGE_NAME='Wine'
562 PACKAGE_TARNAME='wine'
563 PACKAGE_VERSION='1.3.18'
564 PACKAGE_STRING='Wine 1.3.18'
565 PACKAGE_BUGREPORT='wine-devel@winehq.org'
566 PACKAGE_URL='http://www.winehq.org'
567
568 ac_unique_file="server/atom.c"
569 # Factoring default headers for most tests.
570 ac_includes_default="\
571 #include <stdio.h>
572 #ifdef HAVE_SYS_TYPES_H
573 # include <sys/types.h>
574 #endif
575 #ifdef HAVE_SYS_STAT_H
576 # include <sys/stat.h>
577 #endif
578 #ifdef STDC_HEADERS
579 # include <stdlib.h>
580 # include <stddef.h>
581 #else
582 # ifdef HAVE_STDLIB_H
583 #  include <stdlib.h>
584 # endif
585 #endif
586 #ifdef HAVE_STRING_H
587 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
588 #  include <memory.h>
589 # endif
590 # include <string.h>
591 #endif
592 #ifdef HAVE_STRINGS_H
593 # include <strings.h>
594 #endif
595 #ifdef HAVE_INTTYPES_H
596 # include <inttypes.h>
597 #endif
598 #ifdef HAVE_STDINT_H
599 # include <stdint.h>
600 #endif
601 #ifdef HAVE_UNISTD_H
602 # include <unistd.h>
603 #endif"
604
605 ac_subst_vars='LTLIBOBJS
606 LIBOBJS
607 LINGUAS
608 ALL_TEST_BINARIES
609 ALL_WINETEST_DEPENDS
610 LDAPLIBS
611 LIBPOLL
612 LIBDL
613 EXTRA_BINARIES
614 MAIN_BINARY
615 SOCKETLIBS
616 CRTLIBS
617 TOOLSEXT
618 LDPATH
619 UNWINDFLAGS
620 BUILTINFLAG
621 EXTRACFLAGS
622 LIBKSTAT
623 LIBOPENAL
624 LIBMPG123
625 PNGINCL
626 FONTCONFIGINCL
627 CUPSINCL
628 ALSALIBS
629 GSTREAMER_INCL
630 GSTREAMER_LIBS
631 ESDLIBS
632 ESDINCL
633 ESDCONFIG
634 LIBGETTEXTPO
635 ZLIB
636 FREETYPEINCL
637 FREETYPELIBS
638 ft_devel
639 LCMSLIBS
640 RESOLVLIBS
641 GPHOTO2INCL
642 GPHOTO2LIBS
643 gphoto2port_devel
644 gphoto2_devel
645 SANEINCL
646 sane_devel
647 GNUTLSINCL
648 HALINCL
649 XSLTINCL
650 XML2INCL
651 XML2LIBS
652 NASLIBS
653 X_EXTRA_LIBS
654 X_LIBS
655 X_PRE_LIBS
656 X_CFLAGS
657 XMKMF
658 LIBPTHREAD
659 CROSSTARGET
660 CROSSCC
661 CROSSTEST_DISABLE
662 PRELINK
663 CARBONLIB
664 QUICKTIMELIB
665 LIBOPENCL
666 FRAMEWORK_OPENAL
667 COREAUDIO
668 SECURITYLIB
669 DISKARBITRATIONLIB
670 LDEXECFLAGS
671 APPLICATIONSERVICESLIB
672 IOKITLIB
673 COREFOUNDATIONLIB
674 DLLWRAP
675 DLLTOOL
676 LDD
677 LDRPATH_LOCAL
678 LDRPATH_INSTALL
679 IMPLIBEXT
680 LIBEXT
681 LDDLLFLAGS
682 LDSHARED
683 DLLFLAGS
684 DLLEXT
685 CPP
686 OPENGL_LIBS
687 XLIB
688 MAINTAINER_MODE
689 ICOTOOL
690 CONVERT
691 RSVG
692 PKG_CONFIG
693 FONTFORGE
694 LINTFLAGS
695 LINT
696 INSTALL_DATA
697 INSTALL_SCRIPT
698 INSTALL_PROGRAM
699 LDCONFIG
700 EGREP
701 GREP
702 LN_S
703 STRIP
704 RANLIB
705 ARFLAGS
706 ac_ct_AR
707 AR
708 BISON
709 FLEX
710 TOOLSDIR
711 WOW64_DISABLE
712 TARGETFLAGS
713 CPPBIN
714 ac_ct_CXX
715 CXXFLAGS
716 CXX
717 OBJEXT
718 EXEEXT
719 ac_ct_CC
720 CPPFLAGS
721 LDFLAGS
722 CFLAGS
723 CC
724 SET_MAKE
725 host_os
726 host_vendor
727 host_cpu
728 host
729 build_os
730 build_vendor
731 build_cpu
732 build
733 target_alias
734 host_alias
735 build_alias
736 LIBS
737 ECHO_T
738 ECHO_N
739 ECHO_C
740 DEFS
741 mandir
742 localedir
743 libdir
744 psdir
745 pdfdir
746 dvidir
747 htmldir
748 infodir
749 docdir
750 oldincludedir
751 includedir
752 localstatedir
753 sharedstatedir
754 sysconfdir
755 datadir
756 datarootdir
757 libexecdir
758 sbindir
759 bindir
760 program_transform_name
761 prefix
762 exec_prefix
763 PACKAGE_URL
764 PACKAGE_BUGREPORT
765 PACKAGE_STRING
766 PACKAGE_VERSION
767 PACKAGE_TARNAME
768 PACKAGE_NAME
769 PATH_SEPARATOR
770 SHELL'
771 ac_subst_files='MAKE_RULES
772 MAKE_TEST_RULES
773 MAKE_DLL_RULES
774 MAKE_IMPLIB_RULES
775 MAKE_PROG_RULES'
776 ac_user_opts='
777 enable_option_checking
778 enable_win16
779 enable_win64
780 enable_tests
781 enable_maintainer_mode
782 with_alsa
783 with_capi
784 with_cms
785 with_coreaudio
786 with_cups
787 with_curses
788 with_esd
789 with_fontconfig
790 with_freetype
791 with_gettextpo
792 with_gphoto
793 with_glu
794 with_gnutls
795 with_gsm
796 with_gstreamer
797 with_hal
798 with_jack
799 with_jpeg
800 with_ldap
801 with_mpg123
802 with_nas
803 with_openal
804 with_opencl
805 with_opengl
806 with_openssl
807 with_oss
808 with_png
809 with_pthread
810 with_sane
811 with_tiff
812 with_v4l
813 with_xcomposite
814 with_xcursor
815 with_xinerama
816 with_xinput
817 with_xinput2
818 with_xml
819 with_xrandr
820 with_xrender
821 with_xshape
822 with_xshm
823 with_xslt
824 with_xxf86vm
825 with_zlib
826 with_wine_tools
827 with_wine64
828 enable_largefile
829 with_x
830 '
831       ac_precious_vars='build_alias
832 host_alias
833 target_alias
834 CC
835 CFLAGS
836 LDFLAGS
837 LIBS
838 CPPFLAGS
839 CXX
840 CXXFLAGS
841 CCC
842 CPP
843 XMKMF'
844
845
846 # Initialize some variables set by options.
847 ac_init_help=
848 ac_init_version=false
849 ac_unrecognized_opts=
850 ac_unrecognized_sep=
851 # The variables have the same names as the options, with
852 # dashes changed to underlines.
853 cache_file=/dev/null
854 exec_prefix=NONE
855 no_create=
856 no_recursion=
857 prefix=NONE
858 program_prefix=NONE
859 program_suffix=NONE
860 program_transform_name=s,x,x,
861 silent=
862 site=
863 srcdir=
864 verbose=
865 x_includes=NONE
866 x_libraries=NONE
867
868 # Installation directory options.
869 # These are left unexpanded so users can "make install exec_prefix=/foo"
870 # and all the variables that are supposed to be based on exec_prefix
871 # by default will actually change.
872 # Use braces instead of parens because sh, perl, etc. also accept them.
873 # (The list follows the same order as the GNU Coding Standards.)
874 bindir='${exec_prefix}/bin'
875 sbindir='${exec_prefix}/sbin'
876 libexecdir='${exec_prefix}/libexec'
877 datarootdir='${prefix}/share'
878 datadir='${datarootdir}'
879 sysconfdir='${prefix}/etc'
880 sharedstatedir='${prefix}/com'
881 localstatedir='${prefix}/var'
882 includedir='${prefix}/include'
883 oldincludedir='/usr/include'
884 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
885 infodir='${datarootdir}/info'
886 htmldir='${docdir}'
887 dvidir='${docdir}'
888 pdfdir='${docdir}'
889 psdir='${docdir}'
890 libdir='${exec_prefix}/lib'
891 localedir='${datarootdir}/locale'
892 mandir='${datarootdir}/man'
893
894 ac_prev=
895 ac_dashdash=
896 for ac_option
897 do
898   # If the previous option needs an argument, assign it.
899   if test -n "$ac_prev"; then
900     eval $ac_prev=\$ac_option
901     ac_prev=
902     continue
903   fi
904
905   case $ac_option in
906   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
907   *=)   ac_optarg= ;;
908   *)    ac_optarg=yes ;;
909   esac
910
911   # Accept the important Cygnus configure options, so we can diagnose typos.
912
913   case $ac_dashdash$ac_option in
914   --)
915     ac_dashdash=yes ;;
916
917   -bindir | --bindir | --bindi | --bind | --bin | --bi)
918     ac_prev=bindir ;;
919   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
920     bindir=$ac_optarg ;;
921
922   -build | --build | --buil | --bui | --bu)
923     ac_prev=build_alias ;;
924   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
925     build_alias=$ac_optarg ;;
926
927   -cache-file | --cache-file | --cache-fil | --cache-fi \
928   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
929     ac_prev=cache_file ;;
930   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
931   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
932     cache_file=$ac_optarg ;;
933
934   --config-cache | -C)
935     cache_file=config.cache ;;
936
937   -datadir | --datadir | --datadi | --datad)
938     ac_prev=datadir ;;
939   -datadir=* | --datadir=* | --datadi=* | --datad=*)
940     datadir=$ac_optarg ;;
941
942   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
943   | --dataroo | --dataro | --datar)
944     ac_prev=datarootdir ;;
945   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
946   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
947     datarootdir=$ac_optarg ;;
948
949   -disable-* | --disable-*)
950     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
951     # Reject names that are not valid shell variable names.
952     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
953       as_fn_error $? "invalid feature name: $ac_useropt"
954     ac_useropt_orig=$ac_useropt
955     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
956     case $ac_user_opts in
957       *"
958 "enable_$ac_useropt"
959 "*) ;;
960       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
961          ac_unrecognized_sep=', ';;
962     esac
963     eval enable_$ac_useropt=no ;;
964
965   -docdir | --docdir | --docdi | --doc | --do)
966     ac_prev=docdir ;;
967   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
968     docdir=$ac_optarg ;;
969
970   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
971     ac_prev=dvidir ;;
972   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
973     dvidir=$ac_optarg ;;
974
975   -enable-* | --enable-*)
976     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
977     # Reject names that are not valid shell variable names.
978     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
979       as_fn_error $? "invalid feature name: $ac_useropt"
980     ac_useropt_orig=$ac_useropt
981     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
982     case $ac_user_opts in
983       *"
984 "enable_$ac_useropt"
985 "*) ;;
986       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
987          ac_unrecognized_sep=', ';;
988     esac
989     eval enable_$ac_useropt=\$ac_optarg ;;
990
991   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
992   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
993   | --exec | --exe | --ex)
994     ac_prev=exec_prefix ;;
995   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
996   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
997   | --exec=* | --exe=* | --ex=*)
998     exec_prefix=$ac_optarg ;;
999
1000   -gas | --gas | --ga | --g)
1001     # Obsolete; use --with-gas.
1002     with_gas=yes ;;
1003
1004   -help | --help | --hel | --he | -h)
1005     ac_init_help=long ;;
1006   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1007     ac_init_help=recursive ;;
1008   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1009     ac_init_help=short ;;
1010
1011   -host | --host | --hos | --ho)
1012     ac_prev=host_alias ;;
1013   -host=* | --host=* | --hos=* | --ho=*)
1014     host_alias=$ac_optarg ;;
1015
1016   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1017     ac_prev=htmldir ;;
1018   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1019   | --ht=*)
1020     htmldir=$ac_optarg ;;
1021
1022   -includedir | --includedir | --includedi | --included | --include \
1023   | --includ | --inclu | --incl | --inc)
1024     ac_prev=includedir ;;
1025   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1026   | --includ=* | --inclu=* | --incl=* | --inc=*)
1027     includedir=$ac_optarg ;;
1028
1029   -infodir | --infodir | --infodi | --infod | --info | --inf)
1030     ac_prev=infodir ;;
1031   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1032     infodir=$ac_optarg ;;
1033
1034   -libdir | --libdir | --libdi | --libd)
1035     ac_prev=libdir ;;
1036   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1037     libdir=$ac_optarg ;;
1038
1039   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1040   | --libexe | --libex | --libe)
1041     ac_prev=libexecdir ;;
1042   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1043   | --libexe=* | --libex=* | --libe=*)
1044     libexecdir=$ac_optarg ;;
1045
1046   -localedir | --localedir | --localedi | --localed | --locale)
1047     ac_prev=localedir ;;
1048   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1049     localedir=$ac_optarg ;;
1050
1051   -localstatedir | --localstatedir | --localstatedi | --localstated \
1052   | --localstate | --localstat | --localsta | --localst | --locals)
1053     ac_prev=localstatedir ;;
1054   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1055   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1056     localstatedir=$ac_optarg ;;
1057
1058   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1059     ac_prev=mandir ;;
1060   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1061     mandir=$ac_optarg ;;
1062
1063   -nfp | --nfp | --nf)
1064     # Obsolete; use --without-fp.
1065     with_fp=no ;;
1066
1067   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1068   | --no-cr | --no-c | -n)
1069     no_create=yes ;;
1070
1071   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1072   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1073     no_recursion=yes ;;
1074
1075   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1076   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1077   | --oldin | --oldi | --old | --ol | --o)
1078     ac_prev=oldincludedir ;;
1079   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1080   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1081   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1082     oldincludedir=$ac_optarg ;;
1083
1084   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1085     ac_prev=prefix ;;
1086   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1087     prefix=$ac_optarg ;;
1088
1089   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1090   | --program-pre | --program-pr | --program-p)
1091     ac_prev=program_prefix ;;
1092   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1093   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1094     program_prefix=$ac_optarg ;;
1095
1096   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1097   | --program-suf | --program-su | --program-s)
1098     ac_prev=program_suffix ;;
1099   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1100   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1101     program_suffix=$ac_optarg ;;
1102
1103   -program-transform-name | --program-transform-name \
1104   | --program-transform-nam | --program-transform-na \
1105   | --program-transform-n | --program-transform- \
1106   | --program-transform | --program-transfor \
1107   | --program-transfo | --program-transf \
1108   | --program-trans | --program-tran \
1109   | --progr-tra | --program-tr | --program-t)
1110     ac_prev=program_transform_name ;;
1111   -program-transform-name=* | --program-transform-name=* \
1112   | --program-transform-nam=* | --program-transform-na=* \
1113   | --program-transform-n=* | --program-transform-=* \
1114   | --program-transform=* | --program-transfor=* \
1115   | --program-transfo=* | --program-transf=* \
1116   | --program-trans=* | --program-tran=* \
1117   | --progr-tra=* | --program-tr=* | --program-t=*)
1118     program_transform_name=$ac_optarg ;;
1119
1120   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1121     ac_prev=pdfdir ;;
1122   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1123     pdfdir=$ac_optarg ;;
1124
1125   -psdir | --psdir | --psdi | --psd | --ps)
1126     ac_prev=psdir ;;
1127   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1128     psdir=$ac_optarg ;;
1129
1130   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1131   | -silent | --silent | --silen | --sile | --sil)
1132     silent=yes ;;
1133
1134   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1135     ac_prev=sbindir ;;
1136   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1137   | --sbi=* | --sb=*)
1138     sbindir=$ac_optarg ;;
1139
1140   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1141   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1142   | --sharedst | --shareds | --shared | --share | --shar \
1143   | --sha | --sh)
1144     ac_prev=sharedstatedir ;;
1145   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1146   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1147   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1148   | --sha=* | --sh=*)
1149     sharedstatedir=$ac_optarg ;;
1150
1151   -site | --site | --sit)
1152     ac_prev=site ;;
1153   -site=* | --site=* | --sit=*)
1154     site=$ac_optarg ;;
1155
1156   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1157     ac_prev=srcdir ;;
1158   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1159     srcdir=$ac_optarg ;;
1160
1161   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1162   | --syscon | --sysco | --sysc | --sys | --sy)
1163     ac_prev=sysconfdir ;;
1164   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1165   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1166     sysconfdir=$ac_optarg ;;
1167
1168   -target | --target | --targe | --targ | --tar | --ta | --t)
1169     ac_prev=target_alias ;;
1170   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1171     target_alias=$ac_optarg ;;
1172
1173   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1174     verbose=yes ;;
1175
1176   -version | --version | --versio | --versi | --vers | -V)
1177     ac_init_version=: ;;
1178
1179   -with-* | --with-*)
1180     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1181     # Reject names that are not valid shell variable names.
1182     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1183       as_fn_error $? "invalid package name: $ac_useropt"
1184     ac_useropt_orig=$ac_useropt
1185     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1186     case $ac_user_opts in
1187       *"
1188 "with_$ac_useropt"
1189 "*) ;;
1190       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1191          ac_unrecognized_sep=', ';;
1192     esac
1193     eval with_$ac_useropt=\$ac_optarg ;;
1194
1195   -without-* | --without-*)
1196     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1197     # Reject names that are not valid shell variable names.
1198     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1199       as_fn_error $? "invalid package name: $ac_useropt"
1200     ac_useropt_orig=$ac_useropt
1201     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1202     case $ac_user_opts in
1203       *"
1204 "with_$ac_useropt"
1205 "*) ;;
1206       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1207          ac_unrecognized_sep=', ';;
1208     esac
1209     eval with_$ac_useropt=no ;;
1210
1211   --x)
1212     # Obsolete; use --with-x.
1213     with_x=yes ;;
1214
1215   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1216   | --x-incl | --x-inc | --x-in | --x-i)
1217     ac_prev=x_includes ;;
1218   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1219   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1220     x_includes=$ac_optarg ;;
1221
1222   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1223   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1224     ac_prev=x_libraries ;;
1225   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1226   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1227     x_libraries=$ac_optarg ;;
1228
1229   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1230 Try \`$0 --help' for more information"
1231     ;;
1232
1233   *=*)
1234     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1235     # Reject names that are not valid shell variable names.
1236     case $ac_envvar in #(
1237       '' | [0-9]* | *[!_$as_cr_alnum]* )
1238       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1239     esac
1240     eval $ac_envvar=\$ac_optarg
1241     export $ac_envvar ;;
1242
1243   *)
1244     # FIXME: should be removed in autoconf 3.0.
1245     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1246     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1247       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1248     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1249     ;;
1250
1251   esac
1252 done
1253
1254 if test -n "$ac_prev"; then
1255   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1256   as_fn_error $? "missing argument to $ac_option"
1257 fi
1258
1259 if test -n "$ac_unrecognized_opts"; then
1260   case $enable_option_checking in
1261     no) ;;
1262     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1263     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1264   esac
1265 fi
1266
1267 # Check all directory arguments for consistency.
1268 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1269                 datadir sysconfdir sharedstatedir localstatedir includedir \
1270                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1271                 libdir localedir mandir
1272 do
1273   eval ac_val=\$$ac_var
1274   # Remove trailing slashes.
1275   case $ac_val in
1276     */ )
1277       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1278       eval $ac_var=\$ac_val;;
1279   esac
1280   # Be sure to have absolute directory names.
1281   case $ac_val in
1282     [\\/$]* | ?:[\\/]* )  continue;;
1283     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1284   esac
1285   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1286 done
1287
1288 # There might be people who depend on the old broken behavior: `$host'
1289 # used to hold the argument of --host etc.
1290 # FIXME: To remove some day.
1291 build=$build_alias
1292 host=$host_alias
1293 target=$target_alias
1294
1295 # FIXME: To remove some day.
1296 if test "x$host_alias" != x; then
1297   if test "x$build_alias" = x; then
1298     cross_compiling=maybe
1299     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1300     If a cross compiler is detected then cross compile mode will be used" >&2
1301   elif test "x$build_alias" != "x$host_alias"; then
1302     cross_compiling=yes
1303   fi
1304 fi
1305
1306 ac_tool_prefix=
1307 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1308
1309 test "$silent" = yes && exec 6>/dev/null
1310
1311
1312 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1313 ac_ls_di=`ls -di .` &&
1314 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1315   as_fn_error $? "working directory cannot be determined"
1316 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1317   as_fn_error $? "pwd does not report name of working directory"
1318
1319
1320 # Find the source files, if location was not specified.
1321 if test -z "$srcdir"; then
1322   ac_srcdir_defaulted=yes
1323   # Try the directory containing this script, then the parent directory.
1324   ac_confdir=`$as_dirname -- "$as_myself" ||
1325 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1326          X"$as_myself" : 'X\(//\)[^/]' \| \
1327          X"$as_myself" : 'X\(//\)$' \| \
1328          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1329 $as_echo X"$as_myself" |
1330     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1331             s//\1/
1332             q
1333           }
1334           /^X\(\/\/\)[^/].*/{
1335             s//\1/
1336             q
1337           }
1338           /^X\(\/\/\)$/{
1339             s//\1/
1340             q
1341           }
1342           /^X\(\/\).*/{
1343             s//\1/
1344             q
1345           }
1346           s/.*/./; q'`
1347   srcdir=$ac_confdir
1348   if test ! -r "$srcdir/$ac_unique_file"; then
1349     srcdir=..
1350   fi
1351 else
1352   ac_srcdir_defaulted=no
1353 fi
1354 if test ! -r "$srcdir/$ac_unique_file"; then
1355   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1356   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1357 fi
1358 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1359 ac_abs_confdir=`(
1360         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1361         pwd)`
1362 # When building in place, set srcdir=.
1363 if test "$ac_abs_confdir" = "$ac_pwd"; then
1364   srcdir=.
1365 fi
1366 # Remove unnecessary trailing slashes from srcdir.
1367 # Double slashes in file names in object file debugging info
1368 # mess up M-x gdb in Emacs.
1369 case $srcdir in
1370 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1371 esac
1372 for ac_var in $ac_precious_vars; do
1373   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1374   eval ac_env_${ac_var}_value=\$${ac_var}
1375   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1376   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1377 done
1378
1379 #
1380 # Report the --help message.
1381 #
1382 if test "$ac_init_help" = "long"; then
1383   # Omit some internal or obsolete options to make the list less imposing.
1384   # This message is too long to be a string in the A/UX 3.1 sh.
1385   cat <<_ACEOF
1386 \`configure' configures Wine 1.3.18 to adapt to many kinds of systems.
1387
1388 Usage: $0 [OPTION]... [VAR=VALUE]...
1389
1390 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1391 VAR=VALUE.  See below for descriptions of some of the useful variables.
1392
1393 Defaults for the options are specified in brackets.
1394
1395 Configuration:
1396   -h, --help              display this help and exit
1397       --help=short        display options specific to this package
1398       --help=recursive    display the short help of all the included packages
1399   -V, --version           display version information and exit
1400   -q, --quiet, --silent   do not print \`checking ...' messages
1401       --cache-file=FILE   cache test results in FILE [disabled]
1402   -C, --config-cache      alias for \`--cache-file=config.cache'
1403   -n, --no-create         do not create output files
1404       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1405
1406 Installation directories:
1407   --prefix=PREFIX         install architecture-independent files in PREFIX
1408                           [$ac_default_prefix]
1409   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1410                           [PREFIX]
1411
1412 By default, \`make install' will install all the files in
1413 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1414 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1415 for instance \`--prefix=\$HOME'.
1416
1417 For better control, use the options below.
1418
1419 Fine tuning of the installation directories:
1420   --bindir=DIR            user executables [EPREFIX/bin]
1421   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1422   --libexecdir=DIR        program executables [EPREFIX/libexec]
1423   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1424   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1425   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1426   --libdir=DIR            object code libraries [EPREFIX/lib]
1427   --includedir=DIR        C header files [PREFIX/include]
1428   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1429   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1430   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1431   --infodir=DIR           info documentation [DATAROOTDIR/info]
1432   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1433   --mandir=DIR            man documentation [DATAROOTDIR/man]
1434   --docdir=DIR            documentation root [DATAROOTDIR/doc/wine]
1435   --htmldir=DIR           html documentation [DOCDIR]
1436   --dvidir=DIR            dvi documentation [DOCDIR]
1437   --pdfdir=DIR            pdf documentation [DOCDIR]
1438   --psdir=DIR             ps documentation [DOCDIR]
1439 _ACEOF
1440
1441   cat <<\_ACEOF
1442
1443 X features:
1444   --x-includes=DIR    X include files are in DIR
1445   --x-libraries=DIR   X library files are in DIR
1446
1447 System types:
1448   --build=BUILD     configure for building on BUILD [guessed]
1449   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1450 _ACEOF
1451 fi
1452
1453 if test -n "$ac_init_help"; then
1454   case $ac_init_help in
1455      short | recursive ) echo "Configuration of Wine 1.3.18:";;
1456    esac
1457   cat <<\_ACEOF
1458
1459 Optional Features:
1460   --disable-option-checking  ignore unrecognized --enable/--with options
1461   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1462   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1463   --disable-win16         do not include Win16 support
1464   --enable-win64          build a Win64 emulator on AMD64 (won't run Win32
1465                           binaries)
1466   --disable-tests         do not build the regression tests
1467   --enable-maintainer-mode
1468                           enable maintainer-specific build rules
1469   --disable-largefile     omit support for large files
1470
1471 Optional Packages:
1472   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1473   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1474   --without-alsa          do not use the Alsa sound support
1475   --without-capi          do not use CAPI (ISDN support)
1476   --without-cms           do not use CMS (color management support)
1477   --without-coreaudio     do not use the CoreAudio sound support
1478   --without-cups          do not use CUPS
1479   --without-curses        do not use (n)curses
1480   --without-esd           do not use the EsounD sound support
1481   --without-fontconfig    do not use fontconfig
1482   --without-freetype      do not use the FreeType library
1483   --without-gettextpo     do not use the GetTextPO library
1484   --without-gphoto        do not use gphoto (Digital Camera support)
1485   --without-glu           do not use the GLU library
1486   --without-gnutls        do not use GnuTLS (schannel support)
1487   --without-gsm           do not use libgsm (GSM 06.10 codec support)
1488   --without-gstreamer     do not use GStreamer (codecs support)
1489   --without-hal           do not use HAL (dynamic device support)
1490   --without-jack          do not use the Jack sound support
1491   --without-jpeg          do not use JPEG
1492   --without-ldap          do not use LDAP
1493   --without-mpg123        do not use the mpg123 library
1494   --without-nas           do not use the NAS sound support
1495   --without-openal        do not use OpenAL
1496   --without-opencl        do not use OpenCL
1497   --without-opengl        do not use OpenGL
1498   --without-openssl       do not use OpenSSL
1499   --without-oss           do not use the OSS sound support
1500   --without-png           do not use PNG
1501   --without-pthread       do not use the pthread library
1502   --without-sane          do not use SANE (scanner support)
1503   --without-tiff          do not use TIFF
1504   --without-v4l           do not use v4l1 (v4l support)
1505   --without-xcomposite    do not use the Xcomposite extension
1506   --without-xcursor       do not use the Xcursor extension
1507   --without-xinerama      do not use Xinerama (multi-monitor support)
1508   --without-xinput        do not use the Xinput extension
1509   --without-xinput2       do not use the Xinput 2 extension
1510   --without-xml           do not use XML
1511   --without-xrandr        do not use Xrandr (resolution changes)
1512   --without-xrender       do not use the Xrender extension
1513   --without-xshape        do not use the Xshape extension
1514   --without-xshm          do not use XShm (shared memory extension)
1515   --without-xslt          do not use XSLT
1516   --without-xxf86vm       do not use XFree video mode extension
1517   --without-zlib          do not use Zlib (data compression)
1518   --with-wine-tools=DIR   use Wine tools from directory DIR
1519   --with-wine64=DIR       use the 64-bit Wine in DIR for a Wow64 build
1520   --with-x                use the X Window System
1521
1522 Some influential environment variables:
1523   CC          C compiler command
1524   CFLAGS      C compiler flags
1525   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1526               nonstandard directory <lib dir>
1527   LIBS        libraries to pass to the linker, e.g. -l<library>
1528   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1529               you have headers in a nonstandard directory <include dir>
1530   CXX         C++ compiler command
1531   CXXFLAGS    C++ compiler flags
1532   CPP         C preprocessor
1533   XMKMF       Path to xmkmf, Makefile generator for X Window System
1534
1535 Use these variables to override the choices made by `configure' or to help
1536 it to find libraries and programs with nonstandard names/locations.
1537
1538 Report bugs to <wine-devel@winehq.org>.
1539 Wine home page: <http://www.winehq.org>.
1540 _ACEOF
1541 ac_status=$?
1542 fi
1543
1544 if test "$ac_init_help" = "recursive"; then
1545   # If there are subdirs, report their specific --help.
1546   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1547     test -d "$ac_dir" ||
1548       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1549       continue
1550     ac_builddir=.
1551
1552 case "$ac_dir" in
1553 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1554 *)
1555   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1556   # A ".." for each directory in $ac_dir_suffix.
1557   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1558   case $ac_top_builddir_sub in
1559   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1560   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1561   esac ;;
1562 esac
1563 ac_abs_top_builddir=$ac_pwd
1564 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1565 # for backward compatibility:
1566 ac_top_builddir=$ac_top_build_prefix
1567
1568 case $srcdir in
1569   .)  # We are building in place.
1570     ac_srcdir=.
1571     ac_top_srcdir=$ac_top_builddir_sub
1572     ac_abs_top_srcdir=$ac_pwd ;;
1573   [\\/]* | ?:[\\/]* )  # Absolute name.
1574     ac_srcdir=$srcdir$ac_dir_suffix;
1575     ac_top_srcdir=$srcdir
1576     ac_abs_top_srcdir=$srcdir ;;
1577   *) # Relative name.
1578     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1579     ac_top_srcdir=$ac_top_build_prefix$srcdir
1580     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1581 esac
1582 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1583
1584     cd "$ac_dir" || { ac_status=$?; continue; }
1585     # Check for guested configure.
1586     if test -f "$ac_srcdir/configure.gnu"; then
1587       echo &&
1588       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1589     elif test -f "$ac_srcdir/configure"; then
1590       echo &&
1591       $SHELL "$ac_srcdir/configure" --help=recursive
1592     else
1593       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1594     fi || ac_status=$?
1595     cd "$ac_pwd" || { ac_status=$?; break; }
1596   done
1597 fi
1598
1599 test -n "$ac_init_help" && exit $ac_status
1600 if $ac_init_version; then
1601   cat <<\_ACEOF
1602 Wine configure 1.3.18
1603 generated by GNU Autoconf 2.68
1604
1605 Copyright (C) 2010 Free Software Foundation, Inc.
1606 This configure script is free software; the Free Software Foundation
1607 gives unlimited permission to copy, distribute and modify it.
1608 _ACEOF
1609   exit
1610 fi
1611
1612 ## ------------------------ ##
1613 ## Autoconf initialization. ##
1614 ## ------------------------ ##
1615
1616 # ac_fn_c_try_compile LINENO
1617 # --------------------------
1618 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1619 ac_fn_c_try_compile ()
1620 {
1621   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1622   rm -f conftest.$ac_objext
1623   if { { ac_try="$ac_compile"
1624 case "(($ac_try" in
1625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1626   *) ac_try_echo=$ac_try;;
1627 esac
1628 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1629 $as_echo "$ac_try_echo"; } >&5
1630   (eval "$ac_compile") 2>conftest.err
1631   ac_status=$?
1632   if test -s conftest.err; then
1633     grep -v '^ *+' conftest.err >conftest.er1
1634     cat conftest.er1 >&5
1635     mv -f conftest.er1 conftest.err
1636   fi
1637   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1638   test $ac_status = 0; } && {
1639          test -z "$ac_c_werror_flag" ||
1640          test ! -s conftest.err
1641        } && test -s conftest.$ac_objext; then :
1642   ac_retval=0
1643 else
1644   $as_echo "$as_me: failed program was:" >&5
1645 sed 's/^/| /' conftest.$ac_ext >&5
1646
1647         ac_retval=1
1648 fi
1649   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1650   as_fn_set_status $ac_retval
1651
1652 } # ac_fn_c_try_compile
1653
1654 # ac_fn_cxx_try_compile LINENO
1655 # ----------------------------
1656 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1657 ac_fn_cxx_try_compile ()
1658 {
1659   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1660   rm -f conftest.$ac_objext
1661   if { { ac_try="$ac_compile"
1662 case "(($ac_try" in
1663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1664   *) ac_try_echo=$ac_try;;
1665 esac
1666 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1667 $as_echo "$ac_try_echo"; } >&5
1668   (eval "$ac_compile") 2>conftest.err
1669   ac_status=$?
1670   if test -s conftest.err; then
1671     grep -v '^ *+' conftest.err >conftest.er1
1672     cat conftest.er1 >&5
1673     mv -f conftest.er1 conftest.err
1674   fi
1675   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1676   test $ac_status = 0; } && {
1677          test -z "$ac_cxx_werror_flag" ||
1678          test ! -s conftest.err
1679        } && test -s conftest.$ac_objext; then :
1680   ac_retval=0
1681 else
1682   $as_echo "$as_me: failed program was:" >&5
1683 sed 's/^/| /' conftest.$ac_ext >&5
1684
1685         ac_retval=1
1686 fi
1687   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1688   as_fn_set_status $ac_retval
1689
1690 } # ac_fn_cxx_try_compile
1691
1692 # ac_fn_c_try_link LINENO
1693 # -----------------------
1694 # Try to link conftest.$ac_ext, and return whether this succeeded.
1695 ac_fn_c_try_link ()
1696 {
1697   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1698   rm -f conftest.$ac_objext conftest$ac_exeext
1699   if { { ac_try="$ac_link"
1700 case "(($ac_try" in
1701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1702   *) ac_try_echo=$ac_try;;
1703 esac
1704 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1705 $as_echo "$ac_try_echo"; } >&5
1706   (eval "$ac_link") 2>conftest.err
1707   ac_status=$?
1708   if test -s conftest.err; then
1709     grep -v '^ *+' conftest.err >conftest.er1
1710     cat conftest.er1 >&5
1711     mv -f conftest.er1 conftest.err
1712   fi
1713   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1714   test $ac_status = 0; } && {
1715          test -z "$ac_c_werror_flag" ||
1716          test ! -s conftest.err
1717        } && test -s conftest$ac_exeext && {
1718          test "$cross_compiling" = yes ||
1719          $as_test_x conftest$ac_exeext
1720        }; then :
1721   ac_retval=0
1722 else
1723   $as_echo "$as_me: failed program was:" >&5
1724 sed 's/^/| /' conftest.$ac_ext >&5
1725
1726         ac_retval=1
1727 fi
1728   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1729   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1730   # interfere with the next link command; also delete a directory that is
1731   # left behind by Apple's compiler.  We do this before executing the actions.
1732   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1733   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1734   as_fn_set_status $ac_retval
1735
1736 } # ac_fn_c_try_link
1737
1738 # ac_fn_c_try_cpp LINENO
1739 # ----------------------
1740 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1741 ac_fn_c_try_cpp ()
1742 {
1743   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1744   if { { ac_try="$ac_cpp conftest.$ac_ext"
1745 case "(($ac_try" in
1746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1747   *) ac_try_echo=$ac_try;;
1748 esac
1749 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1750 $as_echo "$ac_try_echo"; } >&5
1751   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1752   ac_status=$?
1753   if test -s conftest.err; then
1754     grep -v '^ *+' conftest.err >conftest.er1
1755     cat conftest.er1 >&5
1756     mv -f conftest.er1 conftest.err
1757   fi
1758   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1759   test $ac_status = 0; } > conftest.i && {
1760          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1761          test ! -s conftest.err
1762        }; then :
1763   ac_retval=0
1764 else
1765   $as_echo "$as_me: failed program was:" >&5
1766 sed 's/^/| /' conftest.$ac_ext >&5
1767
1768     ac_retval=1
1769 fi
1770   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1771   as_fn_set_status $ac_retval
1772
1773 } # ac_fn_c_try_cpp
1774
1775 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1776 # -------------------------------------------------------
1777 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1778 # the include files in INCLUDES and setting the cache variable VAR
1779 # accordingly.
1780 ac_fn_c_check_header_mongrel ()
1781 {
1782   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1783   if eval \${$3+:} false; then :
1784   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1785 $as_echo_n "checking for $2... " >&6; }
1786 if eval \${$3+:} false; then :
1787   $as_echo_n "(cached) " >&6
1788 fi
1789 eval ac_res=\$$3
1790                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1791 $as_echo "$ac_res" >&6; }
1792 else
1793   # Is the header compilable?
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1795 $as_echo_n "checking $2 usability... " >&6; }
1796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1797 /* end confdefs.h.  */
1798 $4
1799 #include <$2>
1800 _ACEOF
1801 if ac_fn_c_try_compile "$LINENO"; then :
1802   ac_header_compiler=yes
1803 else
1804   ac_header_compiler=no
1805 fi
1806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1808 $as_echo "$ac_header_compiler" >&6; }
1809
1810 # Is the header present?
1811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1812 $as_echo_n "checking $2 presence... " >&6; }
1813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1814 /* end confdefs.h.  */
1815 #include <$2>
1816 _ACEOF
1817 if ac_fn_c_try_cpp "$LINENO"; then :
1818   ac_header_preproc=yes
1819 else
1820   ac_header_preproc=no
1821 fi
1822 rm -f conftest.err conftest.i conftest.$ac_ext
1823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1824 $as_echo "$ac_header_preproc" >&6; }
1825
1826 # So?  What about this header?
1827 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1828   yes:no: )
1829     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1830 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1831     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1832 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1833     ;;
1834   no:yes:* )
1835     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1836 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1837     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1838 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1839     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1840 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1841     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1842 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1843     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1844 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1845 ( $as_echo "## ------------------------------------ ##
1846 ## Report this to wine-devel@winehq.org ##
1847 ## ------------------------------------ ##"
1848      ) | sed "s/^/$as_me: WARNING:     /" >&2
1849     ;;
1850 esac
1851   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1852 $as_echo_n "checking for $2... " >&6; }
1853 if eval \${$3+:} false; then :
1854   $as_echo_n "(cached) " >&6
1855 else
1856   eval "$3=\$ac_header_compiler"
1857 fi
1858 eval ac_res=\$$3
1859                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1860 $as_echo "$ac_res" >&6; }
1861 fi
1862   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1863
1864 } # ac_fn_c_check_header_mongrel
1865
1866 # ac_fn_c_try_run LINENO
1867 # ----------------------
1868 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1869 # that executables *can* be run.
1870 ac_fn_c_try_run ()
1871 {
1872   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1873   if { { ac_try="$ac_link"
1874 case "(($ac_try" in
1875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1876   *) ac_try_echo=$ac_try;;
1877 esac
1878 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1879 $as_echo "$ac_try_echo"; } >&5
1880   (eval "$ac_link") 2>&5
1881   ac_status=$?
1882   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1883   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1884   { { case "(($ac_try" in
1885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1886   *) ac_try_echo=$ac_try;;
1887 esac
1888 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1889 $as_echo "$ac_try_echo"; } >&5
1890   (eval "$ac_try") 2>&5
1891   ac_status=$?
1892   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1893   test $ac_status = 0; }; }; then :
1894   ac_retval=0
1895 else
1896   $as_echo "$as_me: program exited with status $ac_status" >&5
1897        $as_echo "$as_me: failed program was:" >&5
1898 sed 's/^/| /' conftest.$ac_ext >&5
1899
1900        ac_retval=$ac_status
1901 fi
1902   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1903   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1904   as_fn_set_status $ac_retval
1905
1906 } # ac_fn_c_try_run
1907
1908 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1909 # -------------------------------------------------------
1910 # Tests whether HEADER exists and can be compiled using the include files in
1911 # INCLUDES, setting the cache variable VAR accordingly.
1912 ac_fn_c_check_header_compile ()
1913 {
1914   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1915   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1916 $as_echo_n "checking for $2... " >&6; }
1917 if eval \${$3+:} false; then :
1918   $as_echo_n "(cached) " >&6
1919 else
1920   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1921 /* end confdefs.h.  */
1922 $4
1923 #include <$2>
1924 _ACEOF
1925 if ac_fn_c_try_compile "$LINENO"; then :
1926   eval "$3=yes"
1927 else
1928   eval "$3=no"
1929 fi
1930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1931 fi
1932 eval ac_res=\$$3
1933                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1934 $as_echo "$ac_res" >&6; }
1935   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1936
1937 } # ac_fn_c_check_header_compile
1938
1939 # ac_fn_c_check_func LINENO FUNC VAR
1940 # ----------------------------------
1941 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1942 ac_fn_c_check_func ()
1943 {
1944   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1945   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1946 $as_echo_n "checking for $2... " >&6; }
1947 if eval \${$3+:} false; then :
1948   $as_echo_n "(cached) " >&6
1949 else
1950   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1951 /* end confdefs.h.  */
1952 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1953    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1954 #define $2 innocuous_$2
1955
1956 /* System header to define __stub macros and hopefully few prototypes,
1957     which can conflict with char $2 (); below.
1958     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1959     <limits.h> exists even on freestanding compilers.  */
1960
1961 #ifdef __STDC__
1962 # include <limits.h>
1963 #else
1964 # include <assert.h>
1965 #endif
1966
1967 #undef $2
1968
1969 /* Override any GCC internal prototype to avoid an error.
1970    Use char because int might match the return type of a GCC
1971    builtin and then its argument prototype would still apply.  */
1972 #ifdef __cplusplus
1973 extern "C"
1974 #endif
1975 char $2 ();
1976 /* The GNU C library defines this for functions which it implements
1977     to always fail with ENOSYS.  Some functions are actually named
1978     something starting with __ and the normal name is an alias.  */
1979 #if defined __stub_$2 || defined __stub___$2
1980 choke me
1981 #endif
1982
1983 int
1984 main ()
1985 {
1986 return $2 ();
1987   ;
1988   return 0;
1989 }
1990 _ACEOF
1991 if ac_fn_c_try_link "$LINENO"; then :
1992   eval "$3=yes"
1993 else
1994   eval "$3=no"
1995 fi
1996 rm -f core conftest.err conftest.$ac_objext \
1997     conftest$ac_exeext conftest.$ac_ext
1998 fi
1999 eval ac_res=\$$3
2000                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2001 $as_echo "$ac_res" >&6; }
2002   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2003
2004 } # ac_fn_c_check_func
2005
2006 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2007 # ----------------------------------------------------
2008 # Tries to find if the field MEMBER exists in type AGGR, after including
2009 # INCLUDES, setting cache variable VAR accordingly.
2010 ac_fn_c_check_member ()
2011 {
2012   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2013   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2014 $as_echo_n "checking for $2.$3... " >&6; }
2015 if eval \${$4+:} false; then :
2016   $as_echo_n "(cached) " >&6
2017 else
2018   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2019 /* end confdefs.h.  */
2020 $5
2021 int
2022 main ()
2023 {
2024 static $2 ac_aggr;
2025 if (ac_aggr.$3)
2026 return 0;
2027   ;
2028   return 0;
2029 }
2030 _ACEOF
2031 if ac_fn_c_try_compile "$LINENO"; then :
2032   eval "$4=yes"
2033 else
2034   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2035 /* end confdefs.h.  */
2036 $5
2037 int
2038 main ()
2039 {
2040 static $2 ac_aggr;
2041 if (sizeof ac_aggr.$3)
2042 return 0;
2043   ;
2044   return 0;
2045 }
2046 _ACEOF
2047 if ac_fn_c_try_compile "$LINENO"; then :
2048   eval "$4=yes"
2049 else
2050   eval "$4=no"
2051 fi
2052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2053 fi
2054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2055 fi
2056 eval ac_res=\$$4
2057                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2058 $as_echo "$ac_res" >&6; }
2059   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2060
2061 } # ac_fn_c_check_member
2062
2063 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2064 # -------------------------------------------
2065 # Tests whether TYPE exists after having included INCLUDES, setting cache
2066 # variable VAR accordingly.
2067 ac_fn_c_check_type ()
2068 {
2069   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2070   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2071 $as_echo_n "checking for $2... " >&6; }
2072 if eval \${$3+:} false; then :
2073   $as_echo_n "(cached) " >&6
2074 else
2075   eval "$3=no"
2076   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2077 /* end confdefs.h.  */
2078 $4
2079 int
2080 main ()
2081 {
2082 if (sizeof ($2))
2083          return 0;
2084   ;
2085   return 0;
2086 }
2087 _ACEOF
2088 if ac_fn_c_try_compile "$LINENO"; then :
2089   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2090 /* end confdefs.h.  */
2091 $4
2092 int
2093 main ()
2094 {
2095 if (sizeof (($2)))
2096             return 0;
2097   ;
2098   return 0;
2099 }
2100 _ACEOF
2101 if ac_fn_c_try_compile "$LINENO"; then :
2102
2103 else
2104   eval "$3=yes"
2105 fi
2106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2107 fi
2108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2109 fi
2110 eval ac_res=\$$3
2111                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2112 $as_echo "$ac_res" >&6; }
2113   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2114
2115 } # ac_fn_c_check_type
2116 cat >config.log <<_ACEOF
2117 This file contains any messages produced by compilers while
2118 running configure, to aid debugging if configure makes a mistake.
2119
2120 It was created by Wine $as_me 1.3.18, which was
2121 generated by GNU Autoconf 2.68.  Invocation command line was
2122
2123   $ $0 $@
2124
2125 _ACEOF
2126 exec 5>>config.log
2127 {
2128 cat <<_ASUNAME
2129 ## --------- ##
2130 ## Platform. ##
2131 ## --------- ##
2132
2133 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2134 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2135 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2136 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2137 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2138
2139 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2140 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2141
2142 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2143 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2144 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2145 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2146 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2147 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2148 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2149
2150 _ASUNAME
2151
2152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2153 for as_dir in $PATH
2154 do
2155   IFS=$as_save_IFS
2156   test -z "$as_dir" && as_dir=.
2157     $as_echo "PATH: $as_dir"
2158   done
2159 IFS=$as_save_IFS
2160
2161 } >&5
2162
2163 cat >&5 <<_ACEOF
2164
2165
2166 ## ----------- ##
2167 ## Core tests. ##
2168 ## ----------- ##
2169
2170 _ACEOF
2171
2172
2173 # Keep a trace of the command line.
2174 # Strip out --no-create and --no-recursion so they do not pile up.
2175 # Strip out --silent because we don't want to record it for future runs.
2176 # Also quote any args containing shell meta-characters.
2177 # Make two passes to allow for proper duplicate-argument suppression.
2178 ac_configure_args=
2179 ac_configure_args0=
2180 ac_configure_args1=
2181 ac_must_keep_next=false
2182 for ac_pass in 1 2
2183 do
2184   for ac_arg
2185   do
2186     case $ac_arg in
2187     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2188     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2189     | -silent | --silent | --silen | --sile | --sil)
2190       continue ;;
2191     *\'*)
2192       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2193     esac
2194     case $ac_pass in
2195     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2196     2)
2197       as_fn_append ac_configure_args1 " '$ac_arg'"
2198       if test $ac_must_keep_next = true; then
2199         ac_must_keep_next=false # Got value, back to normal.
2200       else
2201         case $ac_arg in
2202           *=* | --config-cache | -C | -disable-* | --disable-* \
2203           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2204           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2205           | -with-* | --with-* | -without-* | --without-* | --x)
2206             case "$ac_configure_args0 " in
2207               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2208             esac
2209             ;;
2210           -* ) ac_must_keep_next=true ;;
2211         esac
2212       fi
2213       as_fn_append ac_configure_args " '$ac_arg'"
2214       ;;
2215     esac
2216   done
2217 done
2218 { ac_configure_args0=; unset ac_configure_args0;}
2219 { ac_configure_args1=; unset ac_configure_args1;}
2220
2221 # When interrupted or exit'd, cleanup temporary files, and complete
2222 # config.log.  We remove comments because anyway the quotes in there
2223 # would cause problems or look ugly.
2224 # WARNING: Use '\'' to represent an apostrophe within the trap.
2225 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2226 trap 'exit_status=$?
2227   # Save into config.log some information that might help in debugging.
2228   {
2229     echo
2230
2231     $as_echo "## ---------------- ##
2232 ## Cache variables. ##
2233 ## ---------------- ##"
2234     echo
2235     # The following way of writing the cache mishandles newlines in values,
2236 (
2237   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2238     eval ac_val=\$$ac_var
2239     case $ac_val in #(
2240     *${as_nl}*)
2241       case $ac_var in #(
2242       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2243 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2244       esac
2245       case $ac_var in #(
2246       _ | IFS | as_nl) ;; #(
2247       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2248       *) { eval $ac_var=; unset $ac_var;} ;;
2249       esac ;;
2250     esac
2251   done
2252   (set) 2>&1 |
2253     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2254     *${as_nl}ac_space=\ *)
2255       sed -n \
2256         "s/'\''/'\''\\\\'\'''\''/g;
2257           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2258       ;; #(
2259     *)
2260       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2261       ;;
2262     esac |
2263     sort
2264 )
2265     echo
2266
2267     $as_echo "## ----------------- ##
2268 ## Output variables. ##
2269 ## ----------------- ##"
2270     echo
2271     for ac_var in $ac_subst_vars
2272     do
2273       eval ac_val=\$$ac_var
2274       case $ac_val in
2275       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2276       esac
2277       $as_echo "$ac_var='\''$ac_val'\''"
2278     done | sort
2279     echo
2280
2281     if test -n "$ac_subst_files"; then
2282       $as_echo "## ------------------- ##
2283 ## File substitutions. ##
2284 ## ------------------- ##"
2285       echo
2286       for ac_var in $ac_subst_files
2287       do
2288         eval ac_val=\$$ac_var
2289         case $ac_val in
2290         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2291         esac
2292         $as_echo "$ac_var='\''$ac_val'\''"
2293       done | sort
2294       echo
2295     fi
2296
2297     if test -s confdefs.h; then
2298       $as_echo "## ----------- ##
2299 ## confdefs.h. ##
2300 ## ----------- ##"
2301       echo
2302       cat confdefs.h
2303       echo
2304     fi
2305     test "$ac_signal" != 0 &&
2306       $as_echo "$as_me: caught signal $ac_signal"
2307     $as_echo "$as_me: exit $exit_status"
2308   } >&5
2309   rm -f core *.core core.conftest.* &&
2310     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2311     exit $exit_status
2312 ' 0
2313 for ac_signal in 1 2 13 15; do
2314   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2315 done
2316 ac_signal=0
2317
2318 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2319 rm -f -r conftest* confdefs.h
2320
2321 $as_echo "/* confdefs.h */" > confdefs.h
2322
2323 # Predefined preprocessor variables.
2324
2325 cat >>confdefs.h <<_ACEOF
2326 #define PACKAGE_NAME "$PACKAGE_NAME"
2327 _ACEOF
2328
2329 cat >>confdefs.h <<_ACEOF
2330 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2331 _ACEOF
2332
2333 cat >>confdefs.h <<_ACEOF
2334 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2335 _ACEOF
2336
2337 cat >>confdefs.h <<_ACEOF
2338 #define PACKAGE_STRING "$PACKAGE_STRING"
2339 _ACEOF
2340
2341 cat >>confdefs.h <<_ACEOF
2342 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2343 _ACEOF
2344
2345 cat >>confdefs.h <<_ACEOF
2346 #define PACKAGE_URL "$PACKAGE_URL"
2347 _ACEOF
2348
2349
2350 # Let the site file select an alternate cache file if it wants to.
2351 # Prefer an explicitly selected file to automatically selected ones.
2352 ac_site_file1=NONE
2353 ac_site_file2=NONE
2354 if test -n "$CONFIG_SITE"; then
2355   # We do not want a PATH search for config.site.
2356   case $CONFIG_SITE in #((
2357     -*)  ac_site_file1=./$CONFIG_SITE;;
2358     */*) ac_site_file1=$CONFIG_SITE;;
2359     *)   ac_site_file1=./$CONFIG_SITE;;
2360   esac
2361 elif test "x$prefix" != xNONE; then
2362   ac_site_file1=$prefix/share/config.site
2363   ac_site_file2=$prefix/etc/config.site
2364 else
2365   ac_site_file1=$ac_default_prefix/share/config.site
2366   ac_site_file2=$ac_default_prefix/etc/config.site
2367 fi
2368 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2369 do
2370   test "x$ac_site_file" = xNONE && continue
2371   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2372     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2373 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2374     sed 's/^/| /' "$ac_site_file" >&5
2375     . "$ac_site_file" \
2376       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2377 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2378 as_fn_error $? "failed to load site script $ac_site_file
2379 See \`config.log' for more details" "$LINENO" 5; }
2380   fi
2381 done
2382
2383 if test -r "$cache_file"; then
2384   # Some versions of bash will fail to source /dev/null (special files
2385   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2386   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2387     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2388 $as_echo "$as_me: loading cache $cache_file" >&6;}
2389     case $cache_file in
2390       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2391       *)                      . "./$cache_file";;
2392     esac
2393   fi
2394 else
2395   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2396 $as_echo "$as_me: creating cache $cache_file" >&6;}
2397   >$cache_file
2398 fi
2399
2400 # Check that the precious variables saved in the cache have kept the same
2401 # value.
2402 ac_cache_corrupted=false
2403 for ac_var in $ac_precious_vars; do
2404   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2405   eval ac_new_set=\$ac_env_${ac_var}_set
2406   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2407   eval ac_new_val=\$ac_env_${ac_var}_value
2408   case $ac_old_set,$ac_new_set in
2409     set,)
2410       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2411 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2412       ac_cache_corrupted=: ;;
2413     ,set)
2414       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2415 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2416       ac_cache_corrupted=: ;;
2417     ,);;
2418     *)
2419       if test "x$ac_old_val" != "x$ac_new_val"; then
2420         # differences in whitespace do not lead to failure.
2421         ac_old_val_w=`echo x $ac_old_val`
2422         ac_new_val_w=`echo x $ac_new_val`
2423         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2424           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2425 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2426           ac_cache_corrupted=:
2427         else
2428           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2429 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2430           eval $ac_var=\$ac_old_val
2431         fi
2432         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2433 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2434         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2435 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2436       fi;;
2437   esac
2438   # Pass precious variables to config.status.
2439   if test "$ac_new_set" = set; then
2440     case $ac_new_val in
2441     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2442     *) ac_arg=$ac_var=$ac_new_val ;;
2443     esac
2444     case " $ac_configure_args " in
2445       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2446       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2447     esac
2448   fi
2449 done
2450 if $ac_cache_corrupted; then
2451   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2452 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2453   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2454 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2455   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2456 fi
2457 ## -------------------- ##
2458 ## Main body of script. ##
2459 ## -------------------- ##
2460
2461 ac_ext=c
2462 ac_cpp='$CPP $CPPFLAGS'
2463 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2464 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2465 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2466
2467
2468
2469 ac_config_headers="$ac_config_headers include/config.h"
2470
2471 ac_aux_dir=
2472 for ac_dir in tools "$srcdir"/tools; do
2473   if test -f "$ac_dir/install-sh"; then
2474     ac_aux_dir=$ac_dir
2475     ac_install_sh="$ac_aux_dir/install-sh -c"
2476     break
2477   elif test -f "$ac_dir/install.sh"; then
2478     ac_aux_dir=$ac_dir
2479     ac_install_sh="$ac_aux_dir/install.sh -c"
2480     break
2481   elif test -f "$ac_dir/shtool"; then
2482     ac_aux_dir=$ac_dir
2483     ac_install_sh="$ac_aux_dir/shtool install -c"
2484     break
2485   fi
2486 done
2487 if test -z "$ac_aux_dir"; then
2488   as_fn_error $? "cannot find install-sh, install.sh, or shtool in tools \"$srcdir\"/tools" "$LINENO" 5
2489 fi
2490
2491 # These three variables are undocumented and unsupported,
2492 # and are intended to be withdrawn in a future Autoconf release.
2493 # They can cause serious problems if a builder's source tree is in a directory
2494 # whose full name contains unusual characters.
2495 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2496 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2497 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2498
2499
2500
2501
2502
2503 # Check whether --enable-win16 was given.
2504 if test "${enable_win16+set}" = set; then :
2505   enableval=$enable_win16;
2506 fi
2507
2508 # Check whether --enable-win64 was given.
2509 if test "${enable_win64+set}" = set; then :
2510   enableval=$enable_win64;
2511 fi
2512
2513 # Check whether --enable-tests was given.
2514 if test "${enable_tests+set}" = set; then :
2515   enableval=$enable_tests;
2516 fi
2517
2518 # Check whether --enable-maintainer-mode was given.
2519 if test "${enable_maintainer_mode+set}" = set; then :
2520   enableval=$enable_maintainer_mode;
2521 fi
2522
2523
2524
2525 # Check whether --with-alsa was given.
2526 if test "${with_alsa+set}" = set; then :
2527   withval=$with_alsa; if test "x$withval" = "xno"; then ac_cv_header_sys_asoundlib_h=no; ac_cv_header_alsa_asoundlib_h=no; fi
2528 fi
2529
2530
2531 # Check whether --with-capi was given.
2532 if test "${with_capi+set}" = set; then :
2533   withval=$with_capi; if test "x$withval" = "xno"; then ac_cv_header_capi20_h=no; ac_cv_header_linux_capi_h=no; fi
2534 fi
2535
2536
2537 # Check whether --with-cms was given.
2538 if test "${with_cms+set}" = set; then :
2539   withval=$with_cms; if test "x$withval" = "xno"; then ac_cv_header_lcms_h=no; ac_cv_header_lcms_lcms_h=no; fi
2540 fi
2541
2542
2543 # Check whether --with-coreaudio was given.
2544 if test "${with_coreaudio+set}" = set; then :
2545   withval=$with_coreaudio; if test "x$withval" = "xno"; then ac_cv_header_CoreAudio_CoreAudio_h=no; fi
2546 fi
2547
2548
2549 # Check whether --with-cups was given.
2550 if test "${with_cups+set}" = set; then :
2551   withval=$with_cups;
2552 fi
2553
2554
2555 # Check whether --with-curses was given.
2556 if test "${with_curses+set}" = set; then :
2557   withval=$with_curses; if test "x$withval" = "xno"; then ac_cv_header_ncurses_h=no; ac_cv_header_curses_h=no; fi
2558 fi
2559
2560
2561 # Check whether --with-esd was given.
2562 if test "${with_esd+set}" = set; then :
2563   withval=$with_esd;
2564 fi
2565
2566
2567 # Check whether --with-fontconfig was given.
2568 if test "${with_fontconfig+set}" = set; then :
2569   withval=$with_fontconfig; if test "x$withval" = "xno"; then ac_cv_header_fontconfig_fontconfig_h=no; fi
2570 fi
2571
2572
2573 # Check whether --with-freetype was given.
2574 if test "${with_freetype+set}" = set; then :
2575   withval=$with_freetype;
2576 fi
2577
2578
2579 # Check whether --with-gettextpo was given.
2580 if test "${with_gettextpo+set}" = set; then :
2581   withval=$with_gettextpo; if test "x$withval" = "xno"; then ac_cv_header_gettext_po_h=no; fi
2582 fi
2583
2584
2585 # Check whether --with-gphoto was given.
2586 if test "${with_gphoto+set}" = set; then :
2587   withval=$with_gphoto;
2588 fi
2589
2590
2591 # Check whether --with-glu was given.
2592 if test "${with_glu+set}" = set; then :
2593   withval=$with_glu; if test "x$withval" = "xno"; then ac_cv_header_GL_glu_h=no; fi
2594 fi
2595
2596
2597 # Check whether --with-gnutls was given.
2598 if test "${with_gnutls+set}" = set; then :
2599   withval=$with_gnutls;
2600 fi
2601
2602
2603 # Check whether --with-gsm was given.
2604 if test "${with_gsm+set}" = set; then :
2605   withval=$with_gsm; if test "x$withval" = "xno"; then ac_cv_header_gsm_h=no; ac_cv_header_gsm_gsm_h=no; fi
2606 fi
2607
2608
2609 # Check whether --with-gstreamer was given.
2610 if test "${with_gstreamer+set}" = set; then :
2611   withval=$with_gstreamer;
2612 fi
2613
2614
2615 # Check whether --with-hal was given.
2616 if test "${with_hal+set}" = set; then :
2617   withval=$with_hal;
2618 fi
2619
2620
2621 # Check whether --with-jack was given.
2622 if test "${with_jack+set}" = set; then :
2623   withval=$with_jack; if test "x$withval" = "xno"; then ac_cv_header_jack_jack_h=no; fi
2624 fi
2625
2626
2627 # Check whether --with-jpeg was given.
2628 if test "${with_jpeg+set}" = set; then :
2629   withval=$with_jpeg; if test "x$withval" = "xno"; then ac_cv_header_jpeglib_h=no; fi
2630 fi
2631
2632
2633 # Check whether --with-ldap was given.
2634 if test "${with_ldap+set}" = set; then :
2635   withval=$with_ldap; if test "x$withval" = "xno"; then ac_cv_header_ldap_h=no; ac_cv_header_lber_h=no; fi
2636 fi
2637
2638
2639 # Check whether --with-mpg123 was given.
2640 if test "${with_mpg123+set}" = set; then :
2641   withval=$with_mpg123; if test "x$withval" = "xno"; then ac_cv_header_mpg123_h=no; fi
2642 fi
2643
2644
2645 # Check whether --with-nas was given.
2646 if test "${with_nas+set}" = set; then :
2647   withval=$with_nas; if test "x$withval" = "xno"; then ac_cv_header_audio_audiolib_h=no; fi
2648 fi
2649
2650
2651 # Check whether --with-openal was given.
2652 if test "${with_openal+set}" = set; then :
2653   withval=$with_openal; if test "x$withval" = "xno"; then ac_cv_header_AL_al_h=no; ac_cv_header_OpenAL_al_h=no; fi
2654 fi
2655
2656
2657 # Check whether --with-opencl was given.
2658 if test "${with_opencl+set}" = set; then :
2659   withval=$with_opencl; if test "x$withval" = "xno"; then ac_cv_header_CL_cl_h=no; ac_cv_header_OpenCL_opencl_h=no; fi
2660 fi
2661
2662
2663 # Check whether --with-opengl was given.
2664 if test "${with_opengl+set}" = set; then :
2665   withval=$with_opengl;
2666 fi
2667
2668
2669 # Check whether --with-openssl was given.
2670 if test "${with_openssl+set}" = set; then :
2671   withval=$with_openssl; if test "x$withval" = "xno"; then ac_cv_header_openssl_err_h=no; ac_cv_header_openssl_ssl_h=no; fi
2672 fi
2673
2674
2675 # Check whether --with-oss was given.
2676 if test "${with_oss+set}" = set; then :
2677   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
2678 fi
2679
2680
2681 # Check whether --with-png was given.
2682 if test "${with_png+set}" = set; then :
2683   withval=$with_png; if test "x$withval" = "xno"; then ac_cv_header_png_h=no; fi
2684 fi
2685
2686
2687 # Check whether --with-pthread was given.
2688 if test "${with_pthread+set}" = set; then :
2689   withval=$with_pthread; if test "x$withval" = "xno"; then ac_cv_header_pthread_h=no; fi
2690 fi
2691
2692
2693 # Check whether --with-sane was given.
2694 if test "${with_sane+set}" = set; then :
2695   withval=$with_sane;
2696 fi
2697
2698
2699 # Check whether --with-tiff was given.
2700 if test "${with_tiff+set}" = set; then :
2701   withval=$with_tiff; if test "x$withval" = "xno"; then ac_cv_header_tiffio_h=no; fi
2702 fi
2703
2704
2705 # Check whether --with-v4l was given.
2706 if test "${with_v4l+set}" = set; then :
2707   withval=$with_v4l;
2708 fi
2709
2710
2711 # Check whether --with-xcomposite was given.
2712 if test "${with_xcomposite+set}" = set; then :
2713   withval=$with_xcomposite; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xcomposite_h=no; fi
2714 fi
2715
2716
2717 # Check whether --with-xcursor was given.
2718 if test "${with_xcursor+set}" = set; then :
2719   withval=$with_xcursor; if test "x$withval" = "xno"; then ac_cv_header_X11_Xcursor_Xcursor_h=no; fi
2720 fi
2721
2722
2723 # Check whether --with-xinerama was given.
2724 if test "${with_xinerama+set}" = set; then :
2725   withval=$with_xinerama; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xinerama_h=no; fi
2726 fi
2727
2728
2729 # Check whether --with-xinput was given.
2730 if test "${with_xinput+set}" = set; then :
2731   withval=$with_xinput; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput_h=no; fi
2732 fi
2733
2734
2735 # Check whether --with-xinput2 was given.
2736 if test "${with_xinput2+set}" = set; then :
2737   withval=$with_xinput2; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput2_h=no; fi
2738 fi
2739
2740
2741 # Check whether --with-xml was given.
2742 if test "${with_xml+set}" = set; then :
2743   withval=$with_xml;
2744 fi
2745
2746
2747 # Check whether --with-xrandr was given.
2748 if test "${with_xrandr+set}" = set; then :
2749   withval=$with_xrandr; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrandr_h=no; fi
2750 fi
2751
2752
2753 # Check whether --with-xrender was given.
2754 if test "${with_xrender+set}" = set; then :
2755   withval=$with_xrender; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrender_h=no; fi
2756 fi
2757
2758
2759 # Check whether --with-xshape was given.
2760 if test "${with_xshape+set}" = set; then :
2761   withval=$with_xshape; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_shape_h=no; fi
2762 fi
2763
2764
2765 # Check whether --with-xshm was given.
2766 if test "${with_xshm+set}" = set; then :
2767   withval=$with_xshm; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XShm_h=no; fi
2768 fi
2769
2770
2771 # Check whether --with-xslt was given.
2772 if test "${with_xslt+set}" = set; then :
2773   withval=$with_xslt;
2774 fi
2775
2776
2777 # Check whether --with-xxf86vm was given.
2778 if test "${with_xxf86vm+set}" = set; then :
2779   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
2780 fi
2781
2782
2783 # Check whether --with-zlib was given.
2784 if test "${with_zlib+set}" = set; then :
2785   withval=$with_zlib; if test "x$withval" = "xno"; then ac_cv_header_zlib_h=no; fi
2786 fi
2787
2788
2789
2790 # Check whether --with-wine-tools was given.
2791 if test "${with_wine_tools+set}" = set; then :
2792   withval=$with_wine_tools;
2793 fi
2794
2795
2796 # Check whether --with-wine64 was given.
2797 if test "${with_wine64+set}" = set; then :
2798   withval=$with_wine64;
2799 fi
2800
2801
2802 # Make sure we can run config.sub.
2803 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2804   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2805
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2807 $as_echo_n "checking build system type... " >&6; }
2808 if ${ac_cv_build+:} false; then :
2809   $as_echo_n "(cached) " >&6
2810 else
2811   ac_build_alias=$build_alias
2812 test "x$ac_build_alias" = x &&
2813   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2814 test "x$ac_build_alias" = x &&
2815   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2816 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2817   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2818
2819 fi
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2821 $as_echo "$ac_cv_build" >&6; }
2822 case $ac_cv_build in
2823 *-*-*) ;;
2824 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2825 esac
2826 build=$ac_cv_build
2827 ac_save_IFS=$IFS; IFS='-'
2828 set x $ac_cv_build
2829 shift
2830 build_cpu=$1
2831 build_vendor=$2
2832 shift; shift
2833 # Remember, the first character of IFS is used to create $*,
2834 # except with old shells:
2835 build_os=$*
2836 IFS=$ac_save_IFS
2837 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2838
2839
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2841 $as_echo_n "checking host system type... " >&6; }
2842 if ${ac_cv_host+:} false; then :
2843   $as_echo_n "(cached) " >&6
2844 else
2845   if test "x$host_alias" = x; then
2846   ac_cv_host=$ac_cv_build
2847 else
2848   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2849     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2850 fi
2851
2852 fi
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2854 $as_echo "$ac_cv_host" >&6; }
2855 case $ac_cv_host in
2856 *-*-*) ;;
2857 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2858 esac
2859 host=$ac_cv_host
2860 ac_save_IFS=$IFS; IFS='-'
2861 set x $ac_cv_host
2862 shift
2863 host_cpu=$1
2864 host_vendor=$2
2865 shift; shift
2866 # Remember, the first character of IFS is used to create $*,
2867 # except with old shells:
2868 host_os=$*
2869 IFS=$ac_save_IFS
2870 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2871
2872
2873
2874 case "$srcdir" in
2875  .) ;;
2876  *) if test -f "$srcdir/Makefile" -o -f "$srcdir/include/config.h"; then
2877       as_fn_error $? "you are building out of the source tree, but the source tree contains object files.
2878 You need to run 'make distclean' in the source tree first." "$LINENO" 5
2879     fi ;;
2880 esac
2881
2882
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2884 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2885 set x ${MAKE-make}
2886 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2887 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2888   $as_echo_n "(cached) " >&6
2889 else
2890   cat >conftest.make <<\_ACEOF
2891 SHELL = /bin/sh
2892 all:
2893         @echo '@@@%%%=$(MAKE)=@@@%%%'
2894 _ACEOF
2895 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2896 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2897   *@@@%%%=?*=@@@%%%*)
2898     eval ac_cv_prog_make_${ac_make}_set=yes;;
2899   *)
2900     eval ac_cv_prog_make_${ac_make}_set=no;;
2901 esac
2902 rm -f conftest.make
2903 fi
2904 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2905   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2906 $as_echo "yes" >&6; }
2907   SET_MAKE=
2908 else
2909   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2910 $as_echo "no" >&6; }
2911   SET_MAKE="MAKE=${MAKE-make}"
2912 fi
2913
2914 ac_ext=c
2915 ac_cpp='$CPP $CPPFLAGS'
2916 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2917 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2918 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2919 if test -n "$ac_tool_prefix"; then
2920   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2921 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2923 $as_echo_n "checking for $ac_word... " >&6; }
2924 if ${ac_cv_prog_CC+:} false; then :
2925   $as_echo_n "(cached) " >&6
2926 else
2927   if test -n "$CC"; then
2928   ac_cv_prog_CC="$CC" # Let the user override the test.
2929 else
2930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2931 for as_dir in $PATH
2932 do
2933   IFS=$as_save_IFS
2934   test -z "$as_dir" && as_dir=.
2935     for ac_exec_ext in '' $ac_executable_extensions; do
2936   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2937     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2938     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2939     break 2
2940   fi
2941 done
2942   done
2943 IFS=$as_save_IFS
2944
2945 fi
2946 fi
2947 CC=$ac_cv_prog_CC
2948 if test -n "$CC"; then
2949   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2950 $as_echo "$CC" >&6; }
2951 else
2952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2953 $as_echo "no" >&6; }
2954 fi
2955
2956
2957 fi
2958 if test -z "$ac_cv_prog_CC"; then
2959   ac_ct_CC=$CC
2960   # Extract the first word of "gcc", so it can be a program name with args.
2961 set dummy gcc; ac_word=$2
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2963 $as_echo_n "checking for $ac_word... " >&6; }
2964 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2965   $as_echo_n "(cached) " >&6
2966 else
2967   if test -n "$ac_ct_CC"; then
2968   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2969 else
2970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2971 for as_dir in $PATH
2972 do
2973   IFS=$as_save_IFS
2974   test -z "$as_dir" && as_dir=.
2975     for ac_exec_ext in '' $ac_executable_extensions; do
2976   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2977     ac_cv_prog_ac_ct_CC="gcc"
2978     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2979     break 2
2980   fi
2981 done
2982   done
2983 IFS=$as_save_IFS
2984
2985 fi
2986 fi
2987 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2988 if test -n "$ac_ct_CC"; then
2989   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2990 $as_echo "$ac_ct_CC" >&6; }
2991 else
2992   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2993 $as_echo "no" >&6; }
2994 fi
2995
2996   if test "x$ac_ct_CC" = x; then
2997     CC=""
2998   else
2999     case $cross_compiling:$ac_tool_warned in
3000 yes:)
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3002 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3003 ac_tool_warned=yes ;;
3004 esac
3005     CC=$ac_ct_CC
3006   fi
3007 else
3008   CC="$ac_cv_prog_CC"
3009 fi
3010
3011 if test -z "$CC"; then
3012           if test -n "$ac_tool_prefix"; then
3013     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3014 set dummy ${ac_tool_prefix}cc; ac_word=$2
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3016 $as_echo_n "checking for $ac_word... " >&6; }
3017 if ${ac_cv_prog_CC+:} false; then :
3018   $as_echo_n "(cached) " >&6
3019 else
3020   if test -n "$CC"; then
3021   ac_cv_prog_CC="$CC" # Let the user override the test.
3022 else
3023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3024 for as_dir in $PATH
3025 do
3026   IFS=$as_save_IFS
3027   test -z "$as_dir" && as_dir=.
3028     for ac_exec_ext in '' $ac_executable_extensions; do
3029   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3030     ac_cv_prog_CC="${ac_tool_prefix}cc"
3031     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3032     break 2
3033   fi
3034 done
3035   done
3036 IFS=$as_save_IFS
3037
3038 fi
3039 fi
3040 CC=$ac_cv_prog_CC
3041 if test -n "$CC"; then
3042   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3043 $as_echo "$CC" >&6; }
3044 else
3045   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3046 $as_echo "no" >&6; }
3047 fi
3048
3049
3050   fi
3051 fi
3052 if test -z "$CC"; then
3053   # Extract the first word of "cc", so it can be a program name with args.
3054 set dummy cc; ac_word=$2
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3056 $as_echo_n "checking for $ac_word... " >&6; }
3057 if ${ac_cv_prog_CC+:} false; then :
3058   $as_echo_n "(cached) " >&6
3059 else
3060   if test -n "$CC"; then
3061   ac_cv_prog_CC="$CC" # Let the user override the test.
3062 else
3063   ac_prog_rejected=no
3064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3065 for as_dir in $PATH
3066 do
3067   IFS=$as_save_IFS
3068   test -z "$as_dir" && as_dir=.
3069     for ac_exec_ext in '' $ac_executable_extensions; do
3070   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3071     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3072        ac_prog_rejected=yes
3073        continue
3074      fi
3075     ac_cv_prog_CC="cc"
3076     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3077     break 2
3078   fi
3079 done
3080   done
3081 IFS=$as_save_IFS
3082
3083 if test $ac_prog_rejected = yes; then
3084   # We found a bogon in the path, so make sure we never use it.
3085   set dummy $ac_cv_prog_CC
3086   shift
3087   if test $# != 0; then
3088     # We chose a different compiler from the bogus one.
3089     # However, it has the same basename, so the bogon will be chosen
3090     # first if we set CC to just the basename; use the full file name.
3091     shift
3092     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3093   fi
3094 fi
3095 fi
3096 fi
3097 CC=$ac_cv_prog_CC
3098 if test -n "$CC"; then
3099   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3100 $as_echo "$CC" >&6; }
3101 else
3102   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3103 $as_echo "no" >&6; }
3104 fi
3105
3106
3107 fi
3108 if test -z "$CC"; then
3109   if test -n "$ac_tool_prefix"; then
3110   for ac_prog in cl.exe
3111   do
3112     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3113 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3115 $as_echo_n "checking for $ac_word... " >&6; }
3116 if ${ac_cv_prog_CC+:} false; then :
3117   $as_echo_n "(cached) " >&6
3118 else
3119   if test -n "$CC"; then
3120   ac_cv_prog_CC="$CC" # Let the user override the test.
3121 else
3122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3123 for as_dir in $PATH
3124 do
3125   IFS=$as_save_IFS
3126   test -z "$as_dir" && as_dir=.
3127     for ac_exec_ext in '' $ac_executable_extensions; do
3128   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3129     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3130     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3131     break 2
3132   fi
3133 done
3134   done
3135 IFS=$as_save_IFS
3136
3137 fi
3138 fi
3139 CC=$ac_cv_prog_CC
3140 if test -n "$CC"; then
3141   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3142 $as_echo "$CC" >&6; }
3143 else
3144   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3145 $as_echo "no" >&6; }
3146 fi
3147
3148
3149     test -n "$CC" && break
3150   done
3151 fi
3152 if test -z "$CC"; then
3153   ac_ct_CC=$CC
3154   for ac_prog in cl.exe
3155 do
3156   # Extract the first word of "$ac_prog", so it can be a program name with args.
3157 set dummy $ac_prog; ac_word=$2
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3159 $as_echo_n "checking for $ac_word... " >&6; }
3160 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3161   $as_echo_n "(cached) " >&6
3162 else
3163   if test -n "$ac_ct_CC"; then
3164   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3165 else
3166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3167 for as_dir in $PATH
3168 do
3169   IFS=$as_save_IFS
3170   test -z "$as_dir" && as_dir=.
3171     for ac_exec_ext in '' $ac_executable_extensions; do
3172   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3173     ac_cv_prog_ac_ct_CC="$ac_prog"
3174     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3175     break 2
3176   fi
3177 done
3178   done
3179 IFS=$as_save_IFS
3180
3181 fi
3182 fi
3183 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3184 if test -n "$ac_ct_CC"; then
3185   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3186 $as_echo "$ac_ct_CC" >&6; }
3187 else
3188   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3189 $as_echo "no" >&6; }
3190 fi
3191
3192
3193   test -n "$ac_ct_CC" && break
3194 done
3195
3196   if test "x$ac_ct_CC" = x; then
3197     CC=""
3198   else
3199     case $cross_compiling:$ac_tool_warned in
3200 yes:)
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3202 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3203 ac_tool_warned=yes ;;
3204 esac
3205     CC=$ac_ct_CC
3206   fi
3207 fi
3208
3209 fi
3210
3211
3212 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3213 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3214 as_fn_error $? "no acceptable C compiler found in \$PATH
3215 See \`config.log' for more details" "$LINENO" 5; }
3216
3217 # Provide some information about the compiler.
3218 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3219 set X $ac_compile
3220 ac_compiler=$2
3221 for ac_option in --version -v -V -qversion; do
3222   { { ac_try="$ac_compiler $ac_option >&5"
3223 case "(($ac_try" in
3224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3225   *) ac_try_echo=$ac_try;;
3226 esac
3227 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3228 $as_echo "$ac_try_echo"; } >&5
3229   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3230   ac_status=$?
3231   if test -s conftest.err; then
3232     sed '10a\
3233 ... rest of stderr output deleted ...
3234          10q' conftest.err >conftest.er1
3235     cat conftest.er1 >&5
3236   fi
3237   rm -f conftest.er1 conftest.err
3238   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3239   test $ac_status = 0; }
3240 done
3241
3242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3243 /* end confdefs.h.  */
3244
3245 int
3246 main ()
3247 {
3248
3249   ;
3250   return 0;
3251 }
3252 _ACEOF
3253 ac_clean_files_save=$ac_clean_files
3254 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3255 # Try to create an executable without -o first, disregard a.out.
3256 # It will help us diagnose broken compilers, and finding out an intuition
3257 # of exeext.
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3259 $as_echo_n "checking whether the C compiler works... " >&6; }
3260 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3261
3262 # The possible output files:
3263 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3264
3265 ac_rmfiles=
3266 for ac_file in $ac_files
3267 do
3268   case $ac_file in
3269     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3270     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3271   esac
3272 done
3273 rm -f $ac_rmfiles
3274
3275 if { { ac_try="$ac_link_default"
3276 case "(($ac_try" in
3277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3278   *) ac_try_echo=$ac_try;;
3279 esac
3280 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3281 $as_echo "$ac_try_echo"; } >&5
3282   (eval "$ac_link_default") 2>&5
3283   ac_status=$?
3284   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3285   test $ac_status = 0; }; then :
3286   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3287 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3288 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3289 # so that the user can short-circuit this test for compilers unknown to
3290 # Autoconf.
3291 for ac_file in $ac_files ''
3292 do
3293   test -f "$ac_file" || continue
3294   case $ac_file in
3295     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3296         ;;
3297     [ab].out )
3298         # We found the default executable, but exeext='' is most
3299         # certainly right.
3300         break;;
3301     *.* )
3302         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3303         then :; else
3304            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3305         fi
3306         # We set ac_cv_exeext here because the later test for it is not
3307         # safe: cross compilers may not add the suffix if given an `-o'
3308         # argument, so we may need to know it at that point already.
3309         # Even if this section looks crufty: it has the advantage of
3310         # actually working.
3311         break;;
3312     * )
3313         break;;
3314   esac
3315 done
3316 test "$ac_cv_exeext" = no && ac_cv_exeext=
3317
3318 else
3319   ac_file=''
3320 fi
3321 if test -z "$ac_file"; then :
3322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3323 $as_echo "no" >&6; }
3324 $as_echo "$as_me: failed program was:" >&5
3325 sed 's/^/| /' conftest.$ac_ext >&5
3326
3327 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3328 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3329 as_fn_error 77 "C compiler cannot create executables
3330 See \`config.log' for more details" "$LINENO" 5; }
3331 else
3332   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3333 $as_echo "yes" >&6; }
3334 fi
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3336 $as_echo_n "checking for C compiler default output file name... " >&6; }
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3338 $as_echo "$ac_file" >&6; }
3339 ac_exeext=$ac_cv_exeext
3340
3341 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3342 ac_clean_files=$ac_clean_files_save
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3344 $as_echo_n "checking for suffix of executables... " >&6; }
3345 if { { ac_try="$ac_link"
3346 case "(($ac_try" in
3347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3348   *) ac_try_echo=$ac_try;;
3349 esac
3350 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3351 $as_echo "$ac_try_echo"; } >&5
3352   (eval "$ac_link") 2>&5
3353   ac_status=$?
3354   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3355   test $ac_status = 0; }; then :
3356   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3357 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3358 # work properly (i.e., refer to `conftest.exe'), while it won't with
3359 # `rm'.
3360 for ac_file in conftest.exe conftest conftest.*; do
3361   test -f "$ac_file" || continue
3362   case $ac_file in
3363     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3364     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3365           break;;
3366     * ) break;;
3367   esac
3368 done
3369 else
3370   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3371 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3372 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3373 See \`config.log' for more details" "$LINENO" 5; }
3374 fi
3375 rm -f conftest conftest$ac_cv_exeext
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3377 $as_echo "$ac_cv_exeext" >&6; }
3378
3379 rm -f conftest.$ac_ext
3380 EXEEXT=$ac_cv_exeext
3381 ac_exeext=$EXEEXT
3382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3383 /* end confdefs.h.  */
3384 #include <stdio.h>
3385 int
3386 main ()
3387 {
3388 FILE *f = fopen ("conftest.out", "w");
3389  return ferror (f) || fclose (f) != 0;
3390
3391   ;
3392   return 0;
3393 }
3394 _ACEOF
3395 ac_clean_files="$ac_clean_files conftest.out"
3396 # Check that the compiler produces executables we can run.  If not, either
3397 # the compiler is broken, or we cross compile.
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3399 $as_echo_n "checking whether we are cross compiling... " >&6; }
3400 if test "$cross_compiling" != yes; then
3401   { { ac_try="$ac_link"
3402 case "(($ac_try" in
3403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3404   *) ac_try_echo=$ac_try;;
3405 esac
3406 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3407 $as_echo "$ac_try_echo"; } >&5
3408   (eval "$ac_link") 2>&5
3409   ac_status=$?
3410   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3411   test $ac_status = 0; }
3412   if { ac_try='./conftest$ac_cv_exeext'
3413   { { case "(($ac_try" in
3414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3415   *) ac_try_echo=$ac_try;;
3416 esac
3417 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3418 $as_echo "$ac_try_echo"; } >&5
3419   (eval "$ac_try") 2>&5
3420   ac_status=$?
3421   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3422   test $ac_status = 0; }; }; then
3423     cross_compiling=no
3424   else
3425     if test "$cross_compiling" = maybe; then
3426         cross_compiling=yes
3427     else
3428         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3429 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3430 as_fn_error $? "cannot run C compiled programs.
3431 If you meant to cross compile, use \`--host'.
3432 See \`config.log' for more details" "$LINENO" 5; }
3433     fi
3434   fi
3435 fi
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3437 $as_echo "$cross_compiling" >&6; }
3438
3439 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3440 ac_clean_files=$ac_clean_files_save
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3442 $as_echo_n "checking for suffix of object files... " >&6; }
3443 if ${ac_cv_objext+:} false; then :
3444   $as_echo_n "(cached) " >&6
3445 else
3446   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3447 /* end confdefs.h.  */
3448
3449 int
3450 main ()
3451 {
3452
3453   ;
3454   return 0;
3455 }
3456 _ACEOF
3457 rm -f conftest.o conftest.obj
3458 if { { ac_try="$ac_compile"
3459 case "(($ac_try" in
3460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3461   *) ac_try_echo=$ac_try;;
3462 esac
3463 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3464 $as_echo "$ac_try_echo"; } >&5
3465   (eval "$ac_compile") 2>&5
3466   ac_status=$?
3467   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3468   test $ac_status = 0; }; then :
3469   for ac_file in conftest.o conftest.obj conftest.*; do
3470   test -f "$ac_file" || continue;
3471   case $ac_file in
3472     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3473     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3474        break;;
3475   esac
3476 done
3477 else
3478   $as_echo "$as_me: failed program was:" >&5
3479 sed 's/^/| /' conftest.$ac_ext >&5
3480
3481 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3482 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3483 as_fn_error $? "cannot compute suffix of object files: cannot compile
3484 See \`config.log' for more details" "$LINENO" 5; }
3485 fi
3486 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3487 fi
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3489 $as_echo "$ac_cv_objext" >&6; }
3490 OBJEXT=$ac_cv_objext
3491 ac_objext=$OBJEXT
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3493 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3494 if ${ac_cv_c_compiler_gnu+:} false; then :
3495   $as_echo_n "(cached) " >&6
3496 else
3497   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3498 /* end confdefs.h.  */
3499
3500 int
3501 main ()
3502 {
3503 #ifndef __GNUC__
3504        choke me
3505 #endif
3506
3507   ;
3508   return 0;
3509 }
3510 _ACEOF
3511 if ac_fn_c_try_compile "$LINENO"; then :
3512   ac_compiler_gnu=yes
3513 else
3514   ac_compiler_gnu=no
3515 fi
3516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3517 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3518
3519 fi
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3521 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3522 if test $ac_compiler_gnu = yes; then
3523   GCC=yes
3524 else
3525   GCC=
3526 fi
3527 ac_test_CFLAGS=${CFLAGS+set}
3528 ac_save_CFLAGS=$CFLAGS
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3530 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3531 if ${ac_cv_prog_cc_g+:} false; then :
3532   $as_echo_n "(cached) " >&6
3533 else
3534   ac_save_c_werror_flag=$ac_c_werror_flag
3535    ac_c_werror_flag=yes
3536    ac_cv_prog_cc_g=no
3537    CFLAGS="-g"
3538    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3539 /* end confdefs.h.  */
3540
3541 int
3542 main ()
3543 {
3544
3545   ;
3546   return 0;
3547 }
3548 _ACEOF
3549 if ac_fn_c_try_compile "$LINENO"; then :
3550   ac_cv_prog_cc_g=yes
3551 else
3552   CFLAGS=""
3553       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3554 /* end confdefs.h.  */
3555
3556 int
3557 main ()
3558 {
3559
3560   ;
3561   return 0;
3562 }
3563 _ACEOF
3564 if ac_fn_c_try_compile "$LINENO"; then :
3565
3566 else
3567   ac_c_werror_flag=$ac_save_c_werror_flag
3568          CFLAGS="-g"
3569          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3570 /* end confdefs.h.  */
3571
3572 int
3573 main ()
3574 {
3575
3576   ;
3577   return 0;
3578 }
3579 _ACEOF
3580 if ac_fn_c_try_compile "$LINENO"; then :
3581   ac_cv_prog_cc_g=yes
3582 fi
3583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3584 fi
3585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3586 fi
3587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3588    ac_c_werror_flag=$ac_save_c_werror_flag
3589 fi
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3591 $as_echo "$ac_cv_prog_cc_g" >&6; }
3592 if test "$ac_test_CFLAGS" = set; then
3593   CFLAGS=$ac_save_CFLAGS
3594 elif test $ac_cv_prog_cc_g = yes; then
3595   if test "$GCC" = yes; then
3596     CFLAGS="-g -O2"
3597   else
3598     CFLAGS="-g"
3599   fi
3600 else
3601   if test "$GCC" = yes; then
3602     CFLAGS="-O2"
3603   else
3604     CFLAGS=
3605   fi
3606 fi
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3608 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3609 if ${ac_cv_prog_cc_c89+:} false; then :
3610   $as_echo_n "(cached) " >&6
3611 else
3612   ac_cv_prog_cc_c89=no
3613 ac_save_CC=$CC
3614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3615 /* end confdefs.h.  */
3616 #include <stdarg.h>
3617 #include <stdio.h>
3618 #include <sys/types.h>
3619 #include <sys/stat.h>
3620 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3621 struct buf { int x; };
3622 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3623 static char *e (p, i)
3624      char **p;
3625      int i;
3626 {
3627   return p[i];
3628 }
3629 static char *f (char * (*g) (char **, int), char **p, ...)
3630 {
3631   char *s;
3632   va_list v;
3633   va_start (v,p);
3634   s = g (p, va_arg (v,int));
3635   va_end (v);
3636   return s;
3637 }
3638
3639 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3640    function prototypes and stuff, but not '\xHH' hex character constants.
3641    These don't provoke an error unfortunately, instead are silently treated
3642    as 'x'.  The following induces an error, until -std is added to get
3643    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3644    array size at least.  It's necessary to write '\x00'==0 to get something
3645    that's true only with -std.  */
3646 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3647
3648 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3649    inside strings and character constants.  */
3650 #define FOO(x) 'x'
3651 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3652
3653 int test (int i, double x);
3654 struct s1 {int (*f) (int a);};
3655 struct s2 {int (*f) (double a);};
3656 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3657 int argc;
3658 char **argv;
3659 int
3660 main ()
3661 {
3662 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3663   ;
3664   return 0;
3665 }
3666 _ACEOF
3667 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3668         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3669 do
3670   CC="$ac_save_CC $ac_arg"
3671   if ac_fn_c_try_compile "$LINENO"; then :
3672   ac_cv_prog_cc_c89=$ac_arg
3673 fi
3674 rm -f core conftest.err conftest.$ac_objext
3675   test "x$ac_cv_prog_cc_c89" != "xno" && break
3676 done
3677 rm -f conftest.$ac_ext
3678 CC=$ac_save_CC
3679
3680 fi
3681 # AC_CACHE_VAL
3682 case "x$ac_cv_prog_cc_c89" in
3683   x)
3684     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3685 $as_echo "none needed" >&6; } ;;
3686   xno)
3687     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3688 $as_echo "unsupported" >&6; } ;;
3689   *)
3690     CC="$CC $ac_cv_prog_cc_c89"
3691     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3692 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3693 esac
3694 if test "x$ac_cv_prog_cc_c89" != xno; then :
3695
3696 fi
3697
3698 ac_ext=c
3699 ac_cpp='$CPP $CPPFLAGS'
3700 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3701 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3702 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3703
3704 ac_ext=cpp
3705 ac_cpp='$CXXCPP $CPPFLAGS'
3706 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3707 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3708 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3709 if test -z "$CXX"; then
3710   if test -n "$CCC"; then
3711     CXX=$CCC
3712   else
3713     if test -n "$ac_tool_prefix"; then
3714   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3715   do
3716     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3717 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3719 $as_echo_n "checking for $ac_word... " >&6; }
3720 if ${ac_cv_prog_CXX+:} false; then :
3721   $as_echo_n "(cached) " >&6
3722 else
3723   if test -n "$CXX"; then
3724   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3725 else
3726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3727 for as_dir in $PATH
3728 do
3729   IFS=$as_save_IFS
3730   test -z "$as_dir" && as_dir=.
3731     for ac_exec_ext in '' $ac_executable_extensions; do
3732   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3733     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3734     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3735     break 2
3736   fi
3737 done
3738   done
3739 IFS=$as_save_IFS
3740
3741 fi
3742 fi
3743 CXX=$ac_cv_prog_CXX
3744 if test -n "$CXX"; then
3745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3746 $as_echo "$CXX" >&6; }
3747 else
3748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3749 $as_echo "no" >&6; }
3750 fi
3751
3752
3753     test -n "$CXX" && break
3754   done
3755 fi
3756 if test -z "$CXX"; then
3757   ac_ct_CXX=$CXX
3758   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3759 do
3760   # Extract the first word of "$ac_prog", so it can be a program name with args.
3761 set dummy $ac_prog; ac_word=$2
3762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3763 $as_echo_n "checking for $ac_word... " >&6; }
3764 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3765   $as_echo_n "(cached) " >&6
3766 else
3767   if test -n "$ac_ct_CXX"; then
3768   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3769 else
3770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3771 for as_dir in $PATH
3772 do
3773   IFS=$as_save_IFS
3774   test -z "$as_dir" && as_dir=.
3775     for ac_exec_ext in '' $ac_executable_extensions; do
3776   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3777     ac_cv_prog_ac_ct_CXX="$ac_prog"
3778     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3779     break 2
3780   fi
3781 done
3782   done
3783 IFS=$as_save_IFS
3784
3785 fi
3786 fi
3787 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3788 if test -n "$ac_ct_CXX"; then
3789   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3790 $as_echo "$ac_ct_CXX" >&6; }
3791 else
3792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3793 $as_echo "no" >&6; }
3794 fi
3795
3796
3797   test -n "$ac_ct_CXX" && break
3798 done
3799
3800   if test "x$ac_ct_CXX" = x; then
3801     CXX="g++"
3802   else
3803     case $cross_compiling:$ac_tool_warned in
3804 yes:)
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3806 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3807 ac_tool_warned=yes ;;
3808 esac
3809     CXX=$ac_ct_CXX
3810   fi
3811 fi
3812
3813   fi
3814 fi
3815 # Provide some information about the compiler.
3816 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3817 set X $ac_compile
3818 ac_compiler=$2
3819 for ac_option in --version -v -V -qversion; do
3820   { { ac_try="$ac_compiler $ac_option >&5"
3821 case "(($ac_try" in
3822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3823   *) ac_try_echo=$ac_try;;
3824 esac
3825 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3826 $as_echo "$ac_try_echo"; } >&5
3827   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3828   ac_status=$?
3829   if test -s conftest.err; then
3830     sed '10a\
3831 ... rest of stderr output deleted ...
3832          10q' conftest.err >conftest.er1
3833     cat conftest.er1 >&5
3834   fi
3835   rm -f conftest.er1 conftest.err
3836   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3837   test $ac_status = 0; }
3838 done
3839
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3841 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3842 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3843   $as_echo_n "(cached) " >&6
3844 else
3845   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3846 /* end confdefs.h.  */
3847
3848 int
3849 main ()
3850 {
3851 #ifndef __GNUC__
3852        choke me
3853 #endif
3854
3855   ;
3856   return 0;
3857 }
3858 _ACEOF
3859 if ac_fn_cxx_try_compile "$LINENO"; then :
3860   ac_compiler_gnu=yes
3861 else
3862   ac_compiler_gnu=no
3863 fi
3864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3865 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3866
3867 fi
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3869 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3870 if test $ac_compiler_gnu = yes; then
3871   GXX=yes
3872 else
3873   GXX=
3874 fi
3875 ac_test_CXXFLAGS=${CXXFLAGS+set}
3876 ac_save_CXXFLAGS=$CXXFLAGS
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3878 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3879 if ${ac_cv_prog_cxx_g+:} false; then :
3880   $as_echo_n "(cached) " >&6
3881 else
3882   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3883    ac_cxx_werror_flag=yes
3884    ac_cv_prog_cxx_g=no
3885    CXXFLAGS="-g"
3886    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3887 /* end confdefs.h.  */
3888
3889 int
3890 main ()
3891 {
3892
3893   ;
3894   return 0;
3895 }
3896 _ACEOF
3897 if ac_fn_cxx_try_compile "$LINENO"; then :
3898   ac_cv_prog_cxx_g=yes
3899 else
3900   CXXFLAGS=""
3901       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3902 /* end confdefs.h.  */
3903
3904 int
3905 main ()
3906 {
3907
3908   ;
3909   return 0;
3910 }
3911 _ACEOF
3912 if ac_fn_cxx_try_compile "$LINENO"; then :
3913
3914 else
3915   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3916          CXXFLAGS="-g"
3917          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3918 /* end confdefs.h.  */
3919
3920 int
3921 main ()
3922 {
3923
3924   ;
3925   return 0;
3926 }
3927 _ACEOF
3928 if ac_fn_cxx_try_compile "$LINENO"; then :
3929   ac_cv_prog_cxx_g=yes
3930 fi
3931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3932 fi
3933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3934 fi
3935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3936    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3937 fi
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3939 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3940 if test "$ac_test_CXXFLAGS" = set; then
3941   CXXFLAGS=$ac_save_CXXFLAGS
3942 elif test $ac_cv_prog_cxx_g = yes; then
3943   if test "$GXX" = yes; then
3944     CXXFLAGS="-g -O2"
3945   else
3946     CXXFLAGS="-g"
3947   fi
3948 else
3949   if test "$GXX" = yes; then
3950     CXXFLAGS="-O2"
3951   else
3952     CXXFLAGS=
3953   fi
3954 fi
3955 ac_ext=c
3956 ac_cpp='$CPP $CPPFLAGS'
3957 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3958 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3959 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3960
3961 if test -n "$ac_tool_prefix"; then
3962   # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
3963 set dummy ${ac_tool_prefix}cpp; ac_word=$2
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3965 $as_echo_n "checking for $ac_word... " >&6; }
3966 if ${ac_cv_prog_CPPBIN+:} false; then :
3967   $as_echo_n "(cached) " >&6
3968 else
3969   if test -n "$CPPBIN"; then
3970   ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test.
3971 else
3972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3973 for as_dir in $PATH
3974 do
3975   IFS=$as_save_IFS
3976   test -z "$as_dir" && as_dir=.
3977     for ac_exec_ext in '' $ac_executable_extensions; do
3978   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3979     ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp"
3980     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3981     break 2
3982   fi
3983 done
3984   done
3985 IFS=$as_save_IFS
3986
3987 fi
3988 fi
3989 CPPBIN=$ac_cv_prog_CPPBIN
3990 if test -n "$CPPBIN"; then
3991   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPPBIN" >&5
3992 $as_echo "$CPPBIN" >&6; }
3993 else
3994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3995 $as_echo "no" >&6; }
3996 fi
3997
3998
3999 fi
4000 if test -z "$ac_cv_prog_CPPBIN"; then
4001   ac_ct_CPPBIN=$CPPBIN
4002   # Extract the first word of "cpp", so it can be a program name with args.
4003 set dummy cpp; ac_word=$2
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4005 $as_echo_n "checking for $ac_word... " >&6; }
4006 if ${ac_cv_prog_ac_ct_CPPBIN+:} false; then :
4007   $as_echo_n "(cached) " >&6
4008 else
4009   if test -n "$ac_ct_CPPBIN"; then
4010   ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test.
4011 else
4012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4013 for as_dir in $PATH
4014 do
4015   IFS=$as_save_IFS
4016   test -z "$as_dir" && as_dir=.
4017     for ac_exec_ext in '' $ac_executable_extensions; do
4018   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4019     ac_cv_prog_ac_ct_CPPBIN="cpp"
4020     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4021     break 2
4022   fi
4023 done
4024   done
4025 IFS=$as_save_IFS
4026
4027 fi
4028 fi
4029 ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN
4030 if test -n "$ac_ct_CPPBIN"; then
4031   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CPPBIN" >&5
4032 $as_echo "$ac_ct_CPPBIN" >&6; }
4033 else
4034   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4035 $as_echo "no" >&6; }
4036 fi
4037
4038   if test "x$ac_ct_CPPBIN" = x; then
4039     CPPBIN="cpp"
4040   else
4041     case $cross_compiling:$ac_tool_warned in
4042 yes:)
4043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4044 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4045 ac_tool_warned=yes ;;
4046 esac
4047     CPPBIN=$ac_ct_CPPBIN
4048   fi
4049 else
4050   CPPBIN="$ac_cv_prog_CPPBIN"
4051 fi
4052
4053
4054 cat >>confdefs.h <<_ACEOF
4055 #define EXEEXT "$ac_exeext"
4056 _ACEOF
4057
4058
4059 case $host in
4060   *-darwin*)
4061     if test "x$enable_win64" = "xyes"
4062     then
4063       CC="$CC -m64"
4064       CXX="$CXX -m64"
4065       LD="${LD:-ld} -arch x86_64"
4066       AS="${AS:-as} -arch x86_64"
4067       host_cpu="x86_64"
4068       notice_platform="64-bit "
4069       TARGETFLAGS="-m64"
4070
4071     else
4072       CC="$CC -m32"
4073       CXX="$CXX -m32"
4074       LD="${LD:-ld} -arch i386"
4075       AS="${AS:-as} -arch i386"
4076       host_cpu="i386"
4077       notice_platform="32-bit "
4078       TARGETFLAGS="-m32"
4079
4080       enable_win16=${enable_win16:-yes}
4081     fi
4082     ;;
4083   x86_64*)
4084     if test "x$enable_win64" != "xyes" -a "$cross_compiling" != "yes"
4085     then
4086       CC="$CC -m32"
4087       CXX="$CXX -m32"
4088       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC works" >&5
4089 $as_echo_n "checking whether $CC works... " >&6; }
4090
4091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4092 /* end confdefs.h.  */
4093
4094 int
4095 main ()
4096 {
4097
4098   ;
4099   return 0;
4100 }
4101 _ACEOF
4102 if ac_fn_c_try_link "$LINENO"; then :
4103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4104 $as_echo "yes" >&6; }
4105 else
4106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4107 $as_echo "no" >&6; }
4108                       as_fn_error $? "Cannot build a 32-bit program, you need to install 32-bit development libraries." "$LINENO" 5
4109 fi
4110 rm -f core conftest.err conftest.$ac_objext \
4111     conftest$ac_exeext conftest.$ac_ext
4112       LD="${LD:-ld} -m elf_i386"
4113       AS="${AS:-as} --32"
4114       host_cpu="i386"
4115       notice_platform="32-bit "
4116       TARGETFLAGS="-m32"
4117
4118       enable_win16=${enable_win16:-yes}
4119     else
4120       if test "x${GCC}" = "xyes"
4121       then
4122         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports __builtin_ms_va_list" >&5
4123 $as_echo_n "checking whether $CC supports __builtin_ms_va_list... " >&6; }
4124         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4125 /* end confdefs.h.  */
4126 #include <stdarg.h>
4127 int
4128 main ()
4129 {
4130 void func(__builtin_ms_va_list *args);
4131   ;
4132   return 0;
4133 }
4134 _ACEOF
4135 if ac_fn_c_try_compile "$LINENO"; then :
4136   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4137 $as_echo "yes" >&6; }
4138 else
4139   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4140 $as_echo "no" >&6; }
4141                            as_fn_error $? "You need gcc >= 4.4 to build Wine as 64-bit." "$LINENO" 5
4142 fi
4143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4144       fi
4145       TARGETFLAGS="-m64"
4146
4147     fi
4148     ;;
4149   *-mingw32*|*-cygwin*)
4150     enable_win16=${enable_win16:-no}
4151     CFLAGS="$CFLAGS -D_WIN32"
4152     ;;
4153   i[3456789]86*)
4154     enable_win16=${enable_win16:-yes}
4155     ;;
4156 esac
4157
4158 enable_win16=${enable_win16:-no}
4159
4160 enable_winetest=${enable_winetest:-$enable_tests}
4161
4162 if test -n "$with_wine64"
4163 then
4164     if test "x$enable_win64" = "xyes"
4165     then
4166         as_fn_error $? "--enable-win64 and --with-wine64 are mutually exclusive.
4167 --enable-win64 should be used in the 64-bit build tree, --with-wine64 in the 32-bit Wow64 build tree." "$LINENO" 5
4168     fi
4169     WOW64_DISABLE=\#
4170
4171     enable_fonts=${enable_fonts:-no}
4172     enable_server=${enable_server:-no}
4173     enable_tools=${enable_tools:-no}
4174 elif test "x$enable_win64" = "xyes"
4175 then
4176     test "x$libdir" != "x\${exec_prefix}/lib" || libdir="\${exec_prefix}/lib64"
4177 fi
4178
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the directory containing the Wine tools" >&5
4180 $as_echo_n "checking for the directory containing the Wine tools... " >&6; }
4181 if ${wine_cv_toolsdir+:} false; then :
4182   $as_echo_n "(cached) " >&6
4183 else
4184   wine_cv_toolsdir="$with_wine_tools"
4185    if test -z "$with_wine_tools"; then
4186      if test "$cross_compiling" = "yes"; then
4187        as_fn_error $? "you must use the --with-wine-tools option when cross-compiling." "$LINENO" 5
4188      elif test -n "$with_wine64"; then
4189        wine_cv_toolsdir="$with_wine64"
4190      fi
4191    fi
4192    if test -z "$wine_cv_toolsdir"; then
4193      wine_cv_toolsdir="\$(top_builddir)"
4194    elif test -d "$wine_cv_toolsdir/tools/winebuild"; then
4195      case "$wine_cv_toolsdir" in
4196        /*) ;;
4197        *)  wine_cv_toolsdir="\$(top_builddir)/$wine_cv_toolsdir" ;;
4198      esac
4199    else
4200      as_fn_error $? "could not find Wine tools in $wine_cv_toolsdir" "$LINENO" 5
4201    fi
4202 fi
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_toolsdir" >&5
4204 $as_echo "$wine_cv_toolsdir" >&6; }
4205 TOOLSDIR=$wine_cv_toolsdir
4206
4207 if test -n "$host_alias" -a "$host_alias" != "$build_alias"
4208 then
4209     TARGETFLAGS="-b $host_alias $TARGETFLAGS"
4210
4211 fi
4212
4213 for ac_prog in flex
4214 do
4215   # Extract the first word of "$ac_prog", so it can be a program name with args.
4216 set dummy $ac_prog; ac_word=$2
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4218 $as_echo_n "checking for $ac_word... " >&6; }
4219 if ${ac_cv_prog_FLEX+:} false; then :
4220   $as_echo_n "(cached) " >&6
4221 else
4222   if test -n "$FLEX"; then
4223   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
4224 else
4225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4226 for as_dir in $PATH
4227 do
4228   IFS=$as_save_IFS
4229   test -z "$as_dir" && as_dir=.
4230     for ac_exec_ext in '' $ac_executable_extensions; do
4231   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4232     ac_cv_prog_FLEX="$ac_prog"
4233     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4234     break 2
4235   fi
4236 done
4237   done
4238 IFS=$as_save_IFS
4239
4240 fi
4241 fi
4242 FLEX=$ac_cv_prog_FLEX
4243 if test -n "$FLEX"; then
4244   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
4245 $as_echo "$FLEX" >&6; }
4246 else
4247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4248 $as_echo "no" >&6; }
4249 fi
4250
4251
4252   test -n "$FLEX" && break
4253 done
4254 test -n "$FLEX" || FLEX="none"
4255
4256 if test "$FLEX" = "none"
4257 then
4258   as_fn_error $? "no suitable flex found. Please install the 'flex' package." "$LINENO" 5
4259 fi
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether flex is recent enough" >&5
4261 $as_echo_n "checking whether flex is recent enough... " >&6; }
4262 cat >conftest.l <<EOF
4263 %top{
4264 #include "prediluvian.h"
4265 }
4266 %%
4267 EOF
4268 if $FLEX -t conftest.l >/dev/null 2>&5
4269 then
4270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4271 $as_echo "yes" >&6; }
4272 else
4273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4274 $as_echo "no" >&6; }
4275   as_fn_error $? "Your flex version is too old. Please install flex version 2.5.33 or newer." "$LINENO" 5
4276 fi
4277
4278 for ac_prog in bison
4279 do
4280   # Extract the first word of "$ac_prog", so it can be a program name with args.
4281 set dummy $ac_prog; ac_word=$2
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4283 $as_echo_n "checking for $ac_word... " >&6; }
4284 if ${ac_cv_prog_BISON+:} false; then :
4285   $as_echo_n "(cached) " >&6
4286 else
4287   if test -n "$BISON"; then
4288   ac_cv_prog_BISON="$BISON" # Let the user override the test.
4289 else
4290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4291 for as_dir in $PATH
4292 do
4293   IFS=$as_save_IFS
4294   test -z "$as_dir" && as_dir=.
4295     for ac_exec_ext in '' $ac_executable_extensions; do
4296   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4297     ac_cv_prog_BISON="$ac_prog"
4298     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4299     break 2
4300   fi
4301 done
4302   done
4303 IFS=$as_save_IFS
4304
4305 fi
4306 fi
4307 BISON=$ac_cv_prog_BISON
4308 if test -n "$BISON"; then
4309   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
4310 $as_echo "$BISON" >&6; }
4311 else
4312   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4313 $as_echo "no" >&6; }
4314 fi
4315
4316
4317   test -n "$BISON" && break
4318 done
4319 test -n "$BISON" || BISON="none"
4320
4321 if test "$BISON" = "none"
4322 then
4323   as_fn_error $? "no suitable bison found. Please install the 'bison' package." "$LINENO" 5
4324 fi
4325
4326 if test -n "$ac_tool_prefix"; then
4327   for ac_prog in ar gar
4328   do
4329     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4330 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4332 $as_echo_n "checking for $ac_word... " >&6; }
4333 if ${ac_cv_prog_AR+:} false; then :
4334   $as_echo_n "(cached) " >&6
4335 else
4336   if test -n "$AR"; then
4337   ac_cv_prog_AR="$AR" # Let the user override the test.
4338 else
4339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4340 for as_dir in $PATH
4341 do
4342   IFS=$as_save_IFS
4343   test -z "$as_dir" && as_dir=.
4344     for ac_exec_ext in '' $ac_executable_extensions; do
4345   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4346     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4347     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4348     break 2
4349   fi
4350 done
4351   done
4352 IFS=$as_save_IFS
4353
4354 fi
4355 fi
4356 AR=$ac_cv_prog_AR
4357 if test -n "$AR"; then
4358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4359 $as_echo "$AR" >&6; }
4360 else
4361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4362 $as_echo "no" >&6; }
4363 fi
4364
4365
4366     test -n "$AR" && break
4367   done
4368 fi
4369 if test -z "$AR"; then
4370   ac_ct_AR=$AR
4371   for ac_prog in ar gar
4372 do
4373   # Extract the first word of "$ac_prog", so it can be a program name with args.
4374 set dummy $ac_prog; ac_word=$2
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4376 $as_echo_n "checking for $ac_word... " >&6; }
4377 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4378   $as_echo_n "(cached) " >&6
4379 else
4380   if test -n "$ac_ct_AR"; then
4381   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4382 else
4383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4384 for as_dir in $PATH
4385 do
4386   IFS=$as_save_IFS
4387   test -z "$as_dir" && as_dir=.
4388     for ac_exec_ext in '' $ac_executable_extensions; do
4389   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4390     ac_cv_prog_ac_ct_AR="$ac_prog"
4391     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4392     break 2
4393   fi
4394 done
4395   done
4396 IFS=$as_save_IFS
4397
4398 fi
4399 fi
4400 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4401 if test -n "$ac_ct_AR"; then
4402   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4403 $as_echo "$ac_ct_AR" >&6; }
4404 else
4405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4406 $as_echo "no" >&6; }
4407 fi
4408
4409
4410   test -n "$ac_ct_AR" && break
4411 done
4412
4413   if test "x$ac_ct_AR" = x; then
4414     AR="ar"
4415   else
4416     case $cross_compiling:$ac_tool_warned in
4417 yes:)
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4419 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4420 ac_tool_warned=yes ;;
4421 esac
4422     AR=$ac_ct_AR
4423   fi
4424 fi
4425
4426 ARFLAGS=rc
4427
4428 if test -n "$ac_tool_prefix"; then
4429   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4430 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4432 $as_echo_n "checking for $ac_word... " >&6; }
4433 if ${ac_cv_prog_RANLIB+:} false; then :
4434   $as_echo_n "(cached) " >&6
4435 else
4436   if test -n "$RANLIB"; then
4437   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4438 else
4439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4440 for as_dir in $PATH
4441 do
4442   IFS=$as_save_IFS
4443   test -z "$as_dir" && as_dir=.
4444     for ac_exec_ext in '' $ac_executable_extensions; do
4445   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4446     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4447     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4448     break 2
4449   fi
4450 done
4451   done
4452 IFS=$as_save_IFS
4453
4454 fi
4455 fi
4456 RANLIB=$ac_cv_prog_RANLIB
4457 if test -n "$RANLIB"; then
4458   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4459 $as_echo "$RANLIB" >&6; }
4460 else
4461   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4462 $as_echo "no" >&6; }
4463 fi
4464
4465
4466 fi
4467 if test -z "$ac_cv_prog_RANLIB"; then
4468   ac_ct_RANLIB=$RANLIB
4469   # Extract the first word of "ranlib", so it can be a program name with args.
4470 set dummy ranlib; ac_word=$2
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4472 $as_echo_n "checking for $ac_word... " >&6; }
4473 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4474   $as_echo_n "(cached) " >&6
4475 else
4476   if test -n "$ac_ct_RANLIB"; then
4477   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4478 else
4479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4480 for as_dir in $PATH
4481 do
4482   IFS=$as_save_IFS
4483   test -z "$as_dir" && as_dir=.
4484     for ac_exec_ext in '' $ac_executable_extensions; do
4485   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4486     ac_cv_prog_ac_ct_RANLIB="ranlib"
4487     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4488     break 2
4489   fi
4490 done
4491   done
4492 IFS=$as_save_IFS
4493
4494 fi
4495 fi
4496 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4497 if test -n "$ac_ct_RANLIB"; then
4498   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4499 $as_echo "$ac_ct_RANLIB" >&6; }
4500 else
4501   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4502 $as_echo "no" >&6; }
4503 fi
4504
4505   if test "x$ac_ct_RANLIB" = x; then
4506     RANLIB=":"
4507   else
4508     case $cross_compiling:$ac_tool_warned in
4509 yes:)
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4511 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4512 ac_tool_warned=yes ;;
4513 esac
4514     RANLIB=$ac_ct_RANLIB
4515   fi
4516 else
4517   RANLIB="$ac_cv_prog_RANLIB"
4518 fi
4519
4520 if test -n "$ac_tool_prefix"; then
4521   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4522 set dummy ${ac_tool_prefix}strip; ac_word=$2
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4524 $as_echo_n "checking for $ac_word... " >&6; }
4525 if ${ac_cv_prog_STRIP+:} false; then :
4526   $as_echo_n "(cached) " >&6
4527 else
4528   if test -n "$STRIP"; then
4529   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4530 else
4531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4532 for as_dir in $PATH
4533 do
4534   IFS=$as_save_IFS
4535   test -z "$as_dir" && as_dir=.
4536     for ac_exec_ext in '' $ac_executable_extensions; do
4537   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4538     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4539     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4540     break 2
4541   fi
4542 done
4543   done
4544 IFS=$as_save_IFS
4545
4546 fi
4547 fi
4548 STRIP=$ac_cv_prog_STRIP
4549 if test -n "$STRIP"; then
4550   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4551 $as_echo "$STRIP" >&6; }
4552 else
4553   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4554 $as_echo "no" >&6; }
4555 fi
4556
4557
4558 fi
4559 if test -z "$ac_cv_prog_STRIP"; then
4560   ac_ct_STRIP=$STRIP
4561   # Extract the first word of "strip", so it can be a program name with args.
4562 set dummy strip; ac_word=$2
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4564 $as_echo_n "checking for $ac_word... " >&6; }
4565 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4566   $as_echo_n "(cached) " >&6
4567 else
4568   if test -n "$ac_ct_STRIP"; then
4569   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4570 else
4571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4572 for as_dir in $PATH
4573 do
4574   IFS=$as_save_IFS
4575   test -z "$as_dir" && as_dir=.
4576     for ac_exec_ext in '' $ac_executable_extensions; do
4577   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4578     ac_cv_prog_ac_ct_STRIP="strip"
4579     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4580     break 2
4581   fi
4582 done
4583   done
4584 IFS=$as_save_IFS
4585
4586 fi
4587 fi
4588 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4589 if test -n "$ac_ct_STRIP"; then
4590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4591 $as_echo "$ac_ct_STRIP" >&6; }
4592 else
4593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4594 $as_echo "no" >&6; }
4595 fi
4596
4597   if test "x$ac_ct_STRIP" = x; then
4598     STRIP="strip"
4599   else
4600     case $cross_compiling:$ac_tool_warned in
4601 yes:)
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4603 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4604 ac_tool_warned=yes ;;
4605 esac
4606     STRIP=$ac_ct_STRIP
4607   fi
4608 else
4609   STRIP="$ac_cv_prog_STRIP"
4610 fi
4611
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4613 $as_echo_n "checking whether ln -s works... " >&6; }
4614 LN_S=$as_ln_s
4615 if test "$LN_S" = "ln -s"; then
4616   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4617 $as_echo "yes" >&6; }
4618 else
4619   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4620 $as_echo "no, using $LN_S" >&6; }
4621 fi
4622
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4624 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4625 if ${ac_cv_path_GREP+:} false; then :
4626   $as_echo_n "(cached) " >&6
4627 else
4628   if test -z "$GREP"; then
4629   ac_path_GREP_found=false
4630   # Loop through the user's path and test for each of PROGNAME-LIST
4631   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4632 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4633 do
4634   IFS=$as_save_IFS
4635   test -z "$as_dir" && as_dir=.
4636     for ac_prog in grep ggrep; do
4637     for ac_exec_ext in '' $ac_executable_extensions; do
4638       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4639       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4640 # Check for GNU ac_path_GREP and select it if it is found.
4641   # Check for GNU $ac_path_GREP
4642 case `"$ac_path_GREP" --version 2>&1` in
4643 *GNU*)
4644   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4645 *)
4646   ac_count=0
4647   $as_echo_n 0123456789 >"conftest.in"
4648   while :
4649   do
4650     cat "conftest.in" "conftest.in" >"conftest.tmp"
4651     mv "conftest.tmp" "conftest.in"
4652     cp "conftest.in" "conftest.nl"
4653     $as_echo 'GREP' >> "conftest.nl"
4654     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4655     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4656     as_fn_arith $ac_count + 1 && ac_count=$as_val
4657     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4658       # Best one so far, save it but keep looking for a better one
4659       ac_cv_path_GREP="$ac_path_GREP"
4660       ac_path_GREP_max=$ac_count
4661     fi
4662     # 10*(2^10) chars as input seems more than enough
4663     test $ac_count -gt 10 && break
4664   done
4665   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4666 esac
4667
4668       $ac_path_GREP_found && break 3
4669     done
4670   done
4671   done
4672 IFS=$as_save_IFS
4673   if test -z "$ac_cv_path_GREP"; then
4674     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4675   fi
4676 else
4677   ac_cv_path_GREP=$GREP
4678 fi
4679
4680 fi
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4682 $as_echo "$ac_cv_path_GREP" >&6; }
4683  GREP="$ac_cv_path_GREP"
4684
4685
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4687 $as_echo_n "checking for egrep... " >&6; }
4688 if ${ac_cv_path_EGREP+:} false; then :
4689   $as_echo_n "(cached) " >&6
4690 else
4691   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4692    then ac_cv_path_EGREP="$GREP -E"
4693    else
4694      if test -z "$EGREP"; then
4695   ac_path_EGREP_found=false
4696   # Loop through the user's path and test for each of PROGNAME-LIST
4697   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4698 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4699 do
4700   IFS=$as_save_IFS
4701   test -z "$as_dir" && as_dir=.
4702     for ac_prog in egrep; do
4703     for ac_exec_ext in '' $ac_executable_extensions; do
4704       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4705       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4706 # Check for GNU ac_path_EGREP and select it if it is found.
4707   # Check for GNU $ac_path_EGREP
4708 case `"$ac_path_EGREP" --version 2>&1` in
4709 *GNU*)
4710   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4711 *)
4712   ac_count=0
4713   $as_echo_n 0123456789 >"conftest.in"
4714   while :
4715   do
4716     cat "conftest.in" "conftest.in" >"conftest.tmp"
4717     mv "conftest.tmp" "conftest.in"
4718     cp "conftest.in" "conftest.nl"
4719     $as_echo 'EGREP' >> "conftest.nl"
4720     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4721     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4722     as_fn_arith $ac_count + 1 && ac_count=$as_val
4723     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4724       # Best one so far, save it but keep looking for a better one
4725       ac_cv_path_EGREP="$ac_path_EGREP"
4726       ac_path_EGREP_max=$ac_count
4727     fi
4728     # 10*(2^10) chars as input seems more than enough
4729     test $ac_count -gt 10 && break
4730   done
4731   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4732 esac
4733
4734       $ac_path_EGREP_found && break 3
4735     done
4736   done
4737   done
4738 IFS=$as_save_IFS
4739   if test -z "$ac_cv_path_EGREP"; then
4740     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4741   fi
4742 else
4743   ac_cv_path_EGREP=$EGREP
4744 fi
4745
4746    fi
4747 fi
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4749 $as_echo "$ac_cv_path_EGREP" >&6; }
4750  EGREP="$ac_cv_path_EGREP"
4751
4752
4753 # Extract the first word of "ldconfig", so it can be a program name with args.
4754 set dummy ldconfig; ac_word=$2
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4756 $as_echo_n "checking for $ac_word... " >&6; }
4757 if ${ac_cv_path_LDCONFIG+:} false; then :
4758   $as_echo_n "(cached) " >&6
4759 else
4760   case $LDCONFIG in
4761   [\\/]* | ?:[\\/]*)
4762   ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
4763   ;;
4764   *)
4765   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4766 for as_dir in /sbin /usr/sbin $PATH
4767 do
4768   IFS=$as_save_IFS
4769   test -z "$as_dir" && as_dir=.
4770     for ac_exec_ext in '' $ac_executable_extensions; do
4771   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4772     ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
4773     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4774     break 2
4775   fi
4776 done
4777   done
4778 IFS=$as_save_IFS
4779
4780   test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
4781   ;;
4782 esac
4783 fi
4784 LDCONFIG=$ac_cv_path_LDCONFIG
4785 if test -n "$LDCONFIG"; then
4786   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
4787 $as_echo "$LDCONFIG" >&6; }
4788 else
4789   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4790 $as_echo "no" >&6; }
4791 fi
4792
4793
4794 # Find a good install program.  We prefer a C program (faster),
4795 # so one script is as good as another.  But avoid the broken or
4796 # incompatible versions:
4797 # SysV /etc/install, /usr/sbin/install
4798 # SunOS /usr/etc/install
4799 # IRIX /sbin/install
4800 # AIX /bin/install
4801 # AmigaOS /C/install, which installs bootblocks on floppy discs
4802 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4803 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4804 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4805 # OS/2's system install, which has a completely different semantic
4806 # ./install, which can be erroneously created by make from ./install.sh.
4807 # Reject install programs that cannot install multiple files.
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4809 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4810 if test -z "$INSTALL"; then
4811 if ${ac_cv_path_install+:} false; then :
4812   $as_echo_n "(cached) " >&6
4813 else
4814   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4815 for as_dir in $PATH
4816 do
4817   IFS=$as_save_IFS
4818   test -z "$as_dir" && as_dir=.
4819     # Account for people who put trailing slashes in PATH elements.
4820 case $as_dir/ in #((
4821   ./ | .// | /[cC]/* | \
4822   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4823   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4824   /usr/ucb/* ) ;;
4825   *)
4826     # OSF1 and SCO ODT 3.0 have their own names for install.
4827     # Don't use installbsd from OSF since it installs stuff as root
4828     # by default.
4829     for ac_prog in ginstall scoinst install; do
4830       for ac_exec_ext in '' $ac_executable_extensions; do
4831         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4832           if test $ac_prog = install &&
4833             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4834             # AIX install.  It has an incompatible calling convention.
4835             :
4836           elif test $ac_prog = install &&
4837             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4838             # program-specific install script used by HP pwplus--don't use.
4839             :
4840           else
4841             rm -rf conftest.one conftest.two conftest.dir
4842             echo one > conftest.one
4843             echo two > conftest.two
4844             mkdir conftest.dir
4845             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4846               test -s conftest.one && test -s conftest.two &&
4847               test -s conftest.dir/conftest.one &&
4848               test -s conftest.dir/conftest.two
4849             then
4850               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4851               break 3
4852             fi
4853           fi
4854         fi
4855       done
4856     done
4857     ;;
4858 esac
4859
4860   done
4861 IFS=$as_save_IFS
4862
4863 rm -rf conftest.one conftest.two conftest.dir
4864
4865 fi
4866   if test "${ac_cv_path_install+set}" = set; then
4867     INSTALL=$ac_cv_path_install
4868   else
4869     # As a last resort, use the slow shell script.  Don't cache a
4870     # value for INSTALL within a source directory, because that will
4871     # break other packages using the cache if that directory is
4872     # removed, or if the value is a relative name.
4873     INSTALL=$ac_install_sh
4874   fi
4875 fi
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4877 $as_echo "$INSTALL" >&6; }
4878
4879 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4880 # It thinks the first close brace ends the variable substitution.
4881 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4882
4883 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4884
4885 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4886
4887 case "$INSTALL" in
4888   [\\/$]* | ?:[\\/]* ) ;;
4889   *)  INSTALL="\\\$(top_srcdir)/$INSTALL" ;;
4890 esac
4891
4892 for ac_prog in lclint lint
4893 do
4894   # Extract the first word of "$ac_prog", so it can be a program name with args.
4895 set dummy $ac_prog; ac_word=$2
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4897 $as_echo_n "checking for $ac_word... " >&6; }
4898 if ${ac_cv_prog_LINT+:} false; then :
4899   $as_echo_n "(cached) " >&6
4900 else
4901   if test -n "$LINT"; then
4902   ac_cv_prog_LINT="$LINT" # Let the user override the test.
4903 else
4904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4905 for as_dir in $PATH
4906 do
4907   IFS=$as_save_IFS
4908   test -z "$as_dir" && as_dir=.
4909     for ac_exec_ext in '' $ac_executable_extensions; do
4910   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4911     ac_cv_prog_LINT="$ac_prog"
4912     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4913     break 2
4914   fi
4915 done
4916   done
4917 IFS=$as_save_IFS
4918
4919 fi
4920 fi
4921 LINT=$ac_cv_prog_LINT
4922 if test -n "$LINT"; then
4923   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
4924 $as_echo "$LINT" >&6; }
4925 else
4926   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4927 $as_echo "no" >&6; }
4928 fi
4929
4930
4931   test -n "$LINT" && break
4932 done
4933
4934 if test "$LINT" = "lint"
4935 then
4936   LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
4937   fi
4938
4939
4940
4941 for ac_prog in fontforge
4942 do
4943   # Extract the first word of "$ac_prog", so it can be a program name with args.
4944 set dummy $ac_prog; ac_word=$2
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4946 $as_echo_n "checking for $ac_word... " >&6; }
4947 if ${ac_cv_prog_FONTFORGE+:} false; then :
4948   $as_echo_n "(cached) " >&6
4949 else
4950   if test -n "$FONTFORGE"; then
4951   ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
4952 else
4953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4954 for as_dir in $PATH
4955 do
4956   IFS=$as_save_IFS
4957   test -z "$as_dir" && as_dir=.
4958     for ac_exec_ext in '' $ac_executable_extensions; do
4959   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4960     ac_cv_prog_FONTFORGE="$ac_prog"
4961     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4962     break 2
4963   fi
4964 done
4965   done
4966 IFS=$as_save_IFS
4967
4968 fi
4969 fi
4970 FONTFORGE=$ac_cv_prog_FONTFORGE
4971 if test -n "$FONTFORGE"; then
4972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTFORGE" >&5
4973 $as_echo "$FONTFORGE" >&6; }
4974 else
4975   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4976 $as_echo "no" >&6; }
4977 fi
4978
4979
4980   test -n "$FONTFORGE" && break
4981 done
4982 test -n "$FONTFORGE" || FONTFORGE="false"
4983
4984 for ac_prog in pkg-config
4985 do
4986   # Extract the first word of "$ac_prog", so it can be a program name with args.
4987 set dummy $ac_prog; ac_word=$2
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4989 $as_echo_n "checking for $ac_word... " >&6; }
4990 if ${ac_cv_prog_PKG_CONFIG+:} false; then :
4991   $as_echo_n "(cached) " >&6
4992 else
4993   if test -n "$PKG_CONFIG"; then
4994   ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
4995 else
4996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4997 for as_dir in $PATH
4998 do
4999   IFS=$as_save_IFS
5000   test -z "$as_dir" && as_dir=.
5001     for ac_exec_ext in '' $ac_executable_extensions; do
5002   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5003     ac_cv_prog_PKG_CONFIG="$ac_prog"
5004     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5005     break 2
5006   fi
5007 done
5008   done
5009 IFS=$as_save_IFS
5010
5011 fi
5012 fi
5013 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
5014 if test -n "$PKG_CONFIG"; then
5015   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5016 $as_echo "$PKG_CONFIG" >&6; }
5017 else
5018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5019 $as_echo "no" >&6; }
5020 fi
5021
5022
5023   test -n "$PKG_CONFIG" && break
5024 done
5025 test -n "$PKG_CONFIG" || PKG_CONFIG="false"
5026
5027 for ac_prog in rsvg
5028 do
5029   # Extract the first word of "$ac_prog", so it can be a program name with args.
5030 set dummy $ac_prog; ac_word=$2
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5032 $as_echo_n "checking for $ac_word... " >&6; }
5033 if ${ac_cv_prog_RSVG+:} false; then :
5034   $as_echo_n "(cached) " >&6
5035 else
5036   if test -n "$RSVG"; then
5037   ac_cv_prog_RSVG="$RSVG" # Let the user override the test.
5038 else
5039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5040 for as_dir in $PATH
5041 do
5042   IFS=$as_save_IFS
5043   test -z "$as_dir" && as_dir=.
5044     for ac_exec_ext in '' $ac_executable_extensions; do
5045   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5046     ac_cv_prog_RSVG="$ac_prog"
5047     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5048     break 2
5049   fi
5050 done
5051   done
5052 IFS=$as_save_IFS
5053
5054 fi
5055 fi
5056 RSVG=$ac_cv_prog_RSVG
5057 if test -n "$RSVG"; then
5058   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG" >&5
5059 $as_echo "$RSVG" >&6; }
5060 else
5061   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5062 $as_echo "no" >&6; }
5063 fi
5064
5065
5066   test -n "$RSVG" && break
5067 done
5068 test -n "$RSVG" || RSVG="false"
5069
5070 for ac_prog in convert
5071 do
5072   # Extract the first word of "$ac_prog", so it can be a program name with args.
5073 set dummy $ac_prog; ac_word=$2
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5075 $as_echo_n "checking for $ac_word... " >&6; }
5076 if ${ac_cv_prog_CONVERT+:} false; then :
5077   $as_echo_n "(cached) " >&6
5078 else
5079   if test -n "$CONVERT"; then
5080   ac_cv_prog_CONVERT="$CONVERT" # Let the user override the test.
5081 else
5082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5083 for as_dir in $PATH
5084 do
5085   IFS=$as_save_IFS
5086   test -z "$as_dir" && as_dir=.
5087     for ac_exec_ext in '' $ac_executable_extensions; do
5088   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5089     ac_cv_prog_CONVERT="$ac_prog"
5090     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5091     break 2
5092   fi
5093 done
5094   done
5095 IFS=$as_save_IFS
5096
5097 fi
5098 fi
5099 CONVERT=$ac_cv_prog_CONVERT
5100 if test -n "$CONVERT"; then
5101   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONVERT" >&5
5102 $as_echo "$CONVERT" >&6; }
5103 else
5104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5105 $as_echo "no" >&6; }
5106 fi
5107
5108
5109   test -n "$CONVERT" && break
5110 done
5111 test -n "$CONVERT" || CONVERT="false"
5112
5113 for ac_prog in icotool
5114 do
5115   # Extract the first word of "$ac_prog", so it can be a program name with args.
5116 set dummy $ac_prog; ac_word=$2
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5118 $as_echo_n "checking for $ac_word... " >&6; }
5119 if ${ac_cv_prog_ICOTOOL+:} false; then :
5120   $as_echo_n "(cached) " >&6
5121 else
5122   if test -n "$ICOTOOL"; then
5123   ac_cv_prog_ICOTOOL="$ICOTOOL" # Let the user override the test.
5124 else
5125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5126 for as_dir in $PATH
5127 do
5128   IFS=$as_save_IFS
5129   test -z "$as_dir" && as_dir=.
5130     for ac_exec_ext in '' $ac_executable_extensions; do
5131   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5132     ac_cv_prog_ICOTOOL="$ac_prog"
5133     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5134     break 2
5135   fi
5136 done
5137   done
5138 IFS=$as_save_IFS
5139
5140 fi
5141 fi
5142 ICOTOOL=$ac_cv_prog_ICOTOOL
5143 if test -n "$ICOTOOL"; then
5144   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICOTOOL" >&5
5145 $as_echo "$ICOTOOL" >&6; }
5146 else
5147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5148 $as_echo "no" >&6; }
5149 fi
5150
5151
5152   test -n "$ICOTOOL" && break
5153 done
5154 test -n "$ICOTOOL" || ICOTOOL="false"
5155
5156
5157 if test "x$enable_maintainer_mode" != "xyes"
5158 then
5159   MAINTAINER_MODE=\#
5160
5161 else
5162   if test "$FONTFORGE" = "false"; then as_fn_error $? "You need fontforge to rebuild fonts in maintainer mode." "$LINENO" 5; fi
5163   if test "$RSVG" = "false"; then as_fn_error $? "You need rsvg to rebuild icons in maintainer mode." "$LINENO" 5; fi
5164
5165     if test "$CONVERT" = false
5166   then
5167     as_fn_error $? "You need imagemagick to rebuild icons in maintainer mode." "$LINENO" 5
5168   else
5169     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough imagemagick" >&5
5170 $as_echo_n "checking for recent enough imagemagick... " >&6; }
5171     convert_version=`convert --version | head -n1`
5172     if test "x$convert_version" != "x"
5173     then
5174       convert_version_major=`expr "$convert_version" : '.* \([0-9]*\)\.[0-9]*'`
5175       convert_version_minor=`expr "$convert_version" : '.* [0-9]*\.\([0-9]*\)'`
5176       if test "$convert_version_major" -eq 6 -a "$convert_version_minor" -lt 6
5177       then
5178         CONVERT=false
5179       fi
5180     fi
5181     if test "$CONVERT" = false
5182     then
5183       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($convert_version_major.$convert_version_minor)" >&5
5184 $as_echo "no ($convert_version_major.$convert_version_minor)" >&6; }
5185       as_fn_error $? "You need imagemagick version 6.6 or newer to rebuild icons in maintainer mode." "$LINENO" 5
5186     else
5187       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($convert_version_major.$convert_version_minor)" >&5
5188 $as_echo "yes ($convert_version_major.$convert_version_minor)" >&6; }
5189     fi
5190   fi
5191
5192     if test "$ICOTOOL" = false
5193   then
5194     as_fn_error $? "You need icotool to rebuild icons in maintainer mode." "$LINENO" 5
5195   else
5196     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough icotool" >&5
5197 $as_echo_n "checking for recent enough icotool... " >&6; }
5198     icotool_version=`icotool --version | head -n1`
5199     if test "x$icotool_version" != "x"
5200     then
5201       icotool_version_major=`expr "$icotool_version" : '.* \([0-9]*\)\.[0-9]*'`
5202       icotool_version_minor=`expr "$icotool_version" : '.* [0-9]*\.\([0-9]*\)'`
5203       if test "$icotool_version_major" -eq 0 -a "$icotool_version_minor" -lt 29
5204       then
5205         ICOTOOL=false
5206         as_fn_append wine_warnings "|icotool version 0.29.0 or newer is needed to rebuild icons."
5207       fi
5208     fi
5209     if test "$ICOTOOL" = false
5210     then
5211       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($icotool_version_major.$icotool_version_minor)" >&5
5212 $as_echo "no ($icotool_version_major.$icotool_version_minor)" >&6; }
5213       as_fn_error $? "You need icotool version 0.29.0 or newer to rebuild icons in maintainer mode." "$LINENO" 5
5214     else
5215       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($icotool_version_major.$icotool_version_minor)" >&5
5216 $as_echo "yes ($icotool_version_major.$icotool_version_minor)" >&6; }
5217     fi
5218   fi
5219
5220 fi
5221
5222
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for i386_set_ldt in -li386" >&5
5224 $as_echo_n "checking for i386_set_ldt in -li386... " >&6; }
5225 if ${ac_cv_lib_i386_i386_set_ldt+:} false; then :
5226   $as_echo_n "(cached) " >&6
5227 else
5228   ac_check_lib_save_LIBS=$LIBS
5229 LIBS="-li386  $LIBS"
5230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5231 /* end confdefs.h.  */
5232
5233 /* Override any GCC internal prototype to avoid an error.
5234    Use char because int might match the return type of a GCC
5235    builtin and then its argument prototype would still apply.  */
5236 #ifdef __cplusplus
5237 extern "C"
5238 #endif
5239 char i386_set_ldt ();
5240 int
5241 main ()
5242 {
5243 return i386_set_ldt ();
5244   ;
5245   return 0;
5246 }
5247 _ACEOF
5248 if ac_fn_c_try_link "$LINENO"; then :
5249   ac_cv_lib_i386_i386_set_ldt=yes
5250 else
5251   ac_cv_lib_i386_i386_set_ldt=no
5252 fi
5253 rm -f core conftest.err conftest.$ac_objext \
5254     conftest$ac_exeext conftest.$ac_ext
5255 LIBS=$ac_check_lib_save_LIBS
5256 fi
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_i386_i386_set_ldt" >&5
5258 $as_echo "$ac_cv_lib_i386_i386_set_ldt" >&6; }
5259 if test "x$ac_cv_lib_i386_i386_set_ldt" = xyes; then :
5260   cat >>confdefs.h <<_ACEOF
5261 #define HAVE_LIBI386 1
5262 _ACEOF
5263
5264   LIBS="-li386 $LIBS"
5265
5266 fi
5267
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
5269 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
5270 if ${ac_cv_lib_ossaudio__oss_ioctl+:} false; then :
5271   $as_echo_n "(cached) " >&6
5272 else
5273   ac_check_lib_save_LIBS=$LIBS
5274 LIBS="-lossaudio  $LIBS"
5275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5276 /* end confdefs.h.  */
5277
5278 /* Override any GCC internal prototype to avoid an error.
5279    Use char because int might match the return type of a GCC
5280    builtin and then its argument prototype would still apply.  */
5281 #ifdef __cplusplus
5282 extern "C"
5283 #endif
5284 char _oss_ioctl ();
5285 int
5286 main ()
5287 {
5288 return _oss_ioctl ();
5289   ;
5290   return 0;
5291 }
5292 _ACEOF
5293 if ac_fn_c_try_link "$LINENO"; then :
5294   ac_cv_lib_ossaudio__oss_ioctl=yes
5295 else
5296   ac_cv_lib_ossaudio__oss_ioctl=no
5297 fi
5298 rm -f core conftest.err conftest.$ac_objext \
5299     conftest$ac_exeext conftest.$ac_ext
5300 LIBS=$ac_check_lib_save_LIBS
5301 fi
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5303 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
5304 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = xyes; then :
5305   cat >>confdefs.h <<_ACEOF
5306 #define HAVE_LIBOSSAUDIO 1
5307 _ACEOF
5308
5309   LIBS="-lossaudio $LIBS"
5310
5311 fi
5312
5313
5314 XLIB=""
5315
5316 OPENGL_LIBS=""
5317
5318
5319
5320 # Check whether --enable-largefile was given.
5321 if test "${enable_largefile+set}" = set; then :
5322   enableval=$enable_largefile;
5323 fi
5324
5325 if test "$enable_largefile" != no; then
5326
5327   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5328 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5329 if ${ac_cv_sys_largefile_CC+:} false; then :
5330   $as_echo_n "(cached) " >&6
5331 else
5332   ac_cv_sys_largefile_CC=no
5333      if test "$GCC" != yes; then
5334        ac_save_CC=$CC
5335        while :; do
5336          # IRIX 6.2 and later do not support large files by default,
5337          # so use the C compiler's -n32 option if that helps.
5338          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5339 /* end confdefs.h.  */
5340 #include <sys/types.h>
5341  /* Check that off_t can represent 2**63 - 1 correctly.
5342     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5343     since some C++ compilers masquerading as C compilers
5344     incorrectly reject 9223372036854775807.  */
5345 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5346   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5347                        && LARGE_OFF_T % 2147483647 == 1)
5348                       ? 1 : -1];
5349 int
5350 main ()
5351 {
5352
5353   ;
5354   return 0;
5355 }
5356 _ACEOF
5357          if ac_fn_c_try_compile "$LINENO"; then :
5358   break
5359 fi
5360 rm -f core conftest.err conftest.$ac_objext
5361          CC="$CC -n32"
5362          if ac_fn_c_try_compile "$LINENO"; then :
5363   ac_cv_sys_largefile_CC=' -n32'; break
5364 fi
5365 rm -f core conftest.err conftest.$ac_objext
5366          break
5367        done
5368        CC=$ac_save_CC
5369        rm -f conftest.$ac_ext
5370     fi
5371 fi
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5373 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5374   if test "$ac_cv_sys_largefile_CC" != no; then
5375     CC=$CC$ac_cv_sys_largefile_CC
5376   fi
5377
5378   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5379 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5380 if ${ac_cv_sys_file_offset_bits+:} false; then :
5381   $as_echo_n "(cached) " >&6
5382 else
5383   while :; do
5384   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5385 /* end confdefs.h.  */
5386 #include <sys/types.h>
5387  /* Check that off_t can represent 2**63 - 1 correctly.
5388     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5389     since some C++ compilers masquerading as C compilers
5390     incorrectly reject 9223372036854775807.  */
5391 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5392   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5393                        && LARGE_OFF_T % 2147483647 == 1)
5394                       ? 1 : -1];
5395 int
5396 main ()
5397 {
5398
5399   ;
5400   return 0;
5401 }
5402 _ACEOF
5403 if ac_fn_c_try_compile "$LINENO"; then :
5404   ac_cv_sys_file_offset_bits=no; break
5405 fi
5406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5407   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5408 /* end confdefs.h.  */
5409 #define _FILE_OFFSET_BITS 64
5410 #include <sys/types.h>
5411  /* Check that off_t can represent 2**63 - 1 correctly.
5412     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5413     since some C++ compilers masquerading as C compilers
5414     incorrectly reject 9223372036854775807.  */
5415 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5416   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5417                        && LARGE_OFF_T % 2147483647 == 1)
5418                       ? 1 : -1];
5419 int
5420 main ()
5421 {
5422
5423   ;
5424   return 0;
5425 }
5426 _ACEOF
5427 if ac_fn_c_try_compile "$LINENO"; then :
5428   ac_cv_sys_file_offset_bits=64; break
5429 fi
5430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5431   ac_cv_sys_file_offset_bits=unknown
5432   break
5433 done
5434 fi
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5436 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5437 case $ac_cv_sys_file_offset_bits in #(
5438   no | unknown) ;;
5439   *)
5440 cat >>confdefs.h <<_ACEOF
5441 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5442 _ACEOF
5443 ;;
5444 esac
5445 rm -rf conftest*
5446   if test $ac_cv_sys_file_offset_bits = unknown; then
5447     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5448 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5449 if ${ac_cv_sys_large_files+:} false; then :
5450   $as_echo_n "(cached) " >&6
5451 else
5452   while :; do
5453   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5454 /* end confdefs.h.  */
5455 #include <sys/types.h>
5456  /* Check that off_t can represent 2**63 - 1 correctly.
5457     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5458     since some C++ compilers masquerading as C compilers
5459     incorrectly reject 9223372036854775807.  */
5460 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5461   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5462                        && LARGE_OFF_T % 2147483647 == 1)
5463                       ? 1 : -1];
5464 int
5465 main ()
5466 {
5467
5468   ;
5469   return 0;
5470 }
5471 _ACEOF
5472 if ac_fn_c_try_compile "$LINENO"; then :
5473   ac_cv_sys_large_files=no; break
5474 fi
5475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5476   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5477 /* end confdefs.h.  */
5478 #define _LARGE_FILES 1
5479 #include <sys/types.h>
5480  /* Check that off_t can represent 2**63 - 1 correctly.
5481     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5482     since some C++ compilers masquerading as C compilers
5483     incorrectly reject 9223372036854775807.  */
5484 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5485   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5486                        && LARGE_OFF_T % 2147483647 == 1)
5487                       ? 1 : -1];
5488 int
5489 main ()
5490 {
5491
5492   ;
5493   return 0;
5494 }
5495 _ACEOF
5496 if ac_fn_c_try_compile "$LINENO"; then :
5497   ac_cv_sys_large_files=1; break
5498 fi
5499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5500   ac_cv_sys_large_files=unknown
5501   break
5502 done
5503 fi
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5505 $as_echo "$ac_cv_sys_large_files" >&6; }
5506 case $ac_cv_sys_large_files in #(
5507   no | unknown) ;;
5508   *)
5509 cat >>confdefs.h <<_ACEOF
5510 #define _LARGE_FILES $ac_cv_sys_large_files
5511 _ACEOF
5512 ;;
5513 esac
5514 rm -rf conftest*
5515   fi
5516 fi
5517
5518
5519 ac_ext=c
5520 ac_cpp='$CPP $CPPFLAGS'
5521 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5522 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5523 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5525 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5526 # On Suns, sometimes $CPP names a directory.
5527 if test -n "$CPP" && test -d "$CPP"; then
5528   CPP=
5529 fi
5530 if test -z "$CPP"; then
5531   if ${ac_cv_prog_CPP+:} false; then :
5532   $as_echo_n "(cached) " >&6
5533 else
5534       # Double quotes because CPP needs to be expanded
5535     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5536     do
5537       ac_preproc_ok=false
5538 for ac_c_preproc_warn_flag in '' yes
5539 do
5540   # Use a header file that comes with gcc, so configuring glibc
5541   # with a fresh cross-compiler works.
5542   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5543   # <limits.h> exists even on freestanding compilers.
5544   # On the NeXT, cc -E runs the code through the compiler's parser,
5545   # not just through cpp. "Syntax error" is here to catch this case.
5546   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5547 /* end confdefs.h.  */
5548 #ifdef __STDC__
5549 # include <limits.h>
5550 #else
5551 # include <assert.h>
5552 #endif
5553                      Syntax error
5554 _ACEOF
5555 if ac_fn_c_try_cpp "$LINENO"; then :
5556
5557 else
5558   # Broken: fails on valid input.
5559 continue
5560 fi
5561 rm -f conftest.err conftest.i conftest.$ac_ext
5562
5563   # OK, works on sane cases.  Now check whether nonexistent headers
5564   # can be detected and how.
5565   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5566 /* end confdefs.h.  */
5567 #include <ac_nonexistent.h>
5568 _ACEOF
5569 if ac_fn_c_try_cpp "$LINENO"; then :
5570   # Broken: success on invalid input.
5571 continue
5572 else
5573   # Passes both tests.
5574 ac_preproc_ok=:
5575 break
5576 fi
5577 rm -f conftest.err conftest.i conftest.$ac_ext
5578
5579 done
5580 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5581 rm -f conftest.i conftest.err conftest.$ac_ext
5582 if $ac_preproc_ok; then :
5583   break
5584 fi
5585
5586     done
5587     ac_cv_prog_CPP=$CPP
5588
5589 fi
5590   CPP=$ac_cv_prog_CPP
5591 else
5592   ac_cv_prog_CPP=$CPP
5593 fi
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5595 $as_echo "$CPP" >&6; }
5596 ac_preproc_ok=false
5597 for ac_c_preproc_warn_flag in '' yes
5598 do
5599   # Use a header file that comes with gcc, so configuring glibc
5600   # with a fresh cross-compiler works.
5601   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5602   # <limits.h> exists even on freestanding compilers.
5603   # On the NeXT, cc -E runs the code through the compiler's parser,
5604   # not just through cpp. "Syntax error" is here to catch this case.
5605   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5606 /* end confdefs.h.  */
5607 #ifdef __STDC__
5608 # include <limits.h>
5609 #else
5610 # include <assert.h>
5611 #endif
5612                      Syntax error
5613 _ACEOF
5614 if ac_fn_c_try_cpp "$LINENO"; then :
5615
5616 else
5617   # Broken: fails on valid input.
5618 continue
5619 fi
5620 rm -f conftest.err conftest.i conftest.$ac_ext
5621
5622   # OK, works on sane cases.  Now check whether nonexistent headers
5623   # can be detected and how.
5624   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5625 /* end confdefs.h.  */
5626 #include <ac_nonexistent.h>
5627 _ACEOF
5628 if ac_fn_c_try_cpp "$LINENO"; then :
5629   # Broken: success on invalid input.
5630 continue
5631 else
5632   # Passes both tests.
5633 ac_preproc_ok=:
5634 break
5635 fi
5636 rm -f conftest.err conftest.i conftest.$ac_ext
5637
5638 done
5639 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5640 rm -f conftest.i conftest.err conftest.$ac_ext
5641 if $ac_preproc_ok; then :
5642
5643 else
5644   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5645 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5646 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5647 See \`config.log' for more details" "$LINENO" 5; }
5648 fi
5649
5650 ac_ext=c
5651 ac_cpp='$CPP $CPPFLAGS'
5652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5655
5656
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5658 $as_echo_n "checking for ANSI C header files... " >&6; }
5659 if ${ac_cv_header_stdc+:} false; then :
5660   $as_echo_n "(cached) " >&6
5661 else
5662   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5663 /* end confdefs.h.  */
5664 #include <stdlib.h>
5665 #include <stdarg.h>
5666 #include <string.h>
5667 #include <float.h>
5668
5669 int
5670 main ()
5671 {
5672
5673   ;
5674   return 0;
5675 }
5676 _ACEOF
5677 if ac_fn_c_try_compile "$LINENO"; then :
5678   ac_cv_header_stdc=yes
5679 else
5680   ac_cv_header_stdc=no
5681 fi
5682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5683
5684 if test $ac_cv_header_stdc = yes; then
5685   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5686   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5687 /* end confdefs.h.  */
5688 #include <string.h>
5689
5690 _ACEOF
5691 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5692   $EGREP "memchr" >/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   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5703   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5704 /* end confdefs.h.  */
5705 #include <stdlib.h>
5706
5707 _ACEOF
5708 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5709   $EGREP "free" >/dev/null 2>&1; then :
5710
5711 else
5712   ac_cv_header_stdc=no
5713 fi
5714 rm -f conftest*
5715
5716 fi
5717
5718 if test $ac_cv_header_stdc = yes; then
5719   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5720   if test "$cross_compiling" = yes; then :
5721   :
5722 else
5723   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5724 /* end confdefs.h.  */
5725 #include <ctype.h>
5726 #include <stdlib.h>
5727 #if ((' ' & 0x0FF) == 0x020)
5728 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5729 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5730 #else
5731 # define ISLOWER(c) \
5732                    (('a' <= (c) && (c) <= 'i') \
5733                      || ('j' <= (c) && (c) <= 'r') \
5734                      || ('s' <= (c) && (c) <= 'z'))
5735 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5736 #endif
5737
5738 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5739 int
5740 main ()
5741 {
5742   int i;
5743   for (i = 0; i < 256; i++)
5744     if (XOR (islower (i), ISLOWER (i))
5745         || toupper (i) != TOUPPER (i))
5746       return 2;
5747   return 0;
5748 }
5749 _ACEOF
5750 if ac_fn_c_try_run "$LINENO"; then :
5751
5752 else
5753   ac_cv_header_stdc=no
5754 fi
5755 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5756   conftest.$ac_objext conftest.beam conftest.$ac_ext
5757 fi
5758
5759 fi
5760 fi
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5762 $as_echo "$ac_cv_header_stdc" >&6; }
5763 if test $ac_cv_header_stdc = yes; then
5764
5765 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5766
5767 fi
5768
5769 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5770 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5771                   inttypes.h stdint.h unistd.h
5772 do :
5773   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5774 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5775 "
5776 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5777   cat >>confdefs.h <<_ACEOF
5778 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5779 _ACEOF
5780
5781 fi
5782
5783 done
5784
5785
5786 for ac_header in \
5787         AL/al.h \
5788         ApplicationServices/ApplicationServices.h \
5789         AudioToolbox/AudioConverter.h \
5790         AudioUnit/AudioUnit.h \
5791         AudioUnit/AudioComponent.h \
5792         CL/cl.h \
5793         Carbon/Carbon.h \
5794         CoreAudio/CoreAudio.h \
5795         DiskArbitration/DiskArbitration.h \
5796         IOKit/IOKitLib.h \
5797         IOKit/hid/IOHIDLib.h \
5798         OpenAL/al.h \
5799         OpenCL/opencl.h \
5800         QuickTime/ImageCompression.h \
5801         Security/Security.h \
5802         alias.h \
5803         alsa/asoundlib.h \
5804         arpa/inet.h \
5805         arpa/nameser.h \
5806         asm/types.h \
5807         capi20.h \
5808         curses.h \
5809         direct.h \
5810         dirent.h \
5811         dlfcn.h \
5812         elf.h \
5813         float.h \
5814         fnmatch.h \
5815         fontconfig/fontconfig.h \
5816         getopt.h \
5817         gettext-po.h \
5818         grp.h \
5819         gsm.h \
5820         gsm/gsm.h \
5821         ieeefp.h \
5822         inet/mib2.h \
5823         io.h \
5824         jack/jack.h \
5825         jpeglib.h \
5826         kstat.h \
5827         lber.h \
5828         lcms.h \
5829         lcms/lcms.h \
5830         ldap.h \
5831         link.h \
5832         linux/cdrom.h \
5833         linux/compiler.h \
5834         linux/hdreg.h \
5835         linux/input.h \
5836         linux/ioctl.h \
5837         linux/joystick.h \
5838         linux/major.h \
5839         linux/param.h \
5840         linux/serial.h \
5841         linux/types.h \
5842         linux/ucdrom.h \
5843         mach-o/nlist.h \
5844         mach-o/loader.h \
5845         mach/mach.h \
5846         mach/machine.h \
5847         machine/cpu.h \
5848         machine/limits.h \
5849         machine/soundcard.h \
5850         machine/sysarch.h \
5851         mntent.h \
5852         mpg123.h \
5853         ncurses.h \
5854         netdb.h \
5855         netinet/in.h \
5856         netinet/in_systm.h \
5857         netinet/tcp.h \
5858         netinet/tcp_fsm.h \
5859         openssl/err.h \
5860         openssl/ssl.h \
5861         png.h \
5862         poll.h \
5863         port.h \
5864         process.h \
5865         pthread.h \
5866         pwd.h \
5867         regex.h \
5868         sched.h \
5869         scsi/scsi.h \
5870         scsi/scsi_ioctl.h \
5871         scsi/sg.h \
5872         soundcard.h \
5873         stdbool.h \
5874         stdint.h \
5875         strings.h \
5876         stropts.h \
5877         sys/asoundlib.h \
5878         sys/attr.h \
5879         sys/cdio.h \
5880         sys/elf32.h \
5881         sys/epoll.h \
5882         sys/errno.h \
5883         sys/event.h \
5884         sys/exec_elf.h \
5885         sys/filio.h \
5886         sys/inotify.h \
5887         sys/ioctl.h \
5888         sys/ipc.h \
5889         sys/limits.h \
5890         sys/link.h \
5891         sys/mman.h \
5892         sys/modem.h \
5893         sys/msg.h \
5894         sys/mtio.h \
5895         sys/param.h \
5896         sys/poll.h \
5897         sys/prctl.h \
5898         sys/protosw.h \
5899         sys/ptrace.h \
5900         sys/resource.h \
5901         sys/scsiio.h \
5902         sys/shm.h \
5903         sys/signal.h \
5904         sys/socket.h \
5905         sys/socketvar.h \
5906         sys/sockio.h \
5907         sys/soundcard.h \
5908         sys/statvfs.h \
5909         sys/strtio.h \
5910         sys/syscall.h \
5911         sys/tihdr.h \
5912         sys/time.h \
5913         sys/timeout.h \
5914         sys/times.h \
5915         sys/uio.h \
5916         sys/un.h \
5917         sys/utsname.h \
5918         sys/vm86.h \
5919         sys/wait.h \
5920         syscall.h \
5921         termios.h \
5922         tiffio.h \
5923         unistd.h \
5924         utime.h \
5925         valgrind/memcheck.h \
5926         valgrind/valgrind.h \
5927         zlib.h
5928
5929 do :
5930   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5931 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5932 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5933   cat >>confdefs.h <<_ACEOF
5934 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5935 _ACEOF
5936
5937 fi
5938
5939 done
5940
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
5942 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
5943 if ${ac_cv_header_stat_broken+:} false; then :
5944   $as_echo_n "(cached) " >&6
5945 else
5946   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5947 /* end confdefs.h.  */
5948 #include <sys/types.h>
5949 #include <sys/stat.h>
5950
5951 #if defined S_ISBLK && defined S_IFDIR
5952 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
5953 #endif
5954
5955 #if defined S_ISBLK && defined S_IFCHR
5956 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
5957 #endif
5958
5959 #if defined S_ISLNK && defined S_IFREG
5960 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
5961 #endif
5962
5963 #if defined S_ISSOCK && defined S_IFREG
5964 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
5965 #endif
5966
5967 _ACEOF
5968 if ac_fn_c_try_compile "$LINENO"; then :
5969   ac_cv_header_stat_broken=no
5970 else
5971   ac_cv_header_stat_broken=yes
5972 fi
5973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5974 fi
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
5976 $as_echo "$ac_cv_header_stat_broken" >&6; }
5977 if test $ac_cv_header_stat_broken = yes; then
5978
5979 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
5980
5981 fi
5982
5983
5984
5985 for ac_header in sys/mount.h sys/statfs.h sys/sysctl.h sys/user.h sys/vfs.h
5986 do :
5987   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5988 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
5989      #ifdef HAVE_SYS_PARAM_H
5990      # include <sys/param.h>
5991      #endif
5992 "
5993 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5994   cat >>confdefs.h <<_ACEOF
5995 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5996 _ACEOF
5997
5998 fi
5999
6000 done
6001
6002
6003 for ac_header in \
6004         netinet/ip.h \
6005         net/if.h \
6006         net/if_arp.h \
6007         net/if_dl.h \
6008         net/if_types.h \
6009         net/route.h \
6010         netinet/if_ether.h \
6011         netinet/if_inarp.h \
6012         netinet/in_pcb.h \
6013         netinet/ip_icmp.h \
6014         netinet/ip_var.h \
6015         netinet/udp.h \
6016         netipx/ipx.h \
6017
6018 do :
6019   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6020 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6021      #ifdef HAVE_SYS_SOCKET_H
6022      # include <sys/socket.h>
6023      #endif
6024      #ifdef HAVE_SYS_SOCKETVAR_H
6025      # include <sys/socketvar.h>
6026      #endif
6027      #ifdef HAVE_NET_ROUTE_H
6028      # include <net/route.h>
6029      #endif
6030      #ifdef HAVE_NETINET_IN_H
6031      # include <netinet/in.h>
6032      #endif
6033      #ifdef HAVE_NETINET_IN_SYSTM_H
6034      # include <netinet/in_systm.h>
6035      #endif
6036      #ifdef HAVE_NET_IF_H
6037      # include <net/if.h>
6038      #endif
6039      #ifdef HAVE_NETINET_IP_H
6040      # include <netinet/ip.h>
6041      #endif
6042 "
6043 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6044   cat >>confdefs.h <<_ACEOF
6045 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6046 _ACEOF
6047
6048 fi
6049
6050 done
6051
6052
6053 for ac_header in netinet/tcp_timer.h netinet/udp_var.h netinet/icmp_var.h netinet/tcp_var.h
6054 do :
6055   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6056 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6057      #ifdef HAVE_ALIAS_H
6058      # include <alias.h>
6059      #endif
6060      #ifdef HAVE_SYS_SOCKET_H
6061      # include <sys/socket.h>
6062      #endif
6063      #ifdef HAVE_SYS_SOCKETVAR_H
6064      # include <sys/socketvar.h>
6065      #endif
6066      #ifdef HAVE_SYS_TIMEOUT_H
6067      # include <sys/timeout.h>
6068      #endif
6069      #ifdef HAVE_NETINET_IN_H
6070      # include <netinet/in.h>
6071      #endif
6072      #ifdef HAVE_NETINET_IN_SYSTM_H
6073      # include <netinet/in_systm.h>
6074      #endif
6075      #ifdef HAVE_NETINET_IP_H
6076      # include <netinet/ip.h>
6077      #endif
6078      #ifdef HAVE_NETINET_IP_VAR_H
6079      # include <netinet/ip_var.h>
6080      #endif
6081      #ifdef HAVE_NETINET_IP_ICMP_H
6082      # include <netinet/ip_icmp.h>
6083      #endif
6084      #ifdef HAVE_NETINET_UDP_H
6085      # include <netinet/udp.h>
6086      #endif
6087      #ifdef HAVE_NETINET_TCP_H
6088      # include <netinet/tcp.h>
6089      #endif
6090      #ifdef HAVE_NETINET_TCP_TIMER_H
6091      #include <netinet/tcp_timer.h>
6092      #endif
6093 "
6094 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6095   cat >>confdefs.h <<_ACEOF
6096 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6097 _ACEOF
6098
6099 fi
6100
6101 done
6102
6103
6104 for ac_header in linux/ipx.h linux/irda.h
6105 do :
6106   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6107 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6108      #ifdef HAVE_ASM_TYPES_H
6109      # include <asm/types.h>
6110      #endif
6111      #ifdef HAVE_SYS_SOCKET_H
6112      # include <sys/socket.h>
6113      #endif
6114      #ifdef HAVE_LINUX_TYPES_H
6115      # include <linux/types.h>
6116      #endif
6117 "
6118 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6119   cat >>confdefs.h <<_ACEOF
6120 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6121 _ACEOF
6122
6123 fi
6124
6125 done
6126
6127
6128 for ac_header in mach-o/dyld_images.h
6129 do :
6130   ac_fn_c_check_header_compile "$LINENO" "mach-o/dyld_images.h" "ac_cv_header_mach_o_dyld_images_h" "#ifdef HAVE_STDBOOL_H
6131      # include <stdbool.h>
6132      #endif
6133      #ifdef HAVE_STDINT_H
6134      # include <stdint.h>
6135      #endif
6136 "
6137 if test "x$ac_cv_header_mach_o_dyld_images_h" = xyes; then :
6138   cat >>confdefs.h <<_ACEOF
6139 #define HAVE_MACH_O_DYLD_IMAGES_H 1
6140 _ACEOF
6141
6142 fi
6143
6144 done
6145
6146
6147 for ac_header in resolv.h
6148 do :
6149   ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "#include <sys/types.h>
6150      #ifdef HAVE_SYS_SOCKET_H
6151      # include <sys/socket.h>
6152      #endif
6153      #ifdef HAVE_NETINET_IN_H
6154      # include <netinet/in.h>
6155      #endif
6156      #ifdef HAVE_ARPA_NAMESER_H
6157      # include <arpa/nameser.h>
6158      #endif
6159 "
6160 if test "x$ac_cv_header_resolv_h" = xyes; then :
6161   cat >>confdefs.h <<_ACEOF
6162 #define HAVE_RESOLV_H 1
6163 _ACEOF
6164
6165 fi
6166
6167 done
6168
6169
6170 for ac_header in ifaddrs.h
6171 do :
6172   ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "#include <sys/types.h>
6173 "
6174 if test "x$ac_cv_header_ifaddrs_h" = xyes; then :
6175   cat >>confdefs.h <<_ACEOF
6176 #define HAVE_IFADDRS_H 1
6177 _ACEOF
6178
6179 fi
6180
6181 done
6182
6183
6184 for ac_header in ucontext.h
6185 do :
6186   ac_fn_c_check_header_compile "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "#include <signal.h>
6187 "
6188 if test "x$ac_cv_header_ucontext_h" = xyes; then :
6189   cat >>confdefs.h <<_ACEOF
6190 #define HAVE_UCONTEXT_H 1
6191 _ACEOF
6192
6193 fi
6194
6195 done
6196
6197
6198 for ac_header in sys/thr.h
6199 do :
6200   ac_fn_c_check_header_compile "$LINENO" "sys/thr.h" "ac_cv_header_sys_thr_h" "#include <sys/types.h>
6201 #ifdef HAVE_UCONTEXT_H
6202 #include <ucontext.h>
6203 #endif
6204 "
6205 if test "x$ac_cv_header_sys_thr_h" = xyes; then :
6206   cat >>confdefs.h <<_ACEOF
6207 #define HAVE_SYS_THR_H 1
6208 _ACEOF
6209
6210 fi
6211
6212 done
6213
6214
6215 for ac_header in pthread_np.h
6216 do :
6217   ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" "#ifdef HAVE_PTHREAD_H
6218 #include <pthread.h>
6219 #endif
6220 "
6221 if test "x$ac_cv_header_pthread_np_h" = xyes; then :
6222   cat >>confdefs.h <<_ACEOF
6223 #define HAVE_PTHREAD_NP_H 1
6224 _ACEOF
6225
6226 fi
6227
6228 done
6229
6230
6231 for ac_header in linux/videodev.h
6232 do :
6233   ac_fn_c_check_header_compile "$LINENO" "linux/videodev.h" "ac_cv_header_linux_videodev_h" "#ifdef HAVE_SYS_TIME_H
6234 #include <sys/time.h>
6235 #endif
6236 #include <sys/types.h>
6237 #ifdef HAVE_ASM_TYPES_H
6238 #include <asm/types.h>
6239 #endif
6240 "
6241 if test "x$ac_cv_header_linux_videodev_h" = xyes; then :
6242   cat >>confdefs.h <<_ACEOF
6243 #define HAVE_LINUX_VIDEODEV_H 1
6244 _ACEOF
6245
6246 fi
6247
6248 done
6249
6250
6251 for ac_header in linux/capi.h
6252 do :
6253   ac_fn_c_check_header_compile "$LINENO" "linux/capi.h" "ac_cv_header_linux_capi_h" "#define __user
6254 "
6255 if test "x$ac_cv_header_linux_capi_h" = xyes; then :
6256   cat >>confdefs.h <<_ACEOF
6257 #define HAVE_LINUX_CAPI_H 1
6258 _ACEOF
6259
6260 fi
6261
6262 done
6263
6264
6265
6266 DLLEXT=""
6267
6268 DLLFLAGS="-D_REENTRANT"
6269
6270 LDSHARED=""
6271
6272 LDDLLFLAGS=""
6273
6274 LIBEXT="so"
6275
6276 IMPLIBEXT="def"
6277
6278 LDRPATH_INSTALL=""
6279
6280 LDRPATH_LOCAL=""
6281
6282 STATIC_IMPLIBEXT="def.a"
6283 # Extract the first word of "ldd", so it can be a program name with args.
6284 set dummy ldd; ac_word=$2
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6286 $as_echo_n "checking for $ac_word... " >&6; }
6287 if ${ac_cv_path_LDD+:} false; then :
6288   $as_echo_n "(cached) " >&6
6289 else
6290   case $LDD in
6291   [\\/]* | ?:[\\/]*)
6292   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
6293   ;;
6294   *)
6295   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6296 as_dummy="/sbin:/usr/sbin:$PATH"
6297 for as_dir in $as_dummy
6298 do
6299   IFS=$as_save_IFS
6300   test -z "$as_dir" && as_dir=.
6301     for ac_exec_ext in '' $ac_executable_extensions; do
6302   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6303     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
6304     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6305     break 2
6306   fi
6307 done
6308   done
6309 IFS=$as_save_IFS
6310
6311   test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
6312   ;;
6313 esac
6314 fi
6315 LDD=$ac_cv_path_LDD
6316 if test -n "$LDD"; then
6317   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
6318 $as_echo "$LDD" >&6; }
6319 else
6320   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6321 $as_echo "no" >&6; }
6322 fi
6323
6324
6325
6326 case $host_os in
6327   cygwin*|mingw32*)
6328     if test -n "$ac_tool_prefix"; then
6329   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6330 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6332 $as_echo_n "checking for $ac_word... " >&6; }
6333 if ${ac_cv_prog_DLLTOOL+:} false; then :
6334   $as_echo_n "(cached) " >&6
6335 else
6336   if test -n "$DLLTOOL"; then
6337   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6338 else
6339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6340 for as_dir in $PATH
6341 do
6342   IFS=$as_save_IFS
6343   test -z "$as_dir" && as_dir=.
6344     for ac_exec_ext in '' $ac_executable_extensions; do
6345   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6346     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6347     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6348     break 2
6349   fi
6350 done
6351   done
6352 IFS=$as_save_IFS
6353
6354 fi
6355 fi
6356 DLLTOOL=$ac_cv_prog_DLLTOOL
6357 if test -n "$DLLTOOL"; then
6358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6359 $as_echo "$DLLTOOL" >&6; }
6360 else
6361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6362 $as_echo "no" >&6; }
6363 fi
6364
6365
6366 fi
6367 if test -z "$ac_cv_prog_DLLTOOL"; then
6368   ac_ct_DLLTOOL=$DLLTOOL
6369   # Extract the first word of "dlltool", so it can be a program name with args.
6370 set dummy dlltool; ac_word=$2
6371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6372 $as_echo_n "checking for $ac_word... " >&6; }
6373 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6374   $as_echo_n "(cached) " >&6
6375 else
6376   if test -n "$ac_ct_DLLTOOL"; then
6377   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6378 else
6379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6380 for as_dir in $PATH
6381 do
6382   IFS=$as_save_IFS
6383   test -z "$as_dir" && as_dir=.
6384     for ac_exec_ext in '' $ac_executable_extensions; do
6385   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6386     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6387     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6388     break 2
6389   fi
6390 done
6391   done
6392 IFS=$as_save_IFS
6393
6394 fi
6395 fi
6396 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6397 if test -n "$ac_ct_DLLTOOL"; then
6398   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6399 $as_echo "$ac_ct_DLLTOOL" >&6; }
6400 else
6401   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6402 $as_echo "no" >&6; }
6403 fi
6404
6405   if test "x$ac_ct_DLLTOOL" = x; then
6406     DLLTOOL="false"
6407   else
6408     case $cross_compiling:$ac_tool_warned in
6409 yes:)
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6411 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6412 ac_tool_warned=yes ;;
6413 esac
6414     DLLTOOL=$ac_ct_DLLTOOL
6415   fi
6416 else
6417   DLLTOOL="$ac_cv_prog_DLLTOOL"
6418 fi
6419
6420     if test -n "$ac_tool_prefix"; then
6421   # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
6422 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6424 $as_echo_n "checking for $ac_word... " >&6; }
6425 if ${ac_cv_prog_DLLWRAP+:} false; then :
6426   $as_echo_n "(cached) " >&6
6427 else
6428   if test -n "$DLLWRAP"; then
6429   ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
6430 else
6431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6432 for as_dir in $PATH
6433 do
6434   IFS=$as_save_IFS
6435   test -z "$as_dir" && as_dir=.
6436     for ac_exec_ext in '' $ac_executable_extensions; do
6437   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6438     ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
6439     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6440     break 2
6441   fi
6442 done
6443   done
6444 IFS=$as_save_IFS
6445
6446 fi
6447 fi
6448 DLLWRAP=$ac_cv_prog_DLLWRAP
6449 if test -n "$DLLWRAP"; then
6450   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLWRAP" >&5
6451 $as_echo "$DLLWRAP" >&6; }
6452 else
6453   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6454 $as_echo "no" >&6; }
6455 fi
6456
6457
6458 fi
6459 if test -z "$ac_cv_prog_DLLWRAP"; then
6460   ac_ct_DLLWRAP=$DLLWRAP
6461   # Extract the first word of "dllwrap", so it can be a program name with args.
6462 set dummy dllwrap; ac_word=$2
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6464 $as_echo_n "checking for $ac_word... " >&6; }
6465 if ${ac_cv_prog_ac_ct_DLLWRAP+:} false; then :
6466   $as_echo_n "(cached) " >&6
6467 else
6468   if test -n "$ac_ct_DLLWRAP"; then
6469   ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
6470 else
6471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6472 for as_dir in $PATH
6473 do
6474   IFS=$as_save_IFS
6475   test -z "$as_dir" && as_dir=.
6476     for ac_exec_ext in '' $ac_executable_extensions; do
6477   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6478     ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
6479     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6480     break 2
6481   fi
6482 done
6483   done
6484 IFS=$as_save_IFS
6485
6486 fi
6487 fi
6488 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
6489 if test -n "$ac_ct_DLLWRAP"; then
6490   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLWRAP" >&5
6491 $as_echo "$ac_ct_DLLWRAP" >&6; }
6492 else
6493   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6494 $as_echo "no" >&6; }
6495 fi
6496
6497   if test "x$ac_ct_DLLWRAP" = x; then
6498     DLLWRAP="false"
6499   else
6500     case $cross_compiling:$ac_tool_warned in
6501 yes:)
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6503 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6504 ac_tool_warned=yes ;;
6505 esac
6506     DLLWRAP=$ac_ct_DLLWRAP
6507   fi
6508 else
6509   DLLWRAP="$ac_cv_prog_DLLWRAP"
6510 fi
6511
6512     if test "$DLLWRAP" = "false"; then
6513       LIBEXT="a"
6514     else
6515             LIBEXT="dll"
6516     fi
6517     IMPLIBEXT="a"
6518     STATIC_IMPLIBEXT="a"
6519         enable_iphlpapi=${enable_iphlpapi:-no}
6520     enable_kernel32=${enable_kernel32:-no}
6521     enable_msvcrt=${enable_msvcrt:-no}
6522     enable_ntdll=${enable_ntdll:-no}
6523     enable_ws2_32=${enable_ws2_32:-no}
6524     enable_loader=${enable_loader:-no}
6525     enable_server=${enable_server:-no}
6526         with_x=${with_x:-no}
6527     with_pthread=${with_pthread:-no}
6528     ;;
6529   darwin*|macosx*)
6530     DLLEXT=".so"
6531     LIBEXT="dylib"
6532     DLLFLAGS="$DLLFLAGS -fPIC"
6533     LDDLLFLAGS="-bundle -multiply_defined suppress"
6534     LIBWINE_LDFLAGS="-multiply_defined suppress"
6535     LDSHARED="\$(CC) -dynamiclib"
6536     STRIP="$STRIP -x"
6537     LDRPATH_LOCAL="&& install_name_tool -change @executable_path/\`\$(RELPATH) \$(bindir) \$(libdir)\`/libwine.1.dylib @executable_path/\$(top_builddir)/libs/wine/libwine.1.dylib \$@ || \$(RM) \$@"
6538         COREFOUNDATIONLIB="-framework CoreFoundation"
6539
6540     IOKITLIB="-framework IOKit -framework CoreFoundation"
6541
6542     APPLICATIONSERVICESLIB="-framework ApplicationServices"
6543
6544     LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00000000,-segaddr,WINE_SHAREDHEAP,0x7f000000"
6545
6546     if test "$ac_cv_header_DiskArbitration_DiskArbitration_h" = "yes"
6547     then
6548                 DISKARBITRATIONLIB="-framework DiskArbitration -framework CoreFoundation"
6549
6550     fi
6551     if test "$ac_cv_header_Security_Security_h" = "yes"
6552     then
6553         SECURITYLIB="-framework Security -framework CoreFoundation"
6554
6555         with_gnutls=${with_gnutls:-no}
6556     fi
6557     if test "$ac_cv_header_CoreAudio_CoreAudio_h" = "yes" -a "$ac_cv_header_AudioUnit_AudioUnit_h" = "yes"
6558     then
6559         if test "$ac_cv_header_AudioUnit_AudioComponent_h" = "yes"
6560         then
6561             COREAUDIO="-framework CoreFoundation -framework CoreAudio -framework AudioUnit -framework AudioToolbox -framework CoreMIDI"
6562
6563         else
6564                         COREAUDIO="-framework CoreAudio -framework AudioUnit -framework CoreServices -framework AudioToolbox -framework CoreMIDI"
6565
6566         fi
6567                 ac_save_LIBS="$LIBS"
6568         LIBS="$LIBS $COREAUDIO"
6569         for ac_func in AUGraphAddNode
6570 do :
6571   ac_fn_c_check_func "$LINENO" "AUGraphAddNode" "ac_cv_func_AUGraphAddNode"
6572 if test "x$ac_cv_func_AUGraphAddNode" = xyes; then :
6573   cat >>confdefs.h <<_ACEOF
6574 #define HAVE_AUGRAPHADDNODE 1
6575 _ACEOF
6576
6577 fi
6578 done
6579
6580         LIBS="$ac_save_LIBS"
6581     fi
6582     if test "$ac_cv_header_OpenAL_al_h" = "yes"
6583     then
6584         FRAMEWORK_OPENAL="-framework OpenAL"
6585
6586
6587 cat >>confdefs.h <<_ACEOF
6588 #define HAVE_OPENAL 1
6589 _ACEOF
6590
6591         ac_cv_lib_openal=yes
6592     fi
6593     if test "$ac_cv_header_OpenCL_opencl_h" = "yes"
6594     then
6595         LIBOPENCL="-framework OpenCL"
6596
6597         ac_cv_lib_OpenCL_clGetPlatformInfo=yes
6598     fi
6599     if test "$ac_cv_header_IOKit_hid_IOHIDLib_h" = "yes"
6600     then
6601         ac_save_LIBS="$LIBS"
6602         LIBS="$LIBS $IOKITLIB"
6603         for ac_func in IOHIDManagerCreate
6604 do :
6605   ac_fn_c_check_func "$LINENO" "IOHIDManagerCreate" "ac_cv_func_IOHIDManagerCreate"
6606 if test "x$ac_cv_func_IOHIDManagerCreate" = xyes; then :
6607   cat >>confdefs.h <<_ACEOF
6608 #define HAVE_IOHIDMANAGERCREATE 1
6609 _ACEOF
6610
6611 fi
6612 done
6613
6614         LIBS="$ac_save_LIBS"
6615     fi
6616     case $host_cpu in
6617       *powerpc*)
6618         LDDLLFLAGS="$LDDLLFLAGS -read_only_relocs warning"          ;;
6619     esac
6620     if test "$ac_cv_header_QuickTime_ImageCompression_h" = "yes"
6621     then
6622         QUICKTIMELIB="-framework QuickTime -framework ApplicationServices -framework CoreVideo"
6623
6624         enable_wineqtdecoder=${enable_wineqtdecoder:-yes}
6625     else
6626         as_fn_append wine_notices "|QuickTime ${notice_platform}development files not found, video decoding won't be supported."
6627     fi
6628         if test "$ac_cv_header_Carbon_Carbon_h" = "yes"
6629     then
6630         CARBONLIB="-framework Carbon"
6631
6632         enable_winequartz_drv=${enable_winequartz_drv:-yes}
6633     fi
6634         if test "x$enable_win16" = "xyes"
6635     then
6636         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 16-bit code can be built correctly" >&5
6637 $as_echo_n "checking whether 16-bit code can be built correctly... " >&6; }
6638         if test "$cross_compiling" = yes; then :
6639   { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5
6640 $as_echo "cross-compiling, assuming yes" >&6; }
6641 else
6642   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6643 /* end confdefs.h.  */
6644 asm(".text\n"
6645                                             "bad:\tnop;nop\n"
6646                                             "good:\tnop;nop\n\t"
6647                                             ".globl _testfunc\n"
6648                                             "_testfunc:\tcallw good");
6649                                         extern void testfunc();
6650 int
6651 main ()
6652 {
6653 unsigned short *p = (unsigned short *)testfunc;
6654                                         return p[0] != 0xe866 || p[1] != 0xfffa
6655   ;
6656   return 0;
6657 }
6658 _ACEOF
6659 if ac_fn_c_try_run "$LINENO"; then :
6660   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6661 $as_echo "yes" >&6; }
6662 else
6663   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6664 $as_echo "no" >&6; }
6665                                        as_fn_error $? "Xcode 3.x cannot build 16-bit code correctly. Use --disable-win16 if you don't need 16-bit support." "$LINENO" 5
6666 fi
6667 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6668   conftest.$ac_objext conftest.beam conftest.$ac_ext
6669 fi
6670
6671     fi
6672     ;;
6673   *)
6674     DLLFLAGS="$DLLFLAGS -fPIC"
6675     DLLEXT=".so"
6676     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a GNU style ELF dll" >&5
6677 $as_echo_n "checking whether we can build a GNU style ELF dll... " >&6; }
6678 if ${ac_cv_c_dll_gnuelf+:} false; then :
6679   $as_echo_n "(cached) " >&6
6680 else
6681   ac_wine_try_cflags_saved=$CFLAGS
6682 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic"
6683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6684 /* end confdefs.h.  */
6685 void myfunc() {}
6686 _ACEOF
6687 if ac_fn_c_try_link "$LINENO"; then :
6688   ac_cv_c_dll_gnuelf="yes"
6689 else
6690   ac_cv_c_dll_gnuelf="no"
6691 fi
6692 rm -f core conftest.err conftest.$ac_objext \
6693     conftest$ac_exeext conftest.$ac_ext
6694 CFLAGS=$ac_wine_try_cflags_saved
6695 fi
6696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_gnuelf" >&5
6697 $as_echo "$ac_cv_c_dll_gnuelf" >&6; }
6698     if test "$ac_cv_c_dll_gnuelf" = "yes"
6699     then
6700       LDSHARED="\$(CC) -shared"
6701       LDDLLFLAGS="-shared -Wl,-Bsymbolic"
6702       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1" >&5
6703 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1... " >&6; }
6704 if ${ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1+:} false; then :
6705   $as_echo_n "(cached) " >&6
6706 else
6707   ac_wine_try_cflags_saved=$CFLAGS
6708 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,confest.so.1"
6709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6710 /* end confdefs.h.  */
6711 int main(int argc, char **argv) { return 0; }
6712 _ACEOF
6713 if ac_fn_c_try_link "$LINENO"; then :
6714   ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=yes
6715 else
6716   ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=no
6717 fi
6718 rm -f core conftest.err conftest.$ac_objext \
6719     conftest$ac_exeext conftest.$ac_ext
6720 CFLAGS=$ac_wine_try_cflags_saved
6721 fi
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&5
6723 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&6; }
6724 if test $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1 = yes; then :
6725   LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
6726 else
6727   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1" >&5
6728 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1... " >&6; }
6729 if ${ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1+:} false; then :
6730   $as_echo_n "(cached) " >&6
6731 else
6732   ac_wine_try_cflags_saved=$CFLAGS
6733 CFLAGS="$CFLAGS -fPIC -shared -Wl,-h,confest.so.1"
6734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6735 /* end confdefs.h.  */
6736 int main(int argc, char **argv) { return 0; }
6737 _ACEOF
6738 if ac_fn_c_try_link "$LINENO"; then :
6739   ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=yes
6740 else
6741   ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=no
6742 fi
6743 rm -f core conftest.err conftest.$ac_objext \
6744     conftest$ac_exeext conftest.$ac_ext
6745 CFLAGS=$ac_wine_try_cflags_saved
6746 fi
6747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&5
6748 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&6; }
6749 if test $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1 = yes; then :
6750   LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-h,%)"
6751 fi
6752 fi
6753
6754       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs" >&5
6755 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs... " >&6; }
6756 if ${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs+:} false; then :
6757   $as_echo_n "(cached) " >&6
6758 else
6759   ac_wine_try_cflags_saved=$CFLAGS
6760 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
6761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6762 /* end confdefs.h.  */
6763 int main(int argc, char **argv) { return 0; }
6764 _ACEOF
6765 if ac_fn_c_try_link "$LINENO"; then :
6766   ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=yes
6767 else
6768   ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=no
6769 fi
6770 rm -f core conftest.err conftest.$ac_objext \
6771     conftest$ac_exeext conftest.$ac_ext
6772 CFLAGS=$ac_wine_try_cflags_saved
6773 fi
6774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&5
6775 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&6; }
6776 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs = yes; then :
6777   LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
6778 fi
6779
6780       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini" >&5
6781 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini... " >&6; }
6782 if ${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini+:} false; then :
6783   $as_echo_n "(cached) " >&6
6784 else
6785   ac_wine_try_cflags_saved=$CFLAGS
6786 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
6787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6788 /* end confdefs.h.  */
6789 int main(int argc, char **argv) { return 0; }
6790 _ACEOF
6791 if ac_fn_c_try_link "$LINENO"; then :
6792   ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=yes
6793 else
6794   ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=no
6795 fi
6796 rm -f core conftest.err conftest.$ac_objext \
6797     conftest$ac_exeext conftest.$ac_ext
6798 CFLAGS=$ac_wine_try_cflags_saved
6799 fi
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&5
6801 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&6; }
6802 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini = yes; then :
6803   LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
6804 fi
6805
6806       echo '{ global: *; };' >conftest.map
6807       as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -shared -Wl,--version-script=conftest.map" | $as_tr_sh`
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map" >&5
6809 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map... " >&6; }
6810 if eval \${$as_ac_var+:} false; then :
6811   $as_echo_n "(cached) " >&6
6812 else
6813   ac_wine_try_cflags_saved=$CFLAGS
6814 CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
6815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6816 /* end confdefs.h.  */
6817 int main(int argc, char **argv) { return 0; }
6818 _ACEOF
6819 if ac_fn_c_try_link "$LINENO"; then :
6820   eval "$as_ac_var=yes"
6821 else
6822   eval "$as_ac_var=no"
6823 fi
6824 rm -f core conftest.err conftest.$ac_objext \
6825     conftest$ac_exeext conftest.$ac_ext
6826 CFLAGS=$ac_wine_try_cflags_saved
6827 fi
6828 eval ac_res=\$$as_ac_var
6829                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6830 $as_echo "$ac_res" >&6; }
6831 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6832   LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)"
6833 fi
6834       rm -f conftest.map
6835
6836       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5
6837 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--export-dynamic... " >&6; }
6838 if ${ac_cv_cflags__fPIC__Wl___export_dynamic+:} false; then :
6839   $as_echo_n "(cached) " >&6
6840 else
6841   ac_wine_try_cflags_saved=$CFLAGS
6842 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
6843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6844 /* end confdefs.h.  */
6845 int main(int argc, char **argv) { return 0; }
6846 _ACEOF
6847 if ac_fn_c_try_link "$LINENO"; then :
6848   ac_cv_cflags__fPIC__Wl___export_dynamic=yes
6849 else
6850   ac_cv_cflags__fPIC__Wl___export_dynamic=no
6851 fi
6852 rm -f core conftest.err conftest.$ac_objext \
6853     conftest$ac_exeext conftest.$ac_ext
6854 CFLAGS=$ac_wine_try_cflags_saved
6855 fi
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__Wl___export_dynamic" >&5
6857 $as_echo "$ac_cv_cflags__fPIC__Wl___export_dynamic" >&6; }
6858 if test $ac_cv_cflags__fPIC__Wl___export_dynamic = yes; then :
6859   LDEXECFLAGS="-Wl,--export-dynamic"
6860
6861 fi
6862
6863       as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,--rpath,\\$ORIGIN/../lib" | $as_tr_sh`
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib" >&5
6865 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... " >&6; }
6866 if eval \${$as_ac_var+:} false; then :
6867   $as_echo_n "(cached) " >&6
6868 else
6869   ac_wine_try_cflags_saved=$CFLAGS
6870 CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
6871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6872 /* end confdefs.h.  */
6873 int main(int argc, char **argv) { return 0; }
6874 _ACEOF
6875 if ac_fn_c_try_link "$LINENO"; then :
6876   eval "$as_ac_var=yes"
6877 else
6878   eval "$as_ac_var=no"
6879 fi
6880 rm -f core conftest.err conftest.$ac_objext \
6881     conftest$ac_exeext conftest.$ac_ext
6882 CFLAGS=$ac_wine_try_cflags_saved
6883 fi
6884 eval ac_res=\$$as_ac_var
6885                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6886 $as_echo "$ac_res" >&6; }
6887 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6888   LDRPATH_INSTALL="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
6889                        LDRPATH_LOCAL="-Wl,--rpath,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
6890 else
6891   as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,-R,\\$ORIGIN/../lib" | $as_tr_sh`
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib" >&5
6893 $as_echo_n "checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib... " >&6; }
6894 if eval \${$as_ac_var+:} false; then :
6895   $as_echo_n "(cached) " >&6
6896 else
6897   ac_wine_try_cflags_saved=$CFLAGS
6898 CFLAGS="$CFLAGS -fPIC -Wl,-R,\$ORIGIN/../lib"
6899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6900 /* end confdefs.h.  */
6901 int main(int argc, char **argv) { return 0; }
6902 _ACEOF
6903 if ac_fn_c_try_link "$LINENO"; then :
6904   eval "$as_ac_var=yes"
6905 else
6906   eval "$as_ac_var=no"
6907 fi
6908 rm -f core conftest.err conftest.$ac_objext \
6909     conftest$ac_exeext conftest.$ac_ext
6910 CFLAGS=$ac_wine_try_cflags_saved
6911 fi
6912 eval ac_res=\$$as_ac_var
6913                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6914 $as_echo "$ac_res" >&6; }
6915 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6916   LDRPATH_INSTALL="-Wl,-R,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
6917                             LDRPATH_LOCAL="-Wl,-R,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
6918 fi
6919 fi
6920
6921       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--enable-new-dtags" >&5
6922 $as_echo_n "checking whether the compiler supports -Wl,--enable-new-dtags... " >&6; }
6923 if ${ac_cv_cflags__Wl___enable_new_dtags+:} false; then :
6924   $as_echo_n "(cached) " >&6
6925 else
6926   ac_wine_try_cflags_saved=$CFLAGS
6927 CFLAGS="$CFLAGS -Wl,--enable-new-dtags"
6928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6929 /* end confdefs.h.  */
6930 int main(int argc, char **argv) { return 0; }
6931 _ACEOF
6932 if ac_fn_c_try_link "$LINENO"; then :
6933   ac_cv_cflags__Wl___enable_new_dtags=yes
6934 else
6935   ac_cv_cflags__Wl___enable_new_dtags=no
6936 fi
6937 rm -f core conftest.err conftest.$ac_objext \
6938     conftest$ac_exeext conftest.$ac_ext
6939 CFLAGS=$ac_wine_try_cflags_saved
6940 fi
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___enable_new_dtags" >&5
6942 $as_echo "$ac_cv_cflags__Wl___enable_new_dtags" >&6; }
6943 if test $ac_cv_cflags__Wl___enable_new_dtags = yes; then :
6944   LDRPATH_INSTALL="$LDRPATH_INSTALL -Wl,--enable-new-dtags"
6945 fi
6946
6947       case $host_cpu in
6948         *i[3456789]86* | x86_64)
6949           as_ac_var=`$as_echo "ac_cv_cflags_-Wl,--section-start,.interp=0x7bf00400" | $as_tr_sh`
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400" >&5
6951 $as_echo_n "checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... " >&6; }
6952 if eval \${$as_ac_var+:} false; then :
6953   $as_echo_n "(cached) " >&6
6954 else
6955   ac_wine_try_cflags_saved=$CFLAGS
6956 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
6957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6958 /* end confdefs.h.  */
6959 int main(int argc, char **argv) { return 0; }
6960 _ACEOF
6961 if ac_fn_c_try_link "$LINENO"; then :
6962   eval "$as_ac_var=yes"
6963 else
6964   eval "$as_ac_var=no"
6965 fi
6966 rm -f core conftest.err conftest.$ac_objext \
6967     conftest$ac_exeext conftest.$ac_ext
6968 CFLAGS=$ac_wine_try_cflags_saved
6969 fi
6970 eval ac_res=\$$as_ac_var
6971                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6972 $as_echo "$ac_res" >&6; }
6973 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6974   case $host_os in
6975                            freebsd*)  LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x60000400" ;;
6976                            *) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400" ;;
6977                            esac
6978
6979 fi
6980           # Extract the first word of "prelink", so it can be a program name with args.
6981 set dummy prelink; ac_word=$2
6982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6983 $as_echo_n "checking for $ac_word... " >&6; }
6984 if ${ac_cv_path_PRELINK+:} false; then :
6985   $as_echo_n "(cached) " >&6
6986 else
6987   case $PRELINK in
6988   [\\/]* | ?:[\\/]*)
6989   ac_cv_path_PRELINK="$PRELINK" # Let the user override the test with a path.
6990   ;;
6991   *)
6992   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6993 for as_dir in /sbin /usr/sbin $PATH
6994 do
6995   IFS=$as_save_IFS
6996   test -z "$as_dir" && as_dir=.
6997     for ac_exec_ext in '' $ac_executable_extensions; do
6998   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6999     ac_cv_path_PRELINK="$as_dir/$ac_word$ac_exec_ext"
7000     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7001     break 2
7002   fi
7003 done
7004   done
7005 IFS=$as_save_IFS
7006
7007   test -z "$ac_cv_path_PRELINK" && ac_cv_path_PRELINK="false"
7008   ;;
7009 esac
7010 fi
7011 PRELINK=$ac_cv_path_PRELINK
7012 if test -n "$PRELINK"; then
7013   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRELINK" >&5
7014 $as_echo "$PRELINK" >&6; }
7015 else
7016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7017 $as_echo "no" >&6; }
7018 fi
7019
7020
7021           if test "x$PRELINK" = xfalse
7022           then
7023               as_fn_append wine_warnings "|prelink not found, base address of core dlls won't be set correctly."
7024           fi
7025           ;;
7026       esac
7027
7028     else
7029       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a UnixWare (Solaris) dll" >&5
7030 $as_echo_n "checking whether we can build a UnixWare (Solaris) dll... " >&6; }
7031 if ${ac_cv_c_dll_unixware+:} false; then :
7032   $as_echo_n "(cached) " >&6
7033 else
7034   ac_wine_try_cflags_saved=$CFLAGS
7035 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
7036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7037 /* end confdefs.h.  */
7038 void myfunc() {}
7039 _ACEOF
7040 if ac_fn_c_try_link "$LINENO"; then :
7041   ac_cv_c_dll_unixware="yes"
7042 else
7043   ac_cv_c_dll_unixware="no"
7044 fi
7045 rm -f core conftest.err conftest.$ac_objext \
7046     conftest$ac_exeext conftest.$ac_ext
7047 CFLAGS=$ac_wine_try_cflags_saved
7048 fi
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_unixware" >&5
7050 $as_echo "$ac_cv_c_dll_unixware" >&6; }
7051       if test "$ac_cv_c_dll_unixware" = "yes"
7052       then
7053         LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
7054         LDDLLFLAGS="-Wl,-G,-B,symbolic"
7055
7056       else
7057         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build an HP-UX dll" >&5
7058 $as_echo_n "checking whether we can build an HP-UX dll... " >&6; }
7059 if ${ac_cv_c_dll_hpux+:} false; then :
7060   $as_echo_n "(cached) " >&6
7061 else
7062   ac_wine_try_cflags_saved=$CFLAGS
7063 CFLAGS="$CFLAGS -shared"
7064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7065 /* end confdefs.h.  */
7066 void myfunc() {}
7067 _ACEOF
7068 if ac_fn_c_try_link "$LINENO"; then :
7069   ac_cv_c_dll_hpux="yes"
7070 else
7071   ac_cv_c_dll_hpux="no"
7072 fi
7073 rm -f core conftest.err conftest.$ac_objext \
7074     conftest$ac_exeext conftest.$ac_ext
7075 CFLAGS=$ac_wine_try_cflags_saved
7076 fi
7077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_hpux" >&5
7078 $as_echo "$ac_cv_c_dll_hpux" >&6; }
7079         if test "$ac_cv_c_dll_hpux" = "yes"
7080         then
7081           LIBEXT="sl"
7082           DLLEXT=".sl"
7083           LDDLLFLAGS="-shared -fPIC"
7084           LDSHARED="\$(CC) -shared"
7085         fi
7086       fi
7087     fi
7088     ;;
7089 esac
7090
7091 enable_wineqtdecoder=${enable_wineqtdecoder:-no}
7092 enable_winequartz_drv=${enable_winequartz_drv:-no}
7093
7094 if test "$LIBEXT" = "a"; then
7095   as_fn_error $? "could not find a way to build shared libraries.
7096 It is currently not possible to build Wine without shared library
7097 (.so) support to allow transparent switch between .so and .dll files.
7098 If you are using Linux, you will need a newer binutils.
7099 " "$LINENO" 5
7100 fi
7101
7102 CROSSTEST_DISABLE=\#
7103
7104 if test "$cross_compiling" = "no" -a "x$enable_tests" != xno -a "$LIBEXT" != "dll"
7105 then
7106     case "$host_cpu" in
7107   i[3456789]86*)
7108     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 " ;;
7109   x86_64)
7110     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 " ;;
7111   *)
7112     ac_prefix_list="" ;;
7113 esac
7114 for ac_prog in $ac_prefix_list
7115 do
7116   # Extract the first word of "$ac_prog", so it can be a program name with args.
7117 set dummy $ac_prog; ac_word=$2
7118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7119 $as_echo_n "checking for $ac_word... " >&6; }
7120 if ${ac_cv_prog_CROSSCC+:} false; then :
7121   $as_echo_n "(cached) " >&6
7122 else
7123   if test -n "$CROSSCC"; then
7124   ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
7125 else
7126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7127 for as_dir in $PATH
7128 do
7129   IFS=$as_save_IFS
7130   test -z "$as_dir" && as_dir=.
7131     for ac_exec_ext in '' $ac_executable_extensions; do
7132   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7133     ac_cv_prog_CROSSCC="$ac_prog"
7134     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7135     break 2
7136   fi
7137 done
7138   done
7139 IFS=$as_save_IFS
7140
7141 fi
7142 fi
7143 CROSSCC=$ac_cv_prog_CROSSCC
7144 if test -n "$CROSSCC"; then
7145   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CROSSCC" >&5
7146 $as_echo "$CROSSCC" >&6; }
7147 else
7148   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7149 $as_echo "no" >&6; }
7150 fi
7151
7152
7153   test -n "$CROSSCC" && break
7154 done
7155 test -n "$CROSSCC" || CROSSCC="false"
7156
7157     if test "$CROSSCC" != "false"
7158     then
7159         ac_save_CC="$CC"
7160         CC="$CROSSCC"
7161         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CROSSCC works" >&5
7162 $as_echo_n "checking whether $CROSSCC works... " >&6; }
7163         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7164 /* end confdefs.h.  */
7165
7166 int
7167 main ()
7168 {
7169
7170   ;
7171   return 0;
7172 }
7173 _ACEOF
7174 if ac_fn_c_try_compile "$LINENO"; then :
7175   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7176 $as_echo "yes" >&6; }
7177                            set x $CROSSCC
7178                            shift
7179                            target=""
7180                            while test $# -ge 1
7181                            do
7182                                case "$1" in
7183                                  *-gcc) target=`expr "$1" : '\(.*\)-gcc'` ;;
7184                                esac
7185                                shift
7186                            done
7187                            if test -n "$target"
7188                            then
7189                                CROSSTEST_DISABLE=""
7190                                CROSSTARGET="$target"
7191
7192                            fi
7193 else
7194   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7195 $as_echo "no" >&6; }
7196 fi
7197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7198         CC="$ac_save_CC"
7199     fi
7200 fi
7201
7202
7203 if test "$ac_cv_header_pthread_h" = "yes"
7204 then
7205     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
7206 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
7207 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
7208   $as_echo_n "(cached) " >&6
7209 else
7210   ac_check_lib_save_LIBS=$LIBS
7211 LIBS="-lpthread  $LIBS"
7212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7213 /* end confdefs.h.  */
7214
7215 /* Override any GCC internal prototype to avoid an error.
7216    Use char because int might match the return type of a GCC
7217    builtin and then its argument prototype would still apply.  */
7218 #ifdef __cplusplus
7219 extern "C"
7220 #endif
7221 char pthread_create ();
7222 int
7223 main ()
7224 {
7225 return pthread_create ();
7226   ;
7227   return 0;
7228 }
7229 _ACEOF
7230 if ac_fn_c_try_link "$LINENO"; then :
7231   ac_cv_lib_pthread_pthread_create=yes
7232 else
7233   ac_cv_lib_pthread_pthread_create=no
7234 fi
7235 rm -f core conftest.err conftest.$ac_objext \
7236     conftest$ac_exeext conftest.$ac_ext
7237 LIBS=$ac_check_lib_save_LIBS
7238 fi
7239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
7240 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
7241 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
7242   LIBPTHREAD="-lpthread"
7243
7244 fi
7245
7246 fi
7247 if test "x$LIBPTHREAD" = "x"; then :
7248   case "x$with_pthread" in
7249   xno) ;;
7250   *)   as_fn_error $? "pthread ${notice_platform}development files not found.
7251 Wine cannot support threads without libpthread.
7252 Use the --without-pthread option if you really want this." "$LINENO" 5 ;;
7253 esac
7254 fi
7255
7256
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
7258 $as_echo_n "checking for X... " >&6; }
7259
7260
7261 # Check whether --with-x was given.
7262 if test "${with_x+set}" = set; then :
7263   withval=$with_x;
7264 fi
7265
7266 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7267 if test "x$with_x" = xno; then
7268   # The user explicitly disabled X.
7269   have_x=disabled
7270 else
7271   case $x_includes,$x_libraries in #(
7272     *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
7273     *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
7274   $as_echo_n "(cached) " >&6
7275 else
7276   # One or both of the vars are not set, and there is no cached value.
7277 ac_x_includes=no ac_x_libraries=no
7278 rm -f -r conftest.dir
7279 if mkdir conftest.dir; then
7280   cd conftest.dir
7281   cat >Imakefile <<'_ACEOF'
7282 incroot:
7283         @echo incroot='${INCROOT}'
7284 usrlibdir:
7285         @echo usrlibdir='${USRLIBDIR}'
7286 libdir:
7287         @echo libdir='${LIBDIR}'
7288 _ACEOF
7289   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
7290     # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7291     for ac_var in incroot usrlibdir libdir; do
7292       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
7293     done
7294     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7295     for ac_extension in a so sl dylib la dll; do
7296       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
7297          test -f "$ac_im_libdir/libX11.$ac_extension"; then
7298         ac_im_usrlibdir=$ac_im_libdir; break
7299       fi
7300     done
7301     # Screen out bogus values from the imake configuration.  They are
7302     # bogus both because they are the default anyway, and because
7303     # using them would break gcc on systems where it needs fixed includes.
7304     case $ac_im_incroot in
7305         /usr/include) ac_x_includes= ;;
7306         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7307     esac
7308     case $ac_im_usrlibdir in
7309         /usr/lib | /usr/lib64 | /lib | /lib64) ;;
7310         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7311     esac
7312   fi
7313   cd ..
7314   rm -f -r conftest.dir
7315 fi
7316
7317 # Standard set of common directories for X headers.
7318 # Check X11 before X11Rn because it is often a symlink to the current release.
7319 ac_x_header_dirs='
7320 /usr/X11/include
7321 /usr/X11R7/include
7322 /usr/X11R6/include
7323 /usr/X11R5/include
7324 /usr/X11R4/include
7325
7326 /usr/include/X11
7327 /usr/include/X11R7
7328 /usr/include/X11R6
7329 /usr/include/X11R5
7330 /usr/include/X11R4
7331
7332 /usr/local/X11/include
7333 /usr/local/X11R7/include
7334 /usr/local/X11R6/include
7335 /usr/local/X11R5/include
7336 /usr/local/X11R4/include
7337
7338 /usr/local/include/X11
7339 /usr/local/include/X11R7
7340 /usr/local/include/X11R6
7341 /usr/local/include/X11R5
7342 /usr/local/include/X11R4
7343
7344 /usr/X386/include
7345 /usr/x386/include
7346 /usr/XFree86/include/X11
7347
7348 /usr/include
7349 /usr/local/include
7350 /usr/unsupported/include
7351 /usr/athena/include
7352 /usr/local/x11r5/include
7353 /usr/lpp/Xamples/include
7354
7355 /usr/openwin/include
7356 /usr/openwin/share/include'
7357
7358 if test "$ac_x_includes" = no; then
7359   # Guess where to find include files, by looking for Xlib.h.
7360   # First, try using that file with no special directory specified.
7361   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7362 /* end confdefs.h.  */
7363 #include <X11/Xlib.h>
7364 _ACEOF
7365 if ac_fn_c_try_cpp "$LINENO"; then :
7366   # We can compile using X headers with no special include directory.
7367 ac_x_includes=
7368 else
7369   for ac_dir in $ac_x_header_dirs; do
7370   if test -r "$ac_dir/X11/Xlib.h"; then
7371     ac_x_includes=$ac_dir
7372     break
7373   fi
7374 done
7375 fi
7376 rm -f conftest.err conftest.i conftest.$ac_ext
7377 fi # $ac_x_includes = no
7378
7379 if test "$ac_x_libraries" = no; then
7380   # Check for the libraries.
7381   # See if we find them without any special options.
7382   # Don't add to $LIBS permanently.
7383   ac_save_LIBS=$LIBS
7384   LIBS="-lX11 $LIBS"
7385   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7386 /* end confdefs.h.  */
7387 #include <X11/Xlib.h>
7388 int
7389 main ()
7390 {
7391 XrmInitialize ()
7392   ;
7393   return 0;
7394 }
7395 _ACEOF
7396 if ac_fn_c_try_link "$LINENO"; then :
7397   LIBS=$ac_save_LIBS
7398 # We can link X programs with no special library path.
7399 ac_x_libraries=
7400 else
7401   LIBS=$ac_save_LIBS
7402 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7403 do
7404   # Don't even attempt the hair of trying to link an X program!
7405   for ac_extension in a so sl dylib la dll; do
7406     if test -r "$ac_dir/libX11.$ac_extension"; then
7407       ac_x_libraries=$ac_dir
7408       break 2
7409     fi
7410   done
7411 done
7412 fi
7413 rm -f core conftest.err conftest.$ac_objext \
7414     conftest$ac_exeext conftest.$ac_ext
7415 fi # $ac_x_libraries = no
7416
7417 case $ac_x_includes,$ac_x_libraries in #(
7418   no,* | *,no | *\'*)
7419     # Didn't find X, or a directory has "'" in its name.
7420     ac_cv_have_x="have_x=no";; #(
7421   *)
7422     # Record where we found X for the cache.
7423     ac_cv_have_x="have_x=yes\
7424         ac_x_includes='$ac_x_includes'\
7425         ac_x_libraries='$ac_x_libraries'"
7426 esac
7427 fi
7428 ;; #(
7429     *) have_x=yes;;
7430   esac
7431   eval "$ac_cv_have_x"
7432 fi # $with_x != no
7433
7434 if test "$have_x" != yes; then
7435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
7436 $as_echo "$have_x" >&6; }
7437   no_x=yes
7438 else
7439   # If each of the values was on the command line, it overrides each guess.
7440   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7441   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7442   # Update the cache value to reflect the command line values.
7443   ac_cv_have_x="have_x=yes\
7444         ac_x_includes='$x_includes'\
7445         ac_x_libraries='$x_libraries'"
7446   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
7447 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
7448 fi
7449
7450 if test "$no_x" = yes; then
7451   # Not all programs may use this symbol, but it does not hurt to define it.
7452
7453 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
7454
7455   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7456 else
7457   if test -n "$x_includes"; then
7458     X_CFLAGS="$X_CFLAGS -I$x_includes"
7459   fi
7460
7461   # It would also be nice to do this for all -L options, not just this one.
7462   if test -n "$x_libraries"; then
7463     X_LIBS="$X_LIBS -L$x_libraries"
7464     # For Solaris; some versions of Sun CC require a space after -R and
7465     # others require no space.  Words are not sufficient . . . .
7466     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
7467 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
7468     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7469     ac_xsave_c_werror_flag=$ac_c_werror_flag
7470     ac_c_werror_flag=yes
7471     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7472 /* end confdefs.h.  */
7473
7474 int
7475 main ()
7476 {
7477
7478   ;
7479   return 0;
7480 }
7481 _ACEOF
7482 if ac_fn_c_try_link "$LINENO"; then :
7483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7484 $as_echo "no" >&6; }
7485        X_LIBS="$X_LIBS -R$x_libraries"
7486 else
7487   LIBS="$ac_xsave_LIBS -R $x_libraries"
7488        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7489 /* end confdefs.h.  */
7490
7491 int
7492 main ()
7493 {
7494
7495   ;
7496   return 0;
7497 }
7498 _ACEOF
7499 if ac_fn_c_try_link "$LINENO"; then :
7500   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7501 $as_echo "yes" >&6; }
7502           X_LIBS="$X_LIBS -R $x_libraries"
7503 else
7504   { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
7505 $as_echo "neither works" >&6; }
7506 fi
7507 rm -f core conftest.err conftest.$ac_objext \
7508     conftest$ac_exeext conftest.$ac_ext
7509 fi
7510 rm -f core conftest.err conftest.$ac_objext \
7511     conftest$ac_exeext conftest.$ac_ext
7512     ac_c_werror_flag=$ac_xsave_c_werror_flag
7513     LIBS=$ac_xsave_LIBS
7514   fi
7515
7516   # Check for system-dependent libraries X programs must link with.
7517   # Do this before checking for the system-independent R6 libraries
7518   # (-lICE), since we may need -lsocket or whatever for X linking.
7519
7520   if test "$ISC" = yes; then
7521     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7522   else
7523     # Martyn Johnson says this is needed for Ultrix, if the X
7524     # libraries were built with DECnet support.  And Karl Berry says
7525     # the Alpha needs dnet_stub (dnet does not exist).
7526     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
7527     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7528 /* end confdefs.h.  */
7529
7530 /* Override any GCC internal prototype to avoid an error.
7531    Use char because int might match the return type of a GCC
7532    builtin and then its argument prototype would still apply.  */
7533 #ifdef __cplusplus
7534 extern "C"
7535 #endif
7536 char XOpenDisplay ();
7537 int
7538 main ()
7539 {
7540 return XOpenDisplay ();
7541   ;
7542   return 0;
7543 }
7544 _ACEOF
7545 if ac_fn_c_try_link "$LINENO"; then :
7546
7547 else
7548   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
7549 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
7550 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
7551   $as_echo_n "(cached) " >&6
7552 else
7553   ac_check_lib_save_LIBS=$LIBS
7554 LIBS="-ldnet  $LIBS"
7555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7556 /* end confdefs.h.  */
7557
7558 /* Override any GCC internal prototype to avoid an error.
7559    Use char because int might match the return type of a GCC
7560    builtin and then its argument prototype would still apply.  */
7561 #ifdef __cplusplus
7562 extern "C"
7563 #endif
7564 char dnet_ntoa ();
7565 int
7566 main ()
7567 {
7568 return dnet_ntoa ();
7569   ;
7570   return 0;
7571 }
7572 _ACEOF
7573 if ac_fn_c_try_link "$LINENO"; then :
7574   ac_cv_lib_dnet_dnet_ntoa=yes
7575 else
7576   ac_cv_lib_dnet_dnet_ntoa=no
7577 fi
7578 rm -f core conftest.err conftest.$ac_objext \
7579     conftest$ac_exeext conftest.$ac_ext
7580 LIBS=$ac_check_lib_save_LIBS
7581 fi
7582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7583 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
7584 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
7585   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7586 fi
7587
7588     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7589       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
7590 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
7591 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
7592   $as_echo_n "(cached) " >&6
7593 else
7594   ac_check_lib_save_LIBS=$LIBS
7595 LIBS="-ldnet_stub  $LIBS"
7596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7597 /* end confdefs.h.  */
7598
7599 /* Override any GCC internal prototype to avoid an error.
7600    Use char because int might match the return type of a GCC
7601    builtin and then its argument prototype would still apply.  */
7602 #ifdef __cplusplus
7603 extern "C"
7604 #endif
7605 char dnet_ntoa ();
7606 int
7607 main ()
7608 {
7609 return dnet_ntoa ();
7610   ;
7611   return 0;
7612 }
7613 _ACEOF
7614 if ac_fn_c_try_link "$LINENO"; then :
7615   ac_cv_lib_dnet_stub_dnet_ntoa=yes
7616 else
7617   ac_cv_lib_dnet_stub_dnet_ntoa=no
7618 fi
7619 rm -f core conftest.err conftest.$ac_objext \
7620     conftest$ac_exeext conftest.$ac_ext
7621 LIBS=$ac_check_lib_save_LIBS
7622 fi
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
7624 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
7625 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
7626   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7627 fi
7628
7629     fi
7630 fi
7631 rm -f core conftest.err conftest.$ac_objext \
7632     conftest$ac_exeext conftest.$ac_ext
7633     LIBS="$ac_xsave_LIBS"
7634
7635     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7636     # to get the SysV transport functions.
7637     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7638     # needs -lnsl.
7639     # The nsl library prevents programs from opening the X display
7640     # on Irix 5.2, according to T.E. Dickey.
7641     # The functions gethostbyname, getservbyname, and inet_addr are
7642     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
7643     ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
7644 if test "x$ac_cv_func_gethostbyname" = xyes; then :
7645
7646 fi
7647
7648     if test $ac_cv_func_gethostbyname = no; then
7649       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
7650 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
7651 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
7652   $as_echo_n "(cached) " >&6
7653 else
7654   ac_check_lib_save_LIBS=$LIBS
7655 LIBS="-lnsl  $LIBS"
7656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7657 /* end confdefs.h.  */
7658
7659 /* Override any GCC internal prototype to avoid an error.
7660    Use char because int might match the return type of a GCC
7661    builtin and then its argument prototype would still apply.  */
7662 #ifdef __cplusplus
7663 extern "C"
7664 #endif
7665 char gethostbyname ();
7666 int
7667 main ()
7668 {
7669 return gethostbyname ();
7670   ;
7671   return 0;
7672 }
7673 _ACEOF
7674 if ac_fn_c_try_link "$LINENO"; then :
7675   ac_cv_lib_nsl_gethostbyname=yes
7676 else
7677   ac_cv_lib_nsl_gethostbyname=no
7678 fi
7679 rm -f core conftest.err conftest.$ac_objext \
7680     conftest$ac_exeext conftest.$ac_ext
7681 LIBS=$ac_check_lib_save_LIBS
7682 fi
7683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
7684 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
7685 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
7686   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7687 fi
7688
7689       if test $ac_cv_lib_nsl_gethostbyname = no; then
7690         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
7691 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
7692 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
7693   $as_echo_n "(cached) " >&6
7694 else
7695   ac_check_lib_save_LIBS=$LIBS
7696 LIBS="-lbsd  $LIBS"
7697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7698 /* end confdefs.h.  */
7699
7700 /* Override any GCC internal prototype to avoid an error.
7701    Use char because int might match the return type of a GCC
7702    builtin and then its argument prototype would still apply.  */
7703 #ifdef __cplusplus
7704 extern "C"
7705 #endif
7706 char gethostbyname ();
7707 int
7708 main ()
7709 {
7710 return gethostbyname ();
7711   ;
7712   return 0;
7713 }
7714 _ACEOF
7715 if ac_fn_c_try_link "$LINENO"; then :
7716   ac_cv_lib_bsd_gethostbyname=yes
7717 else
7718   ac_cv_lib_bsd_gethostbyname=no
7719 fi
7720 rm -f core conftest.err conftest.$ac_objext \
7721     conftest$ac_exeext conftest.$ac_ext
7722 LIBS=$ac_check_lib_save_LIBS
7723 fi
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
7725 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
7726 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
7727   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
7728 fi
7729
7730       fi
7731     fi
7732
7733     # lieder@skyler.mavd.honeywell.com says without -lsocket,
7734     # socket/setsockopt and other routines are undefined under SCO ODT
7735     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
7736     # on later versions), says Simon Leinen: it contains gethostby*
7737     # variants that don't use the name server (or something).  -lsocket
7738     # must be given before -lnsl if both are needed.  We assume that
7739     # if connect needs -lnsl, so does gethostbyname.
7740     ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
7741 if test "x$ac_cv_func_connect" = xyes; then :
7742
7743 fi
7744
7745     if test $ac_cv_func_connect = no; then
7746       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
7747 $as_echo_n "checking for connect in -lsocket... " >&6; }
7748 if ${ac_cv_lib_socket_connect+:} false; then :
7749   $as_echo_n "(cached) " >&6
7750 else
7751   ac_check_lib_save_LIBS=$LIBS
7752 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7754 /* end confdefs.h.  */
7755
7756 /* Override any GCC internal prototype to avoid an error.
7757    Use char because int might match the return type of a GCC
7758    builtin and then its argument prototype would still apply.  */
7759 #ifdef __cplusplus
7760 extern "C"
7761 #endif
7762 char connect ();
7763 int
7764 main ()
7765 {
7766 return connect ();
7767   ;
7768   return 0;
7769 }
7770 _ACEOF
7771 if ac_fn_c_try_link "$LINENO"; then :
7772   ac_cv_lib_socket_connect=yes
7773 else
7774   ac_cv_lib_socket_connect=no
7775 fi
7776 rm -f core conftest.err conftest.$ac_objext \
7777     conftest$ac_exeext conftest.$ac_ext
7778 LIBS=$ac_check_lib_save_LIBS
7779 fi
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
7781 $as_echo "$ac_cv_lib_socket_connect" >&6; }
7782 if test "x$ac_cv_lib_socket_connect" = xyes; then :
7783   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7784 fi
7785
7786     fi
7787
7788     # Guillermo Gomez says -lposix is necessary on A/UX.
7789     ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
7790 if test "x$ac_cv_func_remove" = xyes; then :
7791
7792 fi
7793
7794     if test $ac_cv_func_remove = no; then
7795       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
7796 $as_echo_n "checking for remove in -lposix... " >&6; }
7797 if ${ac_cv_lib_posix_remove+:} false; then :
7798   $as_echo_n "(cached) " >&6
7799 else
7800   ac_check_lib_save_LIBS=$LIBS
7801 LIBS="-lposix  $LIBS"
7802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7803 /* end confdefs.h.  */
7804
7805 /* Override any GCC internal prototype to avoid an error.
7806    Use char because int might match the return type of a GCC
7807    builtin and then its argument prototype would still apply.  */
7808 #ifdef __cplusplus
7809 extern "C"
7810 #endif
7811 char remove ();
7812 int
7813 main ()
7814 {
7815 return remove ();
7816   ;
7817   return 0;
7818 }
7819 _ACEOF
7820 if ac_fn_c_try_link "$LINENO"; then :
7821   ac_cv_lib_posix_remove=yes
7822 else
7823   ac_cv_lib_posix_remove=no
7824 fi
7825 rm -f core conftest.err conftest.$ac_objext \
7826     conftest$ac_exeext conftest.$ac_ext
7827 LIBS=$ac_check_lib_save_LIBS
7828 fi
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
7830 $as_echo "$ac_cv_lib_posix_remove" >&6; }
7831 if test "x$ac_cv_lib_posix_remove" = xyes; then :
7832   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7833 fi
7834
7835     fi
7836
7837     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7838     ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
7839 if test "x$ac_cv_func_shmat" = xyes; then :
7840
7841 fi
7842
7843     if test $ac_cv_func_shmat = no; then
7844       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
7845 $as_echo_n "checking for shmat in -lipc... " >&6; }
7846 if ${ac_cv_lib_ipc_shmat+:} false; then :
7847   $as_echo_n "(cached) " >&6
7848 else
7849   ac_check_lib_save_LIBS=$LIBS
7850 LIBS="-lipc  $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 shmat ();
7861 int
7862 main ()
7863 {
7864 return shmat ();
7865   ;
7866   return 0;
7867 }
7868 _ACEOF
7869 if ac_fn_c_try_link "$LINENO"; then :
7870   ac_cv_lib_ipc_shmat=yes
7871 else
7872   ac_cv_lib_ipc_shmat=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_ipc_shmat" >&5
7879 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
7880 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
7881   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7882 fi
7883
7884     fi
7885   fi
7886
7887   # Check for libraries that X11R6 Xt/Xaw programs need.
7888   ac_save_LDFLAGS=$LDFLAGS
7889   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7890   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7891   # check for ICE first), but we must link in the order -lSM -lICE or
7892   # we get undefined symbols.  So assume we have SM if we have ICE.
7893   # These have to be linked with before -lX11, unlike the other
7894   # libraries we check for below, so use a different variable.
7895   # John Interrante, Karl Berry
7896   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
7897 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
7898 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
7899   $as_echo_n "(cached) " >&6
7900 else
7901   ac_check_lib_save_LIBS=$LIBS
7902 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7904 /* end confdefs.h.  */
7905
7906 /* Override any GCC internal prototype to avoid an error.
7907    Use char because int might match the return type of a GCC
7908    builtin and then its argument prototype would still apply.  */
7909 #ifdef __cplusplus
7910 extern "C"
7911 #endif
7912 char IceConnectionNumber ();
7913 int
7914 main ()
7915 {
7916 return IceConnectionNumber ();
7917   ;
7918   return 0;
7919 }
7920 _ACEOF
7921 if ac_fn_c_try_link "$LINENO"; then :
7922   ac_cv_lib_ICE_IceConnectionNumber=yes
7923 else
7924   ac_cv_lib_ICE_IceConnectionNumber=no
7925 fi
7926 rm -f core conftest.err conftest.$ac_objext \
7927     conftest$ac_exeext conftest.$ac_ext
7928 LIBS=$ac_check_lib_save_LIBS
7929 fi
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7931 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
7932 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
7933   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7934 fi
7935
7936   LDFLAGS=$ac_save_LDFLAGS
7937
7938 fi
7939
7940
7941 if test "$have_x" = "yes"
7942 then
7943     XLIB="-lX11"
7944     ac_save_CPPFLAGS="$CPPFLAGS"
7945     CPPFLAGS="$CPPFLAGS $X_CFLAGS"
7946
7947     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lX11" >&5
7948 $as_echo_n "checking for -lX11... " >&6; }
7949 if ${ac_cv_lib_soname_X11+:} false; then :
7950   $as_echo_n "(cached) " >&6
7951 else
7952   ac_check_soname_save_LIBS=$LIBS
7953 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
7954   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7955 /* end confdefs.h.  */
7956
7957 /* Override any GCC internal prototype to avoid an error.
7958    Use char because int might match the return type of a GCC
7959    builtin and then its argument prototype would still apply.  */
7960 #ifdef __cplusplus
7961 extern "C"
7962 #endif
7963 char XCreateWindow ();
7964 int
7965 main ()
7966 {
7967 return XCreateWindow ();
7968   ;
7969   return 0;
7970 }
7971 _ACEOF
7972 if ac_fn_c_try_link "$LINENO"; then :
7973   case "$LIBEXT" in
7974     dll) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest.exe | grep "X11" | sed -e "s/dll.*/dll/"';2,$d'` ;;
7975     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'` ;;
7976     *) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep "libX11\\.$LIBEXT" | sed -e "s/^.*\(libX11\.$LIBEXT[^     ]*\).*$/\1/"';2,$d'` ;;
7977   esac
7978 fi
7979 rm -f core conftest.err conftest.$ac_objext \
7980     conftest$ac_exeext conftest.$ac_ext
7981   LIBS=$ac_check_soname_save_LIBS
7982 fi
7983 if test "x$ac_cv_lib_soname_X11" = "x"; then :
7984   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7985 $as_echo "not found" >&6; }
7986
7987 else
7988   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_X11" >&5
7989 $as_echo "$ac_cv_lib_soname_X11" >&6; }
7990
7991 cat >>confdefs.h <<_ACEOF
7992 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
7993 _ACEOF
7994
7995
7996 fi
7997     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXext" >&5
7998 $as_echo_n "checking for -lXext... " >&6; }
7999 if ${ac_cv_lib_soname_Xext+:} false; then :
8000   $as_echo_n "(cached) " >&6
8001 else
8002   ac_check_soname_save_LIBS=$LIBS
8003 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
8004   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8005 /* end confdefs.h.  */
8006
8007 /* Override any GCC internal prototype to avoid an error.
8008    Use char because int might match the return type of a GCC
8009    builtin and then its argument prototype would still apply.  */
8010 #ifdef __cplusplus
8011 extern "C"
8012 #endif
8013 char XextCreateExtension ();
8014 int
8015 main ()
8016 {
8017 return XextCreateExtension ();
8018   ;
8019   return 0;
8020 }
8021 _ACEOF
8022 if ac_fn_c_try_link "$LINENO"; then :
8023   case "$LIBEXT" in
8024     dll) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest.exe | grep "Xext" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8025     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'` ;;
8026     *) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXext\\.$LIBEXT" | sed -e "s/^.*\(libXext\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
8027   esac
8028 fi
8029 rm -f core conftest.err conftest.$ac_objext \
8030     conftest$ac_exeext conftest.$ac_ext
8031   LIBS=$ac_check_soname_save_LIBS
8032 fi
8033 if test "x$ac_cv_lib_soname_Xext" = "x"; then :
8034   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8035 $as_echo "not found" >&6; }
8036
8037 else
8038   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xext" >&5
8039 $as_echo "$ac_cv_lib_soname_Xext" >&6; }
8040
8041 cat >>confdefs.h <<_ACEOF
8042 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
8043 _ACEOF
8044
8045        XLIB="-lXext $XLIB"
8046 fi
8047
8048         for ac_header in X11/Xlib.h \
8049                       X11/XKBlib.h \
8050                       X11/Xutil.h \
8051                       X11/Xcursor/Xcursor.h \
8052                       X11/extensions/shape.h \
8053                       X11/extensions/XInput.h \
8054                       X11/extensions/XInput2.h \
8055                       X11/extensions/XShm.h \
8056                       X11/extensions/Xcomposite.h \
8057                       X11/extensions/Xinerama.h \
8058                       X11/extensions/Xrandr.h \
8059                       X11/extensions/Xrender.h \
8060                       X11/extensions/xf86vmode.h \
8061                       X11/extensions/xf86vmproto.h
8062 do :
8063   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8064 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_X11_XLIB_H
8065 # include <X11/Xlib.h>
8066 #endif
8067 #ifdef HAVE_X11_XUTIL_H
8068 # include <X11/Xutil.h>
8069 #endif
8070 "
8071 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8072   cat >>confdefs.h <<_ACEOF
8073 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8074 _ACEOF
8075
8076 fi
8077
8078 done
8079
8080
8081                 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
8082         then
8083               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbQueryExtension in -lX11" >&5
8084 $as_echo_n "checking for XkbQueryExtension in -lX11... " >&6; }
8085 if ${ac_cv_lib_X11_XkbQueryExtension+:} false; then :
8086   $as_echo_n "(cached) " >&6
8087 else
8088   ac_check_lib_save_LIBS=$LIBS
8089 LIBS="-lX11 $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8091 /* end confdefs.h.  */
8092
8093 /* Override any GCC internal prototype to avoid an error.
8094    Use char because int might match the return type of a GCC
8095    builtin and then its argument prototype would still apply.  */
8096 #ifdef __cplusplus
8097 extern "C"
8098 #endif
8099 char XkbQueryExtension ();
8100 int
8101 main ()
8102 {
8103 return XkbQueryExtension ();
8104   ;
8105   return 0;
8106 }
8107 _ACEOF
8108 if ac_fn_c_try_link "$LINENO"; then :
8109   ac_cv_lib_X11_XkbQueryExtension=yes
8110 else
8111   ac_cv_lib_X11_XkbQueryExtension=no
8112 fi
8113 rm -f core conftest.err conftest.$ac_objext \
8114     conftest$ac_exeext conftest.$ac_ext
8115 LIBS=$ac_check_lib_save_LIBS
8116 fi
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
8118 $as_echo "$ac_cv_lib_X11_XkbQueryExtension" >&6; }
8119 if test "x$ac_cv_lib_X11_XkbQueryExtension" = xyes; then :
8120
8121 $as_echo "#define HAVE_XKB 1" >>confdefs.h
8122
8123 fi
8124
8125         fi
8126
8127                 if test "$ac_cv_header_X11_Xcursor_Xcursor_h" = "yes"
8128         then
8129             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcursor" >&5
8130 $as_echo_n "checking for -lXcursor... " >&6; }
8131 if ${ac_cv_lib_soname_Xcursor+:} false; then :
8132   $as_echo_n "(cached) " >&6
8133 else
8134   ac_check_soname_save_LIBS=$LIBS
8135 LIBS="-lXcursor $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8136   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8137 /* end confdefs.h.  */
8138
8139 /* Override any GCC internal prototype to avoid an error.
8140    Use char because int might match the return type of a GCC
8141    builtin and then its argument prototype would still apply.  */
8142 #ifdef __cplusplus
8143 extern "C"
8144 #endif
8145 char XcursorImageLoadCursor ();
8146 int
8147 main ()
8148 {
8149 return XcursorImageLoadCursor ();
8150   ;
8151   return 0;
8152 }
8153 _ACEOF
8154 if ac_fn_c_try_link "$LINENO"; then :
8155   case "$LIBEXT" in
8156     dll) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest.exe | grep "Xcursor" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8157     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'` ;;
8158     *) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXcursor\\.$LIBEXT" | sed -e "s/^.*\(libXcursor\.$LIBEXT[^         ]*\).*$/\1/"';2,$d'` ;;
8159   esac
8160 fi
8161 rm -f core conftest.err conftest.$ac_objext \
8162     conftest$ac_exeext conftest.$ac_ext
8163   LIBS=$ac_check_soname_save_LIBS
8164 fi
8165 if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
8166   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8167 $as_echo "not found" >&6; }
8168
8169 else
8170   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcursor" >&5
8171 $as_echo "$ac_cv_lib_soname_Xcursor" >&6; }
8172
8173 cat >>confdefs.h <<_ACEOF
8174 #define SONAME_LIBXCURSOR "$ac_cv_lib_soname_Xcursor"
8175 _ACEOF
8176
8177
8178 fi
8179         fi
8180         if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
8181   case "x$with_xcursor" in
8182   x)   as_fn_append wine_notices "|libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported." ;;
8183   xno) ;;
8184   *)   as_fn_error $? "libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported.
8185 This is an error since --with-xcursor was requested." "$LINENO" 5 ;;
8186 esac
8187 fi
8188
8189                 if test "$ac_cv_header_X11_extensions_XInput_h" = "yes"
8190         then
8191             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXi" >&5
8192 $as_echo_n "checking for -lXi... " >&6; }
8193 if ${ac_cv_lib_soname_Xi+:} false; then :
8194   $as_echo_n "(cached) " >&6
8195 else
8196   ac_check_soname_save_LIBS=$LIBS
8197 LIBS="-lXi $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8198   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8199 /* end confdefs.h.  */
8200
8201 /* Override any GCC internal prototype to avoid an error.
8202    Use char because int might match the return type of a GCC
8203    builtin and then its argument prototype would still apply.  */
8204 #ifdef __cplusplus
8205 extern "C"
8206 #endif
8207 char XOpenDevice ();
8208 int
8209 main ()
8210 {
8211 return XOpenDevice ();
8212   ;
8213   return 0;
8214 }
8215 _ACEOF
8216 if ac_fn_c_try_link "$LINENO"; then :
8217   case "$LIBEXT" in
8218     dll) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest.exe | grep "Xi" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8219     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'` ;;
8220     *) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXi\\.$LIBEXT" | sed -e "s/^.*\(libXi\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'` ;;
8221   esac
8222 fi
8223 rm -f core conftest.err conftest.$ac_objext \
8224     conftest$ac_exeext conftest.$ac_ext
8225   LIBS=$ac_check_soname_save_LIBS
8226 fi
8227 if test "x$ac_cv_lib_soname_Xi" = "x"; then :
8228   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8229 $as_echo "not found" >&6; }
8230
8231 else
8232   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xi" >&5
8233 $as_echo "$ac_cv_lib_soname_Xi" >&6; }
8234
8235 cat >>confdefs.h <<_ACEOF
8236 #define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
8237 _ACEOF
8238
8239
8240 fi
8241         fi
8242         if test "x$ac_cv_lib_soname_Xi" = "x"; then :
8243   case "x$with_xinput" in
8244   x)   as_fn_append wine_notices "|libxi ${notice_platform}development files not found, the Xinput extension won't be supported." ;;
8245   xno) ;;
8246   *)   as_fn_error $? "libxi ${notice_platform}development files not found, the Xinput extension won't be supported.
8247 This is an error since --with-xinput was requested." "$LINENO" 5 ;;
8248 esac
8249 fi
8250
8251                 if test "x$ac_cv_lib_soname_Xi" != x
8252         then
8253             if test "$ac_cv_header_X11_extensions_XInput2_h" != "yes"; then :
8254   case "x$with_xinput2" in
8255   x)   as_fn_append wine_notices "|XInput2 headers not found, the XInput 2 extension won't be supported." ;;
8256   xno) ;;
8257   *)   as_fn_error $? "XInput2 headers not found, the XInput 2 extension won't be supported.
8258 This is an error since --with-xinput2 was requested." "$LINENO" 5 ;;
8259 esac
8260 fi
8261         fi
8262
8263                 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
8264         then
8265               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
8266 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
8267 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then :
8268   $as_echo_n "(cached) " >&6
8269 else
8270   ac_check_lib_save_LIBS=$LIBS
8271 LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8273 /* end confdefs.h.  */
8274
8275 /* Override any GCC internal prototype to avoid an error.
8276    Use char because int might match the return type of a GCC
8277    builtin and then its argument prototype would still apply.  */
8278 #ifdef __cplusplus
8279 extern "C"
8280 #endif
8281 char XShmQueryExtension ();
8282 int
8283 main ()
8284 {
8285 return XShmQueryExtension ();
8286   ;
8287   return 0;
8288 }
8289 _ACEOF
8290 if ac_fn_c_try_link "$LINENO"; then :
8291   ac_cv_lib_Xext_XShmQueryExtension=yes
8292 else
8293   ac_cv_lib_Xext_XShmQueryExtension=no
8294 fi
8295 rm -f core conftest.err conftest.$ac_objext \
8296     conftest$ac_exeext conftest.$ac_ext
8297 LIBS=$ac_check_lib_save_LIBS
8298 fi
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
8300 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
8301 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then :
8302
8303 $as_echo "#define HAVE_LIBXXSHM 1" >>confdefs.h
8304
8305 fi
8306
8307         fi
8308         if test "$ac_cv_lib_Xext_XShmQueryExtension" != "yes"; then :
8309   case "x$with_xshm" in
8310   x)   as_fn_append wine_notices "|XShm ${notice_platform}development files not found, X Shared Memory won't be supported." ;;
8311   xno) ;;
8312   *)   as_fn_error $? "XShm ${notice_platform}development files not found, X Shared Memory won't be supported.
8313 This is an error since --with-xshm was requested." "$LINENO" 5 ;;
8314 esac
8315 fi
8316
8317                 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
8318         then
8319               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
8320 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
8321 if ${ac_cv_lib_Xext_XShapeQueryExtension+:} false; then :
8322   $as_echo_n "(cached) " >&6
8323 else
8324   ac_check_lib_save_LIBS=$LIBS
8325 LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8327 /* end confdefs.h.  */
8328
8329 /* Override any GCC internal prototype to avoid an error.
8330    Use char because int might match the return type of a GCC
8331    builtin and then its argument prototype would still apply.  */
8332 #ifdef __cplusplus
8333 extern "C"
8334 #endif
8335 char XShapeQueryExtension ();
8336 int
8337 main ()
8338 {
8339 return XShapeQueryExtension ();
8340   ;
8341   return 0;
8342 }
8343 _ACEOF
8344 if ac_fn_c_try_link "$LINENO"; then :
8345   ac_cv_lib_Xext_XShapeQueryExtension=yes
8346 else
8347   ac_cv_lib_Xext_XShapeQueryExtension=no
8348 fi
8349 rm -f core conftest.err conftest.$ac_objext \
8350     conftest$ac_exeext conftest.$ac_ext
8351 LIBS=$ac_check_lib_save_LIBS
8352 fi
8353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8354 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
8355 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = xyes; then :
8356
8357 $as_echo "#define HAVE_LIBXSHAPE 1" >>confdefs.h
8358
8359 fi
8360
8361         fi
8362         if test "$ac_cv_lib_Xext_XShapeQueryExtension" != "yes"; then :
8363   case "x$with_xshape" in
8364   x)   as_fn_append wine_notices "|XShape ${notice_platform}development files not found, XShape won't be supported." ;;
8365   xno) ;;
8366   *)   as_fn_error $? "XShape ${notice_platform}development files not found, XShape won't be supported.
8367 This is an error since --with-xshape was requested." "$LINENO" 5 ;;
8368 esac
8369 fi
8370
8371                 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes" -o "$ac_cv_header_X11_extensions_xf86vmproto_h" = "yes"
8372         then
8373             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXxf86vm" >&5
8374 $as_echo_n "checking for -lXxf86vm... " >&6; }
8375 if ${ac_cv_lib_soname_Xxf86vm+:} false; then :
8376   $as_echo_n "(cached) " >&6
8377 else
8378   ac_check_soname_save_LIBS=$LIBS
8379 LIBS="-lXxf86vm $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8380   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8381 /* end confdefs.h.  */
8382
8383 /* Override any GCC internal prototype to avoid an error.
8384    Use char because int might match the return type of a GCC
8385    builtin and then its argument prototype would still apply.  */
8386 #ifdef __cplusplus
8387 extern "C"
8388 #endif
8389 char XF86VidModeQueryExtension ();
8390 int
8391 main ()
8392 {
8393 return XF86VidModeQueryExtension ();
8394   ;
8395   return 0;
8396 }
8397 _ACEOF
8398 if ac_fn_c_try_link "$LINENO"; then :
8399   case "$LIBEXT" in
8400     dll) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest.exe | grep "Xxf86vm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8401     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'` ;;
8402     *) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXxf86vm\\.$LIBEXT" | sed -e "s/^.*\(libXxf86vm\.$LIBEXT[^         ]*\).*$/\1/"';2,$d'` ;;
8403   esac
8404 fi
8405 rm -f core conftest.err conftest.$ac_objext \
8406     conftest$ac_exeext conftest.$ac_ext
8407   LIBS=$ac_check_soname_save_LIBS
8408 fi
8409 if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
8410   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8411 $as_echo "not found" >&6; }
8412
8413 else
8414   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xxf86vm" >&5
8415 $as_echo "$ac_cv_lib_soname_Xxf86vm" >&6; }
8416
8417 cat >>confdefs.h <<_ACEOF
8418 #define SONAME_LIBXXF86VM "$ac_cv_lib_soname_Xxf86vm"
8419 _ACEOF
8420
8421
8422 fi
8423         fi
8424         if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
8425   case "x$with_xxf86vm" in
8426   x)   as_fn_append wine_notices "|libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported." ;;
8427   xno) ;;
8428   *)   as_fn_error $? "libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported.
8429 This is an error since --with-xxf86vm was requested." "$LINENO" 5 ;;
8430 esac
8431 fi
8432
8433                 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"
8434         then
8435             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrender" >&5
8436 $as_echo_n "checking for -lXrender... " >&6; }
8437 if ${ac_cv_lib_soname_Xrender+:} false; then :
8438   $as_echo_n "(cached) " >&6
8439 else
8440   ac_check_soname_save_LIBS=$LIBS
8441 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8442   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8443 /* end confdefs.h.  */
8444
8445 /* Override any GCC internal prototype to avoid an error.
8446    Use char because int might match the return type of a GCC
8447    builtin and then its argument prototype would still apply.  */
8448 #ifdef __cplusplus
8449 extern "C"
8450 #endif
8451 char XRenderQueryExtension ();
8452 int
8453 main ()
8454 {
8455 return XRenderQueryExtension ();
8456   ;
8457   return 0;
8458 }
8459 _ACEOF
8460 if ac_fn_c_try_link "$LINENO"; then :
8461   case "$LIBEXT" in
8462     dll) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest.exe | grep "Xrender" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8463     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'` ;;
8464     *) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXrender\\.$LIBEXT" | sed -e "s/^.*\(libXrender\.$LIBEXT[^         ]*\).*$/\1/"';2,$d'` ;;
8465   esac
8466 fi
8467 rm -f core conftest.err conftest.$ac_objext \
8468     conftest$ac_exeext conftest.$ac_ext
8469   LIBS=$ac_check_soname_save_LIBS
8470 fi
8471 if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
8472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8473 $as_echo "not found" >&6; }
8474
8475 else
8476   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrender" >&5
8477 $as_echo "$ac_cv_lib_soname_Xrender" >&6; }
8478
8479 cat >>confdefs.h <<_ACEOF
8480 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
8481 _ACEOF
8482
8483        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderSetPictureTransform in -lXrender" >&5
8484 $as_echo_n "checking for XRenderSetPictureTransform in -lXrender... " >&6; }
8485 if ${ac_cv_lib_Xrender_XRenderSetPictureTransform+:} false; then :
8486   $as_echo_n "(cached) " >&6
8487 else
8488   ac_check_lib_save_LIBS=$LIBS
8489 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8491 /* end confdefs.h.  */
8492
8493 /* Override any GCC internal prototype to avoid an error.
8494    Use char because int might match the return type of a GCC
8495    builtin and then its argument prototype would still apply.  */
8496 #ifdef __cplusplus
8497 extern "C"
8498 #endif
8499 char XRenderSetPictureTransform ();
8500 int
8501 main ()
8502 {
8503 return XRenderSetPictureTransform ();
8504   ;
8505   return 0;
8506 }
8507 _ACEOF
8508 if ac_fn_c_try_link "$LINENO"; then :
8509   ac_cv_lib_Xrender_XRenderSetPictureTransform=yes
8510 else
8511   ac_cv_lib_Xrender_XRenderSetPictureTransform=no
8512 fi
8513 rm -f core conftest.err conftest.$ac_objext \
8514     conftest$ac_exeext conftest.$ac_ext
8515 LIBS=$ac_check_lib_save_LIBS
8516 fi
8517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5
8518 $as_echo "$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6; }
8519 if test "x$ac_cv_lib_Xrender_XRenderSetPictureTransform" = xyes; then :
8520
8521 $as_echo "#define HAVE_XRENDERSETPICTURETRANSFORM 1" >>confdefs.h
8522
8523 fi
8524
8525 fi
8526
8527         fi
8528         if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
8529   case "x$with_xrender" in
8530   x)   as_fn_append wine_warnings "|libxrender ${notice_platform}development files not found, XRender won't be supported." ;;
8531   xno) ;;
8532   *)   as_fn_error $? "libxrender ${notice_platform}development files not found, XRender won't be supported.
8533 This is an error since --with-xrender was requested." "$LINENO" 5 ;;
8534 esac
8535 fi
8536
8537                 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes" -a "x$ac_cv_lib_soname_Xrender" != "x"
8538         then
8539                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8540 /* end confdefs.h.  */
8541 #include <X11/Xlib.h>
8542 #include <X11/extensions/Xrandr.h>
8543 int
8544 main ()
8545 {
8546 static typeof(XRRSetScreenConfigAndRate) * func;
8547   ;
8548   return 0;
8549 }
8550 _ACEOF
8551 if ac_fn_c_try_compile "$LINENO"; then :
8552   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrandr" >&5
8553 $as_echo_n "checking for -lXrandr... " >&6; }
8554 if ${ac_cv_lib_soname_Xrandr+:} false; then :
8555   $as_echo_n "(cached) " >&6
8556 else
8557   ac_check_soname_save_LIBS=$LIBS
8558 LIBS="-lXrandr $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8559   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8560 /* end confdefs.h.  */
8561
8562 /* Override any GCC internal prototype to avoid an error.
8563    Use char because int might match the return type of a GCC
8564    builtin and then its argument prototype would still apply.  */
8565 #ifdef __cplusplus
8566 extern "C"
8567 #endif
8568 char XRRQueryExtension ();
8569 int
8570 main ()
8571 {
8572 return XRRQueryExtension ();
8573   ;
8574   return 0;
8575 }
8576 _ACEOF
8577 if ac_fn_c_try_link "$LINENO"; then :
8578   case "$LIBEXT" in
8579     dll) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest.exe | grep "Xrandr" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8580     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'` ;;
8581     *) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXrandr\\.$LIBEXT" | sed -e "s/^.*\(libXrandr\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'` ;;
8582   esac
8583 fi
8584 rm -f core conftest.err conftest.$ac_objext \
8585     conftest$ac_exeext conftest.$ac_ext
8586   LIBS=$ac_check_soname_save_LIBS
8587 fi
8588 if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
8589   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8590 $as_echo "not found" >&6; }
8591
8592 else
8593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrandr" >&5
8594 $as_echo "$ac_cv_lib_soname_Xrandr" >&6; }
8595
8596 cat >>confdefs.h <<_ACEOF
8597 #define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
8598 _ACEOF
8599
8600
8601 fi
8602 fi
8603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8604         fi
8605         if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
8606   case "x$with_xrandr" in
8607   x)   as_fn_append wine_notices "|libxrandr ${notice_platform}development files not found, XRandr won't be supported." ;;
8608   xno) ;;
8609   *)   as_fn_error $? "libxrandr ${notice_platform}development files not found, XRandr won't be supported.
8610 This is an error since --with-xrandr was requested." "$LINENO" 5 ;;
8611 esac
8612 fi
8613
8614                 if test "$ac_cv_header_X11_extensions_Xinerama_h" = "yes"
8615         then
8616                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8617 /* end confdefs.h.  */
8618 #include <X11/Xlib.h>
8619 #include <X11/extensions/Xinerama.h>
8620 int
8621 main ()
8622 {
8623 static typeof(XineramaQueryScreens) * func;
8624   ;
8625   return 0;
8626 }
8627 _ACEOF
8628 if ac_fn_c_try_compile "$LINENO"; then :
8629   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXinerama" >&5
8630 $as_echo_n "checking for -lXinerama... " >&6; }
8631 if ${ac_cv_lib_soname_Xinerama+:} false; then :
8632   $as_echo_n "(cached) " >&6
8633 else
8634   ac_check_soname_save_LIBS=$LIBS
8635 LIBS="-lXinerama $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8636   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8637 /* end confdefs.h.  */
8638
8639 /* Override any GCC internal prototype to avoid an error.
8640    Use char because int might match the return type of a GCC
8641    builtin and then its argument prototype would still apply.  */
8642 #ifdef __cplusplus
8643 extern "C"
8644 #endif
8645 char XineramaQueryScreens ();
8646 int
8647 main ()
8648 {
8649 return XineramaQueryScreens ();
8650   ;
8651   return 0;
8652 }
8653 _ACEOF
8654 if ac_fn_c_try_link "$LINENO"; then :
8655   case "$LIBEXT" in
8656     dll) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest.exe | grep "Xinerama" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8657     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'` ;;
8658     *) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXinerama\\.$LIBEXT" | sed -e "s/^.*\(libXinerama\.$LIBEXT[^      ]*\).*$/\1/"';2,$d'` ;;
8659   esac
8660 fi
8661 rm -f core conftest.err conftest.$ac_objext \
8662     conftest$ac_exeext conftest.$ac_ext
8663   LIBS=$ac_check_soname_save_LIBS
8664 fi
8665 if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
8666   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8667 $as_echo "not found" >&6; }
8668
8669 else
8670   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xinerama" >&5
8671 $as_echo "$ac_cv_lib_soname_Xinerama" >&6; }
8672
8673 cat >>confdefs.h <<_ACEOF
8674 #define SONAME_LIBXINERAMA "$ac_cv_lib_soname_Xinerama"
8675 _ACEOF
8676
8677
8678 fi
8679 fi
8680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8681         fi
8682         if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
8683   case "x$with_xinerama" in
8684   x)   as_fn_append wine_notices "|libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported." ;;
8685   xno) ;;
8686   *)   as_fn_error $? "libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported.
8687 This is an error since --with-xinerama was requested." "$LINENO" 5 ;;
8688 esac
8689 fi
8690
8691                 if test "$ac_cv_header_X11_extensions_Xcomposite_h" = "yes"
8692         then
8693             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcomposite" >&5
8694 $as_echo_n "checking for -lXcomposite... " >&6; }
8695 if ${ac_cv_lib_soname_Xcomposite+:} false; then :
8696   $as_echo_n "(cached) " >&6
8697 else
8698   ac_check_soname_save_LIBS=$LIBS
8699 LIBS="-lXcomposite $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8700   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8701 /* end confdefs.h.  */
8702
8703 /* Override any GCC internal prototype to avoid an error.
8704    Use char because int might match the return type of a GCC
8705    builtin and then its argument prototype would still apply.  */
8706 #ifdef __cplusplus
8707 extern "C"
8708 #endif
8709 char XCompositeRedirectWindow ();
8710 int
8711 main ()
8712 {
8713 return XCompositeRedirectWindow ();
8714   ;
8715   return 0;
8716 }
8717 _ACEOF
8718 if ac_fn_c_try_link "$LINENO"; then :
8719   case "$LIBEXT" in
8720     dll) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest.exe | grep "Xcomposite" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8721     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'` ;;
8722     *) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXcomposite\\.$LIBEXT" | sed -e "s/^.*\(libXcomposite\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'` ;;
8723   esac
8724 fi
8725 rm -f core conftest.err conftest.$ac_objext \
8726     conftest$ac_exeext conftest.$ac_ext
8727   LIBS=$ac_check_soname_save_LIBS
8728 fi
8729 if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
8730   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8731 $as_echo "not found" >&6; }
8732
8733 else
8734   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcomposite" >&5
8735 $as_echo "$ac_cv_lib_soname_Xcomposite" >&6; }
8736
8737 cat >>confdefs.h <<_ACEOF
8738 #define SONAME_LIBXCOMPOSITE "$ac_cv_lib_soname_Xcomposite"
8739 _ACEOF
8740
8741
8742 fi
8743         fi
8744         if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
8745   case "x$with_xcomposite" in
8746   x)   as_fn_append wine_notices "|libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported." ;;
8747   xno) ;;
8748   *)   as_fn_error $? "libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported.
8749 This is an error since --with-xcomposite was requested." "$LINENO" 5 ;;
8750 esac
8751 fi
8752
8753                 ac_fn_c_check_member "$LINENO" "XICCallback" "callback" "ac_cv_member_XICCallback_callback" "#ifdef HAVE_X11_XLIB_H
8754 #include <X11/Xlib.h>
8755 #endif
8756 "
8757 if test "x$ac_cv_member_XICCallback_callback" = xyes; then :
8758
8759 cat >>confdefs.h <<_ACEOF
8760 #define HAVE_XICCALLBACK_CALLBACK 1
8761 _ACEOF
8762
8763
8764 fi
8765 ac_fn_c_check_member "$LINENO" "XEvent" "xcookie" "ac_cv_member_XEvent_xcookie" "#ifdef HAVE_X11_XLIB_H
8766 #include <X11/Xlib.h>
8767 #endif
8768 "
8769 if test "x$ac_cv_member_XEvent_xcookie" = xyes; then :
8770
8771 cat >>confdefs.h <<_ACEOF
8772 #define HAVE_XEVENT_XCOOKIE 1
8773 _ACEOF
8774
8775
8776 fi
8777
8778
8779
8780         opengl_msg=""
8781     if test "x$with_opengl" != "xno"
8782     then
8783         for ac_header in GL/gl.h GL/glx.h GL/glu.h
8784 do :
8785   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8786 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_GL_GLX_H
8787 # include <GL/glx.h>
8788 #endif
8789 "
8790 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8791   cat >>confdefs.h <<_ACEOF
8792 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8793 _ACEOF
8794
8795 fi
8796
8797 done
8798
8799         if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
8800         then
8801                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for up-to-date OpenGL version" >&5
8802 $as_echo_n "checking for up-to-date OpenGL version... " >&6; }
8803 if ${wine_cv_opengl_header_version_OK+:} false; then :
8804   $as_echo_n "(cached) " >&6
8805 else
8806   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8807 /* end confdefs.h.  */
8808 #include <GL/gl.h>
8809 int
8810 main ()
8811 {
8812 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
8813   ;
8814   return 0;
8815 }
8816 _ACEOF
8817 if ac_fn_c_try_compile "$LINENO"; then :
8818   wine_cv_opengl_header_version_OK="yes"
8819 else
8820   wine_cv_opengl_header_version_OK="no"
8821 fi
8822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8823 fi
8824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_opengl_header_version_OK" >&5
8825 $as_echo "$wine_cv_opengl_header_version_OK" >&6; }
8826
8827             if test "$wine_cv_opengl_header_version_OK" = "yes"
8828             then
8829                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
8830 $as_echo_n "checking for -lGL... " >&6; }
8831 if ${ac_cv_lib_soname_GL+:} false; then :
8832   $as_echo_n "(cached) " >&6
8833 else
8834   ac_check_soname_save_LIBS=$LIBS
8835 LIBS="-lGL $X_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
8836   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8837 /* end confdefs.h.  */
8838
8839 /* Override any GCC internal prototype to avoid an error.
8840    Use char because int might match the return type of a GCC
8841    builtin and then its argument prototype would still apply.  */
8842 #ifdef __cplusplus
8843 extern "C"
8844 #endif
8845 char glXCreateContext ();
8846 int
8847 main ()
8848 {
8849 return glXCreateContext ();
8850   ;
8851   return 0;
8852 }
8853 _ACEOF
8854 if ac_fn_c_try_link "$LINENO"; then :
8855   case "$LIBEXT" in
8856     dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8857     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'` ;;
8858     *) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'` ;;
8859   esac
8860 fi
8861 rm -f core conftest.err conftest.$ac_objext \
8862     conftest$ac_exeext conftest.$ac_ext
8863   LIBS=$ac_check_soname_save_LIBS
8864 fi
8865 if test "x$ac_cv_lib_soname_GL" = "x"; then :
8866   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8867 $as_echo "not found" >&6; }
8868        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
8869 $as_echo_n "checking for -lGL... " >&6; }
8870 if ${ac_cv_lib_soname_GL+:} false; then :
8871   $as_echo_n "(cached) " >&6
8872 else
8873   ac_check_soname_save_LIBS=$LIBS
8874 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"
8875   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8876 /* end confdefs.h.  */
8877
8878 /* Override any GCC internal prototype to avoid an error.
8879    Use char because int might match the return type of a GCC
8880    builtin and then its argument prototype would still apply.  */
8881 #ifdef __cplusplus
8882 extern "C"
8883 #endif
8884 char glXCreateContext ();
8885 int
8886 main ()
8887 {
8888 return glXCreateContext ();
8889   ;
8890   return 0;
8891 }
8892 _ACEOF
8893 if ac_fn_c_try_link "$LINENO"; then :
8894   case "$LIBEXT" in
8895     dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8896     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'` ;;
8897     *) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'` ;;
8898   esac
8899 fi
8900 rm -f core conftest.err conftest.$ac_objext \
8901     conftest$ac_exeext conftest.$ac_ext
8902   LIBS=$ac_check_soname_save_LIBS
8903 fi
8904 if test "x$ac_cv_lib_soname_GL" = "x"; then :
8905   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8906 $as_echo "not found" >&6; }
8907        if test -f /usr/X11R6/lib/libGL.a
8908                                     then
8909                                         opengl_msg="/usr/X11R6/lib/libGL.a is present on your system.
8910 This probably prevents linking to OpenGL. Try deleting the file and restarting configure."
8911                                     else
8912                                         opengl_msg="No OpenGL library found on this system."
8913                                     fi
8914 else
8915   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
8916 $as_echo "$ac_cv_lib_soname_GL" >&6; }
8917
8918 cat >>confdefs.h <<_ACEOF
8919 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
8920 _ACEOF
8921
8922        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"
8923
8924 $as_echo "#define HAVE_OPENGL 1" >>confdefs.h
8925
8926 fi
8927 else
8928   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
8929 $as_echo "$ac_cv_lib_soname_GL" >&6; }
8930
8931 cat >>confdefs.h <<_ACEOF
8932 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
8933 _ACEOF
8934
8935        OPENGL_LIBS="-lGL"
8936
8937 $as_echo "#define HAVE_OPENGL 1" >>confdefs.h
8938
8939 fi
8940                  if test "$ac_cv_header_GL_glu_h" = "yes"
8941                  then
8942                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGLU" >&5
8943 $as_echo_n "checking for -lGLU... " >&6; }
8944 if ${ac_cv_lib_soname_GLU+:} false; then :
8945   $as_echo_n "(cached) " >&6
8946 else
8947   ac_check_soname_save_LIBS=$LIBS
8948 LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
8949   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8950 /* end confdefs.h.  */
8951
8952 /* Override any GCC internal prototype to avoid an error.
8953    Use char because int might match the return type of a GCC
8954    builtin and then its argument prototype would still apply.  */
8955 #ifdef __cplusplus
8956 extern "C"
8957 #endif
8958 char gluLookAt ();
8959 int
8960 main ()
8961 {
8962 return gluLookAt ();
8963   ;
8964   return 0;
8965 }
8966 _ACEOF
8967 if ac_fn_c_try_link "$LINENO"; then :
8968   case "$LIBEXT" in
8969     dll) ac_cv_lib_soname_GLU=`$ac_cv_path_LDD conftest.exe | grep "GLU" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8970     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'` ;;
8971     *) ac_cv_lib_soname_GLU=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGLU\\.$LIBEXT" | sed -e "s/^.*\(libGLU\.$LIBEXT[^     ]*\).*$/\1/"';2,$d'` ;;
8972   esac
8973 fi
8974 rm -f core conftest.err conftest.$ac_objext \
8975     conftest$ac_exeext conftest.$ac_ext
8976   LIBS=$ac_check_soname_save_LIBS
8977 fi
8978 if test "x$ac_cv_lib_soname_GLU" = "x"; then :
8979   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8980 $as_echo "not found" >&6; }
8981
8982 else
8983   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GLU" >&5
8984 $as_echo "$ac_cv_lib_soname_GLU" >&6; }
8985
8986 cat >>confdefs.h <<_ACEOF
8987 #define SONAME_LIBGLU "$ac_cv_lib_soname_GLU"
8988 _ACEOF
8989
8990
8991 fi
8992                  fi
8993                  if test "x$ac_cv_lib_soname_GLU" = "x"; then :
8994   case "x$with_glu" in
8995   x)   as_fn_append wine_notices "|libGLU ${notice_platform}development files not found, GLU won't be supported." ;;
8996   xno) ;;
8997   *)   as_fn_error $? "libGLU ${notice_platform}development files not found, GLU won't be supported.
8998 This is an error since --with-glu was requested." "$LINENO" 5 ;;
8999 esac
9000 fi
9001              else
9002                  opengl_msg="Old Mesa headers detected. Consider upgrading your Mesa libraries."
9003              fi
9004          else
9005              opengl_msg="OpenGL development headers not found."
9006          fi
9007          test -n "$opengl_msg" && enable_opengl32=${enable_opengl32:-no}
9008          test "x$ac_cv_lib_soname_GLU" = "x" && enable_glu32=${enable_glu32:-no}
9009     else
9010          enable_opengl32=${enable_opengl32:-no}
9011          enable_glu32=${enable_glu32:-no}
9012     fi
9013     if test -n "$opengl_msg"; then :
9014   case "x$with_opengl" in
9015   x)   as_fn_append wine_warnings "|$opengl_msg
9016 OpenGL and Direct3D won't be supported." ;;
9017   xno) ;;
9018   *)   as_fn_error $? "$opengl_msg
9019 OpenGL and Direct3D won't be supported.
9020 This is an error since --with-opengl was requested." "$LINENO" 5 ;;
9021 esac
9022 fi
9023
9024         NASLIBS=""
9025
9026     for ac_header in audio/audiolib.h
9027 do :
9028   ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
9029 if test "x$ac_cv_header_audio_audiolib_h" = xyes; then :
9030   cat >>confdefs.h <<_ACEOF
9031 #define HAVE_AUDIO_AUDIOLIB_H 1
9032 _ACEOF
9033  for ac_header in audio/soundlib.h
9034 do :
9035   ac_fn_c_check_header_compile "$LINENO" "audio/soundlib.h" "ac_cv_header_audio_soundlib_h" "#include <audio/audiolib.h>
9036 "
9037 if test "x$ac_cv_header_audio_soundlib_h" = xyes; then :
9038   cat >>confdefs.h <<_ACEOF
9039 #define HAVE_AUDIO_SOUNDLIB_H 1
9040 _ACEOF
9041
9042 fi
9043
9044 done
9045
9046           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AuCreateFlow in -laudio" >&5
9047 $as_echo_n "checking for AuCreateFlow in -laudio... " >&6; }
9048 if ${ac_cv_lib_audio_AuCreateFlow+:} false; then :
9049   $as_echo_n "(cached) " >&6
9050 else
9051   ac_check_lib_save_LIBS=$LIBS
9052 LIBS="-laudio -lXt $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
9053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9054 /* end confdefs.h.  */
9055
9056 /* Override any GCC internal prototype to avoid an error.
9057    Use char because int might match the return type of a GCC
9058    builtin and then its argument prototype would still apply.  */
9059 #ifdef __cplusplus
9060 extern "C"
9061 #endif
9062 char AuCreateFlow ();
9063 int
9064 main ()
9065 {
9066 return AuCreateFlow ();
9067   ;
9068   return 0;
9069 }
9070 _ACEOF
9071 if ac_fn_c_try_link "$LINENO"; then :
9072   ac_cv_lib_audio_AuCreateFlow=yes
9073 else
9074   ac_cv_lib_audio_AuCreateFlow=no
9075 fi
9076 rm -f core conftest.err conftest.$ac_objext \
9077     conftest$ac_exeext conftest.$ac_ext
9078 LIBS=$ac_check_lib_save_LIBS
9079 fi
9080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuCreateFlow" >&5
9081 $as_echo "$ac_cv_lib_audio_AuCreateFlow" >&6; }
9082 if test "x$ac_cv_lib_audio_AuCreateFlow" = xyes; then :
9083   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XauGetBestAuthByAddr in -lXau" >&5
9084 $as_echo_n "checking for XauGetBestAuthByAddr in -lXau... " >&6; }
9085 if ${ac_cv_lib_Xau_XauGetBestAuthByAddr+:} false; then :
9086   $as_echo_n "(cached) " >&6
9087 else
9088   ac_check_lib_save_LIBS=$LIBS
9089 LIBS="-lXau $X_LIBS $LIBS"
9090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9091 /* end confdefs.h.  */
9092
9093 /* Override any GCC internal prototype to avoid an error.
9094    Use char because int might match the return type of a GCC
9095    builtin and then its argument prototype would still apply.  */
9096 #ifdef __cplusplus
9097 extern "C"
9098 #endif
9099 char XauGetBestAuthByAddr ();
9100 int
9101 main ()
9102 {
9103 return XauGetBestAuthByAddr ();
9104   ;
9105   return 0;
9106 }
9107 _ACEOF
9108 if ac_fn_c_try_link "$LINENO"; then :
9109   ac_cv_lib_Xau_XauGetBestAuthByAddr=yes
9110 else
9111   ac_cv_lib_Xau_XauGetBestAuthByAddr=no
9112 fi
9113 rm -f core conftest.err conftest.$ac_objext \
9114     conftest$ac_exeext conftest.$ac_ext
9115 LIBS=$ac_check_lib_save_LIBS
9116 fi
9117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xau_XauGetBestAuthByAddr" >&5
9118 $as_echo "$ac_cv_lib_Xau_XauGetBestAuthByAddr" >&6; }
9119 if test "x$ac_cv_lib_Xau_XauGetBestAuthByAddr" = xyes; then :
9120   NASLIBS="-lXau -laudio -lXt $X_LIBS $XLIB $X_EXTRA_LIBS"
9121 else
9122   NASLIBS="-laudio -lXt $X_LIBS $XLIB $X_EXTRA_LIBS"
9123 fi
9124
9125
9126 fi
9127
9128 fi
9129
9130 done
9131
9132
9133     CPPFLAGS="$ac_save_CPPFLAGS"
9134 else
9135     XLIB=""
9136     X_CFLAGS=""
9137     X_LIBS=""
9138     enable_winex11_drv=${enable_winex11_drv:-no}
9139     enable_opengl32=${enable_opengl32:-no}
9140     enable_glu32=${enable_glu32:-no}
9141 fi
9142 if test "x$XLIB" = "x"; then :
9143   case "x$with_x" in
9144   xno) ;;
9145   *)   as_fn_error $? "X ${notice_platform}development files not found. Wine will be built
9146 without X support, which probably isn't what you want. You will need
9147 to install ${notice_platform}development packages of Xlib/Xfree86 at the very least.
9148 Use the --without-x option if you really want this." "$LINENO" 5 ;;
9149 esac
9150 fi
9151
9152 if test "$ac_cv_header_CL_cl_h" = "yes"
9153 then
9154     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clGetPlatformInfo in -lOpenCL" >&5
9155 $as_echo_n "checking for clGetPlatformInfo in -lOpenCL... " >&6; }
9156 if ${ac_cv_lib_OpenCL_clGetPlatformInfo+:} false; then :
9157   $as_echo_n "(cached) " >&6
9158 else
9159   ac_check_lib_save_LIBS=$LIBS
9160 LIBS="-lOpenCL  $LIBS"
9161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9162 /* end confdefs.h.  */
9163
9164 /* Override any GCC internal prototype to avoid an error.
9165    Use char because int might match the return type of a GCC
9166    builtin and then its argument prototype would still apply.  */
9167 #ifdef __cplusplus
9168 extern "C"
9169 #endif
9170 char clGetPlatformInfo ();
9171 int
9172 main ()
9173 {
9174 return clGetPlatformInfo ();
9175   ;
9176   return 0;
9177 }
9178 _ACEOF
9179 if ac_fn_c_try_link "$LINENO"; then :
9180   ac_cv_lib_OpenCL_clGetPlatformInfo=yes
9181 else
9182   ac_cv_lib_OpenCL_clGetPlatformInfo=no
9183 fi
9184 rm -f core conftest.err conftest.$ac_objext \
9185     conftest$ac_exeext conftest.$ac_ext
9186 LIBS=$ac_check_lib_save_LIBS
9187 fi
9188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_OpenCL_clGetPlatformInfo" >&5
9189 $as_echo "$ac_cv_lib_OpenCL_clGetPlatformInfo" >&6; }
9190 if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" = xyes; then :
9191   LIBOPENCL="-lOpenCL"
9192
9193 fi
9194
9195 fi
9196 if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes; then :
9197   case "x$with_opencl" in
9198   x)   as_fn_append wine_notices "|OpenCL ${notice_platform}development files not found, OpenCL won't be supported." ;;
9199   xno) ;;
9200   *)   as_fn_error $? "OpenCL ${notice_platform}development files not found, OpenCL won't be supported.
9201 This is an error since --with-opencl was requested." "$LINENO" 5 ;;
9202 esac
9203 fi
9204 test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes && enable_opencl=${enable_opencl:-no}
9205
9206
9207 XML2LIBS=""
9208
9209 XML2INCL=""
9210
9211 XSLTINCL=""
9212
9213 if test "x$with_xml" != "xno"
9214 then
9215     ac_save_CPPFLAGS="$CPPFLAGS"
9216     if test "$PKG_CONFIG" != "false"
9217     then
9218         ac_xml_libs="`$PKG_CONFIG --libs libxml-2.0 2>/dev/null`"
9219         ac_xml_cflags="`$PKG_CONFIG --cflags libxml-2.0 2>/dev/null`"
9220     else
9221         ac_xml_libs="`xml2-config --libs 2>/dev/null`"
9222         ac_xml_cflags="`xml2-config --cflags  2>/dev/null`"
9223     fi
9224     CPPFLAGS="$CPPFLAGS $ac_xml_cflags"
9225     for ac_header in libxml/parser.h libxml/xmlsave.h libxml/SAX2.h
9226 do :
9227   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9228 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9229 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9230   cat >>confdefs.h <<_ACEOF
9231 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9232 _ACEOF
9233
9234 fi
9235
9236 done
9237
9238     if test "$ac_cv_header_libxml_parser_h" = "yes" -a "$ac_cv_header_libxml_xmlsave_h" = "yes" -a "$ac_cv_header_libxml_SAX2_h" = "yes"
9239     then
9240         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseMemory in -lxml2" >&5
9241 $as_echo_n "checking for xmlParseMemory in -lxml2... " >&6; }
9242 if ${ac_cv_lib_xml2_xmlParseMemory+:} false; then :
9243   $as_echo_n "(cached) " >&6
9244 else
9245   ac_check_lib_save_LIBS=$LIBS
9246 LIBS="-lxml2 $ac_xml_libs $LIBS"
9247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9248 /* end confdefs.h.  */
9249
9250 /* Override any GCC internal prototype to avoid an error.
9251    Use char because int might match the return type of a GCC
9252    builtin and then its argument prototype would still apply.  */
9253 #ifdef __cplusplus
9254 extern "C"
9255 #endif
9256 char xmlParseMemory ();
9257 int
9258 main ()
9259 {
9260 return xmlParseMemory ();
9261   ;
9262   return 0;
9263 }
9264 _ACEOF
9265 if ac_fn_c_try_link "$LINENO"; then :
9266   ac_cv_lib_xml2_xmlParseMemory=yes
9267 else
9268   ac_cv_lib_xml2_xmlParseMemory=no
9269 fi
9270 rm -f core conftest.err conftest.$ac_objext \
9271     conftest$ac_exeext conftest.$ac_ext
9272 LIBS=$ac_check_lib_save_LIBS
9273 fi
9274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseMemory" >&5
9275 $as_echo "$ac_cv_lib_xml2_xmlParseMemory" >&6; }
9276 if test "x$ac_cv_lib_xml2_xmlParseMemory" = xyes; then :
9277
9278 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
9279
9280              XML2LIBS="$ac_xml_libs"
9281              XML2INCL="$ac_xml_cflags"
9282 fi
9283
9284         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlReadMemory in -lxml2" >&5
9285 $as_echo_n "checking for xmlReadMemory in -lxml2... " >&6; }
9286 if ${ac_cv_lib_xml2_xmlReadMemory+:} false; then :
9287   $as_echo_n "(cached) " >&6
9288 else
9289   ac_check_lib_save_LIBS=$LIBS
9290 LIBS="-lxml2 $ac_xml_libs $LIBS"
9291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9292 /* end confdefs.h.  */
9293
9294 /* Override any GCC internal prototype to avoid an error.
9295    Use char because int might match the return type of a GCC
9296    builtin and then its argument prototype would still apply.  */
9297 #ifdef __cplusplus
9298 extern "C"
9299 #endif
9300 char xmlReadMemory ();
9301 int
9302 main ()
9303 {
9304 return xmlReadMemory ();
9305   ;
9306   return 0;
9307 }
9308 _ACEOF
9309 if ac_fn_c_try_link "$LINENO"; then :
9310   ac_cv_lib_xml2_xmlReadMemory=yes
9311 else
9312   ac_cv_lib_xml2_xmlReadMemory=no
9313 fi
9314 rm -f core conftest.err conftest.$ac_objext \
9315     conftest$ac_exeext conftest.$ac_ext
9316 LIBS=$ac_check_lib_save_LIBS
9317 fi
9318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlReadMemory" >&5
9319 $as_echo "$ac_cv_lib_xml2_xmlReadMemory" >&6; }
9320 if test "x$ac_cv_lib_xml2_xmlReadMemory" = xyes; then :
9321
9322 $as_echo "#define HAVE_XMLREADMEMORY 1" >>confdefs.h
9323
9324 fi
9325
9326         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlNewDocPI in -lxml2" >&5
9327 $as_echo_n "checking for xmlNewDocPI in -lxml2... " >&6; }
9328 if ${ac_cv_lib_xml2_xmlNewDocPI+:} false; then :
9329   $as_echo_n "(cached) " >&6
9330 else
9331   ac_check_lib_save_LIBS=$LIBS
9332 LIBS="-lxml2 $ac_xml_libs $LIBS"
9333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9334 /* end confdefs.h.  */
9335
9336 /* Override any GCC internal prototype to avoid an error.
9337    Use char because int might match the return type of a GCC
9338    builtin and then its argument prototype would still apply.  */
9339 #ifdef __cplusplus
9340 extern "C"
9341 #endif
9342 char xmlNewDocPI ();
9343 int
9344 main ()
9345 {
9346 return xmlNewDocPI ();
9347   ;
9348   return 0;
9349 }
9350 _ACEOF
9351 if ac_fn_c_try_link "$LINENO"; then :
9352   ac_cv_lib_xml2_xmlNewDocPI=yes
9353 else
9354   ac_cv_lib_xml2_xmlNewDocPI=no
9355 fi
9356 rm -f core conftest.err conftest.$ac_objext \
9357     conftest$ac_exeext conftest.$ac_ext
9358 LIBS=$ac_check_lib_save_LIBS
9359 fi
9360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlNewDocPI" >&5
9361 $as_echo "$ac_cv_lib_xml2_xmlNewDocPI" >&6; }
9362 if test "x$ac_cv_lib_xml2_xmlNewDocPI" = xyes; then :
9363
9364 $as_echo "#define HAVE_XMLNEWDOCPI 1" >>confdefs.h
9365
9366 fi
9367
9368         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetParserStructuredErrors in -lxml2" >&5
9369 $as_echo_n "checking for xmlSchemaSetParserStructuredErrors in -lxml2... " >&6; }
9370 if ${ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors+:} false; then :
9371   $as_echo_n "(cached) " >&6
9372 else
9373   ac_check_lib_save_LIBS=$LIBS
9374 LIBS="-lxml2 $ac_xml_libs $LIBS"
9375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9376 /* end confdefs.h.  */
9377
9378 /* Override any GCC internal prototype to avoid an error.
9379    Use char because int might match the return type of a GCC
9380    builtin and then its argument prototype would still apply.  */
9381 #ifdef __cplusplus
9382 extern "C"
9383 #endif
9384 char xmlSchemaSetParserStructuredErrors ();
9385 int
9386 main ()
9387 {
9388 return xmlSchemaSetParserStructuredErrors ();
9389   ;
9390   return 0;
9391 }
9392 _ACEOF
9393 if ac_fn_c_try_link "$LINENO"; then :
9394   ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=yes
9395 else
9396   ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=no
9397 fi
9398 rm -f core conftest.err conftest.$ac_objext \
9399     conftest$ac_exeext conftest.$ac_ext
9400 LIBS=$ac_check_lib_save_LIBS
9401 fi
9402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&5
9403 $as_echo "$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&6; }
9404 if test "x$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" = xyes; then :
9405
9406 $as_echo "#define HAVE_XMLSCHEMASSETPARSERSTRUCTUREDERRORS 1" >>confdefs.h
9407
9408 fi
9409
9410         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetValidStructuredErrors in -lxml2" >&5
9411 $as_echo_n "checking for xmlSchemaSetValidStructuredErrors in -lxml2... " >&6; }
9412 if ${ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors+:} false; then :
9413   $as_echo_n "(cached) " >&6
9414 else
9415   ac_check_lib_save_LIBS=$LIBS
9416 LIBS="-lxml2 $ac_xml_libs $LIBS"
9417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9418 /* end confdefs.h.  */
9419
9420 /* Override any GCC internal prototype to avoid an error.
9421    Use char because int might match the return type of a GCC
9422    builtin and then its argument prototype would still apply.  */
9423 #ifdef __cplusplus
9424 extern "C"
9425 #endif
9426 char xmlSchemaSetValidStructuredErrors ();
9427 int
9428 main ()
9429 {
9430 return xmlSchemaSetValidStructuredErrors ();
9431   ;
9432   return 0;
9433 }
9434 _ACEOF
9435 if ac_fn_c_try_link "$LINENO"; then :
9436   ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=yes
9437 else
9438   ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=no
9439 fi
9440 rm -f core conftest.err conftest.$ac_objext \
9441     conftest$ac_exeext conftest.$ac_ext
9442 LIBS=$ac_check_lib_save_LIBS
9443 fi
9444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&5
9445 $as_echo "$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&6; }
9446 if test "x$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" = xyes; then :
9447
9448 $as_echo "#define HAVE_XMLSCHEMASSETVALIDSTRUCTUREDERRORS 1" >>confdefs.h
9449
9450 fi
9451
9452         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlFirstElementChild in -lxml2" >&5
9453 $as_echo_n "checking for xmlFirstElementChild in -lxml2... " >&6; }
9454 if ${ac_cv_lib_xml2_xmlFirstElementChild+:} false; then :
9455   $as_echo_n "(cached) " >&6
9456 else
9457   ac_check_lib_save_LIBS=$LIBS
9458 LIBS="-lxml2 $ac_xml_libs $LIBS"
9459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9460 /* end confdefs.h.  */
9461
9462 /* Override any GCC internal prototype to avoid an error.
9463    Use char because int might match the return type of a GCC
9464    builtin and then its argument prototype would still apply.  */
9465 #ifdef __cplusplus
9466 extern "C"
9467 #endif
9468 char xmlFirstElementChild ();
9469 int
9470 main ()
9471 {
9472 return xmlFirstElementChild ();
9473   ;
9474   return 0;
9475 }
9476 _ACEOF
9477 if ac_fn_c_try_link "$LINENO"; then :
9478   ac_cv_lib_xml2_xmlFirstElementChild=yes
9479 else
9480   ac_cv_lib_xml2_xmlFirstElementChild=no
9481 fi
9482 rm -f core conftest.err conftest.$ac_objext \
9483     conftest$ac_exeext conftest.$ac_ext
9484 LIBS=$ac_check_lib_save_LIBS
9485 fi
9486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlFirstElementChild" >&5
9487 $as_echo "$ac_cv_lib_xml2_xmlFirstElementChild" >&6; }
9488 if test "x$ac_cv_lib_xml2_xmlFirstElementChild" = xyes; then :
9489
9490 $as_echo "#define HAVE_XMLFIRSTELEMENTCHILD 1" >>confdefs.h
9491
9492 fi
9493
9494         ac_fn_c_check_type "$LINENO" "xmlDocProperties" "ac_cv_type_xmlDocProperties" "#include <libxml/tree.h>
9495 "
9496 if test "x$ac_cv_type_xmlDocProperties" = xyes; then :
9497
9498 $as_echo "#define HAVE_XMLDOC_PROPERTIES 1" >>confdefs.h
9499
9500 fi
9501
9502     fi
9503     CPPFLAGS="$ac_save_CPPFLAGS"
9504 fi
9505 if test "$ac_cv_lib_xml2_xmlParseMemory" != "yes"; then :
9506   case "x$with_xml" in
9507   x)   as_fn_append wine_warnings "|libxml2 ${notice_platform}development files not found (or too old), XML won't be supported." ;;
9508   xno) ;;
9509   *)   as_fn_error $? "libxml2 ${notice_platform}development files not found (or too old), XML won't be supported.
9510 This is an error since --with-xml was requested." "$LINENO" 5 ;;
9511 esac
9512 fi
9513
9514 if test "x$with_xslt" != "xno"
9515 then
9516     if test "$PKG_CONFIG" != "false"
9517     then
9518         ac_xslt_libs="`$PKG_CONFIG --libs libxslt 2>/dev/null`"
9519         ac_xslt_cflags="`$PKG_CONFIG --cflags libxslt 2>/dev/null`"
9520     else
9521         ac_xslt_libs="`xslt-config --libs 2>/dev/null`"
9522         ac_xslt_cflags="`xslt-config --cflags 2>/dev/null`"
9523     fi
9524     ac_save_CPPFLAGS="$CPPFLAGS"
9525     CPPFLAGS="$CPPFLAGS $ac_xslt_cflags"
9526     for ac_header in libxslt/pattern.h libxslt/transform.h
9527 do :
9528   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9529 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_LIBXSLT_PATTERN_H
9530 # include <libxslt/pattern.h>
9531 #endif
9532 "
9533 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9534   cat >>confdefs.h <<_ACEOF
9535 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9536 _ACEOF
9537
9538 fi
9539
9540 done
9541
9542     CPPFLAGS="$ac_save_CPPFLAGS"
9543     if test "$ac_cv_header_libxslt_transform_h" = "yes"
9544     then
9545         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lxslt" >&5
9546 $as_echo_n "checking for -lxslt... " >&6; }
9547 if ${ac_cv_lib_soname_xslt+:} false; then :
9548   $as_echo_n "(cached) " >&6
9549 else
9550   ac_check_soname_save_LIBS=$LIBS
9551 LIBS="-lxslt $ac_xslt_libs $LIBS"
9552   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9553 /* end confdefs.h.  */
9554
9555 /* Override any GCC internal prototype to avoid an error.
9556    Use char because int might match the return type of a GCC
9557    builtin and then its argument prototype would still apply.  */
9558 #ifdef __cplusplus
9559 extern "C"
9560 #endif
9561 char xsltCompilePattern ();
9562 int
9563 main ()
9564 {
9565 return xsltCompilePattern ();
9566   ;
9567   return 0;
9568 }
9569 _ACEOF
9570 if ac_fn_c_try_link "$LINENO"; then :
9571   case "$LIBEXT" in
9572     dll) ac_cv_lib_soname_xslt=`$ac_cv_path_LDD conftest.exe | grep "xslt" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9573     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'` ;;
9574     *) ac_cv_lib_soname_xslt=`$ac_cv_path_LDD conftest$ac_exeext | grep "libxslt\\.$LIBEXT" | sed -e "s/^.*\(libxslt\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
9575   esac
9576 fi
9577 rm -f core conftest.err conftest.$ac_objext \
9578     conftest$ac_exeext conftest.$ac_ext
9579   LIBS=$ac_check_soname_save_LIBS
9580 fi
9581 if test "x$ac_cv_lib_soname_xslt" = "x"; then :
9582   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9583 $as_echo "not found" >&6; }
9584
9585 else
9586   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_xslt" >&5
9587 $as_echo "$ac_cv_lib_soname_xslt" >&6; }
9588
9589 cat >>confdefs.h <<_ACEOF
9590 #define SONAME_LIBXSLT "$ac_cv_lib_soname_xslt"
9591 _ACEOF
9592
9593        XSLTINCL="$ac_xslt_cflags"
9594 fi
9595     fi
9596 fi
9597 if test "x$ac_cv_lib_soname_xslt" = "x"; then :
9598   case "x$with_xslt" in
9599   x)   as_fn_append wine_warnings "|libxslt ${notice_platform}development files not found, xslt won't be supported." ;;
9600   xno) ;;
9601   *)   as_fn_error $? "libxslt ${notice_platform}development files not found, xslt won't be supported.
9602 This is an error since --with-xslt was requested." "$LINENO" 5 ;;
9603 esac
9604 fi
9605
9606 HALINCL=""
9607
9608 if test "x$with_hal" != "xno"
9609 then
9610     ac_save_CPPFLAGS="$CPPFLAGS"
9611     if test "$PKG_CONFIG" != "false"
9612     then
9613         ac_hal_libs="`$PKG_CONFIG --libs hal 2>/dev/null`"
9614         ac_hal_cflags="`$PKG_CONFIG --cflags hal 2>/dev/null`"
9615         CPPFLAGS="$CPPFLAGS $ac_hal_cflags"
9616     fi
9617     for ac_header in dbus/dbus.h hal/libhal.h
9618 do :
9619   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9620 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9621 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9622   cat >>confdefs.h <<_ACEOF
9623 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9624 _ACEOF
9625
9626 fi
9627
9628 done
9629
9630     if test "$ac_cv_header_dbus_dbus_h" = "yes" -a "$ac_cv_header_hal_libhal_h" = "yes"
9631     then
9632         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus_connection_close in -ldbus-1" >&5
9633 $as_echo_n "checking for dbus_connection_close in -ldbus-1... " >&6; }
9634 if ${ac_cv_lib_dbus_1_dbus_connection_close+:} false; then :
9635   $as_echo_n "(cached) " >&6
9636 else
9637   ac_check_lib_save_LIBS=$LIBS
9638 LIBS="-ldbus-1 $ac_hal_libs $LIBS"
9639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9640 /* end confdefs.h.  */
9641
9642 /* Override any GCC internal prototype to avoid an error.
9643    Use char because int might match the return type of a GCC
9644    builtin and then its argument prototype would still apply.  */
9645 #ifdef __cplusplus
9646 extern "C"
9647 #endif
9648 char dbus_connection_close ();
9649 int
9650 main ()
9651 {
9652 return dbus_connection_close ();
9653   ;
9654   return 0;
9655 }
9656 _ACEOF
9657 if ac_fn_c_try_link "$LINENO"; then :
9658   ac_cv_lib_dbus_1_dbus_connection_close=yes
9659 else
9660   ac_cv_lib_dbus_1_dbus_connection_close=no
9661 fi
9662 rm -f core conftest.err conftest.$ac_objext \
9663     conftest$ac_exeext conftest.$ac_ext
9664 LIBS=$ac_check_lib_save_LIBS
9665 fi
9666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dbus_1_dbus_connection_close" >&5
9667 $as_echo "$ac_cv_lib_dbus_1_dbus_connection_close" >&6; }
9668 if test "x$ac_cv_lib_dbus_1_dbus_connection_close" = xyes; then :
9669   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lhal" >&5
9670 $as_echo_n "checking for -lhal... " >&6; }
9671 if ${ac_cv_lib_soname_hal+:} false; then :
9672   $as_echo_n "(cached) " >&6
9673 else
9674   ac_check_soname_save_LIBS=$LIBS
9675 LIBS="-lhal $ac_hal_libs $LIBS"
9676   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9677 /* end confdefs.h.  */
9678
9679 /* Override any GCC internal prototype to avoid an error.
9680    Use char because int might match the return type of a GCC
9681    builtin and then its argument prototype would still apply.  */
9682 #ifdef __cplusplus
9683 extern "C"
9684 #endif
9685 char libhal_ctx_new ();
9686 int
9687 main ()
9688 {
9689 return libhal_ctx_new ();
9690   ;
9691   return 0;
9692 }
9693 _ACEOF
9694 if ac_fn_c_try_link "$LINENO"; then :
9695   case "$LIBEXT" in
9696     dll) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest.exe | grep "hal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9697     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'` ;;
9698     *) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest$ac_exeext | grep "libhal\\.$LIBEXT" | sed -e "s/^.*\(libhal\.$LIBEXT[^     ]*\).*$/\1/"';2,$d'` ;;
9699   esac
9700 fi
9701 rm -f core conftest.err conftest.$ac_objext \
9702     conftest$ac_exeext conftest.$ac_ext
9703   LIBS=$ac_check_soname_save_LIBS
9704 fi
9705 if test "x$ac_cv_lib_soname_hal" = "x"; then :
9706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9707 $as_echo "not found" >&6; }
9708
9709 else
9710   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_hal" >&5
9711 $as_echo "$ac_cv_lib_soname_hal" >&6; }
9712
9713 cat >>confdefs.h <<_ACEOF
9714 #define SONAME_LIBHAL "$ac_cv_lib_soname_hal"
9715 _ACEOF
9716
9717        HALINCL="$ac_hal_cflags"
9718 fi
9719 fi
9720
9721     fi
9722     CPPFLAGS="$ac_save_CPPFLAGS"
9723 fi
9724 if test "x$ac_cv_lib_soname_hal" = "x" -a "x$ac_cv_header_DiskArbitration_DiskArbitration_h" != "xyes"; then :
9725   case "x$with_hal" in
9726   x)   as_fn_append wine_notices "|libhal/libdbus ${notice_platform}development files not found, no dynamic device support." ;;
9727   xno) ;;
9728   *)   as_fn_error $? "libhal/libdbus ${notice_platform}development files not found, no dynamic device support.
9729 This is an error since --with-hal was requested." "$LINENO" 5 ;;
9730 esac
9731 fi
9732
9733 if test "x$with_gnutls" != "xno"
9734 then
9735     ac_save_CPPFLAGS="$CPPFLAGS"
9736     if test "$PKG_CONFIG" != "false"
9737     then
9738         ac_gnutls_libs="`$PKG_CONFIG --libs gnutls 2>/dev/null`"
9739         ac_gnutls_cflags="`$PKG_CONFIG --cflags gnutls 2>/dev/null`"
9740         CPPFLAGS="$CPPFLAGS $ac_gnutls_cflags"
9741     fi
9742     ac_fn_c_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default"
9743 if test "x$ac_cv_header_gnutls_gnutls_h" = xyes; then :
9744   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9745 /* end confdefs.h.  */
9746 #include <gnutls/gnutls.h>
9747 int
9748 main ()
9749 {
9750 typeof(gnutls_mac_get_key_size) *pfunc;
9751   ;
9752   return 0;
9753 }
9754 _ACEOF
9755 if ac_fn_c_try_compile "$LINENO"; then :
9756   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgnutls" >&5
9757 $as_echo_n "checking for -lgnutls... " >&6; }
9758 if ${ac_cv_lib_soname_gnutls+:} false; then :
9759   $as_echo_n "(cached) " >&6
9760 else
9761   ac_check_soname_save_LIBS=$LIBS
9762 LIBS="-lgnutls $ac_gnutls_libs $LIBS"
9763   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9764 /* end confdefs.h.  */
9765
9766 /* Override any GCC internal prototype to avoid an error.
9767    Use char because int might match the return type of a GCC
9768    builtin and then its argument prototype would still apply.  */
9769 #ifdef __cplusplus
9770 extern "C"
9771 #endif
9772 char gnutls_global_init ();
9773 int
9774 main ()
9775 {
9776 return gnutls_global_init ();
9777   ;
9778   return 0;
9779 }
9780 _ACEOF
9781 if ac_fn_c_try_link "$LINENO"; then :
9782   case "$LIBEXT" in
9783     dll) ac_cv_lib_soname_gnutls=`$ac_cv_path_LDD conftest.exe | grep "gnutls" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9784     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'` ;;
9785     *) ac_cv_lib_soname_gnutls=`$ac_cv_path_LDD conftest$ac_exeext | grep "libgnutls\\.$LIBEXT" | sed -e "s/^.*\(libgnutls\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'` ;;
9786   esac
9787 fi
9788 rm -f core conftest.err conftest.$ac_objext \
9789     conftest$ac_exeext conftest.$ac_ext
9790   LIBS=$ac_check_soname_save_LIBS
9791 fi
9792 if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
9793   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9794 $as_echo "not found" >&6; }
9795
9796 else
9797   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gnutls" >&5
9798 $as_echo "$ac_cv_lib_soname_gnutls" >&6; }
9799
9800 cat >>confdefs.h <<_ACEOF
9801 #define SONAME_LIBGNUTLS "$ac_cv_lib_soname_gnutls"
9802 _ACEOF
9803
9804        GNUTLSINCL="$ac_gnutls_cflags"
9805
9806 fi
9807 fi
9808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9809 fi
9810
9811
9812     CPPFLAGS="$ac_save_CPPFLAGS"
9813 fi
9814 if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
9815   case "x$with_gnutls" in
9816   x)   as_fn_append wine_notices "|libgnutls ${notice_platform}development files not found, no schannel support." ;;
9817   xno) ;;
9818   *)   as_fn_error $? "libgnutls ${notice_platform}development files not found, no schannel support.
9819 This is an error since --with-gnutls was requested." "$LINENO" 5 ;;
9820 esac
9821 fi
9822
9823 CURSESLIBS=""
9824 if test "$ac_cv_header_ncurses_h" = "yes"
9825 then
9826     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lncurses" >&5
9827 $as_echo_n "checking for -lncurses... " >&6; }
9828 if ${ac_cv_lib_soname_ncurses+:} false; then :
9829   $as_echo_n "(cached) " >&6
9830 else
9831   ac_check_soname_save_LIBS=$LIBS
9832 LIBS="-lncurses  $LIBS"
9833   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9834 /* end confdefs.h.  */
9835
9836 /* Override any GCC internal prototype to avoid an error.
9837    Use char because int might match the return type of a GCC
9838    builtin and then its argument prototype would still apply.  */
9839 #ifdef __cplusplus
9840 extern "C"
9841 #endif
9842 char waddch ();
9843 int
9844 main ()
9845 {
9846 return waddch ();
9847   ;
9848   return 0;
9849 }
9850 _ACEOF
9851 if ac_fn_c_try_link "$LINENO"; then :
9852   case "$LIBEXT" in
9853     dll) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest.exe | grep "ncurses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9854     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'` ;;
9855     *) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest$ac_exeext | grep "libncurses\\.$LIBEXT" | sed -e "s/^.*\(libncurses\.$LIBEXT[^         ]*\).*$/\1/"';2,$d'` ;;
9856   esac
9857 fi
9858 rm -f core conftest.err conftest.$ac_objext \
9859     conftest$ac_exeext conftest.$ac_ext
9860   LIBS=$ac_check_soname_save_LIBS
9861 fi
9862 if test "x$ac_cv_lib_soname_ncurses" = "x"; then :
9863   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9864 $as_echo "not found" >&6; }
9865
9866 else
9867   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ncurses" >&5
9868 $as_echo "$ac_cv_lib_soname_ncurses" >&6; }
9869
9870 cat >>confdefs.h <<_ACEOF
9871 #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
9872 _ACEOF
9873
9874        CURSESLIBS="-lncurses"
9875 fi
9876 elif test "$ac_cv_header_curses_h" = "yes"
9877 then
9878     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcurses" >&5
9879 $as_echo_n "checking for -lcurses... " >&6; }
9880 if ${ac_cv_lib_soname_curses+:} false; then :
9881   $as_echo_n "(cached) " >&6
9882 else
9883   ac_check_soname_save_LIBS=$LIBS
9884 LIBS="-lcurses  $LIBS"
9885   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9886 /* end confdefs.h.  */
9887
9888 /* Override any GCC internal prototype to avoid an error.
9889    Use char because int might match the return type of a GCC
9890    builtin and then its argument prototype would still apply.  */
9891 #ifdef __cplusplus
9892 extern "C"
9893 #endif
9894 char waddch ();
9895 int
9896 main ()
9897 {
9898 return waddch ();
9899   ;
9900   return 0;
9901 }
9902 _ACEOF
9903 if ac_fn_c_try_link "$LINENO"; then :
9904   case "$LIBEXT" in
9905     dll) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest.exe | grep "curses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9906     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'` ;;
9907     *) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcurses\\.$LIBEXT" | sed -e "s/^.*\(libcurses\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'` ;;
9908   esac
9909 fi
9910 rm -f core conftest.err conftest.$ac_objext \
9911     conftest$ac_exeext conftest.$ac_ext
9912   LIBS=$ac_check_soname_save_LIBS
9913 fi
9914 if test "x$ac_cv_lib_soname_curses" = "x"; then :
9915   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9916 $as_echo "not found" >&6; }
9917
9918 else
9919   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_curses" >&5
9920 $as_echo "$ac_cv_lib_soname_curses" >&6; }
9921
9922 cat >>confdefs.h <<_ACEOF
9923 #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
9924 _ACEOF
9925
9926        CURSESLIBS="-lcurses"
9927 fi
9928 fi
9929 ac_save_LIBS="$LIBS"
9930 LIBS="$LIBS $CURSESLIBS"
9931 for ac_func in mousemask
9932 do :
9933   ac_fn_c_check_func "$LINENO" "mousemask" "ac_cv_func_mousemask"
9934 if test "x$ac_cv_func_mousemask" = xyes; then :
9935   cat >>confdefs.h <<_ACEOF
9936 #define HAVE_MOUSEMASK 1
9937 _ACEOF
9938
9939 fi
9940 done
9941
9942 LIBS="$ac_save_LIBS"
9943 if test "x$ac_cv_lib_soname_curses$ac_cv_lib_soname_ncurses" = "x"; then :
9944   case "x$with_curses" in
9945   x)   as_fn_append wine_notices "|lib(n)curses ${notice_platform}development files not found, curses won't be supported." ;;
9946   xno) ;;
9947   *)   as_fn_error $? "lib(n)curses ${notice_platform}development files not found, curses won't be supported.
9948 This is an error since --with-curses was requested." "$LINENO" 5 ;;
9949 esac
9950 fi
9951
9952 if test "x$with_sane" != "xno"
9953 then
9954     ac_save_CPPFLAGS="$CPPFLAGS"
9955     # Extract the first word of "sane-config", so it can be a program name with args.
9956 set dummy sane-config; ac_word=$2
9957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9958 $as_echo_n "checking for $ac_word... " >&6; }
9959 if ${ac_cv_prog_sane_devel+:} false; then :
9960   $as_echo_n "(cached) " >&6
9961 else
9962   if test -n "$sane_devel"; then
9963   ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
9964 else
9965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9966 for as_dir in $PATH
9967 do
9968   IFS=$as_save_IFS
9969   test -z "$as_dir" && as_dir=.
9970     for ac_exec_ext in '' $ac_executable_extensions; do
9971   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9972     ac_cv_prog_sane_devel="sane-config"
9973     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9974     break 2
9975   fi
9976 done
9977   done
9978 IFS=$as_save_IFS
9979
9980   test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
9981 fi
9982 fi
9983 sane_devel=$ac_cv_prog_sane_devel
9984 if test -n "$sane_devel"; then
9985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sane_devel" >&5
9986 $as_echo "$sane_devel" >&6; }
9987 else
9988   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9989 $as_echo "no" >&6; }
9990 fi
9991
9992
9993     if test "$sane_devel" != "no"
9994     then
9995         ac_sane_incl="`$sane_devel --cflags`"
9996         ac_sane_libs="`$sane_devel --ldflags`"
9997         CPPFLAGS="$CPPFLAGS $ac_sane_incl"
9998     fi
9999     ac_fn_c_check_header_mongrel "$LINENO" "sane/sane.h" "ac_cv_header_sane_sane_h" "$ac_includes_default"
10000 if test "x$ac_cv_header_sane_sane_h" = xyes; then :
10001   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lsane" >&5
10002 $as_echo_n "checking for -lsane... " >&6; }
10003 if ${ac_cv_lib_soname_sane+:} false; then :
10004   $as_echo_n "(cached) " >&6
10005 else
10006   ac_check_soname_save_LIBS=$LIBS
10007 LIBS="-lsane $ac_sane_libs $LIBS"
10008   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10009 /* end confdefs.h.  */
10010
10011 /* Override any GCC internal prototype to avoid an error.
10012    Use char because int might match the return type of a GCC
10013    builtin and then its argument prototype would still apply.  */
10014 #ifdef __cplusplus
10015 extern "C"
10016 #endif
10017 char sane_init ();
10018 int
10019 main ()
10020 {
10021 return sane_init ();
10022   ;
10023   return 0;
10024 }
10025 _ACEOF
10026 if ac_fn_c_try_link "$LINENO"; then :
10027   case "$LIBEXT" in
10028     dll) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest.exe | grep "sane" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10029     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'` ;;
10030     *) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest$ac_exeext | grep "libsane\\.$LIBEXT" | sed -e "s/^.*\(libsane\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
10031   esac
10032 fi
10033 rm -f core conftest.err conftest.$ac_objext \
10034     conftest$ac_exeext conftest.$ac_ext
10035   LIBS=$ac_check_soname_save_LIBS
10036 fi
10037 if test "x$ac_cv_lib_soname_sane" = "x"; then :
10038   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10039 $as_echo "not found" >&6; }
10040
10041 else
10042   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_sane" >&5
10043 $as_echo "$ac_cv_lib_soname_sane" >&6; }
10044
10045 cat >>confdefs.h <<_ACEOF
10046 #define SONAME_LIBSANE "$ac_cv_lib_soname_sane"
10047 _ACEOF
10048
10049        SANEINCL="$ac_sane_incl"
10050
10051 fi
10052 fi
10053
10054
10055     CPPFLAGS="$ac_save_CPPFLAGS"
10056 fi
10057 if test "x$ac_cv_lib_soname_sane" = "x"; then :
10058   case "x$with_sane" in
10059   x)   as_fn_append wine_notices "|libsane ${notice_platform}development files not found, scanners won't be supported." ;;
10060   xno) ;;
10061   *)   as_fn_error $? "libsane ${notice_platform}development files not found, scanners won't be supported.
10062 This is an error since --with-sane was requested." "$LINENO" 5 ;;
10063 esac
10064 fi
10065
10066 if test "x$with_v4l" != "xno"
10067 then
10068     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lv4l1" >&5
10069 $as_echo_n "checking for -lv4l1... " >&6; }
10070 if ${ac_cv_lib_soname_v4l1+:} false; then :
10071   $as_echo_n "(cached) " >&6
10072 else
10073   ac_check_soname_save_LIBS=$LIBS
10074 LIBS="-lv4l1  $LIBS"
10075   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10076 /* end confdefs.h.  */
10077
10078 /* Override any GCC internal prototype to avoid an error.
10079    Use char because int might match the return type of a GCC
10080    builtin and then its argument prototype would still apply.  */
10081 #ifdef __cplusplus
10082 extern "C"
10083 #endif
10084 char v4l1_open ();
10085 int
10086 main ()
10087 {
10088 return v4l1_open ();
10089   ;
10090   return 0;
10091 }
10092 _ACEOF
10093 if ac_fn_c_try_link "$LINENO"; then :
10094   case "$LIBEXT" in
10095     dll) ac_cv_lib_soname_v4l1=`$ac_cv_path_LDD conftest.exe | grep "v4l1" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10096     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'` ;;
10097     *) ac_cv_lib_soname_v4l1=`$ac_cv_path_LDD conftest$ac_exeext | grep "libv4l1\\.$LIBEXT" | sed -e "s/^.*\(libv4l1\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
10098   esac
10099 fi
10100 rm -f core conftest.err conftest.$ac_objext \
10101     conftest$ac_exeext conftest.$ac_ext
10102   LIBS=$ac_check_soname_save_LIBS
10103 fi
10104 if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
10105   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10106 $as_echo "not found" >&6; }
10107
10108 else
10109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_v4l1" >&5
10110 $as_echo "$ac_cv_lib_soname_v4l1" >&6; }
10111
10112 cat >>confdefs.h <<_ACEOF
10113 #define SONAME_LIBV4L1 "$ac_cv_lib_soname_v4l1"
10114 _ACEOF
10115
10116
10117 fi
10118 fi
10119 if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
10120   case "x$with_v4l" in
10121   x)   as_fn_append wine_notices "|libv4l ${notice_platform}development files not found." ;;
10122   xno) ;;
10123   *)   as_fn_error $? "libv4l ${notice_platform}development files not found.
10124 This is an error since --with-v4l was requested." "$LINENO" 5 ;;
10125 esac
10126 fi
10127
10128 if test "x$with_gphoto" != "xno"
10129 then
10130     ac_save_CPPFLAGS="$CPPFLAGS"
10131     # Extract the first word of "gphoto2-config", so it can be a program name with args.
10132 set dummy gphoto2-config; ac_word=$2
10133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10134 $as_echo_n "checking for $ac_word... " >&6; }
10135 if ${ac_cv_prog_gphoto2_devel+:} false; then :
10136   $as_echo_n "(cached) " >&6
10137 else
10138   if test -n "$gphoto2_devel"; then
10139   ac_cv_prog_gphoto2_devel="$gphoto2_devel" # Let the user override the test.
10140 else
10141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10142 for as_dir in $PATH
10143 do
10144   IFS=$as_save_IFS
10145   test -z "$as_dir" && as_dir=.
10146     for ac_exec_ext in '' $ac_executable_extensions; do
10147   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10148     ac_cv_prog_gphoto2_devel="gphoto2-config"
10149     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10150     break 2
10151   fi
10152 done
10153   done
10154 IFS=$as_save_IFS
10155
10156   test -z "$ac_cv_prog_gphoto2_devel" && ac_cv_prog_gphoto2_devel="no"
10157 fi
10158 fi
10159 gphoto2_devel=$ac_cv_prog_gphoto2_devel
10160 if test -n "$gphoto2_devel"; then
10161   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gphoto2_devel" >&5
10162 $as_echo "$gphoto2_devel" >&6; }
10163 else
10164   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10165 $as_echo "no" >&6; }
10166 fi
10167
10168
10169     # Extract the first word of "gphoto2-port-config", so it can be a program name with args.
10170 set dummy gphoto2-port-config; ac_word=$2
10171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10172 $as_echo_n "checking for $ac_word... " >&6; }
10173 if ${ac_cv_prog_gphoto2port_devel+:} false; then :
10174   $as_echo_n "(cached) " >&6
10175 else
10176   if test -n "$gphoto2port_devel"; then
10177   ac_cv_prog_gphoto2port_devel="$gphoto2port_devel" # Let the user override the test.
10178 else
10179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10180 for as_dir in $PATH
10181 do
10182   IFS=$as_save_IFS
10183   test -z "$as_dir" && as_dir=.
10184     for ac_exec_ext in '' $ac_executable_extensions; do
10185   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10186     ac_cv_prog_gphoto2port_devel="gphoto2-port-config"
10187     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10188     break 2
10189   fi
10190 done
10191   done
10192 IFS=$as_save_IFS
10193
10194   test -z "$ac_cv_prog_gphoto2port_devel" && ac_cv_prog_gphoto2port_devel="no"
10195 fi
10196 fi
10197 gphoto2port_devel=$ac_cv_prog_gphoto2port_devel
10198 if test -n "$gphoto2port_devel"; then
10199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gphoto2port_devel" >&5
10200 $as_echo "$gphoto2port_devel" >&6; }
10201 else
10202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10203 $as_echo "no" >&6; }
10204 fi
10205
10206
10207     if test "$gphoto2_devel" != "no" -a "$gphoto2port_devel" != "no"
10208     then
10209         ac_gphoto2_incl="`$gphoto2_devel --cflags` `$gphoto2port_devel --cflags`"
10210         ac_gphoto2_libs=""
10211         for i in `$gphoto2_devel --libs` `$gphoto2port_devel --libs`
10212         do
10213             case "$i" in
10214             -L/usr/lib|-L/usr/lib64) ;;
10215             -L*|-l*) ac_gphoto2_libs="$ac_gphoto2_libs $i";;
10216             esac
10217         done
10218         CPPFLAGS="$CPPFLAGS $ac_gphoto2_incl"
10219     fi
10220     ac_gphoto2_libs=${ac_gphoto2_libs:-"-lgphoto2"}
10221     ac_fn_c_check_header_mongrel "$LINENO" "gphoto2-camera.h" "ac_cv_header_gphoto2_camera_h" "$ac_includes_default"
10222 if test "x$ac_cv_header_gphoto2_camera_h" = xyes; then :
10223   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gp_camera_new in -lgphoto2" >&5
10224 $as_echo_n "checking for gp_camera_new in -lgphoto2... " >&6; }
10225 if ${ac_cv_lib_gphoto2_gp_camera_new+:} false; then :
10226   $as_echo_n "(cached) " >&6
10227 else
10228   ac_check_lib_save_LIBS=$LIBS
10229 LIBS="-lgphoto2 $ac_gphoto2_libs $LIBS"
10230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10231 /* end confdefs.h.  */
10232
10233 /* Override any GCC internal prototype to avoid an error.
10234    Use char because int might match the return type of a GCC
10235    builtin and then its argument prototype would still apply.  */
10236 #ifdef __cplusplus
10237 extern "C"
10238 #endif
10239 char gp_camera_new ();
10240 int
10241 main ()
10242 {
10243 return gp_camera_new ();
10244   ;
10245   return 0;
10246 }
10247 _ACEOF
10248 if ac_fn_c_try_link "$LINENO"; then :
10249   ac_cv_lib_gphoto2_gp_camera_new=yes
10250 else
10251   ac_cv_lib_gphoto2_gp_camera_new=no
10252 fi
10253 rm -f core conftest.err conftest.$ac_objext \
10254     conftest$ac_exeext conftest.$ac_ext
10255 LIBS=$ac_check_lib_save_LIBS
10256 fi
10257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gphoto2_gp_camera_new" >&5
10258 $as_echo "$ac_cv_lib_gphoto2_gp_camera_new" >&6; }
10259 if test "x$ac_cv_lib_gphoto2_gp_camera_new" = xyes; then :
10260
10261 $as_echo "#define HAVE_GPHOTO2 1" >>confdefs.h
10262
10263                                    GPHOTO2LIBS="$ac_gphoto2_libs"
10264
10265                                    GPHOTO2INCL="$ac_gphoto2_incl"
10266
10267 fi
10268
10269 fi
10270
10271
10272     CPPFLAGS="$ac_save_CPPFLAGS"
10273 fi
10274 if test "$ac_cv_lib_gphoto2_gp_camera_new" != "yes"; then :
10275   case "x$with_gphoto" in
10276   x)   as_fn_append wine_notices "|libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported." ;;
10277   xno) ;;
10278   *)   as_fn_error $? "libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported.
10279 This is an error since --with-gphoto was requested." "$LINENO" 5 ;;
10280 esac
10281 fi
10282
10283
10284 if test "$ac_cv_header_resolv_h" = "yes"
10285 then
10286     ac_save_LIBS="$LIBS"
10287     for lib in '' -lresolv
10288     do
10289       LIBS="$lib $ac_save_LIBS"
10290       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10291 /* end confdefs.h.  */
10292 #ifdef HAVE_NETINET_IN_H
10293 #include <netinet/in.h>
10294 #endif
10295 #include <resolv.h>
10296 int
10297 main ()
10298 {
10299 res_query("foo",ns_c_in,0,0,0);
10300   ;
10301   return 0;
10302 }
10303 _ACEOF
10304 if ac_fn_c_try_link "$LINENO"; then :
10305
10306 $as_echo "#define HAVE_RESOLV 1" >>confdefs.h
10307
10308          RESOLVLIBS="$lib"
10309
10310 fi
10311 rm -f core conftest.err conftest.$ac_objext \
10312     conftest$ac_exeext conftest.$ac_ext
10313       if test "${RESOLVLIBS+set}" = set; then
10314         break
10315       fi
10316     done
10317     LIBS="$ac_save_LIBS"
10318 fi
10319
10320 LCMSLIBS=""
10321
10322 if test "$ac_cv_header_lcms_h" = "yes" -o "$ac_cv_header_lcms_lcms_h" = "yes"
10323 then
10324     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromFile in -llcms" >&5
10325 $as_echo_n "checking for cmsOpenProfileFromFile in -llcms... " >&6; }
10326 if ${ac_cv_lib_lcms_cmsOpenProfileFromFile+:} false; then :
10327   $as_echo_n "(cached) " >&6
10328 else
10329   ac_check_lib_save_LIBS=$LIBS
10330 LIBS="-llcms  $LIBS"
10331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10332 /* end confdefs.h.  */
10333
10334 /* Override any GCC internal prototype to avoid an error.
10335    Use char because int might match the return type of a GCC
10336    builtin and then its argument prototype would still apply.  */
10337 #ifdef __cplusplus
10338 extern "C"
10339 #endif
10340 char cmsOpenProfileFromFile ();
10341 int
10342 main ()
10343 {
10344 return cmsOpenProfileFromFile ();
10345   ;
10346   return 0;
10347 }
10348 _ACEOF
10349 if ac_fn_c_try_link "$LINENO"; then :
10350   ac_cv_lib_lcms_cmsOpenProfileFromFile=yes
10351 else
10352   ac_cv_lib_lcms_cmsOpenProfileFromFile=no
10353 fi
10354 rm -f core conftest.err conftest.$ac_objext \
10355     conftest$ac_exeext conftest.$ac_ext
10356 LIBS=$ac_check_lib_save_LIBS
10357 fi
10358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsOpenProfileFromFile" >&5
10359 $as_echo "$ac_cv_lib_lcms_cmsOpenProfileFromFile" >&6; }
10360 if test "x$ac_cv_lib_lcms_cmsOpenProfileFromFile" = xyes; then :
10361
10362 $as_echo "#define HAVE_LCMS 1" >>confdefs.h
10363
10364          LCMSLIBS="-llcms"
10365 fi
10366
10367 fi
10368 if test "$ac_cv_lib_lcms_cmsOpenProfileFromFile" != "yes"; then :
10369   case "x$with_cms" in
10370   x)   as_fn_append wine_notices "|liblcms ${notice_platform}development files not found, Color Management won't be supported." ;;
10371   xno) ;;
10372   *)   as_fn_error $? "liblcms ${notice_platform}development files not found, Color Management won't be supported.
10373 This is an error since --with-cms was requested." "$LINENO" 5 ;;
10374 esac
10375 fi
10376
10377 if test "x$with_freetype" != "xno"
10378 then
10379     for ac_prog in freetype-config freetype2-config
10380 do
10381   # Extract the first word of "$ac_prog", so it can be a program name with args.
10382 set dummy $ac_prog; ac_word=$2
10383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10384 $as_echo_n "checking for $ac_word... " >&6; }
10385 if ${ac_cv_prog_ft_devel+:} false; then :
10386   $as_echo_n "(cached) " >&6
10387 else
10388   if test -n "$ft_devel"; then
10389   ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
10390 else
10391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10392 for as_dir in $PATH
10393 do
10394   IFS=$as_save_IFS
10395   test -z "$as_dir" && as_dir=.
10396     for ac_exec_ext in '' $ac_executable_extensions; do
10397   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10398     ac_cv_prog_ft_devel="$ac_prog"
10399     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10400     break 2
10401   fi
10402 done
10403   done
10404 IFS=$as_save_IFS
10405
10406 fi
10407 fi
10408 ft_devel=$ac_cv_prog_ft_devel
10409 if test -n "$ft_devel"; then
10410   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ft_devel" >&5
10411 $as_echo "$ft_devel" >&6; }
10412 else
10413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10414 $as_echo "no" >&6; }
10415 fi
10416
10417
10418   test -n "$ft_devel" && break
10419 done
10420 test -n "$ft_devel" || ft_devel="no"
10421
10422     if test "$ft_devel" != "no"
10423     then
10424         ac_freetype_incl=`$ft_devel --cflags`
10425         ac_freetype_libs=`$ft_devel --libs`
10426     fi
10427     ac_freetype_libs=${ac_freetype_libs:-"-lfreetype"}
10428     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfreetype" >&5
10429 $as_echo_n "checking for -lfreetype... " >&6; }
10430 if ${ac_cv_lib_soname_freetype+:} false; then :
10431   $as_echo_n "(cached) " >&6
10432 else
10433   ac_check_soname_save_LIBS=$LIBS
10434 LIBS="-lfreetype $ac_freetype_libs $LIBS"
10435   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10436 /* end confdefs.h.  */
10437
10438 /* Override any GCC internal prototype to avoid an error.
10439    Use char because int might match the return type of a GCC
10440    builtin and then its argument prototype would still apply.  */
10441 #ifdef __cplusplus
10442 extern "C"
10443 #endif
10444 char FT_Init_FreeType ();
10445 int
10446 main ()
10447 {
10448 return FT_Init_FreeType ();
10449   ;
10450   return 0;
10451 }
10452 _ACEOF
10453 if ac_fn_c_try_link "$LINENO"; then :
10454   case "$LIBEXT" in
10455     dll) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest.exe | grep "freetype" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10456     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'` ;;
10457     *) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfreetype\\.$LIBEXT" | sed -e "s/^.*\(libfreetype\.$LIBEXT[^      ]*\).*$/\1/"';2,$d'` ;;
10458   esac
10459 fi
10460 rm -f core conftest.err conftest.$ac_objext \
10461     conftest$ac_exeext conftest.$ac_ext
10462   LIBS=$ac_check_soname_save_LIBS
10463 fi
10464 if test "x$ac_cv_lib_soname_freetype" = "x"; then :
10465   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10466 $as_echo "not found" >&6; }
10467        ft_lib=no
10468 else
10469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_freetype" >&5
10470 $as_echo "$ac_cv_lib_soname_freetype" >&6; }
10471
10472 cat >>confdefs.h <<_ACEOF
10473 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
10474 _ACEOF
10475
10476        ft_lib=yes
10477 fi
10478     if test "$ft_lib" = "yes"
10479     then
10480         ac_save_CPPFLAGS="$CPPFLAGS"
10481         CPPFLAGS="$ac_freetype_incl $CPPFLAGS"
10482         for ac_header in ft2build.h \
10483                          freetype/freetype.h \
10484                          freetype/ftglyph.h \
10485                          freetype/fttypes.h \
10486                          freetype/tttables.h \
10487                          freetype/ftsnames.h \
10488                          freetype/ttnameid.h \
10489                          freetype/ftoutln.h \
10490                          freetype/ftwinfnt.h \
10491                          freetype/ftmodapi.h \
10492                          freetype/ftlcdfil.h \
10493                          freetype/internal/sfnt.h
10494 do :
10495   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10496 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_FT2BUILD_H
10497                           # include <ft2build.h>
10498                           #endif
10499 "
10500 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10501   cat >>confdefs.h <<_ACEOF
10502 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10503 _ACEOF
10504
10505 fi
10506
10507 done
10508
10509         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10510 /* end confdefs.h.  */
10511 #include <ft2build.h>
10512                     #include <freetype/fttrigon.h>
10513 _ACEOF
10514 if ac_fn_c_try_cpp "$LINENO"; then :
10515
10516 $as_echo "#define HAVE_FREETYPE_FTTRIGON_H 1" >>confdefs.h
10517
10518                     wine_cv_fttrigon=yes
10519 else
10520   wine_cv_fttrigon=no
10521 fi
10522 rm -f conftest.err conftest.i conftest.$ac_ext
10523         ac_fn_c_check_type "$LINENO" "FT_TrueTypeEngineType" "ac_cv_type_FT_TrueTypeEngineType" "#include <freetype/ftmodapi.h>
10524 "
10525 if test "x$ac_cv_type_FT_TrueTypeEngineType" = xyes; then :
10526
10527 cat >>confdefs.h <<_ACEOF
10528 #define HAVE_FT_TRUETYPEENGINETYPE 1
10529 _ACEOF
10530
10531
10532 fi
10533
10534         ac_save_CFLAGS="$CFLAGS"
10535         CFLAGS="$CFLAGS $ac_freetype_libs"
10536         for ac_func in FT_Load_Sfnt_Table
10537 do :
10538   ac_fn_c_check_func "$LINENO" "FT_Load_Sfnt_Table" "ac_cv_func_FT_Load_Sfnt_Table"
10539 if test "x$ac_cv_func_FT_Load_Sfnt_Table" = xyes; then :
10540   cat >>confdefs.h <<_ACEOF
10541 #define HAVE_FT_LOAD_SFNT_TABLE 1
10542 _ACEOF
10543
10544 fi
10545 done
10546
10547         CFLAGS="$ac_save_CFLAGS"
10548         CPPFLAGS="$ac_save_CPPFLAGS"
10549                 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
10550         then
10551
10552 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
10553
10554             FREETYPELIBS="$ac_freetype_libs"
10555
10556             FREETYPEINCL="$ac_freetype_incl"
10557
10558         fi
10559     fi
10560 fi
10561 if test "x$FREETYPELIBS" = "x"; then :
10562   case "x$with_freetype" in
10563   xno) ;;
10564   *)   as_fn_error $? "FreeType ${notice_platform}development files not found. Fonts will not be built.
10565 Use the --without-freetype option if you really want this." "$LINENO" 5 ;;
10566 esac
10567 fi
10568 test "x$FREETYPELIBS" = "x" && enable_fonts=${enable_fonts:-no}
10569
10570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for parport header/ppdev.h" >&5
10571 $as_echo_n "checking for parport header/ppdev.h... " >&6; }
10572 if ${ac_cv_c_ppdev+:} false; then :
10573   $as_echo_n "(cached) " >&6
10574 else
10575   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10576 /* end confdefs.h.  */
10577 #ifdef HAVE_SYS_IOCTL_H
10578 # include <sys/ioctl.h>
10579 #endif
10580 #include <linux/ppdev.h>
10581 int
10582 main ()
10583 {
10584 ioctl (1,PPCLAIM,0)
10585   ;
10586   return 0;
10587 }
10588 _ACEOF
10589 if ac_fn_c_try_compile "$LINENO"; then :
10590   ac_cv_c_ppdev="yes"
10591 else
10592   ac_cv_c_ppdev="no"
10593 fi
10594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10595 fi
10596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_ppdev" >&5
10597 $as_echo "$ac_cv_c_ppdev" >&6; }
10598 if test "$ac_cv_c_ppdev" = "yes"
10599 then
10600
10601 $as_echo "#define HAVE_PPDEV 1" >>confdefs.h
10602
10603 fi
10604
10605 ac_wine_check_funcs_save_LIBS="$LIBS"
10606 LIBS="$LIBS $LIBPTHREAD"
10607 for ac_func in \
10608         pthread_attr_get_np \
10609         pthread_getattr_np \
10610         pthread_get_stackaddr_np \
10611         pthread_get_stacksize_np
10612 do :
10613   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10614 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10615 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10616   cat >>confdefs.h <<_ACEOF
10617 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10618 _ACEOF
10619
10620 fi
10621 done
10622
10623 LIBS="$ac_wine_check_funcs_save_LIBS"
10624
10625 if test "$ac_cv_header_zlib_h" = "yes"
10626 then
10627     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
10628 $as_echo_n "checking for inflate in -lz... " >&6; }
10629 if ${ac_cv_lib_z_inflate+:} false; then :
10630   $as_echo_n "(cached) " >&6
10631 else
10632   ac_check_lib_save_LIBS=$LIBS
10633 LIBS="-lz  $LIBS"
10634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10635 /* end confdefs.h.  */
10636
10637 /* Override any GCC internal prototype to avoid an error.
10638    Use char because int might match the return type of a GCC
10639    builtin and then its argument prototype would still apply.  */
10640 #ifdef __cplusplus
10641 extern "C"
10642 #endif
10643 char inflate ();
10644 int
10645 main ()
10646 {
10647 return inflate ();
10648   ;
10649   return 0;
10650 }
10651 _ACEOF
10652 if ac_fn_c_try_link "$LINENO"; then :
10653   ac_cv_lib_z_inflate=yes
10654 else
10655   ac_cv_lib_z_inflate=no
10656 fi
10657 rm -f core conftest.err conftest.$ac_objext \
10658     conftest$ac_exeext conftest.$ac_ext
10659 LIBS=$ac_check_lib_save_LIBS
10660 fi
10661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
10662 $as_echo "$ac_cv_lib_z_inflate" >&6; }
10663 if test "x$ac_cv_lib_z_inflate" = xyes; then :
10664
10665 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
10666
10667                             ZLIB="-lz"
10668
10669 fi
10670
10671 fi
10672 if test "x$ZLIB" = "x"; then :
10673   case "x$with_zlib" in
10674   x)   as_fn_append wine_notices "|libz ${notice_platform}development files not found, data compression won't be supported." ;;
10675   xno) ;;
10676   *)   as_fn_error $? "libz ${notice_platform}development files not found, data compression won't be supported.
10677 This is an error since --with-zlib was requested." "$LINENO" 5 ;;
10678 esac
10679 fi
10680
10681 if test "x$enable_tools" != xno
10682 then
10683     if test "$ac_cv_header_gettext_po_h" = "yes"
10684     then
10685         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for po_message_msgctxt in -lgettextpo" >&5
10686 $as_echo_n "checking for po_message_msgctxt in -lgettextpo... " >&6; }
10687 if ${ac_cv_lib_gettextpo_po_message_msgctxt+:} false; then :
10688   $as_echo_n "(cached) " >&6
10689 else
10690   ac_check_lib_save_LIBS=$LIBS
10691 LIBS="-lgettextpo  $LIBS"
10692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10693 /* end confdefs.h.  */
10694
10695 /* Override any GCC internal prototype to avoid an error.
10696    Use char because int might match the return type of a GCC
10697    builtin and then its argument prototype would still apply.  */
10698 #ifdef __cplusplus
10699 extern "C"
10700 #endif
10701 char po_message_msgctxt ();
10702 int
10703 main ()
10704 {
10705 return po_message_msgctxt ();
10706   ;
10707   return 0;
10708 }
10709 _ACEOF
10710 if ac_fn_c_try_link "$LINENO"; then :
10711   ac_cv_lib_gettextpo_po_message_msgctxt=yes
10712 else
10713   ac_cv_lib_gettextpo_po_message_msgctxt=no
10714 fi
10715 rm -f core conftest.err conftest.$ac_objext \
10716     conftest$ac_exeext conftest.$ac_ext
10717 LIBS=$ac_check_lib_save_LIBS
10718 fi
10719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gettextpo_po_message_msgctxt" >&5
10720 $as_echo "$ac_cv_lib_gettextpo_po_message_msgctxt" >&6; }
10721 if test "x$ac_cv_lib_gettextpo_po_message_msgctxt" = xyes; then :
10722
10723 $as_echo "#define HAVE_LIBGETTEXTPO 1" >>confdefs.h
10724
10725                       LIBGETTEXTPO="-lgettextpo"
10726
10727 fi
10728
10729     fi
10730     if test "x$LIBGETTEXTPO" = "x"; then :
10731   case "x$with_gettextpo" in
10732   x)   as_fn_append wine_warnings "|GetText ${notice_platform}development files not found (or too old). Internationalization won't be fully supported." ;;
10733   xno) ;;
10734   *)   as_fn_error $? "GetText ${notice_platform}development files not found (or too old). Internationalization won't be fully supported.
10735 This is an error since --with-gettextpo was requested." "$LINENO" 5 ;;
10736 esac
10737 fi
10738 fi
10739
10740 if test "x$with_esd" != xno
10741 then
10742     save_CFLAGS="$CFLAGS"
10743     # Extract the first word of "esd-config", so it can be a program name with args.
10744 set dummy esd-config; ac_word=$2
10745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10746 $as_echo_n "checking for $ac_word... " >&6; }
10747 if ${ac_cv_path_ESDCONFIG+:} false; then :
10748   $as_echo_n "(cached) " >&6
10749 else
10750   case $ESDCONFIG in
10751   [\\/]* | ?:[\\/]*)
10752   ac_cv_path_ESDCONFIG="$ESDCONFIG" # Let the user override the test with a path.
10753   ;;
10754   *)
10755   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10756 for as_dir in $PATH
10757 do
10758   IFS=$as_save_IFS
10759   test -z "$as_dir" && as_dir=.
10760     for ac_exec_ext in '' $ac_executable_extensions; do
10761   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10762     ac_cv_path_ESDCONFIG="$as_dir/$ac_word$ac_exec_ext"
10763     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10764     break 2
10765   fi
10766 done
10767   done
10768 IFS=$as_save_IFS
10769
10770   test -z "$ac_cv_path_ESDCONFIG" && ac_cv_path_ESDCONFIG="no"
10771   ;;
10772 esac
10773 fi
10774 ESDCONFIG=$ac_cv_path_ESDCONFIG
10775 if test -n "$ESDCONFIG"; then
10776   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ESDCONFIG" >&5
10777 $as_echo "$ESDCONFIG" >&6; }
10778 else
10779   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10780 $as_echo "no" >&6; }
10781 fi
10782
10783
10784     if test "x$ESDCONFIG" != "xno"
10785     then
10786         ac_esd_incl=""
10787         for i in `$ESDCONFIG --cflags`
10788         do
10789             case "$i" in
10790                 -I*) ac_esd_incl="$ac_esd_incl $i";;
10791             esac
10792         done
10793         ac_esd_libs=`$ESDCONFIG --libs`
10794         CFLAGS="$CFLAGS $ac_esd_incl"
10795     fi
10796     ac_esd_libs=${ac_esd_libs:-"-lesd"}
10797     ac_fn_c_check_header_mongrel "$LINENO" "esd.h" "ac_cv_header_esd_h" "$ac_includes_default"
10798 if test "x$ac_cv_header_esd_h" = xyes; then :
10799   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for esd_open_sound in -lesd" >&5
10800 $as_echo_n "checking for esd_open_sound in -lesd... " >&6; }
10801 if ${ac_cv_lib_esd_esd_open_sound+:} false; then :
10802   $as_echo_n "(cached) " >&6
10803 else
10804   ac_check_lib_save_LIBS=$LIBS
10805 LIBS="-lesd $ac_esd_libs $LIBS"
10806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10807 /* end confdefs.h.  */
10808
10809 /* Override any GCC internal prototype to avoid an error.
10810    Use char because int might match the return type of a GCC
10811    builtin and then its argument prototype would still apply.  */
10812 #ifdef __cplusplus
10813 extern "C"
10814 #endif
10815 char esd_open_sound ();
10816 int
10817 main ()
10818 {
10819 return esd_open_sound ();
10820   ;
10821   return 0;
10822 }
10823 _ACEOF
10824 if ac_fn_c_try_link "$LINENO"; then :
10825   ac_cv_lib_esd_esd_open_sound=yes
10826 else
10827   ac_cv_lib_esd_esd_open_sound=no
10828 fi
10829 rm -f core conftest.err conftest.$ac_objext \
10830     conftest$ac_exeext conftest.$ac_ext
10831 LIBS=$ac_check_lib_save_LIBS
10832 fi
10833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_esd_esd_open_sound" >&5
10834 $as_echo "$ac_cv_lib_esd_esd_open_sound" >&6; }
10835 if test "x$ac_cv_lib_esd_esd_open_sound" = xyes; then :
10836   ESDINCL="$ac_esd_incl"
10837
10838              ESDLIBS="$ac_esd_libs"
10839
10840 fi
10841
10842 fi
10843
10844
10845     CFLAGS="$save_CFLAGS"
10846 fi
10847
10848 if test "x$with_gstreamer" != "xno"
10849 then
10850     ac_save_CPPFLAGS="$CPPFLAGS"
10851     if test "$PKG_CONFIG" != "false"; then
10852         ac_gst_incl=""
10853         for i in `$PKG_CONFIG --cflags gstreamer-app-0.10 2>/dev/null`
10854         do
10855             case "$i" in
10856                 -I*) ac_gst_incl="$ac_gst_incl $i";;
10857             esac
10858         done
10859         ac_gst_libs="`$PKG_CONFIG --libs gstreamer-app-0.10 2>/dev/null`"
10860         CPPFLAGS="$CPPFLAGS $ac_gst_incl"
10861         ac_fn_c_check_header_mongrel "$LINENO" "gst/gstpad.h" "ac_cv_header_gst_gstpad_h" "$ac_includes_default"
10862 if test "x$ac_cv_header_gst_gstpad_h" = xyes; then :
10863   ac_fn_c_check_header_mongrel "$LINENO" "gst/app/gstappsink.h" "ac_cv_header_gst_app_gstappsink_h" "$ac_includes_default"
10864 if test "x$ac_cv_header_gst_app_gstappsink_h" = xyes; then :
10865   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_pad_get_caps_reffed in -lgstreamer-0.10" >&5
10866 $as_echo_n "checking for gst_pad_get_caps_reffed in -lgstreamer-0.10... " >&6; }
10867 if ${ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed+:} false; then :
10868   $as_echo_n "(cached) " >&6
10869 else
10870   ac_check_lib_save_LIBS=$LIBS
10871 LIBS="-lgstreamer-0.10  $LIBS"
10872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10873 /* end confdefs.h.  */
10874
10875 /* Override any GCC internal prototype to avoid an error.
10876    Use char because int might match the return type of a GCC
10877    builtin and then its argument prototype would still apply.  */
10878 #ifdef __cplusplus
10879 extern "C"
10880 #endif
10881 char gst_pad_get_caps_reffed ();
10882 int
10883 main ()
10884 {
10885 return gst_pad_get_caps_reffed ();
10886   ;
10887   return 0;
10888 }
10889 _ACEOF
10890 if ac_fn_c_try_link "$LINENO"; then :
10891   ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=yes
10892 else
10893   ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=no
10894 fi
10895 rm -f core conftest.err conftest.$ac_objext \
10896     conftest$ac_exeext conftest.$ac_ext
10897 LIBS=$ac_check_lib_save_LIBS
10898 fi
10899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&5
10900 $as_echo "$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&6; }
10901 if test "x$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" = xyes; then :
10902   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_app_buffer_new in -lgstapp-0.10" >&5
10903 $as_echo_n "checking for gst_app_buffer_new in -lgstapp-0.10... " >&6; }
10904 if ${ac_cv_lib_gstapp_0_10_gst_app_buffer_new+:} false; then :
10905   $as_echo_n "(cached) " >&6
10906 else
10907   ac_check_lib_save_LIBS=$LIBS
10908 LIBS="-lgstapp-0.10 $ac_gst_libs $LIBS"
10909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10910 /* end confdefs.h.  */
10911
10912 /* Override any GCC internal prototype to avoid an error.
10913    Use char because int might match the return type of a GCC
10914    builtin and then its argument prototype would still apply.  */
10915 #ifdef __cplusplus
10916 extern "C"
10917 #endif
10918 char gst_app_buffer_new ();
10919 int
10920 main ()
10921 {
10922 return gst_app_buffer_new ();
10923   ;
10924   return 0;
10925 }
10926 _ACEOF
10927 if ac_fn_c_try_link "$LINENO"; then :
10928   ac_cv_lib_gstapp_0_10_gst_app_buffer_new=yes
10929 else
10930   ac_cv_lib_gstapp_0_10_gst_app_buffer_new=no
10931 fi
10932 rm -f core conftest.err conftest.$ac_objext \
10933     conftest$ac_exeext conftest.$ac_ext
10934 LIBS=$ac_check_lib_save_LIBS
10935 fi
10936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&5
10937 $as_echo "$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&6; }
10938 if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = xyes; then :
10939   GSTREAMER_LIBS="$ac_gst_libs"
10940
10941                      GSTREAMER_INCL="$ac_gst_incl"
10942
10943 fi
10944
10945 fi
10946
10947 fi
10948
10949
10950 fi
10951
10952
10953     fi
10954     CPPFLAGS="$ac_save_CPPFLAGS"
10955 fi
10956 if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" != xyes -a "x$ac_cv_header_QuickTime_ImageCompression_h" != xyes; then :
10957   case "x$with_gstreamer" in
10958   x)   as_fn_append wine_notices "|gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled" ;;
10959   xno) ;;
10960   *)   as_fn_error $? "gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled
10961 This is an error since --with-gstreamer was requested." "$LINENO" 5 ;;
10962 esac
10963 fi
10964 test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = xyes || enable_winegstreamer=${enable_winegstreamer:-no}
10965
10966 ALSALIBS=""
10967
10968 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
10969 then
10970     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_hw_params_get_access_mask in -lasound" >&5
10971 $as_echo_n "checking for snd_pcm_hw_params_get_access_mask in -lasound... " >&6; }
10972 if ${ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask+:} false; then :
10973   $as_echo_n "(cached) " >&6
10974 else
10975   ac_check_lib_save_LIBS=$LIBS
10976 LIBS="-lasound  $LIBS"
10977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10978 /* end confdefs.h.  */
10979
10980 /* Override any GCC internal prototype to avoid an error.
10981    Use char because int might match the return type of a GCC
10982    builtin and then its argument prototype would still apply.  */
10983 #ifdef __cplusplus
10984 extern "C"
10985 #endif
10986 char snd_pcm_hw_params_get_access_mask ();
10987 int
10988 main ()
10989 {
10990 return snd_pcm_hw_params_get_access_mask ();
10991   ;
10992   return 0;
10993 }
10994 _ACEOF
10995 if ac_fn_c_try_link "$LINENO"; then :
10996   ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=yes
10997 else
10998   ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=no
10999 fi
11000 rm -f core conftest.err conftest.$ac_objext \
11001     conftest$ac_exeext conftest.$ac_ext
11002 LIBS=$ac_check_lib_save_LIBS
11003 fi
11004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&5
11005 $as_echo "$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&6; }
11006 if test "x$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" = xyes; then :
11007   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11008 /* end confdefs.h.  */
11009 #ifdef HAVE_ALSA_ASOUNDLIB_H
11010 #include <alsa/asoundlib.h>
11011 #elif defined(HAVE_SYS_ASOUNDLIB_H)
11012 #include <sys/asoundlib.h>
11013 #endif
11014 int
11015 main ()
11016 {
11017 int ret = snd_pcm_hw_params_get_access_mask(NULL, NULL)
11018   ;
11019   return 0;
11020 }
11021 _ACEOF
11022 if ac_fn_c_try_compile "$LINENO"; then :
11023   ALSALIBS="-lasound"
11024 fi
11025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11026 fi
11027
11028 fi
11029
11030
11031 if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes"
11032 then
11033     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcapi20" >&5
11034 $as_echo_n "checking for -lcapi20... " >&6; }
11035 if ${ac_cv_lib_soname_capi20+:} false; then :
11036   $as_echo_n "(cached) " >&6
11037 else
11038   ac_check_soname_save_LIBS=$LIBS
11039 LIBS="-lcapi20  $LIBS"
11040   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11041 /* end confdefs.h.  */
11042
11043 /* Override any GCC internal prototype to avoid an error.
11044    Use char because int might match the return type of a GCC
11045    builtin and then its argument prototype would still apply.  */
11046 #ifdef __cplusplus
11047 extern "C"
11048 #endif
11049 char capi20_register ();
11050 int
11051 main ()
11052 {
11053 return capi20_register ();
11054   ;
11055   return 0;
11056 }
11057 _ACEOF
11058 if ac_fn_c_try_link "$LINENO"; then :
11059   case "$LIBEXT" in
11060     dll) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest.exe | grep "capi20" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11061     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'` ;;
11062     *) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcapi20\\.$LIBEXT" | sed -e "s/^.*\(libcapi20\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'` ;;
11063   esac
11064 fi
11065 rm -f core conftest.err conftest.$ac_objext \
11066     conftest$ac_exeext conftest.$ac_ext
11067   LIBS=$ac_check_soname_save_LIBS
11068 fi
11069 if test "x$ac_cv_lib_soname_capi20" = "x"; then :
11070   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11071 $as_echo "not found" >&6; }
11072
11073 else
11074   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_capi20" >&5
11075 $as_echo "$ac_cv_lib_soname_capi20" >&6; }
11076
11077 cat >>confdefs.h <<_ACEOF
11078 #define SONAME_LIBCAPI20 "$ac_cv_lib_soname_capi20"
11079 _ACEOF
11080
11081
11082 fi
11083 fi
11084 if test "x$ac_cv_lib_soname_capi20" = "x"; then :
11085   case "x$with_capi" in
11086   x)   as_fn_append wine_notices "|libcapi20 ${notice_platform}development files not found, ISDN won't be supported." ;;
11087   xno) ;;
11088   *)   as_fn_error $? "libcapi20 ${notice_platform}development files not found, ISDN won't be supported.
11089 This is an error since --with-capi was requested." "$LINENO" 5 ;;
11090 esac
11091 fi
11092
11093 CUPSINCL=""
11094
11095 if test "x$with_cups" != "xno"
11096 then
11097     ac_save_CPPFLAGS="$CPPFLAGS"
11098     ac_cups_cflags=`cups-config --cflags 2>/dev/null`
11099     ac_cups_libs=`cups-config --ldflags 2>/dev/null`
11100     CPPFLAGS="$CPPFLAGS $ac_cups_cflags"
11101     for ac_header in cups/cups.h
11102 do :
11103   ac_fn_c_check_header_mongrel "$LINENO" "cups/cups.h" "ac_cv_header_cups_cups_h" "$ac_includes_default"
11104 if test "x$ac_cv_header_cups_cups_h" = xyes; then :
11105   cat >>confdefs.h <<_ACEOF
11106 #define HAVE_CUPS_CUPS_H 1
11107 _ACEOF
11108  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcups" >&5
11109 $as_echo_n "checking for -lcups... " >&6; }
11110 if ${ac_cv_lib_soname_cups+:} false; then :
11111   $as_echo_n "(cached) " >&6
11112 else
11113   ac_check_soname_save_LIBS=$LIBS
11114 LIBS="-lcups $ac_cups_libs $LIBS"
11115   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11116 /* end confdefs.h.  */
11117
11118 /* Override any GCC internal prototype to avoid an error.
11119    Use char because int might match the return type of a GCC
11120    builtin and then its argument prototype would still apply.  */
11121 #ifdef __cplusplus
11122 extern "C"
11123 #endif
11124 char cupsGetDefault ();
11125 int
11126 main ()
11127 {
11128 return cupsGetDefault ();
11129   ;
11130   return 0;
11131 }
11132 _ACEOF
11133 if ac_fn_c_try_link "$LINENO"; then :
11134   case "$LIBEXT" in
11135     dll) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest.exe | grep "cups" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11136     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'` ;;
11137     *) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcups\\.$LIBEXT" | sed -e "s/^.*\(libcups\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
11138   esac
11139 fi
11140 rm -f core conftest.err conftest.$ac_objext \
11141     conftest$ac_exeext conftest.$ac_ext
11142   LIBS=$ac_check_soname_save_LIBS
11143 fi
11144 if test "x$ac_cv_lib_soname_cups" = "x"; then :
11145   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11146 $as_echo "not found" >&6; }
11147
11148 else
11149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_cups" >&5
11150 $as_echo "$ac_cv_lib_soname_cups" >&6; }
11151
11152 cat >>confdefs.h <<_ACEOF
11153 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
11154 _ACEOF
11155
11156        CUPSINCL="$ac_cups_cflags"
11157 fi
11158 fi
11159
11160 done
11161
11162     CPPFLAGS="$ac_save_CPPFLAGS"
11163 fi
11164 if test "x$ac_cv_lib_soname_cups" = "x"; then :
11165   case "x$with_cups" in
11166   x)   as_fn_append wine_notices "|libcups ${notice_platform}development files not found, CUPS won't be supported." ;;
11167   xno) ;;
11168   *)   as_fn_error $? "libcups ${notice_platform}development files not found, CUPS won't be supported.
11169 This is an error since --with-cups was requested." "$LINENO" 5 ;;
11170 esac
11171 fi
11172
11173 if test "$ac_cv_header_jack_jack_h" = "yes"
11174 then
11175     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ljack" >&5
11176 $as_echo_n "checking for -ljack... " >&6; }
11177 if ${ac_cv_lib_soname_jack+:} false; then :
11178   $as_echo_n "(cached) " >&6
11179 else
11180   ac_check_soname_save_LIBS=$LIBS
11181 LIBS="-ljack  $LIBS"
11182   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11183 /* end confdefs.h.  */
11184
11185 /* Override any GCC internal prototype to avoid an error.
11186    Use char because int might match the return type of a GCC
11187    builtin and then its argument prototype would still apply.  */
11188 #ifdef __cplusplus
11189 extern "C"
11190 #endif
11191 char jack_client_new ();
11192 int
11193 main ()
11194 {
11195 return jack_client_new ();
11196   ;
11197   return 0;
11198 }
11199 _ACEOF
11200 if ac_fn_c_try_link "$LINENO"; then :
11201   case "$LIBEXT" in
11202     dll) ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest.exe | grep "jack" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11203     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'` ;;
11204     *) 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'` ;;
11205   esac
11206 fi
11207 rm -f core conftest.err conftest.$ac_objext \
11208     conftest$ac_exeext conftest.$ac_ext
11209   LIBS=$ac_check_soname_save_LIBS
11210 fi
11211 if test "x$ac_cv_lib_soname_jack" = "x"; then :
11212   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11213 $as_echo "not found" >&6; }
11214
11215 else
11216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_jack" >&5
11217 $as_echo "$ac_cv_lib_soname_jack" >&6; }
11218
11219 cat >>confdefs.h <<_ACEOF
11220 #define SONAME_LIBJACK "$ac_cv_lib_soname_jack"
11221 _ACEOF
11222
11223
11224 fi
11225 fi
11226
11227 if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
11228 then
11229     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
11230 $as_echo_n "checking for -lfontconfig... " >&6; }
11231 if ${ac_cv_lib_soname_fontconfig+:} false; then :
11232   $as_echo_n "(cached) " >&6
11233 else
11234   ac_check_soname_save_LIBS=$LIBS
11235 LIBS="-lfontconfig  $LIBS"
11236   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11237 /* end confdefs.h.  */
11238
11239 /* Override any GCC internal prototype to avoid an error.
11240    Use char because int might match the return type of a GCC
11241    builtin and then its argument prototype would still apply.  */
11242 #ifdef __cplusplus
11243 extern "C"
11244 #endif
11245 char FcInit ();
11246 int
11247 main ()
11248 {
11249 return FcInit ();
11250   ;
11251   return 0;
11252 }
11253 _ACEOF
11254 if ac_fn_c_try_link "$LINENO"; then :
11255   case "$LIBEXT" in
11256     dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11257     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'` ;;
11258     *) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'` ;;
11259   esac
11260 fi
11261 rm -f core conftest.err conftest.$ac_objext \
11262     conftest$ac_exeext conftest.$ac_ext
11263   LIBS=$ac_check_soname_save_LIBS
11264 fi
11265 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11266   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11267 $as_echo "not found" >&6; }
11268
11269 else
11270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
11271 $as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
11272
11273 cat >>confdefs.h <<_ACEOF
11274 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
11275 _ACEOF
11276
11277
11278 fi
11279 elif test -n "$X_CFLAGS" -a "x$with_fontconfig" != "xno"
11280 then
11281         ac_save_CPPFLAGS="$CPPFLAGS"
11282     CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11283     $as_unset ac_cv_header_fontconfig_fontconfig_h
11284     for ac_header in fontconfig/fontconfig.h
11285 do :
11286   ac_fn_c_check_header_mongrel "$LINENO" "fontconfig/fontconfig.h" "ac_cv_header_fontconfig_fontconfig_h" "$ac_includes_default"
11287 if test "x$ac_cv_header_fontconfig_fontconfig_h" = xyes; then :
11288   cat >>confdefs.h <<_ACEOF
11289 #define HAVE_FONTCONFIG_FONTCONFIG_H 1
11290 _ACEOF
11291
11292 fi
11293
11294 done
11295
11296     CPPFLAGS="$ac_save_CPPFLAGS"
11297     if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
11298     then
11299         FONTCONFIGINCL="$X_CFLAGS"
11300
11301         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
11302 $as_echo_n "checking for -lfontconfig... " >&6; }
11303 if ${ac_cv_lib_soname_fontconfig+:} false; then :
11304   $as_echo_n "(cached) " >&6
11305 else
11306   ac_check_soname_save_LIBS=$LIBS
11307 LIBS="-lfontconfig $X_LIBS $LIBS"
11308   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11309 /* end confdefs.h.  */
11310
11311 /* Override any GCC internal prototype to avoid an error.
11312    Use char because int might match the return type of a GCC
11313    builtin and then its argument prototype would still apply.  */
11314 #ifdef __cplusplus
11315 extern "C"
11316 #endif
11317 char FcInit ();
11318 int
11319 main ()
11320 {
11321 return FcInit ();
11322   ;
11323   return 0;
11324 }
11325 _ACEOF
11326 if ac_fn_c_try_link "$LINENO"; then :
11327   case "$LIBEXT" in
11328     dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11329     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'` ;;
11330     *) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^        ]*\).*$/\1/"';2,$d'` ;;
11331   esac
11332 fi
11333 rm -f core conftest.err conftest.$ac_objext \
11334     conftest$ac_exeext conftest.$ac_ext
11335   LIBS=$ac_check_soname_save_LIBS
11336 fi
11337 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11339 $as_echo "not found" >&6; }
11340
11341 else
11342   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
11343 $as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
11344
11345 cat >>confdefs.h <<_ACEOF
11346 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
11347 _ACEOF
11348
11349
11350 fi
11351     fi
11352 fi
11353 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11354   case "x$with_fontconfig" in
11355   x)   as_fn_append wine_notices "|fontconfig ${notice_platform}development files not found, fontconfig won't be supported." ;;
11356   xno) ;;
11357   *)   as_fn_error $? "fontconfig ${notice_platform}development files not found, fontconfig won't be supported.
11358 This is an error since --with-fontconfig was requested." "$LINENO" 5 ;;
11359 esac
11360 fi
11361
11362 if test "$ac_cv_header_openssl_err_h" = "yes" -a "$ac_cv_header_openssl_ssl_h" = "yes"
11363 then
11364     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lssl" >&5
11365 $as_echo_n "checking for -lssl... " >&6; }
11366 if ${ac_cv_lib_soname_ssl+:} false; then :
11367   $as_echo_n "(cached) " >&6
11368 else
11369   ac_check_soname_save_LIBS=$LIBS
11370 LIBS="-lssl  $LIBS"
11371   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11372 /* end confdefs.h.  */
11373
11374 /* Override any GCC internal prototype to avoid an error.
11375    Use char because int might match the return type of a GCC
11376    builtin and then its argument prototype would still apply.  */
11377 #ifdef __cplusplus
11378 extern "C"
11379 #endif
11380 char SSL_library_init ();
11381 int
11382 main ()
11383 {
11384 return SSL_library_init ();
11385   ;
11386   return 0;
11387 }
11388 _ACEOF
11389 if ac_fn_c_try_link "$LINENO"; then :
11390   case "$LIBEXT" in
11391     dll) ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest.exe | grep "ssl" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11392     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'` ;;
11393     *) ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep "libssl\\.$LIBEXT" | sed -e "s/^.*\(libssl\.$LIBEXT[^     ]*\).*$/\1/"';2,$d'` ;;
11394   esac
11395 fi
11396 rm -f core conftest.err conftest.$ac_objext \
11397     conftest$ac_exeext conftest.$ac_ext
11398   LIBS=$ac_check_soname_save_LIBS
11399 fi
11400 if test "x$ac_cv_lib_soname_ssl" = "x"; then :
11401   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11402 $as_echo "not found" >&6; }
11403
11404 else
11405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ssl" >&5
11406 $as_echo "$ac_cv_lib_soname_ssl" >&6; }
11407
11408 cat >>confdefs.h <<_ACEOF
11409 #define SONAME_LIBSSL "$ac_cv_lib_soname_ssl"
11410 _ACEOF
11411
11412
11413 fi
11414     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcrypto" >&5
11415 $as_echo_n "checking for -lcrypto... " >&6; }
11416 if ${ac_cv_lib_soname_crypto+:} false; then :
11417   $as_echo_n "(cached) " >&6
11418 else
11419   ac_check_soname_save_LIBS=$LIBS
11420 LIBS="-lcrypto  $LIBS"
11421   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11422 /* end confdefs.h.  */
11423
11424 /* Override any GCC internal prototype to avoid an error.
11425    Use char because int might match the return type of a GCC
11426    builtin and then its argument prototype would still apply.  */
11427 #ifdef __cplusplus
11428 extern "C"
11429 #endif
11430 char BIO_new_socket ();
11431 int
11432 main ()
11433 {
11434 return BIO_new_socket ();
11435   ;
11436   return 0;
11437 }
11438 _ACEOF
11439 if ac_fn_c_try_link "$LINENO"; then :
11440   case "$LIBEXT" in
11441     dll) ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest.exe | grep "crypto" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11442     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'` ;;
11443     *) ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcrypto\\.$LIBEXT" | sed -e "s/^.*\(libcrypto\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'` ;;
11444   esac
11445 fi
11446 rm -f core conftest.err conftest.$ac_objext \
11447     conftest$ac_exeext conftest.$ac_ext
11448   LIBS=$ac_check_soname_save_LIBS
11449 fi
11450 if test "x$ac_cv_lib_soname_crypto" = "x"; then :
11451   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11452 $as_echo "not found" >&6; }
11453
11454 else
11455   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_crypto" >&5
11456 $as_echo "$ac_cv_lib_soname_crypto" >&6; }
11457
11458 cat >>confdefs.h <<_ACEOF
11459 #define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto"
11460 _ACEOF
11461
11462
11463 fi
11464 fi
11465 if test "x$ac_cv_lib_soname_ssl" = "x" -o "x$ac_cv_lib_soname_crypto" = "x"; then :
11466   case "x$with_openssl" in
11467   x)   as_fn_append wine_warnings "|OpenSSL ${notice_platform}development files not found, SSL won't be supported." ;;
11468   xno) ;;
11469   *)   as_fn_error $? "OpenSSL ${notice_platform}development files not found, SSL won't be supported.
11470 This is an error since --with-openssl was requested." "$LINENO" 5 ;;
11471 esac
11472 fi
11473
11474 if test "$ac_cv_header_gsm_h" = "yes" -o "$ac_cv_header_gsm_gsm_h" = "yes"
11475 then
11476     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgsm" >&5
11477 $as_echo_n "checking for -lgsm... " >&6; }
11478 if ${ac_cv_lib_soname_gsm+:} false; then :
11479   $as_echo_n "(cached) " >&6
11480 else
11481   ac_check_soname_save_LIBS=$LIBS
11482 LIBS="-lgsm  $LIBS"
11483   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11484 /* end confdefs.h.  */
11485
11486 /* Override any GCC internal prototype to avoid an error.
11487    Use char because int might match the return type of a GCC
11488    builtin and then its argument prototype would still apply.  */
11489 #ifdef __cplusplus
11490 extern "C"
11491 #endif
11492 char gsm_create ();
11493 int
11494 main ()
11495 {
11496 return gsm_create ();
11497   ;
11498   return 0;
11499 }
11500 _ACEOF
11501 if ac_fn_c_try_link "$LINENO"; then :
11502   case "$LIBEXT" in
11503     dll) ac_cv_lib_soname_gsm=`$ac_cv_path_LDD conftest.exe | grep "gsm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11504     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'` ;;
11505     *) ac_cv_lib_soname_gsm=`$ac_cv_path_LDD conftest$ac_exeext | grep "libgsm\\.$LIBEXT" | sed -e "s/^.*\(libgsm\.$LIBEXT[^     ]*\).*$/\1/"';2,$d'` ;;
11506   esac
11507 fi
11508 rm -f core conftest.err conftest.$ac_objext \
11509     conftest$ac_exeext conftest.$ac_ext
11510   LIBS=$ac_check_soname_save_LIBS
11511 fi
11512 if test "x$ac_cv_lib_soname_gsm" = "x"; then :
11513   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11514 $as_echo "not found" >&6; }
11515
11516 else
11517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gsm" >&5
11518 $as_echo "$ac_cv_lib_soname_gsm" >&6; }
11519
11520 cat >>confdefs.h <<_ACEOF
11521 #define SONAME_LIBGSM "$ac_cv_lib_soname_gsm"
11522 _ACEOF
11523
11524
11525 fi
11526 fi
11527 if test "x$ac_cv_lib_soname_gsm" = "x"; then :
11528   case "x$with_gsm" in
11529   x)   as_fn_append wine_notices "|libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported." ;;
11530   xno) ;;
11531   *)   as_fn_error $? "libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported.
11532 This is an error since --with-gsm was requested." "$LINENO" 5 ;;
11533 esac
11534 fi
11535
11536 if test "$ac_cv_header_jpeglib_h" = "yes"
11537 then
11538     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ljpeg" >&5
11539 $as_echo_n "checking for -ljpeg... " >&6; }
11540 if ${ac_cv_lib_soname_jpeg+:} false; then :
11541   $as_echo_n "(cached) " >&6
11542 else
11543   ac_check_soname_save_LIBS=$LIBS
11544 LIBS="-ljpeg  $LIBS"
11545   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11546 /* end confdefs.h.  */
11547
11548 /* Override any GCC internal prototype to avoid an error.
11549    Use char because int might match the return type of a GCC
11550    builtin and then its argument prototype would still apply.  */
11551 #ifdef __cplusplus
11552 extern "C"
11553 #endif
11554 char jpeg_start_decompress ();
11555 int
11556 main ()
11557 {
11558 return jpeg_start_decompress ();
11559   ;
11560   return 0;
11561 }
11562 _ACEOF
11563 if ac_fn_c_try_link "$LINENO"; then :
11564   case "$LIBEXT" in
11565     dll) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest.exe | grep "jpeg" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11566     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'` ;;
11567     *) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest$ac_exeext | grep "libjpeg\\.$LIBEXT" | sed -e "s/^.*\(libjpeg\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
11568   esac
11569 fi
11570 rm -f core conftest.err conftest.$ac_objext \
11571     conftest$ac_exeext conftest.$ac_ext
11572   LIBS=$ac_check_soname_save_LIBS
11573 fi
11574 if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
11575   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11576 $as_echo "not found" >&6; }
11577
11578 else
11579   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_jpeg" >&5
11580 $as_echo "$ac_cv_lib_soname_jpeg" >&6; }
11581
11582 cat >>confdefs.h <<_ACEOF
11583 #define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg"
11584 _ACEOF
11585
11586
11587 fi
11588 fi
11589 if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
11590   case "x$with_jpeg" in
11591   x)   as_fn_append wine_warnings "|libjpeg ${notice_platform}development files not found, JPEG won't be supported." ;;
11592   xno) ;;
11593   *)   as_fn_error $? "libjpeg ${notice_platform}development files not found, JPEG won't be supported.
11594 This is an error since --with-jpeg was requested." "$LINENO" 5 ;;
11595 esac
11596 fi
11597
11598 if test "$ac_cv_header_png_h" = "yes"
11599 then
11600     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
11601 $as_echo_n "checking for -lpng... " >&6; }
11602 if ${ac_cv_lib_soname_png+:} false; then :
11603   $as_echo_n "(cached) " >&6
11604 else
11605   ac_check_soname_save_LIBS=$LIBS
11606 LIBS="-lpng -lm -lz $LIBS"
11607   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11608 /* end confdefs.h.  */
11609
11610 /* Override any GCC internal prototype to avoid an error.
11611    Use char because int might match the return type of a GCC
11612    builtin and then its argument prototype would still apply.  */
11613 #ifdef __cplusplus
11614 extern "C"
11615 #endif
11616 char png_create_read_struct ();
11617 int
11618 main ()
11619 {
11620 return png_create_read_struct ();
11621   ;
11622   return 0;
11623 }
11624 _ACEOF
11625 if ac_fn_c_try_link "$LINENO"; then :
11626   case "$LIBEXT" in
11627     dll) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest.exe | grep "png" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11628     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'` ;;
11629     *) 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'` ;;
11630   esac
11631 fi
11632 rm -f core conftest.err conftest.$ac_objext \
11633     conftest$ac_exeext conftest.$ac_ext
11634   LIBS=$ac_check_soname_save_LIBS
11635 fi
11636 if test "x$ac_cv_lib_soname_png" = "x"; then :
11637   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11638 $as_echo "not found" >&6; }
11639
11640 else
11641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
11642 $as_echo "$ac_cv_lib_soname_png" >&6; }
11643
11644 cat >>confdefs.h <<_ACEOF
11645 #define SONAME_LIBPNG "$ac_cv_lib_soname_png"
11646 _ACEOF
11647
11648
11649 fi
11650     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5
11651 $as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; }
11652 if ${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+:} false; then :
11653   $as_echo_n "(cached) " >&6
11654 else
11655   ac_check_lib_save_LIBS=$LIBS
11656 LIBS="-lpng -lm -lz $LIBS"
11657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11658 /* end confdefs.h.  */
11659
11660 /* Override any GCC internal prototype to avoid an error.
11661    Use char because int might match the return type of a GCC
11662    builtin and then its argument prototype would still apply.  */
11663 #ifdef __cplusplus
11664 extern "C"
11665 #endif
11666 char png_set_expand_gray_1_2_4_to_8 ();
11667 int
11668 main ()
11669 {
11670 return png_set_expand_gray_1_2_4_to_8 ();
11671   ;
11672   return 0;
11673 }
11674 _ACEOF
11675 if ac_fn_c_try_link "$LINENO"; then :
11676   ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes
11677 else
11678   ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no
11679 fi
11680 rm -f core conftest.err conftest.$ac_objext \
11681     conftest$ac_exeext conftest.$ac_ext
11682 LIBS=$ac_check_lib_save_LIBS
11683 fi
11684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5
11685 $as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; }
11686 if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = xyes; then :
11687
11688 $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
11689
11690
11691 fi
11692
11693 elif test -n "$X_CFLAGS" -a "x$with_png" != "xno"
11694 then
11695         ac_save_CPPFLAGS="$CPPFLAGS"
11696     CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11697     $as_unset ac_cv_header_png_h
11698     for ac_header in png.h
11699 do :
11700   ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
11701 if test "x$ac_cv_header_png_h" = xyes; then :
11702   cat >>confdefs.h <<_ACEOF
11703 #define HAVE_PNG_H 1
11704 _ACEOF
11705
11706 fi
11707
11708 done
11709
11710     CPPFLAGS="$ac_save_CPPFLAGS"
11711     if test "$ac_cv_header_png_h" = "yes"
11712     then
11713         PNGINCL="$X_CFLAGS"
11714
11715         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
11716 $as_echo_n "checking for -lpng... " >&6; }
11717 if ${ac_cv_lib_soname_png+:} false; then :
11718   $as_echo_n "(cached) " >&6
11719 else
11720   ac_check_soname_save_LIBS=$LIBS
11721 LIBS="-lpng $X_LIBS -lm -lz $LIBS"
11722   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11723 /* end confdefs.h.  */
11724
11725 /* Override any GCC internal prototype to avoid an error.
11726    Use char because int might match the return type of a GCC
11727    builtin and then its argument prototype would still apply.  */
11728 #ifdef __cplusplus
11729 extern "C"
11730 #endif
11731 char png_create_read_struct ();
11732 int
11733 main ()
11734 {
11735 return png_create_read_struct ();
11736   ;
11737   return 0;
11738 }
11739 _ACEOF
11740 if ac_fn_c_try_link "$LINENO"; then :
11741   case "$LIBEXT" in
11742     dll) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest.exe | grep "png" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11743     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'` ;;
11744     *) 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'` ;;
11745   esac
11746 fi
11747 rm -f core conftest.err conftest.$ac_objext \
11748     conftest$ac_exeext conftest.$ac_ext
11749   LIBS=$ac_check_soname_save_LIBS
11750 fi
11751 if test "x$ac_cv_lib_soname_png" = "x"; then :
11752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11753 $as_echo "not found" >&6; }
11754
11755 else
11756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
11757 $as_echo "$ac_cv_lib_soname_png" >&6; }
11758
11759 cat >>confdefs.h <<_ACEOF
11760 #define SONAME_LIBPNG "$ac_cv_lib_soname_png"
11761 _ACEOF
11762
11763
11764 fi
11765         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5
11766 $as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; }
11767 if ${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+:} false; then :
11768   $as_echo_n "(cached) " >&6
11769 else
11770   ac_check_lib_save_LIBS=$LIBS
11771 LIBS="-lpng $X_LIBS -lm -lz $LIBS"
11772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11773 /* end confdefs.h.  */
11774
11775 /* Override any GCC internal prototype to avoid an error.
11776    Use char because int might match the return type of a GCC
11777    builtin and then its argument prototype would still apply.  */
11778 #ifdef __cplusplus
11779 extern "C"
11780 #endif
11781 char png_set_expand_gray_1_2_4_to_8 ();
11782 int
11783 main ()
11784 {
11785 return png_set_expand_gray_1_2_4_to_8 ();
11786   ;
11787   return 0;
11788 }
11789 _ACEOF
11790 if ac_fn_c_try_link "$LINENO"; then :
11791   ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes
11792 else
11793   ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no
11794 fi
11795 rm -f core conftest.err conftest.$ac_objext \
11796     conftest$ac_exeext conftest.$ac_ext
11797 LIBS=$ac_check_lib_save_LIBS
11798 fi
11799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5
11800 $as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; }
11801 if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = xyes; then :
11802   $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
11803
11804 fi
11805
11806     fi
11807 fi
11808 if test "x$ac_cv_lib_soname_png" = "x"; then :
11809   case "x$with_png" in
11810   x)   as_fn_append wine_warnings "|libpng ${notice_platform}development files not found, PNG won't be supported." ;;
11811   xno) ;;
11812   *)   as_fn_error $? "libpng ${notice_platform}development files not found, PNG won't be supported.
11813 This is an error since --with-png was requested." "$LINENO" 5 ;;
11814 esac
11815 fi
11816
11817 if test "$ac_cv_header_tiffio_h" = "yes"
11818 then
11819     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ltiff" >&5
11820 $as_echo_n "checking for -ltiff... " >&6; }
11821 if ${ac_cv_lib_soname_tiff+:} false; then :
11822   $as_echo_n "(cached) " >&6
11823 else
11824   ac_check_soname_save_LIBS=$LIBS
11825 LIBS="-ltiff  $LIBS"
11826   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11827 /* end confdefs.h.  */
11828
11829 /* Override any GCC internal prototype to avoid an error.
11830    Use char because int might match the return type of a GCC
11831    builtin and then its argument prototype would still apply.  */
11832 #ifdef __cplusplus
11833 extern "C"
11834 #endif
11835 char TIFFClientOpen ();
11836 int
11837 main ()
11838 {
11839 return TIFFClientOpen ();
11840   ;
11841   return 0;
11842 }
11843 _ACEOF
11844 if ac_fn_c_try_link "$LINENO"; then :
11845   case "$LIBEXT" in
11846     dll) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest.exe | grep "tiff" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11847     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'` ;;
11848     *) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest$ac_exeext | grep "libtiff\\.$LIBEXT" | sed -e "s/^.*\(libtiff\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
11849   esac
11850 fi
11851 rm -f core conftest.err conftest.$ac_objext \
11852     conftest$ac_exeext conftest.$ac_ext
11853   LIBS=$ac_check_soname_save_LIBS
11854 fi
11855 if test "x$ac_cv_lib_soname_tiff" = "x"; then :
11856   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11857 $as_echo "not found" >&6; }
11858
11859 else
11860   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_tiff" >&5
11861 $as_echo "$ac_cv_lib_soname_tiff" >&6; }
11862
11863 cat >>confdefs.h <<_ACEOF
11864 #define SONAME_LIBTIFF "$ac_cv_lib_soname_tiff"
11865 _ACEOF
11866
11867
11868 fi
11869 fi
11870 if test "x$ac_cv_lib_soname_tiff" = "x"; then :
11871   case "x$with_tiff" in
11872   x)   as_fn_append wine_notices "|libtiff ${notice_platform}development files not found, TIFF won't be supported." ;;
11873   xno) ;;
11874   *)   as_fn_error $? "libtiff ${notice_platform}development files not found, TIFF won't be supported.
11875 This is an error since --with-tiff was requested." "$LINENO" 5 ;;
11876 esac
11877 fi
11878
11879 if test "$ac_cv_header_mpg123_h" = "yes"
11880 then
11881     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpg123_feed in -lmpg123" >&5
11882 $as_echo_n "checking for mpg123_feed in -lmpg123... " >&6; }
11883 if ${ac_cv_lib_mpg123_mpg123_feed+:} false; then :
11884   $as_echo_n "(cached) " >&6
11885 else
11886   ac_check_lib_save_LIBS=$LIBS
11887 LIBS="-lmpg123  $LIBS"
11888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11889 /* end confdefs.h.  */
11890
11891 /* Override any GCC internal prototype to avoid an error.
11892    Use char because int might match the return type of a GCC
11893    builtin and then its argument prototype would still apply.  */
11894 #ifdef __cplusplus
11895 extern "C"
11896 #endif
11897 char mpg123_feed ();
11898 int
11899 main ()
11900 {
11901 return mpg123_feed ();
11902   ;
11903   return 0;
11904 }
11905 _ACEOF
11906 if ac_fn_c_try_link "$LINENO"; then :
11907   ac_cv_lib_mpg123_mpg123_feed=yes
11908 else
11909   ac_cv_lib_mpg123_mpg123_feed=no
11910 fi
11911 rm -f core conftest.err conftest.$ac_objext \
11912     conftest$ac_exeext conftest.$ac_ext
11913 LIBS=$ac_check_lib_save_LIBS
11914 fi
11915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpg123_mpg123_feed" >&5
11916 $as_echo "$ac_cv_lib_mpg123_mpg123_feed" >&6; }
11917 if test "x$ac_cv_lib_mpg123_mpg123_feed" = xyes; then :
11918   LIBMPG123="-lmpg123"
11919
11920 fi
11921
11922 fi
11923 if test "x$ac_cv_lib_mpg123_mpg123_feed" != xyes -a x"$ac_cv_header_CoreAudio_CoreAudio_h" != xyes; then :
11924   case "x$with_mpg123" in
11925   x)   as_fn_append wine_notices "|libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported." ;;
11926   xno) ;;
11927   *)   as_fn_error $? "libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported.
11928 This is an error since --with-mpg123 was requested." "$LINENO" 5 ;;
11929 esac
11930 fi
11931 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}
11932
11933 if test "$ac_cv_header_AL_al_h" = "yes"
11934 then
11935     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lopenal" >&5
11936 $as_echo_n "checking for -lopenal... " >&6; }
11937 if ${ac_cv_lib_soname_openal+:} false; then :
11938   $as_echo_n "(cached) " >&6
11939 else
11940   ac_check_soname_save_LIBS=$LIBS
11941 LIBS="-lopenal  $LIBS"
11942   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11943 /* end confdefs.h.  */
11944
11945 /* Override any GCC internal prototype to avoid an error.
11946    Use char because int might match the return type of a GCC
11947    builtin and then its argument prototype would still apply.  */
11948 #ifdef __cplusplus
11949 extern "C"
11950 #endif
11951 char alGetSource3i ();
11952 int
11953 main ()
11954 {
11955 return alGetSource3i ();
11956   ;
11957   return 0;
11958 }
11959 _ACEOF
11960 if ac_fn_c_try_link "$LINENO"; then :
11961   case "$LIBEXT" in
11962     dll) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest.exe | grep "openal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11963     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'` ;;
11964     *) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest$ac_exeext | grep "libopenal\\.$LIBEXT" | sed -e "s/^.*\(libopenal\.$LIBEXT[^    ]*\).*$/\1/"';2,$d'` ;;
11965   esac
11966 fi
11967 rm -f core conftest.err conftest.$ac_objext \
11968     conftest$ac_exeext conftest.$ac_ext
11969   LIBS=$ac_check_soname_save_LIBS
11970 fi
11971 if test "x$ac_cv_lib_soname_openal" = "x"; then :
11972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11973 $as_echo "not found" >&6; }
11974
11975 else
11976   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_openal" >&5
11977 $as_echo "$ac_cv_lib_soname_openal" >&6; }
11978
11979 cat >>confdefs.h <<_ACEOF
11980 #define SONAME_LIBOPENAL "$ac_cv_lib_soname_openal"
11981 _ACEOF
11982
11983        LIBOPENAL="-lopenal"
11984
11985                       ac_cv_lib_openal=yes
11986
11987 cat >>confdefs.h <<_ACEOF
11988 #define HAVE_OPENAL 1
11989 _ACEOF
11990
11991 fi
11992 fi
11993 if test "x$ac_cv_lib_openal" != xyes; then :
11994   case "x$with_openal" in
11995   x)   as_fn_append wine_notices "|libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported." ;;
11996   xno) ;;
11997   *)   as_fn_error $? "libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported.
11998 This is an error since --with-openal was requested." "$LINENO" 5 ;;
11999 esac
12000 fi
12001 test "x$ac_cv_lib_openal" = xyes || enable_openal32=${enable_openal32:-no}
12002
12003 if test "$ac_cv_header_kstat_h" = "yes"
12004 then
12005     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
12006 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
12007 if ${ac_cv_lib_kstat_kstat_open+:} false; then :
12008   $as_echo_n "(cached) " >&6
12009 else
12010   ac_check_lib_save_LIBS=$LIBS
12011 LIBS="-lkstat  $LIBS"
12012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12013 /* end confdefs.h.  */
12014
12015 /* Override any GCC internal prototype to avoid an error.
12016    Use char because int might match the return type of a GCC
12017    builtin and then its argument prototype would still apply.  */
12018 #ifdef __cplusplus
12019 extern "C"
12020 #endif
12021 char kstat_open ();
12022 int
12023 main ()
12024 {
12025 return kstat_open ();
12026   ;
12027   return 0;
12028 }
12029 _ACEOF
12030 if ac_fn_c_try_link "$LINENO"; then :
12031   ac_cv_lib_kstat_kstat_open=yes
12032 else
12033   ac_cv_lib_kstat_kstat_open=no
12034 fi
12035 rm -f core conftest.err conftest.$ac_objext \
12036     conftest$ac_exeext conftest.$ac_ext
12037 LIBS=$ac_check_lib_save_LIBS
12038 fi
12039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
12040 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
12041 if test "x$ac_cv_lib_kstat_kstat_open" = xyes; then :
12042
12043 $as_echo "#define HAVE_LIBKSTAT 1" >>confdefs.h
12044
12045                   LIBKSTAT="-lkstat"
12046
12047 fi
12048
12049 fi
12050
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lodbc" >&5
12052 $as_echo_n "checking for -lodbc... " >&6; }
12053 if ${ac_cv_lib_soname_odbc+:} false; then :
12054   $as_echo_n "(cached) " >&6
12055 else
12056   ac_check_soname_save_LIBS=$LIBS
12057 LIBS="-lodbc  $LIBS"
12058   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12059 /* end confdefs.h.  */
12060
12061 /* Override any GCC internal prototype to avoid an error.
12062    Use char because int might match the return type of a GCC
12063    builtin and then its argument prototype would still apply.  */
12064 #ifdef __cplusplus
12065 extern "C"
12066 #endif
12067 char SQLConnect ();
12068 int
12069 main ()
12070 {
12071 return SQLConnect ();
12072   ;
12073   return 0;
12074 }
12075 _ACEOF
12076 if ac_fn_c_try_link "$LINENO"; then :
12077   case "$LIBEXT" in
12078     dll) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest.exe | grep "odbc" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12079     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'` ;;
12080     *) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest$ac_exeext | grep "libodbc\\.$LIBEXT" | sed -e "s/^.*\(libodbc\.$LIBEXT[^  ]*\).*$/\1/"';2,$d'` ;;
12081   esac
12082 fi
12083 rm -f core conftest.err conftest.$ac_objext \
12084     conftest$ac_exeext conftest.$ac_ext
12085   LIBS=$ac_check_soname_save_LIBS
12086 fi
12087 if test "x$ac_cv_lib_soname_odbc" = "x"; then :
12088   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12089 $as_echo "not found" >&6; }
12090        cat >>confdefs.h <<_ACEOF
12091 #define SONAME_LIBODBC "libodbc.$LIBEXT"
12092 _ACEOF
12093
12094 else
12095   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_odbc" >&5
12096 $as_echo "$ac_cv_lib_soname_odbc" >&6; }
12097
12098 cat >>confdefs.h <<_ACEOF
12099 #define SONAME_LIBODBC "$ac_cv_lib_soname_odbc"
12100 _ACEOF
12101
12102
12103 fi
12104
12105 test -n "$ALSALIBS" || enable_winealsa_drv=${enable_winealsa_drv:-no}
12106 test -n "$COREAUDIO" || enable_winecoreaudio_drv=${enable_winecoreaudio_drv:-no}
12107 test -n "$NASLIBS" || enable_winenas_drv=${enable_winenas_drv:-no}
12108 test -n "$ESDLIBS" || enable_wineesd_drv=${enable_wineesd_drv:-no}
12109 test -n "$ac_cv_lib_soname_jack" || enable_winejack_drv=${enable_winejack_drv:-no}
12110 test "$ac_cv_header_sys_soundcard_h" = "yes" -o \
12111      "$ac_cv_header_machine_soundcard_h" = "yes" -o \
12112      "$ac_cv_header_soundcard_h" = "yes" || enable_wineoss_drv=${enable_wineoss_drv:-no}
12113 test "$ac_cv_header_linux_joystick_h" = "yes" || enable_winejoystick_drv=${enable_winejoystick_drv:-no}
12114
12115 if test "x$ALSALIBS$COREAUDIO$NASLIBS$ESDLIBS$ac_cv_lib_soname_jack" = "x" -a \
12116         "$ac_cv_header_sys_soundcard_h" != "yes" -a \
12117         "$ac_cv_header_machine_soundcard_h" != "yes" -a \
12118         "$ac_cv_header_soundcard_h" != "yes" -a \
12119         "x$with_alsa$with_coreaudio$with_nas$with_esd$with_jack$with_oss" != xnononononono
12120 then
12121     as_fn_append wine_warnings "|No sound system was found. Windows applications will be silent."
12122 fi
12123
12124
12125 EXTRACFLAGS=""
12126
12127 if test "x${GCC}" = "xyes"
12128 then
12129   EXTRACFLAGS="-Wall -pipe"
12130
12131     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc strength-reduce bug" >&5
12132 $as_echo_n "checking for gcc strength-reduce bug... " >&6; }
12133 if ${ac_cv_c_gcc_strength_bug+:} false; then :
12134   $as_echo_n "(cached) " >&6
12135 else
12136   if test "$cross_compiling" = yes; then :
12137   ac_cv_c_gcc_strength_bug="yes"
12138 else
12139   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12140 /* end confdefs.h.  */
12141 int L[4] = {0,1,2,3};
12142 int
12143 main ()
12144 {
12145 static int Array[3];
12146   unsigned int B = 3;
12147   int i;
12148   for(i=0; i<B; i++) Array[i] = i - 3;
12149   for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
12150   L[i] = 4;
12151   return (Array[1] != -2 || L[2] != 3)
12152   ;
12153   return 0;
12154 }
12155 _ACEOF
12156 if ac_fn_c_try_run "$LINENO"; then :
12157   ac_cv_c_gcc_strength_bug="no"
12158 else
12159   ac_cv_c_gcc_strength_bug="yes"
12160 fi
12161 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12162   conftest.$ac_objext conftest.beam conftest.$ac_ext
12163 fi
12164
12165 fi
12166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gcc_strength_bug" >&5
12167 $as_echo "$ac_cv_c_gcc_strength_bug" >&6; }
12168   if test "$ac_cv_c_gcc_strength_bug" = "yes"
12169   then
12170     EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
12171   fi
12172
12173     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-builtin" >&5
12174 $as_echo_n "checking whether the compiler supports -fno-builtin... " >&6; }
12175 if ${ac_cv_cflags__fno_builtin+:} false; then :
12176   $as_echo_n "(cached) " >&6
12177 else
12178   ac_wine_try_cflags_saved=$CFLAGS
12179 CFLAGS="$CFLAGS -fno-builtin"
12180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12181 /* end confdefs.h.  */
12182 int main(int argc, char **argv) { return 0; }
12183 _ACEOF
12184 if ac_fn_c_try_link "$LINENO"; then :
12185   ac_cv_cflags__fno_builtin=yes
12186 else
12187   ac_cv_cflags__fno_builtin=no
12188 fi
12189 rm -f core conftest.err conftest.$ac_objext \
12190     conftest$ac_exeext conftest.$ac_ext
12191 CFLAGS=$ac_wine_try_cflags_saved
12192 fi
12193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_builtin" >&5
12194 $as_echo "$ac_cv_cflags__fno_builtin" >&6; }
12195 if test $ac_cv_cflags__fno_builtin = yes; then :
12196   BUILTINFLAG="-fno-builtin"
12197
12198 fi
12199   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-strict-aliasing" >&5
12200 $as_echo_n "checking whether the compiler supports -fno-strict-aliasing... " >&6; }
12201 if ${ac_cv_cflags__fno_strict_aliasing+:} false; then :
12202   $as_echo_n "(cached) " >&6
12203 else
12204   ac_wine_try_cflags_saved=$CFLAGS
12205 CFLAGS="$CFLAGS -fno-strict-aliasing"
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__fno_strict_aliasing=yes
12212 else
12213   ac_cv_cflags__fno_strict_aliasing=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__fno_strict_aliasing" >&5
12220 $as_echo "$ac_cv_cflags__fno_strict_aliasing" >&6; }
12221 if test $ac_cv_cflags__fno_strict_aliasing = yes; then :
12222   EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
12223 fi
12224   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wdeclaration-after-statement" >&5
12225 $as_echo_n "checking whether the compiler supports -Wdeclaration-after-statement... " >&6; }
12226 if ${ac_cv_cflags__Wdeclaration_after_statement+:} false; then :
12227   $as_echo_n "(cached) " >&6
12228 else
12229   ac_wine_try_cflags_saved=$CFLAGS
12230 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
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__Wdeclaration_after_statement=yes
12237 else
12238   ac_cv_cflags__Wdeclaration_after_statement=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__Wdeclaration_after_statement" >&5
12245 $as_echo "$ac_cv_cflags__Wdeclaration_after_statement" >&6; }
12246 if test $ac_cv_cflags__Wdeclaration_after_statement = yes; then :
12247   EXTRACFLAGS="$EXTRACFLAGS -Wdeclaration-after-statement"
12248 fi
12249   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wstrict-prototypes" >&5
12250 $as_echo_n "checking whether the compiler supports -Wstrict-prototypes... " >&6; }
12251 if ${ac_cv_cflags__Wstrict_prototypes+:} false; then :
12252   $as_echo_n "(cached) " >&6
12253 else
12254   ac_wine_try_cflags_saved=$CFLAGS
12255 CFLAGS="$CFLAGS -Wstrict-prototypes"
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__Wstrict_prototypes=yes
12262 else
12263   ac_cv_cflags__Wstrict_prototypes=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__Wstrict_prototypes" >&5
12270 $as_echo "$ac_cv_cflags__Wstrict_prototypes" >&6; }
12271 if test $ac_cv_cflags__Wstrict_prototypes = yes; then :
12272   EXTRACFLAGS="$EXTRACFLAGS -Wstrict-prototypes"
12273 fi
12274   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wtype-limits" >&5
12275 $as_echo_n "checking whether the compiler supports -Wtype-limits... " >&6; }
12276 if ${ac_cv_cflags__Wtype_limits+:} false; then :
12277   $as_echo_n "(cached) " >&6
12278 else
12279   ac_wine_try_cflags_saved=$CFLAGS
12280 CFLAGS="$CFLAGS -Wtype-limits"
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__Wtype_limits=yes
12287 else
12288   ac_cv_cflags__Wtype_limits=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__Wtype_limits" >&5
12295 $as_echo "$ac_cv_cflags__Wtype_limits" >&6; }
12296 if test $ac_cv_cflags__Wtype_limits = yes; then :
12297   EXTRACFLAGS="$EXTRACFLAGS -Wtype-limits"
12298 fi
12299   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wunused-but-set-parameter" >&5
12300 $as_echo_n "checking whether the compiler supports -Wunused-but-set-parameter... " >&6; }
12301 if ${ac_cv_cflags__Wunused_but_set_parameter+:} false; then :
12302   $as_echo_n "(cached) " >&6
12303 else
12304   ac_wine_try_cflags_saved=$CFLAGS
12305 CFLAGS="$CFLAGS -Wunused-but-set-parameter"
12306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12307 /* end confdefs.h.  */
12308 int main(int argc, char **argv) { return 0; }
12309 _ACEOF
12310 if ac_fn_c_try_link "$LINENO"; then :
12311   ac_cv_cflags__Wunused_but_set_parameter=yes
12312 else
12313   ac_cv_cflags__Wunused_but_set_parameter=no
12314 fi
12315 rm -f core conftest.err conftest.$ac_objext \
12316     conftest$ac_exeext conftest.$ac_ext
12317 CFLAGS=$ac_wine_try_cflags_saved
12318 fi
12319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wunused_but_set_parameter" >&5
12320 $as_echo "$ac_cv_cflags__Wunused_but_set_parameter" >&6; }
12321 if test $ac_cv_cflags__Wunused_but_set_parameter = yes; then :
12322   EXTRACFLAGS="$EXTRACFLAGS -Wunused-but-set-parameter"
12323 fi
12324   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wwrite-strings" >&5
12325 $as_echo_n "checking whether the compiler supports -Wwrite-strings... " >&6; }
12326 if ${ac_cv_cflags__Wwrite_strings+:} false; then :
12327   $as_echo_n "(cached) " >&6
12328 else
12329   ac_wine_try_cflags_saved=$CFLAGS
12330 CFLAGS="$CFLAGS -Wwrite-strings"
12331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12332 /* end confdefs.h.  */
12333 int main(int argc, char **argv) { return 0; }
12334 _ACEOF
12335 if ac_fn_c_try_link "$LINENO"; then :
12336   ac_cv_cflags__Wwrite_strings=yes
12337 else
12338   ac_cv_cflags__Wwrite_strings=no
12339 fi
12340 rm -f core conftest.err conftest.$ac_objext \
12341     conftest$ac_exeext conftest.$ac_ext
12342 CFLAGS=$ac_wine_try_cflags_saved
12343 fi
12344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wwrite_strings" >&5
12345 $as_echo "$ac_cv_cflags__Wwrite_strings" >&6; }
12346 if test $ac_cv_cflags__Wwrite_strings = yes; then :
12347   EXTRACFLAGS="$EXTRACFLAGS -Wwrite-strings"
12348 fi
12349
12350     saved_CFLAGS="$CFLAGS"
12351   CFLAGS="$CFLAGS -Wpointer-arith -Werror"
12352   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wpointer-arith" >&5
12353 $as_echo_n "checking for broken string.h that generates warnings with -Wpointer-arith... " >&6; }
12354 if ${ac_cv_c_string_h_warnings+:} false; then :
12355   $as_echo_n "(cached) " >&6
12356 else
12357   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12358 /* end confdefs.h.  */
12359 #include <string.h>
12360 int
12361 main ()
12362 {
12363
12364   ;
12365   return 0;
12366 }
12367 _ACEOF
12368 if ac_fn_c_try_compile "$LINENO"; then :
12369   ac_cv_c_string_h_warnings=no
12370 else
12371   ac_cv_c_string_h_warnings=yes
12372 fi
12373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12374 fi
12375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_string_h_warnings" >&5
12376 $as_echo "$ac_cv_c_string_h_warnings" >&6; }
12377   CFLAGS="$saved_CFLAGS"
12378   if test "$ac_cv_c_string_h_warnings" = "no"
12379   then
12380     EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
12381   fi
12382
12383     saved_CFLAGS="$CFLAGS"
12384   CFLAGS="$CFLAGS -Wlogical-op -Werror"
12385   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wlogical-op" >&5
12386 $as_echo_n "checking for broken string.h that generates warnings with -Wlogical-op... " >&6; }
12387 if ${ac_cv_c_logicalop_noisy+:} false; then :
12388   $as_echo_n "(cached) " >&6
12389 else
12390   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12391 /* end confdefs.h.  */
12392 #include <string.h>
12393 int
12394 main ()
12395 {
12396 char*f(const char *h,char n) {return strchr(h,n);}
12397   ;
12398   return 0;
12399 }
12400 _ACEOF
12401 if ac_fn_c_try_compile "$LINENO"; then :
12402   ac_cv_c_logicalop_noisy=no
12403 else
12404   ac_cv_c_logicalop_noisy=yes
12405 fi
12406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12407 fi
12408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_logicalop_noisy" >&5
12409 $as_echo "$ac_cv_c_logicalop_noisy" >&6; }
12410   CFLAGS="$saved_CFLAGS"
12411   if test "$ac_cv_c_logicalop_noisy" = "no"
12412   then
12413     EXTRACFLAGS="$EXTRACFLAGS -Wlogical-op"
12414   fi
12415
12416     if test "x$enable_maintainer_mode" = "xyes"
12417   then
12418       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Werror" >&5
12419 $as_echo_n "checking whether the compiler supports -Werror... " >&6; }
12420 if ${ac_cv_cflags__Werror+:} false; then :
12421   $as_echo_n "(cached) " >&6
12422 else
12423   ac_wine_try_cflags_saved=$CFLAGS
12424 CFLAGS="$CFLAGS -Werror"
12425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12426 /* end confdefs.h.  */
12427 int main(int argc, char **argv) { return 0; }
12428 _ACEOF
12429 if ac_fn_c_try_link "$LINENO"; then :
12430   ac_cv_cflags__Werror=yes
12431 else
12432   ac_cv_cflags__Werror=no
12433 fi
12434 rm -f core conftest.err conftest.$ac_objext \
12435     conftest$ac_exeext conftest.$ac_ext
12436 CFLAGS=$ac_wine_try_cflags_saved
12437 fi
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Werror" >&5
12439 $as_echo "$ac_cv_cflags__Werror" >&6; }
12440 if test $ac_cv_cflags__Werror = yes; then :
12441   EXTRACFLAGS="$EXTRACFLAGS -Werror"
12442 fi
12443   fi
12444
12445     saved_CFLAGS="$CFLAGS"
12446   CFLAGS="$CFLAGS -Werror"
12447   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ms_hook_prologue attribute" >&5
12448 $as_echo_n "checking for ms_hook_prologue attribute... " >&6; }
12449 if ${ac_cv_have_ms_hook_prologue+:} false; then :
12450   $as_echo_n "(cached) " >&6
12451 else
12452   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12453 /* end confdefs.h.  */
12454 int __attribute__((__ms_hook_prologue__)) test(void) { return 0; }
12455 int
12456 main ()
12457 {
12458
12459   ;
12460   return 0;
12461 }
12462 _ACEOF
12463 if ac_fn_c_try_compile "$LINENO"; then :
12464   ac_cv_have_ms_hook_prologue="yes"
12465 else
12466   ac_cv_have_ms_hook_prologue="no"
12467 fi
12468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12469 fi
12470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ms_hook_prologue" >&5
12471 $as_echo "$ac_cv_have_ms_hook_prologue" >&6; }
12472   CFLAGS="$saved_CFLAGS"
12473   if test "$ac_cv_have_ms_hook_prologue" = "yes"
12474   then
12475
12476 $as_echo "#define DECLSPEC_HOTPATCH __attribute__((__ms_hook_prologue__))" >>confdefs.h
12477
12478   else
12479       $as_echo "#define DECLSPEC_HOTPATCH /* */" >>confdefs.h
12480
12481   fi
12482 fi
12483
12484
12485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the need to disable Fortify" >&5
12486 $as_echo_n "checking for the need to disable Fortify... " >&6; }
12487 if ${ac_cv_c_fortify_enabled+:} false; then :
12488   $as_echo_n "(cached) " >&6
12489 else
12490   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12491 /* end confdefs.h.  */
12492 #include <string.h>
12493 int
12494 main ()
12495 {
12496 #if defined(__USE_FORTIFY_LEVEL) && __USE_FORTIFY_LEVEL > 0
12497 #error Fortify enabled
12498 #endif
12499   ;
12500   return 0;
12501 }
12502 _ACEOF
12503 if ac_fn_c_try_compile "$LINENO"; then :
12504   ac_cv_c_fortify_enabled=no
12505 else
12506   ac_cv_c_fortify_enabled=yes
12507 fi
12508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12509 fi
12510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_fortify_enabled" >&5
12511 $as_echo "$ac_cv_c_fortify_enabled" >&6; }
12512 if test "$ac_cv_c_fortify_enabled" = yes
12513 then
12514     CFLAGS="$CFLAGS -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0"
12515 fi
12516
12517
12518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need an underscore prefix" >&5
12519 $as_echo_n "checking whether external symbols need an underscore prefix... " >&6; }
12520 if ${ac_cv_c_extern_prefix+:} false; then :
12521   $as_echo_n "(cached) " >&6
12522 else
12523   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12524 /* end confdefs.h.  */
12525 extern int ac_test;
12526 int
12527 main ()
12528 {
12529 asm(".globl _ac_test\n_ac_test:\t.long 0"); if (ac_test) return 1
12530   ;
12531   return 0;
12532 }
12533 _ACEOF
12534 if ac_fn_c_try_link "$LINENO"; then :
12535   ac_cv_c_extern_prefix="yes"
12536 else
12537   ac_cv_c_extern_prefix="no"
12538 fi
12539 rm -f core conftest.err conftest.$ac_objext \
12540     conftest$ac_exeext conftest.$ac_ext
12541 fi
12542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_extern_prefix" >&5
12543 $as_echo "$ac_cv_c_extern_prefix" >&6; }
12544
12545 case $host_cpu in
12546   *i[3456789]86*)
12547     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need stdcall decoration" >&5
12548 $as_echo_n "checking whether external symbols need stdcall decoration... " >&6; }
12549 if ${ac_cv_c_stdcall_suffix+:} false; then :
12550   $as_echo_n "(cached) " >&6
12551 else
12552   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12553 /* end confdefs.h.  */
12554 #ifndef _MSC_VER
12555 #define __stdcall __attribute__((__stdcall__))
12556 #endif
12557 int __stdcall ac_test(int i) { return i; }
12558 int
12559 main ()
12560 {
12561 asm("jmp _ac_test@4"); if (ac_test(1)) return 1
12562   ;
12563   return 0;
12564 }
12565 _ACEOF
12566 if ac_fn_c_try_link "$LINENO"; then :
12567   ac_cv_c_stdcall_suffix="yes"
12568 else
12569   ac_cv_c_stdcall_suffix="no"
12570 fi
12571 rm -f core conftest.err conftest.$ac_objext \
12572     conftest$ac_exeext conftest.$ac_ext
12573 fi
12574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stdcall_suffix" >&5
12575 $as_echo "$ac_cv_c_stdcall_suffix" >&6; } ;;
12576   *) ac_cv_c_stdcall_suffix="no" ;;
12577 esac
12578
12579
12580 if test "$ac_cv_c_extern_prefix" = "yes"
12581 then
12582     $as_echo "#define __ASM_NAME(name) \"_\" name" >>confdefs.h
12583
12584     asm_name_prefix="_"
12585 else
12586     $as_echo "#define __ASM_NAME(name) name" >>confdefs.h
12587
12588     asm_name_prefix=""
12589 fi
12590
12591
12592 if test "$ac_cv_c_stdcall_suffix" = "yes"
12593 then
12594     $as_echo "#define __ASM_STDCALL(args) \"@\" #args" >>confdefs.h
12595
12596 else
12597     $as_echo "#define __ASM_STDCALL(args) \"\"" >>confdefs.h
12598
12599 fi
12600
12601
12602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to define a function in assembly code" >&5
12603 $as_echo_n "checking how to define a function in assembly code... " >&6; }
12604 if ${ac_cv_asm_func_def+:} false; then :
12605   $as_echo_n "(cached) " >&6
12606 else
12607   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12608 /* end confdefs.h.  */
12609
12610 int
12611 main ()
12612 {
12613 asm("\t.globl _ac_test\n\t.def _ac_test; .scl 2; .type 32; .endef\n_ac_test:\t.long 0");
12614   ;
12615   return 0;
12616 }
12617 _ACEOF
12618 if ac_fn_c_try_link "$LINENO"; then :
12619   ac_cv_asm_func_def=".def"
12620 else
12621   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12622 /* end confdefs.h.  */
12623
12624 int
12625 main ()
12626 {
12627 asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0");
12628   ;
12629   return 0;
12630 }
12631 _ACEOF
12632 if ac_fn_c_try_link "$LINENO"; then :
12633   ac_cv_asm_func_def=".type @function"
12634 else
12635   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12636 /* end confdefs.h.  */
12637
12638 int
12639 main ()
12640 {
12641 asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0");
12642   ;
12643   return 0;
12644 }
12645 _ACEOF
12646 if ac_fn_c_try_link "$LINENO"; then :
12647   ac_cv_asm_func_def=".type 2"
12648 else
12649   ac_cv_asm_func_def="unknown"
12650 fi
12651 rm -f core conftest.err conftest.$ac_objext \
12652     conftest$ac_exeext conftest.$ac_ext
12653 fi
12654 rm -f core conftest.err conftest.$ac_objext \
12655     conftest$ac_exeext conftest.$ac_ext
12656 fi
12657 rm -f core conftest.err conftest.$ac_objext \
12658     conftest$ac_exeext conftest.$ac_ext
12659 fi
12660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_asm_func_def" >&5
12661 $as_echo "$ac_cv_asm_func_def" >&6; }
12662
12663
12664 case "$ac_cv_asm_func_def" in
12665   ".def")
12666      $as_echo "#define __ASM_FUNC(name) \".def \" __ASM_NAME(name) \"; .scl 2; .type 32; .endef\"" >>confdefs.h
12667
12668      asm_func_header=".def $asm_name_prefix\" #name suffix \"; .scl 2; .type 32; .endef" ;;
12669   ".type @function")
12670      $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",@function\"" >>confdefs.h
12671
12672      asm_func_header=".type $asm_name_prefix\" #name suffix \",@function" ;;
12673   ".type 2")
12674      $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",2\"" >>confdefs.h
12675
12676      asm_func_header=".type $asm_name_prefix\" #name suffix \",2" ;;
12677   *)
12678      $as_echo "#define __ASM_FUNC(name) \"\"" >>confdefs.h
12679
12680      asm_func_header="" ;;
12681 esac
12682
12683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether asm() works outside of functions" >&5
12684 $as_echo_n "checking whether asm() works outside of functions... " >&6; }
12685 if ${ac_cv_c_asm_outside_funcs+:} false; then :
12686   $as_echo_n "(cached) " >&6
12687 else
12688   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12689 /* end confdefs.h.  */
12690 asm(".text\n\t.long 0");
12691 int
12692 main ()
12693 {
12694
12695   ;
12696   return 0;
12697 }
12698 _ACEOF
12699 if ac_fn_c_try_compile "$LINENO"; then :
12700   ac_cv_c_asm_outside_funcs="yes"
12701 else
12702   ac_cv_c_asm_outside_funcs="no"
12703 fi
12704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12705 fi
12706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_asm_outside_funcs" >&5
12707 $as_echo "$ac_cv_c_asm_outside_funcs" >&6; }
12708
12709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .previous is supported in assembly code" >&5
12710 $as_echo_n "checking whether .previous is supported in assembly code... " >&6; }
12711 if ${ac_cv_c_dot_previous+:} false; then :
12712   $as_echo_n "(cached) " >&6
12713 else
12714   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12715 /* end confdefs.h.  */
12716
12717 int
12718 main ()
12719 {
12720 asm(".text\nac_test:\t.long 0\n\t.previous");
12721   ;
12722   return 0;
12723 }
12724 _ACEOF
12725 if ac_fn_c_try_link "$LINENO"; then :
12726   ac_cv_c_dot_previous="yes"
12727 else
12728   ac_cv_c_dot_previous="no"
12729 fi
12730 rm -f core conftest.err conftest.$ac_objext \
12731     conftest$ac_exeext conftest.$ac_ext
12732 fi
12733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dot_previous" >&5
12734 $as_echo "$ac_cv_c_dot_previous" >&6; }
12735
12736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CFI directives are supported in assembly code" >&5
12737 $as_echo_n "checking whether CFI directives are supported in assembly code... " >&6; }
12738 if ${ac_cv_c_cfi_support+:} false; then :
12739   $as_echo_n "(cached) " >&6
12740 else
12741   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12742 /* end confdefs.h.  */
12743 asm(".text\nac_test:\t.cfi_startproc\n\t.long 0\n\t.cfi_endproc");
12744 int
12745 main ()
12746 {
12747
12748   ;
12749   return 0;
12750 }
12751 _ACEOF
12752 if ac_fn_c_try_compile "$LINENO"; then :
12753   ac_cv_c_cfi_support="yes"
12754 else
12755   ac_cv_c_cfi_support="no"
12756 fi
12757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12758 fi
12759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_cfi_support" >&5
12760 $as_echo "$ac_cv_c_cfi_support" >&6; }
12761
12762 asm_func_header=".globl $asm_name_prefix\" #name suffix \"\\n\\t$asm_func_header\\n$asm_name_prefix\" #name suffix \":\\n\\t"
12763 asm_func_trailer=""
12764 if test "$ac_cv_c_dot_previous" = "yes"
12765 then
12766    asm_func_trailer="\\n\\t.previous"
12767 fi
12768 if test "$ac_cv_c_cfi_support" = "yes"
12769 then
12770    asm_func_header="$asm_func_header.cfi_startproc\\n\\t"
12771    asm_func_trailer="\\n\\t.cfi_endproc$asm_func_trailer"
12772
12773 $as_echo "#define __ASM_CFI(str) str" >>confdefs.h
12774
12775    UNWINDFLAGS=-fasynchronous-unwind-tables
12776
12777 else
12778    $as_echo "#define __ASM_CFI(str) \"\"" >>confdefs.h
12779
12780 fi
12781
12782 asm_func_code="$asm_func_header\" code \"$asm_func_trailer"
12783
12784
12785 if test "$ac_cv_c_asm_outside_funcs" = "yes"
12786 then
12787     cat >>confdefs.h <<_ACEOF
12788 #define __ASM_DEFINE_FUNC(name,suffix,code) asm(".text\n\t.align 4\n\t$asm_func_code");
12789 _ACEOF
12790
12791 else
12792     cat >>confdefs.h <<_ACEOF
12793 #define __ASM_DEFINE_FUNC(name,suffix,code) void __asm_dummy_##name(void) { asm(".text\n\t.align 4\n\t$asm_func_code"); }
12794 _ACEOF
12795
12796 fi
12797
12798 $as_echo "#define __ASM_GLOBAL_FUNC(name,code) __ASM_DEFINE_FUNC(name,\"\",code)" >>confdefs.h
12799
12800
12801 $as_echo "#define __ASM_STDCALL_FUNC(name,args,code) __ASM_DEFINE_FUNC(name,__ASM_STDCALL(args),code)" >>confdefs.h
12802
12803
12804
12805 LDPATH=""
12806
12807 case $build_os in
12808   cygwin*|mingw32*)
12809     TOOLSEXT=".exe"
12810
12811     LDPATH="PATH=\"\$(TOOLSDIR)/libs/wine:\$\$PATH\""
12812     ;;
12813   darwin*|macosx*)
12814     ;;
12815   *)
12816     LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$LD_LIBRARY_PATH\""
12817     ;;
12818 esac
12819
12820 case $host_os in
12821   mingw32*)
12822     CRTLIBS="-lmsvcrt"
12823
12824     SOCKETLIBS="-L\$(top_builddir)/dlls/ws2_32 -lws2_32"
12825
12826     ;;
12827 esac
12828
12829 MAIN_BINARY="wine"
12830
12831 test "x$enable_win64" != "xyes" || MAIN_BINARY="wine64"
12832
12833 case $host_os in
12834   linux*)
12835     case $host_cpu in
12836       *i[3456789]86*) EXTRA_BINARIES="wine-preloader"
12837  ;;
12838       x86_64*) EXTRA_BINARIES="wine64-preloader"
12839  ;;
12840     esac
12841     ;;
12842 esac
12843
12844
12845 ac_save_CFLAGS="$CFLAGS"
12846 CFLAGS="$CFLAGS $BUILTINFLAG"
12847 for ac_func in \
12848         _pclose \
12849         _popen \
12850         _snprintf \
12851         _spawnvp \
12852         _strdup \
12853         _stricmp \
12854         _strnicmp \
12855         _strtoi64 \
12856         _strtoui64 \
12857         _vsnprintf \
12858         asctime_r \
12859         chsize \
12860         dlopen \
12861         epoll_create \
12862         ffs \
12863         finite \
12864         fnmatch \
12865         fork \
12866         fpclass \
12867         fstatfs \
12868         fstatvfs \
12869         ftruncate \
12870         futimes \
12871         futimesat \
12872         getattrlist \
12873         getdirentries \
12874         getopt_long \
12875         getpagesize \
12876         getpwuid \
12877         gettimeofday \
12878         getuid \
12879         kqueue \
12880         lstat \
12881         memmove \
12882         mmap \
12883         pclose \
12884         pipe2 \
12885         poll \
12886         popen \
12887         port_create \
12888         prctl \
12889         pread \
12890         pwrite \
12891         readdir \
12892         readlink \
12893         sched_yield \
12894         select \
12895         setproctitle \
12896         setrlimit \
12897         settimeofday \
12898         sigaltstack \
12899         sigprocmask \
12900         snprintf \
12901         spawnvp \
12902         statfs \
12903         statvfs \
12904         strcasecmp \
12905         strdup \
12906         strerror \
12907         strncasecmp \
12908         strtold \
12909         strtoll \
12910         strtoull \
12911         symlink \
12912         tcgetattr \
12913         thr_kill2 \
12914         timegm \
12915         usleep \
12916         vsnprintf \
12917         wait4 \
12918         waitpid \
12919
12920 do :
12921   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12922 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12923 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12924   cat >>confdefs.h <<_ACEOF
12925 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12926 _ACEOF
12927
12928 fi
12929 done
12930
12931 CFLAGS="$ac_save_CFLAGS"
12932
12933 if test "$ac_cv_func_dlopen" = no
12934 then
12935     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12936 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12937 if ${ac_cv_lib_dl_dlopen+:} false; then :
12938   $as_echo_n "(cached) " >&6
12939 else
12940   ac_check_lib_save_LIBS=$LIBS
12941 LIBS="-ldl  $LIBS"
12942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12943 /* end confdefs.h.  */
12944
12945 /* Override any GCC internal prototype to avoid an error.
12946    Use char because int might match the return type of a GCC
12947    builtin and then its argument prototype would still apply.  */
12948 #ifdef __cplusplus
12949 extern "C"
12950 #endif
12951 char dlopen ();
12952 int
12953 main ()
12954 {
12955 return dlopen ();
12956   ;
12957   return 0;
12958 }
12959 _ACEOF
12960 if ac_fn_c_try_link "$LINENO"; then :
12961   ac_cv_lib_dl_dlopen=yes
12962 else
12963   ac_cv_lib_dl_dlopen=no
12964 fi
12965 rm -f core conftest.err conftest.$ac_objext \
12966     conftest$ac_exeext conftest.$ac_ext
12967 LIBS=$ac_check_lib_save_LIBS
12968 fi
12969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12970 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12971 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12972   $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
12973  LIBDL="-ldl"
12974
12975 fi
12976
12977 fi
12978 ac_wine_check_funcs_save_LIBS="$LIBS"
12979 LIBS="$LIBS $LIBDL"
12980 for ac_func in dladdr
12981 do :
12982   ac_fn_c_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr"
12983 if test "x$ac_cv_func_dladdr" = xyes; then :
12984   cat >>confdefs.h <<_ACEOF
12985 #define HAVE_DLADDR 1
12986 _ACEOF
12987
12988 fi
12989 done
12990
12991 LIBS="$ac_wine_check_funcs_save_LIBS"
12992
12993 if test "$ac_cv_func_poll" = no
12994 then
12995     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for poll in -lpoll" >&5
12996 $as_echo_n "checking for poll in -lpoll... " >&6; }
12997 if ${ac_cv_lib_poll_poll+:} false; then :
12998   $as_echo_n "(cached) " >&6
12999 else
13000   ac_check_lib_save_LIBS=$LIBS
13001 LIBS="-lpoll  $LIBS"
13002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13003 /* end confdefs.h.  */
13004
13005 /* Override any GCC internal prototype to avoid an error.
13006    Use char because int might match the return type of a GCC
13007    builtin and then its argument prototype would still apply.  */
13008 #ifdef __cplusplus
13009 extern "C"
13010 #endif
13011 char poll ();
13012 int
13013 main ()
13014 {
13015 return poll ();
13016   ;
13017   return 0;
13018 }
13019 _ACEOF
13020 if ac_fn_c_try_link "$LINENO"; then :
13021   ac_cv_lib_poll_poll=yes
13022 else
13023   ac_cv_lib_poll_poll=no
13024 fi
13025 rm -f core conftest.err conftest.$ac_objext \
13026     conftest$ac_exeext conftest.$ac_ext
13027 LIBS=$ac_check_lib_save_LIBS
13028 fi
13029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_poll_poll" >&5
13030 $as_echo "$ac_cv_lib_poll_poll" >&6; }
13031 if test "x$ac_cv_lib_poll_poll" = xyes; then :
13032   $as_echo "#define HAVE_POLL 1" >>confdefs.h
13033  LIBPOLL="-lpoll"
13034
13035 fi
13036
13037 fi
13038
13039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
13040 $as_echo_n "checking for library containing gethostbyname... " >&6; }
13041 if ${ac_cv_search_gethostbyname+:} false; then :
13042   $as_echo_n "(cached) " >&6
13043 else
13044   ac_func_search_save_LIBS=$LIBS
13045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13046 /* end confdefs.h.  */
13047
13048 /* Override any GCC internal prototype to avoid an error.
13049    Use char because int might match the return type of a GCC
13050    builtin and then its argument prototype would still apply.  */
13051 #ifdef __cplusplus
13052 extern "C"
13053 #endif
13054 char gethostbyname ();
13055 int
13056 main ()
13057 {
13058 return gethostbyname ();
13059   ;
13060   return 0;
13061 }
13062 _ACEOF
13063 for ac_lib in '' nsl; do
13064   if test -z "$ac_lib"; then
13065     ac_res="none required"
13066   else
13067     ac_res=-l$ac_lib
13068     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13069   fi
13070   if ac_fn_c_try_link "$LINENO"; then :
13071   ac_cv_search_gethostbyname=$ac_res
13072 fi
13073 rm -f core conftest.err conftest.$ac_objext \
13074     conftest$ac_exeext
13075   if ${ac_cv_search_gethostbyname+:} false; then :
13076   break
13077 fi
13078 done
13079 if ${ac_cv_search_gethostbyname+:} false; then :
13080
13081 else
13082   ac_cv_search_gethostbyname=no
13083 fi
13084 rm conftest.$ac_ext
13085 LIBS=$ac_func_search_save_LIBS
13086 fi
13087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
13088 $as_echo "$ac_cv_search_gethostbyname" >&6; }
13089 ac_res=$ac_cv_search_gethostbyname
13090 if test "$ac_res" != no; then :
13091   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13092
13093 fi
13094
13095
13096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5
13097 $as_echo_n "checking for library containing connect... " >&6; }
13098 if ${ac_cv_search_connect+:} false; then :
13099   $as_echo_n "(cached) " >&6
13100 else
13101   ac_func_search_save_LIBS=$LIBS
13102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13103 /* end confdefs.h.  */
13104
13105 /* Override any GCC internal prototype to avoid an error.
13106    Use char because int might match the return type of a GCC
13107    builtin and then its argument prototype would still apply.  */
13108 #ifdef __cplusplus
13109 extern "C"
13110 #endif
13111 char connect ();
13112 int
13113 main ()
13114 {
13115 return connect ();
13116   ;
13117   return 0;
13118 }
13119 _ACEOF
13120 for ac_lib in '' socket; do
13121   if test -z "$ac_lib"; then
13122     ac_res="none required"
13123   else
13124     ac_res=-l$ac_lib
13125     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13126   fi
13127   if ac_fn_c_try_link "$LINENO"; then :
13128   ac_cv_search_connect=$ac_res
13129 fi
13130 rm -f core conftest.err conftest.$ac_objext \
13131     conftest$ac_exeext
13132   if ${ac_cv_search_connect+:} false; then :
13133   break
13134 fi
13135 done
13136 if ${ac_cv_search_connect+:} false; then :
13137
13138 else
13139   ac_cv_search_connect=no
13140 fi
13141 rm conftest.$ac_ext
13142 LIBS=$ac_func_search_save_LIBS
13143 fi
13144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5
13145 $as_echo "$ac_cv_search_connect" >&6; }
13146 ac_res=$ac_cv_search_connect
13147 if test "$ac_res" != no; then :
13148   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13149
13150 fi
13151
13152
13153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
13154 $as_echo_n "checking for library containing inet_aton... " >&6; }
13155 if ${ac_cv_search_inet_aton+:} false; then :
13156   $as_echo_n "(cached) " >&6
13157 else
13158   ac_func_search_save_LIBS=$LIBS
13159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13160 /* end confdefs.h.  */
13161
13162 /* Override any GCC internal prototype to avoid an error.
13163    Use char because int might match the return type of a GCC
13164    builtin and then its argument prototype would still apply.  */
13165 #ifdef __cplusplus
13166 extern "C"
13167 #endif
13168 char inet_aton ();
13169 int
13170 main ()
13171 {
13172 return inet_aton ();
13173   ;
13174   return 0;
13175 }
13176 _ACEOF
13177 for ac_lib in '' resolv; do
13178   if test -z "$ac_lib"; then
13179     ac_res="none required"
13180   else
13181     ac_res=-l$ac_lib
13182     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13183   fi
13184   if ac_fn_c_try_link "$LINENO"; then :
13185   ac_cv_search_inet_aton=$ac_res
13186 fi
13187 rm -f core conftest.err conftest.$ac_objext \
13188     conftest$ac_exeext
13189   if ${ac_cv_search_inet_aton+:} false; then :
13190   break
13191 fi
13192 done
13193 if ${ac_cv_search_inet_aton+:} false; then :
13194
13195 else
13196   ac_cv_search_inet_aton=no
13197 fi
13198 rm conftest.$ac_ext
13199 LIBS=$ac_func_search_save_LIBS
13200 fi
13201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
13202 $as_echo "$ac_cv_search_inet_aton" >&6; }
13203 ac_res=$ac_cv_search_inet_aton
13204 if test "$ac_res" != no; then :
13205   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13206
13207 fi
13208
13209
13210 for ac_func in \
13211         getaddrinfo \
13212         getnameinfo \
13213         getnetbyname \
13214         getprotobyname \
13215         getprotobynumber \
13216         getservbyport \
13217         inet_network \
13218         inet_ntop \
13219         inet_pton \
13220         sendmsg \
13221         socketpair \
13222
13223 do :
13224   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13225 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13226 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13227   cat >>confdefs.h <<_ACEOF
13228 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13229 _ACEOF
13230
13231 fi
13232 done
13233
13234
13235 LDAPLIBS=""
13236
13237 if test "$ac_cv_header_ldap_h" = "yes" -a "$ac_cv_header_lber_h" = "yes"
13238 then
13239     ac_fn_c_check_type "$LINENO" "LDAPSortKey" "ac_cv_type_LDAPSortKey" "#include <ldap.h>
13240 "
13241 if test "x$ac_cv_type_LDAPSortKey" = xyes; then :
13242   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap_r" >&5
13243 $as_echo_n "checking for ldap_initialize in -lldap_r... " >&6; }
13244 if ${ac_cv_lib_ldap_r_ldap_initialize+:} false; then :
13245   $as_echo_n "(cached) " >&6
13246 else
13247   ac_check_lib_save_LIBS=$LIBS
13248 LIBS="-lldap_r $LIBPTHREAD $LIBS"
13249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13250 /* end confdefs.h.  */
13251
13252 /* Override any GCC internal prototype to avoid an error.
13253    Use char because int might match the return type of a GCC
13254    builtin and then its argument prototype would still apply.  */
13255 #ifdef __cplusplus
13256 extern "C"
13257 #endif
13258 char ldap_initialize ();
13259 int
13260 main ()
13261 {
13262 return ldap_initialize ();
13263   ;
13264   return 0;
13265 }
13266 _ACEOF
13267 if ac_fn_c_try_link "$LINENO"; then :
13268   ac_cv_lib_ldap_r_ldap_initialize=yes
13269 else
13270   ac_cv_lib_ldap_r_ldap_initialize=no
13271 fi
13272 rm -f core conftest.err conftest.$ac_objext \
13273     conftest$ac_exeext conftest.$ac_ext
13274 LIBS=$ac_check_lib_save_LIBS
13275 fi
13276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_r_ldap_initialize" >&5
13277 $as_echo "$ac_cv_lib_ldap_r_ldap_initialize" >&6; }
13278 if test "x$ac_cv_lib_ldap_r_ldap_initialize" = xyes; then :
13279   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_init in -llber" >&5
13280 $as_echo_n "checking for ber_init in -llber... " >&6; }
13281 if ${ac_cv_lib_lber_ber_init+:} false; then :
13282   $as_echo_n "(cached) " >&6
13283 else
13284   ac_check_lib_save_LIBS=$LIBS
13285 LIBS="-llber $LIBPTHREAD $LIBS"
13286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13287 /* end confdefs.h.  */
13288
13289 /* Override any GCC internal prototype to avoid an error.
13290    Use char because int might match the return type of a GCC
13291    builtin and then its argument prototype would still apply.  */
13292 #ifdef __cplusplus
13293 extern "C"
13294 #endif
13295 char ber_init ();
13296 int
13297 main ()
13298 {
13299 return ber_init ();
13300   ;
13301   return 0;
13302 }
13303 _ACEOF
13304 if ac_fn_c_try_link "$LINENO"; then :
13305   ac_cv_lib_lber_ber_init=yes
13306 else
13307   ac_cv_lib_lber_ber_init=no
13308 fi
13309 rm -f core conftest.err conftest.$ac_objext \
13310     conftest$ac_exeext conftest.$ac_ext
13311 LIBS=$ac_check_lib_save_LIBS
13312 fi
13313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_init" >&5
13314 $as_echo "$ac_cv_lib_lber_ber_init" >&6; }
13315 if test "x$ac_cv_lib_lber_ber_init" = xyes; then :
13316
13317 $as_echo "#define HAVE_LDAP 1" >>confdefs.h
13318
13319                  LDAPLIBS="-lldap_r -llber"
13320 fi
13321
13322 fi
13323
13324 fi
13325
13326     ac_wine_check_funcs_save_LIBS="$LIBS"
13327 LIBS="$LIBS $LDAPLIBS $LIBPTHREAD"
13328 for ac_func in \
13329         ldap_count_references \
13330         ldap_first_reference \
13331         ldap_next_reference \
13332         ldap_parse_reference \
13333         ldap_parse_sort_control \
13334         ldap_parse_sortresponse_control \
13335         ldap_parse_vlv_control \
13336         ldap_parse_vlvresponse_control
13337 do :
13338   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13339 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13340 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13341   cat >>confdefs.h <<_ACEOF
13342 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13343 _ACEOF
13344
13345 fi
13346 done
13347
13348 LIBS="$ac_wine_check_funcs_save_LIBS"
13349 fi
13350 if test "x$LDAPLIBS" = "x"; then :
13351   case "x$with_ldap" in
13352   x)   as_fn_append wine_notices "|libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported." ;;
13353   xno) ;;
13354   *)   as_fn_error $? "libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported.
13355 This is an error since --with-ldap was requested." "$LINENO" 5 ;;
13356 esac
13357 fi
13358
13359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir takes only one argument" >&5
13360 $as_echo_n "checking whether mkdir takes only one argument... " >&6; }
13361 if ${wine_cv_one_arg_mkdir+:} false; then :
13362   $as_echo_n "(cached) " >&6
13363 else
13364   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13365 /* end confdefs.h.  */
13366 #include <sys/stat.h>
13367 int
13368 main ()
13369 {
13370 mkdir("foo");
13371   ;
13372   return 0;
13373 }
13374 _ACEOF
13375 if ac_fn_c_try_compile "$LINENO"; then :
13376   wine_cv_one_arg_mkdir=yes
13377 else
13378   wine_cv_one_arg_mkdir=no
13379 fi
13380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13381 fi
13382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_one_arg_mkdir" >&5
13383 $as_echo "$wine_cv_one_arg_mkdir" >&6; }
13384 if test "$wine_cv_one_arg_mkdir" = "yes"
13385 then
13386
13387 $as_echo "#define HAVE_ONE_ARG_MKDIR 1" >>confdefs.h
13388
13389 fi
13390
13391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_setaffinity" >&5
13392 $as_echo_n "checking for sched_setaffinity... " >&6; }
13393 if ${wine_cv_have_sched_setaffinity+:} false; then :
13394   $as_echo_n "(cached) " >&6
13395 else
13396   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13397 /* end confdefs.h.  */
13398 #define _GNU_SOURCE
13399 #include <sched.h>
13400 int
13401 main ()
13402 {
13403 sched_setaffinity(0, 0, 0);
13404   ;
13405   return 0;
13406 }
13407 _ACEOF
13408 if ac_fn_c_try_link "$LINENO"; then :
13409   wine_cv_have_sched_setaffinity=yes
13410 else
13411   wine_cv_have_sched_setaffinity=no
13412 fi
13413 rm -f core conftest.err conftest.$ac_objext \
13414     conftest$ac_exeext conftest.$ac_ext
13415 fi
13416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sched_setaffinity" >&5
13417 $as_echo "$wine_cv_have_sched_setaffinity" >&6; }
13418 if test "$wine_cv_have_sched_setaffinity" = "yes"
13419 then
13420
13421 $as_echo "#define HAVE_SCHED_SETAFFINITY 1" >>confdefs.h
13422
13423 fi
13424
13425
13426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13427 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13428 if ${ac_cv_c_const+:} false; then :
13429   $as_echo_n "(cached) " >&6
13430 else
13431   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13432 /* end confdefs.h.  */
13433
13434 int
13435 main ()
13436 {
13437 /* FIXME: Include the comments suggested by Paul. */
13438 #ifndef __cplusplus
13439   /* Ultrix mips cc rejects this.  */
13440   typedef int charset[2];
13441   const charset cs;
13442   /* SunOS 4.1.1 cc rejects this.  */
13443   char const *const *pcpcc;
13444   char **ppc;
13445   /* NEC SVR4.0.2 mips cc rejects this.  */
13446   struct point {int x, y;};
13447   static struct point const zero = {0,0};
13448   /* AIX XL C 1.02.0.0 rejects this.
13449      It does not let you subtract one const X* pointer from another in
13450      an arm of an if-expression whose if-part is not a constant
13451      expression */
13452   const char *g = "string";
13453   pcpcc = &g + (g ? g-g : 0);
13454   /* HPUX 7.0 cc rejects these. */
13455   ++pcpcc;
13456   ppc = (char**) pcpcc;
13457   pcpcc = (char const *const *) ppc;
13458   { /* SCO 3.2v4 cc rejects this.  */
13459     char *t;
13460     char const *s = 0 ? (char *) 0 : (char const *) 0;
13461
13462     *t++ = 0;
13463     if (s) return 0;
13464   }
13465   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
13466     int x[] = {25, 17};
13467     const int *foo = &x[0];
13468     ++foo;
13469   }
13470   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13471     typedef const int *iptr;
13472     iptr p = 0;
13473     ++p;
13474   }
13475   { /* AIX XL C 1.02.0.0 rejects this saying
13476        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13477     struct s { int j; const int *ap[3]; };
13478     struct s *b; b->j = 5;
13479   }
13480   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13481     const int foo = 10;
13482     if (!foo) return 0;
13483   }
13484   return !cs[0] && !zero.x;
13485 #endif
13486
13487   ;
13488   return 0;
13489 }
13490 _ACEOF
13491 if ac_fn_c_try_compile "$LINENO"; then :
13492   ac_cv_c_const=yes
13493 else
13494   ac_cv_c_const=no
13495 fi
13496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13497 fi
13498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13499 $as_echo "$ac_cv_c_const" >&6; }
13500 if test $ac_cv_c_const = no; then
13501
13502 $as_echo "#define const /**/" >>confdefs.h
13503
13504 fi
13505
13506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13507 $as_echo_n "checking for inline... " >&6; }
13508 if ${ac_cv_c_inline+:} false; then :
13509   $as_echo_n "(cached) " >&6
13510 else
13511   ac_cv_c_inline=no
13512 for ac_kw in inline __inline__ __inline; do
13513   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13514 /* end confdefs.h.  */
13515 #ifndef __cplusplus
13516 typedef int foo_t;
13517 static $ac_kw foo_t static_foo () {return 0; }
13518 $ac_kw foo_t foo () {return 0; }
13519 #endif
13520
13521 _ACEOF
13522 if ac_fn_c_try_compile "$LINENO"; then :
13523   ac_cv_c_inline=$ac_kw
13524 fi
13525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13526   test "$ac_cv_c_inline" != no && break
13527 done
13528
13529 fi
13530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13531 $as_echo "$ac_cv_c_inline" >&6; }
13532
13533 case $ac_cv_c_inline in
13534   inline | yes) ;;
13535   *)
13536     case $ac_cv_c_inline in
13537       no) ac_val=;;
13538       *) ac_val=$ac_cv_c_inline;;
13539     esac
13540     cat >>confdefs.h <<_ACEOF
13541 #ifndef __cplusplus
13542 #define inline $ac_val
13543 #endif
13544 _ACEOF
13545     ;;
13546 esac
13547
13548 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
13549 if test "x$ac_cv_type_mode_t" = xyes; then :
13550
13551 cat >>confdefs.h <<_ACEOF
13552 #define HAVE_MODE_T 1
13553 _ACEOF
13554
13555
13556 fi
13557 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
13558 if test "x$ac_cv_type_off_t" = xyes; then :
13559
13560 cat >>confdefs.h <<_ACEOF
13561 #define HAVE_OFF_T 1
13562 _ACEOF
13563
13564
13565 fi
13566 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13567 if test "x$ac_cv_type_pid_t" = xyes; then :
13568
13569 cat >>confdefs.h <<_ACEOF
13570 #define HAVE_PID_T 1
13571 _ACEOF
13572
13573
13574 fi
13575 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13576 if test "x$ac_cv_type_size_t" = xyes; then :
13577
13578 cat >>confdefs.h <<_ACEOF
13579 #define HAVE_SIZE_T 1
13580 _ACEOF
13581
13582
13583 fi
13584 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
13585 if test "x$ac_cv_type_ssize_t" = xyes; then :
13586
13587 cat >>confdefs.h <<_ACEOF
13588 #define HAVE_SSIZE_T 1
13589 _ACEOF
13590
13591
13592 fi
13593 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
13594 if test "x$ac_cv_type_long_long" = xyes; then :
13595
13596 cat >>confdefs.h <<_ACEOF
13597 #define HAVE_LONG_LONG 1
13598 _ACEOF
13599
13600
13601 fi
13602 ac_fn_c_check_type "$LINENO" "fsblkcnt_t" "ac_cv_type_fsblkcnt_t" "$ac_includes_default"
13603 if test "x$ac_cv_type_fsblkcnt_t" = xyes; then :
13604
13605 cat >>confdefs.h <<_ACEOF
13606 #define HAVE_FSBLKCNT_T 1
13607 _ACEOF
13608
13609
13610 fi
13611 ac_fn_c_check_type "$LINENO" "fsfilcnt_t" "ac_cv_type_fsfilcnt_t" "$ac_includes_default"
13612 if test "x$ac_cv_type_fsfilcnt_t" = xyes; then :
13613
13614 cat >>confdefs.h <<_ACEOF
13615 #define HAVE_FSFILCNT_T 1
13616 _ACEOF
13617
13618
13619 fi
13620
13621 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "#include <sys/types.h>
13622 #include <signal.h>
13623 "
13624 if test "x$ac_cv_type_sigset_t" = xyes; then :
13625
13626 cat >>confdefs.h <<_ACEOF
13627 #define HAVE_SIGSET_T 1
13628 _ACEOF
13629
13630
13631 fi
13632
13633 ac_fn_c_check_type "$LINENO" "request_sense" "ac_cv_type_request_sense" "#include <linux/cdrom.h>
13634 "
13635 if test "x$ac_cv_type_request_sense" = xyes; then :
13636
13637 cat >>confdefs.h <<_ACEOF
13638 #define HAVE_REQUEST_SENSE 1
13639 _ACEOF
13640
13641
13642 fi
13643
13644
13645 ac_fn_c_check_type "$LINENO" "struct xinpgen" "ac_cv_type_struct_xinpgen" "#include <sys/types.h>
13646 #ifdef HAVE_SYS_SOCKET_H
13647 #include <sys/socket.h>
13648 #endif
13649 #ifdef HAVE_SYS_SOCKETVAR_H
13650 #include <sys/socketvar.h>
13651 #endif
13652 #ifdef HAVE_NET_ROUTE_H
13653 #include <net/route.h>
13654 #endif
13655 #ifdef HAVE_NETINET_IN_H
13656 #include <netinet/in.h>
13657 #endif
13658 #ifdef HAVE_NETINET_IN_SYSTM_H
13659 #include <netinet/in_systm.h>
13660 #endif
13661 #ifdef HAVE_NETINET_IP_H
13662 #include <netinet/ip.h>
13663 #endif
13664 #ifdef HAVE_NETINET_IN_PCB_H
13665 #include <netinet/in_pcb.h>
13666 #endif
13667 "
13668 if test "x$ac_cv_type_struct_xinpgen" = xyes; then :
13669
13670 cat >>confdefs.h <<_ACEOF
13671 #define HAVE_STRUCT_XINPGEN 1
13672 _ACEOF
13673
13674
13675 fi
13676
13677
13678 ac_fn_c_check_member "$LINENO" "struct ff_effect" "direction" "ac_cv_member_struct_ff_effect_direction" "#ifdef HAVE_LINUX_INPUT_H
13679 #include <linux/input.h>
13680 #endif
13681 "
13682 if test "x$ac_cv_member_struct_ff_effect_direction" = xyes; then :
13683
13684 cat >>confdefs.h <<_ACEOF
13685 #define HAVE_STRUCT_FF_EFFECT_DIRECTION 1
13686 _ACEOF
13687
13688
13689 fi
13690
13691
13692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigaddset" >&5
13693 $as_echo_n "checking for sigaddset... " >&6; }
13694 if ${wine_cv_have_sigaddset+:} false; then :
13695   $as_echo_n "(cached) " >&6
13696 else
13697   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13698 /* end confdefs.h.  */
13699 #include <signal.h>
13700 int
13701 main ()
13702 {
13703 sigset_t set; sigaddset(&set,SIGTERM);
13704   ;
13705   return 0;
13706 }
13707 _ACEOF
13708 if ac_fn_c_try_link "$LINENO"; then :
13709   wine_cv_have_sigaddset=yes
13710 else
13711   wine_cv_have_sigaddset=no
13712 fi
13713 rm -f core conftest.err conftest.$ac_objext \
13714     conftest$ac_exeext conftest.$ac_ext
13715 fi
13716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sigaddset" >&5
13717 $as_echo "$wine_cv_have_sigaddset" >&6; }
13718 if test "$wine_cv_have_sigaddset" = "yes"
13719 then
13720
13721 $as_echo "#define HAVE_SIGADDSET 1" >>confdefs.h
13722
13723 fi
13724
13725
13726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
13727 $as_echo_n "checking whether we can use re-entrant gethostbyname_r Linux style... " >&6; }
13728 if ${wine_cv_linux_gethostbyname_r_6+:} false; then :
13729   $as_echo_n "(cached) " >&6
13730 else
13731   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13732 /* end confdefs.h.  */
13733 #include <netdb.h>
13734 int
13735 main ()
13736 {
13737
13738     char *name=0;
13739     struct hostent he;
13740     struct hostent *result;
13741     char *buf=0;
13742     int bufsize=0;
13743     int res,errnr;
13744     char *addr=0;
13745     int addrlen=0;
13746     int addrtype=0;
13747     res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
13748     res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
13749
13750   ;
13751   return 0;
13752 }
13753 _ACEOF
13754 if ac_fn_c_try_link "$LINENO"; then :
13755   wine_cv_linux_gethostbyname_r_6=yes
13756 else
13757   wine_cv_linux_gethostbyname_r_6=no
13758
13759 fi
13760 rm -f core conftest.err conftest.$ac_objext \
13761     conftest$ac_exeext conftest.$ac_ext
13762
13763 fi
13764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_gethostbyname_r_6" >&5
13765 $as_echo "$wine_cv_linux_gethostbyname_r_6" >&6; }
13766    if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
13767    then
13768
13769 $as_echo "#define HAVE_LINUX_GETHOSTBYNAME_R_6 1" >>confdefs.h
13770
13771    fi
13772
13773 if test "$ac_cv_header_linux_joystick_h" = "yes"
13774 then
13775    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
13776 $as_echo_n "checking whether linux/joystick.h uses the Linux 2.2+ API... " >&6; }
13777 if ${wine_cv_linux_joystick_22_api+:} false; then :
13778   $as_echo_n "(cached) " >&6
13779 else
13780   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13781 /* end confdefs.h.  */
13782
13783         #include <sys/ioctl.h>
13784         #include <sys/types.h>
13785         #include <linux/joystick.h>
13786
13787         struct js_event blub;
13788         #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
13789         #error "no 2.2 header"
13790         #endif
13791
13792 int
13793 main ()
13794 {
13795 /*empty*/
13796   ;
13797   return 0;
13798 }
13799 _ACEOF
13800 if ac_fn_c_try_compile "$LINENO"; then :
13801   wine_cv_linux_joystick_22_api=yes
13802 else
13803   wine_cv_linux_joystick_22_api=no
13804 fi
13805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13806
13807 fi
13808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_joystick_22_api" >&5
13809 $as_echo "$wine_cv_linux_joystick_22_api" >&6; }
13810    if test "$wine_cv_linux_joystick_22_api" = "yes"
13811    then
13812
13813 $as_echo "#define HAVE_LINUX_22_JOYSTICK_API 1" >>confdefs.h
13814
13815    fi
13816 fi
13817
13818
13819 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bfree" "ac_cv_member_struct_statfs_f_bfree" "#include <sys/types.h>
13820 #ifdef HAVE_SYS_PARAM_H
13821 # include <sys/param.h>
13822 #endif
13823 #ifdef HAVE_SYS_MOUNT_H
13824 # include <sys/mount.h>
13825 #endif
13826 #ifdef HAVE_SYS_VFS_H
13827 # include <sys/vfs.h>
13828 #endif
13829 #ifdef HAVE_SYS_STATFS_H
13830 # include <sys/statfs.h>
13831 #endif
13832 "
13833 if test "x$ac_cv_member_struct_statfs_f_bfree" = xyes; then :
13834
13835 cat >>confdefs.h <<_ACEOF
13836 #define HAVE_STRUCT_STATFS_F_BFREE 1
13837 _ACEOF
13838
13839
13840 fi
13841 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bavail" "ac_cv_member_struct_statfs_f_bavail" "#include <sys/types.h>
13842 #ifdef HAVE_SYS_PARAM_H
13843 # include <sys/param.h>
13844 #endif
13845 #ifdef HAVE_SYS_MOUNT_H
13846 # include <sys/mount.h>
13847 #endif
13848 #ifdef HAVE_SYS_VFS_H
13849 # include <sys/vfs.h>
13850 #endif
13851 #ifdef HAVE_SYS_STATFS_H
13852 # include <sys/statfs.h>
13853 #endif
13854 "
13855 if test "x$ac_cv_member_struct_statfs_f_bavail" = xyes; then :
13856
13857 cat >>confdefs.h <<_ACEOF
13858 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
13859 _ACEOF
13860
13861
13862 fi
13863 ac_fn_c_check_member "$LINENO" "struct statfs" "f_frsize" "ac_cv_member_struct_statfs_f_frsize" "#include <sys/types.h>
13864 #ifdef HAVE_SYS_PARAM_H
13865 # include <sys/param.h>
13866 #endif
13867 #ifdef HAVE_SYS_MOUNT_H
13868 # include <sys/mount.h>
13869 #endif
13870 #ifdef HAVE_SYS_VFS_H
13871 # include <sys/vfs.h>
13872 #endif
13873 #ifdef HAVE_SYS_STATFS_H
13874 # include <sys/statfs.h>
13875 #endif
13876 "
13877 if test "x$ac_cv_member_struct_statfs_f_frsize" = xyes; then :
13878
13879 cat >>confdefs.h <<_ACEOF
13880 #define HAVE_STRUCT_STATFS_F_FRSIZE 1
13881 _ACEOF
13882
13883
13884 fi
13885 ac_fn_c_check_member "$LINENO" "struct statfs" "f_ffree" "ac_cv_member_struct_statfs_f_ffree" "#include <sys/types.h>
13886 #ifdef HAVE_SYS_PARAM_H
13887 # include <sys/param.h>
13888 #endif
13889 #ifdef HAVE_SYS_MOUNT_H
13890 # include <sys/mount.h>
13891 #endif
13892 #ifdef HAVE_SYS_VFS_H
13893 # include <sys/vfs.h>
13894 #endif
13895 #ifdef HAVE_SYS_STATFS_H
13896 # include <sys/statfs.h>
13897 #endif
13898 "
13899 if test "x$ac_cv_member_struct_statfs_f_ffree" = xyes; then :
13900
13901 cat >>confdefs.h <<_ACEOF
13902 #define HAVE_STRUCT_STATFS_F_FFREE 1
13903 _ACEOF
13904
13905
13906 fi
13907 ac_fn_c_check_member "$LINENO" "struct statfs" "f_favail" "ac_cv_member_struct_statfs_f_favail" "#include <sys/types.h>
13908 #ifdef HAVE_SYS_PARAM_H
13909 # include <sys/param.h>
13910 #endif
13911 #ifdef HAVE_SYS_MOUNT_H
13912 # include <sys/mount.h>
13913 #endif
13914 #ifdef HAVE_SYS_VFS_H
13915 # include <sys/vfs.h>
13916 #endif
13917 #ifdef HAVE_SYS_STATFS_H
13918 # include <sys/statfs.h>
13919 #endif
13920 "
13921 if test "x$ac_cv_member_struct_statfs_f_favail" = xyes; then :
13922
13923 cat >>confdefs.h <<_ACEOF
13924 #define HAVE_STRUCT_STATFS_F_FAVAIL 1
13925 _ACEOF
13926
13927
13928 fi
13929 ac_fn_c_check_member "$LINENO" "struct statfs" "f_namelen" "ac_cv_member_struct_statfs_f_namelen" "#include <sys/types.h>
13930 #ifdef HAVE_SYS_PARAM_H
13931 # include <sys/param.h>
13932 #endif
13933 #ifdef HAVE_SYS_MOUNT_H
13934 # include <sys/mount.h>
13935 #endif
13936 #ifdef HAVE_SYS_VFS_H
13937 # include <sys/vfs.h>
13938 #endif
13939 #ifdef HAVE_SYS_STATFS_H
13940 # include <sys/statfs.h>
13941 #endif
13942 "
13943 if test "x$ac_cv_member_struct_statfs_f_namelen" = xyes; then :
13944
13945 cat >>confdefs.h <<_ACEOF
13946 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
13947 _ACEOF
13948
13949
13950 fi
13951
13952
13953 ac_fn_c_check_member "$LINENO" "struct statvfs" "f_blocks" "ac_cv_member_struct_statvfs_f_blocks" "#ifdef HAVE_SYS_STATVFS_H
13954 #include <sys/statvfs.h>
13955 #endif
13956 "
13957 if test "x$ac_cv_member_struct_statvfs_f_blocks" = xyes; then :
13958
13959 cat >>confdefs.h <<_ACEOF
13960 #define HAVE_STRUCT_STATVFS_F_BLOCKS 1
13961 _ACEOF
13962
13963
13964 fi
13965
13966
13967 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_accrights" "ac_cv_member_struct_msghdr_msg_accrights" "#include <sys/types.h>
13968 #ifdef HAVE_SYS_SOCKET_H
13969 # include <sys/socket.h>
13970 #endif
13971 #ifdef HAVE_SYS_UN_H
13972 # include <sys/un.h>
13973 #endif
13974 "
13975 if test "x$ac_cv_member_struct_msghdr_msg_accrights" = xyes; then :
13976
13977 cat >>confdefs.h <<_ACEOF
13978 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
13979 _ACEOF
13980
13981
13982 fi
13983 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
13984 #ifdef HAVE_SYS_SOCKET_H
13985 # include <sys/socket.h>
13986 #endif
13987 #ifdef HAVE_SYS_UN_H
13988 # include <sys/un.h>
13989 #endif
13990 "
13991 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
13992
13993 cat >>confdefs.h <<_ACEOF
13994 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
13995 _ACEOF
13996
13997
13998 fi
13999 ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" "#include <sys/types.h>
14000 #ifdef HAVE_SYS_SOCKET_H
14001 # include <sys/socket.h>
14002 #endif
14003 #ifdef HAVE_SYS_UN_H
14004 # include <sys/un.h>
14005 #endif
14006 "
14007 if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes; then :
14008
14009 cat >>confdefs.h <<_ACEOF
14010 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
14011 _ACEOF
14012
14013
14014 fi
14015
14016
14017 ac_fn_c_check_member "$LINENO" "scsireq_t" "cmd" "ac_cv_member_scsireq_t_cmd" "#include <sys/types.h>
14018 #ifdef HAVE_SCSI_SG_H
14019 #include <scsi/sg.h>
14020 #endif
14021 "
14022 if test "x$ac_cv_member_scsireq_t_cmd" = xyes; then :
14023
14024 cat >>confdefs.h <<_ACEOF
14025 #define HAVE_SCSIREQ_T_CMD 1
14026 _ACEOF
14027
14028
14029 fi
14030 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>
14031 #ifdef HAVE_SCSI_SG_H
14032 #include <scsi/sg.h>
14033 #endif
14034 "
14035 if test "x$ac_cv_member_sg_io_hdr_t_interface_id" = xyes; then :
14036
14037 cat >>confdefs.h <<_ACEOF
14038 #define HAVE_SG_IO_HDR_T_INTERFACE_ID 1
14039 _ACEOF
14040
14041
14042 fi
14043
14044
14045 ac_fn_c_check_member "$LINENO" "siginfo_t" "si_fd" "ac_cv_member_siginfo_t_si_fd" "#include <signal.h>
14046 "
14047 if test "x$ac_cv_member_siginfo_t_si_fd" = xyes; then :
14048
14049 cat >>confdefs.h <<_ACEOF
14050 #define HAVE_SIGINFO_T_SI_FD 1
14051 _ACEOF
14052
14053
14054 fi
14055
14056
14057 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blksiz" "ac_cv_member_struct_mtget_mt_blksiz" "#include <sys/types.h>
14058 #ifdef HAVE_SYS_MTIO_H
14059 #include <sys/mtio.h>
14060 #endif
14061 "
14062 if test "x$ac_cv_member_struct_mtget_mt_blksiz" = xyes; then :
14063
14064 cat >>confdefs.h <<_ACEOF
14065 #define HAVE_STRUCT_MTGET_MT_BLKSIZ 1
14066 _ACEOF
14067
14068
14069 fi
14070 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_gstat" "ac_cv_member_struct_mtget_mt_gstat" "#include <sys/types.h>
14071 #ifdef HAVE_SYS_MTIO_H
14072 #include <sys/mtio.h>
14073 #endif
14074 "
14075 if test "x$ac_cv_member_struct_mtget_mt_gstat" = xyes; then :
14076
14077 cat >>confdefs.h <<_ACEOF
14078 #define HAVE_STRUCT_MTGET_MT_GSTAT 1
14079 _ACEOF
14080
14081
14082 fi
14083 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blkno" "ac_cv_member_struct_mtget_mt_blkno" "#include <sys/types.h>
14084 #ifdef HAVE_SYS_MTIO_H
14085 #include <sys/mtio.h>
14086 #endif
14087 "
14088 if test "x$ac_cv_member_struct_mtget_mt_blkno" = xyes; then :
14089
14090 cat >>confdefs.h <<_ACEOF
14091 #define HAVE_STRUCT_MTGET_MT_BLKNO 1
14092 _ACEOF
14093
14094
14095 fi
14096
14097
14098 ac_fn_c_check_member "$LINENO" "struct option" "name" "ac_cv_member_struct_option_name" "#ifdef HAVE_GETOPT_H
14099 #include <getopt.h>
14100 #endif
14101 "
14102 if test "x$ac_cv_member_struct_option_name" = xyes; then :
14103
14104 cat >>confdefs.h <<_ACEOF
14105 #define HAVE_STRUCT_OPTION_NAME 1
14106 _ACEOF
14107
14108
14109 fi
14110
14111
14112 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
14113 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
14114
14115 cat >>confdefs.h <<_ACEOF
14116 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
14117 _ACEOF
14118
14119
14120 fi
14121 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
14122 if test "x$ac_cv_member_struct_stat_st_mtim" = xyes; then :
14123
14124 cat >>confdefs.h <<_ACEOF
14125 #define HAVE_STRUCT_STAT_ST_MTIM 1
14126 _ACEOF
14127
14128
14129 fi
14130 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctim" "ac_cv_member_struct_stat_st_ctim" "$ac_includes_default"
14131 if test "x$ac_cv_member_struct_stat_st_ctim" = xyes; then :
14132
14133 cat >>confdefs.h <<_ACEOF
14134 #define HAVE_STRUCT_STAT_ST_CTIM 1
14135 _ACEOF
14136
14137
14138 fi
14139 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
14140 if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
14141
14142 cat >>confdefs.h <<_ACEOF
14143 #define HAVE_STRUCT_STAT_ST_ATIM 1
14144 _ACEOF
14145
14146
14147 fi
14148
14149
14150 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
14151 #include <sys/types.h>
14152 #endif
14153 #ifdef HAVE_NETINET_IN_H
14154 #include <netinet/in.h>
14155 #endif
14156 "
14157 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = xyes; then :
14158
14159 cat >>confdefs.h <<_ACEOF
14160 #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
14161 _ACEOF
14162
14163
14164 fi
14165
14166
14167 ac_fn_c_check_member "$LINENO" "ns_msg" "_msg_ptr" "ac_cv_member_ns_msg__msg_ptr" "#ifdef HAVE_SYS_TYPES_H
14168 #include <sys/types.h>
14169 #endif
14170 #ifdef HAVE_NETINET_IN_H
14171 # include <netinet/in.h>
14172 #endif
14173 #ifdef HAVE_ARPA_NAMESER_H
14174 # include <arpa/nameser.h>
14175 #endif
14176 "
14177 if test "x$ac_cv_member_ns_msg__msg_ptr" = xyes; then :
14178
14179 cat >>confdefs.h <<_ACEOF
14180 #define HAVE_NS_MSG__MSG_PTR 1
14181 _ACEOF
14182
14183
14184 fi
14185
14186
14187 ac_fn_c_check_member "$LINENO" "struct icmpstat" "icps_outhist" "ac_cv_member_struct_icmpstat_icps_outhist" "#ifdef HAVE_SYS_TYPES_H
14188 #include <sys/types.h>
14189 #endif
14190 #ifdef HAVE_ALIAS_H
14191 #include <alias.h>
14192 #endif
14193 #ifdef HAVE_SYS_SOCKET_H
14194 #include <sys/socket.h>
14195 #endif
14196 #ifdef HAVE_SYS_SOCKETVAR_H
14197 #include <sys/socketvar.h>
14198 #endif
14199 #ifdef HAVE_SYS_TIMEOUT_H
14200 #include <sys/timeout.h>
14201 #endif
14202 #ifdef HAVE_NETINET_IN_H
14203 #include <netinet/in.h>
14204 #endif
14205 #ifdef HAVE_NETINET_IN_SYSTM_H
14206 #include <netinet/in_systm.h>
14207 #endif
14208 #ifdef HAVE_NETINET_IP_H
14209 #include <netinet/ip.h>
14210 #endif
14211 #ifdef HAVE_NETINET_IP_VAR_H
14212 #include <netinet/ip_var.h>
14213 #endif
14214 #ifdef HAVE_NETINET_IP_ICMP_H
14215 #include <netinet/ip_icmp.h>
14216 #endif
14217 #ifdef HAVE_NETINET_ICMP_VAR
14218 #include <netinet/icmp_var.h>
14219 #endif
14220 "
14221 if test "x$ac_cv_member_struct_icmpstat_icps_outhist" = xyes; then :
14222
14223 cat >>confdefs.h <<_ACEOF
14224 #define HAVE_STRUCT_ICMPSTAT_ICPS_OUTHIST 1
14225 _ACEOF
14226
14227
14228 fi
14229
14230
14231 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "#ifdef HAVE_SYS_TYPES_H
14232 #include <sys/types.h>
14233 #endif
14234 #ifdef HAVE_NET_IF_H
14235 # include <net/if.h>
14236 #endif
14237 "
14238 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = xyes; then :
14239
14240 cat >>confdefs.h <<_ACEOF
14241 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
14242 _ACEOF
14243
14244
14245 fi
14246
14247
14248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone variable" >&5
14249 $as_echo_n "checking for timezone variable... " >&6; }
14250 if ${ac_cv_have_timezone+:} false; then :
14251   $as_echo_n "(cached) " >&6
14252 else
14253   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14254 /* end confdefs.h.  */
14255 #include <time.h>
14256 int
14257 main ()
14258 {
14259 timezone = 1
14260   ;
14261   return 0;
14262 }
14263 _ACEOF
14264 if ac_fn_c_try_link "$LINENO"; then :
14265   ac_cv_have_timezone="yes"
14266 else
14267   ac_cv_have_timezone="no"
14268 fi
14269 rm -f core conftest.err conftest.$ac_objext \
14270     conftest$ac_exeext conftest.$ac_ext
14271 fi
14272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_timezone" >&5
14273 $as_echo "$ac_cv_have_timezone" >&6; }
14274 if test "$ac_cv_have_timezone" = "yes"
14275 then
14276
14277 $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
14278
14279 fi
14280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daylight variable" >&5
14281 $as_echo_n "checking for daylight variable... " >&6; }
14282 if ${ac_cv_have_daylight+:} false; then :
14283   $as_echo_n "(cached) " >&6
14284 else
14285   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14286 /* end confdefs.h.  */
14287 #include <time.h>
14288 int
14289 main ()
14290 {
14291 daylight = 1
14292   ;
14293   return 0;
14294 }
14295 _ACEOF
14296 if ac_fn_c_try_link "$LINENO"; then :
14297   ac_cv_have_daylight="yes"
14298 else
14299   ac_cv_have_daylight="no"
14300 fi
14301 rm -f core conftest.err conftest.$ac_objext \
14302     conftest$ac_exeext conftest.$ac_ext
14303 fi
14304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_daylight" >&5
14305 $as_echo "$ac_cv_have_daylight" >&6; }
14306 if test "$ac_cv_have_daylight" = "yes"
14307 then
14308
14309 $as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h
14310
14311 fi
14312
14313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf" >&5
14314 $as_echo_n "checking for isinf... " >&6; }
14315 if ${ac_cv_have_isinf+:} false; then :
14316   $as_echo_n "(cached) " >&6
14317 else
14318   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14319 /* end confdefs.h.  */
14320 #include <math.h>
14321 int
14322 main ()
14323 {
14324 float f = 0.0; int i=isinf(f)
14325   ;
14326   return 0;
14327 }
14328 _ACEOF
14329 if ac_fn_c_try_link "$LINENO"; then :
14330   ac_cv_have_isinf="yes"
14331 else
14332   ac_cv_have_isinf="no"
14333 fi
14334 rm -f core conftest.err conftest.$ac_objext \
14335     conftest$ac_exeext conftest.$ac_ext
14336 fi
14337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isinf" >&5
14338 $as_echo "$ac_cv_have_isinf" >&6; }
14339 if test "$ac_cv_have_isinf" = "yes"
14340 then
14341
14342 $as_echo "#define HAVE_ISINF 1" >>confdefs.h
14343
14344 fi
14345
14346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan" >&5
14347 $as_echo_n "checking for isnan... " >&6; }
14348 if ${ac_cv_have_isnan+:} false; then :
14349   $as_echo_n "(cached) " >&6
14350 else
14351   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14352 /* end confdefs.h.  */
14353 #include <math.h>
14354 int
14355 main ()
14356 {
14357 float f = 0.0; int i=isnan(f)
14358   ;
14359   return 0;
14360 }
14361 _ACEOF
14362 if ac_fn_c_try_link "$LINENO"; then :
14363   ac_cv_have_isnan="yes"
14364 else
14365   ac_cv_have_isnan="no"
14366 fi
14367 rm -f core conftest.err conftest.$ac_objext \
14368     conftest$ac_exeext conftest.$ac_ext
14369 fi
14370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isnan" >&5
14371 $as_echo "$ac_cv_have_isnan" >&6; }
14372 if test "$ac_cv_have_isnan" = "yes"
14373 then
14374
14375 $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
14376
14377 fi
14378
14379
14380 case $host_cpu in
14381   *i[3456789]86*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __i386__" >&5
14382 $as_echo_n "checking whether we need to define __i386__... " >&6; }
14383 if ${ac_cv_cpp_def___i386__+:} false; then :
14384   $as_echo_n "(cached) " >&6
14385 else
14386   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14387 /* end confdefs.h.  */
14388 #ifndef __i386__
14389 yes
14390 #endif
14391 _ACEOF
14392 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14393   $EGREP "yes" >/dev/null 2>&1; then :
14394   ac_cv_cpp_def___i386__=yes
14395 else
14396   ac_cv_cpp_def___i386__=no
14397 fi
14398 rm -f conftest*
14399
14400 fi
14401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___i386__" >&5
14402 $as_echo "$ac_cv_cpp_def___i386__" >&6; }
14403 if test $ac_cv_cpp_def___i386__ = yes; then :
14404   CFLAGS="$CFLAGS -D__i386__"
14405   LINTFLAGS="$LINTFLAGS -D__i386__"
14406 fi ;;
14407   *x86_64*)         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __x86_64__" >&5
14408 $as_echo_n "checking whether we need to define __x86_64__... " >&6; }
14409 if ${ac_cv_cpp_def___x86_64__+:} false; then :
14410   $as_echo_n "(cached) " >&6
14411 else
14412   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14413 /* end confdefs.h.  */
14414 #ifndef __x86_64__
14415 yes
14416 #endif
14417 _ACEOF
14418 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14419   $EGREP "yes" >/dev/null 2>&1; then :
14420   ac_cv_cpp_def___x86_64__=yes
14421 else
14422   ac_cv_cpp_def___x86_64__=no
14423 fi
14424 rm -f conftest*
14425
14426 fi
14427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___x86_64__" >&5
14428 $as_echo "$ac_cv_cpp_def___x86_64__" >&6; }
14429 if test $ac_cv_cpp_def___x86_64__ = yes; then :
14430   CFLAGS="$CFLAGS -D__x86_64__"
14431   LINTFLAGS="$LINTFLAGS -D__x86_64__"
14432 fi ;;
14433   *sparc*)          { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sparc__" >&5
14434 $as_echo_n "checking whether we need to define __sparc__... " >&6; }
14435 if ${ac_cv_cpp_def___sparc__+:} false; then :
14436   $as_echo_n "(cached) " >&6
14437 else
14438   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14439 /* end confdefs.h.  */
14440 #ifndef __sparc__
14441 yes
14442 #endif
14443 _ACEOF
14444 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14445   $EGREP "yes" >/dev/null 2>&1; then :
14446   ac_cv_cpp_def___sparc__=yes
14447 else
14448   ac_cv_cpp_def___sparc__=no
14449 fi
14450 rm -f conftest*
14451
14452 fi
14453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sparc__" >&5
14454 $as_echo "$ac_cv_cpp_def___sparc__" >&6; }
14455 if test $ac_cv_cpp_def___sparc__ = yes; then :
14456   CFLAGS="$CFLAGS -D__sparc__"
14457   LINTFLAGS="$LINTFLAGS -D__sparc__"
14458 fi ;;
14459   *powerpc*)        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __powerpc__" >&5
14460 $as_echo_n "checking whether we need to define __powerpc__... " >&6; }
14461 if ${ac_cv_cpp_def___powerpc__+:} false; then :
14462   $as_echo_n "(cached) " >&6
14463 else
14464   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14465 /* end confdefs.h.  */
14466 #ifndef __powerpc__
14467 yes
14468 #endif
14469 _ACEOF
14470 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14471   $EGREP "yes" >/dev/null 2>&1; then :
14472   ac_cv_cpp_def___powerpc__=yes
14473 else
14474   ac_cv_cpp_def___powerpc__=no
14475 fi
14476 rm -f conftest*
14477
14478 fi
14479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___powerpc__" >&5
14480 $as_echo "$ac_cv_cpp_def___powerpc__" >&6; }
14481 if test $ac_cv_cpp_def___powerpc__ = yes; then :
14482   CFLAGS="$CFLAGS -D__powerpc__"
14483   LINTFLAGS="$LINTFLAGS -D__powerpc__"
14484 fi ;;
14485   *arm*)            { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __arm__" >&5
14486 $as_echo_n "checking whether we need to define __arm__... " >&6; }
14487 if ${ac_cv_cpp_def___arm__+:} false; then :
14488   $as_echo_n "(cached) " >&6
14489 else
14490   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14491 /* end confdefs.h.  */
14492 #ifndef __arm__
14493 yes
14494 #endif
14495 _ACEOF
14496 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14497   $EGREP "yes" >/dev/null 2>&1; then :
14498   ac_cv_cpp_def___arm__=yes
14499 else
14500   ac_cv_cpp_def___arm__=no
14501 fi
14502 rm -f conftest*
14503
14504 fi
14505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___arm__" >&5
14506 $as_echo "$ac_cv_cpp_def___arm__" >&6; }
14507 if test $ac_cv_cpp_def___arm__ = yes; then :
14508   CFLAGS="$CFLAGS -D__arm__"
14509   LINTFLAGS="$LINTFLAGS -D__arm__"
14510 fi ;;
14511 esac
14512
14513 case $host_vendor in
14514   *sun*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sun__" >&5
14515 $as_echo_n "checking whether we need to define __sun__... " >&6; }
14516 if ${ac_cv_cpp_def___sun__+:} false; then :
14517   $as_echo_n "(cached) " >&6
14518 else
14519   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14520 /* end confdefs.h.  */
14521 #ifndef __sun__
14522 yes
14523 #endif
14524 _ACEOF
14525 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14526   $EGREP "yes" >/dev/null 2>&1; then :
14527   ac_cv_cpp_def___sun__=yes
14528 else
14529   ac_cv_cpp_def___sun__=no
14530 fi
14531 rm -f conftest*
14532
14533 fi
14534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sun__" >&5
14535 $as_echo "$ac_cv_cpp_def___sun__" >&6; }
14536 if test $ac_cv_cpp_def___sun__ = yes; then :
14537   CFLAGS="$CFLAGS -D__sun__"
14538   LINTFLAGS="$LINTFLAGS -D__sun__"
14539 fi ;;
14540 esac
14541
14542
14543
14544
14545
14546 ac_config_commands="$ac_config_commands include/stamp-h"
14547
14548
14549 ALL_MAKEFILE_DEPENDS="
14550 # Rules automatically generated by configure
14551
14552 .INIT: Makefile
14553 .MAKEFILEDEPS:
14554 all: Makefile
14555 Makefile: Makefile.in Make.vars.in Make.rules config.status
14556         @./config.status Make.tmp Makefile"
14557
14558 ALL_POT_FILES=""
14559 ALL_WINETEST_DEPENDS="# Test binaries"
14560
14561 ALL_TEST_BINARIES=""
14562
14563
14564 wine_fn_append_file ()
14565 {
14566     as_fn_append $1 " \\$as_nl  $2"
14567 }
14568
14569 wine_fn_append_rule ()
14570 {
14571     as_fn_append $1 "$as_nl$2"
14572 }
14573
14574 wine_fn_has_flag ()
14575 {
14576     expr ",$2," : ".*,$1,.*" >/dev/null
14577 }
14578
14579 wine_fn_all_dir_rules ()
14580 {
14581     ac_dir=$1
14582     ac_alldeps=$2
14583     ac_makedep="\$(MAKEDEP)"
14584     ac_input=Make.vars.in:$ac_dir/Makefile.in
14585     if test $ac_dir != tools
14586     then
14587                 ac_alldeps="$2 $ac_makedep"
14588     fi
14589     case $2 in
14590       *.in) ac_input=$ac_input:$2 ;;
14591       *) ac_makedep="$2 $ac_makedep" ;;
14592     esac
14593
14594     wine_fn_append_file ALL_DIRS $ac_dir
14595     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14596 "__clean__: $ac_dir/__clean__
14597 .PHONY: $ac_dir/__clean__
14598 $ac_dir/__clean__: $ac_dir/Makefile
14599         @cd $ac_dir && \$(MAKE) clean
14600         \$(RM) $ac_dir/Makefile
14601 $ac_dir/Makefile: $ac_dir/Makefile.in Make.vars.in config.status $ac_alldeps
14602         @./config.status --file $ac_dir/Makefile:$ac_input && cd $ac_dir && \$(MAKE) depend
14603 depend: $ac_dir/__depend__
14604 .PHONY: $ac_dir/__depend__
14605 $ac_dir/__depend__: $ac_makedep dummy
14606         @./config.status --file $ac_dir/Makefile:$ac_input && cd $ac_dir && \$(MAKE) depend"
14607 }
14608
14609 wine_fn_config_makefile ()
14610 {
14611     ac_dir=$1
14612     ac_enable=$2
14613     if eval test \"x\$"$ac_enable"\" = x"no"; then :
14614   return 0
14615 fi
14616
14617     wine_fn_all_dir_rules $ac_dir Make.rules
14618     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14619 "all: $ac_dir
14620 .PHONY: $ac_dir
14621 $ac_dir: $ac_dir/Makefile dummy
14622         @cd $ac_dir && \$(MAKE)
14623 install:: $ac_dir
14624         @cd $ac_dir && \$(MAKE) install
14625 install-lib:: $ac_dir
14626         @cd $ac_dir && \$(MAKE) install-lib
14627 install-dev:: $ac_dir
14628         @cd $ac_dir && \$(MAKE) install-dev
14629 uninstall:: $ac_dir/Makefile
14630         @cd $ac_dir && \$(MAKE) uninstall"
14631 }
14632
14633 wine_fn_config_lib ()
14634 {
14635     ac_name=$1
14636     ac_dir=dlls/$ac_name
14637     wine_fn_all_dir_rules $ac_dir dlls/Makeimplib.rules
14638     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14639 "all __builddeps__: $ac_dir
14640 $ac_dir: $ac_dir/Makefile tools/widl tools/winebuild tools/winegcc include dummy
14641         @cd $ac_dir && \$(MAKE)
14642 install install-dev:: $ac_dir
14643         @cd $ac_dir && \$(MAKE) install
14644 uninstall:: $ac_dir/Makefile
14645         @cd $ac_dir && \$(MAKE) uninstall"
14646 }
14647
14648 wine_fn_config_dll ()
14649 {
14650     ac_name=$1
14651     ac_dir=dlls/$ac_name
14652     ac_enable=$2
14653     ac_flags=$3
14654     ac_implib=${4:-$ac_name}
14655     ac_file=$ac_dir/lib$ac_implib
14656     ac_deps="tools/widl tools/winebuild tools/winegcc include"
14657     ac_implibflags=""
14658
14659     case $ac_name in
14660       *16) ac_implibflags=" -m16" ;;
14661     esac
14662
14663     wine_fn_all_dir_rules $ac_dir dlls/Makedll.rules
14664
14665     if eval test \"x\$"$ac_enable"\" = x"no"; then :
14666                 test "$ac_enable" != enable_win16 || return 0
14667 else
14668   wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14669 "all: $ac_dir
14670 .PHONY: $ac_dir
14671 $ac_dir: $ac_dir/Makefile __builddeps__ dummy
14672         @cd $ac_dir && \$(MAKE)
14673 install:: $ac_dir/Makefile __builddeps__
14674         @cd $ac_dir && \$(MAKE) install
14675 install-lib:: $ac_dir/Makefile __builddeps__
14676         @cd $ac_dir && \$(MAKE) install-lib
14677 uninstall manpages htmlpages sgmlpages xmlpages:: $ac_dir/Makefile
14678         @cd $ac_dir && \$(MAKE) \$@"
14679
14680         if test "x$enable_maintainer_mode" = xyes
14681         then
14682             if wine_fn_has_flag mc $ac_flags
14683             then
14684                 wine_fn_append_file ALL_POT_FILES $ac_dir/msg.pot
14685                 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14686 "$ac_dir/msg.pot: $ac_dir"
14687             fi
14688             if wine_fn_has_flag po $ac_flags
14689             then
14690                 wine_fn_append_file ALL_POT_FILES $ac_dir/rsrc.pot
14691                 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14692 "$ac_dir/rsrc.pot: $ac_dir"
14693             fi
14694         fi
14695 fi
14696
14697     if wine_fn_has_flag staticimplib $ac_flags
14698     then
14699         wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14700 "__builddeps__: $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT
14701 $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT $ac_file.cross.a: $ac_deps
14702 $ac_file.def: $ac_dir/$ac_name.spec $ac_dir/Makefile
14703         @cd $ac_dir && \$(MAKE) lib$ac_implib.def
14704 $ac_file.$STATIC_IMPLIBEXT: $ac_dir/Makefile dummy
14705         @cd $ac_dir && \$(MAKE) lib$ac_implib.$STATIC_IMPLIBEXT
14706 install-dev:: $ac_dir/Makefile __builddeps__
14707         @cd $ac_dir && \$(MAKE) install-dev"
14708         if test "x$CROSSTEST_DISABLE" = x
14709         then
14710             wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14711 "__builddeps__: $ac_file.cross.a
14712 $ac_file.cross.a: $ac_dir/Makefile dummy
14713         @cd $ac_dir && \$(MAKE) lib$ac_implib.cross.a"
14714         fi
14715
14716     elif wine_fn_has_flag implib $ac_flags
14717     then
14718         wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14719 "__builddeps__: $ac_file.$IMPLIBEXT
14720 $ac_file.def: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
14721         \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --def -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec
14722 $ac_file.a: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
14723         \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --implib -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec
14724 install-dev:: $ac_dir/Makefile __builddeps__
14725         @cd $ac_dir && \$(MAKE) install-dev"
14726         if test "x$CROSSTEST_DISABLE" = x
14727         then
14728             wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14729 "__builddeps__: $ac_file.cross.a
14730 $ac_file.cross.a: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
14731         \$(WINEBUILD) \$(CROSSTARGET:%=-b %)$ac_implibflags -w --implib -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec"
14732         fi
14733
14734         if test "$ac_name" != "$ac_implib"
14735         then
14736             wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14737 "__builddeps__: dlls/lib$ac_implib.$IMPLIBEXT
14738 dlls/lib$ac_implib.$IMPLIBEXT: $ac_file.$IMPLIBEXT
14739         \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.$IMPLIBEXT \$@
14740 clean::
14741         \$(RM) dlls/lib$ac_implib.$IMPLIBEXT"
14742             if test "x$CROSSTEST_DISABLE" = x
14743             then
14744                 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14745 "__builddeps__: dlls/lib$ac_implib.cross.a
14746 dlls/lib$ac_implib.cross.a: $ac_file.cross.a
14747         \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.cross.a \$@"
14748             fi
14749         fi
14750     fi
14751 }
14752
14753 wine_fn_config_program ()
14754 {
14755     ac_name=$1
14756     ac_dir=programs/$ac_name
14757     ac_enable=$2
14758     ac_flags=$3
14759     wine_fn_all_dir_rules $ac_dir programs/Makeprog.rules
14760
14761     if eval test \"x\$"$ac_enable"\" = x"no"; then :
14762
14763 else
14764   wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14765 "all: $ac_dir
14766 .PHONY: $ac_dir
14767 $ac_dir: $ac_dir/Makefile __builddeps__ dummy
14768         @cd $ac_dir && \$(MAKE)"
14769
14770     if test "x$enable_maintainer_mode" = xyes
14771     then
14772         if wine_fn_has_flag mc $ac_flags
14773         then
14774             wine_fn_append_file ALL_POT_FILES $ac_dir/msg.pot
14775             wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14776 "$ac_dir/msg.pot: $ac_dir"
14777         fi
14778         if wine_fn_has_flag po $ac_flags
14779         then
14780             wine_fn_append_file ALL_POT_FILES $ac_dir/rsrc.pot
14781             wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14782 "$ac_dir/rsrc.pot: $ac_dir"
14783         fi
14784     fi
14785
14786     wine_fn_has_flag install $ac_flags || return
14787     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14788 "install install-lib:: $ac_dir/Makefile __builddeps__
14789         @cd $ac_dir && \$(MAKE) install
14790 uninstall:: $ac_dir/Makefile
14791         @cd $ac_dir && \$(MAKE) uninstall"
14792     if test -n "$DLLEXT" -a "x$enable_tools" != xno && wine_fn_has_flag installbin $ac_flags
14793     then
14794         wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14795 "install install-lib:: tools \$(DESTDIR)\$(bindir)
14796         \$(INSTALL_SCRIPT) tools/wineapploader \$(DESTDIR)\$(bindir)/$ac_name
14797 uninstall::
14798         \$(RM) \$(DESTDIR)\$(bindir)/$ac_name"
14799     fi
14800 fi
14801 }
14802
14803 wine_fn_config_test ()
14804 {
14805     ac_dir=$1
14806     ac_name=$2
14807     wine_fn_append_file ALL_TEST_BINARIES $ac_name.exe
14808     wine_fn_append_rule ALL_WINETEST_DEPENDS \
14809 "$ac_name.exe: \$(top_builddir)/$ac_dir/$ac_name.exe$DLLEXT
14810         cp \$(top_builddir)/$ac_dir/$ac_name.exe$DLLEXT \$@ && \$(STRIP) \$@
14811 $ac_name.rc:
14812         echo \"$ac_name.exe TESTRES \\\"$ac_name.exe\\\"\" >\$@ || (\$(RM) \$@ && false)
14813 $ac_name.res: $ac_name.rc $ac_name.exe"
14814     wine_fn_all_dir_rules $ac_dir Maketest.rules
14815
14816     if test "x$enable_tests" = xno; then :
14817
14818 else
14819   wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14820 "all programs/winetest: $ac_dir
14821 .PHONY: $ac_dir
14822 $ac_dir: $ac_dir/Makefile __builddeps__ dummy
14823         @cd $ac_dir && \$(MAKE)
14824 test: $ac_dir/__test__
14825 .PHONY: $ac_dir/__test__
14826 $ac_dir/__test__: dummy
14827         @cd $ac_dir && \$(MAKE) test
14828 testclean::
14829         \$(RM) $ac_dir/*.ok"
14830
14831         if test "x$CROSSTEST_DISABLE" = x
14832         then
14833             wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14834 "crosstest: $ac_dir/__crosstest__
14835 .PHONY: $ac_dir/__crosstest__
14836 $ac_dir/__crosstest__: $ac_dir/Makefile __builddeps__ dummy
14837         @cd $ac_dir && \$(MAKE) crosstest"
14838         fi
14839 fi
14840 }
14841
14842 wine_fn_config_tool ()
14843 {
14844     ac_dir=$1
14845     wine_fn_all_dir_rules $ac_dir Make.rules
14846
14847     if test "x$enable_tools" = xno; then :
14848
14849 else
14850   case $ac_dir in
14851             tools) wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14852 "install:: $ac_dir
14853         @cd $ac_dir && \$(MAKE) install
14854 install-lib:: $ac_dir
14855         @cd $ac_dir && \$(MAKE) install-lib
14856 install-dev:: $ac_dir
14857         @cd $ac_dir && \$(MAKE) install-dev" ;;
14858       *)     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14859 "install install-dev:: $ac_dir
14860         @cd $ac_dir && \$(MAKE) install" ;;
14861       esac
14862       wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14863 "uninstall:: $ac_dir/Makefile
14864         @cd $ac_dir && \$(MAKE) uninstall
14865 all __tooldeps__: $ac_dir
14866 .PHONY: $ac_dir
14867 $ac_dir: $ac_dir/Makefile libs/port dummy
14868         @cd $ac_dir && \$(MAKE)"
14869       case $ac_dir in
14870         tools/winebuild) wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(WINEBUILD): $ac_dir" ;;
14871       esac
14872 fi
14873 }
14874
14875 wine_fn_config_makerules ()
14876 {
14877     ac_rules=$1
14878     ac_deps=$2
14879     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14880 "$ac_rules: $ac_rules.in $ac_deps config.status
14881         @./config.status $ac_rules
14882 distclean::
14883         \$(RM) $ac_rules"
14884 }
14885
14886 wine_fn_config_symlink ()
14887 {
14888     ac_link=$1
14889     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14890 "$ac_link:
14891         @./config.status $ac_link
14892 distclean::
14893         \$(RM) $ac_link"
14894 }
14895
14896 if test "x$CROSSTEST_DISABLE" != x
14897 then
14898     wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14899 "crosstest:
14900         @echo \"crosstest is not supported (mingw not installed?)\" && false"
14901 fi
14902 ac_config_links="$ac_config_links dlls/shell32/AUTHORS:AUTHORS"
14903 wine_fn_config_symlink dlls/shell32/AUTHORS
14904 ac_config_links="$ac_config_links dlls/wineps.drv/generic.ppd:dlls/wineps.drv/generic.ppd"
14905 test "$srcdir" = "." || wine_fn_config_symlink dlls/wineps.drv/generic.ppd
14906 if test "x$enable_fonts" != xno; then
14907 ac_config_links="$ac_config_links fonts/marlett.ttf:fonts/marlett.ttf"
14908 test "$srcdir" = "." || wine_fn_config_symlink fonts/marlett.ttf
14909 fi
14910 if test "x$enable_fonts" != xno; then
14911 ac_config_links="$ac_config_links fonts/symbol.ttf:fonts/symbol.ttf"
14912 test "$srcdir" = "." || wine_fn_config_symlink fonts/symbol.ttf
14913 fi
14914 if test "x$enable_fonts" != xno; then
14915 ac_config_links="$ac_config_links fonts/tahoma.ttf:fonts/tahoma.ttf"
14916 test "$srcdir" = "." || wine_fn_config_symlink fonts/tahoma.ttf
14917 fi
14918 if test "x$enable_fonts" != xno; then
14919 ac_config_links="$ac_config_links fonts/tahomabd.ttf:fonts/tahomabd.ttf"
14920 test "$srcdir" = "." || wine_fn_config_symlink fonts/tahomabd.ttf
14921 fi
14922 ac_config_links="$ac_config_links tools/l_intl.nls:tools/l_intl.nls"
14923 test "$srcdir" = "." || wine_fn_config_symlink tools/l_intl.nls
14924 ac_config_links="$ac_config_links wine:tools/winewrapper"
14925 wine_fn_config_symlink wine
14926
14927 ac_config_commands="$ac_config_commands dlls/gdi32/dibdrv"
14928
14929 ac_config_commands="$ac_config_commands dlls/gdi32/enhmfdrv"
14930
14931 ac_config_commands="$ac_config_commands dlls/gdi32/mfdrv"
14932
14933 ac_config_commands="$ac_config_commands dlls/kernel32/nls"
14934
14935 ac_config_commands="$ac_config_commands dlls/user32/resources"
14936
14937 ac_config_commands="$ac_config_commands dlls/wineps.drv/data"
14938
14939 ac_config_commands="$ac_config_commands include/wine"
14940
14941
14942 wine_fn_config_makerules Make.rules
14943 MAKE_RULES=Make.rules
14944 ac_config_files="$ac_config_files Make.rules"
14945
14946 wine_fn_config_makerules Maketest.rules Make.rules
14947 MAKE_TEST_RULES=Maketest.rules
14948 ac_config_files="$ac_config_files Maketest.rules"
14949
14950 wine_fn_config_makerules dlls/Makedll.rules Make.rules
14951 MAKE_DLL_RULES=dlls/Makedll.rules
14952 ac_config_files="$ac_config_files dlls/Makedll.rules"
14953
14954 wine_fn_config_makerules dlls/Makeimplib.rules Make.rules
14955 MAKE_IMPLIB_RULES=dlls/Makeimplib.rules
14956 ac_config_files="$ac_config_files dlls/Makeimplib.rules"
14957
14958 wine_fn_config_makerules programs/Makeprog.rules Make.rules
14959 MAKE_PROG_RULES=programs/Makeprog.rules
14960 ac_config_files="$ac_config_files programs/Makeprog.rules"
14961
14962
14963 wine_fn_config_dll acledit enable_acledit
14964 wine_fn_config_dll aclui enable_aclui implib
14965 wine_fn_config_dll activeds enable_activeds implib
14966 wine_fn_config_dll actxprxy enable_actxprxy
14967 wine_fn_config_lib adsiid
14968 wine_fn_config_dll advapi32 enable_advapi32 implib
14969 wine_fn_config_test dlls/advapi32/tests advapi32_test
14970 wine_fn_config_dll advpack enable_advpack implib
14971 wine_fn_config_test dlls/advpack/tests advpack_test
14972 wine_fn_config_dll amstream enable_amstream
14973 wine_fn_config_test dlls/amstream/tests amstream_test
14974 wine_fn_config_dll appwiz.cpl enable_appwiz_cpl po
14975 wine_fn_config_dll atl enable_atl implib
14976 wine_fn_config_test dlls/atl/tests atl_test
14977 wine_fn_config_dll authz enable_authz
14978 wine_fn_config_dll avicap32 enable_avicap32 implib
14979 wine_fn_config_dll avifil32 enable_avifil32 po,implib
14980 wine_fn_config_test dlls/avifil32/tests avifil32_test
14981 wine_fn_config_dll avifile.dll16 enable_win16
14982 wine_fn_config_dll avrt enable_avrt implib
14983 wine_fn_config_dll bcrypt enable_bcrypt
14984 wine_fn_config_dll browseui enable_browseui po
14985 wine_fn_config_test dlls/browseui/tests browseui_test
14986 wine_fn_config_dll cabinet enable_cabinet implib
14987 wine_fn_config_test dlls/cabinet/tests cabinet_test
14988 wine_fn_config_dll capi2032 enable_capi2032 implib
14989 wine_fn_config_dll cards enable_cards implib
14990 wine_fn_config_dll cfgmgr32 enable_cfgmgr32 implib
14991 wine_fn_config_dll clusapi enable_clusapi implib
14992 wine_fn_config_dll comcat enable_comcat
14993 wine_fn_config_test dlls/comcat/tests comcat_test
14994 wine_fn_config_dll comctl32 enable_comctl32 po,implib
14995 wine_fn_config_test dlls/comctl32/tests comctl32_test
14996 wine_fn_config_dll comdlg32 enable_comdlg32 po,implib
14997 wine_fn_config_test dlls/comdlg32/tests comdlg32_test
14998 wine_fn_config_dll comm.drv16 enable_win16
14999 wine_fn_config_dll commdlg.dll16 enable_win16
15000 wine_fn_config_dll compobj.dll16 enable_win16
15001 wine_fn_config_dll compstui enable_compstui implib
15002 wine_fn_config_dll credui enable_credui po,implib
15003 wine_fn_config_test dlls/credui/tests credui_test
15004 wine_fn_config_dll crtdll enable_crtdll implib
15005 wine_fn_config_dll crypt32 enable_crypt32 po,implib
15006 wine_fn_config_test dlls/crypt32/tests crypt32_test
15007 wine_fn_config_dll cryptdlg enable_cryptdlg po
15008 wine_fn_config_dll cryptdll enable_cryptdll implib
15009 wine_fn_config_dll cryptnet enable_cryptnet implib
15010 wine_fn_config_test dlls/cryptnet/tests cryptnet_test
15011 wine_fn_config_dll cryptui enable_cryptui po,implib
15012 wine_fn_config_test dlls/cryptui/tests cryptui_test
15013 wine_fn_config_dll ctapi32 enable_ctapi32
15014 wine_fn_config_dll ctl3d.dll16 enable_win16
15015 wine_fn_config_dll ctl3d32 enable_ctl3d32 implib
15016 wine_fn_config_dll ctl3dv2.dll16 enable_win16
15017 wine_fn_config_dll d3d10 enable_d3d10 implib
15018 wine_fn_config_test dlls/d3d10/tests d3d10_test
15019 wine_fn_config_dll d3d10core enable_d3d10core implib
15020 wine_fn_config_test dlls/d3d10core/tests d3d10core_test
15021 wine_fn_config_dll d3d8 enable_d3d8 implib
15022 wine_fn_config_test dlls/d3d8/tests d3d8_test
15023 wine_fn_config_dll d3d9 enable_d3d9 implib
15024 wine_fn_config_test dlls/d3d9/tests d3d9_test
15025 wine_fn_config_dll d3dcompiler_33 enable_d3dcompiler_33
15026 wine_fn_config_dll d3dcompiler_34 enable_d3dcompiler_34
15027 wine_fn_config_dll d3dcompiler_35 enable_d3dcompiler_35
15028 wine_fn_config_dll d3dcompiler_36 enable_d3dcompiler_36
15029 wine_fn_config_dll d3dcompiler_37 enable_d3dcompiler_37
15030 wine_fn_config_dll d3dcompiler_38 enable_d3dcompiler_38
15031 wine_fn_config_dll d3dcompiler_39 enable_d3dcompiler_39
15032 wine_fn_config_dll d3dcompiler_40 enable_d3dcompiler_40
15033 wine_fn_config_dll d3dcompiler_41 enable_d3dcompiler_41
15034 wine_fn_config_dll d3dcompiler_42 enable_d3dcompiler_42
15035 wine_fn_config_dll d3dcompiler_43 enable_d3dcompiler_43 implib d3dcompiler
15036 wine_fn_config_test dlls/d3dcompiler_43/tests d3dcompiler_43_test
15037 wine_fn_config_dll d3dim enable_d3dim implib
15038 wine_fn_config_dll d3drm enable_d3drm implib
15039 wine_fn_config_test dlls/d3drm/tests d3drm_test
15040 wine_fn_config_dll d3dx10_33 enable_d3dx10_33
15041 wine_fn_config_dll d3dx10_34 enable_d3dx10_34
15042 wine_fn_config_dll d3dx10_35 enable_d3dx10_35
15043 wine_fn_config_dll d3dx10_36 enable_d3dx10_36
15044 wine_fn_config_dll d3dx10_37 enable_d3dx10_37
15045 wine_fn_config_dll d3dx10_38 enable_d3dx10_38
15046 wine_fn_config_dll d3dx10_39 enable_d3dx10_39
15047 wine_fn_config_dll d3dx10_40 enable_d3dx10_40
15048 wine_fn_config_dll d3dx10_41 enable_d3dx10_41
15049 wine_fn_config_dll d3dx10_42 enable_d3dx10_42
15050 wine_fn_config_dll d3dx10_43 enable_d3dx10_43
15051 wine_fn_config_dll d3dx9_24 enable_d3dx9_24
15052 wine_fn_config_dll d3dx9_25 enable_d3dx9_25
15053 wine_fn_config_dll d3dx9_26 enable_d3dx9_26
15054 wine_fn_config_dll d3dx9_27 enable_d3dx9_27
15055 wine_fn_config_dll d3dx9_28 enable_d3dx9_28
15056 wine_fn_config_dll d3dx9_29 enable_d3dx9_29
15057 wine_fn_config_dll d3dx9_30 enable_d3dx9_30
15058 wine_fn_config_dll d3dx9_31 enable_d3dx9_31
15059 wine_fn_config_dll d3dx9_32 enable_d3dx9_32
15060 wine_fn_config_dll d3dx9_33 enable_d3dx9_33
15061 wine_fn_config_dll d3dx9_34 enable_d3dx9_34
15062 wine_fn_config_dll d3dx9_35 enable_d3dx9_35
15063 wine_fn_config_dll d3dx9_36 enable_d3dx9_36 implib d3dx9
15064 wine_fn_config_test dlls/d3dx9_36/tests d3dx9_36_test
15065 wine_fn_config_dll d3dx9_37 enable_d3dx9_37
15066 wine_fn_config_dll d3dx9_38 enable_d3dx9_38
15067 wine_fn_config_dll d3dx9_39 enable_d3dx9_39
15068 wine_fn_config_dll d3dx9_40 enable_d3dx9_40
15069 wine_fn_config_dll d3dx9_41 enable_d3dx9_41
15070 wine_fn_config_dll d3dx9_42 enable_d3dx9_42
15071 wine_fn_config_dll d3dx9_43 enable_d3dx9_43
15072 wine_fn_config_dll d3dxof enable_d3dxof implib
15073 wine_fn_config_test dlls/d3dxof/tests d3dxof_test
15074 wine_fn_config_dll dbgeng enable_dbgeng implib
15075 wine_fn_config_dll dbghelp enable_dbghelp implib
15076 wine_fn_config_dll dciman32 enable_dciman32 implib
15077 wine_fn_config_dll ddeml.dll16 enable_win16
15078 wine_fn_config_dll ddraw enable_ddraw implib
15079 wine_fn_config_test dlls/ddraw/tests ddraw_test
15080 wine_fn_config_dll ddrawex enable_ddrawex
15081 wine_fn_config_test dlls/ddrawex/tests ddrawex_test
15082 wine_fn_config_dll devenum enable_devenum po
15083 wine_fn_config_dll dinput enable_dinput implib,staticimplib
15084 wine_fn_config_test dlls/dinput/tests dinput_test
15085 wine_fn_config_dll dinput8 enable_dinput8 implib
15086 wine_fn_config_dll dispdib.dll16 enable_win16
15087 wine_fn_config_dll dispex enable_dispex
15088 wine_fn_config_test dlls/dispex/tests dispex_test
15089 wine_fn_config_dll display.drv16 enable_win16
15090 wine_fn_config_dll dmband enable_dmband
15091 wine_fn_config_dll dmcompos enable_dmcompos
15092 wine_fn_config_dll dmime enable_dmime
15093 wine_fn_config_test dlls/dmime/tests dmime_test
15094 wine_fn_config_dll dmloader enable_dmloader
15095 wine_fn_config_test dlls/dmloader/tests dmloader_test
15096 wine_fn_config_dll dmscript enable_dmscript
15097 wine_fn_config_dll dmstyle enable_dmstyle
15098 wine_fn_config_dll dmsynth enable_dmsynth
15099 wine_fn_config_dll dmusic enable_dmusic
15100 wine_fn_config_dll dmusic32 enable_dmusic32 implib
15101 wine_fn_config_dll dnsapi enable_dnsapi implib
15102 wine_fn_config_test dlls/dnsapi/tests dnsapi_test
15103 wine_fn_config_dll dplay enable_dplay implib
15104 wine_fn_config_dll dplayx enable_dplayx implib
15105 wine_fn_config_test dlls/dplayx/tests dplayx_test
15106 wine_fn_config_dll dpnaddr enable_dpnaddr
15107 wine_fn_config_dll dpnet enable_dpnet implib
15108 wine_fn_config_dll dpnhpast enable_dpnhpast
15109 wine_fn_config_dll dpnlobby enable_dpnlobby
15110 wine_fn_config_dll dpwsockx enable_dpwsockx
15111 wine_fn_config_dll drmclien enable_drmclien
15112 wine_fn_config_dll dsound enable_dsound implib
15113 wine_fn_config_test dlls/dsound/tests dsound_test
15114 wine_fn_config_dll dssenh enable_dssenh
15115 wine_fn_config_dll dswave enable_dswave
15116 wine_fn_config_dll dwmapi enable_dwmapi implib
15117 wine_fn_config_dll dxdiagn enable_dxdiagn po
15118 wine_fn_config_test dlls/dxdiagn/tests dxdiagn_test
15119 wine_fn_config_lib dxerr8
15120 wine_fn_config_lib dxerr9
15121 wine_fn_config_dll dxgi enable_dxgi implib
15122 wine_fn_config_test dlls/dxgi/tests dxgi_test
15123 wine_fn_config_lib dxguid
15124 wine_fn_config_dll explorerframe enable_explorerframe
15125 wine_fn_config_test dlls/explorerframe/tests explorerframe_test
15126 wine_fn_config_dll faultrep enable_faultrep implib
15127 wine_fn_config_test dlls/faultrep/tests faultrep_test
15128 wine_fn_config_dll fltlib enable_fltlib
15129 wine_fn_config_dll fusion enable_fusion
15130 wine_fn_config_test dlls/fusion/tests fusion_test
15131 wine_fn_config_dll fwpuclnt enable_fwpuclnt
15132 wine_fn_config_dll gameux enable_gameux
15133 wine_fn_config_test dlls/gameux/tests gameux_test
15134 wine_fn_config_dll gdi.exe16 enable_win16
15135 wine_fn_config_dll gdi32 enable_gdi32 implib
15136 wine_fn_config_test dlls/gdi32/tests gdi32_test
15137 wine_fn_config_dll gdiplus enable_gdiplus implib
15138 wine_fn_config_test dlls/gdiplus/tests gdiplus_test
15139 wine_fn_config_dll glu32 enable_glu32 implib
15140 wine_fn_config_dll gphoto2.ds enable_gphoto2_ds
15141 wine_fn_config_dll gpkcsp enable_gpkcsp
15142 wine_fn_config_dll hal enable_hal
15143 wine_fn_config_dll hhctrl.ocx enable_hhctrl_ocx po
15144 wine_fn_config_dll hid enable_hid implib
15145 wine_fn_config_dll hlink enable_hlink implib
15146 wine_fn_config_test dlls/hlink/tests hlink_test
15147 wine_fn_config_dll hnetcfg enable_hnetcfg
15148 wine_fn_config_dll httpapi enable_httpapi
15149 wine_fn_config_dll iccvid enable_iccvid po
15150 wine_fn_config_dll icmp enable_icmp
15151 wine_fn_config_dll ifsmgr.vxd enable_win16
15152 wine_fn_config_dll imaadp32.acm enable_imaadp32_acm
15153 wine_fn_config_dll imagehlp enable_imagehlp implib
15154 wine_fn_config_test dlls/imagehlp/tests imagehlp_test
15155 wine_fn_config_dll imm.dll16 enable_win16
15156 wine_fn_config_dll imm32 enable_imm32 implib
15157 wine_fn_config_test dlls/imm32/tests imm32_test
15158 wine_fn_config_dll inetcomm enable_inetcomm implib
15159 wine_fn_config_test dlls/inetcomm/tests inetcomm_test
15160 wine_fn_config_dll inetcpl.cpl enable_inetcpl_cpl po
15161 wine_fn_config_dll inetmib1 enable_inetmib1
15162 wine_fn_config_test dlls/inetmib1/tests inetmib1_test
15163 wine_fn_config_dll infosoft enable_infosoft
15164 wine_fn_config_test dlls/infosoft/tests infosoft_test
15165 wine_fn_config_dll initpki enable_initpki
15166 wine_fn_config_dll inkobj enable_inkobj
15167 wine_fn_config_dll inseng enable_inseng
15168 wine_fn_config_dll iphlpapi enable_iphlpapi implib
15169 wine_fn_config_test dlls/iphlpapi/tests iphlpapi_test
15170 wine_fn_config_dll itircl enable_itircl
15171 wine_fn_config_dll itss enable_itss
15172 wine_fn_config_test dlls/itss/tests itss_test
15173 wine_fn_config_dll jscript enable_jscript po
15174 wine_fn_config_test dlls/jscript/tests jscript_test
15175 wine_fn_config_dll kernel32 enable_kernel32 mc,implib
15176 wine_fn_config_test dlls/kernel32/tests kernel32_test
15177 wine_fn_config_dll keyboard.drv16 enable_win16
15178 wine_fn_config_dll krnl386.exe16 enable_win16 implib kernel
15179 wine_fn_config_dll ktmw32 enable_ktmw32
15180 wine_fn_config_dll loadperf enable_loadperf implib
15181 wine_fn_config_dll localspl enable_localspl po
15182 wine_fn_config_test dlls/localspl/tests localspl_test
15183 wine_fn_config_dll localui enable_localui po
15184 wine_fn_config_test dlls/localui/tests localui_test
15185 wine_fn_config_dll lz32 enable_lz32 implib
15186 wine_fn_config_test dlls/lz32/tests lz32_test
15187 wine_fn_config_dll lzexpand.dll16 enable_win16
15188 wine_fn_config_dll mapi32 enable_mapi32 po,implib
15189 wine_fn_config_test dlls/mapi32/tests mapi32_test
15190 wine_fn_config_dll mapistub enable_mapistub
15191 wine_fn_config_dll mciavi32 enable_mciavi32
15192 wine_fn_config_dll mcicda enable_mcicda
15193 wine_fn_config_dll mciqtz32 enable_mciqtz32
15194 wine_fn_config_dll mciseq enable_mciseq
15195 wine_fn_config_dll mciwave enable_mciwave
15196 wine_fn_config_dll midimap enable_midimap
15197 wine_fn_config_dll mlang enable_mlang implib
15198 wine_fn_config_test dlls/mlang/tests mlang_test
15199 wine_fn_config_dll mmdevapi enable_mmdevapi
15200 wine_fn_config_test dlls/mmdevapi/tests mmdevapi_test
15201 wine_fn_config_dll mmdevldr.vxd enable_win16
15202 wine_fn_config_dll mmsystem.dll16 enable_win16
15203 wine_fn_config_dll monodebg.vxd enable_win16
15204 wine_fn_config_dll mountmgr.sys enable_mountmgr_sys
15205 wine_fn_config_dll mouse.drv16 enable_win16
15206 wine_fn_config_dll mpr enable_mpr po,implib
15207 wine_fn_config_dll mprapi enable_mprapi implib
15208 wine_fn_config_dll msacm.dll16 enable_win16
15209 wine_fn_config_dll msacm32.drv enable_msacm32_drv
15210 wine_fn_config_dll msacm32 enable_msacm32 implib
15211 wine_fn_config_test dlls/msacm32/tests msacm32_test
15212 wine_fn_config_dll msadp32.acm enable_msadp32_acm
15213 wine_fn_config_dll mscat32 enable_mscat32
15214 wine_fn_config_dll mscms enable_mscms implib
15215 wine_fn_config_test dlls/mscms/tests mscms_test
15216 wine_fn_config_dll mscoree enable_mscoree
15217 wine_fn_config_test dlls/mscoree/tests mscoree_test
15218 wine_fn_config_dll msctf enable_msctf
15219 wine_fn_config_test dlls/msctf/tests msctf_test
15220 wine_fn_config_dll msdaps enable_msdaps
15221 wine_fn_config_dll msdmo enable_msdmo implib
15222 wine_fn_config_dll msftedit enable_msftedit
15223 wine_fn_config_dll msg711.acm enable_msg711_acm
15224 wine_fn_config_dll msgsm32.acm enable_msgsm32_acm
15225 wine_fn_config_dll mshtml.tlb enable_mshtml_tlb
15226 wine_fn_config_dll mshtml enable_mshtml po,implib
15227 wine_fn_config_test dlls/mshtml/tests mshtml_test
15228 wine_fn_config_dll msi enable_msi po,implib
15229 wine_fn_config_test dlls/msi/tests msi_test
15230 wine_fn_config_dll msimg32 enable_msimg32 implib
15231 wine_fn_config_dll msimsg enable_msimsg
15232 wine_fn_config_dll msimtf enable_msimtf
15233 wine_fn_config_dll msisip enable_msisip
15234 wine_fn_config_dll msisys.ocx enable_msisys_ocx
15235 wine_fn_config_dll msnet32 enable_msnet32
15236 wine_fn_config_dll mspatcha enable_mspatcha
15237 wine_fn_config_dll msrle32 enable_msrle32 po
15238 wine_fn_config_dll mssign32 enable_mssign32
15239 wine_fn_config_dll mssip32 enable_mssip32
15240 wine_fn_config_dll mstask enable_mstask
15241 wine_fn_config_test dlls/mstask/tests mstask_test
15242 wine_fn_config_dll msvcirt enable_msvcirt
15243 wine_fn_config_dll msvcp100 enable_msvcp100
15244 wine_fn_config_dll msvcp80 enable_msvcp80
15245 wine_fn_config_dll msvcp90 enable_msvcp90
15246 wine_fn_config_test dlls/msvcp90/tests msvcp90_test
15247 wine_fn_config_dll msvcr100 enable_msvcr100
15248 wine_fn_config_dll msvcr70 enable_msvcr70 implib
15249 wine_fn_config_dll msvcr71 enable_msvcr71 implib
15250 wine_fn_config_dll msvcr80 enable_msvcr80
15251 wine_fn_config_dll msvcr90 enable_msvcr90
15252 wine_fn_config_test dlls/msvcr90/tests msvcr90_test
15253 wine_fn_config_dll msvcrt enable_msvcrt implib
15254 wine_fn_config_test dlls/msvcrt/tests msvcrt_test
15255 wine_fn_config_dll msvcrt20 enable_msvcrt20 implib
15256 wine_fn_config_dll msvcrt40 enable_msvcrt40 implib
15257 wine_fn_config_dll msvcrtd enable_msvcrtd implib
15258 wine_fn_config_test dlls/msvcrtd/tests msvcrtd_test
15259 wine_fn_config_dll msvfw32 enable_msvfw32 po,implib
15260 wine_fn_config_test dlls/msvfw32/tests msvfw32_test
15261 wine_fn_config_dll msvidc32 enable_msvidc32 po
15262 wine_fn_config_dll msvideo.dll16 enable_win16
15263 wine_fn_config_dll mswsock enable_mswsock implib
15264 wine_fn_config_dll msxml enable_msxml
15265 wine_fn_config_dll msxml2 enable_msxml2
15266 wine_fn_config_dll msxml3 enable_msxml3
15267 wine_fn_config_test dlls/msxml3/tests msxml3_test
15268 wine_fn_config_dll msxml4 enable_msxml4
15269 wine_fn_config_dll msxml6 enable_msxml6
15270 wine_fn_config_dll nddeapi enable_nddeapi implib
15271 wine_fn_config_dll netapi32 enable_netapi32 implib
15272 wine_fn_config_test dlls/netapi32/tests netapi32_test
15273 wine_fn_config_dll newdev enable_newdev implib
15274 wine_fn_config_dll normaliz enable_normaliz implib
15275 wine_fn_config_dll npmshtml enable_npmshtml
15276 wine_fn_config_dll ntdll enable_ntdll implib
15277 wine_fn_config_test dlls/ntdll/tests ntdll_test
15278 wine_fn_config_dll ntdsapi enable_ntdsapi implib
15279 wine_fn_config_test dlls/ntdsapi/tests ntdsapi_test
15280 wine_fn_config_dll ntoskrnl.exe enable_ntoskrnl_exe implib
15281 wine_fn_config_dll ntprint enable_ntprint
15282 wine_fn_config_test dlls/ntprint/tests ntprint_test
15283 wine_fn_config_dll objsel enable_objsel
15284 wine_fn_config_dll odbc32 enable_odbc32 implib
15285 wine_fn_config_dll odbccp32 enable_odbccp32 implib
15286 wine_fn_config_test dlls/odbccp32/tests odbccp32_test
15287 wine_fn_config_dll ole2.dll16 enable_win16
15288 wine_fn_config_dll ole2conv.dll16 enable_win16
15289 wine_fn_config_dll ole2disp.dll16 enable_win16
15290 wine_fn_config_dll ole2nls.dll16 enable_win16
15291 wine_fn_config_dll ole2prox.dll16 enable_win16
15292 wine_fn_config_dll ole2thk.dll16 enable_win16
15293 wine_fn_config_dll ole32 enable_ole32 implib
15294 wine_fn_config_test dlls/ole32/tests ole32_test
15295 wine_fn_config_dll oleacc enable_oleacc po,implib
15296 wine_fn_config_test dlls/oleacc/tests oleacc_test
15297 wine_fn_config_dll oleaut32 enable_oleaut32 po,implib
15298 wine_fn_config_test dlls/oleaut32/tests oleaut32_test
15299 wine_fn_config_dll olecli.dll16 enable_win16
15300 wine_fn_config_dll olecli32 enable_olecli32 implib
15301 wine_fn_config_dll oledb32 enable_oledb32
15302 wine_fn_config_test dlls/oledb32/tests oledb32_test
15303 wine_fn_config_dll oledlg enable_oledlg po,implib
15304 wine_fn_config_dll olepro32 enable_olepro32 implib
15305 wine_fn_config_dll olesvr.dll16 enable_win16
15306 wine_fn_config_dll olesvr32 enable_olesvr32 implib
15307 wine_fn_config_dll olethk32 enable_olethk32
15308 wine_fn_config_dll openal32 enable_openal32
15309 wine_fn_config_dll opencl enable_opencl
15310 wine_fn_config_dll opengl32 enable_opengl32 implib
15311 wine_fn_config_test dlls/opengl32/tests opengl32_test
15312 wine_fn_config_dll pdh enable_pdh implib
15313 wine_fn_config_test dlls/pdh/tests pdh_test
15314 wine_fn_config_dll pidgen enable_pidgen
15315 wine_fn_config_dll powrprof enable_powrprof implib
15316 wine_fn_config_dll printui enable_printui
15317 wine_fn_config_dll propsys enable_propsys implib
15318 wine_fn_config_test dlls/propsys/tests propsys_test
15319 wine_fn_config_dll psapi enable_psapi implib
15320 wine_fn_config_test dlls/psapi/tests psapi_test
15321 wine_fn_config_dll pstorec enable_pstorec
15322 wine_fn_config_dll qcap enable_qcap
15323 wine_fn_config_dll qedit enable_qedit
15324 wine_fn_config_test dlls/qedit/tests qedit_test
15325 wine_fn_config_dll qmgr enable_qmgr
15326 wine_fn_config_test dlls/qmgr/tests qmgr_test
15327 wine_fn_config_dll qmgrprxy enable_qmgrprxy
15328 wine_fn_config_dll quartz enable_quartz implib
15329 wine_fn_config_test dlls/quartz/tests quartz_test
15330 wine_fn_config_dll query enable_query
15331 wine_fn_config_dll rasapi16.dll16 enable_win16
15332 wine_fn_config_dll rasapi32 enable_rasapi32 implib
15333 wine_fn_config_test dlls/rasapi32/tests rasapi32_test
15334 wine_fn_config_dll rasdlg enable_rasdlg implib
15335 wine_fn_config_dll resutils enable_resutils implib
15336 wine_fn_config_dll riched20 enable_riched20 implib
15337 wine_fn_config_test dlls/riched20/tests riched20_test
15338 wine_fn_config_dll riched32 enable_riched32
15339 wine_fn_config_test dlls/riched32/tests riched32_test
15340 wine_fn_config_dll rpcrt4 enable_rpcrt4 implib
15341 wine_fn_config_test dlls/rpcrt4/tests rpcrt4_test
15342 wine_fn_config_dll rsabase enable_rsabase
15343 wine_fn_config_dll rsaenh enable_rsaenh implib
15344 wine_fn_config_test dlls/rsaenh/tests rsaenh_test
15345 wine_fn_config_dll rstrtmgr enable_rstrtmgr
15346 wine_fn_config_dll rtutils enable_rtutils implib
15347 wine_fn_config_dll samlib enable_samlib
15348 wine_fn_config_dll sane.ds enable_sane_ds po
15349 wine_fn_config_dll scarddlg enable_scarddlg
15350 wine_fn_config_dll sccbase enable_sccbase
15351 wine_fn_config_dll schannel enable_schannel
15352 wine_fn_config_test dlls/schannel/tests schannel_test
15353 wine_fn_config_dll secur32 enable_secur32 implib
15354 wine_fn_config_test dlls/secur32/tests secur32_test
15355 wine_fn_config_dll security enable_security
15356 wine_fn_config_dll sensapi enable_sensapi implib
15357 wine_fn_config_dll serialui enable_serialui implib
15358 wine_fn_config_test dlls/serialui/tests serialui_test
15359 wine_fn_config_dll setupapi enable_setupapi po,implib
15360 wine_fn_config_test dlls/setupapi/tests setupapi_test
15361 wine_fn_config_dll setupx.dll16 enable_win16
15362 wine_fn_config_dll sfc enable_sfc implib
15363 wine_fn_config_dll sfc_os enable_sfc_os implib
15364 wine_fn_config_dll shdoclc enable_shdoclc po
15365 wine_fn_config_dll shdocvw enable_shdocvw po,implib
15366 wine_fn_config_test dlls/shdocvw/tests shdocvw_test
15367 wine_fn_config_dll shell.dll16 enable_win16
15368 wine_fn_config_dll shell32 enable_shell32 po,implib
15369 wine_fn_config_test dlls/shell32/tests shell32_test
15370 wine_fn_config_dll shfolder enable_shfolder implib
15371 wine_fn_config_dll shlwapi enable_shlwapi po,implib
15372 wine_fn_config_test dlls/shlwapi/tests shlwapi_test
15373 wine_fn_config_dll slbcsp enable_slbcsp
15374 wine_fn_config_dll slc enable_slc implib
15375 wine_fn_config_dll snmpapi enable_snmpapi implib
15376 wine_fn_config_test dlls/snmpapi/tests snmpapi_test
15377 wine_fn_config_dll softpub enable_softpub
15378 wine_fn_config_dll sound.drv16 enable_win16
15379 wine_fn_config_dll spoolss enable_spoolss implib
15380 wine_fn_config_test dlls/spoolss/tests spoolss_test
15381 wine_fn_config_dll stdole2.tlb enable_stdole2_tlb
15382 wine_fn_config_dll stdole32.tlb enable_stdole32_tlb
15383 wine_fn_config_dll sti enable_sti implib
15384 wine_fn_config_test dlls/sti/tests sti_test
15385 wine_fn_config_dll storage.dll16 enable_win16
15386 wine_fn_config_dll stress.dll16 enable_win16
15387 wine_fn_config_lib strmbase
15388 wine_fn_config_lib strmiids
15389 wine_fn_config_dll svrapi enable_svrapi
15390 wine_fn_config_dll sxs enable_sxs
15391 wine_fn_config_dll system.drv16 enable_win16
15392 wine_fn_config_dll t2embed enable_t2embed
15393 wine_fn_config_dll tapi32 enable_tapi32 implib
15394 wine_fn_config_dll toolhelp.dll16 enable_win16
15395 wine_fn_config_dll traffic enable_traffic
15396 wine_fn_config_dll twain.dll16 enable_win16
15397 wine_fn_config_dll twain_32 enable_twain_32
15398 wine_fn_config_test dlls/twain_32/tests twain_32_test
15399 wine_fn_config_dll typelib.dll16 enable_win16
15400 wine_fn_config_dll unicows enable_unicows implib
15401 wine_fn_config_dll updspapi enable_updspapi
15402 wine_fn_config_dll url enable_url implib
15403 wine_fn_config_dll urlmon enable_urlmon implib
15404 wine_fn_config_test dlls/urlmon/tests urlmon_test
15405 wine_fn_config_dll usbd.sys enable_usbd_sys implib
15406 wine_fn_config_dll user.exe16 enable_win16
15407 wine_fn_config_dll user32 enable_user32 po,implib
15408 wine_fn_config_test dlls/user32/tests user32_test
15409 wine_fn_config_dll userenv enable_userenv implib
15410 wine_fn_config_test dlls/userenv/tests userenv_test
15411 wine_fn_config_dll usp10 enable_usp10 implib
15412 wine_fn_config_test dlls/usp10/tests usp10_test
15413 wine_fn_config_lib uuid
15414 wine_fn_config_dll uxtheme enable_uxtheme implib
15415 wine_fn_config_test dlls/uxtheme/tests uxtheme_test
15416 wine_fn_config_dll vcomp enable_vcomp
15417 wine_fn_config_dll vdhcp.vxd enable_win16
15418 wine_fn_config_dll vdmdbg enable_vdmdbg implib
15419 wine_fn_config_dll ver.dll16 enable_win16
15420 wine_fn_config_dll version enable_version implib
15421 wine_fn_config_test dlls/version/tests version_test
15422 wine_fn_config_dll vmm.vxd enable_win16
15423 wine_fn_config_dll vnbt.vxd enable_win16
15424 wine_fn_config_dll vnetbios.vxd enable_win16
15425 wine_fn_config_dll vtdapi.vxd enable_win16
15426 wine_fn_config_dll vwin32.vxd enable_win16
15427 wine_fn_config_dll w32skrnl enable_win16
15428 wine_fn_config_dll w32sys.dll16 enable_win16
15429 wine_fn_config_dll wbemprox enable_wbemprox
15430 wine_fn_config_dll wer enable_wer implib
15431 wine_fn_config_test dlls/wer/tests wer_test
15432 wine_fn_config_dll wiaservc enable_wiaservc
15433 wine_fn_config_dll win32s16.dll16 enable_win16
15434 wine_fn_config_dll win87em.dll16 enable_win16
15435 wine_fn_config_dll winaspi.dll16 enable_win16
15436 wine_fn_config_dll windebug.dll16 enable_win16
15437 wine_fn_config_dll windowscodecs enable_windowscodecs implib
15438 wine_fn_config_test dlls/windowscodecs/tests windowscodecs_test
15439 wine_fn_config_dll winealsa.drv enable_winealsa_drv
15440 wine_fn_config_dll winecoreaudio.drv enable_winecoreaudio_drv
15441 wine_fn_config_lib winecrt0
15442 wine_fn_config_dll wined3d enable_wined3d implib
15443 wine_fn_config_dll wineesd.drv enable_wineesd_drv
15444 wine_fn_config_dll winegstreamer enable_winegstreamer
15445 wine_fn_config_dll winejack.drv enable_winejack_drv
15446 wine_fn_config_dll winejoystick.drv enable_winejoystick_drv
15447 wine_fn_config_dll winemapi enable_winemapi
15448 wine_fn_config_dll winemp3.acm enable_winemp3_acm
15449 wine_fn_config_dll winenas.drv enable_winenas_drv
15450 wine_fn_config_dll wineoss.drv enable_wineoss_drv
15451 wine_fn_config_dll wineps.drv enable_wineps_drv
15452 wine_fn_config_dll wineps16.drv16 enable_win16
15453 wine_fn_config_dll wineqtdecoder enable_wineqtdecoder
15454 wine_fn_config_dll winequartz.drv enable_winequartz_drv
15455 wine_fn_config_dll winex11.drv enable_winex11_drv
15456 wine_fn_config_dll wing.dll16 enable_win16
15457 wine_fn_config_dll wing32 enable_wing32
15458 wine_fn_config_dll winhttp enable_winhttp implib
15459 wine_fn_config_test dlls/winhttp/tests winhttp_test
15460 wine_fn_config_dll wininet enable_wininet po,implib
15461 wine_fn_config_test dlls/wininet/tests wininet_test
15462 wine_fn_config_dll winmm enable_winmm po,implib
15463 wine_fn_config_test dlls/winmm/tests winmm_test
15464 wine_fn_config_dll winnls.dll16 enable_win16
15465 wine_fn_config_dll winnls32 enable_winnls32 implib
15466 wine_fn_config_dll winscard enable_winscard implib
15467 wine_fn_config_dll winsock.dll16 enable_win16
15468 wine_fn_config_dll winspool.drv enable_winspool_drv po,implib winspool
15469 wine_fn_config_test dlls/winspool.drv/tests winspool.drv_test
15470 wine_fn_config_dll wintab.dll16 enable_win16
15471 wine_fn_config_dll wintab32 enable_wintab32 implib
15472 wine_fn_config_test dlls/wintab32/tests wintab32_test
15473 wine_fn_config_dll wintrust enable_wintrust implib
15474 wine_fn_config_test dlls/wintrust/tests wintrust_test
15475 wine_fn_config_dll wlanapi enable_wlanapi
15476 wine_fn_config_dll wldap32 enable_wldap32 po,implib
15477 wine_fn_config_test dlls/wldap32/tests wldap32_test
15478 wine_fn_config_dll wmi enable_wmi
15479 wine_fn_config_dll wmiutils enable_wmiutils
15480 wine_fn_config_dll wnaspi32 enable_wnaspi32 implib
15481 wine_fn_config_dll wow32 enable_win16 implib
15482 wine_fn_config_dll ws2_32 enable_ws2_32 implib
15483 wine_fn_config_test dlls/ws2_32/tests ws2_32_test
15484 wine_fn_config_dll wsock32 enable_wsock32 implib
15485 wine_fn_config_dll wtsapi32 enable_wtsapi32 implib
15486 wine_fn_config_dll wuapi enable_wuapi
15487 wine_fn_config_dll wuaueng enable_wuaueng
15488 wine_fn_config_dll xapofx1_1 enable_xapofx1_1
15489 wine_fn_config_dll xinput1_1 enable_xinput1_1
15490 wine_fn_config_dll xinput1_2 enable_xinput1_2
15491 wine_fn_config_dll xinput1_3 enable_xinput1_3 implib xinput
15492 wine_fn_config_test dlls/xinput1_3/tests xinput1_3_test
15493 wine_fn_config_dll xinput9_1_0 enable_xinput9_1_0
15494 wine_fn_config_dll xmllite enable_xmllite
15495 wine_fn_config_test dlls/xmllite/tests xmllite_test
15496 wine_fn_config_makefile documentation enable_documentation
15497 wine_fn_config_makefile fonts enable_fonts
15498 wine_fn_config_makefile include enable_include
15499 wine_fn_config_makefile libs/port enable_libs_port
15500 wine_fn_config_makefile libs/wine enable_libs_wine
15501 wine_fn_config_makefile libs/wpp enable_libs_wpp
15502 wine_fn_config_makefile loader enable_loader
15503 wine_fn_config_program aspnet_regiis enable_aspnet_regiis install
15504 wine_fn_config_program attrib enable_attrib install
15505 wine_fn_config_program cabarc enable_cabarc install
15506 wine_fn_config_program cacls enable_cacls install
15507 wine_fn_config_program clock enable_clock po,install
15508 wine_fn_config_program cmd enable_cmd po,install
15509 wine_fn_config_test programs/cmd/tests cmd.exe_test
15510 wine_fn_config_program cmdlgtst enable_cmdlgtst
15511 wine_fn_config_program control enable_control install
15512 wine_fn_config_program dxdiag enable_dxdiag install
15513 wine_fn_config_program eject enable_eject install
15514 wine_fn_config_program expand enable_expand install
15515 wine_fn_config_program explorer enable_explorer install
15516 wine_fn_config_program extrac32 enable_extrac32 install
15517 wine_fn_config_program hh enable_hh install
15518 wine_fn_config_program icinfo enable_icinfo install
15519 wine_fn_config_program iexplore enable_iexplore install
15520 wine_fn_config_program ipconfig enable_ipconfig po,install
15521 wine_fn_config_program lodctr enable_lodctr install
15522 wine_fn_config_program mofcomp enable_mofcomp install
15523 wine_fn_config_program mshta enable_mshta install
15524 wine_fn_config_program msiexec enable_msiexec install,installbin
15525 wine_fn_config_program net enable_net po,install
15526 wine_fn_config_program netsh enable_netsh install
15527 wine_fn_config_program ngen enable_ngen install
15528 wine_fn_config_program notepad enable_notepad po,install,installbin
15529 wine_fn_config_program oleview enable_oleview po,install
15530 wine_fn_config_program ping enable_ping install
15531 wine_fn_config_program plugplay enable_plugplay install
15532 wine_fn_config_program progman enable_progman po,install
15533 wine_fn_config_program reg enable_reg po,install
15534 wine_fn_config_program regedit enable_regedit po,install,installbin
15535 wine_fn_config_test programs/regedit/tests regedit.exe_test
15536 wine_fn_config_program regsvcs enable_regsvcs install
15537 wine_fn_config_program regsvr32 enable_regsvr32 install,installbin
15538 wine_fn_config_program rpcss enable_rpcss install
15539 wine_fn_config_program rundll.exe16 enable_win16 install
15540 wine_fn_config_program rundll32 enable_rundll32 install
15541 wine_fn_config_program sc enable_sc install
15542 wine_fn_config_program secedit enable_secedit install
15543 wine_fn_config_program servicemodelreg enable_servicemodelreg install
15544 wine_fn_config_program services enable_services install
15545 wine_fn_config_program spoolsv enable_spoolsv install
15546 wine_fn_config_program start enable_start po,install
15547 wine_fn_config_program svchost enable_svchost install
15548 wine_fn_config_program taskkill enable_taskkill po,install
15549 wine_fn_config_program taskmgr enable_taskmgr po,install
15550 wine_fn_config_program termsv enable_termsv install
15551 wine_fn_config_program uninstaller enable_uninstaller po,install
15552 wine_fn_config_program unlodctr enable_unlodctr install
15553 wine_fn_config_program view enable_view po
15554 wine_fn_config_program wineboot enable_wineboot install,installbin
15555 wine_fn_config_program winebrowser enable_winebrowser install
15556 wine_fn_config_program winecfg enable_winecfg po,install,installbin
15557 wine_fn_config_program wineconsole enable_wineconsole po,install,installbin
15558 wine_fn_config_program winedbg enable_winedbg po,install,installbin
15559 wine_fn_config_program winedevice enable_winedevice install
15560 wine_fn_config_program winefile enable_winefile po,install,installbin
15561 wine_fn_config_program winemenubuilder enable_winemenubuilder install
15562 wine_fn_config_program winemine enable_winemine po,install,installbin
15563 wine_fn_config_program winemsibuilder enable_winemsibuilder install
15564 wine_fn_config_program winepath enable_winepath install,installbin
15565 wine_fn_config_program winetest enable_winetest
15566 wine_fn_config_program winevdm enable_win16 install
15567 wine_fn_config_program winhelp.exe16 enable_win16 install
15568 wine_fn_config_program winhlp32 enable_winhlp32 po,install
15569 wine_fn_config_program winoldap.mod16 enable_win16 install
15570 wine_fn_config_program winver enable_winver install
15571 wine_fn_config_program wmic enable_wmic install
15572 wine_fn_config_program wordpad enable_wordpad po,install
15573 wine_fn_config_program write enable_write po,install
15574 wine_fn_config_program wscript enable_wscript install
15575 wine_fn_config_test programs/wscript/tests wscript.exe_test
15576 wine_fn_config_program xcopy enable_xcopy po,install
15577 wine_fn_config_makefile server enable_server
15578 wine_fn_config_tool tools
15579 wine_fn_config_tool tools/widl
15580 wine_fn_config_tool tools/winebuild
15581 wine_fn_config_tool tools/winedump
15582 wine_fn_config_tool tools/winegcc
15583 wine_fn_config_tool tools/wmc
15584 wine_fn_config_tool tools/wrc
15585
15586 LINGUAS="\
15587 ar \
15588 bg \
15589 ca \
15590 cs \
15591 da \
15592 de \
15593 el \
15594 en \
15595 en_US \
15596 eo \
15597 es \
15598 fa \
15599 fi \
15600 fr \
15601 he \
15602 hi \
15603 hu \
15604 it \
15605 ja \
15606 ko \
15607 lt \
15608 ml \
15609 nb_NO \
15610 nl \
15611 or \
15612 pa \
15613 pl \
15614 pt_BR \
15615 pt_PT \
15616 rm \
15617 ro \
15618 ru \
15619 sk \
15620 sl \
15621 sr_RS@cyrillic \
15622 sr_RS@latin \
15623 sv \
15624 te \
15625 th \
15626 tr \
15627 uk \
15628 wa \
15629 zh_CN \
15630 zh_TW"
15631
15632
15633
15634 ac_config_commands="$ac_config_commands Makefile"
15635
15636
15637 ac_config_files="$ac_config_files Make.tmp:Make.vars.in:Makefile.in"
15638
15639
15640
15641 if test "x$enable_maintainer_mode" = xyes
15642 then
15643     wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(srcdir)/configure: configure.ac aclocal.m4
15644         cd \$(srcdir) && autoconf --warnings=all
15645 \$(srcdir)/include/config.h.in: include/stamp-h.in
15646 \$(srcdir)/include/stamp-h.in: configure.ac aclocal.m4
15647         cd \$(srcdir) && autoheader --warnings=all
15648         @echo timestamp > \$@
15649
15650 ALL_POT_FILES =$ALL_POT_FILES
15651 all: \$(ALL_PO_FILES)
15652 \$(ALL_PO_FILES): \$(srcdir)/po/wine.pot
15653         msgmerge -q \$@ \$(srcdir)/po/wine.pot | msgattrib --no-obsolete -o \$@.new && mv \$@.new \$@
15654 \$(srcdir)/po/wine.pot: \$(ALL_POT_FILES)
15655         msgcat -o \$@ \$(ALL_POT_FILES)"
15656 fi
15657
15658 if test -n "$with_wine64"
15659 then
15660 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "all: fonts server $with_wine64/loader/wine $with_wine64/loader/wine-preloader
15661 fonts server:
15662         \$(RM) \$@ && \$(LN_S) $with_wine64/\$@ \$@
15663 $with_wine64/loader/wine:
15664         \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine \$@
15665 $with_wine64/loader/wine-preloader:
15666         \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine-preloader \$@
15667 clean::
15668         \$(RM) fonts server $with_wine64/loader/wine $with_wine64/loader/wine-preloader"
15669 fi
15670
15671 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "uninstall::
15672         -rmdir \$(DESTDIR)\$(datadir)/wine \$(DESTDIR)\$(fakedlldir) \$(DESTDIR)\$(dlldir)"
15673
15674 cat >confcache <<\_ACEOF
15675 # This file is a shell script that caches the results of configure
15676 # tests run on this system so they can be shared between configure
15677 # scripts and configure runs, see configure's option --config-cache.
15678 # It is not useful on other systems.  If it contains results you don't
15679 # want to keep, you may remove or edit it.
15680 #
15681 # config.status only pays attention to the cache file if you give it
15682 # the --recheck option to rerun configure.
15683 #
15684 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15685 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15686 # following values.
15687
15688 _ACEOF
15689
15690 # The following way of writing the cache mishandles newlines in values,
15691 # but we know of no workaround that is simple, portable, and efficient.
15692 # So, we kill variables containing newlines.
15693 # Ultrix sh set writes to stderr and can't be redirected directly,
15694 # and sets the high bit in the cache file unless we assign to the vars.
15695 (
15696   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15697     eval ac_val=\$$ac_var
15698     case $ac_val in #(
15699     *${as_nl}*)
15700       case $ac_var in #(
15701       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15702 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15703       esac
15704       case $ac_var in #(
15705       _ | IFS | as_nl) ;; #(
15706       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15707       *) { eval $ac_var=; unset $ac_var;} ;;
15708       esac ;;
15709     esac
15710   done
15711
15712   (set) 2>&1 |
15713     case $as_nl`(ac_space=' '; set) 2>&1` in #(
15714     *${as_nl}ac_space=\ *)
15715       # `set' does not quote correctly, so add quotes: double-quote
15716       # substitution turns \\\\ into \\, and sed turns \\ into \.
15717       sed -n \
15718         "s/'/'\\\\''/g;
15719           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15720       ;; #(
15721     *)
15722       # `set' quotes correctly as required by POSIX, so do not add quotes.
15723       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15724       ;;
15725     esac |
15726     sort
15727 ) |
15728   sed '
15729      /^ac_cv_env_/b end
15730      t clear
15731      :clear
15732      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15733      t end
15734      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15735      :end' >>confcache
15736 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15737   if test -w "$cache_file"; then
15738     if test "x$cache_file" != "x/dev/null"; then
15739       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15740 $as_echo "$as_me: updating cache $cache_file" >&6;}
15741       if test ! -f "$cache_file" || test -h "$cache_file"; then
15742         cat confcache >"$cache_file"
15743       else
15744         case $cache_file in #(
15745         */* | ?:*)
15746           mv -f confcache "$cache_file"$$ &&
15747           mv -f "$cache_file"$$ "$cache_file" ;; #(
15748         *)
15749           mv -f confcache "$cache_file" ;;
15750         esac
15751       fi
15752     fi
15753   else
15754     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15755 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15756   fi
15757 fi
15758 rm -f confcache
15759
15760 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15761 # Let make expand exec_prefix.
15762 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15763
15764 DEFS=-DHAVE_CONFIG_H
15765
15766 ac_libobjs=
15767 ac_ltlibobjs=
15768 U=
15769 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15770   # 1. Remove the extension, and $U if already installed.
15771   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15772   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15773   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15774   #    will be set to the directory where LIBOBJS objects are built.
15775   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15776   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15777 done
15778 LIBOBJS=$ac_libobjs
15779
15780 LTLIBOBJS=$ac_ltlibobjs
15781
15782
15783
15784 : "${CONFIG_STATUS=./config.status}"
15785 ac_write_fail=0
15786 ac_clean_files_save=$ac_clean_files
15787 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15788 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15789 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15790 as_write_fail=0
15791 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15792 #! $SHELL
15793 # Generated by $as_me.
15794 # Run this file to recreate the current configuration.
15795 # Compiler output produced by configure, useful for debugging
15796 # configure, is in config.log if it exists.
15797
15798 debug=false
15799 ac_cs_recheck=false
15800 ac_cs_silent=false
15801
15802 SHELL=\${CONFIG_SHELL-$SHELL}
15803 export SHELL
15804 _ASEOF
15805 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15806 ## -------------------- ##
15807 ## M4sh Initialization. ##
15808 ## -------------------- ##
15809
15810 # Be more Bourne compatible
15811 DUALCASE=1; export DUALCASE # for MKS sh
15812 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15813   emulate sh
15814   NULLCMD=:
15815   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15816   # is contrary to our usage.  Disable this feature.
15817   alias -g '${1+"$@"}'='"$@"'
15818   setopt NO_GLOB_SUBST
15819 else
15820   case `(set -o) 2>/dev/null` in #(
15821   *posix*) :
15822     set -o posix ;; #(
15823   *) :
15824      ;;
15825 esac
15826 fi
15827
15828
15829 as_nl='
15830 '
15831 export as_nl
15832 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15833 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15834 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15835 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15836 # Prefer a ksh shell builtin over an external printf program on Solaris,
15837 # but without wasting forks for bash or zsh.
15838 if test -z "$BASH_VERSION$ZSH_VERSION" \
15839     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15840   as_echo='print -r --'
15841   as_echo_n='print -rn --'
15842 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15843   as_echo='printf %s\n'
15844   as_echo_n='printf %s'
15845 else
15846   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15847     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15848     as_echo_n='/usr/ucb/echo -n'
15849   else
15850     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15851     as_echo_n_body='eval
15852       arg=$1;
15853       case $arg in #(
15854       *"$as_nl"*)
15855         expr "X$arg" : "X\\(.*\\)$as_nl";
15856         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15857       esac;
15858       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15859     '
15860     export as_echo_n_body
15861     as_echo_n='sh -c $as_echo_n_body as_echo'
15862   fi
15863   export as_echo_body
15864   as_echo='sh -c $as_echo_body as_echo'
15865 fi
15866
15867 # The user is always right.
15868 if test "${PATH_SEPARATOR+set}" != set; then
15869   PATH_SEPARATOR=:
15870   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15871     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15872       PATH_SEPARATOR=';'
15873   }
15874 fi
15875
15876
15877 # IFS
15878 # We need space, tab and new line, in precisely that order.  Quoting is
15879 # there to prevent editors from complaining about space-tab.
15880 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15881 # splitting by setting IFS to empty value.)
15882 IFS=" ""        $as_nl"
15883
15884 # Find who we are.  Look in the path if we contain no directory separator.
15885 as_myself=
15886 case $0 in #((
15887   *[\\/]* ) as_myself=$0 ;;
15888   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15889 for as_dir in $PATH
15890 do
15891   IFS=$as_save_IFS
15892   test -z "$as_dir" && as_dir=.
15893     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15894   done
15895 IFS=$as_save_IFS
15896
15897      ;;
15898 esac
15899 # We did not find ourselves, most probably we were run as `sh COMMAND'
15900 # in which case we are not to be found in the path.
15901 if test "x$as_myself" = x; then
15902   as_myself=$0
15903 fi
15904 if test ! -f "$as_myself"; then
15905   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15906   exit 1
15907 fi
15908
15909 # Unset variables that we do not need and which cause bugs (e.g. in
15910 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15911 # suppresses any "Segmentation fault" message there.  '((' could
15912 # trigger a bug in pdksh 5.2.14.
15913 for as_var in BASH_ENV ENV MAIL MAILPATH
15914 do eval test x\${$as_var+set} = xset \
15915   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15916 done
15917 PS1='$ '
15918 PS2='> '
15919 PS4='+ '
15920
15921 # NLS nuisances.
15922 LC_ALL=C
15923 export LC_ALL
15924 LANGUAGE=C
15925 export LANGUAGE
15926
15927 # CDPATH.
15928 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15929
15930
15931 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15932 # ----------------------------------------
15933 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15934 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15935 # script with STATUS, using 1 if that was 0.
15936 as_fn_error ()
15937 {
15938   as_status=$1; test $as_status -eq 0 && as_status=1
15939   if test "$4"; then
15940     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15941     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15942   fi
15943   $as_echo "$as_me: error: $2" >&2
15944   as_fn_exit $as_status
15945 } # as_fn_error
15946
15947
15948 # as_fn_set_status STATUS
15949 # -----------------------
15950 # Set $? to STATUS, without forking.
15951 as_fn_set_status ()
15952 {
15953   return $1
15954 } # as_fn_set_status
15955
15956 # as_fn_exit STATUS
15957 # -----------------
15958 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15959 as_fn_exit ()
15960 {
15961   set +e
15962   as_fn_set_status $1
15963   exit $1
15964 } # as_fn_exit
15965
15966 # as_fn_unset VAR
15967 # ---------------
15968 # Portably unset VAR.
15969 as_fn_unset ()
15970 {
15971   { eval $1=; unset $1;}
15972 }
15973 as_unset=as_fn_unset
15974 # as_fn_append VAR VALUE
15975 # ----------------------
15976 # Append the text in VALUE to the end of the definition contained in VAR. Take
15977 # advantage of any shell optimizations that allow amortized linear growth over
15978 # repeated appends, instead of the typical quadratic growth present in naive
15979 # implementations.
15980 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15981   eval 'as_fn_append ()
15982   {
15983     eval $1+=\$2
15984   }'
15985 else
15986   as_fn_append ()
15987   {
15988     eval $1=\$$1\$2
15989   }
15990 fi # as_fn_append
15991
15992 # as_fn_arith ARG...
15993 # ------------------
15994 # Perform arithmetic evaluation on the ARGs, and store the result in the
15995 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15996 # must be portable across $(()) and expr.
15997 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15998   eval 'as_fn_arith ()
15999   {
16000     as_val=$(( $* ))
16001   }'
16002 else
16003   as_fn_arith ()
16004   {
16005     as_val=`expr "$@" || test $? -eq 1`
16006   }
16007 fi # as_fn_arith
16008
16009
16010 if expr a : '\(a\)' >/dev/null 2>&1 &&
16011    test "X`expr 00001 : '.*\(...\)'`" = X001; then
16012   as_expr=expr
16013 else
16014   as_expr=false
16015 fi
16016
16017 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16018   as_basename=basename
16019 else
16020   as_basename=false
16021 fi
16022
16023 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16024   as_dirname=dirname
16025 else
16026   as_dirname=false
16027 fi
16028
16029 as_me=`$as_basename -- "$0" ||
16030 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16031          X"$0" : 'X\(//\)$' \| \
16032          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16033 $as_echo X/"$0" |
16034     sed '/^.*\/\([^/][^/]*\)\/*$/{
16035             s//\1/
16036             q
16037           }
16038           /^X\/\(\/\/\)$/{
16039             s//\1/
16040             q
16041           }
16042           /^X\/\(\/\).*/{
16043             s//\1/
16044             q
16045           }
16046           s/.*/./; q'`
16047
16048 # Avoid depending upon Character Ranges.
16049 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16050 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16051 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16052 as_cr_digits='0123456789'
16053 as_cr_alnum=$as_cr_Letters$as_cr_digits
16054
16055 ECHO_C= ECHO_N= ECHO_T=
16056 case `echo -n x` in #(((((
16057 -n*)
16058   case `echo 'xy\c'` in
16059   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
16060   xy)  ECHO_C='\c';;
16061   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
16062        ECHO_T=' ';;
16063   esac;;
16064 *)
16065   ECHO_N='-n';;
16066 esac
16067
16068 rm -f conf$$ conf$$.exe conf$$.file
16069 if test -d conf$$.dir; then
16070   rm -f conf$$.dir/conf$$.file
16071 else
16072   rm -f conf$$.dir
16073   mkdir conf$$.dir 2>/dev/null
16074 fi
16075 if (echo >conf$$.file) 2>/dev/null; then
16076   if ln -s conf$$.file conf$$ 2>/dev/null; then
16077     as_ln_s='ln -s'
16078     # ... but there are two gotchas:
16079     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16080     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16081     # In both cases, we have to default to `cp -p'.
16082     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16083       as_ln_s='cp -p'
16084   elif ln conf$$.file conf$$ 2>/dev/null; then
16085     as_ln_s=ln
16086   else
16087     as_ln_s='cp -p'
16088   fi
16089 else
16090   as_ln_s='cp -p'
16091 fi
16092 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16093 rmdir conf$$.dir 2>/dev/null
16094
16095
16096 # as_fn_mkdir_p
16097 # -------------
16098 # Create "$as_dir" as a directory, including parents if necessary.
16099 as_fn_mkdir_p ()
16100 {
16101
16102   case $as_dir in #(
16103   -*) as_dir=./$as_dir;;
16104   esac
16105   test -d "$as_dir" || eval $as_mkdir_p || {
16106     as_dirs=
16107     while :; do
16108       case $as_dir in #(
16109       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16110       *) as_qdir=$as_dir;;
16111       esac
16112       as_dirs="'$as_qdir' $as_dirs"
16113       as_dir=`$as_dirname -- "$as_dir" ||
16114 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16115          X"$as_dir" : 'X\(//\)[^/]' \| \
16116          X"$as_dir" : 'X\(//\)$' \| \
16117          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16118 $as_echo X"$as_dir" |
16119     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16120             s//\1/
16121             q
16122           }
16123           /^X\(\/\/\)[^/].*/{
16124             s//\1/
16125             q
16126           }
16127           /^X\(\/\/\)$/{
16128             s//\1/
16129             q
16130           }
16131           /^X\(\/\).*/{
16132             s//\1/
16133             q
16134           }
16135           s/.*/./; q'`
16136       test -d "$as_dir" && break
16137     done
16138     test -z "$as_dirs" || eval "mkdir $as_dirs"
16139   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16140
16141
16142 } # as_fn_mkdir_p
16143 if mkdir -p . 2>/dev/null; then
16144   as_mkdir_p='mkdir -p "$as_dir"'
16145 else
16146   test -d ./-p && rmdir ./-p
16147   as_mkdir_p=false
16148 fi
16149
16150 if test -x / >/dev/null 2>&1; then
16151   as_test_x='test -x'
16152 else
16153   if ls -dL / >/dev/null 2>&1; then
16154     as_ls_L_option=L
16155   else
16156     as_ls_L_option=
16157   fi
16158   as_test_x='
16159     eval sh -c '\''
16160       if test -d "$1"; then
16161         test -d "$1/.";
16162       else
16163         case $1 in #(
16164         -*)set "./$1";;
16165         esac;
16166         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16167         ???[sx]*):;;*)false;;esac;fi
16168     '\'' sh
16169   '
16170 fi
16171 as_executable_p=$as_test_x
16172
16173 # Sed expression to map a string onto a valid CPP name.
16174 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16175
16176 # Sed expression to map a string onto a valid variable name.
16177 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16178
16179
16180 exec 6>&1
16181 ## ----------------------------------- ##
16182 ## Main body of $CONFIG_STATUS script. ##
16183 ## ----------------------------------- ##
16184 _ASEOF
16185 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16186
16187 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16188 # Save the log message, to keep $0 and so on meaningful, and to
16189 # report actual input values of CONFIG_FILES etc. instead of their
16190 # values after options handling.
16191 ac_log="
16192 This file was extended by Wine $as_me 1.3.18, which was
16193 generated by GNU Autoconf 2.68.  Invocation command line was
16194
16195   CONFIG_FILES    = $CONFIG_FILES
16196   CONFIG_HEADERS  = $CONFIG_HEADERS
16197   CONFIG_LINKS    = $CONFIG_LINKS
16198   CONFIG_COMMANDS = $CONFIG_COMMANDS
16199   $ $0 $@
16200
16201 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16202 "
16203
16204 _ACEOF
16205
16206 case $ac_config_files in *"
16207 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16208 esac
16209
16210 case $ac_config_headers in *"
16211 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16212 esac
16213
16214
16215 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16216 # Files that config.status was made for.
16217 config_files="$ac_config_files"
16218 config_headers="$ac_config_headers"
16219 config_links="$ac_config_links"
16220 config_commands="$ac_config_commands"
16221
16222 _ACEOF
16223
16224 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16225 ac_cs_usage="\
16226 \`$as_me' instantiates files and other configuration actions
16227 from templates according to the current configuration.  Unless the files
16228 and actions are specified as TAGs, all are instantiated by default.
16229
16230 Usage: $0 [OPTION]... [TAG]...
16231
16232   -h, --help       print this help, then exit
16233   -V, --version    print version number and configuration settings, then exit
16234       --config     print configuration, then exit
16235   -q, --quiet, --silent
16236                    do not print progress messages
16237   -d, --debug      don't remove temporary files
16238       --recheck    update $as_me by reconfiguring in the same conditions
16239       --file=FILE[:TEMPLATE]
16240                    instantiate the configuration file FILE
16241       --header=FILE[:TEMPLATE]
16242                    instantiate the configuration header FILE
16243
16244 Configuration files:
16245 $config_files
16246
16247 Configuration headers:
16248 $config_headers
16249
16250 Configuration links:
16251 $config_links
16252
16253 Configuration commands:
16254 $config_commands
16255
16256 Report bugs to <wine-devel@winehq.org>.
16257 Wine home page: <http://www.winehq.org>."
16258
16259 _ACEOF
16260 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16261 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16262 ac_cs_version="\\
16263 Wine config.status 1.3.18
16264 configured by $0, generated by GNU Autoconf 2.68,
16265   with options \\"\$ac_cs_config\\"
16266
16267 Copyright (C) 2010 Free Software Foundation, Inc.
16268 This config.status script is free software; the Free Software Foundation
16269 gives unlimited permission to copy, distribute and modify it."
16270
16271 ac_pwd='$ac_pwd'
16272 srcdir='$srcdir'
16273 INSTALL='$INSTALL'
16274 test -n "\$AWK" || AWK=awk
16275 _ACEOF
16276
16277 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16278 # The default lists apply if the user does not specify any file.
16279 ac_need_defaults=:
16280 while test $# != 0
16281 do
16282   case $1 in
16283   --*=?*)
16284     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16285     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16286     ac_shift=:
16287     ;;
16288   --*=)
16289     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16290     ac_optarg=
16291     ac_shift=:
16292     ;;
16293   *)
16294     ac_option=$1
16295     ac_optarg=$2
16296     ac_shift=shift
16297     ;;
16298   esac
16299
16300   case $ac_option in
16301   # Handling of the options.
16302   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16303     ac_cs_recheck=: ;;
16304   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16305     $as_echo "$ac_cs_version"; exit ;;
16306   --config | --confi | --conf | --con | --co | --c )
16307     $as_echo "$ac_cs_config"; exit ;;
16308   --debug | --debu | --deb | --de | --d | -d )
16309     debug=: ;;
16310   --file | --fil | --fi | --f )
16311     $ac_shift
16312     case $ac_optarg in
16313     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16314     '') as_fn_error $? "missing file argument" ;;
16315     esac
16316     as_fn_append CONFIG_FILES " '$ac_optarg'"
16317     ac_need_defaults=false;;
16318   --header | --heade | --head | --hea )
16319     $ac_shift
16320     case $ac_optarg in
16321     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16322     esac
16323     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16324     ac_need_defaults=false;;
16325   --he | --h)
16326     # Conflict between --help and --header
16327     as_fn_error $? "ambiguous option: \`$1'
16328 Try \`$0 --help' for more information.";;
16329   --help | --hel | -h )
16330     $as_echo "$ac_cs_usage"; exit ;;
16331   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16332   | -silent | --silent | --silen | --sile | --sil | --si | --s)
16333     ac_cs_silent=: ;;
16334
16335   # This is an error.
16336   -*) as_fn_error $? "unrecognized option: \`$1'
16337 Try \`$0 --help' for more information." ;;
16338
16339   *) as_fn_append ac_config_targets " $1"
16340      ac_need_defaults=false ;;
16341
16342   esac
16343   shift
16344 done
16345
16346 ac_configure_extra_args=
16347
16348 if $ac_cs_silent; then
16349   exec 6>/dev/null
16350   ac_configure_extra_args="$ac_configure_extra_args --silent"
16351 fi
16352
16353 _ACEOF
16354 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16355 if \$ac_cs_recheck; then
16356   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16357   shift
16358   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16359   CONFIG_SHELL='$SHELL'
16360   export CONFIG_SHELL
16361   exec "\$@"
16362 fi
16363
16364 _ACEOF
16365 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16366 exec 5>>config.log
16367 {
16368   echo
16369   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16370 ## Running $as_me. ##
16371 _ASBOX
16372   $as_echo "$ac_log"
16373 } >&5
16374
16375 _ACEOF
16376 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16377 #
16378 # INIT-COMMANDS
16379 #
16380 wine_fn_output_makefile ()
16381 {
16382     cat Make.tmp - <<\_WINE_EOF >\$tmp/makefile && mv -f \$tmp/makefile \$1 && rm -f Make.tmp && return
16383 $ALL_MAKEFILE_DEPENDS
16384 _WINE_EOF
16385     as_fn_error $? "could not create Makefile" "$LINENO" 5
16386 }
16387
16388 _ACEOF
16389
16390 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16391
16392 # Handling of arguments.
16393 for ac_config_target in $ac_config_targets
16394 do
16395   case $ac_config_target in
16396     "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
16397     "include/stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/stamp-h" ;;
16398     "dlls/shell32/AUTHORS") CONFIG_LINKS="$CONFIG_LINKS dlls/shell32/AUTHORS:AUTHORS" ;;
16399     "dlls/wineps.drv/generic.ppd") CONFIG_LINKS="$CONFIG_LINKS dlls/wineps.drv/generic.ppd:dlls/wineps.drv/generic.ppd" ;;
16400     "fonts/marlett.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/marlett.ttf:fonts/marlett.ttf" ;;
16401     "fonts/symbol.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/symbol.ttf:fonts/symbol.ttf" ;;
16402     "fonts/tahoma.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahoma.ttf:fonts/tahoma.ttf" ;;
16403     "fonts/tahomabd.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahomabd.ttf:fonts/tahomabd.ttf" ;;
16404     "tools/l_intl.nls") CONFIG_LINKS="$CONFIG_LINKS tools/l_intl.nls:tools/l_intl.nls" ;;
16405     "wine") CONFIG_LINKS="$CONFIG_LINKS wine:tools/winewrapper" ;;
16406     "dlls/gdi32/dibdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/dibdrv" ;;
16407     "dlls/gdi32/enhmfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/enhmfdrv" ;;
16408     "dlls/gdi32/mfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/mfdrv" ;;
16409     "dlls/kernel32/nls") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel32/nls" ;;
16410     "dlls/user32/resources") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user32/resources" ;;
16411     "dlls/wineps.drv/data") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps.drv/data" ;;
16412     "include/wine") CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
16413     "Make.rules") CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
16414     "Maketest.rules") CONFIG_FILES="$CONFIG_FILES Maketest.rules" ;;
16415     "dlls/Makedll.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
16416     "dlls/Makeimplib.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makeimplib.rules" ;;
16417     "programs/Makeprog.rules") CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
16418     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
16419     "Make.tmp") CONFIG_FILES="$CONFIG_FILES Make.tmp:Make.vars.in:Makefile.in" ;;
16420
16421   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16422   esac
16423 done
16424
16425
16426 # If the user did not use the arguments to specify the items to instantiate,
16427 # then the envvar interface is used.  Set only those that are not.
16428 # We use the long form for the default assignment because of an extremely
16429 # bizarre bug on SunOS 4.1.3.
16430 if $ac_need_defaults; then
16431   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16432   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16433   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
16434   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16435 fi
16436
16437 # Have a temporary directory for convenience.  Make it in the build tree
16438 # simply because there is no reason against having it here, and in addition,
16439 # creating and moving files from /tmp can sometimes cause problems.
16440 # Hook for its removal unless debugging.
16441 # Note that there is a small window in which the directory will not be cleaned:
16442 # after its creation but before its name has been assigned to `$tmp'.
16443 $debug ||
16444 {
16445   tmp= ac_tmp=
16446   trap 'exit_status=$?
16447   : "${ac_tmp:=$tmp}"
16448   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16449 ' 0
16450   trap 'as_fn_exit 1' 1 2 13 15
16451 }
16452 # Create a (secure) tmp directory for tmp files.
16453
16454 {
16455   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16456   test -d "$tmp"
16457 }  ||
16458 {
16459   tmp=./conf$$-$RANDOM
16460   (umask 077 && mkdir "$tmp")
16461 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16462 ac_tmp=$tmp
16463
16464 # Set up the scripts for CONFIG_FILES section.
16465 # No need to generate them if there are no CONFIG_FILES.
16466 # This happens for instance with `./config.status config.h'.
16467 if test -n "$CONFIG_FILES"; then
16468
16469 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16470   ac_cs_awk_getline=:
16471   ac_cs_awk_pipe_init=
16472   ac_cs_awk_read_file='
16473       while ((getline aline < (F[key])) > 0)
16474         print(aline)
16475       close(F[key])'
16476   ac_cs_awk_pipe_fini=
16477 else
16478   ac_cs_awk_getline=false
16479   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16480   ac_cs_awk_read_file='
16481       print "|#_!!_#|"
16482       print "cat " F[key] " &&"
16483       '$ac_cs_awk_pipe_init
16484   # The final `:' finishes the AND list.
16485   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16486 fi
16487 ac_cr=`echo X | tr X '\015'`
16488 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16489 # But we know of no other shell where ac_cr would be empty at this
16490 # point, so we can use a bashism as a fallback.
16491 if test "x$ac_cr" = x; then
16492   eval ac_cr=\$\'\\r\'
16493 fi
16494 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16495 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16496   ac_cs_awk_cr='\\r'
16497 else
16498   ac_cs_awk_cr=$ac_cr
16499 fi
16500
16501 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16502 _ACEOF
16503
16504 # Create commands to substitute file output variables.
16505 {
16506   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16507   echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
16508   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16509   echo "_ACAWK" &&
16510   echo "_ACEOF"
16511 } >conf$$files.sh &&
16512 . ./conf$$files.sh ||
16513   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16514 rm -f conf$$files.sh
16515
16516 {
16517   echo "cat >conf$$subs.awk <<_ACEOF" &&
16518   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16519   echo "_ACEOF"
16520 } >conf$$subs.sh ||
16521   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16522 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16523 ac_delim='%!_!# '
16524 for ac_last_try in false false false false false :; do
16525   . ./conf$$subs.sh ||
16526     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16527
16528   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16529   if test $ac_delim_n = $ac_delim_num; then
16530     break
16531   elif $ac_last_try; then
16532     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16533   else
16534     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16535   fi
16536 done
16537 rm -f conf$$subs.sh
16538
16539 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16540 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16541 _ACEOF
16542 sed -n '
16543 h
16544 s/^/S["/; s/!.*/"]=/
16545 p
16546 g
16547 s/^[^!]*!//
16548 :repl
16549 t repl
16550 s/'"$ac_delim"'$//
16551 t delim
16552 :nl
16553 h
16554 s/\(.\{148\}\)..*/\1/
16555 t more1
16556 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16557 p
16558 n
16559 b repl
16560 :more1
16561 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16562 p
16563 g
16564 s/.\{148\}//
16565 t nl
16566 :delim
16567 h
16568 s/\(.\{148\}\)..*/\1/
16569 t more2
16570 s/["\\]/\\&/g; s/^/"/; s/$/"/
16571 p
16572 b
16573 :more2
16574 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16575 p
16576 g
16577 s/.\{148\}//
16578 t delim
16579 ' <conf$$subs.awk | sed '
16580 /^[^""]/{
16581   N
16582   s/\n//
16583 }
16584 ' >>$CONFIG_STATUS || ac_write_fail=1
16585 rm -f conf$$subs.awk
16586 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16587 _ACAWK
16588 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16589   for (key in S) S_is_set[key] = 1
16590   FS = "\a"
16591   \$ac_cs_awk_pipe_init
16592 }
16593 {
16594   line = $ 0
16595   nfields = split(line, field, "@")
16596   substed = 0
16597   len = length(field[1])
16598   for (i = 2; i < nfields; i++) {
16599     key = field[i]
16600     keylen = length(key)
16601     if (S_is_set[key]) {
16602       value = S[key]
16603       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16604       len += length(value) + length(field[++i])
16605       substed = 1
16606     } else
16607       len += 1 + keylen
16608   }
16609   if (nfields == 3 && !substed) {
16610     key = field[2]
16611     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
16612       \$ac_cs_awk_read_file
16613       next
16614     }
16615   }
16616   print line
16617 }
16618 \$ac_cs_awk_pipe_fini
16619 _ACAWK
16620 _ACEOF
16621 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16622 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16623   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16624 else
16625   cat
16626 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16627   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16628 _ACEOF
16629
16630 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16631 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16632 # trailing colons and then remove the whole line if VPATH becomes empty
16633 # (actually we leave an empty line to preserve line numbers).
16634 if test "x$srcdir" = x.; then
16635   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
16636 h
16637 s///
16638 s/^/:/
16639 s/[      ]*$/:/
16640 s/:\$(srcdir):/:/g
16641 s/:\${srcdir}:/:/g
16642 s/:@srcdir@:/:/g
16643 s/^:*//
16644 s/:*$//
16645 x
16646 s/\(=[   ]*\).*/\1/
16647 G
16648 s/\n//
16649 s/^[^=]*=[       ]*$//
16650 }'
16651 fi
16652
16653 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16654 fi # test -n "$CONFIG_FILES"
16655
16656 # Set up the scripts for CONFIG_HEADERS section.
16657 # No need to generate them if there are no CONFIG_HEADERS.
16658 # This happens for instance with `./config.status Makefile'.
16659 if test -n "$CONFIG_HEADERS"; then
16660 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16661 BEGIN {
16662 _ACEOF
16663
16664 # Transform confdefs.h into an awk script `defines.awk', embedded as
16665 # here-document in config.status, that substitutes the proper values into
16666 # config.h.in to produce config.h.
16667
16668 # Create a delimiter string that does not exist in confdefs.h, to ease
16669 # handling of long lines.
16670 ac_delim='%!_!# '
16671 for ac_last_try in false false :; do
16672   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16673   if test -z "$ac_tt"; then
16674     break
16675   elif $ac_last_try; then
16676     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16677   else
16678     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16679   fi
16680 done
16681
16682 # For the awk script, D is an array of macro values keyed by name,
16683 # likewise P contains macro parameters if any.  Preserve backslash
16684 # newline sequences.
16685
16686 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16687 sed -n '
16688 s/.\{148\}/&'"$ac_delim"'/g
16689 t rset
16690 :rset
16691 s/^[     ]*#[    ]*define[       ][      ]*/ /
16692 t def
16693 d
16694 :def
16695 s/\\$//
16696 t bsnl
16697 s/["\\]/\\&/g
16698 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16699 D["\1"]=" \3"/p
16700 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
16701 d
16702 :bsnl
16703 s/["\\]/\\&/g
16704 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16705 D["\1"]=" \3\\\\\\n"\\/p
16706 t cont
16707 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16708 t cont
16709 d
16710 :cont
16711 n
16712 s/.\{148\}/&'"$ac_delim"'/g
16713 t clear
16714 :clear
16715 s/\\$//
16716 t bsnlc
16717 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16718 d
16719 :bsnlc
16720 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16721 b cont
16722 ' <confdefs.h | sed '
16723 s/'"$ac_delim"'/"\\\
16724 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16725
16726 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16727   for (key in D) D_is_set[key] = 1
16728   FS = "\a"
16729 }
16730 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16731   line = \$ 0
16732   split(line, arg, " ")
16733   if (arg[1] == "#") {
16734     defundef = arg[2]
16735     mac1 = arg[3]
16736   } else {
16737     defundef = substr(arg[1], 2)
16738     mac1 = arg[2]
16739   }
16740   split(mac1, mac2, "(") #)
16741   macro = mac2[1]
16742   prefix = substr(line, 1, index(line, defundef) - 1)
16743   if (D_is_set[macro]) {
16744     # Preserve the white space surrounding the "#".
16745     print prefix "define", macro P[macro] D[macro]
16746     next
16747   } else {
16748     # Replace #undef with comments.  This is necessary, for example,
16749     # in the case of _POSIX_SOURCE, which is predefined and required
16750     # on some systems where configure will not decide to define it.
16751     if (defundef == "undef") {
16752       print "/*", prefix defundef, macro, "*/"
16753       next
16754     }
16755   }
16756 }
16757 { print }
16758 _ACAWK
16759 _ACEOF
16760 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16761   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16762 fi # test -n "$CONFIG_HEADERS"
16763
16764
16765 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
16766 shift
16767 for ac_tag
16768 do
16769   case $ac_tag in
16770   :[FHLC]) ac_mode=$ac_tag; continue;;
16771   esac
16772   case $ac_mode$ac_tag in
16773   :[FHL]*:*);;
16774   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16775   :[FH]-) ac_tag=-:-;;
16776   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16777   esac
16778   ac_save_IFS=$IFS
16779   IFS=:
16780   set x $ac_tag
16781   IFS=$ac_save_IFS
16782   shift
16783   ac_file=$1
16784   shift
16785
16786   case $ac_mode in
16787   :L) ac_source=$1;;
16788   :[FH])
16789     ac_file_inputs=
16790     for ac_f
16791     do
16792       case $ac_f in
16793       -) ac_f="$ac_tmp/stdin";;
16794       *) # Look for the file first in the build tree, then in the source tree
16795          # (if the path is not absolute).  The absolute path cannot be DOS-style,
16796          # because $ac_f cannot contain `:'.
16797          test -f "$ac_f" ||
16798            case $ac_f in
16799            [\\/$]*) false;;
16800            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16801            esac ||
16802            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16803       esac
16804       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16805       as_fn_append ac_file_inputs " '$ac_f'"
16806     done
16807
16808     # Let's still pretend it is `configure' which instantiates (i.e., don't
16809     # use $as_me), people would be surprised to read:
16810     #    /* config.h.  Generated by config.status.  */
16811     configure_input='Generated from '`
16812           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16813         `' by configure.'
16814     if test x"$ac_file" != x-; then
16815       configure_input="$ac_file.  $configure_input"
16816       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16817 $as_echo "$as_me: creating $ac_file" >&6;}
16818     fi
16819     # Neutralize special characters interpreted by sed in replacement strings.
16820     case $configure_input in #(
16821     *\&* | *\|* | *\\* )
16822        ac_sed_conf_input=`$as_echo "$configure_input" |
16823        sed 's/[\\\\&|]/\\\\&/g'`;; #(
16824     *) ac_sed_conf_input=$configure_input;;
16825     esac
16826
16827     case $ac_tag in
16828     *:-:* | *:-) cat >"$ac_tmp/stdin" \
16829       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16830     esac
16831     ;;
16832   esac
16833
16834   ac_dir=`$as_dirname -- "$ac_file" ||
16835 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16836          X"$ac_file" : 'X\(//\)[^/]' \| \
16837          X"$ac_file" : 'X\(//\)$' \| \
16838          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16839 $as_echo X"$ac_file" |
16840     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16841             s//\1/
16842             q
16843           }
16844           /^X\(\/\/\)[^/].*/{
16845             s//\1/
16846             q
16847           }
16848           /^X\(\/\/\)$/{
16849             s//\1/
16850             q
16851           }
16852           /^X\(\/\).*/{
16853             s//\1/
16854             q
16855           }
16856           s/.*/./; q'`
16857   as_dir="$ac_dir"; as_fn_mkdir_p
16858   ac_builddir=.
16859
16860 case "$ac_dir" in
16861 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16862 *)
16863   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16864   # A ".." for each directory in $ac_dir_suffix.
16865   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16866   case $ac_top_builddir_sub in
16867   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16868   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16869   esac ;;
16870 esac
16871 ac_abs_top_builddir=$ac_pwd
16872 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16873 # for backward compatibility:
16874 ac_top_builddir=$ac_top_build_prefix
16875
16876 case $srcdir in
16877   .)  # We are building in place.
16878     ac_srcdir=.
16879     ac_top_srcdir=$ac_top_builddir_sub
16880     ac_abs_top_srcdir=$ac_pwd ;;
16881   [\\/]* | ?:[\\/]* )  # Absolute name.
16882     ac_srcdir=$srcdir$ac_dir_suffix;
16883     ac_top_srcdir=$srcdir
16884     ac_abs_top_srcdir=$srcdir ;;
16885   *) # Relative name.
16886     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16887     ac_top_srcdir=$ac_top_build_prefix$srcdir
16888     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16889 esac
16890 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16891
16892
16893   case $ac_mode in
16894   :F)
16895   #
16896   # CONFIG_FILE
16897   #
16898
16899   case $INSTALL in
16900   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16901   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16902   esac
16903 _ACEOF
16904
16905 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16906 # If the template does not know about datarootdir, expand it.
16907 # FIXME: This hack should be removed a few years after 2.60.
16908 ac_datarootdir_hack=; ac_datarootdir_seen=
16909 ac_sed_dataroot='
16910 /datarootdir/ {
16911   p
16912   q
16913 }
16914 /@datadir@/p
16915 /@docdir@/p
16916 /@infodir@/p
16917 /@localedir@/p
16918 /@mandir@/p'
16919 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16920 *datarootdir*) ac_datarootdir_seen=yes;;
16921 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16922   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16923 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16924 _ACEOF
16925 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16926   ac_datarootdir_hack='
16927   s&@datadir@&$datadir&g
16928   s&@docdir@&$docdir&g
16929   s&@infodir@&$infodir&g
16930   s&@localedir@&$localedir&g
16931   s&@mandir@&$mandir&g
16932   s&\\\${datarootdir}&$datarootdir&g' ;;
16933 esac
16934 _ACEOF
16935
16936 # Neutralize VPATH when `$srcdir' = `.'.
16937 # Shell code in configure.ac might set extrasub.
16938 # FIXME: do we really want to maintain this feature?
16939 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16940 ac_sed_extra="$ac_vpsub
16941 $extrasub
16942 _ACEOF
16943 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16944 :t
16945 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16946 s|@configure_input@|$ac_sed_conf_input|;t t
16947 s&@top_builddir@&$ac_top_builddir_sub&;t t
16948 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16949 s&@srcdir@&$ac_srcdir&;t t
16950 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16951 s&@top_srcdir@&$ac_top_srcdir&;t t
16952 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16953 s&@builddir@&$ac_builddir&;t t
16954 s&@abs_builddir@&$ac_abs_builddir&;t t
16955 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16956 s&@INSTALL@&$ac_INSTALL&;t t
16957 $ac_datarootdir_hack
16958 "
16959 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16960 if $ac_cs_awk_getline; then
16961   $AWK -f "$ac_tmp/subs.awk"
16962 else
16963   $AWK -f "$ac_tmp/subs.awk" | $SHELL
16964 fi \
16965   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16966
16967 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16968   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16969   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
16970       "$ac_tmp/out"`; test -z "$ac_out"; } &&
16971   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16972 which seems to be undefined.  Please make sure it is defined" >&5
16973 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16974 which seems to be undefined.  Please make sure it is defined" >&2;}
16975
16976   rm -f "$ac_tmp/stdin"
16977   case $ac_file in
16978   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16979   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16980   esac \
16981   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16982  ;;
16983   :H)
16984   #
16985   # CONFIG_HEADER
16986   #
16987   if test x"$ac_file" != x-; then
16988     {
16989       $as_echo "/* $configure_input  */" \
16990       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16991     } >"$ac_tmp/config.h" \
16992       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16993     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16994       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16995 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16996     else
16997       rm -f "$ac_file"
16998       mv "$ac_tmp/config.h" "$ac_file" \
16999         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17000     fi
17001   else
17002     $as_echo "/* $configure_input  */" \
17003       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17004       || as_fn_error $? "could not create -" "$LINENO" 5
17005   fi
17006  ;;
17007   :L)
17008   #
17009   # CONFIG_LINK
17010   #
17011
17012   if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
17013     :
17014   else
17015     # Prefer the file from the source tree if names are identical.
17016     if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
17017       ac_source=$srcdir/$ac_source
17018     fi
17019
17020     { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
17021 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
17022
17023     if test ! -r "$ac_source"; then
17024       as_fn_error $? "$ac_source: file not found" "$LINENO" 5
17025     fi
17026     rm -f "$ac_file"
17027
17028     # Try a relative symlink, then a hard link, then a copy.
17029     case $ac_source in
17030     [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
17031         *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
17032     esac
17033     ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
17034       ln "$ac_source" "$ac_file" 2>/dev/null ||
17035       cp -p "$ac_source" "$ac_file" ||
17036       as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
17037   fi
17038  ;;
17039   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17040 $as_echo "$as_me: executing $ac_file commands" >&6;}
17041  ;;
17042   esac
17043
17044
17045   case $ac_file$ac_mode in
17046     "include/stamp-h":C) echo timestamp > include/stamp-h ;;
17047     "dlls/gdi32/dibdrv":C) test -d "dlls/gdi32/dibdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/dibdrv" >&5
17048 $as_echo "$as_me: creating dlls/gdi32/dibdrv" >&6;}; as_dir="dlls/gdi32/dibdrv"; as_fn_mkdir_p; } ;;
17049     "dlls/gdi32/enhmfdrv":C) test -d "dlls/gdi32/enhmfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/enhmfdrv" >&5
17050 $as_echo "$as_me: creating dlls/gdi32/enhmfdrv" >&6;}; as_dir="dlls/gdi32/enhmfdrv"; as_fn_mkdir_p; } ;;
17051     "dlls/gdi32/mfdrv":C) test -d "dlls/gdi32/mfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/mfdrv" >&5
17052 $as_echo "$as_me: creating dlls/gdi32/mfdrv" >&6;}; as_dir="dlls/gdi32/mfdrv"; as_fn_mkdir_p; } ;;
17053     "dlls/kernel32/nls":C) test -d "dlls/kernel32/nls" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/kernel32/nls" >&5
17054 $as_echo "$as_me: creating dlls/kernel32/nls" >&6;}; as_dir="dlls/kernel32/nls"; as_fn_mkdir_p; } ;;
17055     "dlls/user32/resources":C) test -d "dlls/user32/resources" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/user32/resources" >&5
17056 $as_echo "$as_me: creating dlls/user32/resources" >&6;}; as_dir="dlls/user32/resources"; as_fn_mkdir_p; } ;;
17057     "dlls/wineps.drv/data":C) test -d "dlls/wineps.drv/data" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/wineps.drv/data" >&5
17058 $as_echo "$as_me: creating dlls/wineps.drv/data" >&6;}; as_dir="dlls/wineps.drv/data"; as_fn_mkdir_p; } ;;
17059     "include/wine":C) test -d "include/wine" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating include/wine" >&5
17060 $as_echo "$as_me: creating include/wine" >&6;}; as_dir="include/wine"; as_fn_mkdir_p; } ;;
17061     "Makefile":C) wine_fn_output_makefile Makefile ;;
17062
17063   esac
17064 done # for ac_tag
17065
17066
17067 as_fn_exit 0
17068 _ACEOF
17069 ac_clean_files=$ac_clean_files_save
17070
17071 test $ac_write_fail = 0 ||
17072   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17073
17074
17075 # configure is writing to config.log, and then calls config.status.
17076 # config.status does its own redirection, appending to config.log.
17077 # Unfortunately, on DOS this fails, as config.log is still kept open
17078 # by configure, so config.status won't be able to write to it; its
17079 # output is simply discarded.  So we exec the FD to /dev/null,
17080 # effectively closing config.log, so it can be properly (re)opened and
17081 # appended to by config.status.  When coming back to configure, we
17082 # need to make the FD available again.
17083 if test "$no_create" != yes; then
17084   ac_cs_success=:
17085   ac_config_status_args=
17086   test "$silent" = yes &&
17087     ac_config_status_args="$ac_config_status_args --quiet"
17088   exec 5>/dev/null
17089   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17090   exec 5>>config.log
17091   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17092   # would make configure fail if this is the last instruction.
17093   $ac_cs_success || as_fn_exit 1
17094 fi
17095 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17096   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17097 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17098 fi
17099
17100
17101 if test "$no_create" = "yes"
17102 then
17103   exit 0
17104 fi
17105
17106 ac_save_IFS="$IFS"
17107 if test "x$wine_notices != "x; then
17108     echo >&6
17109     IFS="|"
17110     for msg in $wine_notices; do
17111         IFS="$ac_save_IFS"
17112         if test -n "$msg"; then
17113             { $as_echo "$as_me:${as_lineno-$LINENO}: $msg" >&5
17114 $as_echo "$as_me: $msg" >&6;}
17115         fi
17116     done
17117 fi
17118 IFS="|"
17119 for msg in $wine_warnings; do
17120     IFS="$ac_save_IFS"
17121     if test -n "$msg"; then
17122         echo >&2
17123         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $msg" >&5
17124 $as_echo "$as_me: WARNING: $msg" >&2;}
17125     fi
17126 done
17127 IFS="$ac_save_IFS"
17128
17129 echo "
17130 $as_me: Finished.  Do '${ac_make}' to compile Wine.
17131 " >&6
17132