api-ms-win-core-file-l1-1-0: Add stub dll.
[wine.git] / configure
blobd657e50ee7e131f633eb4ffeb76d11153a6b5acc
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for Wine 1.7.42.
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.7.42'
584 PACKAGE_STRING='Wine 1.7.42'
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 LINGUAS
628 ALL_VARS_RULES
629 LDAP_LIBS
630 RT_LIBS
631 POLL_LIBS
632 DL_LIBS
633 TOOLSEXT
634 UNWINDFLAGS
635 BUILTINFLAG
636 EXTRACFLAGS
637 PROCSTAT_LIBS
638 KSTAT_LIBS
639 MPG123_LIBS
640 MPG123_CFLAGS
641 TIFF_LIBS
642 TIFF_CFLAGS
643 PNG_LIBS
644 PNG_CFLAGS
645 JPEG_LIBS
646 JPEG_CFLAGS
647 FONTCONFIG_LIBS
648 FONTCONFIG_CFLAGS
649 CUPS_CFLAGS
650 CAPI20_LIBS
651 CAPI20_CFLAGS
652 OSS4_CFLAGS
653 ALSA_LIBS
654 GSTREAMER_LIBS
655 GSTREAMER_CFLAGS
656 GETTEXTPO_LIBS
657 Z_LIBS
658 FREETYPE_LIBS
659 FREETYPE_CFLAGS
660 LCMS2_LIBS
661 LCMS2_CFLAGS
662 RESOLV_LIBS
663 GPHOTO2_PORT_LIBS
664 GPHOTO2_PORT_CFLAGS
665 GPHOTO2_LIBS
666 GPHOTO2_CFLAGS
667 SANE_LIBS
668 SANE_CFLAGS
669 GNUTLS_LIBS
670 GNUTLS_CFLAGS
671 HAL_LIBS
672 HAL_CFLAGS
673 DBUS_LIBS
674 DBUS_CFLAGS
675 XSLT_LIBS
676 XSLT_CFLAGS
677 XML2_LIBS
678 XML2_CFLAGS
679 LIBPCAP
680 X_EXTRA_LIBS
681 X_LIBS
682 X_PRE_LIBS
683 X_CFLAGS
684 XMKMF
685 PTHREAD_LIBS
686 CROSSCC
687 CROSSTARGET
688 PRELINK
689 CARBON_LIBS
690 QUICKTIME_LIBS
691 OPENCL_LIBS
692 OPENAL_LIBS
693 COREAUDIO_LIBS
694 SECURITY_LIBS
695 DISKARBITRATION_LIBS
696 APPKIT_LIBS
697 CORESERVICES_LIBS
698 APPLICATIONSERVICES_LIBS
699 FORCEFEEDBACK_LIBS
700 IOKIT_LIBS
701 COREFOUNDATION_LIBS
702 LIBWINE_RULES
703 SOCKET_LIBS
704 DLLTOOL
705 LOADER_RULES
706 ALL_TEST_RESOURCES
707 READELF
709 LDRPATH_LOCAL
710 LDRPATH_INSTALL
711 DLLFLAGS
712 DLLPREFIX
713 dlldir
715 OPENGL_LIBS
716 ICOTOOL
717 CONVERT
718 RSVG
719 FONTFORGE
720 PKG_CONFIG
721 MSGFMT
722 LDCONFIG
723 EGREP
724 GREP
725 LN_S
726 RANLIB
727 ARFLAGS
728 STRIP
729 ac_ct_AR
731 BISON
732 FLEX
733 TOOLSDIR
734 TARGETFLAGS
736 CPPBIN
737 ac_ct_CXX
738 CXXFLAGS
740 OBJEXT
741 EXEEXT
742 ac_ct_CC
743 CPPFLAGS
744 LDFLAGS
745 CFLAGS
747 SET_MAKE
748 host_os
749 host_vendor
750 host_cpu
751 host
752 build_os
753 build_vendor
754 build_cpu
755 build
756 target_alias
757 host_alias
758 build_alias
759 LIBS
760 ECHO_T
761 ECHO_N
762 ECHO_C
763 DEFS
764 mandir
765 localedir
766 libdir
767 psdir
768 pdfdir
769 dvidir
770 htmldir
771 infodir
772 docdir
773 oldincludedir
774 includedir
775 localstatedir
776 sharedstatedir
777 sysconfdir
778 datadir
779 datarootdir
780 libexecdir
781 sbindir
782 bindir
783 program_transform_name
784 prefix
785 exec_prefix
786 PACKAGE_URL
787 PACKAGE_BUGREPORT
788 PACKAGE_STRING
789 PACKAGE_VERSION
790 PACKAGE_TARNAME
791 PACKAGE_NAME
792 PATH_SEPARATOR
793 SHELL'
794 ac_subst_files=''
795 ac_user_opts='
796 enable_option_checking
797 enable_win16
798 enable_win64
799 enable_tests
800 enable_maintainer_mode
801 with_alsa
802 with_capi
803 with_cms
804 with_coreaudio
805 with_cups
806 with_curses
807 with_dbus
808 with_fontconfig
809 with_freetype
810 with_gettext
811 with_gettextpo
812 with_gphoto
813 with_glu
814 with_gnutls
815 with_gsm
816 with_gstreamer
817 with_hal
818 with_jpeg
819 with_ldap
820 with_mpg123
821 with_netapi
822 with_openal
823 with_opencl
824 with_opengl
825 with_osmesa
826 with_oss
827 with_pcap
828 with_png
829 with_pthread
830 with_sane
831 with_tiff
832 with_v4l
833 with_xcomposite
834 with_xcursor
835 with_xinerama
836 with_xinput
837 with_xinput2
838 with_xml
839 with_xrandr
840 with_xrender
841 with_xshape
842 with_xshm
843 with_xslt
844 with_xxf86vm
845 with_zlib
846 with_wine_tools
847 with_wine64
848 enable_largefile
849 with_x
850 enable_acledit
851 enable_aclui
852 enable_activeds
853 enable_actxprxy
854 enable_advapi32
855 enable_advpack
856 enable_amstream
857 enable_api_ms_win_core_com_l1_1_0
858 enable_api_ms_win_core_console_l1_1_0
859 enable_api_ms_win_core_datetime_l1_1_0
860 enable_api_ms_win_core_datetime_l1_1_1
861 enable_api_ms_win_core_debug_l1_1_0
862 enable_api_ms_win_core_debug_l1_1_1
863 enable_api_ms_win_core_errorhandling_l1_1_0
864 enable_api_ms_win_core_errorhandling_l1_1_1
865 enable_api_ms_win_core_errorhandling_l1_1_2
866 enable_api_ms_win_core_fibers_l1_1_0
867 enable_api_ms_win_core_fibers_l1_1_1
868 enable_api_ms_win_core_file_l1_1_0
869 enable_api_ms_win_core_file_l1_2_0
870 enable_api_ms_win_core_file_l2_1_0
871 enable_api_ms_win_core_file_l2_1_1
872 enable_api_ms_win_core_handle_l1_1_0
873 enable_api_ms_win_core_heap_l1_2_0
874 enable_api_ms_win_core_heap_obsolete_l1_1_0
875 enable_api_ms_win_core_interlocked_l1_2_0
876 enable_api_ms_win_core_io_l1_1_1
877 enable_api_ms_win_core_kernel32_legacy_l1_1_0
878 enable_api_ms_win_core_libraryloader_l1_1_1
879 enable_api_ms_win_core_localization_l1_2_0
880 enable_api_ms_win_core_localization_l1_2_1
881 enable_api_ms_win_core_localization_obsolete_l1_1_0
882 enable_api_ms_win_core_localregistry_l1_1_0
883 enable_api_ms_win_core_memory_l1_1_1
884 enable_api_ms_win_core_namedpipe_l1_2_0
885 enable_api_ms_win_core_processenvironment_l1_2_0
886 enable_api_ms_win_core_processthreads_l1_1_0
887 enable_api_ms_win_core_processthreads_l1_1_1
888 enable_api_ms_win_core_processthreads_l1_1_2
889 enable_api_ms_win_core_profile_l1_1_0
890 enable_api_ms_win_core_psapi_l1_1_0
891 enable_api_ms_win_core_registry_l1_1_0
892 enable_api_ms_win_core_rtlsupport_l1_2_0
893 enable_api_ms_win_core_shlwapi_legacy_l1_1_0
894 enable_api_ms_win_core_string_l1_1_0
895 enable_api_ms_win_core_synch_l1_2_0
896 enable_api_ms_win_core_sysinfo_l1_2_0
897 enable_api_ms_win_core_sysinfo_l1_2_1
898 enable_api_ms_win_core_threadpool_legacy_l1_1_0
899 enable_api_ms_win_core_timezone_l1_1_0
900 enable_api_ms_win_core_url_l1_1_0
901 enable_api_ms_win_core_util_l1_1_0
902 enable_api_ms_win_core_winrt_error_l1_1_0
903 enable_api_ms_win_core_winrt_error_l1_1_1
904 enable_api_ms_win_core_winrt_l1_1_0
905 enable_api_ms_win_core_winrt_string_l1_1_0
906 enable_api_ms_win_core_xstate_l2_1_0
907 enable_api_ms_win_downlevel_advapi32_l1_1_0
908 enable_api_ms_win_downlevel_advapi32_l2_1_0
909 enable_api_ms_win_downlevel_normaliz_l1_1_0
910 enable_api_ms_win_downlevel_ole32_l1_1_0
911 enable_api_ms_win_downlevel_shell32_l1_1_0
912 enable_api_ms_win_downlevel_shlwapi_l1_1_0
913 enable_api_ms_win_downlevel_shlwapi_l2_1_0
914 enable_api_ms_win_downlevel_user32_l1_1_0
915 enable_api_ms_win_downlevel_version_l1_1_0
916 enable_api_ms_win_eventing_provider_l1_1_0
917 enable_api_ms_win_ntuser_dc_access_l1_1_0
918 enable_api_ms_win_security_base_l1_1_0
919 enable_api_ms_win_security_base_l1_2_0
920 enable_api_ms_win_security_sddl_l1_1_0
921 enable_api_ms_win_service_core_l1_1_1
922 enable_api_ms_win_service_management_l1_1_0
923 enable_api_ms_win_service_winsvc_l1_2_0
924 enable_apphelp
925 enable_appwiz_cpl
926 enable_atl
927 enable_atl100
928 enable_atl110
929 enable_atl80
930 enable_atl90
931 enable_authz
932 enable_avicap32
933 enable_avifil32
934 enable_avrt
935 enable_bcrypt
936 enable_browseui
937 enable_cabinet
938 enable_capi2032
939 enable_cards
940 enable_cfgmgr32
941 enable_clusapi
942 enable_combase
943 enable_comcat
944 enable_comctl32
945 enable_comdlg32
946 enable_compstui
947 enable_comsvcs
948 enable_connect
949 enable_credui
950 enable_crtdll
951 enable_crypt32
952 enable_cryptdlg
953 enable_cryptdll
954 enable_cryptext
955 enable_cryptnet
956 enable_cryptui
957 enable_ctapi32
958 enable_ctl3d32
959 enable_d2d1
960 enable_d3d10
961 enable_d3d10_1
962 enable_d3d10core
963 enable_d3d11
964 enable_d3d8
965 enable_d3d9
966 enable_d3dcompiler_33
967 enable_d3dcompiler_34
968 enable_d3dcompiler_35
969 enable_d3dcompiler_36
970 enable_d3dcompiler_37
971 enable_d3dcompiler_38
972 enable_d3dcompiler_39
973 enable_d3dcompiler_40
974 enable_d3dcompiler_41
975 enable_d3dcompiler_42
976 enable_d3dcompiler_43
977 enable_d3dim
978 enable_d3drm
979 enable_d3dx10_33
980 enable_d3dx10_34
981 enable_d3dx10_35
982 enable_d3dx10_36
983 enable_d3dx10_37
984 enable_d3dx10_38
985 enable_d3dx10_39
986 enable_d3dx10_40
987 enable_d3dx10_41
988 enable_d3dx10_42
989 enable_d3dx10_43
990 enable_d3dx11_42
991 enable_d3dx11_43
992 enable_d3dx9_24
993 enable_d3dx9_25
994 enable_d3dx9_26
995 enable_d3dx9_27
996 enable_d3dx9_28
997 enable_d3dx9_29
998 enable_d3dx9_30
999 enable_d3dx9_31
1000 enable_d3dx9_32
1001 enable_d3dx9_33
1002 enable_d3dx9_34
1003 enable_d3dx9_35
1004 enable_d3dx9_36
1005 enable_d3dx9_37
1006 enable_d3dx9_38
1007 enable_d3dx9_39
1008 enable_d3dx9_40
1009 enable_d3dx9_41
1010 enable_d3dx9_42
1011 enable_d3dx9_43
1012 enable_d3dxof
1013 enable_dbgeng
1014 enable_dbghelp
1015 enable_dciman32
1016 enable_ddraw
1017 enable_ddrawex
1018 enable_devenum
1019 enable_dhcpcsvc
1020 enable_difxapi
1021 enable_dinput
1022 enable_dinput8
1023 enable_dispex
1024 enable_dmband
1025 enable_dmcompos
1026 enable_dmime
1027 enable_dmloader
1028 enable_dmscript
1029 enable_dmstyle
1030 enable_dmsynth
1031 enable_dmusic
1032 enable_dmusic32
1033 enable_dnsapi
1034 enable_dplay
1035 enable_dplayx
1036 enable_dpnaddr
1037 enable_dpnet
1038 enable_dpnhpast
1039 enable_dpnlobby
1040 enable_dpvoice
1041 enable_dpwsockx
1042 enable_drmclien
1043 enable_dsound
1044 enable_dssenh
1045 enable_dswave
1046 enable_dwmapi
1047 enable_dwrite
1048 enable_dxdiagn
1049 enable_dxgi
1050 enable_dxva2
1051 enable_evr
1052 enable_explorerframe
1053 enable_ext_ms_win_gdi_devcaps_l1_1_0
1054 enable_faultrep
1055 enable_fltlib
1056 enable_fntcache
1057 enable_fontsub
1058 enable_fusion
1059 enable_fwpuclnt
1060 enable_gameux
1061 enable_gdi32
1062 enable_gdiplus
1063 enable_glu32
1064 enable_gphoto2_ds
1065 enable_gpkcsp
1066 enable_hal
1067 enable_hhctrl_ocx
1068 enable_hid
1069 enable_hlink
1070 enable_hnetcfg
1071 enable_httpapi
1072 enable_iccvid
1073 enable_icmp
1074 enable_ieframe
1075 enable_imaadp32_acm
1076 enable_imagehlp
1077 enable_imm32
1078 enable_inetcomm
1079 enable_inetcpl_cpl
1080 enable_inetmib1
1081 enable_infosoft
1082 enable_initpki
1083 enable_inkobj
1084 enable_inseng
1085 enable_iphlpapi
1086 enable_itircl
1087 enable_itss
1088 enable_joy_cpl
1089 enable_jscript
1090 enable_jsproxy
1091 enable_kernel32
1092 enable_ksuser
1093 enable_ktmw32
1094 enable_loadperf
1095 enable_localspl
1096 enable_localui
1097 enable_lz32
1098 enable_mapi32
1099 enable_mapistub
1100 enable_mciavi32
1101 enable_mcicda
1102 enable_mciqtz32
1103 enable_mciseq
1104 enable_mciwave
1105 enable_mf
1106 enable_mfplat
1107 enable_mfreadwrite
1108 enable_mgmtapi
1109 enable_midimap
1110 enable_mlang
1111 enable_mmcndmgr
1112 enable_mmdevapi
1113 enable_mountmgr_sys
1114 enable_mpr
1115 enable_mprapi
1116 enable_msacm32_drv
1117 enable_msacm32
1118 enable_msadp32_acm
1119 enable_msasn1
1120 enable_mscat32
1121 enable_mscms
1122 enable_mscoree
1123 enable_msctf
1124 enable_msdaps
1125 enable_msdmo
1126 enable_msftedit
1127 enable_msg711_acm
1128 enable_msgsm32_acm
1129 enable_mshtml_tlb
1130 enable_mshtml
1131 enable_msi
1132 enable_msident
1133 enable_msimg32
1134 enable_msimsg
1135 enable_msimtf
1136 enable_msisip
1137 enable_msisys_ocx
1138 enable_msls31
1139 enable_msnet32
1140 enable_mspatcha
1141 enable_msrle32
1142 enable_mssign32
1143 enable_mssip32
1144 enable_mstask
1145 enable_msvcirt
1146 enable_msvcm80
1147 enable_msvcm90
1148 enable_msvcp100
1149 enable_msvcp110
1150 enable_msvcp120
1151 enable_msvcp120_app
1152 enable_msvcp60
1153 enable_msvcp70
1154 enable_msvcp71
1155 enable_msvcp80
1156 enable_msvcp90
1157 enable_msvcr100
1158 enable_msvcr110
1159 enable_msvcr120
1160 enable_msvcr120_app
1161 enable_msvcr70
1162 enable_msvcr71
1163 enable_msvcr80
1164 enable_msvcr90
1165 enable_msvcrt
1166 enable_msvcrt20
1167 enable_msvcrt40
1168 enable_msvcrtd
1169 enable_msvfw32
1170 enable_msvidc32
1171 enable_mswsock
1172 enable_msxml
1173 enable_msxml2
1174 enable_msxml3
1175 enable_msxml4
1176 enable_msxml6
1177 enable_nddeapi
1178 enable_ndis_sys
1179 enable_netapi32
1180 enable_netcfgx
1181 enable_netprofm
1182 enable_newdev
1183 enable_normaliz
1184 enable_npmshtml
1185 enable_npptools
1186 enable_ntdll
1187 enable_ntdsapi
1188 enable_ntoskrnl_exe
1189 enable_ntprint
1190 enable_objsel
1191 enable_odbc32
1192 enable_odbccp32
1193 enable_odbccu32
1194 enable_ole32
1195 enable_oleacc
1196 enable_oleaut32
1197 enable_olecli32
1198 enable_oledb32
1199 enable_oledlg
1200 enable_olepro32
1201 enable_olesvr32
1202 enable_olethk32
1203 enable_openal32
1204 enable_opencl
1205 enable_opengl32
1206 enable_packager
1207 enable_pdh
1208 enable_photometadatahandler
1209 enable_pidgen
1210 enable_powrprof
1211 enable_printui
1212 enable_prntvpt
1213 enable_propsys
1214 enable_psapi
1215 enable_pstorec
1216 enable_qcap
1217 enable_qedit
1218 enable_qmgr
1219 enable_qmgrprxy
1220 enable_quartz
1221 enable_query
1222 enable_rasapi32
1223 enable_rasdlg
1224 enable_regapi
1225 enable_resutils
1226 enable_riched20
1227 enable_riched32
1228 enable_rpcrt4
1229 enable_rsabase
1230 enable_rsaenh
1231 enable_rstrtmgr
1232 enable_rtutils
1233 enable_samlib
1234 enable_sane_ds
1235 enable_scarddlg
1236 enable_sccbase
1237 enable_schannel
1238 enable_schedsvc
1239 enable_scrrun
1240 enable_scsiport_sys
1241 enable_secur32
1242 enable_security
1243 enable_sensapi
1244 enable_serialui
1245 enable_setupapi
1246 enable_sfc
1247 enable_sfc_os
1248 enable_shdoclc
1249 enable_shdocvw
1250 enable_shell32
1251 enable_shfolder
1252 enable_shlwapi
1253 enable_slbcsp
1254 enable_slc
1255 enable_snmpapi
1256 enable_softpub
1257 enable_spoolss
1258 enable_stdole2_tlb
1259 enable_stdole32_tlb
1260 enable_sti
1261 enable_svrapi
1262 enable_sxs
1263 enable_t2embed
1264 enable_tapi32
1265 enable_taskschd
1266 enable_traffic
1267 enable_twain_32
1268 enable_unicows
1269 enable_updspapi
1270 enable_url
1271 enable_urlmon
1272 enable_usbd_sys
1273 enable_user32
1274 enable_userenv
1275 enable_usp10
1276 enable_uxtheme
1277 enable_vbscript
1278 enable_vcomp
1279 enable_vcomp100
1280 enable_vcomp90
1281 enable_vdmdbg
1282 enable_version
1283 enable_vssapi
1284 enable_wbemdisp
1285 enable_wbemprox
1286 enable_webservices
1287 enable_wer
1288 enable_wevtapi
1289 enable_wiaservc
1290 enable_windowscodecs
1291 enable_windowscodecsext
1292 enable_winealsa_drv
1293 enable_winecoreaudio_drv
1294 enable_wined3d
1295 enable_winegstreamer
1296 enable_winejoystick_drv
1297 enable_winemac_drv
1298 enable_winemapi
1299 enable_winemp3_acm
1300 enable_wineoss_drv
1301 enable_wineps_drv
1302 enable_wineqtdecoder
1303 enable_winex11_drv
1304 enable_wing32
1305 enable_winhttp
1306 enable_wininet
1307 enable_winmm
1308 enable_winnls32
1309 enable_winscard
1310 enable_winspool_drv
1311 enable_winsta
1312 enable_wintab32
1313 enable_wintrust
1314 enable_wlanapi
1315 enable_wldap32
1316 enable_wmi
1317 enable_wmiutils
1318 enable_wmp
1319 enable_wmvcore
1320 enable_wnaspi32
1321 enable_wpcap
1322 enable_ws2_32
1323 enable_wshom_ocx
1324 enable_wsnmp32
1325 enable_wsock32
1326 enable_wtsapi32
1327 enable_wuapi
1328 enable_wuaueng
1329 enable_x3daudio1_1
1330 enable_x3daudio1_2
1331 enable_x3daudio1_3
1332 enable_x3daudio1_4
1333 enable_x3daudio1_5
1334 enable_x3daudio1_6
1335 enable_x3daudio1_7
1336 enable_xapofx1_1
1337 enable_xapofx1_3
1338 enable_xapofx1_4
1339 enable_xapofx1_5
1340 enable_xaudio2_7
1341 enable_xinput1_1
1342 enable_xinput1_2
1343 enable_xinput1_3
1344 enable_xinput1_4
1345 enable_xinput9_1_0
1346 enable_xmllite
1347 enable_xolehlp
1348 enable_xpsprint
1349 enable_xpssvcs
1350 enable_documentation
1351 enable_fonts
1352 enable_include
1353 enable_libs_port
1354 enable_libs_wine
1355 enable_libs_wpp
1356 enable_loader
1357 enable_arp
1358 enable_aspnet_regiis
1359 enable_attrib
1360 enable_cabarc
1361 enable_cacls
1362 enable_clock
1363 enable_cmd
1364 enable_conhost
1365 enable_control
1366 enable_cscript
1367 enable_dpnsvr
1368 enable_dxdiag
1369 enable_eject
1370 enable_expand
1371 enable_explorer
1372 enable_extrac32
1373 enable_findstr
1374 enable_hh
1375 enable_hostname
1376 enable_icinfo
1377 enable_iexplore
1378 enable_ipconfig
1379 enable_lodctr
1380 enable_mofcomp
1381 enable_mshta
1382 enable_msiexec
1383 enable_net
1384 enable_netsh
1385 enable_netstat
1386 enable_ngen
1387 enable_notepad
1388 enable_oleview
1389 enable_ping
1390 enable_plugplay
1391 enable_presentationfontcache
1392 enable_progman
1393 enable_reg
1394 enable_regasm
1395 enable_regedit
1396 enable_regsvcs
1397 enable_regsvr32
1398 enable_rpcss
1399 enable_rundll32
1400 enable_sc
1401 enable_schtasks
1402 enable_sdbinst
1403 enable_secedit
1404 enable_servicemodelreg
1405 enable_services
1406 enable_spoolsv
1407 enable_start
1408 enable_svchost
1409 enable_systeminfo
1410 enable_taskkill
1411 enable_tasklist
1412 enable_taskmgr
1413 enable_termsv
1414 enable_uninstaller
1415 enable_unlodctr
1416 enable_view
1417 enable_wevtutil
1418 enable_wineboot
1419 enable_winebrowser
1420 enable_winecfg
1421 enable_wineconsole
1422 enable_winedbg
1423 enable_winedevice
1424 enable_winefile
1425 enable_winemenubuilder
1426 enable_winemine
1427 enable_winemsibuilder
1428 enable_winepath
1429 enable_winetest
1430 enable_winhlp32
1431 enable_winver
1432 enable_wmic
1433 enable_wordpad
1434 enable_write
1435 enable_wscript
1436 enable_wusa
1437 enable_xcopy
1438 enable_server
1439 enable_tools
1441 ac_precious_vars='build_alias
1442 host_alias
1443 target_alias
1445 CFLAGS
1446 LDFLAGS
1447 LIBS
1448 CPPFLAGS
1450 CXXFLAGS
1453 XMKMF
1454 XML2_CFLAGS
1455 XML2_LIBS
1456 XSLT_CFLAGS
1457 XSLT_LIBS
1458 DBUS_CFLAGS
1459 DBUS_LIBS
1460 HAL_CFLAGS
1461 HAL_LIBS
1462 GNUTLS_CFLAGS
1463 GNUTLS_LIBS
1464 SANE_CFLAGS
1465 SANE_LIBS
1466 GPHOTO2_CFLAGS
1467 GPHOTO2_LIBS
1468 GPHOTO2_PORT_CFLAGS
1469 GPHOTO2_PORT_LIBS
1470 LCMS2_CFLAGS
1471 LCMS2_LIBS
1472 FREETYPE_CFLAGS
1473 FREETYPE_LIBS
1474 GSTREAMER_CFLAGS
1475 GSTREAMER_LIBS
1476 CAPI20_CFLAGS
1477 CAPI20_LIBS
1478 FONTCONFIG_CFLAGS
1479 FONTCONFIG_LIBS
1480 JPEG_CFLAGS
1481 JPEG_LIBS
1482 PNG_CFLAGS
1483 PNG_LIBS
1484 TIFF_CFLAGS
1485 TIFF_LIBS
1486 MPG123_CFLAGS
1487 MPG123_LIBS'
1490 # Initialize some variables set by options.
1491 ac_init_help=
1492 ac_init_version=false
1493 ac_unrecognized_opts=
1494 ac_unrecognized_sep=
1495 # The variables have the same names as the options, with
1496 # dashes changed to underlines.
1497 cache_file=/dev/null
1498 exec_prefix=NONE
1499 no_create=
1500 no_recursion=
1501 prefix=NONE
1502 program_prefix=NONE
1503 program_suffix=NONE
1504 program_transform_name=s,x,x,
1505 silent=
1506 site=
1507 srcdir=
1508 verbose=
1509 x_includes=NONE
1510 x_libraries=NONE
1512 # Installation directory options.
1513 # These are left unexpanded so users can "make install exec_prefix=/foo"
1514 # and all the variables that are supposed to be based on exec_prefix
1515 # by default will actually change.
1516 # Use braces instead of parens because sh, perl, etc. also accept them.
1517 # (The list follows the same order as the GNU Coding Standards.)
1518 bindir='${exec_prefix}/bin'
1519 sbindir='${exec_prefix}/sbin'
1520 libexecdir='${exec_prefix}/libexec'
1521 datarootdir='${prefix}/share'
1522 datadir='${datarootdir}'
1523 sysconfdir='${prefix}/etc'
1524 sharedstatedir='${prefix}/com'
1525 localstatedir='${prefix}/var'
1526 includedir='${prefix}/include'
1527 oldincludedir='/usr/include'
1528 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1529 infodir='${datarootdir}/info'
1530 htmldir='${docdir}'
1531 dvidir='${docdir}'
1532 pdfdir='${docdir}'
1533 psdir='${docdir}'
1534 libdir='${exec_prefix}/lib'
1535 localedir='${datarootdir}/locale'
1536 mandir='${datarootdir}/man'
1538 ac_prev=
1539 ac_dashdash=
1540 for ac_option
1542 # If the previous option needs an argument, assign it.
1543 if test -n "$ac_prev"; then
1544 eval $ac_prev=\$ac_option
1545 ac_prev=
1546 continue
1549 case $ac_option in
1550 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1551 *=) ac_optarg= ;;
1552 *) ac_optarg=yes ;;
1553 esac
1555 # Accept the important Cygnus configure options, so we can diagnose typos.
1557 case $ac_dashdash$ac_option in
1559 ac_dashdash=yes ;;
1561 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1562 ac_prev=bindir ;;
1563 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1564 bindir=$ac_optarg ;;
1566 -build | --build | --buil | --bui | --bu)
1567 ac_prev=build_alias ;;
1568 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1569 build_alias=$ac_optarg ;;
1571 -cache-file | --cache-file | --cache-fil | --cache-fi \
1572 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1573 ac_prev=cache_file ;;
1574 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1575 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1576 cache_file=$ac_optarg ;;
1578 --config-cache | -C)
1579 cache_file=config.cache ;;
1581 -datadir | --datadir | --datadi | --datad)
1582 ac_prev=datadir ;;
1583 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1584 datadir=$ac_optarg ;;
1586 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1587 | --dataroo | --dataro | --datar)
1588 ac_prev=datarootdir ;;
1589 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1590 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1591 datarootdir=$ac_optarg ;;
1593 -disable-* | --disable-*)
1594 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1595 # Reject names that are not valid shell variable names.
1596 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1597 as_fn_error $? "invalid feature name: $ac_useropt"
1598 ac_useropt_orig=$ac_useropt
1599 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1600 case $ac_user_opts in
1602 "enable_$ac_useropt"
1603 "*) ;;
1604 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1605 ac_unrecognized_sep=', ';;
1606 esac
1607 eval enable_$ac_useropt=no ;;
1609 -docdir | --docdir | --docdi | --doc | --do)
1610 ac_prev=docdir ;;
1611 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1612 docdir=$ac_optarg ;;
1614 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1615 ac_prev=dvidir ;;
1616 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1617 dvidir=$ac_optarg ;;
1619 -enable-* | --enable-*)
1620 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1621 # Reject names that are not valid shell variable names.
1622 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1623 as_fn_error $? "invalid feature name: $ac_useropt"
1624 ac_useropt_orig=$ac_useropt
1625 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1626 case $ac_user_opts in
1628 "enable_$ac_useropt"
1629 "*) ;;
1630 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1631 ac_unrecognized_sep=', ';;
1632 esac
1633 eval enable_$ac_useropt=\$ac_optarg ;;
1635 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1636 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1637 | --exec | --exe | --ex)
1638 ac_prev=exec_prefix ;;
1639 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1640 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1641 | --exec=* | --exe=* | --ex=*)
1642 exec_prefix=$ac_optarg ;;
1644 -gas | --gas | --ga | --g)
1645 # Obsolete; use --with-gas.
1646 with_gas=yes ;;
1648 -help | --help | --hel | --he | -h)
1649 ac_init_help=long ;;
1650 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1651 ac_init_help=recursive ;;
1652 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1653 ac_init_help=short ;;
1655 -host | --host | --hos | --ho)
1656 ac_prev=host_alias ;;
1657 -host=* | --host=* | --hos=* | --ho=*)
1658 host_alias=$ac_optarg ;;
1660 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1661 ac_prev=htmldir ;;
1662 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1663 | --ht=*)
1664 htmldir=$ac_optarg ;;
1666 -includedir | --includedir | --includedi | --included | --include \
1667 | --includ | --inclu | --incl | --inc)
1668 ac_prev=includedir ;;
1669 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1670 | --includ=* | --inclu=* | --incl=* | --inc=*)
1671 includedir=$ac_optarg ;;
1673 -infodir | --infodir | --infodi | --infod | --info | --inf)
1674 ac_prev=infodir ;;
1675 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1676 infodir=$ac_optarg ;;
1678 -libdir | --libdir | --libdi | --libd)
1679 ac_prev=libdir ;;
1680 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1681 libdir=$ac_optarg ;;
1683 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1684 | --libexe | --libex | --libe)
1685 ac_prev=libexecdir ;;
1686 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1687 | --libexe=* | --libex=* | --libe=*)
1688 libexecdir=$ac_optarg ;;
1690 -localedir | --localedir | --localedi | --localed | --locale)
1691 ac_prev=localedir ;;
1692 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1693 localedir=$ac_optarg ;;
1695 -localstatedir | --localstatedir | --localstatedi | --localstated \
1696 | --localstate | --localstat | --localsta | --localst | --locals)
1697 ac_prev=localstatedir ;;
1698 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1699 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1700 localstatedir=$ac_optarg ;;
1702 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1703 ac_prev=mandir ;;
1704 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1705 mandir=$ac_optarg ;;
1707 -nfp | --nfp | --nf)
1708 # Obsolete; use --without-fp.
1709 with_fp=no ;;
1711 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1712 | --no-cr | --no-c | -n)
1713 no_create=yes ;;
1715 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1716 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1717 no_recursion=yes ;;
1719 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1720 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1721 | --oldin | --oldi | --old | --ol | --o)
1722 ac_prev=oldincludedir ;;
1723 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1724 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1725 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1726 oldincludedir=$ac_optarg ;;
1728 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1729 ac_prev=prefix ;;
1730 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1731 prefix=$ac_optarg ;;
1733 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1734 | --program-pre | --program-pr | --program-p)
1735 ac_prev=program_prefix ;;
1736 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1737 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1738 program_prefix=$ac_optarg ;;
1740 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1741 | --program-suf | --program-su | --program-s)
1742 ac_prev=program_suffix ;;
1743 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1744 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1745 program_suffix=$ac_optarg ;;
1747 -program-transform-name | --program-transform-name \
1748 | --program-transform-nam | --program-transform-na \
1749 | --program-transform-n | --program-transform- \
1750 | --program-transform | --program-transfor \
1751 | --program-transfo | --program-transf \
1752 | --program-trans | --program-tran \
1753 | --progr-tra | --program-tr | --program-t)
1754 ac_prev=program_transform_name ;;
1755 -program-transform-name=* | --program-transform-name=* \
1756 | --program-transform-nam=* | --program-transform-na=* \
1757 | --program-transform-n=* | --program-transform-=* \
1758 | --program-transform=* | --program-transfor=* \
1759 | --program-transfo=* | --program-transf=* \
1760 | --program-trans=* | --program-tran=* \
1761 | --progr-tra=* | --program-tr=* | --program-t=*)
1762 program_transform_name=$ac_optarg ;;
1764 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1765 ac_prev=pdfdir ;;
1766 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1767 pdfdir=$ac_optarg ;;
1769 -psdir | --psdir | --psdi | --psd | --ps)
1770 ac_prev=psdir ;;
1771 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1772 psdir=$ac_optarg ;;
1774 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1775 | -silent | --silent | --silen | --sile | --sil)
1776 silent=yes ;;
1778 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1779 ac_prev=sbindir ;;
1780 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1781 | --sbi=* | --sb=*)
1782 sbindir=$ac_optarg ;;
1784 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1785 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1786 | --sharedst | --shareds | --shared | --share | --shar \
1787 | --sha | --sh)
1788 ac_prev=sharedstatedir ;;
1789 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1790 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1791 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1792 | --sha=* | --sh=*)
1793 sharedstatedir=$ac_optarg ;;
1795 -site | --site | --sit)
1796 ac_prev=site ;;
1797 -site=* | --site=* | --sit=*)
1798 site=$ac_optarg ;;
1800 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1801 ac_prev=srcdir ;;
1802 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1803 srcdir=$ac_optarg ;;
1805 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1806 | --syscon | --sysco | --sysc | --sys | --sy)
1807 ac_prev=sysconfdir ;;
1808 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1809 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1810 sysconfdir=$ac_optarg ;;
1812 -target | --target | --targe | --targ | --tar | --ta | --t)
1813 ac_prev=target_alias ;;
1814 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1815 target_alias=$ac_optarg ;;
1817 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1818 verbose=yes ;;
1820 -version | --version | --versio | --versi | --vers | -V)
1821 ac_init_version=: ;;
1823 -with-* | --with-*)
1824 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1825 # Reject names that are not valid shell variable names.
1826 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1827 as_fn_error $? "invalid package name: $ac_useropt"
1828 ac_useropt_orig=$ac_useropt
1829 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1830 case $ac_user_opts in
1832 "with_$ac_useropt"
1833 "*) ;;
1834 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1835 ac_unrecognized_sep=', ';;
1836 esac
1837 eval with_$ac_useropt=\$ac_optarg ;;
1839 -without-* | --without-*)
1840 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1841 # Reject names that are not valid shell variable names.
1842 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1843 as_fn_error $? "invalid package name: $ac_useropt"
1844 ac_useropt_orig=$ac_useropt
1845 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1846 case $ac_user_opts in
1848 "with_$ac_useropt"
1849 "*) ;;
1850 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1851 ac_unrecognized_sep=', ';;
1852 esac
1853 eval with_$ac_useropt=no ;;
1855 --x)
1856 # Obsolete; use --with-x.
1857 with_x=yes ;;
1859 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1860 | --x-incl | --x-inc | --x-in | --x-i)
1861 ac_prev=x_includes ;;
1862 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1863 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1864 x_includes=$ac_optarg ;;
1866 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1867 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1868 ac_prev=x_libraries ;;
1869 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1870 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1871 x_libraries=$ac_optarg ;;
1873 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1874 Try \`$0 --help' for more information"
1877 *=*)
1878 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1879 # Reject names that are not valid shell variable names.
1880 case $ac_envvar in #(
1881 '' | [0-9]* | *[!_$as_cr_alnum]* )
1882 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1883 esac
1884 eval $ac_envvar=\$ac_optarg
1885 export $ac_envvar ;;
1888 # FIXME: should be removed in autoconf 3.0.
1889 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1890 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1891 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1892 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1895 esac
1896 done
1898 if test -n "$ac_prev"; then
1899 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1900 as_fn_error $? "missing argument to $ac_option"
1903 if test -n "$ac_unrecognized_opts"; then
1904 case $enable_option_checking in
1905 no) ;;
1906 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1907 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1908 esac
1911 # Check all directory arguments for consistency.
1912 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1913 datadir sysconfdir sharedstatedir localstatedir includedir \
1914 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1915 libdir localedir mandir
1917 eval ac_val=\$$ac_var
1918 # Remove trailing slashes.
1919 case $ac_val in
1920 */ )
1921 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1922 eval $ac_var=\$ac_val;;
1923 esac
1924 # Be sure to have absolute directory names.
1925 case $ac_val in
1926 [\\/$]* | ?:[\\/]* ) continue;;
1927 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1928 esac
1929 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1930 done
1932 # There might be people who depend on the old broken behavior: `$host'
1933 # used to hold the argument of --host etc.
1934 # FIXME: To remove some day.
1935 build=$build_alias
1936 host=$host_alias
1937 target=$target_alias
1939 # FIXME: To remove some day.
1940 if test "x$host_alias" != x; then
1941 if test "x$build_alias" = x; then
1942 cross_compiling=maybe
1943 elif test "x$build_alias" != "x$host_alias"; then
1944 cross_compiling=yes
1948 ac_tool_prefix=
1949 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1951 test "$silent" = yes && exec 6>/dev/null
1954 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1955 ac_ls_di=`ls -di .` &&
1956 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1957 as_fn_error $? "working directory cannot be determined"
1958 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1959 as_fn_error $? "pwd does not report name of working directory"
1962 # Find the source files, if location was not specified.
1963 if test -z "$srcdir"; then
1964 ac_srcdir_defaulted=yes
1965 # Try the directory containing this script, then the parent directory.
1966 ac_confdir=`$as_dirname -- "$as_myself" ||
1967 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1968 X"$as_myself" : 'X\(//\)[^/]' \| \
1969 X"$as_myself" : 'X\(//\)$' \| \
1970 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1971 $as_echo X"$as_myself" |
1972 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1973 s//\1/
1976 /^X\(\/\/\)[^/].*/{
1977 s//\1/
1980 /^X\(\/\/\)$/{
1981 s//\1/
1984 /^X\(\/\).*/{
1985 s//\1/
1988 s/.*/./; q'`
1989 srcdir=$ac_confdir
1990 if test ! -r "$srcdir/$ac_unique_file"; then
1991 srcdir=..
1993 else
1994 ac_srcdir_defaulted=no
1996 if test ! -r "$srcdir/$ac_unique_file"; then
1997 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1998 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
2000 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
2001 ac_abs_confdir=`(
2002 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
2003 pwd)`
2004 # When building in place, set srcdir=.
2005 if test "$ac_abs_confdir" = "$ac_pwd"; then
2006 srcdir=.
2008 # Remove unnecessary trailing slashes from srcdir.
2009 # Double slashes in file names in object file debugging info
2010 # mess up M-x gdb in Emacs.
2011 case $srcdir in
2012 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2013 esac
2014 for ac_var in $ac_precious_vars; do
2015 eval ac_env_${ac_var}_set=\${${ac_var}+set}
2016 eval ac_env_${ac_var}_value=\$${ac_var}
2017 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
2018 eval ac_cv_env_${ac_var}_value=\$${ac_var}
2019 done
2022 # Report the --help message.
2024 if test "$ac_init_help" = "long"; then
2025 # Omit some internal or obsolete options to make the list less imposing.
2026 # This message is too long to be a string in the A/UX 3.1 sh.
2027 cat <<_ACEOF
2028 \`configure' configures Wine 1.7.42 to adapt to many kinds of systems.
2030 Usage: $0 [OPTION]... [VAR=VALUE]...
2032 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2033 VAR=VALUE. See below for descriptions of some of the useful variables.
2035 Defaults for the options are specified in brackets.
2037 Configuration:
2038 -h, --help display this help and exit
2039 --help=short display options specific to this package
2040 --help=recursive display the short help of all the included packages
2041 -V, --version display version information and exit
2042 -q, --quiet, --silent do not print \`checking ...' messages
2043 --cache-file=FILE cache test results in FILE [disabled]
2044 -C, --config-cache alias for \`--cache-file=config.cache'
2045 -n, --no-create do not create output files
2046 --srcdir=DIR find the sources in DIR [configure dir or \`..']
2048 Installation directories:
2049 --prefix=PREFIX install architecture-independent files in PREFIX
2050 [$ac_default_prefix]
2051 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
2052 [PREFIX]
2054 By default, \`make install' will install all the files in
2055 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
2056 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2057 for instance \`--prefix=\$HOME'.
2059 For better control, use the options below.
2061 Fine tuning of the installation directories:
2062 --bindir=DIR user executables [EPREFIX/bin]
2063 --sbindir=DIR system admin executables [EPREFIX/sbin]
2064 --libexecdir=DIR program executables [EPREFIX/libexec]
2065 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2066 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2067 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2068 --libdir=DIR object code libraries [EPREFIX/lib]
2069 --includedir=DIR C header files [PREFIX/include]
2070 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2071 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2072 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2073 --infodir=DIR info documentation [DATAROOTDIR/info]
2074 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2075 --mandir=DIR man documentation [DATAROOTDIR/man]
2076 --docdir=DIR documentation root [DATAROOTDIR/doc/wine]
2077 --htmldir=DIR html documentation [DOCDIR]
2078 --dvidir=DIR dvi documentation [DOCDIR]
2079 --pdfdir=DIR pdf documentation [DOCDIR]
2080 --psdir=DIR ps documentation [DOCDIR]
2081 _ACEOF
2083 cat <<\_ACEOF
2085 X features:
2086 --x-includes=DIR X include files are in DIR
2087 --x-libraries=DIR X library files are in DIR
2089 System types:
2090 --build=BUILD configure for building on BUILD [guessed]
2091 --host=HOST cross-compile to build programs to run on HOST [BUILD]
2092 _ACEOF
2095 if test -n "$ac_init_help"; then
2096 case $ac_init_help in
2097 short | recursive ) echo "Configuration of Wine 1.7.42:";;
2098 esac
2099 cat <<\_ACEOF
2101 Optional Features:
2102 --disable-option-checking ignore unrecognized --enable/--with options
2103 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
2104 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
2105 --disable-win16 do not include Win16 support
2106 --enable-win64 build a Win64 emulator on AMD64 (won't run Win32
2107 binaries)
2108 --disable-tests do not build the regression tests
2109 --enable-maintainer-mode
2110 enable maintainer-specific build rules
2111 --disable-largefile omit support for large files
2113 Optional Packages:
2114 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
2115 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2116 --without-alsa do not use the Alsa sound support
2117 --without-capi do not use CAPI (ISDN support)
2118 --without-cms do not use CMS (color management support)
2119 --without-coreaudio do not use the CoreAudio sound support
2120 --without-cups do not use CUPS
2121 --without-curses do not use (n)curses
2122 --without-dbus do not use DBus (dynamic device support)
2123 --without-fontconfig do not use fontconfig
2124 --without-freetype do not use the FreeType library
2125 --without-gettext do not use gettext
2126 --with-gettextpo use the GetTextPO library to rebuild po files
2127 --without-gphoto do not use gphoto (Digital Camera support)
2128 --without-glu do not use the GLU library
2129 --without-gnutls do not use GnuTLS (schannel support)
2130 --without-gsm do not use libgsm (GSM 06.10 codec support)
2131 --without-gstreamer do not use GStreamer (codecs support)
2132 --without-hal do not use HAL (dynamic device support)
2133 --without-jpeg do not use JPEG
2134 --without-ldap do not use LDAP
2135 --without-mpg123 do not use the mpg123 library
2136 --without-netapi do not use the Samba NetAPI library
2137 --without-openal do not use OpenAL
2138 --without-opencl do not use OpenCL
2139 --without-opengl do not use OpenGL
2140 --without-osmesa do not use the OSMesa library
2141 --without-oss do not use the OSS sound support
2142 --without-pcap do not use the Packet Capture library
2143 --without-png do not use PNG
2144 --without-pthread do not use the pthread library
2145 --without-sane do not use SANE (scanner support)
2146 --without-tiff do not use TIFF
2147 --without-v4l do not use v4l1 (v4l support)
2148 --without-xcomposite do not use the Xcomposite extension
2149 --without-xcursor do not use the Xcursor extension
2150 --without-xinerama do not use Xinerama (multi-monitor support)
2151 --without-xinput do not use the Xinput extension
2152 --without-xinput2 do not use the Xinput 2 extension
2153 --without-xml do not use XML
2154 --without-xrandr do not use Xrandr (resolution changes)
2155 --without-xrender do not use the Xrender extension
2156 --without-xshape do not use the Xshape extension
2157 --without-xshm do not use XShm (shared memory extension)
2158 --without-xslt do not use XSLT
2159 --without-xxf86vm do not use XFree video mode extension
2160 --without-zlib do not use Zlib (data compression)
2161 --with-wine-tools=DIR use Wine tools from directory DIR
2162 --with-wine64=DIR use the 64-bit Wine in DIR for a Wow64 build
2163 --with-x use the X Window System
2165 Some influential environment variables:
2166 CC C compiler command
2167 CFLAGS C compiler flags
2168 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2169 nonstandard directory <lib dir>
2170 LIBS libraries to pass to the linker, e.g. -l<library>
2171 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2172 you have headers in a nonstandard directory <include dir>
2173 CXX C++ compiler command
2174 CXXFLAGS C++ compiler flags
2175 CPP C preprocessor
2176 XMKMF Path to xmkmf, Makefile generator for X Window System
2177 XML2_CFLAGS C compiler flags for libxml-2.0, overriding pkg-config
2178 XML2_LIBS Linker flags for libxml-2.0, overriding pkg-config
2179 XSLT_CFLAGS C compiler flags for libxslt, overriding pkg-config
2180 XSLT_LIBS Linker flags for libxslt, overriding pkg-config
2181 DBUS_CFLAGS C compiler flags for dbus-1, overriding pkg-config
2182 DBUS_LIBS Linker flags for dbus-1, overriding pkg-config
2183 HAL_CFLAGS C compiler flags for hal, overriding pkg-config
2184 HAL_LIBS Linker flags for hal, overriding pkg-config
2185 GNUTLS_CFLAGS
2186 C compiler flags for gnutls, overriding pkg-config
2187 GNUTLS_LIBS Linker flags for gnutls, overriding pkg-config
2188 SANE_CFLAGS C compiler flags for libsane, overriding pkg-config
2189 SANE_LIBS Linker flags for libsane, overriding pkg-config
2190 GPHOTO2_CFLAGS
2191 C compiler flags for libgphoto2, overriding pkg-config
2192 GPHOTO2_LIBS
2193 Linker flags for libgphoto2, overriding pkg-config
2194 GPHOTO2_PORT_CFLAGS
2195 C compiler flags for libgphoto2_port, overriding pkg-config
2196 GPHOTO2_PORT_LIBS
2197 Linker flags for libgphoto2_port, overriding pkg-config
2198 LCMS2_CFLAGS
2199 C compiler flags for lcms2, overriding pkg-config
2200 LCMS2_LIBS Linker flags for lcms2, overriding pkg-config
2201 FREETYPE_CFLAGS
2202 C compiler flags for freetype2, overriding pkg-config
2203 FREETYPE_LIBS
2204 Linker flags for freetype2, overriding pkg-config
2205 GSTREAMER_CFLAGS
2206 C compiler flags for gstreamer-app-0.10, overriding pkg-config
2207 GSTREAMER_LIBS
2208 Linker flags for gstreamer-app-0.10, overriding pkg-config
2209 CAPI20_CFLAGS
2210 C compiler flags for capi20, overriding pkg-config
2211 CAPI20_LIBS Linker flags for capi20, overriding pkg-config
2212 FONTCONFIG_CFLAGS
2213 C compiler flags for fontconfig, overriding pkg-config
2214 FONTCONFIG_LIBS
2215 Linker flags for fontconfig, overriding pkg-config
2216 JPEG_CFLAGS C compiler flags for libjpeg, overriding pkg-config
2217 JPEG_LIBS Linker flags for libjpeg, overriding pkg-config
2218 PNG_CFLAGS C compiler flags for libpng, overriding pkg-config
2219 PNG_LIBS Linker flags for libpng, overriding pkg-config
2220 TIFF_CFLAGS C compiler flags for libtiff, overriding pkg-config
2221 TIFF_LIBS Linker flags for libtiff, overriding pkg-config
2222 MPG123_CFLAGS
2223 C compiler flags for libmpg123, overriding pkg-config
2224 MPG123_LIBS Linker flags for libmpg123, overriding pkg-config
2226 Use these variables to override the choices made by `configure' or to help
2227 it to find libraries and programs with nonstandard names/locations.
2229 Report bugs to <wine-devel@winehq.org>.
2230 Wine home page: <http://www.winehq.org>.
2231 _ACEOF
2232 ac_status=$?
2235 if test "$ac_init_help" = "recursive"; then
2236 # If there are subdirs, report their specific --help.
2237 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2238 test -d "$ac_dir" ||
2239 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2240 continue
2241 ac_builddir=.
2243 case "$ac_dir" in
2244 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2246 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2247 # A ".." for each directory in $ac_dir_suffix.
2248 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2249 case $ac_top_builddir_sub in
2250 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2251 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2252 esac ;;
2253 esac
2254 ac_abs_top_builddir=$ac_pwd
2255 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2256 # for backward compatibility:
2257 ac_top_builddir=$ac_top_build_prefix
2259 case $srcdir in
2260 .) # We are building in place.
2261 ac_srcdir=.
2262 ac_top_srcdir=$ac_top_builddir_sub
2263 ac_abs_top_srcdir=$ac_pwd ;;
2264 [\\/]* | ?:[\\/]* ) # Absolute name.
2265 ac_srcdir=$srcdir$ac_dir_suffix;
2266 ac_top_srcdir=$srcdir
2267 ac_abs_top_srcdir=$srcdir ;;
2268 *) # Relative name.
2269 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2270 ac_top_srcdir=$ac_top_build_prefix$srcdir
2271 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2272 esac
2273 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2275 cd "$ac_dir" || { ac_status=$?; continue; }
2276 # Check for guested configure.
2277 if test -f "$ac_srcdir/configure.gnu"; then
2278 echo &&
2279 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2280 elif test -f "$ac_srcdir/configure"; then
2281 echo &&
2282 $SHELL "$ac_srcdir/configure" --help=recursive
2283 else
2284 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2285 fi || ac_status=$?
2286 cd "$ac_pwd" || { ac_status=$?; break; }
2287 done
2290 test -n "$ac_init_help" && exit $ac_status
2291 if $ac_init_version; then
2292 cat <<\_ACEOF
2293 Wine configure 1.7.42
2294 generated by GNU Autoconf 2.69
2296 Copyright (C) 2012 Free Software Foundation, Inc.
2297 This configure script is free software; the Free Software Foundation
2298 gives unlimited permission to copy, distribute and modify it.
2299 _ACEOF
2300 exit
2303 ## ------------------------ ##
2304 ## Autoconf initialization. ##
2305 ## ------------------------ ##
2307 # ac_fn_c_try_compile LINENO
2308 # --------------------------
2309 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2310 ac_fn_c_try_compile ()
2312 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2313 rm -f conftest.$ac_objext
2314 if { { ac_try="$ac_compile"
2315 case "(($ac_try" in
2316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2317 *) ac_try_echo=$ac_try;;
2318 esac
2319 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2320 $as_echo "$ac_try_echo"; } >&5
2321 (eval "$ac_compile") 2>conftest.err
2322 ac_status=$?
2323 if test -s conftest.err; then
2324 grep -v '^ *+' conftest.err >conftest.er1
2325 cat conftest.er1 >&5
2326 mv -f conftest.er1 conftest.err
2328 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2329 test $ac_status = 0; } && {
2330 test -z "$ac_c_werror_flag" ||
2331 test ! -s conftest.err
2332 } && test -s conftest.$ac_objext; then :
2333 ac_retval=0
2334 else
2335 $as_echo "$as_me: failed program was:" >&5
2336 sed 's/^/| /' conftest.$ac_ext >&5
2338 ac_retval=1
2340 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2341 as_fn_set_status $ac_retval
2343 } # ac_fn_c_try_compile
2345 # ac_fn_cxx_try_compile LINENO
2346 # ----------------------------
2347 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2348 ac_fn_cxx_try_compile ()
2350 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2351 rm -f conftest.$ac_objext
2352 if { { ac_try="$ac_compile"
2353 case "(($ac_try" in
2354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2355 *) ac_try_echo=$ac_try;;
2356 esac
2357 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2358 $as_echo "$ac_try_echo"; } >&5
2359 (eval "$ac_compile") 2>conftest.err
2360 ac_status=$?
2361 if test -s conftest.err; then
2362 grep -v '^ *+' conftest.err >conftest.er1
2363 cat conftest.er1 >&5
2364 mv -f conftest.er1 conftest.err
2366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2367 test $ac_status = 0; } && {
2368 test -z "$ac_cxx_werror_flag" ||
2369 test ! -s conftest.err
2370 } && test -s conftest.$ac_objext; then :
2371 ac_retval=0
2372 else
2373 $as_echo "$as_me: failed program was:" >&5
2374 sed 's/^/| /' conftest.$ac_ext >&5
2376 ac_retval=1
2378 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2379 as_fn_set_status $ac_retval
2381 } # ac_fn_cxx_try_compile
2383 # ac_fn_c_try_link LINENO
2384 # -----------------------
2385 # Try to link conftest.$ac_ext, and return whether this succeeded.
2386 ac_fn_c_try_link ()
2388 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2389 rm -f conftest.$ac_objext conftest$ac_exeext
2390 if { { ac_try="$ac_link"
2391 case "(($ac_try" in
2392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2393 *) ac_try_echo=$ac_try;;
2394 esac
2395 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2396 $as_echo "$ac_try_echo"; } >&5
2397 (eval "$ac_link") 2>conftest.err
2398 ac_status=$?
2399 if test -s conftest.err; then
2400 grep -v '^ *+' conftest.err >conftest.er1
2401 cat conftest.er1 >&5
2402 mv -f conftest.er1 conftest.err
2404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2405 test $ac_status = 0; } && {
2406 test -z "$ac_c_werror_flag" ||
2407 test ! -s conftest.err
2408 } && test -s conftest$ac_exeext && {
2409 test "$cross_compiling" = yes ||
2410 test -x conftest$ac_exeext
2411 }; then :
2412 ac_retval=0
2413 else
2414 $as_echo "$as_me: failed program was:" >&5
2415 sed 's/^/| /' conftest.$ac_ext >&5
2417 ac_retval=1
2419 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2420 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2421 # interfere with the next link command; also delete a directory that is
2422 # left behind by Apple's compiler. We do this before executing the actions.
2423 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2424 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2425 as_fn_set_status $ac_retval
2427 } # ac_fn_c_try_link
2429 # ac_fn_c_try_cpp LINENO
2430 # ----------------------
2431 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2432 ac_fn_c_try_cpp ()
2434 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2435 if { { ac_try="$ac_cpp conftest.$ac_ext"
2436 case "(($ac_try" in
2437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2438 *) ac_try_echo=$ac_try;;
2439 esac
2440 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2441 $as_echo "$ac_try_echo"; } >&5
2442 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2443 ac_status=$?
2444 if test -s conftest.err; then
2445 grep -v '^ *+' conftest.err >conftest.er1
2446 cat conftest.er1 >&5
2447 mv -f conftest.er1 conftest.err
2449 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2450 test $ac_status = 0; } > conftest.i && {
2451 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2452 test ! -s conftest.err
2453 }; then :
2454 ac_retval=0
2455 else
2456 $as_echo "$as_me: failed program was:" >&5
2457 sed 's/^/| /' conftest.$ac_ext >&5
2459 ac_retval=1
2461 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2462 as_fn_set_status $ac_retval
2464 } # ac_fn_c_try_cpp
2466 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2467 # -------------------------------------------------------
2468 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2469 # the include files in INCLUDES and setting the cache variable VAR
2470 # accordingly.
2471 ac_fn_c_check_header_mongrel ()
2473 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2474 if eval \${$3+:} false; then :
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2476 $as_echo_n "checking for $2... " >&6; }
2477 if eval \${$3+:} false; then :
2478 $as_echo_n "(cached) " >&6
2480 eval ac_res=\$$3
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2482 $as_echo "$ac_res" >&6; }
2483 else
2484 # Is the header compilable?
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2486 $as_echo_n "checking $2 usability... " >&6; }
2487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2488 /* end confdefs.h. */
2490 #include <$2>
2491 _ACEOF
2492 if ac_fn_c_try_compile "$LINENO"; then :
2493 ac_header_compiler=yes
2494 else
2495 ac_header_compiler=no
2497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2499 $as_echo "$ac_header_compiler" >&6; }
2501 # Is the header present?
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2503 $as_echo_n "checking $2 presence... " >&6; }
2504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2505 /* end confdefs.h. */
2506 #include <$2>
2507 _ACEOF
2508 if ac_fn_c_try_cpp "$LINENO"; then :
2509 ac_header_preproc=yes
2510 else
2511 ac_header_preproc=no
2513 rm -f conftest.err conftest.i conftest.$ac_ext
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2515 $as_echo "$ac_header_preproc" >&6; }
2517 # So? What about this header?
2518 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2519 yes:no: )
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2521 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2523 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2525 no:yes:* )
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2527 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2529 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2531 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2533 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2535 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2536 ( $as_echo "## ------------------------------------ ##
2537 ## Report this to wine-devel@winehq.org ##
2538 ## ------------------------------------ ##"
2539 ) | sed "s/^/$as_me: WARNING: /" >&2
2541 esac
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2543 $as_echo_n "checking for $2... " >&6; }
2544 if eval \${$3+:} false; then :
2545 $as_echo_n "(cached) " >&6
2546 else
2547 eval "$3=\$ac_header_compiler"
2549 eval ac_res=\$$3
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2551 $as_echo "$ac_res" >&6; }
2553 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2555 } # ac_fn_c_check_header_mongrel
2557 # ac_fn_c_try_run LINENO
2558 # ----------------------
2559 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2560 # that executables *can* be run.
2561 ac_fn_c_try_run ()
2563 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2564 if { { ac_try="$ac_link"
2565 case "(($ac_try" in
2566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2567 *) ac_try_echo=$ac_try;;
2568 esac
2569 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2570 $as_echo "$ac_try_echo"; } >&5
2571 (eval "$ac_link") 2>&5
2572 ac_status=$?
2573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2574 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2575 { { case "(($ac_try" in
2576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2577 *) ac_try_echo=$ac_try;;
2578 esac
2579 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2580 $as_echo "$ac_try_echo"; } >&5
2581 (eval "$ac_try") 2>&5
2582 ac_status=$?
2583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2584 test $ac_status = 0; }; }; then :
2585 ac_retval=0
2586 else
2587 $as_echo "$as_me: program exited with status $ac_status" >&5
2588 $as_echo "$as_me: failed program was:" >&5
2589 sed 's/^/| /' conftest.$ac_ext >&5
2591 ac_retval=$ac_status
2593 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2594 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2595 as_fn_set_status $ac_retval
2597 } # ac_fn_c_try_run
2599 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2600 # -------------------------------------------------------
2601 # Tests whether HEADER exists and can be compiled using the include files in
2602 # INCLUDES, setting the cache variable VAR accordingly.
2603 ac_fn_c_check_header_compile ()
2605 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2607 $as_echo_n "checking for $2... " >&6; }
2608 if eval \${$3+:} false; then :
2609 $as_echo_n "(cached) " >&6
2610 else
2611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2612 /* end confdefs.h. */
2614 #include <$2>
2615 _ACEOF
2616 if ac_fn_c_try_compile "$LINENO"; then :
2617 eval "$3=yes"
2618 else
2619 eval "$3=no"
2621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2623 eval ac_res=\$$3
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2625 $as_echo "$ac_res" >&6; }
2626 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2628 } # ac_fn_c_check_header_compile
2630 # ac_fn_c_check_func LINENO FUNC VAR
2631 # ----------------------------------
2632 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2633 ac_fn_c_check_func ()
2635 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2637 $as_echo_n "checking for $2... " >&6; }
2638 if eval \${$3+:} false; then :
2639 $as_echo_n "(cached) " >&6
2640 else
2641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2642 /* end confdefs.h. */
2643 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2644 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2645 #define $2 innocuous_$2
2647 /* System header to define __stub macros and hopefully few prototypes,
2648 which can conflict with char $2 (); below.
2649 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2650 <limits.h> exists even on freestanding compilers. */
2652 #ifdef __STDC__
2653 # include <limits.h>
2654 #else
2655 # include <assert.h>
2656 #endif
2658 #undef $2
2660 /* Override any GCC internal prototype to avoid an error.
2661 Use char because int might match the return type of a GCC
2662 builtin and then its argument prototype would still apply. */
2663 #ifdef __cplusplus
2664 extern "C"
2665 #endif
2666 char $2 ();
2667 /* The GNU C library defines this for functions which it implements
2668 to always fail with ENOSYS. Some functions are actually named
2669 something starting with __ and the normal name is an alias. */
2670 #if defined __stub_$2 || defined __stub___$2
2671 choke me
2672 #endif
2675 main ()
2677 return $2 ();
2679 return 0;
2681 _ACEOF
2682 if ac_fn_c_try_link "$LINENO"; then :
2683 eval "$3=yes"
2684 else
2685 eval "$3=no"
2687 rm -f core conftest.err conftest.$ac_objext \
2688 conftest$ac_exeext conftest.$ac_ext
2690 eval ac_res=\$$3
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2692 $as_echo "$ac_res" >&6; }
2693 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2695 } # ac_fn_c_check_func
2697 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2698 # ----------------------------------------------------
2699 # Tries to find if the field MEMBER exists in type AGGR, after including
2700 # INCLUDES, setting cache variable VAR accordingly.
2701 ac_fn_c_check_member ()
2703 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2705 $as_echo_n "checking for $2.$3... " >&6; }
2706 if eval \${$4+:} false; then :
2707 $as_echo_n "(cached) " >&6
2708 else
2709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2710 /* end confdefs.h. */
2713 main ()
2715 static $2 ac_aggr;
2716 if (ac_aggr.$3)
2717 return 0;
2719 return 0;
2721 _ACEOF
2722 if ac_fn_c_try_compile "$LINENO"; then :
2723 eval "$4=yes"
2724 else
2725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2726 /* end confdefs.h. */
2729 main ()
2731 static $2 ac_aggr;
2732 if (sizeof ac_aggr.$3)
2733 return 0;
2735 return 0;
2737 _ACEOF
2738 if ac_fn_c_try_compile "$LINENO"; then :
2739 eval "$4=yes"
2740 else
2741 eval "$4=no"
2743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2747 eval ac_res=\$$4
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2749 $as_echo "$ac_res" >&6; }
2750 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2752 } # ac_fn_c_check_member
2754 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2755 # -------------------------------------------
2756 # Tests whether TYPE exists after having included INCLUDES, setting cache
2757 # variable VAR accordingly.
2758 ac_fn_c_check_type ()
2760 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2762 $as_echo_n "checking for $2... " >&6; }
2763 if eval \${$3+:} false; then :
2764 $as_echo_n "(cached) " >&6
2765 else
2766 eval "$3=no"
2767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2768 /* end confdefs.h. */
2771 main ()
2773 if (sizeof ($2))
2774 return 0;
2776 return 0;
2778 _ACEOF
2779 if ac_fn_c_try_compile "$LINENO"; then :
2780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2781 /* end confdefs.h. */
2784 main ()
2786 if (sizeof (($2)))
2787 return 0;
2789 return 0;
2791 _ACEOF
2792 if ac_fn_c_try_compile "$LINENO"; then :
2794 else
2795 eval "$3=yes"
2797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2801 eval ac_res=\$$3
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2803 $as_echo "$ac_res" >&6; }
2804 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2806 } # ac_fn_c_check_type
2807 cat >config.log <<_ACEOF
2808 This file contains any messages produced by compilers while
2809 running configure, to aid debugging if configure makes a mistake.
2811 It was created by Wine $as_me 1.7.42, which was
2812 generated by GNU Autoconf 2.69. Invocation command line was
2814 $ $0 $@
2816 _ACEOF
2817 exec 5>>config.log
2819 cat <<_ASUNAME
2820 ## --------- ##
2821 ## Platform. ##
2822 ## --------- ##
2824 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2825 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2826 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2827 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2828 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2830 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2831 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2833 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2834 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2835 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2836 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2837 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2838 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2839 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2841 _ASUNAME
2843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2844 for as_dir in $PATH
2846 IFS=$as_save_IFS
2847 test -z "$as_dir" && as_dir=.
2848 $as_echo "PATH: $as_dir"
2849 done
2850 IFS=$as_save_IFS
2852 } >&5
2854 cat >&5 <<_ACEOF
2857 ## ----------- ##
2858 ## Core tests. ##
2859 ## ----------- ##
2861 _ACEOF
2864 # Keep a trace of the command line.
2865 # Strip out --no-create and --no-recursion so they do not pile up.
2866 # Strip out --silent because we don't want to record it for future runs.
2867 # Also quote any args containing shell meta-characters.
2868 # Make two passes to allow for proper duplicate-argument suppression.
2869 ac_configure_args=
2870 ac_configure_args0=
2871 ac_configure_args1=
2872 ac_must_keep_next=false
2873 for ac_pass in 1 2
2875 for ac_arg
2877 case $ac_arg in
2878 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2879 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2880 | -silent | --silent | --silen | --sile | --sil)
2881 continue ;;
2882 *\'*)
2883 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2884 esac
2885 case $ac_pass in
2886 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2888 as_fn_append ac_configure_args1 " '$ac_arg'"
2889 if test $ac_must_keep_next = true; then
2890 ac_must_keep_next=false # Got value, back to normal.
2891 else
2892 case $ac_arg in
2893 *=* | --config-cache | -C | -disable-* | --disable-* \
2894 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2895 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2896 | -with-* | --with-* | -without-* | --without-* | --x)
2897 case "$ac_configure_args0 " in
2898 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2899 esac
2901 -* ) ac_must_keep_next=true ;;
2902 esac
2904 as_fn_append ac_configure_args " '$ac_arg'"
2906 esac
2907 done
2908 done
2909 { ac_configure_args0=; unset ac_configure_args0;}
2910 { ac_configure_args1=; unset ac_configure_args1;}
2912 # When interrupted or exit'd, cleanup temporary files, and complete
2913 # config.log. We remove comments because anyway the quotes in there
2914 # would cause problems or look ugly.
2915 # WARNING: Use '\'' to represent an apostrophe within the trap.
2916 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2917 trap 'exit_status=$?
2918 # Save into config.log some information that might help in debugging.
2920 echo
2922 $as_echo "## ---------------- ##
2923 ## Cache variables. ##
2924 ## ---------------- ##"
2925 echo
2926 # The following way of writing the cache mishandles newlines in values,
2928 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2929 eval ac_val=\$$ac_var
2930 case $ac_val in #(
2931 *${as_nl}*)
2932 case $ac_var in #(
2933 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2934 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2935 esac
2936 case $ac_var in #(
2937 _ | IFS | as_nl) ;; #(
2938 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2939 *) { eval $ac_var=; unset $ac_var;} ;;
2940 esac ;;
2941 esac
2942 done
2943 (set) 2>&1 |
2944 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2945 *${as_nl}ac_space=\ *)
2946 sed -n \
2947 "s/'\''/'\''\\\\'\'''\''/g;
2948 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2949 ;; #(
2951 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2953 esac |
2954 sort
2956 echo
2958 $as_echo "## ----------------- ##
2959 ## Output variables. ##
2960 ## ----------------- ##"
2961 echo
2962 for ac_var in $ac_subst_vars
2964 eval ac_val=\$$ac_var
2965 case $ac_val in
2966 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2967 esac
2968 $as_echo "$ac_var='\''$ac_val'\''"
2969 done | sort
2970 echo
2972 if test -n "$ac_subst_files"; then
2973 $as_echo "## ------------------- ##
2974 ## File substitutions. ##
2975 ## ------------------- ##"
2976 echo
2977 for ac_var in $ac_subst_files
2979 eval ac_val=\$$ac_var
2980 case $ac_val in
2981 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2982 esac
2983 $as_echo "$ac_var='\''$ac_val'\''"
2984 done | sort
2985 echo
2988 if test -s confdefs.h; then
2989 $as_echo "## ----------- ##
2990 ## confdefs.h. ##
2991 ## ----------- ##"
2992 echo
2993 cat confdefs.h
2994 echo
2996 test "$ac_signal" != 0 &&
2997 $as_echo "$as_me: caught signal $ac_signal"
2998 $as_echo "$as_me: exit $exit_status"
2999 } >&5
3000 rm -f core *.core core.conftest.* &&
3001 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3002 exit $exit_status
3004 for ac_signal in 1 2 13 15; do
3005 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3006 done
3007 ac_signal=0
3009 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3010 rm -f -r conftest* confdefs.h
3012 $as_echo "/* confdefs.h */" > confdefs.h
3014 # Predefined preprocessor variables.
3016 cat >>confdefs.h <<_ACEOF
3017 #define PACKAGE_NAME "$PACKAGE_NAME"
3018 _ACEOF
3020 cat >>confdefs.h <<_ACEOF
3021 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3022 _ACEOF
3024 cat >>confdefs.h <<_ACEOF
3025 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3026 _ACEOF
3028 cat >>confdefs.h <<_ACEOF
3029 #define PACKAGE_STRING "$PACKAGE_STRING"
3030 _ACEOF
3032 cat >>confdefs.h <<_ACEOF
3033 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3034 _ACEOF
3036 cat >>confdefs.h <<_ACEOF
3037 #define PACKAGE_URL "$PACKAGE_URL"
3038 _ACEOF
3041 # Let the site file select an alternate cache file if it wants to.
3042 # Prefer an explicitly selected file to automatically selected ones.
3043 ac_site_file1=NONE
3044 ac_site_file2=NONE
3045 if test -n "$CONFIG_SITE"; then
3046 # We do not want a PATH search for config.site.
3047 case $CONFIG_SITE in #((
3048 -*) ac_site_file1=./$CONFIG_SITE;;
3049 */*) ac_site_file1=$CONFIG_SITE;;
3050 *) ac_site_file1=./$CONFIG_SITE;;
3051 esac
3052 elif test "x$prefix" != xNONE; then
3053 ac_site_file1=$prefix/share/config.site
3054 ac_site_file2=$prefix/etc/config.site
3055 else
3056 ac_site_file1=$ac_default_prefix/share/config.site
3057 ac_site_file2=$ac_default_prefix/etc/config.site
3059 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3061 test "x$ac_site_file" = xNONE && continue
3062 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3064 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3065 sed 's/^/| /' "$ac_site_file" >&5
3066 . "$ac_site_file" \
3067 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3068 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3069 as_fn_error $? "failed to load site script $ac_site_file
3070 See \`config.log' for more details" "$LINENO" 5; }
3072 done
3074 if test -r "$cache_file"; then
3075 # Some versions of bash will fail to source /dev/null (special files
3076 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3077 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3079 $as_echo "$as_me: loading cache $cache_file" >&6;}
3080 case $cache_file in
3081 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3082 *) . "./$cache_file";;
3083 esac
3085 else
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3087 $as_echo "$as_me: creating cache $cache_file" >&6;}
3088 >$cache_file
3091 # Check that the precious variables saved in the cache have kept the same
3092 # value.
3093 ac_cache_corrupted=false
3094 for ac_var in $ac_precious_vars; do
3095 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3096 eval ac_new_set=\$ac_env_${ac_var}_set
3097 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3098 eval ac_new_val=\$ac_env_${ac_var}_value
3099 case $ac_old_set,$ac_new_set in
3100 set,)
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3102 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3103 ac_cache_corrupted=: ;;
3104 ,set)
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3106 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3107 ac_cache_corrupted=: ;;
3108 ,);;
3110 if test "x$ac_old_val" != "x$ac_new_val"; then
3111 # differences in whitespace do not lead to failure.
3112 ac_old_val_w=`echo x $ac_old_val`
3113 ac_new_val_w=`echo x $ac_new_val`
3114 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3116 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3117 ac_cache_corrupted=:
3118 else
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3120 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3121 eval $ac_var=\$ac_old_val
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3124 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3126 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3127 fi;;
3128 esac
3129 # Pass precious variables to config.status.
3130 if test "$ac_new_set" = set; then
3131 case $ac_new_val in
3132 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3133 *) ac_arg=$ac_var=$ac_new_val ;;
3134 esac
3135 case " $ac_configure_args " in
3136 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3137 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3138 esac
3140 done
3141 if $ac_cache_corrupted; then
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3143 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3145 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3146 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3148 ## -------------------- ##
3149 ## Main body of script. ##
3150 ## -------------------- ##
3152 ac_ext=c
3153 ac_cpp='$CPP $CPPFLAGS'
3154 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3155 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3156 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3160 ac_config_headers="$ac_config_headers include/config.h"
3162 ac_aux_dir=
3163 for ac_dir in tools "$srcdir"/tools; do
3164 if test -f "$ac_dir/install-sh"; then
3165 ac_aux_dir=$ac_dir
3166 ac_install_sh="$ac_aux_dir/install-sh -c"
3167 break
3168 elif test -f "$ac_dir/install.sh"; then
3169 ac_aux_dir=$ac_dir
3170 ac_install_sh="$ac_aux_dir/install.sh -c"
3171 break
3172 elif test -f "$ac_dir/shtool"; then
3173 ac_aux_dir=$ac_dir
3174 ac_install_sh="$ac_aux_dir/shtool install -c"
3175 break
3177 done
3178 if test -z "$ac_aux_dir"; then
3179 as_fn_error $? "cannot find install-sh, install.sh, or shtool in tools \"$srcdir\"/tools" "$LINENO" 5
3182 # These three variables are undocumented and unsupported,
3183 # and are intended to be withdrawn in a future Autoconf release.
3184 # They can cause serious problems if a builder's source tree is in a directory
3185 # whose full name contains unusual characters.
3186 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3187 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3188 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3192 libwine_version="1.0"
3196 # Check whether --enable-win16 was given.
3197 if test "${enable_win16+set}" = set; then :
3198 enableval=$enable_win16;
3201 # Check whether --enable-win64 was given.
3202 if test "${enable_win64+set}" = set; then :
3203 enableval=$enable_win64;
3206 # Check whether --enable-tests was given.
3207 if test "${enable_tests+set}" = set; then :
3208 enableval=$enable_tests;
3211 # Check whether --enable-maintainer-mode was given.
3212 if test "${enable_maintainer_mode+set}" = set; then :
3213 enableval=$enable_maintainer_mode;
3218 # Check whether --with-alsa was given.
3219 if test "${with_alsa+set}" = set; then :
3220 withval=$with_alsa; if test "x$withval" = "xno"; then ac_cv_header_sys_asoundlib_h=no; ac_cv_header_alsa_asoundlib_h=no; fi
3224 # Check whether --with-capi was given.
3225 if test "${with_capi+set}" = set; then :
3226 withval=$with_capi;
3230 # Check whether --with-cms was given.
3231 if test "${with_cms+set}" = set; then :
3232 withval=$with_cms;
3236 # Check whether --with-coreaudio was given.
3237 if test "${with_coreaudio+set}" = set; then :
3238 withval=$with_coreaudio; if test "x$withval" = "xno"; then ac_cv_header_CoreAudio_CoreAudio_h=no; fi
3242 # Check whether --with-cups was given.
3243 if test "${with_cups+set}" = set; then :
3244 withval=$with_cups;
3248 # Check whether --with-curses was given.
3249 if test "${with_curses+set}" = set; then :
3250 withval=$with_curses; if test "x$withval" = "xno"; then ac_cv_header_ncurses_h=no; ac_cv_header_curses_h=no; fi
3254 # Check whether --with-dbus was given.
3255 if test "${with_dbus+set}" = set; then :
3256 withval=$with_dbus;
3260 # Check whether --with-fontconfig was given.
3261 if test "${with_fontconfig+set}" = set; then :
3262 withval=$with_fontconfig;
3266 # Check whether --with-freetype was given.
3267 if test "${with_freetype+set}" = set; then :
3268 withval=$with_freetype;
3272 # Check whether --with-gettext was given.
3273 if test "${with_gettext+set}" = set; then :
3274 withval=$with_gettext;
3278 # Check whether --with-gettextpo was given.
3279 if test "${with_gettextpo+set}" = set; then :
3280 withval=$with_gettextpo; if test "x$withval" = "xno"; then ac_cv_header_gettext_po_h=no; fi
3284 # Check whether --with-gphoto was given.
3285 if test "${with_gphoto+set}" = set; then :
3286 withval=$with_gphoto;
3290 # Check whether --with-glu was given.
3291 if test "${with_glu+set}" = set; then :
3292 withval=$with_glu;
3296 # Check whether --with-gnutls was given.
3297 if test "${with_gnutls+set}" = set; then :
3298 withval=$with_gnutls;
3302 # Check whether --with-gsm was given.
3303 if test "${with_gsm+set}" = set; then :
3304 withval=$with_gsm; if test "x$withval" = "xno"; then ac_cv_header_gsm_h=no; ac_cv_header_gsm_gsm_h=no; fi
3308 # Check whether --with-gstreamer was given.
3309 if test "${with_gstreamer+set}" = set; then :
3310 withval=$with_gstreamer;
3314 # Check whether --with-hal was given.
3315 if test "${with_hal+set}" = set; then :
3316 withval=$with_hal;
3320 # Check whether --with-jpeg was given.
3321 if test "${with_jpeg+set}" = set; then :
3322 withval=$with_jpeg;
3326 # Check whether --with-ldap was given.
3327 if test "${with_ldap+set}" = set; then :
3328 withval=$with_ldap; if test "x$withval" = "xno"; then ac_cv_header_ldap_h=no; ac_cv_header_lber_h=no; fi
3332 # Check whether --with-mpg123 was given.
3333 if test "${with_mpg123+set}" = set; then :
3334 withval=$with_mpg123;
3338 # Check whether --with-netapi was given.
3339 if test "${with_netapi+set}" = set; then :
3340 withval=$with_netapi;
3344 # Check whether --with-openal was given.
3345 if test "${with_openal+set}" = set; then :
3346 withval=$with_openal; if test "x$withval" = "xno"; then ac_cv_header_AL_al_h=no; ac_cv_header_OpenAL_al_h=no; fi
3350 # Check whether --with-opencl was given.
3351 if test "${with_opencl+set}" = set; then :
3352 withval=$with_opencl; if test "x$withval" = "xno"; then ac_cv_header_CL_cl_h=no; ac_cv_header_OpenCL_opencl_h=no; fi
3356 # Check whether --with-opengl was given.
3357 if test "${with_opengl+set}" = set; then :
3358 withval=$with_opengl;
3362 # Check whether --with-osmesa was given.
3363 if test "${with_osmesa+set}" = set; then :
3364 withval=$with_osmesa;
3368 # Check whether --with-oss was given.
3369 if test "${with_oss+set}" = set; then :
3370 withval=$with_oss;
3374 # Check whether --with-pcap was given.
3375 if test "${with_pcap+set}" = set; then :
3376 withval=$with_pcap; if test "x$withval" = "xno"; then ac_cv_header_pcap_pcap_h=no; fi
3380 # Check whether --with-png was given.
3381 if test "${with_png+set}" = set; then :
3382 withval=$with_png;
3386 # Check whether --with-pthread was given.
3387 if test "${with_pthread+set}" = set; then :
3388 withval=$with_pthread; if test "x$withval" = "xno"; then ac_cv_header_pthread_h=no; fi
3392 # Check whether --with-sane was given.
3393 if test "${with_sane+set}" = set; then :
3394 withval=$with_sane;
3398 # Check whether --with-tiff was given.
3399 if test "${with_tiff+set}" = set; then :
3400 withval=$with_tiff;
3404 # Check whether --with-v4l was given.
3405 if test "${with_v4l+set}" = set; then :
3406 withval=$with_v4l;
3410 # Check whether --with-xcomposite was given.
3411 if test "${with_xcomposite+set}" = set; then :
3412 withval=$with_xcomposite; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xcomposite_h=no; fi
3416 # Check whether --with-xcursor was given.
3417 if test "${with_xcursor+set}" = set; then :
3418 withval=$with_xcursor; if test "x$withval" = "xno"; then ac_cv_header_X11_Xcursor_Xcursor_h=no; fi
3422 # Check whether --with-xinerama was given.
3423 if test "${with_xinerama+set}" = set; then :
3424 withval=$with_xinerama; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xinerama_h=no; fi
3428 # Check whether --with-xinput was given.
3429 if test "${with_xinput+set}" = set; then :
3430 withval=$with_xinput; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput_h=no; fi
3434 # Check whether --with-xinput2 was given.
3435 if test "${with_xinput2+set}" = set; then :
3436 withval=$with_xinput2; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput2_h=no; fi
3440 # Check whether --with-xml was given.
3441 if test "${with_xml+set}" = set; then :
3442 withval=$with_xml;
3446 # Check whether --with-xrandr was given.
3447 if test "${with_xrandr+set}" = set; then :
3448 withval=$with_xrandr; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrandr_h=no; fi
3452 # Check whether --with-xrender was given.
3453 if test "${with_xrender+set}" = set; then :
3454 withval=$with_xrender; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrender_h=no; fi
3458 # Check whether --with-xshape was given.
3459 if test "${with_xshape+set}" = set; then :
3460 withval=$with_xshape; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_shape_h=no; fi
3464 # Check whether --with-xshm was given.
3465 if test "${with_xshm+set}" = set; then :
3466 withval=$with_xshm; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XShm_h=no; fi
3470 # Check whether --with-xslt was given.
3471 if test "${with_xslt+set}" = set; then :
3472 withval=$with_xslt;
3476 # Check whether --with-xxf86vm was given.
3477 if test "${with_xxf86vm+set}" = set; then :
3478 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
3482 # Check whether --with-zlib was given.
3483 if test "${with_zlib+set}" = set; then :
3484 withval=$with_zlib; if test "x$withval" = "xno"; then ac_cv_header_zlib_h=no; fi
3489 # Check whether --with-wine-tools was given.
3490 if test "${with_wine_tools+set}" = set; then :
3491 withval=$with_wine_tools;
3495 # Check whether --with-wine64 was given.
3496 if test "${with_wine64+set}" = set; then :
3497 withval=$with_wine64;
3501 # Make sure we can run config.sub.
3502 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3503 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3506 $as_echo_n "checking build system type... " >&6; }
3507 if ${ac_cv_build+:} false; then :
3508 $as_echo_n "(cached) " >&6
3509 else
3510 ac_build_alias=$build_alias
3511 test "x$ac_build_alias" = x &&
3512 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3513 test "x$ac_build_alias" = x &&
3514 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3515 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3516 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3520 $as_echo "$ac_cv_build" >&6; }
3521 case $ac_cv_build in
3522 *-*-*) ;;
3523 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3524 esac
3525 build=$ac_cv_build
3526 ac_save_IFS=$IFS; IFS='-'
3527 set x $ac_cv_build
3528 shift
3529 build_cpu=$1
3530 build_vendor=$2
3531 shift; shift
3532 # Remember, the first character of IFS is used to create $*,
3533 # except with old shells:
3534 build_os=$*
3535 IFS=$ac_save_IFS
3536 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3540 $as_echo_n "checking host system type... " >&6; }
3541 if ${ac_cv_host+:} false; then :
3542 $as_echo_n "(cached) " >&6
3543 else
3544 if test "x$host_alias" = x; then
3545 ac_cv_host=$ac_cv_build
3546 else
3547 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3548 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3553 $as_echo "$ac_cv_host" >&6; }
3554 case $ac_cv_host in
3555 *-*-*) ;;
3556 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3557 esac
3558 host=$ac_cv_host
3559 ac_save_IFS=$IFS; IFS='-'
3560 set x $ac_cv_host
3561 shift
3562 host_cpu=$1
3563 host_vendor=$2
3564 shift; shift
3565 # Remember, the first character of IFS is used to create $*,
3566 # except with old shells:
3567 host_os=$*
3568 IFS=$ac_save_IFS
3569 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3573 case "$srcdir" in
3574 .) ;;
3575 *) if test -f "$srcdir/Makefile" -o -f "$srcdir/include/config.h"; then
3576 as_fn_error $? "you are building out of the source tree, but the source tree contains object files.
3577 You need to run 'make distclean' in the source tree first." "$LINENO" 5
3578 fi ;;
3579 esac
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3583 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3584 set x ${MAKE-make}
3585 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3586 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3587 $as_echo_n "(cached) " >&6
3588 else
3589 cat >conftest.make <<\_ACEOF
3590 SHELL = /bin/sh
3591 all:
3592 @echo '@@@%%%=$(MAKE)=@@@%%%'
3593 _ACEOF
3594 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3595 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3596 *@@@%%%=?*=@@@%%%*)
3597 eval ac_cv_prog_make_${ac_make}_set=yes;;
3599 eval ac_cv_prog_make_${ac_make}_set=no;;
3600 esac
3601 rm -f conftest.make
3603 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3605 $as_echo "yes" >&6; }
3606 SET_MAKE=
3607 else
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3609 $as_echo "no" >&6; }
3610 SET_MAKE="MAKE=${MAKE-make}"
3613 ac_ext=c
3614 ac_cpp='$CPP $CPPFLAGS'
3615 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3616 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3617 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3618 if test -n "$ac_tool_prefix"; then
3619 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3620 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3622 $as_echo_n "checking for $ac_word... " >&6; }
3623 if ${ac_cv_prog_CC+:} false; then :
3624 $as_echo_n "(cached) " >&6
3625 else
3626 if test -n "$CC"; then
3627 ac_cv_prog_CC="$CC" # Let the user override the test.
3628 else
3629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3630 for as_dir in $PATH
3632 IFS=$as_save_IFS
3633 test -z "$as_dir" && as_dir=.
3634 for ac_exec_ext in '' $ac_executable_extensions; do
3635 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3636 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3638 break 2
3640 done
3641 done
3642 IFS=$as_save_IFS
3646 CC=$ac_cv_prog_CC
3647 if test -n "$CC"; then
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3649 $as_echo "$CC" >&6; }
3650 else
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3652 $as_echo "no" >&6; }
3657 if test -z "$ac_cv_prog_CC"; then
3658 ac_ct_CC=$CC
3659 # Extract the first word of "gcc", so it can be a program name with args.
3660 set dummy gcc; ac_word=$2
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3662 $as_echo_n "checking for $ac_word... " >&6; }
3663 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3664 $as_echo_n "(cached) " >&6
3665 else
3666 if test -n "$ac_ct_CC"; then
3667 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3668 else
3669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3670 for as_dir in $PATH
3672 IFS=$as_save_IFS
3673 test -z "$as_dir" && as_dir=.
3674 for ac_exec_ext in '' $ac_executable_extensions; do
3675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3676 ac_cv_prog_ac_ct_CC="gcc"
3677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3678 break 2
3680 done
3681 done
3682 IFS=$as_save_IFS
3686 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3687 if test -n "$ac_ct_CC"; then
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3689 $as_echo "$ac_ct_CC" >&6; }
3690 else
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3692 $as_echo "no" >&6; }
3695 if test "x$ac_ct_CC" = x; then
3696 CC=""
3697 else
3698 case $cross_compiling:$ac_tool_warned in
3699 yes:)
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3701 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3702 ac_tool_warned=yes ;;
3703 esac
3704 CC=$ac_ct_CC
3706 else
3707 CC="$ac_cv_prog_CC"
3710 if test -z "$CC"; then
3711 if test -n "$ac_tool_prefix"; then
3712 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3713 set dummy ${ac_tool_prefix}cc; ac_word=$2
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3715 $as_echo_n "checking for $ac_word... " >&6; }
3716 if ${ac_cv_prog_CC+:} false; then :
3717 $as_echo_n "(cached) " >&6
3718 else
3719 if test -n "$CC"; then
3720 ac_cv_prog_CC="$CC" # Let the user override the test.
3721 else
3722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3723 for as_dir in $PATH
3725 IFS=$as_save_IFS
3726 test -z "$as_dir" && as_dir=.
3727 for ac_exec_ext in '' $ac_executable_extensions; do
3728 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3729 ac_cv_prog_CC="${ac_tool_prefix}cc"
3730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3731 break 2
3733 done
3734 done
3735 IFS=$as_save_IFS
3739 CC=$ac_cv_prog_CC
3740 if test -n "$CC"; then
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3742 $as_echo "$CC" >&6; }
3743 else
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3745 $as_echo "no" >&6; }
3751 if test -z "$CC"; then
3752 # Extract the first word of "cc", so it can be a program name with args.
3753 set dummy cc; ac_word=$2
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3755 $as_echo_n "checking for $ac_word... " >&6; }
3756 if ${ac_cv_prog_CC+:} false; then :
3757 $as_echo_n "(cached) " >&6
3758 else
3759 if test -n "$CC"; then
3760 ac_cv_prog_CC="$CC" # Let the user override the test.
3761 else
3762 ac_prog_rejected=no
3763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3764 for as_dir in $PATH
3766 IFS=$as_save_IFS
3767 test -z "$as_dir" && as_dir=.
3768 for ac_exec_ext in '' $ac_executable_extensions; do
3769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3770 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3771 ac_prog_rejected=yes
3772 continue
3774 ac_cv_prog_CC="cc"
3775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3776 break 2
3778 done
3779 done
3780 IFS=$as_save_IFS
3782 if test $ac_prog_rejected = yes; then
3783 # We found a bogon in the path, so make sure we never use it.
3784 set dummy $ac_cv_prog_CC
3785 shift
3786 if test $# != 0; then
3787 # We chose a different compiler from the bogus one.
3788 # However, it has the same basename, so the bogon will be chosen
3789 # first if we set CC to just the basename; use the full file name.
3790 shift
3791 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3796 CC=$ac_cv_prog_CC
3797 if test -n "$CC"; then
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3799 $as_echo "$CC" >&6; }
3800 else
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3802 $as_echo "no" >&6; }
3807 if test -z "$CC"; then
3808 if test -n "$ac_tool_prefix"; then
3809 for ac_prog in cl.exe
3811 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3812 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3814 $as_echo_n "checking for $ac_word... " >&6; }
3815 if ${ac_cv_prog_CC+:} false; then :
3816 $as_echo_n "(cached) " >&6
3817 else
3818 if test -n "$CC"; then
3819 ac_cv_prog_CC="$CC" # Let the user override the test.
3820 else
3821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3822 for as_dir in $PATH
3824 IFS=$as_save_IFS
3825 test -z "$as_dir" && as_dir=.
3826 for ac_exec_ext in '' $ac_executable_extensions; do
3827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3828 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3830 break 2
3832 done
3833 done
3834 IFS=$as_save_IFS
3838 CC=$ac_cv_prog_CC
3839 if test -n "$CC"; then
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3841 $as_echo "$CC" >&6; }
3842 else
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3844 $as_echo "no" >&6; }
3848 test -n "$CC" && break
3849 done
3851 if test -z "$CC"; then
3852 ac_ct_CC=$CC
3853 for ac_prog in cl.exe
3855 # Extract the first word of "$ac_prog", so it can be a program name with args.
3856 set dummy $ac_prog; ac_word=$2
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3858 $as_echo_n "checking for $ac_word... " >&6; }
3859 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3860 $as_echo_n "(cached) " >&6
3861 else
3862 if test -n "$ac_ct_CC"; then
3863 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3864 else
3865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3866 for as_dir in $PATH
3868 IFS=$as_save_IFS
3869 test -z "$as_dir" && as_dir=.
3870 for ac_exec_ext in '' $ac_executable_extensions; do
3871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3872 ac_cv_prog_ac_ct_CC="$ac_prog"
3873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3874 break 2
3876 done
3877 done
3878 IFS=$as_save_IFS
3882 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3883 if test -n "$ac_ct_CC"; then
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3885 $as_echo "$ac_ct_CC" >&6; }
3886 else
3887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3888 $as_echo "no" >&6; }
3892 test -n "$ac_ct_CC" && break
3893 done
3895 if test "x$ac_ct_CC" = x; then
3896 CC=""
3897 else
3898 case $cross_compiling:$ac_tool_warned in
3899 yes:)
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3901 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3902 ac_tool_warned=yes ;;
3903 esac
3904 CC=$ac_ct_CC
3911 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3912 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3913 as_fn_error $? "no acceptable C compiler found in \$PATH
3914 See \`config.log' for more details" "$LINENO" 5; }
3916 # Provide some information about the compiler.
3917 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3918 set X $ac_compile
3919 ac_compiler=$2
3920 for ac_option in --version -v -V -qversion; do
3921 { { ac_try="$ac_compiler $ac_option >&5"
3922 case "(($ac_try" in
3923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3924 *) ac_try_echo=$ac_try;;
3925 esac
3926 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3927 $as_echo "$ac_try_echo"; } >&5
3928 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3929 ac_status=$?
3930 if test -s conftest.err; then
3931 sed '10a\
3932 ... rest of stderr output deleted ...
3933 10q' conftest.err >conftest.er1
3934 cat conftest.er1 >&5
3936 rm -f conftest.er1 conftest.err
3937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3938 test $ac_status = 0; }
3939 done
3941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3942 /* end confdefs.h. */
3945 main ()
3949 return 0;
3951 _ACEOF
3952 ac_clean_files_save=$ac_clean_files
3953 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3954 # Try to create an executable without -o first, disregard a.out.
3955 # It will help us diagnose broken compilers, and finding out an intuition
3956 # of exeext.
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3958 $as_echo_n "checking whether the C compiler works... " >&6; }
3959 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3961 # The possible output files:
3962 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3964 ac_rmfiles=
3965 for ac_file in $ac_files
3967 case $ac_file in
3968 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3969 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3970 esac
3971 done
3972 rm -f $ac_rmfiles
3974 if { { ac_try="$ac_link_default"
3975 case "(($ac_try" in
3976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3977 *) ac_try_echo=$ac_try;;
3978 esac
3979 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3980 $as_echo "$ac_try_echo"; } >&5
3981 (eval "$ac_link_default") 2>&5
3982 ac_status=$?
3983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3984 test $ac_status = 0; }; then :
3985 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3986 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3987 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3988 # so that the user can short-circuit this test for compilers unknown to
3989 # Autoconf.
3990 for ac_file in $ac_files ''
3992 test -f "$ac_file" || continue
3993 case $ac_file in
3994 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3996 [ab].out )
3997 # We found the default executable, but exeext='' is most
3998 # certainly right.
3999 break;;
4000 *.* )
4001 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4002 then :; else
4003 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4005 # We set ac_cv_exeext here because the later test for it is not
4006 # safe: cross compilers may not add the suffix if given an `-o'
4007 # argument, so we may need to know it at that point already.
4008 # Even if this section looks crufty: it has the advantage of
4009 # actually working.
4010 break;;
4012 break;;
4013 esac
4014 done
4015 test "$ac_cv_exeext" = no && ac_cv_exeext=
4017 else
4018 ac_file=''
4020 if test -z "$ac_file"; then :
4021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4022 $as_echo "no" >&6; }
4023 $as_echo "$as_me: failed program was:" >&5
4024 sed 's/^/| /' conftest.$ac_ext >&5
4026 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4027 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4028 as_fn_error 77 "C compiler cannot create executables
4029 See \`config.log' for more details" "$LINENO" 5; }
4030 else
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4032 $as_echo "yes" >&6; }
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4035 $as_echo_n "checking for C compiler default output file name... " >&6; }
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4037 $as_echo "$ac_file" >&6; }
4038 ac_exeext=$ac_cv_exeext
4040 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4041 ac_clean_files=$ac_clean_files_save
4042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4043 $as_echo_n "checking for suffix of executables... " >&6; }
4044 if { { ac_try="$ac_link"
4045 case "(($ac_try" in
4046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4047 *) ac_try_echo=$ac_try;;
4048 esac
4049 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4050 $as_echo "$ac_try_echo"; } >&5
4051 (eval "$ac_link") 2>&5
4052 ac_status=$?
4053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4054 test $ac_status = 0; }; then :
4055 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4056 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4057 # work properly (i.e., refer to `conftest.exe'), while it won't with
4058 # `rm'.
4059 for ac_file in conftest.exe conftest conftest.*; do
4060 test -f "$ac_file" || continue
4061 case $ac_file in
4062 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4063 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4064 break;;
4065 * ) break;;
4066 esac
4067 done
4068 else
4069 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4070 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4071 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4072 See \`config.log' for more details" "$LINENO" 5; }
4074 rm -f conftest conftest$ac_cv_exeext
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4076 $as_echo "$ac_cv_exeext" >&6; }
4078 rm -f conftest.$ac_ext
4079 EXEEXT=$ac_cv_exeext
4080 ac_exeext=$EXEEXT
4081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4082 /* end confdefs.h. */
4083 #include <stdio.h>
4085 main ()
4087 FILE *f = fopen ("conftest.out", "w");
4088 return ferror (f) || fclose (f) != 0;
4091 return 0;
4093 _ACEOF
4094 ac_clean_files="$ac_clean_files conftest.out"
4095 # Check that the compiler produces executables we can run. If not, either
4096 # the compiler is broken, or we cross compile.
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4098 $as_echo_n "checking whether we are cross compiling... " >&6; }
4099 if test "$cross_compiling" != yes; then
4100 { { ac_try="$ac_link"
4101 case "(($ac_try" in
4102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4103 *) ac_try_echo=$ac_try;;
4104 esac
4105 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4106 $as_echo "$ac_try_echo"; } >&5
4107 (eval "$ac_link") 2>&5
4108 ac_status=$?
4109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4110 test $ac_status = 0; }
4111 if { ac_try='./conftest$ac_cv_exeext'
4112 { { case "(($ac_try" in
4113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4114 *) ac_try_echo=$ac_try;;
4115 esac
4116 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4117 $as_echo "$ac_try_echo"; } >&5
4118 (eval "$ac_try") 2>&5
4119 ac_status=$?
4120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4121 test $ac_status = 0; }; }; then
4122 cross_compiling=no
4123 else
4124 if test "$cross_compiling" = maybe; then
4125 cross_compiling=yes
4126 else
4127 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4128 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4129 as_fn_error $? "cannot run C compiled programs.
4130 If you meant to cross compile, use \`--host'.
4131 See \`config.log' for more details" "$LINENO" 5; }
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4136 $as_echo "$cross_compiling" >&6; }
4138 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4139 ac_clean_files=$ac_clean_files_save
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4141 $as_echo_n "checking for suffix of object files... " >&6; }
4142 if ${ac_cv_objext+:} false; then :
4143 $as_echo_n "(cached) " >&6
4144 else
4145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4146 /* end confdefs.h. */
4149 main ()
4153 return 0;
4155 _ACEOF
4156 rm -f conftest.o conftest.obj
4157 if { { ac_try="$ac_compile"
4158 case "(($ac_try" in
4159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4160 *) ac_try_echo=$ac_try;;
4161 esac
4162 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4163 $as_echo "$ac_try_echo"; } >&5
4164 (eval "$ac_compile") 2>&5
4165 ac_status=$?
4166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4167 test $ac_status = 0; }; then :
4168 for ac_file in conftest.o conftest.obj conftest.*; do
4169 test -f "$ac_file" || continue;
4170 case $ac_file in
4171 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4172 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4173 break;;
4174 esac
4175 done
4176 else
4177 $as_echo "$as_me: failed program was:" >&5
4178 sed 's/^/| /' conftest.$ac_ext >&5
4180 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4181 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4182 as_fn_error $? "cannot compute suffix of object files: cannot compile
4183 See \`config.log' for more details" "$LINENO" 5; }
4185 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4188 $as_echo "$ac_cv_objext" >&6; }
4189 OBJEXT=$ac_cv_objext
4190 ac_objext=$OBJEXT
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4192 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4193 if ${ac_cv_c_compiler_gnu+:} false; then :
4194 $as_echo_n "(cached) " >&6
4195 else
4196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4197 /* end confdefs.h. */
4200 main ()
4202 #ifndef __GNUC__
4203 choke me
4204 #endif
4207 return 0;
4209 _ACEOF
4210 if ac_fn_c_try_compile "$LINENO"; then :
4211 ac_compiler_gnu=yes
4212 else
4213 ac_compiler_gnu=no
4215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4216 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4220 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4221 if test $ac_compiler_gnu = yes; then
4222 GCC=yes
4223 else
4224 GCC=
4226 ac_test_CFLAGS=${CFLAGS+set}
4227 ac_save_CFLAGS=$CFLAGS
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4229 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4230 if ${ac_cv_prog_cc_g+:} false; then :
4231 $as_echo_n "(cached) " >&6
4232 else
4233 ac_save_c_werror_flag=$ac_c_werror_flag
4234 ac_c_werror_flag=yes
4235 ac_cv_prog_cc_g=no
4236 CFLAGS="-g"
4237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4238 /* end confdefs.h. */
4241 main ()
4245 return 0;
4247 _ACEOF
4248 if ac_fn_c_try_compile "$LINENO"; then :
4249 ac_cv_prog_cc_g=yes
4250 else
4251 CFLAGS=""
4252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4253 /* end confdefs.h. */
4256 main ()
4260 return 0;
4262 _ACEOF
4263 if ac_fn_c_try_compile "$LINENO"; then :
4265 else
4266 ac_c_werror_flag=$ac_save_c_werror_flag
4267 CFLAGS="-g"
4268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4269 /* end confdefs.h. */
4272 main ()
4276 return 0;
4278 _ACEOF
4279 if ac_fn_c_try_compile "$LINENO"; then :
4280 ac_cv_prog_cc_g=yes
4282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4287 ac_c_werror_flag=$ac_save_c_werror_flag
4289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4290 $as_echo "$ac_cv_prog_cc_g" >&6; }
4291 if test "$ac_test_CFLAGS" = set; then
4292 CFLAGS=$ac_save_CFLAGS
4293 elif test $ac_cv_prog_cc_g = yes; then
4294 if test "$GCC" = yes; then
4295 CFLAGS="-g -O2"
4296 else
4297 CFLAGS="-g"
4299 else
4300 if test "$GCC" = yes; then
4301 CFLAGS="-O2"
4302 else
4303 CFLAGS=
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4307 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4308 if ${ac_cv_prog_cc_c89+:} false; then :
4309 $as_echo_n "(cached) " >&6
4310 else
4311 ac_cv_prog_cc_c89=no
4312 ac_save_CC=$CC
4313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4314 /* end confdefs.h. */
4315 #include <stdarg.h>
4316 #include <stdio.h>
4317 struct stat;
4318 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4319 struct buf { int x; };
4320 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4321 static char *e (p, i)
4322 char **p;
4323 int i;
4325 return p[i];
4327 static char *f (char * (*g) (char **, int), char **p, ...)
4329 char *s;
4330 va_list v;
4331 va_start (v,p);
4332 s = g (p, va_arg (v,int));
4333 va_end (v);
4334 return s;
4337 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4338 function prototypes and stuff, but not '\xHH' hex character constants.
4339 These don't provoke an error unfortunately, instead are silently treated
4340 as 'x'. The following induces an error, until -std is added to get
4341 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4342 array size at least. It's necessary to write '\x00'==0 to get something
4343 that's true only with -std. */
4344 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4346 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4347 inside strings and character constants. */
4348 #define FOO(x) 'x'
4349 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4351 int test (int i, double x);
4352 struct s1 {int (*f) (int a);};
4353 struct s2 {int (*f) (double a);};
4354 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4355 int argc;
4356 char **argv;
4358 main ()
4360 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4362 return 0;
4364 _ACEOF
4365 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4366 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4368 CC="$ac_save_CC $ac_arg"
4369 if ac_fn_c_try_compile "$LINENO"; then :
4370 ac_cv_prog_cc_c89=$ac_arg
4372 rm -f core conftest.err conftest.$ac_objext
4373 test "x$ac_cv_prog_cc_c89" != "xno" && break
4374 done
4375 rm -f conftest.$ac_ext
4376 CC=$ac_save_CC
4379 # AC_CACHE_VAL
4380 case "x$ac_cv_prog_cc_c89" in
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4383 $as_echo "none needed" >&6; } ;;
4384 xno)
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4386 $as_echo "unsupported" >&6; } ;;
4388 CC="$CC $ac_cv_prog_cc_c89"
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4390 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4391 esac
4392 if test "x$ac_cv_prog_cc_c89" != xno; then :
4396 ac_ext=c
4397 ac_cpp='$CPP $CPPFLAGS'
4398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4402 ac_ext=cpp
4403 ac_cpp='$CXXCPP $CPPFLAGS'
4404 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4405 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4406 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4407 if test -z "$CXX"; then
4408 if test -n "$CCC"; then
4409 CXX=$CCC
4410 else
4411 if test -n "$ac_tool_prefix"; then
4412 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4414 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4415 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4417 $as_echo_n "checking for $ac_word... " >&6; }
4418 if ${ac_cv_prog_CXX+:} false; then :
4419 $as_echo_n "(cached) " >&6
4420 else
4421 if test -n "$CXX"; then
4422 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4423 else
4424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4425 for as_dir in $PATH
4427 IFS=$as_save_IFS
4428 test -z "$as_dir" && as_dir=.
4429 for ac_exec_ext in '' $ac_executable_extensions; do
4430 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4431 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4433 break 2
4435 done
4436 done
4437 IFS=$as_save_IFS
4441 CXX=$ac_cv_prog_CXX
4442 if test -n "$CXX"; then
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4444 $as_echo "$CXX" >&6; }
4445 else
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4447 $as_echo "no" >&6; }
4451 test -n "$CXX" && break
4452 done
4454 if test -z "$CXX"; then
4455 ac_ct_CXX=$CXX
4456 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4458 # Extract the first word of "$ac_prog", so it can be a program name with args.
4459 set dummy $ac_prog; ac_word=$2
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4461 $as_echo_n "checking for $ac_word... " >&6; }
4462 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4463 $as_echo_n "(cached) " >&6
4464 else
4465 if test -n "$ac_ct_CXX"; then
4466 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4467 else
4468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4469 for as_dir in $PATH
4471 IFS=$as_save_IFS
4472 test -z "$as_dir" && as_dir=.
4473 for ac_exec_ext in '' $ac_executable_extensions; do
4474 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4475 ac_cv_prog_ac_ct_CXX="$ac_prog"
4476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4477 break 2
4479 done
4480 done
4481 IFS=$as_save_IFS
4485 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4486 if test -n "$ac_ct_CXX"; then
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4488 $as_echo "$ac_ct_CXX" >&6; }
4489 else
4490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4491 $as_echo "no" >&6; }
4495 test -n "$ac_ct_CXX" && break
4496 done
4498 if test "x$ac_ct_CXX" = x; then
4499 CXX="g++"
4500 else
4501 case $cross_compiling:$ac_tool_warned in
4502 yes:)
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4504 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4505 ac_tool_warned=yes ;;
4506 esac
4507 CXX=$ac_ct_CXX
4513 # Provide some information about the compiler.
4514 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4515 set X $ac_compile
4516 ac_compiler=$2
4517 for ac_option in --version -v -V -qversion; do
4518 { { ac_try="$ac_compiler $ac_option >&5"
4519 case "(($ac_try" in
4520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4521 *) ac_try_echo=$ac_try;;
4522 esac
4523 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4524 $as_echo "$ac_try_echo"; } >&5
4525 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4526 ac_status=$?
4527 if test -s conftest.err; then
4528 sed '10a\
4529 ... rest of stderr output deleted ...
4530 10q' conftest.err >conftest.er1
4531 cat conftest.er1 >&5
4533 rm -f conftest.er1 conftest.err
4534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4535 test $ac_status = 0; }
4536 done
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4539 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4540 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4541 $as_echo_n "(cached) " >&6
4542 else
4543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4544 /* end confdefs.h. */
4547 main ()
4549 #ifndef __GNUC__
4550 choke me
4551 #endif
4554 return 0;
4556 _ACEOF
4557 if ac_fn_cxx_try_compile "$LINENO"; then :
4558 ac_compiler_gnu=yes
4559 else
4560 ac_compiler_gnu=no
4562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4563 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4567 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4568 if test $ac_compiler_gnu = yes; then
4569 GXX=yes
4570 else
4571 GXX=
4573 ac_test_CXXFLAGS=${CXXFLAGS+set}
4574 ac_save_CXXFLAGS=$CXXFLAGS
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4576 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4577 if ${ac_cv_prog_cxx_g+:} false; then :
4578 $as_echo_n "(cached) " >&6
4579 else
4580 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4581 ac_cxx_werror_flag=yes
4582 ac_cv_prog_cxx_g=no
4583 CXXFLAGS="-g"
4584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4585 /* end confdefs.h. */
4588 main ()
4592 return 0;
4594 _ACEOF
4595 if ac_fn_cxx_try_compile "$LINENO"; then :
4596 ac_cv_prog_cxx_g=yes
4597 else
4598 CXXFLAGS=""
4599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4600 /* end confdefs.h. */
4603 main ()
4607 return 0;
4609 _ACEOF
4610 if ac_fn_cxx_try_compile "$LINENO"; then :
4612 else
4613 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4614 CXXFLAGS="-g"
4615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4616 /* end confdefs.h. */
4619 main ()
4623 return 0;
4625 _ACEOF
4626 if ac_fn_cxx_try_compile "$LINENO"; then :
4627 ac_cv_prog_cxx_g=yes
4629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4634 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4637 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4638 if test "$ac_test_CXXFLAGS" = set; then
4639 CXXFLAGS=$ac_save_CXXFLAGS
4640 elif test $ac_cv_prog_cxx_g = yes; then
4641 if test "$GXX" = yes; then
4642 CXXFLAGS="-g -O2"
4643 else
4644 CXXFLAGS="-g"
4646 else
4647 if test "$GXX" = yes; then
4648 CXXFLAGS="-O2"
4649 else
4650 CXXFLAGS=
4653 ac_ext=c
4654 ac_cpp='$CPP $CPPFLAGS'
4655 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4656 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4657 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4659 if test -n "$ac_tool_prefix"; then
4660 # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
4661 set dummy ${ac_tool_prefix}cpp; ac_word=$2
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4663 $as_echo_n "checking for $ac_word... " >&6; }
4664 if ${ac_cv_prog_CPPBIN+:} false; then :
4665 $as_echo_n "(cached) " >&6
4666 else
4667 if test -n "$CPPBIN"; then
4668 ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test.
4669 else
4670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4671 for as_dir in $PATH
4673 IFS=$as_save_IFS
4674 test -z "$as_dir" && as_dir=.
4675 for ac_exec_ext in '' $ac_executable_extensions; do
4676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4677 ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp"
4678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4679 break 2
4681 done
4682 done
4683 IFS=$as_save_IFS
4687 CPPBIN=$ac_cv_prog_CPPBIN
4688 if test -n "$CPPBIN"; then
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPPBIN" >&5
4690 $as_echo "$CPPBIN" >&6; }
4691 else
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4693 $as_echo "no" >&6; }
4698 if test -z "$ac_cv_prog_CPPBIN"; then
4699 ac_ct_CPPBIN=$CPPBIN
4700 # Extract the first word of "cpp", so it can be a program name with args.
4701 set dummy cpp; ac_word=$2
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4703 $as_echo_n "checking for $ac_word... " >&6; }
4704 if ${ac_cv_prog_ac_ct_CPPBIN+:} false; then :
4705 $as_echo_n "(cached) " >&6
4706 else
4707 if test -n "$ac_ct_CPPBIN"; then
4708 ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test.
4709 else
4710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4711 for as_dir in $PATH
4713 IFS=$as_save_IFS
4714 test -z "$as_dir" && as_dir=.
4715 for ac_exec_ext in '' $ac_executable_extensions; do
4716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4717 ac_cv_prog_ac_ct_CPPBIN="cpp"
4718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4719 break 2
4721 done
4722 done
4723 IFS=$as_save_IFS
4727 ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN
4728 if test -n "$ac_ct_CPPBIN"; then
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CPPBIN" >&5
4730 $as_echo "$ac_ct_CPPBIN" >&6; }
4731 else
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4733 $as_echo "no" >&6; }
4736 if test "x$ac_ct_CPPBIN" = x; then
4737 CPPBIN="cpp"
4738 else
4739 case $cross_compiling:$ac_tool_warned in
4740 yes:)
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4742 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4743 ac_tool_warned=yes ;;
4744 esac
4745 CPPBIN=$ac_ct_CPPBIN
4747 else
4748 CPPBIN="$ac_cv_prog_CPPBIN"
4752 cat >>confdefs.h <<_ACEOF
4753 #define EXEEXT "$ac_exeext"
4754 _ACEOF
4756 if test -n "$ac_tool_prefix"; then
4757 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4758 set dummy ${ac_tool_prefix}ld; ac_word=$2
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4760 $as_echo_n "checking for $ac_word... " >&6; }
4761 if ${ac_cv_prog_LD+:} false; then :
4762 $as_echo_n "(cached) " >&6
4763 else
4764 if test -n "$LD"; then
4765 ac_cv_prog_LD="$LD" # Let the user override the test.
4766 else
4767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4768 for as_dir in $PATH
4770 IFS=$as_save_IFS
4771 test -z "$as_dir" && as_dir=.
4772 for ac_exec_ext in '' $ac_executable_extensions; do
4773 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4774 ac_cv_prog_LD="${ac_tool_prefix}ld"
4775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4776 break 2
4778 done
4779 done
4780 IFS=$as_save_IFS
4784 LD=$ac_cv_prog_LD
4785 if test -n "$LD"; then
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4787 $as_echo "$LD" >&6; }
4788 else
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4790 $as_echo "no" >&6; }
4795 if test -z "$ac_cv_prog_LD"; then
4796 ac_ct_LD=$LD
4797 # Extract the first word of "ld", so it can be a program name with args.
4798 set dummy ld; ac_word=$2
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4800 $as_echo_n "checking for $ac_word... " >&6; }
4801 if ${ac_cv_prog_ac_ct_LD+:} false; then :
4802 $as_echo_n "(cached) " >&6
4803 else
4804 if test -n "$ac_ct_LD"; then
4805 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4806 else
4807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4808 for as_dir in $PATH
4810 IFS=$as_save_IFS
4811 test -z "$as_dir" && as_dir=.
4812 for ac_exec_ext in '' $ac_executable_extensions; do
4813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4814 ac_cv_prog_ac_ct_LD="ld"
4815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4816 break 2
4818 done
4819 done
4820 IFS=$as_save_IFS
4824 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4825 if test -n "$ac_ct_LD"; then
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LD" >&5
4827 $as_echo "$ac_ct_LD" >&6; }
4828 else
4829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4830 $as_echo "no" >&6; }
4833 if test "x$ac_ct_LD" = x; then
4834 LD=""
4835 else
4836 case $cross_compiling:$ac_tool_warned in
4837 yes:)
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4839 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4840 ac_tool_warned=yes ;;
4841 esac
4842 LD=$ac_ct_LD
4844 else
4845 LD="$ac_cv_prog_LD"
4849 case $host in
4850 *-darwin*)
4851 if test "x$enable_win64" = "xyes"
4852 then
4853 CC="$CC -m64"
4854 CXX="$CXX -m64"
4855 host_cpu="x86_64"
4856 notice_platform="64-bit "
4857 TARGETFLAGS="-m64"
4859 else
4860 CC="$CC -m32"
4861 CXX="$CXX -m32"
4862 host_cpu="i386"
4863 notice_platform="32-bit "
4864 TARGETFLAGS="-m32"
4866 enable_win16=${enable_win16:-yes}
4868 with_fontconfig=${with_fontconfig:-no}
4870 x86_64*|amd64*)
4871 if test "x$enable_win64" != "xyes" -a "$cross_compiling" != "yes"
4872 then
4873 CC="$CC -m32"
4874 CXX="$CXX -m32"
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC works" >&5
4876 $as_echo_n "checking whether $CC works... " >&6; }
4878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4879 /* end confdefs.h. */
4882 main ()
4886 return 0;
4888 _ACEOF
4889 if ac_fn_c_try_link "$LINENO"; then :
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4891 $as_echo "yes" >&6; }
4892 else
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4894 $as_echo "no" >&6; }
4895 as_fn_error $? "Cannot build a 32-bit program, you need to install 32-bit development libraries." "$LINENO" 5
4897 rm -f core conftest.err conftest.$ac_objext \
4898 conftest$ac_exeext conftest.$ac_ext
4899 host_cpu="i386"
4900 notice_platform="32-bit "
4901 TARGETFLAGS="-m32"
4903 enable_win16=${enable_win16:-yes}
4904 else
4905 if test "x${GCC}" = "xyes"
4906 then
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports __builtin_ms_va_list" >&5
4908 $as_echo_n "checking whether $CC supports __builtin_ms_va_list... " >&6; }
4909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4910 /* end confdefs.h. */
4911 #include <stdarg.h>
4913 main ()
4915 void func(__builtin_ms_va_list *args);
4917 return 0;
4919 _ACEOF
4920 if ac_fn_c_try_compile "$LINENO"; then :
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4922 $as_echo "yes" >&6; }
4923 else
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4925 $as_echo "no" >&6; }
4926 as_fn_error $? "You need gcc >= 4.4 to build Wine as 64-bit." "$LINENO" 5
4928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4930 host_cpu="x86_64"
4931 TARGETFLAGS="-m64"
4935 arm*)
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports Thumb" >&5
4937 $as_echo_n "checking whether $CC supports Thumb... " >&6; }
4938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4939 /* end confdefs.h. */
4940 int ac_test(int i) { return i; }
4942 main ()
4944 asm(".thumb\nblx ac_test\n.arm"); if (ac_test(1)) return 1
4946 return 0;
4948 _ACEOF
4949 if ac_fn_c_try_link "$LINENO"; then :
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4951 $as_echo "yes" >&6; }
4952 else
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4954 $as_echo "no" >&6; }
4955 as_fn_error $? "You need a target with Thumb support to build Wine for ARM." "$LINENO" 5
4957 rm -f core conftest.err conftest.$ac_objext \
4958 conftest$ac_exeext conftest.$ac_ext
4959 CFLAGS="$CFLAGS -marm"
4960 TARGETFLAGS="-marm"
4963 *-mingw32*|*-cygwin*)
4964 enable_win16=${enable_win16:-no}
4965 CFLAGS="$CFLAGS -D_WIN32"
4967 i[3456789]86*)
4968 enable_win16=${enable_win16:-yes}
4970 esac
4972 enable_win16=${enable_win16:-no}
4973 enable_win64=${enable_win64:-no}
4975 enable_winetest=${enable_winetest:-$enable_tests}
4977 if test -n "$with_wine64"
4978 then
4979 if test "x$enable_win64" = "xyes"
4980 then
4981 as_fn_error $? "--enable-win64 and --with-wine64 are mutually exclusive.
4982 --enable-win64 should be used in the 64-bit build tree, --with-wine64 in the 32-bit Wow64 build tree." "$LINENO" 5
4984 enable_fonts=${enable_fonts:-no}
4985 enable_server=${enable_server:-no}
4986 elif test "x$enable_win64" = "xyes"
4987 then
4988 test "x$libdir" != "x\${exec_prefix}/lib" || libdir="\${exec_prefix}/lib64"
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the directory containing the Wine tools" >&5
4992 $as_echo_n "checking for the directory containing the Wine tools... " >&6; }
4993 if ${wine_cv_toolsdir+:} false; then :
4994 $as_echo_n "(cached) " >&6
4995 else
4996 wine_cv_toolsdir="$with_wine_tools"
4997 if test -z "$with_wine_tools"; then
4998 if test "$cross_compiling" = "yes"; then
4999 as_fn_error $? "you must use the --with-wine-tools option when cross-compiling." "$LINENO" 5
5000 elif test -n "$with_wine64"; then
5001 wine_cv_toolsdir="$with_wine64"
5004 if test -z "$wine_cv_toolsdir"; then
5005 wine_makedep=tools/makedep
5006 wine_cv_toolsdir="\$(top_builddir)"
5007 elif test -d "$wine_cv_toolsdir/tools/winebuild"; then
5008 wine_makedep=$wine_cv_toolsdir/tools/makedep
5009 case "$wine_cv_toolsdir" in
5010 /*) ;;
5011 *) wine_cv_toolsdir="\$(top_builddir)/$wine_cv_toolsdir" ;;
5012 esac
5013 enable_tools=${enable_tools:-no}
5014 test -f "$wine_makedep" || as_fn_error $? "the Wine tools have not yet been built in $wine_cv_toolsdir" "$LINENO" 5
5015 else
5016 as_fn_error $? "could not find Wine tools in $wine_cv_toolsdir" "$LINENO" 5
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_toolsdir" >&5
5020 $as_echo "$wine_cv_toolsdir" >&6; }
5021 TOOLSDIR=$wine_cv_toolsdir
5023 if test -n "$host_alias" -a "$host_alias" != "$build_alias"
5024 then
5025 TARGETFLAGS="-b $host_alias $TARGETFLAGS"
5029 for ac_prog in flex
5031 # Extract the first word of "$ac_prog", so it can be a program name with args.
5032 set dummy $ac_prog; ac_word=$2
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5034 $as_echo_n "checking for $ac_word... " >&6; }
5035 if ${ac_cv_prog_FLEX+:} false; then :
5036 $as_echo_n "(cached) " >&6
5037 else
5038 if test -n "$FLEX"; then
5039 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5040 else
5041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5042 for as_dir in $PATH
5044 IFS=$as_save_IFS
5045 test -z "$as_dir" && as_dir=.
5046 for ac_exec_ext in '' $ac_executable_extensions; do
5047 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5048 ac_cv_prog_FLEX="$ac_prog"
5049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5050 break 2
5052 done
5053 done
5054 IFS=$as_save_IFS
5058 FLEX=$ac_cv_prog_FLEX
5059 if test -n "$FLEX"; then
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
5061 $as_echo "$FLEX" >&6; }
5062 else
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5064 $as_echo "no" >&6; }
5068 test -n "$FLEX" && break
5069 done
5070 test -n "$FLEX" || FLEX="none"
5072 if test "$FLEX" = "none"
5073 then
5074 as_fn_error $? "no suitable flex found. Please install the 'flex' package." "$LINENO" 5
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether flex is recent enough" >&5
5077 $as_echo_n "checking whether flex is recent enough... " >&6; }
5078 cat >conftest.l <<EOF
5079 %top{
5080 #include "prediluvian.h"
5084 if $FLEX -t conftest.l >/dev/null 2>&5
5085 then
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5087 $as_echo "yes" >&6; }
5088 else
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5090 $as_echo "no" >&6; }
5091 as_fn_error $? "Your flex version is too old. Please install flex version 2.5.33 or newer." "$LINENO" 5
5094 for ac_prog in bison
5096 # Extract the first word of "$ac_prog", so it can be a program name with args.
5097 set dummy $ac_prog; ac_word=$2
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5099 $as_echo_n "checking for $ac_word... " >&6; }
5100 if ${ac_cv_prog_BISON+:} false; then :
5101 $as_echo_n "(cached) " >&6
5102 else
5103 if test -n "$BISON"; then
5104 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5105 else
5106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5107 for as_dir in $PATH
5109 IFS=$as_save_IFS
5110 test -z "$as_dir" && as_dir=.
5111 for ac_exec_ext in '' $ac_executable_extensions; do
5112 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5113 ac_cv_prog_BISON="$ac_prog"
5114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5115 break 2
5117 done
5118 done
5119 IFS=$as_save_IFS
5123 BISON=$ac_cv_prog_BISON
5124 if test -n "$BISON"; then
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5126 $as_echo "$BISON" >&6; }
5127 else
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5129 $as_echo "no" >&6; }
5133 test -n "$BISON" && break
5134 done
5135 test -n "$BISON" || BISON="none"
5137 if test "$BISON" = "none"
5138 then
5139 as_fn_error $? "no suitable bison found. Please install the 'bison' package." "$LINENO" 5
5142 if test -n "$ac_tool_prefix"; then
5143 for ac_prog in ar gar
5145 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5146 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5148 $as_echo_n "checking for $ac_word... " >&6; }
5149 if ${ac_cv_prog_AR+:} false; then :
5150 $as_echo_n "(cached) " >&6
5151 else
5152 if test -n "$AR"; then
5153 ac_cv_prog_AR="$AR" # Let the user override the test.
5154 else
5155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5156 for as_dir in $PATH
5158 IFS=$as_save_IFS
5159 test -z "$as_dir" && as_dir=.
5160 for ac_exec_ext in '' $ac_executable_extensions; do
5161 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5162 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5164 break 2
5166 done
5167 done
5168 IFS=$as_save_IFS
5172 AR=$ac_cv_prog_AR
5173 if test -n "$AR"; then
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5175 $as_echo "$AR" >&6; }
5176 else
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5178 $as_echo "no" >&6; }
5182 test -n "$AR" && break
5183 done
5185 if test -z "$AR"; then
5186 ac_ct_AR=$AR
5187 for ac_prog in ar gar
5189 # Extract the first word of "$ac_prog", so it can be a program name with args.
5190 set dummy $ac_prog; ac_word=$2
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5192 $as_echo_n "checking for $ac_word... " >&6; }
5193 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5194 $as_echo_n "(cached) " >&6
5195 else
5196 if test -n "$ac_ct_AR"; then
5197 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5198 else
5199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5200 for as_dir in $PATH
5202 IFS=$as_save_IFS
5203 test -z "$as_dir" && as_dir=.
5204 for ac_exec_ext in '' $ac_executable_extensions; do
5205 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5206 ac_cv_prog_ac_ct_AR="$ac_prog"
5207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5208 break 2
5210 done
5211 done
5212 IFS=$as_save_IFS
5216 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5217 if test -n "$ac_ct_AR"; then
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5219 $as_echo "$ac_ct_AR" >&6; }
5220 else
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5222 $as_echo "no" >&6; }
5226 test -n "$ac_ct_AR" && break
5227 done
5229 if test "x$ac_ct_AR" = x; then
5230 AR="ar"
5231 else
5232 case $cross_compiling:$ac_tool_warned in
5233 yes:)
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5235 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5236 ac_tool_warned=yes ;;
5237 esac
5238 AR=$ac_ct_AR
5242 if test -n "$ac_tool_prefix"; then
5243 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5244 set dummy ${ac_tool_prefix}strip; ac_word=$2
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5246 $as_echo_n "checking for $ac_word... " >&6; }
5247 if ${ac_cv_prog_STRIP+:} false; then :
5248 $as_echo_n "(cached) " >&6
5249 else
5250 if test -n "$STRIP"; then
5251 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5252 else
5253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5254 for as_dir in $PATH
5256 IFS=$as_save_IFS
5257 test -z "$as_dir" && as_dir=.
5258 for ac_exec_ext in '' $ac_executable_extensions; do
5259 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5260 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5262 break 2
5264 done
5265 done
5266 IFS=$as_save_IFS
5270 STRIP=$ac_cv_prog_STRIP
5271 if test -n "$STRIP"; then
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5273 $as_echo "$STRIP" >&6; }
5274 else
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5276 $as_echo "no" >&6; }
5281 if test -z "$ac_cv_prog_STRIP"; then
5282 ac_ct_STRIP=$STRIP
5283 # Extract the first word of "strip", so it can be a program name with args.
5284 set dummy strip; ac_word=$2
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5286 $as_echo_n "checking for $ac_word... " >&6; }
5287 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5288 $as_echo_n "(cached) " >&6
5289 else
5290 if test -n "$ac_ct_STRIP"; then
5291 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5292 else
5293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5294 for as_dir in $PATH
5296 IFS=$as_save_IFS
5297 test -z "$as_dir" && as_dir=.
5298 for ac_exec_ext in '' $ac_executable_extensions; do
5299 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5300 ac_cv_prog_ac_ct_STRIP="strip"
5301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5302 break 2
5304 done
5305 done
5306 IFS=$as_save_IFS
5310 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5311 if test -n "$ac_ct_STRIP"; then
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5313 $as_echo "$ac_ct_STRIP" >&6; }
5314 else
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5316 $as_echo "no" >&6; }
5319 if test "x$ac_ct_STRIP" = x; then
5320 STRIP="strip"
5321 else
5322 case $cross_compiling:$ac_tool_warned in
5323 yes:)
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5325 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5326 ac_tool_warned=yes ;;
5327 esac
5328 STRIP=$ac_ct_STRIP
5330 else
5331 STRIP="$ac_cv_prog_STRIP"
5334 ARFLAGS=rc
5336 if test -n "$ac_tool_prefix"; then
5337 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5338 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5340 $as_echo_n "checking for $ac_word... " >&6; }
5341 if ${ac_cv_prog_RANLIB+:} false; then :
5342 $as_echo_n "(cached) " >&6
5343 else
5344 if test -n "$RANLIB"; then
5345 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5346 else
5347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5348 for as_dir in $PATH
5350 IFS=$as_save_IFS
5351 test -z "$as_dir" && as_dir=.
5352 for ac_exec_ext in '' $ac_executable_extensions; do
5353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5354 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5356 break 2
5358 done
5359 done
5360 IFS=$as_save_IFS
5364 RANLIB=$ac_cv_prog_RANLIB
5365 if test -n "$RANLIB"; then
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5367 $as_echo "$RANLIB" >&6; }
5368 else
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5370 $as_echo "no" >&6; }
5375 if test -z "$ac_cv_prog_RANLIB"; then
5376 ac_ct_RANLIB=$RANLIB
5377 # Extract the first word of "ranlib", so it can be a program name with args.
5378 set dummy ranlib; ac_word=$2
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5380 $as_echo_n "checking for $ac_word... " >&6; }
5381 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5382 $as_echo_n "(cached) " >&6
5383 else
5384 if test -n "$ac_ct_RANLIB"; then
5385 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5386 else
5387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5388 for as_dir in $PATH
5390 IFS=$as_save_IFS
5391 test -z "$as_dir" && as_dir=.
5392 for ac_exec_ext in '' $ac_executable_extensions; do
5393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5394 ac_cv_prog_ac_ct_RANLIB="ranlib"
5395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5396 break 2
5398 done
5399 done
5400 IFS=$as_save_IFS
5404 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5405 if test -n "$ac_ct_RANLIB"; then
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5407 $as_echo "$ac_ct_RANLIB" >&6; }
5408 else
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5410 $as_echo "no" >&6; }
5413 if test "x$ac_ct_RANLIB" = x; then
5414 RANLIB=":"
5415 else
5416 case $cross_compiling:$ac_tool_warned in
5417 yes:)
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5419 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5420 ac_tool_warned=yes ;;
5421 esac
5422 RANLIB=$ac_ct_RANLIB
5424 else
5425 RANLIB="$ac_cv_prog_RANLIB"
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5429 $as_echo_n "checking whether ln -s works... " >&6; }
5430 LN_S=$as_ln_s
5431 if test "$LN_S" = "ln -s"; then
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5433 $as_echo "yes" >&6; }
5434 else
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5436 $as_echo "no, using $LN_S" >&6; }
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5440 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5441 if ${ac_cv_path_GREP+:} false; then :
5442 $as_echo_n "(cached) " >&6
5443 else
5444 if test -z "$GREP"; then
5445 ac_path_GREP_found=false
5446 # Loop through the user's path and test for each of PROGNAME-LIST
5447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5448 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5450 IFS=$as_save_IFS
5451 test -z "$as_dir" && as_dir=.
5452 for ac_prog in grep ggrep; do
5453 for ac_exec_ext in '' $ac_executable_extensions; do
5454 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5455 as_fn_executable_p "$ac_path_GREP" || continue
5456 # Check for GNU ac_path_GREP and select it if it is found.
5457 # Check for GNU $ac_path_GREP
5458 case `"$ac_path_GREP" --version 2>&1` in
5459 *GNU*)
5460 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5462 ac_count=0
5463 $as_echo_n 0123456789 >"conftest.in"
5464 while :
5466 cat "conftest.in" "conftest.in" >"conftest.tmp"
5467 mv "conftest.tmp" "conftest.in"
5468 cp "conftest.in" "conftest.nl"
5469 $as_echo 'GREP' >> "conftest.nl"
5470 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5471 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5472 as_fn_arith $ac_count + 1 && ac_count=$as_val
5473 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5474 # Best one so far, save it but keep looking for a better one
5475 ac_cv_path_GREP="$ac_path_GREP"
5476 ac_path_GREP_max=$ac_count
5478 # 10*(2^10) chars as input seems more than enough
5479 test $ac_count -gt 10 && break
5480 done
5481 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5482 esac
5484 $ac_path_GREP_found && break 3
5485 done
5486 done
5487 done
5488 IFS=$as_save_IFS
5489 if test -z "$ac_cv_path_GREP"; then
5490 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5492 else
5493 ac_cv_path_GREP=$GREP
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5498 $as_echo "$ac_cv_path_GREP" >&6; }
5499 GREP="$ac_cv_path_GREP"
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5503 $as_echo_n "checking for egrep... " >&6; }
5504 if ${ac_cv_path_EGREP+:} false; then :
5505 $as_echo_n "(cached) " >&6
5506 else
5507 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5508 then ac_cv_path_EGREP="$GREP -E"
5509 else
5510 if test -z "$EGREP"; then
5511 ac_path_EGREP_found=false
5512 # Loop through the user's path and test for each of PROGNAME-LIST
5513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5514 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5516 IFS=$as_save_IFS
5517 test -z "$as_dir" && as_dir=.
5518 for ac_prog in egrep; do
5519 for ac_exec_ext in '' $ac_executable_extensions; do
5520 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5521 as_fn_executable_p "$ac_path_EGREP" || continue
5522 # Check for GNU ac_path_EGREP and select it if it is found.
5523 # Check for GNU $ac_path_EGREP
5524 case `"$ac_path_EGREP" --version 2>&1` in
5525 *GNU*)
5526 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5528 ac_count=0
5529 $as_echo_n 0123456789 >"conftest.in"
5530 while :
5532 cat "conftest.in" "conftest.in" >"conftest.tmp"
5533 mv "conftest.tmp" "conftest.in"
5534 cp "conftest.in" "conftest.nl"
5535 $as_echo 'EGREP' >> "conftest.nl"
5536 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5537 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5538 as_fn_arith $ac_count + 1 && ac_count=$as_val
5539 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5540 # Best one so far, save it but keep looking for a better one
5541 ac_cv_path_EGREP="$ac_path_EGREP"
5542 ac_path_EGREP_max=$ac_count
5544 # 10*(2^10) chars as input seems more than enough
5545 test $ac_count -gt 10 && break
5546 done
5547 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5548 esac
5550 $ac_path_EGREP_found && break 3
5551 done
5552 done
5553 done
5554 IFS=$as_save_IFS
5555 if test -z "$ac_cv_path_EGREP"; then
5556 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5558 else
5559 ac_cv_path_EGREP=$EGREP
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5565 $as_echo "$ac_cv_path_EGREP" >&6; }
5566 EGREP="$ac_cv_path_EGREP"
5569 # Extract the first word of "ldconfig", so it can be a program name with args.
5570 set dummy ldconfig; ac_word=$2
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5572 $as_echo_n "checking for $ac_word... " >&6; }
5573 if ${ac_cv_path_LDCONFIG+:} false; then :
5574 $as_echo_n "(cached) " >&6
5575 else
5576 case $LDCONFIG in
5577 [\\/]* | ?:[\\/]*)
5578 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
5581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5582 for as_dir in /sbin /usr/sbin $PATH
5584 IFS=$as_save_IFS
5585 test -z "$as_dir" && as_dir=.
5586 for ac_exec_ext in '' $ac_executable_extensions; do
5587 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5588 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
5589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5590 break 2
5592 done
5593 done
5594 IFS=$as_save_IFS
5596 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
5598 esac
5600 LDCONFIG=$ac_cv_path_LDCONFIG
5601 if test -n "$LDCONFIG"; then
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
5603 $as_echo "$LDCONFIG" >&6; }
5604 else
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5606 $as_echo "no" >&6; }
5610 for ac_prog in msgfmt
5612 # Extract the first word of "$ac_prog", so it can be a program name with args.
5613 set dummy $ac_prog; ac_word=$2
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5615 $as_echo_n "checking for $ac_word... " >&6; }
5616 if ${ac_cv_prog_MSGFMT+:} false; then :
5617 $as_echo_n "(cached) " >&6
5618 else
5619 if test -n "$MSGFMT"; then
5620 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
5621 else
5622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5623 for as_dir in $PATH
5625 IFS=$as_save_IFS
5626 test -z "$as_dir" && as_dir=.
5627 for ac_exec_ext in '' $ac_executable_extensions; do
5628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5629 ac_cv_prog_MSGFMT="$ac_prog"
5630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5631 break 2
5633 done
5634 done
5635 IFS=$as_save_IFS
5639 MSGFMT=$ac_cv_prog_MSGFMT
5640 if test -n "$MSGFMT"; then
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5642 $as_echo "$MSGFMT" >&6; }
5643 else
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5645 $as_echo "no" >&6; }
5649 test -n "$MSGFMT" && break
5650 done
5651 test -n "$MSGFMT" || MSGFMT="false"
5653 if ${ac_tool_prefix+:} false; then :
5654 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5655 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5657 $as_echo_n "checking for $ac_word... " >&6; }
5658 if ${ac_cv_prog_PKG_CONFIG+:} false; then :
5659 $as_echo_n "(cached) " >&6
5660 else
5661 if test -n "$PKG_CONFIG"; then
5662 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
5663 else
5664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5665 for as_dir in $PATH
5667 IFS=$as_save_IFS
5668 test -z "$as_dir" && as_dir=.
5669 for ac_exec_ext in '' $ac_executable_extensions; do
5670 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5671 ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
5672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5673 break 2
5675 done
5676 done
5677 IFS=$as_save_IFS
5681 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
5682 if test -n "$PKG_CONFIG"; then
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5684 $as_echo "$PKG_CONFIG" >&6; }
5685 else
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5687 $as_echo "no" >&6; }
5692 if ${ac_cv_prog_PKG_CONFIG:+false} :; then :
5693 if test "x$cross_compiling" = xyes; then :
5695 else
5696 { ac_cv_prog_PKG_CONFIG=; unset ac_cv_prog_PKG_CONFIG;}
5697 # Extract the first word of "pkg-config", so it can be a program name with args.
5698 set dummy pkg-config; ac_word=$2
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5700 $as_echo_n "checking for $ac_word... " >&6; }
5701 if ${ac_cv_prog_PKG_CONFIG+:} false; then :
5702 $as_echo_n "(cached) " >&6
5703 else
5704 if test -n "$PKG_CONFIG"; then
5705 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
5706 else
5707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5708 for as_dir in $PATH
5710 IFS=$as_save_IFS
5711 test -z "$as_dir" && as_dir=.
5712 for ac_exec_ext in '' $ac_executable_extensions; do
5713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5714 ac_cv_prog_PKG_CONFIG="pkg-config"
5715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5716 break 2
5718 done
5719 done
5720 IFS=$as_save_IFS
5724 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
5725 if test -n "$PKG_CONFIG"; then
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5727 $as_echo "$PKG_CONFIG" >&6; }
5728 else
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5730 $as_echo "no" >&6; }
5735 else
5736 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
5739 if test "x$enable_maintainer_mode" != "xyes"
5740 then
5741 FONTFORGE=""
5742 RSVG=""
5743 CONVERT=""
5744 ICOTOOL=""
5745 else
5746 test "$srcdir" = . || as_fn_error $? "Maintainer mode cannot work out of tree." "$LINENO" 5
5747 for ac_prog in fontforge
5749 # Extract the first word of "$ac_prog", so it can be a program name with args.
5750 set dummy $ac_prog; ac_word=$2
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5752 $as_echo_n "checking for $ac_word... " >&6; }
5753 if ${ac_cv_prog_FONTFORGE+:} false; then :
5754 $as_echo_n "(cached) " >&6
5755 else
5756 if test -n "$FONTFORGE"; then
5757 ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
5758 else
5759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5760 for as_dir in $PATH
5762 IFS=$as_save_IFS
5763 test -z "$as_dir" && as_dir=.
5764 for ac_exec_ext in '' $ac_executable_extensions; do
5765 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5766 ac_cv_prog_FONTFORGE="$ac_prog"
5767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5768 break 2
5770 done
5771 done
5772 IFS=$as_save_IFS
5776 FONTFORGE=$ac_cv_prog_FONTFORGE
5777 if test -n "$FONTFORGE"; then
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTFORGE" >&5
5779 $as_echo "$FONTFORGE" >&6; }
5780 else
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5782 $as_echo "no" >&6; }
5786 test -n "$FONTFORGE" && break
5787 done
5788 test -n "$FONTFORGE" || FONTFORGE="false"
5790 for ac_prog in rsvg-convert rsvg
5792 # Extract the first word of "$ac_prog", so it can be a program name with args.
5793 set dummy $ac_prog; ac_word=$2
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5795 $as_echo_n "checking for $ac_word... " >&6; }
5796 if ${ac_cv_prog_RSVG+:} false; then :
5797 $as_echo_n "(cached) " >&6
5798 else
5799 if test -n "$RSVG"; then
5800 ac_cv_prog_RSVG="$RSVG" # Let the user override the test.
5801 else
5802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5803 for as_dir in $PATH
5805 IFS=$as_save_IFS
5806 test -z "$as_dir" && as_dir=.
5807 for ac_exec_ext in '' $ac_executable_extensions; do
5808 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5809 ac_cv_prog_RSVG="$ac_prog"
5810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5811 break 2
5813 done
5814 done
5815 IFS=$as_save_IFS
5819 RSVG=$ac_cv_prog_RSVG
5820 if test -n "$RSVG"; then
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG" >&5
5822 $as_echo "$RSVG" >&6; }
5823 else
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5825 $as_echo "no" >&6; }
5829 test -n "$RSVG" && break
5830 done
5831 test -n "$RSVG" || RSVG="false"
5833 for ac_prog in convert
5835 # Extract the first word of "$ac_prog", so it can be a program name with args.
5836 set dummy $ac_prog; ac_word=$2
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5838 $as_echo_n "checking for $ac_word... " >&6; }
5839 if ${ac_cv_prog_CONVERT+:} false; then :
5840 $as_echo_n "(cached) " >&6
5841 else
5842 if test -n "$CONVERT"; then
5843 ac_cv_prog_CONVERT="$CONVERT" # Let the user override the test.
5844 else
5845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5846 for as_dir in $PATH
5848 IFS=$as_save_IFS
5849 test -z "$as_dir" && as_dir=.
5850 for ac_exec_ext in '' $ac_executable_extensions; do
5851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5852 ac_cv_prog_CONVERT="$ac_prog"
5853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5854 break 2
5856 done
5857 done
5858 IFS=$as_save_IFS
5862 CONVERT=$ac_cv_prog_CONVERT
5863 if test -n "$CONVERT"; then
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONVERT" >&5
5865 $as_echo "$CONVERT" >&6; }
5866 else
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5868 $as_echo "no" >&6; }
5872 test -n "$CONVERT" && break
5873 done
5874 test -n "$CONVERT" || CONVERT="false"
5876 for ac_prog in icotool
5878 # Extract the first word of "$ac_prog", so it can be a program name with args.
5879 set dummy $ac_prog; ac_word=$2
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5881 $as_echo_n "checking for $ac_word... " >&6; }
5882 if ${ac_cv_prog_ICOTOOL+:} false; then :
5883 $as_echo_n "(cached) " >&6
5884 else
5885 if test -n "$ICOTOOL"; then
5886 ac_cv_prog_ICOTOOL="$ICOTOOL" # Let the user override the test.
5887 else
5888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5889 for as_dir in $PATH
5891 IFS=$as_save_IFS
5892 test -z "$as_dir" && as_dir=.
5893 for ac_exec_ext in '' $ac_executable_extensions; do
5894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5895 ac_cv_prog_ICOTOOL="$ac_prog"
5896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5897 break 2
5899 done
5900 done
5901 IFS=$as_save_IFS
5905 ICOTOOL=$ac_cv_prog_ICOTOOL
5906 if test -n "$ICOTOOL"; then
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICOTOOL" >&5
5908 $as_echo "$ICOTOOL" >&6; }
5909 else
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5911 $as_echo "no" >&6; }
5915 test -n "$ICOTOOL" && break
5916 done
5917 test -n "$ICOTOOL" || ICOTOOL="false"
5919 test "$FONTFORGE" != "false" || as_fn_error $? "You need fontforge to rebuild fonts in maintainer mode." "$LINENO" 5
5920 test "$RSVG" != "false" || as_fn_error $? "You need rsvg to rebuild icons in maintainer mode." "$LINENO" 5
5922 if test "$CONVERT" = false
5923 then
5924 as_fn_error $? "You need imagemagick to rebuild icons in maintainer mode." "$LINENO" 5
5925 else
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough imagemagick" >&5
5927 $as_echo_n "checking for recent enough imagemagick... " >&6; }
5928 convert_version=`convert --version | head -n1`
5929 if test "x$convert_version" != "x"
5930 then
5931 convert_version_major=`expr "$convert_version" : '.* \([0-9]*\)\.[0-9]*'`
5932 convert_version_minor=`expr "$convert_version" : '.* [0-9]*\.\([0-9]*\)'`
5933 if test "$convert_version_major" -eq 6 -a "$convert_version_minor" -lt 6
5934 then
5935 CONVERT=false
5938 if test "$CONVERT" = false
5939 then
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($convert_version_major.$convert_version_minor)" >&5
5941 $as_echo "no ($convert_version_major.$convert_version_minor)" >&6; }
5942 as_fn_error $? "You need imagemagick version 6.6 or newer to rebuild icons in maintainer mode." "$LINENO" 5
5943 else
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($convert_version_major.$convert_version_minor)" >&5
5945 $as_echo "yes ($convert_version_major.$convert_version_minor)" >&6; }
5949 if test "$ICOTOOL" = false
5950 then
5951 as_fn_error $? "You need icotool to rebuild icons in maintainer mode." "$LINENO" 5
5952 else
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough icotool" >&5
5954 $as_echo_n "checking for recent enough icotool... " >&6; }
5955 icotool_version=`icotool --version | head -n1`
5956 if test "x$icotool_version" != "x"
5957 then
5958 icotool_version_major=`expr "$icotool_version" : '.* \([0-9]*\)\.[0-9]*'`
5959 icotool_version_minor=`expr "$icotool_version" : '.* [0-9]*\.\([0-9]*\)'`
5960 if test "$icotool_version_major" -eq 0 -a "$icotool_version_minor" -lt 29
5961 then
5962 ICOTOOL=false
5963 as_fn_append wine_warnings "|icotool version 0.29.0 or newer is needed to rebuild icons."
5966 if test "$ICOTOOL" = false
5967 then
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($icotool_version_major.$icotool_version_minor)" >&5
5969 $as_echo "no ($icotool_version_major.$icotool_version_minor)" >&6; }
5970 as_fn_error $? "You need icotool version 0.29.0 or newer to rebuild icons in maintainer mode." "$LINENO" 5
5971 else
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($icotool_version_major.$icotool_version_minor)" >&5
5973 $as_echo "yes ($icotool_version_major.$icotool_version_minor)" >&6; }
5977 with_gettext=yes
5978 with_gettextpo=yes
5979 { ac_cv_header_gettext_po_h=; unset ac_cv_header_gettext_po_h;}
5982 test "x$with_gettext" != xno || MSGFMT=false
5983 if test "$MSGFMT" != "false"
5984 then
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether msgfmt supports contexts" >&5
5986 $as_echo_n "checking whether msgfmt supports contexts... " >&6; }
5987 cat >conftest.po <<EOF
5988 # comment
5989 msgctxt "ctxt"
5990 msgid "id"
5991 msgstr "str"
5993 if $MSGFMT -o /dev/null conftest.po 2>&5
5994 then
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5996 $as_echo "yes" >&6; }
5997 else
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5999 $as_echo "no" >&6; }
6000 MSGFMT=false
6003 if test "$MSGFMT" = false; then :
6004 case "x$with_gettext" in
6005 x) as_fn_append wine_warnings "|gettext tools not found (or too old), translations won't be built." ;;
6006 xno) ;;
6007 *) as_fn_error $? "gettext tools not found (or too old), translations won't be built.
6008 This is an error since --with-gettext was requested." "$LINENO" 5 ;;
6009 esac
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for i386_set_ldt in -li386" >&5
6014 $as_echo_n "checking for i386_set_ldt in -li386... " >&6; }
6015 if ${ac_cv_lib_i386_i386_set_ldt+:} false; then :
6016 $as_echo_n "(cached) " >&6
6017 else
6018 ac_check_lib_save_LIBS=$LIBS
6019 LIBS="-li386 $LIBS"
6020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6021 /* end confdefs.h. */
6023 /* Override any GCC internal prototype to avoid an error.
6024 Use char because int might match the return type of a GCC
6025 builtin and then its argument prototype would still apply. */
6026 #ifdef __cplusplus
6027 extern "C"
6028 #endif
6029 char i386_set_ldt ();
6031 main ()
6033 return i386_set_ldt ();
6035 return 0;
6037 _ACEOF
6038 if ac_fn_c_try_link "$LINENO"; then :
6039 ac_cv_lib_i386_i386_set_ldt=yes
6040 else
6041 ac_cv_lib_i386_i386_set_ldt=no
6043 rm -f core conftest.err conftest.$ac_objext \
6044 conftest$ac_exeext conftest.$ac_ext
6045 LIBS=$ac_check_lib_save_LIBS
6047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_i386_i386_set_ldt" >&5
6048 $as_echo "$ac_cv_lib_i386_i386_set_ldt" >&6; }
6049 if test "x$ac_cv_lib_i386_i386_set_ldt" = xyes; then :
6050 cat >>confdefs.h <<_ACEOF
6051 #define HAVE_LIBI386 1
6052 _ACEOF
6054 LIBS="-li386 $LIBS"
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
6059 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
6060 if ${ac_cv_lib_ossaudio__oss_ioctl+:} false; then :
6061 $as_echo_n "(cached) " >&6
6062 else
6063 ac_check_lib_save_LIBS=$LIBS
6064 LIBS="-lossaudio $LIBS"
6065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6066 /* end confdefs.h. */
6068 /* Override any GCC internal prototype to avoid an error.
6069 Use char because int might match the return type of a GCC
6070 builtin and then its argument prototype would still apply. */
6071 #ifdef __cplusplus
6072 extern "C"
6073 #endif
6074 char _oss_ioctl ();
6076 main ()
6078 return _oss_ioctl ();
6080 return 0;
6082 _ACEOF
6083 if ac_fn_c_try_link "$LINENO"; then :
6084 ac_cv_lib_ossaudio__oss_ioctl=yes
6085 else
6086 ac_cv_lib_ossaudio__oss_ioctl=no
6088 rm -f core conftest.err conftest.$ac_objext \
6089 conftest$ac_exeext conftest.$ac_ext
6090 LIBS=$ac_check_lib_save_LIBS
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6093 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6094 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = xyes; then :
6095 cat >>confdefs.h <<_ACEOF
6096 #define HAVE_LIBOSSAUDIO 1
6097 _ACEOF
6099 LIBS="-lossaudio $LIBS"
6104 OPENGL_LIBS=""
6108 # Check whether --enable-largefile was given.
6109 if test "${enable_largefile+set}" = set; then :
6110 enableval=$enable_largefile;
6113 if test "$enable_largefile" != no; then
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6116 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6117 if ${ac_cv_sys_largefile_CC+:} false; then :
6118 $as_echo_n "(cached) " >&6
6119 else
6120 ac_cv_sys_largefile_CC=no
6121 if test "$GCC" != yes; then
6122 ac_save_CC=$CC
6123 while :; do
6124 # IRIX 6.2 and later do not support large files by default,
6125 # so use the C compiler's -n32 option if that helps.
6126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6127 /* end confdefs.h. */
6128 #include <sys/types.h>
6129 /* Check that off_t can represent 2**63 - 1 correctly.
6130 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6131 since some C++ compilers masquerading as C compilers
6132 incorrectly reject 9223372036854775807. */
6133 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
6134 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6135 && LARGE_OFF_T % 2147483647 == 1)
6136 ? 1 : -1];
6138 main ()
6142 return 0;
6144 _ACEOF
6145 if ac_fn_c_try_compile "$LINENO"; then :
6146 break
6148 rm -f core conftest.err conftest.$ac_objext
6149 CC="$CC -n32"
6150 if ac_fn_c_try_compile "$LINENO"; then :
6151 ac_cv_sys_largefile_CC=' -n32'; break
6153 rm -f core conftest.err conftest.$ac_objext
6154 break
6155 done
6156 CC=$ac_save_CC
6157 rm -f conftest.$ac_ext
6160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6161 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6162 if test "$ac_cv_sys_largefile_CC" != no; then
6163 CC=$CC$ac_cv_sys_largefile_CC
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6167 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6168 if ${ac_cv_sys_file_offset_bits+:} false; then :
6169 $as_echo_n "(cached) " >&6
6170 else
6171 while :; do
6172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6173 /* end confdefs.h. */
6174 #include <sys/types.h>
6175 /* Check that off_t can represent 2**63 - 1 correctly.
6176 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6177 since some C++ compilers masquerading as C compilers
6178 incorrectly reject 9223372036854775807. */
6179 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
6180 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6181 && LARGE_OFF_T % 2147483647 == 1)
6182 ? 1 : -1];
6184 main ()
6188 return 0;
6190 _ACEOF
6191 if ac_fn_c_try_compile "$LINENO"; then :
6192 ac_cv_sys_file_offset_bits=no; break
6194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6196 /* end confdefs.h. */
6197 #define _FILE_OFFSET_BITS 64
6198 #include <sys/types.h>
6199 /* Check that off_t can represent 2**63 - 1 correctly.
6200 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6201 since some C++ compilers masquerading as C compilers
6202 incorrectly reject 9223372036854775807. */
6203 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
6204 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6205 && LARGE_OFF_T % 2147483647 == 1)
6206 ? 1 : -1];
6208 main ()
6212 return 0;
6214 _ACEOF
6215 if ac_fn_c_try_compile "$LINENO"; then :
6216 ac_cv_sys_file_offset_bits=64; break
6218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6219 ac_cv_sys_file_offset_bits=unknown
6220 break
6221 done
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6224 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6225 case $ac_cv_sys_file_offset_bits in #(
6226 no | unknown) ;;
6228 cat >>confdefs.h <<_ACEOF
6229 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6230 _ACEOF
6232 esac
6233 rm -rf conftest*
6234 if test $ac_cv_sys_file_offset_bits = unknown; then
6235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6236 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6237 if ${ac_cv_sys_large_files+:} false; then :
6238 $as_echo_n "(cached) " >&6
6239 else
6240 while :; do
6241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6242 /* end confdefs.h. */
6243 #include <sys/types.h>
6244 /* Check that off_t can represent 2**63 - 1 correctly.
6245 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6246 since some C++ compilers masquerading as C compilers
6247 incorrectly reject 9223372036854775807. */
6248 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
6249 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6250 && LARGE_OFF_T % 2147483647 == 1)
6251 ? 1 : -1];
6253 main ()
6257 return 0;
6259 _ACEOF
6260 if ac_fn_c_try_compile "$LINENO"; then :
6261 ac_cv_sys_large_files=no; break
6263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6265 /* end confdefs.h. */
6266 #define _LARGE_FILES 1
6267 #include <sys/types.h>
6268 /* Check that off_t can represent 2**63 - 1 correctly.
6269 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6270 since some C++ compilers masquerading as C compilers
6271 incorrectly reject 9223372036854775807. */
6272 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
6273 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6274 && LARGE_OFF_T % 2147483647 == 1)
6275 ? 1 : -1];
6277 main ()
6281 return 0;
6283 _ACEOF
6284 if ac_fn_c_try_compile "$LINENO"; then :
6285 ac_cv_sys_large_files=1; break
6287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6288 ac_cv_sys_large_files=unknown
6289 break
6290 done
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6293 $as_echo "$ac_cv_sys_large_files" >&6; }
6294 case $ac_cv_sys_large_files in #(
6295 no | unknown) ;;
6297 cat >>confdefs.h <<_ACEOF
6298 #define _LARGE_FILES $ac_cv_sys_large_files
6299 _ACEOF
6301 esac
6302 rm -rf conftest*
6309 ac_ext=c
6310 ac_cpp='$CPP $CPPFLAGS'
6311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6315 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6316 # On Suns, sometimes $CPP names a directory.
6317 if test -n "$CPP" && test -d "$CPP"; then
6318 CPP=
6320 if test -z "$CPP"; then
6321 if ${ac_cv_prog_CPP+:} false; then :
6322 $as_echo_n "(cached) " >&6
6323 else
6324 # Double quotes because CPP needs to be expanded
6325 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6327 ac_preproc_ok=false
6328 for ac_c_preproc_warn_flag in '' yes
6330 # Use a header file that comes with gcc, so configuring glibc
6331 # with a fresh cross-compiler works.
6332 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6333 # <limits.h> exists even on freestanding compilers.
6334 # On the NeXT, cc -E runs the code through the compiler's parser,
6335 # not just through cpp. "Syntax error" is here to catch this case.
6336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6337 /* end confdefs.h. */
6338 #ifdef __STDC__
6339 # include <limits.h>
6340 #else
6341 # include <assert.h>
6342 #endif
6343 Syntax error
6344 _ACEOF
6345 if ac_fn_c_try_cpp "$LINENO"; then :
6347 else
6348 # Broken: fails on valid input.
6349 continue
6351 rm -f conftest.err conftest.i conftest.$ac_ext
6353 # OK, works on sane cases. Now check whether nonexistent headers
6354 # can be detected and how.
6355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6356 /* end confdefs.h. */
6357 #include <ac_nonexistent.h>
6358 _ACEOF
6359 if ac_fn_c_try_cpp "$LINENO"; then :
6360 # Broken: success on invalid input.
6361 continue
6362 else
6363 # Passes both tests.
6364 ac_preproc_ok=:
6365 break
6367 rm -f conftest.err conftest.i conftest.$ac_ext
6369 done
6370 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6371 rm -f conftest.i conftest.err conftest.$ac_ext
6372 if $ac_preproc_ok; then :
6373 break
6376 done
6377 ac_cv_prog_CPP=$CPP
6380 CPP=$ac_cv_prog_CPP
6381 else
6382 ac_cv_prog_CPP=$CPP
6384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6385 $as_echo "$CPP" >&6; }
6386 ac_preproc_ok=false
6387 for ac_c_preproc_warn_flag in '' yes
6389 # Use a header file that comes with gcc, so configuring glibc
6390 # with a fresh cross-compiler works.
6391 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6392 # <limits.h> exists even on freestanding compilers.
6393 # On the NeXT, cc -E runs the code through the compiler's parser,
6394 # not just through cpp. "Syntax error" is here to catch this case.
6395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6396 /* end confdefs.h. */
6397 #ifdef __STDC__
6398 # include <limits.h>
6399 #else
6400 # include <assert.h>
6401 #endif
6402 Syntax error
6403 _ACEOF
6404 if ac_fn_c_try_cpp "$LINENO"; then :
6406 else
6407 # Broken: fails on valid input.
6408 continue
6410 rm -f conftest.err conftest.i conftest.$ac_ext
6412 # OK, works on sane cases. Now check whether nonexistent headers
6413 # can be detected and how.
6414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6415 /* end confdefs.h. */
6416 #include <ac_nonexistent.h>
6417 _ACEOF
6418 if ac_fn_c_try_cpp "$LINENO"; then :
6419 # Broken: success on invalid input.
6420 continue
6421 else
6422 # Passes both tests.
6423 ac_preproc_ok=:
6424 break
6426 rm -f conftest.err conftest.i conftest.$ac_ext
6428 done
6429 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6430 rm -f conftest.i conftest.err conftest.$ac_ext
6431 if $ac_preproc_ok; then :
6433 else
6434 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6435 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6436 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6437 See \`config.log' for more details" "$LINENO" 5; }
6440 ac_ext=c
6441 ac_cpp='$CPP $CPPFLAGS'
6442 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6443 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6444 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6448 $as_echo_n "checking for ANSI C header files... " >&6; }
6449 if ${ac_cv_header_stdc+:} false; then :
6450 $as_echo_n "(cached) " >&6
6451 else
6452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6453 /* end confdefs.h. */
6454 #include <stdlib.h>
6455 #include <stdarg.h>
6456 #include <string.h>
6457 #include <float.h>
6460 main ()
6464 return 0;
6466 _ACEOF
6467 if ac_fn_c_try_compile "$LINENO"; then :
6468 ac_cv_header_stdc=yes
6469 else
6470 ac_cv_header_stdc=no
6472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6474 if test $ac_cv_header_stdc = yes; then
6475 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6477 /* end confdefs.h. */
6478 #include <string.h>
6480 _ACEOF
6481 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6482 $EGREP "memchr" >/dev/null 2>&1; then :
6484 else
6485 ac_cv_header_stdc=no
6487 rm -f conftest*
6491 if test $ac_cv_header_stdc = yes; then
6492 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6494 /* end confdefs.h. */
6495 #include <stdlib.h>
6497 _ACEOF
6498 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6499 $EGREP "free" >/dev/null 2>&1; then :
6501 else
6502 ac_cv_header_stdc=no
6504 rm -f conftest*
6508 if test $ac_cv_header_stdc = yes; then
6509 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6510 if test "$cross_compiling" = yes; then :
6512 else
6513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6514 /* end confdefs.h. */
6515 #include <ctype.h>
6516 #include <stdlib.h>
6517 #if ((' ' & 0x0FF) == 0x020)
6518 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6519 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6520 #else
6521 # define ISLOWER(c) \
6522 (('a' <= (c) && (c) <= 'i') \
6523 || ('j' <= (c) && (c) <= 'r') \
6524 || ('s' <= (c) && (c) <= 'z'))
6525 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6526 #endif
6528 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6530 main ()
6532 int i;
6533 for (i = 0; i < 256; i++)
6534 if (XOR (islower (i), ISLOWER (i))
6535 || toupper (i) != TOUPPER (i))
6536 return 2;
6537 return 0;
6539 _ACEOF
6540 if ac_fn_c_try_run "$LINENO"; then :
6542 else
6543 ac_cv_header_stdc=no
6545 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6546 conftest.$ac_objext conftest.beam conftest.$ac_ext
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6552 $as_echo "$ac_cv_header_stdc" >&6; }
6553 if test $ac_cv_header_stdc = yes; then
6555 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6559 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6560 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6561 inttypes.h stdint.h unistd.h
6562 do :
6563 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6564 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6566 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6567 cat >>confdefs.h <<_ACEOF
6568 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6569 _ACEOF
6573 done
6576 for ac_header in \
6577 AL/al.h \
6578 ApplicationServices/ApplicationServices.h \
6579 AudioToolbox/AudioConverter.h \
6580 AudioUnit/AudioUnit.h \
6581 AudioUnit/AudioComponent.h \
6582 CL/cl.h \
6583 Carbon/Carbon.h \
6584 CoreAudio/CoreAudio.h \
6585 CoreServices/CoreServices.h \
6586 DiskArbitration/DiskArbitration.h \
6587 IOKit/IOKitLib.h \
6588 IOKit/hid/IOHIDLib.h \
6589 OpenAL/al.h \
6590 OpenCL/opencl.h \
6591 QuickTime/ImageCompression.h \
6592 Security/Security.h \
6593 alias.h \
6594 alsa/asoundlib.h \
6595 arpa/inet.h \
6596 arpa/nameser.h \
6597 asm/types.h \
6598 asm/user.h \
6599 curses.h \
6600 direct.h \
6601 dirent.h \
6602 dlfcn.h \
6603 elf.h \
6604 float.h \
6605 fnmatch.h \
6606 getopt.h \
6607 gettext-po.h \
6608 grp.h \
6609 gsm.h \
6610 gsm/gsm.h \
6611 ieeefp.h \
6612 inet/mib2.h \
6613 io.h \
6614 kstat.h \
6615 lber.h \
6616 ldap.h \
6617 libproc.h \
6618 link.h \
6619 linux/cdrom.h \
6620 linux/compiler.h \
6621 linux/filter.h \
6622 linux/hdreg.h \
6623 linux/input.h \
6624 linux/ioctl.h \
6625 linux/joystick.h \
6626 linux/major.h \
6627 linux/param.h \
6628 linux/serial.h \
6629 linux/types.h \
6630 linux/ucdrom.h \
6631 lwp.h \
6632 mach-o/nlist.h \
6633 mach-o/loader.h \
6634 mach/mach.h \
6635 mach/machine.h \
6636 machine/cpu.h \
6637 machine/limits.h \
6638 machine/sysarch.h \
6639 mntent.h \
6640 ncurses.h \
6641 netdb.h \
6642 netinet/in.h \
6643 netinet/in_systm.h \
6644 netinet/tcp.h \
6645 netinet/tcp_fsm.h \
6646 pcap/pcap.h \
6647 poll.h \
6648 port.h \
6649 process.h \
6650 pthread.h \
6651 pwd.h \
6652 sched.h \
6653 scsi/scsi.h \
6654 scsi/scsi_ioctl.h \
6655 scsi/sg.h \
6656 stdbool.h \
6657 stdint.h \
6658 stropts.h \
6659 sys/asoundlib.h \
6660 sys/attr.h \
6661 sys/cdio.h \
6662 sys/elf32.h \
6663 sys/epoll.h \
6664 sys/event.h \
6665 sys/exec_elf.h \
6666 sys/filio.h \
6667 sys/inotify.h \
6668 sys/ioctl.h \
6669 sys/ipc.h \
6670 sys/limits.h \
6671 sys/link.h \
6672 sys/mman.h \
6673 sys/modem.h \
6674 sys/msg.h \
6675 sys/mtio.h \
6676 sys/param.h \
6677 sys/poll.h \
6678 sys/prctl.h \
6679 sys/protosw.h \
6680 sys/ptrace.h \
6681 sys/queue.h \
6682 sys/resource.h \
6683 sys/scsiio.h \
6684 sys/shm.h \
6685 sys/signal.h \
6686 sys/socket.h \
6687 sys/socketvar.h \
6688 sys/sockio.h \
6689 sys/statvfs.h \
6690 sys/strtio.h \
6691 sys/syscall.h \
6692 sys/tihdr.h \
6693 sys/time.h \
6694 sys/timeout.h \
6695 sys/times.h \
6696 sys/uio.h \
6697 sys/user.h \
6698 sys/utsname.h \
6699 sys/vm86.h \
6700 sys/wait.h \
6701 syscall.h \
6702 termios.h \
6703 unistd.h \
6704 utime.h \
6705 valgrind/memcheck.h \
6706 valgrind/valgrind.h \
6707 zlib.h
6709 do :
6710 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6711 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6712 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6713 cat >>confdefs.h <<_ACEOF
6714 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6715 _ACEOF
6719 done
6721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
6722 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
6723 if ${ac_cv_header_stat_broken+:} false; then :
6724 $as_echo_n "(cached) " >&6
6725 else
6726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6727 /* end confdefs.h. */
6728 #include <sys/types.h>
6729 #include <sys/stat.h>
6731 #if defined S_ISBLK && defined S_IFDIR
6732 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6733 #endif
6735 #if defined S_ISBLK && defined S_IFCHR
6736 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6737 #endif
6739 #if defined S_ISLNK && defined S_IFREG
6740 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6741 #endif
6743 #if defined S_ISSOCK && defined S_IFREG
6744 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6745 #endif
6747 _ACEOF
6748 if ac_fn_c_try_compile "$LINENO"; then :
6749 ac_cv_header_stat_broken=no
6750 else
6751 ac_cv_header_stat_broken=yes
6753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
6756 $as_echo "$ac_cv_header_stat_broken" >&6; }
6757 if test $ac_cv_header_stat_broken = yes; then
6759 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6765 for ac_header in sys/mount.h sys/statfs.h sys/sysctl.h sys/user.h sys/vfs.h
6766 do :
6767 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6768 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6769 #ifdef HAVE_SYS_PARAM_H
6770 # include <sys/param.h>
6771 #endif
6773 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6774 cat >>confdefs.h <<_ACEOF
6775 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6776 _ACEOF
6780 done
6783 for ac_header in \
6784 netinet/ip.h \
6785 net/if.h \
6786 net/if_arp.h \
6787 net/if_dl.h \
6788 net/if_types.h \
6789 net/route.h \
6790 netinet/if_ether.h \
6791 netinet/if_inarp.h \
6792 netinet/in_pcb.h \
6793 netinet/ip_icmp.h \
6794 netinet/ip_var.h \
6795 netinet/udp.h \
6796 netipx/ipx.h \
6797 sys/un.h \
6799 do :
6800 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6801 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6802 #ifdef HAVE_SYS_SOCKET_H
6803 # include <sys/socket.h>
6804 #endif
6805 #ifdef HAVE_SYS_SOCKETVAR_H
6806 # include <sys/socketvar.h>
6807 #endif
6808 #ifdef HAVE_NET_ROUTE_H
6809 # include <net/route.h>
6810 #endif
6811 #ifdef HAVE_NETINET_IN_H
6812 # include <netinet/in.h>
6813 #endif
6814 #ifdef HAVE_NETINET_IN_SYSTM_H
6815 # include <netinet/in_systm.h>
6816 #endif
6817 #ifdef HAVE_NET_IF_H
6818 # include <net/if.h>
6819 #endif
6820 #ifdef HAVE_NETINET_IP_H
6821 # include <netinet/ip.h>
6822 #endif
6824 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6825 cat >>confdefs.h <<_ACEOF
6826 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6827 _ACEOF
6831 done
6834 for ac_header in netinet/tcp_timer.h netinet/udp_var.h netinet/icmp_var.h netinet/tcp_var.h
6835 do :
6836 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6837 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6838 #ifdef HAVE_ALIAS_H
6839 # include <alias.h>
6840 #endif
6841 #ifdef HAVE_SYS_SOCKET_H
6842 # include <sys/socket.h>
6843 #endif
6844 #ifdef HAVE_SYS_SOCKETVAR_H
6845 # include <sys/socketvar.h>
6846 #endif
6847 #ifdef HAVE_SYS_TIMEOUT_H
6848 # include <sys/timeout.h>
6849 #endif
6850 #ifdef HAVE_NETINET_IN_H
6851 # include <netinet/in.h>
6852 #endif
6853 #ifdef HAVE_NETINET_IN_SYSTM_H
6854 # include <netinet/in_systm.h>
6855 #endif
6856 #ifdef HAVE_NETINET_IP_H
6857 # include <netinet/ip.h>
6858 #endif
6859 #ifdef HAVE_NETINET_IP_VAR_H
6860 # include <netinet/ip_var.h>
6861 #endif
6862 #ifdef HAVE_NETINET_IP_ICMP_H
6863 # include <netinet/ip_icmp.h>
6864 #endif
6865 #ifdef HAVE_NETINET_UDP_H
6866 # include <netinet/udp.h>
6867 #endif
6868 #ifdef HAVE_NETINET_TCP_H
6869 # include <netinet/tcp.h>
6870 #endif
6871 #ifdef HAVE_NETINET_TCP_TIMER_H
6872 #include <netinet/tcp_timer.h>
6873 #endif
6875 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6876 cat >>confdefs.h <<_ACEOF
6877 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6878 _ACEOF
6882 done
6885 for ac_header in linux/ipx.h linux/irda.h linux/rtnetlink.h
6886 do :
6887 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6888 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6889 #ifdef HAVE_ASM_TYPES_H
6890 # include <asm/types.h>
6891 #endif
6892 #ifdef HAVE_SYS_SOCKET_H
6893 # include <sys/socket.h>
6894 #endif
6895 #ifdef HAVE_LINUX_TYPES_H
6896 # include <linux/types.h>
6897 #endif
6899 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6900 cat >>confdefs.h <<_ACEOF
6901 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6902 _ACEOF
6906 done
6909 for ac_header in mach-o/dyld_images.h
6910 do :
6911 ac_fn_c_check_header_compile "$LINENO" "mach-o/dyld_images.h" "ac_cv_header_mach_o_dyld_images_h" "#ifdef HAVE_STDBOOL_H
6912 # include <stdbool.h>
6913 #endif
6914 #ifdef HAVE_STDINT_H
6915 # include <stdint.h>
6916 #endif
6918 if test "x$ac_cv_header_mach_o_dyld_images_h" = xyes; then :
6919 cat >>confdefs.h <<_ACEOF
6920 #define HAVE_MACH_O_DYLD_IMAGES_H 1
6921 _ACEOF
6925 done
6928 for ac_header in resolv.h
6929 do :
6930 ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "#include <sys/types.h>
6931 #ifdef HAVE_SYS_SOCKET_H
6932 # include <sys/socket.h>
6933 #endif
6934 #ifdef HAVE_NETINET_IN_H
6935 # include <netinet/in.h>
6936 #endif
6937 #ifdef HAVE_ARPA_NAMESER_H
6938 # include <arpa/nameser.h>
6939 #endif
6941 if test "x$ac_cv_header_resolv_h" = xyes; then :
6942 cat >>confdefs.h <<_ACEOF
6943 #define HAVE_RESOLV_H 1
6944 _ACEOF
6948 done
6951 for ac_header in ifaddrs.h
6952 do :
6953 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "#include <sys/types.h>
6955 if test "x$ac_cv_header_ifaddrs_h" = xyes; then :
6956 cat >>confdefs.h <<_ACEOF
6957 #define HAVE_IFADDRS_H 1
6958 _ACEOF
6962 done
6965 for ac_header in sys/ucontext.h
6966 do :
6967 ac_fn_c_check_header_compile "$LINENO" "sys/ucontext.h" "ac_cv_header_sys_ucontext_h" "#include <signal.h>
6969 if test "x$ac_cv_header_sys_ucontext_h" = xyes; then :
6970 cat >>confdefs.h <<_ACEOF
6971 #define HAVE_SYS_UCONTEXT_H 1
6972 _ACEOF
6976 done
6979 for ac_header in sys/thr.h
6980 do :
6981 ac_fn_c_check_header_compile "$LINENO" "sys/thr.h" "ac_cv_header_sys_thr_h" "#include <sys/types.h>
6982 #ifdef HAVE_SYS_UCONTEXT_H
6983 #include <sys/ucontext.h>
6984 #endif
6986 if test "x$ac_cv_header_sys_thr_h" = xyes; then :
6987 cat >>confdefs.h <<_ACEOF
6988 #define HAVE_SYS_THR_H 1
6989 _ACEOF
6993 done
6996 for ac_header in pthread_np.h
6997 do :
6998 ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" "#ifdef HAVE_PTHREAD_H
6999 #include <pthread.h>
7000 #endif
7002 if test "x$ac_cv_header_pthread_np_h" = xyes; then :
7003 cat >>confdefs.h <<_ACEOF
7004 #define HAVE_PTHREAD_NP_H 1
7005 _ACEOF
7009 done
7012 for ac_header in linux/videodev.h linux/videodev2.h libv4l1.h
7013 do :
7014 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7015 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_TIME_H
7016 #include <sys/time.h>
7017 #endif
7018 #include <sys/types.h>
7019 #ifdef HAVE_ASM_TYPES_H
7020 #include <asm/types.h>
7021 #endif
7023 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7024 cat >>confdefs.h <<_ACEOF
7025 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7026 _ACEOF
7030 done
7033 for ac_header in libprocstat.h
7034 do :
7035 ac_fn_c_check_header_compile "$LINENO" "libprocstat.h" "ac_cv_header_libprocstat_h" "#ifdef HAVE_SYS_PARAM_H
7036 #include <sys/param.h>
7037 #endif
7038 #ifdef HAVE_SYS_QUEUE_H
7039 #include <sys/queue.h>
7040 #endif
7041 #ifdef HAVE_SYS_SOCKET_H
7042 #include <sys/socket.h>
7043 #endif
7045 if test "x$ac_cv_header_libprocstat_h" = xyes; then :
7046 cat >>confdefs.h <<_ACEOF
7047 #define HAVE_LIBPROCSTAT_H 1
7048 _ACEOF
7052 done
7056 dlldir="\${libdir}/wine"
7058 DLLPREFIX=""
7060 DLLFLAGS="-D_REENTRANT"
7062 LDRPATH_INSTALL=""
7064 LDRPATH_LOCAL=""
7066 LIBEXT="so"
7067 DLLEXT=".so"
7068 IMPLIBEXT="def"
7069 STATIC_IMPLIBEXT="def.a"
7070 # Extract the first word of "ldd", so it can be a program name with args.
7071 set dummy ldd; ac_word=$2
7072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7073 $as_echo_n "checking for $ac_word... " >&6; }
7074 if ${ac_cv_path_LDD+:} false; then :
7075 $as_echo_n "(cached) " >&6
7076 else
7077 case $LDD in
7078 [\\/]* | ?:[\\/]*)
7079 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
7082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7083 as_dummy="/sbin:/usr/sbin:$PATH"
7084 for as_dir in $as_dummy
7086 IFS=$as_save_IFS
7087 test -z "$as_dir" && as_dir=.
7088 for ac_exec_ext in '' $ac_executable_extensions; do
7089 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7090 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
7091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7092 break 2
7094 done
7095 done
7096 IFS=$as_save_IFS
7098 test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
7100 esac
7102 LDD=$ac_cv_path_LDD
7103 if test -n "$LDD"; then
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
7105 $as_echo "$LDD" >&6; }
7106 else
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7108 $as_echo "no" >&6; }
7112 if test -n "$ac_tool_prefix"; then
7113 # Extract the first word of "${ac_tool_prefix}readelf", so it can be a program name with args.
7114 set dummy ${ac_tool_prefix}readelf; ac_word=$2
7115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7116 $as_echo_n "checking for $ac_word... " >&6; }
7117 if ${ac_cv_prog_READELF+:} false; then :
7118 $as_echo_n "(cached) " >&6
7119 else
7120 if test -n "$READELF"; then
7121 ac_cv_prog_READELF="$READELF" # Let the user override the test.
7122 else
7123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7124 for as_dir in $PATH
7126 IFS=$as_save_IFS
7127 test -z "$as_dir" && as_dir=.
7128 for ac_exec_ext in '' $ac_executable_extensions; do
7129 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7130 ac_cv_prog_READELF="${ac_tool_prefix}readelf"
7131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7132 break 2
7134 done
7135 done
7136 IFS=$as_save_IFS
7140 READELF=$ac_cv_prog_READELF
7141 if test -n "$READELF"; then
7142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
7143 $as_echo "$READELF" >&6; }
7144 else
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7146 $as_echo "no" >&6; }
7151 if test -z "$ac_cv_prog_READELF"; then
7152 ac_ct_READELF=$READELF
7153 # Extract the first word of "readelf", so it can be a program name with args.
7154 set dummy readelf; ac_word=$2
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7156 $as_echo_n "checking for $ac_word... " >&6; }
7157 if ${ac_cv_prog_ac_ct_READELF+:} false; then :
7158 $as_echo_n "(cached) " >&6
7159 else
7160 if test -n "$ac_ct_READELF"; then
7161 ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test.
7162 else
7163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7164 for as_dir in $PATH
7166 IFS=$as_save_IFS
7167 test -z "$as_dir" && as_dir=.
7168 for ac_exec_ext in '' $ac_executable_extensions; do
7169 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7170 ac_cv_prog_ac_ct_READELF="readelf"
7171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7172 break 2
7174 done
7175 done
7176 IFS=$as_save_IFS
7180 ac_ct_READELF=$ac_cv_prog_ac_ct_READELF
7181 if test -n "$ac_ct_READELF"; then
7182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_READELF" >&5
7183 $as_echo "$ac_ct_READELF" >&6; }
7184 else
7185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7186 $as_echo "no" >&6; }
7189 if test "x$ac_ct_READELF" = x; then
7190 READELF="true"
7191 else
7192 case $cross_compiling:$ac_tool_warned in
7193 yes:)
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7195 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7196 ac_tool_warned=yes ;;
7197 esac
7198 READELF=$ac_ct_READELF
7200 else
7201 READELF="$ac_cv_prog_READELF"
7204 wine_rules_file=conf$$rules.make
7205 rm -f $wine_rules_file
7206 ALL_POT_FILES=""
7207 GITIGNORE="# Automatically generated by configure; DO NOT EDIT!!"
7208 ALL_TEST_RESOURCES=""
7211 wine_fn_append_file ()
7213 as_fn_append $1 " \\$as_nl $2"
7216 wine_fn_ignore_file ()
7218 case "$1" in
7219 */*) as_fn_append GITIGNORE "$as_nl$1" ;;
7220 \**) as_fn_append GITIGNORE "$as_nl$1" ;;
7221 *) as_fn_append GITIGNORE "$as_nl/$1" ;;
7222 esac
7225 wine_fn_append_rule ()
7227 $as_echo "$1" >>$wine_rules_file
7230 wine_fn_has_flag ()
7232 expr ",$ac_flags," : ".*,$1,.*" >/dev/null
7235 wine_fn_depend_rules ()
7237 wine_fn_append_rule \
7238 "$ac_dir/Makefile: $srcdir/$ac_dir/Makefile.in $srcdir/Make.vars.in config.status \$(MAKEDEP)
7239 @./config.status --file $ac_dir/Makefile:Make.vars.in:$ac_dir/Makefile.in && \$(MAKEDEP) $ac_dir
7240 depend: $ac_dir/depend
7241 .PHONY: $ac_dir/depend
7242 $ac_dir/depend: \$(MAKEDEP) dummy
7243 @./config.status --file $ac_dir/Makefile:Make.vars.in:$ac_dir/Makefile.in && \$(MAKEDEP) $ac_dir"
7246 wine_fn_pot_rules ()
7248 test "x$with_gettextpo" = xyes || return
7250 if wine_fn_has_flag mc
7251 then
7252 wine_fn_append_file ALL_POT_FILES $ac_dir/msg.pot
7253 wine_fn_append_rule \
7254 "$ac_dir/msg.pot: $ac_dir/Makefile dummy
7255 @cd $ac_dir && \$(MAKE) msg.pot
7256 $ac_dir/msg.pot: tools/wmc include"
7258 if wine_fn_has_flag po
7259 then
7260 wine_fn_append_file ALL_POT_FILES $ac_dir/rsrc.pot
7261 wine_fn_append_rule \
7262 "$ac_dir/rsrc.pot: $ac_dir/Makefile dummy
7263 @cd $ac_dir && \$(MAKE) rsrc.pot
7264 $ac_dir/rsrc.pot: tools/wrc include"
7268 wine_fn_all_rules ()
7270 wine_fn_depend_rules
7271 wine_fn_append_rule \
7272 "all: $ac_dir
7273 .PHONY: $ac_dir
7274 $ac_dir: $ac_dir/Makefile dummy
7275 @cd $ac_dir && \$(MAKE)"
7278 wine_fn_install_rules ()
7280 wine_fn_has_flag install-lib || wine_fn_has_flag install-dev || return
7282 wine_fn_append_rule \
7283 ".PHONY: $ac_dir/install $ac_dir/uninstall
7284 $ac_dir/install:: $ac_dir
7285 @cd $ac_dir && \$(MAKE) install
7286 $ac_dir/uninstall:: $ac_dir/Makefile
7287 @cd $ac_dir && \$(MAKE) uninstall
7288 install:: $ac_dir/install
7289 __uninstall__: $ac_dir/uninstall"
7291 if wine_fn_has_flag install-lib
7292 then
7293 wine_fn_append_rule \
7294 ".PHONY: $ac_dir/install-lib
7295 $ac_dir/install-lib:: $ac_dir
7296 @cd $ac_dir && \$(MAKE) install-lib
7297 install-lib:: $ac_dir/install-lib"
7300 if wine_fn_has_flag install-dev
7301 then
7302 wine_fn_append_rule \
7303 ".PHONY: $ac_dir/install-dev
7304 $ac_dir/install-dev:: $ac_dir
7305 @cd $ac_dir && \$(MAKE) install-dev
7306 install-dev:: $ac_dir/install-dev"
7310 wine_fn_clean_rules ()
7312 ac_clean=$@
7313 ac_extraclean="$ac_dir/Makefile"
7314 test "$srcdir" = . && ac_extraclean="$ac_extraclean $ac_dir/.gitignore"
7315 case $ac_dir in
7316 */tests) ac_extraclean="$ac_extraclean $ac_dir/testlist.c" ;;
7317 esac
7319 if wine_fn_has_flag clean
7320 then
7321 wine_fn_append_rule \
7322 "__clean__: $ac_dir/clean
7323 .PHONY: $ac_dir/clean
7324 $ac_dir/clean: $ac_dir/Makefile
7325 @cd $ac_dir && \$(MAKE) clean
7326 \$(RM) $ac_extraclean"
7327 else
7328 wine_fn_append_rule \
7329 "__clean__: $ac_dir/clean
7330 .PHONY: $ac_dir/clean
7331 $ac_dir/clean: dummy
7332 \$(RM) \$(CLEAN_FILES:%=$ac_dir/%) $ac_clean $ac_extraclean"
7336 wine_fn_disabled_rules ()
7338 ac_clean=$@
7339 ac_extraclean="$ac_dir/Makefile"
7340 test "$srcdir" = . && ac_extraclean="$ac_extraclean $ac_dir/.gitignore"
7342 wine_fn_append_rule \
7343 "__clean__: $ac_dir/clean
7344 .PHONY: $ac_dir/clean
7345 $ac_dir/clean: dummy
7346 \$(RM) \$(CLEAN_FILES:%=$ac_dir/%) $ac_clean $ac_extraclean"
7349 wine_fn_config_makefile ()
7351 ac_dir=$1
7352 ac_enable=$2
7353 ac_flags=$3
7355 if eval test \"x\$"$ac_enable"\" = x"no"; then :
7356 wine_fn_disabled_rules; return
7358 wine_fn_all_rules
7359 wine_fn_install_rules
7360 wine_fn_clean_rules
7363 wine_fn_config_lib ()
7365 ac_name=$1
7366 ac_flags=$2
7367 ac_dir=dlls/$ac_name
7368 ac_deps="include"
7370 if test "x$enable_tools" = xno; then :
7372 else
7373 ac_deps="tools/widl tools/winebuild tools/winegcc $ac_deps"
7375 wine_fn_all_rules
7376 wine_fn_clean_rules
7378 wine_fn_append_rule \
7379 ".PHONY: $ac_dir/install $ac_dir/uninstall
7380 $ac_dir/install:: $ac_dir
7381 \$(INSTALL_DATA) $ac_dir/lib$ac_name.a \$(DESTDIR)\$(dlldir)/lib$ac_name.a
7382 $ac_dir/uninstall::
7383 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_name.a
7384 install install-dev:: $ac_dir/install
7385 __uninstall__: $ac_dir/uninstall
7386 __builddeps__: $ac_dir
7387 $ac_dir: $ac_deps"
7390 wine_fn_config_dll ()
7392 ac_name=$1
7393 ac_dir=dlls/$ac_name
7394 ac_enable=$2
7395 ac_flags=$3
7396 ac_implib=${4:-$ac_name}
7397 ac_file=$ac_dir/lib$ac_implib
7398 ac_dll=$ac_name
7399 ac_deps="include"
7400 ac_implibflags=""
7402 if test "x$enable_tools" = xno; then :
7404 else
7405 ac_deps="tools/widl tools/winebuild tools/winegcc $ac_deps"
7407 case $ac_name in
7408 *16) ac_implibflags=" -m16" ;;
7409 *.*) ;;
7410 *) ac_dll=$ac_dll.dll ;;
7411 esac
7413 ac_clean=
7414 wine_fn_has_flag implib && ac_clean="$ac_clean $ac_file.$IMPLIBEXT"
7415 wine_fn_has_flag mc && ac_clean="$ac_clean $ac_dir/msg.pot"
7416 wine_fn_has_flag po && ac_clean="$ac_clean $ac_dir/rsrc.pot"
7417 test -n "$DLLEXT" || ac_clean="$ac_clean $ac_dir/$ac_dll"
7419 if eval test \"x\$"$ac_enable"\" = x"no"; then :
7420 if wine_fn_has_flag implib && test "$ac_enable" != enable_win16
7421 then
7422 wine_fn_depend_rules
7423 wine_fn_clean_rules $ac_clean
7424 else
7425 wine_fn_disabled_rules $ac_clean
7426 return
7428 else
7429 wine_fn_all_rules
7430 wine_fn_clean_rules $ac_clean
7431 wine_fn_append_rule \
7432 "$ac_dir: __builddeps__
7433 manpages htmlpages sgmlpages xmlpages:: $ac_dir/Makefile
7434 @cd $ac_dir && \$(MAKE) \$@
7435 .PHONY: $ac_dir/install-lib $ac_dir/uninstall
7436 install install-lib:: $ac_dir/install-lib
7437 __uninstall__: $ac_dir/uninstall"
7438 if test -n "$DLLEXT"
7439 then
7440 wine_fn_append_rule \
7441 "$ac_dir/install-lib:: $ac_dir
7442 \$(INSTALL_PROGRAM) $ac_dir/$ac_dll$DLLEXT \$(DESTDIR)\$(dlldir)/$DLLPREFIX$ac_dll$DLLEXT
7443 \$(INSTALL_DATA) $ac_dir/$ac_dll.fake \$(DESTDIR)\$(fakedlldir)/$ac_dll
7444 $ac_dir/uninstall::
7445 \$(RM) \$(DESTDIR)\$(dlldir)/$DLLPREFIX$ac_dll$DLLEXT \$(DESTDIR)\$(fakedlldir)/$ac_dll"
7446 else
7447 wine_fn_append_rule \
7448 "$ac_dir/install-lib:: $ac_dir
7449 \$(INSTALL_PROGRAM) $ac_dir/$ac_dll \$(DESTDIR)\$(dlldir)/$ac_dll
7450 $ac_dir/uninstall::
7451 \$(RM) \$(DESTDIR)\$(dlldir)/$ac_dll"
7454 wine_fn_pot_rules
7457 if wine_fn_has_flag staticimplib
7458 then
7459 wine_fn_append_rule \
7460 "__builddeps__: $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT
7461 $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT $ac_file.cross.a: $ac_deps
7462 $ac_file.def: $srcdir/$ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
7463 \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --def -o \$@ --export $srcdir/$ac_dir/$ac_name.spec
7464 $ac_file.$STATIC_IMPLIBEXT: $ac_dir/Makefile dummy
7465 @cd $ac_dir && \$(MAKE) lib$ac_implib.$STATIC_IMPLIBEXT
7466 .PHONY: $ac_dir/install-dev $ac_dir/uninstall
7467 $ac_dir/install-dev:: $ac_file.$IMPLIBEXT
7468 \$(INSTALL_DATA) $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
7469 $ac_dir/uninstall::
7470 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
7471 install install-dev:: $ac_dir/install-dev
7472 __uninstall__: $ac_dir/uninstall"
7474 if test "$IMPLIBEXT" != "$STATIC_IMPLIBEXT"
7475 then
7476 wine_fn_append_rule \
7477 "$ac_dir/install-dev:: $ac_file.$STATIC_IMPLIBEXT __builddeps__
7478 \$(INSTALL_DATA) $ac_file.$STATIC_IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$STATIC_IMPLIBEXT
7479 $ac_dir/uninstall::
7480 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$STATIC_IMPLIBEXT"
7483 if test -n "$CROSSTARGET" -a -z "$ac_implibflags"
7484 then
7485 wine_fn_append_rule \
7486 "__builddeps__: $ac_file.cross.a
7487 $ac_file.cross.a: $ac_dir/Makefile dummy
7488 @cd $ac_dir && \$(MAKE) lib$ac_implib.cross.a"
7491 elif wine_fn_has_flag implib
7492 then
7493 wine_fn_append_rule \
7494 "__builddeps__: $ac_file.$IMPLIBEXT
7495 $ac_file.def: $srcdir/$ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
7496 \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --def -o \$@ --export $srcdir/$ac_dir/$ac_name.spec
7497 $ac_file.a: $srcdir/$ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
7498 \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --implib -o \$@ --export $srcdir/$ac_dir/$ac_name.spec
7499 .PHONY: $ac_dir/install-dev $ac_dir/uninstall
7500 $ac_dir/install-dev:: $ac_file.$IMPLIBEXT
7501 \$(INSTALL_DATA) $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
7502 $ac_dir/uninstall::
7503 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
7504 install install-dev:: $ac_dir/install-dev
7505 __uninstall__: $ac_dir/uninstall"
7506 if test -n "$CROSSTARGET" -a -z "$ac_implibflags"
7507 then
7508 wine_fn_append_rule \
7509 "__builddeps__: $ac_file.cross.a
7510 $ac_file.cross.a: $srcdir/$ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
7511 \$(WINEBUILD) \$(CROSSTARGET:%=-b %)$ac_implibflags -w --implib -o \$@ --export $srcdir/$ac_dir/$ac_name.spec"
7514 if test "$ac_name" != "$ac_implib"
7515 then
7516 wine_fn_append_rule \
7517 "__builddeps__: dlls/lib$ac_implib.$IMPLIBEXT
7518 dlls/lib$ac_implib.$IMPLIBEXT: $ac_file.$IMPLIBEXT
7519 \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.$IMPLIBEXT \$@
7520 clean::
7521 \$(RM) dlls/lib$ac_implib.$IMPLIBEXT"
7522 wine_fn_ignore_file "dlls/lib$ac_implib.$IMPLIBEXT"
7523 if test -n "$CROSSTARGET" -a -z "$ac_implibflags"
7524 then
7525 wine_fn_append_rule \
7526 "__builddeps__: dlls/lib$ac_implib.cross.a
7527 dlls/lib$ac_implib.cross.a: $ac_file.cross.a
7528 \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.cross.a \$@
7529 clean::
7530 \$(RM) dlls/lib$ac_implib.cross.a"
7531 wine_fn_ignore_file "dlls/lib$ac_implib.cross.a"
7537 wine_fn_config_program ()
7539 ac_name=$1
7540 ac_dir=programs/$ac_name
7541 ac_enable=$2
7542 ac_flags=$3
7543 ac_program=$ac_name
7545 case $ac_name in
7546 *.*) ;;
7547 *) ac_program=$ac_program.exe ;;
7548 esac
7550 ac_clean=
7551 wine_fn_has_flag mc && ac_clean="$ac_clean $ac_dir/msg.pot"
7552 wine_fn_has_flag po && ac_clean="$ac_clean $ac_dir/rsrc.pot"
7553 wine_fn_has_flag manpage && ac_clean="$ac_clean $ac_dir/$ac_name.man"
7554 test -n "$DLLEXT" || ac_clean="$ac_clean $ac_dir/$ac_program"
7556 if eval test \"x\$"$ac_enable"\" = x"no"; then :
7557 wine_fn_disabled_rules $ac_clean; return
7560 wine_fn_all_rules
7561 wine_fn_clean_rules $ac_clean
7562 wine_fn_append_rule "$ac_dir: __builddeps__"
7563 wine_fn_pot_rules
7565 wine_fn_has_flag install || return
7566 wine_fn_append_rule \
7567 ".PHONY: $ac_dir/install $ac_dir/uninstall
7568 install install-lib:: $ac_dir/install
7569 __uninstall__: $ac_dir/uninstall"
7571 if test -n "$DLLEXT"
7572 then
7573 wine_fn_append_rule \
7574 "$ac_dir/install:: $ac_dir
7575 \$(INSTALL_PROGRAM) $ac_dir/$ac_program$DLLEXT \$(DESTDIR)\$(dlldir)/$DLLPREFIX$ac_program$DLLEXT
7576 \$(INSTALL_DATA) $ac_dir/$ac_program.fake \$(DESTDIR)\$(fakedlldir)/$ac_program
7577 $ac_dir/uninstall::
7578 \$(RM) \$(DESTDIR)\$(dlldir)/$DLLPREFIX$ac_program$DLLEXT \$(DESTDIR)\$(fakedlldir)/$ac_program"
7580 if test -z "$with_wine64" && wine_fn_has_flag installbin
7581 then
7582 wine_fn_append_rule \
7583 "$ac_dir/install:: __tooldeps__
7584 \$(INSTALL_SCRIPT) \$(TOOLSDIR)/tools/wineapploader \$(DESTDIR)\$(bindir)/$ac_name
7585 $ac_dir/uninstall::
7586 \$(RM) \$(DESTDIR)\$(bindir)/$ac_name"
7588 else
7589 wine_fn_append_rule \
7590 "$ac_dir/install:: $ac_dir
7591 \$(INSTALL_PROGRAM) $ac_dir/$ac_program \$(DESTDIR)\$(bindir)/$ac_program
7592 $ac_dir/uninstall::
7593 \$(RM) \$(DESTDIR)\$(bindir)/$ac_program"
7596 if test -z "$with_wine64" && wine_fn_has_flag manpage
7597 then
7598 wine_fn_append_rule \
7599 "$ac_dir/install:: $ac_dir
7600 \$(INSTALL_DATA) $ac_dir/$ac_name.man \$(DESTDIR)\$(mandir)/man\$(prog_manext)/$ac_name.\$(prog_manext)
7601 $ac_dir/uninstall::
7602 \$(RM) \$(DESTDIR)\$(mandir)/man\$(prog_manext)/$ac_name.\$(prog_manext)"
7606 wine_fn_config_test ()
7608 ac_dir=$1
7609 ac_name=$2
7610 ac_flags=$3
7612 ac_clean=
7613 test -n "$CROSSTARGET" && ac_clean=`expr $ac_dir/${ac_name} : "\\(.*\\)_test"`_crosstest.exe
7614 test -n "$DLLEXT" || ac_clean="$ac_dir/${ac_name}.exe $ac_dir/${ac_name}-stripped.exe"
7616 if test "x$enable_tests" = xno; then :
7617 wine_fn_disabled_rules $ac_clean; return
7620 wine_fn_append_file ALL_TEST_RESOURCES $ac_name.res
7621 wine_fn_all_rules
7622 wine_fn_clean_rules $ac_clean
7624 wine_fn_append_rule \
7625 "$ac_dir: programs/winetest/Makefile __builddeps__
7626 programs/winetest: $ac_dir
7627 check test: $ac_dir/test
7628 .PHONY: $ac_dir/test
7629 $ac_dir/test: dummy
7630 @cd $ac_dir && \$(MAKE) test
7631 testclean::
7632 \$(RM) $ac_dir/*.ok"
7634 if test -n "$CROSSTARGET"
7635 then
7636 wine_fn_append_rule \
7637 "crosstest: $ac_dir/crosstest
7638 .PHONY: $ac_dir/crosstest
7639 $ac_dir/crosstest: $ac_dir/Makefile __builddeps__ dummy
7640 @cd $ac_dir && \$(MAKE) crosstest"
7644 wine_fn_config_tool ()
7646 ac_dir=$1
7647 ac_flags=$2
7648 if test "x$enable_tools" = xno; then :
7649 return
7652 wine_fn_all_rules
7653 wine_fn_install_rules
7654 wine_fn_clean_rules
7656 wine_fn_append_rule "__tooldeps__: $ac_dir"
7657 wine_fn_append_rule "$ac_dir: libs/port"
7658 case $ac_dir in
7659 tools/winebuild) wine_fn_append_rule "\$(WINEBUILD): $ac_dir" ;;
7660 esac
7663 wine_fn_config_symlink ()
7665 ac_linkdir=
7666 if test "x$1" = "x-d"
7667 then
7668 ac_linkdir=$2
7669 shift; shift
7671 ac_links=$@
7672 wine_fn_append_rule \
7673 "$ac_links:
7674 @./config.status \$@
7675 distclean::
7676 \$(RM) $ac_links"
7677 for f in $ac_links; do wine_fn_ignore_file $f; done
7678 test -n "$ac_linkdir" || return
7679 wine_fn_append_rule "$ac_linkdir/Makefile $ac_linkdir/depend: $ac_links"
7682 wine_binary="wine"
7683 test "x$enable_win64" != "xyes" || wine_binary="wine64"
7684 loader_programs="$wine_binary wine-installed"
7685 libwine_soversion=`expr $libwine_version : '\([0-9]*\)\..*'`
7687 LOADER_RULES="
7688 all: wine.inf
7690 install install-lib:: wine-installed
7691 \$(INSTALL_PROGRAM) wine-installed \$(DESTDIR)\$(bindir)/$wine_binary
7693 uninstall::
7694 \$(RM) \$(DESTDIR)\$(bindir)/$wine_binary
7698 case $host_os in
7699 cygwin*|mingw32*)
7700 if test -n "$ac_tool_prefix"; then
7701 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7702 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7704 $as_echo_n "checking for $ac_word... " >&6; }
7705 if ${ac_cv_prog_DLLTOOL+:} false; then :
7706 $as_echo_n "(cached) " >&6
7707 else
7708 if test -n "$DLLTOOL"; then
7709 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7710 else
7711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7712 for as_dir in $PATH
7714 IFS=$as_save_IFS
7715 test -z "$as_dir" && as_dir=.
7716 for ac_exec_ext in '' $ac_executable_extensions; do
7717 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7718 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7720 break 2
7722 done
7723 done
7724 IFS=$as_save_IFS
7728 DLLTOOL=$ac_cv_prog_DLLTOOL
7729 if test -n "$DLLTOOL"; then
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7731 $as_echo "$DLLTOOL" >&6; }
7732 else
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7734 $as_echo "no" >&6; }
7739 if test -z "$ac_cv_prog_DLLTOOL"; then
7740 ac_ct_DLLTOOL=$DLLTOOL
7741 # Extract the first word of "dlltool", so it can be a program name with args.
7742 set dummy dlltool; ac_word=$2
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7744 $as_echo_n "checking for $ac_word... " >&6; }
7745 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7746 $as_echo_n "(cached) " >&6
7747 else
7748 if test -n "$ac_ct_DLLTOOL"; then
7749 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7750 else
7751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7752 for as_dir in $PATH
7754 IFS=$as_save_IFS
7755 test -z "$as_dir" && as_dir=.
7756 for ac_exec_ext in '' $ac_executable_extensions; do
7757 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7758 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7760 break 2
7762 done
7763 done
7764 IFS=$as_save_IFS
7768 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7769 if test -n "$ac_ct_DLLTOOL"; then
7770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7771 $as_echo "$ac_ct_DLLTOOL" >&6; }
7772 else
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7774 $as_echo "no" >&6; }
7777 if test "x$ac_ct_DLLTOOL" = x; then
7778 DLLTOOL="false"
7779 else
7780 case $cross_compiling:$ac_tool_warned in
7781 yes:)
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7783 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7784 ac_tool_warned=yes ;;
7785 esac
7786 DLLTOOL=$ac_ct_DLLTOOL
7788 else
7789 DLLTOOL="$ac_cv_prog_DLLTOOL"
7792 LIBEXT="dll"
7793 DLLEXT=""
7794 IMPLIBEXT="a"
7795 STATIC_IMPLIBEXT="a"
7796 enable_iphlpapi=${enable_iphlpapi:-no}
7797 enable_kernel32=${enable_kernel32:-no}
7798 enable_msvcrt=${enable_msvcrt:-no}
7799 enable_ntdll=${enable_ntdll:-no}
7800 enable_ws2_32=${enable_ws2_32:-no}
7801 enable_loader=${enable_loader:-no}
7802 enable_server=${enable_server:-no}
7803 with_x=${with_x:-no}
7804 with_pthread=${with_pthread:-no}
7806 crtlibs=""
7807 case $host_os in
7808 mingw32*)
7809 crtlibs="-lmsvcrt"
7810 SOCKET_LIBS="-L\$(top_builddir)/dlls/ws2_32 -lws2_32"
7812 esac
7814 libwine_targets="libwine.dll libwine.a"
7815 LIBWINE_RULES="
7816 OBJS = \$(C_SRCS:.c=.o) \$(EXTRA_OBJS)
7818 all: libwine.dll libwine.a
7820 libwine.a: \$(srcdir)/wine.def
7821 \$(DLLTOOL) -l \$@ -d \$(srcdir)/wine.def
7823 libwine.dll: \$(OBJS) \$(srcdir)/wine.def
7824 \$(CC) -shared \$(srcdir)/wine.def -o \$@ \$(OBJS) $crtlibs \$(EXTRALIBS)
7826 install install-lib:: libwine.dll
7827 \$(INSTALL_DATA) libwine.dll \$(DESTDIR)\$(libdir)/libwine.dll
7829 install install-dev:: libwine.a
7830 \$(INSTALL_DATA) libwine.a \$(DESTDIR)\$(libdir)/libwine.a
7832 uninstall::
7833 -cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.a libwine.dll
7838 darwin*|macosx*)
7839 LIBEXT="dylib"
7840 DLLFLAGS="$DLLFLAGS -fPIC"
7841 LIBWINE_LDFLAGS="-multiply_defined suppress"
7842 LDRPATH_INSTALL="-Wl,-rpath,@loader_path/\`\$(MAKEDEP) -R \$(bindir) \$(libdir)\`"
7843 LDRPATH_LOCAL="-Wl,-rpath,@loader_path/\$(top_builddir)/libs/wine"
7844 COREFOUNDATION_LIBS="-framework CoreFoundation"
7846 IOKIT_LIBS="-framework IOKit -framework CoreFoundation"
7848 FORCEFEEDBACK_LIBS="-framework ForceFeedback -framework CoreFoundation"
7850 APPLICATIONSERVICES_LIBS="-framework ApplicationServices"
7852 CORESERVICES_LIBS="-framework CoreServices"
7854 APPKIT_LIBS="-framework AppKit"
7856 LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00001000,-segaddr,WINE_SHAREDHEAP,0x7f000000,-sectcreate,__TEXT,__info_plist,wine_info.plist"
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,-no_pie" >&5
7858 $as_echo_n "checking whether the compiler supports -Wl,-no_pie... " >&6; }
7859 if ${ac_cv_cflags__Wl__no_pie+:} false; then :
7860 $as_echo_n "(cached) " >&6
7861 else
7862 ac_wine_try_cflags_saved=$CFLAGS
7863 CFLAGS="$CFLAGS -Wl,-no_pie"
7864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7865 /* end confdefs.h. */
7866 int main(int argc, char **argv) { return 0; }
7867 _ACEOF
7868 if ac_fn_c_try_link "$LINENO"; then :
7869 ac_cv_cflags__Wl__no_pie=yes
7870 else
7871 ac_cv_cflags__Wl__no_pie=no
7873 rm -f core conftest.err conftest.$ac_objext \
7874 conftest$ac_exeext conftest.$ac_ext
7875 CFLAGS=$ac_wine_try_cflags_saved
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl__no_pie" >&5
7878 $as_echo "$ac_cv_cflags__Wl__no_pie" >&6; }
7879 if test "x$ac_cv_cflags__Wl__no_pie" = xyes; then :
7880 LDEXECFLAGS="-Wl,-no_pie $LDEXECFLAGS"
7882 if test "$ac_cv_header_DiskArbitration_DiskArbitration_h" = "yes"
7883 then
7884 DISKARBITRATION_LIBS="-framework DiskArbitration -framework CoreFoundation"
7887 if test "$ac_cv_header_Security_Security_h" = "yes"
7888 then
7889 SECURITY_LIBS="-framework Security -framework CoreFoundation"
7891 ac_save_LIBS="$LIBS"
7892 LIBS="$LIBS $SECURITY_LIBS"
7893 for ac_func in SSLCopyPeerCertificates
7894 do :
7895 ac_fn_c_check_func "$LINENO" "SSLCopyPeerCertificates" "ac_cv_func_SSLCopyPeerCertificates"
7896 if test "x$ac_cv_func_SSLCopyPeerCertificates" = xyes; then :
7897 cat >>confdefs.h <<_ACEOF
7898 #define HAVE_SSLCOPYPEERCERTIFICATES 1
7899 _ACEOF
7902 done
7904 LIBS="$ac_save_LIBS"
7905 with_gnutls=${with_gnutls:-no}
7907 if test "$ac_cv_header_CoreAudio_CoreAudio_h" = "yes" -a "$ac_cv_header_AudioUnit_AudioUnit_h" = "yes"
7908 then
7909 if test "$ac_cv_header_AudioUnit_AudioComponent_h" = "yes"
7910 then
7911 COREAUDIO_LIBS="-framework CoreFoundation -framework CoreAudio -framework AudioUnit -framework AudioToolbox -framework CoreMIDI"
7913 else
7914 COREAUDIO_LIBS="-framework CoreAudio -framework AudioUnit -framework CoreServices -framework AudioToolbox -framework CoreMIDI"
7917 ac_save_LIBS="$LIBS"
7918 LIBS="$LIBS $COREAUDIO_LIBS"
7919 for ac_func in AUGraphAddNode
7920 do :
7921 ac_fn_c_check_func "$LINENO" "AUGraphAddNode" "ac_cv_func_AUGraphAddNode"
7922 if test "x$ac_cv_func_AUGraphAddNode" = xyes; then :
7923 cat >>confdefs.h <<_ACEOF
7924 #define HAVE_AUGRAPHADDNODE 1
7925 _ACEOF
7928 done
7930 LIBS="$ac_save_LIBS"
7932 if test "$ac_cv_header_OpenAL_al_h" = "yes"
7933 then
7934 OPENAL_LIBS="-framework OpenAL"
7937 cat >>confdefs.h <<_ACEOF
7938 #define HAVE_OPENAL 1
7939 _ACEOF
7941 ac_cv_lib_openal=yes
7943 if test "$ac_cv_header_OpenCL_opencl_h" = "yes"
7944 then
7945 OPENCL_LIBS="-framework OpenCL"
7947 ac_cv_lib_OpenCL_clGetPlatformInfo=yes
7949 if test "$ac_cv_header_IOKit_hid_IOHIDLib_h" = "yes"
7950 then
7951 ac_save_LIBS="$LIBS"
7952 LIBS="$LIBS $IOKIT_LIBS"
7953 for ac_func in IOHIDManagerCreate
7954 do :
7955 ac_fn_c_check_func "$LINENO" "IOHIDManagerCreate" "ac_cv_func_IOHIDManagerCreate"
7956 if test "x$ac_cv_func_IOHIDManagerCreate" = xyes; then :
7957 cat >>confdefs.h <<_ACEOF
7958 #define HAVE_IOHIDMANAGERCREATE 1
7959 _ACEOF
7962 done
7964 LIBS="$ac_save_LIBS"
7966 if test "$ac_cv_header_QuickTime_ImageCompression_h" = "yes"
7967 then
7968 ac_save_LIBS="$LIBS"
7969 LIBS="-framework QuickTime -framework ApplicationServices -framework CoreVideo $LIBS"
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the QuickTime framework" >&5
7971 $as_echo_n "checking for the QuickTime framework... " >&6; }
7972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7973 /* end confdefs.h. */
7974 #include <QuickTime/ImageCompression.h>
7976 main ()
7978 CodecManagerVersion(NULL);
7980 return 0;
7982 _ACEOF
7983 if ac_fn_c_try_link "$LINENO"; then :
7984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7985 $as_echo "yes" >&6; }
7986 QUICKTIME_LIBS="-framework QuickTime -framework ApplicationServices -framework CoreVideo"
7988 enable_wineqtdecoder=${enable_wineqtdecoder:-yes}
7989 else
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7991 $as_echo "no" >&6; }
7992 ac_cv_header_QuickTime_ImageCompression_h=no
7994 rm -f core conftest.err conftest.$ac_objext \
7995 conftest$ac_exeext conftest.$ac_ext
7996 LIBS="$ac_save_LIBS"
7998 if test "$ac_cv_header_QuickTime_ImageCompression_h" != "yes"
7999 then
8000 as_fn_append wine_notices "|QuickTime ${notice_platform}development files not found, video decoding won't be supported."
8002 if test "$ac_cv_header_Carbon_Carbon_h" = "yes"
8003 then
8004 CARBON_LIBS="-framework Carbon"
8008 if test "$ac_cv_header_ApplicationServices_ApplicationServices_h" = "yes"
8009 then
8010 ac_save_LIBS="$LIBS"
8011 LIBS="$LIBS $APPLICATIONSERVICES_LIBS"
8012 ac_fn_c_check_func "$LINENO" "CGDisplayModeGetWidth" "ac_cv_func_CGDisplayModeGetWidth"
8013 if test "x$ac_cv_func_CGDisplayModeGetWidth" = xyes; then :
8014 enable_winemac_drv=${enable_winemac_drv:-yes}
8017 LIBS="$ac_save_LIBS"
8020 if test "x$enable_win16" = "xyes"
8021 then
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 16-bit code can be built correctly" >&5
8023 $as_echo_n "checking whether 16-bit code can be built correctly... " >&6; }
8024 if test "$cross_compiling" = yes; then :
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5
8026 $as_echo "cross-compiling, assuming yes" >&6; }
8027 else
8028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8029 /* end confdefs.h. */
8030 asm(".text\n"
8031 "bad:\tnop;nop\n"
8032 "good:\tnop;nop\n\t"
8033 ".globl _testfunc\n"
8034 "_testfunc:\tcallw good");
8035 extern void testfunc();
8037 main ()
8039 unsigned short *p = (unsigned short *)testfunc;
8040 return p[0] != 0xe866 || p[1] != 0xfffa
8042 return 0;
8044 _ACEOF
8045 if ac_fn_c_try_run "$LINENO"; then :
8046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8047 $as_echo "yes" >&6; }
8048 else
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8050 $as_echo "no" >&6; }
8051 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
8053 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8054 conftest.$ac_objext conftest.beam conftest.$ac_ext
8059 libwine_targets="libwine.dylib libwine.$libwine_soversion.dylib libwine.$libwine_version.dylib"
8060 LIBWINE_RULES="
8061 OBJS = \$(C_SRCS:.c=.o) \$(EXTRA_OBJS)
8063 all: libwine.dylib
8065 libwine.$libwine_version.dylib: \$(OBJS)
8066 \$(CC) -dynamiclib -install_name @rpath/libwine.$libwine_soversion.dylib -Wl,-rpath,@loader_path/ -compatibility_version $libwine_soversion -current_version $libwine_version \$(OBJS) \$(EXTRALIBS) \$(LDFLAGS) \$(LIBS) -o \$@
8068 libwine.$libwine_soversion.dylib: libwine.$libwine_version.dylib
8069 \$(RM) \$@ && \$(LN_S) libwine.$libwine_version.dylib \$@
8071 libwine.dylib: libwine.$libwine_soversion.dylib
8072 \$(RM) \$@ && \$(LN_S) libwine.$libwine_soversion.dylib \$@
8074 install install-lib:: libwine.$libwine_version.dylib
8075 \$(INSTALL_PROGRAM) libwine.$libwine_version.dylib \$(DESTDIR)\$(libdir)/libwine.$libwine_version.dylib
8076 cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.$libwine_soversion.dylib && \$(LN_S) libwine.$libwine_version.dylib libwine.$libwine_soversion.dylib
8078 install install-dev::
8079 cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.dylib && \$(LN_S) libwine.$libwine_version.dylib libwine.dylib
8081 uninstall::
8082 -cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.dylib libwine.$libwine_soversion.dylib libwine.$libwine_version.dylib
8086 as_fn_append LOADER_RULES "
8087 $wine_binary: main.o wine_info.plist
8088 \$(CC) -o \$@ $LDEXECFLAGS main.o \$(LIBWINE) \$(LIBPORT) \$(EXTRALIBS) \$(LDFLAGS) \$(LDRPATH_LOCAL)
8090 wine-installed: main.o wine_info.plist
8091 \$(CC) -o \$@ $LDEXECFLAGS main.o \$(LIBWINE) \$(LIBPORT) \$(EXTRALIBS) \$(LDFLAGS) \$(LDRPATH_INSTALL)
8095 linux-android*)
8096 DLLFLAGS="$DLLFLAGS -fPIC"
8097 DLLPREFIX="lib"
8098 LDEXECFLAGS=""
8099 dlldir="\${libdir}"
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5
8101 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--export-dynamic... " >&6; }
8102 if ${ac_cv_cflags__fPIC__Wl___export_dynamic+:} false; then :
8103 $as_echo_n "(cached) " >&6
8104 else
8105 ac_wine_try_cflags_saved=$CFLAGS
8106 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
8107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8108 /* end confdefs.h. */
8109 int main(int argc, char **argv) { return 0; }
8110 _ACEOF
8111 if ac_fn_c_try_link "$LINENO"; then :
8112 ac_cv_cflags__fPIC__Wl___export_dynamic=yes
8113 else
8114 ac_cv_cflags__fPIC__Wl___export_dynamic=no
8116 rm -f core conftest.err conftest.$ac_objext \
8117 conftest$ac_exeext conftest.$ac_ext
8118 CFLAGS=$ac_wine_try_cflags_saved
8120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__Wl___export_dynamic" >&5
8121 $as_echo "$ac_cv_cflags__fPIC__Wl___export_dynamic" >&6; }
8122 if test "x$ac_cv_cflags__fPIC__Wl___export_dynamic" = xyes; then :
8123 LDEXECFLAGS="-Wl,--export-dynamic"
8125 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,--rpath,\\$ORIGIN/../lib" | $as_tr_sh`
8126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib" >&5
8127 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... " >&6; }
8128 if eval \${$as_ac_var+:} false; then :
8129 $as_echo_n "(cached) " >&6
8130 else
8131 ac_wine_try_cflags_saved=$CFLAGS
8132 CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
8133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8134 /* end confdefs.h. */
8135 int main(int argc, char **argv) { return 0; }
8136 _ACEOF
8137 if ac_fn_c_try_link "$LINENO"; then :
8138 eval "$as_ac_var=yes"
8139 else
8140 eval "$as_ac_var=no"
8142 rm -f core conftest.err conftest.$ac_objext \
8143 conftest$ac_exeext conftest.$ac_ext
8144 CFLAGS=$ac_wine_try_cflags_saved
8146 eval ac_res=\$$as_ac_var
8147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8148 $as_echo "$ac_res" >&6; }
8149 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8150 LDRPATH_INSTALL="-Wl,--rpath,\\\$\$ORIGIN/\`\$(MAKEDEP) -R \$(bindir) \$(libdir)\`"
8151 LDRPATH_LOCAL="-Wl,--rpath,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
8152 else
8153 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,-R,\\$ORIGIN/../lib" | $as_tr_sh`
8154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib" >&5
8155 $as_echo_n "checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib... " >&6; }
8156 if eval \${$as_ac_var+:} false; then :
8157 $as_echo_n "(cached) " >&6
8158 else
8159 ac_wine_try_cflags_saved=$CFLAGS
8160 CFLAGS="$CFLAGS -fPIC -Wl,-R,\$ORIGIN/../lib"
8161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8162 /* end confdefs.h. */
8163 int main(int argc, char **argv) { return 0; }
8164 _ACEOF
8165 if ac_fn_c_try_link "$LINENO"; then :
8166 eval "$as_ac_var=yes"
8167 else
8168 eval "$as_ac_var=no"
8170 rm -f core conftest.err conftest.$ac_objext \
8171 conftest$ac_exeext conftest.$ac_ext
8172 CFLAGS=$ac_wine_try_cflags_saved
8174 eval ac_res=\$$as_ac_var
8175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8176 $as_echo "$ac_res" >&6; }
8177 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8178 LDRPATH_INSTALL="-Wl,-R,\\\$\$ORIGIN/\`\$(MAKEDEP) -R \$(bindir) \$(libdir)\`"
8179 LDRPATH_LOCAL="-Wl,-R,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
8183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--enable-new-dtags" >&5
8184 $as_echo_n "checking whether the compiler supports -Wl,--enable-new-dtags... " >&6; }
8185 if ${ac_cv_cflags__Wl___enable_new_dtags+:} false; then :
8186 $as_echo_n "(cached) " >&6
8187 else
8188 ac_wine_try_cflags_saved=$CFLAGS
8189 CFLAGS="$CFLAGS -Wl,--enable-new-dtags"
8190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8191 /* end confdefs.h. */
8192 int main(int argc, char **argv) { return 0; }
8193 _ACEOF
8194 if ac_fn_c_try_link "$LINENO"; then :
8195 ac_cv_cflags__Wl___enable_new_dtags=yes
8196 else
8197 ac_cv_cflags__Wl___enable_new_dtags=no
8199 rm -f core conftest.err conftest.$ac_objext \
8200 conftest$ac_exeext conftest.$ac_ext
8201 CFLAGS=$ac_wine_try_cflags_saved
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___enable_new_dtags" >&5
8204 $as_echo "$ac_cv_cflags__Wl___enable_new_dtags" >&6; }
8205 if test "x$ac_cv_cflags__Wl___enable_new_dtags" = xyes; then :
8206 LDRPATH_INSTALL="$LDRPATH_INSTALL -Wl,--enable-new-dtags"
8209 case $host_cpu in
8210 *i[3456789]86* | x86_64)
8211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400" >&5
8212 $as_echo_n "checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... " >&6; }
8213 if ${ac_cv_cflags__Wl___section_start__interp_0x7bf00400+:} false; then :
8214 $as_echo_n "(cached) " >&6
8215 else
8216 ac_wine_try_cflags_saved=$CFLAGS
8217 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
8218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8219 /* end confdefs.h. */
8220 int main(int argc, char **argv) { return 0; }
8221 _ACEOF
8222 if ac_fn_c_try_link "$LINENO"; then :
8223 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=yes
8224 else
8225 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=no
8227 rm -f core conftest.err conftest.$ac_objext \
8228 conftest$ac_exeext conftest.$ac_ext
8229 CFLAGS=$ac_wine_try_cflags_saved
8231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&5
8232 $as_echo "$ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&6; }
8233 if test "x$ac_cv_cflags__Wl___section_start__interp_0x7bf00400" = xyes; then :
8234 LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400"
8237 esac
8239 libwine_targets="libwine.so"
8240 LIBWINE_RULES="
8241 OBJS = \$(C_SRCS:.c=.o) \$(EXTRA_OBJS)
8243 all: libwine.so
8245 libwine.so: \$(OBJS)
8246 \$(CC) -shared \$(OBJS) \$(EXTRALIBS) \$(LDFLAGS) \$(LIBS) -o \$@
8248 install install-lib:: libwine.so
8249 \$(INSTALL_PROGRAM) libwine.so \$(DESTDIR)\$(libdir)/libwine.so
8251 uninstall::
8252 \$(RM) \$(DESTDIR)\$(libdir)/libwine.so
8256 as_fn_append LOADER_RULES "
8257 $wine_binary: main.o
8258 \$(CC) -o \$@ $LDEXECFLAGS main.o \$(LIBWINE) \$(LIBPORT) \$(EXTRALIBS) \$(LDFLAGS) \$(LDRPATH_LOCAL)
8260 wine-installed: main.o
8261 \$(CC) -o \$@ $LDEXECFLAGS main.o \$(LIBWINE) \$(LIBPORT) \$(EXTRALIBS) \$(LDFLAGS) \$(LDRPATH_INSTALL)
8266 DLLFLAGS="$DLLFLAGS -fPIC"
8267 LDEXECFLAGS=""
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a GNU style ELF dll" >&5
8269 $as_echo_n "checking whether we can build a GNU style ELF dll... " >&6; }
8270 if ${ac_cv_c_dll_gnuelf+:} false; then :
8271 $as_echo_n "(cached) " >&6
8272 else
8273 ac_wine_try_cflags_saved=$CFLAGS
8274 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic"
8275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8276 /* end confdefs.h. */
8277 void myfunc() {}
8278 _ACEOF
8279 if ac_fn_c_try_link "$LINENO"; then :
8280 ac_cv_c_dll_gnuelf="yes"
8281 else
8282 ac_cv_c_dll_gnuelf="no"
8284 rm -f core conftest.err conftest.$ac_objext \
8285 conftest$ac_exeext conftest.$ac_ext
8286 CFLAGS=$ac_wine_try_cflags_saved
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_gnuelf" >&5
8289 $as_echo "$ac_cv_c_dll_gnuelf" >&6; }
8290 if test "$ac_cv_c_dll_gnuelf" = "yes"
8291 then
8292 LDSHARED="\$(CC) -shared"
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1" >&5
8294 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1... " >&6; }
8295 if ${ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1+:} false; then :
8296 $as_echo_n "(cached) " >&6
8297 else
8298 ac_wine_try_cflags_saved=$CFLAGS
8299 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,confest.so.1"
8300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8301 /* end confdefs.h. */
8302 int main(int argc, char **argv) { return 0; }
8303 _ACEOF
8304 if ac_fn_c_try_link "$LINENO"; then :
8305 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=yes
8306 else
8307 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=no
8309 rm -f core conftest.err conftest.$ac_objext \
8310 conftest$ac_exeext conftest.$ac_ext
8311 CFLAGS=$ac_wine_try_cflags_saved
8313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&5
8314 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&6; }
8315 if test "x$ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" = xyes; then :
8316 LDSHARED="\$(CC) -shared -Wl,-soname,libwine.so.$libwine_soversion"
8317 else
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1" >&5
8319 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1... " >&6; }
8320 if ${ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1+:} false; then :
8321 $as_echo_n "(cached) " >&6
8322 else
8323 ac_wine_try_cflags_saved=$CFLAGS
8324 CFLAGS="$CFLAGS -fPIC -shared -Wl,-h,confest.so.1"
8325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8326 /* end confdefs.h. */
8327 int main(int argc, char **argv) { return 0; }
8328 _ACEOF
8329 if ac_fn_c_try_link "$LINENO"; then :
8330 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=yes
8331 else
8332 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=no
8334 rm -f core conftest.err conftest.$ac_objext \
8335 conftest$ac_exeext conftest.$ac_ext
8336 CFLAGS=$ac_wine_try_cflags_saved
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&5
8339 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&6; }
8340 if test "x$ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" = xyes; then :
8341 LDSHARED="\$(CC) -shared -Wl,-h,libwine.so.$libwine_soversion"
8345 echo '{ global: *; };' >conftest.map
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map" >&5
8347 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map... " >&6; }
8348 if ${ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map+:} false; then :
8349 $as_echo_n "(cached) " >&6
8350 else
8351 ac_wine_try_cflags_saved=$CFLAGS
8352 CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
8353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8354 /* end confdefs.h. */
8355 int main(int argc, char **argv) { return 0; }
8356 _ACEOF
8357 if ac_fn_c_try_link "$LINENO"; then :
8358 ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=yes
8359 else
8360 ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=no
8362 rm -f core conftest.err conftest.$ac_objext \
8363 conftest$ac_exeext conftest.$ac_ext
8364 CFLAGS=$ac_wine_try_cflags_saved
8366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&5
8367 $as_echo "$ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&6; }
8368 if test "x$ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" = xyes; then :
8369 LDSHARED="$LDSHARED -Wl,--version-script=\$(srcdir)/wine.map"
8371 rm -f conftest.map
8373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5
8374 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--export-dynamic... " >&6; }
8375 if ${ac_cv_cflags__fPIC__Wl___export_dynamic+:} false; then :
8376 $as_echo_n "(cached) " >&6
8377 else
8378 ac_wine_try_cflags_saved=$CFLAGS
8379 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
8380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8381 /* end confdefs.h. */
8382 int main(int argc, char **argv) { return 0; }
8383 _ACEOF
8384 if ac_fn_c_try_link "$LINENO"; then :
8385 ac_cv_cflags__fPIC__Wl___export_dynamic=yes
8386 else
8387 ac_cv_cflags__fPIC__Wl___export_dynamic=no
8389 rm -f core conftest.err conftest.$ac_objext \
8390 conftest$ac_exeext conftest.$ac_ext
8391 CFLAGS=$ac_wine_try_cflags_saved
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__Wl___export_dynamic" >&5
8394 $as_echo "$ac_cv_cflags__fPIC__Wl___export_dynamic" >&6; }
8395 if test "x$ac_cv_cflags__fPIC__Wl___export_dynamic" = xyes; then :
8396 LDEXECFLAGS="-Wl,--export-dynamic"
8399 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,--rpath,\\$ORIGIN/../lib" | $as_tr_sh`
8400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib" >&5
8401 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... " >&6; }
8402 if eval \${$as_ac_var+:} false; then :
8403 $as_echo_n "(cached) " >&6
8404 else
8405 ac_wine_try_cflags_saved=$CFLAGS
8406 CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
8407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8408 /* end confdefs.h. */
8409 int main(int argc, char **argv) { return 0; }
8410 _ACEOF
8411 if ac_fn_c_try_link "$LINENO"; then :
8412 eval "$as_ac_var=yes"
8413 else
8414 eval "$as_ac_var=no"
8416 rm -f core conftest.err conftest.$ac_objext \
8417 conftest$ac_exeext conftest.$ac_ext
8418 CFLAGS=$ac_wine_try_cflags_saved
8420 eval ac_res=\$$as_ac_var
8421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8422 $as_echo "$ac_res" >&6; }
8423 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8424 LDRPATH_INSTALL="-Wl,--rpath,\\\$\$ORIGIN/\`\$(MAKEDEP) -R \$(bindir) \$(libdir)\`"
8425 LDRPATH_LOCAL="-Wl,--rpath,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
8426 else
8427 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,-R,\\$ORIGIN/../lib" | $as_tr_sh`
8428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib" >&5
8429 $as_echo_n "checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib... " >&6; }
8430 if eval \${$as_ac_var+:} false; then :
8431 $as_echo_n "(cached) " >&6
8432 else
8433 ac_wine_try_cflags_saved=$CFLAGS
8434 CFLAGS="$CFLAGS -fPIC -Wl,-R,\$ORIGIN/../lib"
8435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8436 /* end confdefs.h. */
8437 int main(int argc, char **argv) { return 0; }
8438 _ACEOF
8439 if ac_fn_c_try_link "$LINENO"; then :
8440 eval "$as_ac_var=yes"
8441 else
8442 eval "$as_ac_var=no"
8444 rm -f core conftest.err conftest.$ac_objext \
8445 conftest$ac_exeext conftest.$ac_ext
8446 CFLAGS=$ac_wine_try_cflags_saved
8448 eval ac_res=\$$as_ac_var
8449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8450 $as_echo "$ac_res" >&6; }
8451 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8452 LDRPATH_INSTALL="-Wl,-R,\\\$\$ORIGIN/\`\$(MAKEDEP) -R \$(bindir) \$(libdir)\`"
8453 LDRPATH_LOCAL="-Wl,-R,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
8457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--enable-new-dtags" >&5
8458 $as_echo_n "checking whether the compiler supports -Wl,--enable-new-dtags... " >&6; }
8459 if ${ac_cv_cflags__Wl___enable_new_dtags+:} false; then :
8460 $as_echo_n "(cached) " >&6
8461 else
8462 ac_wine_try_cflags_saved=$CFLAGS
8463 CFLAGS="$CFLAGS -Wl,--enable-new-dtags"
8464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8465 /* end confdefs.h. */
8466 int main(int argc, char **argv) { return 0; }
8467 _ACEOF
8468 if ac_fn_c_try_link "$LINENO"; then :
8469 ac_cv_cflags__Wl___enable_new_dtags=yes
8470 else
8471 ac_cv_cflags__Wl___enable_new_dtags=no
8473 rm -f core conftest.err conftest.$ac_objext \
8474 conftest$ac_exeext conftest.$ac_ext
8475 CFLAGS=$ac_wine_try_cflags_saved
8477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___enable_new_dtags" >&5
8478 $as_echo "$ac_cv_cflags__Wl___enable_new_dtags" >&6; }
8479 if test "x$ac_cv_cflags__Wl___enable_new_dtags" = xyes; then :
8480 LDRPATH_INSTALL="$LDRPATH_INSTALL -Wl,--enable-new-dtags"
8483 case $host_cpu in
8484 *i[3456789]86* | x86_64)
8485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400" >&5
8486 $as_echo_n "checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... " >&6; }
8487 if ${ac_cv_cflags__Wl___section_start__interp_0x7bf00400+:} false; then :
8488 $as_echo_n "(cached) " >&6
8489 else
8490 ac_wine_try_cflags_saved=$CFLAGS
8491 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
8492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8493 /* end confdefs.h. */
8494 int main(int argc, char **argv) { return 0; }
8495 _ACEOF
8496 if ac_fn_c_try_link "$LINENO"; then :
8497 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=yes
8498 else
8499 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=no
8501 rm -f core conftest.err conftest.$ac_objext \
8502 conftest$ac_exeext conftest.$ac_ext
8503 CFLAGS=$ac_wine_try_cflags_saved
8505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&5
8506 $as_echo "$ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&6; }
8507 if test "x$ac_cv_cflags__Wl___section_start__interp_0x7bf00400" = xyes; then :
8508 case $host_os in
8509 freebsd* | kfreebsd*-gnu) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x60000400" ;;
8510 *) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400" ;;
8511 esac
8514 # Extract the first word of "prelink", so it can be a program name with args.
8515 set dummy prelink; ac_word=$2
8516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8517 $as_echo_n "checking for $ac_word... " >&6; }
8518 if ${ac_cv_path_PRELINK+:} false; then :
8519 $as_echo_n "(cached) " >&6
8520 else
8521 case $PRELINK in
8522 [\\/]* | ?:[\\/]*)
8523 ac_cv_path_PRELINK="$PRELINK" # Let the user override the test with a path.
8526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8527 for as_dir in /sbin /usr/sbin $PATH
8529 IFS=$as_save_IFS
8530 test -z "$as_dir" && as_dir=.
8531 for ac_exec_ext in '' $ac_executable_extensions; do
8532 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8533 ac_cv_path_PRELINK="$as_dir/$ac_word$ac_exec_ext"
8534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8535 break 2
8537 done
8538 done
8539 IFS=$as_save_IFS
8541 test -z "$ac_cv_path_PRELINK" && ac_cv_path_PRELINK="false"
8543 esac
8545 PRELINK=$ac_cv_path_PRELINK
8546 if test -n "$PRELINK"; then
8547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRELINK" >&5
8548 $as_echo "$PRELINK" >&6; }
8549 else
8550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8551 $as_echo "no" >&6; }
8555 if test "x$PRELINK" = xfalse
8556 then
8557 as_fn_append wine_warnings "|prelink not found, base address of core dlls won't be set correctly."
8560 esac
8562 else
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a UnixWare (Solaris) dll" >&5
8564 $as_echo_n "checking whether we can build a UnixWare (Solaris) dll... " >&6; }
8565 if ${ac_cv_c_dll_unixware+:} false; then :
8566 $as_echo_n "(cached) " >&6
8567 else
8568 ac_wine_try_cflags_saved=$CFLAGS
8569 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
8570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8571 /* end confdefs.h. */
8572 void myfunc() {}
8573 _ACEOF
8574 if ac_fn_c_try_link "$LINENO"; then :
8575 ac_cv_c_dll_unixware="yes"
8576 else
8577 ac_cv_c_dll_unixware="no"
8579 rm -f core conftest.err conftest.$ac_objext \
8580 conftest$ac_exeext conftest.$ac_ext
8581 CFLAGS=$ac_wine_try_cflags_saved
8583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_unixware" >&5
8584 $as_echo "$ac_cv_c_dll_unixware" >&6; }
8585 if test "$ac_cv_c_dll_unixware" = "yes"
8586 then
8587 LDSHARED="\$(CC) -Wl,-G,-h,libwine.so.$libwine_soversion"
8590 libwine_targets="libwine.so libwine.so.$libwine_soversion libwine.so.$libwine_version"
8591 LIBWINE_RULES="
8592 OBJS = \$(C_SRCS:.c=.o) \$(EXTRA_OBJS)
8594 all: libwine.so
8596 libwine.so.$libwine_version: \$(OBJS) \$(srcdir)/wine.map
8597 $LDSHARED \$(OBJS) \$(EXTRALIBS) \$(LDFLAGS) \$(LIBS) -o \$@
8599 libwine.so.$libwine_soversion: libwine.so.$libwine_version
8600 \$(RM) \$@ && \$(LN_S) libwine.so.$libwine_version \$@
8602 libwine.so: libwine.so.$libwine_soversion
8603 \$(RM) \$@ && \$(LN_S) libwine.so.$libwine_soversion \$@
8605 install install-lib:: libwine.so.$libwine_version
8606 \$(INSTALL_PROGRAM) libwine.so.$libwine_version \$(DESTDIR)\$(libdir)/libwine.so.$libwine_version
8607 cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.so.$libwine_soversion && \$(LN_S) libwine.so.$libwine_version libwine.so.$libwine_soversion
8609 install install-dev::
8610 cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.so && \$(LN_S) libwine.so.$libwine_version libwine.so
8612 uninstall::
8613 -cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.so libwine.so.$libwine_soversion libwine.so.$libwine_version
8617 as_fn_append LOADER_RULES "
8618 $wine_binary: main.o
8619 \$(CC) -o \$@ $LDEXECFLAGS main.o \$(LIBWINE) \$(LIBPORT) \$(EXTRALIBS) \$(LDFLAGS) \$(LDRPATH_LOCAL)
8621 wine-installed: main.o
8622 \$(CC) -o \$@ $LDEXECFLAGS main.o \$(LIBWINE) \$(LIBPORT) \$(EXTRALIBS) \$(LDFLAGS) \$(LDRPATH_INSTALL)
8625 esac
8627 as_fn_append LIBWINE_RULES "
8628 EXTRA_TARGETS = $libwine_targets
8631 enable_wineqtdecoder=${enable_wineqtdecoder:-no}
8632 enable_winemac_drv=${enable_winemac_drv:-no}
8634 CROSSTARGET=""
8636 if test "$cross_compiling" = "no" -a "x$enable_tests" != xno -a "$LIBEXT" != "dll"
8637 then
8638 case "$host_cpu" in
8639 i[3456789]86*)
8640 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
8641 mingw32-gcc" ;;
8642 x86_64)
8643 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 " ;;
8645 ac_prefix_list="" ;;
8646 esac
8647 for ac_prog in $ac_prefix_list
8649 # Extract the first word of "$ac_prog", so it can be a program name with args.
8650 set dummy $ac_prog; ac_word=$2
8651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8652 $as_echo_n "checking for $ac_word... " >&6; }
8653 if ${ac_cv_prog_CROSSCC+:} false; then :
8654 $as_echo_n "(cached) " >&6
8655 else
8656 if test -n "$CROSSCC"; then
8657 ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
8658 else
8659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8660 for as_dir in $PATH
8662 IFS=$as_save_IFS
8663 test -z "$as_dir" && as_dir=.
8664 for ac_exec_ext in '' $ac_executable_extensions; do
8665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8666 ac_cv_prog_CROSSCC="$ac_prog"
8667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8668 break 2
8670 done
8671 done
8672 IFS=$as_save_IFS
8676 CROSSCC=$ac_cv_prog_CROSSCC
8677 if test -n "$CROSSCC"; then
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CROSSCC" >&5
8679 $as_echo "$CROSSCC" >&6; }
8680 else
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8682 $as_echo "no" >&6; }
8686 test -n "$CROSSCC" && break
8687 done
8688 test -n "$CROSSCC" || CROSSCC="false"
8690 if test "$CROSSCC" != "false"
8691 then
8692 ac_save_CC="$CC"
8693 CC="$CROSSCC"
8694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CROSSCC works" >&5
8695 $as_echo_n "checking whether $CROSSCC works... " >&6; }
8696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8697 /* end confdefs.h. */
8700 main ()
8704 return 0;
8706 _ACEOF
8707 if ac_fn_c_try_compile "$LINENO"; then :
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8709 $as_echo "yes" >&6; }
8710 set x $CROSSCC
8711 shift
8712 while test $# -ge 1
8714 case "$1" in
8715 *-gcc) CROSSTARGET=`expr "$1" : '\(.*\)-gcc'` ;;
8716 esac
8717 shift
8718 done
8719 else
8720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8721 $as_echo "no" >&6; }
8723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8724 CC="$ac_save_CC"
8729 if test "$ac_cv_header_pthread_h" = "yes"
8730 then
8731 ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
8732 if test "x$ac_cv_func_pthread_create" = xyes; then :
8734 else
8735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
8736 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
8737 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
8738 $as_echo_n "(cached) " >&6
8739 else
8740 ac_check_lib_save_LIBS=$LIBS
8741 LIBS="-lpthread $LIBS"
8742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8743 /* end confdefs.h. */
8745 /* Override any GCC internal prototype to avoid an error.
8746 Use char because int might match the return type of a GCC
8747 builtin and then its argument prototype would still apply. */
8748 #ifdef __cplusplus
8749 extern "C"
8750 #endif
8751 char pthread_create ();
8753 main ()
8755 return pthread_create ();
8757 return 0;
8759 _ACEOF
8760 if ac_fn_c_try_link "$LINENO"; then :
8761 ac_cv_lib_pthread_pthread_create=yes
8762 else
8763 ac_cv_lib_pthread_pthread_create=no
8765 rm -f core conftest.err conftest.$ac_objext \
8766 conftest$ac_exeext conftest.$ac_ext
8767 LIBS=$ac_check_lib_save_LIBS
8769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
8770 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
8771 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
8772 PTHREAD_LIBS="-lpthread"
8779 if test "x$ac_cv_func_pthread_create" != xyes -a "x$PTHREAD_LIBS" = x; then :
8780 case "x$with_pthread" in
8781 xno) ;;
8782 *) as_fn_error $? "pthread ${notice_platform}development files not found.
8783 Wine cannot support threads without libpthread.
8784 Use the --without-pthread option if you really want this." "$LINENO" 5 ;;
8785 esac
8789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
8790 $as_echo_n "checking for X... " >&6; }
8793 # Check whether --with-x was given.
8794 if test "${with_x+set}" = set; then :
8795 withval=$with_x;
8798 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8799 if test "x$with_x" = xno; then
8800 # The user explicitly disabled X.
8801 have_x=disabled
8802 else
8803 case $x_includes,$x_libraries in #(
8804 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
8805 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
8806 $as_echo_n "(cached) " >&6
8807 else
8808 # One or both of the vars are not set, and there is no cached value.
8809 ac_x_includes=no ac_x_libraries=no
8810 rm -f -r conftest.dir
8811 if mkdir conftest.dir; then
8812 cd conftest.dir
8813 cat >Imakefile <<'_ACEOF'
8814 incroot:
8815 @echo incroot='${INCROOT}'
8816 usrlibdir:
8817 @echo usrlibdir='${USRLIBDIR}'
8818 libdir:
8819 @echo libdir='${LIBDIR}'
8820 _ACEOF
8821 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
8822 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8823 for ac_var in incroot usrlibdir libdir; do
8824 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
8825 done
8826 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8827 for ac_extension in a so sl dylib la dll; do
8828 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8829 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8830 ac_im_usrlibdir=$ac_im_libdir; break
8832 done
8833 # Screen out bogus values from the imake configuration. They are
8834 # bogus both because they are the default anyway, and because
8835 # using them would break gcc on systems where it needs fixed includes.
8836 case $ac_im_incroot in
8837 /usr/include) ac_x_includes= ;;
8838 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8839 esac
8840 case $ac_im_usrlibdir in
8841 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
8842 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8843 esac
8845 cd ..
8846 rm -f -r conftest.dir
8849 # Standard set of common directories for X headers.
8850 # Check X11 before X11Rn because it is often a symlink to the current release.
8851 ac_x_header_dirs='
8852 /usr/X11/include
8853 /usr/X11R7/include
8854 /usr/X11R6/include
8855 /usr/X11R5/include
8856 /usr/X11R4/include
8858 /usr/include/X11
8859 /usr/include/X11R7
8860 /usr/include/X11R6
8861 /usr/include/X11R5
8862 /usr/include/X11R4
8864 /usr/local/X11/include
8865 /usr/local/X11R7/include
8866 /usr/local/X11R6/include
8867 /usr/local/X11R5/include
8868 /usr/local/X11R4/include
8870 /usr/local/include/X11
8871 /usr/local/include/X11R7
8872 /usr/local/include/X11R6
8873 /usr/local/include/X11R5
8874 /usr/local/include/X11R4
8876 /usr/X386/include
8877 /usr/x386/include
8878 /usr/XFree86/include/X11
8880 /usr/include
8881 /usr/local/include
8882 /usr/unsupported/include
8883 /usr/athena/include
8884 /usr/local/x11r5/include
8885 /usr/lpp/Xamples/include
8887 /usr/openwin/include
8888 /usr/openwin/share/include'
8890 if test "$ac_x_includes" = no; then
8891 # Guess where to find include files, by looking for Xlib.h.
8892 # First, try using that file with no special directory specified.
8893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8894 /* end confdefs.h. */
8895 #include <X11/Xlib.h>
8896 _ACEOF
8897 if ac_fn_c_try_cpp "$LINENO"; then :
8898 # We can compile using X headers with no special include directory.
8899 ac_x_includes=
8900 else
8901 for ac_dir in $ac_x_header_dirs; do
8902 if test -r "$ac_dir/X11/Xlib.h"; then
8903 ac_x_includes=$ac_dir
8904 break
8906 done
8908 rm -f conftest.err conftest.i conftest.$ac_ext
8909 fi # $ac_x_includes = no
8911 if test "$ac_x_libraries" = no; then
8912 # Check for the libraries.
8913 # See if we find them without any special options.
8914 # Don't add to $LIBS permanently.
8915 ac_save_LIBS=$LIBS
8916 LIBS="-lX11 $LIBS"
8917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8918 /* end confdefs.h. */
8919 #include <X11/Xlib.h>
8921 main ()
8923 XrmInitialize ()
8925 return 0;
8927 _ACEOF
8928 if ac_fn_c_try_link "$LINENO"; then :
8929 LIBS=$ac_save_LIBS
8930 # We can link X programs with no special library path.
8931 ac_x_libraries=
8932 else
8933 LIBS=$ac_save_LIBS
8934 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8936 # Don't even attempt the hair of trying to link an X program!
8937 for ac_extension in a so sl dylib la dll; do
8938 if test -r "$ac_dir/libX11.$ac_extension"; then
8939 ac_x_libraries=$ac_dir
8940 break 2
8942 done
8943 done
8945 rm -f core conftest.err conftest.$ac_objext \
8946 conftest$ac_exeext conftest.$ac_ext
8947 fi # $ac_x_libraries = no
8949 case $ac_x_includes,$ac_x_libraries in #(
8950 no,* | *,no | *\'*)
8951 # Didn't find X, or a directory has "'" in its name.
8952 ac_cv_have_x="have_x=no";; #(
8954 # Record where we found X for the cache.
8955 ac_cv_have_x="have_x=yes\
8956 ac_x_includes='$ac_x_includes'\
8957 ac_x_libraries='$ac_x_libraries'"
8958 esac
8960 ;; #(
8961 *) have_x=yes;;
8962 esac
8963 eval "$ac_cv_have_x"
8964 fi # $with_x != no
8966 if test "$have_x" != yes; then
8967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
8968 $as_echo "$have_x" >&6; }
8969 no_x=yes
8970 else
8971 # If each of the values was on the command line, it overrides each guess.
8972 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8973 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8974 # Update the cache value to reflect the command line values.
8975 ac_cv_have_x="have_x=yes\
8976 ac_x_includes='$x_includes'\
8977 ac_x_libraries='$x_libraries'"
8978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
8979 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
8982 if test "$no_x" = yes; then
8983 # Not all programs may use this symbol, but it does not hurt to define it.
8985 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
8987 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
8988 else
8989 if test -n "$x_includes"; then
8990 X_CFLAGS="$X_CFLAGS -I$x_includes"
8993 # It would also be nice to do this for all -L options, not just this one.
8994 if test -n "$x_libraries"; then
8995 X_LIBS="$X_LIBS -L$x_libraries"
8996 # For Solaris; some versions of Sun CC require a space after -R and
8997 # others require no space. Words are not sufficient . . . .
8998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
8999 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
9000 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
9001 ac_xsave_c_werror_flag=$ac_c_werror_flag
9002 ac_c_werror_flag=yes
9003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9004 /* end confdefs.h. */
9007 main ()
9011 return 0;
9013 _ACEOF
9014 if ac_fn_c_try_link "$LINENO"; then :
9015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9016 $as_echo "no" >&6; }
9017 X_LIBS="$X_LIBS -R$x_libraries"
9018 else
9019 LIBS="$ac_xsave_LIBS -R $x_libraries"
9020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9021 /* end confdefs.h. */
9024 main ()
9028 return 0;
9030 _ACEOF
9031 if ac_fn_c_try_link "$LINENO"; then :
9032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9033 $as_echo "yes" >&6; }
9034 X_LIBS="$X_LIBS -R $x_libraries"
9035 else
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
9037 $as_echo "neither works" >&6; }
9039 rm -f core conftest.err conftest.$ac_objext \
9040 conftest$ac_exeext conftest.$ac_ext
9042 rm -f core conftest.err conftest.$ac_objext \
9043 conftest$ac_exeext conftest.$ac_ext
9044 ac_c_werror_flag=$ac_xsave_c_werror_flag
9045 LIBS=$ac_xsave_LIBS
9048 # Check for system-dependent libraries X programs must link with.
9049 # Do this before checking for the system-independent R6 libraries
9050 # (-lICE), since we may need -lsocket or whatever for X linking.
9052 if test "$ISC" = yes; then
9053 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
9054 else
9055 # Martyn Johnson says this is needed for Ultrix, if the X
9056 # libraries were built with DECnet support. And Karl Berry says
9057 # the Alpha needs dnet_stub (dnet does not exist).
9058 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
9059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9060 /* end confdefs.h. */
9062 /* Override any GCC internal prototype to avoid an error.
9063 Use char because int might match the return type of a GCC
9064 builtin and then its argument prototype would still apply. */
9065 #ifdef __cplusplus
9066 extern "C"
9067 #endif
9068 char XOpenDisplay ();
9070 main ()
9072 return XOpenDisplay ();
9074 return 0;
9076 _ACEOF
9077 if ac_fn_c_try_link "$LINENO"; then :
9079 else
9080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
9081 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
9082 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
9083 $as_echo_n "(cached) " >&6
9084 else
9085 ac_check_lib_save_LIBS=$LIBS
9086 LIBS="-ldnet $LIBS"
9087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9088 /* end confdefs.h. */
9090 /* Override any GCC internal prototype to avoid an error.
9091 Use char because int might match the return type of a GCC
9092 builtin and then its argument prototype would still apply. */
9093 #ifdef __cplusplus
9094 extern "C"
9095 #endif
9096 char dnet_ntoa ();
9098 main ()
9100 return dnet_ntoa ();
9102 return 0;
9104 _ACEOF
9105 if ac_fn_c_try_link "$LINENO"; then :
9106 ac_cv_lib_dnet_dnet_ntoa=yes
9107 else
9108 ac_cv_lib_dnet_dnet_ntoa=no
9110 rm -f core conftest.err conftest.$ac_objext \
9111 conftest$ac_exeext conftest.$ac_ext
9112 LIBS=$ac_check_lib_save_LIBS
9114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9115 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
9116 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
9117 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
9120 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
9121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
9122 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
9123 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
9124 $as_echo_n "(cached) " >&6
9125 else
9126 ac_check_lib_save_LIBS=$LIBS
9127 LIBS="-ldnet_stub $LIBS"
9128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9129 /* end confdefs.h. */
9131 /* Override any GCC internal prototype to avoid an error.
9132 Use char because int might match the return type of a GCC
9133 builtin and then its argument prototype would still apply. */
9134 #ifdef __cplusplus
9135 extern "C"
9136 #endif
9137 char dnet_ntoa ();
9139 main ()
9141 return dnet_ntoa ();
9143 return 0;
9145 _ACEOF
9146 if ac_fn_c_try_link "$LINENO"; then :
9147 ac_cv_lib_dnet_stub_dnet_ntoa=yes
9148 else
9149 ac_cv_lib_dnet_stub_dnet_ntoa=no
9151 rm -f core conftest.err conftest.$ac_objext \
9152 conftest$ac_exeext conftest.$ac_ext
9153 LIBS=$ac_check_lib_save_LIBS
9155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
9156 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
9157 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
9158 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
9163 rm -f core conftest.err conftest.$ac_objext \
9164 conftest$ac_exeext conftest.$ac_ext
9165 LIBS="$ac_xsave_LIBS"
9167 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
9168 # to get the SysV transport functions.
9169 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
9170 # needs -lnsl.
9171 # The nsl library prevents programs from opening the X display
9172 # on Irix 5.2, according to T.E. Dickey.
9173 # The functions gethostbyname, getservbyname, and inet_addr are
9174 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
9175 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
9176 if test "x$ac_cv_func_gethostbyname" = xyes; then :
9180 if test $ac_cv_func_gethostbyname = no; then
9181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
9182 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
9183 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
9184 $as_echo_n "(cached) " >&6
9185 else
9186 ac_check_lib_save_LIBS=$LIBS
9187 LIBS="-lnsl $LIBS"
9188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9189 /* end confdefs.h. */
9191 /* Override any GCC internal prototype to avoid an error.
9192 Use char because int might match the return type of a GCC
9193 builtin and then its argument prototype would still apply. */
9194 #ifdef __cplusplus
9195 extern "C"
9196 #endif
9197 char gethostbyname ();
9199 main ()
9201 return gethostbyname ();
9203 return 0;
9205 _ACEOF
9206 if ac_fn_c_try_link "$LINENO"; then :
9207 ac_cv_lib_nsl_gethostbyname=yes
9208 else
9209 ac_cv_lib_nsl_gethostbyname=no
9211 rm -f core conftest.err conftest.$ac_objext \
9212 conftest$ac_exeext conftest.$ac_ext
9213 LIBS=$ac_check_lib_save_LIBS
9215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
9216 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
9217 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
9218 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
9221 if test $ac_cv_lib_nsl_gethostbyname = no; then
9222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
9223 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
9224 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
9225 $as_echo_n "(cached) " >&6
9226 else
9227 ac_check_lib_save_LIBS=$LIBS
9228 LIBS="-lbsd $LIBS"
9229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9230 /* end confdefs.h. */
9232 /* Override any GCC internal prototype to avoid an error.
9233 Use char because int might match the return type of a GCC
9234 builtin and then its argument prototype would still apply. */
9235 #ifdef __cplusplus
9236 extern "C"
9237 #endif
9238 char gethostbyname ();
9240 main ()
9242 return gethostbyname ();
9244 return 0;
9246 _ACEOF
9247 if ac_fn_c_try_link "$LINENO"; then :
9248 ac_cv_lib_bsd_gethostbyname=yes
9249 else
9250 ac_cv_lib_bsd_gethostbyname=no
9252 rm -f core conftest.err conftest.$ac_objext \
9253 conftest$ac_exeext conftest.$ac_ext
9254 LIBS=$ac_check_lib_save_LIBS
9256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
9257 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
9258 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
9259 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
9265 # lieder@skyler.mavd.honeywell.com says without -lsocket,
9266 # socket/setsockopt and other routines are undefined under SCO ODT
9267 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
9268 # on later versions), says Simon Leinen: it contains gethostby*
9269 # variants that don't use the name server (or something). -lsocket
9270 # must be given before -lnsl if both are needed. We assume that
9271 # if connect needs -lnsl, so does gethostbyname.
9272 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
9273 if test "x$ac_cv_func_connect" = xyes; then :
9277 if test $ac_cv_func_connect = no; then
9278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
9279 $as_echo_n "checking for connect in -lsocket... " >&6; }
9280 if ${ac_cv_lib_socket_connect+:} false; then :
9281 $as_echo_n "(cached) " >&6
9282 else
9283 ac_check_lib_save_LIBS=$LIBS
9284 LIBS="-lsocket $X_EXTRA_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 connect ();
9296 main ()
9298 return connect ();
9300 return 0;
9302 _ACEOF
9303 if ac_fn_c_try_link "$LINENO"; then :
9304 ac_cv_lib_socket_connect=yes
9305 else
9306 ac_cv_lib_socket_connect=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_socket_connect" >&5
9313 $as_echo "$ac_cv_lib_socket_connect" >&6; }
9314 if test "x$ac_cv_lib_socket_connect" = xyes; then :
9315 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
9320 # Guillermo Gomez says -lposix is necessary on A/UX.
9321 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
9322 if test "x$ac_cv_func_remove" = xyes; then :
9326 if test $ac_cv_func_remove = no; then
9327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
9328 $as_echo_n "checking for remove in -lposix... " >&6; }
9329 if ${ac_cv_lib_posix_remove+:} false; then :
9330 $as_echo_n "(cached) " >&6
9331 else
9332 ac_check_lib_save_LIBS=$LIBS
9333 LIBS="-lposix $LIBS"
9334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9335 /* end confdefs.h. */
9337 /* Override any GCC internal prototype to avoid an error.
9338 Use char because int might match the return type of a GCC
9339 builtin and then its argument prototype would still apply. */
9340 #ifdef __cplusplus
9341 extern "C"
9342 #endif
9343 char remove ();
9345 main ()
9347 return remove ();
9349 return 0;
9351 _ACEOF
9352 if ac_fn_c_try_link "$LINENO"; then :
9353 ac_cv_lib_posix_remove=yes
9354 else
9355 ac_cv_lib_posix_remove=no
9357 rm -f core conftest.err conftest.$ac_objext \
9358 conftest$ac_exeext conftest.$ac_ext
9359 LIBS=$ac_check_lib_save_LIBS
9361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
9362 $as_echo "$ac_cv_lib_posix_remove" >&6; }
9363 if test "x$ac_cv_lib_posix_remove" = xyes; then :
9364 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
9369 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
9370 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
9371 if test "x$ac_cv_func_shmat" = xyes; then :
9375 if test $ac_cv_func_shmat = no; then
9376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
9377 $as_echo_n "checking for shmat in -lipc... " >&6; }
9378 if ${ac_cv_lib_ipc_shmat+:} false; then :
9379 $as_echo_n "(cached) " >&6
9380 else
9381 ac_check_lib_save_LIBS=$LIBS
9382 LIBS="-lipc $LIBS"
9383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9384 /* end confdefs.h. */
9386 /* Override any GCC internal prototype to avoid an error.
9387 Use char because int might match the return type of a GCC
9388 builtin and then its argument prototype would still apply. */
9389 #ifdef __cplusplus
9390 extern "C"
9391 #endif
9392 char shmat ();
9394 main ()
9396 return shmat ();
9398 return 0;
9400 _ACEOF
9401 if ac_fn_c_try_link "$LINENO"; then :
9402 ac_cv_lib_ipc_shmat=yes
9403 else
9404 ac_cv_lib_ipc_shmat=no
9406 rm -f core conftest.err conftest.$ac_objext \
9407 conftest$ac_exeext conftest.$ac_ext
9408 LIBS=$ac_check_lib_save_LIBS
9410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
9411 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
9412 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
9413 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9419 # Check for libraries that X11R6 Xt/Xaw programs need.
9420 ac_save_LDFLAGS=$LDFLAGS
9421 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
9422 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
9423 # check for ICE first), but we must link in the order -lSM -lICE or
9424 # we get undefined symbols. So assume we have SM if we have ICE.
9425 # These have to be linked with before -lX11, unlike the other
9426 # libraries we check for below, so use a different variable.
9427 # John Interrante, Karl Berry
9428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
9429 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
9430 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
9431 $as_echo_n "(cached) " >&6
9432 else
9433 ac_check_lib_save_LIBS=$LIBS
9434 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
9435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9436 /* end confdefs.h. */
9438 /* Override any GCC internal prototype to avoid an error.
9439 Use char because int might match the return type of a GCC
9440 builtin and then its argument prototype would still apply. */
9441 #ifdef __cplusplus
9442 extern "C"
9443 #endif
9444 char IceConnectionNumber ();
9446 main ()
9448 return IceConnectionNumber ();
9450 return 0;
9452 _ACEOF
9453 if ac_fn_c_try_link "$LINENO"; then :
9454 ac_cv_lib_ICE_IceConnectionNumber=yes
9455 else
9456 ac_cv_lib_ICE_IceConnectionNumber=no
9458 rm -f core conftest.err conftest.$ac_objext \
9459 conftest$ac_exeext conftest.$ac_ext
9460 LIBS=$ac_check_lib_save_LIBS
9462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
9463 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
9464 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
9465 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9468 LDFLAGS=$ac_save_LDFLAGS
9473 if test "$have_x" = "yes"
9474 then
9475 ac_save_CPPFLAGS="$CPPFLAGS"
9476 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lX11" >&5
9479 $as_echo_n "checking for -lX11... " >&6; }
9480 if ${ac_cv_lib_soname_X11+:} false; then :
9481 $as_echo_n "(cached) " >&6
9482 else
9483 ac_check_soname_save_LIBS=$LIBS
9484 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
9485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9486 /* end confdefs.h. */
9488 /* Override any GCC internal prototype to avoid an error.
9489 Use char because int might match the return type of a GCC
9490 builtin and then its argument prototype would still apply. */
9491 #ifdef __cplusplus
9492 extern "C"
9493 #endif
9494 char XCreateWindow ();
9496 main ()
9498 return XCreateWindow ();
9500 return 0;
9502 _ACEOF
9503 if ac_fn_c_try_link "$LINENO"; then :
9504 case "$LIBEXT" in
9505 dll) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest.exe | grep "X11" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9506 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'` ;;
9507 *) ac_cv_lib_soname_X11=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libX11\\.$LIBEXT" | sed -e "s/^.*\\[\\(libX11\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9508 if ${ac_cv_lib_soname_X11:+false} :; then :
9509 ac_cv_lib_soname_X11=`$LDD conftest$ac_exeext | grep "libX11\\.$LIBEXT" | sed -e "s/^.*\(libX11\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9510 fi ;;
9511 esac
9513 rm -f core conftest.err conftest.$ac_objext \
9514 conftest$ac_exeext conftest.$ac_ext
9515 LIBS=$ac_check_soname_save_LIBS
9517 if ${ac_cv_lib_soname_X11:+false} :; then :
9518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9519 $as_echo "not found" >&6; }
9521 else
9522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_X11" >&5
9523 $as_echo "$ac_cv_lib_soname_X11" >&6; }
9525 cat >>confdefs.h <<_ACEOF
9526 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
9527 _ACEOF
9531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXext" >&5
9532 $as_echo_n "checking for -lXext... " >&6; }
9533 if ${ac_cv_lib_soname_Xext+:} false; then :
9534 $as_echo_n "(cached) " >&6
9535 else
9536 ac_check_soname_save_LIBS=$LIBS
9537 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9539 /* end confdefs.h. */
9541 /* Override any GCC internal prototype to avoid an error.
9542 Use char because int might match the return type of a GCC
9543 builtin and then its argument prototype would still apply. */
9544 #ifdef __cplusplus
9545 extern "C"
9546 #endif
9547 char XextCreateExtension ();
9549 main ()
9551 return XextCreateExtension ();
9553 return 0;
9555 _ACEOF
9556 if ac_fn_c_try_link "$LINENO"; then :
9557 case "$LIBEXT" in
9558 dll) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest.exe | grep "Xext" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9559 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'` ;;
9560 *) ac_cv_lib_soname_Xext=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXext\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXext\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9561 if ${ac_cv_lib_soname_Xext:+false} :; then :
9562 ac_cv_lib_soname_Xext=`$LDD conftest$ac_exeext | grep "libXext\\.$LIBEXT" | sed -e "s/^.*\(libXext\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9563 fi ;;
9564 esac
9566 rm -f core conftest.err conftest.$ac_objext \
9567 conftest$ac_exeext conftest.$ac_ext
9568 LIBS=$ac_check_soname_save_LIBS
9570 if ${ac_cv_lib_soname_Xext:+false} :; then :
9571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9572 $as_echo "not found" >&6; }
9574 else
9575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xext" >&5
9576 $as_echo "$ac_cv_lib_soname_Xext" >&6; }
9578 cat >>confdefs.h <<_ACEOF
9579 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
9580 _ACEOF
9582 X_LIBS="$X_LIBS -lXext"
9584 X_LIBS="$X_LIBS -lX11"
9586 for ac_header in X11/Xlib.h \
9587 X11/XKBlib.h \
9588 X11/Xutil.h \
9589 X11/Xcursor/Xcursor.h \
9590 X11/extensions/shape.h \
9591 X11/extensions/XInput.h \
9592 X11/extensions/XInput2.h \
9593 X11/extensions/XShm.h \
9594 X11/extensions/Xcomposite.h \
9595 X11/extensions/Xinerama.h \
9596 X11/extensions/Xrandr.h \
9597 X11/extensions/Xrender.h \
9598 X11/extensions/xf86vmode.h \
9599 X11/extensions/xf86vmproto.h
9600 do :
9601 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9602 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_X11_XLIB_H
9603 # include <X11/Xlib.h>
9604 #endif
9605 #ifdef HAVE_X11_XUTIL_H
9606 # include <X11/Xutil.h>
9607 #endif
9609 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9610 cat >>confdefs.h <<_ACEOF
9611 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9612 _ACEOF
9616 done
9619 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
9620 then
9621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbQueryExtension in -lX11" >&5
9622 $as_echo_n "checking for XkbQueryExtension in -lX11... " >&6; }
9623 if ${ac_cv_lib_X11_XkbQueryExtension+:} false; then :
9624 $as_echo_n "(cached) " >&6
9625 else
9626 ac_check_lib_save_LIBS=$LIBS
9627 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
9628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9629 /* end confdefs.h. */
9631 /* Override any GCC internal prototype to avoid an error.
9632 Use char because int might match the return type of a GCC
9633 builtin and then its argument prototype would still apply. */
9634 #ifdef __cplusplus
9635 extern "C"
9636 #endif
9637 char XkbQueryExtension ();
9639 main ()
9641 return XkbQueryExtension ();
9643 return 0;
9645 _ACEOF
9646 if ac_fn_c_try_link "$LINENO"; then :
9647 ac_cv_lib_X11_XkbQueryExtension=yes
9648 else
9649 ac_cv_lib_X11_XkbQueryExtension=no
9651 rm -f core conftest.err conftest.$ac_objext \
9652 conftest$ac_exeext conftest.$ac_ext
9653 LIBS=$ac_check_lib_save_LIBS
9655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
9656 $as_echo "$ac_cv_lib_X11_XkbQueryExtension" >&6; }
9657 if test "x$ac_cv_lib_X11_XkbQueryExtension" = xyes; then :
9659 $as_echo "#define HAVE_XKB 1" >>confdefs.h
9665 if test "$ac_cv_header_X11_Xcursor_Xcursor_h" = "yes"
9666 then
9667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcursor" >&5
9668 $as_echo_n "checking for -lXcursor... " >&6; }
9669 if ${ac_cv_lib_soname_Xcursor+:} false; then :
9670 $as_echo_n "(cached) " >&6
9671 else
9672 ac_check_soname_save_LIBS=$LIBS
9673 LIBS="-lXcursor $X_LIBS $X_EXTRA_LIBS $LIBS"
9674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9675 /* end confdefs.h. */
9677 /* Override any GCC internal prototype to avoid an error.
9678 Use char because int might match the return type of a GCC
9679 builtin and then its argument prototype would still apply. */
9680 #ifdef __cplusplus
9681 extern "C"
9682 #endif
9683 char XcursorImageLoadCursor ();
9685 main ()
9687 return XcursorImageLoadCursor ();
9689 return 0;
9691 _ACEOF
9692 if ac_fn_c_try_link "$LINENO"; then :
9693 case "$LIBEXT" in
9694 dll) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest.exe | grep "Xcursor" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9695 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'` ;;
9696 *) ac_cv_lib_soname_Xcursor=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXcursor\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXcursor\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9697 if ${ac_cv_lib_soname_Xcursor:+false} :; then :
9698 ac_cv_lib_soname_Xcursor=`$LDD conftest$ac_exeext | grep "libXcursor\\.$LIBEXT" | sed -e "s/^.*\(libXcursor\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9699 fi ;;
9700 esac
9702 rm -f core conftest.err conftest.$ac_objext \
9703 conftest$ac_exeext conftest.$ac_ext
9704 LIBS=$ac_check_soname_save_LIBS
9706 if ${ac_cv_lib_soname_Xcursor:+false} :; then :
9707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9708 $as_echo "not found" >&6; }
9710 else
9711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcursor" >&5
9712 $as_echo "$ac_cv_lib_soname_Xcursor" >&6; }
9714 cat >>confdefs.h <<_ACEOF
9715 #define SONAME_LIBXCURSOR "$ac_cv_lib_soname_Xcursor"
9716 _ACEOF
9721 if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
9722 case "x$with_xcursor" in
9723 x) as_fn_append wine_notices "|libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported." ;;
9724 xno) ;;
9725 *) as_fn_error $? "libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported.
9726 This is an error since --with-xcursor was requested." "$LINENO" 5 ;;
9727 esac
9730 if test "$ac_cv_header_X11_extensions_XInput_h" = "yes"
9731 then
9732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXi" >&5
9733 $as_echo_n "checking for -lXi... " >&6; }
9734 if ${ac_cv_lib_soname_Xi+:} false; then :
9735 $as_echo_n "(cached) " >&6
9736 else
9737 ac_check_soname_save_LIBS=$LIBS
9738 LIBS="-lXi $X_LIBS $X_EXTRA_LIBS $LIBS"
9739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9740 /* end confdefs.h. */
9742 /* Override any GCC internal prototype to avoid an error.
9743 Use char because int might match the return type of a GCC
9744 builtin and then its argument prototype would still apply. */
9745 #ifdef __cplusplus
9746 extern "C"
9747 #endif
9748 char XOpenDevice ();
9750 main ()
9752 return XOpenDevice ();
9754 return 0;
9756 _ACEOF
9757 if ac_fn_c_try_link "$LINENO"; then :
9758 case "$LIBEXT" in
9759 dll) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest.exe | grep "Xi" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9760 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'` ;;
9761 *) ac_cv_lib_soname_Xi=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXi\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXi\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9762 if ${ac_cv_lib_soname_Xi:+false} :; then :
9763 ac_cv_lib_soname_Xi=`$LDD conftest$ac_exeext | grep "libXi\\.$LIBEXT" | sed -e "s/^.*\(libXi\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9764 fi ;;
9765 esac
9767 rm -f core conftest.err conftest.$ac_objext \
9768 conftest$ac_exeext conftest.$ac_ext
9769 LIBS=$ac_check_soname_save_LIBS
9771 if ${ac_cv_lib_soname_Xi:+false} :; then :
9772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9773 $as_echo "not found" >&6; }
9775 else
9776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xi" >&5
9777 $as_echo "$ac_cv_lib_soname_Xi" >&6; }
9779 cat >>confdefs.h <<_ACEOF
9780 #define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
9781 _ACEOF
9786 if test "x$ac_cv_lib_soname_Xi" = "x"; then :
9787 case "x$with_xinput" in
9788 x) as_fn_append wine_notices "|libxi ${notice_platform}development files not found, the Xinput extension won't be supported." ;;
9789 xno) ;;
9790 *) as_fn_error $? "libxi ${notice_platform}development files not found, the Xinput extension won't be supported.
9791 This is an error since --with-xinput was requested." "$LINENO" 5 ;;
9792 esac
9795 if test "x$ac_cv_lib_soname_Xi" != x
9796 then
9797 if test "$ac_cv_header_X11_extensions_XInput2_h" != "yes"; then :
9798 case "x$with_xinput2" in
9799 x) as_fn_append wine_notices "|XInput2 headers not found, the XInput 2 extension won't be supported." ;;
9800 xno) ;;
9801 *) as_fn_error $? "XInput2 headers not found, the XInput 2 extension won't be supported.
9802 This is an error since --with-xinput2 was requested." "$LINENO" 5 ;;
9803 esac
9807 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
9808 then
9809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
9810 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
9811 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then :
9812 $as_echo_n "(cached) " >&6
9813 else
9814 ac_check_lib_save_LIBS=$LIBS
9815 LIBS="-lXext $X_LIBS $X_EXTRA_LIBS $LIBS"
9816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9817 /* end confdefs.h. */
9819 /* Override any GCC internal prototype to avoid an error.
9820 Use char because int might match the return type of a GCC
9821 builtin and then its argument prototype would still apply. */
9822 #ifdef __cplusplus
9823 extern "C"
9824 #endif
9825 char XShmQueryExtension ();
9827 main ()
9829 return XShmQueryExtension ();
9831 return 0;
9833 _ACEOF
9834 if ac_fn_c_try_link "$LINENO"; then :
9835 ac_cv_lib_Xext_XShmQueryExtension=yes
9836 else
9837 ac_cv_lib_Xext_XShmQueryExtension=no
9839 rm -f core conftest.err conftest.$ac_objext \
9840 conftest$ac_exeext conftest.$ac_ext
9841 LIBS=$ac_check_lib_save_LIBS
9843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
9844 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
9845 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then :
9847 $as_echo "#define HAVE_LIBXXSHM 1" >>confdefs.h
9852 if test "$ac_cv_lib_Xext_XShmQueryExtension" != "yes"; then :
9853 case "x$with_xshm" in
9854 x) as_fn_append wine_notices "|XShm ${notice_platform}development files not found, X Shared Memory won't be supported." ;;
9855 xno) ;;
9856 *) as_fn_error $? "XShm ${notice_platform}development files not found, X Shared Memory won't be supported.
9857 This is an error since --with-xshm was requested." "$LINENO" 5 ;;
9858 esac
9861 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
9862 then
9863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
9864 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
9865 if ${ac_cv_lib_Xext_XShapeQueryExtension+:} false; then :
9866 $as_echo_n "(cached) " >&6
9867 else
9868 ac_check_lib_save_LIBS=$LIBS
9869 LIBS="-lXext $X_LIBS $X_EXTRA_LIBS $LIBS"
9870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9871 /* end confdefs.h. */
9873 /* Override any GCC internal prototype to avoid an error.
9874 Use char because int might match the return type of a GCC
9875 builtin and then its argument prototype would still apply. */
9876 #ifdef __cplusplus
9877 extern "C"
9878 #endif
9879 char XShapeQueryExtension ();
9881 main ()
9883 return XShapeQueryExtension ();
9885 return 0;
9887 _ACEOF
9888 if ac_fn_c_try_link "$LINENO"; then :
9889 ac_cv_lib_Xext_XShapeQueryExtension=yes
9890 else
9891 ac_cv_lib_Xext_XShapeQueryExtension=no
9893 rm -f core conftest.err conftest.$ac_objext \
9894 conftest$ac_exeext conftest.$ac_ext
9895 LIBS=$ac_check_lib_save_LIBS
9897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
9898 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
9899 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = xyes; then :
9901 $as_echo "#define HAVE_LIBXSHAPE 1" >>confdefs.h
9906 if test "$ac_cv_lib_Xext_XShapeQueryExtension" != "yes"; then :
9907 case "x$with_xshape" in
9908 x) as_fn_append wine_notices "|XShape ${notice_platform}development files not found, XShape won't be supported." ;;
9909 xno) ;;
9910 *) as_fn_error $? "XShape ${notice_platform}development files not found, XShape won't be supported.
9911 This is an error since --with-xshape was requested." "$LINENO" 5 ;;
9912 esac
9915 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes" -o "$ac_cv_header_X11_extensions_xf86vmproto_h" = "yes"
9916 then
9917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXxf86vm" >&5
9918 $as_echo_n "checking for -lXxf86vm... " >&6; }
9919 if ${ac_cv_lib_soname_Xxf86vm+:} false; then :
9920 $as_echo_n "(cached) " >&6
9921 else
9922 ac_check_soname_save_LIBS=$LIBS
9923 LIBS="-lXxf86vm $X_LIBS $X_EXTRA_LIBS $LIBS"
9924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9925 /* end confdefs.h. */
9927 /* Override any GCC internal prototype to avoid an error.
9928 Use char because int might match the return type of a GCC
9929 builtin and then its argument prototype would still apply. */
9930 #ifdef __cplusplus
9931 extern "C"
9932 #endif
9933 char XF86VidModeQueryExtension ();
9935 main ()
9937 return XF86VidModeQueryExtension ();
9939 return 0;
9941 _ACEOF
9942 if ac_fn_c_try_link "$LINENO"; then :
9943 case "$LIBEXT" in
9944 dll) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest.exe | grep "Xxf86vm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9945 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'` ;;
9946 *) ac_cv_lib_soname_Xxf86vm=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXxf86vm\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXxf86vm\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9947 if ${ac_cv_lib_soname_Xxf86vm:+false} :; then :
9948 ac_cv_lib_soname_Xxf86vm=`$LDD conftest$ac_exeext | grep "libXxf86vm\\.$LIBEXT" | sed -e "s/^.*\(libXxf86vm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9949 fi ;;
9950 esac
9952 rm -f core conftest.err conftest.$ac_objext \
9953 conftest$ac_exeext conftest.$ac_ext
9954 LIBS=$ac_check_soname_save_LIBS
9956 if ${ac_cv_lib_soname_Xxf86vm:+false} :; then :
9957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9958 $as_echo "not found" >&6; }
9960 else
9961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xxf86vm" >&5
9962 $as_echo "$ac_cv_lib_soname_Xxf86vm" >&6; }
9964 cat >>confdefs.h <<_ACEOF
9965 #define SONAME_LIBXXF86VM "$ac_cv_lib_soname_Xxf86vm"
9966 _ACEOF
9971 if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
9972 case "x$with_xxf86vm" in
9973 x) as_fn_append wine_notices "|libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported." ;;
9974 xno) ;;
9975 *) as_fn_error $? "libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported.
9976 This is an error since --with-xxf86vm was requested." "$LINENO" 5 ;;
9977 esac
9980 if test "$ac_cv_header_X11_extensions_Xrender_h" = "yes" -a "x$ac_cv_lib_soname_X11" != "x"
9981 then
9982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrender" >&5
9983 $as_echo_n "checking for -lXrender... " >&6; }
9984 if ${ac_cv_lib_soname_Xrender+:} false; then :
9985 $as_echo_n "(cached) " >&6
9986 else
9987 ac_check_soname_save_LIBS=$LIBS
9988 LIBS="-lXrender $X_LIBS $X_EXTRA_LIBS $LIBS"
9989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9990 /* end confdefs.h. */
9992 /* Override any GCC internal prototype to avoid an error.
9993 Use char because int might match the return type of a GCC
9994 builtin and then its argument prototype would still apply. */
9995 #ifdef __cplusplus
9996 extern "C"
9997 #endif
9998 char XRenderQueryExtension ();
10000 main ()
10002 return XRenderQueryExtension ();
10004 return 0;
10006 _ACEOF
10007 if ac_fn_c_try_link "$LINENO"; then :
10008 case "$LIBEXT" in
10009 dll) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest.exe | grep "Xrender" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10010 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'` ;;
10011 *) ac_cv_lib_soname_Xrender=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXrender\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXrender\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10012 if ${ac_cv_lib_soname_Xrender:+false} :; then :
10013 ac_cv_lib_soname_Xrender=`$LDD conftest$ac_exeext | grep "libXrender\\.$LIBEXT" | sed -e "s/^.*\(libXrender\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10014 fi ;;
10015 esac
10017 rm -f core conftest.err conftest.$ac_objext \
10018 conftest$ac_exeext conftest.$ac_ext
10019 LIBS=$ac_check_soname_save_LIBS
10021 if ${ac_cv_lib_soname_Xrender:+false} :; then :
10022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10023 $as_echo "not found" >&6; }
10025 else
10026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrender" >&5
10027 $as_echo "$ac_cv_lib_soname_Xrender" >&6; }
10029 cat >>confdefs.h <<_ACEOF
10030 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
10031 _ACEOF
10033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderSetPictureTransform in -lXrender" >&5
10034 $as_echo_n "checking for XRenderSetPictureTransform in -lXrender... " >&6; }
10035 if ${ac_cv_lib_Xrender_XRenderSetPictureTransform+:} false; then :
10036 $as_echo_n "(cached) " >&6
10037 else
10038 ac_check_lib_save_LIBS=$LIBS
10039 LIBS="-lXrender $X_LIBS $X_EXTRA_LIBS $LIBS"
10040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10041 /* end confdefs.h. */
10043 /* Override any GCC internal prototype to avoid an error.
10044 Use char because int might match the return type of a GCC
10045 builtin and then its argument prototype would still apply. */
10046 #ifdef __cplusplus
10047 extern "C"
10048 #endif
10049 char XRenderSetPictureTransform ();
10051 main ()
10053 return XRenderSetPictureTransform ();
10055 return 0;
10057 _ACEOF
10058 if ac_fn_c_try_link "$LINENO"; then :
10059 ac_cv_lib_Xrender_XRenderSetPictureTransform=yes
10060 else
10061 ac_cv_lib_Xrender_XRenderSetPictureTransform=no
10063 rm -f core conftest.err conftest.$ac_objext \
10064 conftest$ac_exeext conftest.$ac_ext
10065 LIBS=$ac_check_lib_save_LIBS
10067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5
10068 $as_echo "$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6; }
10069 if test "x$ac_cv_lib_Xrender_XRenderSetPictureTransform" = xyes; then :
10071 $as_echo "#define HAVE_XRENDERSETPICTURETRANSFORM 1" >>confdefs.h
10075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderCreateLinearGradient in -lXrender" >&5
10076 $as_echo_n "checking for XRenderCreateLinearGradient in -lXrender... " >&6; }
10077 if ${ac_cv_lib_Xrender_XRenderCreateLinearGradient+:} false; then :
10078 $as_echo_n "(cached) " >&6
10079 else
10080 ac_check_lib_save_LIBS=$LIBS
10081 LIBS="-lXrender $X_LIBS $X_EXTRA_LIBS $LIBS"
10082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10083 /* end confdefs.h. */
10085 /* Override any GCC internal prototype to avoid an error.
10086 Use char because int might match the return type of a GCC
10087 builtin and then its argument prototype would still apply. */
10088 #ifdef __cplusplus
10089 extern "C"
10090 #endif
10091 char XRenderCreateLinearGradient ();
10093 main ()
10095 return XRenderCreateLinearGradient ();
10097 return 0;
10099 _ACEOF
10100 if ac_fn_c_try_link "$LINENO"; then :
10101 ac_cv_lib_Xrender_XRenderCreateLinearGradient=yes
10102 else
10103 ac_cv_lib_Xrender_XRenderCreateLinearGradient=no
10105 rm -f core conftest.err conftest.$ac_objext \
10106 conftest$ac_exeext conftest.$ac_ext
10107 LIBS=$ac_check_lib_save_LIBS
10109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderCreateLinearGradient" >&5
10110 $as_echo "$ac_cv_lib_Xrender_XRenderCreateLinearGradient" >&6; }
10111 if test "x$ac_cv_lib_Xrender_XRenderCreateLinearGradient" = xyes; then :
10113 $as_echo "#define HAVE_XRENDERCREATELINEARGRADIENT 1" >>confdefs.h
10120 if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
10121 case "x$with_xrender" in
10122 x) as_fn_append wine_warnings "|libxrender ${notice_platform}development files not found, XRender won't be supported." ;;
10123 xno) ;;
10124 *) as_fn_error $? "libxrender ${notice_platform}development files not found, XRender won't be supported.
10125 This is an error since --with-xrender was requested." "$LINENO" 5 ;;
10126 esac
10129 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes" -a "x$ac_cv_lib_soname_Xrender" != "x"
10130 then
10131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10132 /* end confdefs.h. */
10133 #include <X11/Xlib.h>
10134 #include <X11/extensions/Xrandr.h>
10136 main ()
10138 static typeof(XRRSetScreenConfigAndRate) * func; if (func) return 0;
10140 return 0;
10142 _ACEOF
10143 if ac_fn_c_try_compile "$LINENO"; then :
10144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrandr" >&5
10145 $as_echo_n "checking for -lXrandr... " >&6; }
10146 if ${ac_cv_lib_soname_Xrandr+:} false; then :
10147 $as_echo_n "(cached) " >&6
10148 else
10149 ac_check_soname_save_LIBS=$LIBS
10150 LIBS="-lXrandr $X_LIBS $X_EXTRA_LIBS $LIBS"
10151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10152 /* end confdefs.h. */
10154 /* Override any GCC internal prototype to avoid an error.
10155 Use char because int might match the return type of a GCC
10156 builtin and then its argument prototype would still apply. */
10157 #ifdef __cplusplus
10158 extern "C"
10159 #endif
10160 char XRRQueryExtension ();
10162 main ()
10164 return XRRQueryExtension ();
10166 return 0;
10168 _ACEOF
10169 if ac_fn_c_try_link "$LINENO"; then :
10170 case "$LIBEXT" in
10171 dll) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest.exe | grep "Xrandr" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10172 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'` ;;
10173 *) ac_cv_lib_soname_Xrandr=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXrandr\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXrandr\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10174 if ${ac_cv_lib_soname_Xrandr:+false} :; then :
10175 ac_cv_lib_soname_Xrandr=`$LDD conftest$ac_exeext | grep "libXrandr\\.$LIBEXT" | sed -e "s/^.*\(libXrandr\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10176 fi ;;
10177 esac
10179 rm -f core conftest.err conftest.$ac_objext \
10180 conftest$ac_exeext conftest.$ac_ext
10181 LIBS=$ac_check_soname_save_LIBS
10183 if ${ac_cv_lib_soname_Xrandr:+false} :; then :
10184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10185 $as_echo "not found" >&6; }
10187 else
10188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrandr" >&5
10189 $as_echo "$ac_cv_lib_soname_Xrandr" >&6; }
10191 cat >>confdefs.h <<_ACEOF
10192 #define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
10193 _ACEOF
10195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10196 /* end confdefs.h. */
10197 #include <X11/Xlib.h>
10198 #include <X11/extensions/Xrandr.h>
10200 main ()
10202 static typeof(XRRGetScreenResources) *f; if (f) return 0;
10204 return 0;
10206 _ACEOF
10207 if ac_fn_c_try_compile "$LINENO"; then :
10209 $as_echo "#define HAVE_XRRGETSCREENRESOURCES 1" >>confdefs.h
10212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10217 if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
10218 case "x$with_xrandr" in
10219 x) as_fn_append wine_notices "|libxrandr ${notice_platform}development files not found, XRandr won't be supported." ;;
10220 xno) ;;
10221 *) as_fn_error $? "libxrandr ${notice_platform}development files not found, XRandr won't be supported.
10222 This is an error since --with-xrandr was requested." "$LINENO" 5 ;;
10223 esac
10226 if test "$ac_cv_header_X11_extensions_Xinerama_h" = "yes"
10227 then
10228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10229 /* end confdefs.h. */
10230 #include <X11/Xlib.h>
10231 #include <X11/extensions/Xinerama.h>
10233 main ()
10235 static typeof(XineramaQueryScreens) * func; if (func) return 0;
10237 return 0;
10239 _ACEOF
10240 if ac_fn_c_try_compile "$LINENO"; then :
10241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXinerama" >&5
10242 $as_echo_n "checking for -lXinerama... " >&6; }
10243 if ${ac_cv_lib_soname_Xinerama+:} false; then :
10244 $as_echo_n "(cached) " >&6
10245 else
10246 ac_check_soname_save_LIBS=$LIBS
10247 LIBS="-lXinerama $X_LIBS $X_EXTRA_LIBS $LIBS"
10248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10249 /* end confdefs.h. */
10251 /* Override any GCC internal prototype to avoid an error.
10252 Use char because int might match the return type of a GCC
10253 builtin and then its argument prototype would still apply. */
10254 #ifdef __cplusplus
10255 extern "C"
10256 #endif
10257 char XineramaQueryScreens ();
10259 main ()
10261 return XineramaQueryScreens ();
10263 return 0;
10265 _ACEOF
10266 if ac_fn_c_try_link "$LINENO"; then :
10267 case "$LIBEXT" in
10268 dll) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest.exe | grep "Xinerama" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10269 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'` ;;
10270 *) ac_cv_lib_soname_Xinerama=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXinerama\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXinerama\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10271 if ${ac_cv_lib_soname_Xinerama:+false} :; then :
10272 ac_cv_lib_soname_Xinerama=`$LDD conftest$ac_exeext | grep "libXinerama\\.$LIBEXT" | sed -e "s/^.*\(libXinerama\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10273 fi ;;
10274 esac
10276 rm -f core conftest.err conftest.$ac_objext \
10277 conftest$ac_exeext conftest.$ac_ext
10278 LIBS=$ac_check_soname_save_LIBS
10280 if ${ac_cv_lib_soname_Xinerama:+false} :; then :
10281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10282 $as_echo "not found" >&6; }
10284 else
10285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xinerama" >&5
10286 $as_echo "$ac_cv_lib_soname_Xinerama" >&6; }
10288 cat >>confdefs.h <<_ACEOF
10289 #define SONAME_LIBXINERAMA "$ac_cv_lib_soname_Xinerama"
10290 _ACEOF
10295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10297 if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
10298 case "x$with_xinerama" in
10299 x) as_fn_append wine_notices "|libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported." ;;
10300 xno) ;;
10301 *) as_fn_error $? "libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported.
10302 This is an error since --with-xinerama was requested." "$LINENO" 5 ;;
10303 esac
10306 if test "$ac_cv_header_X11_extensions_Xcomposite_h" = "yes"
10307 then
10308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcomposite" >&5
10309 $as_echo_n "checking for -lXcomposite... " >&6; }
10310 if ${ac_cv_lib_soname_Xcomposite+:} false; then :
10311 $as_echo_n "(cached) " >&6
10312 else
10313 ac_check_soname_save_LIBS=$LIBS
10314 LIBS="-lXcomposite $X_LIBS $X_EXTRA_LIBS $LIBS"
10315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10316 /* end confdefs.h. */
10318 /* Override any GCC internal prototype to avoid an error.
10319 Use char because int might match the return type of a GCC
10320 builtin and then its argument prototype would still apply. */
10321 #ifdef __cplusplus
10322 extern "C"
10323 #endif
10324 char XCompositeRedirectWindow ();
10326 main ()
10328 return XCompositeRedirectWindow ();
10330 return 0;
10332 _ACEOF
10333 if ac_fn_c_try_link "$LINENO"; then :
10334 case "$LIBEXT" in
10335 dll) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest.exe | grep "Xcomposite" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10336 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'` ;;
10337 *) ac_cv_lib_soname_Xcomposite=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXcomposite\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXcomposite\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10338 if ${ac_cv_lib_soname_Xcomposite:+false} :; then :
10339 ac_cv_lib_soname_Xcomposite=`$LDD conftest$ac_exeext | grep "libXcomposite\\.$LIBEXT" | sed -e "s/^.*\(libXcomposite\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10340 fi ;;
10341 esac
10343 rm -f core conftest.err conftest.$ac_objext \
10344 conftest$ac_exeext conftest.$ac_ext
10345 LIBS=$ac_check_soname_save_LIBS
10347 if ${ac_cv_lib_soname_Xcomposite:+false} :; then :
10348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10349 $as_echo "not found" >&6; }
10351 else
10352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcomposite" >&5
10353 $as_echo "$ac_cv_lib_soname_Xcomposite" >&6; }
10355 cat >>confdefs.h <<_ACEOF
10356 #define SONAME_LIBXCOMPOSITE "$ac_cv_lib_soname_Xcomposite"
10357 _ACEOF
10362 if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
10363 case "x$with_xcomposite" in
10364 x) as_fn_append wine_notices "|libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported." ;;
10365 xno) ;;
10366 *) as_fn_error $? "libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported.
10367 This is an error since --with-xcomposite was requested." "$LINENO" 5 ;;
10368 esac
10371 ac_fn_c_check_member "$LINENO" "XICCallback" "callback" "ac_cv_member_XICCallback_callback" "#ifdef HAVE_X11_XLIB_H
10372 #include <X11/Xlib.h>
10373 #endif
10375 if test "x$ac_cv_member_XICCallback_callback" = xyes; then :
10377 cat >>confdefs.h <<_ACEOF
10378 #define HAVE_XICCALLBACK_CALLBACK 1
10379 _ACEOF
10383 ac_fn_c_check_member "$LINENO" "XEvent" "xcookie" "ac_cv_member_XEvent_xcookie" "#ifdef HAVE_X11_XLIB_H
10384 #include <X11/Xlib.h>
10385 #endif
10387 if test "x$ac_cv_member_XEvent_xcookie" = xyes; then :
10389 cat >>confdefs.h <<_ACEOF
10390 #define HAVE_XEVENT_XCOOKIE 1
10391 _ACEOF
10398 opengl_msg=""
10399 if test "x$with_opengl" != "xno"
10400 then
10401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
10402 $as_echo_n "checking for -lGL... " >&6; }
10403 if ${ac_cv_lib_soname_GL+:} false; then :
10404 $as_echo_n "(cached) " >&6
10405 else
10406 ac_check_soname_save_LIBS=$LIBS
10407 LIBS="-lGL $X_LIBS -lm $X_EXTRA_LIBS $LIBS"
10408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10409 /* end confdefs.h. */
10411 /* Override any GCC internal prototype to avoid an error.
10412 Use char because int might match the return type of a GCC
10413 builtin and then its argument prototype would still apply. */
10414 #ifdef __cplusplus
10415 extern "C"
10416 #endif
10417 char glXCreateContext ();
10419 main ()
10421 return glXCreateContext ();
10423 return 0;
10425 _ACEOF
10426 if ac_fn_c_try_link "$LINENO"; then :
10427 case "$LIBEXT" in
10428 dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10429 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'` ;;
10430 *) ac_cv_lib_soname_GL=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libGL\\.$LIBEXT" | sed -e "s/^.*\\[\\(libGL\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10431 if ${ac_cv_lib_soname_GL:+false} :; then :
10432 ac_cv_lib_soname_GL=`$LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10433 fi ;;
10434 esac
10436 rm -f core conftest.err conftest.$ac_objext \
10437 conftest$ac_exeext conftest.$ac_ext
10438 LIBS=$ac_check_soname_save_LIBS
10440 if ${ac_cv_lib_soname_GL:+false} :; then :
10441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10442 $as_echo "not found" >&6; }
10443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
10444 $as_echo_n "checking for -lGL... " >&6; }
10445 if ${ac_cv_lib_soname_GL+:} false; then :
10446 $as_echo_n "(cached) " >&6
10447 else
10448 ac_check_soname_save_LIBS=$LIBS
10449 LIBS="-lGL $X_LIBS -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"
10450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10451 /* end confdefs.h. */
10453 /* Override any GCC internal prototype to avoid an error.
10454 Use char because int might match the return type of a GCC
10455 builtin and then its argument prototype would still apply. */
10456 #ifdef __cplusplus
10457 extern "C"
10458 #endif
10459 char glXCreateContext ();
10461 main ()
10463 return glXCreateContext ();
10465 return 0;
10467 _ACEOF
10468 if ac_fn_c_try_link "$LINENO"; then :
10469 case "$LIBEXT" in
10470 dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10471 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'` ;;
10472 *) ac_cv_lib_soname_GL=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libGL\\.$LIBEXT" | sed -e "s/^.*\\[\\(libGL\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10473 if ${ac_cv_lib_soname_GL:+false} :; then :
10474 ac_cv_lib_soname_GL=`$LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10475 fi ;;
10476 esac
10478 rm -f core conftest.err conftest.$ac_objext \
10479 conftest$ac_exeext conftest.$ac_ext
10480 LIBS=$ac_check_soname_save_LIBS
10482 if ${ac_cv_lib_soname_GL:+false} :; then :
10483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10484 $as_echo "not found" >&6; }
10485 if test -f /usr/X11R6/lib/libGL.a
10486 then
10487 opengl_msg="/usr/X11R6/lib/libGL.a is present on your system.
10488 This probably prevents linking to OpenGL. Try deleting the file and restarting configure."
10489 else
10490 opengl_msg="No OpenGL library found on this system."
10492 else
10493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
10494 $as_echo "$ac_cv_lib_soname_GL" >&6; }
10496 cat >>confdefs.h <<_ACEOF
10497 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
10498 _ACEOF
10500 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"
10502 else
10503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
10504 $as_echo "$ac_cv_lib_soname_GL" >&6; }
10506 cat >>confdefs.h <<_ACEOF
10507 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
10508 _ACEOF
10510 OPENGL_LIBS="-lGL"
10512 if test "x$with_glu" != "xno"
10513 then
10514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gluLookAt in -lGLU" >&5
10515 $as_echo_n "checking for gluLookAt in -lGLU... " >&6; }
10516 if ${ac_cv_lib_GLU_gluLookAt+:} false; then :
10517 $as_echo_n "(cached) " >&6
10518 else
10519 ac_check_lib_save_LIBS=$LIBS
10520 LIBS="-lGLU $OPENGL_LIBS $X_LIBS -lm $X_EXTRA_LIBS $LIBS"
10521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10522 /* end confdefs.h. */
10524 /* Override any GCC internal prototype to avoid an error.
10525 Use char because int might match the return type of a GCC
10526 builtin and then its argument prototype would still apply. */
10527 #ifdef __cplusplus
10528 extern "C"
10529 #endif
10530 char gluLookAt ();
10532 main ()
10534 return gluLookAt ();
10536 return 0;
10538 _ACEOF
10539 if ac_fn_c_try_link "$LINENO"; then :
10540 ac_cv_lib_GLU_gluLookAt=yes
10541 else
10542 ac_cv_lib_GLU_gluLookAt=no
10544 rm -f core conftest.err conftest.$ac_objext \
10545 conftest$ac_exeext conftest.$ac_ext
10546 LIBS=$ac_check_lib_save_LIBS
10548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GLU_gluLookAt" >&5
10549 $as_echo "$ac_cv_lib_GLU_gluLookAt" >&6; }
10550 if test "x$ac_cv_lib_GLU_gluLookAt" = xyes; then :
10554 if test "x$ac_cv_lib_GLU_gluLookAt" != xyes; then :
10555 case "x$with_glu" in
10556 x) as_fn_append wine_notices "|libGLU ${notice_platform}development files not found, GLU won't be supported." ;;
10557 xno) ;;
10558 *) as_fn_error $? "libGLU ${notice_platform}development files not found, GLU won't be supported.
10559 This is an error since --with-glu was requested." "$LINENO" 5 ;;
10560 esac
10564 if test "x$with_osmesa" != "xno"
10565 then
10566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lOSMesa" >&5
10567 $as_echo_n "checking for -lOSMesa... " >&6; }
10568 if ${ac_cv_lib_soname_OSMesa+:} false; then :
10569 $as_echo_n "(cached) " >&6
10570 else
10571 ac_check_soname_save_LIBS=$LIBS
10572 LIBS="-lOSMesa $X_LIBS -lm $X_EXTRA_LIBS $LIBS"
10573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10574 /* end confdefs.h. */
10576 /* Override any GCC internal prototype to avoid an error.
10577 Use char because int might match the return type of a GCC
10578 builtin and then its argument prototype would still apply. */
10579 #ifdef __cplusplus
10580 extern "C"
10581 #endif
10582 char glAccum ();
10584 main ()
10586 return glAccum ();
10588 return 0;
10590 _ACEOF
10591 if ac_fn_c_try_link "$LINENO"; then :
10592 case "$LIBEXT" in
10593 dll) ac_cv_lib_soname_OSMesa=`$ac_cv_path_LDD conftest.exe | grep "OSMesa" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10594 dylib) ac_cv_lib_soname_OSMesa=`otool -L conftest$ac_exeext | grep "libOSMesa\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libOSMesa\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
10595 *) ac_cv_lib_soname_OSMesa=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libOSMesa\\.$LIBEXT" | sed -e "s/^.*\\[\\(libOSMesa\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10596 if ${ac_cv_lib_soname_OSMesa:+false} :; then :
10597 ac_cv_lib_soname_OSMesa=`$LDD conftest$ac_exeext | grep "libOSMesa\\.$LIBEXT" | sed -e "s/^.*\(libOSMesa\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10598 fi ;;
10599 esac
10601 rm -f core conftest.err conftest.$ac_objext \
10602 conftest$ac_exeext conftest.$ac_ext
10603 LIBS=$ac_check_soname_save_LIBS
10605 if ${ac_cv_lib_soname_OSMesa:+false} :; then :
10606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10607 $as_echo "not found" >&6; }
10609 else
10610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_OSMesa" >&5
10611 $as_echo "$ac_cv_lib_soname_OSMesa" >&6; }
10613 cat >>confdefs.h <<_ACEOF
10614 #define SONAME_LIBOSMESA "$ac_cv_lib_soname_OSMesa"
10615 _ACEOF
10619 if test "x$ac_cv_lib_soname_OSMesa" = "x"; then :
10620 case "x$with_osmesa" in
10621 x) as_fn_append wine_notices "|libOSMesa ${notice_platform}development files not found (or too old), OpenGL rendering in bitmaps won't be supported." ;;
10622 xno) ;;
10623 *) as_fn_error $? "libOSMesa ${notice_platform}development files not found (or too old), OpenGL rendering in bitmaps won't be supported.
10624 This is an error since --with-osmesa was requested." "$LINENO" 5 ;;
10625 esac
10629 if test -n "$opengl_msg"; then :
10630 case "x$with_opengl" in
10631 x) as_fn_append wine_warnings "|$opengl_msg
10632 OpenGL and Direct3D won't be supported." ;;
10633 xno) ;;
10634 *) as_fn_error $? "$opengl_msg
10635 OpenGL and Direct3D won't be supported.
10636 This is an error since --with-opengl was requested." "$LINENO" 5 ;;
10637 esac
10640 CPPFLAGS="$ac_save_CPPFLAGS"
10641 else
10642 X_CFLAGS=""
10643 X_LIBS=""
10644 enable_winex11_drv=${enable_winex11_drv:-no}
10646 if test "x$X_LIBS" = "x"; then :
10647 case "x$with_x" in
10648 xno) ;;
10649 *) as_fn_error $? "X ${notice_platform}development files not found. Wine will be built
10650 without X support, which probably isn't what you want. You will need
10651 to install ${notice_platform}development packages of Xlib/Xfree86 at the very least.
10652 Use the --without-x option if you really want this." "$LINENO" 5 ;;
10653 esac
10656 test "x$ac_cv_lib_GLU_gluLookAt" != xyes && enable_glu32=${enable_glu32:-no}
10658 if test "$ac_cv_header_CL_cl_h" = "yes"
10659 then
10660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clGetPlatformInfo in -lOpenCL" >&5
10661 $as_echo_n "checking for clGetPlatformInfo in -lOpenCL... " >&6; }
10662 if ${ac_cv_lib_OpenCL_clGetPlatformInfo+:} false; then :
10663 $as_echo_n "(cached) " >&6
10664 else
10665 ac_check_lib_save_LIBS=$LIBS
10666 LIBS="-lOpenCL $LIBS"
10667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10668 /* end confdefs.h. */
10670 /* Override any GCC internal prototype to avoid an error.
10671 Use char because int might match the return type of a GCC
10672 builtin and then its argument prototype would still apply. */
10673 #ifdef __cplusplus
10674 extern "C"
10675 #endif
10676 char clGetPlatformInfo ();
10678 main ()
10680 return clGetPlatformInfo ();
10682 return 0;
10684 _ACEOF
10685 if ac_fn_c_try_link "$LINENO"; then :
10686 ac_cv_lib_OpenCL_clGetPlatformInfo=yes
10687 else
10688 ac_cv_lib_OpenCL_clGetPlatformInfo=no
10690 rm -f core conftest.err conftest.$ac_objext \
10691 conftest$ac_exeext conftest.$ac_ext
10692 LIBS=$ac_check_lib_save_LIBS
10694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_OpenCL_clGetPlatformInfo" >&5
10695 $as_echo "$ac_cv_lib_OpenCL_clGetPlatformInfo" >&6; }
10696 if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" = xyes; then :
10697 OPENCL_LIBS="-lOpenCL"
10702 if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes; then :
10703 case "x$with_opencl" in
10704 x) as_fn_append wine_notices "|OpenCL ${notice_platform}development files not found, OpenCL won't be supported." ;;
10705 xno) ;;
10706 *) as_fn_error $? "OpenCL ${notice_platform}development files not found, OpenCL won't be supported.
10707 This is an error since --with-opencl was requested." "$LINENO" 5 ;;
10708 esac
10710 test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes && enable_opencl=${enable_opencl:-no}
10712 if test "$ac_cv_header_pcap_pcap_h" = "yes"
10713 then
10714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_create in -lpcap" >&5
10715 $as_echo_n "checking for pcap_create in -lpcap... " >&6; }
10716 if ${ac_cv_lib_pcap_pcap_create+:} false; then :
10717 $as_echo_n "(cached) " >&6
10718 else
10719 ac_check_lib_save_LIBS=$LIBS
10720 LIBS="-lpcap $LIBS"
10721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10722 /* end confdefs.h. */
10724 /* Override any GCC internal prototype to avoid an error.
10725 Use char because int might match the return type of a GCC
10726 builtin and then its argument prototype would still apply. */
10727 #ifdef __cplusplus
10728 extern "C"
10729 #endif
10730 char pcap_create ();
10732 main ()
10734 return pcap_create ();
10736 return 0;
10738 _ACEOF
10739 if ac_fn_c_try_link "$LINENO"; then :
10740 ac_cv_lib_pcap_pcap_create=yes
10741 else
10742 ac_cv_lib_pcap_pcap_create=no
10744 rm -f core conftest.err conftest.$ac_objext \
10745 conftest$ac_exeext conftest.$ac_ext
10746 LIBS=$ac_check_lib_save_LIBS
10748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_create" >&5
10749 $as_echo "$ac_cv_lib_pcap_pcap_create" >&6; }
10750 if test "x$ac_cv_lib_pcap_pcap_create" = xyes; then :
10751 LIBPCAP="-lpcap"
10756 if test "x$ac_cv_lib_pcap_pcap_create" != xyes; then :
10757 case "x$with_pcap" in
10758 x) as_fn_append wine_notices "|pcap ${notice_platform}development files not found, wpcap won't be supported." ;;
10759 xno) ;;
10760 *) as_fn_error $? "pcap ${notice_platform}development files not found, wpcap won't be supported.
10761 This is an error since --with-pcap was requested." "$LINENO" 5 ;;
10762 esac
10764 test "x$ac_cv_lib_pcap_pcap_create" != xyes && enable_wpcap=${enable_wpcap:-no}
10767 if test "x$with_xml" != "xno"
10768 then
10769 if ${XML2_CFLAGS:+false} :; then :
10770 if ${PKG_CONFIG+:} false; then :
10771 XML2_CFLAGS=`$PKG_CONFIG --cflags libxml-2.0 2>/dev/null`
10774 test "$cross_compiling" = yes || XML2_CFLAGS=${XML2_CFLAGS:-`xml2-config --cflags 2>/dev/null`}
10775 if ${XML2_LIBS:+false} :; then :
10776 if ${PKG_CONFIG+:} false; then :
10777 XML2_LIBS=`$PKG_CONFIG --libs libxml-2.0 2>/dev/null`
10780 test "$cross_compiling" = yes || XML2_LIBS=${XML2_LIBS:-`xml2-config --libs 2>/dev/null`}
10781 XML2_LIBS=${XML2_LIBS:-"-lxml2"}
10782 $as_echo "$as_me:${as_lineno-$LINENO}: libxml-2.0 cflags: $XML2_CFLAGS" >&5
10783 $as_echo "$as_me:${as_lineno-$LINENO}: libxml-2.0 libs: $XML2_LIBS" >&5
10784 ac_save_CPPFLAGS=$CPPFLAGS
10785 CPPFLAGS="$CPPFLAGS $XML2_CFLAGS"
10786 for ac_header in libxml/parser.h libxml/xmlsave.h libxml/SAX2.h
10787 do :
10788 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10789 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10790 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10791 cat >>confdefs.h <<_ACEOF
10792 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10793 _ACEOF
10797 done
10799 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"
10800 then
10801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseMemory in -lxml2" >&5
10802 $as_echo_n "checking for xmlParseMemory in -lxml2... " >&6; }
10803 if ${ac_cv_lib_xml2_xmlParseMemory+:} false; then :
10804 $as_echo_n "(cached) " >&6
10805 else
10806 ac_check_lib_save_LIBS=$LIBS
10807 LIBS="-lxml2 $XML2_LIBS $LIBS"
10808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10809 /* end confdefs.h. */
10811 /* Override any GCC internal prototype to avoid an error.
10812 Use char because int might match the return type of a GCC
10813 builtin and then its argument prototype would still apply. */
10814 #ifdef __cplusplus
10815 extern "C"
10816 #endif
10817 char xmlParseMemory ();
10819 main ()
10821 return xmlParseMemory ();
10823 return 0;
10825 _ACEOF
10826 if ac_fn_c_try_link "$LINENO"; then :
10827 ac_cv_lib_xml2_xmlParseMemory=yes
10828 else
10829 ac_cv_lib_xml2_xmlParseMemory=no
10831 rm -f core conftest.err conftest.$ac_objext \
10832 conftest$ac_exeext conftest.$ac_ext
10833 LIBS=$ac_check_lib_save_LIBS
10835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseMemory" >&5
10836 $as_echo "$ac_cv_lib_xml2_xmlParseMemory" >&6; }
10837 if test "x$ac_cv_lib_xml2_xmlParseMemory" = xyes; then :
10839 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
10841 else
10842 XML2_LIBS=""
10845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlReadMemory in -lxml2" >&5
10846 $as_echo_n "checking for xmlReadMemory in -lxml2... " >&6; }
10847 if ${ac_cv_lib_xml2_xmlReadMemory+:} false; then :
10848 $as_echo_n "(cached) " >&6
10849 else
10850 ac_check_lib_save_LIBS=$LIBS
10851 LIBS="-lxml2 $XML2_LIBS $LIBS"
10852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10853 /* end confdefs.h. */
10855 /* Override any GCC internal prototype to avoid an error.
10856 Use char because int might match the return type of a GCC
10857 builtin and then its argument prototype would still apply. */
10858 #ifdef __cplusplus
10859 extern "C"
10860 #endif
10861 char xmlReadMemory ();
10863 main ()
10865 return xmlReadMemory ();
10867 return 0;
10869 _ACEOF
10870 if ac_fn_c_try_link "$LINENO"; then :
10871 ac_cv_lib_xml2_xmlReadMemory=yes
10872 else
10873 ac_cv_lib_xml2_xmlReadMemory=no
10875 rm -f core conftest.err conftest.$ac_objext \
10876 conftest$ac_exeext conftest.$ac_ext
10877 LIBS=$ac_check_lib_save_LIBS
10879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlReadMemory" >&5
10880 $as_echo "$ac_cv_lib_xml2_xmlReadMemory" >&6; }
10881 if test "x$ac_cv_lib_xml2_xmlReadMemory" = xyes; then :
10883 $as_echo "#define HAVE_XMLREADMEMORY 1" >>confdefs.h
10887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlNewDocPI in -lxml2" >&5
10888 $as_echo_n "checking for xmlNewDocPI in -lxml2... " >&6; }
10889 if ${ac_cv_lib_xml2_xmlNewDocPI+:} false; then :
10890 $as_echo_n "(cached) " >&6
10891 else
10892 ac_check_lib_save_LIBS=$LIBS
10893 LIBS="-lxml2 $XML2_LIBS $LIBS"
10894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10895 /* end confdefs.h. */
10897 /* Override any GCC internal prototype to avoid an error.
10898 Use char because int might match the return type of a GCC
10899 builtin and then its argument prototype would still apply. */
10900 #ifdef __cplusplus
10901 extern "C"
10902 #endif
10903 char xmlNewDocPI ();
10905 main ()
10907 return xmlNewDocPI ();
10909 return 0;
10911 _ACEOF
10912 if ac_fn_c_try_link "$LINENO"; then :
10913 ac_cv_lib_xml2_xmlNewDocPI=yes
10914 else
10915 ac_cv_lib_xml2_xmlNewDocPI=no
10917 rm -f core conftest.err conftest.$ac_objext \
10918 conftest$ac_exeext conftest.$ac_ext
10919 LIBS=$ac_check_lib_save_LIBS
10921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlNewDocPI" >&5
10922 $as_echo "$ac_cv_lib_xml2_xmlNewDocPI" >&6; }
10923 if test "x$ac_cv_lib_xml2_xmlNewDocPI" = xyes; then :
10925 $as_echo "#define HAVE_XMLNEWDOCPI 1" >>confdefs.h
10929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetParserStructuredErrors in -lxml2" >&5
10930 $as_echo_n "checking for xmlSchemaSetParserStructuredErrors in -lxml2... " >&6; }
10931 if ${ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors+:} false; then :
10932 $as_echo_n "(cached) " >&6
10933 else
10934 ac_check_lib_save_LIBS=$LIBS
10935 LIBS="-lxml2 $XML2_LIBS $LIBS"
10936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10937 /* end confdefs.h. */
10939 /* Override any GCC internal prototype to avoid an error.
10940 Use char because int might match the return type of a GCC
10941 builtin and then its argument prototype would still apply. */
10942 #ifdef __cplusplus
10943 extern "C"
10944 #endif
10945 char xmlSchemaSetParserStructuredErrors ();
10947 main ()
10949 return xmlSchemaSetParserStructuredErrors ();
10951 return 0;
10953 _ACEOF
10954 if ac_fn_c_try_link "$LINENO"; then :
10955 ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=yes
10956 else
10957 ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=no
10959 rm -f core conftest.err conftest.$ac_objext \
10960 conftest$ac_exeext conftest.$ac_ext
10961 LIBS=$ac_check_lib_save_LIBS
10963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&5
10964 $as_echo "$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&6; }
10965 if test "x$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" = xyes; then :
10967 $as_echo "#define HAVE_XMLSCHEMASSETPARSERSTRUCTUREDERRORS 1" >>confdefs.h
10971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetValidStructuredErrors in -lxml2" >&5
10972 $as_echo_n "checking for xmlSchemaSetValidStructuredErrors in -lxml2... " >&6; }
10973 if ${ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors+:} false; then :
10974 $as_echo_n "(cached) " >&6
10975 else
10976 ac_check_lib_save_LIBS=$LIBS
10977 LIBS="-lxml2 $XML2_LIBS $LIBS"
10978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10979 /* end confdefs.h. */
10981 /* Override any GCC internal prototype to avoid an error.
10982 Use char because int might match the return type of a GCC
10983 builtin and then its argument prototype would still apply. */
10984 #ifdef __cplusplus
10985 extern "C"
10986 #endif
10987 char xmlSchemaSetValidStructuredErrors ();
10989 main ()
10991 return xmlSchemaSetValidStructuredErrors ();
10993 return 0;
10995 _ACEOF
10996 if ac_fn_c_try_link "$LINENO"; then :
10997 ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=yes
10998 else
10999 ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=no
11001 rm -f core conftest.err conftest.$ac_objext \
11002 conftest$ac_exeext conftest.$ac_ext
11003 LIBS=$ac_check_lib_save_LIBS
11005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&5
11006 $as_echo "$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&6; }
11007 if test "x$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" = xyes; then :
11009 $as_echo "#define HAVE_XMLSCHEMASSETVALIDSTRUCTUREDERRORS 1" >>confdefs.h
11013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlFirstElementChild in -lxml2" >&5
11014 $as_echo_n "checking for xmlFirstElementChild in -lxml2... " >&6; }
11015 if ${ac_cv_lib_xml2_xmlFirstElementChild+:} false; then :
11016 $as_echo_n "(cached) " >&6
11017 else
11018 ac_check_lib_save_LIBS=$LIBS
11019 LIBS="-lxml2 $XML2_LIBS $LIBS"
11020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11021 /* end confdefs.h. */
11023 /* Override any GCC internal prototype to avoid an error.
11024 Use char because int might match the return type of a GCC
11025 builtin and then its argument prototype would still apply. */
11026 #ifdef __cplusplus
11027 extern "C"
11028 #endif
11029 char xmlFirstElementChild ();
11031 main ()
11033 return xmlFirstElementChild ();
11035 return 0;
11037 _ACEOF
11038 if ac_fn_c_try_link "$LINENO"; then :
11039 ac_cv_lib_xml2_xmlFirstElementChild=yes
11040 else
11041 ac_cv_lib_xml2_xmlFirstElementChild=no
11043 rm -f core conftest.err conftest.$ac_objext \
11044 conftest$ac_exeext conftest.$ac_ext
11045 LIBS=$ac_check_lib_save_LIBS
11047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlFirstElementChild" >&5
11048 $as_echo "$ac_cv_lib_xml2_xmlFirstElementChild" >&6; }
11049 if test "x$ac_cv_lib_xml2_xmlFirstElementChild" = xyes; then :
11051 $as_echo "#define HAVE_XMLFIRSTELEMENTCHILD 1" >>confdefs.h
11055 ac_fn_c_check_type "$LINENO" "xmlDocProperties" "ac_cv_type_xmlDocProperties" "#include <libxml/tree.h>
11057 if test "x$ac_cv_type_xmlDocProperties" = xyes; then :
11059 $as_echo "#define HAVE_XMLDOC_PROPERTIES 1" >>confdefs.h
11063 else
11064 XML2_CFLAGS=""
11065 XML2_LIBS=""
11067 CPPFLAGS=$ac_save_CPPFLAGS
11068 test -z "$XML2_CFLAGS" || XML2_CFLAGS=`echo " $XML2_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
11069 test -z "$XML2_LIBS" || XML2_LIBS=`echo " $XML2_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
11072 if test "$ac_cv_lib_xml2_xmlParseMemory" != "yes"; then :
11073 case "x$with_xml" in
11074 x) as_fn_append wine_warnings "|libxml2 ${notice_platform}development files not found (or too old), XML won't be supported." ;;
11075 xno) ;;
11076 *) as_fn_error $? "libxml2 ${notice_platform}development files not found (or too old), XML won't be supported.
11077 This is an error since --with-xml was requested." "$LINENO" 5 ;;
11078 esac
11081 if test "x$with_xslt" != "xno"
11082 then
11083 if ${XSLT_CFLAGS:+false} :; then :
11084 if ${PKG_CONFIG+:} false; then :
11085 XSLT_CFLAGS=`$PKG_CONFIG --cflags libxslt 2>/dev/null`
11088 test "$cross_compiling" = yes || XSLT_CFLAGS=${XSLT_CFLAGS:-`xslt-config --cflags 2>/dev/null`}
11089 if ${XSLT_LIBS:+false} :; then :
11090 if ${PKG_CONFIG+:} false; then :
11091 XSLT_LIBS=`$PKG_CONFIG --libs libxslt 2>/dev/null`
11094 test "$cross_compiling" = yes || XSLT_LIBS=${XSLT_LIBS:-`xslt-config --libs 2>/dev/null`}
11095 XSLT_LIBS=${XSLT_LIBS:-"-lxml2"}
11096 $as_echo "$as_me:${as_lineno-$LINENO}: libxslt cflags: $XSLT_CFLAGS" >&5
11097 $as_echo "$as_me:${as_lineno-$LINENO}: libxslt libs: $XSLT_LIBS" >&5
11098 ac_save_CPPFLAGS=$CPPFLAGS
11099 CPPFLAGS="$CPPFLAGS $XSLT_CFLAGS"
11100 for ac_header in libxslt/pattern.h libxslt/transform.h
11101 do :
11102 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11103 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_LIBXSLT_PATTERN_H
11104 # include <libxslt/pattern.h>
11105 #endif
11107 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11108 cat >>confdefs.h <<_ACEOF
11109 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11110 _ACEOF
11114 done
11116 if test "$ac_cv_header_libxslt_transform_h" = "yes"
11117 then
11118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lxslt" >&5
11119 $as_echo_n "checking for -lxslt... " >&6; }
11120 if ${ac_cv_lib_soname_xslt+:} false; then :
11121 $as_echo_n "(cached) " >&6
11122 else
11123 ac_check_soname_save_LIBS=$LIBS
11124 LIBS="-lxslt $XSLT_LIBS $LIBS"
11125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11126 /* end confdefs.h. */
11128 /* Override any GCC internal prototype to avoid an error.
11129 Use char because int might match the return type of a GCC
11130 builtin and then its argument prototype would still apply. */
11131 #ifdef __cplusplus
11132 extern "C"
11133 #endif
11134 char xsltCompilePattern ();
11136 main ()
11138 return xsltCompilePattern ();
11140 return 0;
11142 _ACEOF
11143 if ac_fn_c_try_link "$LINENO"; then :
11144 case "$LIBEXT" in
11145 dll) ac_cv_lib_soname_xslt=`$ac_cv_path_LDD conftest.exe | grep "xslt" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11146 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'` ;;
11147 *) ac_cv_lib_soname_xslt=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libxslt\\.$LIBEXT" | sed -e "s/^.*\\[\\(libxslt\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11148 if ${ac_cv_lib_soname_xslt:+false} :; then :
11149 ac_cv_lib_soname_xslt=`$LDD conftest$ac_exeext | grep "libxslt\\.$LIBEXT" | sed -e "s/^.*\(libxslt\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11150 fi ;;
11151 esac
11153 rm -f core conftest.err conftest.$ac_objext \
11154 conftest$ac_exeext conftest.$ac_ext
11155 LIBS=$ac_check_soname_save_LIBS
11157 if ${ac_cv_lib_soname_xslt:+false} :; then :
11158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11159 $as_echo "not found" >&6; }
11161 else
11162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_xslt" >&5
11163 $as_echo "$ac_cv_lib_soname_xslt" >&6; }
11165 cat >>confdefs.h <<_ACEOF
11166 #define SONAME_LIBXSLT "$ac_cv_lib_soname_xslt"
11167 _ACEOF
11171 else
11172 XSLT_CFLAGS=""
11174 CPPFLAGS=$ac_save_CPPFLAGS
11175 test -z "$XSLT_CFLAGS" || XSLT_CFLAGS=`echo " $XSLT_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
11176 test -z "$XSLT_LIBS" || XSLT_LIBS=`echo " $XSLT_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
11179 if test "x$ac_cv_lib_soname_xslt" = "x"; then :
11180 case "x$with_xslt" in
11181 x) as_fn_append wine_warnings "|libxslt ${notice_platform}development files not found, xslt won't be supported." ;;
11182 xno) ;;
11183 *) as_fn_error $? "libxslt ${notice_platform}development files not found, xslt won't be supported.
11184 This is an error since --with-xslt was requested." "$LINENO" 5 ;;
11185 esac
11188 if test "x$with_dbus" != "xno"
11189 then
11190 if ${DBUS_CFLAGS:+false} :; then :
11191 if ${PKG_CONFIG+:} false; then :
11192 DBUS_CFLAGS=`$PKG_CONFIG --cflags dbus-1 2>/dev/null`
11196 if ${DBUS_LIBS:+false} :; then :
11197 if ${PKG_CONFIG+:} false; then :
11198 DBUS_LIBS=`$PKG_CONFIG --libs dbus-1 2>/dev/null`
11203 $as_echo "$as_me:${as_lineno-$LINENO}: dbus-1 cflags: $DBUS_CFLAGS" >&5
11204 $as_echo "$as_me:${as_lineno-$LINENO}: dbus-1 libs: $DBUS_LIBS" >&5
11205 ac_save_CPPFLAGS=$CPPFLAGS
11206 CPPFLAGS="$CPPFLAGS $DBUS_CFLAGS"
11207 ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
11208 if test "x$ac_cv_header_dbus_dbus_h" = xyes; then :
11209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ldbus-1" >&5
11210 $as_echo_n "checking for -ldbus-1... " >&6; }
11211 if ${ac_cv_lib_soname_dbus_1+:} false; then :
11212 $as_echo_n "(cached) " >&6
11213 else
11214 ac_check_soname_save_LIBS=$LIBS
11215 LIBS="-ldbus-1 $DBUS_LIBS $LIBS"
11216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11217 /* end confdefs.h. */
11219 /* Override any GCC internal prototype to avoid an error.
11220 Use char because int might match the return type of a GCC
11221 builtin and then its argument prototype would still apply. */
11222 #ifdef __cplusplus
11223 extern "C"
11224 #endif
11225 char dbus_connection_close ();
11227 main ()
11229 return dbus_connection_close ();
11231 return 0;
11233 _ACEOF
11234 if ac_fn_c_try_link "$LINENO"; then :
11235 case "$LIBEXT" in
11236 dll) ac_cv_lib_soname_dbus_1=`$ac_cv_path_LDD conftest.exe | grep "dbus-1" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11237 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'` ;;
11238 *) ac_cv_lib_soname_dbus_1=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libdbus-1\\.$LIBEXT" | sed -e "s/^.*\\[\\(libdbus-1\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11239 if ${ac_cv_lib_soname_dbus_1:+false} :; then :
11240 ac_cv_lib_soname_dbus_1=`$LDD conftest$ac_exeext | grep "libdbus-1\\.$LIBEXT" | sed -e "s/^.*\(libdbus-1\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11241 fi ;;
11242 esac
11244 rm -f core conftest.err conftest.$ac_objext \
11245 conftest$ac_exeext conftest.$ac_ext
11246 LIBS=$ac_check_soname_save_LIBS
11248 if ${ac_cv_lib_soname_dbus_1:+false} :; then :
11249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11250 $as_echo "not found" >&6; }
11251 DBUS_CFLAGS=""
11252 else
11253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_dbus_1" >&5
11254 $as_echo "$ac_cv_lib_soname_dbus_1" >&6; }
11256 cat >>confdefs.h <<_ACEOF
11257 #define SONAME_LIBDBUS_1 "$ac_cv_lib_soname_dbus_1"
11258 _ACEOF
11262 else
11263 DBUS_CFLAGS=""
11267 CPPFLAGS=$ac_save_CPPFLAGS
11268 test -z "$DBUS_CFLAGS" || DBUS_CFLAGS=`echo " $DBUS_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
11269 test -z "$DBUS_LIBS" || DBUS_LIBS=`echo " $DBUS_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
11272 if test "x$ac_cv_lib_soname_dbus_1" = "x" -a \
11273 "x$ac_cv_header_DiskArbitration_DiskArbitration_h" != "xyes"; then :
11274 case "x$with_dbus" in
11275 x) as_fn_append wine_notices "|libdbus ${notice_platform}development files not found, no dynamic device support." ;;
11276 xno) ;;
11277 *) as_fn_error $? "libdbus ${notice_platform}development files not found, no dynamic device support.
11278 This is an error since --with-dbus was requested." "$LINENO" 5 ;;
11279 esac
11282 if test "x$with_hal" != "xno" -a "x$ac_cv_lib_soname_dbus_1" != x
11283 then
11284 if ${HAL_CFLAGS:+false} :; then :
11285 if ${PKG_CONFIG+:} false; then :
11286 HAL_CFLAGS=`$PKG_CONFIG --cflags hal 2>/dev/null`
11290 if ${HAL_LIBS:+false} :; then :
11291 if ${PKG_CONFIG+:} false; then :
11292 HAL_LIBS=`$PKG_CONFIG --libs hal 2>/dev/null`
11296 HAL_LIBS=${HAL_LIBS:-"-ldbus-1"}
11297 $as_echo "$as_me:${as_lineno-$LINENO}: hal cflags: $HAL_CFLAGS" >&5
11298 $as_echo "$as_me:${as_lineno-$LINENO}: hal libs: $HAL_LIBS" >&5
11299 ac_save_CPPFLAGS=$CPPFLAGS
11300 CPPFLAGS="$CPPFLAGS $HAL_CFLAGS"
11301 ac_fn_c_check_header_mongrel "$LINENO" "hal/libhal.h" "ac_cv_header_hal_libhal_h" "$ac_includes_default"
11302 if test "x$ac_cv_header_hal_libhal_h" = xyes; then :
11303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lhal" >&5
11304 $as_echo_n "checking for -lhal... " >&6; }
11305 if ${ac_cv_lib_soname_hal+:} false; then :
11306 $as_echo_n "(cached) " >&6
11307 else
11308 ac_check_soname_save_LIBS=$LIBS
11309 LIBS="-lhal $HAL_LIBS $LIBS"
11310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11311 /* end confdefs.h. */
11313 /* Override any GCC internal prototype to avoid an error.
11314 Use char because int might match the return type of a GCC
11315 builtin and then its argument prototype would still apply. */
11316 #ifdef __cplusplus
11317 extern "C"
11318 #endif
11319 char libhal_ctx_new ();
11321 main ()
11323 return libhal_ctx_new ();
11325 return 0;
11327 _ACEOF
11328 if ac_fn_c_try_link "$LINENO"; then :
11329 case "$LIBEXT" in
11330 dll) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest.exe | grep "hal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11331 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'` ;;
11332 *) ac_cv_lib_soname_hal=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libhal\\.$LIBEXT" | sed -e "s/^.*\\[\\(libhal\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11333 if ${ac_cv_lib_soname_hal:+false} :; then :
11334 ac_cv_lib_soname_hal=`$LDD conftest$ac_exeext | grep "libhal\\.$LIBEXT" | sed -e "s/^.*\(libhal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11335 fi ;;
11336 esac
11338 rm -f core conftest.err conftest.$ac_objext \
11339 conftest$ac_exeext conftest.$ac_ext
11340 LIBS=$ac_check_soname_save_LIBS
11342 if ${ac_cv_lib_soname_hal:+false} :; then :
11343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11344 $as_echo "not found" >&6; }
11345 HAL_CFLAGS=""
11346 else
11347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_hal" >&5
11348 $as_echo "$ac_cv_lib_soname_hal" >&6; }
11350 cat >>confdefs.h <<_ACEOF
11351 #define SONAME_LIBHAL "$ac_cv_lib_soname_hal"
11352 _ACEOF
11356 else
11357 HAL_CFLAGS=""
11361 CPPFLAGS=$ac_save_CPPFLAGS
11362 test -z "$HAL_CFLAGS" || HAL_CFLAGS=`echo " $HAL_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
11363 test -z "$HAL_LIBS" || HAL_LIBS=`echo " $HAL_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
11365 if test "x$ac_cv_lib_soname_hal" = "x" -a \
11366 "x$ac_cv_header_DiskArbitration_DiskArbitration_h" != "xyes"; then :
11367 case "x$with_hal" in
11368 x) as_fn_append wine_notices "|libhal ${notice_platform}development files not found, no legacy dynamic device support." ;;
11369 xno) ;;
11370 *) as_fn_error $? "libhal ${notice_platform}development files not found, no legacy dynamic device support.
11371 This is an error since --with-hal was requested." "$LINENO" 5 ;;
11372 esac
11376 if test "x$with_gnutls" != "xno"
11377 then
11378 if ${GNUTLS_CFLAGS:+false} :; then :
11379 if ${PKG_CONFIG+:} false; then :
11380 GNUTLS_CFLAGS=`$PKG_CONFIG --cflags gnutls 2>/dev/null`
11384 if ${GNUTLS_LIBS:+false} :; then :
11385 if ${PKG_CONFIG+:} false; then :
11386 GNUTLS_LIBS=`$PKG_CONFIG --libs gnutls 2>/dev/null`
11391 $as_echo "$as_me:${as_lineno-$LINENO}: gnutls cflags: $GNUTLS_CFLAGS" >&5
11392 $as_echo "$as_me:${as_lineno-$LINENO}: gnutls libs: $GNUTLS_LIBS" >&5
11393 ac_save_CPPFLAGS=$CPPFLAGS
11394 CPPFLAGS="$CPPFLAGS $GNUTLS_CFLAGS"
11395 ac_fn_c_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default"
11396 if test "x$ac_cv_header_gnutls_gnutls_h" = xyes; then :
11397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11398 /* end confdefs.h. */
11399 #include <gnutls/gnutls.h>
11400 #include <gnutls/crypto.h>
11402 main ()
11404 static typeof(gnutls_mac_get_key_size) *func; if (func) return 0;
11406 return 0;
11408 _ACEOF
11409 if ac_fn_c_try_compile "$LINENO"; then :
11410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgnutls" >&5
11411 $as_echo_n "checking for -lgnutls... " >&6; }
11412 if ${ac_cv_lib_soname_gnutls+:} false; then :
11413 $as_echo_n "(cached) " >&6
11414 else
11415 ac_check_soname_save_LIBS=$LIBS
11416 LIBS="-lgnutls $GNUTLS_LIBS $LIBS"
11417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11418 /* end confdefs.h. */
11420 /* Override any GCC internal prototype to avoid an error.
11421 Use char because int might match the return type of a GCC
11422 builtin and then its argument prototype would still apply. */
11423 #ifdef __cplusplus
11424 extern "C"
11425 #endif
11426 char gnutls_global_init ();
11428 main ()
11430 return gnutls_global_init ();
11432 return 0;
11434 _ACEOF
11435 if ac_fn_c_try_link "$LINENO"; then :
11436 case "$LIBEXT" in
11437 dll) ac_cv_lib_soname_gnutls=`$ac_cv_path_LDD conftest.exe | grep "gnutls" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11438 dylib) ac_cv_lib_soname_gnutls=`otool -L conftest$ac_exeext | grep "libgnutls\\(-deb0\\)\\{0,1\\}\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libgnutls\\(-deb0\\)\\{0,1\\}\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
11439 *) ac_cv_lib_soname_gnutls=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libgnutls\\(-deb0\\)\\{0,1\\}\\.$LIBEXT" | sed -e "s/^.*\\[\\(libgnutls\\(-deb0\\)\\{0,1\\}\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11440 if ${ac_cv_lib_soname_gnutls:+false} :; then :
11441 ac_cv_lib_soname_gnutls=`$LDD conftest$ac_exeext | grep "libgnutls\\(-deb0\\)\\{0,1\\}\\.$LIBEXT" | sed -e "s/^.*\(libgnutls\\(-deb0\\)\\{0,1\\}\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11442 fi ;;
11443 esac
11445 rm -f core conftest.err conftest.$ac_objext \
11446 conftest$ac_exeext conftest.$ac_ext
11447 LIBS=$ac_check_soname_save_LIBS
11449 if ${ac_cv_lib_soname_gnutls:+false} :; then :
11450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11451 $as_echo "not found" >&6; }
11452 GNUTLS_CFLAGS=""
11453 else
11454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gnutls" >&5
11455 $as_echo "$ac_cv_lib_soname_gnutls" >&6; }
11457 cat >>confdefs.h <<_ACEOF
11458 #define SONAME_LIBGNUTLS "$ac_cv_lib_soname_gnutls"
11459 _ACEOF
11464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11465 else
11466 GNUTLS_CFLAGS=""
11470 CPPFLAGS=$ac_save_CPPFLAGS
11471 test -z "$GNUTLS_CFLAGS" || GNUTLS_CFLAGS=`echo " $GNUTLS_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
11472 test -z "$GNUTLS_LIBS" || GNUTLS_LIBS=`echo " $GNUTLS_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
11475 if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
11476 case "x$with_gnutls" in
11477 x) as_fn_append wine_warnings "|libgnutls ${notice_platform}development files not found, no schannel support." ;;
11478 xno) ;;
11479 *) as_fn_error $? "libgnutls ${notice_platform}development files not found, no schannel support.
11480 This is an error since --with-gnutls was requested." "$LINENO" 5 ;;
11481 esac
11484 CURSES_LIBS=""
11485 if test "$ac_cv_header_ncurses_h" = "yes"
11486 then
11487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lncurses" >&5
11488 $as_echo_n "checking for -lncurses... " >&6; }
11489 if ${ac_cv_lib_soname_ncurses+:} false; then :
11490 $as_echo_n "(cached) " >&6
11491 else
11492 ac_check_soname_save_LIBS=$LIBS
11493 LIBS="-lncurses $LIBS"
11494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11495 /* end confdefs.h. */
11497 /* Override any GCC internal prototype to avoid an error.
11498 Use char because int might match the return type of a GCC
11499 builtin and then its argument prototype would still apply. */
11500 #ifdef __cplusplus
11501 extern "C"
11502 #endif
11503 char waddch ();
11505 main ()
11507 return waddch ();
11509 return 0;
11511 _ACEOF
11512 if ac_fn_c_try_link "$LINENO"; then :
11513 case "$LIBEXT" in
11514 dll) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest.exe | grep "ncurses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11515 dylib) ac_cv_lib_soname_ncurses=`otool -L conftest$ac_exeext | grep "libncursesw\\{0,1\\}\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libncursesw\\{0,1\\}\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
11516 *) ac_cv_lib_soname_ncurses=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libncursesw\\{0,1\\}\\.$LIBEXT" | sed -e "s/^.*\\[\\(libncursesw\\{0,1\\}\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11517 if ${ac_cv_lib_soname_ncurses:+false} :; then :
11518 ac_cv_lib_soname_ncurses=`$LDD conftest$ac_exeext | grep "libncursesw\\{0,1\\}\\.$LIBEXT" | sed -e "s/^.*\(libncursesw\\{0,1\\}\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11519 fi ;;
11520 esac
11522 rm -f core conftest.err conftest.$ac_objext \
11523 conftest$ac_exeext conftest.$ac_ext
11524 LIBS=$ac_check_soname_save_LIBS
11526 if ${ac_cv_lib_soname_ncurses:+false} :; then :
11527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11528 $as_echo "not found" >&6; }
11530 else
11531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ncurses" >&5
11532 $as_echo "$ac_cv_lib_soname_ncurses" >&6; }
11534 cat >>confdefs.h <<_ACEOF
11535 #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
11536 _ACEOF
11538 CURSES_LIBS="-lncurses"
11540 elif test "$ac_cv_header_curses_h" = "yes"
11541 then
11542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcurses" >&5
11543 $as_echo_n "checking for -lcurses... " >&6; }
11544 if ${ac_cv_lib_soname_curses+:} false; then :
11545 $as_echo_n "(cached) " >&6
11546 else
11547 ac_check_soname_save_LIBS=$LIBS
11548 LIBS="-lcurses $LIBS"
11549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11550 /* end confdefs.h. */
11552 /* Override any GCC internal prototype to avoid an error.
11553 Use char because int might match the return type of a GCC
11554 builtin and then its argument prototype would still apply. */
11555 #ifdef __cplusplus
11556 extern "C"
11557 #endif
11558 char waddch ();
11560 main ()
11562 return waddch ();
11564 return 0;
11566 _ACEOF
11567 if ac_fn_c_try_link "$LINENO"; then :
11568 case "$LIBEXT" in
11569 dll) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest.exe | grep "curses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11570 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'` ;;
11571 *) ac_cv_lib_soname_curses=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libcurses\\.$LIBEXT" | sed -e "s/^.*\\[\\(libcurses\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11572 if ${ac_cv_lib_soname_curses:+false} :; then :
11573 ac_cv_lib_soname_curses=`$LDD conftest$ac_exeext | grep "libcurses\\.$LIBEXT" | sed -e "s/^.*\(libcurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11574 fi ;;
11575 esac
11577 rm -f core conftest.err conftest.$ac_objext \
11578 conftest$ac_exeext conftest.$ac_ext
11579 LIBS=$ac_check_soname_save_LIBS
11581 if ${ac_cv_lib_soname_curses:+false} :; then :
11582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11583 $as_echo "not found" >&6; }
11585 else
11586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_curses" >&5
11587 $as_echo "$ac_cv_lib_soname_curses" >&6; }
11589 cat >>confdefs.h <<_ACEOF
11590 #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
11591 _ACEOF
11593 CURSES_LIBS="-lcurses"
11596 ac_save_LIBS="$LIBS"
11597 LIBS="$LIBS $CURSES_LIBS"
11598 for ac_func in mousemask
11599 do :
11600 ac_fn_c_check_func "$LINENO" "mousemask" "ac_cv_func_mousemask"
11601 if test "x$ac_cv_func_mousemask" = xyes; then :
11602 cat >>confdefs.h <<_ACEOF
11603 #define HAVE_MOUSEMASK 1
11604 _ACEOF
11607 done
11609 LIBS="$ac_save_LIBS"
11610 if test "x$ac_cv_lib_soname_curses$ac_cv_lib_soname_ncurses" = "x"; then :
11611 case "x$with_curses" in
11612 x) as_fn_append wine_notices "|lib(n)curses ${notice_platform}development files not found, curses won't be supported." ;;
11613 xno) ;;
11614 *) as_fn_error $? "lib(n)curses ${notice_platform}development files not found, curses won't be supported.
11615 This is an error since --with-curses was requested." "$LINENO" 5 ;;
11616 esac
11619 if test "x$with_sane" != "xno"
11620 then
11621 if ${SANE_CFLAGS:+false} :; then :
11622 if ${PKG_CONFIG+:} false; then :
11623 SANE_CFLAGS=`$PKG_CONFIG --cflags libsane 2>/dev/null`
11626 test "$cross_compiling" = yes || SANE_CFLAGS=${SANE_CFLAGS:-`sane-config --cflags 2>/dev/null`}
11627 if ${SANE_LIBS:+false} :; then :
11628 if ${PKG_CONFIG+:} false; then :
11629 SANE_LIBS=`$PKG_CONFIG --libs libsane 2>/dev/null`
11632 test "$cross_compiling" = yes || SANE_LIBS=${SANE_LIBS:-`sane-config --ldflags 2>/dev/null`}
11634 $as_echo "$as_me:${as_lineno-$LINENO}: libsane cflags: $SANE_CFLAGS" >&5
11635 $as_echo "$as_me:${as_lineno-$LINENO}: libsane libs: $SANE_LIBS" >&5
11636 ac_save_CPPFLAGS=$CPPFLAGS
11637 CPPFLAGS="$CPPFLAGS $SANE_CFLAGS"
11638 ac_fn_c_check_header_mongrel "$LINENO" "sane/sane.h" "ac_cv_header_sane_sane_h" "$ac_includes_default"
11639 if test "x$ac_cv_header_sane_sane_h" = xyes; then :
11640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lsane" >&5
11641 $as_echo_n "checking for -lsane... " >&6; }
11642 if ${ac_cv_lib_soname_sane+:} false; then :
11643 $as_echo_n "(cached) " >&6
11644 else
11645 ac_check_soname_save_LIBS=$LIBS
11646 LIBS="-lsane $SANE_LIBS $LIBS"
11647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11648 /* end confdefs.h. */
11650 /* Override any GCC internal prototype to avoid an error.
11651 Use char because int might match the return type of a GCC
11652 builtin and then its argument prototype would still apply. */
11653 #ifdef __cplusplus
11654 extern "C"
11655 #endif
11656 char sane_init ();
11658 main ()
11660 return sane_init ();
11662 return 0;
11664 _ACEOF
11665 if ac_fn_c_try_link "$LINENO"; then :
11666 case "$LIBEXT" in
11667 dll) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest.exe | grep "sane" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11668 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'` ;;
11669 *) ac_cv_lib_soname_sane=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libsane\\.$LIBEXT" | sed -e "s/^.*\\[\\(libsane\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11670 if ${ac_cv_lib_soname_sane:+false} :; then :
11671 ac_cv_lib_soname_sane=`$LDD conftest$ac_exeext | grep "libsane\\.$LIBEXT" | sed -e "s/^.*\(libsane\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11672 fi ;;
11673 esac
11675 rm -f core conftest.err conftest.$ac_objext \
11676 conftest$ac_exeext conftest.$ac_ext
11677 LIBS=$ac_check_soname_save_LIBS
11679 if ${ac_cv_lib_soname_sane:+false} :; then :
11680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11681 $as_echo "not found" >&6; }
11682 SANE_CFLAGS=""
11683 else
11684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_sane" >&5
11685 $as_echo "$ac_cv_lib_soname_sane" >&6; }
11687 cat >>confdefs.h <<_ACEOF
11688 #define SONAME_LIBSANE "$ac_cv_lib_soname_sane"
11689 _ACEOF
11693 else
11694 SANE_CFLAGS=""
11698 CPPFLAGS=$ac_save_CPPFLAGS
11699 test -z "$SANE_CFLAGS" || SANE_CFLAGS=`echo " $SANE_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
11700 test -z "$SANE_LIBS" || SANE_LIBS=`echo " $SANE_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
11703 if test "x$ac_cv_lib_soname_sane" = "x"; then :
11704 case "x$with_sane" in
11705 x) as_fn_append wine_notices "|libsane ${notice_platform}development files not found, scanners won't be supported." ;;
11706 xno) ;;
11707 *) as_fn_error $? "libsane ${notice_platform}development files not found, scanners won't be supported.
11708 This is an error since --with-sane was requested." "$LINENO" 5 ;;
11709 esac
11712 if test "x$with_v4l" != "xno"
11713 then
11714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lv4l1" >&5
11715 $as_echo_n "checking for -lv4l1... " >&6; }
11716 if ${ac_cv_lib_soname_v4l1+:} false; then :
11717 $as_echo_n "(cached) " >&6
11718 else
11719 ac_check_soname_save_LIBS=$LIBS
11720 LIBS="-lv4l1 $LIBS"
11721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11722 /* end confdefs.h. */
11724 /* Override any GCC internal prototype to avoid an error.
11725 Use char because int might match the return type of a GCC
11726 builtin and then its argument prototype would still apply. */
11727 #ifdef __cplusplus
11728 extern "C"
11729 #endif
11730 char v4l1_open ();
11732 main ()
11734 return v4l1_open ();
11736 return 0;
11738 _ACEOF
11739 if ac_fn_c_try_link "$LINENO"; then :
11740 case "$LIBEXT" in
11741 dll) ac_cv_lib_soname_v4l1=`$ac_cv_path_LDD conftest.exe | grep "v4l1" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11742 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'` ;;
11743 *) ac_cv_lib_soname_v4l1=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libv4l1\\.$LIBEXT" | sed -e "s/^.*\\[\\(libv4l1\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11744 if ${ac_cv_lib_soname_v4l1:+false} :; then :
11745 ac_cv_lib_soname_v4l1=`$LDD conftest$ac_exeext | grep "libv4l1\\.$LIBEXT" | sed -e "s/^.*\(libv4l1\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11746 fi ;;
11747 esac
11749 rm -f core conftest.err conftest.$ac_objext \
11750 conftest$ac_exeext conftest.$ac_ext
11751 LIBS=$ac_check_soname_save_LIBS
11753 if ${ac_cv_lib_soname_v4l1:+false} :; then :
11754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11755 $as_echo "not found" >&6; }
11757 else
11758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_v4l1" >&5
11759 $as_echo "$ac_cv_lib_soname_v4l1" >&6; }
11761 cat >>confdefs.h <<_ACEOF
11762 #define SONAME_LIBV4L1 "$ac_cv_lib_soname_v4l1"
11763 _ACEOF
11768 if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
11769 case "x$with_v4l" in
11770 x) as_fn_append wine_notices "|libv4l ${notice_platform}development files not found." ;;
11771 xno) ;;
11772 *) as_fn_error $? "libv4l ${notice_platform}development files not found.
11773 This is an error since --with-v4l was requested." "$LINENO" 5 ;;
11774 esac
11777 if test "x$with_gphoto" != "xno"
11778 then
11779 if ${GPHOTO2_CFLAGS:+false} :; then :
11780 if ${PKG_CONFIG+:} false; then :
11781 GPHOTO2_CFLAGS=`$PKG_CONFIG --cflags libgphoto2 2>/dev/null`
11784 test "$cross_compiling" = yes || GPHOTO2_CFLAGS=${GPHOTO2_CFLAGS:-`gphoto2-config --cflags 2>/dev/null`}
11785 if ${GPHOTO2_LIBS:+false} :; then :
11786 if ${PKG_CONFIG+:} false; then :
11787 GPHOTO2_LIBS=`$PKG_CONFIG --libs libgphoto2 2>/dev/null`
11790 test "$cross_compiling" = yes || GPHOTO2_LIBS=${GPHOTO2_LIBS:-`gphoto2-config --libs 2>/dev/null`}
11791 GPHOTO2_LIBS=${GPHOTO2_LIBS:-"-lgphoto2"}
11792 $as_echo "$as_me:${as_lineno-$LINENO}: libgphoto2 cflags: $GPHOTO2_CFLAGS" >&5
11793 $as_echo "$as_me:${as_lineno-$LINENO}: libgphoto2 libs: $GPHOTO2_LIBS" >&5
11794 ac_save_CPPFLAGS=$CPPFLAGS
11795 CPPFLAGS="$CPPFLAGS $GPHOTO2_CFLAGS"
11796 ac_fn_c_check_header_mongrel "$LINENO" "gphoto2-camera.h" "ac_cv_header_gphoto2_camera_h" "$ac_includes_default"
11797 if test "x$ac_cv_header_gphoto2_camera_h" = xyes; then :
11798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gp_camera_new in -lgphoto2" >&5
11799 $as_echo_n "checking for gp_camera_new in -lgphoto2... " >&6; }
11800 if ${ac_cv_lib_gphoto2_gp_camera_new+:} false; then :
11801 $as_echo_n "(cached) " >&6
11802 else
11803 ac_check_lib_save_LIBS=$LIBS
11804 LIBS="-lgphoto2 $GPHOTO2_LIBS $LIBS"
11805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11806 /* end confdefs.h. */
11808 /* Override any GCC internal prototype to avoid an error.
11809 Use char because int might match the return type of a GCC
11810 builtin and then its argument prototype would still apply. */
11811 #ifdef __cplusplus
11812 extern "C"
11813 #endif
11814 char gp_camera_new ();
11816 main ()
11818 return gp_camera_new ();
11820 return 0;
11822 _ACEOF
11823 if ac_fn_c_try_link "$LINENO"; then :
11824 ac_cv_lib_gphoto2_gp_camera_new=yes
11825 else
11826 ac_cv_lib_gphoto2_gp_camera_new=no
11828 rm -f core conftest.err conftest.$ac_objext \
11829 conftest$ac_exeext conftest.$ac_ext
11830 LIBS=$ac_check_lib_save_LIBS
11832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gphoto2_gp_camera_new" >&5
11833 $as_echo "$ac_cv_lib_gphoto2_gp_camera_new" >&6; }
11834 if test "x$ac_cv_lib_gphoto2_gp_camera_new" = xyes; then :
11836 $as_echo "#define HAVE_GPHOTO2 1" >>confdefs.h
11838 else
11839 GPHOTO2_LIBS=""; GPHOTO2_CFLAGS=""
11842 else
11843 GPHOTO2_LIBS=""; GPHOTO2_CFLAGS=""
11847 CPPFLAGS=$ac_save_CPPFLAGS
11848 test -z "$GPHOTO2_CFLAGS" || GPHOTO2_CFLAGS=`echo " $GPHOTO2_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
11849 test -z "$GPHOTO2_LIBS" || GPHOTO2_LIBS=`echo " $GPHOTO2_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
11851 if ${GPHOTO2_PORT_CFLAGS:+false} :; then :
11852 if ${PKG_CONFIG+:} false; then :
11853 GPHOTO2_PORT_CFLAGS=`$PKG_CONFIG --cflags libgphoto2_port 2>/dev/null`
11856 test "$cross_compiling" = yes || GPHOTO2_PORT_CFLAGS=${GPHOTO2_PORT_CFLAGS:-`gphoto2-port-config --cflags 2>/dev/null`}
11857 if ${GPHOTO2_PORT_LIBS:+false} :; then :
11858 if ${PKG_CONFIG+:} false; then :
11859 GPHOTO2_PORT_LIBS=`$PKG_CONFIG --libs libgphoto2_port 2>/dev/null`
11862 test "$cross_compiling" = yes || GPHOTO2_PORT_LIBS=${GPHOTO2_PORT_LIBS:-`gphoto2-port-config --libs 2>/dev/null`}
11863 GPHOTO2_PORT_LIBS=${GPHOTO2_PORT_LIBS:-"-lgphoto2_port"}
11864 $as_echo "$as_me:${as_lineno-$LINENO}: libgphoto2_port cflags: $GPHOTO2_PORT_CFLAGS" >&5
11865 $as_echo "$as_me:${as_lineno-$LINENO}: libgphoto2_port libs: $GPHOTO2_PORT_LIBS" >&5
11866 ac_save_CPPFLAGS=$CPPFLAGS
11867 CPPFLAGS="$CPPFLAGS $GPHOTO2_PORT_CFLAGS"
11868 ac_fn_c_check_header_mongrel "$LINENO" "gphoto2-port.h" "ac_cv_header_gphoto2_port_h" "$ac_includes_default"
11869 if test "x$ac_cv_header_gphoto2_port_h" = xyes; then :
11870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gp_port_info_list_new in -lgphoto2_port" >&5
11871 $as_echo_n "checking for gp_port_info_list_new in -lgphoto2_port... " >&6; }
11872 if ${ac_cv_lib_gphoto2_port_gp_port_info_list_new+:} false; then :
11873 $as_echo_n "(cached) " >&6
11874 else
11875 ac_check_lib_save_LIBS=$LIBS
11876 LIBS="-lgphoto2_port $GPHOTO2_PORT_LIBS $LIBS"
11877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11878 /* end confdefs.h. */
11880 /* Override any GCC internal prototype to avoid an error.
11881 Use char because int might match the return type of a GCC
11882 builtin and then its argument prototype would still apply. */
11883 #ifdef __cplusplus
11884 extern "C"
11885 #endif
11886 char gp_port_info_list_new ();
11888 main ()
11890 return gp_port_info_list_new ();
11892 return 0;
11894 _ACEOF
11895 if ac_fn_c_try_link "$LINENO"; then :
11896 ac_cv_lib_gphoto2_port_gp_port_info_list_new=yes
11897 else
11898 ac_cv_lib_gphoto2_port_gp_port_info_list_new=no
11900 rm -f core conftest.err conftest.$ac_objext \
11901 conftest$ac_exeext conftest.$ac_ext
11902 LIBS=$ac_check_lib_save_LIBS
11904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gphoto2_port_gp_port_info_list_new" >&5
11905 $as_echo "$ac_cv_lib_gphoto2_port_gp_port_info_list_new" >&6; }
11906 if test "x$ac_cv_lib_gphoto2_port_gp_port_info_list_new" = xyes; then :
11908 $as_echo "#define HAVE_GPHOTO2_PORT 1" >>confdefs.h
11910 else
11911 GPHOTO2_PORT_LIBS=""; GPHOTO2_PORT_CFLAGS=""
11914 else
11915 GPHOTO2_PORT_LIBS=""; GPHOTO2_PORT_CFLAGS=""
11919 CPPFLAGS=$ac_save_CPPFLAGS
11920 test -z "$GPHOTO2_PORT_CFLAGS" || GPHOTO2_PORT_CFLAGS=`echo " $GPHOTO2_PORT_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
11921 test -z "$GPHOTO2_PORT_LIBS" || GPHOTO2_PORT_LIBS=`echo " $GPHOTO2_PORT_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
11924 if test "$ac_cv_lib_gphoto2_gp_camera_new" != "yes"; then :
11925 case "x$with_gphoto" in
11926 x) as_fn_append wine_notices "|libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported." ;;
11927 xno) ;;
11928 *) as_fn_error $? "libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported.
11929 This is an error since --with-gphoto was requested." "$LINENO" 5 ;;
11930 esac
11932 if test "$ac_cv_lib_gphoto2_port_gp_port_info_list_new" != "yes"; then :
11933 case "x$with_gphoto" in
11934 x) as_fn_append wine_notices "|libgphoto2_port ${notice_platform}development files not found, digital cameras won't be auto-detected." ;;
11935 xno) ;;
11936 *) as_fn_error $? "libgphoto2_port ${notice_platform}development files not found, digital cameras won't be auto-detected.
11937 This is an error since --with-gphoto was requested." "$LINENO" 5 ;;
11938 esac
11942 if test "$ac_cv_header_resolv_h" = "yes"
11943 then
11944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resolver library" >&5
11945 $as_echo_n "checking for resolver library... " >&6; }
11946 if ${ac_cv_have_resolv+:} false; then :
11947 $as_echo_n "(cached) " >&6
11948 else
11949 ac_save_LIBS="$LIBS"
11950 for lib in '' -lresolv
11952 LIBS="$lib $ac_save_LIBS"
11953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11954 /* end confdefs.h. */
11955 #ifdef HAVE_NETINET_IN_H
11956 #include <netinet/in.h>
11957 #endif
11958 #include <resolv.h>
11960 main ()
11962 if (!(_res.options & RES_INIT)) res_init(); res_query("foo",ns_c_in,0,0,0)
11964 return 0;
11966 _ACEOF
11967 if ac_fn_c_try_link "$LINENO"; then :
11968 ac_cv_have_resolv=${lib:-"none required"}
11969 else
11970 ac_cv_have_resolv="not found"
11972 rm -f core conftest.err conftest.$ac_objext \
11973 conftest$ac_exeext conftest.$ac_ext
11974 test "x$ac_cv_have_resolv" = "xnot found" || break
11975 done
11976 LIBS="$ac_save_LIBS"
11978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_resolv" >&5
11979 $as_echo "$ac_cv_have_resolv" >&6; }
11981 case "$ac_cv_have_resolv" in
11982 "not found") ;;
11983 "none required")
11985 $as_echo "#define HAVE_RESOLV 1" >>confdefs.h
11988 $as_echo "#define HAVE_RESOLV 1" >>confdefs.h
11990 RESOLV_LIBS=$ac_cv_have_resolv
11992 esac
11995 if test "x$with_cms" != "xno"
11996 then
11997 if ${LCMS2_CFLAGS:+false} :; then :
11998 if ${PKG_CONFIG+:} false; then :
11999 LCMS2_CFLAGS=`$PKG_CONFIG --cflags lcms2 2>/dev/null`
12003 if ${LCMS2_LIBS:+false} :; then :
12004 if ${PKG_CONFIG+:} false; then :
12005 LCMS2_LIBS=`$PKG_CONFIG --libs lcms2 2>/dev/null`
12009 LCMS2_LIBS=${LCMS2_LIBS:-"-llcms2"}
12010 $as_echo "$as_me:${as_lineno-$LINENO}: lcms2 cflags: $LCMS2_CFLAGS" >&5
12011 $as_echo "$as_me:${as_lineno-$LINENO}: lcms2 libs: $LCMS2_LIBS" >&5
12012 ac_save_CPPFLAGS=$CPPFLAGS
12013 CPPFLAGS="$CPPFLAGS $LCMS2_CFLAGS"
12014 for ac_header in lcms2.h
12015 do :
12016 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
12017 if test "x$ac_cv_header_lcms2_h" = xyes; then :
12018 cat >>confdefs.h <<_ACEOF
12019 #define HAVE_LCMS2_H 1
12020 _ACEOF
12024 done
12026 if test "$ac_cv_header_lcms2_h" = "yes"
12027 then
12028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromFile in -llcms2" >&5
12029 $as_echo_n "checking for cmsOpenProfileFromFile in -llcms2... " >&6; }
12030 if ${ac_cv_lib_lcms2_cmsOpenProfileFromFile+:} false; then :
12031 $as_echo_n "(cached) " >&6
12032 else
12033 ac_check_lib_save_LIBS=$LIBS
12034 LIBS="-llcms2 $LCMS2_LIBS $LIBS"
12035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12036 /* end confdefs.h. */
12038 /* Override any GCC internal prototype to avoid an error.
12039 Use char because int might match the return type of a GCC
12040 builtin and then its argument prototype would still apply. */
12041 #ifdef __cplusplus
12042 extern "C"
12043 #endif
12044 char cmsOpenProfileFromFile ();
12046 main ()
12048 return cmsOpenProfileFromFile ();
12050 return 0;
12052 _ACEOF
12053 if ac_fn_c_try_link "$LINENO"; then :
12054 ac_cv_lib_lcms2_cmsOpenProfileFromFile=yes
12055 else
12056 ac_cv_lib_lcms2_cmsOpenProfileFromFile=no
12058 rm -f core conftest.err conftest.$ac_objext \
12059 conftest$ac_exeext conftest.$ac_ext
12060 LIBS=$ac_check_lib_save_LIBS
12062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsOpenProfileFromFile" >&5
12063 $as_echo "$ac_cv_lib_lcms2_cmsOpenProfileFromFile" >&6; }
12064 if test "x$ac_cv_lib_lcms2_cmsOpenProfileFromFile" = xyes; then :
12066 $as_echo "#define HAVE_LCMS2 1" >>confdefs.h
12068 else
12069 LCMS2_LIBS=""
12072 else
12073 LCMS2_CFLAGS=""
12074 LCMS2_LIBS=""
12076 CPPFLAGS=$ac_save_CPPFLAGS
12077 test -z "$LCMS2_CFLAGS" || LCMS2_CFLAGS=`echo " $LCMS2_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
12078 test -z "$LCMS2_LIBS" || LCMS2_LIBS=`echo " $LCMS2_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
12081 if test "$ac_cv_lib_lcms2_cmsOpenProfileFromFile" != "yes"; then :
12082 case "x$with_cms" in
12083 x) as_fn_append wine_notices "|liblcms2 ${notice_platform}development files not found, Color Management won't be supported." ;;
12084 xno) ;;
12085 *) as_fn_error $? "liblcms2 ${notice_platform}development files not found, Color Management won't be supported.
12086 This is an error since --with-cms was requested." "$LINENO" 5 ;;
12087 esac
12090 if test "x$with_freetype" != "xno"
12091 then
12092 if ${FREETYPE_CFLAGS:+false} :; then :
12093 if ${PKG_CONFIG+:} false; then :
12094 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags freetype2 2>/dev/null`
12097 test "$cross_compiling" = yes || FREETYPE_CFLAGS=${FREETYPE_CFLAGS:-`(freetype-config --cflags || freetype2-config --cflags) 2>/dev/null`}
12098 if ${FREETYPE_LIBS:+false} :; then :
12099 if ${PKG_CONFIG+:} false; then :
12100 FREETYPE_LIBS=`$PKG_CONFIG --libs freetype2 2>/dev/null`
12103 test "$cross_compiling" = yes || FREETYPE_LIBS=${FREETYPE_LIBS:-`(freetype-config --libs || freetype2-config --libs) 2>/dev/null`}
12104 FREETYPE_LIBS=${FREETYPE_LIBS:-"-lfreetype"}
12105 $as_echo "$as_me:${as_lineno-$LINENO}: freetype2 cflags: $FREETYPE_CFLAGS" >&5
12106 $as_echo "$as_me:${as_lineno-$LINENO}: freetype2 libs: $FREETYPE_LIBS" >&5
12107 ac_save_CPPFLAGS=$CPPFLAGS
12108 CPPFLAGS="$CPPFLAGS $FREETYPE_CFLAGS"
12109 for ac_header in ft2build.h
12110 do :
12111 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
12112 if test "x$ac_cv_header_ft2build_h" = xyes; then :
12113 cat >>confdefs.h <<_ACEOF
12114 #define HAVE_FT2BUILD_H 1
12115 _ACEOF
12119 done
12121 if test "$ac_cv_header_ft2build_h" = "yes"
12122 then
12123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfreetype" >&5
12124 $as_echo_n "checking for -lfreetype... " >&6; }
12125 if ${ac_cv_lib_soname_freetype+:} false; then :
12126 $as_echo_n "(cached) " >&6
12127 else
12128 ac_check_soname_save_LIBS=$LIBS
12129 LIBS="-lfreetype $FREETYPE_LIBS $LIBS"
12130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12131 /* end confdefs.h. */
12133 /* Override any GCC internal prototype to avoid an error.
12134 Use char because int might match the return type of a GCC
12135 builtin and then its argument prototype would still apply. */
12136 #ifdef __cplusplus
12137 extern "C"
12138 #endif
12139 char FT_Init_FreeType ();
12141 main ()
12143 return FT_Init_FreeType ();
12145 return 0;
12147 _ACEOF
12148 if ac_fn_c_try_link "$LINENO"; then :
12149 case "$LIBEXT" in
12150 dll) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest.exe | grep "freetype" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12151 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'` ;;
12152 *) ac_cv_lib_soname_freetype=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libfreetype\\.$LIBEXT" | sed -e "s/^.*\\[\\(libfreetype\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
12153 if ${ac_cv_lib_soname_freetype:+false} :; then :
12154 ac_cv_lib_soname_freetype=`$LDD conftest$ac_exeext | grep "libfreetype\\.$LIBEXT" | sed -e "s/^.*\(libfreetype\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12155 fi ;;
12156 esac
12158 rm -f core conftest.err conftest.$ac_objext \
12159 conftest$ac_exeext conftest.$ac_ext
12160 LIBS=$ac_check_soname_save_LIBS
12162 if ${ac_cv_lib_soname_freetype:+false} :; then :
12163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12164 $as_echo "not found" >&6; }
12165 FREETYPE_LIBS=""
12166 else
12167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_freetype" >&5
12168 $as_echo "$ac_cv_lib_soname_freetype" >&6; }
12170 cat >>confdefs.h <<_ACEOF
12171 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
12172 _ACEOF
12175 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
12177 ac_fn_c_check_type "$LINENO" "FT_TrueTypeEngineType" "ac_cv_type_FT_TrueTypeEngineType" "#include <ft2build.h>
12178 #include FT_MODULE_H
12180 if test "x$ac_cv_type_FT_TrueTypeEngineType" = xyes; then :
12182 cat >>confdefs.h <<_ACEOF
12183 #define HAVE_FT_TRUETYPEENGINETYPE 1
12184 _ACEOF
12190 else
12191 FREETYPE_CFLAGS=""
12192 FREETYPE_LIBS=""
12194 CPPFLAGS=$ac_save_CPPFLAGS
12195 test -z "$FREETYPE_CFLAGS" || FREETYPE_CFLAGS=`echo " $FREETYPE_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
12196 test -z "$FREETYPE_LIBS" || FREETYPE_LIBS=`echo " $FREETYPE_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
12199 if test "x$ac_cv_lib_soname_freetype" = x; then :
12200 case "x$with_freetype" in
12201 xno) ;;
12202 *) as_fn_error $? "FreeType ${notice_platform}development files not found. Fonts will not be built.
12203 Use the --without-freetype option if you really want this." "$LINENO" 5 ;;
12204 esac
12206 test "x$ac_cv_lib_soname_freetype" = x && enable_fonts=${enable_fonts:-no}
12208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for parport header/ppdev.h" >&5
12209 $as_echo_n "checking for parport header/ppdev.h... " >&6; }
12210 if ${ac_cv_c_ppdev+:} false; then :
12211 $as_echo_n "(cached) " >&6
12212 else
12213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12214 /* end confdefs.h. */
12215 #ifdef HAVE_SYS_IOCTL_H
12216 # include <sys/ioctl.h>
12217 #endif
12218 #include <linux/ppdev.h>
12220 main ()
12222 ioctl (1,PPCLAIM,0)
12224 return 0;
12226 _ACEOF
12227 if ac_fn_c_try_compile "$LINENO"; then :
12228 ac_cv_c_ppdev="yes"
12229 else
12230 ac_cv_c_ppdev="no"
12232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_ppdev" >&5
12235 $as_echo "$ac_cv_c_ppdev" >&6; }
12236 if test "$ac_cv_c_ppdev" = "yes"
12237 then
12239 $as_echo "#define HAVE_PPDEV 1" >>confdefs.h
12243 ac_wine_check_funcs_save_LIBS="$LIBS"
12244 LIBS="$LIBS $PTHREAD_LIBS"
12245 for ac_func in \
12246 pthread_attr_get_np \
12247 pthread_getattr_np \
12248 pthread_getthreadid_np \
12249 pthread_get_stackaddr_np \
12250 pthread_get_stacksize_np
12251 do :
12252 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12253 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12254 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12255 cat >>confdefs.h <<_ACEOF
12256 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12257 _ACEOF
12260 done
12262 LIBS="$ac_wine_check_funcs_save_LIBS"
12264 if test "$ac_cv_header_zlib_h" = "yes"
12265 then
12266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
12267 $as_echo_n "checking for inflate in -lz... " >&6; }
12268 if ${ac_cv_lib_z_inflate+:} false; then :
12269 $as_echo_n "(cached) " >&6
12270 else
12271 ac_check_lib_save_LIBS=$LIBS
12272 LIBS="-lz $LIBS"
12273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12274 /* end confdefs.h. */
12276 /* Override any GCC internal prototype to avoid an error.
12277 Use char because int might match the return type of a GCC
12278 builtin and then its argument prototype would still apply. */
12279 #ifdef __cplusplus
12280 extern "C"
12281 #endif
12282 char inflate ();
12284 main ()
12286 return inflate ();
12288 return 0;
12290 _ACEOF
12291 if ac_fn_c_try_link "$LINENO"; then :
12292 ac_cv_lib_z_inflate=yes
12293 else
12294 ac_cv_lib_z_inflate=no
12296 rm -f core conftest.err conftest.$ac_objext \
12297 conftest$ac_exeext conftest.$ac_ext
12298 LIBS=$ac_check_lib_save_LIBS
12300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
12301 $as_echo "$ac_cv_lib_z_inflate" >&6; }
12302 if test "x$ac_cv_lib_z_inflate" = xyes; then :
12304 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
12306 Z_LIBS="-lz"
12311 if test "x$Z_LIBS" = "x"; then :
12312 case "x$with_zlib" in
12313 x) as_fn_append wine_notices "|libz ${notice_platform}development files not found, data compression won't be supported." ;;
12314 xno) ;;
12315 *) as_fn_error $? "libz ${notice_platform}development files not found, data compression won't be supported.
12316 This is an error since --with-zlib was requested." "$LINENO" 5 ;;
12317 esac
12320 if test "x$enable_tools" != xno
12321 then
12322 if test "$ac_cv_header_gettext_po_h" = "yes"
12323 then
12324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for po_message_msgctxt in -lgettextpo" >&5
12325 $as_echo_n "checking for po_message_msgctxt in -lgettextpo... " >&6; }
12326 if ${ac_cv_lib_gettextpo_po_message_msgctxt+:} false; then :
12327 $as_echo_n "(cached) " >&6
12328 else
12329 ac_check_lib_save_LIBS=$LIBS
12330 LIBS="-lgettextpo $LIBS"
12331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12332 /* end confdefs.h. */
12334 /* Override any GCC internal prototype to avoid an error.
12335 Use char because int might match the return type of a GCC
12336 builtin and then its argument prototype would still apply. */
12337 #ifdef __cplusplus
12338 extern "C"
12339 #endif
12340 char po_message_msgctxt ();
12342 main ()
12344 return po_message_msgctxt ();
12346 return 0;
12348 _ACEOF
12349 if ac_fn_c_try_link "$LINENO"; then :
12350 ac_cv_lib_gettextpo_po_message_msgctxt=yes
12351 else
12352 ac_cv_lib_gettextpo_po_message_msgctxt=no
12354 rm -f core conftest.err conftest.$ac_objext \
12355 conftest$ac_exeext conftest.$ac_ext
12356 LIBS=$ac_check_lib_save_LIBS
12358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gettextpo_po_message_msgctxt" >&5
12359 $as_echo "$ac_cv_lib_gettextpo_po_message_msgctxt" >&6; }
12360 if test "x$ac_cv_lib_gettextpo_po_message_msgctxt" = xyes; then :
12362 $as_echo "#define HAVE_LIBGETTEXTPO 1" >>confdefs.h
12364 GETTEXTPO_LIBS="-lgettextpo"
12369 test "x$with_gettextpo" != xyes || if test "x$GETTEXTPO_LIBS" = "x"; then :
12370 case "x$with_gettextpo" in
12371 x) as_fn_append wine_notices "|GetText ${notice_platform}development files not found (or too old), po files can't be rebuilt." ;;
12372 xno) ;;
12373 *) as_fn_error $? "GetText ${notice_platform}development files not found (or too old), po files can't be rebuilt.
12374 This is an error since --with-gettextpo was requested." "$LINENO" 5 ;;
12375 esac
12379 if test "x$with_gstreamer" != "xno"
12380 then
12381 if ${GSTREAMER_CFLAGS:+false} :; then :
12382 if ${PKG_CONFIG+:} false; then :
12383 GSTREAMER_CFLAGS=`$PKG_CONFIG --cflags gstreamer-app-0.10 2>/dev/null`
12387 if ${GSTREAMER_LIBS:+false} :; then :
12388 if ${PKG_CONFIG+:} false; then :
12389 GSTREAMER_LIBS=`$PKG_CONFIG --libs gstreamer-app-0.10 2>/dev/null`
12394 $as_echo "$as_me:${as_lineno-$LINENO}: gstreamer-app-0.10 cflags: $GSTREAMER_CFLAGS" >&5
12395 $as_echo "$as_me:${as_lineno-$LINENO}: gstreamer-app-0.10 libs: $GSTREAMER_LIBS" >&5
12396 ac_save_CPPFLAGS=$CPPFLAGS
12397 CPPFLAGS="$CPPFLAGS $GSTREAMER_CFLAGS"
12398 ac_gst_incl=""
12399 for i in $GSTREAMER_CFLAGS
12401 case "$i" in
12402 -I*) ac_gst_incl="$ac_gst_incl $i";;
12403 esac
12404 done
12405 GSTREAMER_CFLAGS=$ac_gst_incl
12406 CPPFLAGS="$ac_save_CPPFLAGS $GSTREAMER_CFLAGS"
12407 ac_fn_c_check_header_mongrel "$LINENO" "gst/gstpad.h" "ac_cv_header_gst_gstpad_h" "$ac_includes_default"
12408 if test "x$ac_cv_header_gst_gstpad_h" = xyes; then :
12409 ac_fn_c_check_header_mongrel "$LINENO" "gst/app/gstappsink.h" "ac_cv_header_gst_app_gstappsink_h" "$ac_includes_default"
12410 if test "x$ac_cv_header_gst_app_gstappsink_h" = xyes; then :
12411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gint64 defined by gst/app/gstappsink.h is indeed 64-bit" >&5
12412 $as_echo_n "checking whether gint64 defined by gst/app/gstappsink.h is indeed 64-bit... " >&6; }
12413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12414 /* end confdefs.h. */
12415 #include <gst/app/gstappsink.h>
12417 main ()
12419 static int a[sizeof(gint64) > 4 ? 1 : -1]; if (a[0]) return 0;
12421 return 0;
12423 _ACEOF
12424 if ac_fn_c_try_compile "$LINENO"; then :
12425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12426 $as_echo "yes" >&6; }
12427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_pad_get_caps_reffed in -lgstreamer-0.10" >&5
12428 $as_echo_n "checking for gst_pad_get_caps_reffed in -lgstreamer-0.10... " >&6; }
12429 if ${ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed+:} false; then :
12430 $as_echo_n "(cached) " >&6
12431 else
12432 ac_check_lib_save_LIBS=$LIBS
12433 LIBS="-lgstreamer-0.10 $LIBS"
12434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12435 /* end confdefs.h. */
12437 /* Override any GCC internal prototype to avoid an error.
12438 Use char because int might match the return type of a GCC
12439 builtin and then its argument prototype would still apply. */
12440 #ifdef __cplusplus
12441 extern "C"
12442 #endif
12443 char gst_pad_get_caps_reffed ();
12445 main ()
12447 return gst_pad_get_caps_reffed ();
12449 return 0;
12451 _ACEOF
12452 if ac_fn_c_try_link "$LINENO"; then :
12453 ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=yes
12454 else
12455 ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=no
12457 rm -f core conftest.err conftest.$ac_objext \
12458 conftest$ac_exeext conftest.$ac_ext
12459 LIBS=$ac_check_lib_save_LIBS
12461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&5
12462 $as_echo "$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&6; }
12463 if test "x$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" = xyes; then :
12464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_app_buffer_new in -lgstapp-0.10" >&5
12465 $as_echo_n "checking for gst_app_buffer_new in -lgstapp-0.10... " >&6; }
12466 if ${ac_cv_lib_gstapp_0_10_gst_app_buffer_new+:} false; then :
12467 $as_echo_n "(cached) " >&6
12468 else
12469 ac_check_lib_save_LIBS=$LIBS
12470 LIBS="-lgstapp-0.10 $GSTREAMER_LIBS $LIBS"
12471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12472 /* end confdefs.h. */
12474 /* Override any GCC internal prototype to avoid an error.
12475 Use char because int might match the return type of a GCC
12476 builtin and then its argument prototype would still apply. */
12477 #ifdef __cplusplus
12478 extern "C"
12479 #endif
12480 char gst_app_buffer_new ();
12482 main ()
12484 return gst_app_buffer_new ();
12486 return 0;
12488 _ACEOF
12489 if ac_fn_c_try_link "$LINENO"; then :
12490 ac_cv_lib_gstapp_0_10_gst_app_buffer_new=yes
12491 else
12492 ac_cv_lib_gstapp_0_10_gst_app_buffer_new=no
12494 rm -f core conftest.err conftest.$ac_objext \
12495 conftest$ac_exeext conftest.$ac_ext
12496 LIBS=$ac_check_lib_save_LIBS
12498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&5
12499 $as_echo "$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&6; }
12500 if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = xyes; then :
12506 else
12507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12508 $as_echo "no" >&6; }
12510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12514 else
12515 GSTREAMER_CFLAGS=""
12519 CPPFLAGS=$ac_save_CPPFLAGS
12520 test -z "$GSTREAMER_CFLAGS" || GSTREAMER_CFLAGS=`echo " $GSTREAMER_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
12521 test -z "$GSTREAMER_LIBS" || GSTREAMER_LIBS=`echo " $GSTREAMER_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
12524 if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" != xyes -a "x$ac_cv_header_QuickTime_ImageCompression_h" != xyes; then :
12525 case "x$with_gstreamer" in
12526 x) as_fn_append wine_notices "|gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled" ;;
12527 xno) ;;
12528 *) as_fn_error $? "gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled
12529 This is an error since --with-gstreamer was requested." "$LINENO" 5 ;;
12530 esac
12532 test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = xyes || enable_winegstreamer=${enable_winegstreamer:-no}
12534 ALSA_LIBS=""
12536 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
12537 then
12538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_hw_params_get_access_mask in -lasound" >&5
12539 $as_echo_n "checking for snd_pcm_hw_params_get_access_mask in -lasound... " >&6; }
12540 if ${ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask+:} false; then :
12541 $as_echo_n "(cached) " >&6
12542 else
12543 ac_check_lib_save_LIBS=$LIBS
12544 LIBS="-lasound $LIBS"
12545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12546 /* end confdefs.h. */
12548 /* Override any GCC internal prototype to avoid an error.
12549 Use char because int might match the return type of a GCC
12550 builtin and then its argument prototype would still apply. */
12551 #ifdef __cplusplus
12552 extern "C"
12553 #endif
12554 char snd_pcm_hw_params_get_access_mask ();
12556 main ()
12558 return snd_pcm_hw_params_get_access_mask ();
12560 return 0;
12562 _ACEOF
12563 if ac_fn_c_try_link "$LINENO"; then :
12564 ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=yes
12565 else
12566 ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=no
12568 rm -f core conftest.err conftest.$ac_objext \
12569 conftest$ac_exeext conftest.$ac_ext
12570 LIBS=$ac_check_lib_save_LIBS
12572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&5
12573 $as_echo "$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&6; }
12574 if test "x$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" = xyes; then :
12575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12576 /* end confdefs.h. */
12577 #ifdef HAVE_ALSA_ASOUNDLIB_H
12578 #include <alsa/asoundlib.h>
12579 #elif defined(HAVE_SYS_ASOUNDLIB_H)
12580 #include <sys/asoundlib.h>
12581 #endif
12583 main ()
12585 snd_pcm_hw_params_get_access_mask(NULL, NULL)
12587 return 0;
12589 _ACEOF
12590 if ac_fn_c_try_compile "$LINENO"; then :
12591 ALSA_LIBS="-lasound"
12593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12598 if test "x$with_oss" != xno
12599 then
12600 ac_save_CPPFLAGS="$CPPFLAGS"
12601 if test -f /etc/oss.conf
12602 then
12603 . /etc/oss.conf
12605 ac_oss_incl="-I${OSSLIBDIR:-/usr/lib/oss}/include"
12606 CPPFLAGS="$CPPFLAGS $ac_oss_incl"
12607 ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
12608 if test "x$ac_cv_header_sys_soundcard_h" = xyes; then :
12609 ac_fn_c_check_member "$LINENO" "oss_sysinfo" "numaudioengines" "ac_cv_member_oss_sysinfo_numaudioengines" "#include <sys/soundcard.h>
12611 if test "x$ac_cv_member_oss_sysinfo_numaudioengines" = xyes; then :
12613 cat >>confdefs.h <<_ACEOF
12614 #define HAVE_OSS_SYSINFO_NUMAUDIOENGINES 1
12615 _ACEOF
12617 OSS4_CFLAGS="$ac_oss_incl"
12624 CPPFLAGS="$ac_save_CPPFLAGS"
12625 if test "x$ac_cv_member_oss_sysinfo_numaudioengines" != xyes
12626 then
12627 as_fn_append wine_notices "|OSS sound system found but too old (OSSv4 needed), OSS won't be supported."
12631 if test "x$with_capi" != "xno"
12632 then
12633 if ${CAPI20_CFLAGS:+false} :; then :
12634 if ${PKG_CONFIG+:} false; then :
12635 CAPI20_CFLAGS=`$PKG_CONFIG --cflags capi20 2>/dev/null`
12639 if ${CAPI20_LIBS:+false} :; then :
12640 if ${PKG_CONFIG+:} false; then :
12641 CAPI20_LIBS=`$PKG_CONFIG --libs capi20 2>/dev/null`
12646 $as_echo "$as_me:${as_lineno-$LINENO}: capi20 cflags: $CAPI20_CFLAGS" >&5
12647 $as_echo "$as_me:${as_lineno-$LINENO}: capi20 libs: $CAPI20_LIBS" >&5
12648 ac_save_CPPFLAGS=$CPPFLAGS
12649 CPPFLAGS="$CPPFLAGS $CAPI20_CFLAGS"
12650 for ac_header in capi20.h linux/capi.h
12651 do :
12652 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12653 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define __user
12655 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12656 cat >>confdefs.h <<_ACEOF
12657 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12658 _ACEOF
12662 done
12664 if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes"
12665 then
12666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcapi20" >&5
12667 $as_echo_n "checking for -lcapi20... " >&6; }
12668 if ${ac_cv_lib_soname_capi20+:} false; then :
12669 $as_echo_n "(cached) " >&6
12670 else
12671 ac_check_soname_save_LIBS=$LIBS
12672 LIBS="-lcapi20 $CAPI20_LIBS $LIBS"
12673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12674 /* end confdefs.h. */
12676 /* Override any GCC internal prototype to avoid an error.
12677 Use char because int might match the return type of a GCC
12678 builtin and then its argument prototype would still apply. */
12679 #ifdef __cplusplus
12680 extern "C"
12681 #endif
12682 char capi20_register ();
12684 main ()
12686 return capi20_register ();
12688 return 0;
12690 _ACEOF
12691 if ac_fn_c_try_link "$LINENO"; then :
12692 case "$LIBEXT" in
12693 dll) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest.exe | grep "capi20" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12694 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'` ;;
12695 *) ac_cv_lib_soname_capi20=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libcapi20\\.$LIBEXT" | sed -e "s/^.*\\[\\(libcapi20\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
12696 if ${ac_cv_lib_soname_capi20:+false} :; then :
12697 ac_cv_lib_soname_capi20=`$LDD conftest$ac_exeext | grep "libcapi20\\.$LIBEXT" | sed -e "s/^.*\(libcapi20\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12698 fi ;;
12699 esac
12701 rm -f core conftest.err conftest.$ac_objext \
12702 conftest$ac_exeext conftest.$ac_ext
12703 LIBS=$ac_check_soname_save_LIBS
12705 if ${ac_cv_lib_soname_capi20:+false} :; then :
12706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12707 $as_echo "not found" >&6; }
12709 else
12710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_capi20" >&5
12711 $as_echo "$ac_cv_lib_soname_capi20" >&6; }
12713 cat >>confdefs.h <<_ACEOF
12714 #define SONAME_LIBCAPI20 "$ac_cv_lib_soname_capi20"
12715 _ACEOF
12720 CPPFLAGS=$ac_save_CPPFLAGS
12721 test -z "$CAPI20_CFLAGS" || CAPI20_CFLAGS=`echo " $CAPI20_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
12722 test -z "$CAPI20_LIBS" || CAPI20_LIBS=`echo " $CAPI20_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
12725 if test "x$ac_cv_lib_soname_capi20" = "x"; then :
12726 case "x$with_capi" in
12727 x) as_fn_append wine_notices "|libcapi20 ${notice_platform}development files not found, ISDN won't be supported." ;;
12728 xno) ;;
12729 *) as_fn_error $? "libcapi20 ${notice_platform}development files not found, ISDN won't be supported.
12730 This is an error since --with-capi was requested." "$LINENO" 5 ;;
12731 esac
12734 CUPS_CFLAGS=""
12736 if test "x$with_cups" != "xno"
12737 then
12738 ac_save_CPPFLAGS="$CPPFLAGS"
12739 ac_cups_cflags=`cups-config --cflags 2>/dev/null`
12740 ac_cups_libs=`cups-config --ldflags 2>/dev/null`
12741 CPPFLAGS="$CPPFLAGS $ac_cups_cflags"
12742 for ac_header in cups/cups.h
12743 do :
12744 ac_fn_c_check_header_mongrel "$LINENO" "cups/cups.h" "ac_cv_header_cups_cups_h" "$ac_includes_default"
12745 if test "x$ac_cv_header_cups_cups_h" = xyes; then :
12746 cat >>confdefs.h <<_ACEOF
12747 #define HAVE_CUPS_CUPS_H 1
12748 _ACEOF
12749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcups" >&5
12750 $as_echo_n "checking for -lcups... " >&6; }
12751 if ${ac_cv_lib_soname_cups+:} false; then :
12752 $as_echo_n "(cached) " >&6
12753 else
12754 ac_check_soname_save_LIBS=$LIBS
12755 LIBS="-lcups $ac_cups_libs $LIBS"
12756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12757 /* end confdefs.h. */
12759 /* Override any GCC internal prototype to avoid an error.
12760 Use char because int might match the return type of a GCC
12761 builtin and then its argument prototype would still apply. */
12762 #ifdef __cplusplus
12763 extern "C"
12764 #endif
12765 char cupsGetDefault ();
12767 main ()
12769 return cupsGetDefault ();
12771 return 0;
12773 _ACEOF
12774 if ac_fn_c_try_link "$LINENO"; then :
12775 case "$LIBEXT" in
12776 dll) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest.exe | grep "cups" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12777 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'` ;;
12778 *) ac_cv_lib_soname_cups=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libcups\\.$LIBEXT" | sed -e "s/^.*\\[\\(libcups\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
12779 if ${ac_cv_lib_soname_cups:+false} :; then :
12780 ac_cv_lib_soname_cups=`$LDD conftest$ac_exeext | grep "libcups\\.$LIBEXT" | sed -e "s/^.*\(libcups\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12781 fi ;;
12782 esac
12784 rm -f core conftest.err conftest.$ac_objext \
12785 conftest$ac_exeext conftest.$ac_ext
12786 LIBS=$ac_check_soname_save_LIBS
12788 if ${ac_cv_lib_soname_cups:+false} :; then :
12789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12790 $as_echo "not found" >&6; }
12792 else
12793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_cups" >&5
12794 $as_echo "$ac_cv_lib_soname_cups" >&6; }
12796 cat >>confdefs.h <<_ACEOF
12797 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
12798 _ACEOF
12800 CUPS_CFLAGS="$ac_cups_cflags"
12804 done
12806 CPPFLAGS="$ac_save_CPPFLAGS"
12808 if test "x$ac_cv_lib_soname_cups" = "x"; then :
12809 case "x$with_cups" in
12810 x) as_fn_append wine_notices "|libcups ${notice_platform}development files not found, CUPS won't be supported." ;;
12811 xno) ;;
12812 *) as_fn_error $? "libcups ${notice_platform}development files not found, CUPS won't be supported.
12813 This is an error since --with-cups was requested." "$LINENO" 5 ;;
12814 esac
12817 if test "x$with_fontconfig" != "xno"
12818 then
12819 if ${FONTCONFIG_CFLAGS:+false} :; then :
12820 if ${PKG_CONFIG+:} false; then :
12821 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags fontconfig 2>/dev/null`
12824 test "$cross_compiling" = yes || FONTCONFIG_CFLAGS=${FONTCONFIG_CFLAGS:-$X_CFLAGS}
12825 if ${FONTCONFIG_LIBS:+false} :; then :
12826 if ${PKG_CONFIG+:} false; then :
12827 FONTCONFIG_LIBS=`$PKG_CONFIG --libs fontconfig 2>/dev/null`
12830 test "$cross_compiling" = yes || FONTCONFIG_LIBS=${FONTCONFIG_LIBS:-$X_LIBS}
12832 $as_echo "$as_me:${as_lineno-$LINENO}: fontconfig cflags: $FONTCONFIG_CFLAGS" >&5
12833 $as_echo "$as_me:${as_lineno-$LINENO}: fontconfig libs: $FONTCONFIG_LIBS" >&5
12834 ac_save_CPPFLAGS=$CPPFLAGS
12835 CPPFLAGS="$CPPFLAGS $FONTCONFIG_CFLAGS"
12836 for ac_header in fontconfig/fontconfig.h
12837 do :
12838 ac_fn_c_check_header_mongrel "$LINENO" "fontconfig/fontconfig.h" "ac_cv_header_fontconfig_fontconfig_h" "$ac_includes_default"
12839 if test "x$ac_cv_header_fontconfig_fontconfig_h" = xyes; then :
12840 cat >>confdefs.h <<_ACEOF
12841 #define HAVE_FONTCONFIG_FONTCONFIG_H 1
12842 _ACEOF
12846 done
12848 if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
12849 then
12850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
12851 $as_echo_n "checking for -lfontconfig... " >&6; }
12852 if ${ac_cv_lib_soname_fontconfig+:} false; then :
12853 $as_echo_n "(cached) " >&6
12854 else
12855 ac_check_soname_save_LIBS=$LIBS
12856 LIBS="-lfontconfig $FONTCONFIG_LIBS $LIBS"
12857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12858 /* end confdefs.h. */
12860 /* Override any GCC internal prototype to avoid an error.
12861 Use char because int might match the return type of a GCC
12862 builtin and then its argument prototype would still apply. */
12863 #ifdef __cplusplus
12864 extern "C"
12865 #endif
12866 char FcInit ();
12868 main ()
12870 return FcInit ();
12872 return 0;
12874 _ACEOF
12875 if ac_fn_c_try_link "$LINENO"; then :
12876 case "$LIBEXT" in
12877 dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12878 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'` ;;
12879 *) ac_cv_lib_soname_fontconfig=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libfontconfig\\.$LIBEXT" | sed -e "s/^.*\\[\\(libfontconfig\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
12880 if ${ac_cv_lib_soname_fontconfig:+false} :; then :
12881 ac_cv_lib_soname_fontconfig=`$LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12882 fi ;;
12883 esac
12885 rm -f core conftest.err conftest.$ac_objext \
12886 conftest$ac_exeext conftest.$ac_ext
12887 LIBS=$ac_check_soname_save_LIBS
12889 if ${ac_cv_lib_soname_fontconfig:+false} :; then :
12890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12891 $as_echo "not found" >&6; }
12892 FONTCONFIG_CFLAGS=""
12893 else
12894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
12895 $as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
12897 cat >>confdefs.h <<_ACEOF
12898 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
12899 _ACEOF
12903 else
12904 FONTCONFIG_CFLAGS=""
12906 CPPFLAGS=$ac_save_CPPFLAGS
12907 test -z "$FONTCONFIG_CFLAGS" || FONTCONFIG_CFLAGS=`echo " $FONTCONFIG_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
12908 test -z "$FONTCONFIG_LIBS" || FONTCONFIG_LIBS=`echo " $FONTCONFIG_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
12911 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
12912 case "x$with_fontconfig" in
12913 x) as_fn_append wine_notices "|fontconfig ${notice_platform}development files not found, fontconfig won't be supported." ;;
12914 xno) ;;
12915 *) as_fn_error $? "fontconfig ${notice_platform}development files not found, fontconfig won't be supported.
12916 This is an error since --with-fontconfig was requested." "$LINENO" 5 ;;
12917 esac
12920 if test "$ac_cv_header_gsm_h" = "yes" -o "$ac_cv_header_gsm_gsm_h" = "yes"
12921 then
12922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgsm" >&5
12923 $as_echo_n "checking for -lgsm... " >&6; }
12924 if ${ac_cv_lib_soname_gsm+:} false; then :
12925 $as_echo_n "(cached) " >&6
12926 else
12927 ac_check_soname_save_LIBS=$LIBS
12928 LIBS="-lgsm $LIBS"
12929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12930 /* end confdefs.h. */
12932 /* Override any GCC internal prototype to avoid an error.
12933 Use char because int might match the return type of a GCC
12934 builtin and then its argument prototype would still apply. */
12935 #ifdef __cplusplus
12936 extern "C"
12937 #endif
12938 char gsm_create ();
12940 main ()
12942 return gsm_create ();
12944 return 0;
12946 _ACEOF
12947 if ac_fn_c_try_link "$LINENO"; then :
12948 case "$LIBEXT" in
12949 dll) ac_cv_lib_soname_gsm=`$ac_cv_path_LDD conftest.exe | grep "gsm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12950 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'` ;;
12951 *) ac_cv_lib_soname_gsm=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libgsm\\.$LIBEXT" | sed -e "s/^.*\\[\\(libgsm\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
12952 if ${ac_cv_lib_soname_gsm:+false} :; then :
12953 ac_cv_lib_soname_gsm=`$LDD conftest$ac_exeext | grep "libgsm\\.$LIBEXT" | sed -e "s/^.*\(libgsm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12954 fi ;;
12955 esac
12957 rm -f core conftest.err conftest.$ac_objext \
12958 conftest$ac_exeext conftest.$ac_ext
12959 LIBS=$ac_check_soname_save_LIBS
12961 if ${ac_cv_lib_soname_gsm:+false} :; then :
12962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12963 $as_echo "not found" >&6; }
12965 else
12966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gsm" >&5
12967 $as_echo "$ac_cv_lib_soname_gsm" >&6; }
12969 cat >>confdefs.h <<_ACEOF
12970 #define SONAME_LIBGSM "$ac_cv_lib_soname_gsm"
12971 _ACEOF
12976 if test "x$ac_cv_lib_soname_gsm" = "x"; then :
12977 case "x$with_gsm" in
12978 x) as_fn_append wine_notices "|libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported." ;;
12979 xno) ;;
12980 *) as_fn_error $? "libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported.
12981 This is an error since --with-gsm was requested." "$LINENO" 5 ;;
12982 esac
12985 if test "x$with_jpeg" != "xno"
12986 then
12987 if ${JPEG_CFLAGS:+false} :; then :
12988 if ${PKG_CONFIG+:} false; then :
12989 JPEG_CFLAGS=`$PKG_CONFIG --cflags libjpeg 2>/dev/null`
12993 if ${JPEG_LIBS:+false} :; then :
12994 if ${PKG_CONFIG+:} false; then :
12995 JPEG_LIBS=`$PKG_CONFIG --libs libjpeg 2>/dev/null`
13000 $as_echo "$as_me:${as_lineno-$LINENO}: libjpeg cflags: $JPEG_CFLAGS" >&5
13001 $as_echo "$as_me:${as_lineno-$LINENO}: libjpeg libs: $JPEG_LIBS" >&5
13002 ac_save_CPPFLAGS=$CPPFLAGS
13003 CPPFLAGS="$CPPFLAGS $JPEG_CFLAGS"
13004 for ac_header in jpeglib.h
13005 do :
13006 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
13007 if test "x$ac_cv_header_jpeglib_h" = xyes; then :
13008 cat >>confdefs.h <<_ACEOF
13009 #define HAVE_JPEGLIB_H 1
13010 _ACEOF
13014 done
13016 if test "$ac_cv_header_jpeglib_h" = "yes"
13017 then
13018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ljpeg" >&5
13019 $as_echo_n "checking for -ljpeg... " >&6; }
13020 if ${ac_cv_lib_soname_jpeg+:} false; then :
13021 $as_echo_n "(cached) " >&6
13022 else
13023 ac_check_soname_save_LIBS=$LIBS
13024 LIBS="-ljpeg $JPEG_LIBS $LIBS"
13025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13026 /* end confdefs.h. */
13028 /* Override any GCC internal prototype to avoid an error.
13029 Use char because int might match the return type of a GCC
13030 builtin and then its argument prototype would still apply. */
13031 #ifdef __cplusplus
13032 extern "C"
13033 #endif
13034 char jpeg_start_decompress ();
13036 main ()
13038 return jpeg_start_decompress ();
13040 return 0;
13042 _ACEOF
13043 if ac_fn_c_try_link "$LINENO"; then :
13044 case "$LIBEXT" in
13045 dll) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest.exe | grep "jpeg" | sed -e "s/dll.*/dll/"';2,$d'` ;;
13046 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'` ;;
13047 *) ac_cv_lib_soname_jpeg=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libjpeg\\.$LIBEXT" | sed -e "s/^.*\\[\\(libjpeg\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
13048 if ${ac_cv_lib_soname_jpeg:+false} :; then :
13049 ac_cv_lib_soname_jpeg=`$LDD conftest$ac_exeext | grep "libjpeg\\.$LIBEXT" | sed -e "s/^.*\(libjpeg\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
13050 fi ;;
13051 esac
13053 rm -f core conftest.err conftest.$ac_objext \
13054 conftest$ac_exeext conftest.$ac_ext
13055 LIBS=$ac_check_soname_save_LIBS
13057 if ${ac_cv_lib_soname_jpeg:+false} :; then :
13058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13059 $as_echo "not found" >&6; }
13060 JPEG_CFLAGS=""
13061 else
13062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_jpeg" >&5
13063 $as_echo "$ac_cv_lib_soname_jpeg" >&6; }
13065 cat >>confdefs.h <<_ACEOF
13066 #define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg"
13067 _ACEOF
13071 else
13072 JPEG_CFLAGS=""
13074 CPPFLAGS=$ac_save_CPPFLAGS
13075 test -z "$JPEG_CFLAGS" || JPEG_CFLAGS=`echo " $JPEG_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
13076 test -z "$JPEG_LIBS" || JPEG_LIBS=`echo " $JPEG_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
13079 if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
13080 case "x$with_jpeg" in
13081 x) as_fn_append wine_warnings "|libjpeg ${notice_platform}development files not found, JPEG won't be supported." ;;
13082 xno) ;;
13083 *) as_fn_error $? "libjpeg ${notice_platform}development files not found, JPEG won't be supported.
13084 This is an error since --with-jpeg was requested." "$LINENO" 5 ;;
13085 esac
13088 if test "x$with_png" != "xno"
13089 then
13090 if ${PNG_CFLAGS:+false} :; then :
13091 if ${PKG_CONFIG+:} false; then :
13092 PNG_CFLAGS=`$PKG_CONFIG --cflags libpng 2>/dev/null`
13095 test "$cross_compiling" = yes || PNG_CFLAGS=${PNG_CFLAGS:-$X_CFLAGS}
13096 if ${PNG_LIBS:+false} :; then :
13097 if ${PKG_CONFIG+:} false; then :
13098 PNG_LIBS=`$PKG_CONFIG --libs libpng 2>/dev/null`
13101 test "$cross_compiling" = yes || PNG_LIBS=${PNG_LIBS:-$X_LIBS}
13103 $as_echo "$as_me:${as_lineno-$LINENO}: libpng cflags: $PNG_CFLAGS" >&5
13104 $as_echo "$as_me:${as_lineno-$LINENO}: libpng libs: $PNG_LIBS" >&5
13105 ac_save_CPPFLAGS=$CPPFLAGS
13106 CPPFLAGS="$CPPFLAGS $PNG_CFLAGS"
13107 for ac_header in png.h
13108 do :
13109 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
13110 if test "x$ac_cv_header_png_h" = xyes; then :
13111 cat >>confdefs.h <<_ACEOF
13112 #define HAVE_PNG_H 1
13113 _ACEOF
13117 done
13119 if test "$ac_cv_header_png_h" = "yes"
13120 then
13121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
13122 $as_echo_n "checking for -lpng... " >&6; }
13123 if ${ac_cv_lib_soname_png+:} false; then :
13124 $as_echo_n "(cached) " >&6
13125 else
13126 ac_check_soname_save_LIBS=$LIBS
13127 LIBS="-lpng $PNG_LIBS -lm -lz $LIBS"
13128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13129 /* end confdefs.h. */
13131 /* Override any GCC internal prototype to avoid an error.
13132 Use char because int might match the return type of a GCC
13133 builtin and then its argument prototype would still apply. */
13134 #ifdef __cplusplus
13135 extern "C"
13136 #endif
13137 char png_create_read_struct ();
13139 main ()
13141 return png_create_read_struct ();
13143 return 0;
13145 _ACEOF
13146 if ac_fn_c_try_link "$LINENO"; then :
13147 case "$LIBEXT" in
13148 dll) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest.exe | grep "png" | sed -e "s/dll.*/dll/"';2,$d'` ;;
13149 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'` ;;
13150 *) ac_cv_lib_soname_png=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libpng[0-9]*\\.$LIBEXT" | sed -e "s/^.*\\[\\(libpng[0-9]*\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
13151 if ${ac_cv_lib_soname_png:+false} :; then :
13152 ac_cv_lib_soname_png=`$LDD conftest$ac_exeext | grep "libpng[0-9]*\\.$LIBEXT" | sed -e "s/^.*\(libpng[0-9]*\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
13153 fi ;;
13154 esac
13156 rm -f core conftest.err conftest.$ac_objext \
13157 conftest$ac_exeext conftest.$ac_ext
13158 LIBS=$ac_check_soname_save_LIBS
13160 if ${ac_cv_lib_soname_png:+false} :; then :
13161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13162 $as_echo "not found" >&6; }
13163 PNG_CFLAGS=""
13164 else
13165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
13166 $as_echo "$ac_cv_lib_soname_png" >&6; }
13168 cat >>confdefs.h <<_ACEOF
13169 #define SONAME_LIBPNG "$ac_cv_lib_soname_png"
13170 _ACEOF
13172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13173 /* end confdefs.h. */
13174 #include <png.h>
13176 main ()
13178 typeof(png_set_expand_gray_1_2_4_to_8) *p
13180 return 0;
13182 _ACEOF
13183 if ac_fn_c_try_compile "$LINENO"; then :
13185 $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
13188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13190 else
13191 PNG_CFLAGS=""
13193 CPPFLAGS=$ac_save_CPPFLAGS
13194 test -z "$PNG_CFLAGS" || PNG_CFLAGS=`echo " $PNG_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
13195 test -z "$PNG_LIBS" || PNG_LIBS=`echo " $PNG_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
13198 if test "x$ac_cv_lib_soname_png" = "x"; then :
13199 case "x$with_png" in
13200 x) as_fn_append wine_warnings "|libpng ${notice_platform}development files not found, PNG won't be supported." ;;
13201 xno) ;;
13202 *) as_fn_error $? "libpng ${notice_platform}development files not found, PNG won't be supported.
13203 This is an error since --with-png was requested." "$LINENO" 5 ;;
13204 esac
13207 if test "x$with_tiff" != "xno"
13208 then
13209 if ${TIFF_CFLAGS:+false} :; then :
13210 if ${PKG_CONFIG+:} false; then :
13211 TIFF_CFLAGS=`$PKG_CONFIG --cflags libtiff 2>/dev/null`
13215 if ${TIFF_LIBS:+false} :; then :
13216 if ${PKG_CONFIG+:} false; then :
13217 TIFF_LIBS=`$PKG_CONFIG --libs libtiff 2>/dev/null`
13222 $as_echo "$as_me:${as_lineno-$LINENO}: libtiff cflags: $TIFF_CFLAGS" >&5
13223 $as_echo "$as_me:${as_lineno-$LINENO}: libtiff libs: $TIFF_LIBS" >&5
13224 ac_save_CPPFLAGS=$CPPFLAGS
13225 CPPFLAGS="$CPPFLAGS $TIFF_CFLAGS"
13226 for ac_header in tiffio.h
13227 do :
13228 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
13229 if test "x$ac_cv_header_tiffio_h" = xyes; then :
13230 cat >>confdefs.h <<_ACEOF
13231 #define HAVE_TIFFIO_H 1
13232 _ACEOF
13236 done
13238 if test "$ac_cv_header_tiffio_h" = "yes"
13239 then
13240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ltiff" >&5
13241 $as_echo_n "checking for -ltiff... " >&6; }
13242 if ${ac_cv_lib_soname_tiff+:} false; then :
13243 $as_echo_n "(cached) " >&6
13244 else
13245 ac_check_soname_save_LIBS=$LIBS
13246 LIBS="-ltiff $TIFF_LIBS $LIBS"
13247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13248 /* end confdefs.h. */
13250 /* Override any GCC internal prototype to avoid an error.
13251 Use char because int might match the return type of a GCC
13252 builtin and then its argument prototype would still apply. */
13253 #ifdef __cplusplus
13254 extern "C"
13255 #endif
13256 char TIFFClientOpen ();
13258 main ()
13260 return TIFFClientOpen ();
13262 return 0;
13264 _ACEOF
13265 if ac_fn_c_try_link "$LINENO"; then :
13266 case "$LIBEXT" in
13267 dll) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest.exe | grep "tiff" | sed -e "s/dll.*/dll/"';2,$d'` ;;
13268 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'` ;;
13269 *) ac_cv_lib_soname_tiff=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libtiff\\.$LIBEXT" | sed -e "s/^.*\\[\\(libtiff\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
13270 if ${ac_cv_lib_soname_tiff:+false} :; then :
13271 ac_cv_lib_soname_tiff=`$LDD conftest$ac_exeext | grep "libtiff\\.$LIBEXT" | sed -e "s/^.*\(libtiff\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
13272 fi ;;
13273 esac
13275 rm -f core conftest.err conftest.$ac_objext \
13276 conftest$ac_exeext conftest.$ac_ext
13277 LIBS=$ac_check_soname_save_LIBS
13279 if ${ac_cv_lib_soname_tiff:+false} :; then :
13280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13281 $as_echo "not found" >&6; }
13283 else
13284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_tiff" >&5
13285 $as_echo "$ac_cv_lib_soname_tiff" >&6; }
13287 cat >>confdefs.h <<_ACEOF
13288 #define SONAME_LIBTIFF "$ac_cv_lib_soname_tiff"
13289 _ACEOF
13294 CPPFLAGS=$ac_save_CPPFLAGS
13295 test -z "$TIFF_CFLAGS" || TIFF_CFLAGS=`echo " $TIFF_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
13296 test -z "$TIFF_LIBS" || TIFF_LIBS=`echo " $TIFF_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
13299 if test "x$ac_cv_lib_soname_tiff" = "x"; then :
13300 case "x$with_tiff" in
13301 x) as_fn_append wine_notices "|libtiff ${notice_platform}development files not found, TIFF won't be supported." ;;
13302 xno) ;;
13303 *) as_fn_error $? "libtiff ${notice_platform}development files not found, TIFF won't be supported.
13304 This is an error since --with-tiff was requested." "$LINENO" 5 ;;
13305 esac
13308 if test "x$with_mpg123" != "xno"
13309 then
13310 if ${MPG123_CFLAGS:+false} :; then :
13311 if ${PKG_CONFIG+:} false; then :
13312 MPG123_CFLAGS=`$PKG_CONFIG --cflags libmpg123 2>/dev/null`
13316 if ${MPG123_LIBS:+false} :; then :
13317 if ${PKG_CONFIG+:} false; then :
13318 MPG123_LIBS=`$PKG_CONFIG --libs libmpg123 2>/dev/null`
13322 MPG123_LIBS=${MPG123_LIBS:-"-lmpg123"}
13323 $as_echo "$as_me:${as_lineno-$LINENO}: libmpg123 cflags: $MPG123_CFLAGS" >&5
13324 $as_echo "$as_me:${as_lineno-$LINENO}: libmpg123 libs: $MPG123_LIBS" >&5
13325 ac_save_CPPFLAGS=$CPPFLAGS
13326 CPPFLAGS="$CPPFLAGS $MPG123_CFLAGS"
13327 for ac_header in mpg123.h
13328 do :
13329 ac_fn_c_check_header_mongrel "$LINENO" "mpg123.h" "ac_cv_header_mpg123_h" "$ac_includes_default"
13330 if test "x$ac_cv_header_mpg123_h" = xyes; then :
13331 cat >>confdefs.h <<_ACEOF
13332 #define HAVE_MPG123_H 1
13333 _ACEOF
13337 done
13339 if test "$ac_cv_header_mpg123_h" = "yes"
13340 then
13341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpg123_feed in -lmpg123" >&5
13342 $as_echo_n "checking for mpg123_feed in -lmpg123... " >&6; }
13343 if ${ac_cv_lib_mpg123_mpg123_feed+:} false; then :
13344 $as_echo_n "(cached) " >&6
13345 else
13346 ac_check_lib_save_LIBS=$LIBS
13347 LIBS="-lmpg123 $MPG123_LIBS $LIBS"
13348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13349 /* end confdefs.h. */
13351 /* Override any GCC internal prototype to avoid an error.
13352 Use char because int might match the return type of a GCC
13353 builtin and then its argument prototype would still apply. */
13354 #ifdef __cplusplus
13355 extern "C"
13356 #endif
13357 char mpg123_feed ();
13359 main ()
13361 return mpg123_feed ();
13363 return 0;
13365 _ACEOF
13366 if ac_fn_c_try_link "$LINENO"; then :
13367 ac_cv_lib_mpg123_mpg123_feed=yes
13368 else
13369 ac_cv_lib_mpg123_mpg123_feed=no
13371 rm -f core conftest.err conftest.$ac_objext \
13372 conftest$ac_exeext conftest.$ac_ext
13373 LIBS=$ac_check_lib_save_LIBS
13375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpg123_mpg123_feed" >&5
13376 $as_echo "$ac_cv_lib_mpg123_mpg123_feed" >&6; }
13377 if test "x$ac_cv_lib_mpg123_mpg123_feed" = xyes; then :
13379 else
13380 MPG123_LIBS=""
13383 else
13384 MPG123_CFLAGS=""
13385 MPG123_LIBS=""
13387 CPPFLAGS=$ac_save_CPPFLAGS
13388 test -z "$MPG123_CFLAGS" || MPG123_CFLAGS=`echo " $MPG123_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
13389 test -z "$MPG123_LIBS" || MPG123_LIBS=`echo " $MPG123_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
13392 if test "x$ac_cv_lib_mpg123_mpg123_feed" != xyes -a x"$ac_cv_header_CoreAudio_CoreAudio_h" != xyes; then :
13393 case "x$with_mpg123" in
13394 x) as_fn_append wine_notices "|libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported." ;;
13395 xno) ;;
13396 *) as_fn_error $? "libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported.
13397 This is an error since --with-mpg123 was requested." "$LINENO" 5 ;;
13398 esac
13400 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}
13402 if test "$ac_cv_header_AL_al_h" = "yes"
13403 then
13404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lopenal" >&5
13405 $as_echo_n "checking for -lopenal... " >&6; }
13406 if ${ac_cv_lib_soname_openal+:} false; then :
13407 $as_echo_n "(cached) " >&6
13408 else
13409 ac_check_soname_save_LIBS=$LIBS
13410 LIBS="-lopenal $LIBS"
13411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13412 /* end confdefs.h. */
13414 /* Override any GCC internal prototype to avoid an error.
13415 Use char because int might match the return type of a GCC
13416 builtin and then its argument prototype would still apply. */
13417 #ifdef __cplusplus
13418 extern "C"
13419 #endif
13420 char alGetSource3i ();
13422 main ()
13424 return alGetSource3i ();
13426 return 0;
13428 _ACEOF
13429 if ac_fn_c_try_link "$LINENO"; then :
13430 case "$LIBEXT" in
13431 dll) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest.exe | grep "openal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
13432 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'` ;;
13433 *) ac_cv_lib_soname_openal=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libopenal\\.$LIBEXT" | sed -e "s/^.*\\[\\(libopenal\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
13434 if ${ac_cv_lib_soname_openal:+false} :; then :
13435 ac_cv_lib_soname_openal=`$LDD conftest$ac_exeext | grep "libopenal\\.$LIBEXT" | sed -e "s/^.*\(libopenal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
13436 fi ;;
13437 esac
13439 rm -f core conftest.err conftest.$ac_objext \
13440 conftest$ac_exeext conftest.$ac_ext
13441 LIBS=$ac_check_soname_save_LIBS
13443 if ${ac_cv_lib_soname_openal:+false} :; then :
13444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13445 $as_echo "not found" >&6; }
13447 else
13448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_openal" >&5
13449 $as_echo "$ac_cv_lib_soname_openal" >&6; }
13451 cat >>confdefs.h <<_ACEOF
13452 #define SONAME_LIBOPENAL "$ac_cv_lib_soname_openal"
13453 _ACEOF
13455 OPENAL_LIBS="-lopenal"
13457 ac_cv_lib_openal=yes
13459 cat >>confdefs.h <<_ACEOF
13460 #define HAVE_OPENAL 1
13461 _ACEOF
13465 if test "x$ac_cv_lib_openal" != xyes; then :
13466 case "x$with_openal" in
13467 x) as_fn_append wine_notices "|libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported." ;;
13468 xno) ;;
13469 *) as_fn_error $? "libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported.
13470 This is an error since --with-openal was requested." "$LINENO" 5 ;;
13471 esac
13473 test "x$ac_cv_lib_openal" = xyes || enable_openal32=${enable_openal32:-no}
13475 if test "$ac_cv_header_kstat_h" = "yes"
13476 then
13477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
13478 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
13479 if ${ac_cv_lib_kstat_kstat_open+:} false; then :
13480 $as_echo_n "(cached) " >&6
13481 else
13482 ac_check_lib_save_LIBS=$LIBS
13483 LIBS="-lkstat $LIBS"
13484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13485 /* end confdefs.h. */
13487 /* Override any GCC internal prototype to avoid an error.
13488 Use char because int might match the return type of a GCC
13489 builtin and then its argument prototype would still apply. */
13490 #ifdef __cplusplus
13491 extern "C"
13492 #endif
13493 char kstat_open ();
13495 main ()
13497 return kstat_open ();
13499 return 0;
13501 _ACEOF
13502 if ac_fn_c_try_link "$LINENO"; then :
13503 ac_cv_lib_kstat_kstat_open=yes
13504 else
13505 ac_cv_lib_kstat_kstat_open=no
13507 rm -f core conftest.err conftest.$ac_objext \
13508 conftest$ac_exeext conftest.$ac_ext
13509 LIBS=$ac_check_lib_save_LIBS
13511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
13512 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
13513 if test "x$ac_cv_lib_kstat_kstat_open" = xyes; then :
13515 $as_echo "#define HAVE_LIBKSTAT 1" >>confdefs.h
13517 KSTAT_LIBS="-lkstat"
13523 if test "$ac_cv_header_libprocstat_h" = "yes"
13524 then
13525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for procstat_open_sysctl in -lprocstat" >&5
13526 $as_echo_n "checking for procstat_open_sysctl in -lprocstat... " >&6; }
13527 if ${ac_cv_lib_procstat_procstat_open_sysctl+:} false; then :
13528 $as_echo_n "(cached) " >&6
13529 else
13530 ac_check_lib_save_LIBS=$LIBS
13531 LIBS="-lprocstat $LIBS"
13532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13533 /* end confdefs.h. */
13535 /* Override any GCC internal prototype to avoid an error.
13536 Use char because int might match the return type of a GCC
13537 builtin and then its argument prototype would still apply. */
13538 #ifdef __cplusplus
13539 extern "C"
13540 #endif
13541 char procstat_open_sysctl ();
13543 main ()
13545 return procstat_open_sysctl ();
13547 return 0;
13549 _ACEOF
13550 if ac_fn_c_try_link "$LINENO"; then :
13551 ac_cv_lib_procstat_procstat_open_sysctl=yes
13552 else
13553 ac_cv_lib_procstat_procstat_open_sysctl=no
13555 rm -f core conftest.err conftest.$ac_objext \
13556 conftest$ac_exeext conftest.$ac_ext
13557 LIBS=$ac_check_lib_save_LIBS
13559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_procstat_procstat_open_sysctl" >&5
13560 $as_echo "$ac_cv_lib_procstat_procstat_open_sysctl" >&6; }
13561 if test "x$ac_cv_lib_procstat_procstat_open_sysctl" = xyes; then :
13563 $as_echo "#define HAVE_LIBPROCSTAT 1" >>confdefs.h
13565 PROCSTAT_LIBS="-lprocstat"
13571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lodbc" >&5
13572 $as_echo_n "checking for -lodbc... " >&6; }
13573 if ${ac_cv_lib_soname_odbc+:} false; then :
13574 $as_echo_n "(cached) " >&6
13575 else
13576 ac_check_soname_save_LIBS=$LIBS
13577 LIBS="-lodbc $LIBS"
13578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13579 /* end confdefs.h. */
13581 /* Override any GCC internal prototype to avoid an error.
13582 Use char because int might match the return type of a GCC
13583 builtin and then its argument prototype would still apply. */
13584 #ifdef __cplusplus
13585 extern "C"
13586 #endif
13587 char SQLConnect ();
13589 main ()
13591 return SQLConnect ();
13593 return 0;
13595 _ACEOF
13596 if ac_fn_c_try_link "$LINENO"; then :
13597 case "$LIBEXT" in
13598 dll) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest.exe | grep "odbc" | sed -e "s/dll.*/dll/"';2,$d'` ;;
13599 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'` ;;
13600 *) ac_cv_lib_soname_odbc=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libodbc\\.$LIBEXT" | sed -e "s/^.*\\[\\(libodbc\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
13601 if ${ac_cv_lib_soname_odbc:+false} :; then :
13602 ac_cv_lib_soname_odbc=`$LDD conftest$ac_exeext | grep "libodbc\\.$LIBEXT" | sed -e "s/^.*\(libodbc\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
13603 fi ;;
13604 esac
13606 rm -f core conftest.err conftest.$ac_objext \
13607 conftest$ac_exeext conftest.$ac_ext
13608 LIBS=$ac_check_soname_save_LIBS
13610 if ${ac_cv_lib_soname_odbc:+false} :; then :
13611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13612 $as_echo "not found" >&6; }
13613 cat >>confdefs.h <<_ACEOF
13614 #define SONAME_LIBODBC "libodbc.$LIBEXT"
13615 _ACEOF
13617 else
13618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_odbc" >&5
13619 $as_echo "$ac_cv_lib_soname_odbc" >&6; }
13621 cat >>confdefs.h <<_ACEOF
13622 #define SONAME_LIBODBC "$ac_cv_lib_soname_odbc"
13623 _ACEOF
13628 if test "x$with_netapi" != "xno"
13629 then
13630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lnetapi" >&5
13631 $as_echo_n "checking for -lnetapi... " >&6; }
13632 if ${ac_cv_lib_soname_netapi+:} false; then :
13633 $as_echo_n "(cached) " >&6
13634 else
13635 ac_check_soname_save_LIBS=$LIBS
13636 LIBS="-lnetapi $LIBS"
13637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13638 /* end confdefs.h. */
13640 /* Override any GCC internal prototype to avoid an error.
13641 Use char because int might match the return type of a GCC
13642 builtin and then its argument prototype would still apply. */
13643 #ifdef __cplusplus
13644 extern "C"
13645 #endif
13646 char libnetapi_init ();
13648 main ()
13650 return libnetapi_init ();
13652 return 0;
13654 _ACEOF
13655 if ac_fn_c_try_link "$LINENO"; then :
13656 case "$LIBEXT" in
13657 dll) ac_cv_lib_soname_netapi=`$ac_cv_path_LDD conftest.exe | grep "netapi" | sed -e "s/dll.*/dll/"';2,$d'` ;;
13658 dylib) ac_cv_lib_soname_netapi=`otool -L conftest$ac_exeext | grep "libnetapi\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libnetapi\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
13659 *) ac_cv_lib_soname_netapi=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libnetapi\\.$LIBEXT" | sed -e "s/^.*\\[\\(libnetapi\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
13660 if ${ac_cv_lib_soname_netapi:+false} :; then :
13661 ac_cv_lib_soname_netapi=`$LDD conftest$ac_exeext | grep "libnetapi\\.$LIBEXT" | sed -e "s/^.*\(libnetapi\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
13662 fi ;;
13663 esac
13665 rm -f core conftest.err conftest.$ac_objext \
13666 conftest$ac_exeext conftest.$ac_ext
13667 LIBS=$ac_check_soname_save_LIBS
13669 if ${ac_cv_lib_soname_netapi:+false} :; then :
13670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13671 $as_echo "not found" >&6; }
13672 cat >>confdefs.h <<_ACEOF
13673 #define SONAME_LIBNETAPI "libnetapi.$LIBEXT"
13674 _ACEOF
13676 else
13677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_netapi" >&5
13678 $as_echo "$ac_cv_lib_soname_netapi" >&6; }
13680 cat >>confdefs.h <<_ACEOF
13681 #define SONAME_LIBNETAPI "$ac_cv_lib_soname_netapi"
13682 _ACEOF
13688 test -n "$ALSA_LIBS" || enable_winealsa_drv=${enable_winealsa_drv:-no}
13689 test -n "$COREAUDIO_LIBS" || enable_winecoreaudio_drv=${enable_winecoreaudio_drv:-no}
13690 test "x$ac_cv_member_oss_sysinfo_numaudioengines" = xyes || enable_wineoss_drv=${enable_wineoss_drv:-no}
13691 test "$ac_cv_header_linux_joystick_h" = "yes" -o "$ac_cv_header_IOKit_hid_IOHIDLib_h" = "yes" || enable_winejoystick_drv=${enable_winejoystick_drv:-no}
13693 if test "x$ALSA_LIBS$COREAUDIO_LIBS" = "x" -a \
13694 "x$ac_cv_member_oss_sysinfo_numaudioengines" != xyes -a \
13695 "x$with_alsa$with_coreaudio$with_oss" != xnonono
13696 then
13697 as_fn_append wine_warnings "|No sound system was found. Windows applications will be silent."
13701 EXTRACFLAGS=""
13703 if test "x${GCC}" = "xyes"
13704 then
13705 EXTRACFLAGS="-Wall -pipe"
13707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc strength-reduce bug" >&5
13708 $as_echo_n "checking for gcc strength-reduce bug... " >&6; }
13709 if ${ac_cv_c_gcc_strength_bug+:} false; then :
13710 $as_echo_n "(cached) " >&6
13711 else
13712 if test "$cross_compiling" = yes; then :
13713 ac_cv_c_gcc_strength_bug="yes"
13714 else
13715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13716 /* end confdefs.h. */
13717 int L[4] = {0,1,2,3};
13719 main ()
13721 static int Array[3];
13722 unsigned int B = 3;
13723 int i;
13724 for(i=0; i<B; i++) Array[i] = i - 3;
13725 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
13726 L[i] = 4;
13727 return (Array[1] != -2 || L[2] != 3)
13729 return 0;
13731 _ACEOF
13732 if ac_fn_c_try_run "$LINENO"; then :
13733 ac_cv_c_gcc_strength_bug="no"
13734 else
13735 ac_cv_c_gcc_strength_bug="yes"
13737 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13738 conftest.$ac_objext conftest.beam conftest.$ac_ext
13742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gcc_strength_bug" >&5
13743 $as_echo "$ac_cv_c_gcc_strength_bug" >&6; }
13744 if test "$ac_cv_c_gcc_strength_bug" = "yes"
13745 then
13746 EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
13749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-builtin" >&5
13750 $as_echo_n "checking whether the compiler supports -fno-builtin... " >&6; }
13751 if ${ac_cv_cflags__fno_builtin+:} false; then :
13752 $as_echo_n "(cached) " >&6
13753 else
13754 ac_wine_try_cflags_saved=$CFLAGS
13755 CFLAGS="$CFLAGS -fno-builtin"
13756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13757 /* end confdefs.h. */
13758 int main(int argc, char **argv) { return 0; }
13759 _ACEOF
13760 if ac_fn_c_try_link "$LINENO"; then :
13761 ac_cv_cflags__fno_builtin=yes
13762 else
13763 ac_cv_cflags__fno_builtin=no
13765 rm -f core conftest.err conftest.$ac_objext \
13766 conftest$ac_exeext conftest.$ac_ext
13767 CFLAGS=$ac_wine_try_cflags_saved
13769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_builtin" >&5
13770 $as_echo "$ac_cv_cflags__fno_builtin" >&6; }
13771 if test "x$ac_cv_cflags__fno_builtin" = xyes; then :
13772 BUILTINFLAG="-fno-builtin"
13775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-strict-aliasing" >&5
13776 $as_echo_n "checking whether the compiler supports -fno-strict-aliasing... " >&6; }
13777 if ${ac_cv_cflags__fno_strict_aliasing+:} false; then :
13778 $as_echo_n "(cached) " >&6
13779 else
13780 ac_wine_try_cflags_saved=$CFLAGS
13781 CFLAGS="$CFLAGS -fno-strict-aliasing"
13782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13783 /* end confdefs.h. */
13784 int main(int argc, char **argv) { return 0; }
13785 _ACEOF
13786 if ac_fn_c_try_link "$LINENO"; then :
13787 ac_cv_cflags__fno_strict_aliasing=yes
13788 else
13789 ac_cv_cflags__fno_strict_aliasing=no
13791 rm -f core conftest.err conftest.$ac_objext \
13792 conftest$ac_exeext conftest.$ac_ext
13793 CFLAGS=$ac_wine_try_cflags_saved
13795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_strict_aliasing" >&5
13796 $as_echo "$ac_cv_cflags__fno_strict_aliasing" >&6; }
13797 if test "x$ac_cv_cflags__fno_strict_aliasing" = xyes; then :
13798 EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
13800 saved_CFLAGS=$CFLAGS
13801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Werror=unknown-warning-option" >&5
13802 $as_echo_n "checking whether the compiler supports -Werror=unknown-warning-option... " >&6; }
13803 if ${ac_cv_cflags__Werror_unknown_warning_option+:} false; then :
13804 $as_echo_n "(cached) " >&6
13805 else
13806 ac_wine_try_cflags_saved=$CFLAGS
13807 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13809 /* end confdefs.h. */
13810 int main(int argc, char **argv) { return 0; }
13811 _ACEOF
13812 if ac_fn_c_try_link "$LINENO"; then :
13813 ac_cv_cflags__Werror_unknown_warning_option=yes
13814 else
13815 ac_cv_cflags__Werror_unknown_warning_option=no
13817 rm -f core conftest.err conftest.$ac_objext \
13818 conftest$ac_exeext conftest.$ac_ext
13819 CFLAGS=$ac_wine_try_cflags_saved
13821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Werror_unknown_warning_option" >&5
13822 $as_echo "$ac_cv_cflags__Werror_unknown_warning_option" >&6; }
13823 if test "x$ac_cv_cflags__Werror_unknown_warning_option" = xyes; then :
13824 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wdeclaration-after-statement" >&5
13827 $as_echo_n "checking whether the compiler supports -Wdeclaration-after-statement... " >&6; }
13828 if ${ac_cv_cflags__Wdeclaration_after_statement+:} false; then :
13829 $as_echo_n "(cached) " >&6
13830 else
13831 ac_wine_try_cflags_saved=$CFLAGS
13832 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
13833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13834 /* end confdefs.h. */
13835 int main(int argc, char **argv) { return 0; }
13836 _ACEOF
13837 if ac_fn_c_try_link "$LINENO"; then :
13838 ac_cv_cflags__Wdeclaration_after_statement=yes
13839 else
13840 ac_cv_cflags__Wdeclaration_after_statement=no
13842 rm -f core conftest.err conftest.$ac_objext \
13843 conftest$ac_exeext conftest.$ac_ext
13844 CFLAGS=$ac_wine_try_cflags_saved
13846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wdeclaration_after_statement" >&5
13847 $as_echo "$ac_cv_cflags__Wdeclaration_after_statement" >&6; }
13848 if test "x$ac_cv_cflags__Wdeclaration_after_statement" = xyes; then :
13849 EXTRACFLAGS="$EXTRACFLAGS -Wdeclaration-after-statement"
13851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wempty-body" >&5
13852 $as_echo_n "checking whether the compiler supports -Wempty-body... " >&6; }
13853 if ${ac_cv_cflags__Wempty_body+:} false; then :
13854 $as_echo_n "(cached) " >&6
13855 else
13856 ac_wine_try_cflags_saved=$CFLAGS
13857 CFLAGS="$CFLAGS -Wempty-body"
13858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13859 /* end confdefs.h. */
13860 int main(int argc, char **argv) { return 0; }
13861 _ACEOF
13862 if ac_fn_c_try_link "$LINENO"; then :
13863 ac_cv_cflags__Wempty_body=yes
13864 else
13865 ac_cv_cflags__Wempty_body=no
13867 rm -f core conftest.err conftest.$ac_objext \
13868 conftest$ac_exeext conftest.$ac_ext
13869 CFLAGS=$ac_wine_try_cflags_saved
13871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wempty_body" >&5
13872 $as_echo "$ac_cv_cflags__Wempty_body" >&6; }
13873 if test "x$ac_cv_cflags__Wempty_body" = xyes; then :
13874 EXTRACFLAGS="$EXTRACFLAGS -Wempty-body"
13876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wignored-qualifiers" >&5
13877 $as_echo_n "checking whether the compiler supports -Wignored-qualifiers... " >&6; }
13878 if ${ac_cv_cflags__Wignored_qualifiers+:} false; then :
13879 $as_echo_n "(cached) " >&6
13880 else
13881 ac_wine_try_cflags_saved=$CFLAGS
13882 CFLAGS="$CFLAGS -Wignored-qualifiers"
13883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13884 /* end confdefs.h. */
13885 int main(int argc, char **argv) { return 0; }
13886 _ACEOF
13887 if ac_fn_c_try_link "$LINENO"; then :
13888 ac_cv_cflags__Wignored_qualifiers=yes
13889 else
13890 ac_cv_cflags__Wignored_qualifiers=no
13892 rm -f core conftest.err conftest.$ac_objext \
13893 conftest$ac_exeext conftest.$ac_ext
13894 CFLAGS=$ac_wine_try_cflags_saved
13896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wignored_qualifiers" >&5
13897 $as_echo "$ac_cv_cflags__Wignored_qualifiers" >&6; }
13898 if test "x$ac_cv_cflags__Wignored_qualifiers" = xyes; then :
13899 EXTRACFLAGS="$EXTRACFLAGS -Wignored-qualifiers"
13901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wstrict-prototypes" >&5
13902 $as_echo_n "checking whether the compiler supports -Wstrict-prototypes... " >&6; }
13903 if ${ac_cv_cflags__Wstrict_prototypes+:} false; then :
13904 $as_echo_n "(cached) " >&6
13905 else
13906 ac_wine_try_cflags_saved=$CFLAGS
13907 CFLAGS="$CFLAGS -Wstrict-prototypes"
13908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13909 /* end confdefs.h. */
13910 int main(int argc, char **argv) { return 0; }
13911 _ACEOF
13912 if ac_fn_c_try_link "$LINENO"; then :
13913 ac_cv_cflags__Wstrict_prototypes=yes
13914 else
13915 ac_cv_cflags__Wstrict_prototypes=no
13917 rm -f core conftest.err conftest.$ac_objext \
13918 conftest$ac_exeext conftest.$ac_ext
13919 CFLAGS=$ac_wine_try_cflags_saved
13921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wstrict_prototypes" >&5
13922 $as_echo "$ac_cv_cflags__Wstrict_prototypes" >&6; }
13923 if test "x$ac_cv_cflags__Wstrict_prototypes" = xyes; then :
13924 EXTRACFLAGS="$EXTRACFLAGS -Wstrict-prototypes"
13926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wtype-limits" >&5
13927 $as_echo_n "checking whether the compiler supports -Wtype-limits... " >&6; }
13928 if ${ac_cv_cflags__Wtype_limits+:} false; then :
13929 $as_echo_n "(cached) " >&6
13930 else
13931 ac_wine_try_cflags_saved=$CFLAGS
13932 CFLAGS="$CFLAGS -Wtype-limits"
13933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13934 /* end confdefs.h. */
13935 int main(int argc, char **argv) { return 0; }
13936 _ACEOF
13937 if ac_fn_c_try_link "$LINENO"; then :
13938 ac_cv_cflags__Wtype_limits=yes
13939 else
13940 ac_cv_cflags__Wtype_limits=no
13942 rm -f core conftest.err conftest.$ac_objext \
13943 conftest$ac_exeext conftest.$ac_ext
13944 CFLAGS=$ac_wine_try_cflags_saved
13946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wtype_limits" >&5
13947 $as_echo "$ac_cv_cflags__Wtype_limits" >&6; }
13948 if test "x$ac_cv_cflags__Wtype_limits" = xyes; then :
13949 EXTRACFLAGS="$EXTRACFLAGS -Wtype-limits"
13951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wunused-but-set-parameter" >&5
13952 $as_echo_n "checking whether the compiler supports -Wunused-but-set-parameter... " >&6; }
13953 if ${ac_cv_cflags__Wunused_but_set_parameter+:} false; then :
13954 $as_echo_n "(cached) " >&6
13955 else
13956 ac_wine_try_cflags_saved=$CFLAGS
13957 CFLAGS="$CFLAGS -Wunused-but-set-parameter"
13958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13959 /* end confdefs.h. */
13960 int main(int argc, char **argv) { return 0; }
13961 _ACEOF
13962 if ac_fn_c_try_link "$LINENO"; then :
13963 ac_cv_cflags__Wunused_but_set_parameter=yes
13964 else
13965 ac_cv_cflags__Wunused_but_set_parameter=no
13967 rm -f core conftest.err conftest.$ac_objext \
13968 conftest$ac_exeext conftest.$ac_ext
13969 CFLAGS=$ac_wine_try_cflags_saved
13971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wunused_but_set_parameter" >&5
13972 $as_echo "$ac_cv_cflags__Wunused_but_set_parameter" >&6; }
13973 if test "x$ac_cv_cflags__Wunused_but_set_parameter" = xyes; then :
13974 EXTRACFLAGS="$EXTRACFLAGS -Wunused-but-set-parameter"
13976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wvla" >&5
13977 $as_echo_n "checking whether the compiler supports -Wvla... " >&6; }
13978 if ${ac_cv_cflags__Wvla+:} false; then :
13979 $as_echo_n "(cached) " >&6
13980 else
13981 ac_wine_try_cflags_saved=$CFLAGS
13982 CFLAGS="$CFLAGS -Wvla"
13983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13984 /* end confdefs.h. */
13985 int main(int argc, char **argv) { return 0; }
13986 _ACEOF
13987 if ac_fn_c_try_link "$LINENO"; then :
13988 ac_cv_cflags__Wvla=yes
13989 else
13990 ac_cv_cflags__Wvla=no
13992 rm -f core conftest.err conftest.$ac_objext \
13993 conftest$ac_exeext conftest.$ac_ext
13994 CFLAGS=$ac_wine_try_cflags_saved
13996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wvla" >&5
13997 $as_echo "$ac_cv_cflags__Wvla" >&6; }
13998 if test "x$ac_cv_cflags__Wvla" = xyes; then :
13999 EXTRACFLAGS="$EXTRACFLAGS -Wvla"
14001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wwrite-strings" >&5
14002 $as_echo_n "checking whether the compiler supports -Wwrite-strings... " >&6; }
14003 if ${ac_cv_cflags__Wwrite_strings+:} false; then :
14004 $as_echo_n "(cached) " >&6
14005 else
14006 ac_wine_try_cflags_saved=$CFLAGS
14007 CFLAGS="$CFLAGS -Wwrite-strings"
14008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14009 /* end confdefs.h. */
14010 int main(int argc, char **argv) { return 0; }
14011 _ACEOF
14012 if ac_fn_c_try_link "$LINENO"; then :
14013 ac_cv_cflags__Wwrite_strings=yes
14014 else
14015 ac_cv_cflags__Wwrite_strings=no
14017 rm -f core conftest.err conftest.$ac_objext \
14018 conftest$ac_exeext conftest.$ac_ext
14019 CFLAGS=$ac_wine_try_cflags_saved
14021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wwrite_strings" >&5
14022 $as_echo "$ac_cv_cflags__Wwrite_strings" >&6; }
14023 if test "x$ac_cv_cflags__Wwrite_strings" = xyes; then :
14024 EXTRACFLAGS="$EXTRACFLAGS -Wwrite-strings"
14027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wpointer-arith" >&5
14028 $as_echo_n "checking whether the compiler supports -Wpointer-arith... " >&6; }
14029 if ${ac_cv_cflags__Wpointer_arith+:} false; then :
14030 $as_echo_n "(cached) " >&6
14031 else
14032 ac_wine_try_cflags_saved=$CFLAGS
14033 CFLAGS="$CFLAGS -Wpointer-arith"
14034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14035 /* end confdefs.h. */
14036 int main(int argc, char **argv) { return 0; }
14037 _ACEOF
14038 if ac_fn_c_try_link "$LINENO"; then :
14039 ac_cv_cflags__Wpointer_arith=yes
14040 else
14041 ac_cv_cflags__Wpointer_arith=no
14043 rm -f core conftest.err conftest.$ac_objext \
14044 conftest$ac_exeext conftest.$ac_ext
14045 CFLAGS=$ac_wine_try_cflags_saved
14047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wpointer_arith" >&5
14048 $as_echo "$ac_cv_cflags__Wpointer_arith" >&6; }
14049 if test "x$ac_cv_cflags__Wpointer_arith" = xyes; then :
14050 saved_string_h_CFLAGS=$CFLAGS
14051 CFLAGS="$CFLAGS -Wpointer-arith -Werror"
14052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wpointer-arith" >&5
14053 $as_echo_n "checking for broken string.h that generates warnings with -Wpointer-arith... " >&6; }
14054 if ${ac_cv_c_string_h_warnings+:} false; then :
14055 $as_echo_n "(cached) " >&6
14056 else
14057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14058 /* end confdefs.h. */
14059 #include <string.h>
14061 main ()
14065 return 0;
14067 _ACEOF
14068 if ac_fn_c_try_compile "$LINENO"; then :
14069 ac_cv_c_string_h_warnings=no
14070 else
14071 ac_cv_c_string_h_warnings=yes
14073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_string_h_warnings" >&5
14076 $as_echo "$ac_cv_c_string_h_warnings" >&6; }
14077 test "$ac_cv_c_string_h_warnings" = yes || EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
14078 CFLAGS=$saved_string_h_CFLAGS
14081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wlogical-op" >&5
14082 $as_echo_n "checking whether the compiler supports -Wlogical-op... " >&6; }
14083 if ${ac_cv_cflags__Wlogical_op+:} false; then :
14084 $as_echo_n "(cached) " >&6
14085 else
14086 ac_wine_try_cflags_saved=$CFLAGS
14087 CFLAGS="$CFLAGS -Wlogical-op"
14088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14089 /* end confdefs.h. */
14090 int main(int argc, char **argv) { return 0; }
14091 _ACEOF
14092 if ac_fn_c_try_link "$LINENO"; then :
14093 ac_cv_cflags__Wlogical_op=yes
14094 else
14095 ac_cv_cflags__Wlogical_op=no
14097 rm -f core conftest.err conftest.$ac_objext \
14098 conftest$ac_exeext conftest.$ac_ext
14099 CFLAGS=$ac_wine_try_cflags_saved
14101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wlogical_op" >&5
14102 $as_echo "$ac_cv_cflags__Wlogical_op" >&6; }
14103 if test "x$ac_cv_cflags__Wlogical_op" = xyes; then :
14104 saved_string_h_CFLAGS=$CFLAGS
14105 CFLAGS="$CFLAGS -Wlogical-op -Werror"
14106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wlogical-op" >&5
14107 $as_echo_n "checking for broken string.h that generates warnings with -Wlogical-op... " >&6; }
14108 if ${ac_cv_c_logicalop_noisy+:} false; then :
14109 $as_echo_n "(cached) " >&6
14110 else
14111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14112 /* end confdefs.h. */
14113 #include <string.h>
14114 char*f(const char *h,char n) {return strchr(h,n);}
14116 main ()
14120 return 0;
14122 _ACEOF
14123 if ac_fn_c_try_compile "$LINENO"; then :
14124 ac_cv_c_logicalop_noisy=no
14125 else
14126 ac_cv_c_logicalop_noisy=yes
14128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_logicalop_noisy" >&5
14131 $as_echo "$ac_cv_c_logicalop_noisy" >&6; }
14132 CFLAGS=$saved_string_h_CFLAGS
14133 test "$ac_cv_c_logicalop_noisy" = yes || EXTRACFLAGS="$EXTRACFLAGS -Wlogical-op"
14136 CFLAGS=$saved_CFLAGS
14138 for ac_flag in $CFLAGS; do
14139 case $ac_flag in
14140 -g) case $host_os in
14141 darwin*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -gstabs+" >&5
14142 $as_echo_n "checking whether the compiler supports -gstabs+... " >&6; }
14143 if ${ac_cv_cflags__gstabsp+:} false; then :
14144 $as_echo_n "(cached) " >&6
14145 else
14146 ac_wine_try_cflags_saved=$CFLAGS
14147 CFLAGS="$CFLAGS -gstabs+"
14148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14149 /* end confdefs.h. */
14150 int main(int argc, char **argv) { return 0; }
14151 _ACEOF
14152 if ac_fn_c_try_link "$LINENO"; then :
14153 ac_cv_cflags__gstabsp=yes
14154 else
14155 ac_cv_cflags__gstabsp=no
14157 rm -f core conftest.err conftest.$ac_objext \
14158 conftest$ac_exeext conftest.$ac_ext
14159 CFLAGS=$ac_wine_try_cflags_saved
14161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__gstabsp" >&5
14162 $as_echo "$ac_cv_cflags__gstabsp" >&6; }
14163 if test "x$ac_cv_cflags__gstabsp" = xyes; then :
14164 EXTRACFLAGS="$EXTRACFLAGS -gstabs+"
14165 fi ;;
14166 *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -gdwarf-2" >&5
14167 $as_echo_n "checking whether the compiler supports -gdwarf-2... " >&6; }
14168 if ${ac_cv_cflags__gdwarf_2+:} false; then :
14169 $as_echo_n "(cached) " >&6
14170 else
14171 ac_wine_try_cflags_saved=$CFLAGS
14172 CFLAGS="$CFLAGS -gdwarf-2"
14173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14174 /* end confdefs.h. */
14175 int main(int argc, char **argv) { return 0; }
14176 _ACEOF
14177 if ac_fn_c_try_link "$LINENO"; then :
14178 ac_cv_cflags__gdwarf_2=yes
14179 else
14180 ac_cv_cflags__gdwarf_2=no
14182 rm -f core conftest.err conftest.$ac_objext \
14183 conftest$ac_exeext conftest.$ac_ext
14184 CFLAGS=$ac_wine_try_cflags_saved
14186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__gdwarf_2" >&5
14187 $as_echo "$ac_cv_cflags__gdwarf_2" >&6; }
14188 if test "x$ac_cv_cflags__gdwarf_2" = xyes; then :
14189 EXTRACFLAGS="$EXTRACFLAGS -gdwarf-2"
14191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -gstrict-dwarf" >&5
14192 $as_echo_n "checking whether the compiler supports -gstrict-dwarf... " >&6; }
14193 if ${ac_cv_cflags__gstrict_dwarf+:} false; then :
14194 $as_echo_n "(cached) " >&6
14195 else
14196 ac_wine_try_cflags_saved=$CFLAGS
14197 CFLAGS="$CFLAGS -gstrict-dwarf"
14198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14199 /* end confdefs.h. */
14200 int main(int argc, char **argv) { return 0; }
14201 _ACEOF
14202 if ac_fn_c_try_link "$LINENO"; then :
14203 ac_cv_cflags__gstrict_dwarf=yes
14204 else
14205 ac_cv_cflags__gstrict_dwarf=no
14207 rm -f core conftest.err conftest.$ac_objext \
14208 conftest$ac_exeext conftest.$ac_ext
14209 CFLAGS=$ac_wine_try_cflags_saved
14211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__gstrict_dwarf" >&5
14212 $as_echo "$ac_cv_cflags__gstrict_dwarf" >&6; }
14213 if test "x$ac_cv_cflags__gstrict_dwarf" = xyes; then :
14214 EXTRACFLAGS="$EXTRACFLAGS -gstrict-dwarf"
14215 fi ;;
14216 esac ;;
14217 esac
14218 done
14220 case $host_cpu in
14221 *i[3456789]86*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-omit-frame-pointer" >&5
14222 $as_echo_n "checking whether the compiler supports -fno-omit-frame-pointer... " >&6; }
14223 if ${ac_cv_cflags__fno_omit_frame_pointer+:} false; then :
14224 $as_echo_n "(cached) " >&6
14225 else
14226 ac_wine_try_cflags_saved=$CFLAGS
14227 CFLAGS="$CFLAGS -fno-omit-frame-pointer"
14228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14229 /* end confdefs.h. */
14230 int main(int argc, char **argv) { return 0; }
14231 _ACEOF
14232 if ac_fn_c_try_link "$LINENO"; then :
14233 ac_cv_cflags__fno_omit_frame_pointer=yes
14234 else
14235 ac_cv_cflags__fno_omit_frame_pointer=no
14237 rm -f core conftest.err conftest.$ac_objext \
14238 conftest$ac_exeext conftest.$ac_ext
14239 CFLAGS=$ac_wine_try_cflags_saved
14241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_omit_frame_pointer" >&5
14242 $as_echo "$ac_cv_cflags__fno_omit_frame_pointer" >&6; }
14243 if test "x$ac_cv_cflags__fno_omit_frame_pointer" = xyes; then :
14244 EXTRACFLAGS="$EXTRACFLAGS -fno-omit-frame-pointer"
14245 fi ;;
14246 esac
14248 case $host in
14249 x86_64-*mingw32*|x86_64-*cygwin*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wno-format" >&5
14250 $as_echo_n "checking whether the compiler supports -Wno-format... " >&6; }
14251 if ${ac_cv_cflags__Wno_format+:} false; then :
14252 $as_echo_n "(cached) " >&6
14253 else
14254 ac_wine_try_cflags_saved=$CFLAGS
14255 CFLAGS="$CFLAGS -Wno-format"
14256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14257 /* end confdefs.h. */
14258 int main(int argc, char **argv) { return 0; }
14259 _ACEOF
14260 if ac_fn_c_try_link "$LINENO"; then :
14261 ac_cv_cflags__Wno_format=yes
14262 else
14263 ac_cv_cflags__Wno_format=no
14265 rm -f core conftest.err conftest.$ac_objext \
14266 conftest$ac_exeext conftest.$ac_ext
14267 CFLAGS=$ac_wine_try_cflags_saved
14269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wno_format" >&5
14270 $as_echo "$ac_cv_cflags__Wno_format" >&6; }
14271 if test "x$ac_cv_cflags__Wno_format" = xyes; then :
14272 EXTRACFLAGS="$EXTRACFLAGS -Wno-format"
14273 fi ;;
14274 esac
14276 if test "x$enable_maintainer_mode" = "xyes"
14277 then
14278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Werror" >&5
14279 $as_echo_n "checking whether the compiler supports -Werror... " >&6; }
14280 if ${ac_cv_cflags__Werror+:} false; then :
14281 $as_echo_n "(cached) " >&6
14282 else
14283 ac_wine_try_cflags_saved=$CFLAGS
14284 CFLAGS="$CFLAGS -Werror"
14285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14286 /* end confdefs.h. */
14287 int main(int argc, char **argv) { return 0; }
14288 _ACEOF
14289 if ac_fn_c_try_link "$LINENO"; then :
14290 ac_cv_cflags__Werror=yes
14291 else
14292 ac_cv_cflags__Werror=no
14294 rm -f core conftest.err conftest.$ac_objext \
14295 conftest$ac_exeext conftest.$ac_ext
14296 CFLAGS=$ac_wine_try_cflags_saved
14298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Werror" >&5
14299 $as_echo "$ac_cv_cflags__Werror" >&6; }
14300 if test "x$ac_cv_cflags__Werror" = xyes; then :
14301 EXTRACFLAGS="$EXTRACFLAGS -Werror"
14305 saved_CFLAGS="$CFLAGS"
14306 CFLAGS="$CFLAGS -Werror"
14307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ms_hook_prologue attribute" >&5
14308 $as_echo_n "checking for ms_hook_prologue attribute... " >&6; }
14309 if ${ac_cv_have_ms_hook_prologue+:} false; then :
14310 $as_echo_n "(cached) " >&6
14311 else
14312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14313 /* end confdefs.h. */
14314 int __attribute__((__ms_hook_prologue__)) test(void) { return 0; }
14316 main ()
14320 return 0;
14322 _ACEOF
14323 if ac_fn_c_try_compile "$LINENO"; then :
14324 ac_cv_have_ms_hook_prologue="yes"
14325 else
14326 ac_cv_have_ms_hook_prologue="no"
14328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ms_hook_prologue" >&5
14331 $as_echo "$ac_cv_have_ms_hook_prologue" >&6; }
14332 CFLAGS="$saved_CFLAGS"
14333 if test "$ac_cv_have_ms_hook_prologue" = "yes"
14334 then
14336 $as_echo "#define DECLSPEC_HOTPATCH __attribute__((__ms_hook_prologue__))" >>confdefs.h
14338 else
14339 $as_echo "#define DECLSPEC_HOTPATCH /* */" >>confdefs.h
14345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the need to disable Fortify" >&5
14346 $as_echo_n "checking for the need to disable Fortify... " >&6; }
14347 if ${ac_cv_c_fortify_enabled+:} false; then :
14348 $as_echo_n "(cached) " >&6
14349 else
14350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14351 /* end confdefs.h. */
14352 #include <string.h>
14354 main ()
14356 #if defined(__USE_FORTIFY_LEVEL) && __USE_FORTIFY_LEVEL > 0
14357 #error Fortify enabled
14358 #endif
14360 return 0;
14362 _ACEOF
14363 if ac_fn_c_try_compile "$LINENO"; then :
14364 ac_cv_c_fortify_enabled=no
14365 else
14366 ac_cv_c_fortify_enabled=yes
14368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_fortify_enabled" >&5
14371 $as_echo "$ac_cv_c_fortify_enabled" >&6; }
14372 if test "$ac_cv_c_fortify_enabled" = yes
14373 then
14374 CFLAGS="$CFLAGS -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0"
14378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need an underscore prefix" >&5
14379 $as_echo_n "checking whether external symbols need an underscore prefix... " >&6; }
14380 if ${ac_cv_c_extern_prefix+:} false; then :
14381 $as_echo_n "(cached) " >&6
14382 else
14383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14384 /* end confdefs.h. */
14385 extern int ac_test;
14387 main ()
14389 asm(".globl _ac_test\n_ac_test:\t.long 0"); if (ac_test) return 1
14391 return 0;
14393 _ACEOF
14394 if ac_fn_c_try_link "$LINENO"; then :
14395 ac_cv_c_extern_prefix="yes"
14396 else
14397 ac_cv_c_extern_prefix="no"
14399 rm -f core conftest.err conftest.$ac_objext \
14400 conftest$ac_exeext conftest.$ac_ext
14402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_extern_prefix" >&5
14403 $as_echo "$ac_cv_c_extern_prefix" >&6; }
14405 case $host_cpu in
14406 *i[3456789]86*)
14407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need stdcall decoration" >&5
14408 $as_echo_n "checking whether external symbols need stdcall decoration... " >&6; }
14409 if ${ac_cv_c_stdcall_suffix+:} false; then :
14410 $as_echo_n "(cached) " >&6
14411 else
14412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14413 /* end confdefs.h. */
14414 #ifndef _MSC_VER
14415 #define __stdcall __attribute__((__stdcall__))
14416 #endif
14417 int __stdcall ac_test(int i) { return i; }
14419 main ()
14421 asm("jmp _ac_test@4"); if (ac_test(1)) return 1
14423 return 0;
14425 _ACEOF
14426 if ac_fn_c_try_link "$LINENO"; then :
14427 ac_cv_c_stdcall_suffix="yes"
14428 else
14429 ac_cv_c_stdcall_suffix="no"
14431 rm -f core conftest.err conftest.$ac_objext \
14432 conftest$ac_exeext conftest.$ac_ext
14434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stdcall_suffix" >&5
14435 $as_echo "$ac_cv_c_stdcall_suffix" >&6; } ;;
14436 *) ac_cv_c_stdcall_suffix="no" ;;
14437 esac
14440 if test "$ac_cv_c_extern_prefix" = "yes"
14441 then
14442 $as_echo "#define __ASM_NAME(name) \"_\" name" >>confdefs.h
14444 asm_name_prefix="_"
14445 else
14446 $as_echo "#define __ASM_NAME(name) name" >>confdefs.h
14448 asm_name_prefix=""
14452 if test "$ac_cv_c_stdcall_suffix" = "yes"
14453 then
14454 $as_echo "#define __ASM_STDCALL(args) \"@\" #args" >>confdefs.h
14456 else
14457 $as_echo "#define __ASM_STDCALL(args) \"\"" >>confdefs.h
14462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to define a function in assembly code" >&5
14463 $as_echo_n "checking how to define a function in assembly code... " >&6; }
14464 if ${ac_cv_asm_func_def+:} false; then :
14465 $as_echo_n "(cached) " >&6
14466 else
14467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14468 /* end confdefs.h. */
14471 main ()
14473 asm("\t.globl _ac_test\n\t.def _ac_test; .scl 2; .type 32; .endef\n_ac_test:\t.long 0");
14475 return 0;
14477 _ACEOF
14478 if ac_fn_c_try_link "$LINENO"; then :
14479 ac_cv_asm_func_def=".def"
14480 else
14481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14482 /* end confdefs.h. */
14485 main ()
14487 asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0");
14489 return 0;
14491 _ACEOF
14492 if ac_fn_c_try_link "$LINENO"; then :
14493 ac_cv_asm_func_def=".type @function"
14494 else
14495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14496 /* end confdefs.h. */
14499 main ()
14501 asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0");
14503 return 0;
14505 _ACEOF
14506 if ac_fn_c_try_link "$LINENO"; then :
14507 ac_cv_asm_func_def=".type 2"
14508 else
14509 ac_cv_asm_func_def="unknown"
14511 rm -f core conftest.err conftest.$ac_objext \
14512 conftest$ac_exeext conftest.$ac_ext
14514 rm -f core conftest.err conftest.$ac_objext \
14515 conftest$ac_exeext conftest.$ac_ext
14517 rm -f core conftest.err conftest.$ac_objext \
14518 conftest$ac_exeext conftest.$ac_ext
14520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_asm_func_def" >&5
14521 $as_echo "$ac_cv_asm_func_def" >&6; }
14524 case "$ac_cv_asm_func_def" in
14525 ".def")
14526 $as_echo "#define __ASM_FUNC(name) \".def \" __ASM_NAME(name) \"; .scl 2; .type 32; .endef\"" >>confdefs.h
14528 asm_func_header=".def $asm_name_prefix\" #name suffix \"; .scl 2; .type 32; .endef" ;;
14529 ".type @function")
14530 $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",@function\"" >>confdefs.h
14532 asm_func_header=".type $asm_name_prefix\" #name suffix \",@function" ;;
14533 ".type 2")
14534 $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",2\"" >>confdefs.h
14536 asm_func_header=".type $asm_name_prefix\" #name suffix \",2" ;;
14538 $as_echo "#define __ASM_FUNC(name) \"\"" >>confdefs.h
14540 asm_func_header="" ;;
14541 esac
14543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether asm() works outside of functions" >&5
14544 $as_echo_n "checking whether asm() works outside of functions... " >&6; }
14545 if ${ac_cv_c_asm_outside_funcs+:} false; then :
14546 $as_echo_n "(cached) " >&6
14547 else
14548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14549 /* end confdefs.h. */
14550 asm(".text\n\t.long 0");
14552 main ()
14556 return 0;
14558 _ACEOF
14559 if ac_fn_c_try_compile "$LINENO"; then :
14560 ac_cv_c_asm_outside_funcs="yes"
14561 else
14562 ac_cv_c_asm_outside_funcs="no"
14564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_asm_outside_funcs" >&5
14567 $as_echo "$ac_cv_c_asm_outside_funcs" >&6; }
14569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .previous is supported in assembly code" >&5
14570 $as_echo_n "checking whether .previous is supported in assembly code... " >&6; }
14571 if ${ac_cv_c_dot_previous+:} false; then :
14572 $as_echo_n "(cached) " >&6
14573 else
14574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14575 /* end confdefs.h. */
14578 main ()
14580 asm(".text\nac_test:\t.long 0\n\t.previous");
14582 return 0;
14584 _ACEOF
14585 if ac_fn_c_try_link "$LINENO"; then :
14586 ac_cv_c_dot_previous="yes"
14587 else
14588 ac_cv_c_dot_previous="no"
14590 rm -f core conftest.err conftest.$ac_objext \
14591 conftest$ac_exeext conftest.$ac_ext
14593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dot_previous" >&5
14594 $as_echo "$ac_cv_c_dot_previous" >&6; }
14596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CFI directives are supported in assembly code" >&5
14597 $as_echo_n "checking whether CFI directives are supported in assembly code... " >&6; }
14598 if ${ac_cv_c_cfi_support+:} false; then :
14599 $as_echo_n "(cached) " >&6
14600 else
14601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14602 /* end confdefs.h. */
14603 asm(".text\nac_test:\t.cfi_startproc\n\t.long 0\n\t.cfi_endproc");
14605 main ()
14609 return 0;
14611 _ACEOF
14612 if ac_fn_c_try_compile "$LINENO"; then :
14613 ac_cv_c_cfi_support="yes"
14614 else
14615 ac_cv_c_cfi_support="no"
14617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_cfi_support" >&5
14620 $as_echo "$ac_cv_c_cfi_support" >&6; }
14622 asm_func_header=".globl $asm_name_prefix\" #name suffix \"\\n\\t$asm_func_header\\n$asm_name_prefix\" #name suffix \":\\n\\t"
14623 asm_func_trailer=""
14624 if test "$ac_cv_c_dot_previous" = "yes"
14625 then
14626 asm_func_trailer="\\n\\t.previous"
14628 if test "$ac_cv_c_cfi_support" = "yes"
14629 then
14630 asm_func_header="$asm_func_header.cfi_startproc\\n\\t"
14631 asm_func_trailer="\\n\\t.cfi_endproc$asm_func_trailer"
14633 $as_echo "#define __ASM_CFI(str) str" >>confdefs.h
14635 UNWINDFLAGS=-fasynchronous-unwind-tables
14637 else
14638 $as_echo "#define __ASM_CFI(str) \"\"" >>confdefs.h
14642 asm_func_code="$asm_func_header\" code \"$asm_func_trailer"
14645 if test "$ac_cv_c_asm_outside_funcs" = "yes"
14646 then
14647 cat >>confdefs.h <<_ACEOF
14648 #define __ASM_DEFINE_FUNC(name,suffix,code) asm(".text\n\t.align 4\n\t$asm_func_code");
14649 _ACEOF
14651 else
14652 cat >>confdefs.h <<_ACEOF
14653 #define __ASM_DEFINE_FUNC(name,suffix,code) void __asm_dummy_##name(void) { asm(".text\n\t.align 4\n\t$asm_func_code"); }
14654 _ACEOF
14658 $as_echo "#define __ASM_GLOBAL_FUNC(name,code) __ASM_DEFINE_FUNC(name,\"\",code)" >>confdefs.h
14661 $as_echo "#define __ASM_STDCALL_FUNC(name,args,code) __ASM_DEFINE_FUNC(name,__ASM_STDCALL(args),code)" >>confdefs.h
14665 case $build_os in
14666 cygwin*|mingw32*) TOOLSEXT=".exe"
14668 esac
14670 case $host_os in
14671 linux*)
14672 case $host_cpu in
14673 *i[3456789]86*|x86_64*)
14674 test "$wine_binary" = wine || wine_fn_ignore_file "loader/wine-preloader"
14675 loader_programs="$loader_programs $wine_binary-preloader"
14676 as_fn_append LOADER_RULES "
14677 $wine_binary-preloader: preloader.o
14678 \$(CC) -o \$@ -static -nostartfiles -nodefaultlibs -Wl,-Ttext=0x7c400000 preloader.o \$(LIBPORT) \$(LDFLAGS)
14680 install install-lib:: $wine_binary-preloader
14681 \$(INSTALL_PROGRAM) $wine_binary-preloader \$(DESTDIR)\$(bindir)/$wine_binary-preloader
14683 uninstall::
14684 \$(RM) \$(DESTDIR)\$(bindir)/$wine_binary-preloader
14686 preloader_EXTRADEFS = $BUILTINFLAG
14687 " ;;
14688 esac
14690 esac
14691 as_fn_append LOADER_RULES "
14692 PROGRAMS = $loader_programs
14696 ac_save_CFLAGS="$CFLAGS"
14697 CFLAGS="$CFLAGS $BUILTINFLAG"
14698 for ac_func in \
14699 __res_get_state \
14700 __res_getservers \
14701 _finite \
14702 _isnan \
14703 _pclose \
14704 _popen \
14705 _snprintf \
14706 _spawnvp \
14707 _strdup \
14708 _stricmp \
14709 _strnicmp \
14710 _strtoi64 \
14711 _strtoui64 \
14712 _vsnprintf \
14713 asctime_r \
14714 chsize \
14715 dlopen \
14716 epoll_create \
14717 ffs \
14718 finitef \
14719 fnmatch \
14720 fork \
14721 fpclass \
14722 fstatfs \
14723 fstatvfs \
14724 ftruncate \
14725 futimens \
14726 futimes \
14727 futimesat \
14728 getattrlist \
14729 getdirentries \
14730 getopt_long_only \
14731 getpwuid \
14732 gettimeofday \
14733 getuid \
14734 if_nameindex \
14735 isnanf \
14736 kqueue \
14737 lstat \
14738 memmove \
14739 mmap \
14740 pclose \
14741 pipe2 \
14742 poll \
14743 popen \
14744 port_create \
14745 prctl \
14746 pread \
14747 proc_pidinfo \
14748 pwrite \
14749 readdir \
14750 readlink \
14751 sched_yield \
14752 select \
14753 setproctitle \
14754 setrlimit \
14755 settimeofday \
14756 sigaltstack \
14757 sigprocmask \
14758 snprintf \
14759 statfs \
14760 statvfs \
14761 strcasecmp \
14762 strdup \
14763 strerror \
14764 strncasecmp \
14765 strtold \
14766 strtoll \
14767 strtoull \
14768 symlink \
14769 tcdrain \
14770 thr_kill2 \
14771 timegm \
14772 usleep \
14773 vsnprintf
14775 do :
14776 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14777 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14778 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14779 cat >>confdefs.h <<_ACEOF
14780 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14781 _ACEOF
14784 done
14786 CFLAGS="$ac_save_CFLAGS"
14788 if test "$ac_cv_func_dlopen" = no
14789 then
14790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14791 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14792 if ${ac_cv_lib_dl_dlopen+:} false; then :
14793 $as_echo_n "(cached) " >&6
14794 else
14795 ac_check_lib_save_LIBS=$LIBS
14796 LIBS="-ldl $LIBS"
14797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14798 /* end confdefs.h. */
14800 /* Override any GCC internal prototype to avoid an error.
14801 Use char because int might match the return type of a GCC
14802 builtin and then its argument prototype would still apply. */
14803 #ifdef __cplusplus
14804 extern "C"
14805 #endif
14806 char dlopen ();
14808 main ()
14810 return dlopen ();
14812 return 0;
14814 _ACEOF
14815 if ac_fn_c_try_link "$LINENO"; then :
14816 ac_cv_lib_dl_dlopen=yes
14817 else
14818 ac_cv_lib_dl_dlopen=no
14820 rm -f core conftest.err conftest.$ac_objext \
14821 conftest$ac_exeext conftest.$ac_ext
14822 LIBS=$ac_check_lib_save_LIBS
14824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14825 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14826 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14827 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
14828 DL_LIBS="-ldl"
14833 ac_wine_check_funcs_save_LIBS="$LIBS"
14834 LIBS="$LIBS $DL_LIBS"
14835 for ac_func in dladdr
14836 do :
14837 ac_fn_c_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr"
14838 if test "x$ac_cv_func_dladdr" = xyes; then :
14839 cat >>confdefs.h <<_ACEOF
14840 #define HAVE_DLADDR 1
14841 _ACEOF
14844 done
14846 LIBS="$ac_wine_check_funcs_save_LIBS"
14848 if test "$ac_cv_func_poll" = no
14849 then
14850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for poll in -lpoll" >&5
14851 $as_echo_n "checking for poll in -lpoll... " >&6; }
14852 if ${ac_cv_lib_poll_poll+:} false; then :
14853 $as_echo_n "(cached) " >&6
14854 else
14855 ac_check_lib_save_LIBS=$LIBS
14856 LIBS="-lpoll $LIBS"
14857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14858 /* end confdefs.h. */
14860 /* Override any GCC internal prototype to avoid an error.
14861 Use char because int might match the return type of a GCC
14862 builtin and then its argument prototype would still apply. */
14863 #ifdef __cplusplus
14864 extern "C"
14865 #endif
14866 char poll ();
14868 main ()
14870 return poll ();
14872 return 0;
14874 _ACEOF
14875 if ac_fn_c_try_link "$LINENO"; then :
14876 ac_cv_lib_poll_poll=yes
14877 else
14878 ac_cv_lib_poll_poll=no
14880 rm -f core conftest.err conftest.$ac_objext \
14881 conftest$ac_exeext conftest.$ac_ext
14882 LIBS=$ac_check_lib_save_LIBS
14884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_poll_poll" >&5
14885 $as_echo "$ac_cv_lib_poll_poll" >&6; }
14886 if test "x$ac_cv_lib_poll_poll" = xyes; then :
14887 $as_echo "#define HAVE_POLL 1" >>confdefs.h
14888 POLL_LIBS="-lpoll"
14894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
14895 $as_echo_n "checking for library containing gethostbyname... " >&6; }
14896 if ${ac_cv_search_gethostbyname+:} false; then :
14897 $as_echo_n "(cached) " >&6
14898 else
14899 ac_func_search_save_LIBS=$LIBS
14900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14901 /* end confdefs.h. */
14903 /* Override any GCC internal prototype to avoid an error.
14904 Use char because int might match the return type of a GCC
14905 builtin and then its argument prototype would still apply. */
14906 #ifdef __cplusplus
14907 extern "C"
14908 #endif
14909 char gethostbyname ();
14911 main ()
14913 return gethostbyname ();
14915 return 0;
14917 _ACEOF
14918 for ac_lib in '' nsl; do
14919 if test -z "$ac_lib"; then
14920 ac_res="none required"
14921 else
14922 ac_res=-l$ac_lib
14923 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14925 if ac_fn_c_try_link "$LINENO"; then :
14926 ac_cv_search_gethostbyname=$ac_res
14928 rm -f core conftest.err conftest.$ac_objext \
14929 conftest$ac_exeext
14930 if ${ac_cv_search_gethostbyname+:} false; then :
14931 break
14933 done
14934 if ${ac_cv_search_gethostbyname+:} false; then :
14936 else
14937 ac_cv_search_gethostbyname=no
14939 rm conftest.$ac_ext
14940 LIBS=$ac_func_search_save_LIBS
14942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
14943 $as_echo "$ac_cv_search_gethostbyname" >&6; }
14944 ac_res=$ac_cv_search_gethostbyname
14945 if test "$ac_res" != no; then :
14946 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5
14952 $as_echo_n "checking for library containing connect... " >&6; }
14953 if ${ac_cv_search_connect+:} false; then :
14954 $as_echo_n "(cached) " >&6
14955 else
14956 ac_func_search_save_LIBS=$LIBS
14957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14958 /* end confdefs.h. */
14960 /* Override any GCC internal prototype to avoid an error.
14961 Use char because int might match the return type of a GCC
14962 builtin and then its argument prototype would still apply. */
14963 #ifdef __cplusplus
14964 extern "C"
14965 #endif
14966 char connect ();
14968 main ()
14970 return connect ();
14972 return 0;
14974 _ACEOF
14975 for ac_lib in '' socket; do
14976 if test -z "$ac_lib"; then
14977 ac_res="none required"
14978 else
14979 ac_res=-l$ac_lib
14980 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14982 if ac_fn_c_try_link "$LINENO"; then :
14983 ac_cv_search_connect=$ac_res
14985 rm -f core conftest.err conftest.$ac_objext \
14986 conftest$ac_exeext
14987 if ${ac_cv_search_connect+:} false; then :
14988 break
14990 done
14991 if ${ac_cv_search_connect+:} false; then :
14993 else
14994 ac_cv_search_connect=no
14996 rm conftest.$ac_ext
14997 LIBS=$ac_func_search_save_LIBS
14999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5
15000 $as_echo "$ac_cv_search_connect" >&6; }
15001 ac_res=$ac_cv_search_connect
15002 if test "$ac_res" != no; then :
15003 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
15009 $as_echo_n "checking for library containing inet_aton... " >&6; }
15010 if ${ac_cv_search_inet_aton+:} false; then :
15011 $as_echo_n "(cached) " >&6
15012 else
15013 ac_func_search_save_LIBS=$LIBS
15014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15015 /* end confdefs.h. */
15017 /* Override any GCC internal prototype to avoid an error.
15018 Use char because int might match the return type of a GCC
15019 builtin and then its argument prototype would still apply. */
15020 #ifdef __cplusplus
15021 extern "C"
15022 #endif
15023 char inet_aton ();
15025 main ()
15027 return inet_aton ();
15029 return 0;
15031 _ACEOF
15032 for ac_lib in '' resolv; do
15033 if test -z "$ac_lib"; then
15034 ac_res="none required"
15035 else
15036 ac_res=-l$ac_lib
15037 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15039 if ac_fn_c_try_link "$LINENO"; then :
15040 ac_cv_search_inet_aton=$ac_res
15042 rm -f core conftest.err conftest.$ac_objext \
15043 conftest$ac_exeext
15044 if ${ac_cv_search_inet_aton+:} false; then :
15045 break
15047 done
15048 if ${ac_cv_search_inet_aton+:} false; then :
15050 else
15051 ac_cv_search_inet_aton=no
15053 rm conftest.$ac_ext
15054 LIBS=$ac_func_search_save_LIBS
15056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
15057 $as_echo "$ac_cv_search_inet_aton" >&6; }
15058 ac_res=$ac_cv_search_inet_aton
15059 if test "$ac_res" != no; then :
15060 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15065 for ac_func in \
15066 getaddrinfo \
15067 getnameinfo \
15068 getnetbyname \
15069 getprotobyname \
15070 getprotobynumber \
15071 getservbyport \
15072 inet_addr \
15073 inet_network \
15074 inet_ntop \
15075 inet_pton \
15076 sendmsg \
15077 socketpair \
15079 do :
15080 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15081 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15082 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15083 cat >>confdefs.h <<_ACEOF
15084 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15085 _ACEOF
15088 done
15091 ac_save_LIBS=$LIBS
15092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
15093 $as_echo_n "checking for library containing clock_gettime... " >&6; }
15094 if ${ac_cv_search_clock_gettime+:} false; then :
15095 $as_echo_n "(cached) " >&6
15096 else
15097 ac_func_search_save_LIBS=$LIBS
15098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15099 /* end confdefs.h. */
15101 /* Override any GCC internal prototype to avoid an error.
15102 Use char because int might match the return type of a GCC
15103 builtin and then its argument prototype would still apply. */
15104 #ifdef __cplusplus
15105 extern "C"
15106 #endif
15107 char clock_gettime ();
15109 main ()
15111 return clock_gettime ();
15113 return 0;
15115 _ACEOF
15116 for ac_lib in '' rt; do
15117 if test -z "$ac_lib"; then
15118 ac_res="none required"
15119 else
15120 ac_res=-l$ac_lib
15121 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15123 if ac_fn_c_try_link "$LINENO"; then :
15124 ac_cv_search_clock_gettime=$ac_res
15126 rm -f core conftest.err conftest.$ac_objext \
15127 conftest$ac_exeext
15128 if ${ac_cv_search_clock_gettime+:} false; then :
15129 break
15131 done
15132 if ${ac_cv_search_clock_gettime+:} false; then :
15134 else
15135 ac_cv_search_clock_gettime=no
15137 rm conftest.$ac_ext
15138 LIBS=$ac_func_search_save_LIBS
15140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
15141 $as_echo "$ac_cv_search_clock_gettime" >&6; }
15142 ac_res=$ac_cv_search_clock_gettime
15143 if test "$ac_res" != no; then :
15144 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15146 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
15148 test "$ac_res" = "none required" || RT_LIBS="$ac_res"
15152 LIBS=$ac_save_LIBS
15154 LDAP_LIBS=""
15156 if test "$ac_cv_header_ldap_h" = "yes" -a "$ac_cv_header_lber_h" = "yes"
15157 then
15158 ac_fn_c_check_type "$LINENO" "LDAPSortKey" "ac_cv_type_LDAPSortKey" "#include <ldap.h>
15160 if test "x$ac_cv_type_LDAPSortKey" = xyes; then :
15161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap_r" >&5
15162 $as_echo_n "checking for ldap_initialize in -lldap_r... " >&6; }
15163 if ${ac_cv_lib_ldap_r_ldap_initialize+:} false; then :
15164 $as_echo_n "(cached) " >&6
15165 else
15166 ac_check_lib_save_LIBS=$LIBS
15167 LIBS="-lldap_r $PTHREAD_LIBS $LIBS"
15168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15169 /* end confdefs.h. */
15171 /* Override any GCC internal prototype to avoid an error.
15172 Use char because int might match the return type of a GCC
15173 builtin and then its argument prototype would still apply. */
15174 #ifdef __cplusplus
15175 extern "C"
15176 #endif
15177 char ldap_initialize ();
15179 main ()
15181 return ldap_initialize ();
15183 return 0;
15185 _ACEOF
15186 if ac_fn_c_try_link "$LINENO"; then :
15187 ac_cv_lib_ldap_r_ldap_initialize=yes
15188 else
15189 ac_cv_lib_ldap_r_ldap_initialize=no
15191 rm -f core conftest.err conftest.$ac_objext \
15192 conftest$ac_exeext conftest.$ac_ext
15193 LIBS=$ac_check_lib_save_LIBS
15195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_r_ldap_initialize" >&5
15196 $as_echo "$ac_cv_lib_ldap_r_ldap_initialize" >&6; }
15197 if test "x$ac_cv_lib_ldap_r_ldap_initialize" = xyes; then :
15198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_init in -llber" >&5
15199 $as_echo_n "checking for ber_init in -llber... " >&6; }
15200 if ${ac_cv_lib_lber_ber_init+:} false; then :
15201 $as_echo_n "(cached) " >&6
15202 else
15203 ac_check_lib_save_LIBS=$LIBS
15204 LIBS="-llber $PTHREAD_LIBS $LIBS"
15205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15206 /* end confdefs.h. */
15208 /* Override any GCC internal prototype to avoid an error.
15209 Use char because int might match the return type of a GCC
15210 builtin and then its argument prototype would still apply. */
15211 #ifdef __cplusplus
15212 extern "C"
15213 #endif
15214 char ber_init ();
15216 main ()
15218 return ber_init ();
15220 return 0;
15222 _ACEOF
15223 if ac_fn_c_try_link "$LINENO"; then :
15224 ac_cv_lib_lber_ber_init=yes
15225 else
15226 ac_cv_lib_lber_ber_init=no
15228 rm -f core conftest.err conftest.$ac_objext \
15229 conftest$ac_exeext conftest.$ac_ext
15230 LIBS=$ac_check_lib_save_LIBS
15232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_init" >&5
15233 $as_echo "$ac_cv_lib_lber_ber_init" >&6; }
15234 if test "x$ac_cv_lib_lber_ber_init" = xyes; then :
15236 $as_echo "#define HAVE_LDAP 1" >>confdefs.h
15238 LDAP_LIBS="-lldap_r -llber"
15245 ac_wine_check_funcs_save_LIBS="$LIBS"
15246 LIBS="$LIBS $LDAP_LIBS $PTHREAD_LIBS"
15247 for ac_func in \
15248 ldap_count_references \
15249 ldap_first_reference \
15250 ldap_next_reference \
15251 ldap_parse_reference \
15252 ldap_parse_sort_control \
15253 ldap_parse_sortresponse_control \
15254 ldap_parse_vlv_control \
15255 ldap_parse_vlvresponse_control
15256 do :
15257 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15258 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15259 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15260 cat >>confdefs.h <<_ACEOF
15261 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15262 _ACEOF
15265 done
15267 LIBS="$ac_wine_check_funcs_save_LIBS"
15269 if test "x$LDAP_LIBS" = "x"; then :
15270 case "x$with_ldap" in
15271 x) as_fn_append wine_notices "|libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported." ;;
15272 xno) ;;
15273 *) as_fn_error $? "libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported.
15274 This is an error since --with-ldap was requested." "$LINENO" 5 ;;
15275 esac
15278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir takes only one argument" >&5
15279 $as_echo_n "checking whether mkdir takes only one argument... " >&6; }
15280 if ${wine_cv_one_arg_mkdir+:} false; then :
15281 $as_echo_n "(cached) " >&6
15282 else
15283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15284 /* end confdefs.h. */
15285 #include <sys/stat.h>
15287 main ()
15289 mkdir("foo");
15291 return 0;
15293 _ACEOF
15294 if ac_fn_c_try_compile "$LINENO"; then :
15295 wine_cv_one_arg_mkdir=yes
15296 else
15297 wine_cv_one_arg_mkdir=no
15299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_one_arg_mkdir" >&5
15302 $as_echo "$wine_cv_one_arg_mkdir" >&6; }
15303 if test "$wine_cv_one_arg_mkdir" = "yes"
15304 then
15306 $as_echo "#define HAVE_ONE_ARG_MKDIR 1" >>confdefs.h
15310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_setaffinity" >&5
15311 $as_echo_n "checking for sched_setaffinity... " >&6; }
15312 if ${wine_cv_have_sched_setaffinity+:} false; then :
15313 $as_echo_n "(cached) " >&6
15314 else
15315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15316 /* end confdefs.h. */
15317 #define _GNU_SOURCE
15318 #include <sched.h>
15320 main ()
15322 sched_setaffinity(0, 0, 0);
15324 return 0;
15326 _ACEOF
15327 if ac_fn_c_try_link "$LINENO"; then :
15328 wine_cv_have_sched_setaffinity=yes
15329 else
15330 wine_cv_have_sched_setaffinity=no
15332 rm -f core conftest.err conftest.$ac_objext \
15333 conftest$ac_exeext conftest.$ac_ext
15335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sched_setaffinity" >&5
15336 $as_echo "$wine_cv_have_sched_setaffinity" >&6; }
15337 if test "$wine_cv_have_sched_setaffinity" = "yes"
15338 then
15340 $as_echo "#define HAVE_SCHED_SETAFFINITY 1" >>confdefs.h
15344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fallocate" >&5
15345 $as_echo_n "checking for fallocate... " >&6; }
15346 if ${wine_cv_have_fallocate+:} false; then :
15347 $as_echo_n "(cached) " >&6
15348 else
15349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15350 /* end confdefs.h. */
15351 #define _GNU_SOURCE
15352 #include <fcntl.h>
15354 main ()
15356 fallocate(-1, 0, 0, 0);
15358 return 0;
15360 _ACEOF
15361 if ac_fn_c_try_link "$LINENO"; then :
15362 wine_cv_have_fallocate=yes
15363 else
15364 wine_cv_have_fallocate=no
15366 rm -f core conftest.err conftest.$ac_objext \
15367 conftest$ac_exeext conftest.$ac_ext
15369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_fallocate" >&5
15370 $as_echo "$wine_cv_have_fallocate" >&6; }
15371 if test "$wine_cv_have_fallocate" = "yes"
15372 then
15374 $as_echo "#define HAVE_FALLOCATE 1" >>confdefs.h
15379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
15380 $as_echo_n "checking for inline... " >&6; }
15381 if ${ac_cv_c_inline+:} false; then :
15382 $as_echo_n "(cached) " >&6
15383 else
15384 ac_cv_c_inline=no
15385 for ac_kw in inline __inline__ __inline; do
15386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15387 /* end confdefs.h. */
15388 #ifndef __cplusplus
15389 typedef int foo_t;
15390 static $ac_kw foo_t static_foo () {return 0; }
15391 $ac_kw foo_t foo () {return 0; }
15392 #endif
15394 _ACEOF
15395 if ac_fn_c_try_compile "$LINENO"; then :
15396 ac_cv_c_inline=$ac_kw
15398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15399 test "$ac_cv_c_inline" != no && break
15400 done
15403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
15404 $as_echo "$ac_cv_c_inline" >&6; }
15406 case $ac_cv_c_inline in
15407 inline | yes) ;;
15409 case $ac_cv_c_inline in
15410 no) ac_val=;;
15411 *) ac_val=$ac_cv_c_inline;;
15412 esac
15413 cat >>confdefs.h <<_ACEOF
15414 #ifndef __cplusplus
15415 #define inline $ac_val
15416 #endif
15417 _ACEOF
15419 esac
15421 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
15422 if test "x$ac_cv_type_mode_t" = xyes; then :
15424 cat >>confdefs.h <<_ACEOF
15425 #define HAVE_MODE_T 1
15426 _ACEOF
15430 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
15431 if test "x$ac_cv_type_off_t" = xyes; then :
15433 cat >>confdefs.h <<_ACEOF
15434 #define HAVE_OFF_T 1
15435 _ACEOF
15439 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
15440 if test "x$ac_cv_type_pid_t" = xyes; then :
15442 cat >>confdefs.h <<_ACEOF
15443 #define HAVE_PID_T 1
15444 _ACEOF
15448 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15449 if test "x$ac_cv_type_size_t" = xyes; then :
15451 cat >>confdefs.h <<_ACEOF
15452 #define HAVE_SIZE_T 1
15453 _ACEOF
15457 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
15458 if test "x$ac_cv_type_ssize_t" = xyes; then :
15460 cat >>confdefs.h <<_ACEOF
15461 #define HAVE_SSIZE_T 1
15462 _ACEOF
15466 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
15467 if test "x$ac_cv_type_long_long" = xyes; then :
15469 cat >>confdefs.h <<_ACEOF
15470 #define HAVE_LONG_LONG 1
15471 _ACEOF
15475 ac_fn_c_check_type "$LINENO" "fsblkcnt_t" "ac_cv_type_fsblkcnt_t" "$ac_includes_default"
15476 if test "x$ac_cv_type_fsblkcnt_t" = xyes; then :
15478 cat >>confdefs.h <<_ACEOF
15479 #define HAVE_FSBLKCNT_T 1
15480 _ACEOF
15484 ac_fn_c_check_type "$LINENO" "fsfilcnt_t" "ac_cv_type_fsfilcnt_t" "$ac_includes_default"
15485 if test "x$ac_cv_type_fsfilcnt_t" = xyes; then :
15487 cat >>confdefs.h <<_ACEOF
15488 #define HAVE_FSFILCNT_T 1
15489 _ACEOF
15494 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "#include <sys/types.h>
15495 #include <signal.h>
15497 if test "x$ac_cv_type_sigset_t" = xyes; then :
15499 cat >>confdefs.h <<_ACEOF
15500 #define HAVE_SIGSET_T 1
15501 _ACEOF
15506 ac_fn_c_check_type "$LINENO" "request_sense" "ac_cv_type_request_sense" "#include <linux/cdrom.h>
15508 if test "x$ac_cv_type_request_sense" = xyes; then :
15510 cat >>confdefs.h <<_ACEOF
15511 #define HAVE_REQUEST_SENSE 1
15512 _ACEOF
15518 ac_fn_c_check_type "$LINENO" "struct xinpgen" "ac_cv_type_struct_xinpgen" "#include <sys/types.h>
15519 #ifdef HAVE_SYS_SOCKET_H
15520 #include <sys/socket.h>
15521 #endif
15522 #ifdef HAVE_SYS_SOCKETVAR_H
15523 #include <sys/socketvar.h>
15524 #endif
15525 #ifdef HAVE_NET_ROUTE_H
15526 #include <net/route.h>
15527 #endif
15528 #ifdef HAVE_NETINET_IN_H
15529 #include <netinet/in.h>
15530 #endif
15531 #ifdef HAVE_NETINET_IN_SYSTM_H
15532 #include <netinet/in_systm.h>
15533 #endif
15534 #ifdef HAVE_NETINET_IP_H
15535 #include <netinet/ip.h>
15536 #endif
15537 #ifdef HAVE_NETINET_IN_PCB_H
15538 #include <netinet/in_pcb.h>
15539 #endif
15541 if test "x$ac_cv_type_struct_xinpgen" = xyes; then :
15543 cat >>confdefs.h <<_ACEOF
15544 #define HAVE_STRUCT_XINPGEN 1
15545 _ACEOF
15551 ac_fn_c_check_type "$LINENO" "struct r_debug" "ac_cv_type_struct_r_debug" "#ifdef HAVE_LINK_H
15552 #include <link.h>
15553 #endif
15554 #ifdef HAVE_SYS_LINK_H
15555 #include <sys/link.h>
15556 #endif
15558 if test "x$ac_cv_type_struct_r_debug" = xyes; then :
15560 cat >>confdefs.h <<_ACEOF
15561 #define HAVE_STRUCT_R_DEBUG 1
15562 _ACEOF
15566 ac_fn_c_check_type "$LINENO" "struct link_map" "ac_cv_type_struct_link_map" "#ifdef HAVE_LINK_H
15567 #include <link.h>
15568 #endif
15569 #ifdef HAVE_SYS_LINK_H
15570 #include <sys/link.h>
15571 #endif
15573 if test "x$ac_cv_type_struct_link_map" = xyes; then :
15575 cat >>confdefs.h <<_ACEOF
15576 #define HAVE_STRUCT_LINK_MAP 1
15577 _ACEOF
15583 ac_fn_c_check_member "$LINENO" "struct ff_effect" "direction" "ac_cv_member_struct_ff_effect_direction" "#ifdef HAVE_LINUX_INPUT_H
15584 #include <linux/input.h>
15585 #endif
15587 if test "x$ac_cv_member_struct_ff_effect_direction" = xyes; then :
15589 cat >>confdefs.h <<_ACEOF
15590 #define HAVE_STRUCT_FF_EFFECT_DIRECTION 1
15591 _ACEOF
15597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigaddset" >&5
15598 $as_echo_n "checking for sigaddset... " >&6; }
15599 if ${wine_cv_have_sigaddset+:} false; then :
15600 $as_echo_n "(cached) " >&6
15601 else
15602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15603 /* end confdefs.h. */
15604 #include <signal.h>
15606 main ()
15608 sigset_t set; sigaddset(&set,SIGTERM);
15610 return 0;
15612 _ACEOF
15613 if ac_fn_c_try_link "$LINENO"; then :
15614 wine_cv_have_sigaddset=yes
15615 else
15616 wine_cv_have_sigaddset=no
15618 rm -f core conftest.err conftest.$ac_objext \
15619 conftest$ac_exeext conftest.$ac_ext
15621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sigaddset" >&5
15622 $as_echo "$wine_cv_have_sigaddset" >&6; }
15623 if test "$wine_cv_have_sigaddset" = "yes"
15624 then
15626 $as_echo "#define HAVE_SIGADDSET 1" >>confdefs.h
15631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
15632 $as_echo_n "checking whether we can use re-entrant gethostbyname_r Linux style... " >&6; }
15633 if ${wine_cv_linux_gethostbyname_r_6+:} false; then :
15634 $as_echo_n "(cached) " >&6
15635 else
15636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15637 /* end confdefs.h. */
15638 #include <netdb.h>
15640 main ()
15643 char *name=0;
15644 struct hostent he;
15645 struct hostent *result;
15646 char *buf=0;
15647 int bufsize=0;
15648 int errnr;
15649 char *addr=0;
15650 int addrlen=0;
15651 int addrtype=0;
15652 gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
15653 gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
15656 return 0;
15658 _ACEOF
15659 if ac_fn_c_try_link "$LINENO"; then :
15660 wine_cv_linux_gethostbyname_r_6=yes
15661 else
15662 wine_cv_linux_gethostbyname_r_6=no
15665 rm -f core conftest.err conftest.$ac_objext \
15666 conftest$ac_exeext conftest.$ac_ext
15669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_gethostbyname_r_6" >&5
15670 $as_echo "$wine_cv_linux_gethostbyname_r_6" >&6; }
15671 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
15672 then
15674 $as_echo "#define HAVE_LINUX_GETHOSTBYNAME_R_6 1" >>confdefs.h
15678 if test "$ac_cv_header_linux_joystick_h" = "yes"
15679 then
15680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
15681 $as_echo_n "checking whether linux/joystick.h uses the Linux 2.2+ API... " >&6; }
15682 if ${wine_cv_linux_joystick_22_api+:} false; then :
15683 $as_echo_n "(cached) " >&6
15684 else
15685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15686 /* end confdefs.h. */
15688 #include <sys/ioctl.h>
15689 #include <sys/types.h>
15690 #include <linux/joystick.h>
15692 struct js_event blub;
15693 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
15694 #error "no 2.2 header"
15695 #endif
15698 main ()
15700 /*empty*/
15702 return 0;
15704 _ACEOF
15705 if ac_fn_c_try_compile "$LINENO"; then :
15706 wine_cv_linux_joystick_22_api=yes
15707 else
15708 wine_cv_linux_joystick_22_api=no
15710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_joystick_22_api" >&5
15714 $as_echo "$wine_cv_linux_joystick_22_api" >&6; }
15715 if test "$wine_cv_linux_joystick_22_api" = "yes"
15716 then
15718 $as_echo "#define HAVE_LINUX_22_JOYSTICK_API 1" >>confdefs.h
15724 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bfree" "ac_cv_member_struct_statfs_f_bfree" "#include <sys/types.h>
15725 #ifdef HAVE_SYS_PARAM_H
15726 # include <sys/param.h>
15727 #endif
15728 #ifdef HAVE_SYS_MOUNT_H
15729 # include <sys/mount.h>
15730 #endif
15731 #ifdef HAVE_SYS_VFS_H
15732 # include <sys/vfs.h>
15733 #endif
15734 #ifdef HAVE_SYS_STATFS_H
15735 # include <sys/statfs.h>
15736 #endif
15738 if test "x$ac_cv_member_struct_statfs_f_bfree" = xyes; then :
15740 cat >>confdefs.h <<_ACEOF
15741 #define HAVE_STRUCT_STATFS_F_BFREE 1
15742 _ACEOF
15746 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bavail" "ac_cv_member_struct_statfs_f_bavail" "#include <sys/types.h>
15747 #ifdef HAVE_SYS_PARAM_H
15748 # include <sys/param.h>
15749 #endif
15750 #ifdef HAVE_SYS_MOUNT_H
15751 # include <sys/mount.h>
15752 #endif
15753 #ifdef HAVE_SYS_VFS_H
15754 # include <sys/vfs.h>
15755 #endif
15756 #ifdef HAVE_SYS_STATFS_H
15757 # include <sys/statfs.h>
15758 #endif
15760 if test "x$ac_cv_member_struct_statfs_f_bavail" = xyes; then :
15762 cat >>confdefs.h <<_ACEOF
15763 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
15764 _ACEOF
15768 ac_fn_c_check_member "$LINENO" "struct statfs" "f_frsize" "ac_cv_member_struct_statfs_f_frsize" "#include <sys/types.h>
15769 #ifdef HAVE_SYS_PARAM_H
15770 # include <sys/param.h>
15771 #endif
15772 #ifdef HAVE_SYS_MOUNT_H
15773 # include <sys/mount.h>
15774 #endif
15775 #ifdef HAVE_SYS_VFS_H
15776 # include <sys/vfs.h>
15777 #endif
15778 #ifdef HAVE_SYS_STATFS_H
15779 # include <sys/statfs.h>
15780 #endif
15782 if test "x$ac_cv_member_struct_statfs_f_frsize" = xyes; then :
15784 cat >>confdefs.h <<_ACEOF
15785 #define HAVE_STRUCT_STATFS_F_FRSIZE 1
15786 _ACEOF
15790 ac_fn_c_check_member "$LINENO" "struct statfs" "f_ffree" "ac_cv_member_struct_statfs_f_ffree" "#include <sys/types.h>
15791 #ifdef HAVE_SYS_PARAM_H
15792 # include <sys/param.h>
15793 #endif
15794 #ifdef HAVE_SYS_MOUNT_H
15795 # include <sys/mount.h>
15796 #endif
15797 #ifdef HAVE_SYS_VFS_H
15798 # include <sys/vfs.h>
15799 #endif
15800 #ifdef HAVE_SYS_STATFS_H
15801 # include <sys/statfs.h>
15802 #endif
15804 if test "x$ac_cv_member_struct_statfs_f_ffree" = xyes; then :
15806 cat >>confdefs.h <<_ACEOF
15807 #define HAVE_STRUCT_STATFS_F_FFREE 1
15808 _ACEOF
15812 ac_fn_c_check_member "$LINENO" "struct statfs" "f_favail" "ac_cv_member_struct_statfs_f_favail" "#include <sys/types.h>
15813 #ifdef HAVE_SYS_PARAM_H
15814 # include <sys/param.h>
15815 #endif
15816 #ifdef HAVE_SYS_MOUNT_H
15817 # include <sys/mount.h>
15818 #endif
15819 #ifdef HAVE_SYS_VFS_H
15820 # include <sys/vfs.h>
15821 #endif
15822 #ifdef HAVE_SYS_STATFS_H
15823 # include <sys/statfs.h>
15824 #endif
15826 if test "x$ac_cv_member_struct_statfs_f_favail" = xyes; then :
15828 cat >>confdefs.h <<_ACEOF
15829 #define HAVE_STRUCT_STATFS_F_FAVAIL 1
15830 _ACEOF
15834 ac_fn_c_check_member "$LINENO" "struct statfs" "f_namelen" "ac_cv_member_struct_statfs_f_namelen" "#include <sys/types.h>
15835 #ifdef HAVE_SYS_PARAM_H
15836 # include <sys/param.h>
15837 #endif
15838 #ifdef HAVE_SYS_MOUNT_H
15839 # include <sys/mount.h>
15840 #endif
15841 #ifdef HAVE_SYS_VFS_H
15842 # include <sys/vfs.h>
15843 #endif
15844 #ifdef HAVE_SYS_STATFS_H
15845 # include <sys/statfs.h>
15846 #endif
15848 if test "x$ac_cv_member_struct_statfs_f_namelen" = xyes; then :
15850 cat >>confdefs.h <<_ACEOF
15851 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
15852 _ACEOF
15858 ac_fn_c_check_member "$LINENO" "struct statvfs" "f_blocks" "ac_cv_member_struct_statvfs_f_blocks" "#ifdef HAVE_SYS_STATVFS_H
15859 #include <sys/statvfs.h>
15860 #endif
15862 if test "x$ac_cv_member_struct_statvfs_f_blocks" = xyes; then :
15864 cat >>confdefs.h <<_ACEOF
15865 #define HAVE_STRUCT_STATVFS_F_BLOCKS 1
15866 _ACEOF
15872 ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#ifdef HAVE_DIRENT_H
15873 #include <dirent.h>
15874 #endif
15876 if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then :
15878 cat >>confdefs.h <<_ACEOF
15879 #define HAVE_STRUCT_DIRENT_D_RECLEN 1
15880 _ACEOF
15886 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_accrights" "ac_cv_member_struct_msghdr_msg_accrights" "#include <sys/types.h>
15887 #ifdef HAVE_SYS_SOCKET_H
15888 # include <sys/socket.h>
15889 #endif
15890 #ifdef HAVE_SYS_UN_H
15891 # include <sys/un.h>
15892 #endif
15894 if test "x$ac_cv_member_struct_msghdr_msg_accrights" = xyes; then :
15896 cat >>confdefs.h <<_ACEOF
15897 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
15898 _ACEOF
15902 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
15903 #ifdef HAVE_SYS_SOCKET_H
15904 # include <sys/socket.h>
15905 #endif
15906 #ifdef HAVE_SYS_UN_H
15907 # include <sys/un.h>
15908 #endif
15910 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
15912 cat >>confdefs.h <<_ACEOF
15913 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
15914 _ACEOF
15918 ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" "#include <sys/types.h>
15919 #ifdef HAVE_SYS_SOCKET_H
15920 # include <sys/socket.h>
15921 #endif
15922 #ifdef HAVE_SYS_UN_H
15923 # include <sys/un.h>
15924 #endif
15926 if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes; then :
15928 cat >>confdefs.h <<_ACEOF
15929 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
15930 _ACEOF
15936 ac_fn_c_check_member "$LINENO" "scsireq_t" "cmd" "ac_cv_member_scsireq_t_cmd" "#include <sys/types.h>
15937 #ifdef HAVE_SCSI_SG_H
15938 #include <scsi/sg.h>
15939 #endif
15941 if test "x$ac_cv_member_scsireq_t_cmd" = xyes; then :
15943 cat >>confdefs.h <<_ACEOF
15944 #define HAVE_SCSIREQ_T_CMD 1
15945 _ACEOF
15949 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>
15950 #ifdef HAVE_SCSI_SG_H
15951 #include <scsi/sg.h>
15952 #endif
15954 if test "x$ac_cv_member_sg_io_hdr_t_interface_id" = xyes; then :
15956 cat >>confdefs.h <<_ACEOF
15957 #define HAVE_SG_IO_HDR_T_INTERFACE_ID 1
15958 _ACEOF
15964 ac_fn_c_check_member "$LINENO" "siginfo_t" "si_fd" "ac_cv_member_siginfo_t_si_fd" "#include <signal.h>
15966 if test "x$ac_cv_member_siginfo_t_si_fd" = xyes; then :
15968 cat >>confdefs.h <<_ACEOF
15969 #define HAVE_SIGINFO_T_SI_FD 1
15970 _ACEOF
15976 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blksiz" "ac_cv_member_struct_mtget_mt_blksiz" "#include <sys/types.h>
15977 #ifdef HAVE_SYS_MTIO_H
15978 #include <sys/mtio.h>
15979 #endif
15981 if test "x$ac_cv_member_struct_mtget_mt_blksiz" = xyes; then :
15983 cat >>confdefs.h <<_ACEOF
15984 #define HAVE_STRUCT_MTGET_MT_BLKSIZ 1
15985 _ACEOF
15989 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_gstat" "ac_cv_member_struct_mtget_mt_gstat" "#include <sys/types.h>
15990 #ifdef HAVE_SYS_MTIO_H
15991 #include <sys/mtio.h>
15992 #endif
15994 if test "x$ac_cv_member_struct_mtget_mt_gstat" = xyes; then :
15996 cat >>confdefs.h <<_ACEOF
15997 #define HAVE_STRUCT_MTGET_MT_GSTAT 1
15998 _ACEOF
16002 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blkno" "ac_cv_member_struct_mtget_mt_blkno" "#include <sys/types.h>
16003 #ifdef HAVE_SYS_MTIO_H
16004 #include <sys/mtio.h>
16005 #endif
16007 if test "x$ac_cv_member_struct_mtget_mt_blkno" = xyes; then :
16009 cat >>confdefs.h <<_ACEOF
16010 #define HAVE_STRUCT_MTGET_MT_BLKNO 1
16011 _ACEOF
16017 ac_fn_c_check_member "$LINENO" "struct option" "name" "ac_cv_member_struct_option_name" "#ifdef HAVE_GETOPT_H
16018 #include <getopt.h>
16019 #endif
16021 if test "x$ac_cv_member_struct_option_name" = xyes; then :
16023 cat >>confdefs.h <<_ACEOF
16024 #define HAVE_STRUCT_OPTION_NAME 1
16025 _ACEOF
16031 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
16032 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
16034 cat >>confdefs.h <<_ACEOF
16035 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
16036 _ACEOF
16040 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
16041 if test "x$ac_cv_member_struct_stat_st_mtim" = xyes; then :
16043 cat >>confdefs.h <<_ACEOF
16044 #define HAVE_STRUCT_STAT_ST_MTIM 1
16045 _ACEOF
16049 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimespec" "ac_cv_member_struct_stat_st_mtimespec" "$ac_includes_default"
16050 if test "x$ac_cv_member_struct_stat_st_mtimespec" = xyes; then :
16052 cat >>confdefs.h <<_ACEOF
16053 #define HAVE_STRUCT_STAT_ST_MTIMESPEC 1
16054 _ACEOF
16058 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctim" "ac_cv_member_struct_stat_st_ctim" "$ac_includes_default"
16059 if test "x$ac_cv_member_struct_stat_st_ctim" = xyes; then :
16061 cat >>confdefs.h <<_ACEOF
16062 #define HAVE_STRUCT_STAT_ST_CTIM 1
16063 _ACEOF
16067 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctimespec" "ac_cv_member_struct_stat_st_ctimespec" "$ac_includes_default"
16068 if test "x$ac_cv_member_struct_stat_st_ctimespec" = xyes; then :
16070 cat >>confdefs.h <<_ACEOF
16071 #define HAVE_STRUCT_STAT_ST_CTIMESPEC 1
16072 _ACEOF
16076 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
16077 if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
16079 cat >>confdefs.h <<_ACEOF
16080 #define HAVE_STRUCT_STAT_ST_ATIM 1
16081 _ACEOF
16085 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimespec" "ac_cv_member_struct_stat_st_atimespec" "$ac_includes_default"
16086 if test "x$ac_cv_member_struct_stat_st_atimespec" = xyes; then :
16088 cat >>confdefs.h <<_ACEOF
16089 #define HAVE_STRUCT_STAT_ST_ATIMESPEC 1
16090 _ACEOF
16094 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtime" "ac_cv_member_struct_stat_st_birthtime" "$ac_includes_default"
16095 if test "x$ac_cv_member_struct_stat_st_birthtime" = xyes; then :
16097 cat >>confdefs.h <<_ACEOF
16098 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
16099 _ACEOF
16103 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtim" "ac_cv_member_struct_stat_st_birthtim" "$ac_includes_default"
16104 if test "x$ac_cv_member_struct_stat_st_birthtim" = xyes; then :
16106 cat >>confdefs.h <<_ACEOF
16107 #define HAVE_STRUCT_STAT_ST_BIRTHTIM 1
16108 _ACEOF
16112 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimespec" "ac_cv_member_struct_stat_st_birthtimespec" "$ac_includes_default"
16113 if test "x$ac_cv_member_struct_stat_st_birthtimespec" = xyes; then :
16115 cat >>confdefs.h <<_ACEOF
16116 #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC 1
16117 _ACEOF
16121 ac_fn_c_check_member "$LINENO" "struct stat" "__st_birthtime" "ac_cv_member_struct_stat___st_birthtime" "$ac_includes_default"
16122 if test "x$ac_cv_member_struct_stat___st_birthtime" = xyes; then :
16124 cat >>confdefs.h <<_ACEOF
16125 #define HAVE_STRUCT_STAT___ST_BIRTHTIME 1
16126 _ACEOF
16130 ac_fn_c_check_member "$LINENO" "struct stat" "__st_birthtim" "ac_cv_member_struct_stat___st_birthtim" "$ac_includes_default"
16131 if test "x$ac_cv_member_struct_stat___st_birthtim" = xyes; then :
16133 cat >>confdefs.h <<_ACEOF
16134 #define HAVE_STRUCT_STAT___ST_BIRTHTIM 1
16135 _ACEOF
16141 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
16142 #include <sys/types.h>
16143 #endif
16144 #ifdef HAVE_NETINET_IN_H
16145 #include <netinet/in.h>
16146 #endif
16148 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = xyes; then :
16150 cat >>confdefs.h <<_ACEOF
16151 #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
16152 _ACEOF
16158 ac_fn_c_check_type "$LINENO" "struct __res_state" "ac_cv_type_struct___res_state" "#ifdef HAVE_RESOLV_H
16159 #include <resolv.h>
16160 #endif
16162 if test "x$ac_cv_type_struct___res_state" = xyes; then :
16164 cat >>confdefs.h <<_ACEOF
16165 #define HAVE_STRUCT___RES_STATE 1
16166 _ACEOF
16172 ac_fn_c_check_member "$LINENO" "struct __res_state" "_u._ext.nscount6" "ac_cv_member_struct___res_state__u__ext_nscount6" "#ifdef HAVE_RESOLV_H
16173 #include <resolv.h>
16174 #endif
16176 if test "x$ac_cv_member_struct___res_state__u__ext_nscount6" = xyes; then :
16178 cat >>confdefs.h <<_ACEOF
16179 #define HAVE_STRUCT___RES_STATE__U__EXT_NSCOUNT6 1
16180 _ACEOF
16186 ac_fn_c_check_member "$LINENO" "ns_msg" "_msg_ptr" "ac_cv_member_ns_msg__msg_ptr" "#ifdef HAVE_SYS_TYPES_H
16187 #include <sys/types.h>
16188 #endif
16189 #ifdef HAVE_NETINET_IN_H
16190 # include <netinet/in.h>
16191 #endif
16192 #ifdef HAVE_ARPA_NAMESER_H
16193 # include <arpa/nameser.h>
16194 #endif
16196 if test "x$ac_cv_member_ns_msg__msg_ptr" = xyes; then :
16198 cat >>confdefs.h <<_ACEOF
16199 #define HAVE_NS_MSG__MSG_PTR 1
16200 _ACEOF
16206 ac_fn_c_check_member "$LINENO" "struct icmpstat" "icps_inhist" "ac_cv_member_struct_icmpstat_icps_inhist" "#ifdef HAVE_SYS_TYPES_H
16207 #include <sys/types.h>
16208 #endif
16209 #ifdef HAVE_NETINET_IP_H
16210 #include <netinet/ip.h>
16211 #endif
16212 #ifdef HAVE_NETINET_IP_ICMP_H
16213 #include <netinet/ip_icmp.h>
16214 #endif
16215 #ifdef HAVE_NETINET_ICMP_VAR_H
16216 #include <netinet/icmp_var.h>
16217 #endif
16219 if test "x$ac_cv_member_struct_icmpstat_icps_inhist" = xyes; then :
16221 cat >>confdefs.h <<_ACEOF
16222 #define HAVE_STRUCT_ICMPSTAT_ICPS_INHIST 1
16223 _ACEOF
16229 ac_fn_c_check_member "$LINENO" "struct icmpstat" "icps_outhist" "ac_cv_member_struct_icmpstat_icps_outhist" "#ifdef HAVE_SYS_TYPES_H
16230 #include <sys/types.h>
16231 #endif
16232 #ifdef HAVE_ALIAS_H
16233 #include <alias.h>
16234 #endif
16235 #ifdef HAVE_SYS_SOCKET_H
16236 #include <sys/socket.h>
16237 #endif
16238 #ifdef HAVE_SYS_SOCKETVAR_H
16239 #include <sys/socketvar.h>
16240 #endif
16241 #ifdef HAVE_SYS_TIMEOUT_H
16242 #include <sys/timeout.h>
16243 #endif
16244 #ifdef HAVE_NETINET_IN_H
16245 #include <netinet/in.h>
16246 #endif
16247 #ifdef HAVE_NETINET_IN_SYSTM_H
16248 #include <netinet/in_systm.h>
16249 #endif
16250 #ifdef HAVE_NETINET_IP_H
16251 #include <netinet/ip.h>
16252 #endif
16253 #ifdef HAVE_NETINET_IP_VAR_H
16254 #include <netinet/ip_var.h>
16255 #endif
16256 #ifdef HAVE_NETINET_IP_ICMP_H
16257 #include <netinet/ip_icmp.h>
16258 #endif
16259 #ifdef HAVE_NETINET_ICMP_VAR_H
16260 #include <netinet/icmp_var.h>
16261 #endif
16263 if test "x$ac_cv_member_struct_icmpstat_icps_outhist" = xyes; then :
16265 cat >>confdefs.h <<_ACEOF
16266 #define HAVE_STRUCT_ICMPSTAT_ICPS_OUTHIST 1
16267 _ACEOF
16273 ac_fn_c_check_member "$LINENO" "struct ipstat" "ips_total" "ac_cv_member_struct_ipstat_ips_total" "#ifdef HAVE_SYS_TYPES_H
16274 #include <sys/types.h>
16275 #endif
16276 #ifdef HAVE_SYS_SOCKETVAR_H
16277 #include <sys/socketvar.h>
16278 #endif
16279 #ifdef HAVE_NETINET_IN_H
16280 #include <netinet/in.h>
16281 #endif
16282 #ifdef HAVE_NETINET_IP_VAR_H
16283 #include <netinet/ip_var.h>
16284 #endif
16286 if test "x$ac_cv_member_struct_ipstat_ips_total" = xyes; then :
16288 cat >>confdefs.h <<_ACEOF
16289 #define HAVE_STRUCT_IPSTAT_IPS_TOTAL 1
16290 _ACEOF
16296 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
16297 #include <netinet/ip_var.h>
16298 #endif
16300 if test "x$ac_cv_member_struct_ip_stats_ips_total" = xyes; then :
16302 cat >>confdefs.h <<_ACEOF
16303 #define HAVE_STRUCT_IP_STATS_IPS_TOTAL 1
16304 _ACEOF
16310 ac_fn_c_check_member "$LINENO" "struct tcpstat" "tcps_connattempt" "ac_cv_member_struct_tcpstat_tcps_connattempt" "#ifdef HAVE_SYS_TYPES_H
16311 #include <sys/types.h>
16312 #endif
16313 #ifdef HAVE_SYS_SOCKETVAR_H
16314 #include <sys/socketvar.h>
16315 #endif
16316 #ifdef HAVE_NETINET_IN_H
16317 #include <netinet/in.h>
16318 #endif
16319 #ifdef HAVE_NETINET_TCP_H
16320 #include <netinet/tcp.h>
16321 #endif
16322 #ifdef HAVE_NETINET_TCP_VAR_H
16323 #include <netinet/tcp_var.h>
16324 #endif
16326 if test "x$ac_cv_member_struct_tcpstat_tcps_connattempt" = xyes; then :
16328 cat >>confdefs.h <<_ACEOF
16329 #define HAVE_STRUCT_TCPSTAT_TCPS_CONNATTEMPT 1
16330 _ACEOF
16336 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
16337 #include <netinet/tcp_var.h>
16338 #endif
16340 if test "x$ac_cv_member_struct_tcp_stats_tcps_connattempt" = xyes; then :
16342 cat >>confdefs.h <<_ACEOF
16343 #define HAVE_STRUCT_TCP_STATS_TCPS_CONNATTEMPT 1
16344 _ACEOF
16350 ac_fn_c_check_member "$LINENO" "struct udpstat" "udps_ipackets" "ac_cv_member_struct_udpstat_udps_ipackets" "#ifdef HAVE_SYS_TYPES_H
16351 #include <sys/types.h>
16352 #endif
16353 #ifdef HAVE_NETINET_IN_H
16354 #include <netinet/in.h>
16355 #endif
16356 #ifdef HAVE_NETINET_IP_VAR_H
16357 #include <netinet/ip_var.h>
16358 #endif
16359 #ifdef HAVE_NETINET_UDP_H
16360 #include <netinet/udp.h>
16361 #endif
16362 #ifdef HAVE_NETINET_UDP_VAR_H
16363 #include <netinet/udp_var.h>
16364 #endif
16366 if test "x$ac_cv_member_struct_udpstat_udps_ipackets" = xyes; then :
16368 cat >>confdefs.h <<_ACEOF
16369 #define HAVE_STRUCT_UDPSTAT_UDPS_IPACKETS 1
16370 _ACEOF
16376 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "#ifdef HAVE_SYS_TYPES_H
16377 #include <sys/types.h>
16378 #endif
16379 #ifdef HAVE_NET_IF_H
16380 # include <net/if.h>
16381 #endif
16383 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = xyes; then :
16385 cat >>confdefs.h <<_ACEOF
16386 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
16387 _ACEOF
16393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone variable" >&5
16394 $as_echo_n "checking for timezone variable... " >&6; }
16395 if ${ac_cv_have_timezone+:} false; then :
16396 $as_echo_n "(cached) " >&6
16397 else
16398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16399 /* end confdefs.h. */
16400 #include <time.h>
16402 main ()
16404 timezone = 1
16406 return 0;
16408 _ACEOF
16409 if ac_fn_c_try_link "$LINENO"; then :
16410 ac_cv_have_timezone="yes"
16411 else
16412 ac_cv_have_timezone="no"
16414 rm -f core conftest.err conftest.$ac_objext \
16415 conftest$ac_exeext conftest.$ac_ext
16417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_timezone" >&5
16418 $as_echo "$ac_cv_have_timezone" >&6; }
16419 if test "$ac_cv_have_timezone" = "yes"
16420 then
16422 $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
16425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daylight variable" >&5
16426 $as_echo_n "checking for daylight variable... " >&6; }
16427 if ${ac_cv_have_daylight+:} false; then :
16428 $as_echo_n "(cached) " >&6
16429 else
16430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16431 /* end confdefs.h. */
16432 #include <time.h>
16434 main ()
16436 daylight = 1
16438 return 0;
16440 _ACEOF
16441 if ac_fn_c_try_link "$LINENO"; then :
16442 ac_cv_have_daylight="yes"
16443 else
16444 ac_cv_have_daylight="no"
16446 rm -f core conftest.err conftest.$ac_objext \
16447 conftest$ac_exeext conftest.$ac_ext
16449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_daylight" >&5
16450 $as_echo "$ac_cv_have_daylight" >&6; }
16451 if test "$ac_cv_have_daylight" = "yes"
16452 then
16454 $as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h
16458 ac_save_LIBS="$LIBS"
16459 LIBS="$LIBS -lm"
16460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isfinite" >&5
16461 $as_echo_n "checking for isfinite... " >&6; }
16462 if ${ac_cv_have_isfinite+:} false; then :
16463 $as_echo_n "(cached) " >&6
16464 else
16465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16466 /* end confdefs.h. */
16467 #define _GNU_SOURCE
16468 #include <math.h>
16470 main ()
16472 float f = 0.0; return isfinite(f)
16474 return 0;
16476 _ACEOF
16477 if ac_fn_c_try_link "$LINENO"; then :
16478 ac_cv_have_isfinite="yes"
16479 else
16480 ac_cv_have_isfinite="no"
16482 rm -f core conftest.err conftest.$ac_objext \
16483 conftest$ac_exeext conftest.$ac_ext
16485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isfinite" >&5
16486 $as_echo "$ac_cv_have_isfinite" >&6; }
16487 if test "$ac_cv_have_isfinite" = "yes"
16488 then
16490 $as_echo "#define HAVE_ISFINITE 1" >>confdefs.h
16494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf" >&5
16495 $as_echo_n "checking for isinf... " >&6; }
16496 if ${ac_cv_have_isinf+:} false; then :
16497 $as_echo_n "(cached) " >&6
16498 else
16499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16500 /* end confdefs.h. */
16501 #include <math.h>
16503 main ()
16505 float f = 0.0; return isinf(f)
16507 return 0;
16509 _ACEOF
16510 if ac_fn_c_try_link "$LINENO"; then :
16511 ac_cv_have_isinf="yes"
16512 else
16513 ac_cv_have_isinf="no"
16515 rm -f core conftest.err conftest.$ac_objext \
16516 conftest$ac_exeext conftest.$ac_ext
16518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isinf" >&5
16519 $as_echo "$ac_cv_have_isinf" >&6; }
16520 if test "$ac_cv_have_isinf" = "yes"
16521 then
16523 $as_echo "#define HAVE_ISINF 1" >>confdefs.h
16527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan" >&5
16528 $as_echo_n "checking for isnan... " >&6; }
16529 if ${ac_cv_have_isnan+:} false; then :
16530 $as_echo_n "(cached) " >&6
16531 else
16532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16533 /* end confdefs.h. */
16534 #include <math.h>
16536 main ()
16538 float f = 0.0; return isnan(f)
16540 return 0;
16542 _ACEOF
16543 if ac_fn_c_try_link "$LINENO"; then :
16544 ac_cv_have_isnan="yes"
16545 else
16546 ac_cv_have_isnan="no"
16548 rm -f core conftest.err conftest.$ac_objext \
16549 conftest$ac_exeext conftest.$ac_ext
16551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isnan" >&5
16552 $as_echo "$ac_cv_have_isnan" >&6; }
16553 if test "$ac_cv_have_isnan" = "yes"
16554 then
16556 $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
16560 for ac_func in \
16561 cbrt \
16562 cbrtf \
16563 exp2 \
16564 exp2f \
16565 llrint \
16566 llrintf \
16567 llround \
16568 llroundf \
16569 log2 \
16570 log2f \
16571 lrint \
16572 lrintf \
16573 lround \
16574 lroundf \
16575 rint \
16576 rintf \
16577 round \
16578 roundf \
16579 trunc \
16580 truncf
16582 do :
16583 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16584 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16585 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16586 cat >>confdefs.h <<_ACEOF
16587 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16588 _ACEOF
16591 done
16593 LIBS="$ac_save_LIBS"
16595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_clz" >&5
16596 $as_echo_n "checking for __builtin_clz... " >&6; }
16597 if ${ac_cv_have___builtin_clz+:} false; then :
16598 $as_echo_n "(cached) " >&6
16599 else
16600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16601 /* end confdefs.h. */
16604 main ()
16606 return __builtin_clz(1)
16608 return 0;
16610 _ACEOF
16611 if ac_fn_c_try_link "$LINENO"; then :
16612 ac_cv_have___builtin_clz="yes"
16613 else
16614 ac_cv_have___builtin_clz="no"
16616 rm -f core conftest.err conftest.$ac_objext \
16617 conftest$ac_exeext conftest.$ac_ext
16619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___builtin_clz" >&5
16620 $as_echo "$ac_cv_have___builtin_clz" >&6; }
16621 if test "$ac_cv_have___builtin_clz" = "yes"
16622 then
16624 $as_echo "#define HAVE___BUILTIN_CLZ 1" >>confdefs.h
16629 case $host_cpu in
16630 *i[3456789]86*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __i386__" >&5
16631 $as_echo_n "checking whether we need to define __i386__... " >&6; }
16632 if ${ac_cv_cpp_def___i386__+:} false; then :
16633 $as_echo_n "(cached) " >&6
16634 else
16635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16636 /* end confdefs.h. */
16637 #ifndef __i386__
16639 #endif
16640 _ACEOF
16641 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16642 $EGREP "yes" >/dev/null 2>&1; then :
16643 ac_cv_cpp_def___i386__=yes
16644 else
16645 ac_cv_cpp_def___i386__=no
16647 rm -f conftest*
16650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___i386__" >&5
16651 $as_echo "$ac_cv_cpp_def___i386__" >&6; }
16652 if test "x$ac_cv_cpp_def___i386__" = xyes; then :
16653 CFLAGS="$CFLAGS -D__i386__"
16654 LINTFLAGS="$LINTFLAGS -D__i386__"
16655 fi ;;
16656 *x86_64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __x86_64__" >&5
16657 $as_echo_n "checking whether we need to define __x86_64__... " >&6; }
16658 if ${ac_cv_cpp_def___x86_64__+:} false; then :
16659 $as_echo_n "(cached) " >&6
16660 else
16661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16662 /* end confdefs.h. */
16663 #ifndef __x86_64__
16665 #endif
16666 _ACEOF
16667 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16668 $EGREP "yes" >/dev/null 2>&1; then :
16669 ac_cv_cpp_def___x86_64__=yes
16670 else
16671 ac_cv_cpp_def___x86_64__=no
16673 rm -f conftest*
16676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___x86_64__" >&5
16677 $as_echo "$ac_cv_cpp_def___x86_64__" >&6; }
16678 if test "x$ac_cv_cpp_def___x86_64__" = xyes; then :
16679 CFLAGS="$CFLAGS -D__x86_64__"
16680 LINTFLAGS="$LINTFLAGS -D__x86_64__"
16681 fi ;;
16682 *sparc64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sparc64__" >&5
16683 $as_echo_n "checking whether we need to define __sparc64__... " >&6; }
16684 if ${ac_cv_cpp_def___sparc64__+:} false; then :
16685 $as_echo_n "(cached) " >&6
16686 else
16687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16688 /* end confdefs.h. */
16689 #ifndef __sparc64__
16691 #endif
16692 _ACEOF
16693 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16694 $EGREP "yes" >/dev/null 2>&1; then :
16695 ac_cv_cpp_def___sparc64__=yes
16696 else
16697 ac_cv_cpp_def___sparc64__=no
16699 rm -f conftest*
16702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sparc64__" >&5
16703 $as_echo "$ac_cv_cpp_def___sparc64__" >&6; }
16704 if test "x$ac_cv_cpp_def___sparc64__" = xyes; then :
16705 CFLAGS="$CFLAGS -D__sparc64__"
16706 LINTFLAGS="$LINTFLAGS -D__sparc64__"
16707 fi ;;
16708 *sparc*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sparc__" >&5
16709 $as_echo_n "checking whether we need to define __sparc__... " >&6; }
16710 if ${ac_cv_cpp_def___sparc__+:} false; then :
16711 $as_echo_n "(cached) " >&6
16712 else
16713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16714 /* end confdefs.h. */
16715 #ifndef __sparc__
16717 #endif
16718 _ACEOF
16719 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16720 $EGREP "yes" >/dev/null 2>&1; then :
16721 ac_cv_cpp_def___sparc__=yes
16722 else
16723 ac_cv_cpp_def___sparc__=no
16725 rm -f conftest*
16728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sparc__" >&5
16729 $as_echo "$ac_cv_cpp_def___sparc__" >&6; }
16730 if test "x$ac_cv_cpp_def___sparc__" = xyes; then :
16731 CFLAGS="$CFLAGS -D__sparc__"
16732 LINTFLAGS="$LINTFLAGS -D__sparc__"
16733 fi ;;
16734 *powerpc64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __powerpc64__" >&5
16735 $as_echo_n "checking whether we need to define __powerpc64__... " >&6; }
16736 if ${ac_cv_cpp_def___powerpc64__+:} false; then :
16737 $as_echo_n "(cached) " >&6
16738 else
16739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16740 /* end confdefs.h. */
16741 #ifndef __powerpc64__
16743 #endif
16744 _ACEOF
16745 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16746 $EGREP "yes" >/dev/null 2>&1; then :
16747 ac_cv_cpp_def___powerpc64__=yes
16748 else
16749 ac_cv_cpp_def___powerpc64__=no
16751 rm -f conftest*
16754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___powerpc64__" >&5
16755 $as_echo "$ac_cv_cpp_def___powerpc64__" >&6; }
16756 if test "x$ac_cv_cpp_def___powerpc64__" = xyes; then :
16757 CFLAGS="$CFLAGS -D__powerpc64__"
16758 LINTFLAGS="$LINTFLAGS -D__powerpc64__"
16759 fi ;;
16760 *powerpc*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __powerpc__" >&5
16761 $as_echo_n "checking whether we need to define __powerpc__... " >&6; }
16762 if ${ac_cv_cpp_def___powerpc__+:} false; then :
16763 $as_echo_n "(cached) " >&6
16764 else
16765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16766 /* end confdefs.h. */
16767 #ifndef __powerpc__
16769 #endif
16770 _ACEOF
16771 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16772 $EGREP "yes" >/dev/null 2>&1; then :
16773 ac_cv_cpp_def___powerpc__=yes
16774 else
16775 ac_cv_cpp_def___powerpc__=no
16777 rm -f conftest*
16780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___powerpc__" >&5
16781 $as_echo "$ac_cv_cpp_def___powerpc__" >&6; }
16782 if test "x$ac_cv_cpp_def___powerpc__" = xyes; then :
16783 CFLAGS="$CFLAGS -D__powerpc__"
16784 LINTFLAGS="$LINTFLAGS -D__powerpc__"
16785 fi ;;
16786 *aarch64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __aarch64__" >&5
16787 $as_echo_n "checking whether we need to define __aarch64__... " >&6; }
16788 if ${ac_cv_cpp_def___aarch64__+:} false; then :
16789 $as_echo_n "(cached) " >&6
16790 else
16791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16792 /* end confdefs.h. */
16793 #ifndef __aarch64__
16795 #endif
16796 _ACEOF
16797 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16798 $EGREP "yes" >/dev/null 2>&1; then :
16799 ac_cv_cpp_def___aarch64__=yes
16800 else
16801 ac_cv_cpp_def___aarch64__=no
16803 rm -f conftest*
16806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___aarch64__" >&5
16807 $as_echo "$ac_cv_cpp_def___aarch64__" >&6; }
16808 if test "x$ac_cv_cpp_def___aarch64__" = xyes; then :
16809 CFLAGS="$CFLAGS -D__aarch64__"
16810 LINTFLAGS="$LINTFLAGS -D__aarch64__"
16811 fi ;;
16812 *arm*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __arm__" >&5
16813 $as_echo_n "checking whether we need to define __arm__... " >&6; }
16814 if ${ac_cv_cpp_def___arm__+:} false; then :
16815 $as_echo_n "(cached) " >&6
16816 else
16817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16818 /* end confdefs.h. */
16819 #ifndef __arm__
16821 #endif
16822 _ACEOF
16823 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16824 $EGREP "yes" >/dev/null 2>&1; then :
16825 ac_cv_cpp_def___arm__=yes
16826 else
16827 ac_cv_cpp_def___arm__=no
16829 rm -f conftest*
16832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___arm__" >&5
16833 $as_echo "$ac_cv_cpp_def___arm__" >&6; }
16834 if test "x$ac_cv_cpp_def___arm__" = xyes; then :
16835 CFLAGS="$CFLAGS -D__arm__"
16836 LINTFLAGS="$LINTFLAGS -D__arm__"
16837 fi ;;
16838 esac
16840 case $host_vendor in
16841 *sun*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sun__" >&5
16842 $as_echo_n "checking whether we need to define __sun__... " >&6; }
16843 if ${ac_cv_cpp_def___sun__+:} false; then :
16844 $as_echo_n "(cached) " >&6
16845 else
16846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16847 /* end confdefs.h. */
16848 #ifndef __sun__
16850 #endif
16851 _ACEOF
16852 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16853 $EGREP "yes" >/dev/null 2>&1; then :
16854 ac_cv_cpp_def___sun__=yes
16855 else
16856 ac_cv_cpp_def___sun__=no
16858 rm -f conftest*
16861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sun__" >&5
16862 $as_echo "$ac_cv_cpp_def___sun__" >&6; }
16863 if test "x$ac_cv_cpp_def___sun__" = xyes; then :
16864 CFLAGS="$CFLAGS -D__sun__"
16865 LINTFLAGS="$LINTFLAGS -D__sun__"
16866 fi ;;
16867 esac
16873 ac_config_commands="$ac_config_commands include/stamp-h"
16875 $as_echo_n "creating Makefile rules..." >&6
16877 ALL_VARS_RULES="OPENGL_LIBS = $OPENGL_LIBS
16878 SOCKET_LIBS = $SOCKET_LIBS
16879 COREFOUNDATION_LIBS = $COREFOUNDATION_LIBS
16880 IOKIT_LIBS = $IOKIT_LIBS
16881 FORCEFEEDBACK_LIBS = $FORCEFEEDBACK_LIBS
16882 APPLICATIONSERVICES_LIBS = $APPLICATIONSERVICES_LIBS
16883 CORESERVICES_LIBS = $CORESERVICES_LIBS
16884 APPKIT_LIBS = $APPKIT_LIBS
16885 DISKARBITRATION_LIBS = $DISKARBITRATION_LIBS
16886 SECURITY_LIBS = $SECURITY_LIBS
16887 COREAUDIO_LIBS = $COREAUDIO_LIBS
16888 OPENAL_LIBS = $OPENAL_LIBS
16889 OPENCL_LIBS = $OPENCL_LIBS
16890 QUICKTIME_LIBS = $QUICKTIME_LIBS
16891 CARBON_LIBS = $CARBON_LIBS
16892 PTHREAD_LIBS = $PTHREAD_LIBS
16893 X_CFLAGS = $X_CFLAGS
16894 X_PRE_LIBS = $X_PRE_LIBS
16895 X_LIBS = $X_LIBS
16896 X_EXTRA_LIBS = $X_EXTRA_LIBS
16897 XML2_CFLAGS = $XML2_CFLAGS
16898 XML2_LIBS = $XML2_LIBS
16899 XSLT_CFLAGS = $XSLT_CFLAGS
16900 XSLT_LIBS = $XSLT_LIBS
16901 DBUS_CFLAGS = $DBUS_CFLAGS
16902 DBUS_LIBS = $DBUS_LIBS
16903 HAL_CFLAGS = $HAL_CFLAGS
16904 HAL_LIBS = $HAL_LIBS
16905 GNUTLS_CFLAGS = $GNUTLS_CFLAGS
16906 GNUTLS_LIBS = $GNUTLS_LIBS
16907 SANE_CFLAGS = $SANE_CFLAGS
16908 SANE_LIBS = $SANE_LIBS
16909 GPHOTO2_CFLAGS = $GPHOTO2_CFLAGS
16910 GPHOTO2_LIBS = $GPHOTO2_LIBS
16911 GPHOTO2_PORT_CFLAGS = $GPHOTO2_PORT_CFLAGS
16912 GPHOTO2_PORT_LIBS = $GPHOTO2_PORT_LIBS
16913 RESOLV_LIBS = $RESOLV_LIBS
16914 LCMS2_CFLAGS = $LCMS2_CFLAGS
16915 LCMS2_LIBS = $LCMS2_LIBS
16916 FREETYPE_CFLAGS = $FREETYPE_CFLAGS
16917 FREETYPE_LIBS = $FREETYPE_LIBS
16918 Z_LIBS = $Z_LIBS
16919 GETTEXTPO_LIBS = $GETTEXTPO_LIBS
16920 GSTREAMER_CFLAGS = $GSTREAMER_CFLAGS
16921 GSTREAMER_LIBS = $GSTREAMER_LIBS
16922 ALSA_LIBS = $ALSA_LIBS
16923 OSS4_CFLAGS = $OSS4_CFLAGS
16924 CAPI20_CFLAGS = $CAPI20_CFLAGS
16925 CAPI20_LIBS = $CAPI20_LIBS
16926 CUPS_CFLAGS = $CUPS_CFLAGS
16927 FONTCONFIG_CFLAGS = $FONTCONFIG_CFLAGS
16928 FONTCONFIG_LIBS = $FONTCONFIG_LIBS
16929 JPEG_CFLAGS = $JPEG_CFLAGS
16930 JPEG_LIBS = $JPEG_LIBS
16931 PNG_CFLAGS = $PNG_CFLAGS
16932 PNG_LIBS = $PNG_LIBS
16933 TIFF_CFLAGS = $TIFF_CFLAGS
16934 TIFF_LIBS = $TIFF_LIBS
16935 MPG123_CFLAGS = $MPG123_CFLAGS
16936 MPG123_LIBS = $MPG123_LIBS
16937 KSTAT_LIBS = $KSTAT_LIBS
16938 PROCSTAT_LIBS = $PROCSTAT_LIBS
16939 DL_LIBS = $DL_LIBS
16940 POLL_LIBS = $POLL_LIBS
16941 RT_LIBS = $RT_LIBS
16942 LDAP_LIBS = $LDAP_LIBS
16947 wine_fn_append_rule "
16948 # Rules automatically generated by configure
16950 CLEAN_FILES = *.o *.a *.so *.res *.fake *.ok *.tab.[ch] *.yy.c
16952 .INIT: Makefile
16953 .MAKEFILEDEPS:
16954 all: Makefile
16955 Makefile: $srcdir/Makefile.in $srcdir/Make.vars.in config.status \$(MAKEDEP)
16956 @./config.status Make.tmp Makefile"
16958 test "$srcdir" = . && wine_fn_append_rule "all: .gitignore
16959 .gitignore: config.status
16960 @./config.status .gitignore"
16962 test -n "$CROSSTARGET" || wine_fn_append_rule "crosstest:
16963 @echo \"crosstest is not supported (mingw not installed?)\" && false"
16965 if test "x$enable_fonts" != xno; then
16966 ac_config_links="$ac_config_links fonts/marlett.ttf:fonts/marlett.ttf"
16967 ac_config_links="$ac_config_links fonts/symbol.ttf:fonts/symbol.ttf"
16968 ac_config_links="$ac_config_links fonts/tahoma.ttf:fonts/tahoma.ttf"
16969 ac_config_links="$ac_config_links fonts/tahomabd.ttf:fonts/tahomabd.ttf"
16970 test "$srcdir" = "." || wine_fn_config_symlink fonts/marlett.ttf fonts/symbol.ttf fonts/tahoma.ttf fonts/tahomabd.ttf
16972 ac_config_links="$ac_config_links loader/l_intl.nls:loader/l_intl.nls"
16973 test "$srcdir" = "." || wine_fn_config_symlink loader/l_intl.nls
16974 ac_config_links="$ac_config_links po/LINGUAS:po/LINGUAS"
16975 test "$srcdir" = "." || wine_fn_config_symlink po/LINGUAS
16976 ac_config_links="$ac_config_links wine:tools/winewrapper"
16977 wine_fn_config_symlink wine
16978 if test "x$enable_win64" != xno; then
16979 ac_config_links="$ac_config_links wine64:tools/winewrapper"
16980 wine_fn_config_symlink wine64
16983 wine_fn_config_dll acledit enable_acledit
16984 wine_fn_config_dll aclui enable_aclui implib
16985 wine_fn_config_dll activeds enable_activeds implib
16986 wine_fn_config_dll actxprxy enable_actxprxy clean
16987 wine_fn_config_lib adsiid
16988 wine_fn_config_dll advapi32 enable_advapi32 clean,implib
16989 wine_fn_config_test dlls/advapi32/tests advapi32_test
16990 wine_fn_config_dll advpack enable_advpack implib
16991 wine_fn_config_test dlls/advpack/tests advpack_test
16992 wine_fn_config_dll amstream enable_amstream clean
16993 wine_fn_config_test dlls/amstream/tests amstream_test
16994 wine_fn_config_dll api-ms-win-core-com-l1-1-0 enable_api_ms_win_core_com_l1_1_0
16995 wine_fn_config_dll api-ms-win-core-console-l1-1-0 enable_api_ms_win_core_console_l1_1_0
16996 wine_fn_config_dll api-ms-win-core-datetime-l1-1-0 enable_api_ms_win_core_datetime_l1_1_0
16997 wine_fn_config_dll api-ms-win-core-datetime-l1-1-1 enable_api_ms_win_core_datetime_l1_1_1
16998 wine_fn_config_dll api-ms-win-core-debug-l1-1-0 enable_api_ms_win_core_debug_l1_1_0
16999 wine_fn_config_dll api-ms-win-core-debug-l1-1-1 enable_api_ms_win_core_debug_l1_1_1
17000 wine_fn_config_dll api-ms-win-core-errorhandling-l1-1-0 enable_api_ms_win_core_errorhandling_l1_1_0
17001 wine_fn_config_dll api-ms-win-core-errorhandling-l1-1-1 enable_api_ms_win_core_errorhandling_l1_1_1
17002 wine_fn_config_dll api-ms-win-core-errorhandling-l1-1-2 enable_api_ms_win_core_errorhandling_l1_1_2
17003 wine_fn_config_dll api-ms-win-core-fibers-l1-1-0 enable_api_ms_win_core_fibers_l1_1_0
17004 wine_fn_config_dll api-ms-win-core-fibers-l1-1-1 enable_api_ms_win_core_fibers_l1_1_1
17005 wine_fn_config_dll api-ms-win-core-file-l1-1-0 enable_api_ms_win_core_file_l1_1_0
17006 wine_fn_config_dll api-ms-win-core-file-l1-2-0 enable_api_ms_win_core_file_l1_2_0
17007 wine_fn_config_dll api-ms-win-core-file-l2-1-0 enable_api_ms_win_core_file_l2_1_0
17008 wine_fn_config_dll api-ms-win-core-file-l2-1-1 enable_api_ms_win_core_file_l2_1_1
17009 wine_fn_config_dll api-ms-win-core-handle-l1-1-0 enable_api_ms_win_core_handle_l1_1_0
17010 wine_fn_config_dll api-ms-win-core-heap-l1-2-0 enable_api_ms_win_core_heap_l1_2_0
17011 wine_fn_config_dll api-ms-win-core-heap-obsolete-l1-1-0 enable_api_ms_win_core_heap_obsolete_l1_1_0
17012 wine_fn_config_dll api-ms-win-core-interlocked-l1-2-0 enable_api_ms_win_core_interlocked_l1_2_0
17013 wine_fn_config_dll api-ms-win-core-io-l1-1-1 enable_api_ms_win_core_io_l1_1_1
17014 wine_fn_config_dll api-ms-win-core-kernel32-legacy-l1-1-0 enable_api_ms_win_core_kernel32_legacy_l1_1_0
17015 wine_fn_config_dll api-ms-win-core-libraryloader-l1-1-1 enable_api_ms_win_core_libraryloader_l1_1_1
17016 wine_fn_config_dll api-ms-win-core-localization-l1-2-0 enable_api_ms_win_core_localization_l1_2_0
17017 wine_fn_config_dll api-ms-win-core-localization-l1-2-1 enable_api_ms_win_core_localization_l1_2_1
17018 wine_fn_config_dll api-ms-win-core-localization-obsolete-l1-1-0 enable_api_ms_win_core_localization_obsolete_l1_1_0
17019 wine_fn_config_dll api-ms-win-core-localregistry-l1-1-0 enable_api_ms_win_core_localregistry_l1_1_0
17020 wine_fn_config_dll api-ms-win-core-memory-l1-1-1 enable_api_ms_win_core_memory_l1_1_1
17021 wine_fn_config_dll api-ms-win-core-namedpipe-l1-2-0 enable_api_ms_win_core_namedpipe_l1_2_0
17022 wine_fn_config_dll api-ms-win-core-processenvironment-l1-2-0 enable_api_ms_win_core_processenvironment_l1_2_0
17023 wine_fn_config_dll api-ms-win-core-processthreads-l1-1-0 enable_api_ms_win_core_processthreads_l1_1_0
17024 wine_fn_config_dll api-ms-win-core-processthreads-l1-1-1 enable_api_ms_win_core_processthreads_l1_1_1
17025 wine_fn_config_dll api-ms-win-core-processthreads-l1-1-2 enable_api_ms_win_core_processthreads_l1_1_2
17026 wine_fn_config_dll api-ms-win-core-profile-l1-1-0 enable_api_ms_win_core_profile_l1_1_0
17027 wine_fn_config_dll api-ms-win-core-psapi-l1-1-0 enable_api_ms_win_core_psapi_l1_1_0
17028 wine_fn_config_dll api-ms-win-core-registry-l1-1-0 enable_api_ms_win_core_registry_l1_1_0
17029 wine_fn_config_dll api-ms-win-core-rtlsupport-l1-2-0 enable_api_ms_win_core_rtlsupport_l1_2_0
17030 wine_fn_config_dll api-ms-win-core-shlwapi-legacy-l1-1-0 enable_api_ms_win_core_shlwapi_legacy_l1_1_0
17031 wine_fn_config_dll api-ms-win-core-string-l1-1-0 enable_api_ms_win_core_string_l1_1_0
17032 wine_fn_config_dll api-ms-win-core-synch-l1-2-0 enable_api_ms_win_core_synch_l1_2_0
17033 wine_fn_config_dll api-ms-win-core-sysinfo-l1-2-0 enable_api_ms_win_core_sysinfo_l1_2_0
17034 wine_fn_config_dll api-ms-win-core-sysinfo-l1-2-1 enable_api_ms_win_core_sysinfo_l1_2_1
17035 wine_fn_config_dll api-ms-win-core-threadpool-legacy-l1-1-0 enable_api_ms_win_core_threadpool_legacy_l1_1_0
17036 wine_fn_config_dll api-ms-win-core-timezone-l1-1-0 enable_api_ms_win_core_timezone_l1_1_0
17037 wine_fn_config_dll api-ms-win-core-url-l1-1-0 enable_api_ms_win_core_url_l1_1_0
17038 wine_fn_config_dll api-ms-win-core-util-l1-1-0 enable_api_ms_win_core_util_l1_1_0
17039 wine_fn_config_dll api-ms-win-core-winrt-error-l1-1-0 enable_api_ms_win_core_winrt_error_l1_1_0
17040 wine_fn_config_dll api-ms-win-core-winrt-error-l1-1-1 enable_api_ms_win_core_winrt_error_l1_1_1
17041 wine_fn_config_dll api-ms-win-core-winrt-l1-1-0 enable_api_ms_win_core_winrt_l1_1_0
17042 wine_fn_config_dll api-ms-win-core-winrt-string-l1-1-0 enable_api_ms_win_core_winrt_string_l1_1_0
17043 wine_fn_config_dll api-ms-win-core-xstate-l2-1-0 enable_api_ms_win_core_xstate_l2_1_0
17044 wine_fn_config_dll api-ms-win-downlevel-advapi32-l1-1-0 enable_api_ms_win_downlevel_advapi32_l1_1_0
17045 wine_fn_config_dll api-ms-win-downlevel-advapi32-l2-1-0 enable_api_ms_win_downlevel_advapi32_l2_1_0
17046 wine_fn_config_dll api-ms-win-downlevel-normaliz-l1-1-0 enable_api_ms_win_downlevel_normaliz_l1_1_0
17047 wine_fn_config_dll api-ms-win-downlevel-ole32-l1-1-0 enable_api_ms_win_downlevel_ole32_l1_1_0
17048 wine_fn_config_dll api-ms-win-downlevel-shell32-l1-1-0 enable_api_ms_win_downlevel_shell32_l1_1_0
17049 wine_fn_config_dll api-ms-win-downlevel-shlwapi-l1-1-0 enable_api_ms_win_downlevel_shlwapi_l1_1_0
17050 wine_fn_config_dll api-ms-win-downlevel-shlwapi-l2-1-0 enable_api_ms_win_downlevel_shlwapi_l2_1_0
17051 wine_fn_config_dll api-ms-win-downlevel-user32-l1-1-0 enable_api_ms_win_downlevel_user32_l1_1_0
17052 wine_fn_config_dll api-ms-win-downlevel-version-l1-1-0 enable_api_ms_win_downlevel_version_l1_1_0
17053 wine_fn_config_dll api-ms-win-eventing-provider-l1-1-0 enable_api_ms_win_eventing_provider_l1_1_0
17054 wine_fn_config_dll api-ms-win-ntuser-dc-access-l1-1-0 enable_api_ms_win_ntuser_dc_access_l1_1_0
17055 wine_fn_config_dll api-ms-win-security-base-l1-1-0 enable_api_ms_win_security_base_l1_1_0
17056 wine_fn_config_dll api-ms-win-security-base-l1-2-0 enable_api_ms_win_security_base_l1_2_0
17057 wine_fn_config_dll api-ms-win-security-sddl-l1-1-0 enable_api_ms_win_security_sddl_l1_1_0
17058 wine_fn_config_dll api-ms-win-service-core-l1-1-1 enable_api_ms_win_service_core_l1_1_1
17059 wine_fn_config_dll api-ms-win-service-management-l1-1-0 enable_api_ms_win_service_management_l1_1_0
17060 wine_fn_config_dll api-ms-win-service-winsvc-l1-2-0 enable_api_ms_win_service_winsvc_l1_2_0
17061 wine_fn_config_dll apphelp enable_apphelp
17062 wine_fn_config_test dlls/apphelp/tests apphelp_test
17063 wine_fn_config_dll appwiz.cpl enable_appwiz_cpl po
17064 wine_fn_config_dll atl enable_atl clean,implib
17065 wine_fn_config_test dlls/atl/tests atl_test
17066 wine_fn_config_dll atl100 enable_atl100 clean,implib
17067 wine_fn_config_test dlls/atl100/tests atl100_test
17068 wine_fn_config_dll atl110 enable_atl110 clean
17069 wine_fn_config_dll atl80 enable_atl80 clean,implib
17070 wine_fn_config_test dlls/atl80/tests atl80_test
17071 wine_fn_config_dll atl90 enable_atl90 clean
17072 wine_fn_config_dll authz enable_authz
17073 wine_fn_config_dll avicap32 enable_avicap32 implib
17074 wine_fn_config_dll avifil32 enable_avifil32 clean,implib,po
17075 wine_fn_config_test dlls/avifil32/tests avifil32_test
17076 wine_fn_config_dll avifile.dll16 enable_win16
17077 wine_fn_config_dll avrt enable_avrt implib
17078 wine_fn_config_dll bcrypt enable_bcrypt
17079 wine_fn_config_test dlls/bcrypt/tests bcrypt_test
17080 wine_fn_config_dll browseui enable_browseui clean,po
17081 wine_fn_config_test dlls/browseui/tests browseui_test
17082 wine_fn_config_dll cabinet enable_cabinet implib
17083 wine_fn_config_test dlls/cabinet/tests cabinet_test
17084 wine_fn_config_dll capi2032 enable_capi2032 implib
17085 wine_fn_config_dll cards enable_cards implib
17086 wine_fn_config_dll cfgmgr32 enable_cfgmgr32 implib
17087 wine_fn_config_dll clusapi enable_clusapi implib
17088 wine_fn_config_dll combase enable_combase
17089 wine_fn_config_test dlls/combase/tests combase_test
17090 wine_fn_config_dll comcat enable_comcat
17091 wine_fn_config_test dlls/comcat/tests comcat_test
17092 wine_fn_config_dll comctl32 enable_comctl32 implib,po
17093 wine_fn_config_test dlls/comctl32/tests comctl32_test
17094 wine_fn_config_dll comdlg32 enable_comdlg32 clean,implib,po
17095 wine_fn_config_test dlls/comdlg32/tests comdlg32_test
17096 wine_fn_config_dll comm.drv16 enable_win16
17097 wine_fn_config_dll commdlg.dll16 enable_win16
17098 wine_fn_config_dll compobj.dll16 enable_win16
17099 wine_fn_config_dll compstui enable_compstui implib
17100 wine_fn_config_dll comsvcs enable_comsvcs implib
17101 wine_fn_config_dll connect enable_connect
17102 wine_fn_config_dll credui enable_credui implib,po
17103 wine_fn_config_test dlls/credui/tests credui_test
17104 wine_fn_config_dll crtdll enable_crtdll implib
17105 wine_fn_config_dll crypt32 enable_crypt32 implib,po
17106 wine_fn_config_test dlls/crypt32/tests crypt32_test
17107 wine_fn_config_dll cryptdlg enable_cryptdlg po
17108 wine_fn_config_dll cryptdll enable_cryptdll implib
17109 wine_fn_config_dll cryptext enable_cryptext
17110 wine_fn_config_dll cryptnet enable_cryptnet implib
17111 wine_fn_config_test dlls/cryptnet/tests cryptnet_test
17112 wine_fn_config_dll cryptui enable_cryptui implib,po
17113 wine_fn_config_test dlls/cryptui/tests cryptui_test
17114 wine_fn_config_dll ctapi32 enable_ctapi32
17115 wine_fn_config_dll ctl3d.dll16 enable_win16
17116 wine_fn_config_dll ctl3d32 enable_ctl3d32 implib
17117 wine_fn_config_dll ctl3dv2.dll16 enable_win16
17118 wine_fn_config_dll d2d1 enable_d2d1 implib
17119 wine_fn_config_test dlls/d2d1/tests d2d1_test
17120 wine_fn_config_dll d3d10 enable_d3d10 implib
17121 wine_fn_config_test dlls/d3d10/tests d3d10_test
17122 wine_fn_config_dll d3d10_1 enable_d3d10_1 implib
17123 wine_fn_config_dll d3d10core enable_d3d10core implib
17124 wine_fn_config_test dlls/d3d10core/tests d3d10core_test
17125 wine_fn_config_dll d3d11 enable_d3d11
17126 wine_fn_config_dll d3d8 enable_d3d8 implib
17127 wine_fn_config_test dlls/d3d8/tests d3d8_test
17128 wine_fn_config_dll d3d9 enable_d3d9 implib
17129 wine_fn_config_test dlls/d3d9/tests d3d9_test
17130 wine_fn_config_dll d3dcompiler_33 enable_d3dcompiler_33
17131 wine_fn_config_dll d3dcompiler_34 enable_d3dcompiler_34
17132 wine_fn_config_dll d3dcompiler_35 enable_d3dcompiler_35
17133 wine_fn_config_dll d3dcompiler_36 enable_d3dcompiler_36
17134 wine_fn_config_dll d3dcompiler_37 enable_d3dcompiler_37
17135 wine_fn_config_dll d3dcompiler_38 enable_d3dcompiler_38
17136 wine_fn_config_dll d3dcompiler_39 enable_d3dcompiler_39
17137 wine_fn_config_dll d3dcompiler_40 enable_d3dcompiler_40
17138 wine_fn_config_dll d3dcompiler_41 enable_d3dcompiler_41
17139 wine_fn_config_dll d3dcompiler_42 enable_d3dcompiler_42
17140 wine_fn_config_dll d3dcompiler_43 enable_d3dcompiler_43 implib d3dcompiler
17141 wine_fn_config_test dlls/d3dcompiler_43/tests d3dcompiler_43_test
17142 wine_fn_config_dll d3dim enable_d3dim implib
17143 wine_fn_config_dll d3drm enable_d3drm implib
17144 wine_fn_config_test dlls/d3drm/tests d3drm_test
17145 wine_fn_config_dll d3dx10_33 enable_d3dx10_33
17146 wine_fn_config_dll d3dx10_34 enable_d3dx10_34
17147 wine_fn_config_dll d3dx10_35 enable_d3dx10_35
17148 wine_fn_config_dll d3dx10_36 enable_d3dx10_36
17149 wine_fn_config_dll d3dx10_37 enable_d3dx10_37
17150 wine_fn_config_dll d3dx10_38 enable_d3dx10_38
17151 wine_fn_config_dll d3dx10_39 enable_d3dx10_39
17152 wine_fn_config_dll d3dx10_40 enable_d3dx10_40
17153 wine_fn_config_dll d3dx10_41 enable_d3dx10_41
17154 wine_fn_config_dll d3dx10_42 enable_d3dx10_42
17155 wine_fn_config_dll d3dx10_43 enable_d3dx10_43
17156 wine_fn_config_dll d3dx11_42 enable_d3dx11_42
17157 wine_fn_config_dll d3dx11_43 enable_d3dx11_43
17158 wine_fn_config_dll d3dx9_24 enable_d3dx9_24
17159 wine_fn_config_dll d3dx9_25 enable_d3dx9_25
17160 wine_fn_config_dll d3dx9_26 enable_d3dx9_26
17161 wine_fn_config_dll d3dx9_27 enable_d3dx9_27
17162 wine_fn_config_dll d3dx9_28 enable_d3dx9_28
17163 wine_fn_config_dll d3dx9_29 enable_d3dx9_29
17164 wine_fn_config_dll d3dx9_30 enable_d3dx9_30
17165 wine_fn_config_dll d3dx9_31 enable_d3dx9_31
17166 wine_fn_config_dll d3dx9_32 enable_d3dx9_32
17167 wine_fn_config_dll d3dx9_33 enable_d3dx9_33
17168 wine_fn_config_dll d3dx9_34 enable_d3dx9_34
17169 wine_fn_config_dll d3dx9_35 enable_d3dx9_35
17170 wine_fn_config_dll d3dx9_36 enable_d3dx9_36 implib d3dx9
17171 wine_fn_config_test dlls/d3dx9_36/tests d3dx9_36_test
17172 wine_fn_config_dll d3dx9_37 enable_d3dx9_37
17173 wine_fn_config_dll d3dx9_38 enable_d3dx9_38
17174 wine_fn_config_dll d3dx9_39 enable_d3dx9_39
17175 wine_fn_config_dll d3dx9_40 enable_d3dx9_40
17176 wine_fn_config_dll d3dx9_41 enable_d3dx9_41
17177 wine_fn_config_dll d3dx9_42 enable_d3dx9_42
17178 wine_fn_config_dll d3dx9_43 enable_d3dx9_43
17179 wine_fn_config_dll d3dxof enable_d3dxof clean,implib
17180 wine_fn_config_test dlls/d3dxof/tests d3dxof_test
17181 wine_fn_config_dll dbgeng enable_dbgeng implib
17182 wine_fn_config_dll dbghelp enable_dbghelp implib
17183 wine_fn_config_dll dciman32 enable_dciman32 implib
17184 wine_fn_config_dll ddeml.dll16 enable_win16
17185 wine_fn_config_dll ddraw enable_ddraw clean,implib
17186 wine_fn_config_test dlls/ddraw/tests ddraw_test
17187 wine_fn_config_dll ddrawex enable_ddrawex clean
17188 wine_fn_config_test dlls/ddrawex/tests ddrawex_test
17189 wine_fn_config_dll devenum enable_devenum clean,po
17190 wine_fn_config_test dlls/devenum/tests devenum_test
17191 wine_fn_config_dll dhcpcsvc enable_dhcpcsvc
17192 wine_fn_config_dll difxapi enable_difxapi
17193 wine_fn_config_dll dinput enable_dinput clean,implib,po,staticimplib
17194 wine_fn_config_test dlls/dinput/tests dinput_test
17195 wine_fn_config_dll dinput8 enable_dinput8 clean,implib
17196 wine_fn_config_test dlls/dinput8/tests dinput8_test
17197 wine_fn_config_dll dispdib.dll16 enable_win16
17198 wine_fn_config_dll dispex enable_dispex clean
17199 wine_fn_config_test dlls/dispex/tests dispex_test
17200 wine_fn_config_dll display.drv16 enable_win16
17201 wine_fn_config_dll dmband enable_dmband clean
17202 wine_fn_config_test dlls/dmband/tests dmband_test
17203 wine_fn_config_dll dmcompos enable_dmcompos clean
17204 wine_fn_config_test dlls/dmcompos/tests dmcompos_test
17205 wine_fn_config_dll dmime enable_dmime clean
17206 wine_fn_config_test dlls/dmime/tests dmime_test
17207 wine_fn_config_dll dmloader enable_dmloader clean
17208 wine_fn_config_test dlls/dmloader/tests dmloader_test
17209 wine_fn_config_dll dmscript enable_dmscript clean
17210 wine_fn_config_test dlls/dmscript/tests dmscript_test
17211 wine_fn_config_dll dmstyle enable_dmstyle clean
17212 wine_fn_config_test dlls/dmstyle/tests dmstyle_test
17213 wine_fn_config_dll dmsynth enable_dmsynth clean
17214 wine_fn_config_test dlls/dmsynth/tests dmsynth_test
17215 wine_fn_config_dll dmusic enable_dmusic clean
17216 wine_fn_config_test dlls/dmusic/tests dmusic_test
17217 wine_fn_config_dll dmusic32 enable_dmusic32 implib
17218 wine_fn_config_dll dnsapi enable_dnsapi implib
17219 wine_fn_config_test dlls/dnsapi/tests dnsapi_test
17220 wine_fn_config_dll dplay enable_dplay implib
17221 wine_fn_config_dll dplayx enable_dplayx clean,implib
17222 wine_fn_config_test dlls/dplayx/tests dplayx_test
17223 wine_fn_config_dll dpnaddr enable_dpnaddr
17224 wine_fn_config_dll dpnet enable_dpnet clean,implib
17225 wine_fn_config_test dlls/dpnet/tests dpnet_test
17226 wine_fn_config_dll dpnhpast enable_dpnhpast
17227 wine_fn_config_dll dpnlobby enable_dpnlobby
17228 wine_fn_config_dll dpvoice enable_dpvoice clean
17229 wine_fn_config_test dlls/dpvoice/tests dpvoice_test
17230 wine_fn_config_dll dpwsockx enable_dpwsockx
17231 wine_fn_config_dll drmclien enable_drmclien
17232 wine_fn_config_dll dsound enable_dsound clean,implib
17233 wine_fn_config_test dlls/dsound/tests dsound_test
17234 wine_fn_config_dll dssenh enable_dssenh
17235 wine_fn_config_test dlls/dssenh/tests dssenh_test
17236 wine_fn_config_dll dswave enable_dswave clean
17237 wine_fn_config_test dlls/dswave/tests dswave_test
17238 wine_fn_config_dll dwmapi enable_dwmapi implib
17239 wine_fn_config_dll dwrite enable_dwrite implib
17240 wine_fn_config_test dlls/dwrite/tests dwrite_test
17241 wine_fn_config_dll dxdiagn enable_dxdiagn clean,po
17242 wine_fn_config_test dlls/dxdiagn/tests dxdiagn_test
17243 wine_fn_config_lib dxerr8
17244 wine_fn_config_lib dxerr9
17245 wine_fn_config_dll dxgi enable_dxgi implib
17246 wine_fn_config_test dlls/dxgi/tests dxgi_test
17247 wine_fn_config_lib dxguid
17248 wine_fn_config_dll dxva2 enable_dxva2
17249 wine_fn_config_dll evr enable_evr
17250 wine_fn_config_dll explorerframe enable_explorerframe clean
17251 wine_fn_config_test dlls/explorerframe/tests explorerframe_test
17252 wine_fn_config_dll ext-ms-win-gdi-devcaps-l1-1-0 enable_ext_ms_win_gdi_devcaps_l1_1_0
17253 wine_fn_config_dll faultrep enable_faultrep implib
17254 wine_fn_config_test dlls/faultrep/tests faultrep_test
17255 wine_fn_config_dll fltlib enable_fltlib
17256 wine_fn_config_dll fntcache enable_fntcache
17257 wine_fn_config_dll fontsub enable_fontsub
17258 wine_fn_config_dll fusion enable_fusion
17259 wine_fn_config_test dlls/fusion/tests fusion_test
17260 wine_fn_config_dll fwpuclnt enable_fwpuclnt
17261 wine_fn_config_dll gameux enable_gameux clean
17262 wine_fn_config_test dlls/gameux/tests gameux_test
17263 wine_fn_config_dll gdi.exe16 enable_win16
17264 wine_fn_config_dll gdi32 enable_gdi32 clean,implib,po
17265 wine_fn_config_test dlls/gdi32/tests gdi32_test
17266 wine_fn_config_dll gdiplus enable_gdiplus implib
17267 wine_fn_config_test dlls/gdiplus/tests gdiplus_test
17268 wine_fn_config_dll glu32 enable_glu32 implib
17269 wine_fn_config_dll gphoto2.ds enable_gphoto2_ds po
17270 wine_fn_config_dll gpkcsp enable_gpkcsp
17271 wine_fn_config_dll hal enable_hal
17272 wine_fn_config_dll hhctrl.ocx enable_hhctrl_ocx clean,implib,po htmlhelp
17273 wine_fn_config_dll hid enable_hid implib
17274 wine_fn_config_dll hlink enable_hlink clean,implib
17275 wine_fn_config_test dlls/hlink/tests hlink_test
17276 wine_fn_config_dll hnetcfg enable_hnetcfg clean
17277 wine_fn_config_dll httpapi enable_httpapi
17278 wine_fn_config_dll iccvid enable_iccvid po
17279 wine_fn_config_dll icmp enable_icmp
17280 wine_fn_config_dll ieframe enable_ieframe clean,implib,po
17281 wine_fn_config_test dlls/ieframe/tests ieframe_test
17282 wine_fn_config_dll ifsmgr.vxd enable_win16
17283 wine_fn_config_dll imaadp32.acm enable_imaadp32_acm
17284 wine_fn_config_dll imagehlp enable_imagehlp implib
17285 wine_fn_config_test dlls/imagehlp/tests imagehlp_test
17286 wine_fn_config_dll imm.dll16 enable_win16
17287 wine_fn_config_dll imm32 enable_imm32 implib
17288 wine_fn_config_test dlls/imm32/tests imm32_test
17289 wine_fn_config_dll inetcomm enable_inetcomm clean,implib
17290 wine_fn_config_test dlls/inetcomm/tests inetcomm_test
17291 wine_fn_config_dll inetcpl.cpl enable_inetcpl_cpl po
17292 wine_fn_config_dll inetmib1 enable_inetmib1
17293 wine_fn_config_test dlls/inetmib1/tests inetmib1_test
17294 wine_fn_config_dll infosoft enable_infosoft clean
17295 wine_fn_config_test dlls/infosoft/tests infosoft_test
17296 wine_fn_config_dll initpki enable_initpki
17297 wine_fn_config_dll inkobj enable_inkobj
17298 wine_fn_config_dll inseng enable_inseng clean
17299 wine_fn_config_dll iphlpapi enable_iphlpapi implib
17300 wine_fn_config_test dlls/iphlpapi/tests iphlpapi_test
17301 wine_fn_config_dll itircl enable_itircl
17302 wine_fn_config_dll itss enable_itss clean
17303 wine_fn_config_test dlls/itss/tests itss_test
17304 wine_fn_config_dll joy.cpl enable_joy_cpl po
17305 wine_fn_config_dll jscript enable_jscript clean,po
17306 wine_fn_config_test dlls/jscript/tests jscript_test
17307 wine_fn_config_dll jsproxy enable_jsproxy implib
17308 wine_fn_config_dll kernel32 enable_kernel32 clean,implib,mc
17309 wine_fn_config_test dlls/kernel32/tests kernel32_test
17310 wine_fn_config_dll keyboard.drv16 enable_win16
17311 wine_fn_config_dll krnl386.exe16 enable_win16 implib kernel
17312 wine_fn_config_dll ksuser enable_ksuser
17313 wine_fn_config_dll ktmw32 enable_ktmw32
17314 wine_fn_config_dll loadperf enable_loadperf implib
17315 wine_fn_config_dll localspl enable_localspl po
17316 wine_fn_config_test dlls/localspl/tests localspl_test
17317 wine_fn_config_dll localui enable_localui po
17318 wine_fn_config_test dlls/localui/tests localui_test
17319 wine_fn_config_dll lz32 enable_lz32 implib
17320 wine_fn_config_test dlls/lz32/tests lz32_test
17321 wine_fn_config_dll lzexpand.dll16 enable_win16
17322 wine_fn_config_dll mapi32 enable_mapi32 implib,po
17323 wine_fn_config_test dlls/mapi32/tests mapi32_test
17324 wine_fn_config_dll mapistub enable_mapistub
17325 wine_fn_config_dll mciavi32 enable_mciavi32
17326 wine_fn_config_dll mcicda enable_mcicda
17327 wine_fn_config_dll mciqtz32 enable_mciqtz32
17328 wine_fn_config_dll mciseq enable_mciseq
17329 wine_fn_config_dll mciwave enable_mciwave
17330 wine_fn_config_dll mf enable_mf
17331 wine_fn_config_dll mfplat enable_mfplat
17332 wine_fn_config_dll mfreadwrite enable_mfreadwrite
17333 wine_fn_config_dll mgmtapi enable_mgmtapi
17334 wine_fn_config_dll midimap enable_midimap
17335 wine_fn_config_dll mlang enable_mlang clean,implib
17336 wine_fn_config_test dlls/mlang/tests mlang_test
17337 wine_fn_config_dll mmcndmgr enable_mmcndmgr clean
17338 wine_fn_config_test dlls/mmcndmgr/tests mmcndmgr_test
17339 wine_fn_config_dll mmdevapi enable_mmdevapi clean
17340 wine_fn_config_test dlls/mmdevapi/tests mmdevapi_test
17341 wine_fn_config_dll mmdevldr.vxd enable_win16
17342 wine_fn_config_dll mmsystem.dll16 enable_win16
17343 wine_fn_config_dll monodebg.vxd enable_win16
17344 wine_fn_config_dll mountmgr.sys enable_mountmgr_sys
17345 wine_fn_config_dll mouse.drv16 enable_win16
17346 wine_fn_config_dll mpr enable_mpr implib,po
17347 wine_fn_config_test dlls/mpr/tests mpr_test
17348 wine_fn_config_dll mprapi enable_mprapi implib
17349 wine_fn_config_dll msacm.dll16 enable_win16
17350 wine_fn_config_dll msacm32.drv enable_msacm32_drv
17351 wine_fn_config_dll msacm32 enable_msacm32 implib,po
17352 wine_fn_config_test dlls/msacm32/tests msacm32_test
17353 wine_fn_config_dll msadp32.acm enable_msadp32_acm
17354 wine_fn_config_dll msasn1 enable_msasn1 implib
17355 wine_fn_config_dll mscat32 enable_mscat32
17356 wine_fn_config_dll mscms enable_mscms implib
17357 wine_fn_config_test dlls/mscms/tests mscms_test
17358 wine_fn_config_dll mscoree enable_mscoree clean
17359 wine_fn_config_test dlls/mscoree/tests mscoree_test
17360 wine_fn_config_dll msctf enable_msctf clean
17361 wine_fn_config_test dlls/msctf/tests msctf_test
17362 wine_fn_config_dll msdaps enable_msdaps clean
17363 wine_fn_config_dll msdmo enable_msdmo implib
17364 wine_fn_config_test dlls/msdmo/tests msdmo_test
17365 wine_fn_config_dll msftedit enable_msftedit
17366 wine_fn_config_dll msg711.acm enable_msg711_acm
17367 wine_fn_config_dll msgsm32.acm enable_msgsm32_acm
17368 wine_fn_config_dll mshtml.tlb enable_mshtml_tlb clean
17369 wine_fn_config_dll mshtml enable_mshtml clean,implib,po
17370 wine_fn_config_test dlls/mshtml/tests mshtml_test clean
17371 wine_fn_config_dll msi enable_msi clean,implib,po
17372 wine_fn_config_test dlls/msi/tests msi_test
17373 wine_fn_config_dll msident enable_msident clean
17374 wine_fn_config_dll msimg32 enable_msimg32 implib
17375 wine_fn_config_dll msimsg enable_msimsg
17376 wine_fn_config_dll msimtf enable_msimtf clean
17377 wine_fn_config_dll msisip enable_msisip
17378 wine_fn_config_dll msisys.ocx enable_msisys_ocx
17379 wine_fn_config_dll msls31 enable_msls31
17380 wine_fn_config_dll msnet32 enable_msnet32
17381 wine_fn_config_dll mspatcha enable_mspatcha implib
17382 wine_fn_config_dll msrle32 enable_msrle32 po
17383 wine_fn_config_test dlls/msrle32/tests msrle32_test
17384 wine_fn_config_dll mssign32 enable_mssign32
17385 wine_fn_config_dll mssip32 enable_mssip32
17386 wine_fn_config_dll mstask enable_mstask clean
17387 wine_fn_config_test dlls/mstask/tests mstask_test
17388 wine_fn_config_dll msvcirt enable_msvcirt
17389 wine_fn_config_dll msvcm80 enable_msvcm80
17390 wine_fn_config_dll msvcm90 enable_msvcm90
17391 wine_fn_config_dll msvcp100 enable_msvcp100
17392 wine_fn_config_test dlls/msvcp100/tests msvcp100_test
17393 wine_fn_config_dll msvcp110 enable_msvcp110
17394 wine_fn_config_dll msvcp120 enable_msvcp120
17395 wine_fn_config_test dlls/msvcp120/tests msvcp120_test
17396 wine_fn_config_dll msvcp120_app enable_msvcp120_app
17397 wine_fn_config_dll msvcp60 enable_msvcp60
17398 wine_fn_config_test dlls/msvcp60/tests msvcp60_test
17399 wine_fn_config_dll msvcp70 enable_msvcp70
17400 wine_fn_config_dll msvcp71 enable_msvcp71
17401 wine_fn_config_dll msvcp80 enable_msvcp80
17402 wine_fn_config_dll msvcp90 enable_msvcp90
17403 wine_fn_config_test dlls/msvcp90/tests msvcp90_test
17404 wine_fn_config_dll msvcr100 enable_msvcr100 implib
17405 wine_fn_config_test dlls/msvcr100/tests msvcr100_test
17406 wine_fn_config_dll msvcr110 enable_msvcr110 implib
17407 wine_fn_config_dll msvcr120 enable_msvcr120 implib
17408 wine_fn_config_test dlls/msvcr120/tests msvcr120_test
17409 wine_fn_config_dll msvcr120_app enable_msvcr120_app
17410 wine_fn_config_dll msvcr70 enable_msvcr70 implib
17411 wine_fn_config_dll msvcr71 enable_msvcr71 implib
17412 wine_fn_config_dll msvcr80 enable_msvcr80 implib
17413 wine_fn_config_dll msvcr90 enable_msvcr90 implib
17414 wine_fn_config_test dlls/msvcr90/tests msvcr90_test
17415 wine_fn_config_dll msvcrt enable_msvcrt implib
17416 wine_fn_config_test dlls/msvcrt/tests msvcrt_test
17417 wine_fn_config_dll msvcrt20 enable_msvcrt20 implib
17418 wine_fn_config_dll msvcrt40 enable_msvcrt40 implib
17419 wine_fn_config_dll msvcrtd enable_msvcrtd implib
17420 wine_fn_config_test dlls/msvcrtd/tests msvcrtd_test
17421 wine_fn_config_dll msvfw32 enable_msvfw32 implib,po
17422 wine_fn_config_test dlls/msvfw32/tests msvfw32_test
17423 wine_fn_config_dll msvidc32 enable_msvidc32 po
17424 wine_fn_config_dll msvideo.dll16 enable_win16
17425 wine_fn_config_dll mswsock enable_mswsock implib
17426 wine_fn_config_dll msxml enable_msxml clean
17427 wine_fn_config_dll msxml2 enable_msxml2 clean
17428 wine_fn_config_dll msxml3 enable_msxml3 clean
17429 wine_fn_config_test dlls/msxml3/tests msxml3_test clean
17430 wine_fn_config_dll msxml4 enable_msxml4 clean
17431 wine_fn_config_dll msxml6 enable_msxml6 clean
17432 wine_fn_config_dll nddeapi enable_nddeapi implib
17433 wine_fn_config_dll ndis.sys enable_ndis_sys
17434 wine_fn_config_dll netapi32 enable_netapi32 implib
17435 wine_fn_config_test dlls/netapi32/tests netapi32_test
17436 wine_fn_config_dll netcfgx enable_netcfgx clean
17437 wine_fn_config_test dlls/netcfgx/tests netcfgx_test
17438 wine_fn_config_dll netprofm enable_netprofm clean
17439 wine_fn_config_test dlls/netprofm/tests netprofm_test
17440 wine_fn_config_dll newdev enable_newdev implib
17441 wine_fn_config_dll normaliz enable_normaliz implib
17442 wine_fn_config_dll npmshtml enable_npmshtml
17443 wine_fn_config_dll npptools enable_npptools
17444 wine_fn_config_dll ntdll enable_ntdll implib
17445 wine_fn_config_test dlls/ntdll/tests ntdll_test
17446 wine_fn_config_dll ntdsapi enable_ntdsapi implib
17447 wine_fn_config_test dlls/ntdsapi/tests ntdsapi_test
17448 wine_fn_config_dll ntoskrnl.exe enable_ntoskrnl_exe implib
17449 wine_fn_config_dll ntprint enable_ntprint
17450 wine_fn_config_test dlls/ntprint/tests ntprint_test
17451 wine_fn_config_dll objsel enable_objsel clean
17452 wine_fn_config_dll odbc32 enable_odbc32 implib
17453 wine_fn_config_dll odbccp32 enable_odbccp32 implib
17454 wine_fn_config_test dlls/odbccp32/tests odbccp32_test
17455 wine_fn_config_dll odbccu32 enable_odbccu32
17456 wine_fn_config_dll ole2.dll16 enable_win16
17457 wine_fn_config_dll ole2conv.dll16 enable_win16
17458 wine_fn_config_dll ole2disp.dll16 enable_win16
17459 wine_fn_config_dll ole2nls.dll16 enable_win16
17460 wine_fn_config_dll ole2prox.dll16 enable_win16
17461 wine_fn_config_dll ole2thk.dll16 enable_win16
17462 wine_fn_config_dll ole32 enable_ole32 clean,implib
17463 wine_fn_config_test dlls/ole32/tests ole32_test
17464 wine_fn_config_dll oleacc enable_oleacc clean,implib,po
17465 wine_fn_config_test dlls/oleacc/tests oleacc_test
17466 wine_fn_config_dll oleaut32 enable_oleaut32 clean,implib,po
17467 wine_fn_config_test dlls/oleaut32/tests oleaut32_test clean
17468 wine_fn_config_dll olecli.dll16 enable_win16
17469 wine_fn_config_dll olecli32 enable_olecli32 implib
17470 wine_fn_config_dll oledb32 enable_oledb32 clean
17471 wine_fn_config_test dlls/oledb32/tests oledb32_test clean
17472 wine_fn_config_dll oledlg enable_oledlg implib,po
17473 wine_fn_config_dll olepro32 enable_olepro32 implib
17474 wine_fn_config_dll olesvr.dll16 enable_win16
17475 wine_fn_config_dll olesvr32 enable_olesvr32 implib
17476 wine_fn_config_dll olethk32 enable_olethk32
17477 wine_fn_config_dll openal32 enable_openal32
17478 wine_fn_config_dll opencl enable_opencl
17479 wine_fn_config_dll opengl32 enable_opengl32 implib
17480 wine_fn_config_test dlls/opengl32/tests opengl32_test
17481 wine_fn_config_dll packager enable_packager clean
17482 wine_fn_config_test dlls/packager/tests packager_test
17483 wine_fn_config_dll pdh enable_pdh implib
17484 wine_fn_config_test dlls/pdh/tests pdh_test
17485 wine_fn_config_dll photometadatahandler enable_photometadatahandler
17486 wine_fn_config_dll pidgen enable_pidgen
17487 wine_fn_config_dll powrprof enable_powrprof implib
17488 wine_fn_config_dll printui enable_printui
17489 wine_fn_config_dll prntvpt enable_prntvpt
17490 wine_fn_config_dll propsys enable_propsys clean,implib
17491 wine_fn_config_test dlls/propsys/tests propsys_test
17492 wine_fn_config_dll psapi enable_psapi implib
17493 wine_fn_config_test dlls/psapi/tests psapi_test
17494 wine_fn_config_dll pstorec enable_pstorec clean
17495 wine_fn_config_dll qcap enable_qcap
17496 wine_fn_config_test dlls/qcap/tests qcap_test
17497 wine_fn_config_dll qedit enable_qedit clean
17498 wine_fn_config_test dlls/qedit/tests qedit_test
17499 wine_fn_config_dll qmgr enable_qmgr clean
17500 wine_fn_config_test dlls/qmgr/tests qmgr_test
17501 wine_fn_config_dll qmgrprxy enable_qmgrprxy clean
17502 wine_fn_config_dll quartz enable_quartz clean,implib
17503 wine_fn_config_test dlls/quartz/tests quartz_test clean
17504 wine_fn_config_dll query enable_query
17505 wine_fn_config_dll rasapi16.dll16 enable_win16
17506 wine_fn_config_dll rasapi32 enable_rasapi32 implib
17507 wine_fn_config_test dlls/rasapi32/tests rasapi32_test
17508 wine_fn_config_dll rasdlg enable_rasdlg implib
17509 wine_fn_config_dll regapi enable_regapi
17510 wine_fn_config_dll resutils enable_resutils implib
17511 wine_fn_config_dll riched20 enable_riched20 implib
17512 wine_fn_config_test dlls/riched20/tests riched20_test
17513 wine_fn_config_dll riched32 enable_riched32
17514 wine_fn_config_test dlls/riched32/tests riched32_test
17515 wine_fn_config_dll rpcrt4 enable_rpcrt4 clean,implib
17516 wine_fn_config_test dlls/rpcrt4/tests rpcrt4_test clean
17517 wine_fn_config_dll rsabase enable_rsabase
17518 wine_fn_config_dll rsaenh enable_rsaenh implib
17519 wine_fn_config_test dlls/rsaenh/tests rsaenh_test
17520 wine_fn_config_dll rstrtmgr enable_rstrtmgr
17521 wine_fn_config_dll rtutils enable_rtutils implib
17522 wine_fn_config_dll samlib enable_samlib
17523 wine_fn_config_dll sane.ds enable_sane_ds po
17524 wine_fn_config_dll scarddlg enable_scarddlg
17525 wine_fn_config_dll sccbase enable_sccbase
17526 wine_fn_config_dll schannel enable_schannel
17527 wine_fn_config_test dlls/schannel/tests schannel_test
17528 wine_fn_config_dll schedsvc enable_schedsvc clean
17529 wine_fn_config_test dlls/schedsvc/tests schedsvc_test clean
17530 wine_fn_config_dll scrrun enable_scrrun clean
17531 wine_fn_config_test dlls/scrrun/tests scrrun_test clean
17532 wine_fn_config_dll scsiport.sys enable_scsiport_sys
17533 wine_fn_config_dll secur32 enable_secur32 implib
17534 wine_fn_config_test dlls/secur32/tests secur32_test
17535 wine_fn_config_dll security enable_security
17536 wine_fn_config_dll sensapi enable_sensapi implib
17537 wine_fn_config_dll serialui enable_serialui implib,po
17538 wine_fn_config_test dlls/serialui/tests serialui_test
17539 wine_fn_config_dll setupapi enable_setupapi implib,po
17540 wine_fn_config_test dlls/setupapi/tests setupapi_test
17541 wine_fn_config_dll setupx.dll16 enable_win16
17542 wine_fn_config_dll sfc enable_sfc implib
17543 wine_fn_config_dll sfc_os enable_sfc_os implib
17544 wine_fn_config_dll shdoclc enable_shdoclc po
17545 wine_fn_config_dll shdocvw enable_shdocvw clean,implib
17546 wine_fn_config_test dlls/shdocvw/tests shdocvw_test
17547 wine_fn_config_dll shell.dll16 enable_win16
17548 wine_fn_config_dll shell32 enable_shell32 clean,implib,po
17549 wine_fn_config_test dlls/shell32/tests shell32_test
17550 wine_fn_config_dll shfolder enable_shfolder implib
17551 wine_fn_config_dll shlwapi enable_shlwapi implib,po
17552 wine_fn_config_test dlls/shlwapi/tests shlwapi_test
17553 wine_fn_config_dll slbcsp enable_slbcsp
17554 wine_fn_config_dll slc enable_slc implib
17555 wine_fn_config_test dlls/slc/tests slc_test
17556 wine_fn_config_dll snmpapi enable_snmpapi implib
17557 wine_fn_config_test dlls/snmpapi/tests snmpapi_test
17558 wine_fn_config_dll softpub enable_softpub
17559 wine_fn_config_dll sound.drv16 enable_win16
17560 wine_fn_config_dll spoolss enable_spoolss implib
17561 wine_fn_config_test dlls/spoolss/tests spoolss_test
17562 wine_fn_config_dll stdole2.tlb enable_stdole2_tlb clean
17563 wine_fn_config_dll stdole32.tlb enable_stdole32_tlb clean
17564 wine_fn_config_dll sti enable_sti clean,implib
17565 wine_fn_config_test dlls/sti/tests sti_test
17566 wine_fn_config_dll storage.dll16 enable_win16
17567 wine_fn_config_dll stress.dll16 enable_win16
17568 wine_fn_config_lib strmbase
17569 wine_fn_config_lib strmiids
17570 wine_fn_config_dll svrapi enable_svrapi
17571 wine_fn_config_dll sxs enable_sxs implib
17572 wine_fn_config_test dlls/sxs/tests sxs_test
17573 wine_fn_config_dll system.drv16 enable_win16
17574 wine_fn_config_dll t2embed enable_t2embed
17575 wine_fn_config_dll tapi32 enable_tapi32 implib
17576 wine_fn_config_dll taskschd enable_taskschd clean
17577 wine_fn_config_test dlls/taskschd/tests taskschd_test
17578 wine_fn_config_dll toolhelp.dll16 enable_win16
17579 wine_fn_config_dll traffic enable_traffic
17580 wine_fn_config_dll twain.dll16 enable_win16
17581 wine_fn_config_dll twain_32 enable_twain_32
17582 wine_fn_config_test dlls/twain_32/tests twain_32_test
17583 wine_fn_config_dll typelib.dll16 enable_win16
17584 wine_fn_config_dll unicows enable_unicows implib
17585 wine_fn_config_dll updspapi enable_updspapi
17586 wine_fn_config_dll url enable_url implib
17587 wine_fn_config_dll urlmon enable_urlmon clean,implib,po
17588 wine_fn_config_test dlls/urlmon/tests urlmon_test
17589 wine_fn_config_dll usbd.sys enable_usbd_sys implib
17590 wine_fn_config_dll user.exe16 enable_win16
17591 wine_fn_config_dll user32 enable_user32 clean,implib,po
17592 wine_fn_config_test dlls/user32/tests user32_test
17593 wine_fn_config_dll userenv enable_userenv implib
17594 wine_fn_config_test dlls/userenv/tests userenv_test
17595 wine_fn_config_dll usp10 enable_usp10 implib
17596 wine_fn_config_test dlls/usp10/tests usp10_test
17597 wine_fn_config_lib uuid
17598 wine_fn_config_dll uxtheme enable_uxtheme implib
17599 wine_fn_config_test dlls/uxtheme/tests uxtheme_test
17600 wine_fn_config_dll vbscript enable_vbscript clean
17601 wine_fn_config_test dlls/vbscript/tests vbscript_test clean
17602 wine_fn_config_dll vcomp enable_vcomp
17603 wine_fn_config_dll vcomp100 enable_vcomp100
17604 wine_fn_config_dll vcomp90 enable_vcomp90
17605 wine_fn_config_dll vdhcp.vxd enable_win16
17606 wine_fn_config_dll vdmdbg enable_vdmdbg implib
17607 wine_fn_config_dll ver.dll16 enable_win16
17608 wine_fn_config_dll version enable_version implib
17609 wine_fn_config_test dlls/version/tests version_test
17610 wine_fn_config_dll vmm.vxd enable_win16
17611 wine_fn_config_dll vnbt.vxd enable_win16
17612 wine_fn_config_dll vnetbios.vxd enable_win16
17613 wine_fn_config_dll vssapi enable_vssapi
17614 wine_fn_config_dll vtdapi.vxd enable_win16
17615 wine_fn_config_dll vwin32.vxd enable_win16
17616 wine_fn_config_dll w32skrnl enable_win16
17617 wine_fn_config_dll w32sys.dll16 enable_win16
17618 wine_fn_config_dll wbemdisp enable_wbemdisp clean
17619 wine_fn_config_test dlls/wbemdisp/tests wbemdisp_test
17620 wine_fn_config_dll wbemprox enable_wbemprox clean
17621 wine_fn_config_test dlls/wbemprox/tests wbemprox_test
17622 wine_fn_config_dll webservices enable_webservices implib
17623 wine_fn_config_dll wer enable_wer implib
17624 wine_fn_config_test dlls/wer/tests wer_test
17625 wine_fn_config_dll wevtapi enable_wevtapi
17626 wine_fn_config_dll wiaservc enable_wiaservc clean
17627 wine_fn_config_dll win32s16.dll16 enable_win16
17628 wine_fn_config_dll win87em.dll16 enable_win16
17629 wine_fn_config_dll winaspi.dll16 enable_win16
17630 wine_fn_config_dll windebug.dll16 enable_win16
17631 wine_fn_config_dll windowscodecs enable_windowscodecs clean,implib
17632 wine_fn_config_test dlls/windowscodecs/tests windowscodecs_test
17633 wine_fn_config_dll windowscodecsext enable_windowscodecsext implib
17634 wine_fn_config_test dlls/windowscodecsext/tests windowscodecsext_test
17635 wine_fn_config_dll winealsa.drv enable_winealsa_drv
17636 wine_fn_config_dll winecoreaudio.drv enable_winecoreaudio_drv
17637 wine_fn_config_lib winecrt0
17638 wine_fn_config_dll wined3d enable_wined3d implib
17639 wine_fn_config_dll winegstreamer enable_winegstreamer
17640 wine_fn_config_dll winejoystick.drv enable_winejoystick_drv
17641 wine_fn_config_dll winemac.drv enable_winemac_drv
17642 wine_fn_config_dll winemapi enable_winemapi
17643 wine_fn_config_dll winemp3.acm enable_winemp3_acm
17644 wine_fn_config_dll wineoss.drv enable_wineoss_drv
17645 wine_fn_config_dll wineps.drv enable_wineps_drv clean,po
17646 wine_fn_config_dll wineps16.drv16 enable_win16
17647 wine_fn_config_dll wineqtdecoder enable_wineqtdecoder
17648 wine_fn_config_dll winex11.drv enable_winex11_drv
17649 wine_fn_config_dll wing.dll16 enable_win16
17650 wine_fn_config_dll wing32 enable_wing32
17651 wine_fn_config_dll winhttp enable_winhttp clean,implib
17652 wine_fn_config_test dlls/winhttp/tests winhttp_test
17653 wine_fn_config_dll wininet enable_wininet implib,po
17654 wine_fn_config_test dlls/wininet/tests wininet_test
17655 wine_fn_config_dll winmm enable_winmm implib,po
17656 wine_fn_config_test dlls/winmm/tests winmm_test
17657 wine_fn_config_dll winnls.dll16 enable_win16
17658 wine_fn_config_dll winnls32 enable_winnls32 implib
17659 wine_fn_config_dll winscard enable_winscard implib
17660 wine_fn_config_dll winsock.dll16 enable_win16
17661 wine_fn_config_dll winspool.drv enable_winspool_drv implib,po winspool
17662 wine_fn_config_test dlls/winspool.drv/tests winspool.drv_test
17663 wine_fn_config_dll winsta enable_winsta
17664 wine_fn_config_dll wintab.dll16 enable_win16
17665 wine_fn_config_dll wintab32 enable_wintab32 implib
17666 wine_fn_config_test dlls/wintab32/tests wintab32_test
17667 wine_fn_config_dll wintrust enable_wintrust implib
17668 wine_fn_config_test dlls/wintrust/tests wintrust_test
17669 wine_fn_config_dll wlanapi enable_wlanapi
17670 wine_fn_config_dll wldap32 enable_wldap32 implib,po
17671 wine_fn_config_test dlls/wldap32/tests wldap32_test
17672 wine_fn_config_dll wmi enable_wmi
17673 wine_fn_config_dll wmiutils enable_wmiutils clean
17674 wine_fn_config_test dlls/wmiutils/tests wmiutils_test
17675 wine_fn_config_dll wmp enable_wmp clean
17676 wine_fn_config_test dlls/wmp/tests wmp_test
17677 wine_fn_config_dll wmvcore enable_wmvcore
17678 wine_fn_config_dll wnaspi32 enable_wnaspi32 implib
17679 wine_fn_config_dll wow32 enable_win16 implib
17680 wine_fn_config_dll wpcap enable_wpcap
17681 wine_fn_config_dll ws2_32 enable_ws2_32 implib
17682 wine_fn_config_test dlls/ws2_32/tests ws2_32_test
17683 wine_fn_config_dll wshom.ocx enable_wshom_ocx clean
17684 wine_fn_config_test dlls/wshom.ocx/tests wshom.ocx_test clean
17685 wine_fn_config_dll wsnmp32 enable_wsnmp32 implib
17686 wine_fn_config_test dlls/wsnmp32/tests wsnmp32_test
17687 wine_fn_config_dll wsock32 enable_wsock32 implib
17688 wine_fn_config_dll wtsapi32 enable_wtsapi32 implib
17689 wine_fn_config_test dlls/wtsapi32/tests wtsapi32_test
17690 wine_fn_config_dll wuapi enable_wuapi clean
17691 wine_fn_config_dll wuaueng enable_wuaueng
17692 wine_fn_config_dll x3daudio1_1 enable_x3daudio1_1
17693 wine_fn_config_dll x3daudio1_2 enable_x3daudio1_2
17694 wine_fn_config_dll x3daudio1_3 enable_x3daudio1_3
17695 wine_fn_config_dll x3daudio1_4 enable_x3daudio1_4
17696 wine_fn_config_dll x3daudio1_5 enable_x3daudio1_5
17697 wine_fn_config_dll x3daudio1_6 enable_x3daudio1_6
17698 wine_fn_config_dll x3daudio1_7 enable_x3daudio1_7
17699 wine_fn_config_dll xapofx1_1 enable_xapofx1_1
17700 wine_fn_config_dll xapofx1_3 enable_xapofx1_3
17701 wine_fn_config_dll xapofx1_4 enable_xapofx1_4
17702 wine_fn_config_dll xapofx1_5 enable_xapofx1_5
17703 wine_fn_config_dll xaudio2_7 enable_xaudio2_7
17704 wine_fn_config_dll xinput1_1 enable_xinput1_1
17705 wine_fn_config_dll xinput1_2 enable_xinput1_2
17706 wine_fn_config_dll xinput1_3 enable_xinput1_3 implib xinput
17707 wine_fn_config_test dlls/xinput1_3/tests xinput1_3_test
17708 wine_fn_config_dll xinput1_4 enable_xinput1_4
17709 wine_fn_config_dll xinput9_1_0 enable_xinput9_1_0
17710 wine_fn_config_dll xmllite enable_xmllite implib
17711 wine_fn_config_test dlls/xmllite/tests xmllite_test
17712 wine_fn_config_dll xolehlp enable_xolehlp
17713 wine_fn_config_dll xpsprint enable_xpsprint
17714 wine_fn_config_dll xpssvcs enable_xpssvcs
17715 wine_fn_config_makefile documentation enable_documentation clean
17716 wine_fn_config_makefile fonts enable_fonts clean,install-lib
17717 wine_fn_config_makefile include enable_include clean,install-dev
17718 wine_fn_config_makefile libs/port enable_libs_port
17719 wine_fn_config_makefile libs/wine enable_libs_wine clean,install-dev,install-lib
17720 wine_fn_config_makefile libs/wpp enable_libs_wpp
17721 wine_fn_config_makefile loader enable_loader clean,install-lib,manpage
17722 wine_fn_config_program arp enable_arp install
17723 wine_fn_config_program aspnet_regiis enable_aspnet_regiis install
17724 wine_fn_config_program attrib enable_attrib install,po
17725 wine_fn_config_program cabarc enable_cabarc install
17726 wine_fn_config_program cacls enable_cacls install
17727 wine_fn_config_program clock enable_clock install,po
17728 wine_fn_config_program cmd enable_cmd install,po
17729 wine_fn_config_test programs/cmd/tests cmd.exe_test
17730 wine_fn_config_program conhost enable_conhost install
17731 wine_fn_config_program control enable_control install
17732 wine_fn_config_program cscript enable_cscript clean,install
17733 wine_fn_config_program dpnsvr enable_dpnsvr install
17734 wine_fn_config_program dxdiag enable_dxdiag install,po
17735 wine_fn_config_program eject enable_eject install
17736 wine_fn_config_program expand enable_expand install
17737 wine_fn_config_program explorer enable_explorer install,po
17738 wine_fn_config_program extrac32 enable_extrac32 install
17739 wine_fn_config_program findstr enable_findstr install
17740 wine_fn_config_program hh enable_hh install
17741 wine_fn_config_program hostname enable_hostname install,po
17742 wine_fn_config_program icinfo enable_icinfo install
17743 wine_fn_config_program iexplore enable_iexplore install
17744 wine_fn_config_program ipconfig enable_ipconfig install,po
17745 wine_fn_config_program lodctr enable_lodctr install
17746 wine_fn_config_program mofcomp enable_mofcomp install
17747 wine_fn_config_program mshta enable_mshta install
17748 wine_fn_config_program msiexec enable_msiexec install,installbin,manpage
17749 wine_fn_config_program net enable_net install,po
17750 wine_fn_config_program netsh enable_netsh install
17751 wine_fn_config_program netstat enable_netstat install,po
17752 wine_fn_config_program ngen enable_ngen install
17753 wine_fn_config_program notepad enable_notepad install,installbin,manpage,po
17754 wine_fn_config_program oleview enable_oleview install,po
17755 wine_fn_config_program ping enable_ping install
17756 wine_fn_config_program plugplay enable_plugplay install
17757 wine_fn_config_program presentationfontcache enable_presentationfontcache install
17758 wine_fn_config_program progman enable_progman install,po
17759 wine_fn_config_program reg enable_reg install,po
17760 wine_fn_config_test programs/reg/tests reg.exe_test
17761 wine_fn_config_program regasm enable_regasm install
17762 wine_fn_config_program regedit enable_regedit install,installbin,manpage,po
17763 wine_fn_config_test programs/regedit/tests regedit.exe_test
17764 wine_fn_config_program regsvcs enable_regsvcs install
17765 wine_fn_config_program regsvr32 enable_regsvr32 install,installbin,manpage,po
17766 wine_fn_config_program rpcss enable_rpcss clean,install
17767 wine_fn_config_program rundll.exe16 enable_win16 install
17768 wine_fn_config_program rundll32 enable_rundll32 install
17769 wine_fn_config_program sc enable_sc install
17770 wine_fn_config_program schtasks enable_schtasks install
17771 wine_fn_config_program sdbinst enable_sdbinst install
17772 wine_fn_config_program secedit enable_secedit install
17773 wine_fn_config_program servicemodelreg enable_servicemodelreg install
17774 wine_fn_config_program services enable_services clean,install
17775 wine_fn_config_test programs/services/tests services.exe_test
17776 wine_fn_config_program spoolsv enable_spoolsv install
17777 wine_fn_config_program start enable_start install,po
17778 wine_fn_config_program svchost enable_svchost install
17779 wine_fn_config_program systeminfo enable_systeminfo install
17780 wine_fn_config_program taskkill enable_taskkill install,po
17781 wine_fn_config_program tasklist enable_tasklist install
17782 wine_fn_config_program taskmgr enable_taskmgr install,po
17783 wine_fn_config_program termsv enable_termsv install
17784 wine_fn_config_program uninstaller enable_uninstaller install,po
17785 wine_fn_config_program unlodctr enable_unlodctr install
17786 wine_fn_config_program view enable_view install,po
17787 wine_fn_config_program wevtutil enable_wevtutil install
17788 wine_fn_config_program wineboot enable_wineboot install,installbin,manpage,po
17789 wine_fn_config_program winebrowser enable_winebrowser install
17790 wine_fn_config_program winecfg enable_winecfg install,installbin,manpage,po
17791 wine_fn_config_program wineconsole enable_wineconsole install,installbin,manpage,po
17792 wine_fn_config_program winedbg enable_winedbg install,installbin,manpage,po
17793 wine_fn_config_program winedevice enable_winedevice install
17794 wine_fn_config_program winefile enable_winefile install,installbin,manpage,po
17795 wine_fn_config_program winemenubuilder enable_winemenubuilder install
17796 wine_fn_config_program winemine enable_winemine install,installbin,manpage,po
17797 wine_fn_config_program winemsibuilder enable_winemsibuilder install
17798 wine_fn_config_program winepath enable_winepath install,installbin,manpage
17799 wine_fn_config_program winetest enable_winetest clean
17800 wine_fn_config_program winevdm enable_win16 install
17801 wine_fn_config_program winhelp.exe16 enable_win16 install
17802 wine_fn_config_program winhlp32 enable_winhlp32 install,po
17803 wine_fn_config_program winoldap.mod16 enable_win16 install
17804 wine_fn_config_program winver enable_winver install
17805 wine_fn_config_program wmic enable_wmic install,po
17806 wine_fn_config_program wordpad enable_wordpad install,po
17807 wine_fn_config_program write enable_write install,po
17808 wine_fn_config_program wscript enable_wscript clean,install
17809 wine_fn_config_test programs/wscript/tests wscript.exe_test
17810 wine_fn_config_program wusa enable_wusa install
17811 wine_fn_config_program xcopy enable_xcopy install,po
17812 wine_fn_config_test programs/xcopy/tests xcopy.exe_test
17813 wine_fn_config_makefile server enable_server clean,install-lib,manpage
17814 wine_fn_config_tool tools clean,install-dev,install-lib,manpage
17815 wine_fn_config_tool tools/sfnt2fon clean
17816 wine_fn_config_tool tools/widl clean,install-dev,manpage
17817 wine_fn_config_tool tools/winebuild clean,install-dev,manpage
17818 wine_fn_config_tool tools/winedump clean,install-dev,manpage
17819 wine_fn_config_tool tools/winegcc clean,install-dev,manpage
17820 wine_fn_config_tool tools/wmc clean,install-dev,manpage
17821 wine_fn_config_tool tools/wrc clean,install-dev,manpage
17823 LINGUAS="\
17824 ar \
17825 bg \
17826 ca \
17827 cs \
17828 da \
17829 de \
17830 el \
17831 en \
17832 en_US \
17833 eo \
17834 es \
17835 fa \
17836 fi \
17837 fr \
17838 he \
17839 hi \
17840 hr \
17841 hu \
17842 it \
17843 ja \
17844 ko \
17845 lt \
17846 ml \
17847 nb_NO \
17848 nl \
17849 or \
17850 pa \
17851 pl \
17852 pt_BR \
17853 pt_PT \
17854 rm \
17855 ro \
17856 ru \
17857 sk \
17858 sl \
17859 sr_RS@cyrillic \
17860 sr_RS@latin \
17861 sv \
17862 te \
17863 th \
17864 tr \
17865 uk \
17866 wa \
17867 zh_CN \
17868 zh_TW"
17873 wine_fn_ignore_file ".gitignore"
17874 wine_fn_ignore_file "Makefile"
17875 wine_fn_ignore_file "TAGS"
17876 wine_fn_ignore_file "tags"
17877 wine_fn_ignore_file "autom4te.cache"
17878 wine_fn_ignore_file "config.cache"
17879 wine_fn_ignore_file "config.log"
17880 wine_fn_ignore_file "config.status"
17881 wine_fn_ignore_file "configure.lineno"
17882 wine_fn_ignore_file "include/config.h"
17883 wine_fn_ignore_file "include/stamp-h"
17884 test "$wine_binary" = wine || wine_fn_ignore_file "loader/wine"
17886 if test "x$enable_tools" != xno
17887 then
17888 wine_fn_ignore_file "tools/makedep$ac_exeext"
17889 ac_config_commands="$ac_config_commands tools/makedep"
17893 ac_config_commands="$ac_config_commands Makefile"
17896 ac_config_files="$ac_config_files Make.tmp:Make.vars.in:Makefile.in"
17900 if test "x$enable_maintainer_mode" = xyes
17901 then
17902 wine_fn_append_rule "configure: configure.ac aclocal.m4
17903 autoconf --warnings=all
17904 include/config.h.in: include/stamp-h.in
17905 include/stamp-h.in: configure.ac aclocal.m4
17906 autoheader --warnings=all
17907 @echo timestamp > \$@"
17910 if test "x$with_gettextpo" = xyes
17911 then
17912 test "$srcdir" = . || as_fn_error $? "Rebuilding po files is not supported for out of tree builds." "$LINENO" 5
17913 wine_fn_append_rule "ALL_POT_FILES =$ALL_POT_FILES
17914 \$(LINGUAS:%=po/%.po): po/wine.pot
17915 msgmerge --previous -q \$@ po/wine.pot | msgattrib --no-obsolete -o \$@.new && mv \$@.new \$@
17916 po/wine.pot: \$(ALL_POT_FILES)
17917 msgcat -o \$@ \$(ALL_POT_FILES)"
17920 if test "$MSGFMT" != false
17921 then
17922 wine_fn_append_rule "__builddeps__: \$(LINGUAS:%=po/%.mo)
17923 clean::
17924 \$(RM) \$(LINGUAS:%=po/%.mo)"
17926 posrc="po"
17927 test "$srcdir" = . || posrc="$srcdir/po"
17928 for i in $LINGUAS
17930 wine_fn_ignore_file "po/$i.mo"
17931 wine_fn_append_rule "po/$i.mo: $posrc/$i.po
17932 \$(MSGFMT) -o \$@ $posrc/$i.po"
17933 done
17934 else
17935 LINGUAS=
17938 if test "x$enable_tools" != xno
17939 then
17940 wine_fn_append_rule "tools/makedep$ac_exeext: $srcdir/tools/makedep.c include/config.h config.status
17941 @./config.status tools/makedep
17942 Makefile: tools/makedep$ac_exeext
17943 distclean:: clean
17944 \$(RM) tools/makedep$ac_exeext"
17945 else
17946 wine_fn_append_rule "\$(MAKEDEP):
17947 @echo \"You need to run make in $TOOLSDIR first\" && false"
17950 if test -n "$with_wine64"
17951 then
17952 wine_fn_append_rule "all: fonts server tools $with_wine64/loader/wine $with_wine64/loader/wine-preloader
17953 fonts server tools:
17954 \$(RM) \$@ && \$(LN_S) $with_wine64/\$@ \$@
17955 $with_wine64/loader/wine:
17956 \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine \$@
17957 $with_wine64/loader/wine-preloader:
17958 \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine-preloader \$@
17959 clean::
17960 \$(RM) fonts server tools $with_wine64/loader/wine $with_wine64/loader/wine-preloader"
17961 else
17962 as_fn_append LOADER_RULES "
17963 install install-lib:: wine.inf install-man-pages
17964 \$(INSTALL_DATA) wine.inf \$(DESTDIR)\$(datadir)/wine/wine.inf
17965 \$(INSTALL_DATA) \$(srcdir)/l_intl.nls \$(DESTDIR)\$(datadir)/wine/l_intl.nls
17967 uninstall::
17968 \$(RM) \$(DESTDIR)\$(datadir)/wine/wine.inf \$(DESTDIR)\$(datadir)/wine/l_intl.nls
17972 if test "$srcdir" = .
17973 then
17974 ac_config_commands="$ac_config_commands .gitignore"
17978 $as_echo " done" >&6
17979 cat >confcache <<\_ACEOF
17980 # This file is a shell script that caches the results of configure
17981 # tests run on this system so they can be shared between configure
17982 # scripts and configure runs, see configure's option --config-cache.
17983 # It is not useful on other systems. If it contains results you don't
17984 # want to keep, you may remove or edit it.
17986 # config.status only pays attention to the cache file if you give it
17987 # the --recheck option to rerun configure.
17989 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17990 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17991 # following values.
17993 _ACEOF
17995 # The following way of writing the cache mishandles newlines in values,
17996 # but we know of no workaround that is simple, portable, and efficient.
17997 # So, we kill variables containing newlines.
17998 # Ultrix sh set writes to stderr and can't be redirected directly,
17999 # and sets the high bit in the cache file unless we assign to the vars.
18001 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18002 eval ac_val=\$$ac_var
18003 case $ac_val in #(
18004 *${as_nl}*)
18005 case $ac_var in #(
18006 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18007 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18008 esac
18009 case $ac_var in #(
18010 _ | IFS | as_nl) ;; #(
18011 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18012 *) { eval $ac_var=; unset $ac_var;} ;;
18013 esac ;;
18014 esac
18015 done
18017 (set) 2>&1 |
18018 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18019 *${as_nl}ac_space=\ *)
18020 # `set' does not quote correctly, so add quotes: double-quote
18021 # substitution turns \\\\ into \\, and sed turns \\ into \.
18022 sed -n \
18023 "s/'/'\\\\''/g;
18024 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18025 ;; #(
18027 # `set' quotes correctly as required by POSIX, so do not add quotes.
18028 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18030 esac |
18031 sort
18033 sed '
18034 /^ac_cv_env_/b end
18035 t clear
18036 :clear
18037 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18038 t end
18039 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18040 :end' >>confcache
18041 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18042 if test -w "$cache_file"; then
18043 if test "x$cache_file" != "x/dev/null"; then
18044 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18045 $as_echo "$as_me: updating cache $cache_file" >&6;}
18046 if test ! -f "$cache_file" || test -h "$cache_file"; then
18047 cat confcache >"$cache_file"
18048 else
18049 case $cache_file in #(
18050 */* | ?:*)
18051 mv -f confcache "$cache_file"$$ &&
18052 mv -f "$cache_file"$$ "$cache_file" ;; #(
18054 mv -f confcache "$cache_file" ;;
18055 esac
18058 else
18059 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18060 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18063 rm -f confcache
18065 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18066 # Let make expand exec_prefix.
18067 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18069 DEFS=-DHAVE_CONFIG_H
18071 ac_libobjs=
18072 ac_ltlibobjs=
18074 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18075 # 1. Remove the extension, and $U if already installed.
18076 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18077 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18078 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18079 # will be set to the directory where LIBOBJS objects are built.
18080 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18081 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18082 done
18083 LIBOBJS=$ac_libobjs
18085 LTLIBOBJS=$ac_ltlibobjs
18089 : "${CONFIG_STATUS=./config.status}"
18090 ac_write_fail=0
18091 ac_clean_files_save=$ac_clean_files
18092 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18093 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18094 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18095 as_write_fail=0
18096 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18097 #! $SHELL
18098 # Generated by $as_me.
18099 # Run this file to recreate the current configuration.
18100 # Compiler output produced by configure, useful for debugging
18101 # configure, is in config.log if it exists.
18103 debug=false
18104 ac_cs_recheck=false
18105 ac_cs_silent=false
18107 SHELL=\${CONFIG_SHELL-$SHELL}
18108 export SHELL
18109 _ASEOF
18110 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18111 ## -------------------- ##
18112 ## M4sh Initialization. ##
18113 ## -------------------- ##
18115 # Be more Bourne compatible
18116 DUALCASE=1; export DUALCASE # for MKS sh
18117 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18118 emulate sh
18119 NULLCMD=:
18120 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18121 # is contrary to our usage. Disable this feature.
18122 alias -g '${1+"$@"}'='"$@"'
18123 setopt NO_GLOB_SUBST
18124 else
18125 case `(set -o) 2>/dev/null` in #(
18126 *posix*) :
18127 set -o posix ;; #(
18128 *) :
18130 esac
18134 as_nl='
18136 export as_nl
18137 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18138 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18139 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18140 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18141 # Prefer a ksh shell builtin over an external printf program on Solaris,
18142 # but without wasting forks for bash or zsh.
18143 if test -z "$BASH_VERSION$ZSH_VERSION" \
18144 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18145 as_echo='print -r --'
18146 as_echo_n='print -rn --'
18147 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18148 as_echo='printf %s\n'
18149 as_echo_n='printf %s'
18150 else
18151 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18152 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18153 as_echo_n='/usr/ucb/echo -n'
18154 else
18155 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18156 as_echo_n_body='eval
18157 arg=$1;
18158 case $arg in #(
18159 *"$as_nl"*)
18160 expr "X$arg" : "X\\(.*\\)$as_nl";
18161 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18162 esac;
18163 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18165 export as_echo_n_body
18166 as_echo_n='sh -c $as_echo_n_body as_echo'
18168 export as_echo_body
18169 as_echo='sh -c $as_echo_body as_echo'
18172 # The user is always right.
18173 if test "${PATH_SEPARATOR+set}" != set; then
18174 PATH_SEPARATOR=:
18175 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18176 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18177 PATH_SEPARATOR=';'
18182 # IFS
18183 # We need space, tab and new line, in precisely that order. Quoting is
18184 # there to prevent editors from complaining about space-tab.
18185 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18186 # splitting by setting IFS to empty value.)
18187 IFS=" "" $as_nl"
18189 # Find who we are. Look in the path if we contain no directory separator.
18190 as_myself=
18191 case $0 in #((
18192 *[\\/]* ) as_myself=$0 ;;
18193 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18194 for as_dir in $PATH
18196 IFS=$as_save_IFS
18197 test -z "$as_dir" && as_dir=.
18198 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18199 done
18200 IFS=$as_save_IFS
18203 esac
18204 # We did not find ourselves, most probably we were run as `sh COMMAND'
18205 # in which case we are not to be found in the path.
18206 if test "x$as_myself" = x; then
18207 as_myself=$0
18209 if test ! -f "$as_myself"; then
18210 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18211 exit 1
18214 # Unset variables that we do not need and which cause bugs (e.g. in
18215 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18216 # suppresses any "Segmentation fault" message there. '((' could
18217 # trigger a bug in pdksh 5.2.14.
18218 for as_var in BASH_ENV ENV MAIL MAILPATH
18219 do eval test x\${$as_var+set} = xset \
18220 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18221 done
18222 PS1='$ '
18223 PS2='> '
18224 PS4='+ '
18226 # NLS nuisances.
18227 LC_ALL=C
18228 export LC_ALL
18229 LANGUAGE=C
18230 export LANGUAGE
18232 # CDPATH.
18233 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18236 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18237 # ----------------------------------------
18238 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18239 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18240 # script with STATUS, using 1 if that was 0.
18241 as_fn_error ()
18243 as_status=$1; test $as_status -eq 0 && as_status=1
18244 if test "$4"; then
18245 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18246 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18248 $as_echo "$as_me: error: $2" >&2
18249 as_fn_exit $as_status
18250 } # as_fn_error
18253 # as_fn_set_status STATUS
18254 # -----------------------
18255 # Set $? to STATUS, without forking.
18256 as_fn_set_status ()
18258 return $1
18259 } # as_fn_set_status
18261 # as_fn_exit STATUS
18262 # -----------------
18263 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18264 as_fn_exit ()
18266 set +e
18267 as_fn_set_status $1
18268 exit $1
18269 } # as_fn_exit
18271 # as_fn_unset VAR
18272 # ---------------
18273 # Portably unset VAR.
18274 as_fn_unset ()
18276 { eval $1=; unset $1;}
18278 as_unset=as_fn_unset
18279 # as_fn_append VAR VALUE
18280 # ----------------------
18281 # Append the text in VALUE to the end of the definition contained in VAR. Take
18282 # advantage of any shell optimizations that allow amortized linear growth over
18283 # repeated appends, instead of the typical quadratic growth present in naive
18284 # implementations.
18285 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18286 eval 'as_fn_append ()
18288 eval $1+=\$2
18290 else
18291 as_fn_append ()
18293 eval $1=\$$1\$2
18295 fi # as_fn_append
18297 # as_fn_arith ARG...
18298 # ------------------
18299 # Perform arithmetic evaluation on the ARGs, and store the result in the
18300 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18301 # must be portable across $(()) and expr.
18302 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18303 eval 'as_fn_arith ()
18305 as_val=$(( $* ))
18307 else
18308 as_fn_arith ()
18310 as_val=`expr "$@" || test $? -eq 1`
18312 fi # as_fn_arith
18315 if expr a : '\(a\)' >/dev/null 2>&1 &&
18316 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18317 as_expr=expr
18318 else
18319 as_expr=false
18322 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18323 as_basename=basename
18324 else
18325 as_basename=false
18328 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18329 as_dirname=dirname
18330 else
18331 as_dirname=false
18334 as_me=`$as_basename -- "$0" ||
18335 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18336 X"$0" : 'X\(//\)$' \| \
18337 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18338 $as_echo X/"$0" |
18339 sed '/^.*\/\([^/][^/]*\)\/*$/{
18340 s//\1/
18343 /^X\/\(\/\/\)$/{
18344 s//\1/
18347 /^X\/\(\/\).*/{
18348 s//\1/
18351 s/.*/./; q'`
18353 # Avoid depending upon Character Ranges.
18354 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18355 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18356 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18357 as_cr_digits='0123456789'
18358 as_cr_alnum=$as_cr_Letters$as_cr_digits
18360 ECHO_C= ECHO_N= ECHO_T=
18361 case `echo -n x` in #(((((
18362 -n*)
18363 case `echo 'xy\c'` in
18364 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18365 xy) ECHO_C='\c';;
18366 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18367 ECHO_T=' ';;
18368 esac;;
18370 ECHO_N='-n';;
18371 esac
18373 rm -f conf$$ conf$$.exe conf$$.file
18374 if test -d conf$$.dir; then
18375 rm -f conf$$.dir/conf$$.file
18376 else
18377 rm -f conf$$.dir
18378 mkdir conf$$.dir 2>/dev/null
18380 if (echo >conf$$.file) 2>/dev/null; then
18381 if ln -s conf$$.file conf$$ 2>/dev/null; then
18382 as_ln_s='ln -s'
18383 # ... but there are two gotchas:
18384 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18385 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18386 # In both cases, we have to default to `cp -pR'.
18387 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18388 as_ln_s='cp -pR'
18389 elif ln conf$$.file conf$$ 2>/dev/null; then
18390 as_ln_s=ln
18391 else
18392 as_ln_s='cp -pR'
18394 else
18395 as_ln_s='cp -pR'
18397 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18398 rmdir conf$$.dir 2>/dev/null
18401 # as_fn_mkdir_p
18402 # -------------
18403 # Create "$as_dir" as a directory, including parents if necessary.
18404 as_fn_mkdir_p ()
18407 case $as_dir in #(
18408 -*) as_dir=./$as_dir;;
18409 esac
18410 test -d "$as_dir" || eval $as_mkdir_p || {
18411 as_dirs=
18412 while :; do
18413 case $as_dir in #(
18414 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18415 *) as_qdir=$as_dir;;
18416 esac
18417 as_dirs="'$as_qdir' $as_dirs"
18418 as_dir=`$as_dirname -- "$as_dir" ||
18419 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18420 X"$as_dir" : 'X\(//\)[^/]' \| \
18421 X"$as_dir" : 'X\(//\)$' \| \
18422 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18423 $as_echo X"$as_dir" |
18424 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18425 s//\1/
18428 /^X\(\/\/\)[^/].*/{
18429 s//\1/
18432 /^X\(\/\/\)$/{
18433 s//\1/
18436 /^X\(\/\).*/{
18437 s//\1/
18440 s/.*/./; q'`
18441 test -d "$as_dir" && break
18442 done
18443 test -z "$as_dirs" || eval "mkdir $as_dirs"
18444 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18447 } # as_fn_mkdir_p
18448 if mkdir -p . 2>/dev/null; then
18449 as_mkdir_p='mkdir -p "$as_dir"'
18450 else
18451 test -d ./-p && rmdir ./-p
18452 as_mkdir_p=false
18456 # as_fn_executable_p FILE
18457 # -----------------------
18458 # Test if FILE is an executable regular file.
18459 as_fn_executable_p ()
18461 test -f "$1" && test -x "$1"
18462 } # as_fn_executable_p
18463 as_test_x='test -x'
18464 as_executable_p=as_fn_executable_p
18466 # Sed expression to map a string onto a valid CPP name.
18467 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18469 # Sed expression to map a string onto a valid variable name.
18470 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18473 exec 6>&1
18474 ## ----------------------------------- ##
18475 ## Main body of $CONFIG_STATUS script. ##
18476 ## ----------------------------------- ##
18477 _ASEOF
18478 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18480 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18481 # Save the log message, to keep $0 and so on meaningful, and to
18482 # report actual input values of CONFIG_FILES etc. instead of their
18483 # values after options handling.
18484 ac_log="
18485 This file was extended by Wine $as_me 1.7.42, which was
18486 generated by GNU Autoconf 2.69. Invocation command line was
18488 CONFIG_FILES = $CONFIG_FILES
18489 CONFIG_HEADERS = $CONFIG_HEADERS
18490 CONFIG_LINKS = $CONFIG_LINKS
18491 CONFIG_COMMANDS = $CONFIG_COMMANDS
18492 $ $0 $@
18494 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18497 _ACEOF
18499 case $ac_config_files in *"
18500 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18501 esac
18503 case $ac_config_headers in *"
18504 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18505 esac
18508 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18509 # Files that config.status was made for.
18510 config_files="$ac_config_files"
18511 config_headers="$ac_config_headers"
18512 config_links="$ac_config_links"
18513 config_commands="$ac_config_commands"
18515 _ACEOF
18517 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18518 ac_cs_usage="\
18519 \`$as_me' instantiates files and other configuration actions
18520 from templates according to the current configuration. Unless the files
18521 and actions are specified as TAGs, all are instantiated by default.
18523 Usage: $0 [OPTION]... [TAG]...
18525 -h, --help print this help, then exit
18526 -V, --version print version number and configuration settings, then exit
18527 --config print configuration, then exit
18528 -q, --quiet, --silent
18529 do not print progress messages
18530 -d, --debug don't remove temporary files
18531 --recheck update $as_me by reconfiguring in the same conditions
18532 --file=FILE[:TEMPLATE]
18533 instantiate the configuration file FILE
18534 --header=FILE[:TEMPLATE]
18535 instantiate the configuration header FILE
18537 Configuration files:
18538 $config_files
18540 Configuration headers:
18541 $config_headers
18543 Configuration links:
18544 $config_links
18546 Configuration commands:
18547 $config_commands
18549 Report bugs to <wine-devel@winehq.org>.
18550 Wine home page: <http://www.winehq.org>."
18552 _ACEOF
18553 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18554 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18555 ac_cs_version="\\
18556 Wine config.status 1.7.42
18557 configured by $0, generated by GNU Autoconf 2.69,
18558 with options \\"\$ac_cs_config\\"
18560 Copyright (C) 2012 Free Software Foundation, Inc.
18561 This config.status script is free software; the Free Software Foundation
18562 gives unlimited permission to copy, distribute and modify it."
18564 ac_pwd='$ac_pwd'
18565 srcdir='$srcdir'
18566 test -n "\$AWK" || AWK=awk
18567 _ACEOF
18569 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18570 # The default lists apply if the user does not specify any file.
18571 ac_need_defaults=:
18572 while test $# != 0
18574 case $1 in
18575 --*=?*)
18576 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18577 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18578 ac_shift=:
18580 --*=)
18581 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18582 ac_optarg=
18583 ac_shift=:
18586 ac_option=$1
18587 ac_optarg=$2
18588 ac_shift=shift
18590 esac
18592 case $ac_option in
18593 # Handling of the options.
18594 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18595 ac_cs_recheck=: ;;
18596 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18597 $as_echo "$ac_cs_version"; exit ;;
18598 --config | --confi | --conf | --con | --co | --c )
18599 $as_echo "$ac_cs_config"; exit ;;
18600 --debug | --debu | --deb | --de | --d | -d )
18601 debug=: ;;
18602 --file | --fil | --fi | --f )
18603 $ac_shift
18604 case $ac_optarg in
18605 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18606 '') as_fn_error $? "missing file argument" ;;
18607 esac
18608 as_fn_append CONFIG_FILES " '$ac_optarg'"
18609 ac_need_defaults=false;;
18610 --header | --heade | --head | --hea )
18611 $ac_shift
18612 case $ac_optarg in
18613 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18614 esac
18615 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18616 ac_need_defaults=false;;
18617 --he | --h)
18618 # Conflict between --help and --header
18619 as_fn_error $? "ambiguous option: \`$1'
18620 Try \`$0 --help' for more information.";;
18621 --help | --hel | -h )
18622 $as_echo "$ac_cs_usage"; exit ;;
18623 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18624 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18625 ac_cs_silent=: ;;
18627 # This is an error.
18628 -*) as_fn_error $? "unrecognized option: \`$1'
18629 Try \`$0 --help' for more information." ;;
18631 *) as_fn_append ac_config_targets " $1"
18632 ac_need_defaults=false ;;
18634 esac
18635 shift
18636 done
18638 ac_configure_extra_args=
18640 if $ac_cs_silent; then
18641 exec 6>/dev/null
18642 ac_configure_extra_args="$ac_configure_extra_args --silent"
18645 _ACEOF
18646 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18647 if \$ac_cs_recheck; then
18648 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18649 shift
18650 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18651 CONFIG_SHELL='$SHELL'
18652 export CONFIG_SHELL
18653 exec "\$@"
18656 _ACEOF
18657 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18658 exec 5>>config.log
18660 echo
18661 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18662 ## Running $as_me. ##
18663 _ASBOX
18664 $as_echo "$ac_log"
18665 } >&5
18667 _ACEOF
18668 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18670 # INIT-COMMANDS
18672 wine_fn_output_makedep ()
18674 as_dir=tools; as_fn_mkdir_p
18675 $CC -Iinclude -I$srcdir/include -D__WINESRC__ $EXTRACFLAGS $CPPFLAGS $CFLAGS -o tools/makedep$ac_exeext $srcdir/tools/makedep.c $LDFLAGS
18677 wine_fn_output_makefile ()
18679 cat Make.tmp - <<\_WINE_EOF >\$tmp/makefile && mv -f \$tmp/makefile \$1 && rm -f Make.tmp && "$wine_makedep" . && return
18680 `cat $wine_rules_file`
18681 _WINE_EOF
18682 as_fn_error $? "could not create Makefile" "$LINENO" 5
18684 wine_fn_output_gitignore ()
18686 sort <<\_WINE_EOF >\$tmp/gitignore && mv -f \$tmp/gitignore \$1 && return
18687 $GITIGNORE
18688 _WINE_EOF
18689 as_fn_error $? "could not create .gitignore" "$LINENO" 5
18692 _ACEOF
18694 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18696 # Handling of arguments.
18697 for ac_config_target in $ac_config_targets
18699 case $ac_config_target in
18700 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
18701 "include/stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/stamp-h" ;;
18702 "fonts/marlett.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/marlett.ttf:fonts/marlett.ttf" ;;
18703 "fonts/symbol.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/symbol.ttf:fonts/symbol.ttf" ;;
18704 "fonts/tahoma.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahoma.ttf:fonts/tahoma.ttf" ;;
18705 "fonts/tahomabd.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahomabd.ttf:fonts/tahomabd.ttf" ;;
18706 "loader/l_intl.nls") CONFIG_LINKS="$CONFIG_LINKS loader/l_intl.nls:loader/l_intl.nls" ;;
18707 "po/LINGUAS") CONFIG_LINKS="$CONFIG_LINKS po/LINGUAS:po/LINGUAS" ;;
18708 "wine") CONFIG_LINKS="$CONFIG_LINKS wine:tools/winewrapper" ;;
18709 "wine64") CONFIG_LINKS="$CONFIG_LINKS wine64:tools/winewrapper" ;;
18710 "tools/makedep") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/makedep" ;;
18711 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
18712 "Make.tmp") CONFIG_FILES="$CONFIG_FILES Make.tmp:Make.vars.in:Makefile.in" ;;
18713 ".gitignore") CONFIG_COMMANDS="$CONFIG_COMMANDS .gitignore" ;;
18715 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18716 esac
18717 done
18720 # If the user did not use the arguments to specify the items to instantiate,
18721 # then the envvar interface is used. Set only those that are not.
18722 # We use the long form for the default assignment because of an extremely
18723 # bizarre bug on SunOS 4.1.3.
18724 if $ac_need_defaults; then
18725 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18726 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18727 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
18728 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18731 # Have a temporary directory for convenience. Make it in the build tree
18732 # simply because there is no reason against having it here, and in addition,
18733 # creating and moving files from /tmp can sometimes cause problems.
18734 # Hook for its removal unless debugging.
18735 # Note that there is a small window in which the directory will not be cleaned:
18736 # after its creation but before its name has been assigned to `$tmp'.
18737 $debug ||
18739 tmp= ac_tmp=
18740 trap 'exit_status=$?
18741 : "${ac_tmp:=$tmp}"
18742 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18744 trap 'as_fn_exit 1' 1 2 13 15
18746 # Create a (secure) tmp directory for tmp files.
18749 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18750 test -d "$tmp"
18751 } ||
18753 tmp=./conf$$-$RANDOM
18754 (umask 077 && mkdir "$tmp")
18755 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18756 ac_tmp=$tmp
18758 # Set up the scripts for CONFIG_FILES section.
18759 # No need to generate them if there are no CONFIG_FILES.
18760 # This happens for instance with `./config.status config.h'.
18761 if test -n "$CONFIG_FILES"; then
18764 ac_cr=`echo X | tr X '\015'`
18765 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18766 # But we know of no other shell where ac_cr would be empty at this
18767 # point, so we can use a bashism as a fallback.
18768 if test "x$ac_cr" = x; then
18769 eval ac_cr=\$\'\\r\'
18771 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18772 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18773 ac_cs_awk_cr='\\r'
18774 else
18775 ac_cs_awk_cr=$ac_cr
18778 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18779 _ACEOF
18783 echo "cat >conf$$subs.awk <<_ACEOF" &&
18784 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18785 echo "_ACEOF"
18786 } >conf$$subs.sh ||
18787 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18788 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18789 ac_delim='%!_!# '
18790 for ac_last_try in false false false false false :; do
18791 . ./conf$$subs.sh ||
18792 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18794 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18795 if test $ac_delim_n = $ac_delim_num; then
18796 break
18797 elif $ac_last_try; then
18798 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18799 else
18800 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18802 done
18803 rm -f conf$$subs.sh
18805 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18806 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18807 _ACEOF
18808 sed -n '
18810 s/^/S["/; s/!.*/"]=/
18813 s/^[^!]*!//
18814 :repl
18815 t repl
18816 s/'"$ac_delim"'$//
18817 t delim
18820 s/\(.\{148\}\)..*/\1/
18821 t more1
18822 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18825 b repl
18826 :more1
18827 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18830 s/.\{148\}//
18831 t nl
18832 :delim
18834 s/\(.\{148\}\)..*/\1/
18835 t more2
18836 s/["\\]/\\&/g; s/^/"/; s/$/"/
18839 :more2
18840 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18843 s/.\{148\}//
18844 t delim
18845 ' <conf$$subs.awk | sed '
18846 /^[^""]/{
18848 s/\n//
18850 ' >>$CONFIG_STATUS || ac_write_fail=1
18851 rm -f conf$$subs.awk
18852 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18853 _ACAWK
18854 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18855 for (key in S) S_is_set[key] = 1
18856 FS = "\a"
18860 line = $ 0
18861 nfields = split(line, field, "@")
18862 substed = 0
18863 len = length(field[1])
18864 for (i = 2; i < nfields; i++) {
18865 key = field[i]
18866 keylen = length(key)
18867 if (S_is_set[key]) {
18868 value = S[key]
18869 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18870 len += length(value) + length(field[++i])
18871 substed = 1
18872 } else
18873 len += 1 + keylen
18876 print line
18879 _ACAWK
18880 _ACEOF
18881 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18882 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18883 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18884 else
18886 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18887 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18888 _ACEOF
18890 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18891 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18892 # trailing colons and then remove the whole line if VPATH becomes empty
18893 # (actually we leave an empty line to preserve line numbers).
18894 if test "x$srcdir" = x.; then
18895 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18897 s///
18898 s/^/:/
18899 s/[ ]*$/:/
18900 s/:\$(srcdir):/:/g
18901 s/:\${srcdir}:/:/g
18902 s/:@srcdir@:/:/g
18903 s/^:*//
18904 s/:*$//
18906 s/\(=[ ]*\).*/\1/
18908 s/\n//
18909 s/^[^=]*=[ ]*$//
18913 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18914 fi # test -n "$CONFIG_FILES"
18916 # Set up the scripts for CONFIG_HEADERS section.
18917 # No need to generate them if there are no CONFIG_HEADERS.
18918 # This happens for instance with `./config.status Makefile'.
18919 if test -n "$CONFIG_HEADERS"; then
18920 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18921 BEGIN {
18922 _ACEOF
18924 # Transform confdefs.h into an awk script `defines.awk', embedded as
18925 # here-document in config.status, that substitutes the proper values into
18926 # config.h.in to produce config.h.
18928 # Create a delimiter string that does not exist in confdefs.h, to ease
18929 # handling of long lines.
18930 ac_delim='%!_!# '
18931 for ac_last_try in false false :; do
18932 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18933 if test -z "$ac_tt"; then
18934 break
18935 elif $ac_last_try; then
18936 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18937 else
18938 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18940 done
18942 # For the awk script, D is an array of macro values keyed by name,
18943 # likewise P contains macro parameters if any. Preserve backslash
18944 # newline sequences.
18946 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18947 sed -n '
18948 s/.\{148\}/&'"$ac_delim"'/g
18949 t rset
18950 :rset
18951 s/^[ ]*#[ ]*define[ ][ ]*/ /
18952 t def
18954 :def
18955 s/\\$//
18956 t bsnl
18957 s/["\\]/\\&/g
18958 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18959 D["\1"]=" \3"/p
18960 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18962 :bsnl
18963 s/["\\]/\\&/g
18964 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18965 D["\1"]=" \3\\\\\\n"\\/p
18966 t cont
18967 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18968 t cont
18970 :cont
18972 s/.\{148\}/&'"$ac_delim"'/g
18973 t clear
18974 :clear
18975 s/\\$//
18976 t bsnlc
18977 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18979 :bsnlc
18980 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18981 b cont
18982 ' <confdefs.h | sed '
18983 s/'"$ac_delim"'/"\\\
18984 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18986 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18987 for (key in D) D_is_set[key] = 1
18988 FS = "\a"
18990 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18991 line = \$ 0
18992 split(line, arg, " ")
18993 if (arg[1] == "#") {
18994 defundef = arg[2]
18995 mac1 = arg[3]
18996 } else {
18997 defundef = substr(arg[1], 2)
18998 mac1 = arg[2]
19000 split(mac1, mac2, "(") #)
19001 macro = mac2[1]
19002 prefix = substr(line, 1, index(line, defundef) - 1)
19003 if (D_is_set[macro]) {
19004 # Preserve the white space surrounding the "#".
19005 print prefix "define", macro P[macro] D[macro]
19006 next
19007 } else {
19008 # Replace #undef with comments. This is necessary, for example,
19009 # in the case of _POSIX_SOURCE, which is predefined and required
19010 # on some systems where configure will not decide to define it.
19011 if (defundef == "undef") {
19012 print "/*", prefix defundef, macro, "*/"
19013 next
19017 { print }
19018 _ACAWK
19019 _ACEOF
19020 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19021 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19022 fi # test -n "$CONFIG_HEADERS"
19025 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
19026 shift
19027 for ac_tag
19029 case $ac_tag in
19030 :[FHLC]) ac_mode=$ac_tag; continue;;
19031 esac
19032 case $ac_mode$ac_tag in
19033 :[FHL]*:*);;
19034 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19035 :[FH]-) ac_tag=-:-;;
19036 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19037 esac
19038 ac_save_IFS=$IFS
19039 IFS=:
19040 set x $ac_tag
19041 IFS=$ac_save_IFS
19042 shift
19043 ac_file=$1
19044 shift
19046 case $ac_mode in
19047 :L) ac_source=$1;;
19048 :[FH])
19049 ac_file_inputs=
19050 for ac_f
19052 case $ac_f in
19053 -) ac_f="$ac_tmp/stdin";;
19054 *) # Look for the file first in the build tree, then in the source tree
19055 # (if the path is not absolute). The absolute path cannot be DOS-style,
19056 # because $ac_f cannot contain `:'.
19057 test -f "$ac_f" ||
19058 case $ac_f in
19059 [\\/$]*) false;;
19060 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19061 esac ||
19062 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19063 esac
19064 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19065 as_fn_append ac_file_inputs " '$ac_f'"
19066 done
19068 # Let's still pretend it is `configure' which instantiates (i.e., don't
19069 # use $as_me), people would be surprised to read:
19070 # /* config.h. Generated by config.status. */
19071 configure_input='Generated from '`
19072 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19073 `' by configure.'
19074 if test x"$ac_file" != x-; then
19075 configure_input="$ac_file. $configure_input"
19076 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19077 $as_echo "$as_me: creating $ac_file" >&6;}
19079 # Neutralize special characters interpreted by sed in replacement strings.
19080 case $configure_input in #(
19081 *\&* | *\|* | *\\* )
19082 ac_sed_conf_input=`$as_echo "$configure_input" |
19083 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19084 *) ac_sed_conf_input=$configure_input;;
19085 esac
19087 case $ac_tag in
19088 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19089 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19090 esac
19092 esac
19094 ac_dir=`$as_dirname -- "$ac_file" ||
19095 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19096 X"$ac_file" : 'X\(//\)[^/]' \| \
19097 X"$ac_file" : 'X\(//\)$' \| \
19098 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19099 $as_echo X"$ac_file" |
19100 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19101 s//\1/
19104 /^X\(\/\/\)[^/].*/{
19105 s//\1/
19108 /^X\(\/\/\)$/{
19109 s//\1/
19112 /^X\(\/\).*/{
19113 s//\1/
19116 s/.*/./; q'`
19117 as_dir="$ac_dir"; as_fn_mkdir_p
19118 ac_builddir=.
19120 case "$ac_dir" in
19121 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19123 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19124 # A ".." for each directory in $ac_dir_suffix.
19125 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19126 case $ac_top_builddir_sub in
19127 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19128 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19129 esac ;;
19130 esac
19131 ac_abs_top_builddir=$ac_pwd
19132 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19133 # for backward compatibility:
19134 ac_top_builddir=$ac_top_build_prefix
19136 case $srcdir in
19137 .) # We are building in place.
19138 ac_srcdir=.
19139 ac_top_srcdir=$ac_top_builddir_sub
19140 ac_abs_top_srcdir=$ac_pwd ;;
19141 [\\/]* | ?:[\\/]* ) # Absolute name.
19142 ac_srcdir=$srcdir$ac_dir_suffix;
19143 ac_top_srcdir=$srcdir
19144 ac_abs_top_srcdir=$srcdir ;;
19145 *) # Relative name.
19146 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19147 ac_top_srcdir=$ac_top_build_prefix$srcdir
19148 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19149 esac
19150 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19153 case $ac_mode in
19156 # CONFIG_FILE
19159 _ACEOF
19161 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19162 # If the template does not know about datarootdir, expand it.
19163 # FIXME: This hack should be removed a few years after 2.60.
19164 ac_datarootdir_hack=; ac_datarootdir_seen=
19165 ac_sed_dataroot='
19166 /datarootdir/ {
19170 /@datadir@/p
19171 /@docdir@/p
19172 /@infodir@/p
19173 /@localedir@/p
19174 /@mandir@/p'
19175 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19176 *datarootdir*) ac_datarootdir_seen=yes;;
19177 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19178 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19179 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19180 _ACEOF
19181 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19182 ac_datarootdir_hack='
19183 s&@datadir@&$datadir&g
19184 s&@docdir@&$docdir&g
19185 s&@infodir@&$infodir&g
19186 s&@localedir@&$localedir&g
19187 s&@mandir@&$mandir&g
19188 s&\\\${datarootdir}&$datarootdir&g' ;;
19189 esac
19190 _ACEOF
19192 # Neutralize VPATH when `$srcdir' = `.'.
19193 # Shell code in configure.ac might set extrasub.
19194 # FIXME: do we really want to maintain this feature?
19195 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19196 ac_sed_extra="$ac_vpsub
19197 $extrasub
19198 _ACEOF
19199 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19201 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19202 s|@configure_input@|$ac_sed_conf_input|;t t
19203 s&@top_builddir@&$ac_top_builddir_sub&;t t
19204 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19205 s&@srcdir@&$ac_srcdir&;t t
19206 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19207 s&@top_srcdir@&$ac_top_srcdir&;t t
19208 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19209 s&@builddir@&$ac_builddir&;t t
19210 s&@abs_builddir@&$ac_abs_builddir&;t t
19211 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19212 $ac_datarootdir_hack
19214 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19215 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19217 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19218 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19219 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19220 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19222 which seems to be undefined. Please make sure it is defined" >&5
19223 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19224 which seems to be undefined. Please make sure it is defined" >&2;}
19226 rm -f "$ac_tmp/stdin"
19227 case $ac_file in
19228 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19229 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19230 esac \
19231 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19235 # CONFIG_HEADER
19237 if test x"$ac_file" != x-; then
19239 $as_echo "/* $configure_input */" \
19240 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19241 } >"$ac_tmp/config.h" \
19242 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19243 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19244 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19245 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19246 else
19247 rm -f "$ac_file"
19248 mv "$ac_tmp/config.h" "$ac_file" \
19249 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19251 else
19252 $as_echo "/* $configure_input */" \
19253 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19254 || as_fn_error $? "could not create -" "$LINENO" 5
19259 # CONFIG_LINK
19262 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
19264 else
19265 # Prefer the file from the source tree if names are identical.
19266 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
19267 ac_source=$srcdir/$ac_source
19270 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
19271 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
19273 if test ! -r "$ac_source"; then
19274 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
19276 rm -f "$ac_file"
19278 # Try a relative symlink, then a hard link, then a copy.
19279 case $ac_source in
19280 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
19281 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
19282 esac
19283 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
19284 ln "$ac_source" "$ac_file" 2>/dev/null ||
19285 cp -p "$ac_source" "$ac_file" ||
19286 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
19289 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19290 $as_echo "$as_me: executing $ac_file commands" >&6;}
19292 esac
19295 case $ac_file$ac_mode in
19296 "include/stamp-h":C) echo timestamp > include/stamp-h ;;
19297 "tools/makedep":C) wine_fn_output_makedep || as_fn_exit $? ;;
19298 "Makefile":C) wine_fn_output_makefile Makefile ;;
19299 ".gitignore":C) wine_fn_output_gitignore .gitignore ;;
19301 esac
19302 done # for ac_tag
19305 as_fn_exit 0
19306 _ACEOF
19307 ac_clean_files=$ac_clean_files_save
19309 test $ac_write_fail = 0 ||
19310 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19313 # configure is writing to config.log, and then calls config.status.
19314 # config.status does its own redirection, appending to config.log.
19315 # Unfortunately, on DOS this fails, as config.log is still kept open
19316 # by configure, so config.status won't be able to write to it; its
19317 # output is simply discarded. So we exec the FD to /dev/null,
19318 # effectively closing config.log, so it can be properly (re)opened and
19319 # appended to by config.status. When coming back to configure, we
19320 # need to make the FD available again.
19321 if test "$no_create" != yes; then
19322 ac_cs_success=:
19323 ac_config_status_args=
19324 test "$silent" = yes &&
19325 ac_config_status_args="$ac_config_status_args --quiet"
19326 exec 5>/dev/null
19327 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19328 exec 5>>config.log
19329 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19330 # would make configure fail if this is the last instruction.
19331 $ac_cs_success || as_fn_exit 1
19333 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19334 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19335 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19339 if test "$no_create" = "yes"
19340 then
19341 exit 0
19344 ac_save_IFS="$IFS"
19345 if test "x$wine_notices != "x; then
19346 echo >&6
19347 IFS="|"
19348 for msg in $wine_notices; do
19349 IFS="$ac_save_IFS"
19350 if ${msg:+false} :; then :
19352 else
19353 { $as_echo "$as_me:${as_lineno-$LINENO}: $msg" >&5
19354 $as_echo "$as_me: $msg" >&6;}
19356 done
19358 IFS="|"
19359 for msg in $wine_warnings; do
19360 IFS="$ac_save_IFS"
19361 if ${msg:+false} :; then :
19363 else
19364 echo >&2
19365 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $msg" >&5
19366 $as_echo "$as_me: WARNING: $msg" >&2;}
19368 done
19369 IFS="$ac_save_IFS"
19371 $as_echo "
19372 $as_me: Finished. Do '${ac_make}' to compile Wine.
19373 " >&6