winepulse v17: Fix winmm tests
[wine/multimedia.git] / configure
blobc71ced690016041f8177fa0c17578efc5a3aea97
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for Wine 1.5.5.
5 # Report bugs to <wine-devel@winehq.org>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
32 esac
36 as_nl='
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
176 esac
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
192 else
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev/null; then :
203 as_have_required=yes
204 else
205 as_have_required=no
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
209 else
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211 as_found=false
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
214 IFS=$as_save_IFS
215 test -z "$as_dir" && as_dir=.
216 as_found=:
217 case $as_dir in #(
219 for as_base in sh bash ksh sh5; do
220 # Try only shells that exist, to save several forks.
221 as_shell=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226 break 2
229 done;;
230 esac
231 as_found=false
232 done
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
236 fi; }
237 IFS=$as_save_IFS
240 if test "x$CONFIG_SHELL" != x; then :
241 export CONFIG_SHELL
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
262 if test x$as_have_required = xno; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x${ZSH_VERSION+set} = xset ; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268 else
269 $as_echo "$0: Please tell bug-autoconf@gnu.org and
270 $0: wine-devel@winehq.org about your system, including any
271 $0: error possibly output before this message. Then install
272 $0: a modern shell, or manually run the script under such a
273 $0: shell if you do have one."
275 exit 1
279 SHELL=${CONFIG_SHELL-/bin/sh}
280 export SHELL
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE= GREP_OPTIONS=
283 unset CLICOLOR_FORCE GREP_OPTIONS
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
288 # as_fn_unset VAR
289 # ---------------
290 # Portably unset VAR.
291 as_fn_unset ()
293 { eval $1=; unset $1;}
295 as_unset=as_fn_unset
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
300 as_fn_set_status ()
302 return $1
303 } # as_fn_set_status
305 # as_fn_exit STATUS
306 # -----------------
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308 as_fn_exit ()
310 set +e
311 as_fn_set_status $1
312 exit $1
313 } # as_fn_exit
315 # as_fn_mkdir_p
316 # -------------
317 # Create "$as_dir" as a directory, including parents if necessary.
318 as_fn_mkdir_p ()
321 case $as_dir in #(
322 -*) as_dir=./$as_dir;;
323 esac
324 test -d "$as_dir" || eval $as_mkdir_p || {
325 as_dirs=
326 while :; do
327 case $as_dir in #(
328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329 *) as_qdir=$as_dir;;
330 esac
331 as_dirs="'$as_qdir' $as_dirs"
332 as_dir=`$as_dirname -- "$as_dir" ||
333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334 X"$as_dir" : 'X\(//\)[^/]' \| \
335 X"$as_dir" : 'X\(//\)$' \| \
336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337 $as_echo X"$as_dir" |
338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339 s//\1/
342 /^X\(\/\/\)[^/].*/{
343 s//\1/
346 /^X\(\/\/\)$/{
347 s//\1/
350 /^X\(\/\).*/{
351 s//\1/
354 s/.*/./; q'`
355 test -d "$as_dir" && break
356 done
357 test -z "$as_dirs" || eval "mkdir $as_dirs"
358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
361 } # as_fn_mkdir_p
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p ()
368 test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
370 # as_fn_append VAR VALUE
371 # ----------------------
372 # Append the text in VALUE to the end of the definition contained in VAR. Take
373 # advantage of any shell optimizations that allow amortized linear growth over
374 # repeated appends, instead of the typical quadratic growth present in naive
375 # implementations.
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377 eval 'as_fn_append ()
379 eval $1+=\$2
381 else
382 as_fn_append ()
384 eval $1=\$$1\$2
386 fi # as_fn_append
388 # as_fn_arith ARG...
389 # ------------------
390 # Perform arithmetic evaluation on the ARGs, and store the result in the
391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
392 # must be portable across $(()) and expr.
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394 eval 'as_fn_arith ()
396 as_val=$(( $* ))
398 else
399 as_fn_arith ()
401 as_val=`expr "$@" || test $? -eq 1`
403 fi # as_fn_arith
406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
407 # ----------------------------------------
408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410 # script with STATUS, using 1 if that was 0.
411 as_fn_error ()
413 as_status=$1; test $as_status -eq 0 && as_status=1
414 if test "$4"; then
415 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
418 $as_echo "$as_me: error: $2" >&2
419 as_fn_exit $as_status
420 } # as_fn_error
422 if expr a : '\(a\)' >/dev/null 2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001; then
424 as_expr=expr
425 else
426 as_expr=false
429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430 as_basename=basename
431 else
432 as_basename=false
435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436 as_dirname=dirname
437 else
438 as_dirname=false
441 as_me=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445 $as_echo X/"$0" |
446 sed '/^.*\/\([^/][^/]*\)\/*$/{
447 s//\1/
450 /^X\/\(\/\/\)$/{
451 s//\1/
454 /^X\/\(\/\).*/{
455 s//\1/
458 s/.*/./; q'`
460 # Avoid depending upon Character Ranges.
461 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464 as_cr_digits='0123456789'
465 as_cr_alnum=$as_cr_Letters$as_cr_digits
468 as_lineno_1=$LINENO as_lineno_1a=$LINENO
469 as_lineno_2=$LINENO as_lineno_2a=$LINENO
470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
473 sed -n '
475 /[$]LINENO/=
476 ' <$as_myself |
477 sed '
478 s/[$]LINENO.*/&-/
479 t lineno
481 :lineno
483 :loop
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 t loop
486 s/-\n.*//
487 ' >$as_me.lineno &&
488 chmod +x "$as_me.lineno" ||
489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492 # already done that, so ensure we don't try to do so again and fall
493 # in an infinite loop. This has already happened in practice.
494 _as_can_reexec=no; export _as_can_reexec
495 # Don't try to exec as it changes $[0], causing all sort of problems
496 # (the dirname of $[0] is not the place where we might find the
497 # original and so on. Autoconf is especially sensitive to this).
498 . "./$as_me.lineno"
499 # Exit status is that of the last command.
500 exit
503 ECHO_C= ECHO_N= ECHO_T=
504 case `echo -n x` in #(((((
505 -n*)
506 case `echo 'xy\c'` in
507 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
508 xy) ECHO_C='\c';;
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
510 ECHO_T=' ';;
511 esac;;
513 ECHO_N='-n';;
514 esac
516 rm -f conf$$ conf$$.exe conf$$.file
517 if test -d conf$$.dir; then
518 rm -f conf$$.dir/conf$$.file
519 else
520 rm -f conf$$.dir
521 mkdir conf$$.dir 2>/dev/null
523 if (echo >conf$$.file) 2>/dev/null; then
524 if ln -s conf$$.file conf$$ 2>/dev/null; then
525 as_ln_s='ln -s'
526 # ... but there are two gotchas:
527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529 # In both cases, we have to default to `cp -pR'.
530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531 as_ln_s='cp -pR'
532 elif ln conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s=ln
534 else
535 as_ln_s='cp -pR'
537 else
538 as_ln_s='cp -pR'
540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541 rmdir conf$$.dir 2>/dev/null
543 if mkdir -p . 2>/dev/null; then
544 as_mkdir_p='mkdir -p "$as_dir"'
545 else
546 test -d ./-p && rmdir ./-p
547 as_mkdir_p=false
550 as_test_x='test -x'
551 as_executable_p=as_fn_executable_p
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
560 test -n "$DJDIR" || exec 7<&0 </dev/null
561 exec 6>&1
563 # Name of the host.
564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565 # so uname gets run too.
566 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
569 # Initializations.
571 ac_default_prefix=/usr/local
572 ac_clean_files=
573 ac_config_libobj_dir=.
574 LIBOBJS=
575 cross_compiling=no
576 subdirs=
577 MFLAGS=
578 MAKEFLAGS=
580 # Identity of this package.
581 PACKAGE_NAME='Wine'
582 PACKAGE_TARNAME='wine'
583 PACKAGE_VERSION='1.5.5'
584 PACKAGE_STRING='Wine 1.5.5'
585 PACKAGE_BUGREPORT='wine-devel@winehq.org'
586 PACKAGE_URL='http://www.winehq.org'
588 ac_unique_file="server/atom.c"
589 # Factoring default headers for most tests.
590 ac_includes_default="\
591 #include <stdio.h>
592 #ifdef HAVE_SYS_TYPES_H
593 # include <sys/types.h>
594 #endif
595 #ifdef HAVE_SYS_STAT_H
596 # include <sys/stat.h>
597 #endif
598 #ifdef STDC_HEADERS
599 # include <stdlib.h>
600 # include <stddef.h>
601 #else
602 # ifdef HAVE_STDLIB_H
603 # include <stdlib.h>
604 # endif
605 #endif
606 #ifdef HAVE_STRING_H
607 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
608 # include <memory.h>
609 # endif
610 # include <string.h>
611 #endif
612 #ifdef HAVE_STRINGS_H
613 # include <strings.h>
614 #endif
615 #ifdef HAVE_INTTYPES_H
616 # include <inttypes.h>
617 #endif
618 #ifdef HAVE_STDINT_H
619 # include <stdint.h>
620 #endif
621 #ifdef HAVE_UNISTD_H
622 # include <unistd.h>
623 #endif"
625 ac_subst_vars='LTLIBOBJS
626 LIBOBJS
627 PORCFLAGS
628 LINGUAS
629 ALL_TEST_RESOURCES
630 LDAPLIBS
631 LIBPOLL
632 LIBDL
633 EXTRA_BINARIES
634 MAIN_BINARY
635 SOCKETLIBS
636 CRTLIBS
637 TOOLSEXT
638 LDPATH
639 UNWINDFLAGS
640 BUILTINFLAG
641 EXTRACFLAGS
642 LIBKSTAT
643 LIBOPENAL
644 LIBMPG123
645 PNGINCL
646 FONTCONFIGINCL
647 CUPSINCL
648 OSS4INCL
649 ALSALIBS
650 GSTREAMER_INCL
651 GSTREAMER_LIBS
652 PULSEINCL
653 PULSELIBS
654 LIBGETTEXTPO
655 ZLIB
656 FREETYPEINCL
657 FREETYPELIBS
658 ft_devel
659 LCMSLIBS
660 RESOLVLIBS
661 GPHOTO2INCL
662 GPHOTO2LIBS
663 gphoto2port_devel
664 gphoto2_devel
665 SANEINCL
666 sane_devel
667 GNUTLSINCL
668 HALINCL
669 DBUSINCL
670 XSLTINCL
671 XML2INCL
672 XML2LIBS
673 X_EXTRA_LIBS
674 X_LIBS
675 X_PRE_LIBS
676 X_CFLAGS
677 XMKMF
678 LIBPTHREAD
679 CROSSTARGET
680 CROSSCC
681 CROSSTEST_DISABLE
682 PRELINK
683 CARBONLIB
684 QUICKTIMELIB
685 LIBOPENCL
686 FRAMEWORK_OPENAL
687 COREAUDIO
688 SECURITYLIB
689 DISKARBITRATIONLIB
690 LDEXECFLAGS
691 CORESERVICESLIB
692 APPLICATIONSERVICESLIB
693 IOKITLIB
694 COREFOUNDATIONLIB
695 DLLWRAP
696 DLLTOOL
698 LDRPATH_LOCAL
699 LDRPATH_INSTALL
700 IMPLIBEXT
701 LIBEXT
702 LDDLLFLAGS
703 LDSHARED
704 DLLFLAGS
705 DLLEXT
707 OPENGL_LIBS
708 XLIB
709 MAINTAINER_MODE
710 MSGFMT
711 ICOTOOL
712 CONVERT
713 RSVG
714 PKG_CONFIG
715 FONTFORGE
716 LINTFLAGS
717 LINT
718 INSTALL_DATA
719 INSTALL_SCRIPT
720 INSTALL_PROGRAM
721 LDCONFIG
722 EGREP
723 GREP
724 LN_S
725 RANLIB
726 ARFLAGS
727 ac_ct_AR
729 BISON
730 FLEX
731 TOOLSDIR
732 WOW64_DISABLE
733 TARGETFLAGS
734 CPPBIN
735 ac_ct_CXX
736 CXXFLAGS
738 OBJEXT
739 EXEEXT
740 ac_ct_CC
741 CPPFLAGS
742 LDFLAGS
743 CFLAGS
745 SET_MAKE
746 host_os
747 host_vendor
748 host_cpu
749 host
750 build_os
751 build_vendor
752 build_cpu
753 build
754 target_alias
755 host_alias
756 build_alias
757 LIBS
758 ECHO_T
759 ECHO_N
760 ECHO_C
761 DEFS
762 mandir
763 localedir
764 libdir
765 psdir
766 pdfdir
767 dvidir
768 htmldir
769 infodir
770 docdir
771 oldincludedir
772 includedir
773 localstatedir
774 sharedstatedir
775 sysconfdir
776 datadir
777 datarootdir
778 libexecdir
779 sbindir
780 bindir
781 program_transform_name
782 prefix
783 exec_prefix
784 PACKAGE_URL
785 PACKAGE_BUGREPORT
786 PACKAGE_STRING
787 PACKAGE_VERSION
788 PACKAGE_TARNAME
789 PACKAGE_NAME
790 PATH_SEPARATOR
791 SHELL'
792 ac_subst_files='MAKE_RULES
793 MAKE_TEST_RULES
794 MAKE_DLL_RULES
795 MAKE_IMPLIB_RULES
796 MAKE_PROG_RULES'
797 ac_user_opts='
798 enable_option_checking
799 enable_win16
800 enable_win64
801 enable_tests
802 enable_maintainer_mode
803 with_alsa
804 with_capi
805 with_cms
806 with_coreaudio
807 with_cups
808 with_curses
809 with_dbus
810 with_fontconfig
811 with_freetype
812 with_gettext
813 with_gettextpo
814 with_gphoto
815 with_glu
816 with_gnutls
817 with_gsm
818 with_gstreamer
819 with_hal
820 with_jpeg
821 with_ldap
822 with_mpg123
823 with_openal
824 with_opencl
825 with_opengl
826 with_openssl
827 with_oss
828 with_png
829 with_pthread
830 with_pulse
831 with_sane
832 with_tiff
833 with_v4l
834 with_xcomposite
835 with_xcursor
836 with_xinerama
837 with_xinput
838 with_xinput2
839 with_xml
840 with_xrandr
841 with_xrender
842 with_xshape
843 with_xslt
844 with_xxf86vm
845 with_zlib
846 with_wine_tools
847 with_wine64
848 enable_largefile
849 with_x
851 ac_precious_vars='build_alias
852 host_alias
853 target_alias
855 CFLAGS
856 LDFLAGS
857 LIBS
858 CPPFLAGS
860 CXXFLAGS
863 XMKMF'
866 # Initialize some variables set by options.
867 ac_init_help=
868 ac_init_version=false
869 ac_unrecognized_opts=
870 ac_unrecognized_sep=
871 # The variables have the same names as the options, with
872 # dashes changed to underlines.
873 cache_file=/dev/null
874 exec_prefix=NONE
875 no_create=
876 no_recursion=
877 prefix=NONE
878 program_prefix=NONE
879 program_suffix=NONE
880 program_transform_name=s,x,x,
881 silent=
882 site=
883 srcdir=
884 verbose=
885 x_includes=NONE
886 x_libraries=NONE
888 # Installation directory options.
889 # These are left unexpanded so users can "make install exec_prefix=/foo"
890 # and all the variables that are supposed to be based on exec_prefix
891 # by default will actually change.
892 # Use braces instead of parens because sh, perl, etc. also accept them.
893 # (The list follows the same order as the GNU Coding Standards.)
894 bindir='${exec_prefix}/bin'
895 sbindir='${exec_prefix}/sbin'
896 libexecdir='${exec_prefix}/libexec'
897 datarootdir='${prefix}/share'
898 datadir='${datarootdir}'
899 sysconfdir='${prefix}/etc'
900 sharedstatedir='${prefix}/com'
901 localstatedir='${prefix}/var'
902 includedir='${prefix}/include'
903 oldincludedir='/usr/include'
904 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
905 infodir='${datarootdir}/info'
906 htmldir='${docdir}'
907 dvidir='${docdir}'
908 pdfdir='${docdir}'
909 psdir='${docdir}'
910 libdir='${exec_prefix}/lib'
911 localedir='${datarootdir}/locale'
912 mandir='${datarootdir}/man'
914 ac_prev=
915 ac_dashdash=
916 for ac_option
918 # If the previous option needs an argument, assign it.
919 if test -n "$ac_prev"; then
920 eval $ac_prev=\$ac_option
921 ac_prev=
922 continue
925 case $ac_option in
926 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
927 *=) ac_optarg= ;;
928 *) ac_optarg=yes ;;
929 esac
931 # Accept the important Cygnus configure options, so we can diagnose typos.
933 case $ac_dashdash$ac_option in
935 ac_dashdash=yes ;;
937 -bindir | --bindir | --bindi | --bind | --bin | --bi)
938 ac_prev=bindir ;;
939 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
940 bindir=$ac_optarg ;;
942 -build | --build | --buil | --bui | --bu)
943 ac_prev=build_alias ;;
944 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
945 build_alias=$ac_optarg ;;
947 -cache-file | --cache-file | --cache-fil | --cache-fi \
948 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
949 ac_prev=cache_file ;;
950 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
951 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
952 cache_file=$ac_optarg ;;
954 --config-cache | -C)
955 cache_file=config.cache ;;
957 -datadir | --datadir | --datadi | --datad)
958 ac_prev=datadir ;;
959 -datadir=* | --datadir=* | --datadi=* | --datad=*)
960 datadir=$ac_optarg ;;
962 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
963 | --dataroo | --dataro | --datar)
964 ac_prev=datarootdir ;;
965 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
966 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
967 datarootdir=$ac_optarg ;;
969 -disable-* | --disable-*)
970 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
971 # Reject names that are not valid shell variable names.
972 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
973 as_fn_error $? "invalid feature name: $ac_useropt"
974 ac_useropt_orig=$ac_useropt
975 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
976 case $ac_user_opts in
978 "enable_$ac_useropt"
979 "*) ;;
980 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
981 ac_unrecognized_sep=', ';;
982 esac
983 eval enable_$ac_useropt=no ;;
985 -docdir | --docdir | --docdi | --doc | --do)
986 ac_prev=docdir ;;
987 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
988 docdir=$ac_optarg ;;
990 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
991 ac_prev=dvidir ;;
992 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
993 dvidir=$ac_optarg ;;
995 -enable-* | --enable-*)
996 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
997 # Reject names that are not valid shell variable names.
998 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
999 as_fn_error $? "invalid feature name: $ac_useropt"
1000 ac_useropt_orig=$ac_useropt
1001 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1002 case $ac_user_opts in
1004 "enable_$ac_useropt"
1005 "*) ;;
1006 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1007 ac_unrecognized_sep=', ';;
1008 esac
1009 eval enable_$ac_useropt=\$ac_optarg ;;
1011 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1012 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1013 | --exec | --exe | --ex)
1014 ac_prev=exec_prefix ;;
1015 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1016 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1017 | --exec=* | --exe=* | --ex=*)
1018 exec_prefix=$ac_optarg ;;
1020 -gas | --gas | --ga | --g)
1021 # Obsolete; use --with-gas.
1022 with_gas=yes ;;
1024 -help | --help | --hel | --he | -h)
1025 ac_init_help=long ;;
1026 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1027 ac_init_help=recursive ;;
1028 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1029 ac_init_help=short ;;
1031 -host | --host | --hos | --ho)
1032 ac_prev=host_alias ;;
1033 -host=* | --host=* | --hos=* | --ho=*)
1034 host_alias=$ac_optarg ;;
1036 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1037 ac_prev=htmldir ;;
1038 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1039 | --ht=*)
1040 htmldir=$ac_optarg ;;
1042 -includedir | --includedir | --includedi | --included | --include \
1043 | --includ | --inclu | --incl | --inc)
1044 ac_prev=includedir ;;
1045 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1046 | --includ=* | --inclu=* | --incl=* | --inc=*)
1047 includedir=$ac_optarg ;;
1049 -infodir | --infodir | --infodi | --infod | --info | --inf)
1050 ac_prev=infodir ;;
1051 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1052 infodir=$ac_optarg ;;
1054 -libdir | --libdir | --libdi | --libd)
1055 ac_prev=libdir ;;
1056 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1057 libdir=$ac_optarg ;;
1059 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1060 | --libexe | --libex | --libe)
1061 ac_prev=libexecdir ;;
1062 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1063 | --libexe=* | --libex=* | --libe=*)
1064 libexecdir=$ac_optarg ;;
1066 -localedir | --localedir | --localedi | --localed | --locale)
1067 ac_prev=localedir ;;
1068 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1069 localedir=$ac_optarg ;;
1071 -localstatedir | --localstatedir | --localstatedi | --localstated \
1072 | --localstate | --localstat | --localsta | --localst | --locals)
1073 ac_prev=localstatedir ;;
1074 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1075 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1076 localstatedir=$ac_optarg ;;
1078 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1079 ac_prev=mandir ;;
1080 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1081 mandir=$ac_optarg ;;
1083 -nfp | --nfp | --nf)
1084 # Obsolete; use --without-fp.
1085 with_fp=no ;;
1087 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1088 | --no-cr | --no-c | -n)
1089 no_create=yes ;;
1091 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1092 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1093 no_recursion=yes ;;
1095 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1096 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1097 | --oldin | --oldi | --old | --ol | --o)
1098 ac_prev=oldincludedir ;;
1099 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1100 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1101 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1102 oldincludedir=$ac_optarg ;;
1104 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1105 ac_prev=prefix ;;
1106 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1107 prefix=$ac_optarg ;;
1109 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1110 | --program-pre | --program-pr | --program-p)
1111 ac_prev=program_prefix ;;
1112 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1113 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1114 program_prefix=$ac_optarg ;;
1116 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1117 | --program-suf | --program-su | --program-s)
1118 ac_prev=program_suffix ;;
1119 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1120 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1121 program_suffix=$ac_optarg ;;
1123 -program-transform-name | --program-transform-name \
1124 | --program-transform-nam | --program-transform-na \
1125 | --program-transform-n | --program-transform- \
1126 | --program-transform | --program-transfor \
1127 | --program-transfo | --program-transf \
1128 | --program-trans | --program-tran \
1129 | --progr-tra | --program-tr | --program-t)
1130 ac_prev=program_transform_name ;;
1131 -program-transform-name=* | --program-transform-name=* \
1132 | --program-transform-nam=* | --program-transform-na=* \
1133 | --program-transform-n=* | --program-transform-=* \
1134 | --program-transform=* | --program-transfor=* \
1135 | --program-transfo=* | --program-transf=* \
1136 | --program-trans=* | --program-tran=* \
1137 | --progr-tra=* | --program-tr=* | --program-t=*)
1138 program_transform_name=$ac_optarg ;;
1140 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1141 ac_prev=pdfdir ;;
1142 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1143 pdfdir=$ac_optarg ;;
1145 -psdir | --psdir | --psdi | --psd | --ps)
1146 ac_prev=psdir ;;
1147 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1148 psdir=$ac_optarg ;;
1150 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1151 | -silent | --silent | --silen | --sile | --sil)
1152 silent=yes ;;
1154 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1155 ac_prev=sbindir ;;
1156 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1157 | --sbi=* | --sb=*)
1158 sbindir=$ac_optarg ;;
1160 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1161 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1162 | --sharedst | --shareds | --shared | --share | --shar \
1163 | --sha | --sh)
1164 ac_prev=sharedstatedir ;;
1165 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1166 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1167 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1168 | --sha=* | --sh=*)
1169 sharedstatedir=$ac_optarg ;;
1171 -site | --site | --sit)
1172 ac_prev=site ;;
1173 -site=* | --site=* | --sit=*)
1174 site=$ac_optarg ;;
1176 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1177 ac_prev=srcdir ;;
1178 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1179 srcdir=$ac_optarg ;;
1181 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1182 | --syscon | --sysco | --sysc | --sys | --sy)
1183 ac_prev=sysconfdir ;;
1184 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1185 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1186 sysconfdir=$ac_optarg ;;
1188 -target | --target | --targe | --targ | --tar | --ta | --t)
1189 ac_prev=target_alias ;;
1190 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1191 target_alias=$ac_optarg ;;
1193 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1194 verbose=yes ;;
1196 -version | --version | --versio | --versi | --vers | -V)
1197 ac_init_version=: ;;
1199 -with-* | --with-*)
1200 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1201 # Reject names that are not valid shell variable names.
1202 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1203 as_fn_error $? "invalid package name: $ac_useropt"
1204 ac_useropt_orig=$ac_useropt
1205 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1206 case $ac_user_opts in
1208 "with_$ac_useropt"
1209 "*) ;;
1210 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1211 ac_unrecognized_sep=', ';;
1212 esac
1213 eval with_$ac_useropt=\$ac_optarg ;;
1215 -without-* | --without-*)
1216 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1217 # Reject names that are not valid shell variable names.
1218 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1219 as_fn_error $? "invalid package name: $ac_useropt"
1220 ac_useropt_orig=$ac_useropt
1221 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1222 case $ac_user_opts in
1224 "with_$ac_useropt"
1225 "*) ;;
1226 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1227 ac_unrecognized_sep=', ';;
1228 esac
1229 eval with_$ac_useropt=no ;;
1231 --x)
1232 # Obsolete; use --with-x.
1233 with_x=yes ;;
1235 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1236 | --x-incl | --x-inc | --x-in | --x-i)
1237 ac_prev=x_includes ;;
1238 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1239 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1240 x_includes=$ac_optarg ;;
1242 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1243 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1244 ac_prev=x_libraries ;;
1245 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1246 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1247 x_libraries=$ac_optarg ;;
1249 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1250 Try \`$0 --help' for more information"
1253 *=*)
1254 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1255 # Reject names that are not valid shell variable names.
1256 case $ac_envvar in #(
1257 '' | [0-9]* | *[!_$as_cr_alnum]* )
1258 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1259 esac
1260 eval $ac_envvar=\$ac_optarg
1261 export $ac_envvar ;;
1264 # FIXME: should be removed in autoconf 3.0.
1265 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1266 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1267 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1268 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1271 esac
1272 done
1274 if test -n "$ac_prev"; then
1275 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1276 as_fn_error $? "missing argument to $ac_option"
1279 if test -n "$ac_unrecognized_opts"; then
1280 case $enable_option_checking in
1281 no) ;;
1282 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1283 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1284 esac
1287 # Check all directory arguments for consistency.
1288 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1289 datadir sysconfdir sharedstatedir localstatedir includedir \
1290 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1291 libdir localedir mandir
1293 eval ac_val=\$$ac_var
1294 # Remove trailing slashes.
1295 case $ac_val in
1296 */ )
1297 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1298 eval $ac_var=\$ac_val;;
1299 esac
1300 # Be sure to have absolute directory names.
1301 case $ac_val in
1302 [\\/$]* | ?:[\\/]* ) continue;;
1303 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1304 esac
1305 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1306 done
1308 # There might be people who depend on the old broken behavior: `$host'
1309 # used to hold the argument of --host etc.
1310 # FIXME: To remove some day.
1311 build=$build_alias
1312 host=$host_alias
1313 target=$target_alias
1315 # FIXME: To remove some day.
1316 if test "x$host_alias" != x; then
1317 if test "x$build_alias" = x; then
1318 cross_compiling=maybe
1319 elif test "x$build_alias" != "x$host_alias"; then
1320 cross_compiling=yes
1324 ac_tool_prefix=
1325 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1327 test "$silent" = yes && exec 6>/dev/null
1330 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1331 ac_ls_di=`ls -di .` &&
1332 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1333 as_fn_error $? "working directory cannot be determined"
1334 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1335 as_fn_error $? "pwd does not report name of working directory"
1338 # Find the source files, if location was not specified.
1339 if test -z "$srcdir"; then
1340 ac_srcdir_defaulted=yes
1341 # Try the directory containing this script, then the parent directory.
1342 ac_confdir=`$as_dirname -- "$as_myself" ||
1343 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1344 X"$as_myself" : 'X\(//\)[^/]' \| \
1345 X"$as_myself" : 'X\(//\)$' \| \
1346 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1347 $as_echo X"$as_myself" |
1348 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1349 s//\1/
1352 /^X\(\/\/\)[^/].*/{
1353 s//\1/
1356 /^X\(\/\/\)$/{
1357 s//\1/
1360 /^X\(\/\).*/{
1361 s//\1/
1364 s/.*/./; q'`
1365 srcdir=$ac_confdir
1366 if test ! -r "$srcdir/$ac_unique_file"; then
1367 srcdir=..
1369 else
1370 ac_srcdir_defaulted=no
1372 if test ! -r "$srcdir/$ac_unique_file"; then
1373 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1374 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1376 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1377 ac_abs_confdir=`(
1378 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1379 pwd)`
1380 # When building in place, set srcdir=.
1381 if test "$ac_abs_confdir" = "$ac_pwd"; then
1382 srcdir=.
1384 # Remove unnecessary trailing slashes from srcdir.
1385 # Double slashes in file names in object file debugging info
1386 # mess up M-x gdb in Emacs.
1387 case $srcdir in
1388 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1389 esac
1390 for ac_var in $ac_precious_vars; do
1391 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1392 eval ac_env_${ac_var}_value=\$${ac_var}
1393 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1394 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1395 done
1398 # Report the --help message.
1400 if test "$ac_init_help" = "long"; then
1401 # Omit some internal or obsolete options to make the list less imposing.
1402 # This message is too long to be a string in the A/UX 3.1 sh.
1403 cat <<_ACEOF
1404 \`configure' configures Wine 1.5.5 to adapt to many kinds of systems.
1406 Usage: $0 [OPTION]... [VAR=VALUE]...
1408 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1409 VAR=VALUE. See below for descriptions of some of the useful variables.
1411 Defaults for the options are specified in brackets.
1413 Configuration:
1414 -h, --help display this help and exit
1415 --help=short display options specific to this package
1416 --help=recursive display the short help of all the included packages
1417 -V, --version display version information and exit
1418 -q, --quiet, --silent do not print \`checking ...' messages
1419 --cache-file=FILE cache test results in FILE [disabled]
1420 -C, --config-cache alias for \`--cache-file=config.cache'
1421 -n, --no-create do not create output files
1422 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1424 Installation directories:
1425 --prefix=PREFIX install architecture-independent files in PREFIX
1426 [$ac_default_prefix]
1427 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1428 [PREFIX]
1430 By default, \`make install' will install all the files in
1431 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1432 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1433 for instance \`--prefix=\$HOME'.
1435 For better control, use the options below.
1437 Fine tuning of the installation directories:
1438 --bindir=DIR user executables [EPREFIX/bin]
1439 --sbindir=DIR system admin executables [EPREFIX/sbin]
1440 --libexecdir=DIR program executables [EPREFIX/libexec]
1441 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1442 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1443 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1444 --libdir=DIR object code libraries [EPREFIX/lib]
1445 --includedir=DIR C header files [PREFIX/include]
1446 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1447 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1448 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1449 --infodir=DIR info documentation [DATAROOTDIR/info]
1450 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1451 --mandir=DIR man documentation [DATAROOTDIR/man]
1452 --docdir=DIR documentation root [DATAROOTDIR/doc/wine]
1453 --htmldir=DIR html documentation [DOCDIR]
1454 --dvidir=DIR dvi documentation [DOCDIR]
1455 --pdfdir=DIR pdf documentation [DOCDIR]
1456 --psdir=DIR ps documentation [DOCDIR]
1457 _ACEOF
1459 cat <<\_ACEOF
1461 X features:
1462 --x-includes=DIR X include files are in DIR
1463 --x-libraries=DIR X library files are in DIR
1465 System types:
1466 --build=BUILD configure for building on BUILD [guessed]
1467 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1468 _ACEOF
1471 if test -n "$ac_init_help"; then
1472 case $ac_init_help in
1473 short | recursive ) echo "Configuration of Wine 1.5.5:";;
1474 esac
1475 cat <<\_ACEOF
1477 Optional Features:
1478 --disable-option-checking ignore unrecognized --enable/--with options
1479 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1480 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1481 --disable-win16 do not include Win16 support
1482 --enable-win64 build a Win64 emulator on AMD64 (won't run Win32
1483 binaries)
1484 --disable-tests do not build the regression tests
1485 --enable-maintainer-mode
1486 enable maintainer-specific build rules
1487 --disable-largefile omit support for large files
1489 Optional Packages:
1490 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1491 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1492 --without-alsa do not use the Alsa sound support
1493 --without-capi do not use CAPI (ISDN support)
1494 --without-cms do not use CMS (color management support)
1495 --without-coreaudio do not use the CoreAudio sound support
1496 --without-cups do not use CUPS
1497 --without-curses do not use (n)curses
1498 --without-dbus do not use DBus (dynamic device support)
1499 --without-fontconfig do not use fontconfig
1500 --without-freetype do not use the FreeType library
1501 --without-gettext do not use gettext
1502 --with-gettextpo use the GetTextPO library to rebuild po files
1503 --without-gphoto do not use gphoto (Digital Camera support)
1504 --without-glu do not use the GLU library
1505 --without-gnutls do not use GnuTLS (schannel support)
1506 --without-gsm do not use libgsm (GSM 06.10 codec support)
1507 --without-gstreamer do not use GStreamer (codecs support)
1508 --without-hal do not use HAL (dynamic device support)
1509 --without-jpeg do not use JPEG
1510 --without-ldap do not use LDAP
1511 --without-mpg123 do not use the mpg123 library
1512 --without-openal do not use OpenAL
1513 --without-opencl do not use OpenCL
1514 --without-opengl do not use OpenGL
1515 --without-openssl do not use OpenSSL
1516 --without-oss do not use the OSS sound support
1517 --without-png do not use PNG
1518 --without-pthread do not use the pthread library
1519 --without-pulse do not use PulseAudio sound support
1520 --without-sane do not use SANE (scanner support)
1521 --without-tiff do not use TIFF
1522 --without-v4l do not use v4l1 (v4l support)
1523 --without-xcomposite do not use the Xcomposite extension
1524 --without-xcursor do not use the Xcursor extension
1525 --without-xinerama do not use Xinerama (multi-monitor support)
1526 --without-xinput do not use the Xinput extension
1527 --without-xinput2 do not use the Xinput 2 extension
1528 --without-xml do not use XML
1529 --without-xrandr do not use Xrandr (resolution changes)
1530 --without-xrender do not use the Xrender extension
1531 --without-xshape do not use the Xshape extension
1532 --without-xslt do not use XSLT
1533 --without-xxf86vm do not use XFree video mode extension
1534 --without-zlib do not use Zlib (data compression)
1535 --with-wine-tools=DIR use Wine tools from directory DIR
1536 --with-wine64=DIR use the 64-bit Wine in DIR for a Wow64 build
1537 --with-x use the X Window System
1539 Some influential environment variables:
1540 CC C compiler command
1541 CFLAGS C compiler flags
1542 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1543 nonstandard directory <lib dir>
1544 LIBS libraries to pass to the linker, e.g. -l<library>
1545 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1546 you have headers in a nonstandard directory <include dir>
1547 CXX C++ compiler command
1548 CXXFLAGS C++ compiler flags
1549 CPP C preprocessor
1550 XMKMF Path to xmkmf, Makefile generator for X Window System
1552 Use these variables to override the choices made by `configure' or to help
1553 it to find libraries and programs with nonstandard names/locations.
1555 Report bugs to <wine-devel@winehq.org>.
1556 Wine home page: <http://www.winehq.org>.
1557 _ACEOF
1558 ac_status=$?
1561 if test "$ac_init_help" = "recursive"; then
1562 # If there are subdirs, report their specific --help.
1563 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1564 test -d "$ac_dir" ||
1565 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1566 continue
1567 ac_builddir=.
1569 case "$ac_dir" in
1570 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1572 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1573 # A ".." for each directory in $ac_dir_suffix.
1574 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1575 case $ac_top_builddir_sub in
1576 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1577 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1578 esac ;;
1579 esac
1580 ac_abs_top_builddir=$ac_pwd
1581 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1582 # for backward compatibility:
1583 ac_top_builddir=$ac_top_build_prefix
1585 case $srcdir in
1586 .) # We are building in place.
1587 ac_srcdir=.
1588 ac_top_srcdir=$ac_top_builddir_sub
1589 ac_abs_top_srcdir=$ac_pwd ;;
1590 [\\/]* | ?:[\\/]* ) # Absolute name.
1591 ac_srcdir=$srcdir$ac_dir_suffix;
1592 ac_top_srcdir=$srcdir
1593 ac_abs_top_srcdir=$srcdir ;;
1594 *) # Relative name.
1595 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1596 ac_top_srcdir=$ac_top_build_prefix$srcdir
1597 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1598 esac
1599 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1601 cd "$ac_dir" || { ac_status=$?; continue; }
1602 # Check for guested configure.
1603 if test -f "$ac_srcdir/configure.gnu"; then
1604 echo &&
1605 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1606 elif test -f "$ac_srcdir/configure"; then
1607 echo &&
1608 $SHELL "$ac_srcdir/configure" --help=recursive
1609 else
1610 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1611 fi || ac_status=$?
1612 cd "$ac_pwd" || { ac_status=$?; break; }
1613 done
1616 test -n "$ac_init_help" && exit $ac_status
1617 if $ac_init_version; then
1618 cat <<\_ACEOF
1619 Wine configure 1.5.5
1620 generated by GNU Autoconf 2.69
1622 Copyright (C) 2012 Free Software Foundation, Inc.
1623 This configure script is free software; the Free Software Foundation
1624 gives unlimited permission to copy, distribute and modify it.
1625 _ACEOF
1626 exit
1629 ## ------------------------ ##
1630 ## Autoconf initialization. ##
1631 ## ------------------------ ##
1633 # ac_fn_c_try_compile LINENO
1634 # --------------------------
1635 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1636 ac_fn_c_try_compile ()
1638 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1639 rm -f conftest.$ac_objext
1640 if { { ac_try="$ac_compile"
1641 case "(($ac_try" in
1642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1643 *) ac_try_echo=$ac_try;;
1644 esac
1645 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1646 $as_echo "$ac_try_echo"; } >&5
1647 (eval "$ac_compile") 2>conftest.err
1648 ac_status=$?
1649 if test -s conftest.err; then
1650 grep -v '^ *+' conftest.err >conftest.er1
1651 cat conftest.er1 >&5
1652 mv -f conftest.er1 conftest.err
1654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1655 test $ac_status = 0; } && {
1656 test -z "$ac_c_werror_flag" ||
1657 test ! -s conftest.err
1658 } && test -s conftest.$ac_objext; then :
1659 ac_retval=0
1660 else
1661 $as_echo "$as_me: failed program was:" >&5
1662 sed 's/^/| /' conftest.$ac_ext >&5
1664 ac_retval=1
1666 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1667 as_fn_set_status $ac_retval
1669 } # ac_fn_c_try_compile
1671 # ac_fn_cxx_try_compile LINENO
1672 # ----------------------------
1673 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1674 ac_fn_cxx_try_compile ()
1676 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1677 rm -f conftest.$ac_objext
1678 if { { ac_try="$ac_compile"
1679 case "(($ac_try" in
1680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1681 *) ac_try_echo=$ac_try;;
1682 esac
1683 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1684 $as_echo "$ac_try_echo"; } >&5
1685 (eval "$ac_compile") 2>conftest.err
1686 ac_status=$?
1687 if test -s conftest.err; then
1688 grep -v '^ *+' conftest.err >conftest.er1
1689 cat conftest.er1 >&5
1690 mv -f conftest.er1 conftest.err
1692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1693 test $ac_status = 0; } && {
1694 test -z "$ac_cxx_werror_flag" ||
1695 test ! -s conftest.err
1696 } && test -s conftest.$ac_objext; then :
1697 ac_retval=0
1698 else
1699 $as_echo "$as_me: failed program was:" >&5
1700 sed 's/^/| /' conftest.$ac_ext >&5
1702 ac_retval=1
1704 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1705 as_fn_set_status $ac_retval
1707 } # ac_fn_cxx_try_compile
1709 # ac_fn_c_try_link LINENO
1710 # -----------------------
1711 # Try to link conftest.$ac_ext, and return whether this succeeded.
1712 ac_fn_c_try_link ()
1714 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1715 rm -f conftest.$ac_objext conftest$ac_exeext
1716 if { { ac_try="$ac_link"
1717 case "(($ac_try" in
1718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1719 *) ac_try_echo=$ac_try;;
1720 esac
1721 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1722 $as_echo "$ac_try_echo"; } >&5
1723 (eval "$ac_link") 2>conftest.err
1724 ac_status=$?
1725 if test -s conftest.err; then
1726 grep -v '^ *+' conftest.err >conftest.er1
1727 cat conftest.er1 >&5
1728 mv -f conftest.er1 conftest.err
1730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1731 test $ac_status = 0; } && {
1732 test -z "$ac_c_werror_flag" ||
1733 test ! -s conftest.err
1734 } && test -s conftest$ac_exeext && {
1735 test "$cross_compiling" = yes ||
1736 test -x conftest$ac_exeext
1737 }; then :
1738 ac_retval=0
1739 else
1740 $as_echo "$as_me: failed program was:" >&5
1741 sed 's/^/| /' conftest.$ac_ext >&5
1743 ac_retval=1
1745 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1746 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1747 # interfere with the next link command; also delete a directory that is
1748 # left behind by Apple's compiler. We do this before executing the actions.
1749 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1750 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1751 as_fn_set_status $ac_retval
1753 } # ac_fn_c_try_link
1755 # ac_fn_c_try_cpp LINENO
1756 # ----------------------
1757 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1758 ac_fn_c_try_cpp ()
1760 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1761 if { { ac_try="$ac_cpp conftest.$ac_ext"
1762 case "(($ac_try" in
1763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1764 *) ac_try_echo=$ac_try;;
1765 esac
1766 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1767 $as_echo "$ac_try_echo"; } >&5
1768 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1769 ac_status=$?
1770 if test -s conftest.err; then
1771 grep -v '^ *+' conftest.err >conftest.er1
1772 cat conftest.er1 >&5
1773 mv -f conftest.er1 conftest.err
1775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1776 test $ac_status = 0; } > conftest.i && {
1777 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1778 test ! -s conftest.err
1779 }; then :
1780 ac_retval=0
1781 else
1782 $as_echo "$as_me: failed program was:" >&5
1783 sed 's/^/| /' conftest.$ac_ext >&5
1785 ac_retval=1
1787 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1788 as_fn_set_status $ac_retval
1790 } # ac_fn_c_try_cpp
1792 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1793 # -------------------------------------------------------
1794 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1795 # the include files in INCLUDES and setting the cache variable VAR
1796 # accordingly.
1797 ac_fn_c_check_header_mongrel ()
1799 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1800 if eval \${$3+:} false; then :
1801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1802 $as_echo_n "checking for $2... " >&6; }
1803 if eval \${$3+:} false; then :
1804 $as_echo_n "(cached) " >&6
1806 eval ac_res=\$$3
1807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1808 $as_echo "$ac_res" >&6; }
1809 else
1810 # Is the header compilable?
1811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1812 $as_echo_n "checking $2 usability... " >&6; }
1813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1814 /* end confdefs.h. */
1816 #include <$2>
1817 _ACEOF
1818 if ac_fn_c_try_compile "$LINENO"; then :
1819 ac_header_compiler=yes
1820 else
1821 ac_header_compiler=no
1823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1825 $as_echo "$ac_header_compiler" >&6; }
1827 # Is the header present?
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1829 $as_echo_n "checking $2 presence... " >&6; }
1830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1831 /* end confdefs.h. */
1832 #include <$2>
1833 _ACEOF
1834 if ac_fn_c_try_cpp "$LINENO"; then :
1835 ac_header_preproc=yes
1836 else
1837 ac_header_preproc=no
1839 rm -f conftest.err conftest.i conftest.$ac_ext
1840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1841 $as_echo "$ac_header_preproc" >&6; }
1843 # So? What about this header?
1844 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1845 yes:no: )
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1847 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1849 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1851 no:yes:* )
1852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1853 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1855 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1857 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1859 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1861 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1862 ( $as_echo "## ------------------------------------ ##
1863 ## Report this to wine-devel@winehq.org ##
1864 ## ------------------------------------ ##"
1865 ) | sed "s/^/$as_me: WARNING: /" >&2
1867 esac
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1869 $as_echo_n "checking for $2... " >&6; }
1870 if eval \${$3+:} false; then :
1871 $as_echo_n "(cached) " >&6
1872 else
1873 eval "$3=\$ac_header_compiler"
1875 eval ac_res=\$$3
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1877 $as_echo "$ac_res" >&6; }
1879 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1881 } # ac_fn_c_check_header_mongrel
1883 # ac_fn_c_try_run LINENO
1884 # ----------------------
1885 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1886 # that executables *can* be run.
1887 ac_fn_c_try_run ()
1889 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1890 if { { ac_try="$ac_link"
1891 case "(($ac_try" in
1892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1893 *) ac_try_echo=$ac_try;;
1894 esac
1895 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1896 $as_echo "$ac_try_echo"; } >&5
1897 (eval "$ac_link") 2>&5
1898 ac_status=$?
1899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1900 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1901 { { case "(($ac_try" in
1902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1903 *) ac_try_echo=$ac_try;;
1904 esac
1905 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1906 $as_echo "$ac_try_echo"; } >&5
1907 (eval "$ac_try") 2>&5
1908 ac_status=$?
1909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1910 test $ac_status = 0; }; }; then :
1911 ac_retval=0
1912 else
1913 $as_echo "$as_me: program exited with status $ac_status" >&5
1914 $as_echo "$as_me: failed program was:" >&5
1915 sed 's/^/| /' conftest.$ac_ext >&5
1917 ac_retval=$ac_status
1919 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1920 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1921 as_fn_set_status $ac_retval
1923 } # ac_fn_c_try_run
1925 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1926 # -------------------------------------------------------
1927 # Tests whether HEADER exists and can be compiled using the include files in
1928 # INCLUDES, setting the cache variable VAR accordingly.
1929 ac_fn_c_check_header_compile ()
1931 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1933 $as_echo_n "checking for $2... " >&6; }
1934 if eval \${$3+:} false; then :
1935 $as_echo_n "(cached) " >&6
1936 else
1937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1938 /* end confdefs.h. */
1940 #include <$2>
1941 _ACEOF
1942 if ac_fn_c_try_compile "$LINENO"; then :
1943 eval "$3=yes"
1944 else
1945 eval "$3=no"
1947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1949 eval ac_res=\$$3
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1951 $as_echo "$ac_res" >&6; }
1952 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1954 } # ac_fn_c_check_header_compile
1956 # ac_fn_c_check_func LINENO FUNC VAR
1957 # ----------------------------------
1958 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1959 ac_fn_c_check_func ()
1961 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1963 $as_echo_n "checking for $2... " >&6; }
1964 if eval \${$3+:} false; then :
1965 $as_echo_n "(cached) " >&6
1966 else
1967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1968 /* end confdefs.h. */
1969 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1970 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1971 #define $2 innocuous_$2
1973 /* System header to define __stub macros and hopefully few prototypes,
1974 which can conflict with char $2 (); below.
1975 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1976 <limits.h> exists even on freestanding compilers. */
1978 #ifdef __STDC__
1979 # include <limits.h>
1980 #else
1981 # include <assert.h>
1982 #endif
1984 #undef $2
1986 /* Override any GCC internal prototype to avoid an error.
1987 Use char because int might match the return type of a GCC
1988 builtin and then its argument prototype would still apply. */
1989 #ifdef __cplusplus
1990 extern "C"
1991 #endif
1992 char $2 ();
1993 /* The GNU C library defines this for functions which it implements
1994 to always fail with ENOSYS. Some functions are actually named
1995 something starting with __ and the normal name is an alias. */
1996 #if defined __stub_$2 || defined __stub___$2
1997 choke me
1998 #endif
2001 main ()
2003 return $2 ();
2005 return 0;
2007 _ACEOF
2008 if ac_fn_c_try_link "$LINENO"; then :
2009 eval "$3=yes"
2010 else
2011 eval "$3=no"
2013 rm -f core conftest.err conftest.$ac_objext \
2014 conftest$ac_exeext conftest.$ac_ext
2016 eval ac_res=\$$3
2017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2018 $as_echo "$ac_res" >&6; }
2019 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2021 } # ac_fn_c_check_func
2023 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2024 # ----------------------------------------------------
2025 # Tries to find if the field MEMBER exists in type AGGR, after including
2026 # INCLUDES, setting cache variable VAR accordingly.
2027 ac_fn_c_check_member ()
2029 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2031 $as_echo_n "checking for $2.$3... " >&6; }
2032 if eval \${$4+:} false; then :
2033 $as_echo_n "(cached) " >&6
2034 else
2035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2036 /* end confdefs.h. */
2039 main ()
2041 static $2 ac_aggr;
2042 if (ac_aggr.$3)
2043 return 0;
2045 return 0;
2047 _ACEOF
2048 if ac_fn_c_try_compile "$LINENO"; then :
2049 eval "$4=yes"
2050 else
2051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2052 /* end confdefs.h. */
2055 main ()
2057 static $2 ac_aggr;
2058 if (sizeof ac_aggr.$3)
2059 return 0;
2061 return 0;
2063 _ACEOF
2064 if ac_fn_c_try_compile "$LINENO"; then :
2065 eval "$4=yes"
2066 else
2067 eval "$4=no"
2069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2073 eval ac_res=\$$4
2074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2075 $as_echo "$ac_res" >&6; }
2076 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2078 } # ac_fn_c_check_member
2080 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2081 # -------------------------------------------
2082 # Tests whether TYPE exists after having included INCLUDES, setting cache
2083 # variable VAR accordingly.
2084 ac_fn_c_check_type ()
2086 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2088 $as_echo_n "checking for $2... " >&6; }
2089 if eval \${$3+:} false; then :
2090 $as_echo_n "(cached) " >&6
2091 else
2092 eval "$3=no"
2093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2094 /* end confdefs.h. */
2097 main ()
2099 if (sizeof ($2))
2100 return 0;
2102 return 0;
2104 _ACEOF
2105 if ac_fn_c_try_compile "$LINENO"; then :
2106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2107 /* end confdefs.h. */
2110 main ()
2112 if (sizeof (($2)))
2113 return 0;
2115 return 0;
2117 _ACEOF
2118 if ac_fn_c_try_compile "$LINENO"; then :
2120 else
2121 eval "$3=yes"
2123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2127 eval ac_res=\$$3
2128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2129 $as_echo "$ac_res" >&6; }
2130 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2132 } # ac_fn_c_check_type
2133 cat >config.log <<_ACEOF
2134 This file contains any messages produced by compilers while
2135 running configure, to aid debugging if configure makes a mistake.
2137 It was created by Wine $as_me 1.5.5, which was
2138 generated by GNU Autoconf 2.69. Invocation command line was
2140 $ $0 $@
2142 _ACEOF
2143 exec 5>>config.log
2145 cat <<_ASUNAME
2146 ## --------- ##
2147 ## Platform. ##
2148 ## --------- ##
2150 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2151 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2152 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2153 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2154 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2156 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2157 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2159 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2160 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2161 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2162 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2163 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2164 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2165 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2167 _ASUNAME
2169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2170 for as_dir in $PATH
2172 IFS=$as_save_IFS
2173 test -z "$as_dir" && as_dir=.
2174 $as_echo "PATH: $as_dir"
2175 done
2176 IFS=$as_save_IFS
2178 } >&5
2180 cat >&5 <<_ACEOF
2183 ## ----------- ##
2184 ## Core tests. ##
2185 ## ----------- ##
2187 _ACEOF
2190 # Keep a trace of the command line.
2191 # Strip out --no-create and --no-recursion so they do not pile up.
2192 # Strip out --silent because we don't want to record it for future runs.
2193 # Also quote any args containing shell meta-characters.
2194 # Make two passes to allow for proper duplicate-argument suppression.
2195 ac_configure_args=
2196 ac_configure_args0=
2197 ac_configure_args1=
2198 ac_must_keep_next=false
2199 for ac_pass in 1 2
2201 for ac_arg
2203 case $ac_arg in
2204 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2205 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2206 | -silent | --silent | --silen | --sile | --sil)
2207 continue ;;
2208 *\'*)
2209 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2210 esac
2211 case $ac_pass in
2212 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2214 as_fn_append ac_configure_args1 " '$ac_arg'"
2215 if test $ac_must_keep_next = true; then
2216 ac_must_keep_next=false # Got value, back to normal.
2217 else
2218 case $ac_arg in
2219 *=* | --config-cache | -C | -disable-* | --disable-* \
2220 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2221 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2222 | -with-* | --with-* | -without-* | --without-* | --x)
2223 case "$ac_configure_args0 " in
2224 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2225 esac
2227 -* ) ac_must_keep_next=true ;;
2228 esac
2230 as_fn_append ac_configure_args " '$ac_arg'"
2232 esac
2233 done
2234 done
2235 { ac_configure_args0=; unset ac_configure_args0;}
2236 { ac_configure_args1=; unset ac_configure_args1;}
2238 # When interrupted or exit'd, cleanup temporary files, and complete
2239 # config.log. We remove comments because anyway the quotes in there
2240 # would cause problems or look ugly.
2241 # WARNING: Use '\'' to represent an apostrophe within the trap.
2242 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2243 trap 'exit_status=$?
2244 # Save into config.log some information that might help in debugging.
2246 echo
2248 $as_echo "## ---------------- ##
2249 ## Cache variables. ##
2250 ## ---------------- ##"
2251 echo
2252 # The following way of writing the cache mishandles newlines in values,
2254 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2255 eval ac_val=\$$ac_var
2256 case $ac_val in #(
2257 *${as_nl}*)
2258 case $ac_var in #(
2259 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2260 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2261 esac
2262 case $ac_var in #(
2263 _ | IFS | as_nl) ;; #(
2264 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2265 *) { eval $ac_var=; unset $ac_var;} ;;
2266 esac ;;
2267 esac
2268 done
2269 (set) 2>&1 |
2270 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2271 *${as_nl}ac_space=\ *)
2272 sed -n \
2273 "s/'\''/'\''\\\\'\'''\''/g;
2274 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2275 ;; #(
2277 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2279 esac |
2280 sort
2282 echo
2284 $as_echo "## ----------------- ##
2285 ## Output variables. ##
2286 ## ----------------- ##"
2287 echo
2288 for ac_var in $ac_subst_vars
2290 eval ac_val=\$$ac_var
2291 case $ac_val in
2292 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2293 esac
2294 $as_echo "$ac_var='\''$ac_val'\''"
2295 done | sort
2296 echo
2298 if test -n "$ac_subst_files"; then
2299 $as_echo "## ------------------- ##
2300 ## File substitutions. ##
2301 ## ------------------- ##"
2302 echo
2303 for ac_var in $ac_subst_files
2305 eval ac_val=\$$ac_var
2306 case $ac_val in
2307 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2308 esac
2309 $as_echo "$ac_var='\''$ac_val'\''"
2310 done | sort
2311 echo
2314 if test -s confdefs.h; then
2315 $as_echo "## ----------- ##
2316 ## confdefs.h. ##
2317 ## ----------- ##"
2318 echo
2319 cat confdefs.h
2320 echo
2322 test "$ac_signal" != 0 &&
2323 $as_echo "$as_me: caught signal $ac_signal"
2324 $as_echo "$as_me: exit $exit_status"
2325 } >&5
2326 rm -f core *.core core.conftest.* &&
2327 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2328 exit $exit_status
2330 for ac_signal in 1 2 13 15; do
2331 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2332 done
2333 ac_signal=0
2335 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2336 rm -f -r conftest* confdefs.h
2338 $as_echo "/* confdefs.h */" > confdefs.h
2340 # Predefined preprocessor variables.
2342 cat >>confdefs.h <<_ACEOF
2343 #define PACKAGE_NAME "$PACKAGE_NAME"
2344 _ACEOF
2346 cat >>confdefs.h <<_ACEOF
2347 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2348 _ACEOF
2350 cat >>confdefs.h <<_ACEOF
2351 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2352 _ACEOF
2354 cat >>confdefs.h <<_ACEOF
2355 #define PACKAGE_STRING "$PACKAGE_STRING"
2356 _ACEOF
2358 cat >>confdefs.h <<_ACEOF
2359 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2360 _ACEOF
2362 cat >>confdefs.h <<_ACEOF
2363 #define PACKAGE_URL "$PACKAGE_URL"
2364 _ACEOF
2367 # Let the site file select an alternate cache file if it wants to.
2368 # Prefer an explicitly selected file to automatically selected ones.
2369 ac_site_file1=NONE
2370 ac_site_file2=NONE
2371 if test -n "$CONFIG_SITE"; then
2372 # We do not want a PATH search for config.site.
2373 case $CONFIG_SITE in #((
2374 -*) ac_site_file1=./$CONFIG_SITE;;
2375 */*) ac_site_file1=$CONFIG_SITE;;
2376 *) ac_site_file1=./$CONFIG_SITE;;
2377 esac
2378 elif test "x$prefix" != xNONE; then
2379 ac_site_file1=$prefix/share/config.site
2380 ac_site_file2=$prefix/etc/config.site
2381 else
2382 ac_site_file1=$ac_default_prefix/share/config.site
2383 ac_site_file2=$ac_default_prefix/etc/config.site
2385 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2387 test "x$ac_site_file" = xNONE && continue
2388 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2389 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2390 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2391 sed 's/^/| /' "$ac_site_file" >&5
2392 . "$ac_site_file" \
2393 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2394 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2395 as_fn_error $? "failed to load site script $ac_site_file
2396 See \`config.log' for more details" "$LINENO" 5; }
2398 done
2400 if test -r "$cache_file"; then
2401 # Some versions of bash will fail to source /dev/null (special files
2402 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2403 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2405 $as_echo "$as_me: loading cache $cache_file" >&6;}
2406 case $cache_file in
2407 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2408 *) . "./$cache_file";;
2409 esac
2411 else
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2413 $as_echo "$as_me: creating cache $cache_file" >&6;}
2414 >$cache_file
2417 # Check that the precious variables saved in the cache have kept the same
2418 # value.
2419 ac_cache_corrupted=false
2420 for ac_var in $ac_precious_vars; do
2421 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2422 eval ac_new_set=\$ac_env_${ac_var}_set
2423 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2424 eval ac_new_val=\$ac_env_${ac_var}_value
2425 case $ac_old_set,$ac_new_set in
2426 set,)
2427 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2428 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2429 ac_cache_corrupted=: ;;
2430 ,set)
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2432 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2433 ac_cache_corrupted=: ;;
2434 ,);;
2436 if test "x$ac_old_val" != "x$ac_new_val"; then
2437 # differences in whitespace do not lead to failure.
2438 ac_old_val_w=`echo x $ac_old_val`
2439 ac_new_val_w=`echo x $ac_new_val`
2440 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2442 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2443 ac_cache_corrupted=:
2444 else
2445 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2446 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2447 eval $ac_var=\$ac_old_val
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2450 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2452 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2453 fi;;
2454 esac
2455 # Pass precious variables to config.status.
2456 if test "$ac_new_set" = set; then
2457 case $ac_new_val in
2458 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2459 *) ac_arg=$ac_var=$ac_new_val ;;
2460 esac
2461 case " $ac_configure_args " in
2462 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2463 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2464 esac
2466 done
2467 if $ac_cache_corrupted; then
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2469 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2471 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2472 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2474 ## -------------------- ##
2475 ## Main body of script. ##
2476 ## -------------------- ##
2478 ac_ext=c
2479 ac_cpp='$CPP $CPPFLAGS'
2480 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2481 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2482 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2486 ac_config_headers="$ac_config_headers include/config.h"
2488 ac_aux_dir=
2489 for ac_dir in tools "$srcdir"/tools; do
2490 if test -f "$ac_dir/install-sh"; then
2491 ac_aux_dir=$ac_dir
2492 ac_install_sh="$ac_aux_dir/install-sh -c"
2493 break
2494 elif test -f "$ac_dir/install.sh"; then
2495 ac_aux_dir=$ac_dir
2496 ac_install_sh="$ac_aux_dir/install.sh -c"
2497 break
2498 elif test -f "$ac_dir/shtool"; then
2499 ac_aux_dir=$ac_dir
2500 ac_install_sh="$ac_aux_dir/shtool install -c"
2501 break
2503 done
2504 if test -z "$ac_aux_dir"; then
2505 as_fn_error $? "cannot find install-sh, install.sh, or shtool in tools \"$srcdir\"/tools" "$LINENO" 5
2508 # These three variables are undocumented and unsupported,
2509 # and are intended to be withdrawn in a future Autoconf release.
2510 # They can cause serious problems if a builder's source tree is in a directory
2511 # whose full name contains unusual characters.
2512 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2513 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2514 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2520 # Check whether --enable-win16 was given.
2521 if test "${enable_win16+set}" = set; then :
2522 enableval=$enable_win16;
2525 # Check whether --enable-win64 was given.
2526 if test "${enable_win64+set}" = set; then :
2527 enableval=$enable_win64;
2530 # Check whether --enable-tests was given.
2531 if test "${enable_tests+set}" = set; then :
2532 enableval=$enable_tests;
2535 # Check whether --enable-maintainer-mode was given.
2536 if test "${enable_maintainer_mode+set}" = set; then :
2537 enableval=$enable_maintainer_mode;
2542 # Check whether --with-alsa was given.
2543 if test "${with_alsa+set}" = set; then :
2544 withval=$with_alsa; if test "x$withval" = "xno"; then ac_cv_header_sys_asoundlib_h=no; ac_cv_header_alsa_asoundlib_h=no; fi
2548 # Check whether --with-capi was given.
2549 if test "${with_capi+set}" = set; then :
2550 withval=$with_capi; if test "x$withval" = "xno"; then ac_cv_header_capi20_h=no; ac_cv_header_linux_capi_h=no; fi
2554 # Check whether --with-cms was given.
2555 if test "${with_cms+set}" = set; then :
2556 withval=$with_cms; if test "x$withval" = "xno"; then ac_cv_header_lcms_h=no; ac_cv_header_lcms_lcms_h=no; fi
2560 # Check whether --with-coreaudio was given.
2561 if test "${with_coreaudio+set}" = set; then :
2562 withval=$with_coreaudio; if test "x$withval" = "xno"; then ac_cv_header_CoreAudio_CoreAudio_h=no; fi
2566 # Check whether --with-cups was given.
2567 if test "${with_cups+set}" = set; then :
2568 withval=$with_cups;
2572 # Check whether --with-curses was given.
2573 if test "${with_curses+set}" = set; then :
2574 withval=$with_curses; if test "x$withval" = "xno"; then ac_cv_header_ncurses_h=no; ac_cv_header_curses_h=no; fi
2578 # Check whether --with-dbus was given.
2579 if test "${with_dbus+set}" = set; then :
2580 withval=$with_dbus;
2584 # Check whether --with-fontconfig was given.
2585 if test "${with_fontconfig+set}" = set; then :
2586 withval=$with_fontconfig;
2590 # Check whether --with-freetype was given.
2591 if test "${with_freetype+set}" = set; then :
2592 withval=$with_freetype;
2596 # Check whether --with-gettext was given.
2597 if test "${with_gettext+set}" = set; then :
2598 withval=$with_gettext;
2602 # Check whether --with-gettextpo was given.
2603 if test "${with_gettextpo+set}" = set; then :
2604 withval=$with_gettextpo; if test "x$withval" = "xno"; then ac_cv_header_gettext_po_h=no; fi
2608 # Check whether --with-gphoto was given.
2609 if test "${with_gphoto+set}" = set; then :
2610 withval=$with_gphoto;
2614 # Check whether --with-glu was given.
2615 if test "${with_glu+set}" = set; then :
2616 withval=$with_glu; if test "x$withval" = "xno"; then ac_cv_header_GL_glu_h=no; fi
2620 # Check whether --with-gnutls was given.
2621 if test "${with_gnutls+set}" = set; then :
2622 withval=$with_gnutls;
2626 # Check whether --with-gsm was given.
2627 if test "${with_gsm+set}" = set; then :
2628 withval=$with_gsm; if test "x$withval" = "xno"; then ac_cv_header_gsm_h=no; ac_cv_header_gsm_gsm_h=no; fi
2632 # Check whether --with-gstreamer was given.
2633 if test "${with_gstreamer+set}" = set; then :
2634 withval=$with_gstreamer;
2638 # Check whether --with-hal was given.
2639 if test "${with_hal+set}" = set; then :
2640 withval=$with_hal;
2644 # Check whether --with-jpeg was given.
2645 if test "${with_jpeg+set}" = set; then :
2646 withval=$with_jpeg; if test "x$withval" = "xno"; then ac_cv_header_jpeglib_h=no; fi
2650 # Check whether --with-ldap was given.
2651 if test "${with_ldap+set}" = set; then :
2652 withval=$with_ldap; if test "x$withval" = "xno"; then ac_cv_header_ldap_h=no; ac_cv_header_lber_h=no; fi
2656 # Check whether --with-mpg123 was given.
2657 if test "${with_mpg123+set}" = set; then :
2658 withval=$with_mpg123; if test "x$withval" = "xno"; then ac_cv_header_mpg123_h=no; fi
2662 # Check whether --with-openal was given.
2663 if test "${with_openal+set}" = set; then :
2664 withval=$with_openal; if test "x$withval" = "xno"; then ac_cv_header_AL_al_h=no; ac_cv_header_OpenAL_al_h=no; fi
2668 # Check whether --with-opencl was given.
2669 if test "${with_opencl+set}" = set; then :
2670 withval=$with_opencl; if test "x$withval" = "xno"; then ac_cv_header_CL_cl_h=no; ac_cv_header_OpenCL_opencl_h=no; fi
2674 # Check whether --with-opengl was given.
2675 if test "${with_opengl+set}" = set; then :
2676 withval=$with_opengl;
2680 # Check whether --with-openssl was given.
2681 if test "${with_openssl+set}" = set; then :
2682 withval=$with_openssl; if test "x$withval" = "xno"; then ac_cv_header_openssl_err_h=no; ac_cv_header_openssl_ssl_h=no; fi
2686 # Check whether --with-oss was given.
2687 if test "${with_oss+set}" = set; then :
2688 withval=$with_oss;
2692 # Check whether --with-png was given.
2693 if test "${with_png+set}" = set; then :
2694 withval=$with_png; if test "x$withval" = "xno"; then ac_cv_header_png_h=no; fi
2698 # Check whether --with-pthread was given.
2699 if test "${with_pthread+set}" = set; then :
2700 withval=$with_pthread; if test "x$withval" = "xno"; then ac_cv_header_pthread_h=no; fi
2704 # Check whether --with-pulse was given.
2705 if test "${with_pulse+set}" = set; then :
2706 withval=$with_pulse;
2710 # Check whether --with-sane was given.
2711 if test "${with_sane+set}" = set; then :
2712 withval=$with_sane;
2716 # Check whether --with-tiff was given.
2717 if test "${with_tiff+set}" = set; then :
2718 withval=$with_tiff; if test "x$withval" = "xno"; then ac_cv_header_tiffio_h=no; fi
2722 # Check whether --with-v4l was given.
2723 if test "${with_v4l+set}" = set; then :
2724 withval=$with_v4l;
2728 # Check whether --with-xcomposite was given.
2729 if test "${with_xcomposite+set}" = set; then :
2730 withval=$with_xcomposite; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xcomposite_h=no; fi
2734 # Check whether --with-xcursor was given.
2735 if test "${with_xcursor+set}" = set; then :
2736 withval=$with_xcursor; if test "x$withval" = "xno"; then ac_cv_header_X11_Xcursor_Xcursor_h=no; fi
2740 # Check whether --with-xinerama was given.
2741 if test "${with_xinerama+set}" = set; then :
2742 withval=$with_xinerama; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xinerama_h=no; fi
2746 # Check whether --with-xinput was given.
2747 if test "${with_xinput+set}" = set; then :
2748 withval=$with_xinput; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput_h=no; fi
2752 # Check whether --with-xinput2 was given.
2753 if test "${with_xinput2+set}" = set; then :
2754 withval=$with_xinput2; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput2_h=no; fi
2758 # Check whether --with-xml was given.
2759 if test "${with_xml+set}" = set; then :
2760 withval=$with_xml;
2764 # Check whether --with-xrandr was given.
2765 if test "${with_xrandr+set}" = set; then :
2766 withval=$with_xrandr; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrandr_h=no; fi
2770 # Check whether --with-xrender was given.
2771 if test "${with_xrender+set}" = set; then :
2772 withval=$with_xrender; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrender_h=no; fi
2776 # Check whether --with-xshape was given.
2777 if test "${with_xshape+set}" = set; then :
2778 withval=$with_xshape; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_shape_h=no; fi
2782 # Check whether --with-xslt was given.
2783 if test "${with_xslt+set}" = set; then :
2784 withval=$with_xslt;
2788 # Check whether --with-xxf86vm was given.
2789 if test "${with_xxf86vm+set}" = set; then :
2790 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
2794 # Check whether --with-zlib was given.
2795 if test "${with_zlib+set}" = set; then :
2796 withval=$with_zlib; if test "x$withval" = "xno"; then ac_cv_header_zlib_h=no; fi
2801 # Check whether --with-wine-tools was given.
2802 if test "${with_wine_tools+set}" = set; then :
2803 withval=$with_wine_tools;
2807 # Check whether --with-wine64 was given.
2808 if test "${with_wine64+set}" = set; then :
2809 withval=$with_wine64;
2813 # Make sure we can run config.sub.
2814 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2815 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2818 $as_echo_n "checking build system type... " >&6; }
2819 if ${ac_cv_build+:} false; then :
2820 $as_echo_n "(cached) " >&6
2821 else
2822 ac_build_alias=$build_alias
2823 test "x$ac_build_alias" = x &&
2824 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2825 test "x$ac_build_alias" = x &&
2826 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2827 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2828 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2832 $as_echo "$ac_cv_build" >&6; }
2833 case $ac_cv_build in
2834 *-*-*) ;;
2835 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2836 esac
2837 build=$ac_cv_build
2838 ac_save_IFS=$IFS; IFS='-'
2839 set x $ac_cv_build
2840 shift
2841 build_cpu=$1
2842 build_vendor=$2
2843 shift; shift
2844 # Remember, the first character of IFS is used to create $*,
2845 # except with old shells:
2846 build_os=$*
2847 IFS=$ac_save_IFS
2848 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2852 $as_echo_n "checking host system type... " >&6; }
2853 if ${ac_cv_host+:} false; then :
2854 $as_echo_n "(cached) " >&6
2855 else
2856 if test "x$host_alias" = x; then
2857 ac_cv_host=$ac_cv_build
2858 else
2859 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2860 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2865 $as_echo "$ac_cv_host" >&6; }
2866 case $ac_cv_host in
2867 *-*-*) ;;
2868 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2869 esac
2870 host=$ac_cv_host
2871 ac_save_IFS=$IFS; IFS='-'
2872 set x $ac_cv_host
2873 shift
2874 host_cpu=$1
2875 host_vendor=$2
2876 shift; shift
2877 # Remember, the first character of IFS is used to create $*,
2878 # except with old shells:
2879 host_os=$*
2880 IFS=$ac_save_IFS
2881 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2885 case "$srcdir" in
2886 .) ;;
2887 *) if test -f "$srcdir/Makefile" -o -f "$srcdir/include/config.h"; then
2888 as_fn_error $? "you are building out of the source tree, but the source tree contains object files.
2889 You need to run 'make distclean' in the source tree first." "$LINENO" 5
2890 fi ;;
2891 esac
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2895 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2896 set x ${MAKE-make}
2897 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2898 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2899 $as_echo_n "(cached) " >&6
2900 else
2901 cat >conftest.make <<\_ACEOF
2902 SHELL = /bin/sh
2903 all:
2904 @echo '@@@%%%=$(MAKE)=@@@%%%'
2905 _ACEOF
2906 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2907 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2908 *@@@%%%=?*=@@@%%%*)
2909 eval ac_cv_prog_make_${ac_make}_set=yes;;
2911 eval ac_cv_prog_make_${ac_make}_set=no;;
2912 esac
2913 rm -f conftest.make
2915 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2917 $as_echo "yes" >&6; }
2918 SET_MAKE=
2919 else
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2921 $as_echo "no" >&6; }
2922 SET_MAKE="MAKE=${MAKE-make}"
2925 ac_ext=c
2926 ac_cpp='$CPP $CPPFLAGS'
2927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2930 if test -n "$ac_tool_prefix"; then
2931 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2932 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2934 $as_echo_n "checking for $ac_word... " >&6; }
2935 if ${ac_cv_prog_CC+:} false; then :
2936 $as_echo_n "(cached) " >&6
2937 else
2938 if test -n "$CC"; then
2939 ac_cv_prog_CC="$CC" # Let the user override the test.
2940 else
2941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2942 for as_dir in $PATH
2944 IFS=$as_save_IFS
2945 test -z "$as_dir" && as_dir=.
2946 for ac_exec_ext in '' $ac_executable_extensions; do
2947 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2948 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2950 break 2
2952 done
2953 done
2954 IFS=$as_save_IFS
2958 CC=$ac_cv_prog_CC
2959 if test -n "$CC"; then
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2961 $as_echo "$CC" >&6; }
2962 else
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2964 $as_echo "no" >&6; }
2969 if test -z "$ac_cv_prog_CC"; then
2970 ac_ct_CC=$CC
2971 # Extract the first word of "gcc", so it can be a program name with args.
2972 set dummy gcc; ac_word=$2
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2974 $as_echo_n "checking for $ac_word... " >&6; }
2975 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2976 $as_echo_n "(cached) " >&6
2977 else
2978 if test -n "$ac_ct_CC"; then
2979 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2980 else
2981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2982 for as_dir in $PATH
2984 IFS=$as_save_IFS
2985 test -z "$as_dir" && as_dir=.
2986 for ac_exec_ext in '' $ac_executable_extensions; do
2987 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2988 ac_cv_prog_ac_ct_CC="gcc"
2989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2990 break 2
2992 done
2993 done
2994 IFS=$as_save_IFS
2998 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2999 if test -n "$ac_ct_CC"; then
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3001 $as_echo "$ac_ct_CC" >&6; }
3002 else
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3004 $as_echo "no" >&6; }
3007 if test "x$ac_ct_CC" = x; then
3008 CC=""
3009 else
3010 case $cross_compiling:$ac_tool_warned in
3011 yes:)
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3013 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3014 ac_tool_warned=yes ;;
3015 esac
3016 CC=$ac_ct_CC
3018 else
3019 CC="$ac_cv_prog_CC"
3022 if test -z "$CC"; then
3023 if test -n "$ac_tool_prefix"; then
3024 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3025 set dummy ${ac_tool_prefix}cc; ac_word=$2
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3027 $as_echo_n "checking for $ac_word... " >&6; }
3028 if ${ac_cv_prog_CC+:} false; then :
3029 $as_echo_n "(cached) " >&6
3030 else
3031 if test -n "$CC"; then
3032 ac_cv_prog_CC="$CC" # Let the user override the test.
3033 else
3034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3035 for as_dir in $PATH
3037 IFS=$as_save_IFS
3038 test -z "$as_dir" && as_dir=.
3039 for ac_exec_ext in '' $ac_executable_extensions; do
3040 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3041 ac_cv_prog_CC="${ac_tool_prefix}cc"
3042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3043 break 2
3045 done
3046 done
3047 IFS=$as_save_IFS
3051 CC=$ac_cv_prog_CC
3052 if test -n "$CC"; then
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3054 $as_echo "$CC" >&6; }
3055 else
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3057 $as_echo "no" >&6; }
3063 if test -z "$CC"; then
3064 # Extract the first word of "cc", so it can be a program name with args.
3065 set dummy cc; ac_word=$2
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3067 $as_echo_n "checking for $ac_word... " >&6; }
3068 if ${ac_cv_prog_CC+:} false; then :
3069 $as_echo_n "(cached) " >&6
3070 else
3071 if test -n "$CC"; then
3072 ac_cv_prog_CC="$CC" # Let the user override the test.
3073 else
3074 ac_prog_rejected=no
3075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3076 for as_dir in $PATH
3078 IFS=$as_save_IFS
3079 test -z "$as_dir" && as_dir=.
3080 for ac_exec_ext in '' $ac_executable_extensions; do
3081 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3082 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3083 ac_prog_rejected=yes
3084 continue
3086 ac_cv_prog_CC="cc"
3087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3088 break 2
3090 done
3091 done
3092 IFS=$as_save_IFS
3094 if test $ac_prog_rejected = yes; then
3095 # We found a bogon in the path, so make sure we never use it.
3096 set dummy $ac_cv_prog_CC
3097 shift
3098 if test $# != 0; then
3099 # We chose a different compiler from the bogus one.
3100 # However, it has the same basename, so the bogon will be chosen
3101 # first if we set CC to just the basename; use the full file name.
3102 shift
3103 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3108 CC=$ac_cv_prog_CC
3109 if test -n "$CC"; then
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3111 $as_echo "$CC" >&6; }
3112 else
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3114 $as_echo "no" >&6; }
3119 if test -z "$CC"; then
3120 if test -n "$ac_tool_prefix"; then
3121 for ac_prog in cl.exe
3123 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3124 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3126 $as_echo_n "checking for $ac_word... " >&6; }
3127 if ${ac_cv_prog_CC+:} false; then :
3128 $as_echo_n "(cached) " >&6
3129 else
3130 if test -n "$CC"; then
3131 ac_cv_prog_CC="$CC" # Let the user override the test.
3132 else
3133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3134 for as_dir in $PATH
3136 IFS=$as_save_IFS
3137 test -z "$as_dir" && as_dir=.
3138 for ac_exec_ext in '' $ac_executable_extensions; do
3139 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3140 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3142 break 2
3144 done
3145 done
3146 IFS=$as_save_IFS
3150 CC=$ac_cv_prog_CC
3151 if test -n "$CC"; then
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3153 $as_echo "$CC" >&6; }
3154 else
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3156 $as_echo "no" >&6; }
3160 test -n "$CC" && break
3161 done
3163 if test -z "$CC"; then
3164 ac_ct_CC=$CC
3165 for ac_prog in cl.exe
3167 # Extract the first word of "$ac_prog", so it can be a program name with args.
3168 set dummy $ac_prog; ac_word=$2
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3170 $as_echo_n "checking for $ac_word... " >&6; }
3171 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3172 $as_echo_n "(cached) " >&6
3173 else
3174 if test -n "$ac_ct_CC"; then
3175 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3176 else
3177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3178 for as_dir in $PATH
3180 IFS=$as_save_IFS
3181 test -z "$as_dir" && as_dir=.
3182 for ac_exec_ext in '' $ac_executable_extensions; do
3183 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3184 ac_cv_prog_ac_ct_CC="$ac_prog"
3185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3186 break 2
3188 done
3189 done
3190 IFS=$as_save_IFS
3194 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3195 if test -n "$ac_ct_CC"; then
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3197 $as_echo "$ac_ct_CC" >&6; }
3198 else
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3200 $as_echo "no" >&6; }
3204 test -n "$ac_ct_CC" && break
3205 done
3207 if test "x$ac_ct_CC" = x; then
3208 CC=""
3209 else
3210 case $cross_compiling:$ac_tool_warned in
3211 yes:)
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3213 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3214 ac_tool_warned=yes ;;
3215 esac
3216 CC=$ac_ct_CC
3223 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3224 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3225 as_fn_error $? "no acceptable C compiler found in \$PATH
3226 See \`config.log' for more details" "$LINENO" 5; }
3228 # Provide some information about the compiler.
3229 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3230 set X $ac_compile
3231 ac_compiler=$2
3232 for ac_option in --version -v -V -qversion; do
3233 { { ac_try="$ac_compiler $ac_option >&5"
3234 case "(($ac_try" in
3235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3236 *) ac_try_echo=$ac_try;;
3237 esac
3238 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3239 $as_echo "$ac_try_echo"; } >&5
3240 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3241 ac_status=$?
3242 if test -s conftest.err; then
3243 sed '10a\
3244 ... rest of stderr output deleted ...
3245 10q' conftest.err >conftest.er1
3246 cat conftest.er1 >&5
3248 rm -f conftest.er1 conftest.err
3249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3250 test $ac_status = 0; }
3251 done
3253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3254 /* end confdefs.h. */
3257 main ()
3261 return 0;
3263 _ACEOF
3264 ac_clean_files_save=$ac_clean_files
3265 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3266 # Try to create an executable without -o first, disregard a.out.
3267 # It will help us diagnose broken compilers, and finding out an intuition
3268 # of exeext.
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3270 $as_echo_n "checking whether the C compiler works... " >&6; }
3271 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3273 # The possible output files:
3274 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3276 ac_rmfiles=
3277 for ac_file in $ac_files
3279 case $ac_file in
3280 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3281 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3282 esac
3283 done
3284 rm -f $ac_rmfiles
3286 if { { ac_try="$ac_link_default"
3287 case "(($ac_try" in
3288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3289 *) ac_try_echo=$ac_try;;
3290 esac
3291 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3292 $as_echo "$ac_try_echo"; } >&5
3293 (eval "$ac_link_default") 2>&5
3294 ac_status=$?
3295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3296 test $ac_status = 0; }; then :
3297 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3298 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3299 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3300 # so that the user can short-circuit this test for compilers unknown to
3301 # Autoconf.
3302 for ac_file in $ac_files ''
3304 test -f "$ac_file" || continue
3305 case $ac_file in
3306 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3308 [ab].out )
3309 # We found the default executable, but exeext='' is most
3310 # certainly right.
3311 break;;
3312 *.* )
3313 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3314 then :; else
3315 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3317 # We set ac_cv_exeext here because the later test for it is not
3318 # safe: cross compilers may not add the suffix if given an `-o'
3319 # argument, so we may need to know it at that point already.
3320 # Even if this section looks crufty: it has the advantage of
3321 # actually working.
3322 break;;
3324 break;;
3325 esac
3326 done
3327 test "$ac_cv_exeext" = no && ac_cv_exeext=
3329 else
3330 ac_file=''
3332 if test -z "$ac_file"; then :
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3334 $as_echo "no" >&6; }
3335 $as_echo "$as_me: failed program was:" >&5
3336 sed 's/^/| /' conftest.$ac_ext >&5
3338 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3339 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3340 as_fn_error 77 "C compiler cannot create executables
3341 See \`config.log' for more details" "$LINENO" 5; }
3342 else
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3344 $as_echo "yes" >&6; }
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3347 $as_echo_n "checking for C compiler default output file name... " >&6; }
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3349 $as_echo "$ac_file" >&6; }
3350 ac_exeext=$ac_cv_exeext
3352 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3353 ac_clean_files=$ac_clean_files_save
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3355 $as_echo_n "checking for suffix of executables... " >&6; }
3356 if { { ac_try="$ac_link"
3357 case "(($ac_try" in
3358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3359 *) ac_try_echo=$ac_try;;
3360 esac
3361 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3362 $as_echo "$ac_try_echo"; } >&5
3363 (eval "$ac_link") 2>&5
3364 ac_status=$?
3365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3366 test $ac_status = 0; }; then :
3367 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3368 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3369 # work properly (i.e., refer to `conftest.exe'), while it won't with
3370 # `rm'.
3371 for ac_file in conftest.exe conftest conftest.*; do
3372 test -f "$ac_file" || continue
3373 case $ac_file in
3374 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3375 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3376 break;;
3377 * ) break;;
3378 esac
3379 done
3380 else
3381 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3382 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3383 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3384 See \`config.log' for more details" "$LINENO" 5; }
3386 rm -f conftest conftest$ac_cv_exeext
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3388 $as_echo "$ac_cv_exeext" >&6; }
3390 rm -f conftest.$ac_ext
3391 EXEEXT=$ac_cv_exeext
3392 ac_exeext=$EXEEXT
3393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3394 /* end confdefs.h. */
3395 #include <stdio.h>
3397 main ()
3399 FILE *f = fopen ("conftest.out", "w");
3400 return ferror (f) || fclose (f) != 0;
3403 return 0;
3405 _ACEOF
3406 ac_clean_files="$ac_clean_files conftest.out"
3407 # Check that the compiler produces executables we can run. If not, either
3408 # the compiler is broken, or we cross compile.
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3410 $as_echo_n "checking whether we are cross compiling... " >&6; }
3411 if test "$cross_compiling" != yes; then
3412 { { ac_try="$ac_link"
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_link") 2>&5
3420 ac_status=$?
3421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3422 test $ac_status = 0; }
3423 if { ac_try='./conftest$ac_cv_exeext'
3424 { { case "(($ac_try" in
3425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3426 *) ac_try_echo=$ac_try;;
3427 esac
3428 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3429 $as_echo "$ac_try_echo"; } >&5
3430 (eval "$ac_try") 2>&5
3431 ac_status=$?
3432 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3433 test $ac_status = 0; }; }; then
3434 cross_compiling=no
3435 else
3436 if test "$cross_compiling" = maybe; then
3437 cross_compiling=yes
3438 else
3439 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3440 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3441 as_fn_error $? "cannot run C compiled programs.
3442 If you meant to cross compile, use \`--host'.
3443 See \`config.log' for more details" "$LINENO" 5; }
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3448 $as_echo "$cross_compiling" >&6; }
3450 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3451 ac_clean_files=$ac_clean_files_save
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3453 $as_echo_n "checking for suffix of object files... " >&6; }
3454 if ${ac_cv_objext+:} false; then :
3455 $as_echo_n "(cached) " >&6
3456 else
3457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3458 /* end confdefs.h. */
3461 main ()
3465 return 0;
3467 _ACEOF
3468 rm -f conftest.o conftest.obj
3469 if { { ac_try="$ac_compile"
3470 case "(($ac_try" in
3471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3472 *) ac_try_echo=$ac_try;;
3473 esac
3474 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3475 $as_echo "$ac_try_echo"; } >&5
3476 (eval "$ac_compile") 2>&5
3477 ac_status=$?
3478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3479 test $ac_status = 0; }; then :
3480 for ac_file in conftest.o conftest.obj conftest.*; do
3481 test -f "$ac_file" || continue;
3482 case $ac_file in
3483 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3484 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3485 break;;
3486 esac
3487 done
3488 else
3489 $as_echo "$as_me: failed program was:" >&5
3490 sed 's/^/| /' conftest.$ac_ext >&5
3492 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3493 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3494 as_fn_error $? "cannot compute suffix of object files: cannot compile
3495 See \`config.log' for more details" "$LINENO" 5; }
3497 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3500 $as_echo "$ac_cv_objext" >&6; }
3501 OBJEXT=$ac_cv_objext
3502 ac_objext=$OBJEXT
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3504 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3505 if ${ac_cv_c_compiler_gnu+:} false; then :
3506 $as_echo_n "(cached) " >&6
3507 else
3508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3509 /* end confdefs.h. */
3512 main ()
3514 #ifndef __GNUC__
3515 choke me
3516 #endif
3519 return 0;
3521 _ACEOF
3522 if ac_fn_c_try_compile "$LINENO"; then :
3523 ac_compiler_gnu=yes
3524 else
3525 ac_compiler_gnu=no
3527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3528 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3532 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3533 if test $ac_compiler_gnu = yes; then
3534 GCC=yes
3535 else
3536 GCC=
3538 ac_test_CFLAGS=${CFLAGS+set}
3539 ac_save_CFLAGS=$CFLAGS
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3541 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3542 if ${ac_cv_prog_cc_g+:} false; then :
3543 $as_echo_n "(cached) " >&6
3544 else
3545 ac_save_c_werror_flag=$ac_c_werror_flag
3546 ac_c_werror_flag=yes
3547 ac_cv_prog_cc_g=no
3548 CFLAGS="-g"
3549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3550 /* end confdefs.h. */
3553 main ()
3557 return 0;
3559 _ACEOF
3560 if ac_fn_c_try_compile "$LINENO"; then :
3561 ac_cv_prog_cc_g=yes
3562 else
3563 CFLAGS=""
3564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3565 /* end confdefs.h. */
3568 main ()
3572 return 0;
3574 _ACEOF
3575 if ac_fn_c_try_compile "$LINENO"; then :
3577 else
3578 ac_c_werror_flag=$ac_save_c_werror_flag
3579 CFLAGS="-g"
3580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3581 /* end confdefs.h. */
3584 main ()
3588 return 0;
3590 _ACEOF
3591 if ac_fn_c_try_compile "$LINENO"; then :
3592 ac_cv_prog_cc_g=yes
3594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3599 ac_c_werror_flag=$ac_save_c_werror_flag
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3602 $as_echo "$ac_cv_prog_cc_g" >&6; }
3603 if test "$ac_test_CFLAGS" = set; then
3604 CFLAGS=$ac_save_CFLAGS
3605 elif test $ac_cv_prog_cc_g = yes; then
3606 if test "$GCC" = yes; then
3607 CFLAGS="-g -O2"
3608 else
3609 CFLAGS="-g"
3611 else
3612 if test "$GCC" = yes; then
3613 CFLAGS="-O2"
3614 else
3615 CFLAGS=
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3619 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3620 if ${ac_cv_prog_cc_c89+:} false; then :
3621 $as_echo_n "(cached) " >&6
3622 else
3623 ac_cv_prog_cc_c89=no
3624 ac_save_CC=$CC
3625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3626 /* end confdefs.h. */
3627 #include <stdarg.h>
3628 #include <stdio.h>
3629 struct stat;
3630 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3631 struct buf { int x; };
3632 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3633 static char *e (p, i)
3634 char **p;
3635 int i;
3637 return p[i];
3639 static char *f (char * (*g) (char **, int), char **p, ...)
3641 char *s;
3642 va_list v;
3643 va_start (v,p);
3644 s = g (p, va_arg (v,int));
3645 va_end (v);
3646 return s;
3649 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3650 function prototypes and stuff, but not '\xHH' hex character constants.
3651 These don't provoke an error unfortunately, instead are silently treated
3652 as 'x'. The following induces an error, until -std is added to get
3653 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3654 array size at least. It's necessary to write '\x00'==0 to get something
3655 that's true only with -std. */
3656 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3658 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3659 inside strings and character constants. */
3660 #define FOO(x) 'x'
3661 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3663 int test (int i, double x);
3664 struct s1 {int (*f) (int a);};
3665 struct s2 {int (*f) (double a);};
3666 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3667 int argc;
3668 char **argv;
3670 main ()
3672 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3674 return 0;
3676 _ACEOF
3677 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3678 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3680 CC="$ac_save_CC $ac_arg"
3681 if ac_fn_c_try_compile "$LINENO"; then :
3682 ac_cv_prog_cc_c89=$ac_arg
3684 rm -f core conftest.err conftest.$ac_objext
3685 test "x$ac_cv_prog_cc_c89" != "xno" && break
3686 done
3687 rm -f conftest.$ac_ext
3688 CC=$ac_save_CC
3691 # AC_CACHE_VAL
3692 case "x$ac_cv_prog_cc_c89" in
3694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3695 $as_echo "none needed" >&6; } ;;
3696 xno)
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3698 $as_echo "unsupported" >&6; } ;;
3700 CC="$CC $ac_cv_prog_cc_c89"
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3702 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3703 esac
3704 if test "x$ac_cv_prog_cc_c89" != xno; then :
3708 ac_ext=c
3709 ac_cpp='$CPP $CPPFLAGS'
3710 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3711 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3712 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3714 ac_ext=cpp
3715 ac_cpp='$CXXCPP $CPPFLAGS'
3716 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3717 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3718 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3719 if test -z "$CXX"; then
3720 if test -n "$CCC"; then
3721 CXX=$CCC
3722 else
3723 if test -n "$ac_tool_prefix"; then
3724 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3726 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3727 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3729 $as_echo_n "checking for $ac_word... " >&6; }
3730 if ${ac_cv_prog_CXX+:} false; then :
3731 $as_echo_n "(cached) " >&6
3732 else
3733 if test -n "$CXX"; then
3734 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3735 else
3736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3737 for as_dir in $PATH
3739 IFS=$as_save_IFS
3740 test -z "$as_dir" && as_dir=.
3741 for ac_exec_ext in '' $ac_executable_extensions; do
3742 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3743 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3745 break 2
3747 done
3748 done
3749 IFS=$as_save_IFS
3753 CXX=$ac_cv_prog_CXX
3754 if test -n "$CXX"; then
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3756 $as_echo "$CXX" >&6; }
3757 else
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3759 $as_echo "no" >&6; }
3763 test -n "$CXX" && break
3764 done
3766 if test -z "$CXX"; then
3767 ac_ct_CXX=$CXX
3768 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3770 # Extract the first word of "$ac_prog", so it can be a program name with args.
3771 set dummy $ac_prog; ac_word=$2
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3773 $as_echo_n "checking for $ac_word... " >&6; }
3774 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3775 $as_echo_n "(cached) " >&6
3776 else
3777 if test -n "$ac_ct_CXX"; then
3778 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3779 else
3780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3781 for as_dir in $PATH
3783 IFS=$as_save_IFS
3784 test -z "$as_dir" && as_dir=.
3785 for ac_exec_ext in '' $ac_executable_extensions; do
3786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3787 ac_cv_prog_ac_ct_CXX="$ac_prog"
3788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3789 break 2
3791 done
3792 done
3793 IFS=$as_save_IFS
3797 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3798 if test -n "$ac_ct_CXX"; then
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3800 $as_echo "$ac_ct_CXX" >&6; }
3801 else
3802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3803 $as_echo "no" >&6; }
3807 test -n "$ac_ct_CXX" && break
3808 done
3810 if test "x$ac_ct_CXX" = x; then
3811 CXX="g++"
3812 else
3813 case $cross_compiling:$ac_tool_warned in
3814 yes:)
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3816 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3817 ac_tool_warned=yes ;;
3818 esac
3819 CXX=$ac_ct_CXX
3825 # Provide some information about the compiler.
3826 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3827 set X $ac_compile
3828 ac_compiler=$2
3829 for ac_option in --version -v -V -qversion; do
3830 { { ac_try="$ac_compiler $ac_option >&5"
3831 case "(($ac_try" in
3832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3833 *) ac_try_echo=$ac_try;;
3834 esac
3835 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3836 $as_echo "$ac_try_echo"; } >&5
3837 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3838 ac_status=$?
3839 if test -s conftest.err; then
3840 sed '10a\
3841 ... rest of stderr output deleted ...
3842 10q' conftest.err >conftest.er1
3843 cat conftest.er1 >&5
3845 rm -f conftest.er1 conftest.err
3846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3847 test $ac_status = 0; }
3848 done
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3851 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3852 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3853 $as_echo_n "(cached) " >&6
3854 else
3855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3856 /* end confdefs.h. */
3859 main ()
3861 #ifndef __GNUC__
3862 choke me
3863 #endif
3866 return 0;
3868 _ACEOF
3869 if ac_fn_cxx_try_compile "$LINENO"; then :
3870 ac_compiler_gnu=yes
3871 else
3872 ac_compiler_gnu=no
3874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3875 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3879 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3880 if test $ac_compiler_gnu = yes; then
3881 GXX=yes
3882 else
3883 GXX=
3885 ac_test_CXXFLAGS=${CXXFLAGS+set}
3886 ac_save_CXXFLAGS=$CXXFLAGS
3887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3888 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3889 if ${ac_cv_prog_cxx_g+:} false; then :
3890 $as_echo_n "(cached) " >&6
3891 else
3892 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3893 ac_cxx_werror_flag=yes
3894 ac_cv_prog_cxx_g=no
3895 CXXFLAGS="-g"
3896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3897 /* end confdefs.h. */
3900 main ()
3904 return 0;
3906 _ACEOF
3907 if ac_fn_cxx_try_compile "$LINENO"; then :
3908 ac_cv_prog_cxx_g=yes
3909 else
3910 CXXFLAGS=""
3911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3912 /* end confdefs.h. */
3915 main ()
3919 return 0;
3921 _ACEOF
3922 if ac_fn_cxx_try_compile "$LINENO"; then :
3924 else
3925 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3926 CXXFLAGS="-g"
3927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3928 /* end confdefs.h. */
3931 main ()
3935 return 0;
3937 _ACEOF
3938 if ac_fn_cxx_try_compile "$LINENO"; then :
3939 ac_cv_prog_cxx_g=yes
3941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3946 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3949 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3950 if test "$ac_test_CXXFLAGS" = set; then
3951 CXXFLAGS=$ac_save_CXXFLAGS
3952 elif test $ac_cv_prog_cxx_g = yes; then
3953 if test "$GXX" = yes; then
3954 CXXFLAGS="-g -O2"
3955 else
3956 CXXFLAGS="-g"
3958 else
3959 if test "$GXX" = yes; then
3960 CXXFLAGS="-O2"
3961 else
3962 CXXFLAGS=
3965 ac_ext=c
3966 ac_cpp='$CPP $CPPFLAGS'
3967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3971 if test -n "$ac_tool_prefix"; then
3972 # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
3973 set dummy ${ac_tool_prefix}cpp; ac_word=$2
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3975 $as_echo_n "checking for $ac_word... " >&6; }
3976 if ${ac_cv_prog_CPPBIN+:} false; then :
3977 $as_echo_n "(cached) " >&6
3978 else
3979 if test -n "$CPPBIN"; then
3980 ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test.
3981 else
3982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3983 for as_dir in $PATH
3985 IFS=$as_save_IFS
3986 test -z "$as_dir" && as_dir=.
3987 for ac_exec_ext in '' $ac_executable_extensions; do
3988 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3989 ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp"
3990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3991 break 2
3993 done
3994 done
3995 IFS=$as_save_IFS
3999 CPPBIN=$ac_cv_prog_CPPBIN
4000 if test -n "$CPPBIN"; then
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPPBIN" >&5
4002 $as_echo "$CPPBIN" >&6; }
4003 else
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4005 $as_echo "no" >&6; }
4010 if test -z "$ac_cv_prog_CPPBIN"; then
4011 ac_ct_CPPBIN=$CPPBIN
4012 # Extract the first word of "cpp", so it can be a program name with args.
4013 set dummy cpp; ac_word=$2
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4015 $as_echo_n "checking for $ac_word... " >&6; }
4016 if ${ac_cv_prog_ac_ct_CPPBIN+:} false; then :
4017 $as_echo_n "(cached) " >&6
4018 else
4019 if test -n "$ac_ct_CPPBIN"; then
4020 ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test.
4021 else
4022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4023 for as_dir in $PATH
4025 IFS=$as_save_IFS
4026 test -z "$as_dir" && as_dir=.
4027 for ac_exec_ext in '' $ac_executable_extensions; do
4028 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4029 ac_cv_prog_ac_ct_CPPBIN="cpp"
4030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4031 break 2
4033 done
4034 done
4035 IFS=$as_save_IFS
4039 ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN
4040 if test -n "$ac_ct_CPPBIN"; then
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CPPBIN" >&5
4042 $as_echo "$ac_ct_CPPBIN" >&6; }
4043 else
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4045 $as_echo "no" >&6; }
4048 if test "x$ac_ct_CPPBIN" = x; then
4049 CPPBIN="cpp"
4050 else
4051 case $cross_compiling:$ac_tool_warned in
4052 yes:)
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4054 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4055 ac_tool_warned=yes ;;
4056 esac
4057 CPPBIN=$ac_ct_CPPBIN
4059 else
4060 CPPBIN="$ac_cv_prog_CPPBIN"
4064 cat >>confdefs.h <<_ACEOF
4065 #define EXEEXT "$ac_exeext"
4066 _ACEOF
4069 case $host in
4070 *-darwin*)
4071 if test "x$enable_win64" = "xyes"
4072 then
4073 CC="$CC -m64"
4074 CXX="$CXX -m64"
4075 host_cpu="x86_64"
4076 notice_platform="64-bit "
4077 TARGETFLAGS="-m64"
4079 else
4080 CC="$CC -m32"
4081 CXX="$CXX -m32"
4082 host_cpu="i386"
4083 notice_platform="32-bit "
4084 TARGETFLAGS="-m32"
4086 enable_win16=${enable_win16:-yes}
4088 with_fontconfig=${with_fontconfig:-no}
4090 x86_64*)
4091 if test "x$enable_win64" != "xyes" -a "$cross_compiling" != "yes"
4092 then
4093 CC="$CC -m32"
4094 CXX="$CXX -m32"
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC works" >&5
4096 $as_echo_n "checking whether $CC works... " >&6; }
4098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4099 /* end confdefs.h. */
4102 main ()
4106 return 0;
4108 _ACEOF
4109 if ac_fn_c_try_link "$LINENO"; then :
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4111 $as_echo "yes" >&6; }
4112 else
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4114 $as_echo "no" >&6; }
4115 as_fn_error $? "Cannot build a 32-bit program, you need to install 32-bit development libraries." "$LINENO" 5
4117 rm -f core conftest.err conftest.$ac_objext \
4118 conftest$ac_exeext conftest.$ac_ext
4119 host_cpu="i386"
4120 notice_platform="32-bit "
4121 TARGETFLAGS="-m32"
4123 enable_win16=${enable_win16:-yes}
4124 else
4125 if test "x${GCC}" = "xyes"
4126 then
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports __builtin_ms_va_list" >&5
4128 $as_echo_n "checking whether $CC supports __builtin_ms_va_list... " >&6; }
4129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4130 /* end confdefs.h. */
4131 #include <stdarg.h>
4133 main ()
4135 void func(__builtin_ms_va_list *args);
4137 return 0;
4139 _ACEOF
4140 if ac_fn_c_try_compile "$LINENO"; then :
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4142 $as_echo "yes" >&6; }
4143 else
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4145 $as_echo "no" >&6; }
4146 as_fn_error $? "You need gcc >= 4.4 to build Wine as 64-bit." "$LINENO" 5
4148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4150 TARGETFLAGS="-m64"
4154 arm*)
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports Thumb2" >&5
4156 $as_echo_n "checking whether $CC supports Thumb2... " >&6; }
4157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4158 /* end confdefs.h. */
4159 int ac_test(int i) { return i; }
4161 main ()
4163 asm(".syntax unified\n.thumb\nb.w ac_test\n.arm"); if (ac_test(1)) return 1
4165 return 0;
4167 _ACEOF
4168 if ac_fn_c_try_link "$LINENO"; then :
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4170 $as_echo "yes" >&6; }
4171 else
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4173 $as_echo "no" >&6; }
4174 as_fn_error $? "You need a target with Thumb2 support to build Wine for ARM." "$LINENO" 5
4176 rm -f core conftest.err conftest.$ac_objext \
4177 conftest$ac_exeext conftest.$ac_ext
4178 CFLAGS="$CFLAGS -marm"
4180 *-mingw32*|*-cygwin*)
4181 enable_win16=${enable_win16:-no}
4182 CFLAGS="$CFLAGS -D_WIN32"
4184 i[3456789]86*)
4185 enable_win16=${enable_win16:-yes}
4187 esac
4189 enable_win16=${enable_win16:-no}
4190 enable_win64=${enable_win64:-no}
4192 enable_winetest=${enable_winetest:-$enable_tests}
4194 if test -n "$with_wine64"
4195 then
4196 if test "x$enable_win64" = "xyes"
4197 then
4198 as_fn_error $? "--enable-win64 and --with-wine64 are mutually exclusive.
4199 --enable-win64 should be used in the 64-bit build tree, --with-wine64 in the 32-bit Wow64 build tree." "$LINENO" 5
4201 WOW64_DISABLE=\#
4203 enable_fonts=${enable_fonts:-no}
4204 enable_server=${enable_server:-no}
4205 enable_tools=${enable_tools:-no}
4206 elif test "x$enable_win64" = "xyes"
4207 then
4208 test "x$libdir" != "x\${exec_prefix}/lib" || libdir="\${exec_prefix}/lib64"
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the directory containing the Wine tools" >&5
4212 $as_echo_n "checking for the directory containing the Wine tools... " >&6; }
4213 if ${wine_cv_toolsdir+:} false; then :
4214 $as_echo_n "(cached) " >&6
4215 else
4216 wine_cv_toolsdir="$with_wine_tools"
4217 if test -z "$with_wine_tools"; then
4218 if test "$cross_compiling" = "yes"; then
4219 as_fn_error $? "you must use the --with-wine-tools option when cross-compiling." "$LINENO" 5
4220 elif test -n "$with_wine64"; then
4221 wine_cv_toolsdir="$with_wine64"
4224 if test -z "$wine_cv_toolsdir"; then
4225 wine_cv_toolsdir="\$(top_builddir)"
4226 elif test -d "$wine_cv_toolsdir/tools/winebuild"; then
4227 case "$wine_cv_toolsdir" in
4228 /*) ;;
4229 *) wine_cv_toolsdir="\$(top_builddir)/$wine_cv_toolsdir" ;;
4230 esac
4231 else
4232 as_fn_error $? "could not find Wine tools in $wine_cv_toolsdir" "$LINENO" 5
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_toolsdir" >&5
4236 $as_echo "$wine_cv_toolsdir" >&6; }
4237 TOOLSDIR=$wine_cv_toolsdir
4239 if test -n "$host_alias" -a "$host_alias" != "$build_alias"
4240 then
4241 TARGETFLAGS="-b $host_alias $TARGETFLAGS"
4245 for ac_prog in flex
4247 # Extract the first word of "$ac_prog", so it can be a program name with args.
4248 set dummy $ac_prog; ac_word=$2
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4250 $as_echo_n "checking for $ac_word... " >&6; }
4251 if ${ac_cv_prog_FLEX+:} false; then :
4252 $as_echo_n "(cached) " >&6
4253 else
4254 if test -n "$FLEX"; then
4255 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
4256 else
4257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4258 for as_dir in $PATH
4260 IFS=$as_save_IFS
4261 test -z "$as_dir" && as_dir=.
4262 for ac_exec_ext in '' $ac_executable_extensions; do
4263 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4264 ac_cv_prog_FLEX="$ac_prog"
4265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4266 break 2
4268 done
4269 done
4270 IFS=$as_save_IFS
4274 FLEX=$ac_cv_prog_FLEX
4275 if test -n "$FLEX"; then
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
4277 $as_echo "$FLEX" >&6; }
4278 else
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4280 $as_echo "no" >&6; }
4284 test -n "$FLEX" && break
4285 done
4286 test -n "$FLEX" || FLEX="none"
4288 if test "$FLEX" = "none"
4289 then
4290 as_fn_error $? "no suitable flex found. Please install the 'flex' package." "$LINENO" 5
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether flex is recent enough" >&5
4293 $as_echo_n "checking whether flex is recent enough... " >&6; }
4294 cat >conftest.l <<EOF
4295 %top{
4296 #include "prediluvian.h"
4300 if $FLEX -t conftest.l >/dev/null 2>&5
4301 then
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4303 $as_echo "yes" >&6; }
4304 else
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4306 $as_echo "no" >&6; }
4307 as_fn_error $? "Your flex version is too old. Please install flex version 2.5.33 or newer." "$LINENO" 5
4310 for ac_prog in bison
4312 # Extract the first word of "$ac_prog", so it can be a program name with args.
4313 set dummy $ac_prog; ac_word=$2
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4315 $as_echo_n "checking for $ac_word... " >&6; }
4316 if ${ac_cv_prog_BISON+:} false; then :
4317 $as_echo_n "(cached) " >&6
4318 else
4319 if test -n "$BISON"; then
4320 ac_cv_prog_BISON="$BISON" # Let the user override the test.
4321 else
4322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4323 for as_dir in $PATH
4325 IFS=$as_save_IFS
4326 test -z "$as_dir" && as_dir=.
4327 for ac_exec_ext in '' $ac_executable_extensions; do
4328 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4329 ac_cv_prog_BISON="$ac_prog"
4330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4331 break 2
4333 done
4334 done
4335 IFS=$as_save_IFS
4339 BISON=$ac_cv_prog_BISON
4340 if test -n "$BISON"; then
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
4342 $as_echo "$BISON" >&6; }
4343 else
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4345 $as_echo "no" >&6; }
4349 test -n "$BISON" && break
4350 done
4351 test -n "$BISON" || BISON="none"
4353 if test "$BISON" = "none"
4354 then
4355 as_fn_error $? "no suitable bison found. Please install the 'bison' package." "$LINENO" 5
4358 if test -n "$ac_tool_prefix"; then
4359 for ac_prog in ar gar
4361 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4362 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4364 $as_echo_n "checking for $ac_word... " >&6; }
4365 if ${ac_cv_prog_AR+:} false; then :
4366 $as_echo_n "(cached) " >&6
4367 else
4368 if test -n "$AR"; then
4369 ac_cv_prog_AR="$AR" # Let the user override the test.
4370 else
4371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4372 for as_dir in $PATH
4374 IFS=$as_save_IFS
4375 test -z "$as_dir" && as_dir=.
4376 for ac_exec_ext in '' $ac_executable_extensions; do
4377 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4378 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4380 break 2
4382 done
4383 done
4384 IFS=$as_save_IFS
4388 AR=$ac_cv_prog_AR
4389 if test -n "$AR"; then
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4391 $as_echo "$AR" >&6; }
4392 else
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4394 $as_echo "no" >&6; }
4398 test -n "$AR" && break
4399 done
4401 if test -z "$AR"; then
4402 ac_ct_AR=$AR
4403 for ac_prog in ar gar
4405 # Extract the first word of "$ac_prog", so it can be a program name with args.
4406 set dummy $ac_prog; ac_word=$2
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4408 $as_echo_n "checking for $ac_word... " >&6; }
4409 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4410 $as_echo_n "(cached) " >&6
4411 else
4412 if test -n "$ac_ct_AR"; then
4413 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4414 else
4415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4416 for as_dir in $PATH
4418 IFS=$as_save_IFS
4419 test -z "$as_dir" && as_dir=.
4420 for ac_exec_ext in '' $ac_executable_extensions; do
4421 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4422 ac_cv_prog_ac_ct_AR="$ac_prog"
4423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4424 break 2
4426 done
4427 done
4428 IFS=$as_save_IFS
4432 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4433 if test -n "$ac_ct_AR"; then
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4435 $as_echo "$ac_ct_AR" >&6; }
4436 else
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4438 $as_echo "no" >&6; }
4442 test -n "$ac_ct_AR" && break
4443 done
4445 if test "x$ac_ct_AR" = x; then
4446 AR="ar"
4447 else
4448 case $cross_compiling:$ac_tool_warned in
4449 yes:)
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4451 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4452 ac_tool_warned=yes ;;
4453 esac
4454 AR=$ac_ct_AR
4458 ARFLAGS=rc
4460 if test -n "$ac_tool_prefix"; then
4461 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4462 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4464 $as_echo_n "checking for $ac_word... " >&6; }
4465 if ${ac_cv_prog_RANLIB+:} false; then :
4466 $as_echo_n "(cached) " >&6
4467 else
4468 if test -n "$RANLIB"; then
4469 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4470 else
4471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4472 for as_dir in $PATH
4474 IFS=$as_save_IFS
4475 test -z "$as_dir" && as_dir=.
4476 for ac_exec_ext in '' $ac_executable_extensions; do
4477 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4478 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4480 break 2
4482 done
4483 done
4484 IFS=$as_save_IFS
4488 RANLIB=$ac_cv_prog_RANLIB
4489 if test -n "$RANLIB"; then
4490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4491 $as_echo "$RANLIB" >&6; }
4492 else
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4494 $as_echo "no" >&6; }
4499 if test -z "$ac_cv_prog_RANLIB"; then
4500 ac_ct_RANLIB=$RANLIB
4501 # Extract the first word of "ranlib", so it can be a program name with args.
4502 set dummy ranlib; ac_word=$2
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4504 $as_echo_n "checking for $ac_word... " >&6; }
4505 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4506 $as_echo_n "(cached) " >&6
4507 else
4508 if test -n "$ac_ct_RANLIB"; then
4509 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4510 else
4511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4512 for as_dir in $PATH
4514 IFS=$as_save_IFS
4515 test -z "$as_dir" && as_dir=.
4516 for ac_exec_ext in '' $ac_executable_extensions; do
4517 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4518 ac_cv_prog_ac_ct_RANLIB="ranlib"
4519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4520 break 2
4522 done
4523 done
4524 IFS=$as_save_IFS
4528 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4529 if test -n "$ac_ct_RANLIB"; then
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4531 $as_echo "$ac_ct_RANLIB" >&6; }
4532 else
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4534 $as_echo "no" >&6; }
4537 if test "x$ac_ct_RANLIB" = x; then
4538 RANLIB=":"
4539 else
4540 case $cross_compiling:$ac_tool_warned in
4541 yes:)
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4543 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4544 ac_tool_warned=yes ;;
4545 esac
4546 RANLIB=$ac_ct_RANLIB
4548 else
4549 RANLIB="$ac_cv_prog_RANLIB"
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4553 $as_echo_n "checking whether ln -s works... " >&6; }
4554 LN_S=$as_ln_s
4555 if test "$LN_S" = "ln -s"; then
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4557 $as_echo "yes" >&6; }
4558 else
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4560 $as_echo "no, using $LN_S" >&6; }
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4564 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4565 if ${ac_cv_path_GREP+:} false; then :
4566 $as_echo_n "(cached) " >&6
4567 else
4568 if test -z "$GREP"; then
4569 ac_path_GREP_found=false
4570 # Loop through the user's path and test for each of PROGNAME-LIST
4571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4572 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4574 IFS=$as_save_IFS
4575 test -z "$as_dir" && as_dir=.
4576 for ac_prog in grep ggrep; do
4577 for ac_exec_ext in '' $ac_executable_extensions; do
4578 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4579 as_fn_executable_p "$ac_path_GREP" || continue
4580 # Check for GNU ac_path_GREP and select it if it is found.
4581 # Check for GNU $ac_path_GREP
4582 case `"$ac_path_GREP" --version 2>&1` in
4583 *GNU*)
4584 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4586 ac_count=0
4587 $as_echo_n 0123456789 >"conftest.in"
4588 while :
4590 cat "conftest.in" "conftest.in" >"conftest.tmp"
4591 mv "conftest.tmp" "conftest.in"
4592 cp "conftest.in" "conftest.nl"
4593 $as_echo 'GREP' >> "conftest.nl"
4594 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4595 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4596 as_fn_arith $ac_count + 1 && ac_count=$as_val
4597 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4598 # Best one so far, save it but keep looking for a better one
4599 ac_cv_path_GREP="$ac_path_GREP"
4600 ac_path_GREP_max=$ac_count
4602 # 10*(2^10) chars as input seems more than enough
4603 test $ac_count -gt 10 && break
4604 done
4605 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4606 esac
4608 $ac_path_GREP_found && break 3
4609 done
4610 done
4611 done
4612 IFS=$as_save_IFS
4613 if test -z "$ac_cv_path_GREP"; then
4614 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4616 else
4617 ac_cv_path_GREP=$GREP
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4622 $as_echo "$ac_cv_path_GREP" >&6; }
4623 GREP="$ac_cv_path_GREP"
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4627 $as_echo_n "checking for egrep... " >&6; }
4628 if ${ac_cv_path_EGREP+:} false; then :
4629 $as_echo_n "(cached) " >&6
4630 else
4631 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4632 then ac_cv_path_EGREP="$GREP -E"
4633 else
4634 if test -z "$EGREP"; then
4635 ac_path_EGREP_found=false
4636 # Loop through the user's path and test for each of PROGNAME-LIST
4637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4638 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4640 IFS=$as_save_IFS
4641 test -z "$as_dir" && as_dir=.
4642 for ac_prog in egrep; do
4643 for ac_exec_ext in '' $ac_executable_extensions; do
4644 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4645 as_fn_executable_p "$ac_path_EGREP" || continue
4646 # Check for GNU ac_path_EGREP and select it if it is found.
4647 # Check for GNU $ac_path_EGREP
4648 case `"$ac_path_EGREP" --version 2>&1` in
4649 *GNU*)
4650 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4652 ac_count=0
4653 $as_echo_n 0123456789 >"conftest.in"
4654 while :
4656 cat "conftest.in" "conftest.in" >"conftest.tmp"
4657 mv "conftest.tmp" "conftest.in"
4658 cp "conftest.in" "conftest.nl"
4659 $as_echo 'EGREP' >> "conftest.nl"
4660 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4661 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4662 as_fn_arith $ac_count + 1 && ac_count=$as_val
4663 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4664 # Best one so far, save it but keep looking for a better one
4665 ac_cv_path_EGREP="$ac_path_EGREP"
4666 ac_path_EGREP_max=$ac_count
4668 # 10*(2^10) chars as input seems more than enough
4669 test $ac_count -gt 10 && break
4670 done
4671 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4672 esac
4674 $ac_path_EGREP_found && break 3
4675 done
4676 done
4677 done
4678 IFS=$as_save_IFS
4679 if test -z "$ac_cv_path_EGREP"; then
4680 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4682 else
4683 ac_cv_path_EGREP=$EGREP
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4689 $as_echo "$ac_cv_path_EGREP" >&6; }
4690 EGREP="$ac_cv_path_EGREP"
4693 # Extract the first word of "ldconfig", so it can be a program name with args.
4694 set dummy ldconfig; ac_word=$2
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4696 $as_echo_n "checking for $ac_word... " >&6; }
4697 if ${ac_cv_path_LDCONFIG+:} false; then :
4698 $as_echo_n "(cached) " >&6
4699 else
4700 case $LDCONFIG in
4701 [\\/]* | ?:[\\/]*)
4702 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
4705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4706 for as_dir in /sbin /usr/sbin $PATH
4708 IFS=$as_save_IFS
4709 test -z "$as_dir" && as_dir=.
4710 for ac_exec_ext in '' $ac_executable_extensions; do
4711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4712 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
4713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4714 break 2
4716 done
4717 done
4718 IFS=$as_save_IFS
4720 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
4722 esac
4724 LDCONFIG=$ac_cv_path_LDCONFIG
4725 if test -n "$LDCONFIG"; then
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
4727 $as_echo "$LDCONFIG" >&6; }
4728 else
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4730 $as_echo "no" >&6; }
4734 # Find a good install program. We prefer a C program (faster),
4735 # so one script is as good as another. But avoid the broken or
4736 # incompatible versions:
4737 # SysV /etc/install, /usr/sbin/install
4738 # SunOS /usr/etc/install
4739 # IRIX /sbin/install
4740 # AIX /bin/install
4741 # AmigaOS /C/install, which installs bootblocks on floppy discs
4742 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4743 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4744 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4745 # OS/2's system install, which has a completely different semantic
4746 # ./install, which can be erroneously created by make from ./install.sh.
4747 # Reject install programs that cannot install multiple files.
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4749 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4750 if test -z "$INSTALL"; then
4751 if ${ac_cv_path_install+:} false; then :
4752 $as_echo_n "(cached) " >&6
4753 else
4754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4755 for as_dir in $PATH
4757 IFS=$as_save_IFS
4758 test -z "$as_dir" && as_dir=.
4759 # Account for people who put trailing slashes in PATH elements.
4760 case $as_dir/ in #((
4761 ./ | .// | /[cC]/* | \
4762 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4763 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4764 /usr/ucb/* ) ;;
4766 # OSF1 and SCO ODT 3.0 have their own names for install.
4767 # Don't use installbsd from OSF since it installs stuff as root
4768 # by default.
4769 for ac_prog in ginstall scoinst install; do
4770 for ac_exec_ext in '' $ac_executable_extensions; do
4771 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4772 if test $ac_prog = install &&
4773 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4774 # AIX install. It has an incompatible calling convention.
4776 elif test $ac_prog = install &&
4777 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4778 # program-specific install script used by HP pwplus--don't use.
4780 else
4781 rm -rf conftest.one conftest.two conftest.dir
4782 echo one > conftest.one
4783 echo two > conftest.two
4784 mkdir conftest.dir
4785 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4786 test -s conftest.one && test -s conftest.two &&
4787 test -s conftest.dir/conftest.one &&
4788 test -s conftest.dir/conftest.two
4789 then
4790 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4791 break 3
4795 done
4796 done
4798 esac
4800 done
4801 IFS=$as_save_IFS
4803 rm -rf conftest.one conftest.two conftest.dir
4806 if test "${ac_cv_path_install+set}" = set; then
4807 INSTALL=$ac_cv_path_install
4808 else
4809 # As a last resort, use the slow shell script. Don't cache a
4810 # value for INSTALL within a source directory, because that will
4811 # break other packages using the cache if that directory is
4812 # removed, or if the value is a relative name.
4813 INSTALL=$ac_install_sh
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4817 $as_echo "$INSTALL" >&6; }
4819 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4820 # It thinks the first close brace ends the variable substitution.
4821 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4823 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4825 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4827 case "$INSTALL" in
4828 [\\/$]* | ?:[\\/]* ) ;;
4829 *) INSTALL="\\\$(top_srcdir)/$INSTALL" ;;
4830 esac
4832 for ac_prog in lclint lint
4834 # Extract the first word of "$ac_prog", so it can be a program name with args.
4835 set dummy $ac_prog; ac_word=$2
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4837 $as_echo_n "checking for $ac_word... " >&6; }
4838 if ${ac_cv_prog_LINT+:} false; then :
4839 $as_echo_n "(cached) " >&6
4840 else
4841 if test -n "$LINT"; then
4842 ac_cv_prog_LINT="$LINT" # Let the user override the test.
4843 else
4844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4845 for as_dir in $PATH
4847 IFS=$as_save_IFS
4848 test -z "$as_dir" && as_dir=.
4849 for ac_exec_ext in '' $ac_executable_extensions; do
4850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4851 ac_cv_prog_LINT="$ac_prog"
4852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4853 break 2
4855 done
4856 done
4857 IFS=$as_save_IFS
4861 LINT=$ac_cv_prog_LINT
4862 if test -n "$LINT"; then
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
4864 $as_echo "$LINT" >&6; }
4865 else
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4867 $as_echo "no" >&6; }
4871 test -n "$LINT" && break
4872 done
4874 if test "$LINT" = "lint"
4875 then
4876 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
4880 for ac_prog in fontforge
4882 # Extract the first word of "$ac_prog", so it can be a program name with args.
4883 set dummy $ac_prog; ac_word=$2
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4885 $as_echo_n "checking for $ac_word... " >&6; }
4886 if ${ac_cv_prog_FONTFORGE+:} false; then :
4887 $as_echo_n "(cached) " >&6
4888 else
4889 if test -n "$FONTFORGE"; then
4890 ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
4891 else
4892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4893 for as_dir in $PATH
4895 IFS=$as_save_IFS
4896 test -z "$as_dir" && as_dir=.
4897 for ac_exec_ext in '' $ac_executable_extensions; do
4898 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4899 ac_cv_prog_FONTFORGE="$ac_prog"
4900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4901 break 2
4903 done
4904 done
4905 IFS=$as_save_IFS
4909 FONTFORGE=$ac_cv_prog_FONTFORGE
4910 if test -n "$FONTFORGE"; then
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTFORGE" >&5
4912 $as_echo "$FONTFORGE" >&6; }
4913 else
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4915 $as_echo "no" >&6; }
4919 test -n "$FONTFORGE" && break
4920 done
4921 test -n "$FONTFORGE" || FONTFORGE="false"
4923 for ac_prog in pkg-config
4925 # Extract the first word of "$ac_prog", so it can be a program name with args.
4926 set dummy $ac_prog; ac_word=$2
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4928 $as_echo_n "checking for $ac_word... " >&6; }
4929 if ${ac_cv_prog_PKG_CONFIG+:} false; then :
4930 $as_echo_n "(cached) " >&6
4931 else
4932 if test -n "$PKG_CONFIG"; then
4933 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
4934 else
4935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4936 for as_dir in $PATH
4938 IFS=$as_save_IFS
4939 test -z "$as_dir" && as_dir=.
4940 for ac_exec_ext in '' $ac_executable_extensions; do
4941 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4942 ac_cv_prog_PKG_CONFIG="$ac_prog"
4943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4944 break 2
4946 done
4947 done
4948 IFS=$as_save_IFS
4952 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
4953 if test -n "$PKG_CONFIG"; then
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4955 $as_echo "$PKG_CONFIG" >&6; }
4956 else
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4958 $as_echo "no" >&6; }
4962 test -n "$PKG_CONFIG" && break
4963 done
4964 test -n "$PKG_CONFIG" || PKG_CONFIG="false"
4966 for ac_prog in rsvg
4968 # Extract the first word of "$ac_prog", so it can be a program name with args.
4969 set dummy $ac_prog; ac_word=$2
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4971 $as_echo_n "checking for $ac_word... " >&6; }
4972 if ${ac_cv_prog_RSVG+:} false; then :
4973 $as_echo_n "(cached) " >&6
4974 else
4975 if test -n "$RSVG"; then
4976 ac_cv_prog_RSVG="$RSVG" # Let the user override the test.
4977 else
4978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4979 for as_dir in $PATH
4981 IFS=$as_save_IFS
4982 test -z "$as_dir" && as_dir=.
4983 for ac_exec_ext in '' $ac_executable_extensions; do
4984 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4985 ac_cv_prog_RSVG="$ac_prog"
4986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4987 break 2
4989 done
4990 done
4991 IFS=$as_save_IFS
4995 RSVG=$ac_cv_prog_RSVG
4996 if test -n "$RSVG"; then
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG" >&5
4998 $as_echo "$RSVG" >&6; }
4999 else
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5001 $as_echo "no" >&6; }
5005 test -n "$RSVG" && break
5006 done
5007 test -n "$RSVG" || RSVG="false"
5009 for ac_prog in convert
5011 # Extract the first word of "$ac_prog", so it can be a program name with args.
5012 set dummy $ac_prog; ac_word=$2
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5014 $as_echo_n "checking for $ac_word... " >&6; }
5015 if ${ac_cv_prog_CONVERT+:} false; then :
5016 $as_echo_n "(cached) " >&6
5017 else
5018 if test -n "$CONVERT"; then
5019 ac_cv_prog_CONVERT="$CONVERT" # Let the user override the test.
5020 else
5021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5022 for as_dir in $PATH
5024 IFS=$as_save_IFS
5025 test -z "$as_dir" && as_dir=.
5026 for ac_exec_ext in '' $ac_executable_extensions; do
5027 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5028 ac_cv_prog_CONVERT="$ac_prog"
5029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5030 break 2
5032 done
5033 done
5034 IFS=$as_save_IFS
5038 CONVERT=$ac_cv_prog_CONVERT
5039 if test -n "$CONVERT"; then
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONVERT" >&5
5041 $as_echo "$CONVERT" >&6; }
5042 else
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5044 $as_echo "no" >&6; }
5048 test -n "$CONVERT" && break
5049 done
5050 test -n "$CONVERT" || CONVERT="false"
5052 for ac_prog in icotool
5054 # Extract the first word of "$ac_prog", so it can be a program name with args.
5055 set dummy $ac_prog; ac_word=$2
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5057 $as_echo_n "checking for $ac_word... " >&6; }
5058 if ${ac_cv_prog_ICOTOOL+:} false; then :
5059 $as_echo_n "(cached) " >&6
5060 else
5061 if test -n "$ICOTOOL"; then
5062 ac_cv_prog_ICOTOOL="$ICOTOOL" # Let the user override the test.
5063 else
5064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5065 for as_dir in $PATH
5067 IFS=$as_save_IFS
5068 test -z "$as_dir" && as_dir=.
5069 for ac_exec_ext in '' $ac_executable_extensions; do
5070 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5071 ac_cv_prog_ICOTOOL="$ac_prog"
5072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5073 break 2
5075 done
5076 done
5077 IFS=$as_save_IFS
5081 ICOTOOL=$ac_cv_prog_ICOTOOL
5082 if test -n "$ICOTOOL"; then
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICOTOOL" >&5
5084 $as_echo "$ICOTOOL" >&6; }
5085 else
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5087 $as_echo "no" >&6; }
5091 test -n "$ICOTOOL" && break
5092 done
5093 test -n "$ICOTOOL" || ICOTOOL="false"
5095 for ac_prog in msgfmt
5097 # Extract the first word of "$ac_prog", so it can be a program name with args.
5098 set dummy $ac_prog; ac_word=$2
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5100 $as_echo_n "checking for $ac_word... " >&6; }
5101 if ${ac_cv_prog_MSGFMT+:} false; then :
5102 $as_echo_n "(cached) " >&6
5103 else
5104 if test -n "$MSGFMT"; then
5105 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
5106 else
5107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5108 for as_dir in $PATH
5110 IFS=$as_save_IFS
5111 test -z "$as_dir" && as_dir=.
5112 for ac_exec_ext in '' $ac_executable_extensions; do
5113 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5114 ac_cv_prog_MSGFMT="$ac_prog"
5115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5116 break 2
5118 done
5119 done
5120 IFS=$as_save_IFS
5124 MSGFMT=$ac_cv_prog_MSGFMT
5125 if test -n "$MSGFMT"; then
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5127 $as_echo "$MSGFMT" >&6; }
5128 else
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5130 $as_echo "no" >&6; }
5134 test -n "$MSGFMT" && break
5135 done
5136 test -n "$MSGFMT" || MSGFMT="false"
5139 if test "x$enable_maintainer_mode" != "xyes"
5140 then
5141 MAINTAINER_MODE=\#
5143 else
5144 if test "$FONTFORGE" = "false"; then as_fn_error $? "You need fontforge to rebuild fonts in maintainer mode." "$LINENO" 5; fi
5145 if test "$RSVG" = "false"; then as_fn_error $? "You need rsvg to rebuild icons in maintainer mode." "$LINENO" 5; fi
5147 if test "$CONVERT" = false
5148 then
5149 as_fn_error $? "You need imagemagick to rebuild icons in maintainer mode." "$LINENO" 5
5150 else
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough imagemagick" >&5
5152 $as_echo_n "checking for recent enough imagemagick... " >&6; }
5153 convert_version=`convert --version | head -n1`
5154 if test "x$convert_version" != "x"
5155 then
5156 convert_version_major=`expr "$convert_version" : '.* \([0-9]*\)\.[0-9]*'`
5157 convert_version_minor=`expr "$convert_version" : '.* [0-9]*\.\([0-9]*\)'`
5158 if test "$convert_version_major" -eq 6 -a "$convert_version_minor" -lt 6
5159 then
5160 CONVERT=false
5163 if test "$CONVERT" = false
5164 then
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($convert_version_major.$convert_version_minor)" >&5
5166 $as_echo "no ($convert_version_major.$convert_version_minor)" >&6; }
5167 as_fn_error $? "You need imagemagick version 6.6 or newer to rebuild icons in maintainer mode." "$LINENO" 5
5168 else
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($convert_version_major.$convert_version_minor)" >&5
5170 $as_echo "yes ($convert_version_major.$convert_version_minor)" >&6; }
5174 if test "$ICOTOOL" = false
5175 then
5176 as_fn_error $? "You need icotool to rebuild icons in maintainer mode." "$LINENO" 5
5177 else
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough icotool" >&5
5179 $as_echo_n "checking for recent enough icotool... " >&6; }
5180 icotool_version=`icotool --version | head -n1`
5181 if test "x$icotool_version" != "x"
5182 then
5183 icotool_version_major=`expr "$icotool_version" : '.* \([0-9]*\)\.[0-9]*'`
5184 icotool_version_minor=`expr "$icotool_version" : '.* [0-9]*\.\([0-9]*\)'`
5185 if test "$icotool_version_major" -eq 0 -a "$icotool_version_minor" -lt 29
5186 then
5187 ICOTOOL=false
5188 as_fn_append wine_warnings "|icotool version 0.29.0 or newer is needed to rebuild icons."
5191 if test "$ICOTOOL" = false
5192 then
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($icotool_version_major.$icotool_version_minor)" >&5
5194 $as_echo "no ($icotool_version_major.$icotool_version_minor)" >&6; }
5195 as_fn_error $? "You need icotool version 0.29.0 or newer to rebuild icons in maintainer mode." "$LINENO" 5
5196 else
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($icotool_version_major.$icotool_version_minor)" >&5
5198 $as_echo "yes ($icotool_version_major.$icotool_version_minor)" >&6; }
5202 with_gettext=yes
5203 with_gettextpo=yes
5204 { ac_cv_header_gettext_po_h=; unset ac_cv_header_gettext_po_h;}
5207 test "x$with_gettext" != xno || MSGFMT=false
5208 if test "$MSGFMT" != "false"
5209 then
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether msgfmt supports contexts" >&5
5211 $as_echo_n "checking whether msgfmt supports contexts... " >&6; }
5212 cat >conftest.po <<EOF
5213 # comment
5214 msgctxt "ctxt"
5215 msgid "id"
5216 msgstr "str"
5218 if $MSGFMT -o /dev/null conftest.po 2>&5
5219 then
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5221 $as_echo "yes" >&6; }
5222 else
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5224 $as_echo "no" >&6; }
5225 MSGFMT=false
5228 if test "$MSGFMT" = false; then :
5229 case "x$with_gettext" in
5230 x) as_fn_append wine_warnings "|gettext tools not found (or too old), translations won't be built." ;;
5231 xno) ;;
5232 *) as_fn_error $? "gettext tools not found (or too old), translations won't be built.
5233 This is an error since --with-gettext was requested." "$LINENO" 5 ;;
5234 esac
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for i386_set_ldt in -li386" >&5
5239 $as_echo_n "checking for i386_set_ldt in -li386... " >&6; }
5240 if ${ac_cv_lib_i386_i386_set_ldt+:} false; then :
5241 $as_echo_n "(cached) " >&6
5242 else
5243 ac_check_lib_save_LIBS=$LIBS
5244 LIBS="-li386 $LIBS"
5245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5246 /* end confdefs.h. */
5248 /* Override any GCC internal prototype to avoid an error.
5249 Use char because int might match the return type of a GCC
5250 builtin and then its argument prototype would still apply. */
5251 #ifdef __cplusplus
5252 extern "C"
5253 #endif
5254 char i386_set_ldt ();
5256 main ()
5258 return i386_set_ldt ();
5260 return 0;
5262 _ACEOF
5263 if ac_fn_c_try_link "$LINENO"; then :
5264 ac_cv_lib_i386_i386_set_ldt=yes
5265 else
5266 ac_cv_lib_i386_i386_set_ldt=no
5268 rm -f core conftest.err conftest.$ac_objext \
5269 conftest$ac_exeext conftest.$ac_ext
5270 LIBS=$ac_check_lib_save_LIBS
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_i386_i386_set_ldt" >&5
5273 $as_echo "$ac_cv_lib_i386_i386_set_ldt" >&6; }
5274 if test "x$ac_cv_lib_i386_i386_set_ldt" = xyes; then :
5275 cat >>confdefs.h <<_ACEOF
5276 #define HAVE_LIBI386 1
5277 _ACEOF
5279 LIBS="-li386 $LIBS"
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
5284 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
5285 if ${ac_cv_lib_ossaudio__oss_ioctl+:} false; then :
5286 $as_echo_n "(cached) " >&6
5287 else
5288 ac_check_lib_save_LIBS=$LIBS
5289 LIBS="-lossaudio $LIBS"
5290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5291 /* end confdefs.h. */
5293 /* Override any GCC internal prototype to avoid an error.
5294 Use char because int might match the return type of a GCC
5295 builtin and then its argument prototype would still apply. */
5296 #ifdef __cplusplus
5297 extern "C"
5298 #endif
5299 char _oss_ioctl ();
5301 main ()
5303 return _oss_ioctl ();
5305 return 0;
5307 _ACEOF
5308 if ac_fn_c_try_link "$LINENO"; then :
5309 ac_cv_lib_ossaudio__oss_ioctl=yes
5310 else
5311 ac_cv_lib_ossaudio__oss_ioctl=no
5313 rm -f core conftest.err conftest.$ac_objext \
5314 conftest$ac_exeext conftest.$ac_ext
5315 LIBS=$ac_check_lib_save_LIBS
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5318 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
5319 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = xyes; then :
5320 cat >>confdefs.h <<_ACEOF
5321 #define HAVE_LIBOSSAUDIO 1
5322 _ACEOF
5324 LIBS="-lossaudio $LIBS"
5329 XLIB=""
5331 OPENGL_LIBS=""
5335 test "x$with_fontconfig" != "xno" || ac_cv_header_fontconfig_fontconfig_h=no
5337 # Check whether --enable-largefile was given.
5338 if test "${enable_largefile+set}" = set; then :
5339 enableval=$enable_largefile;
5342 if test "$enable_largefile" != no; then
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5345 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5346 if ${ac_cv_sys_largefile_CC+:} false; then :
5347 $as_echo_n "(cached) " >&6
5348 else
5349 ac_cv_sys_largefile_CC=no
5350 if test "$GCC" != yes; then
5351 ac_save_CC=$CC
5352 while :; do
5353 # IRIX 6.2 and later do not support large files by default,
5354 # so use the C compiler's -n32 option if that helps.
5355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5356 /* end confdefs.h. */
5357 #include <sys/types.h>
5358 /* Check that off_t can represent 2**63 - 1 correctly.
5359 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5360 since some C++ compilers masquerading as C compilers
5361 incorrectly reject 9223372036854775807. */
5362 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5363 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5364 && LARGE_OFF_T % 2147483647 == 1)
5365 ? 1 : -1];
5367 main ()
5371 return 0;
5373 _ACEOF
5374 if ac_fn_c_try_compile "$LINENO"; then :
5375 break
5377 rm -f core conftest.err conftest.$ac_objext
5378 CC="$CC -n32"
5379 if ac_fn_c_try_compile "$LINENO"; then :
5380 ac_cv_sys_largefile_CC=' -n32'; break
5382 rm -f core conftest.err conftest.$ac_objext
5383 break
5384 done
5385 CC=$ac_save_CC
5386 rm -f conftest.$ac_ext
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5390 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5391 if test "$ac_cv_sys_largefile_CC" != no; then
5392 CC=$CC$ac_cv_sys_largefile_CC
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5396 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5397 if ${ac_cv_sys_file_offset_bits+:} false; then :
5398 $as_echo_n "(cached) " >&6
5399 else
5400 while :; do
5401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5402 /* end confdefs.h. */
5403 #include <sys/types.h>
5404 /* Check that off_t can represent 2**63 - 1 correctly.
5405 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5406 since some C++ compilers masquerading as C compilers
5407 incorrectly reject 9223372036854775807. */
5408 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5409 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5410 && LARGE_OFF_T % 2147483647 == 1)
5411 ? 1 : -1];
5413 main ()
5417 return 0;
5419 _ACEOF
5420 if ac_fn_c_try_compile "$LINENO"; then :
5421 ac_cv_sys_file_offset_bits=no; break
5423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5425 /* end confdefs.h. */
5426 #define _FILE_OFFSET_BITS 64
5427 #include <sys/types.h>
5428 /* Check that off_t can represent 2**63 - 1 correctly.
5429 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5430 since some C++ compilers masquerading as C compilers
5431 incorrectly reject 9223372036854775807. */
5432 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5433 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5434 && LARGE_OFF_T % 2147483647 == 1)
5435 ? 1 : -1];
5437 main ()
5441 return 0;
5443 _ACEOF
5444 if ac_fn_c_try_compile "$LINENO"; then :
5445 ac_cv_sys_file_offset_bits=64; break
5447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5448 ac_cv_sys_file_offset_bits=unknown
5449 break
5450 done
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5453 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5454 case $ac_cv_sys_file_offset_bits in #(
5455 no | unknown) ;;
5457 cat >>confdefs.h <<_ACEOF
5458 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5459 _ACEOF
5461 esac
5462 rm -rf conftest*
5463 if test $ac_cv_sys_file_offset_bits = unknown; then
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5465 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5466 if ${ac_cv_sys_large_files+:} false; then :
5467 $as_echo_n "(cached) " >&6
5468 else
5469 while :; do
5470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5471 /* end confdefs.h. */
5472 #include <sys/types.h>
5473 /* Check that off_t can represent 2**63 - 1 correctly.
5474 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5475 since some C++ compilers masquerading as C compilers
5476 incorrectly reject 9223372036854775807. */
5477 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5478 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5479 && LARGE_OFF_T % 2147483647 == 1)
5480 ? 1 : -1];
5482 main ()
5486 return 0;
5488 _ACEOF
5489 if ac_fn_c_try_compile "$LINENO"; then :
5490 ac_cv_sys_large_files=no; break
5492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5494 /* end confdefs.h. */
5495 #define _LARGE_FILES 1
5496 #include <sys/types.h>
5497 /* Check that off_t can represent 2**63 - 1 correctly.
5498 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5499 since some C++ compilers masquerading as C compilers
5500 incorrectly reject 9223372036854775807. */
5501 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5502 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5503 && LARGE_OFF_T % 2147483647 == 1)
5504 ? 1 : -1];
5506 main ()
5510 return 0;
5512 _ACEOF
5513 if ac_fn_c_try_compile "$LINENO"; then :
5514 ac_cv_sys_large_files=1; break
5516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5517 ac_cv_sys_large_files=unknown
5518 break
5519 done
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5522 $as_echo "$ac_cv_sys_large_files" >&6; }
5523 case $ac_cv_sys_large_files in #(
5524 no | unknown) ;;
5526 cat >>confdefs.h <<_ACEOF
5527 #define _LARGE_FILES $ac_cv_sys_large_files
5528 _ACEOF
5530 esac
5531 rm -rf conftest*
5538 ac_ext=c
5539 ac_cpp='$CPP $CPPFLAGS'
5540 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5541 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5542 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5544 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5545 # On Suns, sometimes $CPP names a directory.
5546 if test -n "$CPP" && test -d "$CPP"; then
5547 CPP=
5549 if test -z "$CPP"; then
5550 if ${ac_cv_prog_CPP+:} false; then :
5551 $as_echo_n "(cached) " >&6
5552 else
5553 # Double quotes because CPP needs to be expanded
5554 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5556 ac_preproc_ok=false
5557 for ac_c_preproc_warn_flag in '' yes
5559 # Use a header file that comes with gcc, so configuring glibc
5560 # with a fresh cross-compiler works.
5561 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5562 # <limits.h> exists even on freestanding compilers.
5563 # On the NeXT, cc -E runs the code through the compiler's parser,
5564 # not just through cpp. "Syntax error" is here to catch this case.
5565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5566 /* end confdefs.h. */
5567 #ifdef __STDC__
5568 # include <limits.h>
5569 #else
5570 # include <assert.h>
5571 #endif
5572 Syntax error
5573 _ACEOF
5574 if ac_fn_c_try_cpp "$LINENO"; then :
5576 else
5577 # Broken: fails on valid input.
5578 continue
5580 rm -f conftest.err conftest.i conftest.$ac_ext
5582 # OK, works on sane cases. Now check whether nonexistent headers
5583 # can be detected and how.
5584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5585 /* end confdefs.h. */
5586 #include <ac_nonexistent.h>
5587 _ACEOF
5588 if ac_fn_c_try_cpp "$LINENO"; then :
5589 # Broken: success on invalid input.
5590 continue
5591 else
5592 # Passes both tests.
5593 ac_preproc_ok=:
5594 break
5596 rm -f conftest.err conftest.i conftest.$ac_ext
5598 done
5599 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5600 rm -f conftest.i conftest.err conftest.$ac_ext
5601 if $ac_preproc_ok; then :
5602 break
5605 done
5606 ac_cv_prog_CPP=$CPP
5609 CPP=$ac_cv_prog_CPP
5610 else
5611 ac_cv_prog_CPP=$CPP
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5614 $as_echo "$CPP" >&6; }
5615 ac_preproc_ok=false
5616 for ac_c_preproc_warn_flag in '' yes
5618 # Use a header file that comes with gcc, so configuring glibc
5619 # with a fresh cross-compiler works.
5620 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5621 # <limits.h> exists even on freestanding compilers.
5622 # On the NeXT, cc -E runs the code through the compiler's parser,
5623 # not just through cpp. "Syntax error" is here to catch this case.
5624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5625 /* end confdefs.h. */
5626 #ifdef __STDC__
5627 # include <limits.h>
5628 #else
5629 # include <assert.h>
5630 #endif
5631 Syntax error
5632 _ACEOF
5633 if ac_fn_c_try_cpp "$LINENO"; then :
5635 else
5636 # Broken: fails on valid input.
5637 continue
5639 rm -f conftest.err conftest.i conftest.$ac_ext
5641 # OK, works on sane cases. Now check whether nonexistent headers
5642 # can be detected and how.
5643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5644 /* end confdefs.h. */
5645 #include <ac_nonexistent.h>
5646 _ACEOF
5647 if ac_fn_c_try_cpp "$LINENO"; then :
5648 # Broken: success on invalid input.
5649 continue
5650 else
5651 # Passes both tests.
5652 ac_preproc_ok=:
5653 break
5655 rm -f conftest.err conftest.i conftest.$ac_ext
5657 done
5658 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5659 rm -f conftest.i conftest.err conftest.$ac_ext
5660 if $ac_preproc_ok; then :
5662 else
5663 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5664 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5665 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5666 See \`config.log' for more details" "$LINENO" 5; }
5669 ac_ext=c
5670 ac_cpp='$CPP $CPPFLAGS'
5671 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5672 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5673 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5677 $as_echo_n "checking for ANSI C header files... " >&6; }
5678 if ${ac_cv_header_stdc+:} false; then :
5679 $as_echo_n "(cached) " >&6
5680 else
5681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5682 /* end confdefs.h. */
5683 #include <stdlib.h>
5684 #include <stdarg.h>
5685 #include <string.h>
5686 #include <float.h>
5689 main ()
5693 return 0;
5695 _ACEOF
5696 if ac_fn_c_try_compile "$LINENO"; then :
5697 ac_cv_header_stdc=yes
5698 else
5699 ac_cv_header_stdc=no
5701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5703 if test $ac_cv_header_stdc = yes; then
5704 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5706 /* end confdefs.h. */
5707 #include <string.h>
5709 _ACEOF
5710 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5711 $EGREP "memchr" >/dev/null 2>&1; then :
5713 else
5714 ac_cv_header_stdc=no
5716 rm -f conftest*
5720 if test $ac_cv_header_stdc = yes; then
5721 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5723 /* end confdefs.h. */
5724 #include <stdlib.h>
5726 _ACEOF
5727 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5728 $EGREP "free" >/dev/null 2>&1; then :
5730 else
5731 ac_cv_header_stdc=no
5733 rm -f conftest*
5737 if test $ac_cv_header_stdc = yes; then
5738 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5739 if test "$cross_compiling" = yes; then :
5741 else
5742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5743 /* end confdefs.h. */
5744 #include <ctype.h>
5745 #include <stdlib.h>
5746 #if ((' ' & 0x0FF) == 0x020)
5747 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5748 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5749 #else
5750 # define ISLOWER(c) \
5751 (('a' <= (c) && (c) <= 'i') \
5752 || ('j' <= (c) && (c) <= 'r') \
5753 || ('s' <= (c) && (c) <= 'z'))
5754 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5755 #endif
5757 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5759 main ()
5761 int i;
5762 for (i = 0; i < 256; i++)
5763 if (XOR (islower (i), ISLOWER (i))
5764 || toupper (i) != TOUPPER (i))
5765 return 2;
5766 return 0;
5768 _ACEOF
5769 if ac_fn_c_try_run "$LINENO"; then :
5771 else
5772 ac_cv_header_stdc=no
5774 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5775 conftest.$ac_objext conftest.beam conftest.$ac_ext
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5781 $as_echo "$ac_cv_header_stdc" >&6; }
5782 if test $ac_cv_header_stdc = yes; then
5784 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5788 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5789 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5790 inttypes.h stdint.h unistd.h
5791 do :
5792 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5793 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5795 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5796 cat >>confdefs.h <<_ACEOF
5797 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5798 _ACEOF
5802 done
5805 for ac_header in \
5806 AL/al.h \
5807 ApplicationServices/ApplicationServices.h \
5808 AudioToolbox/AudioConverter.h \
5809 AudioUnit/AudioUnit.h \
5810 AudioUnit/AudioComponent.h \
5811 CL/cl.h \
5812 Carbon/Carbon.h \
5813 CoreAudio/CoreAudio.h \
5814 CoreServices/CoreServices.h \
5815 DiskArbitration/DiskArbitration.h \
5816 IOKit/IOKitLib.h \
5817 IOKit/hid/IOHIDLib.h \
5818 OpenAL/al.h \
5819 OpenCL/opencl.h \
5820 QuickTime/ImageCompression.h \
5821 Security/Security.h \
5822 alias.h \
5823 alsa/asoundlib.h \
5824 arpa/inet.h \
5825 arpa/nameser.h \
5826 asm/types.h \
5827 capi20.h \
5828 curses.h \
5829 direct.h \
5830 dirent.h \
5831 dlfcn.h \
5832 elf.h \
5833 float.h \
5834 fnmatch.h \
5835 fontconfig/fontconfig.h \
5836 getopt.h \
5837 gettext-po.h \
5838 grp.h \
5839 gsm.h \
5840 gsm/gsm.h \
5841 ieeefp.h \
5842 inet/mib2.h \
5843 io.h \
5844 jpeglib.h \
5845 kstat.h \
5846 lber.h \
5847 lcms.h \
5848 lcms/lcms.h \
5849 ldap.h \
5850 link.h \
5851 linux/cdrom.h \
5852 linux/compiler.h \
5853 linux/hdreg.h \
5854 linux/input.h \
5855 linux/ioctl.h \
5856 linux/joystick.h \
5857 linux/major.h \
5858 linux/param.h \
5859 linux/serial.h \
5860 linux/types.h \
5861 linux/ucdrom.h \
5862 mach-o/nlist.h \
5863 mach-o/loader.h \
5864 mach/mach.h \
5865 mach/machine.h \
5866 machine/cpu.h \
5867 machine/limits.h \
5868 machine/sysarch.h \
5869 mntent.h \
5870 mpg123.h \
5871 ncurses.h \
5872 netdb.h \
5873 netinet/in.h \
5874 netinet/in_systm.h \
5875 netinet/tcp.h \
5876 netinet/tcp_fsm.h \
5877 openssl/err.h \
5878 openssl/ssl.h \
5879 png.h \
5880 poll.h \
5881 port.h \
5882 process.h \
5883 pthread.h \
5884 pwd.h \
5885 sched.h \
5886 scsi/scsi.h \
5887 scsi/scsi_ioctl.h \
5888 scsi/sg.h \
5889 stdbool.h \
5890 stdint.h \
5891 strings.h \
5892 stropts.h \
5893 sys/asoundlib.h \
5894 sys/attr.h \
5895 sys/cdio.h \
5896 sys/elf32.h \
5897 sys/epoll.h \
5898 sys/event.h \
5899 sys/exec_elf.h \
5900 sys/filio.h \
5901 sys/inotify.h \
5902 sys/ioctl.h \
5903 sys/ipc.h \
5904 sys/limits.h \
5905 sys/link.h \
5906 sys/mman.h \
5907 sys/modem.h \
5908 sys/msg.h \
5909 sys/mtio.h \
5910 sys/param.h \
5911 sys/poll.h \
5912 sys/prctl.h \
5913 sys/protosw.h \
5914 sys/ptrace.h \
5915 sys/resource.h \
5916 sys/scsiio.h \
5917 sys/shm.h \
5918 sys/signal.h \
5919 sys/socket.h \
5920 sys/socketvar.h \
5921 sys/sockio.h \
5922 sys/statvfs.h \
5923 sys/strtio.h \
5924 sys/syscall.h \
5925 sys/tihdr.h \
5926 sys/time.h \
5927 sys/timeout.h \
5928 sys/times.h \
5929 sys/uio.h \
5930 sys/un.h \
5931 sys/utsname.h \
5932 sys/vm86.h \
5933 sys/wait.h \
5934 syscall.h \
5935 termios.h \
5936 tiffio.h \
5937 unistd.h \
5938 utime.h \
5939 valgrind/memcheck.h \
5940 valgrind/valgrind.h \
5941 zlib.h
5943 do :
5944 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5945 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5946 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5947 cat >>confdefs.h <<_ACEOF
5948 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5949 _ACEOF
5953 done
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
5956 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
5957 if ${ac_cv_header_stat_broken+:} false; then :
5958 $as_echo_n "(cached) " >&6
5959 else
5960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5961 /* end confdefs.h. */
5962 #include <sys/types.h>
5963 #include <sys/stat.h>
5965 #if defined S_ISBLK && defined S_IFDIR
5966 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
5967 #endif
5969 #if defined S_ISBLK && defined S_IFCHR
5970 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
5971 #endif
5973 #if defined S_ISLNK && defined S_IFREG
5974 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
5975 #endif
5977 #if defined S_ISSOCK && defined S_IFREG
5978 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
5979 #endif
5981 _ACEOF
5982 if ac_fn_c_try_compile "$LINENO"; then :
5983 ac_cv_header_stat_broken=no
5984 else
5985 ac_cv_header_stat_broken=yes
5987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
5990 $as_echo "$ac_cv_header_stat_broken" >&6; }
5991 if test $ac_cv_header_stat_broken = yes; then
5993 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
5999 for ac_header in sys/mount.h sys/statfs.h sys/sysctl.h sys/user.h sys/vfs.h
6000 do :
6001 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6002 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6003 #ifdef HAVE_SYS_PARAM_H
6004 # include <sys/param.h>
6005 #endif
6007 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6008 cat >>confdefs.h <<_ACEOF
6009 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6010 _ACEOF
6014 done
6017 for ac_header in \
6018 netinet/ip.h \
6019 net/if.h \
6020 net/if_arp.h \
6021 net/if_dl.h \
6022 net/if_types.h \
6023 net/route.h \
6024 netinet/if_ether.h \
6025 netinet/if_inarp.h \
6026 netinet/in_pcb.h \
6027 netinet/ip_icmp.h \
6028 netinet/ip_var.h \
6029 netinet/udp.h \
6030 netipx/ipx.h \
6032 do :
6033 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6034 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6035 #ifdef HAVE_SYS_SOCKET_H
6036 # include <sys/socket.h>
6037 #endif
6038 #ifdef HAVE_SYS_SOCKETVAR_H
6039 # include <sys/socketvar.h>
6040 #endif
6041 #ifdef HAVE_NET_ROUTE_H
6042 # include <net/route.h>
6043 #endif
6044 #ifdef HAVE_NETINET_IN_H
6045 # include <netinet/in.h>
6046 #endif
6047 #ifdef HAVE_NETINET_IN_SYSTM_H
6048 # include <netinet/in_systm.h>
6049 #endif
6050 #ifdef HAVE_NET_IF_H
6051 # include <net/if.h>
6052 #endif
6053 #ifdef HAVE_NETINET_IP_H
6054 # include <netinet/ip.h>
6055 #endif
6057 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6058 cat >>confdefs.h <<_ACEOF
6059 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6060 _ACEOF
6064 done
6067 for ac_header in netinet/tcp_timer.h netinet/udp_var.h netinet/icmp_var.h netinet/tcp_var.h
6068 do :
6069 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6070 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6071 #ifdef HAVE_ALIAS_H
6072 # include <alias.h>
6073 #endif
6074 #ifdef HAVE_SYS_SOCKET_H
6075 # include <sys/socket.h>
6076 #endif
6077 #ifdef HAVE_SYS_SOCKETVAR_H
6078 # include <sys/socketvar.h>
6079 #endif
6080 #ifdef HAVE_SYS_TIMEOUT_H
6081 # include <sys/timeout.h>
6082 #endif
6083 #ifdef HAVE_NETINET_IN_H
6084 # include <netinet/in.h>
6085 #endif
6086 #ifdef HAVE_NETINET_IN_SYSTM_H
6087 # include <netinet/in_systm.h>
6088 #endif
6089 #ifdef HAVE_NETINET_IP_H
6090 # include <netinet/ip.h>
6091 #endif
6092 #ifdef HAVE_NETINET_IP_VAR_H
6093 # include <netinet/ip_var.h>
6094 #endif
6095 #ifdef HAVE_NETINET_IP_ICMP_H
6096 # include <netinet/ip_icmp.h>
6097 #endif
6098 #ifdef HAVE_NETINET_UDP_H
6099 # include <netinet/udp.h>
6100 #endif
6101 #ifdef HAVE_NETINET_TCP_H
6102 # include <netinet/tcp.h>
6103 #endif
6104 #ifdef HAVE_NETINET_TCP_TIMER_H
6105 #include <netinet/tcp_timer.h>
6106 #endif
6108 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6109 cat >>confdefs.h <<_ACEOF
6110 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6111 _ACEOF
6115 done
6118 for ac_header in linux/ipx.h linux/irda.h
6119 do :
6120 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6121 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6122 #ifdef HAVE_ASM_TYPES_H
6123 # include <asm/types.h>
6124 #endif
6125 #ifdef HAVE_SYS_SOCKET_H
6126 # include <sys/socket.h>
6127 #endif
6128 #ifdef HAVE_LINUX_TYPES_H
6129 # include <linux/types.h>
6130 #endif
6132 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6133 cat >>confdefs.h <<_ACEOF
6134 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6135 _ACEOF
6139 done
6142 for ac_header in mach-o/dyld_images.h
6143 do :
6144 ac_fn_c_check_header_compile "$LINENO" "mach-o/dyld_images.h" "ac_cv_header_mach_o_dyld_images_h" "#ifdef HAVE_STDBOOL_H
6145 # include <stdbool.h>
6146 #endif
6147 #ifdef HAVE_STDINT_H
6148 # include <stdint.h>
6149 #endif
6151 if test "x$ac_cv_header_mach_o_dyld_images_h" = xyes; then :
6152 cat >>confdefs.h <<_ACEOF
6153 #define HAVE_MACH_O_DYLD_IMAGES_H 1
6154 _ACEOF
6158 done
6161 for ac_header in resolv.h
6162 do :
6163 ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "#include <sys/types.h>
6164 #ifdef HAVE_SYS_SOCKET_H
6165 # include <sys/socket.h>
6166 #endif
6167 #ifdef HAVE_NETINET_IN_H
6168 # include <netinet/in.h>
6169 #endif
6170 #ifdef HAVE_ARPA_NAMESER_H
6171 # include <arpa/nameser.h>
6172 #endif
6174 if test "x$ac_cv_header_resolv_h" = xyes; then :
6175 cat >>confdefs.h <<_ACEOF
6176 #define HAVE_RESOLV_H 1
6177 _ACEOF
6181 done
6184 for ac_header in ifaddrs.h
6185 do :
6186 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "#include <sys/types.h>
6188 if test "x$ac_cv_header_ifaddrs_h" = xyes; then :
6189 cat >>confdefs.h <<_ACEOF
6190 #define HAVE_IFADDRS_H 1
6191 _ACEOF
6195 done
6198 for ac_header in ucontext.h
6199 do :
6200 ac_fn_c_check_header_compile "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "#include <signal.h>
6202 if test "x$ac_cv_header_ucontext_h" = xyes; then :
6203 cat >>confdefs.h <<_ACEOF
6204 #define HAVE_UCONTEXT_H 1
6205 _ACEOF
6209 done
6212 for ac_header in sys/thr.h
6213 do :
6214 ac_fn_c_check_header_compile "$LINENO" "sys/thr.h" "ac_cv_header_sys_thr_h" "#include <sys/types.h>
6215 #ifdef HAVE_UCONTEXT_H
6216 #include <ucontext.h>
6217 #endif
6219 if test "x$ac_cv_header_sys_thr_h" = xyes; then :
6220 cat >>confdefs.h <<_ACEOF
6221 #define HAVE_SYS_THR_H 1
6222 _ACEOF
6226 done
6229 for ac_header in pthread_np.h
6230 do :
6231 ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" "#ifdef HAVE_PTHREAD_H
6232 #include <pthread.h>
6233 #endif
6235 if test "x$ac_cv_header_pthread_np_h" = xyes; then :
6236 cat >>confdefs.h <<_ACEOF
6237 #define HAVE_PTHREAD_NP_H 1
6238 _ACEOF
6242 done
6245 for ac_header in linux/videodev.h linux/videodev2.h
6246 do :
6247 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6248 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_TIME_H
6249 #include <sys/time.h>
6250 #endif
6251 #include <sys/types.h>
6252 #ifdef HAVE_ASM_TYPES_H
6253 #include <asm/types.h>
6254 #endif
6256 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6257 cat >>confdefs.h <<_ACEOF
6258 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6259 _ACEOF
6263 done
6266 for ac_header in linux/capi.h
6267 do :
6268 ac_fn_c_check_header_compile "$LINENO" "linux/capi.h" "ac_cv_header_linux_capi_h" "#define __user
6270 if test "x$ac_cv_header_linux_capi_h" = xyes; then :
6271 cat >>confdefs.h <<_ACEOF
6272 #define HAVE_LINUX_CAPI_H 1
6273 _ACEOF
6277 done
6281 DLLEXT=""
6283 DLLFLAGS="-D_REENTRANT"
6285 LDSHARED=""
6287 LDDLLFLAGS=""
6289 LIBEXT="so"
6291 IMPLIBEXT="def"
6293 LDRPATH_INSTALL=""
6295 LDRPATH_LOCAL=""
6297 STATIC_IMPLIBEXT="def.a"
6298 # Extract the first word of "ldd", so it can be a program name with args.
6299 set dummy ldd; ac_word=$2
6300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6301 $as_echo_n "checking for $ac_word... " >&6; }
6302 if ${ac_cv_path_LDD+:} false; then :
6303 $as_echo_n "(cached) " >&6
6304 else
6305 case $LDD in
6306 [\\/]* | ?:[\\/]*)
6307 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
6310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6311 as_dummy="/sbin:/usr/sbin:$PATH"
6312 for as_dir in $as_dummy
6314 IFS=$as_save_IFS
6315 test -z "$as_dir" && as_dir=.
6316 for ac_exec_ext in '' $ac_executable_extensions; do
6317 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6318 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
6319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6320 break 2
6322 done
6323 done
6324 IFS=$as_save_IFS
6326 test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
6328 esac
6330 LDD=$ac_cv_path_LDD
6331 if test -n "$LDD"; then
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
6333 $as_echo "$LDD" >&6; }
6334 else
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6336 $as_echo "no" >&6; }
6341 case $host_os in
6342 cygwin*|mingw32*)
6343 if test -n "$ac_tool_prefix"; then
6344 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6345 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6347 $as_echo_n "checking for $ac_word... " >&6; }
6348 if ${ac_cv_prog_DLLTOOL+:} false; then :
6349 $as_echo_n "(cached) " >&6
6350 else
6351 if test -n "$DLLTOOL"; then
6352 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6353 else
6354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6355 for as_dir in $PATH
6357 IFS=$as_save_IFS
6358 test -z "$as_dir" && as_dir=.
6359 for ac_exec_ext in '' $ac_executable_extensions; do
6360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6361 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6363 break 2
6365 done
6366 done
6367 IFS=$as_save_IFS
6371 DLLTOOL=$ac_cv_prog_DLLTOOL
6372 if test -n "$DLLTOOL"; then
6373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6374 $as_echo "$DLLTOOL" >&6; }
6375 else
6376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6377 $as_echo "no" >&6; }
6382 if test -z "$ac_cv_prog_DLLTOOL"; then
6383 ac_ct_DLLTOOL=$DLLTOOL
6384 # Extract the first word of "dlltool", so it can be a program name with args.
6385 set dummy dlltool; ac_word=$2
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6387 $as_echo_n "checking for $ac_word... " >&6; }
6388 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6389 $as_echo_n "(cached) " >&6
6390 else
6391 if test -n "$ac_ct_DLLTOOL"; then
6392 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6393 else
6394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6395 for as_dir in $PATH
6397 IFS=$as_save_IFS
6398 test -z "$as_dir" && as_dir=.
6399 for ac_exec_ext in '' $ac_executable_extensions; do
6400 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6401 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6403 break 2
6405 done
6406 done
6407 IFS=$as_save_IFS
6411 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6412 if test -n "$ac_ct_DLLTOOL"; then
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6414 $as_echo "$ac_ct_DLLTOOL" >&6; }
6415 else
6416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6417 $as_echo "no" >&6; }
6420 if test "x$ac_ct_DLLTOOL" = x; then
6421 DLLTOOL="false"
6422 else
6423 case $cross_compiling:$ac_tool_warned in
6424 yes:)
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6426 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6427 ac_tool_warned=yes ;;
6428 esac
6429 DLLTOOL=$ac_ct_DLLTOOL
6431 else
6432 DLLTOOL="$ac_cv_prog_DLLTOOL"
6435 if test -n "$ac_tool_prefix"; then
6436 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
6437 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6439 $as_echo_n "checking for $ac_word... " >&6; }
6440 if ${ac_cv_prog_DLLWRAP+:} false; then :
6441 $as_echo_n "(cached) " >&6
6442 else
6443 if test -n "$DLLWRAP"; then
6444 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
6445 else
6446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6447 for as_dir in $PATH
6449 IFS=$as_save_IFS
6450 test -z "$as_dir" && as_dir=.
6451 for ac_exec_ext in '' $ac_executable_extensions; do
6452 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6453 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
6454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6455 break 2
6457 done
6458 done
6459 IFS=$as_save_IFS
6463 DLLWRAP=$ac_cv_prog_DLLWRAP
6464 if test -n "$DLLWRAP"; then
6465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLWRAP" >&5
6466 $as_echo "$DLLWRAP" >&6; }
6467 else
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6469 $as_echo "no" >&6; }
6474 if test -z "$ac_cv_prog_DLLWRAP"; then
6475 ac_ct_DLLWRAP=$DLLWRAP
6476 # Extract the first word of "dllwrap", so it can be a program name with args.
6477 set dummy dllwrap; ac_word=$2
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6479 $as_echo_n "checking for $ac_word... " >&6; }
6480 if ${ac_cv_prog_ac_ct_DLLWRAP+:} false; then :
6481 $as_echo_n "(cached) " >&6
6482 else
6483 if test -n "$ac_ct_DLLWRAP"; then
6484 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
6485 else
6486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6487 for as_dir in $PATH
6489 IFS=$as_save_IFS
6490 test -z "$as_dir" && as_dir=.
6491 for ac_exec_ext in '' $ac_executable_extensions; do
6492 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6493 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
6494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6495 break 2
6497 done
6498 done
6499 IFS=$as_save_IFS
6503 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
6504 if test -n "$ac_ct_DLLWRAP"; then
6505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLWRAP" >&5
6506 $as_echo "$ac_ct_DLLWRAP" >&6; }
6507 else
6508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6509 $as_echo "no" >&6; }
6512 if test "x$ac_ct_DLLWRAP" = x; then
6513 DLLWRAP="false"
6514 else
6515 case $cross_compiling:$ac_tool_warned in
6516 yes:)
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6518 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6519 ac_tool_warned=yes ;;
6520 esac
6521 DLLWRAP=$ac_ct_DLLWRAP
6523 else
6524 DLLWRAP="$ac_cv_prog_DLLWRAP"
6527 if test "$DLLWRAP" = "false"; then
6528 LIBEXT="a"
6529 else
6530 LIBEXT="dll"
6532 IMPLIBEXT="a"
6533 STATIC_IMPLIBEXT="a"
6534 enable_iphlpapi=${enable_iphlpapi:-no}
6535 enable_kernel32=${enable_kernel32:-no}
6536 enable_msvcrt=${enable_msvcrt:-no}
6537 enable_ntdll=${enable_ntdll:-no}
6538 enable_ws2_32=${enable_ws2_32:-no}
6539 enable_loader=${enable_loader:-no}
6540 enable_server=${enable_server:-no}
6541 with_x=${with_x:-no}
6542 with_pthread=${with_pthread:-no}
6544 darwin*|macosx*)
6545 DLLEXT=".so"
6546 LIBEXT="dylib"
6547 DLLFLAGS="$DLLFLAGS -fPIC"
6548 LDDLLFLAGS="-bundle -multiply_defined suppress"
6549 LIBWINE_LDFLAGS="-multiply_defined suppress"
6550 LDSHARED="\$(CC) -dynamiclib"
6551 LDRPATH_LOCAL="&& install_name_tool -change @executable_path/\`\$(RELPATH) \$(bindir) \$(libdir)\`/libwine.1.dylib @executable_path/\$(top_builddir)/libs/wine/libwine.1.dylib \$@ || \$(RM) \$@"
6552 COREFOUNDATIONLIB="-framework CoreFoundation"
6554 IOKITLIB="-framework IOKit -framework CoreFoundation"
6556 APPLICATIONSERVICESLIB="-framework ApplicationServices"
6558 CORESERVICESLIB="-framework CoreServices"
6560 case $host_os in
6561 darwin11*)
6562 LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-macosx_version_min,10.6,-segaddr,WINE_DOS,0x00001000,-segaddr,WINE_SHAREDHEAP,0x7f000000"
6565 LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00001000,-segaddr,WINE_SHAREDHEAP,0x7f000000"
6567 esac
6568 if test "$ac_cv_header_DiskArbitration_DiskArbitration_h" = "yes"
6569 then
6570 DISKARBITRATIONLIB="-framework DiskArbitration -framework CoreFoundation"
6573 if test "$ac_cv_header_Security_Security_h" = "yes"
6574 then
6575 SECURITYLIB="-framework Security -framework CoreFoundation"
6577 ac_save_LIBS="$LIBS"
6578 LIBS="$LIBS $SECURITYLIB"
6579 for ac_func in SSLCopyPeerCertificates
6580 do :
6581 ac_fn_c_check_func "$LINENO" "SSLCopyPeerCertificates" "ac_cv_func_SSLCopyPeerCertificates"
6582 if test "x$ac_cv_func_SSLCopyPeerCertificates" = xyes; then :
6583 cat >>confdefs.h <<_ACEOF
6584 #define HAVE_SSLCOPYPEERCERTIFICATES 1
6585 _ACEOF
6588 done
6590 LIBS="$ac_save_LIBS"
6591 with_gnutls=${with_gnutls:-no}
6593 if test "$ac_cv_header_CoreAudio_CoreAudio_h" = "yes" -a "$ac_cv_header_AudioUnit_AudioUnit_h" = "yes"
6594 then
6595 if test "$ac_cv_header_AudioUnit_AudioComponent_h" = "yes"
6596 then
6597 COREAUDIO="-framework CoreFoundation -framework CoreAudio -framework AudioUnit -framework AudioToolbox -framework CoreMIDI"
6599 else
6600 COREAUDIO="-framework CoreAudio -framework AudioUnit -framework CoreServices -framework AudioToolbox -framework CoreMIDI"
6603 ac_save_LIBS="$LIBS"
6604 LIBS="$LIBS $COREAUDIO"
6605 for ac_func in AUGraphAddNode
6606 do :
6607 ac_fn_c_check_func "$LINENO" "AUGraphAddNode" "ac_cv_func_AUGraphAddNode"
6608 if test "x$ac_cv_func_AUGraphAddNode" = xyes; then :
6609 cat >>confdefs.h <<_ACEOF
6610 #define HAVE_AUGRAPHADDNODE 1
6611 _ACEOF
6614 done
6616 LIBS="$ac_save_LIBS"
6618 if test "$ac_cv_header_OpenAL_al_h" = "yes"
6619 then
6620 FRAMEWORK_OPENAL="-framework OpenAL"
6623 cat >>confdefs.h <<_ACEOF
6624 #define HAVE_OPENAL 1
6625 _ACEOF
6627 ac_cv_lib_openal=yes
6629 if test "$ac_cv_header_OpenCL_opencl_h" = "yes"
6630 then
6631 LIBOPENCL="-framework OpenCL"
6633 ac_cv_lib_OpenCL_clGetPlatformInfo=yes
6635 if test "$ac_cv_header_IOKit_hid_IOHIDLib_h" = "yes"
6636 then
6637 ac_save_LIBS="$LIBS"
6638 LIBS="$LIBS $IOKITLIB"
6639 for ac_func in IOHIDManagerCreate
6640 do :
6641 ac_fn_c_check_func "$LINENO" "IOHIDManagerCreate" "ac_cv_func_IOHIDManagerCreate"
6642 if test "x$ac_cv_func_IOHIDManagerCreate" = xyes; then :
6643 cat >>confdefs.h <<_ACEOF
6644 #define HAVE_IOHIDMANAGERCREATE 1
6645 _ACEOF
6648 done
6650 LIBS="$ac_save_LIBS"
6652 case $host_cpu in
6653 *powerpc*)
6654 LDDLLFLAGS="$LDDLLFLAGS -read_only_relocs warning" ;;
6655 esac
6656 if test "$ac_cv_header_QuickTime_ImageCompression_h" = "yes"
6657 then
6658 QUICKTIMELIB="-framework QuickTime -framework ApplicationServices -framework CoreVideo"
6660 enable_wineqtdecoder=${enable_wineqtdecoder:-yes}
6661 else
6662 as_fn_append wine_notices "|QuickTime ${notice_platform}development files not found, video decoding won't be supported."
6664 if test "$ac_cv_header_Carbon_Carbon_h" = "yes"
6665 then
6666 CARBONLIB="-framework Carbon"
6668 enable_winequartz_drv=${enable_winequartz_drv:-yes}
6670 if test "x$enable_win16" = "xyes"
6671 then
6672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 16-bit code can be built correctly" >&5
6673 $as_echo_n "checking whether 16-bit code can be built correctly... " >&6; }
6674 if test "$cross_compiling" = yes; then :
6675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5
6676 $as_echo "cross-compiling, assuming yes" >&6; }
6677 else
6678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6679 /* end confdefs.h. */
6680 asm(".text\n"
6681 "bad:\tnop;nop\n"
6682 "good:\tnop;nop\n\t"
6683 ".globl _testfunc\n"
6684 "_testfunc:\tcallw good");
6685 extern void testfunc();
6687 main ()
6689 unsigned short *p = (unsigned short *)testfunc;
6690 return p[0] != 0xe866 || p[1] != 0xfffa
6692 return 0;
6694 _ACEOF
6695 if ac_fn_c_try_run "$LINENO"; then :
6696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6697 $as_echo "yes" >&6; }
6698 else
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6700 $as_echo "no" >&6; }
6701 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
6703 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6704 conftest.$ac_objext conftest.beam conftest.$ac_ext
6710 DLLFLAGS="$DLLFLAGS -fPIC"
6711 DLLEXT=".so"
6712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a GNU style ELF dll" >&5
6713 $as_echo_n "checking whether we can build a GNU style ELF dll... " >&6; }
6714 if ${ac_cv_c_dll_gnuelf+:} false; then :
6715 $as_echo_n "(cached) " >&6
6716 else
6717 ac_wine_try_cflags_saved=$CFLAGS
6718 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic"
6719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6720 /* end confdefs.h. */
6721 void myfunc() {}
6722 _ACEOF
6723 if ac_fn_c_try_link "$LINENO"; then :
6724 ac_cv_c_dll_gnuelf="yes"
6725 else
6726 ac_cv_c_dll_gnuelf="no"
6728 rm -f core conftest.err conftest.$ac_objext \
6729 conftest$ac_exeext conftest.$ac_ext
6730 CFLAGS=$ac_wine_try_cflags_saved
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_gnuelf" >&5
6733 $as_echo "$ac_cv_c_dll_gnuelf" >&6; }
6734 if test "$ac_cv_c_dll_gnuelf" = "yes"
6735 then
6736 LDSHARED="\$(CC) -shared"
6737 LDDLLFLAGS="-shared -Wl,-Bsymbolic"
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1" >&5
6739 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1... " >&6; }
6740 if ${ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1+:} false; then :
6741 $as_echo_n "(cached) " >&6
6742 else
6743 ac_wine_try_cflags_saved=$CFLAGS
6744 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,confest.so.1"
6745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6746 /* end confdefs.h. */
6747 int main(int argc, char **argv) { return 0; }
6748 _ACEOF
6749 if ac_fn_c_try_link "$LINENO"; then :
6750 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=yes
6751 else
6752 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=no
6754 rm -f core conftest.err conftest.$ac_objext \
6755 conftest$ac_exeext conftest.$ac_ext
6756 CFLAGS=$ac_wine_try_cflags_saved
6758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&5
6759 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&6; }
6760 if test $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1 = yes; then :
6761 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
6762 else
6763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1" >&5
6764 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1... " >&6; }
6765 if ${ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1+:} false; then :
6766 $as_echo_n "(cached) " >&6
6767 else
6768 ac_wine_try_cflags_saved=$CFLAGS
6769 CFLAGS="$CFLAGS -fPIC -shared -Wl,-h,confest.so.1"
6770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6771 /* end confdefs.h. */
6772 int main(int argc, char **argv) { return 0; }
6773 _ACEOF
6774 if ac_fn_c_try_link "$LINENO"; then :
6775 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=yes
6776 else
6777 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=no
6779 rm -f core conftest.err conftest.$ac_objext \
6780 conftest$ac_exeext conftest.$ac_ext
6781 CFLAGS=$ac_wine_try_cflags_saved
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&5
6784 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&6; }
6785 if test $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1 = yes; then :
6786 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-h,%)"
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs" >&5
6791 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs... " >&6; }
6792 if ${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs+:} false; then :
6793 $as_echo_n "(cached) " >&6
6794 else
6795 ac_wine_try_cflags_saved=$CFLAGS
6796 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
6797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6798 /* end confdefs.h. */
6799 int main(int argc, char **argv) { return 0; }
6800 _ACEOF
6801 if ac_fn_c_try_link "$LINENO"; then :
6802 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=yes
6803 else
6804 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=no
6806 rm -f core conftest.err conftest.$ac_objext \
6807 conftest$ac_exeext conftest.$ac_ext
6808 CFLAGS=$ac_wine_try_cflags_saved
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&5
6811 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&6; }
6812 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs = yes; then :
6813 LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
6816 { $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
6817 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini... " >&6; }
6818 if ${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini+:} false; then :
6819 $as_echo_n "(cached) " >&6
6820 else
6821 ac_wine_try_cflags_saved=$CFLAGS
6822 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
6823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6824 /* end confdefs.h. */
6825 int main(int argc, char **argv) { return 0; }
6826 _ACEOF
6827 if ac_fn_c_try_link "$LINENO"; then :
6828 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=yes
6829 else
6830 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=no
6832 rm -f core conftest.err conftest.$ac_objext \
6833 conftest$ac_exeext conftest.$ac_ext
6834 CFLAGS=$ac_wine_try_cflags_saved
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&5
6837 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&6; }
6838 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini = yes; then :
6839 LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
6842 echo '{ global: *; };' >conftest.map
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map" >&5
6844 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map... " >&6; }
6845 if ${ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map+:} false; then :
6846 $as_echo_n "(cached) " >&6
6847 else
6848 ac_wine_try_cflags_saved=$CFLAGS
6849 CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
6850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6851 /* end confdefs.h. */
6852 int main(int argc, char **argv) { return 0; }
6853 _ACEOF
6854 if ac_fn_c_try_link "$LINENO"; then :
6855 ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=yes
6856 else
6857 ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=no
6859 rm -f core conftest.err conftest.$ac_objext \
6860 conftest$ac_exeext conftest.$ac_ext
6861 CFLAGS=$ac_wine_try_cflags_saved
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&5
6864 $as_echo "$ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&6; }
6865 if test $ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map = yes; then :
6866 LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)"
6868 rm -f conftest.map
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5
6871 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--export-dynamic... " >&6; }
6872 if ${ac_cv_cflags__fPIC__Wl___export_dynamic+:} false; then :
6873 $as_echo_n "(cached) " >&6
6874 else
6875 ac_wine_try_cflags_saved=$CFLAGS
6876 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
6877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6878 /* end confdefs.h. */
6879 int main(int argc, char **argv) { return 0; }
6880 _ACEOF
6881 if ac_fn_c_try_link "$LINENO"; then :
6882 ac_cv_cflags__fPIC__Wl___export_dynamic=yes
6883 else
6884 ac_cv_cflags__fPIC__Wl___export_dynamic=no
6886 rm -f core conftest.err conftest.$ac_objext \
6887 conftest$ac_exeext conftest.$ac_ext
6888 CFLAGS=$ac_wine_try_cflags_saved
6890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__Wl___export_dynamic" >&5
6891 $as_echo "$ac_cv_cflags__fPIC__Wl___export_dynamic" >&6; }
6892 if test $ac_cv_cflags__fPIC__Wl___export_dynamic = yes; then :
6893 LDEXECFLAGS="-Wl,--export-dynamic"
6897 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,--rpath,\\$ORIGIN/../lib" | $as_tr_sh`
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib" >&5
6899 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... " >&6; }
6900 if eval \${$as_ac_var+:} false; then :
6901 $as_echo_n "(cached) " >&6
6902 else
6903 ac_wine_try_cflags_saved=$CFLAGS
6904 CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
6905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6906 /* end confdefs.h. */
6907 int main(int argc, char **argv) { return 0; }
6908 _ACEOF
6909 if ac_fn_c_try_link "$LINENO"; then :
6910 eval "$as_ac_var=yes"
6911 else
6912 eval "$as_ac_var=no"
6914 rm -f core conftest.err conftest.$ac_objext \
6915 conftest$ac_exeext conftest.$ac_ext
6916 CFLAGS=$ac_wine_try_cflags_saved
6918 eval ac_res=\$$as_ac_var
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6920 $as_echo "$ac_res" >&6; }
6921 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6922 LDRPATH_INSTALL="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
6923 LDRPATH_LOCAL="-Wl,--rpath,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
6924 else
6925 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,-R,\\$ORIGIN/../lib" | $as_tr_sh`
6926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib" >&5
6927 $as_echo_n "checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib... " >&6; }
6928 if eval \${$as_ac_var+:} false; then :
6929 $as_echo_n "(cached) " >&6
6930 else
6931 ac_wine_try_cflags_saved=$CFLAGS
6932 CFLAGS="$CFLAGS -fPIC -Wl,-R,\$ORIGIN/../lib"
6933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6934 /* end confdefs.h. */
6935 int main(int argc, char **argv) { return 0; }
6936 _ACEOF
6937 if ac_fn_c_try_link "$LINENO"; then :
6938 eval "$as_ac_var=yes"
6939 else
6940 eval "$as_ac_var=no"
6942 rm -f core conftest.err conftest.$ac_objext \
6943 conftest$ac_exeext conftest.$ac_ext
6944 CFLAGS=$ac_wine_try_cflags_saved
6946 eval ac_res=\$$as_ac_var
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6948 $as_echo "$ac_res" >&6; }
6949 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6950 LDRPATH_INSTALL="-Wl,-R,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
6951 LDRPATH_LOCAL="-Wl,-R,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--enable-new-dtags" >&5
6956 $as_echo_n "checking whether the compiler supports -Wl,--enable-new-dtags... " >&6; }
6957 if ${ac_cv_cflags__Wl___enable_new_dtags+:} false; then :
6958 $as_echo_n "(cached) " >&6
6959 else
6960 ac_wine_try_cflags_saved=$CFLAGS
6961 CFLAGS="$CFLAGS -Wl,--enable-new-dtags"
6962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6963 /* end confdefs.h. */
6964 int main(int argc, char **argv) { return 0; }
6965 _ACEOF
6966 if ac_fn_c_try_link "$LINENO"; then :
6967 ac_cv_cflags__Wl___enable_new_dtags=yes
6968 else
6969 ac_cv_cflags__Wl___enable_new_dtags=no
6971 rm -f core conftest.err conftest.$ac_objext \
6972 conftest$ac_exeext conftest.$ac_ext
6973 CFLAGS=$ac_wine_try_cflags_saved
6975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___enable_new_dtags" >&5
6976 $as_echo "$ac_cv_cflags__Wl___enable_new_dtags" >&6; }
6977 if test $ac_cv_cflags__Wl___enable_new_dtags = yes; then :
6978 LDRPATH_INSTALL="$LDRPATH_INSTALL -Wl,--enable-new-dtags"
6981 case $host_cpu in
6982 *i[3456789]86* | x86_64)
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400" >&5
6984 $as_echo_n "checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... " >&6; }
6985 if ${ac_cv_cflags__Wl___section_start__interp_0x7bf00400+:} false; then :
6986 $as_echo_n "(cached) " >&6
6987 else
6988 ac_wine_try_cflags_saved=$CFLAGS
6989 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
6990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6991 /* end confdefs.h. */
6992 int main(int argc, char **argv) { return 0; }
6993 _ACEOF
6994 if ac_fn_c_try_link "$LINENO"; then :
6995 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=yes
6996 else
6997 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=no
6999 rm -f core conftest.err conftest.$ac_objext \
7000 conftest$ac_exeext conftest.$ac_ext
7001 CFLAGS=$ac_wine_try_cflags_saved
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&5
7004 $as_echo "$ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&6; }
7005 if test $ac_cv_cflags__Wl___section_start__interp_0x7bf00400 = yes; then :
7006 case $host_os in
7007 freebsd* | kfreebsd*-gnu) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x60000400" ;;
7008 *) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400" ;;
7009 esac
7012 # Extract the first word of "prelink", so it can be a program name with args.
7013 set dummy prelink; ac_word=$2
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7015 $as_echo_n "checking for $ac_word... " >&6; }
7016 if ${ac_cv_path_PRELINK+:} false; then :
7017 $as_echo_n "(cached) " >&6
7018 else
7019 case $PRELINK in
7020 [\\/]* | ?:[\\/]*)
7021 ac_cv_path_PRELINK="$PRELINK" # Let the user override the test with a path.
7024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7025 for as_dir in /sbin /usr/sbin $PATH
7027 IFS=$as_save_IFS
7028 test -z "$as_dir" && as_dir=.
7029 for ac_exec_ext in '' $ac_executable_extensions; do
7030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7031 ac_cv_path_PRELINK="$as_dir/$ac_word$ac_exec_ext"
7032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7033 break 2
7035 done
7036 done
7037 IFS=$as_save_IFS
7039 test -z "$ac_cv_path_PRELINK" && ac_cv_path_PRELINK="false"
7041 esac
7043 PRELINK=$ac_cv_path_PRELINK
7044 if test -n "$PRELINK"; then
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRELINK" >&5
7046 $as_echo "$PRELINK" >&6; }
7047 else
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7049 $as_echo "no" >&6; }
7053 if test "x$PRELINK" = xfalse
7054 then
7055 as_fn_append wine_warnings "|prelink not found, base address of core dlls won't be set correctly."
7058 esac
7060 else
7061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a UnixWare (Solaris) dll" >&5
7062 $as_echo_n "checking whether we can build a UnixWare (Solaris) dll... " >&6; }
7063 if ${ac_cv_c_dll_unixware+:} false; then :
7064 $as_echo_n "(cached) " >&6
7065 else
7066 ac_wine_try_cflags_saved=$CFLAGS
7067 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
7068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7069 /* end confdefs.h. */
7070 void myfunc() {}
7071 _ACEOF
7072 if ac_fn_c_try_link "$LINENO"; then :
7073 ac_cv_c_dll_unixware="yes"
7074 else
7075 ac_cv_c_dll_unixware="no"
7077 rm -f core conftest.err conftest.$ac_objext \
7078 conftest$ac_exeext conftest.$ac_ext
7079 CFLAGS=$ac_wine_try_cflags_saved
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_unixware" >&5
7082 $as_echo "$ac_cv_c_dll_unixware" >&6; }
7083 if test "$ac_cv_c_dll_unixware" = "yes"
7084 then
7085 LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
7086 LDDLLFLAGS="-Wl,-G,-B,symbolic"
7088 else
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build an HP-UX dll" >&5
7090 $as_echo_n "checking whether we can build an HP-UX dll... " >&6; }
7091 if ${ac_cv_c_dll_hpux+:} false; then :
7092 $as_echo_n "(cached) " >&6
7093 else
7094 ac_wine_try_cflags_saved=$CFLAGS
7095 CFLAGS="$CFLAGS -shared"
7096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7097 /* end confdefs.h. */
7098 void myfunc() {}
7099 _ACEOF
7100 if ac_fn_c_try_link "$LINENO"; then :
7101 ac_cv_c_dll_hpux="yes"
7102 else
7103 ac_cv_c_dll_hpux="no"
7105 rm -f core conftest.err conftest.$ac_objext \
7106 conftest$ac_exeext conftest.$ac_ext
7107 CFLAGS=$ac_wine_try_cflags_saved
7109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_hpux" >&5
7110 $as_echo "$ac_cv_c_dll_hpux" >&6; }
7111 if test "$ac_cv_c_dll_hpux" = "yes"
7112 then
7113 LIBEXT="sl"
7114 DLLEXT=".sl"
7115 LDDLLFLAGS="-shared -fPIC"
7116 LDSHARED="\$(CC) -shared"
7121 esac
7123 enable_wineqtdecoder=${enable_wineqtdecoder:-no}
7124 enable_winequartz_drv=${enable_winequartz_drv:-no}
7126 if test "$LIBEXT" = "a"; then
7127 as_fn_error $? "could not find a way to build shared libraries.
7128 It is currently not possible to build Wine without shared library
7129 (.so) support to allow transparent switch between .so and .dll files.
7130 If you are using Linux, you will need a newer binutils.
7131 " "$LINENO" 5
7134 CROSSTEST_DISABLE=\#
7136 if test "$cross_compiling" = "no" -a "x$enable_tests" != xno -a "$LIBEXT" != "dll"
7137 then
7138 case "$host_cpu" in
7139 i[3456789]86*)
7140 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 " ;;
7141 x86_64)
7142 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 " ;;
7144 ac_prefix_list="" ;;
7145 esac
7146 for ac_prog in $ac_prefix_list
7148 # Extract the first word of "$ac_prog", so it can be a program name with args.
7149 set dummy $ac_prog; ac_word=$2
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7151 $as_echo_n "checking for $ac_word... " >&6; }
7152 if ${ac_cv_prog_CROSSCC+:} false; then :
7153 $as_echo_n "(cached) " >&6
7154 else
7155 if test -n "$CROSSCC"; then
7156 ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
7157 else
7158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7159 for as_dir in $PATH
7161 IFS=$as_save_IFS
7162 test -z "$as_dir" && as_dir=.
7163 for ac_exec_ext in '' $ac_executable_extensions; do
7164 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7165 ac_cv_prog_CROSSCC="$ac_prog"
7166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7167 break 2
7169 done
7170 done
7171 IFS=$as_save_IFS
7175 CROSSCC=$ac_cv_prog_CROSSCC
7176 if test -n "$CROSSCC"; then
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CROSSCC" >&5
7178 $as_echo "$CROSSCC" >&6; }
7179 else
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7181 $as_echo "no" >&6; }
7185 test -n "$CROSSCC" && break
7186 done
7187 test -n "$CROSSCC" || CROSSCC="false"
7189 if test "$CROSSCC" != "false"
7190 then
7191 ac_save_CC="$CC"
7192 CC="$CROSSCC"
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CROSSCC works" >&5
7194 $as_echo_n "checking whether $CROSSCC works... " >&6; }
7195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7196 /* end confdefs.h. */
7199 main ()
7203 return 0;
7205 _ACEOF
7206 if ac_fn_c_try_compile "$LINENO"; then :
7207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7208 $as_echo "yes" >&6; }
7209 set x $CROSSCC
7210 shift
7211 target=""
7212 while test $# -ge 1
7214 case "$1" in
7215 *-gcc) target=`expr "$1" : '\(.*\)-gcc'` ;;
7216 esac
7217 shift
7218 done
7219 if test -n "$target"
7220 then
7221 CROSSTEST_DISABLE=""
7222 CROSSTARGET="$target"
7225 else
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7227 $as_echo "no" >&6; }
7229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7230 CC="$ac_save_CC"
7235 if test "$ac_cv_header_pthread_h" = "yes"
7236 then
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
7238 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
7239 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
7240 $as_echo_n "(cached) " >&6
7241 else
7242 ac_check_lib_save_LIBS=$LIBS
7243 LIBS="-lpthread $LIBS"
7244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7245 /* end confdefs.h. */
7247 /* Override any GCC internal prototype to avoid an error.
7248 Use char because int might match the return type of a GCC
7249 builtin and then its argument prototype would still apply. */
7250 #ifdef __cplusplus
7251 extern "C"
7252 #endif
7253 char pthread_create ();
7255 main ()
7257 return pthread_create ();
7259 return 0;
7261 _ACEOF
7262 if ac_fn_c_try_link "$LINENO"; then :
7263 ac_cv_lib_pthread_pthread_create=yes
7264 else
7265 ac_cv_lib_pthread_pthread_create=no
7267 rm -f core conftest.err conftest.$ac_objext \
7268 conftest$ac_exeext conftest.$ac_ext
7269 LIBS=$ac_check_lib_save_LIBS
7271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
7272 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
7273 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
7274 LIBPTHREAD="-lpthread"
7279 if test "x$LIBPTHREAD" = "x"; then :
7280 case "x$with_pthread" in
7281 xno) ;;
7282 *) as_fn_error $? "pthread ${notice_platform}development files not found.
7283 Wine cannot support threads without libpthread.
7284 Use the --without-pthread option if you really want this." "$LINENO" 5 ;;
7285 esac
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
7290 $as_echo_n "checking for X... " >&6; }
7293 # Check whether --with-x was given.
7294 if test "${with_x+set}" = set; then :
7295 withval=$with_x;
7298 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7299 if test "x$with_x" = xno; then
7300 # The user explicitly disabled X.
7301 have_x=disabled
7302 else
7303 case $x_includes,$x_libraries in #(
7304 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
7305 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
7306 $as_echo_n "(cached) " >&6
7307 else
7308 # One or both of the vars are not set, and there is no cached value.
7309 ac_x_includes=no ac_x_libraries=no
7310 rm -f -r conftest.dir
7311 if mkdir conftest.dir; then
7312 cd conftest.dir
7313 cat >Imakefile <<'_ACEOF'
7314 incroot:
7315 @echo incroot='${INCROOT}'
7316 usrlibdir:
7317 @echo usrlibdir='${USRLIBDIR}'
7318 libdir:
7319 @echo libdir='${LIBDIR}'
7320 _ACEOF
7321 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
7322 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7323 for ac_var in incroot usrlibdir libdir; do
7324 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
7325 done
7326 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7327 for ac_extension in a so sl dylib la dll; do
7328 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
7329 test -f "$ac_im_libdir/libX11.$ac_extension"; then
7330 ac_im_usrlibdir=$ac_im_libdir; break
7332 done
7333 # Screen out bogus values from the imake configuration. They are
7334 # bogus both because they are the default anyway, and because
7335 # using them would break gcc on systems where it needs fixed includes.
7336 case $ac_im_incroot in
7337 /usr/include) ac_x_includes= ;;
7338 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7339 esac
7340 case $ac_im_usrlibdir in
7341 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
7342 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7343 esac
7345 cd ..
7346 rm -f -r conftest.dir
7349 # Standard set of common directories for X headers.
7350 # Check X11 before X11Rn because it is often a symlink to the current release.
7351 ac_x_header_dirs='
7352 /usr/X11/include
7353 /usr/X11R7/include
7354 /usr/X11R6/include
7355 /usr/X11R5/include
7356 /usr/X11R4/include
7358 /usr/include/X11
7359 /usr/include/X11R7
7360 /usr/include/X11R6
7361 /usr/include/X11R5
7362 /usr/include/X11R4
7364 /usr/local/X11/include
7365 /usr/local/X11R7/include
7366 /usr/local/X11R6/include
7367 /usr/local/X11R5/include
7368 /usr/local/X11R4/include
7370 /usr/local/include/X11
7371 /usr/local/include/X11R7
7372 /usr/local/include/X11R6
7373 /usr/local/include/X11R5
7374 /usr/local/include/X11R4
7376 /usr/X386/include
7377 /usr/x386/include
7378 /usr/XFree86/include/X11
7380 /usr/include
7381 /usr/local/include
7382 /usr/unsupported/include
7383 /usr/athena/include
7384 /usr/local/x11r5/include
7385 /usr/lpp/Xamples/include
7387 /usr/openwin/include
7388 /usr/openwin/share/include'
7390 if test "$ac_x_includes" = no; then
7391 # Guess where to find include files, by looking for Xlib.h.
7392 # First, try using that file with no special directory specified.
7393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7394 /* end confdefs.h. */
7395 #include <X11/Xlib.h>
7396 _ACEOF
7397 if ac_fn_c_try_cpp "$LINENO"; then :
7398 # We can compile using X headers with no special include directory.
7399 ac_x_includes=
7400 else
7401 for ac_dir in $ac_x_header_dirs; do
7402 if test -r "$ac_dir/X11/Xlib.h"; then
7403 ac_x_includes=$ac_dir
7404 break
7406 done
7408 rm -f conftest.err conftest.i conftest.$ac_ext
7409 fi # $ac_x_includes = no
7411 if test "$ac_x_libraries" = no; then
7412 # Check for the libraries.
7413 # See if we find them without any special options.
7414 # Don't add to $LIBS permanently.
7415 ac_save_LIBS=$LIBS
7416 LIBS="-lX11 $LIBS"
7417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7418 /* end confdefs.h. */
7419 #include <X11/Xlib.h>
7421 main ()
7423 XrmInitialize ()
7425 return 0;
7427 _ACEOF
7428 if ac_fn_c_try_link "$LINENO"; then :
7429 LIBS=$ac_save_LIBS
7430 # We can link X programs with no special library path.
7431 ac_x_libraries=
7432 else
7433 LIBS=$ac_save_LIBS
7434 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7436 # Don't even attempt the hair of trying to link an X program!
7437 for ac_extension in a so sl dylib la dll; do
7438 if test -r "$ac_dir/libX11.$ac_extension"; then
7439 ac_x_libraries=$ac_dir
7440 break 2
7442 done
7443 done
7445 rm -f core conftest.err conftest.$ac_objext \
7446 conftest$ac_exeext conftest.$ac_ext
7447 fi # $ac_x_libraries = no
7449 case $ac_x_includes,$ac_x_libraries in #(
7450 no,* | *,no | *\'*)
7451 # Didn't find X, or a directory has "'" in its name.
7452 ac_cv_have_x="have_x=no";; #(
7454 # Record where we found X for the cache.
7455 ac_cv_have_x="have_x=yes\
7456 ac_x_includes='$ac_x_includes'\
7457 ac_x_libraries='$ac_x_libraries'"
7458 esac
7460 ;; #(
7461 *) have_x=yes;;
7462 esac
7463 eval "$ac_cv_have_x"
7464 fi # $with_x != no
7466 if test "$have_x" != yes; then
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
7468 $as_echo "$have_x" >&6; }
7469 no_x=yes
7470 else
7471 # If each of the values was on the command line, it overrides each guess.
7472 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7473 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7474 # Update the cache value to reflect the command line values.
7475 ac_cv_have_x="have_x=yes\
7476 ac_x_includes='$x_includes'\
7477 ac_x_libraries='$x_libraries'"
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
7479 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
7482 if test "$no_x" = yes; then
7483 # Not all programs may use this symbol, but it does not hurt to define it.
7485 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
7487 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7488 else
7489 if test -n "$x_includes"; then
7490 X_CFLAGS="$X_CFLAGS -I$x_includes"
7493 # It would also be nice to do this for all -L options, not just this one.
7494 if test -n "$x_libraries"; then
7495 X_LIBS="$X_LIBS -L$x_libraries"
7496 # For Solaris; some versions of Sun CC require a space after -R and
7497 # others require no space. Words are not sufficient . . . .
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
7499 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
7500 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7501 ac_xsave_c_werror_flag=$ac_c_werror_flag
7502 ac_c_werror_flag=yes
7503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7504 /* end confdefs.h. */
7507 main ()
7511 return 0;
7513 _ACEOF
7514 if ac_fn_c_try_link "$LINENO"; then :
7515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7516 $as_echo "no" >&6; }
7517 X_LIBS="$X_LIBS -R$x_libraries"
7518 else
7519 LIBS="$ac_xsave_LIBS -R $x_libraries"
7520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7521 /* end confdefs.h. */
7524 main ()
7528 return 0;
7530 _ACEOF
7531 if ac_fn_c_try_link "$LINENO"; then :
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7533 $as_echo "yes" >&6; }
7534 X_LIBS="$X_LIBS -R $x_libraries"
7535 else
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
7537 $as_echo "neither works" >&6; }
7539 rm -f core conftest.err conftest.$ac_objext \
7540 conftest$ac_exeext conftest.$ac_ext
7542 rm -f core conftest.err conftest.$ac_objext \
7543 conftest$ac_exeext conftest.$ac_ext
7544 ac_c_werror_flag=$ac_xsave_c_werror_flag
7545 LIBS=$ac_xsave_LIBS
7548 # Check for system-dependent libraries X programs must link with.
7549 # Do this before checking for the system-independent R6 libraries
7550 # (-lICE), since we may need -lsocket or whatever for X linking.
7552 if test "$ISC" = yes; then
7553 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7554 else
7555 # Martyn Johnson says this is needed for Ultrix, if the X
7556 # libraries were built with DECnet support. And Karl Berry says
7557 # the Alpha needs dnet_stub (dnet does not exist).
7558 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
7559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7560 /* end confdefs.h. */
7562 /* Override any GCC internal prototype to avoid an error.
7563 Use char because int might match the return type of a GCC
7564 builtin and then its argument prototype would still apply. */
7565 #ifdef __cplusplus
7566 extern "C"
7567 #endif
7568 char XOpenDisplay ();
7570 main ()
7572 return XOpenDisplay ();
7574 return 0;
7576 _ACEOF
7577 if ac_fn_c_try_link "$LINENO"; then :
7579 else
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
7581 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
7582 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
7583 $as_echo_n "(cached) " >&6
7584 else
7585 ac_check_lib_save_LIBS=$LIBS
7586 LIBS="-ldnet $LIBS"
7587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7588 /* end confdefs.h. */
7590 /* Override any GCC internal prototype to avoid an error.
7591 Use char because int might match the return type of a GCC
7592 builtin and then its argument prototype would still apply. */
7593 #ifdef __cplusplus
7594 extern "C"
7595 #endif
7596 char dnet_ntoa ();
7598 main ()
7600 return dnet_ntoa ();
7602 return 0;
7604 _ACEOF
7605 if ac_fn_c_try_link "$LINENO"; then :
7606 ac_cv_lib_dnet_dnet_ntoa=yes
7607 else
7608 ac_cv_lib_dnet_dnet_ntoa=no
7610 rm -f core conftest.err conftest.$ac_objext \
7611 conftest$ac_exeext conftest.$ac_ext
7612 LIBS=$ac_check_lib_save_LIBS
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7615 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
7616 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
7617 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7620 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
7622 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
7623 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
7624 $as_echo_n "(cached) " >&6
7625 else
7626 ac_check_lib_save_LIBS=$LIBS
7627 LIBS="-ldnet_stub $LIBS"
7628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7629 /* end confdefs.h. */
7631 /* Override any GCC internal prototype to avoid an error.
7632 Use char because int might match the return type of a GCC
7633 builtin and then its argument prototype would still apply. */
7634 #ifdef __cplusplus
7635 extern "C"
7636 #endif
7637 char dnet_ntoa ();
7639 main ()
7641 return dnet_ntoa ();
7643 return 0;
7645 _ACEOF
7646 if ac_fn_c_try_link "$LINENO"; then :
7647 ac_cv_lib_dnet_stub_dnet_ntoa=yes
7648 else
7649 ac_cv_lib_dnet_stub_dnet_ntoa=no
7651 rm -f core conftest.err conftest.$ac_objext \
7652 conftest$ac_exeext conftest.$ac_ext
7653 LIBS=$ac_check_lib_save_LIBS
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
7656 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
7657 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
7658 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7663 rm -f core conftest.err conftest.$ac_objext \
7664 conftest$ac_exeext conftest.$ac_ext
7665 LIBS="$ac_xsave_LIBS"
7667 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7668 # to get the SysV transport functions.
7669 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7670 # needs -lnsl.
7671 # The nsl library prevents programs from opening the X display
7672 # on Irix 5.2, according to T.E. Dickey.
7673 # The functions gethostbyname, getservbyname, and inet_addr are
7674 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
7675 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
7676 if test "x$ac_cv_func_gethostbyname" = xyes; then :
7680 if test $ac_cv_func_gethostbyname = no; then
7681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
7682 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
7683 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
7684 $as_echo_n "(cached) " >&6
7685 else
7686 ac_check_lib_save_LIBS=$LIBS
7687 LIBS="-lnsl $LIBS"
7688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7689 /* end confdefs.h. */
7691 /* Override any GCC internal prototype to avoid an error.
7692 Use char because int might match the return type of a GCC
7693 builtin and then its argument prototype would still apply. */
7694 #ifdef __cplusplus
7695 extern "C"
7696 #endif
7697 char gethostbyname ();
7699 main ()
7701 return gethostbyname ();
7703 return 0;
7705 _ACEOF
7706 if ac_fn_c_try_link "$LINENO"; then :
7707 ac_cv_lib_nsl_gethostbyname=yes
7708 else
7709 ac_cv_lib_nsl_gethostbyname=no
7711 rm -f core conftest.err conftest.$ac_objext \
7712 conftest$ac_exeext conftest.$ac_ext
7713 LIBS=$ac_check_lib_save_LIBS
7715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
7716 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
7717 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
7718 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7721 if test $ac_cv_lib_nsl_gethostbyname = no; then
7722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
7723 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
7724 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
7725 $as_echo_n "(cached) " >&6
7726 else
7727 ac_check_lib_save_LIBS=$LIBS
7728 LIBS="-lbsd $LIBS"
7729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7730 /* end confdefs.h. */
7732 /* Override any GCC internal prototype to avoid an error.
7733 Use char because int might match the return type of a GCC
7734 builtin and then its argument prototype would still apply. */
7735 #ifdef __cplusplus
7736 extern "C"
7737 #endif
7738 char gethostbyname ();
7740 main ()
7742 return gethostbyname ();
7744 return 0;
7746 _ACEOF
7747 if ac_fn_c_try_link "$LINENO"; then :
7748 ac_cv_lib_bsd_gethostbyname=yes
7749 else
7750 ac_cv_lib_bsd_gethostbyname=no
7752 rm -f core conftest.err conftest.$ac_objext \
7753 conftest$ac_exeext conftest.$ac_ext
7754 LIBS=$ac_check_lib_save_LIBS
7756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
7757 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
7758 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
7759 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
7765 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7766 # socket/setsockopt and other routines are undefined under SCO ODT
7767 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7768 # on later versions), says Simon Leinen: it contains gethostby*
7769 # variants that don't use the name server (or something). -lsocket
7770 # must be given before -lnsl if both are needed. We assume that
7771 # if connect needs -lnsl, so does gethostbyname.
7772 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
7773 if test "x$ac_cv_func_connect" = xyes; then :
7777 if test $ac_cv_func_connect = no; then
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
7779 $as_echo_n "checking for connect in -lsocket... " >&6; }
7780 if ${ac_cv_lib_socket_connect+:} false; then :
7781 $as_echo_n "(cached) " >&6
7782 else
7783 ac_check_lib_save_LIBS=$LIBS
7784 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7786 /* end confdefs.h. */
7788 /* Override any GCC internal prototype to avoid an error.
7789 Use char because int might match the return type of a GCC
7790 builtin and then its argument prototype would still apply. */
7791 #ifdef __cplusplus
7792 extern "C"
7793 #endif
7794 char connect ();
7796 main ()
7798 return connect ();
7800 return 0;
7802 _ACEOF
7803 if ac_fn_c_try_link "$LINENO"; then :
7804 ac_cv_lib_socket_connect=yes
7805 else
7806 ac_cv_lib_socket_connect=no
7808 rm -f core conftest.err conftest.$ac_objext \
7809 conftest$ac_exeext conftest.$ac_ext
7810 LIBS=$ac_check_lib_save_LIBS
7812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
7813 $as_echo "$ac_cv_lib_socket_connect" >&6; }
7814 if test "x$ac_cv_lib_socket_connect" = xyes; then :
7815 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7820 # Guillermo Gomez says -lposix is necessary on A/UX.
7821 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
7822 if test "x$ac_cv_func_remove" = xyes; then :
7826 if test $ac_cv_func_remove = no; then
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
7828 $as_echo_n "checking for remove in -lposix... " >&6; }
7829 if ${ac_cv_lib_posix_remove+:} false; then :
7830 $as_echo_n "(cached) " >&6
7831 else
7832 ac_check_lib_save_LIBS=$LIBS
7833 LIBS="-lposix $LIBS"
7834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7835 /* end confdefs.h. */
7837 /* Override any GCC internal prototype to avoid an error.
7838 Use char because int might match the return type of a GCC
7839 builtin and then its argument prototype would still apply. */
7840 #ifdef __cplusplus
7841 extern "C"
7842 #endif
7843 char remove ();
7845 main ()
7847 return remove ();
7849 return 0;
7851 _ACEOF
7852 if ac_fn_c_try_link "$LINENO"; then :
7853 ac_cv_lib_posix_remove=yes
7854 else
7855 ac_cv_lib_posix_remove=no
7857 rm -f core conftest.err conftest.$ac_objext \
7858 conftest$ac_exeext conftest.$ac_ext
7859 LIBS=$ac_check_lib_save_LIBS
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
7862 $as_echo "$ac_cv_lib_posix_remove" >&6; }
7863 if test "x$ac_cv_lib_posix_remove" = xyes; then :
7864 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7869 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7870 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
7871 if test "x$ac_cv_func_shmat" = xyes; then :
7875 if test $ac_cv_func_shmat = no; then
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
7877 $as_echo_n "checking for shmat in -lipc... " >&6; }
7878 if ${ac_cv_lib_ipc_shmat+:} false; then :
7879 $as_echo_n "(cached) " >&6
7880 else
7881 ac_check_lib_save_LIBS=$LIBS
7882 LIBS="-lipc $LIBS"
7883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7884 /* end confdefs.h. */
7886 /* Override any GCC internal prototype to avoid an error.
7887 Use char because int might match the return type of a GCC
7888 builtin and then its argument prototype would still apply. */
7889 #ifdef __cplusplus
7890 extern "C"
7891 #endif
7892 char shmat ();
7894 main ()
7896 return shmat ();
7898 return 0;
7900 _ACEOF
7901 if ac_fn_c_try_link "$LINENO"; then :
7902 ac_cv_lib_ipc_shmat=yes
7903 else
7904 ac_cv_lib_ipc_shmat=no
7906 rm -f core conftest.err conftest.$ac_objext \
7907 conftest$ac_exeext conftest.$ac_ext
7908 LIBS=$ac_check_lib_save_LIBS
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
7911 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
7912 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
7913 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7919 # Check for libraries that X11R6 Xt/Xaw programs need.
7920 ac_save_LDFLAGS=$LDFLAGS
7921 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7922 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7923 # check for ICE first), but we must link in the order -lSM -lICE or
7924 # we get undefined symbols. So assume we have SM if we have ICE.
7925 # These have to be linked with before -lX11, unlike the other
7926 # libraries we check for below, so use a different variable.
7927 # John Interrante, Karl Berry
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
7929 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
7930 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
7931 $as_echo_n "(cached) " >&6
7932 else
7933 ac_check_lib_save_LIBS=$LIBS
7934 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7936 /* end confdefs.h. */
7938 /* Override any GCC internal prototype to avoid an error.
7939 Use char because int might match the return type of a GCC
7940 builtin and then its argument prototype would still apply. */
7941 #ifdef __cplusplus
7942 extern "C"
7943 #endif
7944 char IceConnectionNumber ();
7946 main ()
7948 return IceConnectionNumber ();
7950 return 0;
7952 _ACEOF
7953 if ac_fn_c_try_link "$LINENO"; then :
7954 ac_cv_lib_ICE_IceConnectionNumber=yes
7955 else
7956 ac_cv_lib_ICE_IceConnectionNumber=no
7958 rm -f core conftest.err conftest.$ac_objext \
7959 conftest$ac_exeext conftest.$ac_ext
7960 LIBS=$ac_check_lib_save_LIBS
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7963 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
7964 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
7965 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7968 LDFLAGS=$ac_save_LDFLAGS
7973 if test "$have_x" = "yes"
7974 then
7975 XLIB="-lX11"
7976 ac_save_CPPFLAGS="$CPPFLAGS"
7977 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
7979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lX11" >&5
7980 $as_echo_n "checking for -lX11... " >&6; }
7981 if ${ac_cv_lib_soname_X11+:} false; then :
7982 $as_echo_n "(cached) " >&6
7983 else
7984 ac_check_soname_save_LIBS=$LIBS
7985 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
7986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7987 /* end confdefs.h. */
7989 /* Override any GCC internal prototype to avoid an error.
7990 Use char because int might match the return type of a GCC
7991 builtin and then its argument prototype would still apply. */
7992 #ifdef __cplusplus
7993 extern "C"
7994 #endif
7995 char XCreateWindow ();
7997 main ()
7999 return XCreateWindow ();
8001 return 0;
8003 _ACEOF
8004 if ac_fn_c_try_link "$LINENO"; then :
8005 case "$LIBEXT" in
8006 dll) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest.exe | grep "X11" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8007 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'` ;;
8008 *) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep "libX11\\.$LIBEXT" | sed -e "s/^.*\(libX11\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8009 esac
8011 rm -f core conftest.err conftest.$ac_objext \
8012 conftest$ac_exeext conftest.$ac_ext
8013 LIBS=$ac_check_soname_save_LIBS
8015 if test "x$ac_cv_lib_soname_X11" = "x"; then :
8016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8017 $as_echo "not found" >&6; }
8019 else
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_X11" >&5
8021 $as_echo "$ac_cv_lib_soname_X11" >&6; }
8023 cat >>confdefs.h <<_ACEOF
8024 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
8025 _ACEOF
8029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXext" >&5
8030 $as_echo_n "checking for -lXext... " >&6; }
8031 if ${ac_cv_lib_soname_Xext+:} false; then :
8032 $as_echo_n "(cached) " >&6
8033 else
8034 ac_check_soname_save_LIBS=$LIBS
8035 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
8036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8037 /* end confdefs.h. */
8039 /* Override any GCC internal prototype to avoid an error.
8040 Use char because int might match the return type of a GCC
8041 builtin and then its argument prototype would still apply. */
8042 #ifdef __cplusplus
8043 extern "C"
8044 #endif
8045 char XextCreateExtension ();
8047 main ()
8049 return XextCreateExtension ();
8051 return 0;
8053 _ACEOF
8054 if ac_fn_c_try_link "$LINENO"; then :
8055 case "$LIBEXT" in
8056 dll) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest.exe | grep "Xext" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8057 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'` ;;
8058 *) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXext\\.$LIBEXT" | sed -e "s/^.*\(libXext\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8059 esac
8061 rm -f core conftest.err conftest.$ac_objext \
8062 conftest$ac_exeext conftest.$ac_ext
8063 LIBS=$ac_check_soname_save_LIBS
8065 if test "x$ac_cv_lib_soname_Xext" = "x"; then :
8066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8067 $as_echo "not found" >&6; }
8069 else
8070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xext" >&5
8071 $as_echo "$ac_cv_lib_soname_Xext" >&6; }
8073 cat >>confdefs.h <<_ACEOF
8074 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
8075 _ACEOF
8077 XLIB="-lXext $XLIB"
8080 for ac_header in X11/Xlib.h \
8081 X11/XKBlib.h \
8082 X11/Xutil.h \
8083 X11/Xcursor/Xcursor.h \
8084 X11/extensions/shape.h \
8085 X11/extensions/XInput.h \
8086 X11/extensions/XInput2.h \
8087 X11/extensions/Xcomposite.h \
8088 X11/extensions/Xinerama.h \
8089 X11/extensions/Xrandr.h \
8090 X11/extensions/Xrender.h \
8091 X11/extensions/xf86vmode.h \
8092 X11/extensions/xf86vmproto.h
8093 do :
8094 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8095 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_X11_XLIB_H
8096 # include <X11/Xlib.h>
8097 #endif
8098 #ifdef HAVE_X11_XUTIL_H
8099 # include <X11/Xutil.h>
8100 #endif
8102 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8103 cat >>confdefs.h <<_ACEOF
8104 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8105 _ACEOF
8109 done
8112 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
8113 then
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbQueryExtension in -lX11" >&5
8115 $as_echo_n "checking for XkbQueryExtension in -lX11... " >&6; }
8116 if ${ac_cv_lib_X11_XkbQueryExtension+:} false; then :
8117 $as_echo_n "(cached) " >&6
8118 else
8119 ac_check_lib_save_LIBS=$LIBS
8120 LIBS="-lX11 $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8122 /* end confdefs.h. */
8124 /* Override any GCC internal prototype to avoid an error.
8125 Use char because int might match the return type of a GCC
8126 builtin and then its argument prototype would still apply. */
8127 #ifdef __cplusplus
8128 extern "C"
8129 #endif
8130 char XkbQueryExtension ();
8132 main ()
8134 return XkbQueryExtension ();
8136 return 0;
8138 _ACEOF
8139 if ac_fn_c_try_link "$LINENO"; then :
8140 ac_cv_lib_X11_XkbQueryExtension=yes
8141 else
8142 ac_cv_lib_X11_XkbQueryExtension=no
8144 rm -f core conftest.err conftest.$ac_objext \
8145 conftest$ac_exeext conftest.$ac_ext
8146 LIBS=$ac_check_lib_save_LIBS
8148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
8149 $as_echo "$ac_cv_lib_X11_XkbQueryExtension" >&6; }
8150 if test "x$ac_cv_lib_X11_XkbQueryExtension" = xyes; then :
8152 $as_echo "#define HAVE_XKB 1" >>confdefs.h
8158 if test "$ac_cv_header_X11_Xcursor_Xcursor_h" = "yes"
8159 then
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcursor" >&5
8161 $as_echo_n "checking for -lXcursor... " >&6; }
8162 if ${ac_cv_lib_soname_Xcursor+:} false; then :
8163 $as_echo_n "(cached) " >&6
8164 else
8165 ac_check_soname_save_LIBS=$LIBS
8166 LIBS="-lXcursor $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8168 /* end confdefs.h. */
8170 /* Override any GCC internal prototype to avoid an error.
8171 Use char because int might match the return type of a GCC
8172 builtin and then its argument prototype would still apply. */
8173 #ifdef __cplusplus
8174 extern "C"
8175 #endif
8176 char XcursorImageLoadCursor ();
8178 main ()
8180 return XcursorImageLoadCursor ();
8182 return 0;
8184 _ACEOF
8185 if ac_fn_c_try_link "$LINENO"; then :
8186 case "$LIBEXT" in
8187 dll) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest.exe | grep "Xcursor" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8188 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'` ;;
8189 *) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXcursor\\.$LIBEXT" | sed -e "s/^.*\(libXcursor\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8190 esac
8192 rm -f core conftest.err conftest.$ac_objext \
8193 conftest$ac_exeext conftest.$ac_ext
8194 LIBS=$ac_check_soname_save_LIBS
8196 if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
8197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8198 $as_echo "not found" >&6; }
8200 else
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcursor" >&5
8202 $as_echo "$ac_cv_lib_soname_Xcursor" >&6; }
8204 cat >>confdefs.h <<_ACEOF
8205 #define SONAME_LIBXCURSOR "$ac_cv_lib_soname_Xcursor"
8206 _ACEOF
8211 if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
8212 case "x$with_xcursor" in
8213 x) as_fn_append wine_notices "|libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported." ;;
8214 xno) ;;
8215 *) as_fn_error $? "libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported.
8216 This is an error since --with-xcursor was requested." "$LINENO" 5 ;;
8217 esac
8220 if test "$ac_cv_header_X11_extensions_XInput_h" = "yes"
8221 then
8222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXi" >&5
8223 $as_echo_n "checking for -lXi... " >&6; }
8224 if ${ac_cv_lib_soname_Xi+:} false; then :
8225 $as_echo_n "(cached) " >&6
8226 else
8227 ac_check_soname_save_LIBS=$LIBS
8228 LIBS="-lXi $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8230 /* end confdefs.h. */
8232 /* Override any GCC internal prototype to avoid an error.
8233 Use char because int might match the return type of a GCC
8234 builtin and then its argument prototype would still apply. */
8235 #ifdef __cplusplus
8236 extern "C"
8237 #endif
8238 char XOpenDevice ();
8240 main ()
8242 return XOpenDevice ();
8244 return 0;
8246 _ACEOF
8247 if ac_fn_c_try_link "$LINENO"; then :
8248 case "$LIBEXT" in
8249 dll) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest.exe | grep "Xi" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8250 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'` ;;
8251 *) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXi\\.$LIBEXT" | sed -e "s/^.*\(libXi\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8252 esac
8254 rm -f core conftest.err conftest.$ac_objext \
8255 conftest$ac_exeext conftest.$ac_ext
8256 LIBS=$ac_check_soname_save_LIBS
8258 if test "x$ac_cv_lib_soname_Xi" = "x"; then :
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8260 $as_echo "not found" >&6; }
8262 else
8263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xi" >&5
8264 $as_echo "$ac_cv_lib_soname_Xi" >&6; }
8266 cat >>confdefs.h <<_ACEOF
8267 #define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
8268 _ACEOF
8273 if test "x$ac_cv_lib_soname_Xi" = "x"; then :
8274 case "x$with_xinput" in
8275 x) as_fn_append wine_notices "|libxi ${notice_platform}development files not found, the Xinput extension won't be supported." ;;
8276 xno) ;;
8277 *) as_fn_error $? "libxi ${notice_platform}development files not found, the Xinput extension won't be supported.
8278 This is an error since --with-xinput was requested." "$LINENO" 5 ;;
8279 esac
8282 if test "x$ac_cv_lib_soname_Xi" != x
8283 then
8284 if test "$ac_cv_header_X11_extensions_XInput2_h" != "yes"; then :
8285 case "x$with_xinput2" in
8286 x) as_fn_append wine_notices "|XInput2 headers not found, the XInput 2 extension won't be supported." ;;
8287 xno) ;;
8288 *) as_fn_error $? "XInput2 headers not found, the XInput 2 extension won't be supported.
8289 This is an error since --with-xinput2 was requested." "$LINENO" 5 ;;
8290 esac
8294 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
8295 then
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
8297 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
8298 if ${ac_cv_lib_Xext_XShapeQueryExtension+:} false; then :
8299 $as_echo_n "(cached) " >&6
8300 else
8301 ac_check_lib_save_LIBS=$LIBS
8302 LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8304 /* end confdefs.h. */
8306 /* Override any GCC internal prototype to avoid an error.
8307 Use char because int might match the return type of a GCC
8308 builtin and then its argument prototype would still apply. */
8309 #ifdef __cplusplus
8310 extern "C"
8311 #endif
8312 char XShapeQueryExtension ();
8314 main ()
8316 return XShapeQueryExtension ();
8318 return 0;
8320 _ACEOF
8321 if ac_fn_c_try_link "$LINENO"; then :
8322 ac_cv_lib_Xext_XShapeQueryExtension=yes
8323 else
8324 ac_cv_lib_Xext_XShapeQueryExtension=no
8326 rm -f core conftest.err conftest.$ac_objext \
8327 conftest$ac_exeext conftest.$ac_ext
8328 LIBS=$ac_check_lib_save_LIBS
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8331 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
8332 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = xyes; then :
8334 $as_echo "#define HAVE_LIBXSHAPE 1" >>confdefs.h
8339 if test "$ac_cv_lib_Xext_XShapeQueryExtension" != "yes"; then :
8340 case "x$with_xshape" in
8341 x) as_fn_append wine_notices "|XShape ${notice_platform}development files not found, XShape won't be supported." ;;
8342 xno) ;;
8343 *) as_fn_error $? "XShape ${notice_platform}development files not found, XShape won't be supported.
8344 This is an error since --with-xshape was requested." "$LINENO" 5 ;;
8345 esac
8348 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes" -o "$ac_cv_header_X11_extensions_xf86vmproto_h" = "yes"
8349 then
8350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXxf86vm" >&5
8351 $as_echo_n "checking for -lXxf86vm... " >&6; }
8352 if ${ac_cv_lib_soname_Xxf86vm+:} false; then :
8353 $as_echo_n "(cached) " >&6
8354 else
8355 ac_check_soname_save_LIBS=$LIBS
8356 LIBS="-lXxf86vm $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8358 /* end confdefs.h. */
8360 /* Override any GCC internal prototype to avoid an error.
8361 Use char because int might match the return type of a GCC
8362 builtin and then its argument prototype would still apply. */
8363 #ifdef __cplusplus
8364 extern "C"
8365 #endif
8366 char XF86VidModeQueryExtension ();
8368 main ()
8370 return XF86VidModeQueryExtension ();
8372 return 0;
8374 _ACEOF
8375 if ac_fn_c_try_link "$LINENO"; then :
8376 case "$LIBEXT" in
8377 dll) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest.exe | grep "Xxf86vm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8378 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'` ;;
8379 *) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXxf86vm\\.$LIBEXT" | sed -e "s/^.*\(libXxf86vm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8380 esac
8382 rm -f core conftest.err conftest.$ac_objext \
8383 conftest$ac_exeext conftest.$ac_ext
8384 LIBS=$ac_check_soname_save_LIBS
8386 if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
8387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8388 $as_echo "not found" >&6; }
8390 else
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xxf86vm" >&5
8392 $as_echo "$ac_cv_lib_soname_Xxf86vm" >&6; }
8394 cat >>confdefs.h <<_ACEOF
8395 #define SONAME_LIBXXF86VM "$ac_cv_lib_soname_Xxf86vm"
8396 _ACEOF
8401 if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
8402 case "x$with_xxf86vm" in
8403 x) as_fn_append wine_notices "|libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported." ;;
8404 xno) ;;
8405 *) as_fn_error $? "libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported.
8406 This is an error since --with-xxf86vm was requested." "$LINENO" 5 ;;
8407 esac
8410 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"
8411 then
8412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrender" >&5
8413 $as_echo_n "checking for -lXrender... " >&6; }
8414 if ${ac_cv_lib_soname_Xrender+:} false; then :
8415 $as_echo_n "(cached) " >&6
8416 else
8417 ac_check_soname_save_LIBS=$LIBS
8418 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8420 /* end confdefs.h. */
8422 /* Override any GCC internal prototype to avoid an error.
8423 Use char because int might match the return type of a GCC
8424 builtin and then its argument prototype would still apply. */
8425 #ifdef __cplusplus
8426 extern "C"
8427 #endif
8428 char XRenderQueryExtension ();
8430 main ()
8432 return XRenderQueryExtension ();
8434 return 0;
8436 _ACEOF
8437 if ac_fn_c_try_link "$LINENO"; then :
8438 case "$LIBEXT" in
8439 dll) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest.exe | grep "Xrender" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8440 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'` ;;
8441 *) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXrender\\.$LIBEXT" | sed -e "s/^.*\(libXrender\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8442 esac
8444 rm -f core conftest.err conftest.$ac_objext \
8445 conftest$ac_exeext conftest.$ac_ext
8446 LIBS=$ac_check_soname_save_LIBS
8448 if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
8449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8450 $as_echo "not found" >&6; }
8452 else
8453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrender" >&5
8454 $as_echo "$ac_cv_lib_soname_Xrender" >&6; }
8456 cat >>confdefs.h <<_ACEOF
8457 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
8458 _ACEOF
8460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderSetPictureTransform in -lXrender" >&5
8461 $as_echo_n "checking for XRenderSetPictureTransform in -lXrender... " >&6; }
8462 if ${ac_cv_lib_Xrender_XRenderSetPictureTransform+:} false; then :
8463 $as_echo_n "(cached) " >&6
8464 else
8465 ac_check_lib_save_LIBS=$LIBS
8466 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8468 /* end confdefs.h. */
8470 /* Override any GCC internal prototype to avoid an error.
8471 Use char because int might match the return type of a GCC
8472 builtin and then its argument prototype would still apply. */
8473 #ifdef __cplusplus
8474 extern "C"
8475 #endif
8476 char XRenderSetPictureTransform ();
8478 main ()
8480 return XRenderSetPictureTransform ();
8482 return 0;
8484 _ACEOF
8485 if ac_fn_c_try_link "$LINENO"; then :
8486 ac_cv_lib_Xrender_XRenderSetPictureTransform=yes
8487 else
8488 ac_cv_lib_Xrender_XRenderSetPictureTransform=no
8490 rm -f core conftest.err conftest.$ac_objext \
8491 conftest$ac_exeext conftest.$ac_ext
8492 LIBS=$ac_check_lib_save_LIBS
8494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5
8495 $as_echo "$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6; }
8496 if test "x$ac_cv_lib_Xrender_XRenderSetPictureTransform" = xyes; then :
8498 $as_echo "#define HAVE_XRENDERSETPICTURETRANSFORM 1" >>confdefs.h
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderCreateLinearGradient in -lXrender" >&5
8503 $as_echo_n "checking for XRenderCreateLinearGradient in -lXrender... " >&6; }
8504 if ${ac_cv_lib_Xrender_XRenderCreateLinearGradient+:} false; then :
8505 $as_echo_n "(cached) " >&6
8506 else
8507 ac_check_lib_save_LIBS=$LIBS
8508 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8510 /* end confdefs.h. */
8512 /* Override any GCC internal prototype to avoid an error.
8513 Use char because int might match the return type of a GCC
8514 builtin and then its argument prototype would still apply. */
8515 #ifdef __cplusplus
8516 extern "C"
8517 #endif
8518 char XRenderCreateLinearGradient ();
8520 main ()
8522 return XRenderCreateLinearGradient ();
8524 return 0;
8526 _ACEOF
8527 if ac_fn_c_try_link "$LINENO"; then :
8528 ac_cv_lib_Xrender_XRenderCreateLinearGradient=yes
8529 else
8530 ac_cv_lib_Xrender_XRenderCreateLinearGradient=no
8532 rm -f core conftest.err conftest.$ac_objext \
8533 conftest$ac_exeext conftest.$ac_ext
8534 LIBS=$ac_check_lib_save_LIBS
8536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderCreateLinearGradient" >&5
8537 $as_echo "$ac_cv_lib_Xrender_XRenderCreateLinearGradient" >&6; }
8538 if test "x$ac_cv_lib_Xrender_XRenderCreateLinearGradient" = xyes; then :
8540 $as_echo "#define HAVE_XRENDERCREATELINEARGRADIENT 1" >>confdefs.h
8547 if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
8548 case "x$with_xrender" in
8549 x) as_fn_append wine_warnings "|libxrender ${notice_platform}development files not found, XRender won't be supported." ;;
8550 xno) ;;
8551 *) as_fn_error $? "libxrender ${notice_platform}development files not found, XRender won't be supported.
8552 This is an error since --with-xrender was requested." "$LINENO" 5 ;;
8553 esac
8556 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes" -a "x$ac_cv_lib_soname_Xrender" != "x"
8557 then
8558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8559 /* end confdefs.h. */
8560 #include <X11/Xlib.h>
8561 #include <X11/extensions/Xrandr.h>
8563 main ()
8565 static typeof(XRRSetScreenConfigAndRate) * func; if (func) return 0;
8567 return 0;
8569 _ACEOF
8570 if ac_fn_c_try_compile "$LINENO"; then :
8571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrandr" >&5
8572 $as_echo_n "checking for -lXrandr... " >&6; }
8573 if ${ac_cv_lib_soname_Xrandr+:} false; then :
8574 $as_echo_n "(cached) " >&6
8575 else
8576 ac_check_soname_save_LIBS=$LIBS
8577 LIBS="-lXrandr $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8579 /* end confdefs.h. */
8581 /* Override any GCC internal prototype to avoid an error.
8582 Use char because int might match the return type of a GCC
8583 builtin and then its argument prototype would still apply. */
8584 #ifdef __cplusplus
8585 extern "C"
8586 #endif
8587 char XRRQueryExtension ();
8589 main ()
8591 return XRRQueryExtension ();
8593 return 0;
8595 _ACEOF
8596 if ac_fn_c_try_link "$LINENO"; then :
8597 case "$LIBEXT" in
8598 dll) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest.exe | grep "Xrandr" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8599 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'` ;;
8600 *) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXrandr\\.$LIBEXT" | sed -e "s/^.*\(libXrandr\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8601 esac
8603 rm -f core conftest.err conftest.$ac_objext \
8604 conftest$ac_exeext conftest.$ac_ext
8605 LIBS=$ac_check_soname_save_LIBS
8607 if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
8608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8609 $as_echo "not found" >&6; }
8611 else
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrandr" >&5
8613 $as_echo "$ac_cv_lib_soname_Xrandr" >&6; }
8615 cat >>confdefs.h <<_ACEOF
8616 #define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
8617 _ACEOF
8622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8624 if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
8625 case "x$with_xrandr" in
8626 x) as_fn_append wine_notices "|libxrandr ${notice_platform}development files not found, XRandr won't be supported." ;;
8627 xno) ;;
8628 *) as_fn_error $? "libxrandr ${notice_platform}development files not found, XRandr won't be supported.
8629 This is an error since --with-xrandr was requested." "$LINENO" 5 ;;
8630 esac
8633 if test "$ac_cv_header_X11_extensions_Xinerama_h" = "yes"
8634 then
8635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8636 /* end confdefs.h. */
8637 #include <X11/Xlib.h>
8638 #include <X11/extensions/Xinerama.h>
8640 main ()
8642 static typeof(XineramaQueryScreens) * func; if (func) return 0;
8644 return 0;
8646 _ACEOF
8647 if ac_fn_c_try_compile "$LINENO"; then :
8648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXinerama" >&5
8649 $as_echo_n "checking for -lXinerama... " >&6; }
8650 if ${ac_cv_lib_soname_Xinerama+:} false; then :
8651 $as_echo_n "(cached) " >&6
8652 else
8653 ac_check_soname_save_LIBS=$LIBS
8654 LIBS="-lXinerama $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8656 /* end confdefs.h. */
8658 /* Override any GCC internal prototype to avoid an error.
8659 Use char because int might match the return type of a GCC
8660 builtin and then its argument prototype would still apply. */
8661 #ifdef __cplusplus
8662 extern "C"
8663 #endif
8664 char XineramaQueryScreens ();
8666 main ()
8668 return XineramaQueryScreens ();
8670 return 0;
8672 _ACEOF
8673 if ac_fn_c_try_link "$LINENO"; then :
8674 case "$LIBEXT" in
8675 dll) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest.exe | grep "Xinerama" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8676 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'` ;;
8677 *) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXinerama\\.$LIBEXT" | sed -e "s/^.*\(libXinerama\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8678 esac
8680 rm -f core conftest.err conftest.$ac_objext \
8681 conftest$ac_exeext conftest.$ac_ext
8682 LIBS=$ac_check_soname_save_LIBS
8684 if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
8685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8686 $as_echo "not found" >&6; }
8688 else
8689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xinerama" >&5
8690 $as_echo "$ac_cv_lib_soname_Xinerama" >&6; }
8692 cat >>confdefs.h <<_ACEOF
8693 #define SONAME_LIBXINERAMA "$ac_cv_lib_soname_Xinerama"
8694 _ACEOF
8699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8701 if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
8702 case "x$with_xinerama" in
8703 x) as_fn_append wine_notices "|libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported." ;;
8704 xno) ;;
8705 *) as_fn_error $? "libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported.
8706 This is an error since --with-xinerama was requested." "$LINENO" 5 ;;
8707 esac
8710 if test "$ac_cv_header_X11_extensions_Xcomposite_h" = "yes"
8711 then
8712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcomposite" >&5
8713 $as_echo_n "checking for -lXcomposite... " >&6; }
8714 if ${ac_cv_lib_soname_Xcomposite+:} false; then :
8715 $as_echo_n "(cached) " >&6
8716 else
8717 ac_check_soname_save_LIBS=$LIBS
8718 LIBS="-lXcomposite $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8720 /* end confdefs.h. */
8722 /* Override any GCC internal prototype to avoid an error.
8723 Use char because int might match the return type of a GCC
8724 builtin and then its argument prototype would still apply. */
8725 #ifdef __cplusplus
8726 extern "C"
8727 #endif
8728 char XCompositeRedirectWindow ();
8730 main ()
8732 return XCompositeRedirectWindow ();
8734 return 0;
8736 _ACEOF
8737 if ac_fn_c_try_link "$LINENO"; then :
8738 case "$LIBEXT" in
8739 dll) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest.exe | grep "Xcomposite" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8740 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'` ;;
8741 *) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXcomposite\\.$LIBEXT" | sed -e "s/^.*\(libXcomposite\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8742 esac
8744 rm -f core conftest.err conftest.$ac_objext \
8745 conftest$ac_exeext conftest.$ac_ext
8746 LIBS=$ac_check_soname_save_LIBS
8748 if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
8749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8750 $as_echo "not found" >&6; }
8752 else
8753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcomposite" >&5
8754 $as_echo "$ac_cv_lib_soname_Xcomposite" >&6; }
8756 cat >>confdefs.h <<_ACEOF
8757 #define SONAME_LIBXCOMPOSITE "$ac_cv_lib_soname_Xcomposite"
8758 _ACEOF
8763 if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
8764 case "x$with_xcomposite" in
8765 x) as_fn_append wine_notices "|libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported." ;;
8766 xno) ;;
8767 *) as_fn_error $? "libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported.
8768 This is an error since --with-xcomposite was requested." "$LINENO" 5 ;;
8769 esac
8772 ac_fn_c_check_member "$LINENO" "XICCallback" "callback" "ac_cv_member_XICCallback_callback" "#ifdef HAVE_X11_XLIB_H
8773 #include <X11/Xlib.h>
8774 #endif
8776 if test "x$ac_cv_member_XICCallback_callback" = xyes; then :
8778 cat >>confdefs.h <<_ACEOF
8779 #define HAVE_XICCALLBACK_CALLBACK 1
8780 _ACEOF
8784 ac_fn_c_check_member "$LINENO" "XEvent" "xcookie" "ac_cv_member_XEvent_xcookie" "#ifdef HAVE_X11_XLIB_H
8785 #include <X11/Xlib.h>
8786 #endif
8788 if test "x$ac_cv_member_XEvent_xcookie" = xyes; then :
8790 cat >>confdefs.h <<_ACEOF
8791 #define HAVE_XEVENT_XCOOKIE 1
8792 _ACEOF
8799 opengl_msg=""
8800 if test "x$with_opengl" != "xno"
8801 then
8802 for ac_header in GL/gl.h GL/glx.h GL/glu.h
8803 do :
8804 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8805 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_GL_GLX_H
8806 # include <GL/glx.h>
8807 #endif
8809 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8810 cat >>confdefs.h <<_ACEOF
8811 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8812 _ACEOF
8816 done
8818 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
8819 then
8820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for up-to-date OpenGL version" >&5
8821 $as_echo_n "checking for up-to-date OpenGL version... " >&6; }
8822 if ${wine_cv_opengl_header_version_OK+:} false; then :
8823 $as_echo_n "(cached) " >&6
8824 else
8825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8826 /* end confdefs.h. */
8827 #include <GL/gl.h>
8829 main ()
8831 GLenum test = GL_UNSIGNED_SHORT_5_6_5; return (test == GL_UNSIGNED_SHORT_5_6_5);
8833 return 0;
8835 _ACEOF
8836 if ac_fn_c_try_compile "$LINENO"; then :
8837 wine_cv_opengl_header_version_OK="yes"
8838 else
8839 wine_cv_opengl_header_version_OK="no"
8841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_opengl_header_version_OK" >&5
8844 $as_echo "$wine_cv_opengl_header_version_OK" >&6; }
8846 if test "$wine_cv_opengl_header_version_OK" = "yes"
8847 then
8848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
8849 $as_echo_n "checking for -lGL... " >&6; }
8850 if ${ac_cv_lib_soname_GL+:} false; then :
8851 $as_echo_n "(cached) " >&6
8852 else
8853 ac_check_soname_save_LIBS=$LIBS
8854 LIBS="-lGL $X_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
8855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8856 /* end confdefs.h. */
8858 /* Override any GCC internal prototype to avoid an error.
8859 Use char because int might match the return type of a GCC
8860 builtin and then its argument prototype would still apply. */
8861 #ifdef __cplusplus
8862 extern "C"
8863 #endif
8864 char glXCreateContext ();
8866 main ()
8868 return glXCreateContext ();
8870 return 0;
8872 _ACEOF
8873 if ac_fn_c_try_link "$LINENO"; then :
8874 case "$LIBEXT" in
8875 dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8876 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'` ;;
8877 *) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8878 esac
8880 rm -f core conftest.err conftest.$ac_objext \
8881 conftest$ac_exeext conftest.$ac_ext
8882 LIBS=$ac_check_soname_save_LIBS
8884 if test "x$ac_cv_lib_soname_GL" = "x"; then :
8885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8886 $as_echo "not found" >&6; }
8887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
8888 $as_echo_n "checking for -lGL... " >&6; }
8889 if ${ac_cv_lib_soname_GL+:} false; then :
8890 $as_echo_n "(cached) " >&6
8891 else
8892 ac_check_soname_save_LIBS=$LIBS
8893 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"
8894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8895 /* end confdefs.h. */
8897 /* Override any GCC internal prototype to avoid an error.
8898 Use char because int might match the return type of a GCC
8899 builtin and then its argument prototype would still apply. */
8900 #ifdef __cplusplus
8901 extern "C"
8902 #endif
8903 char glXCreateContext ();
8905 main ()
8907 return glXCreateContext ();
8909 return 0;
8911 _ACEOF
8912 if ac_fn_c_try_link "$LINENO"; then :
8913 case "$LIBEXT" in
8914 dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8915 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'` ;;
8916 *) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8917 esac
8919 rm -f core conftest.err conftest.$ac_objext \
8920 conftest$ac_exeext conftest.$ac_ext
8921 LIBS=$ac_check_soname_save_LIBS
8923 if test "x$ac_cv_lib_soname_GL" = "x"; then :
8924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8925 $as_echo "not found" >&6; }
8926 if test -f /usr/X11R6/lib/libGL.a
8927 then
8928 opengl_msg="/usr/X11R6/lib/libGL.a is present on your system.
8929 This probably prevents linking to OpenGL. Try deleting the file and restarting configure."
8930 else
8931 opengl_msg="No OpenGL library found on this system."
8933 else
8934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
8935 $as_echo "$ac_cv_lib_soname_GL" >&6; }
8937 cat >>confdefs.h <<_ACEOF
8938 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
8939 _ACEOF
8941 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"
8943 $as_echo "#define HAVE_OPENGL 1" >>confdefs.h
8946 else
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
8948 $as_echo "$ac_cv_lib_soname_GL" >&6; }
8950 cat >>confdefs.h <<_ACEOF
8951 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
8952 _ACEOF
8954 OPENGL_LIBS="-lGL"
8956 $as_echo "#define HAVE_OPENGL 1" >>confdefs.h
8959 if test "$ac_cv_header_GL_glu_h" = "yes"
8960 then
8961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGLU" >&5
8962 $as_echo_n "checking for -lGLU... " >&6; }
8963 if ${ac_cv_lib_soname_GLU+:} false; then :
8964 $as_echo_n "(cached) " >&6
8965 else
8966 ac_check_soname_save_LIBS=$LIBS
8967 LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
8968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8969 /* end confdefs.h. */
8971 /* Override any GCC internal prototype to avoid an error.
8972 Use char because int might match the return type of a GCC
8973 builtin and then its argument prototype would still apply. */
8974 #ifdef __cplusplus
8975 extern "C"
8976 #endif
8977 char gluLookAt ();
8979 main ()
8981 return gluLookAt ();
8983 return 0;
8985 _ACEOF
8986 if ac_fn_c_try_link "$LINENO"; then :
8987 case "$LIBEXT" in
8988 dll) ac_cv_lib_soname_GLU=`$ac_cv_path_LDD conftest.exe | grep "GLU" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8989 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'` ;;
8990 *) ac_cv_lib_soname_GLU=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGLU\\.$LIBEXT" | sed -e "s/^.*\(libGLU\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8991 esac
8993 rm -f core conftest.err conftest.$ac_objext \
8994 conftest$ac_exeext conftest.$ac_ext
8995 LIBS=$ac_check_soname_save_LIBS
8997 if test "x$ac_cv_lib_soname_GLU" = "x"; then :
8998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8999 $as_echo "not found" >&6; }
9001 else
9002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GLU" >&5
9003 $as_echo "$ac_cv_lib_soname_GLU" >&6; }
9005 cat >>confdefs.h <<_ACEOF
9006 #define SONAME_LIBGLU "$ac_cv_lib_soname_GLU"
9007 _ACEOF
9012 if test "x$ac_cv_lib_soname_GLU" = "x"; then :
9013 case "x$with_glu" in
9014 x) as_fn_append wine_notices "|libGLU ${notice_platform}development files not found, GLU won't be supported." ;;
9015 xno) ;;
9016 *) as_fn_error $? "libGLU ${notice_platform}development files not found, GLU won't be supported.
9017 This is an error since --with-glu was requested." "$LINENO" 5 ;;
9018 esac
9020 else
9021 opengl_msg="Old Mesa headers detected. Consider upgrading your Mesa libraries."
9023 else
9024 opengl_msg="OpenGL development headers not found."
9026 test -n "$opengl_msg" && enable_opengl32=${enable_opengl32:-no}
9027 test "x$ac_cv_lib_soname_GLU" = "x" && enable_glu32=${enable_glu32:-no}
9028 else
9029 enable_opengl32=${enable_opengl32:-no}
9030 enable_glu32=${enable_glu32:-no}
9032 if test -n "$opengl_msg"; then :
9033 case "x$with_opengl" in
9034 x) as_fn_append wine_warnings "|$opengl_msg
9035 OpenGL and Direct3D won't be supported." ;;
9036 xno) ;;
9037 *) as_fn_error $? "$opengl_msg
9038 OpenGL and Direct3D won't be supported.
9039 This is an error since --with-opengl was requested." "$LINENO" 5 ;;
9040 esac
9043 CPPFLAGS="$ac_save_CPPFLAGS"
9044 else
9045 XLIB=""
9046 X_CFLAGS=""
9047 X_LIBS=""
9048 enable_winex11_drv=${enable_winex11_drv:-no}
9049 enable_opengl32=${enable_opengl32:-no}
9050 enable_glu32=${enable_glu32:-no}
9052 if test "x$XLIB" = "x"; then :
9053 case "x$with_x" in
9054 xno) ;;
9055 *) as_fn_error $? "X ${notice_platform}development files not found. Wine will be built
9056 without X support, which probably isn't what you want. You will need
9057 to install ${notice_platform}development packages of Xlib/Xfree86 at the very least.
9058 Use the --without-x option if you really want this." "$LINENO" 5 ;;
9059 esac
9062 if test "$ac_cv_header_CL_cl_h" = "yes"
9063 then
9064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clGetPlatformInfo in -lOpenCL" >&5
9065 $as_echo_n "checking for clGetPlatformInfo in -lOpenCL... " >&6; }
9066 if ${ac_cv_lib_OpenCL_clGetPlatformInfo+:} false; then :
9067 $as_echo_n "(cached) " >&6
9068 else
9069 ac_check_lib_save_LIBS=$LIBS
9070 LIBS="-lOpenCL $LIBS"
9071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9072 /* end confdefs.h. */
9074 /* Override any GCC internal prototype to avoid an error.
9075 Use char because int might match the return type of a GCC
9076 builtin and then its argument prototype would still apply. */
9077 #ifdef __cplusplus
9078 extern "C"
9079 #endif
9080 char clGetPlatformInfo ();
9082 main ()
9084 return clGetPlatformInfo ();
9086 return 0;
9088 _ACEOF
9089 if ac_fn_c_try_link "$LINENO"; then :
9090 ac_cv_lib_OpenCL_clGetPlatformInfo=yes
9091 else
9092 ac_cv_lib_OpenCL_clGetPlatformInfo=no
9094 rm -f core conftest.err conftest.$ac_objext \
9095 conftest$ac_exeext conftest.$ac_ext
9096 LIBS=$ac_check_lib_save_LIBS
9098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_OpenCL_clGetPlatformInfo" >&5
9099 $as_echo "$ac_cv_lib_OpenCL_clGetPlatformInfo" >&6; }
9100 if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" = xyes; then :
9101 LIBOPENCL="-lOpenCL"
9106 if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes; then :
9107 case "x$with_opencl" in
9108 x) as_fn_append wine_notices "|OpenCL ${notice_platform}development files not found, OpenCL won't be supported." ;;
9109 xno) ;;
9110 *) as_fn_error $? "OpenCL ${notice_platform}development files not found, OpenCL won't be supported.
9111 This is an error since --with-opencl was requested." "$LINENO" 5 ;;
9112 esac
9114 test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes && enable_opencl=${enable_opencl:-no}
9117 XML2LIBS=""
9119 XML2INCL=""
9121 XSLTINCL=""
9123 if test "x$with_xml" != "xno"
9124 then
9125 ac_save_CPPFLAGS="$CPPFLAGS"
9126 if test "$PKG_CONFIG" != "false"
9127 then
9128 ac_xml_libs="`$PKG_CONFIG --libs libxml-2.0 2>/dev/null`"
9129 ac_xml_cflags="`$PKG_CONFIG --cflags libxml-2.0 2>/dev/null`"
9130 else
9131 ac_xml_libs="`xml2-config --libs 2>/dev/null`"
9132 ac_xml_cflags="`xml2-config --cflags 2>/dev/null`"
9134 CPPFLAGS="$CPPFLAGS $ac_xml_cflags"
9135 for ac_header in libxml/parser.h libxml/xmlsave.h libxml/SAX2.h
9136 do :
9137 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9138 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9139 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9140 cat >>confdefs.h <<_ACEOF
9141 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9142 _ACEOF
9146 done
9148 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"
9149 then
9150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseMemory in -lxml2" >&5
9151 $as_echo_n "checking for xmlParseMemory in -lxml2... " >&6; }
9152 if ${ac_cv_lib_xml2_xmlParseMemory+:} false; then :
9153 $as_echo_n "(cached) " >&6
9154 else
9155 ac_check_lib_save_LIBS=$LIBS
9156 LIBS="-lxml2 $ac_xml_libs $LIBS"
9157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9158 /* end confdefs.h. */
9160 /* Override any GCC internal prototype to avoid an error.
9161 Use char because int might match the return type of a GCC
9162 builtin and then its argument prototype would still apply. */
9163 #ifdef __cplusplus
9164 extern "C"
9165 #endif
9166 char xmlParseMemory ();
9168 main ()
9170 return xmlParseMemory ();
9172 return 0;
9174 _ACEOF
9175 if ac_fn_c_try_link "$LINENO"; then :
9176 ac_cv_lib_xml2_xmlParseMemory=yes
9177 else
9178 ac_cv_lib_xml2_xmlParseMemory=no
9180 rm -f core conftest.err conftest.$ac_objext \
9181 conftest$ac_exeext conftest.$ac_ext
9182 LIBS=$ac_check_lib_save_LIBS
9184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseMemory" >&5
9185 $as_echo "$ac_cv_lib_xml2_xmlParseMemory" >&6; }
9186 if test "x$ac_cv_lib_xml2_xmlParseMemory" = xyes; then :
9188 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
9190 XML2LIBS="$ac_xml_libs"
9191 XML2INCL="$ac_xml_cflags"
9194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlReadMemory in -lxml2" >&5
9195 $as_echo_n "checking for xmlReadMemory in -lxml2... " >&6; }
9196 if ${ac_cv_lib_xml2_xmlReadMemory+:} false; then :
9197 $as_echo_n "(cached) " >&6
9198 else
9199 ac_check_lib_save_LIBS=$LIBS
9200 LIBS="-lxml2 $ac_xml_libs $LIBS"
9201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9202 /* end confdefs.h. */
9204 /* Override any GCC internal prototype to avoid an error.
9205 Use char because int might match the return type of a GCC
9206 builtin and then its argument prototype would still apply. */
9207 #ifdef __cplusplus
9208 extern "C"
9209 #endif
9210 char xmlReadMemory ();
9212 main ()
9214 return xmlReadMemory ();
9216 return 0;
9218 _ACEOF
9219 if ac_fn_c_try_link "$LINENO"; then :
9220 ac_cv_lib_xml2_xmlReadMemory=yes
9221 else
9222 ac_cv_lib_xml2_xmlReadMemory=no
9224 rm -f core conftest.err conftest.$ac_objext \
9225 conftest$ac_exeext conftest.$ac_ext
9226 LIBS=$ac_check_lib_save_LIBS
9228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlReadMemory" >&5
9229 $as_echo "$ac_cv_lib_xml2_xmlReadMemory" >&6; }
9230 if test "x$ac_cv_lib_xml2_xmlReadMemory" = xyes; then :
9232 $as_echo "#define HAVE_XMLREADMEMORY 1" >>confdefs.h
9236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlNewDocPI in -lxml2" >&5
9237 $as_echo_n "checking for xmlNewDocPI in -lxml2... " >&6; }
9238 if ${ac_cv_lib_xml2_xmlNewDocPI+:} false; then :
9239 $as_echo_n "(cached) " >&6
9240 else
9241 ac_check_lib_save_LIBS=$LIBS
9242 LIBS="-lxml2 $ac_xml_libs $LIBS"
9243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9244 /* end confdefs.h. */
9246 /* Override any GCC internal prototype to avoid an error.
9247 Use char because int might match the return type of a GCC
9248 builtin and then its argument prototype would still apply. */
9249 #ifdef __cplusplus
9250 extern "C"
9251 #endif
9252 char xmlNewDocPI ();
9254 main ()
9256 return xmlNewDocPI ();
9258 return 0;
9260 _ACEOF
9261 if ac_fn_c_try_link "$LINENO"; then :
9262 ac_cv_lib_xml2_xmlNewDocPI=yes
9263 else
9264 ac_cv_lib_xml2_xmlNewDocPI=no
9266 rm -f core conftest.err conftest.$ac_objext \
9267 conftest$ac_exeext conftest.$ac_ext
9268 LIBS=$ac_check_lib_save_LIBS
9270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlNewDocPI" >&5
9271 $as_echo "$ac_cv_lib_xml2_xmlNewDocPI" >&6; }
9272 if test "x$ac_cv_lib_xml2_xmlNewDocPI" = xyes; then :
9274 $as_echo "#define HAVE_XMLNEWDOCPI 1" >>confdefs.h
9278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetParserStructuredErrors in -lxml2" >&5
9279 $as_echo_n "checking for xmlSchemaSetParserStructuredErrors in -lxml2... " >&6; }
9280 if ${ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors+:} false; then :
9281 $as_echo_n "(cached) " >&6
9282 else
9283 ac_check_lib_save_LIBS=$LIBS
9284 LIBS="-lxml2 $ac_xml_libs $LIBS"
9285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9286 /* end confdefs.h. */
9288 /* Override any GCC internal prototype to avoid an error.
9289 Use char because int might match the return type of a GCC
9290 builtin and then its argument prototype would still apply. */
9291 #ifdef __cplusplus
9292 extern "C"
9293 #endif
9294 char xmlSchemaSetParserStructuredErrors ();
9296 main ()
9298 return xmlSchemaSetParserStructuredErrors ();
9300 return 0;
9302 _ACEOF
9303 if ac_fn_c_try_link "$LINENO"; then :
9304 ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=yes
9305 else
9306 ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=no
9308 rm -f core conftest.err conftest.$ac_objext \
9309 conftest$ac_exeext conftest.$ac_ext
9310 LIBS=$ac_check_lib_save_LIBS
9312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&5
9313 $as_echo "$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&6; }
9314 if test "x$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" = xyes; then :
9316 $as_echo "#define HAVE_XMLSCHEMASSETPARSERSTRUCTUREDERRORS 1" >>confdefs.h
9320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetValidStructuredErrors in -lxml2" >&5
9321 $as_echo_n "checking for xmlSchemaSetValidStructuredErrors in -lxml2... " >&6; }
9322 if ${ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors+:} false; then :
9323 $as_echo_n "(cached) " >&6
9324 else
9325 ac_check_lib_save_LIBS=$LIBS
9326 LIBS="-lxml2 $ac_xml_libs $LIBS"
9327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9328 /* end confdefs.h. */
9330 /* Override any GCC internal prototype to avoid an error.
9331 Use char because int might match the return type of a GCC
9332 builtin and then its argument prototype would still apply. */
9333 #ifdef __cplusplus
9334 extern "C"
9335 #endif
9336 char xmlSchemaSetValidStructuredErrors ();
9338 main ()
9340 return xmlSchemaSetValidStructuredErrors ();
9342 return 0;
9344 _ACEOF
9345 if ac_fn_c_try_link "$LINENO"; then :
9346 ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=yes
9347 else
9348 ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=no
9350 rm -f core conftest.err conftest.$ac_objext \
9351 conftest$ac_exeext conftest.$ac_ext
9352 LIBS=$ac_check_lib_save_LIBS
9354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&5
9355 $as_echo "$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&6; }
9356 if test "x$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" = xyes; then :
9358 $as_echo "#define HAVE_XMLSCHEMASSETVALIDSTRUCTUREDERRORS 1" >>confdefs.h
9362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlFirstElementChild in -lxml2" >&5
9363 $as_echo_n "checking for xmlFirstElementChild in -lxml2... " >&6; }
9364 if ${ac_cv_lib_xml2_xmlFirstElementChild+:} false; then :
9365 $as_echo_n "(cached) " >&6
9366 else
9367 ac_check_lib_save_LIBS=$LIBS
9368 LIBS="-lxml2 $ac_xml_libs $LIBS"
9369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9370 /* end confdefs.h. */
9372 /* Override any GCC internal prototype to avoid an error.
9373 Use char because int might match the return type of a GCC
9374 builtin and then its argument prototype would still apply. */
9375 #ifdef __cplusplus
9376 extern "C"
9377 #endif
9378 char xmlFirstElementChild ();
9380 main ()
9382 return xmlFirstElementChild ();
9384 return 0;
9386 _ACEOF
9387 if ac_fn_c_try_link "$LINENO"; then :
9388 ac_cv_lib_xml2_xmlFirstElementChild=yes
9389 else
9390 ac_cv_lib_xml2_xmlFirstElementChild=no
9392 rm -f core conftest.err conftest.$ac_objext \
9393 conftest$ac_exeext conftest.$ac_ext
9394 LIBS=$ac_check_lib_save_LIBS
9396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlFirstElementChild" >&5
9397 $as_echo "$ac_cv_lib_xml2_xmlFirstElementChild" >&6; }
9398 if test "x$ac_cv_lib_xml2_xmlFirstElementChild" = xyes; then :
9400 $as_echo "#define HAVE_XMLFIRSTELEMENTCHILD 1" >>confdefs.h
9404 ac_fn_c_check_type "$LINENO" "xmlDocProperties" "ac_cv_type_xmlDocProperties" "#include <libxml/tree.h>
9406 if test "x$ac_cv_type_xmlDocProperties" = xyes; then :
9408 $as_echo "#define HAVE_XMLDOC_PROPERTIES 1" >>confdefs.h
9413 CPPFLAGS="$ac_save_CPPFLAGS"
9415 if test "$ac_cv_lib_xml2_xmlParseMemory" != "yes"; then :
9416 case "x$with_xml" in
9417 x) as_fn_append wine_warnings "|libxml2 ${notice_platform}development files not found (or too old), XML won't be supported." ;;
9418 xno) ;;
9419 *) as_fn_error $? "libxml2 ${notice_platform}development files not found (or too old), XML won't be supported.
9420 This is an error since --with-xml was requested." "$LINENO" 5 ;;
9421 esac
9424 if test "x$with_xslt" != "xno"
9425 then
9426 if test "$PKG_CONFIG" != "false"
9427 then
9428 ac_xslt_libs="`$PKG_CONFIG --libs libxslt 2>/dev/null`"
9429 ac_xslt_cflags="`$PKG_CONFIG --cflags libxslt 2>/dev/null`"
9430 else
9431 ac_xslt_libs="`xslt-config --libs 2>/dev/null`"
9432 ac_xslt_cflags="`xslt-config --cflags 2>/dev/null`"
9434 ac_save_CPPFLAGS="$CPPFLAGS"
9435 CPPFLAGS="$CPPFLAGS $ac_xslt_cflags"
9436 for ac_header in libxslt/pattern.h libxslt/transform.h
9437 do :
9438 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9439 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_LIBXSLT_PATTERN_H
9440 # include <libxslt/pattern.h>
9441 #endif
9443 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9444 cat >>confdefs.h <<_ACEOF
9445 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9446 _ACEOF
9450 done
9452 CPPFLAGS="$ac_save_CPPFLAGS"
9453 if test "$ac_cv_header_libxslt_transform_h" = "yes"
9454 then
9455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lxslt" >&5
9456 $as_echo_n "checking for -lxslt... " >&6; }
9457 if ${ac_cv_lib_soname_xslt+:} false; then :
9458 $as_echo_n "(cached) " >&6
9459 else
9460 ac_check_soname_save_LIBS=$LIBS
9461 LIBS="-lxslt $ac_xslt_libs $LIBS"
9462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9463 /* end confdefs.h. */
9465 /* Override any GCC internal prototype to avoid an error.
9466 Use char because int might match the return type of a GCC
9467 builtin and then its argument prototype would still apply. */
9468 #ifdef __cplusplus
9469 extern "C"
9470 #endif
9471 char xsltCompilePattern ();
9473 main ()
9475 return xsltCompilePattern ();
9477 return 0;
9479 _ACEOF
9480 if ac_fn_c_try_link "$LINENO"; then :
9481 case "$LIBEXT" in
9482 dll) ac_cv_lib_soname_xslt=`$ac_cv_path_LDD conftest.exe | grep "xslt" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9483 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'` ;;
9484 *) ac_cv_lib_soname_xslt=`$ac_cv_path_LDD conftest$ac_exeext | grep "libxslt\\.$LIBEXT" | sed -e "s/^.*\(libxslt\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9485 esac
9487 rm -f core conftest.err conftest.$ac_objext \
9488 conftest$ac_exeext conftest.$ac_ext
9489 LIBS=$ac_check_soname_save_LIBS
9491 if test "x$ac_cv_lib_soname_xslt" = "x"; then :
9492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9493 $as_echo "not found" >&6; }
9495 else
9496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_xslt" >&5
9497 $as_echo "$ac_cv_lib_soname_xslt" >&6; }
9499 cat >>confdefs.h <<_ACEOF
9500 #define SONAME_LIBXSLT "$ac_cv_lib_soname_xslt"
9501 _ACEOF
9503 XSLTINCL="$ac_xslt_cflags"
9507 if test "x$ac_cv_lib_soname_xslt" = "x"; then :
9508 case "x$with_xslt" in
9509 x) as_fn_append wine_warnings "|libxslt ${notice_platform}development files not found, xslt won't be supported." ;;
9510 xno) ;;
9511 *) as_fn_error $? "libxslt ${notice_platform}development files not found, xslt won't be supported.
9512 This is an error since --with-xslt was requested." "$LINENO" 5 ;;
9513 esac
9516 if test "x$with_dbus" != "xno"
9517 then
9518 ac_save_CPPFLAGS="$CPPFLAGS"
9519 if test "$PKG_CONFIG" != "false"
9520 then
9521 ac_dbus_libs="`$PKG_CONFIG --libs dbus-1 2>/dev/null`"
9522 ac_dbus_cflags="`$PKG_CONFIG --cflags dbus-1 2>/dev/null`"
9523 CPPFLAGS="$CPPFLAGS $ac_dbus_cflags"
9525 ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
9526 if test "x$ac_cv_header_dbus_dbus_h" = xyes; then :
9527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ldbus-1" >&5
9528 $as_echo_n "checking for -ldbus-1... " >&6; }
9529 if ${ac_cv_lib_soname_dbus_1+:} false; then :
9530 $as_echo_n "(cached) " >&6
9531 else
9532 ac_check_soname_save_LIBS=$LIBS
9533 LIBS="-ldbus-1 $ac_dbus_libs $LIBS"
9534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9535 /* end confdefs.h. */
9537 /* Override any GCC internal prototype to avoid an error.
9538 Use char because int might match the return type of a GCC
9539 builtin and then its argument prototype would still apply. */
9540 #ifdef __cplusplus
9541 extern "C"
9542 #endif
9543 char dbus_connection_close ();
9545 main ()
9547 return dbus_connection_close ();
9549 return 0;
9551 _ACEOF
9552 if ac_fn_c_try_link "$LINENO"; then :
9553 case "$LIBEXT" in
9554 dll) ac_cv_lib_soname_dbus_1=`$ac_cv_path_LDD conftest.exe | grep "dbus-1" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9555 dylib) ac_cv_lib_soname_dbus_1=`otool -L conftest$ac_exeext | grep "libdbus-1\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libdbus-1\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
9556 *) ac_cv_lib_soname_dbus_1=`$ac_cv_path_LDD conftest$ac_exeext | grep "libdbus-1\\.$LIBEXT" | sed -e "s/^.*\(libdbus-1\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9557 esac
9559 rm -f core conftest.err conftest.$ac_objext \
9560 conftest$ac_exeext conftest.$ac_ext
9561 LIBS=$ac_check_soname_save_LIBS
9563 if test "x$ac_cv_lib_soname_dbus_1" = "x"; then :
9564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9565 $as_echo "not found" >&6; }
9567 else
9568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_dbus_1" >&5
9569 $as_echo "$ac_cv_lib_soname_dbus_1" >&6; }
9571 cat >>confdefs.h <<_ACEOF
9572 #define SONAME_LIBDBUS_1 "$ac_cv_lib_soname_dbus_1"
9573 _ACEOF
9575 DBUSINCL="$ac_dbus_cflags"
9581 CPPFLAGS="$ac_save_CPPFLAGS"
9583 if test "x$ac_cv_lib_soname_dbus_1" = "x" -a \
9584 "x$ac_cv_header_DiskArbitration_DiskArbitration_h" != "xyes"; then :
9585 case "x$with_dbus" in
9586 x) as_fn_append wine_notices "|libdbus ${notice_platform}development files not found, no dynamic device support." ;;
9587 xno) ;;
9588 *) as_fn_error $? "libdbus ${notice_platform}development files not found, no dynamic device support.
9589 This is an error since --with-dbus was requested." "$LINENO" 5 ;;
9590 esac
9593 if test "x$with_hal" != "xno" -a "x$ac_cv_lib_soname_dbus_1" != x
9594 then
9595 ac_save_CPPFLAGS="$CPPFLAGS"
9596 if test "$PKG_CONFIG" != "false"
9597 then
9598 ac_hal_libs="`$PKG_CONFIG --libs hal 2>/dev/null`"
9599 ac_hal_cflags="`$PKG_CONFIG --cflags hal 2>/dev/null`"
9600 CPPFLAGS="$CPPFLAGS $ac_hal_cflags"
9602 ac_fn_c_check_header_mongrel "$LINENO" "hal/libhal.h" "ac_cv_header_hal_libhal_h" "$ac_includes_default"
9603 if test "x$ac_cv_header_hal_libhal_h" = xyes; then :
9604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lhal" >&5
9605 $as_echo_n "checking for -lhal... " >&6; }
9606 if ${ac_cv_lib_soname_hal+:} false; then :
9607 $as_echo_n "(cached) " >&6
9608 else
9609 ac_check_soname_save_LIBS=$LIBS
9610 LIBS="-lhal $ac_hal_libs $LIBS"
9611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9612 /* end confdefs.h. */
9614 /* Override any GCC internal prototype to avoid an error.
9615 Use char because int might match the return type of a GCC
9616 builtin and then its argument prototype would still apply. */
9617 #ifdef __cplusplus
9618 extern "C"
9619 #endif
9620 char libhal_ctx_new ();
9622 main ()
9624 return libhal_ctx_new ();
9626 return 0;
9628 _ACEOF
9629 if ac_fn_c_try_link "$LINENO"; then :
9630 case "$LIBEXT" in
9631 dll) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest.exe | grep "hal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9632 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'` ;;
9633 *) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest$ac_exeext | grep "libhal\\.$LIBEXT" | sed -e "s/^.*\(libhal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9634 esac
9636 rm -f core conftest.err conftest.$ac_objext \
9637 conftest$ac_exeext conftest.$ac_ext
9638 LIBS=$ac_check_soname_save_LIBS
9640 if test "x$ac_cv_lib_soname_hal" = "x"; then :
9641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9642 $as_echo "not found" >&6; }
9644 else
9645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_hal" >&5
9646 $as_echo "$ac_cv_lib_soname_hal" >&6; }
9648 cat >>confdefs.h <<_ACEOF
9649 #define SONAME_LIBHAL "$ac_cv_lib_soname_hal"
9650 _ACEOF
9652 HALINCL="$ac_hal_cflags"
9658 CPPFLAGS="$ac_save_CPPFLAGS"
9659 if test "x$ac_cv_lib_soname_hal" = "x" -a \
9660 "x$ac_cv_header_DiskArbitration_DiskArbitration_h" != "xyes"; then :
9661 case "x$with_hal" in
9662 x) as_fn_append wine_notices "|libhal ${notice_platform}development files not found, no legacy dynamic device support." ;;
9663 xno) ;;
9664 *) as_fn_error $? "libhal ${notice_platform}development files not found, no legacy dynamic device support.
9665 This is an error since --with-hal was requested." "$LINENO" 5 ;;
9666 esac
9670 if test "x$with_gnutls" != "xno"
9671 then
9672 ac_save_CPPFLAGS="$CPPFLAGS"
9673 if test "$PKG_CONFIG" != "false"
9674 then
9675 ac_gnutls_libs="`$PKG_CONFIG --libs gnutls 2>/dev/null`"
9676 ac_gnutls_cflags="`$PKG_CONFIG --cflags gnutls 2>/dev/null`"
9677 CPPFLAGS="$CPPFLAGS $ac_gnutls_cflags"
9679 ac_fn_c_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default"
9680 if test "x$ac_cv_header_gnutls_gnutls_h" = xyes; then :
9681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9682 /* end confdefs.h. */
9683 #include <gnutls/gnutls.h>
9685 main ()
9687 static typeof(gnutls_mac_get_key_size) *func; if (func) return 0;
9689 return 0;
9691 _ACEOF
9692 if ac_fn_c_try_compile "$LINENO"; then :
9693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgnutls" >&5
9694 $as_echo_n "checking for -lgnutls... " >&6; }
9695 if ${ac_cv_lib_soname_gnutls+:} false; then :
9696 $as_echo_n "(cached) " >&6
9697 else
9698 ac_check_soname_save_LIBS=$LIBS
9699 LIBS="-lgnutls $ac_gnutls_libs $LIBS"
9700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9701 /* end confdefs.h. */
9703 /* Override any GCC internal prototype to avoid an error.
9704 Use char because int might match the return type of a GCC
9705 builtin and then its argument prototype would still apply. */
9706 #ifdef __cplusplus
9707 extern "C"
9708 #endif
9709 char gnutls_global_init ();
9711 main ()
9713 return gnutls_global_init ();
9715 return 0;
9717 _ACEOF
9718 if ac_fn_c_try_link "$LINENO"; then :
9719 case "$LIBEXT" in
9720 dll) ac_cv_lib_soname_gnutls=`$ac_cv_path_LDD conftest.exe | grep "gnutls" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9721 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'` ;;
9722 *) ac_cv_lib_soname_gnutls=`$ac_cv_path_LDD conftest$ac_exeext | grep "libgnutls\\.$LIBEXT" | sed -e "s/^.*\(libgnutls\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9723 esac
9725 rm -f core conftest.err conftest.$ac_objext \
9726 conftest$ac_exeext conftest.$ac_ext
9727 LIBS=$ac_check_soname_save_LIBS
9729 if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
9730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9731 $as_echo "not found" >&6; }
9733 else
9734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gnutls" >&5
9735 $as_echo "$ac_cv_lib_soname_gnutls" >&6; }
9737 cat >>confdefs.h <<_ACEOF
9738 #define SONAME_LIBGNUTLS "$ac_cv_lib_soname_gnutls"
9739 _ACEOF
9741 GNUTLSINCL="$ac_gnutls_cflags"
9745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9749 CPPFLAGS="$ac_save_CPPFLAGS"
9751 if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
9752 case "x$with_gnutls" in
9753 x) as_fn_append wine_notices "|libgnutls ${notice_platform}development files not found, no schannel support." ;;
9754 xno) ;;
9755 *) as_fn_error $? "libgnutls ${notice_platform}development files not found, no schannel support.
9756 This is an error since --with-gnutls was requested." "$LINENO" 5 ;;
9757 esac
9760 CURSESLIBS=""
9761 if test "$ac_cv_header_ncurses_h" = "yes"
9762 then
9763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lncurses" >&5
9764 $as_echo_n "checking for -lncurses... " >&6; }
9765 if ${ac_cv_lib_soname_ncurses+:} false; then :
9766 $as_echo_n "(cached) " >&6
9767 else
9768 ac_check_soname_save_LIBS=$LIBS
9769 LIBS="-lncurses $LIBS"
9770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9771 /* end confdefs.h. */
9773 /* Override any GCC internal prototype to avoid an error.
9774 Use char because int might match the return type of a GCC
9775 builtin and then its argument prototype would still apply. */
9776 #ifdef __cplusplus
9777 extern "C"
9778 #endif
9779 char waddch ();
9781 main ()
9783 return waddch ();
9785 return 0;
9787 _ACEOF
9788 if ac_fn_c_try_link "$LINENO"; then :
9789 case "$LIBEXT" in
9790 dll) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest.exe | grep "ncurses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9791 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'` ;;
9792 *) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest$ac_exeext | grep "libncurses\\.$LIBEXT" | sed -e "s/^.*\(libncurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9793 esac
9795 rm -f core conftest.err conftest.$ac_objext \
9796 conftest$ac_exeext conftest.$ac_ext
9797 LIBS=$ac_check_soname_save_LIBS
9799 if test "x$ac_cv_lib_soname_ncurses" = "x"; then :
9800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9801 $as_echo "not found" >&6; }
9803 else
9804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ncurses" >&5
9805 $as_echo "$ac_cv_lib_soname_ncurses" >&6; }
9807 cat >>confdefs.h <<_ACEOF
9808 #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
9809 _ACEOF
9811 CURSESLIBS="-lncurses"
9813 elif test "$ac_cv_header_curses_h" = "yes"
9814 then
9815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcurses" >&5
9816 $as_echo_n "checking for -lcurses... " >&6; }
9817 if ${ac_cv_lib_soname_curses+:} false; then :
9818 $as_echo_n "(cached) " >&6
9819 else
9820 ac_check_soname_save_LIBS=$LIBS
9821 LIBS="-lcurses $LIBS"
9822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9823 /* end confdefs.h. */
9825 /* Override any GCC internal prototype to avoid an error.
9826 Use char because int might match the return type of a GCC
9827 builtin and then its argument prototype would still apply. */
9828 #ifdef __cplusplus
9829 extern "C"
9830 #endif
9831 char waddch ();
9833 main ()
9835 return waddch ();
9837 return 0;
9839 _ACEOF
9840 if ac_fn_c_try_link "$LINENO"; then :
9841 case "$LIBEXT" in
9842 dll) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest.exe | grep "curses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9843 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'` ;;
9844 *) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcurses\\.$LIBEXT" | sed -e "s/^.*\(libcurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9845 esac
9847 rm -f core conftest.err conftest.$ac_objext \
9848 conftest$ac_exeext conftest.$ac_ext
9849 LIBS=$ac_check_soname_save_LIBS
9851 if test "x$ac_cv_lib_soname_curses" = "x"; then :
9852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9853 $as_echo "not found" >&6; }
9855 else
9856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_curses" >&5
9857 $as_echo "$ac_cv_lib_soname_curses" >&6; }
9859 cat >>confdefs.h <<_ACEOF
9860 #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
9861 _ACEOF
9863 CURSESLIBS="-lcurses"
9866 ac_save_LIBS="$LIBS"
9867 LIBS="$LIBS $CURSESLIBS"
9868 for ac_func in mousemask
9869 do :
9870 ac_fn_c_check_func "$LINENO" "mousemask" "ac_cv_func_mousemask"
9871 if test "x$ac_cv_func_mousemask" = xyes; then :
9872 cat >>confdefs.h <<_ACEOF
9873 #define HAVE_MOUSEMASK 1
9874 _ACEOF
9877 done
9879 LIBS="$ac_save_LIBS"
9880 if test "x$ac_cv_lib_soname_curses$ac_cv_lib_soname_ncurses" = "x"; then :
9881 case "x$with_curses" in
9882 x) as_fn_append wine_notices "|lib(n)curses ${notice_platform}development files not found, curses won't be supported." ;;
9883 xno) ;;
9884 *) as_fn_error $? "lib(n)curses ${notice_platform}development files not found, curses won't be supported.
9885 This is an error since --with-curses was requested." "$LINENO" 5 ;;
9886 esac
9889 if test "x$with_sane" != "xno"
9890 then
9891 ac_save_CPPFLAGS="$CPPFLAGS"
9892 # Extract the first word of "sane-config", so it can be a program name with args.
9893 set dummy sane-config; ac_word=$2
9894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9895 $as_echo_n "checking for $ac_word... " >&6; }
9896 if ${ac_cv_prog_sane_devel+:} false; then :
9897 $as_echo_n "(cached) " >&6
9898 else
9899 if test -n "$sane_devel"; then
9900 ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
9901 else
9902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9903 for as_dir in $PATH
9905 IFS=$as_save_IFS
9906 test -z "$as_dir" && as_dir=.
9907 for ac_exec_ext in '' $ac_executable_extensions; do
9908 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9909 ac_cv_prog_sane_devel="sane-config"
9910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9911 break 2
9913 done
9914 done
9915 IFS=$as_save_IFS
9917 test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
9920 sane_devel=$ac_cv_prog_sane_devel
9921 if test -n "$sane_devel"; then
9922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sane_devel" >&5
9923 $as_echo "$sane_devel" >&6; }
9924 else
9925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9926 $as_echo "no" >&6; }
9930 if test "$sane_devel" != "no"
9931 then
9932 ac_sane_incl="`$sane_devel --cflags`"
9933 ac_sane_libs="`$sane_devel --ldflags`"
9934 CPPFLAGS="$CPPFLAGS $ac_sane_incl"
9936 ac_fn_c_check_header_mongrel "$LINENO" "sane/sane.h" "ac_cv_header_sane_sane_h" "$ac_includes_default"
9937 if test "x$ac_cv_header_sane_sane_h" = xyes; then :
9938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lsane" >&5
9939 $as_echo_n "checking for -lsane... " >&6; }
9940 if ${ac_cv_lib_soname_sane+:} false; then :
9941 $as_echo_n "(cached) " >&6
9942 else
9943 ac_check_soname_save_LIBS=$LIBS
9944 LIBS="-lsane $ac_sane_libs $LIBS"
9945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9946 /* end confdefs.h. */
9948 /* Override any GCC internal prototype to avoid an error.
9949 Use char because int might match the return type of a GCC
9950 builtin and then its argument prototype would still apply. */
9951 #ifdef __cplusplus
9952 extern "C"
9953 #endif
9954 char sane_init ();
9956 main ()
9958 return sane_init ();
9960 return 0;
9962 _ACEOF
9963 if ac_fn_c_try_link "$LINENO"; then :
9964 case "$LIBEXT" in
9965 dll) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest.exe | grep "sane" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9966 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'` ;;
9967 *) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest$ac_exeext | grep "libsane\\.$LIBEXT" | sed -e "s/^.*\(libsane\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9968 esac
9970 rm -f core conftest.err conftest.$ac_objext \
9971 conftest$ac_exeext conftest.$ac_ext
9972 LIBS=$ac_check_soname_save_LIBS
9974 if test "x$ac_cv_lib_soname_sane" = "x"; then :
9975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9976 $as_echo "not found" >&6; }
9978 else
9979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_sane" >&5
9980 $as_echo "$ac_cv_lib_soname_sane" >&6; }
9982 cat >>confdefs.h <<_ACEOF
9983 #define SONAME_LIBSANE "$ac_cv_lib_soname_sane"
9984 _ACEOF
9986 SANEINCL="$ac_sane_incl"
9992 CPPFLAGS="$ac_save_CPPFLAGS"
9994 if test "x$ac_cv_lib_soname_sane" = "x"; then :
9995 case "x$with_sane" in
9996 x) as_fn_append wine_notices "|libsane ${notice_platform}development files not found, scanners won't be supported." ;;
9997 xno) ;;
9998 *) as_fn_error $? "libsane ${notice_platform}development files not found, scanners won't be supported.
9999 This is an error since --with-sane was requested." "$LINENO" 5 ;;
10000 esac
10003 if test "x$with_v4l" != "xno"
10004 then
10005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lv4l1" >&5
10006 $as_echo_n "checking for -lv4l1... " >&6; }
10007 if ${ac_cv_lib_soname_v4l1+:} false; then :
10008 $as_echo_n "(cached) " >&6
10009 else
10010 ac_check_soname_save_LIBS=$LIBS
10011 LIBS="-lv4l1 $LIBS"
10012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10013 /* end confdefs.h. */
10015 /* Override any GCC internal prototype to avoid an error.
10016 Use char because int might match the return type of a GCC
10017 builtin and then its argument prototype would still apply. */
10018 #ifdef __cplusplus
10019 extern "C"
10020 #endif
10021 char v4l1_open ();
10023 main ()
10025 return v4l1_open ();
10027 return 0;
10029 _ACEOF
10030 if ac_fn_c_try_link "$LINENO"; then :
10031 case "$LIBEXT" in
10032 dll) ac_cv_lib_soname_v4l1=`$ac_cv_path_LDD conftest.exe | grep "v4l1" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10033 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'` ;;
10034 *) ac_cv_lib_soname_v4l1=`$ac_cv_path_LDD conftest$ac_exeext | grep "libv4l1\\.$LIBEXT" | sed -e "s/^.*\(libv4l1\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10035 esac
10037 rm -f core conftest.err conftest.$ac_objext \
10038 conftest$ac_exeext conftest.$ac_ext
10039 LIBS=$ac_check_soname_save_LIBS
10041 if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
10042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10043 $as_echo "not found" >&6; }
10045 else
10046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_v4l1" >&5
10047 $as_echo "$ac_cv_lib_soname_v4l1" >&6; }
10049 cat >>confdefs.h <<_ACEOF
10050 #define SONAME_LIBV4L1 "$ac_cv_lib_soname_v4l1"
10051 _ACEOF
10056 if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
10057 case "x$with_v4l" in
10058 x) as_fn_append wine_notices "|libv4l ${notice_platform}development files not found." ;;
10059 xno) ;;
10060 *) as_fn_error $? "libv4l ${notice_platform}development files not found.
10061 This is an error since --with-v4l was requested." "$LINENO" 5 ;;
10062 esac
10065 if test "x$with_gphoto" != "xno"
10066 then
10067 ac_save_CPPFLAGS="$CPPFLAGS"
10068 # Extract the first word of "gphoto2-config", so it can be a program name with args.
10069 set dummy gphoto2-config; ac_word=$2
10070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10071 $as_echo_n "checking for $ac_word... " >&6; }
10072 if ${ac_cv_prog_gphoto2_devel+:} false; then :
10073 $as_echo_n "(cached) " >&6
10074 else
10075 if test -n "$gphoto2_devel"; then
10076 ac_cv_prog_gphoto2_devel="$gphoto2_devel" # Let the user override the test.
10077 else
10078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10079 for as_dir in $PATH
10081 IFS=$as_save_IFS
10082 test -z "$as_dir" && as_dir=.
10083 for ac_exec_ext in '' $ac_executable_extensions; do
10084 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10085 ac_cv_prog_gphoto2_devel="gphoto2-config"
10086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10087 break 2
10089 done
10090 done
10091 IFS=$as_save_IFS
10093 test -z "$ac_cv_prog_gphoto2_devel" && ac_cv_prog_gphoto2_devel="no"
10096 gphoto2_devel=$ac_cv_prog_gphoto2_devel
10097 if test -n "$gphoto2_devel"; then
10098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gphoto2_devel" >&5
10099 $as_echo "$gphoto2_devel" >&6; }
10100 else
10101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10102 $as_echo "no" >&6; }
10106 # Extract the first word of "gphoto2-port-config", so it can be a program name with args.
10107 set dummy gphoto2-port-config; ac_word=$2
10108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10109 $as_echo_n "checking for $ac_word... " >&6; }
10110 if ${ac_cv_prog_gphoto2port_devel+:} false; then :
10111 $as_echo_n "(cached) " >&6
10112 else
10113 if test -n "$gphoto2port_devel"; then
10114 ac_cv_prog_gphoto2port_devel="$gphoto2port_devel" # Let the user override the test.
10115 else
10116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10117 for as_dir in $PATH
10119 IFS=$as_save_IFS
10120 test -z "$as_dir" && as_dir=.
10121 for ac_exec_ext in '' $ac_executable_extensions; do
10122 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10123 ac_cv_prog_gphoto2port_devel="gphoto2-port-config"
10124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10125 break 2
10127 done
10128 done
10129 IFS=$as_save_IFS
10131 test -z "$ac_cv_prog_gphoto2port_devel" && ac_cv_prog_gphoto2port_devel="no"
10134 gphoto2port_devel=$ac_cv_prog_gphoto2port_devel
10135 if test -n "$gphoto2port_devel"; then
10136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gphoto2port_devel" >&5
10137 $as_echo "$gphoto2port_devel" >&6; }
10138 else
10139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10140 $as_echo "no" >&6; }
10144 if test "$gphoto2_devel" != "no" -a "$gphoto2port_devel" != "no"
10145 then
10146 ac_gphoto2_incl="`$gphoto2_devel --cflags` `$gphoto2port_devel --cflags`"
10147 ac_gphoto2_libs=""
10148 for i in `$gphoto2_devel --libs` `$gphoto2port_devel --libs`
10150 case "$i" in
10151 -L/usr/lib|-L/usr/lib64) ;;
10152 -L*|-l*) ac_gphoto2_libs="$ac_gphoto2_libs $i";;
10153 esac
10154 done
10155 CPPFLAGS="$CPPFLAGS $ac_gphoto2_incl"
10157 ac_gphoto2_libs=${ac_gphoto2_libs:-"-lgphoto2"}
10158 ac_fn_c_check_header_mongrel "$LINENO" "gphoto2-camera.h" "ac_cv_header_gphoto2_camera_h" "$ac_includes_default"
10159 if test "x$ac_cv_header_gphoto2_camera_h" = xyes; then :
10160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gp_camera_new in -lgphoto2" >&5
10161 $as_echo_n "checking for gp_camera_new in -lgphoto2... " >&6; }
10162 if ${ac_cv_lib_gphoto2_gp_camera_new+:} false; then :
10163 $as_echo_n "(cached) " >&6
10164 else
10165 ac_check_lib_save_LIBS=$LIBS
10166 LIBS="-lgphoto2 $ac_gphoto2_libs $LIBS"
10167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10168 /* end confdefs.h. */
10170 /* Override any GCC internal prototype to avoid an error.
10171 Use char because int might match the return type of a GCC
10172 builtin and then its argument prototype would still apply. */
10173 #ifdef __cplusplus
10174 extern "C"
10175 #endif
10176 char gp_camera_new ();
10178 main ()
10180 return gp_camera_new ();
10182 return 0;
10184 _ACEOF
10185 if ac_fn_c_try_link "$LINENO"; then :
10186 ac_cv_lib_gphoto2_gp_camera_new=yes
10187 else
10188 ac_cv_lib_gphoto2_gp_camera_new=no
10190 rm -f core conftest.err conftest.$ac_objext \
10191 conftest$ac_exeext conftest.$ac_ext
10192 LIBS=$ac_check_lib_save_LIBS
10194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gphoto2_gp_camera_new" >&5
10195 $as_echo "$ac_cv_lib_gphoto2_gp_camera_new" >&6; }
10196 if test "x$ac_cv_lib_gphoto2_gp_camera_new" = xyes; then :
10198 $as_echo "#define HAVE_GPHOTO2 1" >>confdefs.h
10200 GPHOTO2LIBS="$ac_gphoto2_libs"
10202 GPHOTO2INCL="$ac_gphoto2_incl"
10209 CPPFLAGS="$ac_save_CPPFLAGS"
10211 if test "$ac_cv_lib_gphoto2_gp_camera_new" != "yes"; then :
10212 case "x$with_gphoto" in
10213 x) as_fn_append wine_notices "|libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported." ;;
10214 xno) ;;
10215 *) as_fn_error $? "libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported.
10216 This is an error since --with-gphoto was requested." "$LINENO" 5 ;;
10217 esac
10221 if test "$ac_cv_header_resolv_h" = "yes"
10222 then
10223 ac_save_LIBS="$LIBS"
10224 for lib in '' -lresolv
10226 LIBS="$lib $ac_save_LIBS"
10227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10228 /* end confdefs.h. */
10229 #ifdef HAVE_NETINET_IN_H
10230 #include <netinet/in.h>
10231 #endif
10232 #include <resolv.h>
10234 main ()
10236 res_query("foo",ns_c_in,0,0,0);
10238 return 0;
10240 _ACEOF
10241 if ac_fn_c_try_link "$LINENO"; then :
10243 $as_echo "#define HAVE_RESOLV 1" >>confdefs.h
10245 RESOLVLIBS="$lib"
10248 rm -f core conftest.err conftest.$ac_objext \
10249 conftest$ac_exeext conftest.$ac_ext
10250 if test "${RESOLVLIBS+set}" = set; then
10251 break
10253 done
10254 LIBS="$ac_save_LIBS"
10257 LCMSLIBS=""
10259 if test "$ac_cv_header_lcms_h" = "yes" -o "$ac_cv_header_lcms_lcms_h" = "yes"
10260 then
10261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromFile in -llcms" >&5
10262 $as_echo_n "checking for cmsOpenProfileFromFile in -llcms... " >&6; }
10263 if ${ac_cv_lib_lcms_cmsOpenProfileFromFile+:} false; then :
10264 $as_echo_n "(cached) " >&6
10265 else
10266 ac_check_lib_save_LIBS=$LIBS
10267 LIBS="-llcms $LIBS"
10268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10269 /* end confdefs.h. */
10271 /* Override any GCC internal prototype to avoid an error.
10272 Use char because int might match the return type of a GCC
10273 builtin and then its argument prototype would still apply. */
10274 #ifdef __cplusplus
10275 extern "C"
10276 #endif
10277 char cmsOpenProfileFromFile ();
10279 main ()
10281 return cmsOpenProfileFromFile ();
10283 return 0;
10285 _ACEOF
10286 if ac_fn_c_try_link "$LINENO"; then :
10287 ac_cv_lib_lcms_cmsOpenProfileFromFile=yes
10288 else
10289 ac_cv_lib_lcms_cmsOpenProfileFromFile=no
10291 rm -f core conftest.err conftest.$ac_objext \
10292 conftest$ac_exeext conftest.$ac_ext
10293 LIBS=$ac_check_lib_save_LIBS
10295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsOpenProfileFromFile" >&5
10296 $as_echo "$ac_cv_lib_lcms_cmsOpenProfileFromFile" >&6; }
10297 if test "x$ac_cv_lib_lcms_cmsOpenProfileFromFile" = xyes; then :
10299 $as_echo "#define HAVE_LCMS 1" >>confdefs.h
10301 LCMSLIBS="-llcms"
10305 if test "$ac_cv_lib_lcms_cmsOpenProfileFromFile" != "yes"; then :
10306 case "x$with_cms" in
10307 x) as_fn_append wine_notices "|liblcms ${notice_platform}development files not found, Color Management won't be supported." ;;
10308 xno) ;;
10309 *) as_fn_error $? "liblcms ${notice_platform}development files not found, Color Management won't be supported.
10310 This is an error since --with-cms was requested." "$LINENO" 5 ;;
10311 esac
10314 if test "x$with_freetype" != "xno"
10315 then
10316 if test "$PKG_CONFIG" != "false"
10317 then
10318 ac_freetype_incl="`$PKG_CONFIG --cflags freetype2 2>/dev/null`"
10319 ac_freetype_libs="`$PKG_CONFIG --libs freetype2 2>/dev/null`"
10320 else
10321 for ac_prog in freetype-config freetype2-config
10323 # Extract the first word of "$ac_prog", so it can be a program name with args.
10324 set dummy $ac_prog; ac_word=$2
10325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10326 $as_echo_n "checking for $ac_word... " >&6; }
10327 if ${ac_cv_prog_ft_devel+:} false; then :
10328 $as_echo_n "(cached) " >&6
10329 else
10330 if test -n "$ft_devel"; then
10331 ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
10332 else
10333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10334 for as_dir in $PATH
10336 IFS=$as_save_IFS
10337 test -z "$as_dir" && as_dir=.
10338 for ac_exec_ext in '' $ac_executable_extensions; do
10339 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10340 ac_cv_prog_ft_devel="$ac_prog"
10341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10342 break 2
10344 done
10345 done
10346 IFS=$as_save_IFS
10350 ft_devel=$ac_cv_prog_ft_devel
10351 if test -n "$ft_devel"; then
10352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ft_devel" >&5
10353 $as_echo "$ft_devel" >&6; }
10354 else
10355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10356 $as_echo "no" >&6; }
10360 test -n "$ft_devel" && break
10361 done
10362 test -n "$ft_devel" || ft_devel="no"
10364 if test "$ft_devel" != "no"
10365 then
10366 ac_freetype_incl=`$ft_devel --cflags`
10367 ac_freetype_libs=`$ft_devel --libs`
10370 ac_freetype_libs=${ac_freetype_libs:-"-lfreetype"}
10371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfreetype" >&5
10372 $as_echo_n "checking for -lfreetype... " >&6; }
10373 if ${ac_cv_lib_soname_freetype+:} false; then :
10374 $as_echo_n "(cached) " >&6
10375 else
10376 ac_check_soname_save_LIBS=$LIBS
10377 LIBS="-lfreetype $ac_freetype_libs $LIBS"
10378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10379 /* end confdefs.h. */
10381 /* Override any GCC internal prototype to avoid an error.
10382 Use char because int might match the return type of a GCC
10383 builtin and then its argument prototype would still apply. */
10384 #ifdef __cplusplus
10385 extern "C"
10386 #endif
10387 char FT_Init_FreeType ();
10389 main ()
10391 return FT_Init_FreeType ();
10393 return 0;
10395 _ACEOF
10396 if ac_fn_c_try_link "$LINENO"; then :
10397 case "$LIBEXT" in
10398 dll) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest.exe | grep "freetype" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10399 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'` ;;
10400 *) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfreetype\\.$LIBEXT" | sed -e "s/^.*\(libfreetype\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10401 esac
10403 rm -f core conftest.err conftest.$ac_objext \
10404 conftest$ac_exeext conftest.$ac_ext
10405 LIBS=$ac_check_soname_save_LIBS
10407 if test "x$ac_cv_lib_soname_freetype" = "x"; then :
10408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10409 $as_echo "not found" >&6; }
10410 ft_lib=no
10411 else
10412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_freetype" >&5
10413 $as_echo "$ac_cv_lib_soname_freetype" >&6; }
10415 cat >>confdefs.h <<_ACEOF
10416 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
10417 _ACEOF
10419 ft_lib=yes
10421 if test "$ft_lib" = "yes"
10422 then
10423 ac_save_CPPFLAGS="$CPPFLAGS"
10424 CPPFLAGS="$ac_freetype_incl $CPPFLAGS"
10425 for ac_header in ft2build.h \
10426 freetype/freetype.h \
10427 freetype/ftglyph.h \
10428 freetype/fttypes.h \
10429 freetype/tttables.h \
10430 freetype/ftsnames.h \
10431 freetype/ttnameid.h \
10432 freetype/ftoutln.h \
10433 freetype/ftwinfnt.h \
10434 freetype/ftmodapi.h \
10435 freetype/ftlcdfil.h
10436 do :
10437 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10438 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_FT2BUILD_H
10439 # include <ft2build.h>
10440 #endif
10442 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10443 cat >>confdefs.h <<_ACEOF
10444 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10445 _ACEOF
10449 done
10451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10452 /* end confdefs.h. */
10453 #include <ft2build.h>
10454 #include <freetype/fttrigon.h>
10455 _ACEOF
10456 if ac_fn_c_try_cpp "$LINENO"; then :
10458 $as_echo "#define HAVE_FREETYPE_FTTRIGON_H 1" >>confdefs.h
10460 wine_cv_fttrigon=yes
10461 else
10462 wine_cv_fttrigon=no
10464 rm -f conftest.err conftest.i conftest.$ac_ext
10465 ac_fn_c_check_type "$LINENO" "FT_TrueTypeEngineType" "ac_cv_type_FT_TrueTypeEngineType" "#include <freetype/ftmodapi.h>
10467 if test "x$ac_cv_type_FT_TrueTypeEngineType" = xyes; then :
10469 cat >>confdefs.h <<_ACEOF
10470 #define HAVE_FT_TRUETYPEENGINETYPE 1
10471 _ACEOF
10476 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
10477 then
10479 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
10481 FREETYPELIBS="$ac_freetype_libs"
10483 FREETYPEINCL="$ac_freetype_incl"
10488 if test "x$FREETYPELIBS" = "x"; then :
10489 case "x$with_freetype" in
10490 xno) ;;
10491 *) as_fn_error $? "FreeType ${notice_platform}development files not found. Fonts will not be built.
10492 Use the --without-freetype option if you really want this." "$LINENO" 5 ;;
10493 esac
10495 test "x$FREETYPELIBS" = "x" && enable_fonts=${enable_fonts:-no}
10497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for parport header/ppdev.h" >&5
10498 $as_echo_n "checking for parport header/ppdev.h... " >&6; }
10499 if ${ac_cv_c_ppdev+:} false; then :
10500 $as_echo_n "(cached) " >&6
10501 else
10502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10503 /* end confdefs.h. */
10504 #ifdef HAVE_SYS_IOCTL_H
10505 # include <sys/ioctl.h>
10506 #endif
10507 #include <linux/ppdev.h>
10509 main ()
10511 ioctl (1,PPCLAIM,0)
10513 return 0;
10515 _ACEOF
10516 if ac_fn_c_try_compile "$LINENO"; then :
10517 ac_cv_c_ppdev="yes"
10518 else
10519 ac_cv_c_ppdev="no"
10521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_ppdev" >&5
10524 $as_echo "$ac_cv_c_ppdev" >&6; }
10525 if test "$ac_cv_c_ppdev" = "yes"
10526 then
10528 $as_echo "#define HAVE_PPDEV 1" >>confdefs.h
10532 ac_wine_check_funcs_save_LIBS="$LIBS"
10533 LIBS="$LIBS $LIBPTHREAD"
10534 for ac_func in \
10535 pthread_attr_get_np \
10536 pthread_getattr_np \
10537 pthread_get_stackaddr_np \
10538 pthread_get_stacksize_np
10539 do :
10540 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10541 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10542 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10543 cat >>confdefs.h <<_ACEOF
10544 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10545 _ACEOF
10548 done
10550 LIBS="$ac_wine_check_funcs_save_LIBS"
10552 if test "$ac_cv_header_zlib_h" = "yes"
10553 then
10554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
10555 $as_echo_n "checking for inflate in -lz... " >&6; }
10556 if ${ac_cv_lib_z_inflate+:} false; then :
10557 $as_echo_n "(cached) " >&6
10558 else
10559 ac_check_lib_save_LIBS=$LIBS
10560 LIBS="-lz $LIBS"
10561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10562 /* end confdefs.h. */
10564 /* Override any GCC internal prototype to avoid an error.
10565 Use char because int might match the return type of a GCC
10566 builtin and then its argument prototype would still apply. */
10567 #ifdef __cplusplus
10568 extern "C"
10569 #endif
10570 char inflate ();
10572 main ()
10574 return inflate ();
10576 return 0;
10578 _ACEOF
10579 if ac_fn_c_try_link "$LINENO"; then :
10580 ac_cv_lib_z_inflate=yes
10581 else
10582 ac_cv_lib_z_inflate=no
10584 rm -f core conftest.err conftest.$ac_objext \
10585 conftest$ac_exeext conftest.$ac_ext
10586 LIBS=$ac_check_lib_save_LIBS
10588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
10589 $as_echo "$ac_cv_lib_z_inflate" >&6; }
10590 if test "x$ac_cv_lib_z_inflate" = xyes; then :
10592 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
10594 ZLIB="-lz"
10599 if test "x$ZLIB" = "x"; then :
10600 case "x$with_zlib" in
10601 x) as_fn_append wine_notices "|libz ${notice_platform}development files not found, data compression won't be supported." ;;
10602 xno) ;;
10603 *) as_fn_error $? "libz ${notice_platform}development files not found, data compression won't be supported.
10604 This is an error since --with-zlib was requested." "$LINENO" 5 ;;
10605 esac
10608 if test "x$enable_tools" != xno
10609 then
10610 if test "$ac_cv_header_gettext_po_h" = "yes"
10611 then
10612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for po_message_msgctxt in -lgettextpo" >&5
10613 $as_echo_n "checking for po_message_msgctxt in -lgettextpo... " >&6; }
10614 if ${ac_cv_lib_gettextpo_po_message_msgctxt+:} false; then :
10615 $as_echo_n "(cached) " >&6
10616 else
10617 ac_check_lib_save_LIBS=$LIBS
10618 LIBS="-lgettextpo $LIBS"
10619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10620 /* end confdefs.h. */
10622 /* Override any GCC internal prototype to avoid an error.
10623 Use char because int might match the return type of a GCC
10624 builtin and then its argument prototype would still apply. */
10625 #ifdef __cplusplus
10626 extern "C"
10627 #endif
10628 char po_message_msgctxt ();
10630 main ()
10632 return po_message_msgctxt ();
10634 return 0;
10636 _ACEOF
10637 if ac_fn_c_try_link "$LINENO"; then :
10638 ac_cv_lib_gettextpo_po_message_msgctxt=yes
10639 else
10640 ac_cv_lib_gettextpo_po_message_msgctxt=no
10642 rm -f core conftest.err conftest.$ac_objext \
10643 conftest$ac_exeext conftest.$ac_ext
10644 LIBS=$ac_check_lib_save_LIBS
10646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gettextpo_po_message_msgctxt" >&5
10647 $as_echo "$ac_cv_lib_gettextpo_po_message_msgctxt" >&6; }
10648 if test "x$ac_cv_lib_gettextpo_po_message_msgctxt" = xyes; then :
10650 $as_echo "#define HAVE_LIBGETTEXTPO 1" >>confdefs.h
10652 LIBGETTEXTPO="-lgettextpo"
10657 test "x$with_gettextpo" != xyes || if test "x$LIBGETTEXTPO" = "x"; then :
10658 case "x$with_gettextpo" in
10659 x) as_fn_append wine_notices "|GetText ${notice_platform}development files not found (or too old), po files can't be rebuilt." ;;
10660 xno) ;;
10661 *) as_fn_error $? "GetText ${notice_platform}development files not found (or too old), po files can't be rebuilt.
10662 This is an error since --with-gettextpo was requested." "$LINENO" 5 ;;
10663 esac
10667 PULSELIBS=""
10669 PULSEINCL=""
10671 if test "x$with_pulse" != "xno";
10672 then
10673 ac_save_CPPFLAGS="$CPPFLAGS"
10674 if test "$PKG_CONFIG" != "false";
10675 then
10676 ac_pulse_libs="`$PKG_CONFIG --libs libpulse 2>/dev/null`"
10677 ac_pulse_cflags="`$PKG_CONFIG --cflags-only-I libpulse 2>/dev/null`"
10679 CPPFLAGS="$CPPFLAGS $ac_pulse_cflags"
10680 for ac_header in pulse/pulseaudio.h
10681 do :
10682 ac_fn_c_check_header_mongrel "$LINENO" "pulse/pulseaudio.h" "ac_cv_header_pulse_pulseaudio_h" "$ac_includes_default"
10683 if test "x$ac_cv_header_pulse_pulseaudio_h" = xyes; then :
10684 cat >>confdefs.h <<_ACEOF
10685 #define HAVE_PULSE_PULSEAUDIO_H 1
10686 _ACEOF
10687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pa_stream_is_corked in -lpulse" >&5
10688 $as_echo_n "checking for pa_stream_is_corked in -lpulse... " >&6; }
10689 if ${ac_cv_lib_pulse_pa_stream_is_corked+:} false; then :
10690 $as_echo_n "(cached) " >&6
10691 else
10692 ac_check_lib_save_LIBS=$LIBS
10693 LIBS="-lpulse $ac_pulse_libs $LIBS"
10694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10695 /* end confdefs.h. */
10697 /* Override any GCC internal prototype to avoid an error.
10698 Use char because int might match the return type of a GCC
10699 builtin and then its argument prototype would still apply. */
10700 #ifdef __cplusplus
10701 extern "C"
10702 #endif
10703 char pa_stream_is_corked ();
10705 main ()
10707 return pa_stream_is_corked ();
10709 return 0;
10711 _ACEOF
10712 if ac_fn_c_try_link "$LINENO"; then :
10713 ac_cv_lib_pulse_pa_stream_is_corked=yes
10714 else
10715 ac_cv_lib_pulse_pa_stream_is_corked=no
10717 rm -f core conftest.err conftest.$ac_objext \
10718 conftest$ac_exeext conftest.$ac_ext
10719 LIBS=$ac_check_lib_save_LIBS
10721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pulse_pa_stream_is_corked" >&5
10722 $as_echo "$ac_cv_lib_pulse_pa_stream_is_corked" >&6; }
10723 if test "x$ac_cv_lib_pulse_pa_stream_is_corked" = xyes; then :
10725 $as_echo "#define HAVE_PULSEAUDIO 1" >>confdefs.h
10727 PULSELIBS="$ac_pulse_libs"
10728 PULSEINCL="$ac_pulse_cflags"
10734 done
10737 CPPFLAGS="$ac_save_CPPFLAGS"
10739 if test "$ac_cv_lib_pulse_pa_stream_is_corked" != "yes"; then :
10740 case "x$with_pulse" in
10741 x) as_fn_append wine_warnings "|libpulse ${notice_platform}development files not found or too old, Pulse won't be supported." ;;
10742 xno) ;;
10743 *) as_fn_error $? "libpulse ${notice_platform}development files not found or too old, Pulse won't be supported.
10744 This is an error since --with-pulse was requested." "$LINENO" 5 ;;
10745 esac
10748 if test "x$with_gstreamer" != "xno"
10749 then
10750 ac_save_CPPFLAGS="$CPPFLAGS"
10751 if test "$PKG_CONFIG" != "false"; then
10752 ac_gst_incl=""
10753 for i in `$PKG_CONFIG --cflags gstreamer-app-0.10 2>/dev/null`
10755 case "$i" in
10756 -I*) ac_gst_incl="$ac_gst_incl $i";;
10757 esac
10758 done
10759 ac_gst_libs="`$PKG_CONFIG --libs gstreamer-app-0.10 2>/dev/null`"
10760 CPPFLAGS="$CPPFLAGS $ac_gst_incl"
10761 ac_fn_c_check_header_mongrel "$LINENO" "gst/gstpad.h" "ac_cv_header_gst_gstpad_h" "$ac_includes_default"
10762 if test "x$ac_cv_header_gst_gstpad_h" = xyes; then :
10763 ac_fn_c_check_header_mongrel "$LINENO" "gst/app/gstappsink.h" "ac_cv_header_gst_app_gstappsink_h" "$ac_includes_default"
10764 if test "x$ac_cv_header_gst_app_gstappsink_h" = xyes; then :
10765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gint64 defined by gst/app/gstappsink.h is indeed 64-bit" >&5
10766 $as_echo_n "checking whether gint64 defined by gst/app/gstappsink.h is indeed 64-bit... " >&6; }
10767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10768 /* end confdefs.h. */
10769 #include <gst/app/gstappsink.h>
10771 main ()
10773 static int a[sizeof(gint64) > 4 ? 1 : -1]; if (a[0]) return 0;
10775 return 0;
10777 _ACEOF
10778 if ac_fn_c_try_compile "$LINENO"; then :
10779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10780 $as_echo "yes" >&6; }
10781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_pad_get_caps_reffed in -lgstreamer-0.10" >&5
10782 $as_echo_n "checking for gst_pad_get_caps_reffed in -lgstreamer-0.10... " >&6; }
10783 if ${ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed+:} false; then :
10784 $as_echo_n "(cached) " >&6
10785 else
10786 ac_check_lib_save_LIBS=$LIBS
10787 LIBS="-lgstreamer-0.10 $LIBS"
10788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10789 /* end confdefs.h. */
10791 /* Override any GCC internal prototype to avoid an error.
10792 Use char because int might match the return type of a GCC
10793 builtin and then its argument prototype would still apply. */
10794 #ifdef __cplusplus
10795 extern "C"
10796 #endif
10797 char gst_pad_get_caps_reffed ();
10799 main ()
10801 return gst_pad_get_caps_reffed ();
10803 return 0;
10805 _ACEOF
10806 if ac_fn_c_try_link "$LINENO"; then :
10807 ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=yes
10808 else
10809 ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=no
10811 rm -f core conftest.err conftest.$ac_objext \
10812 conftest$ac_exeext conftest.$ac_ext
10813 LIBS=$ac_check_lib_save_LIBS
10815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&5
10816 $as_echo "$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&6; }
10817 if test "x$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" = xyes; then :
10818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_app_buffer_new in -lgstapp-0.10" >&5
10819 $as_echo_n "checking for gst_app_buffer_new in -lgstapp-0.10... " >&6; }
10820 if ${ac_cv_lib_gstapp_0_10_gst_app_buffer_new+:} false; then :
10821 $as_echo_n "(cached) " >&6
10822 else
10823 ac_check_lib_save_LIBS=$LIBS
10824 LIBS="-lgstapp-0.10 $ac_gst_libs $LIBS"
10825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10826 /* end confdefs.h. */
10828 /* Override any GCC internal prototype to avoid an error.
10829 Use char because int might match the return type of a GCC
10830 builtin and then its argument prototype would still apply. */
10831 #ifdef __cplusplus
10832 extern "C"
10833 #endif
10834 char gst_app_buffer_new ();
10836 main ()
10838 return gst_app_buffer_new ();
10840 return 0;
10842 _ACEOF
10843 if ac_fn_c_try_link "$LINENO"; then :
10844 ac_cv_lib_gstapp_0_10_gst_app_buffer_new=yes
10845 else
10846 ac_cv_lib_gstapp_0_10_gst_app_buffer_new=no
10848 rm -f core conftest.err conftest.$ac_objext \
10849 conftest$ac_exeext conftest.$ac_ext
10850 LIBS=$ac_check_lib_save_LIBS
10852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&5
10853 $as_echo "$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&6; }
10854 if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = xyes; then :
10855 GSTREAMER_LIBS="$ac_gst_libs"
10857 GSTREAMER_INCL="$ac_gst_incl"
10863 else
10864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10865 $as_echo "no" >&6; }
10867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10875 CPPFLAGS="$ac_save_CPPFLAGS"
10877 if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" != xyes -a "x$ac_cv_header_QuickTime_ImageCompression_h" != xyes; then :
10878 case "x$with_gstreamer" in
10879 x) as_fn_append wine_notices "|gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled" ;;
10880 xno) ;;
10881 *) as_fn_error $? "gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled
10882 This is an error since --with-gstreamer was requested." "$LINENO" 5 ;;
10883 esac
10885 test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = xyes || enable_winegstreamer=${enable_winegstreamer:-no}
10887 ALSALIBS=""
10889 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
10890 then
10891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_hw_params_get_access_mask in -lasound" >&5
10892 $as_echo_n "checking for snd_pcm_hw_params_get_access_mask in -lasound... " >&6; }
10893 if ${ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask+:} false; then :
10894 $as_echo_n "(cached) " >&6
10895 else
10896 ac_check_lib_save_LIBS=$LIBS
10897 LIBS="-lasound $LIBS"
10898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10899 /* end confdefs.h. */
10901 /* Override any GCC internal prototype to avoid an error.
10902 Use char because int might match the return type of a GCC
10903 builtin and then its argument prototype would still apply. */
10904 #ifdef __cplusplus
10905 extern "C"
10906 #endif
10907 char snd_pcm_hw_params_get_access_mask ();
10909 main ()
10911 return snd_pcm_hw_params_get_access_mask ();
10913 return 0;
10915 _ACEOF
10916 if ac_fn_c_try_link "$LINENO"; then :
10917 ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=yes
10918 else
10919 ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=no
10921 rm -f core conftest.err conftest.$ac_objext \
10922 conftest$ac_exeext conftest.$ac_ext
10923 LIBS=$ac_check_lib_save_LIBS
10925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&5
10926 $as_echo "$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&6; }
10927 if test "x$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" = xyes; then :
10928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10929 /* end confdefs.h. */
10930 #ifdef HAVE_ALSA_ASOUNDLIB_H
10931 #include <alsa/asoundlib.h>
10932 #elif defined(HAVE_SYS_ASOUNDLIB_H)
10933 #include <sys/asoundlib.h>
10934 #endif
10936 main ()
10938 snd_pcm_hw_params_get_access_mask(NULL, NULL)
10940 return 0;
10942 _ACEOF
10943 if ac_fn_c_try_compile "$LINENO"; then :
10944 ALSALIBS="-lasound"
10946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10951 if test "x$with_oss" != xno
10952 then
10953 ac_save_CPPFLAGS="$CPPFLAGS"
10954 if test -f /etc/oss.conf
10955 then
10956 . /etc/oss.conf
10958 ac_oss_incl="-I${OSSLIBDIR:-/usr/lib/oss}/include"
10959 CPPFLAGS="$CPPFLAGS $ac_oss_incl"
10960 ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
10961 if test "x$ac_cv_header_sys_soundcard_h" = xyes; then :
10962 ac_fn_c_check_member "$LINENO" "oss_sysinfo" "numaudioengines" "ac_cv_member_oss_sysinfo_numaudioengines" "#include <sys/soundcard.h>
10964 if test "x$ac_cv_member_oss_sysinfo_numaudioengines" = xyes; then :
10966 cat >>confdefs.h <<_ACEOF
10967 #define HAVE_OSS_SYSINFO_NUMAUDIOENGINES 1
10968 _ACEOF
10970 OSS4INCL="$ac_oss_incl"
10977 CPPFLAGS="$ac_save_CPPFLAGS"
10978 if test "x$ac_cv_member_oss_sysinfo_numaudioengines" != xyes
10979 then
10980 as_fn_append wine_notices "|OSS sound system found but too old (OSSv4 needed), OSS won't be supported."
10985 if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes"
10986 then
10987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcapi20" >&5
10988 $as_echo_n "checking for -lcapi20... " >&6; }
10989 if ${ac_cv_lib_soname_capi20+:} false; then :
10990 $as_echo_n "(cached) " >&6
10991 else
10992 ac_check_soname_save_LIBS=$LIBS
10993 LIBS="-lcapi20 $LIBS"
10994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10995 /* end confdefs.h. */
10997 /* Override any GCC internal prototype to avoid an error.
10998 Use char because int might match the return type of a GCC
10999 builtin and then its argument prototype would still apply. */
11000 #ifdef __cplusplus
11001 extern "C"
11002 #endif
11003 char capi20_register ();
11005 main ()
11007 return capi20_register ();
11009 return 0;
11011 _ACEOF
11012 if ac_fn_c_try_link "$LINENO"; then :
11013 case "$LIBEXT" in
11014 dll) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest.exe | grep "capi20" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11015 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'` ;;
11016 *) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcapi20\\.$LIBEXT" | sed -e "s/^.*\(libcapi20\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11017 esac
11019 rm -f core conftest.err conftest.$ac_objext \
11020 conftest$ac_exeext conftest.$ac_ext
11021 LIBS=$ac_check_soname_save_LIBS
11023 if test "x$ac_cv_lib_soname_capi20" = "x"; then :
11024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11025 $as_echo "not found" >&6; }
11027 else
11028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_capi20" >&5
11029 $as_echo "$ac_cv_lib_soname_capi20" >&6; }
11031 cat >>confdefs.h <<_ACEOF
11032 #define SONAME_LIBCAPI20 "$ac_cv_lib_soname_capi20"
11033 _ACEOF
11038 if test "x$ac_cv_lib_soname_capi20" = "x"; then :
11039 case "x$with_capi" in
11040 x) as_fn_append wine_notices "|libcapi20 ${notice_platform}development files not found, ISDN won't be supported." ;;
11041 xno) ;;
11042 *) as_fn_error $? "libcapi20 ${notice_platform}development files not found, ISDN won't be supported.
11043 This is an error since --with-capi was requested." "$LINENO" 5 ;;
11044 esac
11047 CUPSINCL=""
11049 if test "x$with_cups" != "xno"
11050 then
11051 ac_save_CPPFLAGS="$CPPFLAGS"
11052 ac_cups_cflags=`cups-config --cflags 2>/dev/null`
11053 ac_cups_libs=`cups-config --ldflags 2>/dev/null`
11054 CPPFLAGS="$CPPFLAGS $ac_cups_cflags"
11055 for ac_header in cups/cups.h
11056 do :
11057 ac_fn_c_check_header_mongrel "$LINENO" "cups/cups.h" "ac_cv_header_cups_cups_h" "$ac_includes_default"
11058 if test "x$ac_cv_header_cups_cups_h" = xyes; then :
11059 cat >>confdefs.h <<_ACEOF
11060 #define HAVE_CUPS_CUPS_H 1
11061 _ACEOF
11062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcups" >&5
11063 $as_echo_n "checking for -lcups... " >&6; }
11064 if ${ac_cv_lib_soname_cups+:} false; then :
11065 $as_echo_n "(cached) " >&6
11066 else
11067 ac_check_soname_save_LIBS=$LIBS
11068 LIBS="-lcups $ac_cups_libs $LIBS"
11069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11070 /* end confdefs.h. */
11072 /* Override any GCC internal prototype to avoid an error.
11073 Use char because int might match the return type of a GCC
11074 builtin and then its argument prototype would still apply. */
11075 #ifdef __cplusplus
11076 extern "C"
11077 #endif
11078 char cupsGetDefault ();
11080 main ()
11082 return cupsGetDefault ();
11084 return 0;
11086 _ACEOF
11087 if ac_fn_c_try_link "$LINENO"; then :
11088 case "$LIBEXT" in
11089 dll) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest.exe | grep "cups" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11090 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'` ;;
11091 *) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcups\\.$LIBEXT" | sed -e "s/^.*\(libcups\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11092 esac
11094 rm -f core conftest.err conftest.$ac_objext \
11095 conftest$ac_exeext conftest.$ac_ext
11096 LIBS=$ac_check_soname_save_LIBS
11098 if test "x$ac_cv_lib_soname_cups" = "x"; then :
11099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11100 $as_echo "not found" >&6; }
11102 else
11103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_cups" >&5
11104 $as_echo "$ac_cv_lib_soname_cups" >&6; }
11106 cat >>confdefs.h <<_ACEOF
11107 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
11108 _ACEOF
11110 CUPSINCL="$ac_cups_cflags"
11114 done
11116 CPPFLAGS="$ac_save_CPPFLAGS"
11118 if test "x$ac_cv_lib_soname_cups" = "x"; then :
11119 case "x$with_cups" in
11120 x) as_fn_append wine_notices "|libcups ${notice_platform}development files not found, CUPS won't be supported." ;;
11121 xno) ;;
11122 *) as_fn_error $? "libcups ${notice_platform}development files not found, CUPS won't be supported.
11123 This is an error since --with-cups was requested." "$LINENO" 5 ;;
11124 esac
11127 if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
11128 then
11129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
11130 $as_echo_n "checking for -lfontconfig... " >&6; }
11131 if ${ac_cv_lib_soname_fontconfig+:} false; then :
11132 $as_echo_n "(cached) " >&6
11133 else
11134 ac_check_soname_save_LIBS=$LIBS
11135 LIBS="-lfontconfig $LIBS"
11136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11137 /* end confdefs.h. */
11139 /* Override any GCC internal prototype to avoid an error.
11140 Use char because int might match the return type of a GCC
11141 builtin and then its argument prototype would still apply. */
11142 #ifdef __cplusplus
11143 extern "C"
11144 #endif
11145 char FcInit ();
11147 main ()
11149 return FcInit ();
11151 return 0;
11153 _ACEOF
11154 if ac_fn_c_try_link "$LINENO"; then :
11155 case "$LIBEXT" in
11156 dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11157 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'` ;;
11158 *) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11159 esac
11161 rm -f core conftest.err conftest.$ac_objext \
11162 conftest$ac_exeext conftest.$ac_ext
11163 LIBS=$ac_check_soname_save_LIBS
11165 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11167 $as_echo "not found" >&6; }
11169 else
11170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
11171 $as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
11173 cat >>confdefs.h <<_ACEOF
11174 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
11175 _ACEOF
11179 elif test -n "$X_CFLAGS" -a "x$with_fontconfig" != "xno"
11180 then
11181 ac_save_CPPFLAGS="$CPPFLAGS"
11182 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11183 $as_unset ac_cv_header_fontconfig_fontconfig_h
11184 for ac_header in fontconfig/fontconfig.h
11185 do :
11186 ac_fn_c_check_header_mongrel "$LINENO" "fontconfig/fontconfig.h" "ac_cv_header_fontconfig_fontconfig_h" "$ac_includes_default"
11187 if test "x$ac_cv_header_fontconfig_fontconfig_h" = xyes; then :
11188 cat >>confdefs.h <<_ACEOF
11189 #define HAVE_FONTCONFIG_FONTCONFIG_H 1
11190 _ACEOF
11194 done
11196 CPPFLAGS="$ac_save_CPPFLAGS"
11197 if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
11198 then
11199 FONTCONFIGINCL="$X_CFLAGS"
11201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
11202 $as_echo_n "checking for -lfontconfig... " >&6; }
11203 if ${ac_cv_lib_soname_fontconfig+:} false; then :
11204 $as_echo_n "(cached) " >&6
11205 else
11206 ac_check_soname_save_LIBS=$LIBS
11207 LIBS="-lfontconfig $X_LIBS $LIBS"
11208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11209 /* end confdefs.h. */
11211 /* Override any GCC internal prototype to avoid an error.
11212 Use char because int might match the return type of a GCC
11213 builtin and then its argument prototype would still apply. */
11214 #ifdef __cplusplus
11215 extern "C"
11216 #endif
11217 char FcInit ();
11219 main ()
11221 return FcInit ();
11223 return 0;
11225 _ACEOF
11226 if ac_fn_c_try_link "$LINENO"; then :
11227 case "$LIBEXT" in
11228 dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11229 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'` ;;
11230 *) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11231 esac
11233 rm -f core conftest.err conftest.$ac_objext \
11234 conftest$ac_exeext conftest.$ac_ext
11235 LIBS=$ac_check_soname_save_LIBS
11237 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11239 $as_echo "not found" >&6; }
11241 else
11242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
11243 $as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
11245 cat >>confdefs.h <<_ACEOF
11246 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
11247 _ACEOF
11253 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11254 case "x$with_fontconfig" in
11255 x) as_fn_append wine_notices "|fontconfig ${notice_platform}development files not found, fontconfig won't be supported." ;;
11256 xno) ;;
11257 *) as_fn_error $? "fontconfig ${notice_platform}development files not found, fontconfig won't be supported.
11258 This is an error since --with-fontconfig was requested." "$LINENO" 5 ;;
11259 esac
11262 if test "$ac_cv_header_openssl_err_h" = "yes" -a "$ac_cv_header_openssl_ssl_h" = "yes"
11263 then
11264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lssl" >&5
11265 $as_echo_n "checking for -lssl... " >&6; }
11266 if ${ac_cv_lib_soname_ssl+:} false; then :
11267 $as_echo_n "(cached) " >&6
11268 else
11269 ac_check_soname_save_LIBS=$LIBS
11270 LIBS="-lssl $LIBS"
11271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11272 /* end confdefs.h. */
11274 /* Override any GCC internal prototype to avoid an error.
11275 Use char because int might match the return type of a GCC
11276 builtin and then its argument prototype would still apply. */
11277 #ifdef __cplusplus
11278 extern "C"
11279 #endif
11280 char SSL_library_init ();
11282 main ()
11284 return SSL_library_init ();
11286 return 0;
11288 _ACEOF
11289 if ac_fn_c_try_link "$LINENO"; then :
11290 case "$LIBEXT" in
11291 dll) ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest.exe | grep "ssl" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11292 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'` ;;
11293 *) ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep "libssl\\.$LIBEXT" | sed -e "s/^.*\(libssl\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11294 esac
11296 rm -f core conftest.err conftest.$ac_objext \
11297 conftest$ac_exeext conftest.$ac_ext
11298 LIBS=$ac_check_soname_save_LIBS
11300 if test "x$ac_cv_lib_soname_ssl" = "x"; then :
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11302 $as_echo "not found" >&6; }
11304 else
11305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ssl" >&5
11306 $as_echo "$ac_cv_lib_soname_ssl" >&6; }
11308 cat >>confdefs.h <<_ACEOF
11309 #define SONAME_LIBSSL "$ac_cv_lib_soname_ssl"
11310 _ACEOF
11314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcrypto" >&5
11315 $as_echo_n "checking for -lcrypto... " >&6; }
11316 if ${ac_cv_lib_soname_crypto+:} false; then :
11317 $as_echo_n "(cached) " >&6
11318 else
11319 ac_check_soname_save_LIBS=$LIBS
11320 LIBS="-lcrypto $LIBS"
11321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11322 /* end confdefs.h. */
11324 /* Override any GCC internal prototype to avoid an error.
11325 Use char because int might match the return type of a GCC
11326 builtin and then its argument prototype would still apply. */
11327 #ifdef __cplusplus
11328 extern "C"
11329 #endif
11330 char BIO_new_socket ();
11332 main ()
11334 return BIO_new_socket ();
11336 return 0;
11338 _ACEOF
11339 if ac_fn_c_try_link "$LINENO"; then :
11340 case "$LIBEXT" in
11341 dll) ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest.exe | grep "crypto" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11342 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'` ;;
11343 *) ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcrypto\\.$LIBEXT" | sed -e "s/^.*\(libcrypto\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11344 esac
11346 rm -f core conftest.err conftest.$ac_objext \
11347 conftest$ac_exeext conftest.$ac_ext
11348 LIBS=$ac_check_soname_save_LIBS
11350 if test "x$ac_cv_lib_soname_crypto" = "x"; then :
11351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11352 $as_echo "not found" >&6; }
11354 else
11355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_crypto" >&5
11356 $as_echo "$ac_cv_lib_soname_crypto" >&6; }
11358 cat >>confdefs.h <<_ACEOF
11359 #define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto"
11360 _ACEOF
11365 if test "x$ac_cv_lib_soname_ssl" = "x" -o "x$ac_cv_lib_soname_crypto" = "x"; then :
11366 case "x$with_openssl" in
11367 x) as_fn_append wine_warnings "|OpenSSL ${notice_platform}development files not found, SSL won't be supported." ;;
11368 xno) ;;
11369 *) as_fn_error $? "OpenSSL ${notice_platform}development files not found, SSL won't be supported.
11370 This is an error since --with-openssl was requested." "$LINENO" 5 ;;
11371 esac
11374 if test "$ac_cv_header_gsm_h" = "yes" -o "$ac_cv_header_gsm_gsm_h" = "yes"
11375 then
11376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgsm" >&5
11377 $as_echo_n "checking for -lgsm... " >&6; }
11378 if ${ac_cv_lib_soname_gsm+:} false; then :
11379 $as_echo_n "(cached) " >&6
11380 else
11381 ac_check_soname_save_LIBS=$LIBS
11382 LIBS="-lgsm $LIBS"
11383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11384 /* end confdefs.h. */
11386 /* Override any GCC internal prototype to avoid an error.
11387 Use char because int might match the return type of a GCC
11388 builtin and then its argument prototype would still apply. */
11389 #ifdef __cplusplus
11390 extern "C"
11391 #endif
11392 char gsm_create ();
11394 main ()
11396 return gsm_create ();
11398 return 0;
11400 _ACEOF
11401 if ac_fn_c_try_link "$LINENO"; then :
11402 case "$LIBEXT" in
11403 dll) ac_cv_lib_soname_gsm=`$ac_cv_path_LDD conftest.exe | grep "gsm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11404 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'` ;;
11405 *) ac_cv_lib_soname_gsm=`$ac_cv_path_LDD conftest$ac_exeext | grep "libgsm\\.$LIBEXT" | sed -e "s/^.*\(libgsm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11406 esac
11408 rm -f core conftest.err conftest.$ac_objext \
11409 conftest$ac_exeext conftest.$ac_ext
11410 LIBS=$ac_check_soname_save_LIBS
11412 if test "x$ac_cv_lib_soname_gsm" = "x"; then :
11413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11414 $as_echo "not found" >&6; }
11416 else
11417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gsm" >&5
11418 $as_echo "$ac_cv_lib_soname_gsm" >&6; }
11420 cat >>confdefs.h <<_ACEOF
11421 #define SONAME_LIBGSM "$ac_cv_lib_soname_gsm"
11422 _ACEOF
11427 if test "x$ac_cv_lib_soname_gsm" = "x"; then :
11428 case "x$with_gsm" in
11429 x) as_fn_append wine_notices "|libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported." ;;
11430 xno) ;;
11431 *) as_fn_error $? "libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported.
11432 This is an error since --with-gsm was requested." "$LINENO" 5 ;;
11433 esac
11436 if test "$ac_cv_header_jpeglib_h" = "yes"
11437 then
11438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ljpeg" >&5
11439 $as_echo_n "checking for -ljpeg... " >&6; }
11440 if ${ac_cv_lib_soname_jpeg+:} false; then :
11441 $as_echo_n "(cached) " >&6
11442 else
11443 ac_check_soname_save_LIBS=$LIBS
11444 LIBS="-ljpeg $LIBS"
11445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11446 /* end confdefs.h. */
11448 /* Override any GCC internal prototype to avoid an error.
11449 Use char because int might match the return type of a GCC
11450 builtin and then its argument prototype would still apply. */
11451 #ifdef __cplusplus
11452 extern "C"
11453 #endif
11454 char jpeg_start_decompress ();
11456 main ()
11458 return jpeg_start_decompress ();
11460 return 0;
11462 _ACEOF
11463 if ac_fn_c_try_link "$LINENO"; then :
11464 case "$LIBEXT" in
11465 dll) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest.exe | grep "jpeg" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11466 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'` ;;
11467 *) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest$ac_exeext | grep "libjpeg\\.$LIBEXT" | sed -e "s/^.*\(libjpeg\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11468 esac
11470 rm -f core conftest.err conftest.$ac_objext \
11471 conftest$ac_exeext conftest.$ac_ext
11472 LIBS=$ac_check_soname_save_LIBS
11474 if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
11475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11476 $as_echo "not found" >&6; }
11478 else
11479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_jpeg" >&5
11480 $as_echo "$ac_cv_lib_soname_jpeg" >&6; }
11482 cat >>confdefs.h <<_ACEOF
11483 #define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg"
11484 _ACEOF
11489 if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
11490 case "x$with_jpeg" in
11491 x) as_fn_append wine_warnings "|libjpeg ${notice_platform}development files not found, JPEG won't be supported." ;;
11492 xno) ;;
11493 *) as_fn_error $? "libjpeg ${notice_platform}development files not found, JPEG won't be supported.
11494 This is an error since --with-jpeg was requested." "$LINENO" 5 ;;
11495 esac
11498 if test "$ac_cv_header_png_h" = "yes"
11499 then
11500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
11501 $as_echo_n "checking for -lpng... " >&6; }
11502 if ${ac_cv_lib_soname_png+:} false; then :
11503 $as_echo_n "(cached) " >&6
11504 else
11505 ac_check_soname_save_LIBS=$LIBS
11506 LIBS="-lpng -lm -lz $LIBS"
11507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11508 /* end confdefs.h. */
11510 /* Override any GCC internal prototype to avoid an error.
11511 Use char because int might match the return type of a GCC
11512 builtin and then its argument prototype would still apply. */
11513 #ifdef __cplusplus
11514 extern "C"
11515 #endif
11516 char png_create_read_struct ();
11518 main ()
11520 return png_create_read_struct ();
11522 return 0;
11524 _ACEOF
11525 if ac_fn_c_try_link "$LINENO"; then :
11526 case "$LIBEXT" in
11527 dll) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest.exe | grep "png" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11528 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'` ;;
11529 *) 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'` ;;
11530 esac
11532 rm -f core conftest.err conftest.$ac_objext \
11533 conftest$ac_exeext conftest.$ac_ext
11534 LIBS=$ac_check_soname_save_LIBS
11536 if test "x$ac_cv_lib_soname_png" = "x"; then :
11537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11538 $as_echo "not found" >&6; }
11540 else
11541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
11542 $as_echo "$ac_cv_lib_soname_png" >&6; }
11544 cat >>confdefs.h <<_ACEOF
11545 #define SONAME_LIBPNG "$ac_cv_lib_soname_png"
11546 _ACEOF
11550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5
11551 $as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; }
11552 if ${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+:} false; then :
11553 $as_echo_n "(cached) " >&6
11554 else
11555 ac_check_lib_save_LIBS=$LIBS
11556 LIBS="-lpng -lm -lz $LIBS"
11557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11558 /* end confdefs.h. */
11560 /* Override any GCC internal prototype to avoid an error.
11561 Use char because int might match the return type of a GCC
11562 builtin and then its argument prototype would still apply. */
11563 #ifdef __cplusplus
11564 extern "C"
11565 #endif
11566 char png_set_expand_gray_1_2_4_to_8 ();
11568 main ()
11570 return png_set_expand_gray_1_2_4_to_8 ();
11572 return 0;
11574 _ACEOF
11575 if ac_fn_c_try_link "$LINENO"; then :
11576 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes
11577 else
11578 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no
11580 rm -f core conftest.err conftest.$ac_objext \
11581 conftest$ac_exeext conftest.$ac_ext
11582 LIBS=$ac_check_lib_save_LIBS
11584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5
11585 $as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; }
11586 if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = xyes; then :
11588 $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
11593 elif test -n "$X_CFLAGS" -a "x$with_png" != "xno"
11594 then
11595 ac_save_CPPFLAGS="$CPPFLAGS"
11596 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11597 $as_unset ac_cv_header_png_h
11598 for ac_header in png.h
11599 do :
11600 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
11601 if test "x$ac_cv_header_png_h" = xyes; then :
11602 cat >>confdefs.h <<_ACEOF
11603 #define HAVE_PNG_H 1
11604 _ACEOF
11608 done
11610 CPPFLAGS="$ac_save_CPPFLAGS"
11611 if test "$ac_cv_header_png_h" = "yes"
11612 then
11613 PNGINCL="$X_CFLAGS"
11615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
11616 $as_echo_n "checking for -lpng... " >&6; }
11617 if ${ac_cv_lib_soname_png+:} false; then :
11618 $as_echo_n "(cached) " >&6
11619 else
11620 ac_check_soname_save_LIBS=$LIBS
11621 LIBS="-lpng $X_LIBS -lm -lz $LIBS"
11622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11623 /* end confdefs.h. */
11625 /* Override any GCC internal prototype to avoid an error.
11626 Use char because int might match the return type of a GCC
11627 builtin and then its argument prototype would still apply. */
11628 #ifdef __cplusplus
11629 extern "C"
11630 #endif
11631 char png_create_read_struct ();
11633 main ()
11635 return png_create_read_struct ();
11637 return 0;
11639 _ACEOF
11640 if ac_fn_c_try_link "$LINENO"; then :
11641 case "$LIBEXT" in
11642 dll) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest.exe | grep "png" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11643 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'` ;;
11644 *) 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'` ;;
11645 esac
11647 rm -f core conftest.err conftest.$ac_objext \
11648 conftest$ac_exeext conftest.$ac_ext
11649 LIBS=$ac_check_soname_save_LIBS
11651 if test "x$ac_cv_lib_soname_png" = "x"; then :
11652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11653 $as_echo "not found" >&6; }
11655 else
11656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
11657 $as_echo "$ac_cv_lib_soname_png" >&6; }
11659 cat >>confdefs.h <<_ACEOF
11660 #define SONAME_LIBPNG "$ac_cv_lib_soname_png"
11661 _ACEOF
11665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5
11666 $as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; }
11667 if ${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+:} false; then :
11668 $as_echo_n "(cached) " >&6
11669 else
11670 ac_check_lib_save_LIBS=$LIBS
11671 LIBS="-lpng $X_LIBS -lm -lz $LIBS"
11672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11673 /* end confdefs.h. */
11675 /* Override any GCC internal prototype to avoid an error.
11676 Use char because int might match the return type of a GCC
11677 builtin and then its argument prototype would still apply. */
11678 #ifdef __cplusplus
11679 extern "C"
11680 #endif
11681 char png_set_expand_gray_1_2_4_to_8 ();
11683 main ()
11685 return png_set_expand_gray_1_2_4_to_8 ();
11687 return 0;
11689 _ACEOF
11690 if ac_fn_c_try_link "$LINENO"; then :
11691 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes
11692 else
11693 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no
11695 rm -f core conftest.err conftest.$ac_objext \
11696 conftest$ac_exeext conftest.$ac_ext
11697 LIBS=$ac_check_lib_save_LIBS
11699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5
11700 $as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; }
11701 if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = xyes; then :
11702 $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
11708 if test "x$ac_cv_lib_soname_png" = "x"; then :
11709 case "x$with_png" in
11710 x) as_fn_append wine_warnings "|libpng ${notice_platform}development files not found, PNG won't be supported." ;;
11711 xno) ;;
11712 *) as_fn_error $? "libpng ${notice_platform}development files not found, PNG won't be supported.
11713 This is an error since --with-png was requested." "$LINENO" 5 ;;
11714 esac
11717 if test "$ac_cv_header_tiffio_h" = "yes"
11718 then
11719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ltiff" >&5
11720 $as_echo_n "checking for -ltiff... " >&6; }
11721 if ${ac_cv_lib_soname_tiff+:} false; then :
11722 $as_echo_n "(cached) " >&6
11723 else
11724 ac_check_soname_save_LIBS=$LIBS
11725 LIBS="-ltiff $LIBS"
11726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11727 /* end confdefs.h. */
11729 /* Override any GCC internal prototype to avoid an error.
11730 Use char because int might match the return type of a GCC
11731 builtin and then its argument prototype would still apply. */
11732 #ifdef __cplusplus
11733 extern "C"
11734 #endif
11735 char TIFFClientOpen ();
11737 main ()
11739 return TIFFClientOpen ();
11741 return 0;
11743 _ACEOF
11744 if ac_fn_c_try_link "$LINENO"; then :
11745 case "$LIBEXT" in
11746 dll) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest.exe | grep "tiff" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11747 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'` ;;
11748 *) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest$ac_exeext | grep "libtiff\\.$LIBEXT" | sed -e "s/^.*\(libtiff\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11749 esac
11751 rm -f core conftest.err conftest.$ac_objext \
11752 conftest$ac_exeext conftest.$ac_ext
11753 LIBS=$ac_check_soname_save_LIBS
11755 if test "x$ac_cv_lib_soname_tiff" = "x"; then :
11756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11757 $as_echo "not found" >&6; }
11759 else
11760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_tiff" >&5
11761 $as_echo "$ac_cv_lib_soname_tiff" >&6; }
11763 cat >>confdefs.h <<_ACEOF
11764 #define SONAME_LIBTIFF "$ac_cv_lib_soname_tiff"
11765 _ACEOF
11770 if test "x$ac_cv_lib_soname_tiff" = "x"; then :
11771 case "x$with_tiff" in
11772 x) as_fn_append wine_notices "|libtiff ${notice_platform}development files not found, TIFF won't be supported." ;;
11773 xno) ;;
11774 *) as_fn_error $? "libtiff ${notice_platform}development files not found, TIFF won't be supported.
11775 This is an error since --with-tiff was requested." "$LINENO" 5 ;;
11776 esac
11779 if test "$ac_cv_header_mpg123_h" = "yes"
11780 then
11781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpg123_feed in -lmpg123" >&5
11782 $as_echo_n "checking for mpg123_feed in -lmpg123... " >&6; }
11783 if ${ac_cv_lib_mpg123_mpg123_feed+:} false; then :
11784 $as_echo_n "(cached) " >&6
11785 else
11786 ac_check_lib_save_LIBS=$LIBS
11787 LIBS="-lmpg123 $LIBS"
11788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11789 /* end confdefs.h. */
11791 /* Override any GCC internal prototype to avoid an error.
11792 Use char because int might match the return type of a GCC
11793 builtin and then its argument prototype would still apply. */
11794 #ifdef __cplusplus
11795 extern "C"
11796 #endif
11797 char mpg123_feed ();
11799 main ()
11801 return mpg123_feed ();
11803 return 0;
11805 _ACEOF
11806 if ac_fn_c_try_link "$LINENO"; then :
11807 ac_cv_lib_mpg123_mpg123_feed=yes
11808 else
11809 ac_cv_lib_mpg123_mpg123_feed=no
11811 rm -f core conftest.err conftest.$ac_objext \
11812 conftest$ac_exeext conftest.$ac_ext
11813 LIBS=$ac_check_lib_save_LIBS
11815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpg123_mpg123_feed" >&5
11816 $as_echo "$ac_cv_lib_mpg123_mpg123_feed" >&6; }
11817 if test "x$ac_cv_lib_mpg123_mpg123_feed" = xyes; then :
11818 LIBMPG123="-lmpg123"
11823 if test "x$ac_cv_lib_mpg123_mpg123_feed" != xyes -a x"$ac_cv_header_CoreAudio_CoreAudio_h" != xyes; then :
11824 case "x$with_mpg123" in
11825 x) as_fn_append wine_notices "|libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported." ;;
11826 xno) ;;
11827 *) as_fn_error $? "libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported.
11828 This is an error since --with-mpg123 was requested." "$LINENO" 5 ;;
11829 esac
11831 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}
11833 if test "$ac_cv_header_AL_al_h" = "yes"
11834 then
11835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lopenal" >&5
11836 $as_echo_n "checking for -lopenal... " >&6; }
11837 if ${ac_cv_lib_soname_openal+:} false; then :
11838 $as_echo_n "(cached) " >&6
11839 else
11840 ac_check_soname_save_LIBS=$LIBS
11841 LIBS="-lopenal $LIBS"
11842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11843 /* end confdefs.h. */
11845 /* Override any GCC internal prototype to avoid an error.
11846 Use char because int might match the return type of a GCC
11847 builtin and then its argument prototype would still apply. */
11848 #ifdef __cplusplus
11849 extern "C"
11850 #endif
11851 char alGetSource3i ();
11853 main ()
11855 return alGetSource3i ();
11857 return 0;
11859 _ACEOF
11860 if ac_fn_c_try_link "$LINENO"; then :
11861 case "$LIBEXT" in
11862 dll) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest.exe | grep "openal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11863 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'` ;;
11864 *) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest$ac_exeext | grep "libopenal\\.$LIBEXT" | sed -e "s/^.*\(libopenal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11865 esac
11867 rm -f core conftest.err conftest.$ac_objext \
11868 conftest$ac_exeext conftest.$ac_ext
11869 LIBS=$ac_check_soname_save_LIBS
11871 if test "x$ac_cv_lib_soname_openal" = "x"; then :
11872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11873 $as_echo "not found" >&6; }
11875 else
11876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_openal" >&5
11877 $as_echo "$ac_cv_lib_soname_openal" >&6; }
11879 cat >>confdefs.h <<_ACEOF
11880 #define SONAME_LIBOPENAL "$ac_cv_lib_soname_openal"
11881 _ACEOF
11883 LIBOPENAL="-lopenal"
11885 ac_cv_lib_openal=yes
11887 cat >>confdefs.h <<_ACEOF
11888 #define HAVE_OPENAL 1
11889 _ACEOF
11893 if test "x$ac_cv_lib_openal" != xyes; then :
11894 case "x$with_openal" in
11895 x) as_fn_append wine_notices "|libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported." ;;
11896 xno) ;;
11897 *) as_fn_error $? "libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported.
11898 This is an error since --with-openal was requested." "$LINENO" 5 ;;
11899 esac
11901 test "x$ac_cv_lib_openal" = xyes || enable_openal32=${enable_openal32:-no}
11903 if test "$ac_cv_header_kstat_h" = "yes"
11904 then
11905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
11906 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
11907 if ${ac_cv_lib_kstat_kstat_open+:} false; then :
11908 $as_echo_n "(cached) " >&6
11909 else
11910 ac_check_lib_save_LIBS=$LIBS
11911 LIBS="-lkstat $LIBS"
11912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11913 /* end confdefs.h. */
11915 /* Override any GCC internal prototype to avoid an error.
11916 Use char because int might match the return type of a GCC
11917 builtin and then its argument prototype would still apply. */
11918 #ifdef __cplusplus
11919 extern "C"
11920 #endif
11921 char kstat_open ();
11923 main ()
11925 return kstat_open ();
11927 return 0;
11929 _ACEOF
11930 if ac_fn_c_try_link "$LINENO"; then :
11931 ac_cv_lib_kstat_kstat_open=yes
11932 else
11933 ac_cv_lib_kstat_kstat_open=no
11935 rm -f core conftest.err conftest.$ac_objext \
11936 conftest$ac_exeext conftest.$ac_ext
11937 LIBS=$ac_check_lib_save_LIBS
11939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
11940 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
11941 if test "x$ac_cv_lib_kstat_kstat_open" = xyes; then :
11943 $as_echo "#define HAVE_LIBKSTAT 1" >>confdefs.h
11945 LIBKSTAT="-lkstat"
11951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lodbc" >&5
11952 $as_echo_n "checking for -lodbc... " >&6; }
11953 if ${ac_cv_lib_soname_odbc+:} false; then :
11954 $as_echo_n "(cached) " >&6
11955 else
11956 ac_check_soname_save_LIBS=$LIBS
11957 LIBS="-lodbc $LIBS"
11958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11959 /* end confdefs.h. */
11961 /* Override any GCC internal prototype to avoid an error.
11962 Use char because int might match the return type of a GCC
11963 builtin and then its argument prototype would still apply. */
11964 #ifdef __cplusplus
11965 extern "C"
11966 #endif
11967 char SQLConnect ();
11969 main ()
11971 return SQLConnect ();
11973 return 0;
11975 _ACEOF
11976 if ac_fn_c_try_link "$LINENO"; then :
11977 case "$LIBEXT" in
11978 dll) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest.exe | grep "odbc" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11979 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'` ;;
11980 *) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest$ac_exeext | grep "libodbc\\.$LIBEXT" | sed -e "s/^.*\(libodbc\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11981 esac
11983 rm -f core conftest.err conftest.$ac_objext \
11984 conftest$ac_exeext conftest.$ac_ext
11985 LIBS=$ac_check_soname_save_LIBS
11987 if test "x$ac_cv_lib_soname_odbc" = "x"; then :
11988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11989 $as_echo "not found" >&6; }
11990 cat >>confdefs.h <<_ACEOF
11991 #define SONAME_LIBODBC "libodbc.$LIBEXT"
11992 _ACEOF
11994 else
11995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_odbc" >&5
11996 $as_echo "$ac_cv_lib_soname_odbc" >&6; }
11998 cat >>confdefs.h <<_ACEOF
11999 #define SONAME_LIBODBC "$ac_cv_lib_soname_odbc"
12000 _ACEOF
12005 test -n "$ALSALIBS" || enable_winealsa_drv=${enable_winealsa_drv:-no}
12006 test -n "$COREAUDIO" || enable_winecoreaudio_drv=${enable_winecoreaudio_drv:-no}
12007 test -n "$PULSELIBS" || enable_winepulse_drv=${enable_winepulse_drv:-no}
12008 test "x$ac_cv_member_oss_sysinfo_numaudioengines" = xyes || enable_wineoss_drv=${enable_wineoss_drv:-no}
12009 test "$ac_cv_header_linux_joystick_h" = "yes" || enable_winejoystick_drv=${enable_winejoystick_drv:-no}
12011 if test "x$ALSALIBS$COREAUDIO$PULSELIBS" = "x" -a \
12012 "x$ac_cv_member_oss_sysinfo_numaudioengines" != xyes -a \
12013 "x$with_alsa$with_coreaudio$with_oss$with_pulse" != xnononono
12014 then
12015 as_fn_append wine_warnings "|No sound system was found. Windows applications will be silent."
12019 EXTRACFLAGS=""
12021 if test "x${GCC}" = "xyes"
12022 then
12023 EXTRACFLAGS="-Wall -pipe"
12025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc strength-reduce bug" >&5
12026 $as_echo_n "checking for gcc strength-reduce bug... " >&6; }
12027 if ${ac_cv_c_gcc_strength_bug+:} false; then :
12028 $as_echo_n "(cached) " >&6
12029 else
12030 if test "$cross_compiling" = yes; then :
12031 ac_cv_c_gcc_strength_bug="yes"
12032 else
12033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12034 /* end confdefs.h. */
12035 int L[4] = {0,1,2,3};
12037 main ()
12039 static int Array[3];
12040 unsigned int B = 3;
12041 int i;
12042 for(i=0; i<B; i++) Array[i] = i - 3;
12043 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
12044 L[i] = 4;
12045 return (Array[1] != -2 || L[2] != 3)
12047 return 0;
12049 _ACEOF
12050 if ac_fn_c_try_run "$LINENO"; then :
12051 ac_cv_c_gcc_strength_bug="no"
12052 else
12053 ac_cv_c_gcc_strength_bug="yes"
12055 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12056 conftest.$ac_objext conftest.beam conftest.$ac_ext
12060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gcc_strength_bug" >&5
12061 $as_echo "$ac_cv_c_gcc_strength_bug" >&6; }
12062 if test "$ac_cv_c_gcc_strength_bug" = "yes"
12063 then
12064 EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
12067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-builtin" >&5
12068 $as_echo_n "checking whether the compiler supports -fno-builtin... " >&6; }
12069 if ${ac_cv_cflags__fno_builtin+:} false; then :
12070 $as_echo_n "(cached) " >&6
12071 else
12072 ac_wine_try_cflags_saved=$CFLAGS
12073 CFLAGS="$CFLAGS -fno-builtin"
12074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12075 /* end confdefs.h. */
12076 int main(int argc, char **argv) { return 0; }
12077 _ACEOF
12078 if ac_fn_c_try_link "$LINENO"; then :
12079 ac_cv_cflags__fno_builtin=yes
12080 else
12081 ac_cv_cflags__fno_builtin=no
12083 rm -f core conftest.err conftest.$ac_objext \
12084 conftest$ac_exeext conftest.$ac_ext
12085 CFLAGS=$ac_wine_try_cflags_saved
12087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_builtin" >&5
12088 $as_echo "$ac_cv_cflags__fno_builtin" >&6; }
12089 if test $ac_cv_cflags__fno_builtin = yes; then :
12090 BUILTINFLAG="-fno-builtin"
12093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-strict-aliasing" >&5
12094 $as_echo_n "checking whether the compiler supports -fno-strict-aliasing... " >&6; }
12095 if ${ac_cv_cflags__fno_strict_aliasing+:} false; then :
12096 $as_echo_n "(cached) " >&6
12097 else
12098 ac_wine_try_cflags_saved=$CFLAGS
12099 CFLAGS="$CFLAGS -fno-strict-aliasing"
12100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12101 /* end confdefs.h. */
12102 int main(int argc, char **argv) { return 0; }
12103 _ACEOF
12104 if ac_fn_c_try_link "$LINENO"; then :
12105 ac_cv_cflags__fno_strict_aliasing=yes
12106 else
12107 ac_cv_cflags__fno_strict_aliasing=no
12109 rm -f core conftest.err conftest.$ac_objext \
12110 conftest$ac_exeext conftest.$ac_ext
12111 CFLAGS=$ac_wine_try_cflags_saved
12113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_strict_aliasing" >&5
12114 $as_echo "$ac_cv_cflags__fno_strict_aliasing" >&6; }
12115 if test $ac_cv_cflags__fno_strict_aliasing = yes; then :
12116 EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
12118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wdeclaration-after-statement" >&5
12119 $as_echo_n "checking whether the compiler supports -Wdeclaration-after-statement... " >&6; }
12120 if ${ac_cv_cflags__Wdeclaration_after_statement+:} false; then :
12121 $as_echo_n "(cached) " >&6
12122 else
12123 ac_wine_try_cflags_saved=$CFLAGS
12124 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
12125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12126 /* end confdefs.h. */
12127 int main(int argc, char **argv) { return 0; }
12128 _ACEOF
12129 if ac_fn_c_try_link "$LINENO"; then :
12130 ac_cv_cflags__Wdeclaration_after_statement=yes
12131 else
12132 ac_cv_cflags__Wdeclaration_after_statement=no
12134 rm -f core conftest.err conftest.$ac_objext \
12135 conftest$ac_exeext conftest.$ac_ext
12136 CFLAGS=$ac_wine_try_cflags_saved
12138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wdeclaration_after_statement" >&5
12139 $as_echo "$ac_cv_cflags__Wdeclaration_after_statement" >&6; }
12140 if test $ac_cv_cflags__Wdeclaration_after_statement = yes; then :
12141 EXTRACFLAGS="$EXTRACFLAGS -Wdeclaration-after-statement"
12143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wempty-body" >&5
12144 $as_echo_n "checking whether the compiler supports -Wempty-body... " >&6; }
12145 if ${ac_cv_cflags__Wempty_body+:} false; then :
12146 $as_echo_n "(cached) " >&6
12147 else
12148 ac_wine_try_cflags_saved=$CFLAGS
12149 CFLAGS="$CFLAGS -Wempty-body"
12150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12151 /* end confdefs.h. */
12152 int main(int argc, char **argv) { return 0; }
12153 _ACEOF
12154 if ac_fn_c_try_link "$LINENO"; then :
12155 ac_cv_cflags__Wempty_body=yes
12156 else
12157 ac_cv_cflags__Wempty_body=no
12159 rm -f core conftest.err conftest.$ac_objext \
12160 conftest$ac_exeext conftest.$ac_ext
12161 CFLAGS=$ac_wine_try_cflags_saved
12163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wempty_body" >&5
12164 $as_echo "$ac_cv_cflags__Wempty_body" >&6; }
12165 if test $ac_cv_cflags__Wempty_body = yes; then :
12166 EXTRACFLAGS="$EXTRACFLAGS -Wempty-body"
12168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wignored-qualifiers" >&5
12169 $as_echo_n "checking whether the compiler supports -Wignored-qualifiers... " >&6; }
12170 if ${ac_cv_cflags__Wignored_qualifiers+:} false; then :
12171 $as_echo_n "(cached) " >&6
12172 else
12173 ac_wine_try_cflags_saved=$CFLAGS
12174 CFLAGS="$CFLAGS -Wignored-qualifiers"
12175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12176 /* end confdefs.h. */
12177 int main(int argc, char **argv) { return 0; }
12178 _ACEOF
12179 if ac_fn_c_try_link "$LINENO"; then :
12180 ac_cv_cflags__Wignored_qualifiers=yes
12181 else
12182 ac_cv_cflags__Wignored_qualifiers=no
12184 rm -f core conftest.err conftest.$ac_objext \
12185 conftest$ac_exeext conftest.$ac_ext
12186 CFLAGS=$ac_wine_try_cflags_saved
12188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wignored_qualifiers" >&5
12189 $as_echo "$ac_cv_cflags__Wignored_qualifiers" >&6; }
12190 if test $ac_cv_cflags__Wignored_qualifiers = yes; then :
12191 EXTRACFLAGS="$EXTRACFLAGS -Wignored-qualifiers"
12193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wstrict-prototypes" >&5
12194 $as_echo_n "checking whether the compiler supports -Wstrict-prototypes... " >&6; }
12195 if ${ac_cv_cflags__Wstrict_prototypes+:} false; then :
12196 $as_echo_n "(cached) " >&6
12197 else
12198 ac_wine_try_cflags_saved=$CFLAGS
12199 CFLAGS="$CFLAGS -Wstrict-prototypes"
12200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12201 /* end confdefs.h. */
12202 int main(int argc, char **argv) { return 0; }
12203 _ACEOF
12204 if ac_fn_c_try_link "$LINENO"; then :
12205 ac_cv_cflags__Wstrict_prototypes=yes
12206 else
12207 ac_cv_cflags__Wstrict_prototypes=no
12209 rm -f core conftest.err conftest.$ac_objext \
12210 conftest$ac_exeext conftest.$ac_ext
12211 CFLAGS=$ac_wine_try_cflags_saved
12213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wstrict_prototypes" >&5
12214 $as_echo "$ac_cv_cflags__Wstrict_prototypes" >&6; }
12215 if test $ac_cv_cflags__Wstrict_prototypes = yes; then :
12216 EXTRACFLAGS="$EXTRACFLAGS -Wstrict-prototypes"
12218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wtype-limits" >&5
12219 $as_echo_n "checking whether the compiler supports -Wtype-limits... " >&6; }
12220 if ${ac_cv_cflags__Wtype_limits+:} false; then :
12221 $as_echo_n "(cached) " >&6
12222 else
12223 ac_wine_try_cflags_saved=$CFLAGS
12224 CFLAGS="$CFLAGS -Wtype-limits"
12225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12226 /* end confdefs.h. */
12227 int main(int argc, char **argv) { return 0; }
12228 _ACEOF
12229 if ac_fn_c_try_link "$LINENO"; then :
12230 ac_cv_cflags__Wtype_limits=yes
12231 else
12232 ac_cv_cflags__Wtype_limits=no
12234 rm -f core conftest.err conftest.$ac_objext \
12235 conftest$ac_exeext conftest.$ac_ext
12236 CFLAGS=$ac_wine_try_cflags_saved
12238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wtype_limits" >&5
12239 $as_echo "$ac_cv_cflags__Wtype_limits" >&6; }
12240 if test $ac_cv_cflags__Wtype_limits = yes; then :
12241 EXTRACFLAGS="$EXTRACFLAGS -Wtype-limits"
12243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wunused-but-set-parameter" >&5
12244 $as_echo_n "checking whether the compiler supports -Wunused-but-set-parameter... " >&6; }
12245 if ${ac_cv_cflags__Wunused_but_set_parameter+:} false; then :
12246 $as_echo_n "(cached) " >&6
12247 else
12248 ac_wine_try_cflags_saved=$CFLAGS
12249 CFLAGS="$CFLAGS -Wunused-but-set-parameter"
12250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12251 /* end confdefs.h. */
12252 int main(int argc, char **argv) { return 0; }
12253 _ACEOF
12254 if ac_fn_c_try_link "$LINENO"; then :
12255 ac_cv_cflags__Wunused_but_set_parameter=yes
12256 else
12257 ac_cv_cflags__Wunused_but_set_parameter=no
12259 rm -f core conftest.err conftest.$ac_objext \
12260 conftest$ac_exeext conftest.$ac_ext
12261 CFLAGS=$ac_wine_try_cflags_saved
12263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wunused_but_set_parameter" >&5
12264 $as_echo "$ac_cv_cflags__Wunused_but_set_parameter" >&6; }
12265 if test $ac_cv_cflags__Wunused_but_set_parameter = yes; then :
12266 EXTRACFLAGS="$EXTRACFLAGS -Wunused-but-set-parameter"
12268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wwrite-strings" >&5
12269 $as_echo_n "checking whether the compiler supports -Wwrite-strings... " >&6; }
12270 if ${ac_cv_cflags__Wwrite_strings+:} false; then :
12271 $as_echo_n "(cached) " >&6
12272 else
12273 ac_wine_try_cflags_saved=$CFLAGS
12274 CFLAGS="$CFLAGS -Wwrite-strings"
12275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12276 /* end confdefs.h. */
12277 int main(int argc, char **argv) { return 0; }
12278 _ACEOF
12279 if ac_fn_c_try_link "$LINENO"; then :
12280 ac_cv_cflags__Wwrite_strings=yes
12281 else
12282 ac_cv_cflags__Wwrite_strings=no
12284 rm -f core conftest.err conftest.$ac_objext \
12285 conftest$ac_exeext conftest.$ac_ext
12286 CFLAGS=$ac_wine_try_cflags_saved
12288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wwrite_strings" >&5
12289 $as_echo "$ac_cv_cflags__Wwrite_strings" >&6; }
12290 if test $ac_cv_cflags__Wwrite_strings = yes; then :
12291 EXTRACFLAGS="$EXTRACFLAGS -Wwrite-strings"
12294 case $host_cpu in
12295 *i[3456789]86*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-omit-frame-pointer" >&5
12296 $as_echo_n "checking whether the compiler supports -fno-omit-frame-pointer... " >&6; }
12297 if ${ac_cv_cflags__fno_omit_frame_pointer+:} false; then :
12298 $as_echo_n "(cached) " >&6
12299 else
12300 ac_wine_try_cflags_saved=$CFLAGS
12301 CFLAGS="$CFLAGS -fno-omit-frame-pointer"
12302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12303 /* end confdefs.h. */
12304 int main(int argc, char **argv) { return 0; }
12305 _ACEOF
12306 if ac_fn_c_try_link "$LINENO"; then :
12307 ac_cv_cflags__fno_omit_frame_pointer=yes
12308 else
12309 ac_cv_cflags__fno_omit_frame_pointer=no
12311 rm -f core conftest.err conftest.$ac_objext \
12312 conftest$ac_exeext conftest.$ac_ext
12313 CFLAGS=$ac_wine_try_cflags_saved
12315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_omit_frame_pointer" >&5
12316 $as_echo "$ac_cv_cflags__fno_omit_frame_pointer" >&6; }
12317 if test $ac_cv_cflags__fno_omit_frame_pointer = yes; then :
12318 EXTRACFLAGS="$EXTRACFLAGS -fno-omit-frame-pointer"
12319 fi ;;
12320 esac
12322 case $host in
12323 x86_64-*mingw32*|x86_64-*cygwin*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wno-format" >&5
12324 $as_echo_n "checking whether the compiler supports -Wno-format... " >&6; }
12325 if ${ac_cv_cflags__Wno_format+:} false; then :
12326 $as_echo_n "(cached) " >&6
12327 else
12328 ac_wine_try_cflags_saved=$CFLAGS
12329 CFLAGS="$CFLAGS -Wno-format"
12330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12331 /* end confdefs.h. */
12332 int main(int argc, char **argv) { return 0; }
12333 _ACEOF
12334 if ac_fn_c_try_link "$LINENO"; then :
12335 ac_cv_cflags__Wno_format=yes
12336 else
12337 ac_cv_cflags__Wno_format=no
12339 rm -f core conftest.err conftest.$ac_objext \
12340 conftest$ac_exeext conftest.$ac_ext
12341 CFLAGS=$ac_wine_try_cflags_saved
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wno_format" >&5
12344 $as_echo "$ac_cv_cflags__Wno_format" >&6; }
12345 if test $ac_cv_cflags__Wno_format = yes; then :
12346 EXTRACFLAGS="$EXTRACFLAGS -Wno-format"
12347 fi ;;
12348 esac
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>
12361 main ()
12365 return 0;
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
12373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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"
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>
12394 main ()
12396 char*f(const char *h,char n) {return strchr(h,n);}
12398 return 0;
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
12406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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"
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
12434 rm -f core conftest.err conftest.$ac_objext \
12435 conftest$ac_exeext conftest.$ac_ext
12436 CFLAGS=$ac_wine_try_cflags_saved
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"
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; }
12456 main ()
12460 return 0;
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"
12468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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
12476 $as_echo "#define DECLSPEC_HOTPATCH __attribute__((__ms_hook_prologue__))" >>confdefs.h
12478 else
12479 $as_echo "#define DECLSPEC_HOTPATCH /* */" >>confdefs.h
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>
12494 main ()
12496 #if defined(__USE_FORTIFY_LEVEL) && __USE_FORTIFY_LEVEL > 0
12497 #error Fortify enabled
12498 #endif
12500 return 0;
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
12508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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"
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;
12527 main ()
12529 asm(".globl _ac_test\n_ac_test:\t.long 0"); if (ac_test) return 1
12531 return 0;
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"
12539 rm -f core conftest.err conftest.$ac_objext \
12540 conftest$ac_exeext conftest.$ac_ext
12542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_extern_prefix" >&5
12543 $as_echo "$ac_cv_c_extern_prefix" >&6; }
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; }
12559 main ()
12561 asm("jmp _ac_test@4"); if (ac_test(1)) return 1
12563 return 0;
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"
12571 rm -f core conftest.err conftest.$ac_objext \
12572 conftest$ac_exeext conftest.$ac_ext
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
12580 if test "$ac_cv_c_extern_prefix" = "yes"
12581 then
12582 $as_echo "#define __ASM_NAME(name) \"_\" name" >>confdefs.h
12584 asm_name_prefix="_"
12585 else
12586 $as_echo "#define __ASM_NAME(name) name" >>confdefs.h
12588 asm_name_prefix=""
12592 if test "$ac_cv_c_stdcall_suffix" = "yes"
12593 then
12594 $as_echo "#define __ASM_STDCALL(args) \"@\" #args" >>confdefs.h
12596 else
12597 $as_echo "#define __ASM_STDCALL(args) \"\"" >>confdefs.h
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. */
12611 main ()
12613 asm("\t.globl _ac_test\n\t.def _ac_test; .scl 2; .type 32; .endef\n_ac_test:\t.long 0");
12615 return 0;
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. */
12625 main ()
12627 asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0");
12629 return 0;
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. */
12639 main ()
12641 asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0");
12643 return 0;
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"
12651 rm -f core conftest.err conftest.$ac_objext \
12652 conftest$ac_exeext conftest.$ac_ext
12654 rm -f core conftest.err conftest.$ac_objext \
12655 conftest$ac_exeext conftest.$ac_ext
12657 rm -f core conftest.err conftest.$ac_objext \
12658 conftest$ac_exeext conftest.$ac_ext
12660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_asm_func_def" >&5
12661 $as_echo "$ac_cv_asm_func_def" >&6; }
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
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
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
12676 asm_func_header=".type $asm_name_prefix\" #name suffix \",2" ;;
12678 $as_echo "#define __ASM_FUNC(name) \"\"" >>confdefs.h
12680 asm_func_header="" ;;
12681 esac
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");
12692 main ()
12696 return 0;
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"
12704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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; }
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. */
12718 main ()
12720 asm(".text\nac_test:\t.long 0\n\t.previous");
12722 return 0;
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"
12730 rm -f core conftest.err conftest.$ac_objext \
12731 conftest$ac_exeext conftest.$ac_ext
12733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dot_previous" >&5
12734 $as_echo "$ac_cv_c_dot_previous" >&6; }
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");
12745 main ()
12749 return 0;
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"
12757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_cfi_support" >&5
12760 $as_echo "$ac_cv_c_cfi_support" >&6; }
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"
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"
12773 $as_echo "#define __ASM_CFI(str) str" >>confdefs.h
12775 UNWINDFLAGS=-fasynchronous-unwind-tables
12777 else
12778 $as_echo "#define __ASM_CFI(str) \"\"" >>confdefs.h
12782 asm_func_code="$asm_func_header\" code \"$asm_func_trailer"
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
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
12798 $as_echo "#define __ASM_GLOBAL_FUNC(name,code) __ASM_DEFINE_FUNC(name,\"\",code)" >>confdefs.h
12801 $as_echo "#define __ASM_STDCALL_FUNC(name,args,code) __ASM_DEFINE_FUNC(name,__ASM_STDCALL(args),code)" >>confdefs.h
12805 LDPATH=""
12807 case $build_os in
12808 cygwin*|mingw32*)
12809 TOOLSEXT=".exe"
12811 LDPATH="PATH=\"\$(TOOLSDIR)/libs/wine:\$\$PATH\""
12813 darwin*|macosx*)
12816 LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$LD_LIBRARY_PATH\""
12818 esac
12820 case $host_os in
12821 mingw32*)
12822 CRTLIBS="-lmsvcrt"
12824 SOCKETLIBS="-L\$(top_builddir)/dlls/ws2_32 -lws2_32"
12827 esac
12829 MAIN_BINARY="wine"
12831 test "x$enable_win64" != "xyes" || MAIN_BINARY="wine64"
12833 case $host_os in
12834 linux*)
12835 case $host_cpu in
12836 *i[3456789]86*) EXTRA_BINARIES="wine-preloader"
12838 x86_64*) EXTRA_BINARIES="wine64-preloader"
12840 esac
12842 esac
12845 ac_save_CFLAGS="$CFLAGS"
12846 CFLAGS="$CFLAGS $BUILTINFLAG"
12847 for ac_func in \
12848 _finite \
12849 _isnan \
12850 _pclose \
12851 _popen \
12852 _snprintf \
12853 _spawnvp \
12854 _strdup \
12855 _stricmp \
12856 _strnicmp \
12857 _strtoi64 \
12858 _strtoui64 \
12859 _vsnprintf \
12860 asctime_r \
12861 chsize \
12862 dlopen \
12863 epoll_create \
12864 ffs \
12865 finite \
12866 fnmatch \
12867 fork \
12868 fpclass \
12869 fstatfs \
12870 fstatvfs \
12871 ftruncate \
12872 futimes \
12873 futimesat \
12874 getattrlist \
12875 getdirentries \
12876 getopt_long \
12877 getpagesize \
12878 getpwuid \
12879 gettimeofday \
12880 getuid \
12881 kqueue \
12882 lstat \
12883 memmove \
12884 mmap \
12885 pclose \
12886 pipe2 \
12887 poll \
12888 popen \
12889 port_create \
12890 prctl \
12891 pread \
12892 pwrite \
12893 readdir \
12894 readlink \
12895 sched_yield \
12896 select \
12897 setproctitle \
12898 setrlimit \
12899 settimeofday \
12900 sigaltstack \
12901 sigprocmask \
12902 snprintf \
12903 spawnvp \
12904 statfs \
12905 statvfs \
12906 strcasecmp \
12907 strdup \
12908 strerror \
12909 strncasecmp \
12910 strtold \
12911 strtoll \
12912 strtoull \
12913 symlink \
12914 tcgetattr \
12915 thr_kill2 \
12916 timegm \
12917 usleep \
12918 vsnprintf \
12919 wait4 \
12920 waitpid \
12922 do :
12923 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12924 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12925 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12926 cat >>confdefs.h <<_ACEOF
12927 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12928 _ACEOF
12931 done
12933 CFLAGS="$ac_save_CFLAGS"
12935 if test "$ac_cv_func_dlopen" = no
12936 then
12937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12938 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12939 if ${ac_cv_lib_dl_dlopen+:} false; then :
12940 $as_echo_n "(cached) " >&6
12941 else
12942 ac_check_lib_save_LIBS=$LIBS
12943 LIBS="-ldl $LIBS"
12944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12945 /* end confdefs.h. */
12947 /* Override any GCC internal prototype to avoid an error.
12948 Use char because int might match the return type of a GCC
12949 builtin and then its argument prototype would still apply. */
12950 #ifdef __cplusplus
12951 extern "C"
12952 #endif
12953 char dlopen ();
12955 main ()
12957 return dlopen ();
12959 return 0;
12961 _ACEOF
12962 if ac_fn_c_try_link "$LINENO"; then :
12963 ac_cv_lib_dl_dlopen=yes
12964 else
12965 ac_cv_lib_dl_dlopen=no
12967 rm -f core conftest.err conftest.$ac_objext \
12968 conftest$ac_exeext conftest.$ac_ext
12969 LIBS=$ac_check_lib_save_LIBS
12971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12972 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12973 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12974 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
12975 LIBDL="-ldl"
12980 ac_wine_check_funcs_save_LIBS="$LIBS"
12981 LIBS="$LIBS $LIBDL"
12982 for ac_func in dladdr
12983 do :
12984 ac_fn_c_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr"
12985 if test "x$ac_cv_func_dladdr" = xyes; then :
12986 cat >>confdefs.h <<_ACEOF
12987 #define HAVE_DLADDR 1
12988 _ACEOF
12991 done
12993 LIBS="$ac_wine_check_funcs_save_LIBS"
12995 if test "$ac_cv_func_poll" = no
12996 then
12997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for poll in -lpoll" >&5
12998 $as_echo_n "checking for poll in -lpoll... " >&6; }
12999 if ${ac_cv_lib_poll_poll+:} false; then :
13000 $as_echo_n "(cached) " >&6
13001 else
13002 ac_check_lib_save_LIBS=$LIBS
13003 LIBS="-lpoll $LIBS"
13004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13005 /* end confdefs.h. */
13007 /* Override any GCC internal prototype to avoid an error.
13008 Use char because int might match the return type of a GCC
13009 builtin and then its argument prototype would still apply. */
13010 #ifdef __cplusplus
13011 extern "C"
13012 #endif
13013 char poll ();
13015 main ()
13017 return poll ();
13019 return 0;
13021 _ACEOF
13022 if ac_fn_c_try_link "$LINENO"; then :
13023 ac_cv_lib_poll_poll=yes
13024 else
13025 ac_cv_lib_poll_poll=no
13027 rm -f core conftest.err conftest.$ac_objext \
13028 conftest$ac_exeext conftest.$ac_ext
13029 LIBS=$ac_check_lib_save_LIBS
13031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_poll_poll" >&5
13032 $as_echo "$ac_cv_lib_poll_poll" >&6; }
13033 if test "x$ac_cv_lib_poll_poll" = xyes; then :
13034 $as_echo "#define HAVE_POLL 1" >>confdefs.h
13035 LIBPOLL="-lpoll"
13041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
13042 $as_echo_n "checking for library containing gethostbyname... " >&6; }
13043 if ${ac_cv_search_gethostbyname+:} false; then :
13044 $as_echo_n "(cached) " >&6
13045 else
13046 ac_func_search_save_LIBS=$LIBS
13047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13048 /* end confdefs.h. */
13050 /* Override any GCC internal prototype to avoid an error.
13051 Use char because int might match the return type of a GCC
13052 builtin and then its argument prototype would still apply. */
13053 #ifdef __cplusplus
13054 extern "C"
13055 #endif
13056 char gethostbyname ();
13058 main ()
13060 return gethostbyname ();
13062 return 0;
13064 _ACEOF
13065 for ac_lib in '' nsl; do
13066 if test -z "$ac_lib"; then
13067 ac_res="none required"
13068 else
13069 ac_res=-l$ac_lib
13070 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13072 if ac_fn_c_try_link "$LINENO"; then :
13073 ac_cv_search_gethostbyname=$ac_res
13075 rm -f core conftest.err conftest.$ac_objext \
13076 conftest$ac_exeext
13077 if ${ac_cv_search_gethostbyname+:} false; then :
13078 break
13080 done
13081 if ${ac_cv_search_gethostbyname+:} false; then :
13083 else
13084 ac_cv_search_gethostbyname=no
13086 rm conftest.$ac_ext
13087 LIBS=$ac_func_search_save_LIBS
13089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
13090 $as_echo "$ac_cv_search_gethostbyname" >&6; }
13091 ac_res=$ac_cv_search_gethostbyname
13092 if test "$ac_res" != no; then :
13093 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5
13099 $as_echo_n "checking for library containing connect... " >&6; }
13100 if ${ac_cv_search_connect+:} false; then :
13101 $as_echo_n "(cached) " >&6
13102 else
13103 ac_func_search_save_LIBS=$LIBS
13104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13105 /* end confdefs.h. */
13107 /* Override any GCC internal prototype to avoid an error.
13108 Use char because int might match the return type of a GCC
13109 builtin and then its argument prototype would still apply. */
13110 #ifdef __cplusplus
13111 extern "C"
13112 #endif
13113 char connect ();
13115 main ()
13117 return connect ();
13119 return 0;
13121 _ACEOF
13122 for ac_lib in '' socket; do
13123 if test -z "$ac_lib"; then
13124 ac_res="none required"
13125 else
13126 ac_res=-l$ac_lib
13127 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13129 if ac_fn_c_try_link "$LINENO"; then :
13130 ac_cv_search_connect=$ac_res
13132 rm -f core conftest.err conftest.$ac_objext \
13133 conftest$ac_exeext
13134 if ${ac_cv_search_connect+:} false; then :
13135 break
13137 done
13138 if ${ac_cv_search_connect+:} false; then :
13140 else
13141 ac_cv_search_connect=no
13143 rm conftest.$ac_ext
13144 LIBS=$ac_func_search_save_LIBS
13146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5
13147 $as_echo "$ac_cv_search_connect" >&6; }
13148 ac_res=$ac_cv_search_connect
13149 if test "$ac_res" != no; then :
13150 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
13156 $as_echo_n "checking for library containing inet_aton... " >&6; }
13157 if ${ac_cv_search_inet_aton+:} false; then :
13158 $as_echo_n "(cached) " >&6
13159 else
13160 ac_func_search_save_LIBS=$LIBS
13161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13162 /* end confdefs.h. */
13164 /* Override any GCC internal prototype to avoid an error.
13165 Use char because int might match the return type of a GCC
13166 builtin and then its argument prototype would still apply. */
13167 #ifdef __cplusplus
13168 extern "C"
13169 #endif
13170 char inet_aton ();
13172 main ()
13174 return inet_aton ();
13176 return 0;
13178 _ACEOF
13179 for ac_lib in '' resolv; do
13180 if test -z "$ac_lib"; then
13181 ac_res="none required"
13182 else
13183 ac_res=-l$ac_lib
13184 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13186 if ac_fn_c_try_link "$LINENO"; then :
13187 ac_cv_search_inet_aton=$ac_res
13189 rm -f core conftest.err conftest.$ac_objext \
13190 conftest$ac_exeext
13191 if ${ac_cv_search_inet_aton+:} false; then :
13192 break
13194 done
13195 if ${ac_cv_search_inet_aton+:} false; then :
13197 else
13198 ac_cv_search_inet_aton=no
13200 rm conftest.$ac_ext
13201 LIBS=$ac_func_search_save_LIBS
13203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
13204 $as_echo "$ac_cv_search_inet_aton" >&6; }
13205 ac_res=$ac_cv_search_inet_aton
13206 if test "$ac_res" != no; then :
13207 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13212 for ac_func in \
13213 getaddrinfo \
13214 getnameinfo \
13215 getnetbyname \
13216 getprotobyname \
13217 getprotobynumber \
13218 getservbyport \
13219 inet_network \
13220 inet_ntop \
13221 inet_pton \
13222 sendmsg \
13223 socketpair \
13225 do :
13226 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13227 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13228 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13229 cat >>confdefs.h <<_ACEOF
13230 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13231 _ACEOF
13234 done
13237 LDAPLIBS=""
13239 if test "$ac_cv_header_ldap_h" = "yes" -a "$ac_cv_header_lber_h" = "yes"
13240 then
13241 ac_fn_c_check_type "$LINENO" "LDAPSortKey" "ac_cv_type_LDAPSortKey" "#include <ldap.h>
13243 if test "x$ac_cv_type_LDAPSortKey" = xyes; then :
13244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap_r" >&5
13245 $as_echo_n "checking for ldap_initialize in -lldap_r... " >&6; }
13246 if ${ac_cv_lib_ldap_r_ldap_initialize+:} false; then :
13247 $as_echo_n "(cached) " >&6
13248 else
13249 ac_check_lib_save_LIBS=$LIBS
13250 LIBS="-lldap_r $LIBPTHREAD $LIBS"
13251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13252 /* end confdefs.h. */
13254 /* Override any GCC internal prototype to avoid an error.
13255 Use char because int might match the return type of a GCC
13256 builtin and then its argument prototype would still apply. */
13257 #ifdef __cplusplus
13258 extern "C"
13259 #endif
13260 char ldap_initialize ();
13262 main ()
13264 return ldap_initialize ();
13266 return 0;
13268 _ACEOF
13269 if ac_fn_c_try_link "$LINENO"; then :
13270 ac_cv_lib_ldap_r_ldap_initialize=yes
13271 else
13272 ac_cv_lib_ldap_r_ldap_initialize=no
13274 rm -f core conftest.err conftest.$ac_objext \
13275 conftest$ac_exeext conftest.$ac_ext
13276 LIBS=$ac_check_lib_save_LIBS
13278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_r_ldap_initialize" >&5
13279 $as_echo "$ac_cv_lib_ldap_r_ldap_initialize" >&6; }
13280 if test "x$ac_cv_lib_ldap_r_ldap_initialize" = xyes; then :
13281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_init in -llber" >&5
13282 $as_echo_n "checking for ber_init in -llber... " >&6; }
13283 if ${ac_cv_lib_lber_ber_init+:} false; then :
13284 $as_echo_n "(cached) " >&6
13285 else
13286 ac_check_lib_save_LIBS=$LIBS
13287 LIBS="-llber $LIBPTHREAD $LIBS"
13288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13289 /* end confdefs.h. */
13291 /* Override any GCC internal prototype to avoid an error.
13292 Use char because int might match the return type of a GCC
13293 builtin and then its argument prototype would still apply. */
13294 #ifdef __cplusplus
13295 extern "C"
13296 #endif
13297 char ber_init ();
13299 main ()
13301 return ber_init ();
13303 return 0;
13305 _ACEOF
13306 if ac_fn_c_try_link "$LINENO"; then :
13307 ac_cv_lib_lber_ber_init=yes
13308 else
13309 ac_cv_lib_lber_ber_init=no
13311 rm -f core conftest.err conftest.$ac_objext \
13312 conftest$ac_exeext conftest.$ac_ext
13313 LIBS=$ac_check_lib_save_LIBS
13315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_init" >&5
13316 $as_echo "$ac_cv_lib_lber_ber_init" >&6; }
13317 if test "x$ac_cv_lib_lber_ber_init" = xyes; then :
13319 $as_echo "#define HAVE_LDAP 1" >>confdefs.h
13321 LDAPLIBS="-lldap_r -llber"
13328 ac_wine_check_funcs_save_LIBS="$LIBS"
13329 LIBS="$LIBS $LDAPLIBS $LIBPTHREAD"
13330 for ac_func in \
13331 ldap_count_references \
13332 ldap_first_reference \
13333 ldap_next_reference \
13334 ldap_parse_reference \
13335 ldap_parse_sort_control \
13336 ldap_parse_sortresponse_control \
13337 ldap_parse_vlv_control \
13338 ldap_parse_vlvresponse_control
13339 do :
13340 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13341 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13342 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13343 cat >>confdefs.h <<_ACEOF
13344 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13345 _ACEOF
13348 done
13350 LIBS="$ac_wine_check_funcs_save_LIBS"
13352 if test "x$LDAPLIBS" = "x"; then :
13353 case "x$with_ldap" in
13354 x) as_fn_append wine_notices "|libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported." ;;
13355 xno) ;;
13356 *) as_fn_error $? "libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported.
13357 This is an error since --with-ldap was requested." "$LINENO" 5 ;;
13358 esac
13361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir takes only one argument" >&5
13362 $as_echo_n "checking whether mkdir takes only one argument... " >&6; }
13363 if ${wine_cv_one_arg_mkdir+:} false; then :
13364 $as_echo_n "(cached) " >&6
13365 else
13366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13367 /* end confdefs.h. */
13368 #include <sys/stat.h>
13370 main ()
13372 mkdir("foo");
13374 return 0;
13376 _ACEOF
13377 if ac_fn_c_try_compile "$LINENO"; then :
13378 wine_cv_one_arg_mkdir=yes
13379 else
13380 wine_cv_one_arg_mkdir=no
13382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_one_arg_mkdir" >&5
13385 $as_echo "$wine_cv_one_arg_mkdir" >&6; }
13386 if test "$wine_cv_one_arg_mkdir" = "yes"
13387 then
13389 $as_echo "#define HAVE_ONE_ARG_MKDIR 1" >>confdefs.h
13393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_setaffinity" >&5
13394 $as_echo_n "checking for sched_setaffinity... " >&6; }
13395 if ${wine_cv_have_sched_setaffinity+:} false; then :
13396 $as_echo_n "(cached) " >&6
13397 else
13398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13399 /* end confdefs.h. */
13400 #define _GNU_SOURCE
13401 #include <sched.h>
13403 main ()
13405 sched_setaffinity(0, 0, 0);
13407 return 0;
13409 _ACEOF
13410 if ac_fn_c_try_link "$LINENO"; then :
13411 wine_cv_have_sched_setaffinity=yes
13412 else
13413 wine_cv_have_sched_setaffinity=no
13415 rm -f core conftest.err conftest.$ac_objext \
13416 conftest$ac_exeext conftest.$ac_ext
13418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sched_setaffinity" >&5
13419 $as_echo "$wine_cv_have_sched_setaffinity" >&6; }
13420 if test "$wine_cv_have_sched_setaffinity" = "yes"
13421 then
13423 $as_echo "#define HAVE_SCHED_SETAFFINITY 1" >>confdefs.h
13428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13429 $as_echo_n "checking for inline... " >&6; }
13430 if ${ac_cv_c_inline+:} false; then :
13431 $as_echo_n "(cached) " >&6
13432 else
13433 ac_cv_c_inline=no
13434 for ac_kw in inline __inline__ __inline; do
13435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13436 /* end confdefs.h. */
13437 #ifndef __cplusplus
13438 typedef int foo_t;
13439 static $ac_kw foo_t static_foo () {return 0; }
13440 $ac_kw foo_t foo () {return 0; }
13441 #endif
13443 _ACEOF
13444 if ac_fn_c_try_compile "$LINENO"; then :
13445 ac_cv_c_inline=$ac_kw
13447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13448 test "$ac_cv_c_inline" != no && break
13449 done
13452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13453 $as_echo "$ac_cv_c_inline" >&6; }
13455 case $ac_cv_c_inline in
13456 inline | yes) ;;
13458 case $ac_cv_c_inline in
13459 no) ac_val=;;
13460 *) ac_val=$ac_cv_c_inline;;
13461 esac
13462 cat >>confdefs.h <<_ACEOF
13463 #ifndef __cplusplus
13464 #define inline $ac_val
13465 #endif
13466 _ACEOF
13468 esac
13470 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
13471 if test "x$ac_cv_type_mode_t" = xyes; then :
13473 cat >>confdefs.h <<_ACEOF
13474 #define HAVE_MODE_T 1
13475 _ACEOF
13479 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
13480 if test "x$ac_cv_type_off_t" = xyes; then :
13482 cat >>confdefs.h <<_ACEOF
13483 #define HAVE_OFF_T 1
13484 _ACEOF
13488 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13489 if test "x$ac_cv_type_pid_t" = xyes; then :
13491 cat >>confdefs.h <<_ACEOF
13492 #define HAVE_PID_T 1
13493 _ACEOF
13497 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13498 if test "x$ac_cv_type_size_t" = xyes; then :
13500 cat >>confdefs.h <<_ACEOF
13501 #define HAVE_SIZE_T 1
13502 _ACEOF
13506 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
13507 if test "x$ac_cv_type_ssize_t" = xyes; then :
13509 cat >>confdefs.h <<_ACEOF
13510 #define HAVE_SSIZE_T 1
13511 _ACEOF
13515 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
13516 if test "x$ac_cv_type_long_long" = xyes; then :
13518 cat >>confdefs.h <<_ACEOF
13519 #define HAVE_LONG_LONG 1
13520 _ACEOF
13524 ac_fn_c_check_type "$LINENO" "fsblkcnt_t" "ac_cv_type_fsblkcnt_t" "$ac_includes_default"
13525 if test "x$ac_cv_type_fsblkcnt_t" = xyes; then :
13527 cat >>confdefs.h <<_ACEOF
13528 #define HAVE_FSBLKCNT_T 1
13529 _ACEOF
13533 ac_fn_c_check_type "$LINENO" "fsfilcnt_t" "ac_cv_type_fsfilcnt_t" "$ac_includes_default"
13534 if test "x$ac_cv_type_fsfilcnt_t" = xyes; then :
13536 cat >>confdefs.h <<_ACEOF
13537 #define HAVE_FSFILCNT_T 1
13538 _ACEOF
13543 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "#include <sys/types.h>
13544 #include <signal.h>
13546 if test "x$ac_cv_type_sigset_t" = xyes; then :
13548 cat >>confdefs.h <<_ACEOF
13549 #define HAVE_SIGSET_T 1
13550 _ACEOF
13555 ac_fn_c_check_type "$LINENO" "request_sense" "ac_cv_type_request_sense" "#include <linux/cdrom.h>
13557 if test "x$ac_cv_type_request_sense" = xyes; then :
13559 cat >>confdefs.h <<_ACEOF
13560 #define HAVE_REQUEST_SENSE 1
13561 _ACEOF
13567 ac_fn_c_check_type "$LINENO" "struct xinpgen" "ac_cv_type_struct_xinpgen" "#include <sys/types.h>
13568 #ifdef HAVE_SYS_SOCKET_H
13569 #include <sys/socket.h>
13570 #endif
13571 #ifdef HAVE_SYS_SOCKETVAR_H
13572 #include <sys/socketvar.h>
13573 #endif
13574 #ifdef HAVE_NET_ROUTE_H
13575 #include <net/route.h>
13576 #endif
13577 #ifdef HAVE_NETINET_IN_H
13578 #include <netinet/in.h>
13579 #endif
13580 #ifdef HAVE_NETINET_IN_SYSTM_H
13581 #include <netinet/in_systm.h>
13582 #endif
13583 #ifdef HAVE_NETINET_IP_H
13584 #include <netinet/ip.h>
13585 #endif
13586 #ifdef HAVE_NETINET_IN_PCB_H
13587 #include <netinet/in_pcb.h>
13588 #endif
13590 if test "x$ac_cv_type_struct_xinpgen" = xyes; then :
13592 cat >>confdefs.h <<_ACEOF
13593 #define HAVE_STRUCT_XINPGEN 1
13594 _ACEOF
13600 ac_fn_c_check_member "$LINENO" "struct ff_effect" "direction" "ac_cv_member_struct_ff_effect_direction" "#ifdef HAVE_LINUX_INPUT_H
13601 #include <linux/input.h>
13602 #endif
13604 if test "x$ac_cv_member_struct_ff_effect_direction" = xyes; then :
13606 cat >>confdefs.h <<_ACEOF
13607 #define HAVE_STRUCT_FF_EFFECT_DIRECTION 1
13608 _ACEOF
13614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigaddset" >&5
13615 $as_echo_n "checking for sigaddset... " >&6; }
13616 if ${wine_cv_have_sigaddset+:} false; then :
13617 $as_echo_n "(cached) " >&6
13618 else
13619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13620 /* end confdefs.h. */
13621 #include <signal.h>
13623 main ()
13625 sigset_t set; sigaddset(&set,SIGTERM);
13627 return 0;
13629 _ACEOF
13630 if ac_fn_c_try_link "$LINENO"; then :
13631 wine_cv_have_sigaddset=yes
13632 else
13633 wine_cv_have_sigaddset=no
13635 rm -f core conftest.err conftest.$ac_objext \
13636 conftest$ac_exeext conftest.$ac_ext
13638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sigaddset" >&5
13639 $as_echo "$wine_cv_have_sigaddset" >&6; }
13640 if test "$wine_cv_have_sigaddset" = "yes"
13641 then
13643 $as_echo "#define HAVE_SIGADDSET 1" >>confdefs.h
13648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
13649 $as_echo_n "checking whether we can use re-entrant gethostbyname_r Linux style... " >&6; }
13650 if ${wine_cv_linux_gethostbyname_r_6+:} false; then :
13651 $as_echo_n "(cached) " >&6
13652 else
13653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13654 /* end confdefs.h. */
13655 #include <netdb.h>
13657 main ()
13660 char *name=0;
13661 struct hostent he;
13662 struct hostent *result;
13663 char *buf=0;
13664 int bufsize=0;
13665 int errnr;
13666 char *addr=0;
13667 int addrlen=0;
13668 int addrtype=0;
13669 gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
13670 gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
13673 return 0;
13675 _ACEOF
13676 if ac_fn_c_try_link "$LINENO"; then :
13677 wine_cv_linux_gethostbyname_r_6=yes
13678 else
13679 wine_cv_linux_gethostbyname_r_6=no
13682 rm -f core conftest.err conftest.$ac_objext \
13683 conftest$ac_exeext conftest.$ac_ext
13686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_gethostbyname_r_6" >&5
13687 $as_echo "$wine_cv_linux_gethostbyname_r_6" >&6; }
13688 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
13689 then
13691 $as_echo "#define HAVE_LINUX_GETHOSTBYNAME_R_6 1" >>confdefs.h
13695 if test "$ac_cv_header_linux_joystick_h" = "yes"
13696 then
13697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
13698 $as_echo_n "checking whether linux/joystick.h uses the Linux 2.2+ API... " >&6; }
13699 if ${wine_cv_linux_joystick_22_api+:} false; then :
13700 $as_echo_n "(cached) " >&6
13701 else
13702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13703 /* end confdefs.h. */
13705 #include <sys/ioctl.h>
13706 #include <sys/types.h>
13707 #include <linux/joystick.h>
13709 struct js_event blub;
13710 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
13711 #error "no 2.2 header"
13712 #endif
13715 main ()
13717 /*empty*/
13719 return 0;
13721 _ACEOF
13722 if ac_fn_c_try_compile "$LINENO"; then :
13723 wine_cv_linux_joystick_22_api=yes
13724 else
13725 wine_cv_linux_joystick_22_api=no
13727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_joystick_22_api" >&5
13731 $as_echo "$wine_cv_linux_joystick_22_api" >&6; }
13732 if test "$wine_cv_linux_joystick_22_api" = "yes"
13733 then
13735 $as_echo "#define HAVE_LINUX_22_JOYSTICK_API 1" >>confdefs.h
13741 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bfree" "ac_cv_member_struct_statfs_f_bfree" "#include <sys/types.h>
13742 #ifdef HAVE_SYS_PARAM_H
13743 # include <sys/param.h>
13744 #endif
13745 #ifdef HAVE_SYS_MOUNT_H
13746 # include <sys/mount.h>
13747 #endif
13748 #ifdef HAVE_SYS_VFS_H
13749 # include <sys/vfs.h>
13750 #endif
13751 #ifdef HAVE_SYS_STATFS_H
13752 # include <sys/statfs.h>
13753 #endif
13755 if test "x$ac_cv_member_struct_statfs_f_bfree" = xyes; then :
13757 cat >>confdefs.h <<_ACEOF
13758 #define HAVE_STRUCT_STATFS_F_BFREE 1
13759 _ACEOF
13763 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bavail" "ac_cv_member_struct_statfs_f_bavail" "#include <sys/types.h>
13764 #ifdef HAVE_SYS_PARAM_H
13765 # include <sys/param.h>
13766 #endif
13767 #ifdef HAVE_SYS_MOUNT_H
13768 # include <sys/mount.h>
13769 #endif
13770 #ifdef HAVE_SYS_VFS_H
13771 # include <sys/vfs.h>
13772 #endif
13773 #ifdef HAVE_SYS_STATFS_H
13774 # include <sys/statfs.h>
13775 #endif
13777 if test "x$ac_cv_member_struct_statfs_f_bavail" = xyes; then :
13779 cat >>confdefs.h <<_ACEOF
13780 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
13781 _ACEOF
13785 ac_fn_c_check_member "$LINENO" "struct statfs" "f_frsize" "ac_cv_member_struct_statfs_f_frsize" "#include <sys/types.h>
13786 #ifdef HAVE_SYS_PARAM_H
13787 # include <sys/param.h>
13788 #endif
13789 #ifdef HAVE_SYS_MOUNT_H
13790 # include <sys/mount.h>
13791 #endif
13792 #ifdef HAVE_SYS_VFS_H
13793 # include <sys/vfs.h>
13794 #endif
13795 #ifdef HAVE_SYS_STATFS_H
13796 # include <sys/statfs.h>
13797 #endif
13799 if test "x$ac_cv_member_struct_statfs_f_frsize" = xyes; then :
13801 cat >>confdefs.h <<_ACEOF
13802 #define HAVE_STRUCT_STATFS_F_FRSIZE 1
13803 _ACEOF
13807 ac_fn_c_check_member "$LINENO" "struct statfs" "f_ffree" "ac_cv_member_struct_statfs_f_ffree" "#include <sys/types.h>
13808 #ifdef HAVE_SYS_PARAM_H
13809 # include <sys/param.h>
13810 #endif
13811 #ifdef HAVE_SYS_MOUNT_H
13812 # include <sys/mount.h>
13813 #endif
13814 #ifdef HAVE_SYS_VFS_H
13815 # include <sys/vfs.h>
13816 #endif
13817 #ifdef HAVE_SYS_STATFS_H
13818 # include <sys/statfs.h>
13819 #endif
13821 if test "x$ac_cv_member_struct_statfs_f_ffree" = xyes; then :
13823 cat >>confdefs.h <<_ACEOF
13824 #define HAVE_STRUCT_STATFS_F_FFREE 1
13825 _ACEOF
13829 ac_fn_c_check_member "$LINENO" "struct statfs" "f_favail" "ac_cv_member_struct_statfs_f_favail" "#include <sys/types.h>
13830 #ifdef HAVE_SYS_PARAM_H
13831 # include <sys/param.h>
13832 #endif
13833 #ifdef HAVE_SYS_MOUNT_H
13834 # include <sys/mount.h>
13835 #endif
13836 #ifdef HAVE_SYS_VFS_H
13837 # include <sys/vfs.h>
13838 #endif
13839 #ifdef HAVE_SYS_STATFS_H
13840 # include <sys/statfs.h>
13841 #endif
13843 if test "x$ac_cv_member_struct_statfs_f_favail" = xyes; then :
13845 cat >>confdefs.h <<_ACEOF
13846 #define HAVE_STRUCT_STATFS_F_FAVAIL 1
13847 _ACEOF
13851 ac_fn_c_check_member "$LINENO" "struct statfs" "f_namelen" "ac_cv_member_struct_statfs_f_namelen" "#include <sys/types.h>
13852 #ifdef HAVE_SYS_PARAM_H
13853 # include <sys/param.h>
13854 #endif
13855 #ifdef HAVE_SYS_MOUNT_H
13856 # include <sys/mount.h>
13857 #endif
13858 #ifdef HAVE_SYS_VFS_H
13859 # include <sys/vfs.h>
13860 #endif
13861 #ifdef HAVE_SYS_STATFS_H
13862 # include <sys/statfs.h>
13863 #endif
13865 if test "x$ac_cv_member_struct_statfs_f_namelen" = xyes; then :
13867 cat >>confdefs.h <<_ACEOF
13868 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
13869 _ACEOF
13875 ac_fn_c_check_member "$LINENO" "struct statvfs" "f_blocks" "ac_cv_member_struct_statvfs_f_blocks" "#ifdef HAVE_SYS_STATVFS_H
13876 #include <sys/statvfs.h>
13877 #endif
13879 if test "x$ac_cv_member_struct_statvfs_f_blocks" = xyes; then :
13881 cat >>confdefs.h <<_ACEOF
13882 #define HAVE_STRUCT_STATVFS_F_BLOCKS 1
13883 _ACEOF
13889 ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#ifdef HAVE_DIRENT_H
13890 #include <dirent.h>
13891 #endif
13893 if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then :
13895 cat >>confdefs.h <<_ACEOF
13896 #define HAVE_STRUCT_DIRENT_D_RECLEN 1
13897 _ACEOF
13903 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_accrights" "ac_cv_member_struct_msghdr_msg_accrights" "#include <sys/types.h>
13904 #ifdef HAVE_SYS_SOCKET_H
13905 # include <sys/socket.h>
13906 #endif
13907 #ifdef HAVE_SYS_UN_H
13908 # include <sys/un.h>
13909 #endif
13911 if test "x$ac_cv_member_struct_msghdr_msg_accrights" = xyes; then :
13913 cat >>confdefs.h <<_ACEOF
13914 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
13915 _ACEOF
13919 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
13920 #ifdef HAVE_SYS_SOCKET_H
13921 # include <sys/socket.h>
13922 #endif
13923 #ifdef HAVE_SYS_UN_H
13924 # include <sys/un.h>
13925 #endif
13927 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
13929 cat >>confdefs.h <<_ACEOF
13930 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
13931 _ACEOF
13935 ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" "#include <sys/types.h>
13936 #ifdef HAVE_SYS_SOCKET_H
13937 # include <sys/socket.h>
13938 #endif
13939 #ifdef HAVE_SYS_UN_H
13940 # include <sys/un.h>
13941 #endif
13943 if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes; then :
13945 cat >>confdefs.h <<_ACEOF
13946 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
13947 _ACEOF
13953 ac_fn_c_check_member "$LINENO" "scsireq_t" "cmd" "ac_cv_member_scsireq_t_cmd" "#include <sys/types.h>
13954 #ifdef HAVE_SCSI_SG_H
13955 #include <scsi/sg.h>
13956 #endif
13958 if test "x$ac_cv_member_scsireq_t_cmd" = xyes; then :
13960 cat >>confdefs.h <<_ACEOF
13961 #define HAVE_SCSIREQ_T_CMD 1
13962 _ACEOF
13966 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>
13967 #ifdef HAVE_SCSI_SG_H
13968 #include <scsi/sg.h>
13969 #endif
13971 if test "x$ac_cv_member_sg_io_hdr_t_interface_id" = xyes; then :
13973 cat >>confdefs.h <<_ACEOF
13974 #define HAVE_SG_IO_HDR_T_INTERFACE_ID 1
13975 _ACEOF
13981 ac_fn_c_check_member "$LINENO" "siginfo_t" "si_fd" "ac_cv_member_siginfo_t_si_fd" "#include <signal.h>
13983 if test "x$ac_cv_member_siginfo_t_si_fd" = xyes; then :
13985 cat >>confdefs.h <<_ACEOF
13986 #define HAVE_SIGINFO_T_SI_FD 1
13987 _ACEOF
13993 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blksiz" "ac_cv_member_struct_mtget_mt_blksiz" "#include <sys/types.h>
13994 #ifdef HAVE_SYS_MTIO_H
13995 #include <sys/mtio.h>
13996 #endif
13998 if test "x$ac_cv_member_struct_mtget_mt_blksiz" = xyes; then :
14000 cat >>confdefs.h <<_ACEOF
14001 #define HAVE_STRUCT_MTGET_MT_BLKSIZ 1
14002 _ACEOF
14006 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_gstat" "ac_cv_member_struct_mtget_mt_gstat" "#include <sys/types.h>
14007 #ifdef HAVE_SYS_MTIO_H
14008 #include <sys/mtio.h>
14009 #endif
14011 if test "x$ac_cv_member_struct_mtget_mt_gstat" = xyes; then :
14013 cat >>confdefs.h <<_ACEOF
14014 #define HAVE_STRUCT_MTGET_MT_GSTAT 1
14015 _ACEOF
14019 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blkno" "ac_cv_member_struct_mtget_mt_blkno" "#include <sys/types.h>
14020 #ifdef HAVE_SYS_MTIO_H
14021 #include <sys/mtio.h>
14022 #endif
14024 if test "x$ac_cv_member_struct_mtget_mt_blkno" = xyes; then :
14026 cat >>confdefs.h <<_ACEOF
14027 #define HAVE_STRUCT_MTGET_MT_BLKNO 1
14028 _ACEOF
14034 ac_fn_c_check_member "$LINENO" "struct option" "name" "ac_cv_member_struct_option_name" "#ifdef HAVE_GETOPT_H
14035 #include <getopt.h>
14036 #endif
14038 if test "x$ac_cv_member_struct_option_name" = xyes; then :
14040 cat >>confdefs.h <<_ACEOF
14041 #define HAVE_STRUCT_OPTION_NAME 1
14042 _ACEOF
14048 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
14049 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
14051 cat >>confdefs.h <<_ACEOF
14052 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
14053 _ACEOF
14057 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
14058 if test "x$ac_cv_member_struct_stat_st_mtim" = xyes; then :
14060 cat >>confdefs.h <<_ACEOF
14061 #define HAVE_STRUCT_STAT_ST_MTIM 1
14062 _ACEOF
14066 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctim" "ac_cv_member_struct_stat_st_ctim" "$ac_includes_default"
14067 if test "x$ac_cv_member_struct_stat_st_ctim" = xyes; then :
14069 cat >>confdefs.h <<_ACEOF
14070 #define HAVE_STRUCT_STAT_ST_CTIM 1
14071 _ACEOF
14075 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
14076 if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
14078 cat >>confdefs.h <<_ACEOF
14079 #define HAVE_STRUCT_STAT_ST_ATIM 1
14080 _ACEOF
14086 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
14087 #include <sys/types.h>
14088 #endif
14089 #ifdef HAVE_NETINET_IN_H
14090 #include <netinet/in.h>
14091 #endif
14093 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = xyes; then :
14095 cat >>confdefs.h <<_ACEOF
14096 #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
14097 _ACEOF
14103 ac_fn_c_check_member "$LINENO" "ns_msg" "_msg_ptr" "ac_cv_member_ns_msg__msg_ptr" "#ifdef HAVE_SYS_TYPES_H
14104 #include <sys/types.h>
14105 #endif
14106 #ifdef HAVE_NETINET_IN_H
14107 # include <netinet/in.h>
14108 #endif
14109 #ifdef HAVE_ARPA_NAMESER_H
14110 # include <arpa/nameser.h>
14111 #endif
14113 if test "x$ac_cv_member_ns_msg__msg_ptr" = xyes; then :
14115 cat >>confdefs.h <<_ACEOF
14116 #define HAVE_NS_MSG__MSG_PTR 1
14117 _ACEOF
14123 ac_fn_c_check_member "$LINENO" "struct icmpstat" "icps_outhist" "ac_cv_member_struct_icmpstat_icps_outhist" "#ifdef HAVE_SYS_TYPES_H
14124 #include <sys/types.h>
14125 #endif
14126 #ifdef HAVE_ALIAS_H
14127 #include <alias.h>
14128 #endif
14129 #ifdef HAVE_SYS_SOCKET_H
14130 #include <sys/socket.h>
14131 #endif
14132 #ifdef HAVE_SYS_SOCKETVAR_H
14133 #include <sys/socketvar.h>
14134 #endif
14135 #ifdef HAVE_SYS_TIMEOUT_H
14136 #include <sys/timeout.h>
14137 #endif
14138 #ifdef HAVE_NETINET_IN_H
14139 #include <netinet/in.h>
14140 #endif
14141 #ifdef HAVE_NETINET_IN_SYSTM_H
14142 #include <netinet/in_systm.h>
14143 #endif
14144 #ifdef HAVE_NETINET_IP_H
14145 #include <netinet/ip.h>
14146 #endif
14147 #ifdef HAVE_NETINET_IP_VAR_H
14148 #include <netinet/ip_var.h>
14149 #endif
14150 #ifdef HAVE_NETINET_IP_ICMP_H
14151 #include <netinet/ip_icmp.h>
14152 #endif
14153 #ifdef HAVE_NETINET_ICMP_VAR
14154 #include <netinet/icmp_var.h>
14155 #endif
14157 if test "x$ac_cv_member_struct_icmpstat_icps_outhist" = xyes; then :
14159 cat >>confdefs.h <<_ACEOF
14160 #define HAVE_STRUCT_ICMPSTAT_ICPS_OUTHIST 1
14161 _ACEOF
14167 ac_fn_c_check_member "$LINENO" "struct ipstat" "ips_total" "ac_cv_member_struct_ipstat_ips_total" "#ifdef HAVE_NETINET_IP_VAR_H
14168 #include <netinet/ip_var.h>
14169 #endif
14171 if test "x$ac_cv_member_struct_ipstat_ips_total" = xyes; then :
14173 cat >>confdefs.h <<_ACEOF
14174 #define HAVE_STRUCT_IPSTAT_IPS_TOTAL 1
14175 _ACEOF
14181 ac_fn_c_check_member "$LINENO" "struct ip_stats" "ips_total" "ac_cv_member_struct_ip_stats_ips_total" "#ifdef HAVE_NETINET_IP_VAR_H
14182 #include <netinet/ip_var.h>
14183 #endif
14185 if test "x$ac_cv_member_struct_ip_stats_ips_total" = xyes; then :
14187 cat >>confdefs.h <<_ACEOF
14188 #define HAVE_STRUCT_IP_STATS_IPS_TOTAL 1
14189 _ACEOF
14195 ac_fn_c_check_member "$LINENO" "struct tcpstat" "tcps_connattempt" "ac_cv_member_struct_tcpstat_tcps_connattempt" "#ifdef HAVE_NETINET_TCP_VAR_H
14196 #include <netinet/tcp_var.h>
14197 #endif
14199 if test "x$ac_cv_member_struct_tcpstat_tcps_connattempt" = xyes; then :
14201 cat >>confdefs.h <<_ACEOF
14202 #define HAVE_STRUCT_TCPSTAT_TCPS_CONNATTEMPT 1
14203 _ACEOF
14209 ac_fn_c_check_member "$LINENO" "struct tcp_stats" "tcps_connattempt" "ac_cv_member_struct_tcp_stats_tcps_connattempt" "#ifdef HAVE_NETINET_TCP_VAR_H
14210 #include <netinet/tcp_var.h>
14211 #endif
14213 if test "x$ac_cv_member_struct_tcp_stats_tcps_connattempt" = xyes; then :
14215 cat >>confdefs.h <<_ACEOF
14216 #define HAVE_STRUCT_TCP_STATS_TCPS_CONNATTEMPT 1
14217 _ACEOF
14223 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "#ifdef HAVE_SYS_TYPES_H
14224 #include <sys/types.h>
14225 #endif
14226 #ifdef HAVE_NET_IF_H
14227 # include <net/if.h>
14228 #endif
14230 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = xyes; then :
14232 cat >>confdefs.h <<_ACEOF
14233 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
14234 _ACEOF
14240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone variable" >&5
14241 $as_echo_n "checking for timezone variable... " >&6; }
14242 if ${ac_cv_have_timezone+:} false; then :
14243 $as_echo_n "(cached) " >&6
14244 else
14245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14246 /* end confdefs.h. */
14247 #include <time.h>
14249 main ()
14251 timezone = 1
14253 return 0;
14255 _ACEOF
14256 if ac_fn_c_try_link "$LINENO"; then :
14257 ac_cv_have_timezone="yes"
14258 else
14259 ac_cv_have_timezone="no"
14261 rm -f core conftest.err conftest.$ac_objext \
14262 conftest$ac_exeext conftest.$ac_ext
14264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_timezone" >&5
14265 $as_echo "$ac_cv_have_timezone" >&6; }
14266 if test "$ac_cv_have_timezone" = "yes"
14267 then
14269 $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
14272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daylight variable" >&5
14273 $as_echo_n "checking for daylight variable... " >&6; }
14274 if ${ac_cv_have_daylight+:} false; then :
14275 $as_echo_n "(cached) " >&6
14276 else
14277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14278 /* end confdefs.h. */
14279 #include <time.h>
14281 main ()
14283 daylight = 1
14285 return 0;
14287 _ACEOF
14288 if ac_fn_c_try_link "$LINENO"; then :
14289 ac_cv_have_daylight="yes"
14290 else
14291 ac_cv_have_daylight="no"
14293 rm -f core conftest.err conftest.$ac_objext \
14294 conftest$ac_exeext conftest.$ac_ext
14296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_daylight" >&5
14297 $as_echo "$ac_cv_have_daylight" >&6; }
14298 if test "$ac_cv_have_daylight" = "yes"
14299 then
14301 $as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h
14305 ac_save_LIBS="$LIBS"
14306 LIBS="$LIBS -lm"
14307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf" >&5
14308 $as_echo_n "checking for isinf... " >&6; }
14309 if ${ac_cv_have_isinf+:} false; then :
14310 $as_echo_n "(cached) " >&6
14311 else
14312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14313 /* end confdefs.h. */
14314 #include <math.h>
14316 main ()
14318 float f = 0.0; return isinf(f)
14320 return 0;
14322 _ACEOF
14323 if ac_fn_c_try_link "$LINENO"; then :
14324 ac_cv_have_isinf="yes"
14325 else
14326 ac_cv_have_isinf="no"
14328 rm -f core conftest.err conftest.$ac_objext \
14329 conftest$ac_exeext conftest.$ac_ext
14331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isinf" >&5
14332 $as_echo "$ac_cv_have_isinf" >&6; }
14333 if test "$ac_cv_have_isinf" = "yes"
14334 then
14336 $as_echo "#define HAVE_ISINF 1" >>confdefs.h
14340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan" >&5
14341 $as_echo_n "checking for isnan... " >&6; }
14342 if ${ac_cv_have_isnan+:} false; then :
14343 $as_echo_n "(cached) " >&6
14344 else
14345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14346 /* end confdefs.h. */
14347 #include <math.h>
14349 main ()
14351 float f = 0.0; return isnan(f)
14353 return 0;
14355 _ACEOF
14356 if ac_fn_c_try_link "$LINENO"; then :
14357 ac_cv_have_isnan="yes"
14358 else
14359 ac_cv_have_isnan="no"
14361 rm -f core conftest.err conftest.$ac_objext \
14362 conftest$ac_exeext conftest.$ac_ext
14364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isnan" >&5
14365 $as_echo "$ac_cv_have_isnan" >&6; }
14366 if test "$ac_cv_have_isnan" = "yes"
14367 then
14369 $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
14372 LIBS="$ac_save_LIBS"
14375 case $host_cpu in
14376 *i[3456789]86*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __i386__" >&5
14377 $as_echo_n "checking whether we need to define __i386__... " >&6; }
14378 if ${ac_cv_cpp_def___i386__+:} false; then :
14379 $as_echo_n "(cached) " >&6
14380 else
14381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14382 /* end confdefs.h. */
14383 #ifndef __i386__
14385 #endif
14386 _ACEOF
14387 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14388 $EGREP "yes" >/dev/null 2>&1; then :
14389 ac_cv_cpp_def___i386__=yes
14390 else
14391 ac_cv_cpp_def___i386__=no
14393 rm -f conftest*
14396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___i386__" >&5
14397 $as_echo "$ac_cv_cpp_def___i386__" >&6; }
14398 if test $ac_cv_cpp_def___i386__ = yes; then :
14399 CFLAGS="$CFLAGS -D__i386__"
14400 LINTFLAGS="$LINTFLAGS -D__i386__"
14401 fi ;;
14402 *x86_64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __x86_64__" >&5
14403 $as_echo_n "checking whether we need to define __x86_64__... " >&6; }
14404 if ${ac_cv_cpp_def___x86_64__+:} false; then :
14405 $as_echo_n "(cached) " >&6
14406 else
14407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14408 /* end confdefs.h. */
14409 #ifndef __x86_64__
14411 #endif
14412 _ACEOF
14413 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14414 $EGREP "yes" >/dev/null 2>&1; then :
14415 ac_cv_cpp_def___x86_64__=yes
14416 else
14417 ac_cv_cpp_def___x86_64__=no
14419 rm -f conftest*
14422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___x86_64__" >&5
14423 $as_echo "$ac_cv_cpp_def___x86_64__" >&6; }
14424 if test $ac_cv_cpp_def___x86_64__ = yes; then :
14425 CFLAGS="$CFLAGS -D__x86_64__"
14426 LINTFLAGS="$LINTFLAGS -D__x86_64__"
14427 fi ;;
14428 *sparc64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sparc64__" >&5
14429 $as_echo_n "checking whether we need to define __sparc64__... " >&6; }
14430 if ${ac_cv_cpp_def___sparc64__+:} false; then :
14431 $as_echo_n "(cached) " >&6
14432 else
14433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14434 /* end confdefs.h. */
14435 #ifndef __sparc64__
14437 #endif
14438 _ACEOF
14439 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14440 $EGREP "yes" >/dev/null 2>&1; then :
14441 ac_cv_cpp_def___sparc64__=yes
14442 else
14443 ac_cv_cpp_def___sparc64__=no
14445 rm -f conftest*
14448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sparc64__" >&5
14449 $as_echo "$ac_cv_cpp_def___sparc64__" >&6; }
14450 if test $ac_cv_cpp_def___sparc64__ = yes; then :
14451 CFLAGS="$CFLAGS -D__sparc64__"
14452 LINTFLAGS="$LINTFLAGS -D__sparc64__"
14453 fi ;;
14454 *sparc*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sparc__" >&5
14455 $as_echo_n "checking whether we need to define __sparc__... " >&6; }
14456 if ${ac_cv_cpp_def___sparc__+:} false; then :
14457 $as_echo_n "(cached) " >&6
14458 else
14459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14460 /* end confdefs.h. */
14461 #ifndef __sparc__
14463 #endif
14464 _ACEOF
14465 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14466 $EGREP "yes" >/dev/null 2>&1; then :
14467 ac_cv_cpp_def___sparc__=yes
14468 else
14469 ac_cv_cpp_def___sparc__=no
14471 rm -f conftest*
14474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sparc__" >&5
14475 $as_echo "$ac_cv_cpp_def___sparc__" >&6; }
14476 if test $ac_cv_cpp_def___sparc__ = yes; then :
14477 CFLAGS="$CFLAGS -D__sparc__"
14478 LINTFLAGS="$LINTFLAGS -D__sparc__"
14479 fi ;;
14480 *powerpc64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __powerpc64__" >&5
14481 $as_echo_n "checking whether we need to define __powerpc64__... " >&6; }
14482 if ${ac_cv_cpp_def___powerpc64__+:} false; then :
14483 $as_echo_n "(cached) " >&6
14484 else
14485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14486 /* end confdefs.h. */
14487 #ifndef __powerpc64__
14489 #endif
14490 _ACEOF
14491 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14492 $EGREP "yes" >/dev/null 2>&1; then :
14493 ac_cv_cpp_def___powerpc64__=yes
14494 else
14495 ac_cv_cpp_def___powerpc64__=no
14497 rm -f conftest*
14500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___powerpc64__" >&5
14501 $as_echo "$ac_cv_cpp_def___powerpc64__" >&6; }
14502 if test $ac_cv_cpp_def___powerpc64__ = yes; then :
14503 CFLAGS="$CFLAGS -D__powerpc64__"
14504 LINTFLAGS="$LINTFLAGS -D__powerpc64__"
14505 fi ;;
14506 *powerpc*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __powerpc__" >&5
14507 $as_echo_n "checking whether we need to define __powerpc__... " >&6; }
14508 if ${ac_cv_cpp_def___powerpc__+:} false; then :
14509 $as_echo_n "(cached) " >&6
14510 else
14511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14512 /* end confdefs.h. */
14513 #ifndef __powerpc__
14515 #endif
14516 _ACEOF
14517 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14518 $EGREP "yes" >/dev/null 2>&1; then :
14519 ac_cv_cpp_def___powerpc__=yes
14520 else
14521 ac_cv_cpp_def___powerpc__=no
14523 rm -f conftest*
14526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___powerpc__" >&5
14527 $as_echo "$ac_cv_cpp_def___powerpc__" >&6; }
14528 if test $ac_cv_cpp_def___powerpc__ = yes; then :
14529 CFLAGS="$CFLAGS -D__powerpc__"
14530 LINTFLAGS="$LINTFLAGS -D__powerpc__"
14531 fi ;;
14532 *arm*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __arm__" >&5
14533 $as_echo_n "checking whether we need to define __arm__... " >&6; }
14534 if ${ac_cv_cpp_def___arm__+:} false; then :
14535 $as_echo_n "(cached) " >&6
14536 else
14537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14538 /* end confdefs.h. */
14539 #ifndef __arm__
14541 #endif
14542 _ACEOF
14543 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14544 $EGREP "yes" >/dev/null 2>&1; then :
14545 ac_cv_cpp_def___arm__=yes
14546 else
14547 ac_cv_cpp_def___arm__=no
14549 rm -f conftest*
14552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___arm__" >&5
14553 $as_echo "$ac_cv_cpp_def___arm__" >&6; }
14554 if test $ac_cv_cpp_def___arm__ = yes; then :
14555 CFLAGS="$CFLAGS -D__arm__"
14556 LINTFLAGS="$LINTFLAGS -D__arm__"
14557 fi ;;
14558 esac
14560 case $host_vendor in
14561 *sun*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sun__" >&5
14562 $as_echo_n "checking whether we need to define __sun__... " >&6; }
14563 if ${ac_cv_cpp_def___sun__+:} false; then :
14564 $as_echo_n "(cached) " >&6
14565 else
14566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14567 /* end confdefs.h. */
14568 #ifndef __sun__
14570 #endif
14571 _ACEOF
14572 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14573 $EGREP "yes" >/dev/null 2>&1; then :
14574 ac_cv_cpp_def___sun__=yes
14575 else
14576 ac_cv_cpp_def___sun__=no
14578 rm -f conftest*
14581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sun__" >&5
14582 $as_echo "$ac_cv_cpp_def___sun__" >&6; }
14583 if test $ac_cv_cpp_def___sun__ = yes; then :
14584 CFLAGS="$CFLAGS -D__sun__"
14585 LINTFLAGS="$LINTFLAGS -D__sun__"
14586 fi ;;
14587 esac
14593 ac_config_commands="$ac_config_commands include/stamp-h"
14596 ALL_MAKEFILE_DEPENDS="
14597 # Rules automatically generated by configure
14599 .INIT: Makefile
14600 .MAKEFILEDEPS:
14601 all: Makefile
14602 Makefile: Makefile.in Make.vars.in Make.rules config.status
14603 @./config.status Make.tmp Makefile"
14605 ALL_POT_FILES=""
14606 ALL_TEST_RESOURCES=""
14609 wine_fn_append_file ()
14611 as_fn_append $1 " \\$as_nl $2"
14614 wine_fn_append_rule ()
14616 as_fn_append $1 "$as_nl$2"
14619 wine_fn_has_flag ()
14621 expr ",$2," : ".*,$1,.*" >/dev/null
14624 wine_fn_all_dir_rules ()
14626 ac_dir=$1
14627 ac_alldeps=$2
14628 ac_makedep="\$(MAKEDEP)"
14629 ac_input=Make.vars.in:$ac_dir/Makefile.in
14630 if test $ac_dir != tools
14631 then
14632 ac_alldeps="$2 $ac_makedep"
14634 case $2 in
14635 *.in) ac_input=$ac_input:$2 ;;
14636 *) ac_makedep="$2 $ac_makedep" ;;
14637 esac
14639 wine_fn_append_file ALL_DIRS $ac_dir
14640 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14641 "__clean__: $ac_dir/__clean__
14642 .PHONY: $ac_dir/__clean__
14643 $ac_dir/__clean__: $ac_dir/Makefile
14644 @cd $ac_dir && \$(MAKE) clean
14645 \$(RM) $ac_dir/Makefile
14646 $ac_dir/Makefile: $ac_dir/Makefile.in Make.vars.in config.status $ac_alldeps
14647 @./config.status --file $ac_dir/Makefile:$ac_input && cd $ac_dir && \$(MAKE) depend
14648 depend: $ac_dir/__depend__
14649 .PHONY: $ac_dir/__depend__
14650 $ac_dir/__depend__: $ac_makedep dummy
14651 @./config.status --file $ac_dir/Makefile:$ac_input && cd $ac_dir && \$(MAKE) depend"
14654 wine_fn_pot_rules ()
14656 ac_dir=$1
14657 ac_flags=$2
14659 test "x$with_gettextpo" = xyes || return
14661 if wine_fn_has_flag mc $ac_flags
14662 then
14663 wine_fn_append_file ALL_POT_FILES $ac_dir/msg.pot
14664 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14665 "$ac_dir/msg.pot: $ac_dir/Makefile dummy
14666 @cd $ac_dir && \$(MAKE) msg.pot
14667 $ac_dir/msg.pot: tools/wmc include"
14669 if wine_fn_has_flag po $ac_flags
14670 then
14671 wine_fn_append_file ALL_POT_FILES $ac_dir/rsrc.pot
14672 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14673 "$ac_dir/rsrc.pot: $ac_dir/Makefile dummy
14674 @cd $ac_dir && \$(MAKE) rsrc.pot
14675 $ac_dir/rsrc.pot: tools/wrc include"
14679 wine_fn_config_makefile ()
14681 ac_dir=$1
14682 ac_enable=$2
14683 ac_flags=$3
14684 ac_rules=$4
14685 if eval test \"x\$"$ac_enable"\" = x"no"; then :
14686 return 0
14689 wine_fn_all_dir_rules $ac_dir ${ac_rules:-Make.rules}
14690 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14691 "all: $ac_dir
14692 .PHONY: $ac_dir
14693 $ac_dir: $ac_dir/Makefile dummy
14694 @cd $ac_dir && \$(MAKE)"
14696 wine_fn_has_flag install-lib $ac_flags || wine_fn_has_flag install-dev $ac_flags || return
14698 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14699 ".PHONY: $ac_dir/__install__ $ac_dir/__uninstall__
14700 $ac_dir/__install__:: $ac_dir
14701 @cd $ac_dir && \$(MAKE) install
14702 $ac_dir/__uninstall__:: $ac_dir/Makefile
14703 @cd $ac_dir && \$(MAKE) uninstall
14704 install:: $ac_dir/__install__
14705 __uninstall__: $ac_dir/__uninstall__"
14707 if wine_fn_has_flag install-lib $ac_flags
14708 then
14709 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14710 ".PHONY: $ac_dir/__install-lib__
14711 $ac_dir/__install-lib__:: $ac_dir
14712 @cd $ac_dir && \$(MAKE) install-lib
14713 install-lib:: $ac_dir/__install-lib__"
14716 if wine_fn_has_flag install-dev $ac_flags
14717 then
14718 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14719 ".PHONY: $ac_dir/__install-dev
14720 $ac_dir/__install-dev__:: $ac_dir
14721 @cd $ac_dir && \$(MAKE) install-dev
14722 install-dev:: $ac_dir/__install-dev__"
14726 wine_fn_config_lib ()
14728 ac_name=$1
14729 ac_flags=$2
14730 ac_dir=dlls/$ac_name
14731 wine_fn_config_makefile $ac_dir enable_$ac_name "$ac_flags" dlls/Makeimplib.rules
14733 if wine_fn_has_flag install-dev $ac_flags
14734 then :
14735 else
14736 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14737 ".PHONY: $ac_dir/__install__ $ac_dir/__uninstall__
14738 $ac_dir/__install__:: $ac_dir \$(DESTDIR)\$(dlldir)
14739 \$(INSTALL_DATA) $ac_dir/lib$ac_name.a \$(DESTDIR)\$(dlldir)/lib$ac_name.a
14740 $ac_dir/__uninstall__::
14741 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_name.a
14742 install install-dev:: $ac_dir/__install__
14743 __uninstall__: $ac_dir/__uninstall__"
14746 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "__builddeps__: $ac_dir"
14747 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "$ac_dir: tools/widl tools/winebuild tools/winegcc include"
14750 wine_fn_config_dll ()
14752 ac_name=$1
14753 ac_dir=dlls/$ac_name
14754 ac_enable=$2
14755 ac_flags=$3
14756 ac_implib=${4:-$ac_name}
14757 ac_file=$ac_dir/lib$ac_implib
14758 ac_dll=$ac_name
14759 ac_deps="tools/widl tools/winebuild tools/winegcc include"
14760 ac_implibflags=""
14762 case $ac_name in
14763 *16) ac_implibflags=" -m16" ;;
14764 *.*) ;;
14765 *) ac_dll=$ac_dll.dll ;;
14766 esac
14768 wine_fn_config_makefile $ac_dir $ac_enable "$ac_flags" dlls/Makedll.rules
14770 if eval test \"x\$"$ac_enable"\" = x"no"; then :
14771 test "$ac_enable" != enable_win16 || return 0
14772 wine_fn_has_flag implib $ac_flags && wine_fn_all_dir_rules $ac_dir dlls/Makedll.rules
14773 else
14774 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14775 "$ac_dir: __builddeps__
14776 manpages htmlpages sgmlpages xmlpages:: $ac_dir/Makefile
14777 @cd $ac_dir && \$(MAKE) \$@"
14779 if wine_fn_has_flag install-lib $ac_flags
14780 then :
14781 else
14782 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14783 ".PHONY: $ac_dir/__install-lib__ $ac_dir/__uninstall__
14784 install install-lib:: $ac_dir/__install-lib__
14785 __uninstall__: $ac_dir/__uninstall__"
14786 if test -n "$DLLEXT"
14787 then
14788 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14789 "$ac_dir/__install-lib__:: $ac_dir \$(DESTDIR)\$(dlldir) \$(DESTDIR)\$(fakedlldir)
14790 \$(INSTALL_PROGRAM) $ac_dir/$ac_dll$DLLEXT \$(DESTDIR)\$(dlldir)/$ac_dll$DLLEXT
14791 \$(INSTALL_DATA) $ac_dir/$ac_dll.fake \$(DESTDIR)\$(fakedlldir)/$ac_dll
14792 $ac_dir/__uninstall__::
14793 \$(RM) \$(DESTDIR)\$(dlldir)/$ac_dll$DLLEXT \$(DESTDIR)\$(fakedlldir)/$ac_dll"
14794 else
14795 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14796 "$ac_dir/__install-lib__:: $ac_dir \$(DESTDIR)\$(dlldir)
14797 \$(INSTALL_PROGRAM) $ac_dir/$ac_dll \$(DESTDIR)\$(dlldir)/$ac_dll
14798 $ac_dir/__uninstall__::
14799 \$(RM) \$(DESTDIR)\$(dlldir)/$ac_dll"
14803 wine_fn_pot_rules $ac_dir $ac_flags
14806 if wine_fn_has_flag staticimplib $ac_flags
14807 then
14808 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14809 "__builddeps__: $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT
14810 $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT $ac_file.cross.a: $ac_deps
14811 $ac_file.def: $ac_dir/$ac_name.spec $ac_dir/Makefile
14812 @cd $ac_dir && \$(MAKE) lib$ac_implib.def
14813 $ac_file.$STATIC_IMPLIBEXT: $ac_dir/Makefile dummy
14814 @cd $ac_dir && \$(MAKE) lib$ac_implib.$STATIC_IMPLIBEXT
14815 .PHONY: $ac_dir/__install-dev__ $ac_dir/__uninstall__
14816 $ac_dir/__install-dev__:: $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)
14817 \$(INSTALL_DATA) $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
14818 $ac_dir/__uninstall__::
14819 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
14820 install install-dev:: $ac_dir/__install-dev__
14821 __uninstall__: $ac_dir/__uninstall__"
14823 if test "$IMPLIBEXT" != "$STATIC_IMPLIBEXT"
14824 then
14825 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14826 "$ac_dir/__install-dev__:: $ac_file.$STATIC_IMPLIBEXT \$(DESTDIR)\$(dlldir) __builddeps__
14827 \$(INSTALL_DATA) $ac_file.$STATIC_IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$STATIC_IMPLIBEXT
14828 $ac_dir/__uninstall__::
14829 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$STATIC_IMPLIBEXT"
14832 if test "x$CROSSTEST_DISABLE" = x
14833 then
14834 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14835 "__builddeps__: $ac_file.cross.a
14836 $ac_file.cross.a: $ac_dir/Makefile dummy
14837 @cd $ac_dir && \$(MAKE) lib$ac_implib.cross.a"
14840 elif wine_fn_has_flag implib $ac_flags
14841 then
14842 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14843 "__builddeps__: $ac_file.$IMPLIBEXT
14844 $ac_file.def: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
14845 \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --def -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec
14846 $ac_file.a: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
14847 \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --implib -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec
14848 .PHONY: $ac_dir/__install-dev__ $ac_dir/__uninstall__
14849 $ac_dir/__install-dev__:: $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)
14850 \$(INSTALL_DATA) $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
14851 $ac_dir/__uninstall__::
14852 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
14853 install install-dev:: $ac_dir/__install-dev__
14854 __uninstall__: $ac_dir/__uninstall__"
14855 if test "x$CROSSTEST_DISABLE" = x
14856 then
14857 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14858 "__builddeps__: $ac_file.cross.a
14859 $ac_file.cross.a: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
14860 \$(WINEBUILD) \$(CROSSTARGET:%=-b %)$ac_implibflags -w --implib -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec"
14863 if test "$ac_name" != "$ac_implib"
14864 then
14865 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14866 "__builddeps__: dlls/lib$ac_implib.$IMPLIBEXT
14867 dlls/lib$ac_implib.$IMPLIBEXT: $ac_file.$IMPLIBEXT
14868 \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.$IMPLIBEXT \$@
14869 clean::
14870 \$(RM) dlls/lib$ac_implib.$IMPLIBEXT"
14871 if test "x$CROSSTEST_DISABLE" = x
14872 then
14873 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14874 "__builddeps__: dlls/lib$ac_implib.cross.a
14875 dlls/lib$ac_implib.cross.a: $ac_file.cross.a
14876 \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.cross.a \$@"
14882 wine_fn_config_program ()
14884 ac_name=$1
14885 ac_dir=programs/$ac_name
14886 ac_enable=$2
14887 ac_flags=$3
14888 ac_program=$ac_name
14890 case $ac_name in
14891 *.*) ;;
14892 *) ac_program=$ac_program.exe ;;
14893 esac
14895 wine_fn_config_makefile $ac_dir $ac_enable "$ac_flags" programs/Makeprog.rules
14897 if eval test \"x\$"$ac_enable"\" = x"no"; then :
14899 else
14900 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14901 "$ac_dir: __builddeps__"
14903 wine_fn_pot_rules $ac_dir $ac_flags
14905 wine_fn_has_flag install $ac_flags || return
14906 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14907 ".PHONY: $ac_dir/__install__ $ac_dir/__uninstall__
14908 install install-lib:: $ac_dir/__install__
14909 __uninstall__: $ac_dir/__uninstall__"
14911 if test -n "$DLLEXT"
14912 then
14913 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14914 "$ac_dir/__install__:: $ac_dir \$(DESTDIR)\$(dlldir) \$(DESTDIR)\$(fakedlldir)
14915 \$(INSTALL_PROGRAM) $ac_dir/$ac_program$DLLEXT \$(DESTDIR)\$(dlldir)/$ac_program$DLLEXT
14916 \$(INSTALL_DATA) $ac_dir/$ac_program.fake \$(DESTDIR)\$(fakedlldir)/$ac_program
14917 $ac_dir/__uninstall__::
14918 \$(RM) \$(DESTDIR)\$(dlldir)/$ac_program$DLLEXT \$(DESTDIR)\$(fakedlldir)/$ac_program"
14920 if test "x$enable_tools" != xno && wine_fn_has_flag installbin $ac_flags
14921 then
14922 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14923 "$ac_dir/__install__:: tools \$(DESTDIR)\$(bindir)
14924 \$(INSTALL_SCRIPT) tools/wineapploader \$(DESTDIR)\$(bindir)/$ac_name
14925 $ac_dir/__uninstall__::
14926 \$(RM) \$(DESTDIR)\$(bindir)/$ac_name"
14928 else
14929 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14930 "$ac_dir/__install-lib__:: $ac_dir \$(DESTDIR)\$(dlldir)
14931 \$(INSTALL_PROGRAM) $ac_dir/$ac_program \$(DESTDIR)\$(dlldir)/$ac_program
14932 $ac_dir/__uninstall__::
14933 \$(RM) \$(DESTDIR)\$(dlldir)/$ac_program"
14936 if test "x$enable_tools" != xno && wine_fn_has_flag manpage $ac_flags
14937 then
14938 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14939 "$ac_dir/__install__:: $ac_dir \$(DESTDIR)\$(mandir)/man\$(prog_manext)
14940 \$(INSTALL_DATA) $ac_dir/$ac_name.man \$(DESTDIR)\$(mandir)/man\$(prog_manext)/$ac_name.\$(prog_manext)
14941 $ac_dir/__uninstall__::
14942 \$(RM) \$(DESTDIR)\$(mandir)/man\$(prog_manext)/$ac_name.\$(prog_manext)"
14947 wine_fn_config_test ()
14949 ac_dir=$1
14950 ac_name=$2
14951 ac_flags=$3
14952 wine_fn_append_file ALL_TEST_RESOURCES $ac_name.res
14953 wine_fn_all_dir_rules $ac_dir Maketest.rules
14955 if test "x$enable_tests" = xno; then :
14957 else
14958 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14959 "all: $ac_dir
14960 .PHONY: $ac_dir
14961 $ac_dir: $ac_dir/Makefile programs/winetest/Makefile __builddeps__ dummy
14962 @cd $ac_dir && \$(MAKE)
14963 programs/winetest: $ac_dir
14964 check test: $ac_dir/__test__
14965 .PHONY: $ac_dir/__test__
14966 $ac_dir/__test__: dummy
14967 @cd $ac_dir && \$(MAKE) test
14968 testclean::
14969 \$(RM) $ac_dir/*.ok"
14971 if test "x$CROSSTEST_DISABLE" = x
14972 then
14973 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14974 "crosstest: $ac_dir/__crosstest__
14975 .PHONY: $ac_dir/__crosstest__
14976 $ac_dir/__crosstest__: $ac_dir/Makefile __builddeps__ dummy
14977 @cd $ac_dir && \$(MAKE) crosstest"
14982 wine_fn_config_tool ()
14984 ac_dir=$1
14985 ac_flags=$2
14986 if test "x$enable_tools" = xno; then :
14987 return 0
14990 wine_fn_config_makefile $ac_dir enable_tools $ac_flags
14992 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "__tooldeps__: $ac_dir"
14993 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "$ac_dir: libs/port"
14994 case $ac_dir in
14995 tools/winebuild) wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(WINEBUILD): $ac_dir" ;;
14996 esac
14999 wine_fn_config_makerules ()
15001 ac_rules=$1
15002 ac_deps=$2
15003 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15004 "$ac_rules: $ac_rules.in $ac_deps config.status
15005 @./config.status $ac_rules
15006 distclean::
15007 \$(RM) $ac_rules"
15010 wine_fn_config_symlink ()
15012 ac_link=$1
15013 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15014 "$ac_link:
15015 @./config.status $ac_link
15016 distclean::
15017 \$(RM) $ac_link"
15020 if test "x$CROSSTEST_DISABLE" != x
15021 then
15022 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15023 "crosstest:
15024 @echo \"crosstest is not supported (mingw not installed?)\" && false"
15026 ac_config_links="$ac_config_links dlls/shell32/AUTHORS:AUTHORS"
15027 wine_fn_config_symlink dlls/shell32/AUTHORS
15028 ac_config_links="$ac_config_links dlls/wineps.drv/generic.ppd:dlls/wineps.drv/generic.ppd"
15029 test "$srcdir" = "." || wine_fn_config_symlink dlls/wineps.drv/generic.ppd
15030 if test "x$enable_fonts" != xno; then
15031 ac_config_links="$ac_config_links fonts/marlett.ttf:fonts/marlett.ttf"
15032 test "$srcdir" = "." || wine_fn_config_symlink fonts/marlett.ttf
15034 if test "x$enable_fonts" != xno; then
15035 ac_config_links="$ac_config_links fonts/symbol.ttf:fonts/symbol.ttf"
15036 test "$srcdir" = "." || wine_fn_config_symlink fonts/symbol.ttf
15038 if test "x$enable_fonts" != xno; then
15039 ac_config_links="$ac_config_links fonts/tahoma.ttf:fonts/tahoma.ttf"
15040 test "$srcdir" = "." || wine_fn_config_symlink fonts/tahoma.ttf
15042 if test "x$enable_fonts" != xno; then
15043 ac_config_links="$ac_config_links fonts/tahomabd.ttf:fonts/tahomabd.ttf"
15044 test "$srcdir" = "." || wine_fn_config_symlink fonts/tahomabd.ttf
15046 ac_config_links="$ac_config_links po/LINGUAS:po/LINGUAS"
15047 test "$srcdir" = "." || wine_fn_config_symlink po/LINGUAS
15048 if test "x$enable_tools" != xno; then
15049 ac_config_links="$ac_config_links tools/l_intl.nls:tools/l_intl.nls"
15050 test "$srcdir" = "." || wine_fn_config_symlink tools/l_intl.nls
15052 ac_config_links="$ac_config_links wine:tools/winewrapper"
15053 wine_fn_config_symlink wine
15054 if test "x$enable_win64" != xno; then
15055 ac_config_links="$ac_config_links wine64:tools/winewrapper"
15056 wine_fn_config_symlink wine64
15059 ac_config_commands="$ac_config_commands dlls/gdi32/dibdrv"
15061 ac_config_commands="$ac_config_commands dlls/gdi32/enhmfdrv"
15063 ac_config_commands="$ac_config_commands dlls/gdi32/mfdrv"
15065 ac_config_commands="$ac_config_commands dlls/kernel32/nls"
15067 ac_config_commands="$ac_config_commands dlls/user32/resources"
15069 ac_config_commands="$ac_config_commands dlls/wineps.drv/data"
15071 ac_config_commands="$ac_config_commands include/wine"
15074 wine_fn_config_makerules Make.rules
15075 MAKE_RULES=Make.rules
15076 ac_config_files="$ac_config_files Make.rules"
15078 wine_fn_config_makerules Maketest.rules Make.rules
15079 MAKE_TEST_RULES=Maketest.rules
15080 ac_config_files="$ac_config_files Maketest.rules"
15082 wine_fn_config_makerules dlls/Makedll.rules Make.rules
15083 MAKE_DLL_RULES=dlls/Makedll.rules
15084 ac_config_files="$ac_config_files dlls/Makedll.rules"
15086 wine_fn_config_makerules dlls/Makeimplib.rules Make.rules
15087 MAKE_IMPLIB_RULES=dlls/Makeimplib.rules
15088 ac_config_files="$ac_config_files dlls/Makeimplib.rules"
15090 wine_fn_config_makerules programs/Makeprog.rules Make.rules
15091 MAKE_PROG_RULES=programs/Makeprog.rules
15092 ac_config_files="$ac_config_files programs/Makeprog.rules"
15095 wine_fn_config_dll acledit enable_acledit
15096 wine_fn_config_dll aclui enable_aclui implib
15097 wine_fn_config_dll activeds enable_activeds implib
15098 wine_fn_config_dll actxprxy enable_actxprxy
15099 wine_fn_config_lib adsiid
15100 wine_fn_config_dll advapi32 enable_advapi32 implib
15101 wine_fn_config_test dlls/advapi32/tests advapi32_test
15102 wine_fn_config_dll advpack enable_advpack implib
15103 wine_fn_config_test dlls/advpack/tests advpack_test
15104 wine_fn_config_dll amstream enable_amstream
15105 wine_fn_config_test dlls/amstream/tests amstream_test
15106 wine_fn_config_dll apphelp enable_apphelp
15107 wine_fn_config_dll appwiz.cpl enable_appwiz_cpl po
15108 wine_fn_config_dll atl enable_atl implib
15109 wine_fn_config_test dlls/atl/tests atl_test
15110 wine_fn_config_dll atl80 enable_atl80
15111 wine_fn_config_dll authz enable_authz
15112 wine_fn_config_dll avicap32 enable_avicap32 implib
15113 wine_fn_config_dll avifil32 enable_avifil32 implib,po
15114 wine_fn_config_test dlls/avifil32/tests avifil32_test
15115 wine_fn_config_dll avifile.dll16 enable_win16
15116 wine_fn_config_dll avrt enable_avrt implib
15117 wine_fn_config_dll bcrypt enable_bcrypt
15118 wine_fn_config_dll browseui enable_browseui po
15119 wine_fn_config_test dlls/browseui/tests browseui_test
15120 wine_fn_config_dll cabinet enable_cabinet implib
15121 wine_fn_config_test dlls/cabinet/tests cabinet_test
15122 wine_fn_config_dll capi2032 enable_capi2032 implib
15123 wine_fn_config_dll cards enable_cards implib
15124 wine_fn_config_dll cfgmgr32 enable_cfgmgr32 implib
15125 wine_fn_config_dll clusapi enable_clusapi implib
15126 wine_fn_config_dll comcat enable_comcat
15127 wine_fn_config_test dlls/comcat/tests comcat_test
15128 wine_fn_config_dll comctl32 enable_comctl32 implib,po
15129 wine_fn_config_test dlls/comctl32/tests comctl32_test
15130 wine_fn_config_dll comdlg32 enable_comdlg32 implib,po
15131 wine_fn_config_test dlls/comdlg32/tests comdlg32_test
15132 wine_fn_config_dll comm.drv16 enable_win16
15133 wine_fn_config_dll commdlg.dll16 enable_win16
15134 wine_fn_config_dll compobj.dll16 enable_win16
15135 wine_fn_config_dll compstui enable_compstui implib
15136 wine_fn_config_dll credui enable_credui implib,po
15137 wine_fn_config_test dlls/credui/tests credui_test
15138 wine_fn_config_dll crtdll enable_crtdll implib
15139 wine_fn_config_dll crypt32 enable_crypt32 implib,po
15140 wine_fn_config_test dlls/crypt32/tests crypt32_test
15141 wine_fn_config_dll cryptdlg enable_cryptdlg po
15142 wine_fn_config_dll cryptdll enable_cryptdll implib
15143 wine_fn_config_dll cryptnet enable_cryptnet implib
15144 wine_fn_config_test dlls/cryptnet/tests cryptnet_test
15145 wine_fn_config_dll cryptui enable_cryptui implib,po
15146 wine_fn_config_test dlls/cryptui/tests cryptui_test
15147 wine_fn_config_dll ctapi32 enable_ctapi32
15148 wine_fn_config_dll ctl3d.dll16 enable_win16
15149 wine_fn_config_dll ctl3d32 enable_ctl3d32 implib
15150 wine_fn_config_dll ctl3dv2.dll16 enable_win16
15151 wine_fn_config_dll d3d10 enable_d3d10 implib
15152 wine_fn_config_test dlls/d3d10/tests d3d10_test
15153 wine_fn_config_dll d3d10core enable_d3d10core implib
15154 wine_fn_config_test dlls/d3d10core/tests d3d10core_test
15155 wine_fn_config_dll d3d8 enable_d3d8 implib
15156 wine_fn_config_test dlls/d3d8/tests d3d8_test
15157 wine_fn_config_dll d3d9 enable_d3d9 implib
15158 wine_fn_config_test dlls/d3d9/tests d3d9_test
15159 wine_fn_config_dll d3dcompiler_33 enable_d3dcompiler_33
15160 wine_fn_config_dll d3dcompiler_34 enable_d3dcompiler_34
15161 wine_fn_config_dll d3dcompiler_35 enable_d3dcompiler_35
15162 wine_fn_config_dll d3dcompiler_36 enable_d3dcompiler_36
15163 wine_fn_config_dll d3dcompiler_37 enable_d3dcompiler_37
15164 wine_fn_config_dll d3dcompiler_38 enable_d3dcompiler_38
15165 wine_fn_config_dll d3dcompiler_39 enable_d3dcompiler_39
15166 wine_fn_config_dll d3dcompiler_40 enable_d3dcompiler_40
15167 wine_fn_config_dll d3dcompiler_41 enable_d3dcompiler_41
15168 wine_fn_config_dll d3dcompiler_42 enable_d3dcompiler_42
15169 wine_fn_config_dll d3dcompiler_43 enable_d3dcompiler_43 implib d3dcompiler
15170 wine_fn_config_test dlls/d3dcompiler_43/tests d3dcompiler_43_test
15171 wine_fn_config_dll d3dim enable_d3dim implib
15172 wine_fn_config_dll d3drm enable_d3drm implib
15173 wine_fn_config_test dlls/d3drm/tests d3drm_test
15174 wine_fn_config_dll d3dx10_33 enable_d3dx10_33
15175 wine_fn_config_dll d3dx10_34 enable_d3dx10_34
15176 wine_fn_config_dll d3dx10_35 enable_d3dx10_35
15177 wine_fn_config_dll d3dx10_36 enable_d3dx10_36
15178 wine_fn_config_dll d3dx10_37 enable_d3dx10_37
15179 wine_fn_config_dll d3dx10_38 enable_d3dx10_38
15180 wine_fn_config_dll d3dx10_39 enable_d3dx10_39
15181 wine_fn_config_dll d3dx10_40 enable_d3dx10_40
15182 wine_fn_config_dll d3dx10_41 enable_d3dx10_41
15183 wine_fn_config_dll d3dx10_42 enable_d3dx10_42
15184 wine_fn_config_dll d3dx10_43 enable_d3dx10_43
15185 wine_fn_config_dll d3dx9_24 enable_d3dx9_24
15186 wine_fn_config_dll d3dx9_25 enable_d3dx9_25
15187 wine_fn_config_dll d3dx9_26 enable_d3dx9_26
15188 wine_fn_config_dll d3dx9_27 enable_d3dx9_27
15189 wine_fn_config_dll d3dx9_28 enable_d3dx9_28
15190 wine_fn_config_dll d3dx9_29 enable_d3dx9_29
15191 wine_fn_config_dll d3dx9_30 enable_d3dx9_30
15192 wine_fn_config_dll d3dx9_31 enable_d3dx9_31
15193 wine_fn_config_dll d3dx9_32 enable_d3dx9_32
15194 wine_fn_config_dll d3dx9_33 enable_d3dx9_33
15195 wine_fn_config_dll d3dx9_34 enable_d3dx9_34
15196 wine_fn_config_dll d3dx9_35 enable_d3dx9_35
15197 wine_fn_config_dll d3dx9_36 enable_d3dx9_36 implib d3dx9
15198 wine_fn_config_test dlls/d3dx9_36/tests d3dx9_36_test
15199 wine_fn_config_dll d3dx9_37 enable_d3dx9_37
15200 wine_fn_config_dll d3dx9_38 enable_d3dx9_38
15201 wine_fn_config_dll d3dx9_39 enable_d3dx9_39
15202 wine_fn_config_dll d3dx9_40 enable_d3dx9_40
15203 wine_fn_config_dll d3dx9_41 enable_d3dx9_41
15204 wine_fn_config_dll d3dx9_42 enable_d3dx9_42
15205 wine_fn_config_dll d3dx9_43 enable_d3dx9_43
15206 wine_fn_config_dll d3dxof enable_d3dxof implib
15207 wine_fn_config_test dlls/d3dxof/tests d3dxof_test
15208 wine_fn_config_dll dbgeng enable_dbgeng implib
15209 wine_fn_config_dll dbghelp enable_dbghelp implib
15210 wine_fn_config_dll dciman32 enable_dciman32 implib
15211 wine_fn_config_dll ddeml.dll16 enable_win16
15212 wine_fn_config_dll ddraw enable_ddraw implib
15213 wine_fn_config_test dlls/ddraw/tests ddraw_test
15214 wine_fn_config_dll ddrawex enable_ddrawex
15215 wine_fn_config_test dlls/ddrawex/tests ddrawex_test
15216 wine_fn_config_dll devenum enable_devenum po
15217 wine_fn_config_test dlls/devenum/tests devenum_test
15218 wine_fn_config_dll dhcpcsvc enable_dhcpcsvc
15219 wine_fn_config_dll dinput enable_dinput implib,po,staticimplib
15220 wine_fn_config_test dlls/dinput/tests dinput_test
15221 wine_fn_config_dll dinput8 enable_dinput8 implib
15222 wine_fn_config_test dlls/dinput8/tests dinput8_test
15223 wine_fn_config_dll dispdib.dll16 enable_win16
15224 wine_fn_config_dll dispex enable_dispex
15225 wine_fn_config_test dlls/dispex/tests dispex_test
15226 wine_fn_config_dll display.drv16 enable_win16
15227 wine_fn_config_dll dmband enable_dmband
15228 wine_fn_config_test dlls/dmband/tests dmband_test
15229 wine_fn_config_dll dmcompos enable_dmcompos
15230 wine_fn_config_dll dmime enable_dmime
15231 wine_fn_config_test dlls/dmime/tests dmime_test
15232 wine_fn_config_dll dmloader enable_dmloader
15233 wine_fn_config_test dlls/dmloader/tests dmloader_test
15234 wine_fn_config_dll dmscript enable_dmscript
15235 wine_fn_config_dll dmstyle enable_dmstyle
15236 wine_fn_config_dll dmsynth enable_dmsynth
15237 wine_fn_config_test dlls/dmsynth/tests dmsynth_test
15238 wine_fn_config_dll dmusic enable_dmusic
15239 wine_fn_config_test dlls/dmusic/tests dmusic_test
15240 wine_fn_config_dll dmusic32 enable_dmusic32 implib
15241 wine_fn_config_dll dnsapi enable_dnsapi implib
15242 wine_fn_config_test dlls/dnsapi/tests dnsapi_test
15243 wine_fn_config_dll dplay enable_dplay implib
15244 wine_fn_config_dll dplayx enable_dplayx implib
15245 wine_fn_config_test dlls/dplayx/tests dplayx_test
15246 wine_fn_config_dll dpnaddr enable_dpnaddr
15247 wine_fn_config_dll dpnet enable_dpnet implib
15248 wine_fn_config_test dlls/dpnet/tests dpnet_test
15249 wine_fn_config_dll dpnhpast enable_dpnhpast
15250 wine_fn_config_dll dpnlobby enable_dpnlobby
15251 wine_fn_config_dll dpwsockx enable_dpwsockx
15252 wine_fn_config_dll drmclien enable_drmclien
15253 wine_fn_config_dll dsound enable_dsound implib
15254 wine_fn_config_test dlls/dsound/tests dsound_test
15255 wine_fn_config_dll dssenh enable_dssenh
15256 wine_fn_config_dll dswave enable_dswave
15257 wine_fn_config_dll dwmapi enable_dwmapi implib
15258 wine_fn_config_dll dxdiagn enable_dxdiagn po
15259 wine_fn_config_test dlls/dxdiagn/tests dxdiagn_test
15260 wine_fn_config_lib dxerr8
15261 wine_fn_config_lib dxerr9
15262 wine_fn_config_dll dxgi enable_dxgi implib
15263 wine_fn_config_test dlls/dxgi/tests dxgi_test
15264 wine_fn_config_lib dxguid
15265 wine_fn_config_dll explorerframe enable_explorerframe
15266 wine_fn_config_test dlls/explorerframe/tests explorerframe_test
15267 wine_fn_config_dll faultrep enable_faultrep implib
15268 wine_fn_config_test dlls/faultrep/tests faultrep_test
15269 wine_fn_config_dll fltlib enable_fltlib
15270 wine_fn_config_dll fusion enable_fusion
15271 wine_fn_config_test dlls/fusion/tests fusion_test
15272 wine_fn_config_dll fwpuclnt enable_fwpuclnt
15273 wine_fn_config_dll gameux enable_gameux
15274 wine_fn_config_test dlls/gameux/tests gameux_test
15275 wine_fn_config_dll gdi.exe16 enable_win16
15276 wine_fn_config_dll gdi32 enable_gdi32 implib,po
15277 wine_fn_config_test dlls/gdi32/tests gdi32_test
15278 wine_fn_config_dll gdiplus enable_gdiplus implib
15279 wine_fn_config_test dlls/gdiplus/tests gdiplus_test
15280 wine_fn_config_dll glu32 enable_glu32 implib
15281 wine_fn_config_dll gphoto2.ds enable_gphoto2_ds po
15282 wine_fn_config_dll gpkcsp enable_gpkcsp
15283 wine_fn_config_dll hal enable_hal
15284 wine_fn_config_dll hhctrl.ocx enable_hhctrl_ocx po
15285 wine_fn_config_dll hid enable_hid implib
15286 wine_fn_config_dll hlink enable_hlink implib
15287 wine_fn_config_test dlls/hlink/tests hlink_test
15288 wine_fn_config_dll hnetcfg enable_hnetcfg
15289 wine_fn_config_dll httpapi enable_httpapi
15290 wine_fn_config_dll iccvid enable_iccvid po
15291 wine_fn_config_dll icmp enable_icmp
15292 wine_fn_config_dll ieframe enable_ieframe implib,po
15293 wine_fn_config_test dlls/ieframe/tests ieframe_test
15294 wine_fn_config_dll ifsmgr.vxd enable_win16
15295 wine_fn_config_dll imaadp32.acm enable_imaadp32_acm
15296 wine_fn_config_dll imagehlp enable_imagehlp implib
15297 wine_fn_config_test dlls/imagehlp/tests imagehlp_test
15298 wine_fn_config_dll imm.dll16 enable_win16
15299 wine_fn_config_dll imm32 enable_imm32 implib
15300 wine_fn_config_test dlls/imm32/tests imm32_test
15301 wine_fn_config_dll inetcomm enable_inetcomm implib
15302 wine_fn_config_test dlls/inetcomm/tests inetcomm_test
15303 wine_fn_config_dll inetcpl.cpl enable_inetcpl_cpl po
15304 wine_fn_config_dll inetmib1 enable_inetmib1
15305 wine_fn_config_test dlls/inetmib1/tests inetmib1_test
15306 wine_fn_config_dll infosoft enable_infosoft
15307 wine_fn_config_test dlls/infosoft/tests infosoft_test
15308 wine_fn_config_dll initpki enable_initpki
15309 wine_fn_config_dll inkobj enable_inkobj
15310 wine_fn_config_dll inseng enable_inseng
15311 wine_fn_config_dll iphlpapi enable_iphlpapi implib
15312 wine_fn_config_test dlls/iphlpapi/tests iphlpapi_test
15313 wine_fn_config_dll itircl enable_itircl
15314 wine_fn_config_dll itss enable_itss
15315 wine_fn_config_test dlls/itss/tests itss_test
15316 wine_fn_config_dll jscript enable_jscript po
15317 wine_fn_config_test dlls/jscript/tests jscript_test
15318 wine_fn_config_dll kernel32 enable_kernel32 implib,mc
15319 wine_fn_config_test dlls/kernel32/tests kernel32_test
15320 wine_fn_config_dll keyboard.drv16 enable_win16
15321 wine_fn_config_dll krnl386.exe16 enable_win16 implib kernel
15322 wine_fn_config_dll ktmw32 enable_ktmw32
15323 wine_fn_config_dll loadperf enable_loadperf implib
15324 wine_fn_config_dll localspl enable_localspl po
15325 wine_fn_config_test dlls/localspl/tests localspl_test
15326 wine_fn_config_dll localui enable_localui po
15327 wine_fn_config_test dlls/localui/tests localui_test
15328 wine_fn_config_dll lz32 enable_lz32 implib
15329 wine_fn_config_test dlls/lz32/tests lz32_test
15330 wine_fn_config_dll lzexpand.dll16 enable_win16
15331 wine_fn_config_dll mapi32 enable_mapi32 implib,po
15332 wine_fn_config_test dlls/mapi32/tests mapi32_test
15333 wine_fn_config_dll mapistub enable_mapistub
15334 wine_fn_config_dll mciavi32 enable_mciavi32
15335 wine_fn_config_dll mcicda enable_mcicda
15336 wine_fn_config_dll mciqtz32 enable_mciqtz32
15337 wine_fn_config_dll mciseq enable_mciseq
15338 wine_fn_config_dll mciwave enable_mciwave
15339 wine_fn_config_dll mgmtapi enable_mgmtapi
15340 wine_fn_config_dll midimap enable_midimap
15341 wine_fn_config_dll mlang enable_mlang implib
15342 wine_fn_config_test dlls/mlang/tests mlang_test
15343 wine_fn_config_dll mmcndmgr enable_mmcndmgr
15344 wine_fn_config_dll mmdevapi enable_mmdevapi
15345 wine_fn_config_test dlls/mmdevapi/tests mmdevapi_test
15346 wine_fn_config_dll mmdevldr.vxd enable_win16
15347 wine_fn_config_dll mmsystem.dll16 enable_win16
15348 wine_fn_config_dll monodebg.vxd enable_win16
15349 wine_fn_config_dll mountmgr.sys enable_mountmgr_sys
15350 wine_fn_config_dll mouse.drv16 enable_win16
15351 wine_fn_config_dll mpr enable_mpr implib,po
15352 wine_fn_config_dll mprapi enable_mprapi implib
15353 wine_fn_config_dll msacm.dll16 enable_win16
15354 wine_fn_config_dll msacm32.drv enable_msacm32_drv
15355 wine_fn_config_dll msacm32 enable_msacm32 implib,po
15356 wine_fn_config_test dlls/msacm32/tests msacm32_test
15357 wine_fn_config_dll msadp32.acm enable_msadp32_acm
15358 wine_fn_config_dll mscat32 enable_mscat32
15359 wine_fn_config_dll mscms enable_mscms implib
15360 wine_fn_config_test dlls/mscms/tests mscms_test
15361 wine_fn_config_dll mscoree enable_mscoree
15362 wine_fn_config_test dlls/mscoree/tests mscoree_test
15363 wine_fn_config_dll msctf enable_msctf
15364 wine_fn_config_test dlls/msctf/tests msctf_test
15365 wine_fn_config_dll msdaps enable_msdaps
15366 wine_fn_config_dll msdmo enable_msdmo implib
15367 wine_fn_config_dll msftedit enable_msftedit
15368 wine_fn_config_dll msg711.acm enable_msg711_acm
15369 wine_fn_config_dll msgsm32.acm enable_msgsm32_acm
15370 wine_fn_config_dll mshtml.tlb enable_mshtml_tlb
15371 wine_fn_config_dll mshtml enable_mshtml implib,po
15372 wine_fn_config_test dlls/mshtml/tests mshtml_test
15373 wine_fn_config_dll msi enable_msi implib,po
15374 wine_fn_config_test dlls/msi/tests msi_test
15375 wine_fn_config_dll msident enable_msident
15376 wine_fn_config_dll msimg32 enable_msimg32 implib
15377 wine_fn_config_dll msimsg enable_msimsg
15378 wine_fn_config_dll msimtf enable_msimtf
15379 wine_fn_config_dll msisip enable_msisip
15380 wine_fn_config_dll msisys.ocx enable_msisys_ocx
15381 wine_fn_config_dll msnet32 enable_msnet32
15382 wine_fn_config_dll mspatcha enable_mspatcha
15383 wine_fn_config_dll msrle32 enable_msrle32 po
15384 wine_fn_config_dll mssign32 enable_mssign32
15385 wine_fn_config_dll mssip32 enable_mssip32
15386 wine_fn_config_dll mstask enable_mstask
15387 wine_fn_config_test dlls/mstask/tests mstask_test
15388 wine_fn_config_dll msvcirt enable_msvcirt
15389 wine_fn_config_dll msvcm80 enable_msvcm80
15390 wine_fn_config_dll msvcm90 enable_msvcm90
15391 wine_fn_config_dll msvcp100 enable_msvcp100
15392 wine_fn_config_dll msvcp60 enable_msvcp60
15393 wine_fn_config_dll msvcp70 enable_msvcp70
15394 wine_fn_config_dll msvcp71 enable_msvcp71
15395 wine_fn_config_dll msvcp80 enable_msvcp80
15396 wine_fn_config_dll msvcp90 enable_msvcp90
15397 wine_fn_config_test dlls/msvcp90/tests msvcp90_test
15398 wine_fn_config_dll msvcr100 enable_msvcr100
15399 wine_fn_config_dll msvcr70 enable_msvcr70 implib
15400 wine_fn_config_dll msvcr71 enable_msvcr71 implib
15401 wine_fn_config_dll msvcr80 enable_msvcr80
15402 wine_fn_config_dll msvcr90 enable_msvcr90
15403 wine_fn_config_test dlls/msvcr90/tests msvcr90_test
15404 wine_fn_config_dll msvcrt enable_msvcrt implib
15405 wine_fn_config_test dlls/msvcrt/tests msvcrt_test
15406 wine_fn_config_dll msvcrt20 enable_msvcrt20 implib
15407 wine_fn_config_dll msvcrt40 enable_msvcrt40 implib
15408 wine_fn_config_dll msvcrtd enable_msvcrtd implib
15409 wine_fn_config_test dlls/msvcrtd/tests msvcrtd_test
15410 wine_fn_config_dll msvfw32 enable_msvfw32 implib,po
15411 wine_fn_config_test dlls/msvfw32/tests msvfw32_test
15412 wine_fn_config_dll msvidc32 enable_msvidc32 po
15413 wine_fn_config_dll msvideo.dll16 enable_win16
15414 wine_fn_config_dll mswsock enable_mswsock implib
15415 wine_fn_config_dll msxml enable_msxml
15416 wine_fn_config_dll msxml2 enable_msxml2
15417 wine_fn_config_dll msxml3 enable_msxml3
15418 wine_fn_config_test dlls/msxml3/tests msxml3_test
15419 wine_fn_config_dll msxml4 enable_msxml4
15420 wine_fn_config_dll msxml6 enable_msxml6
15421 wine_fn_config_dll nddeapi enable_nddeapi implib
15422 wine_fn_config_dll netapi32 enable_netapi32 implib
15423 wine_fn_config_test dlls/netapi32/tests netapi32_test
15424 wine_fn_config_dll newdev enable_newdev implib
15425 wine_fn_config_dll normaliz enable_normaliz implib
15426 wine_fn_config_dll npmshtml enable_npmshtml
15427 wine_fn_config_dll ntdll enable_ntdll implib
15428 wine_fn_config_test dlls/ntdll/tests ntdll_test
15429 wine_fn_config_dll ntdsapi enable_ntdsapi implib
15430 wine_fn_config_test dlls/ntdsapi/tests ntdsapi_test
15431 wine_fn_config_dll ntoskrnl.exe enable_ntoskrnl_exe implib
15432 wine_fn_config_dll ntprint enable_ntprint
15433 wine_fn_config_test dlls/ntprint/tests ntprint_test
15434 wine_fn_config_dll objsel enable_objsel
15435 wine_fn_config_dll odbc32 enable_odbc32 implib
15436 wine_fn_config_dll odbccp32 enable_odbccp32 implib
15437 wine_fn_config_test dlls/odbccp32/tests odbccp32_test
15438 wine_fn_config_dll ole2.dll16 enable_win16
15439 wine_fn_config_dll ole2conv.dll16 enable_win16
15440 wine_fn_config_dll ole2disp.dll16 enable_win16
15441 wine_fn_config_dll ole2nls.dll16 enable_win16
15442 wine_fn_config_dll ole2prox.dll16 enable_win16
15443 wine_fn_config_dll ole2thk.dll16 enable_win16
15444 wine_fn_config_dll ole32 enable_ole32 implib
15445 wine_fn_config_test dlls/ole32/tests ole32_test
15446 wine_fn_config_dll oleacc enable_oleacc implib,po
15447 wine_fn_config_test dlls/oleacc/tests oleacc_test
15448 wine_fn_config_dll oleaut32 enable_oleaut32 implib,po
15449 wine_fn_config_test dlls/oleaut32/tests oleaut32_test
15450 wine_fn_config_dll olecli.dll16 enable_win16
15451 wine_fn_config_dll olecli32 enable_olecli32 implib
15452 wine_fn_config_dll oledb32 enable_oledb32
15453 wine_fn_config_test dlls/oledb32/tests oledb32_test
15454 wine_fn_config_dll oledlg enable_oledlg implib,po
15455 wine_fn_config_dll olepro32 enable_olepro32 implib
15456 wine_fn_config_dll olesvr.dll16 enable_win16
15457 wine_fn_config_dll olesvr32 enable_olesvr32 implib
15458 wine_fn_config_dll olethk32 enable_olethk32
15459 wine_fn_config_dll openal32 enable_openal32
15460 wine_fn_config_dll opencl enable_opencl
15461 wine_fn_config_dll opengl32 enable_opengl32 implib
15462 wine_fn_config_test dlls/opengl32/tests opengl32_test
15463 wine_fn_config_dll pdh enable_pdh implib
15464 wine_fn_config_test dlls/pdh/tests pdh_test
15465 wine_fn_config_dll photometadatahandler enable_photometadatahandler
15466 wine_fn_config_dll pidgen enable_pidgen
15467 wine_fn_config_dll powrprof enable_powrprof implib
15468 wine_fn_config_dll printui enable_printui
15469 wine_fn_config_dll propsys enable_propsys implib
15470 wine_fn_config_test dlls/propsys/tests propsys_test
15471 wine_fn_config_dll psapi enable_psapi implib
15472 wine_fn_config_test dlls/psapi/tests psapi_test
15473 wine_fn_config_dll pstorec enable_pstorec
15474 wine_fn_config_dll qcap enable_qcap
15475 wine_fn_config_dll qedit enable_qedit
15476 wine_fn_config_test dlls/qedit/tests qedit_test
15477 wine_fn_config_dll qmgr enable_qmgr
15478 wine_fn_config_test dlls/qmgr/tests qmgr_test
15479 wine_fn_config_dll qmgrprxy enable_qmgrprxy
15480 wine_fn_config_dll quartz enable_quartz implib
15481 wine_fn_config_test dlls/quartz/tests quartz_test
15482 wine_fn_config_dll query enable_query
15483 wine_fn_config_dll rasapi16.dll16 enable_win16
15484 wine_fn_config_dll rasapi32 enable_rasapi32 implib
15485 wine_fn_config_test dlls/rasapi32/tests rasapi32_test
15486 wine_fn_config_dll rasdlg enable_rasdlg implib
15487 wine_fn_config_dll regapi enable_regapi
15488 wine_fn_config_dll resutils enable_resutils implib
15489 wine_fn_config_dll riched20 enable_riched20 implib
15490 wine_fn_config_test dlls/riched20/tests riched20_test
15491 wine_fn_config_dll riched32 enable_riched32
15492 wine_fn_config_test dlls/riched32/tests riched32_test
15493 wine_fn_config_dll rpcrt4 enable_rpcrt4 implib
15494 wine_fn_config_test dlls/rpcrt4/tests rpcrt4_test
15495 wine_fn_config_dll rsabase enable_rsabase
15496 wine_fn_config_dll rsaenh enable_rsaenh implib
15497 wine_fn_config_test dlls/rsaenh/tests rsaenh_test
15498 wine_fn_config_dll rstrtmgr enable_rstrtmgr
15499 wine_fn_config_dll rtutils enable_rtutils implib
15500 wine_fn_config_dll samlib enable_samlib
15501 wine_fn_config_dll sane.ds enable_sane_ds po
15502 wine_fn_config_dll scarddlg enable_scarddlg
15503 wine_fn_config_dll sccbase enable_sccbase
15504 wine_fn_config_dll schannel enable_schannel
15505 wine_fn_config_test dlls/schannel/tests schannel_test
15506 wine_fn_config_dll scrrun enable_scrrun
15507 wine_fn_config_test dlls/scrrun/tests scrrun_test
15508 wine_fn_config_dll secur32 enable_secur32 implib
15509 wine_fn_config_test dlls/secur32/tests secur32_test
15510 wine_fn_config_dll security enable_security
15511 wine_fn_config_dll sensapi enable_sensapi implib
15512 wine_fn_config_dll serialui enable_serialui implib,po
15513 wine_fn_config_test dlls/serialui/tests serialui_test
15514 wine_fn_config_dll setupapi enable_setupapi implib,po
15515 wine_fn_config_test dlls/setupapi/tests setupapi_test
15516 wine_fn_config_dll setupx.dll16 enable_win16
15517 wine_fn_config_dll sfc enable_sfc implib
15518 wine_fn_config_dll sfc_os enable_sfc_os implib
15519 wine_fn_config_dll shdoclc enable_shdoclc po
15520 wine_fn_config_dll shdocvw enable_shdocvw implib
15521 wine_fn_config_test dlls/shdocvw/tests shdocvw_test
15522 wine_fn_config_dll shell.dll16 enable_win16
15523 wine_fn_config_dll shell32 enable_shell32 implib,po
15524 wine_fn_config_test dlls/shell32/tests shell32_test
15525 wine_fn_config_dll shfolder enable_shfolder implib
15526 wine_fn_config_dll shlwapi enable_shlwapi implib,po
15527 wine_fn_config_test dlls/shlwapi/tests shlwapi_test
15528 wine_fn_config_dll slbcsp enable_slbcsp
15529 wine_fn_config_dll slc enable_slc implib
15530 wine_fn_config_dll snmpapi enable_snmpapi implib
15531 wine_fn_config_test dlls/snmpapi/tests snmpapi_test
15532 wine_fn_config_dll softpub enable_softpub
15533 wine_fn_config_dll sound.drv16 enable_win16
15534 wine_fn_config_dll spoolss enable_spoolss implib
15535 wine_fn_config_test dlls/spoolss/tests spoolss_test
15536 wine_fn_config_dll stdole2.tlb enable_stdole2_tlb
15537 wine_fn_config_dll stdole32.tlb enable_stdole32_tlb
15538 wine_fn_config_dll sti enable_sti implib
15539 wine_fn_config_test dlls/sti/tests sti_test
15540 wine_fn_config_dll storage.dll16 enable_win16
15541 wine_fn_config_dll stress.dll16 enable_win16
15542 wine_fn_config_lib strmbase
15543 wine_fn_config_lib strmiids
15544 wine_fn_config_dll svrapi enable_svrapi
15545 wine_fn_config_dll sxs enable_sxs implib
15546 wine_fn_config_test dlls/sxs/tests sxs_test
15547 wine_fn_config_dll system.drv16 enable_win16
15548 wine_fn_config_dll t2embed enable_t2embed
15549 wine_fn_config_dll tapi32 enable_tapi32 implib
15550 wine_fn_config_dll toolhelp.dll16 enable_win16
15551 wine_fn_config_dll traffic enable_traffic
15552 wine_fn_config_dll twain.dll16 enable_win16
15553 wine_fn_config_dll twain_32 enable_twain_32
15554 wine_fn_config_test dlls/twain_32/tests twain_32_test
15555 wine_fn_config_dll typelib.dll16 enable_win16
15556 wine_fn_config_dll unicows enable_unicows implib
15557 wine_fn_config_dll updspapi enable_updspapi
15558 wine_fn_config_dll url enable_url implib
15559 wine_fn_config_dll urlmon enable_urlmon implib
15560 wine_fn_config_test dlls/urlmon/tests urlmon_test
15561 wine_fn_config_dll usbd.sys enable_usbd_sys implib
15562 wine_fn_config_dll user.exe16 enable_win16
15563 wine_fn_config_dll user32 enable_user32 implib,po
15564 wine_fn_config_test dlls/user32/tests user32_test
15565 wine_fn_config_dll userenv enable_userenv implib
15566 wine_fn_config_test dlls/userenv/tests userenv_test
15567 wine_fn_config_dll usp10 enable_usp10 implib
15568 wine_fn_config_test dlls/usp10/tests usp10_test
15569 wine_fn_config_lib uuid
15570 wine_fn_config_dll uxtheme enable_uxtheme implib
15571 wine_fn_config_test dlls/uxtheme/tests uxtheme_test
15572 wine_fn_config_dll vbscript enable_vbscript
15573 wine_fn_config_test dlls/vbscript/tests vbscript_test
15574 wine_fn_config_dll vcomp enable_vcomp
15575 wine_fn_config_dll vcomp100 enable_vcomp100
15576 wine_fn_config_dll vdhcp.vxd enable_win16
15577 wine_fn_config_dll vdmdbg enable_vdmdbg implib
15578 wine_fn_config_dll ver.dll16 enable_win16
15579 wine_fn_config_dll version enable_version implib
15580 wine_fn_config_test dlls/version/tests version_test
15581 wine_fn_config_dll vmm.vxd enable_win16
15582 wine_fn_config_dll vnbt.vxd enable_win16
15583 wine_fn_config_dll vnetbios.vxd enable_win16
15584 wine_fn_config_dll vtdapi.vxd enable_win16
15585 wine_fn_config_dll vwin32.vxd enable_win16
15586 wine_fn_config_dll w32skrnl enable_win16
15587 wine_fn_config_dll w32sys.dll16 enable_win16
15588 wine_fn_config_dll wbemprox enable_wbemprox
15589 wine_fn_config_dll wer enable_wer implib
15590 wine_fn_config_test dlls/wer/tests wer_test
15591 wine_fn_config_dll wevtapi enable_wevtapi
15592 wine_fn_config_dll wiaservc enable_wiaservc
15593 wine_fn_config_dll win32s16.dll16 enable_win16
15594 wine_fn_config_dll win87em.dll16 enable_win16
15595 wine_fn_config_dll winaspi.dll16 enable_win16
15596 wine_fn_config_dll windebug.dll16 enable_win16
15597 wine_fn_config_dll windowscodecs enable_windowscodecs implib
15598 wine_fn_config_test dlls/windowscodecs/tests windowscodecs_test
15599 wine_fn_config_dll winealsa.drv enable_winealsa_drv
15600 wine_fn_config_dll winecoreaudio.drv enable_winecoreaudio_drv
15601 wine_fn_config_lib winecrt0
15602 wine_fn_config_dll wined3d enable_wined3d implib
15603 wine_fn_config_dll winegstreamer enable_winegstreamer
15604 wine_fn_config_dll winejoystick.drv enable_winejoystick_drv
15605 wine_fn_config_dll winemapi enable_winemapi
15606 wine_fn_config_dll winemp3.acm enable_winemp3_acm
15607 wine_fn_config_dll wineoss.drv enable_wineoss_drv
15608 wine_fn_config_dll wineps.drv enable_wineps_drv install-lib,po
15609 wine_fn_config_dll wineps16.drv16 enable_win16
15610 wine_fn_config_dll winepulse.drv enable_winepulse_drv
15611 wine_fn_config_dll wineqtdecoder enable_wineqtdecoder
15612 wine_fn_config_dll winequartz.drv enable_winequartz_drv
15613 wine_fn_config_dll winex11.drv enable_winex11_drv
15614 wine_fn_config_dll wing.dll16 enable_win16
15615 wine_fn_config_dll wing32 enable_wing32
15616 wine_fn_config_dll winhttp enable_winhttp implib
15617 wine_fn_config_test dlls/winhttp/tests winhttp_test
15618 wine_fn_config_dll wininet enable_wininet implib,po
15619 wine_fn_config_test dlls/wininet/tests wininet_test
15620 wine_fn_config_dll winmm enable_winmm implib,po
15621 wine_fn_config_test dlls/winmm/tests winmm_test
15622 wine_fn_config_dll winnls.dll16 enable_win16
15623 wine_fn_config_dll winnls32 enable_winnls32 implib
15624 wine_fn_config_dll winscard enable_winscard implib
15625 wine_fn_config_dll winsock.dll16 enable_win16
15626 wine_fn_config_dll winspool.drv enable_winspool_drv implib,po winspool
15627 wine_fn_config_test dlls/winspool.drv/tests winspool.drv_test
15628 wine_fn_config_dll winsta enable_winsta
15629 wine_fn_config_dll wintab.dll16 enable_win16
15630 wine_fn_config_dll wintab32 enable_wintab32 implib
15631 wine_fn_config_test dlls/wintab32/tests wintab32_test
15632 wine_fn_config_dll wintrust enable_wintrust implib
15633 wine_fn_config_test dlls/wintrust/tests wintrust_test
15634 wine_fn_config_dll wlanapi enable_wlanapi
15635 wine_fn_config_dll wldap32 enable_wldap32 implib,po
15636 wine_fn_config_test dlls/wldap32/tests wldap32_test
15637 wine_fn_config_dll wmi enable_wmi
15638 wine_fn_config_dll wmiutils enable_wmiutils
15639 wine_fn_config_dll wmvcore enable_wmvcore
15640 wine_fn_config_dll wnaspi32 enable_wnaspi32 implib
15641 wine_fn_config_dll wow32 enable_win16 implib
15642 wine_fn_config_dll ws2_32 enable_ws2_32 implib
15643 wine_fn_config_test dlls/ws2_32/tests ws2_32_test
15644 wine_fn_config_dll wshom.ocx enable_wshom_ocx
15645 wine_fn_config_test dlls/wshom.ocx/tests wshom.ocx_test
15646 wine_fn_config_dll wsnmp32 enable_wsnmp32
15647 wine_fn_config_dll wsock32 enable_wsock32 implib
15648 wine_fn_config_dll wtsapi32 enable_wtsapi32 implib
15649 wine_fn_config_dll wuapi enable_wuapi
15650 wine_fn_config_dll wuaueng enable_wuaueng
15651 wine_fn_config_dll xapofx1_1 enable_xapofx1_1
15652 wine_fn_config_dll xinput1_1 enable_xinput1_1
15653 wine_fn_config_dll xinput1_2 enable_xinput1_2
15654 wine_fn_config_dll xinput1_3 enable_xinput1_3 implib xinput
15655 wine_fn_config_test dlls/xinput1_3/tests xinput1_3_test
15656 wine_fn_config_dll xinput9_1_0 enable_xinput9_1_0
15657 wine_fn_config_dll xmllite enable_xmllite
15658 wine_fn_config_test dlls/xmllite/tests xmllite_test
15659 wine_fn_config_dll xolehlp enable_xolehlp
15660 wine_fn_config_dll xpsprint enable_xpsprint
15661 wine_fn_config_makefile documentation enable_documentation
15662 wine_fn_config_makefile fonts enable_fonts install-lib
15663 wine_fn_config_makefile include enable_include install-dev
15664 wine_fn_config_makefile libs/port enable_libs_port
15665 wine_fn_config_makefile libs/wine enable_libs_wine install-dev,install-lib
15666 wine_fn_config_makefile libs/wpp enable_libs_wpp
15667 wine_fn_config_makefile loader enable_loader install-lib,manpage
15668 wine_fn_config_program aspnet_regiis enable_aspnet_regiis install
15669 wine_fn_config_program attrib enable_attrib install,po
15670 wine_fn_config_program cabarc enable_cabarc install
15671 wine_fn_config_program cacls enable_cacls install
15672 wine_fn_config_program clock enable_clock install,po
15673 wine_fn_config_program cmd enable_cmd install,po
15674 wine_fn_config_test programs/cmd/tests cmd.exe_test
15675 wine_fn_config_program control enable_control install
15676 wine_fn_config_program cscript enable_cscript install
15677 wine_fn_config_program dxdiag enable_dxdiag install,po
15678 wine_fn_config_program eject enable_eject install
15679 wine_fn_config_program expand enable_expand install
15680 wine_fn_config_program explorer enable_explorer install,po
15681 wine_fn_config_program extrac32 enable_extrac32 install
15682 wine_fn_config_program hh enable_hh install
15683 wine_fn_config_program hostname enable_hostname install,po
15684 wine_fn_config_program icinfo enable_icinfo install
15685 wine_fn_config_program iexplore enable_iexplore install
15686 wine_fn_config_program ipconfig enable_ipconfig install,po
15687 wine_fn_config_program lodctr enable_lodctr install
15688 wine_fn_config_program mofcomp enable_mofcomp install
15689 wine_fn_config_program mshta enable_mshta install
15690 wine_fn_config_program msiexec enable_msiexec install,installbin,manpage
15691 wine_fn_config_program net enable_net install,po
15692 wine_fn_config_program netsh enable_netsh install
15693 wine_fn_config_program ngen enable_ngen install
15694 wine_fn_config_program notepad enable_notepad install,installbin,manpage,po
15695 wine_fn_config_program oleview enable_oleview install,po
15696 wine_fn_config_program ping enable_ping install
15697 wine_fn_config_program plugplay enable_plugplay install
15698 wine_fn_config_program presentationfontcache enable_presentationfontcache install
15699 wine_fn_config_program progman enable_progman install,po
15700 wine_fn_config_program reg enable_reg install,po
15701 wine_fn_config_program regasm enable_regasm install
15702 wine_fn_config_program regedit enable_regedit install,installbin,manpage,po
15703 wine_fn_config_test programs/regedit/tests regedit.exe_test
15704 wine_fn_config_program regsvcs enable_regsvcs install
15705 wine_fn_config_program regsvr32 enable_regsvr32 install,installbin,manpage
15706 wine_fn_config_program rpcss enable_rpcss install
15707 wine_fn_config_program rundll.exe16 enable_win16 install
15708 wine_fn_config_program rundll32 enable_rundll32 install
15709 wine_fn_config_program sc enable_sc install
15710 wine_fn_config_program secedit enable_secedit install
15711 wine_fn_config_program servicemodelreg enable_servicemodelreg install
15712 wine_fn_config_program services enable_services install
15713 wine_fn_config_program spoolsv enable_spoolsv install
15714 wine_fn_config_program start enable_start install,po
15715 wine_fn_config_program svchost enable_svchost install
15716 wine_fn_config_program taskkill enable_taskkill install,po
15717 wine_fn_config_program taskmgr enable_taskmgr install,po
15718 wine_fn_config_program termsv enable_termsv install
15719 wine_fn_config_program uninstaller enable_uninstaller install,po
15720 wine_fn_config_program unlodctr enable_unlodctr install
15721 wine_fn_config_program view enable_view install,po
15722 wine_fn_config_program wineboot enable_wineboot install,installbin,manpage,po
15723 wine_fn_config_program winebrowser enable_winebrowser install
15724 wine_fn_config_program winecfg enable_winecfg install,installbin,manpage,po
15725 wine_fn_config_program wineconsole enable_wineconsole install,installbin,manpage,po
15726 wine_fn_config_program winedbg enable_winedbg install,installbin,manpage,po
15727 wine_fn_config_program winedevice enable_winedevice install
15728 wine_fn_config_program winefile enable_winefile install,installbin,manpage,po
15729 wine_fn_config_program winemenubuilder enable_winemenubuilder install
15730 wine_fn_config_program winemine enable_winemine install,installbin,manpage,po
15731 wine_fn_config_program winemsibuilder enable_winemsibuilder install
15732 wine_fn_config_program winepath enable_winepath install,installbin,manpage
15733 wine_fn_config_program winetest enable_winetest
15734 wine_fn_config_program winevdm enable_win16 install
15735 wine_fn_config_program winhelp.exe16 enable_win16 install
15736 wine_fn_config_program winhlp32 enable_winhlp32 install,po
15737 wine_fn_config_program winoldap.mod16 enable_win16 install
15738 wine_fn_config_program winver enable_winver install
15739 wine_fn_config_program wmic enable_wmic install
15740 wine_fn_config_program wordpad enable_wordpad install,po
15741 wine_fn_config_program write enable_write install,po
15742 wine_fn_config_program wscript enable_wscript install
15743 wine_fn_config_test programs/wscript/tests wscript.exe_test
15744 wine_fn_config_program wusa enable_wusa install
15745 wine_fn_config_program xcopy enable_xcopy install,po
15746 wine_fn_config_makefile server enable_server install-lib,manpage
15747 wine_fn_config_tool tools install-dev,install-lib,manpage
15748 wine_fn_config_tool tools/widl install-dev,manpage
15749 wine_fn_config_tool tools/winebuild install-dev,manpage
15750 wine_fn_config_tool tools/winedump install-dev,manpage
15751 wine_fn_config_tool tools/winegcc install-dev,manpage
15752 wine_fn_config_tool tools/wmc install-dev,manpage
15753 wine_fn_config_tool tools/wrc install-dev,manpage
15755 LINGUAS="\
15756 ar \
15757 bg \
15758 ca \
15759 cs \
15760 da \
15761 de \
15762 el \
15763 en \
15764 en_US \
15765 eo \
15766 es \
15767 fa \
15768 fi \
15769 fr \
15770 he \
15771 hi \
15772 hu \
15773 it \
15774 ja \
15775 ko \
15776 lt \
15777 ml \
15778 nb_NO \
15779 nl \
15780 or \
15781 pa \
15782 pl \
15783 pt_BR \
15784 pt_PT \
15785 rm \
15786 ro \
15787 ru \
15788 sk \
15789 sl \
15790 sr_RS@cyrillic \
15791 sr_RS@latin \
15792 sv \
15793 te \
15794 th \
15795 tr \
15796 uk \
15797 wa \
15798 zh_CN \
15799 zh_TW"
15803 ac_config_commands="$ac_config_commands Makefile"
15806 ac_config_files="$ac_config_files Make.tmp:Make.vars.in:Makefile.in"
15810 if test "x$enable_maintainer_mode" = xyes
15811 then
15812 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(srcdir)/configure: configure.ac aclocal.m4
15813 cd \$(srcdir) && autoconf --warnings=all
15814 \$(srcdir)/include/config.h.in: include/stamp-h.in
15815 \$(srcdir)/include/stamp-h.in: configure.ac aclocal.m4
15816 cd \$(srcdir) && autoheader --warnings=all
15817 @echo timestamp > \$@"
15820 if test "x$with_gettextpo" = xyes
15821 then
15822 test "$srcdir" = . || as_fn_error $? "Rebuilding po files is not supported for out of tree builds." "$LINENO" 5
15823 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "ALL_POT_FILES =$ALL_POT_FILES
15824 \$(LINGUAS:%=po/%.po): \$(srcdir)/po/wine.pot
15825 msgmerge --previous -q \$@ \$(srcdir)/po/wine.pot | msgattrib --no-obsolete -o \$@.new && mv \$@.new \$@
15826 \$(srcdir)/po/wine.pot: \$(ALL_POT_FILES)
15827 msgcat -o \$@ \$(ALL_POT_FILES)"
15830 if test "$MSGFMT" != false
15831 then
15832 PORCFLAGS="--po-dir=\$(top_builddir)/po"
15834 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "__builddeps__: \$(ALL_MO_FILES)"
15835 else
15836 LINGUAS=
15839 if test "x$enable_tools" != xno
15840 then
15841 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(MAKEDEP): tools/Makefile
15842 clean:: __clean__
15843 \$(RM) tools/makedep\$(EXEEXT)"
15846 if test -n "$with_wine64"
15847 then
15848 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "all: fonts server tools $with_wine64/loader/wine $with_wine64/loader/wine-preloader
15849 fonts server tools:
15850 \$(RM) \$@ && \$(LN_S) $with_wine64/\$@ \$@
15851 $with_wine64/loader/wine:
15852 \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine \$@
15853 $with_wine64/loader/wine-preloader:
15854 \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine-preloader \$@
15855 clean::
15856 \$(RM) fonts server tools $with_wine64/loader/wine $with_wine64/loader/wine-preloader"
15859 cat >confcache <<\_ACEOF
15860 # This file is a shell script that caches the results of configure
15861 # tests run on this system so they can be shared between configure
15862 # scripts and configure runs, see configure's option --config-cache.
15863 # It is not useful on other systems. If it contains results you don't
15864 # want to keep, you may remove or edit it.
15866 # config.status only pays attention to the cache file if you give it
15867 # the --recheck option to rerun configure.
15869 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15870 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15871 # following values.
15873 _ACEOF
15875 # The following way of writing the cache mishandles newlines in values,
15876 # but we know of no workaround that is simple, portable, and efficient.
15877 # So, we kill variables containing newlines.
15878 # Ultrix sh set writes to stderr and can't be redirected directly,
15879 # and sets the high bit in the cache file unless we assign to the vars.
15881 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15882 eval ac_val=\$$ac_var
15883 case $ac_val in #(
15884 *${as_nl}*)
15885 case $ac_var in #(
15886 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15887 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15888 esac
15889 case $ac_var in #(
15890 _ | IFS | as_nl) ;; #(
15891 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15892 *) { eval $ac_var=; unset $ac_var;} ;;
15893 esac ;;
15894 esac
15895 done
15897 (set) 2>&1 |
15898 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15899 *${as_nl}ac_space=\ *)
15900 # `set' does not quote correctly, so add quotes: double-quote
15901 # substitution turns \\\\ into \\, and sed turns \\ into \.
15902 sed -n \
15903 "s/'/'\\\\''/g;
15904 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15905 ;; #(
15907 # `set' quotes correctly as required by POSIX, so do not add quotes.
15908 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15910 esac |
15911 sort
15913 sed '
15914 /^ac_cv_env_/b end
15915 t clear
15916 :clear
15917 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15918 t end
15919 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15920 :end' >>confcache
15921 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15922 if test -w "$cache_file"; then
15923 if test "x$cache_file" != "x/dev/null"; then
15924 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15925 $as_echo "$as_me: updating cache $cache_file" >&6;}
15926 if test ! -f "$cache_file" || test -h "$cache_file"; then
15927 cat confcache >"$cache_file"
15928 else
15929 case $cache_file in #(
15930 */* | ?:*)
15931 mv -f confcache "$cache_file"$$ &&
15932 mv -f "$cache_file"$$ "$cache_file" ;; #(
15934 mv -f confcache "$cache_file" ;;
15935 esac
15938 else
15939 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15940 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15943 rm -f confcache
15945 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15946 # Let make expand exec_prefix.
15947 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15949 DEFS=-DHAVE_CONFIG_H
15951 ac_libobjs=
15952 ac_ltlibobjs=
15954 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15955 # 1. Remove the extension, and $U if already installed.
15956 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15957 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15958 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15959 # will be set to the directory where LIBOBJS objects are built.
15960 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15961 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15962 done
15963 LIBOBJS=$ac_libobjs
15965 LTLIBOBJS=$ac_ltlibobjs
15969 : "${CONFIG_STATUS=./config.status}"
15970 ac_write_fail=0
15971 ac_clean_files_save=$ac_clean_files
15972 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15973 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15974 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15975 as_write_fail=0
15976 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15977 #! $SHELL
15978 # Generated by $as_me.
15979 # Run this file to recreate the current configuration.
15980 # Compiler output produced by configure, useful for debugging
15981 # configure, is in config.log if it exists.
15983 debug=false
15984 ac_cs_recheck=false
15985 ac_cs_silent=false
15987 SHELL=\${CONFIG_SHELL-$SHELL}
15988 export SHELL
15989 _ASEOF
15990 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15991 ## -------------------- ##
15992 ## M4sh Initialization. ##
15993 ## -------------------- ##
15995 # Be more Bourne compatible
15996 DUALCASE=1; export DUALCASE # for MKS sh
15997 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15998 emulate sh
15999 NULLCMD=:
16000 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16001 # is contrary to our usage. Disable this feature.
16002 alias -g '${1+"$@"}'='"$@"'
16003 setopt NO_GLOB_SUBST
16004 else
16005 case `(set -o) 2>/dev/null` in #(
16006 *posix*) :
16007 set -o posix ;; #(
16008 *) :
16010 esac
16014 as_nl='
16016 export as_nl
16017 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16018 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16019 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16020 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16021 # Prefer a ksh shell builtin over an external printf program on Solaris,
16022 # but without wasting forks for bash or zsh.
16023 if test -z "$BASH_VERSION$ZSH_VERSION" \
16024 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16025 as_echo='print -r --'
16026 as_echo_n='print -rn --'
16027 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16028 as_echo='printf %s\n'
16029 as_echo_n='printf %s'
16030 else
16031 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16032 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16033 as_echo_n='/usr/ucb/echo -n'
16034 else
16035 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16036 as_echo_n_body='eval
16037 arg=$1;
16038 case $arg in #(
16039 *"$as_nl"*)
16040 expr "X$arg" : "X\\(.*\\)$as_nl";
16041 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16042 esac;
16043 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16045 export as_echo_n_body
16046 as_echo_n='sh -c $as_echo_n_body as_echo'
16048 export as_echo_body
16049 as_echo='sh -c $as_echo_body as_echo'
16052 # The user is always right.
16053 if test "${PATH_SEPARATOR+set}" != set; then
16054 PATH_SEPARATOR=:
16055 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16056 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16057 PATH_SEPARATOR=';'
16062 # IFS
16063 # We need space, tab and new line, in precisely that order. Quoting is
16064 # there to prevent editors from complaining about space-tab.
16065 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16066 # splitting by setting IFS to empty value.)
16067 IFS=" "" $as_nl"
16069 # Find who we are. Look in the path if we contain no directory separator.
16070 as_myself=
16071 case $0 in #((
16072 *[\\/]* ) as_myself=$0 ;;
16073 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16074 for as_dir in $PATH
16076 IFS=$as_save_IFS
16077 test -z "$as_dir" && as_dir=.
16078 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16079 done
16080 IFS=$as_save_IFS
16083 esac
16084 # We did not find ourselves, most probably we were run as `sh COMMAND'
16085 # in which case we are not to be found in the path.
16086 if test "x$as_myself" = x; then
16087 as_myself=$0
16089 if test ! -f "$as_myself"; then
16090 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16091 exit 1
16094 # Unset variables that we do not need and which cause bugs (e.g. in
16095 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16096 # suppresses any "Segmentation fault" message there. '((' could
16097 # trigger a bug in pdksh 5.2.14.
16098 for as_var in BASH_ENV ENV MAIL MAILPATH
16099 do eval test x\${$as_var+set} = xset \
16100 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16101 done
16102 PS1='$ '
16103 PS2='> '
16104 PS4='+ '
16106 # NLS nuisances.
16107 LC_ALL=C
16108 export LC_ALL
16109 LANGUAGE=C
16110 export LANGUAGE
16112 # CDPATH.
16113 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16116 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16117 # ----------------------------------------
16118 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16119 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16120 # script with STATUS, using 1 if that was 0.
16121 as_fn_error ()
16123 as_status=$1; test $as_status -eq 0 && as_status=1
16124 if test "$4"; then
16125 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16126 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16128 $as_echo "$as_me: error: $2" >&2
16129 as_fn_exit $as_status
16130 } # as_fn_error
16133 # as_fn_set_status STATUS
16134 # -----------------------
16135 # Set $? to STATUS, without forking.
16136 as_fn_set_status ()
16138 return $1
16139 } # as_fn_set_status
16141 # as_fn_exit STATUS
16142 # -----------------
16143 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16144 as_fn_exit ()
16146 set +e
16147 as_fn_set_status $1
16148 exit $1
16149 } # as_fn_exit
16151 # as_fn_unset VAR
16152 # ---------------
16153 # Portably unset VAR.
16154 as_fn_unset ()
16156 { eval $1=; unset $1;}
16158 as_unset=as_fn_unset
16159 # as_fn_append VAR VALUE
16160 # ----------------------
16161 # Append the text in VALUE to the end of the definition contained in VAR. Take
16162 # advantage of any shell optimizations that allow amortized linear growth over
16163 # repeated appends, instead of the typical quadratic growth present in naive
16164 # implementations.
16165 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16166 eval 'as_fn_append ()
16168 eval $1+=\$2
16170 else
16171 as_fn_append ()
16173 eval $1=\$$1\$2
16175 fi # as_fn_append
16177 # as_fn_arith ARG...
16178 # ------------------
16179 # Perform arithmetic evaluation on the ARGs, and store the result in the
16180 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16181 # must be portable across $(()) and expr.
16182 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16183 eval 'as_fn_arith ()
16185 as_val=$(( $* ))
16187 else
16188 as_fn_arith ()
16190 as_val=`expr "$@" || test $? -eq 1`
16192 fi # as_fn_arith
16195 if expr a : '\(a\)' >/dev/null 2>&1 &&
16196 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16197 as_expr=expr
16198 else
16199 as_expr=false
16202 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16203 as_basename=basename
16204 else
16205 as_basename=false
16208 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16209 as_dirname=dirname
16210 else
16211 as_dirname=false
16214 as_me=`$as_basename -- "$0" ||
16215 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16216 X"$0" : 'X\(//\)$' \| \
16217 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16218 $as_echo X/"$0" |
16219 sed '/^.*\/\([^/][^/]*\)\/*$/{
16220 s//\1/
16223 /^X\/\(\/\/\)$/{
16224 s//\1/
16227 /^X\/\(\/\).*/{
16228 s//\1/
16231 s/.*/./; q'`
16233 # Avoid depending upon Character Ranges.
16234 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16235 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16236 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16237 as_cr_digits='0123456789'
16238 as_cr_alnum=$as_cr_Letters$as_cr_digits
16240 ECHO_C= ECHO_N= ECHO_T=
16241 case `echo -n x` in #(((((
16242 -n*)
16243 case `echo 'xy\c'` in
16244 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16245 xy) ECHO_C='\c';;
16246 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16247 ECHO_T=' ';;
16248 esac;;
16250 ECHO_N='-n';;
16251 esac
16253 rm -f conf$$ conf$$.exe conf$$.file
16254 if test -d conf$$.dir; then
16255 rm -f conf$$.dir/conf$$.file
16256 else
16257 rm -f conf$$.dir
16258 mkdir conf$$.dir 2>/dev/null
16260 if (echo >conf$$.file) 2>/dev/null; then
16261 if ln -s conf$$.file conf$$ 2>/dev/null; then
16262 as_ln_s='ln -s'
16263 # ... but there are two gotchas:
16264 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16265 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16266 # In both cases, we have to default to `cp -pR'.
16267 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16268 as_ln_s='cp -pR'
16269 elif ln conf$$.file conf$$ 2>/dev/null; then
16270 as_ln_s=ln
16271 else
16272 as_ln_s='cp -pR'
16274 else
16275 as_ln_s='cp -pR'
16277 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16278 rmdir conf$$.dir 2>/dev/null
16281 # as_fn_mkdir_p
16282 # -------------
16283 # Create "$as_dir" as a directory, including parents if necessary.
16284 as_fn_mkdir_p ()
16287 case $as_dir in #(
16288 -*) as_dir=./$as_dir;;
16289 esac
16290 test -d "$as_dir" || eval $as_mkdir_p || {
16291 as_dirs=
16292 while :; do
16293 case $as_dir in #(
16294 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16295 *) as_qdir=$as_dir;;
16296 esac
16297 as_dirs="'$as_qdir' $as_dirs"
16298 as_dir=`$as_dirname -- "$as_dir" ||
16299 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16300 X"$as_dir" : 'X\(//\)[^/]' \| \
16301 X"$as_dir" : 'X\(//\)$' \| \
16302 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16303 $as_echo X"$as_dir" |
16304 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16305 s//\1/
16308 /^X\(\/\/\)[^/].*/{
16309 s//\1/
16312 /^X\(\/\/\)$/{
16313 s//\1/
16316 /^X\(\/\).*/{
16317 s//\1/
16320 s/.*/./; q'`
16321 test -d "$as_dir" && break
16322 done
16323 test -z "$as_dirs" || eval "mkdir $as_dirs"
16324 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16327 } # as_fn_mkdir_p
16328 if mkdir -p . 2>/dev/null; then
16329 as_mkdir_p='mkdir -p "$as_dir"'
16330 else
16331 test -d ./-p && rmdir ./-p
16332 as_mkdir_p=false
16336 # as_fn_executable_p FILE
16337 # -----------------------
16338 # Test if FILE is an executable regular file.
16339 as_fn_executable_p ()
16341 test -f "$1" && test -x "$1"
16342 } # as_fn_executable_p
16343 as_test_x='test -x'
16344 as_executable_p=as_fn_executable_p
16346 # Sed expression to map a string onto a valid CPP name.
16347 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16349 # Sed expression to map a string onto a valid variable name.
16350 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16353 exec 6>&1
16354 ## ----------------------------------- ##
16355 ## Main body of $CONFIG_STATUS script. ##
16356 ## ----------------------------------- ##
16357 _ASEOF
16358 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16360 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16361 # Save the log message, to keep $0 and so on meaningful, and to
16362 # report actual input values of CONFIG_FILES etc. instead of their
16363 # values after options handling.
16364 ac_log="
16365 This file was extended by Wine $as_me 1.5.5, which was
16366 generated by GNU Autoconf 2.69. Invocation command line was
16368 CONFIG_FILES = $CONFIG_FILES
16369 CONFIG_HEADERS = $CONFIG_HEADERS
16370 CONFIG_LINKS = $CONFIG_LINKS
16371 CONFIG_COMMANDS = $CONFIG_COMMANDS
16372 $ $0 $@
16374 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16377 _ACEOF
16379 case $ac_config_files in *"
16380 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16381 esac
16383 case $ac_config_headers in *"
16384 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16385 esac
16388 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16389 # Files that config.status was made for.
16390 config_files="$ac_config_files"
16391 config_headers="$ac_config_headers"
16392 config_links="$ac_config_links"
16393 config_commands="$ac_config_commands"
16395 _ACEOF
16397 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16398 ac_cs_usage="\
16399 \`$as_me' instantiates files and other configuration actions
16400 from templates according to the current configuration. Unless the files
16401 and actions are specified as TAGs, all are instantiated by default.
16403 Usage: $0 [OPTION]... [TAG]...
16405 -h, --help print this help, then exit
16406 -V, --version print version number and configuration settings, then exit
16407 --config print configuration, then exit
16408 -q, --quiet, --silent
16409 do not print progress messages
16410 -d, --debug don't remove temporary files
16411 --recheck update $as_me by reconfiguring in the same conditions
16412 --file=FILE[:TEMPLATE]
16413 instantiate the configuration file FILE
16414 --header=FILE[:TEMPLATE]
16415 instantiate the configuration header FILE
16417 Configuration files:
16418 $config_files
16420 Configuration headers:
16421 $config_headers
16423 Configuration links:
16424 $config_links
16426 Configuration commands:
16427 $config_commands
16429 Report bugs to <wine-devel@winehq.org>.
16430 Wine home page: <http://www.winehq.org>."
16432 _ACEOF
16433 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16434 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16435 ac_cs_version="\\
16436 Wine config.status 1.5.5
16437 configured by $0, generated by GNU Autoconf 2.69,
16438 with options \\"\$ac_cs_config\\"
16440 Copyright (C) 2012 Free Software Foundation, Inc.
16441 This config.status script is free software; the Free Software Foundation
16442 gives unlimited permission to copy, distribute and modify it."
16444 ac_pwd='$ac_pwd'
16445 srcdir='$srcdir'
16446 INSTALL='$INSTALL'
16447 test -n "\$AWK" || AWK=awk
16448 _ACEOF
16450 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16451 # The default lists apply if the user does not specify any file.
16452 ac_need_defaults=:
16453 while test $# != 0
16455 case $1 in
16456 --*=?*)
16457 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16458 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16459 ac_shift=:
16461 --*=)
16462 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16463 ac_optarg=
16464 ac_shift=:
16467 ac_option=$1
16468 ac_optarg=$2
16469 ac_shift=shift
16471 esac
16473 case $ac_option in
16474 # Handling of the options.
16475 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16476 ac_cs_recheck=: ;;
16477 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16478 $as_echo "$ac_cs_version"; exit ;;
16479 --config | --confi | --conf | --con | --co | --c )
16480 $as_echo "$ac_cs_config"; exit ;;
16481 --debug | --debu | --deb | --de | --d | -d )
16482 debug=: ;;
16483 --file | --fil | --fi | --f )
16484 $ac_shift
16485 case $ac_optarg in
16486 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16487 '') as_fn_error $? "missing file argument" ;;
16488 esac
16489 as_fn_append CONFIG_FILES " '$ac_optarg'"
16490 ac_need_defaults=false;;
16491 --header | --heade | --head | --hea )
16492 $ac_shift
16493 case $ac_optarg in
16494 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16495 esac
16496 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16497 ac_need_defaults=false;;
16498 --he | --h)
16499 # Conflict between --help and --header
16500 as_fn_error $? "ambiguous option: \`$1'
16501 Try \`$0 --help' for more information.";;
16502 --help | --hel | -h )
16503 $as_echo "$ac_cs_usage"; exit ;;
16504 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16505 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16506 ac_cs_silent=: ;;
16508 # This is an error.
16509 -*) as_fn_error $? "unrecognized option: \`$1'
16510 Try \`$0 --help' for more information." ;;
16512 *) as_fn_append ac_config_targets " $1"
16513 ac_need_defaults=false ;;
16515 esac
16516 shift
16517 done
16519 ac_configure_extra_args=
16521 if $ac_cs_silent; then
16522 exec 6>/dev/null
16523 ac_configure_extra_args="$ac_configure_extra_args --silent"
16526 _ACEOF
16527 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16528 if \$ac_cs_recheck; then
16529 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16530 shift
16531 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16532 CONFIG_SHELL='$SHELL'
16533 export CONFIG_SHELL
16534 exec "\$@"
16537 _ACEOF
16538 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16539 exec 5>>config.log
16541 echo
16542 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16543 ## Running $as_me. ##
16544 _ASBOX
16545 $as_echo "$ac_log"
16546 } >&5
16548 _ACEOF
16549 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16551 # INIT-COMMANDS
16553 wine_fn_output_makefile ()
16555 cat Make.tmp - <<\_WINE_EOF >\$tmp/makefile && mv -f \$tmp/makefile \$1 && rm -f Make.tmp && return
16556 $ALL_MAKEFILE_DEPENDS
16557 _WINE_EOF
16558 as_fn_error $? "could not create Makefile" "$LINENO" 5
16561 _ACEOF
16563 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16565 # Handling of arguments.
16566 for ac_config_target in $ac_config_targets
16568 case $ac_config_target in
16569 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
16570 "include/stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/stamp-h" ;;
16571 "dlls/shell32/AUTHORS") CONFIG_LINKS="$CONFIG_LINKS dlls/shell32/AUTHORS:AUTHORS" ;;
16572 "dlls/wineps.drv/generic.ppd") CONFIG_LINKS="$CONFIG_LINKS dlls/wineps.drv/generic.ppd:dlls/wineps.drv/generic.ppd" ;;
16573 "fonts/marlett.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/marlett.ttf:fonts/marlett.ttf" ;;
16574 "fonts/symbol.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/symbol.ttf:fonts/symbol.ttf" ;;
16575 "fonts/tahoma.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahoma.ttf:fonts/tahoma.ttf" ;;
16576 "fonts/tahomabd.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahomabd.ttf:fonts/tahomabd.ttf" ;;
16577 "po/LINGUAS") CONFIG_LINKS="$CONFIG_LINKS po/LINGUAS:po/LINGUAS" ;;
16578 "tools/l_intl.nls") CONFIG_LINKS="$CONFIG_LINKS tools/l_intl.nls:tools/l_intl.nls" ;;
16579 "wine") CONFIG_LINKS="$CONFIG_LINKS wine:tools/winewrapper" ;;
16580 "wine64") CONFIG_LINKS="$CONFIG_LINKS wine64:tools/winewrapper" ;;
16581 "dlls/gdi32/dibdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/dibdrv" ;;
16582 "dlls/gdi32/enhmfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/enhmfdrv" ;;
16583 "dlls/gdi32/mfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/mfdrv" ;;
16584 "dlls/kernel32/nls") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel32/nls" ;;
16585 "dlls/user32/resources") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user32/resources" ;;
16586 "dlls/wineps.drv/data") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps.drv/data" ;;
16587 "include/wine") CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
16588 "Make.rules") CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
16589 "Maketest.rules") CONFIG_FILES="$CONFIG_FILES Maketest.rules" ;;
16590 "dlls/Makedll.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
16591 "dlls/Makeimplib.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makeimplib.rules" ;;
16592 "programs/Makeprog.rules") CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
16593 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
16594 "Make.tmp") CONFIG_FILES="$CONFIG_FILES Make.tmp:Make.vars.in:Makefile.in" ;;
16596 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16597 esac
16598 done
16601 # If the user did not use the arguments to specify the items to instantiate,
16602 # then the envvar interface is used. Set only those that are not.
16603 # We use the long form for the default assignment because of an extremely
16604 # bizarre bug on SunOS 4.1.3.
16605 if $ac_need_defaults; then
16606 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16607 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16608 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
16609 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16612 # Have a temporary directory for convenience. Make it in the build tree
16613 # simply because there is no reason against having it here, and in addition,
16614 # creating and moving files from /tmp can sometimes cause problems.
16615 # Hook for its removal unless debugging.
16616 # Note that there is a small window in which the directory will not be cleaned:
16617 # after its creation but before its name has been assigned to `$tmp'.
16618 $debug ||
16620 tmp= ac_tmp=
16621 trap 'exit_status=$?
16622 : "${ac_tmp:=$tmp}"
16623 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16625 trap 'as_fn_exit 1' 1 2 13 15
16627 # Create a (secure) tmp directory for tmp files.
16630 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16631 test -d "$tmp"
16632 } ||
16634 tmp=./conf$$-$RANDOM
16635 (umask 077 && mkdir "$tmp")
16636 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16637 ac_tmp=$tmp
16639 # Set up the scripts for CONFIG_FILES section.
16640 # No need to generate them if there are no CONFIG_FILES.
16641 # This happens for instance with `./config.status config.h'.
16642 if test -n "$CONFIG_FILES"; then
16644 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16645 ac_cs_awk_getline=:
16646 ac_cs_awk_pipe_init=
16647 ac_cs_awk_read_file='
16648 while ((getline aline < (F[key])) > 0)
16649 print(aline)
16650 close(F[key])'
16651 ac_cs_awk_pipe_fini=
16652 else
16653 ac_cs_awk_getline=false
16654 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16655 ac_cs_awk_read_file='
16656 print "|#_!!_#|"
16657 print "cat " F[key] " &&"
16658 '$ac_cs_awk_pipe_init
16659 # The final `:' finishes the AND list.
16660 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16662 ac_cr=`echo X | tr X '\015'`
16663 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16664 # But we know of no other shell where ac_cr would be empty at this
16665 # point, so we can use a bashism as a fallback.
16666 if test "x$ac_cr" = x; then
16667 eval ac_cr=\$\'\\r\'
16669 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16670 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16671 ac_cs_awk_cr='\\r'
16672 else
16673 ac_cs_awk_cr=$ac_cr
16676 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16677 _ACEOF
16679 # Create commands to substitute file output variables.
16681 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16682 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
16683 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16684 echo "_ACAWK" &&
16685 echo "_ACEOF"
16686 } >conf$$files.sh &&
16687 . ./conf$$files.sh ||
16688 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16689 rm -f conf$$files.sh
16692 echo "cat >conf$$subs.awk <<_ACEOF" &&
16693 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16694 echo "_ACEOF"
16695 } >conf$$subs.sh ||
16696 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16697 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16698 ac_delim='%!_!# '
16699 for ac_last_try in false false false false false :; do
16700 . ./conf$$subs.sh ||
16701 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16703 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16704 if test $ac_delim_n = $ac_delim_num; then
16705 break
16706 elif $ac_last_try; then
16707 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16708 else
16709 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16711 done
16712 rm -f conf$$subs.sh
16714 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16715 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16716 _ACEOF
16717 sed -n '
16719 s/^/S["/; s/!.*/"]=/
16722 s/^[^!]*!//
16723 :repl
16724 t repl
16725 s/'"$ac_delim"'$//
16726 t delim
16729 s/\(.\{148\}\)..*/\1/
16730 t more1
16731 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16734 b repl
16735 :more1
16736 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16739 s/.\{148\}//
16740 t nl
16741 :delim
16743 s/\(.\{148\}\)..*/\1/
16744 t more2
16745 s/["\\]/\\&/g; s/^/"/; s/$/"/
16748 :more2
16749 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16752 s/.\{148\}//
16753 t delim
16754 ' <conf$$subs.awk | sed '
16755 /^[^""]/{
16757 s/\n//
16759 ' >>$CONFIG_STATUS || ac_write_fail=1
16760 rm -f conf$$subs.awk
16761 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16762 _ACAWK
16763 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16764 for (key in S) S_is_set[key] = 1
16765 FS = "\a"
16766 \$ac_cs_awk_pipe_init
16769 line = $ 0
16770 nfields = split(line, field, "@")
16771 substed = 0
16772 len = length(field[1])
16773 for (i = 2; i < nfields; i++) {
16774 key = field[i]
16775 keylen = length(key)
16776 if (S_is_set[key]) {
16777 value = S[key]
16778 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16779 len += length(value) + length(field[++i])
16780 substed = 1
16781 } else
16782 len += 1 + keylen
16784 if (nfields == 3 && !substed) {
16785 key = field[2]
16786 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
16787 \$ac_cs_awk_read_file
16788 next
16791 print line
16793 \$ac_cs_awk_pipe_fini
16794 _ACAWK
16795 _ACEOF
16796 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16797 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16798 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16799 else
16801 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16802 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16803 _ACEOF
16805 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16806 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16807 # trailing colons and then remove the whole line if VPATH becomes empty
16808 # (actually we leave an empty line to preserve line numbers).
16809 if test "x$srcdir" = x.; then
16810 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16812 s///
16813 s/^/:/
16814 s/[ ]*$/:/
16815 s/:\$(srcdir):/:/g
16816 s/:\${srcdir}:/:/g
16817 s/:@srcdir@:/:/g
16818 s/^:*//
16819 s/:*$//
16821 s/\(=[ ]*\).*/\1/
16823 s/\n//
16824 s/^[^=]*=[ ]*$//
16828 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16829 fi # test -n "$CONFIG_FILES"
16831 # Set up the scripts for CONFIG_HEADERS section.
16832 # No need to generate them if there are no CONFIG_HEADERS.
16833 # This happens for instance with `./config.status Makefile'.
16834 if test -n "$CONFIG_HEADERS"; then
16835 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16836 BEGIN {
16837 _ACEOF
16839 # Transform confdefs.h into an awk script `defines.awk', embedded as
16840 # here-document in config.status, that substitutes the proper values into
16841 # config.h.in to produce config.h.
16843 # Create a delimiter string that does not exist in confdefs.h, to ease
16844 # handling of long lines.
16845 ac_delim='%!_!# '
16846 for ac_last_try in false false :; do
16847 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16848 if test -z "$ac_tt"; then
16849 break
16850 elif $ac_last_try; then
16851 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16852 else
16853 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16855 done
16857 # For the awk script, D is an array of macro values keyed by name,
16858 # likewise P contains macro parameters if any. Preserve backslash
16859 # newline sequences.
16861 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16862 sed -n '
16863 s/.\{148\}/&'"$ac_delim"'/g
16864 t rset
16865 :rset
16866 s/^[ ]*#[ ]*define[ ][ ]*/ /
16867 t def
16869 :def
16870 s/\\$//
16871 t bsnl
16872 s/["\\]/\\&/g
16873 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16874 D["\1"]=" \3"/p
16875 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16877 :bsnl
16878 s/["\\]/\\&/g
16879 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16880 D["\1"]=" \3\\\\\\n"\\/p
16881 t cont
16882 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16883 t cont
16885 :cont
16887 s/.\{148\}/&'"$ac_delim"'/g
16888 t clear
16889 :clear
16890 s/\\$//
16891 t bsnlc
16892 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16894 :bsnlc
16895 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16896 b cont
16897 ' <confdefs.h | sed '
16898 s/'"$ac_delim"'/"\\\
16899 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16901 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16902 for (key in D) D_is_set[key] = 1
16903 FS = "\a"
16905 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16906 line = \$ 0
16907 split(line, arg, " ")
16908 if (arg[1] == "#") {
16909 defundef = arg[2]
16910 mac1 = arg[3]
16911 } else {
16912 defundef = substr(arg[1], 2)
16913 mac1 = arg[2]
16915 split(mac1, mac2, "(") #)
16916 macro = mac2[1]
16917 prefix = substr(line, 1, index(line, defundef) - 1)
16918 if (D_is_set[macro]) {
16919 # Preserve the white space surrounding the "#".
16920 print prefix "define", macro P[macro] D[macro]
16921 next
16922 } else {
16923 # Replace #undef with comments. This is necessary, for example,
16924 # in the case of _POSIX_SOURCE, which is predefined and required
16925 # on some systems where configure will not decide to define it.
16926 if (defundef == "undef") {
16927 print "/*", prefix defundef, macro, "*/"
16928 next
16932 { print }
16933 _ACAWK
16934 _ACEOF
16935 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16936 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16937 fi # test -n "$CONFIG_HEADERS"
16940 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
16941 shift
16942 for ac_tag
16944 case $ac_tag in
16945 :[FHLC]) ac_mode=$ac_tag; continue;;
16946 esac
16947 case $ac_mode$ac_tag in
16948 :[FHL]*:*);;
16949 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16950 :[FH]-) ac_tag=-:-;;
16951 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16952 esac
16953 ac_save_IFS=$IFS
16954 IFS=:
16955 set x $ac_tag
16956 IFS=$ac_save_IFS
16957 shift
16958 ac_file=$1
16959 shift
16961 case $ac_mode in
16962 :L) ac_source=$1;;
16963 :[FH])
16964 ac_file_inputs=
16965 for ac_f
16967 case $ac_f in
16968 -) ac_f="$ac_tmp/stdin";;
16969 *) # Look for the file first in the build tree, then in the source tree
16970 # (if the path is not absolute). The absolute path cannot be DOS-style,
16971 # because $ac_f cannot contain `:'.
16972 test -f "$ac_f" ||
16973 case $ac_f in
16974 [\\/$]*) false;;
16975 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16976 esac ||
16977 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16978 esac
16979 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16980 as_fn_append ac_file_inputs " '$ac_f'"
16981 done
16983 # Let's still pretend it is `configure' which instantiates (i.e., don't
16984 # use $as_me), people would be surprised to read:
16985 # /* config.h. Generated by config.status. */
16986 configure_input='Generated from '`
16987 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16988 `' by configure.'
16989 if test x"$ac_file" != x-; then
16990 configure_input="$ac_file. $configure_input"
16991 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16992 $as_echo "$as_me: creating $ac_file" >&6;}
16994 # Neutralize special characters interpreted by sed in replacement strings.
16995 case $configure_input in #(
16996 *\&* | *\|* | *\\* )
16997 ac_sed_conf_input=`$as_echo "$configure_input" |
16998 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16999 *) ac_sed_conf_input=$configure_input;;
17000 esac
17002 case $ac_tag in
17003 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17004 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17005 esac
17007 esac
17009 ac_dir=`$as_dirname -- "$ac_file" ||
17010 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17011 X"$ac_file" : 'X\(//\)[^/]' \| \
17012 X"$ac_file" : 'X\(//\)$' \| \
17013 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17014 $as_echo X"$ac_file" |
17015 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17016 s//\1/
17019 /^X\(\/\/\)[^/].*/{
17020 s//\1/
17023 /^X\(\/\/\)$/{
17024 s//\1/
17027 /^X\(\/\).*/{
17028 s//\1/
17031 s/.*/./; q'`
17032 as_dir="$ac_dir"; as_fn_mkdir_p
17033 ac_builddir=.
17035 case "$ac_dir" in
17036 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17038 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17039 # A ".." for each directory in $ac_dir_suffix.
17040 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17041 case $ac_top_builddir_sub in
17042 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17043 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17044 esac ;;
17045 esac
17046 ac_abs_top_builddir=$ac_pwd
17047 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17048 # for backward compatibility:
17049 ac_top_builddir=$ac_top_build_prefix
17051 case $srcdir in
17052 .) # We are building in place.
17053 ac_srcdir=.
17054 ac_top_srcdir=$ac_top_builddir_sub
17055 ac_abs_top_srcdir=$ac_pwd ;;
17056 [\\/]* | ?:[\\/]* ) # Absolute name.
17057 ac_srcdir=$srcdir$ac_dir_suffix;
17058 ac_top_srcdir=$srcdir
17059 ac_abs_top_srcdir=$srcdir ;;
17060 *) # Relative name.
17061 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17062 ac_top_srcdir=$ac_top_build_prefix$srcdir
17063 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17064 esac
17065 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17068 case $ac_mode in
17071 # CONFIG_FILE
17074 case $INSTALL in
17075 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17076 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17077 esac
17078 _ACEOF
17080 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17081 # If the template does not know about datarootdir, expand it.
17082 # FIXME: This hack should be removed a few years after 2.60.
17083 ac_datarootdir_hack=; ac_datarootdir_seen=
17084 ac_sed_dataroot='
17085 /datarootdir/ {
17089 /@datadir@/p
17090 /@docdir@/p
17091 /@infodir@/p
17092 /@localedir@/p
17093 /@mandir@/p'
17094 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17095 *datarootdir*) ac_datarootdir_seen=yes;;
17096 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17098 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17099 _ACEOF
17100 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17101 ac_datarootdir_hack='
17102 s&@datadir@&$datadir&g
17103 s&@docdir@&$docdir&g
17104 s&@infodir@&$infodir&g
17105 s&@localedir@&$localedir&g
17106 s&@mandir@&$mandir&g
17107 s&\\\${datarootdir}&$datarootdir&g' ;;
17108 esac
17109 _ACEOF
17111 # Neutralize VPATH when `$srcdir' = `.'.
17112 # Shell code in configure.ac might set extrasub.
17113 # FIXME: do we really want to maintain this feature?
17114 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17115 ac_sed_extra="$ac_vpsub
17116 $extrasub
17117 _ACEOF
17118 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17120 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17121 s|@configure_input@|$ac_sed_conf_input|;t t
17122 s&@top_builddir@&$ac_top_builddir_sub&;t t
17123 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17124 s&@srcdir@&$ac_srcdir&;t t
17125 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17126 s&@top_srcdir@&$ac_top_srcdir&;t t
17127 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17128 s&@builddir@&$ac_builddir&;t t
17129 s&@abs_builddir@&$ac_abs_builddir&;t t
17130 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17131 s&@INSTALL@&$ac_INSTALL&;t t
17132 $ac_datarootdir_hack
17134 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
17135 if $ac_cs_awk_getline; then
17136 $AWK -f "$ac_tmp/subs.awk"
17137 else
17138 $AWK -f "$ac_tmp/subs.awk" | $SHELL
17139 fi \
17140 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17142 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17143 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17144 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17145 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17147 which seems to be undefined. Please make sure it is defined" >&5
17148 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17149 which seems to be undefined. Please make sure it is defined" >&2;}
17151 rm -f "$ac_tmp/stdin"
17152 case $ac_file in
17153 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17154 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17155 esac \
17156 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17160 # CONFIG_HEADER
17162 if test x"$ac_file" != x-; then
17164 $as_echo "/* $configure_input */" \
17165 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17166 } >"$ac_tmp/config.h" \
17167 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17168 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17169 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17170 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17171 else
17172 rm -f "$ac_file"
17173 mv "$ac_tmp/config.h" "$ac_file" \
17174 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17176 else
17177 $as_echo "/* $configure_input */" \
17178 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17179 || as_fn_error $? "could not create -" "$LINENO" 5
17184 # CONFIG_LINK
17187 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
17189 else
17190 # Prefer the file from the source tree if names are identical.
17191 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
17192 ac_source=$srcdir/$ac_source
17195 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
17196 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
17198 if test ! -r "$ac_source"; then
17199 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
17201 rm -f "$ac_file"
17203 # Try a relative symlink, then a hard link, then a copy.
17204 case $ac_source in
17205 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
17206 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
17207 esac
17208 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
17209 ln "$ac_source" "$ac_file" 2>/dev/null ||
17210 cp -p "$ac_source" "$ac_file" ||
17211 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
17214 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17215 $as_echo "$as_me: executing $ac_file commands" >&6;}
17217 esac
17220 case $ac_file$ac_mode in
17221 "include/stamp-h":C) echo timestamp > include/stamp-h ;;
17222 "dlls/gdi32/dibdrv":C) test -d "dlls/gdi32/dibdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/dibdrv" >&5
17223 $as_echo "$as_me: creating dlls/gdi32/dibdrv" >&6;}; as_dir="dlls/gdi32/dibdrv"; as_fn_mkdir_p; } ;;
17224 "dlls/gdi32/enhmfdrv":C) test -d "dlls/gdi32/enhmfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/enhmfdrv" >&5
17225 $as_echo "$as_me: creating dlls/gdi32/enhmfdrv" >&6;}; as_dir="dlls/gdi32/enhmfdrv"; as_fn_mkdir_p; } ;;
17226 "dlls/gdi32/mfdrv":C) test -d "dlls/gdi32/mfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/mfdrv" >&5
17227 $as_echo "$as_me: creating dlls/gdi32/mfdrv" >&6;}; as_dir="dlls/gdi32/mfdrv"; as_fn_mkdir_p; } ;;
17228 "dlls/kernel32/nls":C) test -d "dlls/kernel32/nls" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/kernel32/nls" >&5
17229 $as_echo "$as_me: creating dlls/kernel32/nls" >&6;}; as_dir="dlls/kernel32/nls"; as_fn_mkdir_p; } ;;
17230 "dlls/user32/resources":C) test -d "dlls/user32/resources" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/user32/resources" >&5
17231 $as_echo "$as_me: creating dlls/user32/resources" >&6;}; as_dir="dlls/user32/resources"; as_fn_mkdir_p; } ;;
17232 "dlls/wineps.drv/data":C) test -d "dlls/wineps.drv/data" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/wineps.drv/data" >&5
17233 $as_echo "$as_me: creating dlls/wineps.drv/data" >&6;}; as_dir="dlls/wineps.drv/data"; as_fn_mkdir_p; } ;;
17234 "include/wine":C) test -d "include/wine" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating include/wine" >&5
17235 $as_echo "$as_me: creating include/wine" >&6;}; as_dir="include/wine"; as_fn_mkdir_p; } ;;
17236 "Makefile":C) wine_fn_output_makefile Makefile ;;
17238 esac
17239 done # for ac_tag
17242 as_fn_exit 0
17243 _ACEOF
17244 ac_clean_files=$ac_clean_files_save
17246 test $ac_write_fail = 0 ||
17247 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17250 # configure is writing to config.log, and then calls config.status.
17251 # config.status does its own redirection, appending to config.log.
17252 # Unfortunately, on DOS this fails, as config.log is still kept open
17253 # by configure, so config.status won't be able to write to it; its
17254 # output is simply discarded. So we exec the FD to /dev/null,
17255 # effectively closing config.log, so it can be properly (re)opened and
17256 # appended to by config.status. When coming back to configure, we
17257 # need to make the FD available again.
17258 if test "$no_create" != yes; then
17259 ac_cs_success=:
17260 ac_config_status_args=
17261 test "$silent" = yes &&
17262 ac_config_status_args="$ac_config_status_args --quiet"
17263 exec 5>/dev/null
17264 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17265 exec 5>>config.log
17266 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17267 # would make configure fail if this is the last instruction.
17268 $ac_cs_success || as_fn_exit 1
17270 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17271 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17272 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17276 if test "$no_create" = "yes"
17277 then
17278 exit 0
17281 ac_save_IFS="$IFS"
17282 if test "x$wine_notices != "x; then
17283 echo >&6
17284 IFS="|"
17285 for msg in $wine_notices; do
17286 IFS="$ac_save_IFS"
17287 if test -n "$msg"; then
17288 { $as_echo "$as_me:${as_lineno-$LINENO}: $msg" >&5
17289 $as_echo "$as_me: $msg" >&6;}
17291 done
17293 IFS="|"
17294 for msg in $wine_warnings; do
17295 IFS="$ac_save_IFS"
17296 if test -n "$msg"; then
17297 echo >&2
17298 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $msg" >&5
17299 $as_echo "$as_me: WARNING: $msg" >&2;}
17301 done
17302 IFS="$ac_save_IFS"
17304 echo "
17305 $as_me: Finished. Do '${ac_make}' to compile Wine.
17306 " >&6