mshtml: Handle allocation failure during collection creation (Coverity).
[wine.git] / configure
blobf47c09ee1384c9265ee54ad5885de55cada5ef27
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for Wine 1.7.44.
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.44'
584 PACKAGE_STRING='Wine 1.7.44'
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_1_0
874 enable_api_ms_win_core_heap_l1_2_0
875 enable_api_ms_win_core_heap_obsolete_l1_1_0
876 enable_api_ms_win_core_interlocked_l1_1_0
877 enable_api_ms_win_core_interlocked_l1_2_0
878 enable_api_ms_win_core_io_l1_1_1
879 enable_api_ms_win_core_kernel32_legacy_l1_1_0
880 enable_api_ms_win_core_libraryloader_l1_1_0
881 enable_api_ms_win_core_libraryloader_l1_1_1
882 enable_api_ms_win_core_localization_l1_2_0
883 enable_api_ms_win_core_localization_l1_2_1
884 enable_api_ms_win_core_localization_obsolete_l1_1_0
885 enable_api_ms_win_core_localregistry_l1_1_0
886 enable_api_ms_win_core_memory_l1_1_0
887 enable_api_ms_win_core_memory_l1_1_1
888 enable_api_ms_win_core_misc_l1_1_0
889 enable_api_ms_win_core_namedpipe_l1_1_0
890 enable_api_ms_win_core_namedpipe_l1_2_0
891 enable_api_ms_win_core_processenvironment_l1_1_0
892 enable_api_ms_win_core_processenvironment_l1_2_0
893 enable_api_ms_win_core_processthreads_l1_1_0
894 enable_api_ms_win_core_processthreads_l1_1_1
895 enable_api_ms_win_core_processthreads_l1_1_2
896 enable_api_ms_win_core_profile_l1_1_0
897 enable_api_ms_win_core_psapi_l1_1_0
898 enable_api_ms_win_core_registry_l1_1_0
899 enable_api_ms_win_core_rtlsupport_l1_1_0
900 enable_api_ms_win_core_rtlsupport_l1_2_0
901 enable_api_ms_win_core_shlwapi_legacy_l1_1_0
902 enable_api_ms_win_core_string_l1_1_0
903 enable_api_ms_win_core_synch_l1_1_0
904 enable_api_ms_win_core_synch_l1_2_0
905 enable_api_ms_win_core_sysinfo_l1_1_0
906 enable_api_ms_win_core_sysinfo_l1_2_0
907 enable_api_ms_win_core_sysinfo_l1_2_1
908 enable_api_ms_win_core_threadpool_legacy_l1_1_0
909 enable_api_ms_win_core_timezone_l1_1_0
910 enable_api_ms_win_core_url_l1_1_0
911 enable_api_ms_win_core_util_l1_1_0
912 enable_api_ms_win_core_winrt_error_l1_1_0
913 enable_api_ms_win_core_winrt_error_l1_1_1
914 enable_api_ms_win_core_winrt_l1_1_0
915 enable_api_ms_win_core_winrt_string_l1_1_0
916 enable_api_ms_win_core_xstate_l2_1_0
917 enable_api_ms_win_downlevel_advapi32_l1_1_0
918 enable_api_ms_win_downlevel_advapi32_l2_1_0
919 enable_api_ms_win_downlevel_normaliz_l1_1_0
920 enable_api_ms_win_downlevel_ole32_l1_1_0
921 enable_api_ms_win_downlevel_shell32_l1_1_0
922 enable_api_ms_win_downlevel_shlwapi_l1_1_0
923 enable_api_ms_win_downlevel_shlwapi_l2_1_0
924 enable_api_ms_win_downlevel_user32_l1_1_0
925 enable_api_ms_win_downlevel_version_l1_1_0
926 enable_api_ms_win_eventing_provider_l1_1_0
927 enable_api_ms_win_ntuser_dc_access_l1_1_0
928 enable_api_ms_win_security_base_l1_1_0
929 enable_api_ms_win_security_base_l1_2_0
930 enable_api_ms_win_security_sddl_l1_1_0
931 enable_api_ms_win_service_core_l1_1_1
932 enable_api_ms_win_service_management_l1_1_0
933 enable_api_ms_win_service_winsvc_l1_2_0
934 enable_apphelp
935 enable_appwiz_cpl
936 enable_atl
937 enable_atl100
938 enable_atl110
939 enable_atl80
940 enable_atl90
941 enable_authz
942 enable_avicap32
943 enable_avifil32
944 enable_avrt
945 enable_bcrypt
946 enable_browseui
947 enable_cabinet
948 enable_capi2032
949 enable_cards
950 enable_cfgmgr32
951 enable_clusapi
952 enable_combase
953 enable_comcat
954 enable_comctl32
955 enable_comdlg32
956 enable_compstui
957 enable_comsvcs
958 enable_connect
959 enable_credui
960 enable_crtdll
961 enable_crypt32
962 enable_cryptdlg
963 enable_cryptdll
964 enable_cryptext
965 enable_cryptnet
966 enable_cryptui
967 enable_ctapi32
968 enable_ctl3d32
969 enable_d2d1
970 enable_d3d10
971 enable_d3d10_1
972 enable_d3d10core
973 enable_d3d11
974 enable_d3d8
975 enable_d3d9
976 enable_d3dcompiler_33
977 enable_d3dcompiler_34
978 enable_d3dcompiler_35
979 enable_d3dcompiler_36
980 enable_d3dcompiler_37
981 enable_d3dcompiler_38
982 enable_d3dcompiler_39
983 enable_d3dcompiler_40
984 enable_d3dcompiler_41
985 enable_d3dcompiler_42
986 enable_d3dcompiler_43
987 enable_d3dim
988 enable_d3drm
989 enable_d3dx10_33
990 enable_d3dx10_34
991 enable_d3dx10_35
992 enable_d3dx10_36
993 enable_d3dx10_37
994 enable_d3dx10_38
995 enable_d3dx10_39
996 enable_d3dx10_40
997 enable_d3dx10_41
998 enable_d3dx10_42
999 enable_d3dx10_43
1000 enable_d3dx11_42
1001 enable_d3dx11_43
1002 enable_d3dx9_24
1003 enable_d3dx9_25
1004 enable_d3dx9_26
1005 enable_d3dx9_27
1006 enable_d3dx9_28
1007 enable_d3dx9_29
1008 enable_d3dx9_30
1009 enable_d3dx9_31
1010 enable_d3dx9_32
1011 enable_d3dx9_33
1012 enable_d3dx9_34
1013 enable_d3dx9_35
1014 enable_d3dx9_36
1015 enable_d3dx9_37
1016 enable_d3dx9_38
1017 enable_d3dx9_39
1018 enable_d3dx9_40
1019 enable_d3dx9_41
1020 enable_d3dx9_42
1021 enable_d3dx9_43
1022 enable_d3dxof
1023 enable_dbgeng
1024 enable_dbghelp
1025 enable_dciman32
1026 enable_ddraw
1027 enable_ddrawex
1028 enable_devenum
1029 enable_dhcpcsvc
1030 enable_difxapi
1031 enable_dinput
1032 enable_dinput8
1033 enable_dispex
1034 enable_dmband
1035 enable_dmcompos
1036 enable_dmime
1037 enable_dmloader
1038 enable_dmscript
1039 enable_dmstyle
1040 enable_dmsynth
1041 enable_dmusic
1042 enable_dmusic32
1043 enable_dnsapi
1044 enable_dplay
1045 enable_dplayx
1046 enable_dpnaddr
1047 enable_dpnet
1048 enable_dpnhpast
1049 enable_dpnlobby
1050 enable_dpvoice
1051 enable_dpwsockx
1052 enable_drmclien
1053 enable_dsound
1054 enable_dssenh
1055 enable_dswave
1056 enable_dwmapi
1057 enable_dwrite
1058 enable_dxdiagn
1059 enable_dxgi
1060 enable_dxva2
1061 enable_evr
1062 enable_explorerframe
1063 enable_ext_ms_win_gdi_devcaps_l1_1_0
1064 enable_faultrep
1065 enable_fltlib
1066 enable_fntcache
1067 enable_fontsub
1068 enable_fusion
1069 enable_fwpuclnt
1070 enable_gameux
1071 enable_gdi32
1072 enable_gdiplus
1073 enable_glu32
1074 enable_gphoto2_ds
1075 enable_gpkcsp
1076 enable_hal
1077 enable_hhctrl_ocx
1078 enable_hid
1079 enable_hlink
1080 enable_hnetcfg
1081 enable_httpapi
1082 enable_iccvid
1083 enable_icmp
1084 enable_ieframe
1085 enable_imaadp32_acm
1086 enable_imagehlp
1087 enable_imm32
1088 enable_inetcomm
1089 enable_inetcpl_cpl
1090 enable_inetmib1
1091 enable_infosoft
1092 enable_initpki
1093 enable_inkobj
1094 enable_inseng
1095 enable_iphlpapi
1096 enable_itircl
1097 enable_itss
1098 enable_joy_cpl
1099 enable_jscript
1100 enable_jsproxy
1101 enable_kernel32
1102 enable_ksuser
1103 enable_ktmw32
1104 enable_loadperf
1105 enable_localspl
1106 enable_localui
1107 enable_lz32
1108 enable_mapi32
1109 enable_mapistub
1110 enable_mciavi32
1111 enable_mcicda
1112 enable_mciqtz32
1113 enable_mciseq
1114 enable_mciwave
1115 enable_mf
1116 enable_mfplat
1117 enable_mfreadwrite
1118 enable_mgmtapi
1119 enable_midimap
1120 enable_mlang
1121 enable_mmcndmgr
1122 enable_mmdevapi
1123 enable_mountmgr_sys
1124 enable_mpr
1125 enable_mprapi
1126 enable_msacm32_drv
1127 enable_msacm32
1128 enable_msadp32_acm
1129 enable_msasn1
1130 enable_mscat32
1131 enable_mscms
1132 enable_mscoree
1133 enable_msctf
1134 enable_msctfp
1135 enable_msdaps
1136 enable_msdmo
1137 enable_msftedit
1138 enable_msg711_acm
1139 enable_msgsm32_acm
1140 enable_mshtml_tlb
1141 enable_mshtml
1142 enable_msi
1143 enable_msident
1144 enable_msimg32
1145 enable_msimsg
1146 enable_msimtf
1147 enable_msisip
1148 enable_msisys_ocx
1149 enable_msls31
1150 enable_msnet32
1151 enable_mspatcha
1152 enable_msrle32
1153 enable_mssign32
1154 enable_mssip32
1155 enable_mstask
1156 enable_msvcirt
1157 enable_msvcm80
1158 enable_msvcm90
1159 enable_msvcp100
1160 enable_msvcp110
1161 enable_msvcp120
1162 enable_msvcp120_app
1163 enable_msvcp60
1164 enable_msvcp70
1165 enable_msvcp71
1166 enable_msvcp80
1167 enable_msvcp90
1168 enable_msvcr100
1169 enable_msvcr110
1170 enable_msvcr120
1171 enable_msvcr120_app
1172 enable_msvcr70
1173 enable_msvcr71
1174 enable_msvcr80
1175 enable_msvcr90
1176 enable_msvcrt
1177 enable_msvcrt20
1178 enable_msvcrt40
1179 enable_msvcrtd
1180 enable_msvfw32
1181 enable_msvidc32
1182 enable_mswsock
1183 enable_msxml
1184 enable_msxml2
1185 enable_msxml3
1186 enable_msxml4
1187 enable_msxml6
1188 enable_nddeapi
1189 enable_ndis_sys
1190 enable_netapi32
1191 enable_netcfgx
1192 enable_netprofm
1193 enable_newdev
1194 enable_normaliz
1195 enable_npmshtml
1196 enable_npptools
1197 enable_ntdll
1198 enable_ntdsapi
1199 enable_ntoskrnl_exe
1200 enable_ntprint
1201 enable_objsel
1202 enable_odbc32
1203 enable_odbccp32
1204 enable_odbccu32
1205 enable_ole32
1206 enable_oleacc
1207 enable_oleaut32
1208 enable_olecli32
1209 enable_oledb32
1210 enable_oledlg
1211 enable_olepro32
1212 enable_olesvr32
1213 enable_olethk32
1214 enable_openal32
1215 enable_opencl
1216 enable_opengl32
1217 enable_packager
1218 enable_pdh
1219 enable_photometadatahandler
1220 enable_pidgen
1221 enable_powrprof
1222 enable_printui
1223 enable_prntvpt
1224 enable_propsys
1225 enable_psapi
1226 enable_pstorec
1227 enable_qcap
1228 enable_qedit
1229 enable_qmgr
1230 enable_qmgrprxy
1231 enable_quartz
1232 enable_query
1233 enable_rasapi32
1234 enable_rasdlg
1235 enable_regapi
1236 enable_resutils
1237 enable_riched20
1238 enable_riched32
1239 enable_rpcrt4
1240 enable_rsabase
1241 enable_rsaenh
1242 enable_rstrtmgr
1243 enable_rtutils
1244 enable_samlib
1245 enable_sane_ds
1246 enable_scarddlg
1247 enable_sccbase
1248 enable_schannel
1249 enable_schedsvc
1250 enable_scrrun
1251 enable_scsiport_sys
1252 enable_secur32
1253 enable_security
1254 enable_sensapi
1255 enable_serialui
1256 enable_setupapi
1257 enable_sfc
1258 enable_sfc_os
1259 enable_shdoclc
1260 enable_shdocvw
1261 enable_shell32
1262 enable_shfolder
1263 enable_shlwapi
1264 enable_slbcsp
1265 enable_slc
1266 enable_snmpapi
1267 enable_softpub
1268 enable_spoolss
1269 enable_stdole2_tlb
1270 enable_stdole32_tlb
1271 enable_sti
1272 enable_svrapi
1273 enable_sxs
1274 enable_t2embed
1275 enable_tapi32
1276 enable_taskschd
1277 enable_traffic
1278 enable_twain_32
1279 enable_unicows
1280 enable_updspapi
1281 enable_url
1282 enable_urlmon
1283 enable_usbd_sys
1284 enable_user32
1285 enable_userenv
1286 enable_usp10
1287 enable_uxtheme
1288 enable_vbscript
1289 enable_vcomp
1290 enable_vcomp100
1291 enable_vcomp90
1292 enable_vdmdbg
1293 enable_version
1294 enable_vssapi
1295 enable_wbemdisp
1296 enable_wbemprox
1297 enable_webservices
1298 enable_wer
1299 enable_wevtapi
1300 enable_wiaservc
1301 enable_windowscodecs
1302 enable_windowscodecsext
1303 enable_winealsa_drv
1304 enable_winecoreaudio_drv
1305 enable_wined3d
1306 enable_winegstreamer
1307 enable_winejoystick_drv
1308 enable_winemac_drv
1309 enable_winemapi
1310 enable_winemp3_acm
1311 enable_wineoss_drv
1312 enable_wineps_drv
1313 enable_wineqtdecoder
1314 enable_winex11_drv
1315 enable_wing32
1316 enable_winhttp
1317 enable_wininet
1318 enable_winmm
1319 enable_winnls32
1320 enable_winscard
1321 enable_winspool_drv
1322 enable_winsta
1323 enable_wintab32
1324 enable_wintrust
1325 enable_wlanapi
1326 enable_wldap32
1327 enable_wmi
1328 enable_wmiutils
1329 enable_wmp
1330 enable_wmvcore
1331 enable_wnaspi32
1332 enable_wpcap
1333 enable_ws2_32
1334 enable_wshom_ocx
1335 enable_wsnmp32
1336 enable_wsock32
1337 enable_wtsapi32
1338 enable_wuapi
1339 enable_wuaueng
1340 enable_x3daudio1_1
1341 enable_x3daudio1_2
1342 enable_x3daudio1_3
1343 enable_x3daudio1_4
1344 enable_x3daudio1_5
1345 enable_x3daudio1_6
1346 enable_x3daudio1_7
1347 enable_xapofx1_1
1348 enable_xapofx1_3
1349 enable_xapofx1_4
1350 enable_xapofx1_5
1351 enable_xaudio2_7
1352 enable_xinput1_1
1353 enable_xinput1_2
1354 enable_xinput1_3
1355 enable_xinput1_4
1356 enable_xinput9_1_0
1357 enable_xmllite
1358 enable_xolehlp
1359 enable_xpsprint
1360 enable_xpssvcs
1361 enable_documentation
1362 enable_fonts
1363 enable_include
1364 enable_libs_port
1365 enable_libs_wine
1366 enable_libs_wpp
1367 enable_loader
1368 enable_arp
1369 enable_aspnet_regiis
1370 enable_attrib
1371 enable_cabarc
1372 enable_cacls
1373 enable_clock
1374 enable_cmd
1375 enable_conhost
1376 enable_control
1377 enable_cscript
1378 enable_dpnsvr
1379 enable_dxdiag
1380 enable_eject
1381 enable_expand
1382 enable_explorer
1383 enable_extrac32
1384 enable_findstr
1385 enable_hh
1386 enable_hostname
1387 enable_icinfo
1388 enable_iexplore
1389 enable_ipconfig
1390 enable_lodctr
1391 enable_mofcomp
1392 enable_mshta
1393 enable_msiexec
1394 enable_net
1395 enable_netsh
1396 enable_netstat
1397 enable_ngen
1398 enable_notepad
1399 enable_oleview
1400 enable_ping
1401 enable_plugplay
1402 enable_presentationfontcache
1403 enable_progman
1404 enable_reg
1405 enable_regasm
1406 enable_regedit
1407 enable_regsvcs
1408 enable_regsvr32
1409 enable_rpcss
1410 enable_rundll32
1411 enable_sc
1412 enable_schtasks
1413 enable_sdbinst
1414 enable_secedit
1415 enable_servicemodelreg
1416 enable_services
1417 enable_spoolsv
1418 enable_start
1419 enable_svchost
1420 enable_systeminfo
1421 enable_taskkill
1422 enable_tasklist
1423 enable_taskmgr
1424 enable_termsv
1425 enable_uninstaller
1426 enable_unlodctr
1427 enable_view
1428 enable_wevtutil
1429 enable_wineboot
1430 enable_winebrowser
1431 enable_winecfg
1432 enable_wineconsole
1433 enable_winedbg
1434 enable_winedevice
1435 enable_winefile
1436 enable_winemenubuilder
1437 enable_winemine
1438 enable_winemsibuilder
1439 enable_winepath
1440 enable_winetest
1441 enable_winhlp32
1442 enable_winver
1443 enable_wmic
1444 enable_wordpad
1445 enable_write
1446 enable_wscript
1447 enable_wusa
1448 enable_xcopy
1449 enable_server
1450 enable_tools
1452 ac_precious_vars='build_alias
1453 host_alias
1454 target_alias
1456 CFLAGS
1457 LDFLAGS
1458 LIBS
1459 CPPFLAGS
1461 CXXFLAGS
1464 XMKMF
1465 XML2_CFLAGS
1466 XML2_LIBS
1467 XSLT_CFLAGS
1468 XSLT_LIBS
1469 DBUS_CFLAGS
1470 DBUS_LIBS
1471 HAL_CFLAGS
1472 HAL_LIBS
1473 GNUTLS_CFLAGS
1474 GNUTLS_LIBS
1475 SANE_CFLAGS
1476 SANE_LIBS
1477 GPHOTO2_CFLAGS
1478 GPHOTO2_LIBS
1479 GPHOTO2_PORT_CFLAGS
1480 GPHOTO2_PORT_LIBS
1481 LCMS2_CFLAGS
1482 LCMS2_LIBS
1483 FREETYPE_CFLAGS
1484 FREETYPE_LIBS
1485 GSTREAMER_CFLAGS
1486 GSTREAMER_LIBS
1487 CAPI20_CFLAGS
1488 CAPI20_LIBS
1489 FONTCONFIG_CFLAGS
1490 FONTCONFIG_LIBS
1491 JPEG_CFLAGS
1492 JPEG_LIBS
1493 PNG_CFLAGS
1494 PNG_LIBS
1495 TIFF_CFLAGS
1496 TIFF_LIBS
1497 MPG123_CFLAGS
1498 MPG123_LIBS'
1501 # Initialize some variables set by options.
1502 ac_init_help=
1503 ac_init_version=false
1504 ac_unrecognized_opts=
1505 ac_unrecognized_sep=
1506 # The variables have the same names as the options, with
1507 # dashes changed to underlines.
1508 cache_file=/dev/null
1509 exec_prefix=NONE
1510 no_create=
1511 no_recursion=
1512 prefix=NONE
1513 program_prefix=NONE
1514 program_suffix=NONE
1515 program_transform_name=s,x,x,
1516 silent=
1517 site=
1518 srcdir=
1519 verbose=
1520 x_includes=NONE
1521 x_libraries=NONE
1523 # Installation directory options.
1524 # These are left unexpanded so users can "make install exec_prefix=/foo"
1525 # and all the variables that are supposed to be based on exec_prefix
1526 # by default will actually change.
1527 # Use braces instead of parens because sh, perl, etc. also accept them.
1528 # (The list follows the same order as the GNU Coding Standards.)
1529 bindir='${exec_prefix}/bin'
1530 sbindir='${exec_prefix}/sbin'
1531 libexecdir='${exec_prefix}/libexec'
1532 datarootdir='${prefix}/share'
1533 datadir='${datarootdir}'
1534 sysconfdir='${prefix}/etc'
1535 sharedstatedir='${prefix}/com'
1536 localstatedir='${prefix}/var'
1537 includedir='${prefix}/include'
1538 oldincludedir='/usr/include'
1539 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1540 infodir='${datarootdir}/info'
1541 htmldir='${docdir}'
1542 dvidir='${docdir}'
1543 pdfdir='${docdir}'
1544 psdir='${docdir}'
1545 libdir='${exec_prefix}/lib'
1546 localedir='${datarootdir}/locale'
1547 mandir='${datarootdir}/man'
1549 ac_prev=
1550 ac_dashdash=
1551 for ac_option
1553 # If the previous option needs an argument, assign it.
1554 if test -n "$ac_prev"; then
1555 eval $ac_prev=\$ac_option
1556 ac_prev=
1557 continue
1560 case $ac_option in
1561 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1562 *=) ac_optarg= ;;
1563 *) ac_optarg=yes ;;
1564 esac
1566 # Accept the important Cygnus configure options, so we can diagnose typos.
1568 case $ac_dashdash$ac_option in
1570 ac_dashdash=yes ;;
1572 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1573 ac_prev=bindir ;;
1574 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1575 bindir=$ac_optarg ;;
1577 -build | --build | --buil | --bui | --bu)
1578 ac_prev=build_alias ;;
1579 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1580 build_alias=$ac_optarg ;;
1582 -cache-file | --cache-file | --cache-fil | --cache-fi \
1583 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1584 ac_prev=cache_file ;;
1585 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1586 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1587 cache_file=$ac_optarg ;;
1589 --config-cache | -C)
1590 cache_file=config.cache ;;
1592 -datadir | --datadir | --datadi | --datad)
1593 ac_prev=datadir ;;
1594 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1595 datadir=$ac_optarg ;;
1597 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1598 | --dataroo | --dataro | --datar)
1599 ac_prev=datarootdir ;;
1600 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1601 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1602 datarootdir=$ac_optarg ;;
1604 -disable-* | --disable-*)
1605 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1606 # Reject names that are not valid shell variable names.
1607 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1608 as_fn_error $? "invalid feature name: $ac_useropt"
1609 ac_useropt_orig=$ac_useropt
1610 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1611 case $ac_user_opts in
1613 "enable_$ac_useropt"
1614 "*) ;;
1615 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1616 ac_unrecognized_sep=', ';;
1617 esac
1618 eval enable_$ac_useropt=no ;;
1620 -docdir | --docdir | --docdi | --doc | --do)
1621 ac_prev=docdir ;;
1622 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1623 docdir=$ac_optarg ;;
1625 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1626 ac_prev=dvidir ;;
1627 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1628 dvidir=$ac_optarg ;;
1630 -enable-* | --enable-*)
1631 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1632 # Reject names that are not valid shell variable names.
1633 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1634 as_fn_error $? "invalid feature name: $ac_useropt"
1635 ac_useropt_orig=$ac_useropt
1636 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1637 case $ac_user_opts in
1639 "enable_$ac_useropt"
1640 "*) ;;
1641 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1642 ac_unrecognized_sep=', ';;
1643 esac
1644 eval enable_$ac_useropt=\$ac_optarg ;;
1646 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1647 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1648 | --exec | --exe | --ex)
1649 ac_prev=exec_prefix ;;
1650 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1651 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1652 | --exec=* | --exe=* | --ex=*)
1653 exec_prefix=$ac_optarg ;;
1655 -gas | --gas | --ga | --g)
1656 # Obsolete; use --with-gas.
1657 with_gas=yes ;;
1659 -help | --help | --hel | --he | -h)
1660 ac_init_help=long ;;
1661 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1662 ac_init_help=recursive ;;
1663 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1664 ac_init_help=short ;;
1666 -host | --host | --hos | --ho)
1667 ac_prev=host_alias ;;
1668 -host=* | --host=* | --hos=* | --ho=*)
1669 host_alias=$ac_optarg ;;
1671 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1672 ac_prev=htmldir ;;
1673 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1674 | --ht=*)
1675 htmldir=$ac_optarg ;;
1677 -includedir | --includedir | --includedi | --included | --include \
1678 | --includ | --inclu | --incl | --inc)
1679 ac_prev=includedir ;;
1680 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1681 | --includ=* | --inclu=* | --incl=* | --inc=*)
1682 includedir=$ac_optarg ;;
1684 -infodir | --infodir | --infodi | --infod | --info | --inf)
1685 ac_prev=infodir ;;
1686 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1687 infodir=$ac_optarg ;;
1689 -libdir | --libdir | --libdi | --libd)
1690 ac_prev=libdir ;;
1691 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1692 libdir=$ac_optarg ;;
1694 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1695 | --libexe | --libex | --libe)
1696 ac_prev=libexecdir ;;
1697 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1698 | --libexe=* | --libex=* | --libe=*)
1699 libexecdir=$ac_optarg ;;
1701 -localedir | --localedir | --localedi | --localed | --locale)
1702 ac_prev=localedir ;;
1703 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1704 localedir=$ac_optarg ;;
1706 -localstatedir | --localstatedir | --localstatedi | --localstated \
1707 | --localstate | --localstat | --localsta | --localst | --locals)
1708 ac_prev=localstatedir ;;
1709 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1710 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1711 localstatedir=$ac_optarg ;;
1713 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1714 ac_prev=mandir ;;
1715 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1716 mandir=$ac_optarg ;;
1718 -nfp | --nfp | --nf)
1719 # Obsolete; use --without-fp.
1720 with_fp=no ;;
1722 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1723 | --no-cr | --no-c | -n)
1724 no_create=yes ;;
1726 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1727 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1728 no_recursion=yes ;;
1730 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1731 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1732 | --oldin | --oldi | --old | --ol | --o)
1733 ac_prev=oldincludedir ;;
1734 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1735 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1736 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1737 oldincludedir=$ac_optarg ;;
1739 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1740 ac_prev=prefix ;;
1741 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1742 prefix=$ac_optarg ;;
1744 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1745 | --program-pre | --program-pr | --program-p)
1746 ac_prev=program_prefix ;;
1747 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1748 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1749 program_prefix=$ac_optarg ;;
1751 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1752 | --program-suf | --program-su | --program-s)
1753 ac_prev=program_suffix ;;
1754 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1755 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1756 program_suffix=$ac_optarg ;;
1758 -program-transform-name | --program-transform-name \
1759 | --program-transform-nam | --program-transform-na \
1760 | --program-transform-n | --program-transform- \
1761 | --program-transform | --program-transfor \
1762 | --program-transfo | --program-transf \
1763 | --program-trans | --program-tran \
1764 | --progr-tra | --program-tr | --program-t)
1765 ac_prev=program_transform_name ;;
1766 -program-transform-name=* | --program-transform-name=* \
1767 | --program-transform-nam=* | --program-transform-na=* \
1768 | --program-transform-n=* | --program-transform-=* \
1769 | --program-transform=* | --program-transfor=* \
1770 | --program-transfo=* | --program-transf=* \
1771 | --program-trans=* | --program-tran=* \
1772 | --progr-tra=* | --program-tr=* | --program-t=*)
1773 program_transform_name=$ac_optarg ;;
1775 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1776 ac_prev=pdfdir ;;
1777 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1778 pdfdir=$ac_optarg ;;
1780 -psdir | --psdir | --psdi | --psd | --ps)
1781 ac_prev=psdir ;;
1782 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1783 psdir=$ac_optarg ;;
1785 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1786 | -silent | --silent | --silen | --sile | --sil)
1787 silent=yes ;;
1789 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1790 ac_prev=sbindir ;;
1791 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1792 | --sbi=* | --sb=*)
1793 sbindir=$ac_optarg ;;
1795 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1796 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1797 | --sharedst | --shareds | --shared | --share | --shar \
1798 | --sha | --sh)
1799 ac_prev=sharedstatedir ;;
1800 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1801 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1802 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1803 | --sha=* | --sh=*)
1804 sharedstatedir=$ac_optarg ;;
1806 -site | --site | --sit)
1807 ac_prev=site ;;
1808 -site=* | --site=* | --sit=*)
1809 site=$ac_optarg ;;
1811 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1812 ac_prev=srcdir ;;
1813 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1814 srcdir=$ac_optarg ;;
1816 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1817 | --syscon | --sysco | --sysc | --sys | --sy)
1818 ac_prev=sysconfdir ;;
1819 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1820 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1821 sysconfdir=$ac_optarg ;;
1823 -target | --target | --targe | --targ | --tar | --ta | --t)
1824 ac_prev=target_alias ;;
1825 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1826 target_alias=$ac_optarg ;;
1828 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1829 verbose=yes ;;
1831 -version | --version | --versio | --versi | --vers | -V)
1832 ac_init_version=: ;;
1834 -with-* | --with-*)
1835 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1836 # Reject names that are not valid shell variable names.
1837 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1838 as_fn_error $? "invalid package name: $ac_useropt"
1839 ac_useropt_orig=$ac_useropt
1840 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1841 case $ac_user_opts in
1843 "with_$ac_useropt"
1844 "*) ;;
1845 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1846 ac_unrecognized_sep=', ';;
1847 esac
1848 eval with_$ac_useropt=\$ac_optarg ;;
1850 -without-* | --without-*)
1851 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1852 # Reject names that are not valid shell variable names.
1853 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1854 as_fn_error $? "invalid package name: $ac_useropt"
1855 ac_useropt_orig=$ac_useropt
1856 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1857 case $ac_user_opts in
1859 "with_$ac_useropt"
1860 "*) ;;
1861 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1862 ac_unrecognized_sep=', ';;
1863 esac
1864 eval with_$ac_useropt=no ;;
1866 --x)
1867 # Obsolete; use --with-x.
1868 with_x=yes ;;
1870 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1871 | --x-incl | --x-inc | --x-in | --x-i)
1872 ac_prev=x_includes ;;
1873 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1874 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1875 x_includes=$ac_optarg ;;
1877 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1878 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1879 ac_prev=x_libraries ;;
1880 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1881 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1882 x_libraries=$ac_optarg ;;
1884 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1885 Try \`$0 --help' for more information"
1888 *=*)
1889 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1890 # Reject names that are not valid shell variable names.
1891 case $ac_envvar in #(
1892 '' | [0-9]* | *[!_$as_cr_alnum]* )
1893 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1894 esac
1895 eval $ac_envvar=\$ac_optarg
1896 export $ac_envvar ;;
1899 # FIXME: should be removed in autoconf 3.0.
1900 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1901 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1902 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1903 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1906 esac
1907 done
1909 if test -n "$ac_prev"; then
1910 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1911 as_fn_error $? "missing argument to $ac_option"
1914 if test -n "$ac_unrecognized_opts"; then
1915 case $enable_option_checking in
1916 no) ;;
1917 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1918 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1919 esac
1922 # Check all directory arguments for consistency.
1923 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1924 datadir sysconfdir sharedstatedir localstatedir includedir \
1925 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1926 libdir localedir mandir
1928 eval ac_val=\$$ac_var
1929 # Remove trailing slashes.
1930 case $ac_val in
1931 */ )
1932 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1933 eval $ac_var=\$ac_val;;
1934 esac
1935 # Be sure to have absolute directory names.
1936 case $ac_val in
1937 [\\/$]* | ?:[\\/]* ) continue;;
1938 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1939 esac
1940 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1941 done
1943 # There might be people who depend on the old broken behavior: `$host'
1944 # used to hold the argument of --host etc.
1945 # FIXME: To remove some day.
1946 build=$build_alias
1947 host=$host_alias
1948 target=$target_alias
1950 # FIXME: To remove some day.
1951 if test "x$host_alias" != x; then
1952 if test "x$build_alias" = x; then
1953 cross_compiling=maybe
1954 elif test "x$build_alias" != "x$host_alias"; then
1955 cross_compiling=yes
1959 ac_tool_prefix=
1960 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1962 test "$silent" = yes && exec 6>/dev/null
1965 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1966 ac_ls_di=`ls -di .` &&
1967 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1968 as_fn_error $? "working directory cannot be determined"
1969 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1970 as_fn_error $? "pwd does not report name of working directory"
1973 # Find the source files, if location was not specified.
1974 if test -z "$srcdir"; then
1975 ac_srcdir_defaulted=yes
1976 # Try the directory containing this script, then the parent directory.
1977 ac_confdir=`$as_dirname -- "$as_myself" ||
1978 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1979 X"$as_myself" : 'X\(//\)[^/]' \| \
1980 X"$as_myself" : 'X\(//\)$' \| \
1981 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1982 $as_echo X"$as_myself" |
1983 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1984 s//\1/
1987 /^X\(\/\/\)[^/].*/{
1988 s//\1/
1991 /^X\(\/\/\)$/{
1992 s//\1/
1995 /^X\(\/\).*/{
1996 s//\1/
1999 s/.*/./; q'`
2000 srcdir=$ac_confdir
2001 if test ! -r "$srcdir/$ac_unique_file"; then
2002 srcdir=..
2004 else
2005 ac_srcdir_defaulted=no
2007 if test ! -r "$srcdir/$ac_unique_file"; then
2008 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
2009 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
2011 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
2012 ac_abs_confdir=`(
2013 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
2014 pwd)`
2015 # When building in place, set srcdir=.
2016 if test "$ac_abs_confdir" = "$ac_pwd"; then
2017 srcdir=.
2019 # Remove unnecessary trailing slashes from srcdir.
2020 # Double slashes in file names in object file debugging info
2021 # mess up M-x gdb in Emacs.
2022 case $srcdir in
2023 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2024 esac
2025 for ac_var in $ac_precious_vars; do
2026 eval ac_env_${ac_var}_set=\${${ac_var}+set}
2027 eval ac_env_${ac_var}_value=\$${ac_var}
2028 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
2029 eval ac_cv_env_${ac_var}_value=\$${ac_var}
2030 done
2033 # Report the --help message.
2035 if test "$ac_init_help" = "long"; then
2036 # Omit some internal or obsolete options to make the list less imposing.
2037 # This message is too long to be a string in the A/UX 3.1 sh.
2038 cat <<_ACEOF
2039 \`configure' configures Wine 1.7.44 to adapt to many kinds of systems.
2041 Usage: $0 [OPTION]... [VAR=VALUE]...
2043 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2044 VAR=VALUE. See below for descriptions of some of the useful variables.
2046 Defaults for the options are specified in brackets.
2048 Configuration:
2049 -h, --help display this help and exit
2050 --help=short display options specific to this package
2051 --help=recursive display the short help of all the included packages
2052 -V, --version display version information and exit
2053 -q, --quiet, --silent do not print \`checking ...' messages
2054 --cache-file=FILE cache test results in FILE [disabled]
2055 -C, --config-cache alias for \`--cache-file=config.cache'
2056 -n, --no-create do not create output files
2057 --srcdir=DIR find the sources in DIR [configure dir or \`..']
2059 Installation directories:
2060 --prefix=PREFIX install architecture-independent files in PREFIX
2061 [$ac_default_prefix]
2062 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
2063 [PREFIX]
2065 By default, \`make install' will install all the files in
2066 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
2067 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2068 for instance \`--prefix=\$HOME'.
2070 For better control, use the options below.
2072 Fine tuning of the installation directories:
2073 --bindir=DIR user executables [EPREFIX/bin]
2074 --sbindir=DIR system admin executables [EPREFIX/sbin]
2075 --libexecdir=DIR program executables [EPREFIX/libexec]
2076 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2077 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2078 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2079 --libdir=DIR object code libraries [EPREFIX/lib]
2080 --includedir=DIR C header files [PREFIX/include]
2081 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2082 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2083 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2084 --infodir=DIR info documentation [DATAROOTDIR/info]
2085 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2086 --mandir=DIR man documentation [DATAROOTDIR/man]
2087 --docdir=DIR documentation root [DATAROOTDIR/doc/wine]
2088 --htmldir=DIR html documentation [DOCDIR]
2089 --dvidir=DIR dvi documentation [DOCDIR]
2090 --pdfdir=DIR pdf documentation [DOCDIR]
2091 --psdir=DIR ps documentation [DOCDIR]
2092 _ACEOF
2094 cat <<\_ACEOF
2096 X features:
2097 --x-includes=DIR X include files are in DIR
2098 --x-libraries=DIR X library files are in DIR
2100 System types:
2101 --build=BUILD configure for building on BUILD [guessed]
2102 --host=HOST cross-compile to build programs to run on HOST [BUILD]
2103 _ACEOF
2106 if test -n "$ac_init_help"; then
2107 case $ac_init_help in
2108 short | recursive ) echo "Configuration of Wine 1.7.44:";;
2109 esac
2110 cat <<\_ACEOF
2112 Optional Features:
2113 --disable-option-checking ignore unrecognized --enable/--with options
2114 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
2115 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
2116 --disable-win16 do not include Win16 support
2117 --enable-win64 build a Win64 emulator on AMD64 (won't run Win32
2118 binaries)
2119 --disable-tests do not build the regression tests
2120 --enable-maintainer-mode
2121 enable maintainer-specific build rules
2122 --disable-largefile omit support for large files
2124 Optional Packages:
2125 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
2126 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2127 --without-alsa do not use the Alsa sound support
2128 --without-capi do not use CAPI (ISDN support)
2129 --without-cms do not use CMS (color management support)
2130 --without-coreaudio do not use the CoreAudio sound support
2131 --without-cups do not use CUPS
2132 --without-curses do not use (n)curses
2133 --without-dbus do not use DBus (dynamic device support)
2134 --without-fontconfig do not use fontconfig
2135 --without-freetype do not use the FreeType library
2136 --without-gettext do not use gettext
2137 --with-gettextpo use the GetTextPO library to rebuild po files
2138 --without-gphoto do not use gphoto (Digital Camera support)
2139 --without-glu do not use the GLU library
2140 --without-gnutls do not use GnuTLS (schannel support)
2141 --without-gsm do not use libgsm (GSM 06.10 codec support)
2142 --without-gstreamer do not use GStreamer (codecs support)
2143 --without-hal do not use HAL (dynamic device support)
2144 --without-jpeg do not use JPEG
2145 --without-ldap do not use LDAP
2146 --without-mpg123 do not use the mpg123 library
2147 --without-netapi do not use the Samba NetAPI library
2148 --without-openal do not use OpenAL
2149 --without-opencl do not use OpenCL
2150 --without-opengl do not use OpenGL
2151 --without-osmesa do not use the OSMesa library
2152 --without-oss do not use the OSS sound support
2153 --without-pcap do not use the Packet Capture library
2154 --without-png do not use PNG
2155 --without-pthread do not use the pthread library
2156 --without-sane do not use SANE (scanner support)
2157 --without-tiff do not use TIFF
2158 --without-v4l do not use v4l1 (v4l support)
2159 --without-xcomposite do not use the Xcomposite extension
2160 --without-xcursor do not use the Xcursor extension
2161 --without-xinerama do not use Xinerama (multi-monitor support)
2162 --without-xinput do not use the Xinput extension
2163 --without-xinput2 do not use the Xinput 2 extension
2164 --without-xml do not use XML
2165 --without-xrandr do not use Xrandr (resolution changes)
2166 --without-xrender do not use the Xrender extension
2167 --without-xshape do not use the Xshape extension
2168 --without-xshm do not use XShm (shared memory extension)
2169 --without-xslt do not use XSLT
2170 --without-xxf86vm do not use XFree video mode extension
2171 --without-zlib do not use Zlib (data compression)
2172 --with-wine-tools=DIR use Wine tools from directory DIR
2173 --with-wine64=DIR use the 64-bit Wine in DIR for a Wow64 build
2174 --with-x use the X Window System
2176 Some influential environment variables:
2177 CC C compiler command
2178 CFLAGS C compiler flags
2179 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2180 nonstandard directory <lib dir>
2181 LIBS libraries to pass to the linker, e.g. -l<library>
2182 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2183 you have headers in a nonstandard directory <include dir>
2184 CXX C++ compiler command
2185 CXXFLAGS C++ compiler flags
2186 CPP C preprocessor
2187 XMKMF Path to xmkmf, Makefile generator for X Window System
2188 XML2_CFLAGS C compiler flags for libxml-2.0, overriding pkg-config
2189 XML2_LIBS Linker flags for libxml-2.0, overriding pkg-config
2190 XSLT_CFLAGS C compiler flags for libxslt, overriding pkg-config
2191 XSLT_LIBS Linker flags for libxslt, overriding pkg-config
2192 DBUS_CFLAGS C compiler flags for dbus-1, overriding pkg-config
2193 DBUS_LIBS Linker flags for dbus-1, overriding pkg-config
2194 HAL_CFLAGS C compiler flags for hal, overriding pkg-config
2195 HAL_LIBS Linker flags for hal, overriding pkg-config
2196 GNUTLS_CFLAGS
2197 C compiler flags for gnutls, overriding pkg-config
2198 GNUTLS_LIBS Linker flags for gnutls, overriding pkg-config
2199 SANE_CFLAGS C compiler flags for libsane, overriding pkg-config
2200 SANE_LIBS Linker flags for libsane, overriding pkg-config
2201 GPHOTO2_CFLAGS
2202 C compiler flags for libgphoto2, overriding pkg-config
2203 GPHOTO2_LIBS
2204 Linker flags for libgphoto2, overriding pkg-config
2205 GPHOTO2_PORT_CFLAGS
2206 C compiler flags for libgphoto2_port, overriding pkg-config
2207 GPHOTO2_PORT_LIBS
2208 Linker flags for libgphoto2_port, overriding pkg-config
2209 LCMS2_CFLAGS
2210 C compiler flags for lcms2, overriding pkg-config
2211 LCMS2_LIBS Linker flags for lcms2, overriding pkg-config
2212 FREETYPE_CFLAGS
2213 C compiler flags for freetype2, overriding pkg-config
2214 FREETYPE_LIBS
2215 Linker flags for freetype2, overriding pkg-config
2216 GSTREAMER_CFLAGS
2217 C compiler flags for gstreamer-app-0.10, overriding pkg-config
2218 GSTREAMER_LIBS
2219 Linker flags for gstreamer-app-0.10, overriding pkg-config
2220 CAPI20_CFLAGS
2221 C compiler flags for capi20, overriding pkg-config
2222 CAPI20_LIBS Linker flags for capi20, overriding pkg-config
2223 FONTCONFIG_CFLAGS
2224 C compiler flags for fontconfig, overriding pkg-config
2225 FONTCONFIG_LIBS
2226 Linker flags for fontconfig, overriding pkg-config
2227 JPEG_CFLAGS C compiler flags for libjpeg, overriding pkg-config
2228 JPEG_LIBS Linker flags for libjpeg, overriding pkg-config
2229 PNG_CFLAGS C compiler flags for libpng, overriding pkg-config
2230 PNG_LIBS Linker flags for libpng, overriding pkg-config
2231 TIFF_CFLAGS C compiler flags for libtiff, overriding pkg-config
2232 TIFF_LIBS Linker flags for libtiff, overriding pkg-config
2233 MPG123_CFLAGS
2234 C compiler flags for libmpg123, overriding pkg-config
2235 MPG123_LIBS Linker flags for libmpg123, overriding pkg-config
2237 Use these variables to override the choices made by `configure' or to help
2238 it to find libraries and programs with nonstandard names/locations.
2240 Report bugs to <wine-devel@winehq.org>.
2241 Wine home page: <http://www.winehq.org>.
2242 _ACEOF
2243 ac_status=$?
2246 if test "$ac_init_help" = "recursive"; then
2247 # If there are subdirs, report their specific --help.
2248 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2249 test -d "$ac_dir" ||
2250 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2251 continue
2252 ac_builddir=.
2254 case "$ac_dir" in
2255 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2257 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2258 # A ".." for each directory in $ac_dir_suffix.
2259 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2260 case $ac_top_builddir_sub in
2261 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2262 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2263 esac ;;
2264 esac
2265 ac_abs_top_builddir=$ac_pwd
2266 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2267 # for backward compatibility:
2268 ac_top_builddir=$ac_top_build_prefix
2270 case $srcdir in
2271 .) # We are building in place.
2272 ac_srcdir=.
2273 ac_top_srcdir=$ac_top_builddir_sub
2274 ac_abs_top_srcdir=$ac_pwd ;;
2275 [\\/]* | ?:[\\/]* ) # Absolute name.
2276 ac_srcdir=$srcdir$ac_dir_suffix;
2277 ac_top_srcdir=$srcdir
2278 ac_abs_top_srcdir=$srcdir ;;
2279 *) # Relative name.
2280 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2281 ac_top_srcdir=$ac_top_build_prefix$srcdir
2282 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2283 esac
2284 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2286 cd "$ac_dir" || { ac_status=$?; continue; }
2287 # Check for guested configure.
2288 if test -f "$ac_srcdir/configure.gnu"; then
2289 echo &&
2290 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2291 elif test -f "$ac_srcdir/configure"; then
2292 echo &&
2293 $SHELL "$ac_srcdir/configure" --help=recursive
2294 else
2295 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2296 fi || ac_status=$?
2297 cd "$ac_pwd" || { ac_status=$?; break; }
2298 done
2301 test -n "$ac_init_help" && exit $ac_status
2302 if $ac_init_version; then
2303 cat <<\_ACEOF
2304 Wine configure 1.7.44
2305 generated by GNU Autoconf 2.69
2307 Copyright (C) 2012 Free Software Foundation, Inc.
2308 This configure script is free software; the Free Software Foundation
2309 gives unlimited permission to copy, distribute and modify it.
2310 _ACEOF
2311 exit
2314 ## ------------------------ ##
2315 ## Autoconf initialization. ##
2316 ## ------------------------ ##
2318 # ac_fn_c_try_compile LINENO
2319 # --------------------------
2320 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2321 ac_fn_c_try_compile ()
2323 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2324 rm -f conftest.$ac_objext
2325 if { { ac_try="$ac_compile"
2326 case "(($ac_try" in
2327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2328 *) ac_try_echo=$ac_try;;
2329 esac
2330 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2331 $as_echo "$ac_try_echo"; } >&5
2332 (eval "$ac_compile") 2>conftest.err
2333 ac_status=$?
2334 if test -s conftest.err; then
2335 grep -v '^ *+' conftest.err >conftest.er1
2336 cat conftest.er1 >&5
2337 mv -f conftest.er1 conftest.err
2339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2340 test $ac_status = 0; } && {
2341 test -z "$ac_c_werror_flag" ||
2342 test ! -s conftest.err
2343 } && test -s conftest.$ac_objext; then :
2344 ac_retval=0
2345 else
2346 $as_echo "$as_me: failed program was:" >&5
2347 sed 's/^/| /' conftest.$ac_ext >&5
2349 ac_retval=1
2351 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2352 as_fn_set_status $ac_retval
2354 } # ac_fn_c_try_compile
2356 # ac_fn_cxx_try_compile LINENO
2357 # ----------------------------
2358 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2359 ac_fn_cxx_try_compile ()
2361 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2362 rm -f conftest.$ac_objext
2363 if { { ac_try="$ac_compile"
2364 case "(($ac_try" in
2365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2366 *) ac_try_echo=$ac_try;;
2367 esac
2368 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2369 $as_echo "$ac_try_echo"; } >&5
2370 (eval "$ac_compile") 2>conftest.err
2371 ac_status=$?
2372 if test -s conftest.err; then
2373 grep -v '^ *+' conftest.err >conftest.er1
2374 cat conftest.er1 >&5
2375 mv -f conftest.er1 conftest.err
2377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2378 test $ac_status = 0; } && {
2379 test -z "$ac_cxx_werror_flag" ||
2380 test ! -s conftest.err
2381 } && test -s conftest.$ac_objext; then :
2382 ac_retval=0
2383 else
2384 $as_echo "$as_me: failed program was:" >&5
2385 sed 's/^/| /' conftest.$ac_ext >&5
2387 ac_retval=1
2389 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2390 as_fn_set_status $ac_retval
2392 } # ac_fn_cxx_try_compile
2394 # ac_fn_c_try_link LINENO
2395 # -----------------------
2396 # Try to link conftest.$ac_ext, and return whether this succeeded.
2397 ac_fn_c_try_link ()
2399 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2400 rm -f conftest.$ac_objext conftest$ac_exeext
2401 if { { ac_try="$ac_link"
2402 case "(($ac_try" in
2403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2404 *) ac_try_echo=$ac_try;;
2405 esac
2406 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2407 $as_echo "$ac_try_echo"; } >&5
2408 (eval "$ac_link") 2>conftest.err
2409 ac_status=$?
2410 if test -s conftest.err; then
2411 grep -v '^ *+' conftest.err >conftest.er1
2412 cat conftest.er1 >&5
2413 mv -f conftest.er1 conftest.err
2415 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2416 test $ac_status = 0; } && {
2417 test -z "$ac_c_werror_flag" ||
2418 test ! -s conftest.err
2419 } && test -s conftest$ac_exeext && {
2420 test "$cross_compiling" = yes ||
2421 test -x conftest$ac_exeext
2422 }; then :
2423 ac_retval=0
2424 else
2425 $as_echo "$as_me: failed program was:" >&5
2426 sed 's/^/| /' conftest.$ac_ext >&5
2428 ac_retval=1
2430 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2431 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2432 # interfere with the next link command; also delete a directory that is
2433 # left behind by Apple's compiler. We do this before executing the actions.
2434 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2435 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2436 as_fn_set_status $ac_retval
2438 } # ac_fn_c_try_link
2440 # ac_fn_c_try_cpp LINENO
2441 # ----------------------
2442 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2443 ac_fn_c_try_cpp ()
2445 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2446 if { { ac_try="$ac_cpp conftest.$ac_ext"
2447 case "(($ac_try" in
2448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2449 *) ac_try_echo=$ac_try;;
2450 esac
2451 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2452 $as_echo "$ac_try_echo"; } >&5
2453 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2454 ac_status=$?
2455 if test -s conftest.err; then
2456 grep -v '^ *+' conftest.err >conftest.er1
2457 cat conftest.er1 >&5
2458 mv -f conftest.er1 conftest.err
2460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2461 test $ac_status = 0; } > conftest.i && {
2462 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2463 test ! -s conftest.err
2464 }; then :
2465 ac_retval=0
2466 else
2467 $as_echo "$as_me: failed program was:" >&5
2468 sed 's/^/| /' conftest.$ac_ext >&5
2470 ac_retval=1
2472 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2473 as_fn_set_status $ac_retval
2475 } # ac_fn_c_try_cpp
2477 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2478 # -------------------------------------------------------
2479 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2480 # the include files in INCLUDES and setting the cache variable VAR
2481 # accordingly.
2482 ac_fn_c_check_header_mongrel ()
2484 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2485 if eval \${$3+:} false; then :
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2487 $as_echo_n "checking for $2... " >&6; }
2488 if eval \${$3+:} false; then :
2489 $as_echo_n "(cached) " >&6
2491 eval ac_res=\$$3
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2493 $as_echo "$ac_res" >&6; }
2494 else
2495 # Is the header compilable?
2496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2497 $as_echo_n "checking $2 usability... " >&6; }
2498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2499 /* end confdefs.h. */
2501 #include <$2>
2502 _ACEOF
2503 if ac_fn_c_try_compile "$LINENO"; then :
2504 ac_header_compiler=yes
2505 else
2506 ac_header_compiler=no
2508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2510 $as_echo "$ac_header_compiler" >&6; }
2512 # Is the header present?
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2514 $as_echo_n "checking $2 presence... " >&6; }
2515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2516 /* end confdefs.h. */
2517 #include <$2>
2518 _ACEOF
2519 if ac_fn_c_try_cpp "$LINENO"; then :
2520 ac_header_preproc=yes
2521 else
2522 ac_header_preproc=no
2524 rm -f conftest.err conftest.i conftest.$ac_ext
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2526 $as_echo "$ac_header_preproc" >&6; }
2528 # So? What about this header?
2529 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2530 yes:no: )
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2532 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2534 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2536 no:yes:* )
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2538 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2540 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2542 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2544 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2546 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2547 ( $as_echo "## ------------------------------------ ##
2548 ## Report this to wine-devel@winehq.org ##
2549 ## ------------------------------------ ##"
2550 ) | sed "s/^/$as_me: WARNING: /" >&2
2552 esac
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2554 $as_echo_n "checking for $2... " >&6; }
2555 if eval \${$3+:} false; then :
2556 $as_echo_n "(cached) " >&6
2557 else
2558 eval "$3=\$ac_header_compiler"
2560 eval ac_res=\$$3
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2562 $as_echo "$ac_res" >&6; }
2564 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2566 } # ac_fn_c_check_header_mongrel
2568 # ac_fn_c_try_run LINENO
2569 # ----------------------
2570 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2571 # that executables *can* be run.
2572 ac_fn_c_try_run ()
2574 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2575 if { { ac_try="$ac_link"
2576 case "(($ac_try" in
2577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2578 *) ac_try_echo=$ac_try;;
2579 esac
2580 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2581 $as_echo "$ac_try_echo"; } >&5
2582 (eval "$ac_link") 2>&5
2583 ac_status=$?
2584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2585 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2586 { { case "(($ac_try" in
2587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2588 *) ac_try_echo=$ac_try;;
2589 esac
2590 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2591 $as_echo "$ac_try_echo"; } >&5
2592 (eval "$ac_try") 2>&5
2593 ac_status=$?
2594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2595 test $ac_status = 0; }; }; then :
2596 ac_retval=0
2597 else
2598 $as_echo "$as_me: program exited with status $ac_status" >&5
2599 $as_echo "$as_me: failed program was:" >&5
2600 sed 's/^/| /' conftest.$ac_ext >&5
2602 ac_retval=$ac_status
2604 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2605 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2606 as_fn_set_status $ac_retval
2608 } # ac_fn_c_try_run
2610 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2611 # -------------------------------------------------------
2612 # Tests whether HEADER exists and can be compiled using the include files in
2613 # INCLUDES, setting the cache variable VAR accordingly.
2614 ac_fn_c_check_header_compile ()
2616 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2618 $as_echo_n "checking for $2... " >&6; }
2619 if eval \${$3+:} false; then :
2620 $as_echo_n "(cached) " >&6
2621 else
2622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2623 /* end confdefs.h. */
2625 #include <$2>
2626 _ACEOF
2627 if ac_fn_c_try_compile "$LINENO"; then :
2628 eval "$3=yes"
2629 else
2630 eval "$3=no"
2632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2634 eval ac_res=\$$3
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2636 $as_echo "$ac_res" >&6; }
2637 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2639 } # ac_fn_c_check_header_compile
2641 # ac_fn_c_check_func LINENO FUNC VAR
2642 # ----------------------------------
2643 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2644 ac_fn_c_check_func ()
2646 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2648 $as_echo_n "checking for $2... " >&6; }
2649 if eval \${$3+:} false; then :
2650 $as_echo_n "(cached) " >&6
2651 else
2652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2653 /* end confdefs.h. */
2654 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2655 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2656 #define $2 innocuous_$2
2658 /* System header to define __stub macros and hopefully few prototypes,
2659 which can conflict with char $2 (); below.
2660 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2661 <limits.h> exists even on freestanding compilers. */
2663 #ifdef __STDC__
2664 # include <limits.h>
2665 #else
2666 # include <assert.h>
2667 #endif
2669 #undef $2
2671 /* Override any GCC internal prototype to avoid an error.
2672 Use char because int might match the return type of a GCC
2673 builtin and then its argument prototype would still apply. */
2674 #ifdef __cplusplus
2675 extern "C"
2676 #endif
2677 char $2 ();
2678 /* The GNU C library defines this for functions which it implements
2679 to always fail with ENOSYS. Some functions are actually named
2680 something starting with __ and the normal name is an alias. */
2681 #if defined __stub_$2 || defined __stub___$2
2682 choke me
2683 #endif
2686 main ()
2688 return $2 ();
2690 return 0;
2692 _ACEOF
2693 if ac_fn_c_try_link "$LINENO"; then :
2694 eval "$3=yes"
2695 else
2696 eval "$3=no"
2698 rm -f core conftest.err conftest.$ac_objext \
2699 conftest$ac_exeext conftest.$ac_ext
2701 eval ac_res=\$$3
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2703 $as_echo "$ac_res" >&6; }
2704 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2706 } # ac_fn_c_check_func
2708 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2709 # ----------------------------------------------------
2710 # Tries to find if the field MEMBER exists in type AGGR, after including
2711 # INCLUDES, setting cache variable VAR accordingly.
2712 ac_fn_c_check_member ()
2714 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2716 $as_echo_n "checking for $2.$3... " >&6; }
2717 if eval \${$4+:} false; then :
2718 $as_echo_n "(cached) " >&6
2719 else
2720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2721 /* end confdefs.h. */
2724 main ()
2726 static $2 ac_aggr;
2727 if (ac_aggr.$3)
2728 return 0;
2730 return 0;
2732 _ACEOF
2733 if ac_fn_c_try_compile "$LINENO"; then :
2734 eval "$4=yes"
2735 else
2736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2737 /* end confdefs.h. */
2740 main ()
2742 static $2 ac_aggr;
2743 if (sizeof ac_aggr.$3)
2744 return 0;
2746 return 0;
2748 _ACEOF
2749 if ac_fn_c_try_compile "$LINENO"; then :
2750 eval "$4=yes"
2751 else
2752 eval "$4=no"
2754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2758 eval ac_res=\$$4
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2760 $as_echo "$ac_res" >&6; }
2761 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2763 } # ac_fn_c_check_member
2765 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2766 # -------------------------------------------
2767 # Tests whether TYPE exists after having included INCLUDES, setting cache
2768 # variable VAR accordingly.
2769 ac_fn_c_check_type ()
2771 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2773 $as_echo_n "checking for $2... " >&6; }
2774 if eval \${$3+:} false; then :
2775 $as_echo_n "(cached) " >&6
2776 else
2777 eval "$3=no"
2778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2779 /* end confdefs.h. */
2782 main ()
2784 if (sizeof ($2))
2785 return 0;
2787 return 0;
2789 _ACEOF
2790 if ac_fn_c_try_compile "$LINENO"; then :
2791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2792 /* end confdefs.h. */
2795 main ()
2797 if (sizeof (($2)))
2798 return 0;
2800 return 0;
2802 _ACEOF
2803 if ac_fn_c_try_compile "$LINENO"; then :
2805 else
2806 eval "$3=yes"
2808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2812 eval ac_res=\$$3
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2814 $as_echo "$ac_res" >&6; }
2815 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2817 } # ac_fn_c_check_type
2818 cat >config.log <<_ACEOF
2819 This file contains any messages produced by compilers while
2820 running configure, to aid debugging if configure makes a mistake.
2822 It was created by Wine $as_me 1.7.44, which was
2823 generated by GNU Autoconf 2.69. Invocation command line was
2825 $ $0 $@
2827 _ACEOF
2828 exec 5>>config.log
2830 cat <<_ASUNAME
2831 ## --------- ##
2832 ## Platform. ##
2833 ## --------- ##
2835 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2836 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2837 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2838 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2839 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2841 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2842 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2844 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2845 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2846 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2847 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2848 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2849 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2850 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2852 _ASUNAME
2854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2855 for as_dir in $PATH
2857 IFS=$as_save_IFS
2858 test -z "$as_dir" && as_dir=.
2859 $as_echo "PATH: $as_dir"
2860 done
2861 IFS=$as_save_IFS
2863 } >&5
2865 cat >&5 <<_ACEOF
2868 ## ----------- ##
2869 ## Core tests. ##
2870 ## ----------- ##
2872 _ACEOF
2875 # Keep a trace of the command line.
2876 # Strip out --no-create and --no-recursion so they do not pile up.
2877 # Strip out --silent because we don't want to record it for future runs.
2878 # Also quote any args containing shell meta-characters.
2879 # Make two passes to allow for proper duplicate-argument suppression.
2880 ac_configure_args=
2881 ac_configure_args0=
2882 ac_configure_args1=
2883 ac_must_keep_next=false
2884 for ac_pass in 1 2
2886 for ac_arg
2888 case $ac_arg in
2889 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2890 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2891 | -silent | --silent | --silen | --sile | --sil)
2892 continue ;;
2893 *\'*)
2894 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2895 esac
2896 case $ac_pass in
2897 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2899 as_fn_append ac_configure_args1 " '$ac_arg'"
2900 if test $ac_must_keep_next = true; then
2901 ac_must_keep_next=false # Got value, back to normal.
2902 else
2903 case $ac_arg in
2904 *=* | --config-cache | -C | -disable-* | --disable-* \
2905 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2906 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2907 | -with-* | --with-* | -without-* | --without-* | --x)
2908 case "$ac_configure_args0 " in
2909 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2910 esac
2912 -* ) ac_must_keep_next=true ;;
2913 esac
2915 as_fn_append ac_configure_args " '$ac_arg'"
2917 esac
2918 done
2919 done
2920 { ac_configure_args0=; unset ac_configure_args0;}
2921 { ac_configure_args1=; unset ac_configure_args1;}
2923 # When interrupted or exit'd, cleanup temporary files, and complete
2924 # config.log. We remove comments because anyway the quotes in there
2925 # would cause problems or look ugly.
2926 # WARNING: Use '\'' to represent an apostrophe within the trap.
2927 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2928 trap 'exit_status=$?
2929 # Save into config.log some information that might help in debugging.
2931 echo
2933 $as_echo "## ---------------- ##
2934 ## Cache variables. ##
2935 ## ---------------- ##"
2936 echo
2937 # The following way of writing the cache mishandles newlines in values,
2939 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2940 eval ac_val=\$$ac_var
2941 case $ac_val in #(
2942 *${as_nl}*)
2943 case $ac_var in #(
2944 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2945 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2946 esac
2947 case $ac_var in #(
2948 _ | IFS | as_nl) ;; #(
2949 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2950 *) { eval $ac_var=; unset $ac_var;} ;;
2951 esac ;;
2952 esac
2953 done
2954 (set) 2>&1 |
2955 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2956 *${as_nl}ac_space=\ *)
2957 sed -n \
2958 "s/'\''/'\''\\\\'\'''\''/g;
2959 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2960 ;; #(
2962 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2964 esac |
2965 sort
2967 echo
2969 $as_echo "## ----------------- ##
2970 ## Output variables. ##
2971 ## ----------------- ##"
2972 echo
2973 for ac_var in $ac_subst_vars
2975 eval ac_val=\$$ac_var
2976 case $ac_val in
2977 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2978 esac
2979 $as_echo "$ac_var='\''$ac_val'\''"
2980 done | sort
2981 echo
2983 if test -n "$ac_subst_files"; then
2984 $as_echo "## ------------------- ##
2985 ## File substitutions. ##
2986 ## ------------------- ##"
2987 echo
2988 for ac_var in $ac_subst_files
2990 eval ac_val=\$$ac_var
2991 case $ac_val in
2992 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2993 esac
2994 $as_echo "$ac_var='\''$ac_val'\''"
2995 done | sort
2996 echo
2999 if test -s confdefs.h; then
3000 $as_echo "## ----------- ##
3001 ## confdefs.h. ##
3002 ## ----------- ##"
3003 echo
3004 cat confdefs.h
3005 echo
3007 test "$ac_signal" != 0 &&
3008 $as_echo "$as_me: caught signal $ac_signal"
3009 $as_echo "$as_me: exit $exit_status"
3010 } >&5
3011 rm -f core *.core core.conftest.* &&
3012 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3013 exit $exit_status
3015 for ac_signal in 1 2 13 15; do
3016 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3017 done
3018 ac_signal=0
3020 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3021 rm -f -r conftest* confdefs.h
3023 $as_echo "/* confdefs.h */" > confdefs.h
3025 # Predefined preprocessor variables.
3027 cat >>confdefs.h <<_ACEOF
3028 #define PACKAGE_NAME "$PACKAGE_NAME"
3029 _ACEOF
3031 cat >>confdefs.h <<_ACEOF
3032 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3033 _ACEOF
3035 cat >>confdefs.h <<_ACEOF
3036 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3037 _ACEOF
3039 cat >>confdefs.h <<_ACEOF
3040 #define PACKAGE_STRING "$PACKAGE_STRING"
3041 _ACEOF
3043 cat >>confdefs.h <<_ACEOF
3044 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3045 _ACEOF
3047 cat >>confdefs.h <<_ACEOF
3048 #define PACKAGE_URL "$PACKAGE_URL"
3049 _ACEOF
3052 # Let the site file select an alternate cache file if it wants to.
3053 # Prefer an explicitly selected file to automatically selected ones.
3054 ac_site_file1=NONE
3055 ac_site_file2=NONE
3056 if test -n "$CONFIG_SITE"; then
3057 # We do not want a PATH search for config.site.
3058 case $CONFIG_SITE in #((
3059 -*) ac_site_file1=./$CONFIG_SITE;;
3060 */*) ac_site_file1=$CONFIG_SITE;;
3061 *) ac_site_file1=./$CONFIG_SITE;;
3062 esac
3063 elif test "x$prefix" != xNONE; then
3064 ac_site_file1=$prefix/share/config.site
3065 ac_site_file2=$prefix/etc/config.site
3066 else
3067 ac_site_file1=$ac_default_prefix/share/config.site
3068 ac_site_file2=$ac_default_prefix/etc/config.site
3070 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3072 test "x$ac_site_file" = xNONE && continue
3073 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3075 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3076 sed 's/^/| /' "$ac_site_file" >&5
3077 . "$ac_site_file" \
3078 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3079 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3080 as_fn_error $? "failed to load site script $ac_site_file
3081 See \`config.log' for more details" "$LINENO" 5; }
3083 done
3085 if test -r "$cache_file"; then
3086 # Some versions of bash will fail to source /dev/null (special files
3087 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3088 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3090 $as_echo "$as_me: loading cache $cache_file" >&6;}
3091 case $cache_file in
3092 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3093 *) . "./$cache_file";;
3094 esac
3096 else
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3098 $as_echo "$as_me: creating cache $cache_file" >&6;}
3099 >$cache_file
3102 # Check that the precious variables saved in the cache have kept the same
3103 # value.
3104 ac_cache_corrupted=false
3105 for ac_var in $ac_precious_vars; do
3106 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3107 eval ac_new_set=\$ac_env_${ac_var}_set
3108 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3109 eval ac_new_val=\$ac_env_${ac_var}_value
3110 case $ac_old_set,$ac_new_set in
3111 set,)
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3113 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3114 ac_cache_corrupted=: ;;
3115 ,set)
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3117 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3118 ac_cache_corrupted=: ;;
3119 ,);;
3121 if test "x$ac_old_val" != "x$ac_new_val"; then
3122 # differences in whitespace do not lead to failure.
3123 ac_old_val_w=`echo x $ac_old_val`
3124 ac_new_val_w=`echo x $ac_new_val`
3125 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3127 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3128 ac_cache_corrupted=:
3129 else
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3131 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3132 eval $ac_var=\$ac_old_val
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3135 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3137 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3138 fi;;
3139 esac
3140 # Pass precious variables to config.status.
3141 if test "$ac_new_set" = set; then
3142 case $ac_new_val in
3143 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3144 *) ac_arg=$ac_var=$ac_new_val ;;
3145 esac
3146 case " $ac_configure_args " in
3147 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3148 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3149 esac
3151 done
3152 if $ac_cache_corrupted; then
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3154 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3156 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3157 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3159 ## -------------------- ##
3160 ## Main body of script. ##
3161 ## -------------------- ##
3163 ac_ext=c
3164 ac_cpp='$CPP $CPPFLAGS'
3165 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3166 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3167 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3171 ac_config_headers="$ac_config_headers include/config.h"
3173 ac_aux_dir=
3174 for ac_dir in tools "$srcdir"/tools; do
3175 if test -f "$ac_dir/install-sh"; then
3176 ac_aux_dir=$ac_dir
3177 ac_install_sh="$ac_aux_dir/install-sh -c"
3178 break
3179 elif test -f "$ac_dir/install.sh"; then
3180 ac_aux_dir=$ac_dir
3181 ac_install_sh="$ac_aux_dir/install.sh -c"
3182 break
3183 elif test -f "$ac_dir/shtool"; then
3184 ac_aux_dir=$ac_dir
3185 ac_install_sh="$ac_aux_dir/shtool install -c"
3186 break
3188 done
3189 if test -z "$ac_aux_dir"; then
3190 as_fn_error $? "cannot find install-sh, install.sh, or shtool in tools \"$srcdir\"/tools" "$LINENO" 5
3193 # These three variables are undocumented and unsupported,
3194 # and are intended to be withdrawn in a future Autoconf release.
3195 # They can cause serious problems if a builder's source tree is in a directory
3196 # whose full name contains unusual characters.
3197 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3198 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3199 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3203 libwine_version="1.0"
3207 # Check whether --enable-win16 was given.
3208 if test "${enable_win16+set}" = set; then :
3209 enableval=$enable_win16;
3212 # Check whether --enable-win64 was given.
3213 if test "${enable_win64+set}" = set; then :
3214 enableval=$enable_win64;
3217 # Check whether --enable-tests was given.
3218 if test "${enable_tests+set}" = set; then :
3219 enableval=$enable_tests;
3222 # Check whether --enable-maintainer-mode was given.
3223 if test "${enable_maintainer_mode+set}" = set; then :
3224 enableval=$enable_maintainer_mode;
3229 # Check whether --with-alsa was given.
3230 if test "${with_alsa+set}" = set; then :
3231 withval=$with_alsa; if test "x$withval" = "xno"; then ac_cv_header_sys_asoundlib_h=no; ac_cv_header_alsa_asoundlib_h=no; fi
3235 # Check whether --with-capi was given.
3236 if test "${with_capi+set}" = set; then :
3237 withval=$with_capi;
3241 # Check whether --with-cms was given.
3242 if test "${with_cms+set}" = set; then :
3243 withval=$with_cms;
3247 # Check whether --with-coreaudio was given.
3248 if test "${with_coreaudio+set}" = set; then :
3249 withval=$with_coreaudio; if test "x$withval" = "xno"; then ac_cv_header_CoreAudio_CoreAudio_h=no; fi
3253 # Check whether --with-cups was given.
3254 if test "${with_cups+set}" = set; then :
3255 withval=$with_cups;
3259 # Check whether --with-curses was given.
3260 if test "${with_curses+set}" = set; then :
3261 withval=$with_curses; if test "x$withval" = "xno"; then ac_cv_header_ncurses_h=no; ac_cv_header_curses_h=no; fi
3265 # Check whether --with-dbus was given.
3266 if test "${with_dbus+set}" = set; then :
3267 withval=$with_dbus;
3271 # Check whether --with-fontconfig was given.
3272 if test "${with_fontconfig+set}" = set; then :
3273 withval=$with_fontconfig;
3277 # Check whether --with-freetype was given.
3278 if test "${with_freetype+set}" = set; then :
3279 withval=$with_freetype;
3283 # Check whether --with-gettext was given.
3284 if test "${with_gettext+set}" = set; then :
3285 withval=$with_gettext;
3289 # Check whether --with-gettextpo was given.
3290 if test "${with_gettextpo+set}" = set; then :
3291 withval=$with_gettextpo; if test "x$withval" = "xno"; then ac_cv_header_gettext_po_h=no; fi
3295 # Check whether --with-gphoto was given.
3296 if test "${with_gphoto+set}" = set; then :
3297 withval=$with_gphoto;
3301 # Check whether --with-glu was given.
3302 if test "${with_glu+set}" = set; then :
3303 withval=$with_glu;
3307 # Check whether --with-gnutls was given.
3308 if test "${with_gnutls+set}" = set; then :
3309 withval=$with_gnutls;
3313 # Check whether --with-gsm was given.
3314 if test "${with_gsm+set}" = set; then :
3315 withval=$with_gsm; if test "x$withval" = "xno"; then ac_cv_header_gsm_h=no; ac_cv_header_gsm_gsm_h=no; fi
3319 # Check whether --with-gstreamer was given.
3320 if test "${with_gstreamer+set}" = set; then :
3321 withval=$with_gstreamer;
3325 # Check whether --with-hal was given.
3326 if test "${with_hal+set}" = set; then :
3327 withval=$with_hal;
3331 # Check whether --with-jpeg was given.
3332 if test "${with_jpeg+set}" = set; then :
3333 withval=$with_jpeg;
3337 # Check whether --with-ldap was given.
3338 if test "${with_ldap+set}" = set; then :
3339 withval=$with_ldap; if test "x$withval" = "xno"; then ac_cv_header_ldap_h=no; ac_cv_header_lber_h=no; fi
3343 # Check whether --with-mpg123 was given.
3344 if test "${with_mpg123+set}" = set; then :
3345 withval=$with_mpg123;
3349 # Check whether --with-netapi was given.
3350 if test "${with_netapi+set}" = set; then :
3351 withval=$with_netapi;
3355 # Check whether --with-openal was given.
3356 if test "${with_openal+set}" = set; then :
3357 withval=$with_openal; if test "x$withval" = "xno"; then ac_cv_header_AL_al_h=no; ac_cv_header_OpenAL_al_h=no; fi
3361 # Check whether --with-opencl was given.
3362 if test "${with_opencl+set}" = set; then :
3363 withval=$with_opencl; if test "x$withval" = "xno"; then ac_cv_header_CL_cl_h=no; ac_cv_header_OpenCL_opencl_h=no; fi
3367 # Check whether --with-opengl was given.
3368 if test "${with_opengl+set}" = set; then :
3369 withval=$with_opengl;
3373 # Check whether --with-osmesa was given.
3374 if test "${with_osmesa+set}" = set; then :
3375 withval=$with_osmesa;
3379 # Check whether --with-oss was given.
3380 if test "${with_oss+set}" = set; then :
3381 withval=$with_oss;
3385 # Check whether --with-pcap was given.
3386 if test "${with_pcap+set}" = set; then :
3387 withval=$with_pcap; if test "x$withval" = "xno"; then ac_cv_header_pcap_pcap_h=no; fi
3391 # Check whether --with-png was given.
3392 if test "${with_png+set}" = set; then :
3393 withval=$with_png;
3397 # Check whether --with-pthread was given.
3398 if test "${with_pthread+set}" = set; then :
3399 withval=$with_pthread; if test "x$withval" = "xno"; then ac_cv_header_pthread_h=no; fi
3403 # Check whether --with-sane was given.
3404 if test "${with_sane+set}" = set; then :
3405 withval=$with_sane;
3409 # Check whether --with-tiff was given.
3410 if test "${with_tiff+set}" = set; then :
3411 withval=$with_tiff;
3415 # Check whether --with-v4l was given.
3416 if test "${with_v4l+set}" = set; then :
3417 withval=$with_v4l;
3421 # Check whether --with-xcomposite was given.
3422 if test "${with_xcomposite+set}" = set; then :
3423 withval=$with_xcomposite; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xcomposite_h=no; fi
3427 # Check whether --with-xcursor was given.
3428 if test "${with_xcursor+set}" = set; then :
3429 withval=$with_xcursor; if test "x$withval" = "xno"; then ac_cv_header_X11_Xcursor_Xcursor_h=no; fi
3433 # Check whether --with-xinerama was given.
3434 if test "${with_xinerama+set}" = set; then :
3435 withval=$with_xinerama; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xinerama_h=no; fi
3439 # Check whether --with-xinput was given.
3440 if test "${with_xinput+set}" = set; then :
3441 withval=$with_xinput; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput_h=no; fi
3445 # Check whether --with-xinput2 was given.
3446 if test "${with_xinput2+set}" = set; then :
3447 withval=$with_xinput2; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput2_h=no; fi
3451 # Check whether --with-xml was given.
3452 if test "${with_xml+set}" = set; then :
3453 withval=$with_xml;
3457 # Check whether --with-xrandr was given.
3458 if test "${with_xrandr+set}" = set; then :
3459 withval=$with_xrandr; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrandr_h=no; fi
3463 # Check whether --with-xrender was given.
3464 if test "${with_xrender+set}" = set; then :
3465 withval=$with_xrender; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrender_h=no; fi
3469 # Check whether --with-xshape was given.
3470 if test "${with_xshape+set}" = set; then :
3471 withval=$with_xshape; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_shape_h=no; fi
3475 # Check whether --with-xshm was given.
3476 if test "${with_xshm+set}" = set; then :
3477 withval=$with_xshm; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XShm_h=no; fi
3481 # Check whether --with-xslt was given.
3482 if test "${with_xslt+set}" = set; then :
3483 withval=$with_xslt;
3487 # Check whether --with-xxf86vm was given.
3488 if test "${with_xxf86vm+set}" = set; then :
3489 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
3493 # Check whether --with-zlib was given.
3494 if test "${with_zlib+set}" = set; then :
3495 withval=$with_zlib; if test "x$withval" = "xno"; then ac_cv_header_zlib_h=no; fi
3500 # Check whether --with-wine-tools was given.
3501 if test "${with_wine_tools+set}" = set; then :
3502 withval=$with_wine_tools;
3506 # Check whether --with-wine64 was given.
3507 if test "${with_wine64+set}" = set; then :
3508 withval=$with_wine64;
3512 # Make sure we can run config.sub.
3513 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3514 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3517 $as_echo_n "checking build system type... " >&6; }
3518 if ${ac_cv_build+:} false; then :
3519 $as_echo_n "(cached) " >&6
3520 else
3521 ac_build_alias=$build_alias
3522 test "x$ac_build_alias" = x &&
3523 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3524 test "x$ac_build_alias" = x &&
3525 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3526 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3527 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3531 $as_echo "$ac_cv_build" >&6; }
3532 case $ac_cv_build in
3533 *-*-*) ;;
3534 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3535 esac
3536 build=$ac_cv_build
3537 ac_save_IFS=$IFS; IFS='-'
3538 set x $ac_cv_build
3539 shift
3540 build_cpu=$1
3541 build_vendor=$2
3542 shift; shift
3543 # Remember, the first character of IFS is used to create $*,
3544 # except with old shells:
3545 build_os=$*
3546 IFS=$ac_save_IFS
3547 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3551 $as_echo_n "checking host system type... " >&6; }
3552 if ${ac_cv_host+:} false; then :
3553 $as_echo_n "(cached) " >&6
3554 else
3555 if test "x$host_alias" = x; then
3556 ac_cv_host=$ac_cv_build
3557 else
3558 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3559 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3564 $as_echo "$ac_cv_host" >&6; }
3565 case $ac_cv_host in
3566 *-*-*) ;;
3567 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3568 esac
3569 host=$ac_cv_host
3570 ac_save_IFS=$IFS; IFS='-'
3571 set x $ac_cv_host
3572 shift
3573 host_cpu=$1
3574 host_vendor=$2
3575 shift; shift
3576 # Remember, the first character of IFS is used to create $*,
3577 # except with old shells:
3578 host_os=$*
3579 IFS=$ac_save_IFS
3580 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3584 case "$srcdir" in
3585 .) ;;
3586 *) if test -f "$srcdir/Makefile" -o -f "$srcdir/include/config.h"; then
3587 as_fn_error $? "you are building out of the source tree, but the source tree contains object files.
3588 You need to run 'make distclean' in the source tree first." "$LINENO" 5
3589 fi ;;
3590 esac
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3594 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3595 set x ${MAKE-make}
3596 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3597 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3598 $as_echo_n "(cached) " >&6
3599 else
3600 cat >conftest.make <<\_ACEOF
3601 SHELL = /bin/sh
3602 all:
3603 @echo '@@@%%%=$(MAKE)=@@@%%%'
3604 _ACEOF
3605 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3606 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3607 *@@@%%%=?*=@@@%%%*)
3608 eval ac_cv_prog_make_${ac_make}_set=yes;;
3610 eval ac_cv_prog_make_${ac_make}_set=no;;
3611 esac
3612 rm -f conftest.make
3614 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3616 $as_echo "yes" >&6; }
3617 SET_MAKE=
3618 else
3619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3620 $as_echo "no" >&6; }
3621 SET_MAKE="MAKE=${MAKE-make}"
3624 ac_ext=c
3625 ac_cpp='$CPP $CPPFLAGS'
3626 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3627 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3628 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3629 if test -n "$ac_tool_prefix"; then
3630 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3631 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3633 $as_echo_n "checking for $ac_word... " >&6; }
3634 if ${ac_cv_prog_CC+:} false; then :
3635 $as_echo_n "(cached) " >&6
3636 else
3637 if test -n "$CC"; then
3638 ac_cv_prog_CC="$CC" # Let the user override the test.
3639 else
3640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3641 for as_dir in $PATH
3643 IFS=$as_save_IFS
3644 test -z "$as_dir" && as_dir=.
3645 for ac_exec_ext in '' $ac_executable_extensions; do
3646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3647 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3649 break 2
3651 done
3652 done
3653 IFS=$as_save_IFS
3657 CC=$ac_cv_prog_CC
3658 if test -n "$CC"; then
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3660 $as_echo "$CC" >&6; }
3661 else
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3663 $as_echo "no" >&6; }
3668 if test -z "$ac_cv_prog_CC"; then
3669 ac_ct_CC=$CC
3670 # Extract the first word of "gcc", so it can be a program name with args.
3671 set dummy gcc; ac_word=$2
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3673 $as_echo_n "checking for $ac_word... " >&6; }
3674 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3675 $as_echo_n "(cached) " >&6
3676 else
3677 if test -n "$ac_ct_CC"; then
3678 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3679 else
3680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3681 for as_dir in $PATH
3683 IFS=$as_save_IFS
3684 test -z "$as_dir" && as_dir=.
3685 for ac_exec_ext in '' $ac_executable_extensions; do
3686 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3687 ac_cv_prog_ac_ct_CC="gcc"
3688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3689 break 2
3691 done
3692 done
3693 IFS=$as_save_IFS
3697 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3698 if test -n "$ac_ct_CC"; then
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3700 $as_echo "$ac_ct_CC" >&6; }
3701 else
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3703 $as_echo "no" >&6; }
3706 if test "x$ac_ct_CC" = x; then
3707 CC=""
3708 else
3709 case $cross_compiling:$ac_tool_warned in
3710 yes:)
3711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3712 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3713 ac_tool_warned=yes ;;
3714 esac
3715 CC=$ac_ct_CC
3717 else
3718 CC="$ac_cv_prog_CC"
3721 if test -z "$CC"; then
3722 if test -n "$ac_tool_prefix"; then
3723 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3724 set dummy ${ac_tool_prefix}cc; ac_word=$2
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3726 $as_echo_n "checking for $ac_word... " >&6; }
3727 if ${ac_cv_prog_CC+:} false; then :
3728 $as_echo_n "(cached) " >&6
3729 else
3730 if test -n "$CC"; then
3731 ac_cv_prog_CC="$CC" # Let the user override the test.
3732 else
3733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3734 for as_dir in $PATH
3736 IFS=$as_save_IFS
3737 test -z "$as_dir" && as_dir=.
3738 for ac_exec_ext in '' $ac_executable_extensions; do
3739 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3740 ac_cv_prog_CC="${ac_tool_prefix}cc"
3741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3742 break 2
3744 done
3745 done
3746 IFS=$as_save_IFS
3750 CC=$ac_cv_prog_CC
3751 if test -n "$CC"; then
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3753 $as_echo "$CC" >&6; }
3754 else
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3756 $as_echo "no" >&6; }
3762 if test -z "$CC"; then
3763 # Extract the first word of "cc", so it can be a program name with args.
3764 set dummy cc; ac_word=$2
3765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3766 $as_echo_n "checking for $ac_word... " >&6; }
3767 if ${ac_cv_prog_CC+:} false; then :
3768 $as_echo_n "(cached) " >&6
3769 else
3770 if test -n "$CC"; then
3771 ac_cv_prog_CC="$CC" # Let the user override the test.
3772 else
3773 ac_prog_rejected=no
3774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3775 for as_dir in $PATH
3777 IFS=$as_save_IFS
3778 test -z "$as_dir" && as_dir=.
3779 for ac_exec_ext in '' $ac_executable_extensions; do
3780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3781 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3782 ac_prog_rejected=yes
3783 continue
3785 ac_cv_prog_CC="cc"
3786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3787 break 2
3789 done
3790 done
3791 IFS=$as_save_IFS
3793 if test $ac_prog_rejected = yes; then
3794 # We found a bogon in the path, so make sure we never use it.
3795 set dummy $ac_cv_prog_CC
3796 shift
3797 if test $# != 0; then
3798 # We chose a different compiler from the bogus one.
3799 # However, it has the same basename, so the bogon will be chosen
3800 # first if we set CC to just the basename; use the full file name.
3801 shift
3802 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3807 CC=$ac_cv_prog_CC
3808 if test -n "$CC"; then
3809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3810 $as_echo "$CC" >&6; }
3811 else
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3813 $as_echo "no" >&6; }
3818 if test -z "$CC"; then
3819 if test -n "$ac_tool_prefix"; then
3820 for ac_prog in cl.exe
3822 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3823 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3825 $as_echo_n "checking for $ac_word... " >&6; }
3826 if ${ac_cv_prog_CC+:} false; then :
3827 $as_echo_n "(cached) " >&6
3828 else
3829 if test -n "$CC"; then
3830 ac_cv_prog_CC="$CC" # Let the user override the test.
3831 else
3832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3833 for as_dir in $PATH
3835 IFS=$as_save_IFS
3836 test -z "$as_dir" && as_dir=.
3837 for ac_exec_ext in '' $ac_executable_extensions; do
3838 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3839 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3841 break 2
3843 done
3844 done
3845 IFS=$as_save_IFS
3849 CC=$ac_cv_prog_CC
3850 if test -n "$CC"; then
3851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3852 $as_echo "$CC" >&6; }
3853 else
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3855 $as_echo "no" >&6; }
3859 test -n "$CC" && break
3860 done
3862 if test -z "$CC"; then
3863 ac_ct_CC=$CC
3864 for ac_prog in cl.exe
3866 # Extract the first word of "$ac_prog", so it can be a program name with args.
3867 set dummy $ac_prog; ac_word=$2
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3869 $as_echo_n "checking for $ac_word... " >&6; }
3870 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3871 $as_echo_n "(cached) " >&6
3872 else
3873 if test -n "$ac_ct_CC"; then
3874 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3875 else
3876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3877 for as_dir in $PATH
3879 IFS=$as_save_IFS
3880 test -z "$as_dir" && as_dir=.
3881 for ac_exec_ext in '' $ac_executable_extensions; do
3882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3883 ac_cv_prog_ac_ct_CC="$ac_prog"
3884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3885 break 2
3887 done
3888 done
3889 IFS=$as_save_IFS
3893 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3894 if test -n "$ac_ct_CC"; then
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3896 $as_echo "$ac_ct_CC" >&6; }
3897 else
3898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3899 $as_echo "no" >&6; }
3903 test -n "$ac_ct_CC" && break
3904 done
3906 if test "x$ac_ct_CC" = x; then
3907 CC=""
3908 else
3909 case $cross_compiling:$ac_tool_warned in
3910 yes:)
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3912 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3913 ac_tool_warned=yes ;;
3914 esac
3915 CC=$ac_ct_CC
3922 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3923 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3924 as_fn_error $? "no acceptable C compiler found in \$PATH
3925 See \`config.log' for more details" "$LINENO" 5; }
3927 # Provide some information about the compiler.
3928 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3929 set X $ac_compile
3930 ac_compiler=$2
3931 for ac_option in --version -v -V -qversion; do
3932 { { ac_try="$ac_compiler $ac_option >&5"
3933 case "(($ac_try" in
3934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3935 *) ac_try_echo=$ac_try;;
3936 esac
3937 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3938 $as_echo "$ac_try_echo"; } >&5
3939 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3940 ac_status=$?
3941 if test -s conftest.err; then
3942 sed '10a\
3943 ... rest of stderr output deleted ...
3944 10q' conftest.err >conftest.er1
3945 cat conftest.er1 >&5
3947 rm -f conftest.er1 conftest.err
3948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3949 test $ac_status = 0; }
3950 done
3952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3953 /* end confdefs.h. */
3956 main ()
3960 return 0;
3962 _ACEOF
3963 ac_clean_files_save=$ac_clean_files
3964 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3965 # Try to create an executable without -o first, disregard a.out.
3966 # It will help us diagnose broken compilers, and finding out an intuition
3967 # of exeext.
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3969 $as_echo_n "checking whether the C compiler works... " >&6; }
3970 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3972 # The possible output files:
3973 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3975 ac_rmfiles=
3976 for ac_file in $ac_files
3978 case $ac_file in
3979 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3980 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3981 esac
3982 done
3983 rm -f $ac_rmfiles
3985 if { { ac_try="$ac_link_default"
3986 case "(($ac_try" in
3987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3988 *) ac_try_echo=$ac_try;;
3989 esac
3990 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3991 $as_echo "$ac_try_echo"; } >&5
3992 (eval "$ac_link_default") 2>&5
3993 ac_status=$?
3994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3995 test $ac_status = 0; }; then :
3996 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3997 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3998 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3999 # so that the user can short-circuit this test for compilers unknown to
4000 # Autoconf.
4001 for ac_file in $ac_files ''
4003 test -f "$ac_file" || continue
4004 case $ac_file in
4005 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4007 [ab].out )
4008 # We found the default executable, but exeext='' is most
4009 # certainly right.
4010 break;;
4011 *.* )
4012 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4013 then :; else
4014 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4016 # We set ac_cv_exeext here because the later test for it is not
4017 # safe: cross compilers may not add the suffix if given an `-o'
4018 # argument, so we may need to know it at that point already.
4019 # Even if this section looks crufty: it has the advantage of
4020 # actually working.
4021 break;;
4023 break;;
4024 esac
4025 done
4026 test "$ac_cv_exeext" = no && ac_cv_exeext=
4028 else
4029 ac_file=''
4031 if test -z "$ac_file"; then :
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4033 $as_echo "no" >&6; }
4034 $as_echo "$as_me: failed program was:" >&5
4035 sed 's/^/| /' conftest.$ac_ext >&5
4037 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4038 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4039 as_fn_error 77 "C compiler cannot create executables
4040 See \`config.log' for more details" "$LINENO" 5; }
4041 else
4042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4043 $as_echo "yes" >&6; }
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4046 $as_echo_n "checking for C compiler default output file name... " >&6; }
4047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4048 $as_echo "$ac_file" >&6; }
4049 ac_exeext=$ac_cv_exeext
4051 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4052 ac_clean_files=$ac_clean_files_save
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4054 $as_echo_n "checking for suffix of executables... " >&6; }
4055 if { { ac_try="$ac_link"
4056 case "(($ac_try" in
4057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4058 *) ac_try_echo=$ac_try;;
4059 esac
4060 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4061 $as_echo "$ac_try_echo"; } >&5
4062 (eval "$ac_link") 2>&5
4063 ac_status=$?
4064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4065 test $ac_status = 0; }; then :
4066 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4067 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4068 # work properly (i.e., refer to `conftest.exe'), while it won't with
4069 # `rm'.
4070 for ac_file in conftest.exe conftest conftest.*; do
4071 test -f "$ac_file" || continue
4072 case $ac_file in
4073 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4074 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4075 break;;
4076 * ) break;;
4077 esac
4078 done
4079 else
4080 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4081 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4082 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4083 See \`config.log' for more details" "$LINENO" 5; }
4085 rm -f conftest conftest$ac_cv_exeext
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4087 $as_echo "$ac_cv_exeext" >&6; }
4089 rm -f conftest.$ac_ext
4090 EXEEXT=$ac_cv_exeext
4091 ac_exeext=$EXEEXT
4092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4093 /* end confdefs.h. */
4094 #include <stdio.h>
4096 main ()
4098 FILE *f = fopen ("conftest.out", "w");
4099 return ferror (f) || fclose (f) != 0;
4102 return 0;
4104 _ACEOF
4105 ac_clean_files="$ac_clean_files conftest.out"
4106 # Check that the compiler produces executables we can run. If not, either
4107 # the compiler is broken, or we cross compile.
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4109 $as_echo_n "checking whether we are cross compiling... " >&6; }
4110 if test "$cross_compiling" != yes; then
4111 { { ac_try="$ac_link"
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_link") 2>&5
4119 ac_status=$?
4120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4121 test $ac_status = 0; }
4122 if { ac_try='./conftest$ac_cv_exeext'
4123 { { case "(($ac_try" in
4124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4125 *) ac_try_echo=$ac_try;;
4126 esac
4127 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4128 $as_echo "$ac_try_echo"; } >&5
4129 (eval "$ac_try") 2>&5
4130 ac_status=$?
4131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4132 test $ac_status = 0; }; }; then
4133 cross_compiling=no
4134 else
4135 if test "$cross_compiling" = maybe; then
4136 cross_compiling=yes
4137 else
4138 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4139 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4140 as_fn_error $? "cannot run C compiled programs.
4141 If you meant to cross compile, use \`--host'.
4142 See \`config.log' for more details" "$LINENO" 5; }
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4147 $as_echo "$cross_compiling" >&6; }
4149 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4150 ac_clean_files=$ac_clean_files_save
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4152 $as_echo_n "checking for suffix of object files... " >&6; }
4153 if ${ac_cv_objext+:} false; then :
4154 $as_echo_n "(cached) " >&6
4155 else
4156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4157 /* end confdefs.h. */
4160 main ()
4164 return 0;
4166 _ACEOF
4167 rm -f conftest.o conftest.obj
4168 if { { ac_try="$ac_compile"
4169 case "(($ac_try" in
4170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4171 *) ac_try_echo=$ac_try;;
4172 esac
4173 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4174 $as_echo "$ac_try_echo"; } >&5
4175 (eval "$ac_compile") 2>&5
4176 ac_status=$?
4177 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4178 test $ac_status = 0; }; then :
4179 for ac_file in conftest.o conftest.obj conftest.*; do
4180 test -f "$ac_file" || continue;
4181 case $ac_file in
4182 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4183 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4184 break;;
4185 esac
4186 done
4187 else
4188 $as_echo "$as_me: failed program was:" >&5
4189 sed 's/^/| /' conftest.$ac_ext >&5
4191 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4192 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4193 as_fn_error $? "cannot compute suffix of object files: cannot compile
4194 See \`config.log' for more details" "$LINENO" 5; }
4196 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4199 $as_echo "$ac_cv_objext" >&6; }
4200 OBJEXT=$ac_cv_objext
4201 ac_objext=$OBJEXT
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4203 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4204 if ${ac_cv_c_compiler_gnu+:} false; then :
4205 $as_echo_n "(cached) " >&6
4206 else
4207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4208 /* end confdefs.h. */
4211 main ()
4213 #ifndef __GNUC__
4214 choke me
4215 #endif
4218 return 0;
4220 _ACEOF
4221 if ac_fn_c_try_compile "$LINENO"; then :
4222 ac_compiler_gnu=yes
4223 else
4224 ac_compiler_gnu=no
4226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4227 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4231 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4232 if test $ac_compiler_gnu = yes; then
4233 GCC=yes
4234 else
4235 GCC=
4237 ac_test_CFLAGS=${CFLAGS+set}
4238 ac_save_CFLAGS=$CFLAGS
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4240 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4241 if ${ac_cv_prog_cc_g+:} false; then :
4242 $as_echo_n "(cached) " >&6
4243 else
4244 ac_save_c_werror_flag=$ac_c_werror_flag
4245 ac_c_werror_flag=yes
4246 ac_cv_prog_cc_g=no
4247 CFLAGS="-g"
4248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4249 /* end confdefs.h. */
4252 main ()
4256 return 0;
4258 _ACEOF
4259 if ac_fn_c_try_compile "$LINENO"; then :
4260 ac_cv_prog_cc_g=yes
4261 else
4262 CFLAGS=""
4263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4264 /* end confdefs.h. */
4267 main ()
4271 return 0;
4273 _ACEOF
4274 if ac_fn_c_try_compile "$LINENO"; then :
4276 else
4277 ac_c_werror_flag=$ac_save_c_werror_flag
4278 CFLAGS="-g"
4279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4280 /* end confdefs.h. */
4283 main ()
4287 return 0;
4289 _ACEOF
4290 if ac_fn_c_try_compile "$LINENO"; then :
4291 ac_cv_prog_cc_g=yes
4293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4298 ac_c_werror_flag=$ac_save_c_werror_flag
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4301 $as_echo "$ac_cv_prog_cc_g" >&6; }
4302 if test "$ac_test_CFLAGS" = set; then
4303 CFLAGS=$ac_save_CFLAGS
4304 elif test $ac_cv_prog_cc_g = yes; then
4305 if test "$GCC" = yes; then
4306 CFLAGS="-g -O2"
4307 else
4308 CFLAGS="-g"
4310 else
4311 if test "$GCC" = yes; then
4312 CFLAGS="-O2"
4313 else
4314 CFLAGS=
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4318 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4319 if ${ac_cv_prog_cc_c89+:} false; then :
4320 $as_echo_n "(cached) " >&6
4321 else
4322 ac_cv_prog_cc_c89=no
4323 ac_save_CC=$CC
4324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4325 /* end confdefs.h. */
4326 #include <stdarg.h>
4327 #include <stdio.h>
4328 struct stat;
4329 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4330 struct buf { int x; };
4331 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4332 static char *e (p, i)
4333 char **p;
4334 int i;
4336 return p[i];
4338 static char *f (char * (*g) (char **, int), char **p, ...)
4340 char *s;
4341 va_list v;
4342 va_start (v,p);
4343 s = g (p, va_arg (v,int));
4344 va_end (v);
4345 return s;
4348 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4349 function prototypes and stuff, but not '\xHH' hex character constants.
4350 These don't provoke an error unfortunately, instead are silently treated
4351 as 'x'. The following induces an error, until -std is added to get
4352 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4353 array size at least. It's necessary to write '\x00'==0 to get something
4354 that's true only with -std. */
4355 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4357 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4358 inside strings and character constants. */
4359 #define FOO(x) 'x'
4360 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4362 int test (int i, double x);
4363 struct s1 {int (*f) (int a);};
4364 struct s2 {int (*f) (double a);};
4365 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4366 int argc;
4367 char **argv;
4369 main ()
4371 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4373 return 0;
4375 _ACEOF
4376 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4377 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4379 CC="$ac_save_CC $ac_arg"
4380 if ac_fn_c_try_compile "$LINENO"; then :
4381 ac_cv_prog_cc_c89=$ac_arg
4383 rm -f core conftest.err conftest.$ac_objext
4384 test "x$ac_cv_prog_cc_c89" != "xno" && break
4385 done
4386 rm -f conftest.$ac_ext
4387 CC=$ac_save_CC
4390 # AC_CACHE_VAL
4391 case "x$ac_cv_prog_cc_c89" in
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4394 $as_echo "none needed" >&6; } ;;
4395 xno)
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4397 $as_echo "unsupported" >&6; } ;;
4399 CC="$CC $ac_cv_prog_cc_c89"
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4401 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4402 esac
4403 if test "x$ac_cv_prog_cc_c89" != xno; then :
4407 ac_ext=c
4408 ac_cpp='$CPP $CPPFLAGS'
4409 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4410 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4411 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4413 ac_ext=cpp
4414 ac_cpp='$CXXCPP $CPPFLAGS'
4415 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4416 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4417 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4418 if test -z "$CXX"; then
4419 if test -n "$CCC"; then
4420 CXX=$CCC
4421 else
4422 if test -n "$ac_tool_prefix"; then
4423 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4425 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4426 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4428 $as_echo_n "checking for $ac_word... " >&6; }
4429 if ${ac_cv_prog_CXX+:} false; then :
4430 $as_echo_n "(cached) " >&6
4431 else
4432 if test -n "$CXX"; then
4433 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4434 else
4435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4436 for as_dir in $PATH
4438 IFS=$as_save_IFS
4439 test -z "$as_dir" && as_dir=.
4440 for ac_exec_ext in '' $ac_executable_extensions; do
4441 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4442 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4444 break 2
4446 done
4447 done
4448 IFS=$as_save_IFS
4452 CXX=$ac_cv_prog_CXX
4453 if test -n "$CXX"; then
4454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4455 $as_echo "$CXX" >&6; }
4456 else
4457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4458 $as_echo "no" >&6; }
4462 test -n "$CXX" && break
4463 done
4465 if test -z "$CXX"; then
4466 ac_ct_CXX=$CXX
4467 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4469 # Extract the first word of "$ac_prog", so it can be a program name with args.
4470 set dummy $ac_prog; ac_word=$2
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4472 $as_echo_n "checking for $ac_word... " >&6; }
4473 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4474 $as_echo_n "(cached) " >&6
4475 else
4476 if test -n "$ac_ct_CXX"; then
4477 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4478 else
4479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4480 for as_dir in $PATH
4482 IFS=$as_save_IFS
4483 test -z "$as_dir" && as_dir=.
4484 for ac_exec_ext in '' $ac_executable_extensions; do
4485 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4486 ac_cv_prog_ac_ct_CXX="$ac_prog"
4487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4488 break 2
4490 done
4491 done
4492 IFS=$as_save_IFS
4496 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4497 if test -n "$ac_ct_CXX"; then
4498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4499 $as_echo "$ac_ct_CXX" >&6; }
4500 else
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4502 $as_echo "no" >&6; }
4506 test -n "$ac_ct_CXX" && break
4507 done
4509 if test "x$ac_ct_CXX" = x; then
4510 CXX="g++"
4511 else
4512 case $cross_compiling:$ac_tool_warned in
4513 yes:)
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4515 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4516 ac_tool_warned=yes ;;
4517 esac
4518 CXX=$ac_ct_CXX
4524 # Provide some information about the compiler.
4525 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4526 set X $ac_compile
4527 ac_compiler=$2
4528 for ac_option in --version -v -V -qversion; do
4529 { { ac_try="$ac_compiler $ac_option >&5"
4530 case "(($ac_try" in
4531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4532 *) ac_try_echo=$ac_try;;
4533 esac
4534 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4535 $as_echo "$ac_try_echo"; } >&5
4536 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4537 ac_status=$?
4538 if test -s conftest.err; then
4539 sed '10a\
4540 ... rest of stderr output deleted ...
4541 10q' conftest.err >conftest.er1
4542 cat conftest.er1 >&5
4544 rm -f conftest.er1 conftest.err
4545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4546 test $ac_status = 0; }
4547 done
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4550 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4551 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4552 $as_echo_n "(cached) " >&6
4553 else
4554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4555 /* end confdefs.h. */
4558 main ()
4560 #ifndef __GNUC__
4561 choke me
4562 #endif
4565 return 0;
4567 _ACEOF
4568 if ac_fn_cxx_try_compile "$LINENO"; then :
4569 ac_compiler_gnu=yes
4570 else
4571 ac_compiler_gnu=no
4573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4574 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4578 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4579 if test $ac_compiler_gnu = yes; then
4580 GXX=yes
4581 else
4582 GXX=
4584 ac_test_CXXFLAGS=${CXXFLAGS+set}
4585 ac_save_CXXFLAGS=$CXXFLAGS
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4587 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4588 if ${ac_cv_prog_cxx_g+:} false; then :
4589 $as_echo_n "(cached) " >&6
4590 else
4591 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4592 ac_cxx_werror_flag=yes
4593 ac_cv_prog_cxx_g=no
4594 CXXFLAGS="-g"
4595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4596 /* end confdefs.h. */
4599 main ()
4603 return 0;
4605 _ACEOF
4606 if ac_fn_cxx_try_compile "$LINENO"; then :
4607 ac_cv_prog_cxx_g=yes
4608 else
4609 CXXFLAGS=""
4610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4611 /* end confdefs.h. */
4614 main ()
4618 return 0;
4620 _ACEOF
4621 if ac_fn_cxx_try_compile "$LINENO"; then :
4623 else
4624 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4625 CXXFLAGS="-g"
4626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4627 /* end confdefs.h. */
4630 main ()
4634 return 0;
4636 _ACEOF
4637 if ac_fn_cxx_try_compile "$LINENO"; then :
4638 ac_cv_prog_cxx_g=yes
4640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4645 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4648 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4649 if test "$ac_test_CXXFLAGS" = set; then
4650 CXXFLAGS=$ac_save_CXXFLAGS
4651 elif test $ac_cv_prog_cxx_g = yes; then
4652 if test "$GXX" = yes; then
4653 CXXFLAGS="-g -O2"
4654 else
4655 CXXFLAGS="-g"
4657 else
4658 if test "$GXX" = yes; then
4659 CXXFLAGS="-O2"
4660 else
4661 CXXFLAGS=
4664 ac_ext=c
4665 ac_cpp='$CPP $CPPFLAGS'
4666 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4667 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4668 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4670 if test -n "$ac_tool_prefix"; then
4671 # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
4672 set dummy ${ac_tool_prefix}cpp; ac_word=$2
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4674 $as_echo_n "checking for $ac_word... " >&6; }
4675 if ${ac_cv_prog_CPPBIN+:} false; then :
4676 $as_echo_n "(cached) " >&6
4677 else
4678 if test -n "$CPPBIN"; then
4679 ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test.
4680 else
4681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4682 for as_dir in $PATH
4684 IFS=$as_save_IFS
4685 test -z "$as_dir" && as_dir=.
4686 for ac_exec_ext in '' $ac_executable_extensions; do
4687 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4688 ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp"
4689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4690 break 2
4692 done
4693 done
4694 IFS=$as_save_IFS
4698 CPPBIN=$ac_cv_prog_CPPBIN
4699 if test -n "$CPPBIN"; then
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPPBIN" >&5
4701 $as_echo "$CPPBIN" >&6; }
4702 else
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4704 $as_echo "no" >&6; }
4709 if test -z "$ac_cv_prog_CPPBIN"; then
4710 ac_ct_CPPBIN=$CPPBIN
4711 # Extract the first word of "cpp", so it can be a program name with args.
4712 set dummy cpp; ac_word=$2
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4714 $as_echo_n "checking for $ac_word... " >&6; }
4715 if ${ac_cv_prog_ac_ct_CPPBIN+:} false; then :
4716 $as_echo_n "(cached) " >&6
4717 else
4718 if test -n "$ac_ct_CPPBIN"; then
4719 ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test.
4720 else
4721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4722 for as_dir in $PATH
4724 IFS=$as_save_IFS
4725 test -z "$as_dir" && as_dir=.
4726 for ac_exec_ext in '' $ac_executable_extensions; do
4727 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4728 ac_cv_prog_ac_ct_CPPBIN="cpp"
4729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4730 break 2
4732 done
4733 done
4734 IFS=$as_save_IFS
4738 ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN
4739 if test -n "$ac_ct_CPPBIN"; then
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CPPBIN" >&5
4741 $as_echo "$ac_ct_CPPBIN" >&6; }
4742 else
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4744 $as_echo "no" >&6; }
4747 if test "x$ac_ct_CPPBIN" = x; then
4748 CPPBIN="cpp"
4749 else
4750 case $cross_compiling:$ac_tool_warned in
4751 yes:)
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4753 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4754 ac_tool_warned=yes ;;
4755 esac
4756 CPPBIN=$ac_ct_CPPBIN
4758 else
4759 CPPBIN="$ac_cv_prog_CPPBIN"
4763 cat >>confdefs.h <<_ACEOF
4764 #define EXEEXT "$ac_exeext"
4765 _ACEOF
4767 if test -n "$ac_tool_prefix"; then
4768 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4769 set dummy ${ac_tool_prefix}ld; ac_word=$2
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4771 $as_echo_n "checking for $ac_word... " >&6; }
4772 if ${ac_cv_prog_LD+:} false; then :
4773 $as_echo_n "(cached) " >&6
4774 else
4775 if test -n "$LD"; then
4776 ac_cv_prog_LD="$LD" # Let the user override the test.
4777 else
4778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4779 for as_dir in $PATH
4781 IFS=$as_save_IFS
4782 test -z "$as_dir" && as_dir=.
4783 for ac_exec_ext in '' $ac_executable_extensions; do
4784 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4785 ac_cv_prog_LD="${ac_tool_prefix}ld"
4786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4787 break 2
4789 done
4790 done
4791 IFS=$as_save_IFS
4795 LD=$ac_cv_prog_LD
4796 if test -n "$LD"; then
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4798 $as_echo "$LD" >&6; }
4799 else
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4801 $as_echo "no" >&6; }
4806 if test -z "$ac_cv_prog_LD"; then
4807 ac_ct_LD=$LD
4808 # Extract the first word of "ld", so it can be a program name with args.
4809 set dummy ld; ac_word=$2
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4811 $as_echo_n "checking for $ac_word... " >&6; }
4812 if ${ac_cv_prog_ac_ct_LD+:} false; then :
4813 $as_echo_n "(cached) " >&6
4814 else
4815 if test -n "$ac_ct_LD"; then
4816 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4817 else
4818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4819 for as_dir in $PATH
4821 IFS=$as_save_IFS
4822 test -z "$as_dir" && as_dir=.
4823 for ac_exec_ext in '' $ac_executable_extensions; do
4824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4825 ac_cv_prog_ac_ct_LD="ld"
4826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4827 break 2
4829 done
4830 done
4831 IFS=$as_save_IFS
4835 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4836 if test -n "$ac_ct_LD"; then
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LD" >&5
4838 $as_echo "$ac_ct_LD" >&6; }
4839 else
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4841 $as_echo "no" >&6; }
4844 if test "x$ac_ct_LD" = x; then
4845 LD=""
4846 else
4847 case $cross_compiling:$ac_tool_warned in
4848 yes:)
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4850 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4851 ac_tool_warned=yes ;;
4852 esac
4853 LD=$ac_ct_LD
4855 else
4856 LD="$ac_cv_prog_LD"
4860 case $host in
4861 *-darwin*)
4862 if test "x$enable_win64" = "xyes"
4863 then
4864 CC="$CC -m64"
4865 CXX="$CXX -m64"
4866 host_cpu="x86_64"
4867 notice_platform="64-bit "
4868 TARGETFLAGS="-m64"
4870 else
4871 CC="$CC -m32"
4872 CXX="$CXX -m32"
4873 host_cpu="i386"
4874 notice_platform="32-bit "
4875 TARGETFLAGS="-m32"
4877 enable_win16=${enable_win16:-yes}
4879 with_fontconfig=${with_fontconfig:-no}
4881 x86_64*|amd64*)
4882 if test "x$enable_win64" != "xyes" -a "$cross_compiling" != "yes"
4883 then
4884 CC="$CC -m32"
4885 CXX="$CXX -m32"
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC works" >&5
4887 $as_echo_n "checking whether $CC works... " >&6; }
4889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4890 /* end confdefs.h. */
4893 main ()
4897 return 0;
4899 _ACEOF
4900 if ac_fn_c_try_link "$LINENO"; then :
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4902 $as_echo "yes" >&6; }
4903 else
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4905 $as_echo "no" >&6; }
4906 as_fn_error $? "Cannot build a 32-bit program, you need to install 32-bit development libraries." "$LINENO" 5
4908 rm -f core conftest.err conftest.$ac_objext \
4909 conftest$ac_exeext conftest.$ac_ext
4910 host_cpu="i386"
4911 notice_platform="32-bit "
4912 TARGETFLAGS="-m32"
4914 enable_win16=${enable_win16:-yes}
4915 else
4916 if test "x${GCC}" = "xyes"
4917 then
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports __builtin_ms_va_list" >&5
4919 $as_echo_n "checking whether $CC supports __builtin_ms_va_list... " >&6; }
4920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4921 /* end confdefs.h. */
4922 #include <stdarg.h>
4924 main ()
4926 void func(__builtin_ms_va_list *args);
4928 return 0;
4930 _ACEOF
4931 if ac_fn_c_try_compile "$LINENO"; then :
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4933 $as_echo "yes" >&6; }
4934 else
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4936 $as_echo "no" >&6; }
4937 as_fn_error $? "You need gcc >= 4.4 to build Wine as 64-bit." "$LINENO" 5
4939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4941 host_cpu="x86_64"
4942 TARGETFLAGS="-m64"
4946 arm*)
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports Thumb" >&5
4948 $as_echo_n "checking whether $CC supports Thumb... " >&6; }
4949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4950 /* end confdefs.h. */
4951 int ac_test(int i) { return i; }
4953 main ()
4955 asm(".thumb\nblx ac_test\n.arm"); if (ac_test(1)) return 1
4957 return 0;
4959 _ACEOF
4960 if ac_fn_c_try_link "$LINENO"; then :
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4962 $as_echo "yes" >&6; }
4963 else
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4965 $as_echo "no" >&6; }
4966 as_fn_error $? "You need a target with Thumb support to build Wine for ARM." "$LINENO" 5
4968 rm -f core conftest.err conftest.$ac_objext \
4969 conftest$ac_exeext conftest.$ac_ext
4970 CFLAGS="$CFLAGS -marm"
4971 TARGETFLAGS="-marm"
4974 *-mingw32*|*-cygwin*)
4975 enable_win16=${enable_win16:-no}
4976 CFLAGS="$CFLAGS -D_WIN32"
4978 i[3456789]86*)
4979 enable_win16=${enable_win16:-yes}
4981 esac
4983 enable_win16=${enable_win16:-no}
4984 enable_win64=${enable_win64:-no}
4986 enable_winetest=${enable_winetest:-$enable_tests}
4988 if test -n "$with_wine64"
4989 then
4990 if test "x$enable_win64" = "xyes"
4991 then
4992 as_fn_error $? "--enable-win64 and --with-wine64 are mutually exclusive.
4993 --enable-win64 should be used in the 64-bit build tree, --with-wine64 in the 32-bit Wow64 build tree." "$LINENO" 5
4995 enable_fonts=${enable_fonts:-no}
4996 enable_server=${enable_server:-no}
4997 elif test "x$enable_win64" = "xyes"
4998 then
4999 test "x$libdir" != "x\${exec_prefix}/lib" || libdir="\${exec_prefix}/lib64"
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the directory containing the Wine tools" >&5
5003 $as_echo_n "checking for the directory containing the Wine tools... " >&6; }
5004 if ${wine_cv_toolsdir+:} false; then :
5005 $as_echo_n "(cached) " >&6
5006 else
5007 wine_cv_toolsdir="$with_wine_tools"
5008 if test -z "$with_wine_tools"; then
5009 if test "$cross_compiling" = "yes"; then
5010 as_fn_error $? "you must use the --with-wine-tools option when cross-compiling." "$LINENO" 5
5011 elif test -n "$with_wine64"; then
5012 wine_cv_toolsdir="$with_wine64"
5015 if test -z "$wine_cv_toolsdir"; then
5016 wine_makedep=tools/makedep
5017 wine_cv_toolsdir="\$(top_builddir)"
5018 elif test -d "$wine_cv_toolsdir/tools/winebuild"; then
5019 wine_makedep=$wine_cv_toolsdir/tools/makedep
5020 case "$wine_cv_toolsdir" in
5021 /*) ;;
5022 *) wine_cv_toolsdir="\$(top_builddir)/$wine_cv_toolsdir" ;;
5023 esac
5024 enable_tools=${enable_tools:-no}
5025 test -f "$wine_makedep" || as_fn_error $? "the Wine tools have not yet been built in $wine_cv_toolsdir" "$LINENO" 5
5026 else
5027 as_fn_error $? "could not find Wine tools in $wine_cv_toolsdir" "$LINENO" 5
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_toolsdir" >&5
5031 $as_echo "$wine_cv_toolsdir" >&6; }
5032 TOOLSDIR=$wine_cv_toolsdir
5034 if test -n "$host_alias" -a "$host_alias" != "$build_alias"
5035 then
5036 TARGETFLAGS="-b $host_alias $TARGETFLAGS"
5040 for ac_prog in flex
5042 # Extract the first word of "$ac_prog", so it can be a program name with args.
5043 set dummy $ac_prog; ac_word=$2
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5045 $as_echo_n "checking for $ac_word... " >&6; }
5046 if ${ac_cv_prog_FLEX+:} false; then :
5047 $as_echo_n "(cached) " >&6
5048 else
5049 if test -n "$FLEX"; then
5050 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5051 else
5052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5053 for as_dir in $PATH
5055 IFS=$as_save_IFS
5056 test -z "$as_dir" && as_dir=.
5057 for ac_exec_ext in '' $ac_executable_extensions; do
5058 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5059 ac_cv_prog_FLEX="$ac_prog"
5060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5061 break 2
5063 done
5064 done
5065 IFS=$as_save_IFS
5069 FLEX=$ac_cv_prog_FLEX
5070 if test -n "$FLEX"; then
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
5072 $as_echo "$FLEX" >&6; }
5073 else
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5075 $as_echo "no" >&6; }
5079 test -n "$FLEX" && break
5080 done
5081 test -n "$FLEX" || FLEX="none"
5083 if test "$FLEX" = "none"
5084 then
5085 as_fn_error $? "no suitable flex found. Please install the 'flex' package." "$LINENO" 5
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether flex is recent enough" >&5
5088 $as_echo_n "checking whether flex is recent enough... " >&6; }
5089 cat >conftest.l <<EOF
5090 %top{
5091 #include "prediluvian.h"
5095 if $FLEX -t conftest.l >/dev/null 2>&5
5096 then
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5098 $as_echo "yes" >&6; }
5099 else
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5101 $as_echo "no" >&6; }
5102 as_fn_error $? "Your flex version is too old. Please install flex version 2.5.33 or newer." "$LINENO" 5
5105 for ac_prog in bison
5107 # Extract the first word of "$ac_prog", so it can be a program name with args.
5108 set dummy $ac_prog; ac_word=$2
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5110 $as_echo_n "checking for $ac_word... " >&6; }
5111 if ${ac_cv_prog_BISON+:} false; then :
5112 $as_echo_n "(cached) " >&6
5113 else
5114 if test -n "$BISON"; then
5115 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5116 else
5117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5118 for as_dir in $PATH
5120 IFS=$as_save_IFS
5121 test -z "$as_dir" && as_dir=.
5122 for ac_exec_ext in '' $ac_executable_extensions; do
5123 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5124 ac_cv_prog_BISON="$ac_prog"
5125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5126 break 2
5128 done
5129 done
5130 IFS=$as_save_IFS
5134 BISON=$ac_cv_prog_BISON
5135 if test -n "$BISON"; then
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5137 $as_echo "$BISON" >&6; }
5138 else
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5140 $as_echo "no" >&6; }
5144 test -n "$BISON" && break
5145 done
5146 test -n "$BISON" || BISON="none"
5148 if test "$BISON" = "none"
5149 then
5150 as_fn_error $? "no suitable bison found. Please install the 'bison' package." "$LINENO" 5
5153 if test -n "$ac_tool_prefix"; then
5154 for ac_prog in ar gar
5156 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5157 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5159 $as_echo_n "checking for $ac_word... " >&6; }
5160 if ${ac_cv_prog_AR+:} false; then :
5161 $as_echo_n "(cached) " >&6
5162 else
5163 if test -n "$AR"; then
5164 ac_cv_prog_AR="$AR" # Let the user override the test.
5165 else
5166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5167 for as_dir in $PATH
5169 IFS=$as_save_IFS
5170 test -z "$as_dir" && as_dir=.
5171 for ac_exec_ext in '' $ac_executable_extensions; do
5172 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5173 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5175 break 2
5177 done
5178 done
5179 IFS=$as_save_IFS
5183 AR=$ac_cv_prog_AR
5184 if test -n "$AR"; then
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5186 $as_echo "$AR" >&6; }
5187 else
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5189 $as_echo "no" >&6; }
5193 test -n "$AR" && break
5194 done
5196 if test -z "$AR"; then
5197 ac_ct_AR=$AR
5198 for ac_prog in ar gar
5200 # Extract the first word of "$ac_prog", so it can be a program name with args.
5201 set dummy $ac_prog; ac_word=$2
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5203 $as_echo_n "checking for $ac_word... " >&6; }
5204 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5205 $as_echo_n "(cached) " >&6
5206 else
5207 if test -n "$ac_ct_AR"; then
5208 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5209 else
5210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5211 for as_dir in $PATH
5213 IFS=$as_save_IFS
5214 test -z "$as_dir" && as_dir=.
5215 for ac_exec_ext in '' $ac_executable_extensions; do
5216 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5217 ac_cv_prog_ac_ct_AR="$ac_prog"
5218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5219 break 2
5221 done
5222 done
5223 IFS=$as_save_IFS
5227 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5228 if test -n "$ac_ct_AR"; then
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5230 $as_echo "$ac_ct_AR" >&6; }
5231 else
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5233 $as_echo "no" >&6; }
5237 test -n "$ac_ct_AR" && break
5238 done
5240 if test "x$ac_ct_AR" = x; then
5241 AR="ar"
5242 else
5243 case $cross_compiling:$ac_tool_warned in
5244 yes:)
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5246 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5247 ac_tool_warned=yes ;;
5248 esac
5249 AR=$ac_ct_AR
5253 if test -n "$ac_tool_prefix"; then
5254 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5255 set dummy ${ac_tool_prefix}strip; ac_word=$2
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5257 $as_echo_n "checking for $ac_word... " >&6; }
5258 if ${ac_cv_prog_STRIP+:} false; then :
5259 $as_echo_n "(cached) " >&6
5260 else
5261 if test -n "$STRIP"; then
5262 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5263 else
5264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5265 for as_dir in $PATH
5267 IFS=$as_save_IFS
5268 test -z "$as_dir" && as_dir=.
5269 for ac_exec_ext in '' $ac_executable_extensions; do
5270 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5271 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5273 break 2
5275 done
5276 done
5277 IFS=$as_save_IFS
5281 STRIP=$ac_cv_prog_STRIP
5282 if test -n "$STRIP"; then
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5284 $as_echo "$STRIP" >&6; }
5285 else
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5287 $as_echo "no" >&6; }
5292 if test -z "$ac_cv_prog_STRIP"; then
5293 ac_ct_STRIP=$STRIP
5294 # Extract the first word of "strip", so it can be a program name with args.
5295 set dummy strip; ac_word=$2
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5297 $as_echo_n "checking for $ac_word... " >&6; }
5298 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5299 $as_echo_n "(cached) " >&6
5300 else
5301 if test -n "$ac_ct_STRIP"; then
5302 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5303 else
5304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5305 for as_dir in $PATH
5307 IFS=$as_save_IFS
5308 test -z "$as_dir" && as_dir=.
5309 for ac_exec_ext in '' $ac_executable_extensions; do
5310 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5311 ac_cv_prog_ac_ct_STRIP="strip"
5312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5313 break 2
5315 done
5316 done
5317 IFS=$as_save_IFS
5321 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5322 if test -n "$ac_ct_STRIP"; then
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5324 $as_echo "$ac_ct_STRIP" >&6; }
5325 else
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5327 $as_echo "no" >&6; }
5330 if test "x$ac_ct_STRIP" = x; then
5331 STRIP="strip"
5332 else
5333 case $cross_compiling:$ac_tool_warned in
5334 yes:)
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5336 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5337 ac_tool_warned=yes ;;
5338 esac
5339 STRIP=$ac_ct_STRIP
5341 else
5342 STRIP="$ac_cv_prog_STRIP"
5345 ARFLAGS=rc
5347 if test -n "$ac_tool_prefix"; then
5348 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5349 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5351 $as_echo_n "checking for $ac_word... " >&6; }
5352 if ${ac_cv_prog_RANLIB+:} false; then :
5353 $as_echo_n "(cached) " >&6
5354 else
5355 if test -n "$RANLIB"; then
5356 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5357 else
5358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5359 for as_dir in $PATH
5361 IFS=$as_save_IFS
5362 test -z "$as_dir" && as_dir=.
5363 for ac_exec_ext in '' $ac_executable_extensions; do
5364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5365 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5367 break 2
5369 done
5370 done
5371 IFS=$as_save_IFS
5375 RANLIB=$ac_cv_prog_RANLIB
5376 if test -n "$RANLIB"; then
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5378 $as_echo "$RANLIB" >&6; }
5379 else
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5381 $as_echo "no" >&6; }
5386 if test -z "$ac_cv_prog_RANLIB"; then
5387 ac_ct_RANLIB=$RANLIB
5388 # Extract the first word of "ranlib", so it can be a program name with args.
5389 set dummy ranlib; ac_word=$2
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5391 $as_echo_n "checking for $ac_word... " >&6; }
5392 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5393 $as_echo_n "(cached) " >&6
5394 else
5395 if test -n "$ac_ct_RANLIB"; then
5396 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5397 else
5398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5399 for as_dir in $PATH
5401 IFS=$as_save_IFS
5402 test -z "$as_dir" && as_dir=.
5403 for ac_exec_ext in '' $ac_executable_extensions; do
5404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5405 ac_cv_prog_ac_ct_RANLIB="ranlib"
5406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5407 break 2
5409 done
5410 done
5411 IFS=$as_save_IFS
5415 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5416 if test -n "$ac_ct_RANLIB"; then
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5418 $as_echo "$ac_ct_RANLIB" >&6; }
5419 else
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5421 $as_echo "no" >&6; }
5424 if test "x$ac_ct_RANLIB" = x; then
5425 RANLIB=":"
5426 else
5427 case $cross_compiling:$ac_tool_warned in
5428 yes:)
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5430 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5431 ac_tool_warned=yes ;;
5432 esac
5433 RANLIB=$ac_ct_RANLIB
5435 else
5436 RANLIB="$ac_cv_prog_RANLIB"
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5440 $as_echo_n "checking whether ln -s works... " >&6; }
5441 LN_S=$as_ln_s
5442 if test "$LN_S" = "ln -s"; then
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5444 $as_echo "yes" >&6; }
5445 else
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5447 $as_echo "no, using $LN_S" >&6; }
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5451 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5452 if ${ac_cv_path_GREP+:} false; then :
5453 $as_echo_n "(cached) " >&6
5454 else
5455 if test -z "$GREP"; then
5456 ac_path_GREP_found=false
5457 # Loop through the user's path and test for each of PROGNAME-LIST
5458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5459 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5461 IFS=$as_save_IFS
5462 test -z "$as_dir" && as_dir=.
5463 for ac_prog in grep ggrep; do
5464 for ac_exec_ext in '' $ac_executable_extensions; do
5465 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5466 as_fn_executable_p "$ac_path_GREP" || continue
5467 # Check for GNU ac_path_GREP and select it if it is found.
5468 # Check for GNU $ac_path_GREP
5469 case `"$ac_path_GREP" --version 2>&1` in
5470 *GNU*)
5471 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5473 ac_count=0
5474 $as_echo_n 0123456789 >"conftest.in"
5475 while :
5477 cat "conftest.in" "conftest.in" >"conftest.tmp"
5478 mv "conftest.tmp" "conftest.in"
5479 cp "conftest.in" "conftest.nl"
5480 $as_echo 'GREP' >> "conftest.nl"
5481 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5482 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5483 as_fn_arith $ac_count + 1 && ac_count=$as_val
5484 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5485 # Best one so far, save it but keep looking for a better one
5486 ac_cv_path_GREP="$ac_path_GREP"
5487 ac_path_GREP_max=$ac_count
5489 # 10*(2^10) chars as input seems more than enough
5490 test $ac_count -gt 10 && break
5491 done
5492 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5493 esac
5495 $ac_path_GREP_found && break 3
5496 done
5497 done
5498 done
5499 IFS=$as_save_IFS
5500 if test -z "$ac_cv_path_GREP"; then
5501 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5503 else
5504 ac_cv_path_GREP=$GREP
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5509 $as_echo "$ac_cv_path_GREP" >&6; }
5510 GREP="$ac_cv_path_GREP"
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5514 $as_echo_n "checking for egrep... " >&6; }
5515 if ${ac_cv_path_EGREP+:} false; then :
5516 $as_echo_n "(cached) " >&6
5517 else
5518 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5519 then ac_cv_path_EGREP="$GREP -E"
5520 else
5521 if test -z "$EGREP"; then
5522 ac_path_EGREP_found=false
5523 # Loop through the user's path and test for each of PROGNAME-LIST
5524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5525 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5527 IFS=$as_save_IFS
5528 test -z "$as_dir" && as_dir=.
5529 for ac_prog in egrep; do
5530 for ac_exec_ext in '' $ac_executable_extensions; do
5531 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5532 as_fn_executable_p "$ac_path_EGREP" || continue
5533 # Check for GNU ac_path_EGREP and select it if it is found.
5534 # Check for GNU $ac_path_EGREP
5535 case `"$ac_path_EGREP" --version 2>&1` in
5536 *GNU*)
5537 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5539 ac_count=0
5540 $as_echo_n 0123456789 >"conftest.in"
5541 while :
5543 cat "conftest.in" "conftest.in" >"conftest.tmp"
5544 mv "conftest.tmp" "conftest.in"
5545 cp "conftest.in" "conftest.nl"
5546 $as_echo 'EGREP' >> "conftest.nl"
5547 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5548 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5549 as_fn_arith $ac_count + 1 && ac_count=$as_val
5550 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5551 # Best one so far, save it but keep looking for a better one
5552 ac_cv_path_EGREP="$ac_path_EGREP"
5553 ac_path_EGREP_max=$ac_count
5555 # 10*(2^10) chars as input seems more than enough
5556 test $ac_count -gt 10 && break
5557 done
5558 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5559 esac
5561 $ac_path_EGREP_found && break 3
5562 done
5563 done
5564 done
5565 IFS=$as_save_IFS
5566 if test -z "$ac_cv_path_EGREP"; then
5567 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5569 else
5570 ac_cv_path_EGREP=$EGREP
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5576 $as_echo "$ac_cv_path_EGREP" >&6; }
5577 EGREP="$ac_cv_path_EGREP"
5580 # Extract the first word of "ldconfig", so it can be a program name with args.
5581 set dummy ldconfig; ac_word=$2
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5583 $as_echo_n "checking for $ac_word... " >&6; }
5584 if ${ac_cv_path_LDCONFIG+:} false; then :
5585 $as_echo_n "(cached) " >&6
5586 else
5587 case $LDCONFIG in
5588 [\\/]* | ?:[\\/]*)
5589 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
5592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5593 for as_dir in /sbin /usr/sbin $PATH
5595 IFS=$as_save_IFS
5596 test -z "$as_dir" && as_dir=.
5597 for ac_exec_ext in '' $ac_executable_extensions; do
5598 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5599 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
5600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5601 break 2
5603 done
5604 done
5605 IFS=$as_save_IFS
5607 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
5609 esac
5611 LDCONFIG=$ac_cv_path_LDCONFIG
5612 if test -n "$LDCONFIG"; then
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
5614 $as_echo "$LDCONFIG" >&6; }
5615 else
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5617 $as_echo "no" >&6; }
5621 for ac_prog in msgfmt
5623 # Extract the first word of "$ac_prog", so it can be a program name with args.
5624 set dummy $ac_prog; ac_word=$2
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5626 $as_echo_n "checking for $ac_word... " >&6; }
5627 if ${ac_cv_prog_MSGFMT+:} false; then :
5628 $as_echo_n "(cached) " >&6
5629 else
5630 if test -n "$MSGFMT"; then
5631 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
5632 else
5633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5634 for as_dir in $PATH
5636 IFS=$as_save_IFS
5637 test -z "$as_dir" && as_dir=.
5638 for ac_exec_ext in '' $ac_executable_extensions; do
5639 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5640 ac_cv_prog_MSGFMT="$ac_prog"
5641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5642 break 2
5644 done
5645 done
5646 IFS=$as_save_IFS
5650 MSGFMT=$ac_cv_prog_MSGFMT
5651 if test -n "$MSGFMT"; then
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5653 $as_echo "$MSGFMT" >&6; }
5654 else
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5656 $as_echo "no" >&6; }
5660 test -n "$MSGFMT" && break
5661 done
5662 test -n "$MSGFMT" || MSGFMT="false"
5664 if ${ac_tool_prefix+:} false; then :
5665 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5666 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5668 $as_echo_n "checking for $ac_word... " >&6; }
5669 if ${ac_cv_prog_PKG_CONFIG+:} false; then :
5670 $as_echo_n "(cached) " >&6
5671 else
5672 if test -n "$PKG_CONFIG"; then
5673 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
5674 else
5675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5676 for as_dir in $PATH
5678 IFS=$as_save_IFS
5679 test -z "$as_dir" && as_dir=.
5680 for ac_exec_ext in '' $ac_executable_extensions; do
5681 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5682 ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
5683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5684 break 2
5686 done
5687 done
5688 IFS=$as_save_IFS
5692 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
5693 if test -n "$PKG_CONFIG"; then
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5695 $as_echo "$PKG_CONFIG" >&6; }
5696 else
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5698 $as_echo "no" >&6; }
5703 if ${ac_cv_prog_PKG_CONFIG:+false} :; then :
5704 if test "x$cross_compiling" = xyes; then :
5706 else
5707 { ac_cv_prog_PKG_CONFIG=; unset ac_cv_prog_PKG_CONFIG;}
5708 # Extract the first word of "pkg-config", so it can be a program name with args.
5709 set dummy pkg-config; ac_word=$2
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5711 $as_echo_n "checking for $ac_word... " >&6; }
5712 if ${ac_cv_prog_PKG_CONFIG+:} false; then :
5713 $as_echo_n "(cached) " >&6
5714 else
5715 if test -n "$PKG_CONFIG"; then
5716 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
5717 else
5718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5719 for as_dir in $PATH
5721 IFS=$as_save_IFS
5722 test -z "$as_dir" && as_dir=.
5723 for ac_exec_ext in '' $ac_executable_extensions; do
5724 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5725 ac_cv_prog_PKG_CONFIG="pkg-config"
5726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5727 break 2
5729 done
5730 done
5731 IFS=$as_save_IFS
5735 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
5736 if test -n "$PKG_CONFIG"; then
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5738 $as_echo "$PKG_CONFIG" >&6; }
5739 else
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5741 $as_echo "no" >&6; }
5746 else
5747 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
5750 if test "x$enable_maintainer_mode" != "xyes"
5751 then
5752 FONTFORGE=""
5753 RSVG=""
5754 CONVERT=""
5755 ICOTOOL=""
5756 else
5757 test "$srcdir" = . || as_fn_error $? "Maintainer mode cannot work out of tree." "$LINENO" 5
5758 for ac_prog in fontforge
5760 # Extract the first word of "$ac_prog", so it can be a program name with args.
5761 set dummy $ac_prog; ac_word=$2
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5763 $as_echo_n "checking for $ac_word... " >&6; }
5764 if ${ac_cv_prog_FONTFORGE+:} false; then :
5765 $as_echo_n "(cached) " >&6
5766 else
5767 if test -n "$FONTFORGE"; then
5768 ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
5769 else
5770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5771 for as_dir in $PATH
5773 IFS=$as_save_IFS
5774 test -z "$as_dir" && as_dir=.
5775 for ac_exec_ext in '' $ac_executable_extensions; do
5776 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5777 ac_cv_prog_FONTFORGE="$ac_prog"
5778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5779 break 2
5781 done
5782 done
5783 IFS=$as_save_IFS
5787 FONTFORGE=$ac_cv_prog_FONTFORGE
5788 if test -n "$FONTFORGE"; then
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTFORGE" >&5
5790 $as_echo "$FONTFORGE" >&6; }
5791 else
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5793 $as_echo "no" >&6; }
5797 test -n "$FONTFORGE" && break
5798 done
5799 test -n "$FONTFORGE" || FONTFORGE="false"
5801 for ac_prog in rsvg-convert rsvg
5803 # Extract the first word of "$ac_prog", so it can be a program name with args.
5804 set dummy $ac_prog; ac_word=$2
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5806 $as_echo_n "checking for $ac_word... " >&6; }
5807 if ${ac_cv_prog_RSVG+:} false; then :
5808 $as_echo_n "(cached) " >&6
5809 else
5810 if test -n "$RSVG"; then
5811 ac_cv_prog_RSVG="$RSVG" # Let the user override the test.
5812 else
5813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5814 for as_dir in $PATH
5816 IFS=$as_save_IFS
5817 test -z "$as_dir" && as_dir=.
5818 for ac_exec_ext in '' $ac_executable_extensions; do
5819 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5820 ac_cv_prog_RSVG="$ac_prog"
5821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5822 break 2
5824 done
5825 done
5826 IFS=$as_save_IFS
5830 RSVG=$ac_cv_prog_RSVG
5831 if test -n "$RSVG"; then
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG" >&5
5833 $as_echo "$RSVG" >&6; }
5834 else
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5836 $as_echo "no" >&6; }
5840 test -n "$RSVG" && break
5841 done
5842 test -n "$RSVG" || RSVG="false"
5844 for ac_prog in convert
5846 # Extract the first word of "$ac_prog", so it can be a program name with args.
5847 set dummy $ac_prog; ac_word=$2
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5849 $as_echo_n "checking for $ac_word... " >&6; }
5850 if ${ac_cv_prog_CONVERT+:} false; then :
5851 $as_echo_n "(cached) " >&6
5852 else
5853 if test -n "$CONVERT"; then
5854 ac_cv_prog_CONVERT="$CONVERT" # Let the user override the test.
5855 else
5856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5857 for as_dir in $PATH
5859 IFS=$as_save_IFS
5860 test -z "$as_dir" && as_dir=.
5861 for ac_exec_ext in '' $ac_executable_extensions; do
5862 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5863 ac_cv_prog_CONVERT="$ac_prog"
5864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5865 break 2
5867 done
5868 done
5869 IFS=$as_save_IFS
5873 CONVERT=$ac_cv_prog_CONVERT
5874 if test -n "$CONVERT"; then
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONVERT" >&5
5876 $as_echo "$CONVERT" >&6; }
5877 else
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5879 $as_echo "no" >&6; }
5883 test -n "$CONVERT" && break
5884 done
5885 test -n "$CONVERT" || CONVERT="false"
5887 for ac_prog in icotool
5889 # Extract the first word of "$ac_prog", so it can be a program name with args.
5890 set dummy $ac_prog; ac_word=$2
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5892 $as_echo_n "checking for $ac_word... " >&6; }
5893 if ${ac_cv_prog_ICOTOOL+:} false; then :
5894 $as_echo_n "(cached) " >&6
5895 else
5896 if test -n "$ICOTOOL"; then
5897 ac_cv_prog_ICOTOOL="$ICOTOOL" # Let the user override the test.
5898 else
5899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5900 for as_dir in $PATH
5902 IFS=$as_save_IFS
5903 test -z "$as_dir" && as_dir=.
5904 for ac_exec_ext in '' $ac_executable_extensions; do
5905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5906 ac_cv_prog_ICOTOOL="$ac_prog"
5907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5908 break 2
5910 done
5911 done
5912 IFS=$as_save_IFS
5916 ICOTOOL=$ac_cv_prog_ICOTOOL
5917 if test -n "$ICOTOOL"; then
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICOTOOL" >&5
5919 $as_echo "$ICOTOOL" >&6; }
5920 else
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5922 $as_echo "no" >&6; }
5926 test -n "$ICOTOOL" && break
5927 done
5928 test -n "$ICOTOOL" || ICOTOOL="false"
5930 test "$FONTFORGE" != "false" || as_fn_error $? "You need fontforge to rebuild fonts in maintainer mode." "$LINENO" 5
5931 test "$RSVG" != "false" || as_fn_error $? "You need rsvg to rebuild icons in maintainer mode." "$LINENO" 5
5933 if test "$CONVERT" = false
5934 then
5935 as_fn_error $? "You need imagemagick to rebuild icons in maintainer mode." "$LINENO" 5
5936 else
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough imagemagick" >&5
5938 $as_echo_n "checking for recent enough imagemagick... " >&6; }
5939 convert_version=`convert --version | head -n1`
5940 if test "x$convert_version" != "x"
5941 then
5942 convert_version_major=`expr "$convert_version" : '.* \([0-9]*\)\.[0-9]*'`
5943 convert_version_minor=`expr "$convert_version" : '.* [0-9]*\.\([0-9]*\)'`
5944 if test "$convert_version_major" -eq 6 -a "$convert_version_minor" -lt 6
5945 then
5946 CONVERT=false
5949 if test "$CONVERT" = false
5950 then
5951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($convert_version_major.$convert_version_minor)" >&5
5952 $as_echo "no ($convert_version_major.$convert_version_minor)" >&6; }
5953 as_fn_error $? "You need imagemagick version 6.6 or newer to rebuild icons in maintainer mode." "$LINENO" 5
5954 else
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($convert_version_major.$convert_version_minor)" >&5
5956 $as_echo "yes ($convert_version_major.$convert_version_minor)" >&6; }
5960 if test "$ICOTOOL" = false
5961 then
5962 as_fn_error $? "You need icotool to rebuild icons in maintainer mode." "$LINENO" 5
5963 else
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough icotool" >&5
5965 $as_echo_n "checking for recent enough icotool... " >&6; }
5966 icotool_version=`icotool --version | head -n1`
5967 if test "x$icotool_version" != "x"
5968 then
5969 icotool_version_major=`expr "$icotool_version" : '.* \([0-9]*\)\.[0-9]*'`
5970 icotool_version_minor=`expr "$icotool_version" : '.* [0-9]*\.\([0-9]*\)'`
5971 if test "$icotool_version_major" -eq 0 -a "$icotool_version_minor" -lt 29
5972 then
5973 ICOTOOL=false
5974 as_fn_append wine_warnings "|icotool version 0.29.0 or newer is needed to rebuild icons."
5977 if test "$ICOTOOL" = false
5978 then
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($icotool_version_major.$icotool_version_minor)" >&5
5980 $as_echo "no ($icotool_version_major.$icotool_version_minor)" >&6; }
5981 as_fn_error $? "You need icotool version 0.29.0 or newer to rebuild icons in maintainer mode." "$LINENO" 5
5982 else
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($icotool_version_major.$icotool_version_minor)" >&5
5984 $as_echo "yes ($icotool_version_major.$icotool_version_minor)" >&6; }
5988 with_gettext=yes
5989 with_gettextpo=yes
5990 { ac_cv_header_gettext_po_h=; unset ac_cv_header_gettext_po_h;}
5993 test "x$with_gettext" != xno || MSGFMT=false
5994 if test "$MSGFMT" != "false"
5995 then
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether msgfmt supports contexts" >&5
5997 $as_echo_n "checking whether msgfmt supports contexts... " >&6; }
5998 cat >conftest.po <<EOF
5999 # comment
6000 msgctxt "ctxt"
6001 msgid "id"
6002 msgstr "str"
6004 if $MSGFMT -o /dev/null conftest.po 2>&5
6005 then
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6007 $as_echo "yes" >&6; }
6008 else
6009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6010 $as_echo "no" >&6; }
6011 MSGFMT=false
6014 if test "$MSGFMT" = false; then :
6015 case "x$with_gettext" in
6016 x) as_fn_append wine_warnings "|gettext tools not found (or too old), translations won't be built." ;;
6017 xno) ;;
6018 *) as_fn_error $? "gettext tools not found (or too old), translations won't be built.
6019 This is an error since --with-gettext was requested." "$LINENO" 5 ;;
6020 esac
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for i386_set_ldt in -li386" >&5
6025 $as_echo_n "checking for i386_set_ldt in -li386... " >&6; }
6026 if ${ac_cv_lib_i386_i386_set_ldt+:} false; then :
6027 $as_echo_n "(cached) " >&6
6028 else
6029 ac_check_lib_save_LIBS=$LIBS
6030 LIBS="-li386 $LIBS"
6031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6032 /* end confdefs.h. */
6034 /* Override any GCC internal prototype to avoid an error.
6035 Use char because int might match the return type of a GCC
6036 builtin and then its argument prototype would still apply. */
6037 #ifdef __cplusplus
6038 extern "C"
6039 #endif
6040 char i386_set_ldt ();
6042 main ()
6044 return i386_set_ldt ();
6046 return 0;
6048 _ACEOF
6049 if ac_fn_c_try_link "$LINENO"; then :
6050 ac_cv_lib_i386_i386_set_ldt=yes
6051 else
6052 ac_cv_lib_i386_i386_set_ldt=no
6054 rm -f core conftest.err conftest.$ac_objext \
6055 conftest$ac_exeext conftest.$ac_ext
6056 LIBS=$ac_check_lib_save_LIBS
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_i386_i386_set_ldt" >&5
6059 $as_echo "$ac_cv_lib_i386_i386_set_ldt" >&6; }
6060 if test "x$ac_cv_lib_i386_i386_set_ldt" = xyes; then :
6061 cat >>confdefs.h <<_ACEOF
6062 #define HAVE_LIBI386 1
6063 _ACEOF
6065 LIBS="-li386 $LIBS"
6069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
6070 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
6071 if ${ac_cv_lib_ossaudio__oss_ioctl+:} false; then :
6072 $as_echo_n "(cached) " >&6
6073 else
6074 ac_check_lib_save_LIBS=$LIBS
6075 LIBS="-lossaudio $LIBS"
6076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6077 /* end confdefs.h. */
6079 /* Override any GCC internal prototype to avoid an error.
6080 Use char because int might match the return type of a GCC
6081 builtin and then its argument prototype would still apply. */
6082 #ifdef __cplusplus
6083 extern "C"
6084 #endif
6085 char _oss_ioctl ();
6087 main ()
6089 return _oss_ioctl ();
6091 return 0;
6093 _ACEOF
6094 if ac_fn_c_try_link "$LINENO"; then :
6095 ac_cv_lib_ossaudio__oss_ioctl=yes
6096 else
6097 ac_cv_lib_ossaudio__oss_ioctl=no
6099 rm -f core conftest.err conftest.$ac_objext \
6100 conftest$ac_exeext conftest.$ac_ext
6101 LIBS=$ac_check_lib_save_LIBS
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6104 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6105 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = xyes; then :
6106 cat >>confdefs.h <<_ACEOF
6107 #define HAVE_LIBOSSAUDIO 1
6108 _ACEOF
6110 LIBS="-lossaudio $LIBS"
6115 OPENGL_LIBS=""
6119 # Check whether --enable-largefile was given.
6120 if test "${enable_largefile+set}" = set; then :
6121 enableval=$enable_largefile;
6124 if test "$enable_largefile" != no; then
6126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6127 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6128 if ${ac_cv_sys_largefile_CC+:} false; then :
6129 $as_echo_n "(cached) " >&6
6130 else
6131 ac_cv_sys_largefile_CC=no
6132 if test "$GCC" != yes; then
6133 ac_save_CC=$CC
6134 while :; do
6135 # IRIX 6.2 and later do not support large files by default,
6136 # so use the C compiler's -n32 option if that helps.
6137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6138 /* end confdefs.h. */
6139 #include <sys/types.h>
6140 /* Check that off_t can represent 2**63 - 1 correctly.
6141 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6142 since some C++ compilers masquerading as C compilers
6143 incorrectly reject 9223372036854775807. */
6144 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
6145 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6146 && LARGE_OFF_T % 2147483647 == 1)
6147 ? 1 : -1];
6149 main ()
6153 return 0;
6155 _ACEOF
6156 if ac_fn_c_try_compile "$LINENO"; then :
6157 break
6159 rm -f core conftest.err conftest.$ac_objext
6160 CC="$CC -n32"
6161 if ac_fn_c_try_compile "$LINENO"; then :
6162 ac_cv_sys_largefile_CC=' -n32'; break
6164 rm -f core conftest.err conftest.$ac_objext
6165 break
6166 done
6167 CC=$ac_save_CC
6168 rm -f conftest.$ac_ext
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6172 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6173 if test "$ac_cv_sys_largefile_CC" != no; then
6174 CC=$CC$ac_cv_sys_largefile_CC
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6178 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6179 if ${ac_cv_sys_file_offset_bits+:} false; then :
6180 $as_echo_n "(cached) " >&6
6181 else
6182 while :; do
6183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6184 /* end confdefs.h. */
6185 #include <sys/types.h>
6186 /* Check that off_t can represent 2**63 - 1 correctly.
6187 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6188 since some C++ compilers masquerading as C compilers
6189 incorrectly reject 9223372036854775807. */
6190 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
6191 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6192 && LARGE_OFF_T % 2147483647 == 1)
6193 ? 1 : -1];
6195 main ()
6199 return 0;
6201 _ACEOF
6202 if ac_fn_c_try_compile "$LINENO"; then :
6203 ac_cv_sys_file_offset_bits=no; break
6205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6207 /* end confdefs.h. */
6208 #define _FILE_OFFSET_BITS 64
6209 #include <sys/types.h>
6210 /* Check that off_t can represent 2**63 - 1 correctly.
6211 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6212 since some C++ compilers masquerading as C compilers
6213 incorrectly reject 9223372036854775807. */
6214 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
6215 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6216 && LARGE_OFF_T % 2147483647 == 1)
6217 ? 1 : -1];
6219 main ()
6223 return 0;
6225 _ACEOF
6226 if ac_fn_c_try_compile "$LINENO"; then :
6227 ac_cv_sys_file_offset_bits=64; break
6229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6230 ac_cv_sys_file_offset_bits=unknown
6231 break
6232 done
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6235 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6236 case $ac_cv_sys_file_offset_bits in #(
6237 no | unknown) ;;
6239 cat >>confdefs.h <<_ACEOF
6240 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6241 _ACEOF
6243 esac
6244 rm -rf conftest*
6245 if test $ac_cv_sys_file_offset_bits = unknown; then
6246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6247 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6248 if ${ac_cv_sys_large_files+:} false; then :
6249 $as_echo_n "(cached) " >&6
6250 else
6251 while :; do
6252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6253 /* end confdefs.h. */
6254 #include <sys/types.h>
6255 /* Check that off_t can represent 2**63 - 1 correctly.
6256 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6257 since some C++ compilers masquerading as C compilers
6258 incorrectly reject 9223372036854775807. */
6259 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
6260 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6261 && LARGE_OFF_T % 2147483647 == 1)
6262 ? 1 : -1];
6264 main ()
6268 return 0;
6270 _ACEOF
6271 if ac_fn_c_try_compile "$LINENO"; then :
6272 ac_cv_sys_large_files=no; break
6274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6276 /* end confdefs.h. */
6277 #define _LARGE_FILES 1
6278 #include <sys/types.h>
6279 /* Check that off_t can represent 2**63 - 1 correctly.
6280 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6281 since some C++ compilers masquerading as C compilers
6282 incorrectly reject 9223372036854775807. */
6283 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
6284 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6285 && LARGE_OFF_T % 2147483647 == 1)
6286 ? 1 : -1];
6288 main ()
6292 return 0;
6294 _ACEOF
6295 if ac_fn_c_try_compile "$LINENO"; then :
6296 ac_cv_sys_large_files=1; break
6298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6299 ac_cv_sys_large_files=unknown
6300 break
6301 done
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6304 $as_echo "$ac_cv_sys_large_files" >&6; }
6305 case $ac_cv_sys_large_files in #(
6306 no | unknown) ;;
6308 cat >>confdefs.h <<_ACEOF
6309 #define _LARGE_FILES $ac_cv_sys_large_files
6310 _ACEOF
6312 esac
6313 rm -rf conftest*
6320 ac_ext=c
6321 ac_cpp='$CPP $CPPFLAGS'
6322 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6323 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6324 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6326 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6327 # On Suns, sometimes $CPP names a directory.
6328 if test -n "$CPP" && test -d "$CPP"; then
6329 CPP=
6331 if test -z "$CPP"; then
6332 if ${ac_cv_prog_CPP+:} false; then :
6333 $as_echo_n "(cached) " >&6
6334 else
6335 # Double quotes because CPP needs to be expanded
6336 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6338 ac_preproc_ok=false
6339 for ac_c_preproc_warn_flag in '' yes
6341 # Use a header file that comes with gcc, so configuring glibc
6342 # with a fresh cross-compiler works.
6343 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6344 # <limits.h> exists even on freestanding compilers.
6345 # On the NeXT, cc -E runs the code through the compiler's parser,
6346 # not just through cpp. "Syntax error" is here to catch this case.
6347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6348 /* end confdefs.h. */
6349 #ifdef __STDC__
6350 # include <limits.h>
6351 #else
6352 # include <assert.h>
6353 #endif
6354 Syntax error
6355 _ACEOF
6356 if ac_fn_c_try_cpp "$LINENO"; then :
6358 else
6359 # Broken: fails on valid input.
6360 continue
6362 rm -f conftest.err conftest.i conftest.$ac_ext
6364 # OK, works on sane cases. Now check whether nonexistent headers
6365 # can be detected and how.
6366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6367 /* end confdefs.h. */
6368 #include <ac_nonexistent.h>
6369 _ACEOF
6370 if ac_fn_c_try_cpp "$LINENO"; then :
6371 # Broken: success on invalid input.
6372 continue
6373 else
6374 # Passes both tests.
6375 ac_preproc_ok=:
6376 break
6378 rm -f conftest.err conftest.i conftest.$ac_ext
6380 done
6381 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6382 rm -f conftest.i conftest.err conftest.$ac_ext
6383 if $ac_preproc_ok; then :
6384 break
6387 done
6388 ac_cv_prog_CPP=$CPP
6391 CPP=$ac_cv_prog_CPP
6392 else
6393 ac_cv_prog_CPP=$CPP
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6396 $as_echo "$CPP" >&6; }
6397 ac_preproc_ok=false
6398 for ac_c_preproc_warn_flag in '' yes
6400 # Use a header file that comes with gcc, so configuring glibc
6401 # with a fresh cross-compiler works.
6402 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6403 # <limits.h> exists even on freestanding compilers.
6404 # On the NeXT, cc -E runs the code through the compiler's parser,
6405 # not just through cpp. "Syntax error" is here to catch this case.
6406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6407 /* end confdefs.h. */
6408 #ifdef __STDC__
6409 # include <limits.h>
6410 #else
6411 # include <assert.h>
6412 #endif
6413 Syntax error
6414 _ACEOF
6415 if ac_fn_c_try_cpp "$LINENO"; then :
6417 else
6418 # Broken: fails on valid input.
6419 continue
6421 rm -f conftest.err conftest.i conftest.$ac_ext
6423 # OK, works on sane cases. Now check whether nonexistent headers
6424 # can be detected and how.
6425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6426 /* end confdefs.h. */
6427 #include <ac_nonexistent.h>
6428 _ACEOF
6429 if ac_fn_c_try_cpp "$LINENO"; then :
6430 # Broken: success on invalid input.
6431 continue
6432 else
6433 # Passes both tests.
6434 ac_preproc_ok=:
6435 break
6437 rm -f conftest.err conftest.i conftest.$ac_ext
6439 done
6440 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6441 rm -f conftest.i conftest.err conftest.$ac_ext
6442 if $ac_preproc_ok; then :
6444 else
6445 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6446 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6447 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6448 See \`config.log' for more details" "$LINENO" 5; }
6451 ac_ext=c
6452 ac_cpp='$CPP $CPPFLAGS'
6453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6459 $as_echo_n "checking for ANSI C header files... " >&6; }
6460 if ${ac_cv_header_stdc+:} false; then :
6461 $as_echo_n "(cached) " >&6
6462 else
6463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6464 /* end confdefs.h. */
6465 #include <stdlib.h>
6466 #include <stdarg.h>
6467 #include <string.h>
6468 #include <float.h>
6471 main ()
6475 return 0;
6477 _ACEOF
6478 if ac_fn_c_try_compile "$LINENO"; then :
6479 ac_cv_header_stdc=yes
6480 else
6481 ac_cv_header_stdc=no
6483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6485 if test $ac_cv_header_stdc = yes; then
6486 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6488 /* end confdefs.h. */
6489 #include <string.h>
6491 _ACEOF
6492 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6493 $EGREP "memchr" >/dev/null 2>&1; then :
6495 else
6496 ac_cv_header_stdc=no
6498 rm -f conftest*
6502 if test $ac_cv_header_stdc = yes; then
6503 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6505 /* end confdefs.h. */
6506 #include <stdlib.h>
6508 _ACEOF
6509 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6510 $EGREP "free" >/dev/null 2>&1; then :
6512 else
6513 ac_cv_header_stdc=no
6515 rm -f conftest*
6519 if test $ac_cv_header_stdc = yes; then
6520 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6521 if test "$cross_compiling" = yes; then :
6523 else
6524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6525 /* end confdefs.h. */
6526 #include <ctype.h>
6527 #include <stdlib.h>
6528 #if ((' ' & 0x0FF) == 0x020)
6529 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6530 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6531 #else
6532 # define ISLOWER(c) \
6533 (('a' <= (c) && (c) <= 'i') \
6534 || ('j' <= (c) && (c) <= 'r') \
6535 || ('s' <= (c) && (c) <= 'z'))
6536 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6537 #endif
6539 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6541 main ()
6543 int i;
6544 for (i = 0; i < 256; i++)
6545 if (XOR (islower (i), ISLOWER (i))
6546 || toupper (i) != TOUPPER (i))
6547 return 2;
6548 return 0;
6550 _ACEOF
6551 if ac_fn_c_try_run "$LINENO"; then :
6553 else
6554 ac_cv_header_stdc=no
6556 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6557 conftest.$ac_objext conftest.beam conftest.$ac_ext
6562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6563 $as_echo "$ac_cv_header_stdc" >&6; }
6564 if test $ac_cv_header_stdc = yes; then
6566 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6570 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6571 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6572 inttypes.h stdint.h unistd.h
6573 do :
6574 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6575 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6577 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6578 cat >>confdefs.h <<_ACEOF
6579 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6580 _ACEOF
6584 done
6587 for ac_header in \
6588 AL/al.h \
6589 ApplicationServices/ApplicationServices.h \
6590 AudioToolbox/AudioConverter.h \
6591 AudioUnit/AudioUnit.h \
6592 AudioUnit/AudioComponent.h \
6593 CL/cl.h \
6594 Carbon/Carbon.h \
6595 CoreAudio/CoreAudio.h \
6596 CoreServices/CoreServices.h \
6597 DiskArbitration/DiskArbitration.h \
6598 IOKit/IOKitLib.h \
6599 IOKit/hid/IOHIDLib.h \
6600 OpenAL/al.h \
6601 OpenCL/opencl.h \
6602 QuickTime/ImageCompression.h \
6603 Security/Security.h \
6604 alias.h \
6605 alsa/asoundlib.h \
6606 arpa/inet.h \
6607 arpa/nameser.h \
6608 asm/types.h \
6609 asm/user.h \
6610 curses.h \
6611 direct.h \
6612 dirent.h \
6613 dlfcn.h \
6614 elf.h \
6615 float.h \
6616 fnmatch.h \
6617 getopt.h \
6618 gettext-po.h \
6619 grp.h \
6620 gsm.h \
6621 gsm/gsm.h \
6622 ieeefp.h \
6623 inet/mib2.h \
6624 io.h \
6625 kstat.h \
6626 lber.h \
6627 ldap.h \
6628 libproc.h \
6629 link.h \
6630 linux/cdrom.h \
6631 linux/compiler.h \
6632 linux/filter.h \
6633 linux/hdreg.h \
6634 linux/input.h \
6635 linux/ioctl.h \
6636 linux/joystick.h \
6637 linux/major.h \
6638 linux/param.h \
6639 linux/serial.h \
6640 linux/types.h \
6641 linux/ucdrom.h \
6642 lwp.h \
6643 mach-o/nlist.h \
6644 mach-o/loader.h \
6645 mach/mach.h \
6646 mach/machine.h \
6647 machine/cpu.h \
6648 machine/limits.h \
6649 machine/sysarch.h \
6650 mntent.h \
6651 ncurses.h \
6652 netdb.h \
6653 netinet/in.h \
6654 netinet/in_systm.h \
6655 netinet/tcp.h \
6656 netinet/tcp_fsm.h \
6657 pcap/pcap.h \
6658 poll.h \
6659 port.h \
6660 process.h \
6661 pthread.h \
6662 pwd.h \
6663 sched.h \
6664 scsi/scsi.h \
6665 scsi/scsi_ioctl.h \
6666 scsi/sg.h \
6667 stdbool.h \
6668 stdint.h \
6669 stropts.h \
6670 sys/asoundlib.h \
6671 sys/attr.h \
6672 sys/cdio.h \
6673 sys/elf32.h \
6674 sys/epoll.h \
6675 sys/event.h \
6676 sys/exec_elf.h \
6677 sys/filio.h \
6678 sys/inotify.h \
6679 sys/ioctl.h \
6680 sys/ipc.h \
6681 sys/limits.h \
6682 sys/link.h \
6683 sys/mman.h \
6684 sys/modem.h \
6685 sys/msg.h \
6686 sys/mtio.h \
6687 sys/param.h \
6688 sys/poll.h \
6689 sys/prctl.h \
6690 sys/protosw.h \
6691 sys/ptrace.h \
6692 sys/queue.h \
6693 sys/resource.h \
6694 sys/scsiio.h \
6695 sys/shm.h \
6696 sys/signal.h \
6697 sys/socket.h \
6698 sys/socketvar.h \
6699 sys/sockio.h \
6700 sys/statvfs.h \
6701 sys/strtio.h \
6702 sys/syscall.h \
6703 sys/tihdr.h \
6704 sys/time.h \
6705 sys/timeout.h \
6706 sys/times.h \
6707 sys/uio.h \
6708 sys/user.h \
6709 sys/utsname.h \
6710 sys/vm86.h \
6711 sys/vnode.h \
6712 sys/wait.h \
6713 syscall.h \
6714 termios.h \
6715 unistd.h \
6716 utime.h \
6717 valgrind/memcheck.h \
6718 valgrind/valgrind.h \
6719 zlib.h
6721 do :
6722 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6723 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6724 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6725 cat >>confdefs.h <<_ACEOF
6726 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6727 _ACEOF
6731 done
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
6734 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
6735 if ${ac_cv_header_stat_broken+:} false; then :
6736 $as_echo_n "(cached) " >&6
6737 else
6738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6739 /* end confdefs.h. */
6740 #include <sys/types.h>
6741 #include <sys/stat.h>
6743 #if defined S_ISBLK && defined S_IFDIR
6744 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6745 #endif
6747 #if defined S_ISBLK && defined S_IFCHR
6748 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6749 #endif
6751 #if defined S_ISLNK && defined S_IFREG
6752 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6753 #endif
6755 #if defined S_ISSOCK && defined S_IFREG
6756 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6757 #endif
6759 _ACEOF
6760 if ac_fn_c_try_compile "$LINENO"; then :
6761 ac_cv_header_stat_broken=no
6762 else
6763 ac_cv_header_stat_broken=yes
6765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
6768 $as_echo "$ac_cv_header_stat_broken" >&6; }
6769 if test $ac_cv_header_stat_broken = yes; then
6771 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6777 for ac_header in sys/mount.h sys/statfs.h sys/sysctl.h sys/user.h sys/vfs.h
6778 do :
6779 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6780 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6781 #ifdef HAVE_SYS_PARAM_H
6782 # include <sys/param.h>
6783 #endif
6785 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6786 cat >>confdefs.h <<_ACEOF
6787 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6788 _ACEOF
6792 done
6795 for ac_header in \
6796 netinet/ip.h \
6797 net/if.h \
6798 net/if_arp.h \
6799 net/if_dl.h \
6800 net/if_types.h \
6801 net/route.h \
6802 netinet/if_ether.h \
6803 netinet/if_inarp.h \
6804 netinet/in_pcb.h \
6805 netinet/ip_icmp.h \
6806 netinet/ip_var.h \
6807 netinet/udp.h \
6808 netipx/ipx.h \
6809 sys/un.h \
6811 do :
6812 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6813 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6814 #ifdef HAVE_SYS_SOCKET_H
6815 # include <sys/socket.h>
6816 #endif
6817 #ifdef HAVE_SYS_SOCKETVAR_H
6818 # include <sys/socketvar.h>
6819 #endif
6820 #ifdef HAVE_NET_ROUTE_H
6821 # include <net/route.h>
6822 #endif
6823 #ifdef HAVE_NETINET_IN_H
6824 # include <netinet/in.h>
6825 #endif
6826 #ifdef HAVE_NETINET_IN_SYSTM_H
6827 # include <netinet/in_systm.h>
6828 #endif
6829 #ifdef HAVE_NET_IF_H
6830 # include <net/if.h>
6831 #endif
6832 #ifdef HAVE_NETINET_IP_H
6833 # include <netinet/ip.h>
6834 #endif
6836 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6837 cat >>confdefs.h <<_ACEOF
6838 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6839 _ACEOF
6843 done
6846 for ac_header in netinet/tcp_timer.h netinet/udp_var.h netinet/icmp_var.h netinet/tcp_var.h
6847 do :
6848 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6849 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6850 #ifdef HAVE_ALIAS_H
6851 # include <alias.h>
6852 #endif
6853 #ifdef HAVE_SYS_SOCKET_H
6854 # include <sys/socket.h>
6855 #endif
6856 #ifdef HAVE_SYS_SOCKETVAR_H
6857 # include <sys/socketvar.h>
6858 #endif
6859 #ifdef HAVE_SYS_TIMEOUT_H
6860 # include <sys/timeout.h>
6861 #endif
6862 #ifdef HAVE_NETINET_IN_H
6863 # include <netinet/in.h>
6864 #endif
6865 #ifdef HAVE_NETINET_IN_SYSTM_H
6866 # include <netinet/in_systm.h>
6867 #endif
6868 #ifdef HAVE_NETINET_IP_H
6869 # include <netinet/ip.h>
6870 #endif
6871 #ifdef HAVE_NETINET_IP_VAR_H
6872 # include <netinet/ip_var.h>
6873 #endif
6874 #ifdef HAVE_NETINET_IP_ICMP_H
6875 # include <netinet/ip_icmp.h>
6876 #endif
6877 #ifdef HAVE_NETINET_UDP_H
6878 # include <netinet/udp.h>
6879 #endif
6880 #ifdef HAVE_NETINET_TCP_H
6881 # include <netinet/tcp.h>
6882 #endif
6883 #ifdef HAVE_NETINET_TCP_TIMER_H
6884 #include <netinet/tcp_timer.h>
6885 #endif
6887 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6888 cat >>confdefs.h <<_ACEOF
6889 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6890 _ACEOF
6894 done
6897 for ac_header in linux/ipx.h linux/irda.h linux/rtnetlink.h
6898 do :
6899 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6900 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6901 #ifdef HAVE_ASM_TYPES_H
6902 # include <asm/types.h>
6903 #endif
6904 #ifdef HAVE_SYS_SOCKET_H
6905 # include <sys/socket.h>
6906 #endif
6907 #ifdef HAVE_LINUX_TYPES_H
6908 # include <linux/types.h>
6909 #endif
6911 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6912 cat >>confdefs.h <<_ACEOF
6913 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6914 _ACEOF
6918 done
6921 for ac_header in mach-o/dyld_images.h
6922 do :
6923 ac_fn_c_check_header_compile "$LINENO" "mach-o/dyld_images.h" "ac_cv_header_mach_o_dyld_images_h" "#ifdef HAVE_STDBOOL_H
6924 # include <stdbool.h>
6925 #endif
6926 #ifdef HAVE_STDINT_H
6927 # include <stdint.h>
6928 #endif
6930 if test "x$ac_cv_header_mach_o_dyld_images_h" = xyes; then :
6931 cat >>confdefs.h <<_ACEOF
6932 #define HAVE_MACH_O_DYLD_IMAGES_H 1
6933 _ACEOF
6937 done
6940 for ac_header in resolv.h
6941 do :
6942 ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "#include <sys/types.h>
6943 #ifdef HAVE_SYS_SOCKET_H
6944 # include <sys/socket.h>
6945 #endif
6946 #ifdef HAVE_NETINET_IN_H
6947 # include <netinet/in.h>
6948 #endif
6949 #ifdef HAVE_ARPA_NAMESER_H
6950 # include <arpa/nameser.h>
6951 #endif
6953 if test "x$ac_cv_header_resolv_h" = xyes; then :
6954 cat >>confdefs.h <<_ACEOF
6955 #define HAVE_RESOLV_H 1
6956 _ACEOF
6960 done
6963 for ac_header in ifaddrs.h
6964 do :
6965 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "#include <sys/types.h>
6967 if test "x$ac_cv_header_ifaddrs_h" = xyes; then :
6968 cat >>confdefs.h <<_ACEOF
6969 #define HAVE_IFADDRS_H 1
6970 _ACEOF
6974 done
6977 for ac_header in sys/ucontext.h
6978 do :
6979 ac_fn_c_check_header_compile "$LINENO" "sys/ucontext.h" "ac_cv_header_sys_ucontext_h" "#include <signal.h>
6981 if test "x$ac_cv_header_sys_ucontext_h" = xyes; then :
6982 cat >>confdefs.h <<_ACEOF
6983 #define HAVE_SYS_UCONTEXT_H 1
6984 _ACEOF
6988 done
6991 for ac_header in sys/thr.h
6992 do :
6993 ac_fn_c_check_header_compile "$LINENO" "sys/thr.h" "ac_cv_header_sys_thr_h" "#include <sys/types.h>
6994 #ifdef HAVE_SYS_UCONTEXT_H
6995 #include <sys/ucontext.h>
6996 #endif
6998 if test "x$ac_cv_header_sys_thr_h" = xyes; then :
6999 cat >>confdefs.h <<_ACEOF
7000 #define HAVE_SYS_THR_H 1
7001 _ACEOF
7005 done
7008 for ac_header in pthread_np.h
7009 do :
7010 ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" "#ifdef HAVE_PTHREAD_H
7011 #include <pthread.h>
7012 #endif
7014 if test "x$ac_cv_header_pthread_np_h" = xyes; then :
7015 cat >>confdefs.h <<_ACEOF
7016 #define HAVE_PTHREAD_NP_H 1
7017 _ACEOF
7021 done
7024 for ac_header in linux/videodev.h linux/videodev2.h libv4l1.h
7025 do :
7026 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7027 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_TIME_H
7028 #include <sys/time.h>
7029 #endif
7030 #include <sys/types.h>
7031 #ifdef HAVE_ASM_TYPES_H
7032 #include <asm/types.h>
7033 #endif
7035 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7036 cat >>confdefs.h <<_ACEOF
7037 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7038 _ACEOF
7042 done
7045 for ac_header in libprocstat.h
7046 do :
7047 ac_fn_c_check_header_compile "$LINENO" "libprocstat.h" "ac_cv_header_libprocstat_h" "#ifdef HAVE_SYS_PARAM_H
7048 #include <sys/param.h>
7049 #endif
7050 #ifdef HAVE_SYS_QUEUE_H
7051 #include <sys/queue.h>
7052 #endif
7053 #ifdef HAVE_SYS_SOCKET_H
7054 #include <sys/socket.h>
7055 #endif
7057 if test "x$ac_cv_header_libprocstat_h" = xyes; then :
7058 cat >>confdefs.h <<_ACEOF
7059 #define HAVE_LIBPROCSTAT_H 1
7060 _ACEOF
7064 done
7068 dlldir="\${libdir}/wine"
7070 DLLPREFIX=""
7072 DLLFLAGS="-D_REENTRANT"
7074 LDRPATH_INSTALL=""
7076 LDRPATH_LOCAL=""
7078 LIBEXT="so"
7079 DLLEXT=".so"
7080 IMPLIBEXT="def"
7081 STATIC_IMPLIBEXT="def.a"
7082 # Extract the first word of "ldd", so it can be a program name with args.
7083 set dummy ldd; ac_word=$2
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7085 $as_echo_n "checking for $ac_word... " >&6; }
7086 if ${ac_cv_path_LDD+:} false; then :
7087 $as_echo_n "(cached) " >&6
7088 else
7089 case $LDD in
7090 [\\/]* | ?:[\\/]*)
7091 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
7094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7095 as_dummy="/sbin:/usr/sbin:$PATH"
7096 for as_dir in $as_dummy
7098 IFS=$as_save_IFS
7099 test -z "$as_dir" && as_dir=.
7100 for ac_exec_ext in '' $ac_executable_extensions; do
7101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7102 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
7103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7104 break 2
7106 done
7107 done
7108 IFS=$as_save_IFS
7110 test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
7112 esac
7114 LDD=$ac_cv_path_LDD
7115 if test -n "$LDD"; then
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
7117 $as_echo "$LDD" >&6; }
7118 else
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7120 $as_echo "no" >&6; }
7124 if test -n "$ac_tool_prefix"; then
7125 # Extract the first word of "${ac_tool_prefix}readelf", so it can be a program name with args.
7126 set dummy ${ac_tool_prefix}readelf; ac_word=$2
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7128 $as_echo_n "checking for $ac_word... " >&6; }
7129 if ${ac_cv_prog_READELF+:} false; then :
7130 $as_echo_n "(cached) " >&6
7131 else
7132 if test -n "$READELF"; then
7133 ac_cv_prog_READELF="$READELF" # Let the user override the test.
7134 else
7135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7136 for as_dir in $PATH
7138 IFS=$as_save_IFS
7139 test -z "$as_dir" && as_dir=.
7140 for ac_exec_ext in '' $ac_executable_extensions; do
7141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7142 ac_cv_prog_READELF="${ac_tool_prefix}readelf"
7143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7144 break 2
7146 done
7147 done
7148 IFS=$as_save_IFS
7152 READELF=$ac_cv_prog_READELF
7153 if test -n "$READELF"; then
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
7155 $as_echo "$READELF" >&6; }
7156 else
7157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7158 $as_echo "no" >&6; }
7163 if test -z "$ac_cv_prog_READELF"; then
7164 ac_ct_READELF=$READELF
7165 # Extract the first word of "readelf", so it can be a program name with args.
7166 set dummy readelf; ac_word=$2
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7168 $as_echo_n "checking for $ac_word... " >&6; }
7169 if ${ac_cv_prog_ac_ct_READELF+:} false; then :
7170 $as_echo_n "(cached) " >&6
7171 else
7172 if test -n "$ac_ct_READELF"; then
7173 ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test.
7174 else
7175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7176 for as_dir in $PATH
7178 IFS=$as_save_IFS
7179 test -z "$as_dir" && as_dir=.
7180 for ac_exec_ext in '' $ac_executable_extensions; do
7181 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7182 ac_cv_prog_ac_ct_READELF="readelf"
7183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7184 break 2
7186 done
7187 done
7188 IFS=$as_save_IFS
7192 ac_ct_READELF=$ac_cv_prog_ac_ct_READELF
7193 if test -n "$ac_ct_READELF"; then
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_READELF" >&5
7195 $as_echo "$ac_ct_READELF" >&6; }
7196 else
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7198 $as_echo "no" >&6; }
7201 if test "x$ac_ct_READELF" = x; then
7202 READELF="true"
7203 else
7204 case $cross_compiling:$ac_tool_warned in
7205 yes:)
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7207 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7208 ac_tool_warned=yes ;;
7209 esac
7210 READELF=$ac_ct_READELF
7212 else
7213 READELF="$ac_cv_prog_READELF"
7216 wine_rules_file=conf$$rules.make
7217 rm -f $wine_rules_file
7218 ALL_POT_FILES=""
7219 GITIGNORE="# Automatically generated by configure; DO NOT EDIT!!"
7220 ALL_TEST_RESOURCES=""
7223 wine_fn_append_file ()
7225 as_fn_append $1 " \\$as_nl $2"
7228 wine_fn_ignore_file ()
7230 case "$1" in
7231 */*) as_fn_append GITIGNORE "$as_nl$1" ;;
7232 \**) as_fn_append GITIGNORE "$as_nl$1" ;;
7233 *) as_fn_append GITIGNORE "$as_nl/$1" ;;
7234 esac
7237 wine_fn_append_rule ()
7239 $as_echo "$1" >>$wine_rules_file
7242 wine_fn_has_flag ()
7244 expr ",$ac_flags," : ".*,$1,.*" >/dev/null
7247 wine_fn_depend_rules ()
7249 wine_fn_append_rule \
7250 "$ac_dir/Makefile: $srcdir/$ac_dir/Makefile.in $srcdir/Make.vars.in config.status \$(MAKEDEP)
7251 @./config.status --file $ac_dir/Makefile:Make.vars.in:$ac_dir/Makefile.in && \$(MAKEDEP) $ac_dir
7252 depend: $ac_dir/depend
7253 .PHONY: $ac_dir/depend
7254 $ac_dir/depend: \$(MAKEDEP) dummy
7255 @./config.status --file $ac_dir/Makefile:Make.vars.in:$ac_dir/Makefile.in && \$(MAKEDEP) $ac_dir"
7258 wine_fn_pot_rules ()
7260 test "x$with_gettextpo" = xyes || return
7262 if wine_fn_has_flag mc
7263 then
7264 wine_fn_append_file ALL_POT_FILES $ac_dir/msg.pot
7265 wine_fn_append_rule \
7266 "$ac_dir/msg.pot: $ac_dir/Makefile dummy
7267 @cd $ac_dir && \$(MAKE) msg.pot
7268 $ac_dir/msg.pot: tools/wmc include"
7270 if wine_fn_has_flag po
7271 then
7272 wine_fn_append_file ALL_POT_FILES $ac_dir/rsrc.pot
7273 wine_fn_append_rule \
7274 "$ac_dir/rsrc.pot: $ac_dir/Makefile dummy
7275 @cd $ac_dir && \$(MAKE) rsrc.pot
7276 $ac_dir/rsrc.pot: tools/wrc include"
7280 wine_fn_all_rules ()
7282 wine_fn_depend_rules
7283 wine_fn_append_rule \
7284 "all: $ac_dir
7285 .PHONY: $ac_dir
7286 $ac_dir: $ac_dir/Makefile dummy
7287 @cd $ac_dir && \$(MAKE)"
7290 wine_fn_install_rules ()
7292 wine_fn_has_flag install-lib || wine_fn_has_flag install-dev || return
7294 wine_fn_append_rule \
7295 ".PHONY: $ac_dir/install $ac_dir/uninstall
7296 $ac_dir/install:: $ac_dir
7297 @cd $ac_dir && \$(MAKE) install
7298 $ac_dir/uninstall:: $ac_dir/Makefile
7299 @cd $ac_dir && \$(MAKE) uninstall
7300 install:: $ac_dir/install
7301 __uninstall__: $ac_dir/uninstall"
7303 if wine_fn_has_flag install-lib
7304 then
7305 wine_fn_append_rule \
7306 ".PHONY: $ac_dir/install-lib
7307 $ac_dir/install-lib:: $ac_dir
7308 @cd $ac_dir && \$(MAKE) install-lib
7309 install-lib:: $ac_dir/install-lib"
7312 if wine_fn_has_flag install-dev
7313 then
7314 wine_fn_append_rule \
7315 ".PHONY: $ac_dir/install-dev
7316 $ac_dir/install-dev:: $ac_dir
7317 @cd $ac_dir && \$(MAKE) install-dev
7318 install-dev:: $ac_dir/install-dev"
7322 wine_fn_clean_rules ()
7324 ac_clean=$@
7325 ac_extraclean="$ac_dir/Makefile"
7326 test "$srcdir" = . && ac_extraclean="$ac_extraclean $ac_dir/.gitignore"
7327 case $ac_dir in
7328 */tests) ac_extraclean="$ac_extraclean $ac_dir/testlist.c" ;;
7329 esac
7331 if wine_fn_has_flag clean
7332 then
7333 wine_fn_append_rule \
7334 "__clean__: $ac_dir/clean
7335 .PHONY: $ac_dir/clean
7336 $ac_dir/clean: $ac_dir/Makefile
7337 @cd $ac_dir && \$(MAKE) clean
7338 \$(RM) $ac_extraclean"
7339 else
7340 wine_fn_append_rule \
7341 "__clean__: $ac_dir/clean
7342 .PHONY: $ac_dir/clean
7343 $ac_dir/clean: dummy
7344 \$(RM) \$(CLEAN_FILES:%=$ac_dir/%) $ac_clean $ac_extraclean"
7348 wine_fn_disabled_rules ()
7350 ac_clean=$@
7351 ac_extraclean="$ac_dir/Makefile"
7352 test "$srcdir" = . && ac_extraclean="$ac_extraclean $ac_dir/.gitignore"
7354 wine_fn_append_rule \
7355 "__clean__: $ac_dir/clean
7356 .PHONY: $ac_dir/clean
7357 $ac_dir/clean: dummy
7358 \$(RM) \$(CLEAN_FILES:%=$ac_dir/%) $ac_clean $ac_extraclean"
7361 wine_fn_config_makefile ()
7363 ac_dir=$1
7364 ac_enable=$2
7365 ac_flags=$3
7367 if eval test \"x\$"$ac_enable"\" = x"no"; then :
7368 wine_fn_disabled_rules; return
7370 wine_fn_all_rules
7371 wine_fn_install_rules
7372 wine_fn_clean_rules
7375 wine_fn_config_lib ()
7377 ac_name=$1
7378 ac_flags=$2
7379 ac_dir=dlls/$ac_name
7380 ac_deps="include"
7382 if test "x$enable_tools" = xno; then :
7384 else
7385 ac_deps="tools/widl tools/winebuild tools/winegcc $ac_deps"
7387 wine_fn_all_rules
7388 wine_fn_clean_rules
7390 wine_fn_append_rule \
7391 ".PHONY: $ac_dir/install $ac_dir/uninstall
7392 $ac_dir/install:: $ac_dir
7393 \$(INSTALL_DATA) $ac_dir/lib$ac_name.a \$(DESTDIR)\$(dlldir)/lib$ac_name.a
7394 $ac_dir/uninstall::
7395 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_name.a
7396 install install-dev:: $ac_dir/install
7397 __uninstall__: $ac_dir/uninstall
7398 __builddeps__: $ac_dir
7399 $ac_dir: $ac_deps"
7402 wine_fn_config_dll ()
7404 ac_name=$1
7405 ac_dir=dlls/$ac_name
7406 ac_enable=$2
7407 ac_flags=$3
7408 ac_implib=${4:-$ac_name}
7409 ac_file=$ac_dir/lib$ac_implib
7410 ac_dll=$ac_name
7411 ac_deps="include"
7412 ac_implibflags=""
7414 if test "x$enable_tools" = xno; then :
7416 else
7417 ac_deps="tools/widl tools/winebuild tools/winegcc $ac_deps"
7419 case $ac_name in
7420 *16) ac_implibflags=" -m16" ;;
7421 *.*) ;;
7422 *) ac_dll=$ac_dll.dll ;;
7423 esac
7425 ac_clean=
7426 wine_fn_has_flag implib && ac_clean="$ac_clean $ac_file.$IMPLIBEXT"
7427 wine_fn_has_flag mc && ac_clean="$ac_clean $ac_dir/msg.pot"
7428 wine_fn_has_flag po && ac_clean="$ac_clean $ac_dir/rsrc.pot"
7429 test -n "$DLLEXT" || ac_clean="$ac_clean $ac_dir/$ac_dll"
7431 if eval test \"x\$"$ac_enable"\" = x"no"; then :
7432 if wine_fn_has_flag implib && test "$ac_enable" != enable_win16
7433 then
7434 wine_fn_depend_rules
7435 wine_fn_clean_rules $ac_clean
7436 else
7437 wine_fn_disabled_rules $ac_clean
7438 return
7440 else
7441 wine_fn_all_rules
7442 wine_fn_clean_rules $ac_clean
7443 wine_fn_append_rule \
7444 "$ac_dir: __builddeps__
7445 manpages htmlpages sgmlpages xmlpages:: $ac_dir/Makefile
7446 @cd $ac_dir && \$(MAKE) \$@
7447 .PHONY: $ac_dir/install-lib $ac_dir/uninstall
7448 install install-lib:: $ac_dir/install-lib
7449 __uninstall__: $ac_dir/uninstall"
7450 if test -n "$DLLEXT"
7451 then
7452 wine_fn_append_rule \
7453 "$ac_dir/install-lib:: $ac_dir
7454 \$(INSTALL_PROGRAM) $ac_dir/$ac_dll$DLLEXT \$(DESTDIR)\$(dlldir)/$DLLPREFIX$ac_dll$DLLEXT
7455 \$(INSTALL_DATA) $ac_dir/$ac_dll.fake \$(DESTDIR)\$(fakedlldir)/$ac_dll
7456 $ac_dir/uninstall::
7457 \$(RM) \$(DESTDIR)\$(dlldir)/$DLLPREFIX$ac_dll$DLLEXT \$(DESTDIR)\$(fakedlldir)/$ac_dll"
7458 else
7459 wine_fn_append_rule \
7460 "$ac_dir/install-lib:: $ac_dir
7461 \$(INSTALL_PROGRAM) $ac_dir/$ac_dll \$(DESTDIR)\$(dlldir)/$ac_dll
7462 $ac_dir/uninstall::
7463 \$(RM) \$(DESTDIR)\$(dlldir)/$ac_dll"
7466 wine_fn_pot_rules
7469 if wine_fn_has_flag staticimplib
7470 then
7471 wine_fn_append_rule \
7472 "__builddeps__: $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT
7473 $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT $ac_file.cross.a: $ac_deps
7474 $ac_file.def: $srcdir/$ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
7475 \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --def -o \$@ --export $srcdir/$ac_dir/$ac_name.spec
7476 $ac_file.$STATIC_IMPLIBEXT: $ac_dir/Makefile dummy
7477 @cd $ac_dir && \$(MAKE) lib$ac_implib.$STATIC_IMPLIBEXT
7478 .PHONY: $ac_dir/install-dev $ac_dir/uninstall
7479 $ac_dir/install-dev:: $ac_file.$IMPLIBEXT
7480 \$(INSTALL_DATA) $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
7481 $ac_dir/uninstall::
7482 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
7483 install install-dev:: $ac_dir/install-dev
7484 __uninstall__: $ac_dir/uninstall"
7486 if test "$IMPLIBEXT" != "$STATIC_IMPLIBEXT"
7487 then
7488 wine_fn_append_rule \
7489 "$ac_dir/install-dev:: $ac_file.$STATIC_IMPLIBEXT __builddeps__
7490 \$(INSTALL_DATA) $ac_file.$STATIC_IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$STATIC_IMPLIBEXT
7491 $ac_dir/uninstall::
7492 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$STATIC_IMPLIBEXT"
7495 if test -n "$CROSSTARGET" -a -z "$ac_implibflags"
7496 then
7497 wine_fn_append_rule \
7498 "__builddeps__: $ac_file.cross.a
7499 $ac_file.cross.a: $ac_dir/Makefile dummy
7500 @cd $ac_dir && \$(MAKE) lib$ac_implib.cross.a"
7503 elif wine_fn_has_flag implib
7504 then
7505 wine_fn_append_rule \
7506 "__builddeps__: $ac_file.$IMPLIBEXT
7507 $ac_file.def: $srcdir/$ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
7508 \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --def -o \$@ --export $srcdir/$ac_dir/$ac_name.spec
7509 $ac_file.a: $srcdir/$ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
7510 \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --implib -o \$@ --export $srcdir/$ac_dir/$ac_name.spec
7511 .PHONY: $ac_dir/install-dev $ac_dir/uninstall
7512 $ac_dir/install-dev:: $ac_file.$IMPLIBEXT
7513 \$(INSTALL_DATA) $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
7514 $ac_dir/uninstall::
7515 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
7516 install install-dev:: $ac_dir/install-dev
7517 __uninstall__: $ac_dir/uninstall"
7518 if test -n "$CROSSTARGET" -a -z "$ac_implibflags"
7519 then
7520 wine_fn_append_rule \
7521 "__builddeps__: $ac_file.cross.a
7522 $ac_file.cross.a: $srcdir/$ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
7523 \$(WINEBUILD) \$(CROSSTARGET:%=-b %)$ac_implibflags -w --implib -o \$@ --export $srcdir/$ac_dir/$ac_name.spec"
7526 if test "$ac_name" != "$ac_implib"
7527 then
7528 wine_fn_append_rule \
7529 "__builddeps__: dlls/lib$ac_implib.$IMPLIBEXT
7530 dlls/lib$ac_implib.$IMPLIBEXT: $ac_file.$IMPLIBEXT
7531 \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.$IMPLIBEXT \$@
7532 clean::
7533 \$(RM) dlls/lib$ac_implib.$IMPLIBEXT"
7534 wine_fn_ignore_file "dlls/lib$ac_implib.$IMPLIBEXT"
7535 if test -n "$CROSSTARGET" -a -z "$ac_implibflags"
7536 then
7537 wine_fn_append_rule \
7538 "__builddeps__: dlls/lib$ac_implib.cross.a
7539 dlls/lib$ac_implib.cross.a: $ac_file.cross.a
7540 \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.cross.a \$@
7541 clean::
7542 \$(RM) dlls/lib$ac_implib.cross.a"
7543 wine_fn_ignore_file "dlls/lib$ac_implib.cross.a"
7549 wine_fn_config_program ()
7551 ac_name=$1
7552 ac_dir=programs/$ac_name
7553 ac_enable=$2
7554 ac_flags=$3
7555 ac_program=$ac_name
7557 case $ac_name in
7558 *.*) ;;
7559 *) ac_program=$ac_program.exe ;;
7560 esac
7562 ac_clean=
7563 wine_fn_has_flag mc && ac_clean="$ac_clean $ac_dir/msg.pot"
7564 wine_fn_has_flag po && ac_clean="$ac_clean $ac_dir/rsrc.pot"
7565 wine_fn_has_flag manpage && ac_clean="$ac_clean $ac_dir/$ac_name.man"
7566 test -n "$DLLEXT" || ac_clean="$ac_clean $ac_dir/$ac_program"
7568 if eval test \"x\$"$ac_enable"\" = x"no"; then :
7569 wine_fn_disabled_rules $ac_clean; return
7572 wine_fn_all_rules
7573 wine_fn_clean_rules $ac_clean
7574 wine_fn_append_rule "$ac_dir: __builddeps__"
7575 wine_fn_pot_rules
7577 wine_fn_has_flag install || return
7578 wine_fn_append_rule \
7579 ".PHONY: $ac_dir/install $ac_dir/uninstall
7580 install install-lib:: $ac_dir/install
7581 __uninstall__: $ac_dir/uninstall"
7583 if test -n "$DLLEXT"
7584 then
7585 wine_fn_append_rule \
7586 "$ac_dir/install:: $ac_dir
7587 \$(INSTALL_PROGRAM) $ac_dir/$ac_program$DLLEXT \$(DESTDIR)\$(dlldir)/$DLLPREFIX$ac_program$DLLEXT
7588 \$(INSTALL_DATA) $ac_dir/$ac_program.fake \$(DESTDIR)\$(fakedlldir)/$ac_program
7589 $ac_dir/uninstall::
7590 \$(RM) \$(DESTDIR)\$(dlldir)/$DLLPREFIX$ac_program$DLLEXT \$(DESTDIR)\$(fakedlldir)/$ac_program"
7592 if test -z "$with_wine64" && wine_fn_has_flag installbin
7593 then
7594 wine_fn_append_rule \
7595 "$ac_dir/install:: __tooldeps__
7596 \$(INSTALL_SCRIPT) \$(TOOLSDIR)/tools/wineapploader \$(DESTDIR)\$(bindir)/$ac_name
7597 $ac_dir/uninstall::
7598 \$(RM) \$(DESTDIR)\$(bindir)/$ac_name"
7600 else
7601 wine_fn_append_rule \
7602 "$ac_dir/install:: $ac_dir
7603 \$(INSTALL_PROGRAM) $ac_dir/$ac_program \$(DESTDIR)\$(bindir)/$ac_program
7604 $ac_dir/uninstall::
7605 \$(RM) \$(DESTDIR)\$(bindir)/$ac_program"
7608 if test -z "$with_wine64" && wine_fn_has_flag manpage
7609 then
7610 wine_fn_append_rule \
7611 "$ac_dir/install:: $ac_dir
7612 \$(INSTALL_DATA) $ac_dir/$ac_name.man \$(DESTDIR)\$(mandir)/man\$(prog_manext)/$ac_name.\$(prog_manext)
7613 $ac_dir/uninstall::
7614 \$(RM) \$(DESTDIR)\$(mandir)/man\$(prog_manext)/$ac_name.\$(prog_manext)"
7618 wine_fn_config_test ()
7620 ac_dir=$1
7621 ac_name=$2
7622 ac_flags=$3
7624 ac_clean=
7625 test -n "$CROSSTARGET" && ac_clean=`expr $ac_dir/${ac_name} : "\\(.*\\)_test"`_crosstest.exe
7626 test -n "$DLLEXT" || ac_clean="$ac_dir/${ac_name}.exe $ac_dir/${ac_name}-stripped.exe"
7628 if test "x$enable_tests" = xno; then :
7629 wine_fn_disabled_rules $ac_clean; return
7632 wine_fn_append_file ALL_TEST_RESOURCES $ac_name.res
7633 wine_fn_all_rules
7634 wine_fn_clean_rules $ac_clean
7636 wine_fn_append_rule \
7637 "$ac_dir: programs/winetest/Makefile __builddeps__
7638 programs/winetest: $ac_dir
7639 check test: $ac_dir/test
7640 .PHONY: $ac_dir/test
7641 $ac_dir/test: dummy
7642 @cd $ac_dir && \$(MAKE) test
7643 testclean::
7644 \$(RM) $ac_dir/*.ok"
7646 if test -n "$CROSSTARGET"
7647 then
7648 wine_fn_append_rule \
7649 "crosstest: $ac_dir/crosstest
7650 .PHONY: $ac_dir/crosstest
7651 $ac_dir/crosstest: $ac_dir/Makefile __builddeps__ dummy
7652 @cd $ac_dir && \$(MAKE) crosstest"
7656 wine_fn_config_tool ()
7658 ac_dir=$1
7659 ac_flags=$2
7660 if test "x$enable_tools" = xno; then :
7661 return
7664 wine_fn_all_rules
7665 wine_fn_install_rules
7666 wine_fn_clean_rules
7668 wine_fn_append_rule "__tooldeps__: $ac_dir"
7669 wine_fn_append_rule "$ac_dir: libs/port"
7670 case $ac_dir in
7671 tools/winebuild) wine_fn_append_rule "\$(WINEBUILD): $ac_dir" ;;
7672 esac
7675 wine_fn_config_symlink ()
7677 ac_linkdir=
7678 if test "x$1" = "x-d"
7679 then
7680 ac_linkdir=$2
7681 shift; shift
7683 ac_links=$@
7684 wine_fn_append_rule \
7685 "$ac_links:
7686 @./config.status \$@
7687 distclean::
7688 \$(RM) $ac_links"
7689 for f in $ac_links; do wine_fn_ignore_file $f; done
7690 test -n "$ac_linkdir" || return
7691 wine_fn_append_rule "$ac_linkdir/Makefile $ac_linkdir/depend: $ac_links"
7694 wine_binary="wine"
7695 test "x$enable_win64" != "xyes" || wine_binary="wine64"
7696 loader_programs="$wine_binary wine-installed"
7697 libwine_soversion=`expr $libwine_version : '\([0-9]*\)\..*'`
7699 LOADER_RULES="
7700 all: wine.inf
7702 install install-lib:: wine-installed
7703 \$(INSTALL_PROGRAM) wine-installed \$(DESTDIR)\$(bindir)/$wine_binary
7705 uninstall::
7706 \$(RM) \$(DESTDIR)\$(bindir)/$wine_binary
7710 case $host_os in
7711 cygwin*|mingw32*)
7712 if test -n "$ac_tool_prefix"; then
7713 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7714 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7716 $as_echo_n "checking for $ac_word... " >&6; }
7717 if ${ac_cv_prog_DLLTOOL+:} false; then :
7718 $as_echo_n "(cached) " >&6
7719 else
7720 if test -n "$DLLTOOL"; then
7721 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7722 else
7723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7724 for as_dir in $PATH
7726 IFS=$as_save_IFS
7727 test -z "$as_dir" && as_dir=.
7728 for ac_exec_ext in '' $ac_executable_extensions; do
7729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7730 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7732 break 2
7734 done
7735 done
7736 IFS=$as_save_IFS
7740 DLLTOOL=$ac_cv_prog_DLLTOOL
7741 if test -n "$DLLTOOL"; then
7742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7743 $as_echo "$DLLTOOL" >&6; }
7744 else
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7746 $as_echo "no" >&6; }
7751 if test -z "$ac_cv_prog_DLLTOOL"; then
7752 ac_ct_DLLTOOL=$DLLTOOL
7753 # Extract the first word of "dlltool", so it can be a program name with args.
7754 set dummy dlltool; ac_word=$2
7755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7756 $as_echo_n "checking for $ac_word... " >&6; }
7757 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7758 $as_echo_n "(cached) " >&6
7759 else
7760 if test -n "$ac_ct_DLLTOOL"; then
7761 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7762 else
7763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7764 for as_dir in $PATH
7766 IFS=$as_save_IFS
7767 test -z "$as_dir" && as_dir=.
7768 for ac_exec_ext in '' $ac_executable_extensions; do
7769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7770 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7772 break 2
7774 done
7775 done
7776 IFS=$as_save_IFS
7780 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7781 if test -n "$ac_ct_DLLTOOL"; then
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7783 $as_echo "$ac_ct_DLLTOOL" >&6; }
7784 else
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7786 $as_echo "no" >&6; }
7789 if test "x$ac_ct_DLLTOOL" = x; then
7790 DLLTOOL="false"
7791 else
7792 case $cross_compiling:$ac_tool_warned in
7793 yes:)
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7795 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7796 ac_tool_warned=yes ;;
7797 esac
7798 DLLTOOL=$ac_ct_DLLTOOL
7800 else
7801 DLLTOOL="$ac_cv_prog_DLLTOOL"
7804 LIBEXT="dll"
7805 DLLEXT=""
7806 IMPLIBEXT="a"
7807 STATIC_IMPLIBEXT="a"
7808 enable_iphlpapi=${enable_iphlpapi:-no}
7809 enable_kernel32=${enable_kernel32:-no}
7810 enable_msvcrt=${enable_msvcrt:-no}
7811 enable_ntdll=${enable_ntdll:-no}
7812 enable_ws2_32=${enable_ws2_32:-no}
7813 enable_loader=${enable_loader:-no}
7814 enable_server=${enable_server:-no}
7815 with_x=${with_x:-no}
7816 with_pthread=${with_pthread:-no}
7818 crtlibs=""
7819 case $host_os in
7820 mingw32*)
7821 crtlibs="-lmsvcrt"
7822 SOCKET_LIBS="-L\$(top_builddir)/dlls/ws2_32 -lws2_32"
7824 esac
7826 libwine_targets="libwine.dll libwine.a"
7827 LIBWINE_RULES="
7828 OBJS = \$(C_SRCS:.c=.o) \$(EXTRA_OBJS)
7830 all: libwine.dll libwine.a
7832 libwine.a: \$(srcdir)/wine.def
7833 \$(DLLTOOL) -l \$@ -d \$(srcdir)/wine.def
7835 libwine.dll: \$(OBJS) \$(srcdir)/wine.def
7836 \$(CC) -shared \$(srcdir)/wine.def -o \$@ \$(OBJS) $crtlibs \$(EXTRALIBS)
7838 install install-lib:: libwine.dll
7839 \$(INSTALL_DATA) libwine.dll \$(DESTDIR)\$(libdir)/libwine.dll
7841 install install-dev:: libwine.a
7842 \$(INSTALL_DATA) libwine.a \$(DESTDIR)\$(libdir)/libwine.a
7844 uninstall::
7845 -cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.a libwine.dll
7850 darwin*|macosx*)
7851 LIBEXT="dylib"
7852 DLLFLAGS="$DLLFLAGS -fPIC"
7853 LIBWINE_LDFLAGS="-multiply_defined suppress"
7854 LDRPATH_INSTALL="-Wl,-rpath,@loader_path/\`\$(MAKEDEP) -R \$(bindir) \$(libdir)\`"
7855 LDRPATH_LOCAL="-Wl,-rpath,@loader_path/\$(top_builddir)/libs/wine"
7856 COREFOUNDATION_LIBS="-framework CoreFoundation"
7858 IOKIT_LIBS="-framework IOKit -framework CoreFoundation"
7860 FORCEFEEDBACK_LIBS="-framework ForceFeedback -framework CoreFoundation"
7862 APPLICATIONSERVICES_LIBS="-framework ApplicationServices"
7864 CORESERVICES_LIBS="-framework CoreServices"
7866 APPKIT_LIBS="-framework AppKit"
7868 LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-pagezero_size,0x1000,-segaddr,WINE_DOS,0x00001000,-segaddr,WINE_SHAREDHEAP,0x7f000000,-sectcreate,__TEXT,__info_plist,wine_info.plist"
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,-no_pie" >&5
7870 $as_echo_n "checking whether the compiler supports -Wl,-no_pie... " >&6; }
7871 if ${ac_cv_cflags__Wl__no_pie+:} false; then :
7872 $as_echo_n "(cached) " >&6
7873 else
7874 ac_wine_try_cflags_saved=$CFLAGS
7875 CFLAGS="$CFLAGS -Wl,-no_pie"
7876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7877 /* end confdefs.h. */
7878 int main(int argc, char **argv) { return 0; }
7879 _ACEOF
7880 if ac_fn_c_try_link "$LINENO"; then :
7881 ac_cv_cflags__Wl__no_pie=yes
7882 else
7883 ac_cv_cflags__Wl__no_pie=no
7885 rm -f core conftest.err conftest.$ac_objext \
7886 conftest$ac_exeext conftest.$ac_ext
7887 CFLAGS=$ac_wine_try_cflags_saved
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl__no_pie" >&5
7890 $as_echo "$ac_cv_cflags__Wl__no_pie" >&6; }
7891 if test "x$ac_cv_cflags__Wl__no_pie" = xyes; then :
7892 LDEXECFLAGS="-Wl,-no_pie $LDEXECFLAGS"
7894 if test "$ac_cv_header_DiskArbitration_DiskArbitration_h" = "yes"
7895 then
7896 DISKARBITRATION_LIBS="-framework DiskArbitration -framework CoreFoundation"
7899 if test "$ac_cv_header_Security_Security_h" = "yes"
7900 then
7901 SECURITY_LIBS="-framework Security -framework CoreFoundation"
7903 ac_save_LIBS="$LIBS"
7904 LIBS="$LIBS $SECURITY_LIBS"
7905 for ac_func in SSLCopyPeerCertificates
7906 do :
7907 ac_fn_c_check_func "$LINENO" "SSLCopyPeerCertificates" "ac_cv_func_SSLCopyPeerCertificates"
7908 if test "x$ac_cv_func_SSLCopyPeerCertificates" = xyes; then :
7909 cat >>confdefs.h <<_ACEOF
7910 #define HAVE_SSLCOPYPEERCERTIFICATES 1
7911 _ACEOF
7914 done
7916 LIBS="$ac_save_LIBS"
7917 with_gnutls=${with_gnutls:-no}
7919 if test "$ac_cv_header_CoreAudio_CoreAudio_h" = "yes" -a "$ac_cv_header_AudioUnit_AudioUnit_h" = "yes"
7920 then
7921 if test "$ac_cv_header_AudioUnit_AudioComponent_h" = "yes"
7922 then
7923 COREAUDIO_LIBS="-framework CoreFoundation -framework CoreAudio -framework AudioUnit -framework AudioToolbox -framework CoreMIDI"
7925 else
7926 COREAUDIO_LIBS="-framework CoreAudio -framework AudioUnit -framework CoreServices -framework AudioToolbox -framework CoreMIDI"
7929 ac_save_LIBS="$LIBS"
7930 LIBS="$LIBS $COREAUDIO_LIBS"
7931 for ac_func in AUGraphAddNode
7932 do :
7933 ac_fn_c_check_func "$LINENO" "AUGraphAddNode" "ac_cv_func_AUGraphAddNode"
7934 if test "x$ac_cv_func_AUGraphAddNode" = xyes; then :
7935 cat >>confdefs.h <<_ACEOF
7936 #define HAVE_AUGRAPHADDNODE 1
7937 _ACEOF
7940 done
7942 LIBS="$ac_save_LIBS"
7944 if test "$ac_cv_header_OpenAL_al_h" = "yes"
7945 then
7946 OPENAL_LIBS="-framework OpenAL"
7949 cat >>confdefs.h <<_ACEOF
7950 #define HAVE_OPENAL 1
7951 _ACEOF
7953 ac_cv_lib_openal=yes
7955 if test "$ac_cv_header_OpenCL_opencl_h" = "yes"
7956 then
7957 OPENCL_LIBS="-framework OpenCL"
7959 ac_cv_lib_OpenCL_clGetPlatformInfo=yes
7961 if test "$ac_cv_header_IOKit_hid_IOHIDLib_h" = "yes"
7962 then
7963 ac_save_LIBS="$LIBS"
7964 LIBS="$LIBS $IOKIT_LIBS"
7965 for ac_func in IOHIDManagerCreate
7966 do :
7967 ac_fn_c_check_func "$LINENO" "IOHIDManagerCreate" "ac_cv_func_IOHIDManagerCreate"
7968 if test "x$ac_cv_func_IOHIDManagerCreate" = xyes; then :
7969 cat >>confdefs.h <<_ACEOF
7970 #define HAVE_IOHIDMANAGERCREATE 1
7971 _ACEOF
7974 done
7976 LIBS="$ac_save_LIBS"
7978 if test "$ac_cv_header_QuickTime_ImageCompression_h" = "yes"
7979 then
7980 ac_save_LIBS="$LIBS"
7981 LIBS="-framework QuickTime -framework ApplicationServices -framework CoreVideo $LIBS"
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the QuickTime framework" >&5
7983 $as_echo_n "checking for the QuickTime framework... " >&6; }
7984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7985 /* end confdefs.h. */
7986 #include <QuickTime/ImageCompression.h>
7988 main ()
7990 CodecManagerVersion(NULL);
7992 return 0;
7994 _ACEOF
7995 if ac_fn_c_try_link "$LINENO"; then :
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7997 $as_echo "yes" >&6; }
7998 QUICKTIME_LIBS="-framework QuickTime -framework ApplicationServices -framework CoreVideo"
8000 enable_wineqtdecoder=${enable_wineqtdecoder:-yes}
8001 else
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8003 $as_echo "no" >&6; }
8004 ac_cv_header_QuickTime_ImageCompression_h=no
8006 rm -f core conftest.err conftest.$ac_objext \
8007 conftest$ac_exeext conftest.$ac_ext
8008 LIBS="$ac_save_LIBS"
8010 if test "$ac_cv_header_QuickTime_ImageCompression_h" != "yes"
8011 then
8012 as_fn_append wine_notices "|QuickTime ${notice_platform}development files not found, video decoding won't be supported."
8014 if test "$ac_cv_header_Carbon_Carbon_h" = "yes"
8015 then
8016 CARBON_LIBS="-framework Carbon"
8020 if test "$ac_cv_header_ApplicationServices_ApplicationServices_h" = "yes"
8021 then
8022 ac_save_LIBS="$LIBS"
8023 LIBS="$LIBS $APPLICATIONSERVICES_LIBS"
8024 ac_fn_c_check_func "$LINENO" "CGDisplayModeGetWidth" "ac_cv_func_CGDisplayModeGetWidth"
8025 if test "x$ac_cv_func_CGDisplayModeGetWidth" = xyes; then :
8026 enable_winemac_drv=${enable_winemac_drv:-yes}
8029 LIBS="$ac_save_LIBS"
8032 if test "x$enable_win16" = "xyes"
8033 then
8034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 16-bit code can be built correctly" >&5
8035 $as_echo_n "checking whether 16-bit code can be built correctly... " >&6; }
8036 if test "$cross_compiling" = yes; then :
8037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5
8038 $as_echo "cross-compiling, assuming yes" >&6; }
8039 else
8040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8041 /* end confdefs.h. */
8042 asm(".text\n"
8043 "bad:\tnop;nop\n"
8044 "good:\tnop;nop\n\t"
8045 ".globl _testfunc\n"
8046 "_testfunc:\tcallw good");
8047 extern void testfunc();
8049 main ()
8051 unsigned short *p = (unsigned short *)testfunc;
8052 return p[0] != 0xe866 || p[1] != 0xfffa
8054 return 0;
8056 _ACEOF
8057 if ac_fn_c_try_run "$LINENO"; then :
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8059 $as_echo "yes" >&6; }
8060 else
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8062 $as_echo "no" >&6; }
8063 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
8065 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8066 conftest.$ac_objext conftest.beam conftest.$ac_ext
8071 libwine_targets="libwine.dylib libwine.$libwine_soversion.dylib libwine.$libwine_version.dylib"
8072 LIBWINE_RULES="
8073 OBJS = \$(C_SRCS:.c=.o) \$(EXTRA_OBJS)
8075 all: libwine.dylib
8077 libwine.$libwine_version.dylib: \$(OBJS)
8078 \$(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 \$@
8080 libwine.$libwine_soversion.dylib: libwine.$libwine_version.dylib
8081 \$(RM) \$@ && \$(LN_S) libwine.$libwine_version.dylib \$@
8083 libwine.dylib: libwine.$libwine_soversion.dylib
8084 \$(RM) \$@ && \$(LN_S) libwine.$libwine_soversion.dylib \$@
8086 install install-lib:: libwine.$libwine_version.dylib
8087 \$(INSTALL_PROGRAM) libwine.$libwine_version.dylib \$(DESTDIR)\$(libdir)/libwine.$libwine_version.dylib
8088 cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.$libwine_soversion.dylib && \$(LN_S) libwine.$libwine_version.dylib libwine.$libwine_soversion.dylib
8090 install install-dev::
8091 cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.dylib && \$(LN_S) libwine.$libwine_version.dylib libwine.dylib
8093 uninstall::
8094 -cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.dylib libwine.$libwine_soversion.dylib libwine.$libwine_version.dylib
8098 as_fn_append LOADER_RULES "
8099 $wine_binary: main.o wine_info.plist
8100 \$(CC) -o \$@ $LDEXECFLAGS main.o \$(LIBWINE) \$(LIBPORT) \$(EXTRALIBS) \$(LDFLAGS) \$(LDRPATH_LOCAL)
8102 wine-installed: main.o wine_info.plist
8103 \$(CC) -o \$@ $LDEXECFLAGS main.o \$(LIBWINE) \$(LIBPORT) \$(EXTRALIBS) \$(LDFLAGS) \$(LDRPATH_INSTALL)
8107 linux-android*)
8108 DLLFLAGS="$DLLFLAGS -fPIC"
8109 DLLPREFIX="lib"
8110 LDEXECFLAGS=""
8111 dlldir="\${libdir}"
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5
8113 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--export-dynamic... " >&6; }
8114 if ${ac_cv_cflags__fPIC__Wl___export_dynamic+:} false; then :
8115 $as_echo_n "(cached) " >&6
8116 else
8117 ac_wine_try_cflags_saved=$CFLAGS
8118 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
8119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8120 /* end confdefs.h. */
8121 int main(int argc, char **argv) { return 0; }
8122 _ACEOF
8123 if ac_fn_c_try_link "$LINENO"; then :
8124 ac_cv_cflags__fPIC__Wl___export_dynamic=yes
8125 else
8126 ac_cv_cflags__fPIC__Wl___export_dynamic=no
8128 rm -f core conftest.err conftest.$ac_objext \
8129 conftest$ac_exeext conftest.$ac_ext
8130 CFLAGS=$ac_wine_try_cflags_saved
8132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__Wl___export_dynamic" >&5
8133 $as_echo "$ac_cv_cflags__fPIC__Wl___export_dynamic" >&6; }
8134 if test "x$ac_cv_cflags__fPIC__Wl___export_dynamic" = xyes; then :
8135 LDEXECFLAGS="-Wl,--export-dynamic"
8137 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,--rpath,\\$ORIGIN/../lib" | $as_tr_sh`
8138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib" >&5
8139 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... " >&6; }
8140 if eval \${$as_ac_var+:} false; then :
8141 $as_echo_n "(cached) " >&6
8142 else
8143 ac_wine_try_cflags_saved=$CFLAGS
8144 CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
8145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8146 /* end confdefs.h. */
8147 int main(int argc, char **argv) { return 0; }
8148 _ACEOF
8149 if ac_fn_c_try_link "$LINENO"; then :
8150 eval "$as_ac_var=yes"
8151 else
8152 eval "$as_ac_var=no"
8154 rm -f core conftest.err conftest.$ac_objext \
8155 conftest$ac_exeext conftest.$ac_ext
8156 CFLAGS=$ac_wine_try_cflags_saved
8158 eval ac_res=\$$as_ac_var
8159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8160 $as_echo "$ac_res" >&6; }
8161 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8162 LDRPATH_INSTALL="-Wl,--rpath,\\\$\$ORIGIN/\`\$(MAKEDEP) -R \$(bindir) \$(libdir)\`"
8163 LDRPATH_LOCAL="-Wl,--rpath,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
8164 else
8165 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,-R,\\$ORIGIN/../lib" | $as_tr_sh`
8166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib" >&5
8167 $as_echo_n "checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib... " >&6; }
8168 if eval \${$as_ac_var+:} false; then :
8169 $as_echo_n "(cached) " >&6
8170 else
8171 ac_wine_try_cflags_saved=$CFLAGS
8172 CFLAGS="$CFLAGS -fPIC -Wl,-R,\$ORIGIN/../lib"
8173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8174 /* end confdefs.h. */
8175 int main(int argc, char **argv) { return 0; }
8176 _ACEOF
8177 if ac_fn_c_try_link "$LINENO"; then :
8178 eval "$as_ac_var=yes"
8179 else
8180 eval "$as_ac_var=no"
8182 rm -f core conftest.err conftest.$ac_objext \
8183 conftest$ac_exeext conftest.$ac_ext
8184 CFLAGS=$ac_wine_try_cflags_saved
8186 eval ac_res=\$$as_ac_var
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8188 $as_echo "$ac_res" >&6; }
8189 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8190 LDRPATH_INSTALL="-Wl,-R,\\\$\$ORIGIN/\`\$(MAKEDEP) -R \$(bindir) \$(libdir)\`"
8191 LDRPATH_LOCAL="-Wl,-R,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--enable-new-dtags" >&5
8196 $as_echo_n "checking whether the compiler supports -Wl,--enable-new-dtags... " >&6; }
8197 if ${ac_cv_cflags__Wl___enable_new_dtags+:} false; then :
8198 $as_echo_n "(cached) " >&6
8199 else
8200 ac_wine_try_cflags_saved=$CFLAGS
8201 CFLAGS="$CFLAGS -Wl,--enable-new-dtags"
8202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8203 /* end confdefs.h. */
8204 int main(int argc, char **argv) { return 0; }
8205 _ACEOF
8206 if ac_fn_c_try_link "$LINENO"; then :
8207 ac_cv_cflags__Wl___enable_new_dtags=yes
8208 else
8209 ac_cv_cflags__Wl___enable_new_dtags=no
8211 rm -f core conftest.err conftest.$ac_objext \
8212 conftest$ac_exeext conftest.$ac_ext
8213 CFLAGS=$ac_wine_try_cflags_saved
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___enable_new_dtags" >&5
8216 $as_echo "$ac_cv_cflags__Wl___enable_new_dtags" >&6; }
8217 if test "x$ac_cv_cflags__Wl___enable_new_dtags" = xyes; then :
8218 LDRPATH_INSTALL="$LDRPATH_INSTALL -Wl,--enable-new-dtags"
8221 case $host_cpu in
8222 *i[3456789]86* | x86_64)
8223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400" >&5
8224 $as_echo_n "checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... " >&6; }
8225 if ${ac_cv_cflags__Wl___section_start__interp_0x7bf00400+:} false; then :
8226 $as_echo_n "(cached) " >&6
8227 else
8228 ac_wine_try_cflags_saved=$CFLAGS
8229 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
8230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8231 /* end confdefs.h. */
8232 int main(int argc, char **argv) { return 0; }
8233 _ACEOF
8234 if ac_fn_c_try_link "$LINENO"; then :
8235 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=yes
8236 else
8237 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=no
8239 rm -f core conftest.err conftest.$ac_objext \
8240 conftest$ac_exeext conftest.$ac_ext
8241 CFLAGS=$ac_wine_try_cflags_saved
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&5
8244 $as_echo "$ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&6; }
8245 if test "x$ac_cv_cflags__Wl___section_start__interp_0x7bf00400" = xyes; then :
8246 LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400"
8249 esac
8251 libwine_targets="libwine.so"
8252 LIBWINE_RULES="
8253 OBJS = \$(C_SRCS:.c=.o) \$(EXTRA_OBJS)
8255 all: libwine.so
8257 libwine.so: \$(OBJS)
8258 \$(CC) -shared \$(OBJS) \$(EXTRALIBS) \$(LDFLAGS) \$(LIBS) -o \$@
8260 install install-lib:: libwine.so
8261 \$(INSTALL_PROGRAM) libwine.so \$(DESTDIR)\$(libdir)/libwine.so
8263 uninstall::
8264 \$(RM) \$(DESTDIR)\$(libdir)/libwine.so
8268 as_fn_append LOADER_RULES "
8269 $wine_binary: main.o
8270 \$(CC) -o \$@ $LDEXECFLAGS main.o \$(LIBWINE) \$(LIBPORT) \$(EXTRALIBS) \$(LDFLAGS) \$(LDRPATH_LOCAL)
8272 wine-installed: main.o
8273 \$(CC) -o \$@ $LDEXECFLAGS main.o \$(LIBWINE) \$(LIBPORT) \$(EXTRALIBS) \$(LDFLAGS) \$(LDRPATH_INSTALL)
8278 DLLFLAGS="$DLLFLAGS -fPIC"
8279 LDEXECFLAGS=""
8280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a GNU style ELF dll" >&5
8281 $as_echo_n "checking whether we can build a GNU style ELF dll... " >&6; }
8282 if ${ac_cv_c_dll_gnuelf+:} false; then :
8283 $as_echo_n "(cached) " >&6
8284 else
8285 ac_wine_try_cflags_saved=$CFLAGS
8286 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic"
8287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8288 /* end confdefs.h. */
8289 void myfunc() {}
8290 _ACEOF
8291 if ac_fn_c_try_link "$LINENO"; then :
8292 ac_cv_c_dll_gnuelf="yes"
8293 else
8294 ac_cv_c_dll_gnuelf="no"
8296 rm -f core conftest.err conftest.$ac_objext \
8297 conftest$ac_exeext conftest.$ac_ext
8298 CFLAGS=$ac_wine_try_cflags_saved
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_gnuelf" >&5
8301 $as_echo "$ac_cv_c_dll_gnuelf" >&6; }
8302 if test "$ac_cv_c_dll_gnuelf" = "yes"
8303 then
8304 LDSHARED="\$(CC) -shared"
8305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1" >&5
8306 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1... " >&6; }
8307 if ${ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1+:} false; then :
8308 $as_echo_n "(cached) " >&6
8309 else
8310 ac_wine_try_cflags_saved=$CFLAGS
8311 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,confest.so.1"
8312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8313 /* end confdefs.h. */
8314 int main(int argc, char **argv) { return 0; }
8315 _ACEOF
8316 if ac_fn_c_try_link "$LINENO"; then :
8317 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=yes
8318 else
8319 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=no
8321 rm -f core conftest.err conftest.$ac_objext \
8322 conftest$ac_exeext conftest.$ac_ext
8323 CFLAGS=$ac_wine_try_cflags_saved
8325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&5
8326 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&6; }
8327 if test "x$ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" = xyes; then :
8328 LDSHARED="\$(CC) -shared -Wl,-soname,libwine.so.$libwine_soversion"
8329 else
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1" >&5
8331 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1... " >&6; }
8332 if ${ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1+:} false; then :
8333 $as_echo_n "(cached) " >&6
8334 else
8335 ac_wine_try_cflags_saved=$CFLAGS
8336 CFLAGS="$CFLAGS -fPIC -shared -Wl,-h,confest.so.1"
8337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8338 /* end confdefs.h. */
8339 int main(int argc, char **argv) { return 0; }
8340 _ACEOF
8341 if ac_fn_c_try_link "$LINENO"; then :
8342 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=yes
8343 else
8344 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=no
8346 rm -f core conftest.err conftest.$ac_objext \
8347 conftest$ac_exeext conftest.$ac_ext
8348 CFLAGS=$ac_wine_try_cflags_saved
8350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&5
8351 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&6; }
8352 if test "x$ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" = xyes; then :
8353 LDSHARED="\$(CC) -shared -Wl,-h,libwine.so.$libwine_soversion"
8357 echo '{ global: *; };' >conftest.map
8358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map" >&5
8359 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map... " >&6; }
8360 if ${ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map+:} false; then :
8361 $as_echo_n "(cached) " >&6
8362 else
8363 ac_wine_try_cflags_saved=$CFLAGS
8364 CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
8365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8366 /* end confdefs.h. */
8367 int main(int argc, char **argv) { return 0; }
8368 _ACEOF
8369 if ac_fn_c_try_link "$LINENO"; then :
8370 ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=yes
8371 else
8372 ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=no
8374 rm -f core conftest.err conftest.$ac_objext \
8375 conftest$ac_exeext conftest.$ac_ext
8376 CFLAGS=$ac_wine_try_cflags_saved
8378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&5
8379 $as_echo "$ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&6; }
8380 if test "x$ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" = xyes; then :
8381 LDSHARED="$LDSHARED -Wl,--version-script=\$(srcdir)/wine.map"
8383 rm -f conftest.map
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5
8386 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--export-dynamic... " >&6; }
8387 if ${ac_cv_cflags__fPIC__Wl___export_dynamic+:} false; then :
8388 $as_echo_n "(cached) " >&6
8389 else
8390 ac_wine_try_cflags_saved=$CFLAGS
8391 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
8392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8393 /* end confdefs.h. */
8394 int main(int argc, char **argv) { return 0; }
8395 _ACEOF
8396 if ac_fn_c_try_link "$LINENO"; then :
8397 ac_cv_cflags__fPIC__Wl___export_dynamic=yes
8398 else
8399 ac_cv_cflags__fPIC__Wl___export_dynamic=no
8401 rm -f core conftest.err conftest.$ac_objext \
8402 conftest$ac_exeext conftest.$ac_ext
8403 CFLAGS=$ac_wine_try_cflags_saved
8405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__Wl___export_dynamic" >&5
8406 $as_echo "$ac_cv_cflags__fPIC__Wl___export_dynamic" >&6; }
8407 if test "x$ac_cv_cflags__fPIC__Wl___export_dynamic" = xyes; then :
8408 LDEXECFLAGS="-Wl,--export-dynamic"
8411 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,--rpath,\\$ORIGIN/../lib" | $as_tr_sh`
8412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib" >&5
8413 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... " >&6; }
8414 if eval \${$as_ac_var+:} false; then :
8415 $as_echo_n "(cached) " >&6
8416 else
8417 ac_wine_try_cflags_saved=$CFLAGS
8418 CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
8419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8420 /* end confdefs.h. */
8421 int main(int argc, char **argv) { return 0; }
8422 _ACEOF
8423 if ac_fn_c_try_link "$LINENO"; then :
8424 eval "$as_ac_var=yes"
8425 else
8426 eval "$as_ac_var=no"
8428 rm -f core conftest.err conftest.$ac_objext \
8429 conftest$ac_exeext conftest.$ac_ext
8430 CFLAGS=$ac_wine_try_cflags_saved
8432 eval ac_res=\$$as_ac_var
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8434 $as_echo "$ac_res" >&6; }
8435 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8436 LDRPATH_INSTALL="-Wl,--rpath,\\\$\$ORIGIN/\`\$(MAKEDEP) -R \$(bindir) \$(libdir)\`"
8437 LDRPATH_LOCAL="-Wl,--rpath,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
8438 else
8439 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,-R,\\$ORIGIN/../lib" | $as_tr_sh`
8440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib" >&5
8441 $as_echo_n "checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib... " >&6; }
8442 if eval \${$as_ac_var+:} false; then :
8443 $as_echo_n "(cached) " >&6
8444 else
8445 ac_wine_try_cflags_saved=$CFLAGS
8446 CFLAGS="$CFLAGS -fPIC -Wl,-R,\$ORIGIN/../lib"
8447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8448 /* end confdefs.h. */
8449 int main(int argc, char **argv) { return 0; }
8450 _ACEOF
8451 if ac_fn_c_try_link "$LINENO"; then :
8452 eval "$as_ac_var=yes"
8453 else
8454 eval "$as_ac_var=no"
8456 rm -f core conftest.err conftest.$ac_objext \
8457 conftest$ac_exeext conftest.$ac_ext
8458 CFLAGS=$ac_wine_try_cflags_saved
8460 eval ac_res=\$$as_ac_var
8461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8462 $as_echo "$ac_res" >&6; }
8463 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8464 LDRPATH_INSTALL="-Wl,-R,\\\$\$ORIGIN/\`\$(MAKEDEP) -R \$(bindir) \$(libdir)\`"
8465 LDRPATH_LOCAL="-Wl,-R,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
8469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--enable-new-dtags" >&5
8470 $as_echo_n "checking whether the compiler supports -Wl,--enable-new-dtags... " >&6; }
8471 if ${ac_cv_cflags__Wl___enable_new_dtags+:} false; then :
8472 $as_echo_n "(cached) " >&6
8473 else
8474 ac_wine_try_cflags_saved=$CFLAGS
8475 CFLAGS="$CFLAGS -Wl,--enable-new-dtags"
8476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8477 /* end confdefs.h. */
8478 int main(int argc, char **argv) { return 0; }
8479 _ACEOF
8480 if ac_fn_c_try_link "$LINENO"; then :
8481 ac_cv_cflags__Wl___enable_new_dtags=yes
8482 else
8483 ac_cv_cflags__Wl___enable_new_dtags=no
8485 rm -f core conftest.err conftest.$ac_objext \
8486 conftest$ac_exeext conftest.$ac_ext
8487 CFLAGS=$ac_wine_try_cflags_saved
8489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___enable_new_dtags" >&5
8490 $as_echo "$ac_cv_cflags__Wl___enable_new_dtags" >&6; }
8491 if test "x$ac_cv_cflags__Wl___enable_new_dtags" = xyes; then :
8492 LDRPATH_INSTALL="$LDRPATH_INSTALL -Wl,--enable-new-dtags"
8495 case $host_cpu in
8496 *i[3456789]86* | x86_64)
8497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400" >&5
8498 $as_echo_n "checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... " >&6; }
8499 if ${ac_cv_cflags__Wl___section_start__interp_0x7bf00400+:} false; then :
8500 $as_echo_n "(cached) " >&6
8501 else
8502 ac_wine_try_cflags_saved=$CFLAGS
8503 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
8504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8505 /* end confdefs.h. */
8506 int main(int argc, char **argv) { return 0; }
8507 _ACEOF
8508 if ac_fn_c_try_link "$LINENO"; then :
8509 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=yes
8510 else
8511 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=no
8513 rm -f core conftest.err conftest.$ac_objext \
8514 conftest$ac_exeext conftest.$ac_ext
8515 CFLAGS=$ac_wine_try_cflags_saved
8517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&5
8518 $as_echo "$ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&6; }
8519 if test "x$ac_cv_cflags__Wl___section_start__interp_0x7bf00400" = xyes; then :
8520 case $host_os in
8521 freebsd* | kfreebsd*-gnu) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x60000400" ;;
8522 *) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400" ;;
8523 esac
8526 # Extract the first word of "prelink", so it can be a program name with args.
8527 set dummy prelink; ac_word=$2
8528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8529 $as_echo_n "checking for $ac_word... " >&6; }
8530 if ${ac_cv_path_PRELINK+:} false; then :
8531 $as_echo_n "(cached) " >&6
8532 else
8533 case $PRELINK in
8534 [\\/]* | ?:[\\/]*)
8535 ac_cv_path_PRELINK="$PRELINK" # Let the user override the test with a path.
8538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8539 for as_dir in /sbin /usr/sbin $PATH
8541 IFS=$as_save_IFS
8542 test -z "$as_dir" && as_dir=.
8543 for ac_exec_ext in '' $ac_executable_extensions; do
8544 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8545 ac_cv_path_PRELINK="$as_dir/$ac_word$ac_exec_ext"
8546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8547 break 2
8549 done
8550 done
8551 IFS=$as_save_IFS
8553 test -z "$ac_cv_path_PRELINK" && ac_cv_path_PRELINK="false"
8555 esac
8557 PRELINK=$ac_cv_path_PRELINK
8558 if test -n "$PRELINK"; then
8559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRELINK" >&5
8560 $as_echo "$PRELINK" >&6; }
8561 else
8562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8563 $as_echo "no" >&6; }
8567 if test "x$PRELINK" = xfalse
8568 then
8569 as_fn_append wine_warnings "|prelink not found, base address of core dlls won't be set correctly."
8572 esac
8574 else
8575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a UnixWare (Solaris) dll" >&5
8576 $as_echo_n "checking whether we can build a UnixWare (Solaris) dll... " >&6; }
8577 if ${ac_cv_c_dll_unixware+:} false; then :
8578 $as_echo_n "(cached) " >&6
8579 else
8580 ac_wine_try_cflags_saved=$CFLAGS
8581 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
8582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8583 /* end confdefs.h. */
8584 void myfunc() {}
8585 _ACEOF
8586 if ac_fn_c_try_link "$LINENO"; then :
8587 ac_cv_c_dll_unixware="yes"
8588 else
8589 ac_cv_c_dll_unixware="no"
8591 rm -f core conftest.err conftest.$ac_objext \
8592 conftest$ac_exeext conftest.$ac_ext
8593 CFLAGS=$ac_wine_try_cflags_saved
8595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_unixware" >&5
8596 $as_echo "$ac_cv_c_dll_unixware" >&6; }
8597 if test "$ac_cv_c_dll_unixware" = "yes"
8598 then
8599 LDSHARED="\$(CC) -Wl,-G,-h,libwine.so.$libwine_soversion"
8602 libwine_targets="libwine.so libwine.so.$libwine_soversion libwine.so.$libwine_version"
8603 LIBWINE_RULES="
8604 OBJS = \$(C_SRCS:.c=.o) \$(EXTRA_OBJS)
8606 all: libwine.so
8608 libwine.so.$libwine_version: \$(OBJS) \$(srcdir)/wine.map
8609 $LDSHARED \$(OBJS) \$(EXTRALIBS) \$(LDFLAGS) \$(LIBS) -o \$@
8611 libwine.so.$libwine_soversion: libwine.so.$libwine_version
8612 \$(RM) \$@ && \$(LN_S) libwine.so.$libwine_version \$@
8614 libwine.so: libwine.so.$libwine_soversion
8615 \$(RM) \$@ && \$(LN_S) libwine.so.$libwine_soversion \$@
8617 install install-lib:: libwine.so.$libwine_version
8618 \$(INSTALL_PROGRAM) libwine.so.$libwine_version \$(DESTDIR)\$(libdir)/libwine.so.$libwine_version
8619 cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.so.$libwine_soversion && \$(LN_S) libwine.so.$libwine_version libwine.so.$libwine_soversion
8621 install install-dev::
8622 cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.so && \$(LN_S) libwine.so.$libwine_version libwine.so
8624 uninstall::
8625 -cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.so libwine.so.$libwine_soversion libwine.so.$libwine_version
8629 as_fn_append LOADER_RULES "
8630 $wine_binary: main.o
8631 \$(CC) -o \$@ $LDEXECFLAGS main.o \$(LIBWINE) \$(LIBPORT) \$(EXTRALIBS) \$(LDFLAGS) \$(LDRPATH_LOCAL)
8633 wine-installed: main.o
8634 \$(CC) -o \$@ $LDEXECFLAGS main.o \$(LIBWINE) \$(LIBPORT) \$(EXTRALIBS) \$(LDFLAGS) \$(LDRPATH_INSTALL)
8637 esac
8639 as_fn_append LIBWINE_RULES "
8640 EXTRA_TARGETS = $libwine_targets
8643 enable_wineqtdecoder=${enable_wineqtdecoder:-no}
8644 enable_winemac_drv=${enable_winemac_drv:-no}
8646 CROSSTARGET=""
8648 if test "$cross_compiling" = "no" -a "x$enable_tests" != xno -a "$LIBEXT" != "dll"
8649 then
8650 case "$host_cpu" in
8651 i[3456789]86*)
8652 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
8653 mingw32-gcc" ;;
8654 x86_64)
8655 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 " ;;
8657 ac_prefix_list="" ;;
8658 esac
8659 for ac_prog in $ac_prefix_list
8661 # Extract the first word of "$ac_prog", so it can be a program name with args.
8662 set dummy $ac_prog; ac_word=$2
8663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8664 $as_echo_n "checking for $ac_word... " >&6; }
8665 if ${ac_cv_prog_CROSSCC+:} false; then :
8666 $as_echo_n "(cached) " >&6
8667 else
8668 if test -n "$CROSSCC"; then
8669 ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
8670 else
8671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8672 for as_dir in $PATH
8674 IFS=$as_save_IFS
8675 test -z "$as_dir" && as_dir=.
8676 for ac_exec_ext in '' $ac_executable_extensions; do
8677 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8678 ac_cv_prog_CROSSCC="$ac_prog"
8679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8680 break 2
8682 done
8683 done
8684 IFS=$as_save_IFS
8688 CROSSCC=$ac_cv_prog_CROSSCC
8689 if test -n "$CROSSCC"; then
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CROSSCC" >&5
8691 $as_echo "$CROSSCC" >&6; }
8692 else
8693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8694 $as_echo "no" >&6; }
8698 test -n "$CROSSCC" && break
8699 done
8700 test -n "$CROSSCC" || CROSSCC="false"
8702 if test "$CROSSCC" != "false"
8703 then
8704 ac_save_CC="$CC"
8705 CC="$CROSSCC"
8706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CROSSCC works" >&5
8707 $as_echo_n "checking whether $CROSSCC works... " >&6; }
8708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8709 /* end confdefs.h. */
8712 main ()
8716 return 0;
8718 _ACEOF
8719 if ac_fn_c_try_compile "$LINENO"; then :
8720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8721 $as_echo "yes" >&6; }
8722 set x $CROSSCC
8723 shift
8724 while test $# -ge 1
8726 case "$1" in
8727 *-gcc) CROSSTARGET=`expr "$1" : '\(.*\)-gcc'` ;;
8728 esac
8729 shift
8730 done
8731 else
8732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8733 $as_echo "no" >&6; }
8735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8736 CC="$ac_save_CC"
8741 if test "$ac_cv_header_pthread_h" = "yes"
8742 then
8743 ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
8744 if test "x$ac_cv_func_pthread_create" = xyes; then :
8746 else
8747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
8748 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
8749 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
8750 $as_echo_n "(cached) " >&6
8751 else
8752 ac_check_lib_save_LIBS=$LIBS
8753 LIBS="-lpthread $LIBS"
8754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8755 /* end confdefs.h. */
8757 /* Override any GCC internal prototype to avoid an error.
8758 Use char because int might match the return type of a GCC
8759 builtin and then its argument prototype would still apply. */
8760 #ifdef __cplusplus
8761 extern "C"
8762 #endif
8763 char pthread_create ();
8765 main ()
8767 return pthread_create ();
8769 return 0;
8771 _ACEOF
8772 if ac_fn_c_try_link "$LINENO"; then :
8773 ac_cv_lib_pthread_pthread_create=yes
8774 else
8775 ac_cv_lib_pthread_pthread_create=no
8777 rm -f core conftest.err conftest.$ac_objext \
8778 conftest$ac_exeext conftest.$ac_ext
8779 LIBS=$ac_check_lib_save_LIBS
8781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
8782 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
8783 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
8784 PTHREAD_LIBS="-lpthread"
8791 if test "x$ac_cv_func_pthread_create" != xyes -a "x$PTHREAD_LIBS" = x; then :
8792 case "x$with_pthread" in
8793 xno) ;;
8794 *) as_fn_error $? "pthread ${notice_platform}development files not found.
8795 Wine cannot support threads without libpthread.
8796 Use the --without-pthread option if you really want this." "$LINENO" 5 ;;
8797 esac
8801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
8802 $as_echo_n "checking for X... " >&6; }
8805 # Check whether --with-x was given.
8806 if test "${with_x+set}" = set; then :
8807 withval=$with_x;
8810 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8811 if test "x$with_x" = xno; then
8812 # The user explicitly disabled X.
8813 have_x=disabled
8814 else
8815 case $x_includes,$x_libraries in #(
8816 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
8817 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
8818 $as_echo_n "(cached) " >&6
8819 else
8820 # One or both of the vars are not set, and there is no cached value.
8821 ac_x_includes=no ac_x_libraries=no
8822 rm -f -r conftest.dir
8823 if mkdir conftest.dir; then
8824 cd conftest.dir
8825 cat >Imakefile <<'_ACEOF'
8826 incroot:
8827 @echo incroot='${INCROOT}'
8828 usrlibdir:
8829 @echo usrlibdir='${USRLIBDIR}'
8830 libdir:
8831 @echo libdir='${LIBDIR}'
8832 _ACEOF
8833 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
8834 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8835 for ac_var in incroot usrlibdir libdir; do
8836 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
8837 done
8838 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8839 for ac_extension in a so sl dylib la dll; do
8840 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8841 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8842 ac_im_usrlibdir=$ac_im_libdir; break
8844 done
8845 # Screen out bogus values from the imake configuration. They are
8846 # bogus both because they are the default anyway, and because
8847 # using them would break gcc on systems where it needs fixed includes.
8848 case $ac_im_incroot in
8849 /usr/include) ac_x_includes= ;;
8850 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8851 esac
8852 case $ac_im_usrlibdir in
8853 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
8854 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8855 esac
8857 cd ..
8858 rm -f -r conftest.dir
8861 # Standard set of common directories for X headers.
8862 # Check X11 before X11Rn because it is often a symlink to the current release.
8863 ac_x_header_dirs='
8864 /usr/X11/include
8865 /usr/X11R7/include
8866 /usr/X11R6/include
8867 /usr/X11R5/include
8868 /usr/X11R4/include
8870 /usr/include/X11
8871 /usr/include/X11R7
8872 /usr/include/X11R6
8873 /usr/include/X11R5
8874 /usr/include/X11R4
8876 /usr/local/X11/include
8877 /usr/local/X11R7/include
8878 /usr/local/X11R6/include
8879 /usr/local/X11R5/include
8880 /usr/local/X11R4/include
8882 /usr/local/include/X11
8883 /usr/local/include/X11R7
8884 /usr/local/include/X11R6
8885 /usr/local/include/X11R5
8886 /usr/local/include/X11R4
8888 /usr/X386/include
8889 /usr/x386/include
8890 /usr/XFree86/include/X11
8892 /usr/include
8893 /usr/local/include
8894 /usr/unsupported/include
8895 /usr/athena/include
8896 /usr/local/x11r5/include
8897 /usr/lpp/Xamples/include
8899 /usr/openwin/include
8900 /usr/openwin/share/include'
8902 if test "$ac_x_includes" = no; then
8903 # Guess where to find include files, by looking for Xlib.h.
8904 # First, try using that file with no special directory specified.
8905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8906 /* end confdefs.h. */
8907 #include <X11/Xlib.h>
8908 _ACEOF
8909 if ac_fn_c_try_cpp "$LINENO"; then :
8910 # We can compile using X headers with no special include directory.
8911 ac_x_includes=
8912 else
8913 for ac_dir in $ac_x_header_dirs; do
8914 if test -r "$ac_dir/X11/Xlib.h"; then
8915 ac_x_includes=$ac_dir
8916 break
8918 done
8920 rm -f conftest.err conftest.i conftest.$ac_ext
8921 fi # $ac_x_includes = no
8923 if test "$ac_x_libraries" = no; then
8924 # Check for the libraries.
8925 # See if we find them without any special options.
8926 # Don't add to $LIBS permanently.
8927 ac_save_LIBS=$LIBS
8928 LIBS="-lX11 $LIBS"
8929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8930 /* end confdefs.h. */
8931 #include <X11/Xlib.h>
8933 main ()
8935 XrmInitialize ()
8937 return 0;
8939 _ACEOF
8940 if ac_fn_c_try_link "$LINENO"; then :
8941 LIBS=$ac_save_LIBS
8942 # We can link X programs with no special library path.
8943 ac_x_libraries=
8944 else
8945 LIBS=$ac_save_LIBS
8946 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8948 # Don't even attempt the hair of trying to link an X program!
8949 for ac_extension in a so sl dylib la dll; do
8950 if test -r "$ac_dir/libX11.$ac_extension"; then
8951 ac_x_libraries=$ac_dir
8952 break 2
8954 done
8955 done
8957 rm -f core conftest.err conftest.$ac_objext \
8958 conftest$ac_exeext conftest.$ac_ext
8959 fi # $ac_x_libraries = no
8961 case $ac_x_includes,$ac_x_libraries in #(
8962 no,* | *,no | *\'*)
8963 # Didn't find X, or a directory has "'" in its name.
8964 ac_cv_have_x="have_x=no";; #(
8966 # Record where we found X for the cache.
8967 ac_cv_have_x="have_x=yes\
8968 ac_x_includes='$ac_x_includes'\
8969 ac_x_libraries='$ac_x_libraries'"
8970 esac
8972 ;; #(
8973 *) have_x=yes;;
8974 esac
8975 eval "$ac_cv_have_x"
8976 fi # $with_x != no
8978 if test "$have_x" != yes; then
8979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
8980 $as_echo "$have_x" >&6; }
8981 no_x=yes
8982 else
8983 # If each of the values was on the command line, it overrides each guess.
8984 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8985 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8986 # Update the cache value to reflect the command line values.
8987 ac_cv_have_x="have_x=yes\
8988 ac_x_includes='$x_includes'\
8989 ac_x_libraries='$x_libraries'"
8990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
8991 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
8994 if test "$no_x" = yes; then
8995 # Not all programs may use this symbol, but it does not hurt to define it.
8997 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
8999 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
9000 else
9001 if test -n "$x_includes"; then
9002 X_CFLAGS="$X_CFLAGS -I$x_includes"
9005 # It would also be nice to do this for all -L options, not just this one.
9006 if test -n "$x_libraries"; then
9007 X_LIBS="$X_LIBS -L$x_libraries"
9008 # For Solaris; some versions of Sun CC require a space after -R and
9009 # others require no space. Words are not sufficient . . . .
9010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
9011 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
9012 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
9013 ac_xsave_c_werror_flag=$ac_c_werror_flag
9014 ac_c_werror_flag=yes
9015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9016 /* end confdefs.h. */
9019 main ()
9023 return 0;
9025 _ACEOF
9026 if ac_fn_c_try_link "$LINENO"; then :
9027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9028 $as_echo "no" >&6; }
9029 X_LIBS="$X_LIBS -R$x_libraries"
9030 else
9031 LIBS="$ac_xsave_LIBS -R $x_libraries"
9032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9033 /* end confdefs.h. */
9036 main ()
9040 return 0;
9042 _ACEOF
9043 if ac_fn_c_try_link "$LINENO"; then :
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9045 $as_echo "yes" >&6; }
9046 X_LIBS="$X_LIBS -R $x_libraries"
9047 else
9048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
9049 $as_echo "neither works" >&6; }
9051 rm -f core conftest.err conftest.$ac_objext \
9052 conftest$ac_exeext conftest.$ac_ext
9054 rm -f core conftest.err conftest.$ac_objext \
9055 conftest$ac_exeext conftest.$ac_ext
9056 ac_c_werror_flag=$ac_xsave_c_werror_flag
9057 LIBS=$ac_xsave_LIBS
9060 # Check for system-dependent libraries X programs must link with.
9061 # Do this before checking for the system-independent R6 libraries
9062 # (-lICE), since we may need -lsocket or whatever for X linking.
9064 if test "$ISC" = yes; then
9065 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
9066 else
9067 # Martyn Johnson says this is needed for Ultrix, if the X
9068 # libraries were built with DECnet support. And Karl Berry says
9069 # the Alpha needs dnet_stub (dnet does not exist).
9070 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
9071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9072 /* end confdefs.h. */
9074 /* Override any GCC internal prototype to avoid an error.
9075 Use char because int might match the return type of a GCC
9076 builtin and then its argument prototype would still apply. */
9077 #ifdef __cplusplus
9078 extern "C"
9079 #endif
9080 char XOpenDisplay ();
9082 main ()
9084 return XOpenDisplay ();
9086 return 0;
9088 _ACEOF
9089 if ac_fn_c_try_link "$LINENO"; then :
9091 else
9092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
9093 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
9094 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
9095 $as_echo_n "(cached) " >&6
9096 else
9097 ac_check_lib_save_LIBS=$LIBS
9098 LIBS="-ldnet $LIBS"
9099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9100 /* end confdefs.h. */
9102 /* Override any GCC internal prototype to avoid an error.
9103 Use char because int might match the return type of a GCC
9104 builtin and then its argument prototype would still apply. */
9105 #ifdef __cplusplus
9106 extern "C"
9107 #endif
9108 char dnet_ntoa ();
9110 main ()
9112 return dnet_ntoa ();
9114 return 0;
9116 _ACEOF
9117 if ac_fn_c_try_link "$LINENO"; then :
9118 ac_cv_lib_dnet_dnet_ntoa=yes
9119 else
9120 ac_cv_lib_dnet_dnet_ntoa=no
9122 rm -f core conftest.err conftest.$ac_objext \
9123 conftest$ac_exeext conftest.$ac_ext
9124 LIBS=$ac_check_lib_save_LIBS
9126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9127 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
9128 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
9129 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
9132 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
9133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
9134 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
9135 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
9136 $as_echo_n "(cached) " >&6
9137 else
9138 ac_check_lib_save_LIBS=$LIBS
9139 LIBS="-ldnet_stub $LIBS"
9140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9141 /* end confdefs.h. */
9143 /* Override any GCC internal prototype to avoid an error.
9144 Use char because int might match the return type of a GCC
9145 builtin and then its argument prototype would still apply. */
9146 #ifdef __cplusplus
9147 extern "C"
9148 #endif
9149 char dnet_ntoa ();
9151 main ()
9153 return dnet_ntoa ();
9155 return 0;
9157 _ACEOF
9158 if ac_fn_c_try_link "$LINENO"; then :
9159 ac_cv_lib_dnet_stub_dnet_ntoa=yes
9160 else
9161 ac_cv_lib_dnet_stub_dnet_ntoa=no
9163 rm -f core conftest.err conftest.$ac_objext \
9164 conftest$ac_exeext conftest.$ac_ext
9165 LIBS=$ac_check_lib_save_LIBS
9167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
9168 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
9169 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
9170 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
9175 rm -f core conftest.err conftest.$ac_objext \
9176 conftest$ac_exeext conftest.$ac_ext
9177 LIBS="$ac_xsave_LIBS"
9179 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
9180 # to get the SysV transport functions.
9181 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
9182 # needs -lnsl.
9183 # The nsl library prevents programs from opening the X display
9184 # on Irix 5.2, according to T.E. Dickey.
9185 # The functions gethostbyname, getservbyname, and inet_addr are
9186 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
9187 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
9188 if test "x$ac_cv_func_gethostbyname" = xyes; then :
9192 if test $ac_cv_func_gethostbyname = no; then
9193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
9194 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
9195 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
9196 $as_echo_n "(cached) " >&6
9197 else
9198 ac_check_lib_save_LIBS=$LIBS
9199 LIBS="-lnsl $LIBS"
9200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9201 /* end confdefs.h. */
9203 /* Override any GCC internal prototype to avoid an error.
9204 Use char because int might match the return type of a GCC
9205 builtin and then its argument prototype would still apply. */
9206 #ifdef __cplusplus
9207 extern "C"
9208 #endif
9209 char gethostbyname ();
9211 main ()
9213 return gethostbyname ();
9215 return 0;
9217 _ACEOF
9218 if ac_fn_c_try_link "$LINENO"; then :
9219 ac_cv_lib_nsl_gethostbyname=yes
9220 else
9221 ac_cv_lib_nsl_gethostbyname=no
9223 rm -f core conftest.err conftest.$ac_objext \
9224 conftest$ac_exeext conftest.$ac_ext
9225 LIBS=$ac_check_lib_save_LIBS
9227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
9228 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
9229 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
9230 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
9233 if test $ac_cv_lib_nsl_gethostbyname = no; then
9234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
9235 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
9236 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
9237 $as_echo_n "(cached) " >&6
9238 else
9239 ac_check_lib_save_LIBS=$LIBS
9240 LIBS="-lbsd $LIBS"
9241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9242 /* end confdefs.h. */
9244 /* Override any GCC internal prototype to avoid an error.
9245 Use char because int might match the return type of a GCC
9246 builtin and then its argument prototype would still apply. */
9247 #ifdef __cplusplus
9248 extern "C"
9249 #endif
9250 char gethostbyname ();
9252 main ()
9254 return gethostbyname ();
9256 return 0;
9258 _ACEOF
9259 if ac_fn_c_try_link "$LINENO"; then :
9260 ac_cv_lib_bsd_gethostbyname=yes
9261 else
9262 ac_cv_lib_bsd_gethostbyname=no
9264 rm -f core conftest.err conftest.$ac_objext \
9265 conftest$ac_exeext conftest.$ac_ext
9266 LIBS=$ac_check_lib_save_LIBS
9268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
9269 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
9270 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
9271 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
9277 # lieder@skyler.mavd.honeywell.com says without -lsocket,
9278 # socket/setsockopt and other routines are undefined under SCO ODT
9279 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
9280 # on later versions), says Simon Leinen: it contains gethostby*
9281 # variants that don't use the name server (or something). -lsocket
9282 # must be given before -lnsl if both are needed. We assume that
9283 # if connect needs -lnsl, so does gethostbyname.
9284 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
9285 if test "x$ac_cv_func_connect" = xyes; then :
9289 if test $ac_cv_func_connect = no; then
9290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
9291 $as_echo_n "checking for connect in -lsocket... " >&6; }
9292 if ${ac_cv_lib_socket_connect+:} false; then :
9293 $as_echo_n "(cached) " >&6
9294 else
9295 ac_check_lib_save_LIBS=$LIBS
9296 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
9297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9298 /* end confdefs.h. */
9300 /* Override any GCC internal prototype to avoid an error.
9301 Use char because int might match the return type of a GCC
9302 builtin and then its argument prototype would still apply. */
9303 #ifdef __cplusplus
9304 extern "C"
9305 #endif
9306 char connect ();
9308 main ()
9310 return connect ();
9312 return 0;
9314 _ACEOF
9315 if ac_fn_c_try_link "$LINENO"; then :
9316 ac_cv_lib_socket_connect=yes
9317 else
9318 ac_cv_lib_socket_connect=no
9320 rm -f core conftest.err conftest.$ac_objext \
9321 conftest$ac_exeext conftest.$ac_ext
9322 LIBS=$ac_check_lib_save_LIBS
9324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
9325 $as_echo "$ac_cv_lib_socket_connect" >&6; }
9326 if test "x$ac_cv_lib_socket_connect" = xyes; then :
9327 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
9332 # Guillermo Gomez says -lposix is necessary on A/UX.
9333 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
9334 if test "x$ac_cv_func_remove" = xyes; then :
9338 if test $ac_cv_func_remove = no; then
9339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
9340 $as_echo_n "checking for remove in -lposix... " >&6; }
9341 if ${ac_cv_lib_posix_remove+:} false; then :
9342 $as_echo_n "(cached) " >&6
9343 else
9344 ac_check_lib_save_LIBS=$LIBS
9345 LIBS="-lposix $LIBS"
9346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9347 /* end confdefs.h. */
9349 /* Override any GCC internal prototype to avoid an error.
9350 Use char because int might match the return type of a GCC
9351 builtin and then its argument prototype would still apply. */
9352 #ifdef __cplusplus
9353 extern "C"
9354 #endif
9355 char remove ();
9357 main ()
9359 return remove ();
9361 return 0;
9363 _ACEOF
9364 if ac_fn_c_try_link "$LINENO"; then :
9365 ac_cv_lib_posix_remove=yes
9366 else
9367 ac_cv_lib_posix_remove=no
9369 rm -f core conftest.err conftest.$ac_objext \
9370 conftest$ac_exeext conftest.$ac_ext
9371 LIBS=$ac_check_lib_save_LIBS
9373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
9374 $as_echo "$ac_cv_lib_posix_remove" >&6; }
9375 if test "x$ac_cv_lib_posix_remove" = xyes; then :
9376 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
9381 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
9382 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
9383 if test "x$ac_cv_func_shmat" = xyes; then :
9387 if test $ac_cv_func_shmat = no; then
9388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
9389 $as_echo_n "checking for shmat in -lipc... " >&6; }
9390 if ${ac_cv_lib_ipc_shmat+:} false; then :
9391 $as_echo_n "(cached) " >&6
9392 else
9393 ac_check_lib_save_LIBS=$LIBS
9394 LIBS="-lipc $LIBS"
9395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9396 /* end confdefs.h. */
9398 /* Override any GCC internal prototype to avoid an error.
9399 Use char because int might match the return type of a GCC
9400 builtin and then its argument prototype would still apply. */
9401 #ifdef __cplusplus
9402 extern "C"
9403 #endif
9404 char shmat ();
9406 main ()
9408 return shmat ();
9410 return 0;
9412 _ACEOF
9413 if ac_fn_c_try_link "$LINENO"; then :
9414 ac_cv_lib_ipc_shmat=yes
9415 else
9416 ac_cv_lib_ipc_shmat=no
9418 rm -f core conftest.err conftest.$ac_objext \
9419 conftest$ac_exeext conftest.$ac_ext
9420 LIBS=$ac_check_lib_save_LIBS
9422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
9423 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
9424 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
9425 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9431 # Check for libraries that X11R6 Xt/Xaw programs need.
9432 ac_save_LDFLAGS=$LDFLAGS
9433 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
9434 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
9435 # check for ICE first), but we must link in the order -lSM -lICE or
9436 # we get undefined symbols. So assume we have SM if we have ICE.
9437 # These have to be linked with before -lX11, unlike the other
9438 # libraries we check for below, so use a different variable.
9439 # John Interrante, Karl Berry
9440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
9441 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
9442 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
9443 $as_echo_n "(cached) " >&6
9444 else
9445 ac_check_lib_save_LIBS=$LIBS
9446 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
9447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9448 /* end confdefs.h. */
9450 /* Override any GCC internal prototype to avoid an error.
9451 Use char because int might match the return type of a GCC
9452 builtin and then its argument prototype would still apply. */
9453 #ifdef __cplusplus
9454 extern "C"
9455 #endif
9456 char IceConnectionNumber ();
9458 main ()
9460 return IceConnectionNumber ();
9462 return 0;
9464 _ACEOF
9465 if ac_fn_c_try_link "$LINENO"; then :
9466 ac_cv_lib_ICE_IceConnectionNumber=yes
9467 else
9468 ac_cv_lib_ICE_IceConnectionNumber=no
9470 rm -f core conftest.err conftest.$ac_objext \
9471 conftest$ac_exeext conftest.$ac_ext
9472 LIBS=$ac_check_lib_save_LIBS
9474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
9475 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
9476 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
9477 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9480 LDFLAGS=$ac_save_LDFLAGS
9485 if test "$have_x" = "yes"
9486 then
9487 ac_save_CPPFLAGS="$CPPFLAGS"
9488 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lX11" >&5
9491 $as_echo_n "checking for -lX11... " >&6; }
9492 if ${ac_cv_lib_soname_X11+:} false; then :
9493 $as_echo_n "(cached) " >&6
9494 else
9495 ac_check_soname_save_LIBS=$LIBS
9496 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
9497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9498 /* end confdefs.h. */
9500 /* Override any GCC internal prototype to avoid an error.
9501 Use char because int might match the return type of a GCC
9502 builtin and then its argument prototype would still apply. */
9503 #ifdef __cplusplus
9504 extern "C"
9505 #endif
9506 char XCreateWindow ();
9508 main ()
9510 return XCreateWindow ();
9512 return 0;
9514 _ACEOF
9515 if ac_fn_c_try_link "$LINENO"; then :
9516 case "$LIBEXT" in
9517 dll) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest.exe | grep "X11" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9518 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'` ;;
9519 *) ac_cv_lib_soname_X11=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libX11\\.$LIBEXT" | sed -e "s/^.*\\[\\(libX11\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9520 if ${ac_cv_lib_soname_X11:+false} :; then :
9521 ac_cv_lib_soname_X11=`$LDD conftest$ac_exeext | grep "libX11\\.$LIBEXT" | sed -e "s/^.*\(libX11\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9522 fi ;;
9523 esac
9525 rm -f core conftest.err conftest.$ac_objext \
9526 conftest$ac_exeext conftest.$ac_ext
9527 LIBS=$ac_check_soname_save_LIBS
9529 if ${ac_cv_lib_soname_X11:+false} :; then :
9530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9531 $as_echo "not found" >&6; }
9533 else
9534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_X11" >&5
9535 $as_echo "$ac_cv_lib_soname_X11" >&6; }
9537 cat >>confdefs.h <<_ACEOF
9538 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
9539 _ACEOF
9543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXext" >&5
9544 $as_echo_n "checking for -lXext... " >&6; }
9545 if ${ac_cv_lib_soname_Xext+:} false; then :
9546 $as_echo_n "(cached) " >&6
9547 else
9548 ac_check_soname_save_LIBS=$LIBS
9549 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9551 /* end confdefs.h. */
9553 /* Override any GCC internal prototype to avoid an error.
9554 Use char because int might match the return type of a GCC
9555 builtin and then its argument prototype would still apply. */
9556 #ifdef __cplusplus
9557 extern "C"
9558 #endif
9559 char XextCreateExtension ();
9561 main ()
9563 return XextCreateExtension ();
9565 return 0;
9567 _ACEOF
9568 if ac_fn_c_try_link "$LINENO"; then :
9569 case "$LIBEXT" in
9570 dll) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest.exe | grep "Xext" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9571 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'` ;;
9572 *) ac_cv_lib_soname_Xext=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXext\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXext\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9573 if ${ac_cv_lib_soname_Xext:+false} :; then :
9574 ac_cv_lib_soname_Xext=`$LDD conftest$ac_exeext | grep "libXext\\.$LIBEXT" | sed -e "s/^.*\(libXext\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9575 fi ;;
9576 esac
9578 rm -f core conftest.err conftest.$ac_objext \
9579 conftest$ac_exeext conftest.$ac_ext
9580 LIBS=$ac_check_soname_save_LIBS
9582 if ${ac_cv_lib_soname_Xext:+false} :; then :
9583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9584 $as_echo "not found" >&6; }
9586 else
9587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xext" >&5
9588 $as_echo "$ac_cv_lib_soname_Xext" >&6; }
9590 cat >>confdefs.h <<_ACEOF
9591 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
9592 _ACEOF
9594 X_LIBS="$X_LIBS -lXext"
9596 X_LIBS="$X_LIBS -lX11"
9598 for ac_header in X11/Xlib.h \
9599 X11/XKBlib.h \
9600 X11/Xutil.h \
9601 X11/Xcursor/Xcursor.h \
9602 X11/extensions/shape.h \
9603 X11/extensions/XInput.h \
9604 X11/extensions/XInput2.h \
9605 X11/extensions/XShm.h \
9606 X11/extensions/Xcomposite.h \
9607 X11/extensions/Xinerama.h \
9608 X11/extensions/Xrandr.h \
9609 X11/extensions/Xrender.h \
9610 X11/extensions/xf86vmode.h \
9611 X11/extensions/xf86vmproto.h
9612 do :
9613 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9614 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_X11_XLIB_H
9615 # include <X11/Xlib.h>
9616 #endif
9617 #ifdef HAVE_X11_XUTIL_H
9618 # include <X11/Xutil.h>
9619 #endif
9621 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9622 cat >>confdefs.h <<_ACEOF
9623 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9624 _ACEOF
9628 done
9631 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
9632 then
9633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbQueryExtension in -lX11" >&5
9634 $as_echo_n "checking for XkbQueryExtension in -lX11... " >&6; }
9635 if ${ac_cv_lib_X11_XkbQueryExtension+:} false; then :
9636 $as_echo_n "(cached) " >&6
9637 else
9638 ac_check_lib_save_LIBS=$LIBS
9639 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
9640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9641 /* end confdefs.h. */
9643 /* Override any GCC internal prototype to avoid an error.
9644 Use char because int might match the return type of a GCC
9645 builtin and then its argument prototype would still apply. */
9646 #ifdef __cplusplus
9647 extern "C"
9648 #endif
9649 char XkbQueryExtension ();
9651 main ()
9653 return XkbQueryExtension ();
9655 return 0;
9657 _ACEOF
9658 if ac_fn_c_try_link "$LINENO"; then :
9659 ac_cv_lib_X11_XkbQueryExtension=yes
9660 else
9661 ac_cv_lib_X11_XkbQueryExtension=no
9663 rm -f core conftest.err conftest.$ac_objext \
9664 conftest$ac_exeext conftest.$ac_ext
9665 LIBS=$ac_check_lib_save_LIBS
9667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
9668 $as_echo "$ac_cv_lib_X11_XkbQueryExtension" >&6; }
9669 if test "x$ac_cv_lib_X11_XkbQueryExtension" = xyes; then :
9671 $as_echo "#define HAVE_XKB 1" >>confdefs.h
9677 if test "$ac_cv_header_X11_Xcursor_Xcursor_h" = "yes"
9678 then
9679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcursor" >&5
9680 $as_echo_n "checking for -lXcursor... " >&6; }
9681 if ${ac_cv_lib_soname_Xcursor+:} false; then :
9682 $as_echo_n "(cached) " >&6
9683 else
9684 ac_check_soname_save_LIBS=$LIBS
9685 LIBS="-lXcursor $X_LIBS $X_EXTRA_LIBS $LIBS"
9686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9687 /* end confdefs.h. */
9689 /* Override any GCC internal prototype to avoid an error.
9690 Use char because int might match the return type of a GCC
9691 builtin and then its argument prototype would still apply. */
9692 #ifdef __cplusplus
9693 extern "C"
9694 #endif
9695 char XcursorImageLoadCursor ();
9697 main ()
9699 return XcursorImageLoadCursor ();
9701 return 0;
9703 _ACEOF
9704 if ac_fn_c_try_link "$LINENO"; then :
9705 case "$LIBEXT" in
9706 dll) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest.exe | grep "Xcursor" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9707 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'` ;;
9708 *) ac_cv_lib_soname_Xcursor=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXcursor\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXcursor\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9709 if ${ac_cv_lib_soname_Xcursor:+false} :; then :
9710 ac_cv_lib_soname_Xcursor=`$LDD conftest$ac_exeext | grep "libXcursor\\.$LIBEXT" | sed -e "s/^.*\(libXcursor\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9711 fi ;;
9712 esac
9714 rm -f core conftest.err conftest.$ac_objext \
9715 conftest$ac_exeext conftest.$ac_ext
9716 LIBS=$ac_check_soname_save_LIBS
9718 if ${ac_cv_lib_soname_Xcursor:+false} :; then :
9719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9720 $as_echo "not found" >&6; }
9722 else
9723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcursor" >&5
9724 $as_echo "$ac_cv_lib_soname_Xcursor" >&6; }
9726 cat >>confdefs.h <<_ACEOF
9727 #define SONAME_LIBXCURSOR "$ac_cv_lib_soname_Xcursor"
9728 _ACEOF
9733 if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
9734 case "x$with_xcursor" in
9735 x) as_fn_append wine_notices "|libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported." ;;
9736 xno) ;;
9737 *) as_fn_error $? "libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported.
9738 This is an error since --with-xcursor was requested." "$LINENO" 5 ;;
9739 esac
9742 if test "$ac_cv_header_X11_extensions_XInput_h" = "yes"
9743 then
9744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXi" >&5
9745 $as_echo_n "checking for -lXi... " >&6; }
9746 if ${ac_cv_lib_soname_Xi+:} false; then :
9747 $as_echo_n "(cached) " >&6
9748 else
9749 ac_check_soname_save_LIBS=$LIBS
9750 LIBS="-lXi $X_LIBS $X_EXTRA_LIBS $LIBS"
9751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9752 /* end confdefs.h. */
9754 /* Override any GCC internal prototype to avoid an error.
9755 Use char because int might match the return type of a GCC
9756 builtin and then its argument prototype would still apply. */
9757 #ifdef __cplusplus
9758 extern "C"
9759 #endif
9760 char XOpenDevice ();
9762 main ()
9764 return XOpenDevice ();
9766 return 0;
9768 _ACEOF
9769 if ac_fn_c_try_link "$LINENO"; then :
9770 case "$LIBEXT" in
9771 dll) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest.exe | grep "Xi" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9772 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'` ;;
9773 *) ac_cv_lib_soname_Xi=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXi\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXi\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9774 if ${ac_cv_lib_soname_Xi:+false} :; then :
9775 ac_cv_lib_soname_Xi=`$LDD conftest$ac_exeext | grep "libXi\\.$LIBEXT" | sed -e "s/^.*\(libXi\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9776 fi ;;
9777 esac
9779 rm -f core conftest.err conftest.$ac_objext \
9780 conftest$ac_exeext conftest.$ac_ext
9781 LIBS=$ac_check_soname_save_LIBS
9783 if ${ac_cv_lib_soname_Xi:+false} :; then :
9784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9785 $as_echo "not found" >&6; }
9787 else
9788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xi" >&5
9789 $as_echo "$ac_cv_lib_soname_Xi" >&6; }
9791 cat >>confdefs.h <<_ACEOF
9792 #define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
9793 _ACEOF
9798 if test "x$ac_cv_lib_soname_Xi" = "x"; then :
9799 case "x$with_xinput" in
9800 x) as_fn_append wine_notices "|libxi ${notice_platform}development files not found, the Xinput extension won't be supported." ;;
9801 xno) ;;
9802 *) as_fn_error $? "libxi ${notice_platform}development files not found, the Xinput extension won't be supported.
9803 This is an error since --with-xinput was requested." "$LINENO" 5 ;;
9804 esac
9807 if test "x$ac_cv_lib_soname_Xi" != x
9808 then
9809 if test "$ac_cv_header_X11_extensions_XInput2_h" != "yes"; then :
9810 case "x$with_xinput2" in
9811 x) as_fn_append wine_notices "|XInput2 headers not found, the XInput 2 extension won't be supported." ;;
9812 xno) ;;
9813 *) as_fn_error $? "XInput2 headers not found, the XInput 2 extension won't be supported.
9814 This is an error since --with-xinput2 was requested." "$LINENO" 5 ;;
9815 esac
9819 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
9820 then
9821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
9822 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
9823 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then :
9824 $as_echo_n "(cached) " >&6
9825 else
9826 ac_check_lib_save_LIBS=$LIBS
9827 LIBS="-lXext $X_LIBS $X_EXTRA_LIBS $LIBS"
9828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9829 /* end confdefs.h. */
9831 /* Override any GCC internal prototype to avoid an error.
9832 Use char because int might match the return type of a GCC
9833 builtin and then its argument prototype would still apply. */
9834 #ifdef __cplusplus
9835 extern "C"
9836 #endif
9837 char XShmQueryExtension ();
9839 main ()
9841 return XShmQueryExtension ();
9843 return 0;
9845 _ACEOF
9846 if ac_fn_c_try_link "$LINENO"; then :
9847 ac_cv_lib_Xext_XShmQueryExtension=yes
9848 else
9849 ac_cv_lib_Xext_XShmQueryExtension=no
9851 rm -f core conftest.err conftest.$ac_objext \
9852 conftest$ac_exeext conftest.$ac_ext
9853 LIBS=$ac_check_lib_save_LIBS
9855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
9856 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
9857 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then :
9859 $as_echo "#define HAVE_LIBXXSHM 1" >>confdefs.h
9864 if test "$ac_cv_lib_Xext_XShmQueryExtension" != "yes"; then :
9865 case "x$with_xshm" in
9866 x) as_fn_append wine_notices "|XShm ${notice_platform}development files not found, X Shared Memory won't be supported." ;;
9867 xno) ;;
9868 *) as_fn_error $? "XShm ${notice_platform}development files not found, X Shared Memory won't be supported.
9869 This is an error since --with-xshm was requested." "$LINENO" 5 ;;
9870 esac
9873 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
9874 then
9875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
9876 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
9877 if ${ac_cv_lib_Xext_XShapeQueryExtension+:} false; then :
9878 $as_echo_n "(cached) " >&6
9879 else
9880 ac_check_lib_save_LIBS=$LIBS
9881 LIBS="-lXext $X_LIBS $X_EXTRA_LIBS $LIBS"
9882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9883 /* end confdefs.h. */
9885 /* Override any GCC internal prototype to avoid an error.
9886 Use char because int might match the return type of a GCC
9887 builtin and then its argument prototype would still apply. */
9888 #ifdef __cplusplus
9889 extern "C"
9890 #endif
9891 char XShapeQueryExtension ();
9893 main ()
9895 return XShapeQueryExtension ();
9897 return 0;
9899 _ACEOF
9900 if ac_fn_c_try_link "$LINENO"; then :
9901 ac_cv_lib_Xext_XShapeQueryExtension=yes
9902 else
9903 ac_cv_lib_Xext_XShapeQueryExtension=no
9905 rm -f core conftest.err conftest.$ac_objext \
9906 conftest$ac_exeext conftest.$ac_ext
9907 LIBS=$ac_check_lib_save_LIBS
9909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
9910 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
9911 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = xyes; then :
9913 $as_echo "#define HAVE_LIBXSHAPE 1" >>confdefs.h
9918 if test "$ac_cv_lib_Xext_XShapeQueryExtension" != "yes"; then :
9919 case "x$with_xshape" in
9920 x) as_fn_append wine_notices "|XShape ${notice_platform}development files not found, XShape won't be supported." ;;
9921 xno) ;;
9922 *) as_fn_error $? "XShape ${notice_platform}development files not found, XShape won't be supported.
9923 This is an error since --with-xshape was requested." "$LINENO" 5 ;;
9924 esac
9927 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes" -o "$ac_cv_header_X11_extensions_xf86vmproto_h" = "yes"
9928 then
9929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXxf86vm" >&5
9930 $as_echo_n "checking for -lXxf86vm... " >&6; }
9931 if ${ac_cv_lib_soname_Xxf86vm+:} false; then :
9932 $as_echo_n "(cached) " >&6
9933 else
9934 ac_check_soname_save_LIBS=$LIBS
9935 LIBS="-lXxf86vm $X_LIBS $X_EXTRA_LIBS $LIBS"
9936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9937 /* end confdefs.h. */
9939 /* Override any GCC internal prototype to avoid an error.
9940 Use char because int might match the return type of a GCC
9941 builtin and then its argument prototype would still apply. */
9942 #ifdef __cplusplus
9943 extern "C"
9944 #endif
9945 char XF86VidModeQueryExtension ();
9947 main ()
9949 return XF86VidModeQueryExtension ();
9951 return 0;
9953 _ACEOF
9954 if ac_fn_c_try_link "$LINENO"; then :
9955 case "$LIBEXT" in
9956 dll) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest.exe | grep "Xxf86vm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9957 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'` ;;
9958 *) ac_cv_lib_soname_Xxf86vm=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXxf86vm\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXxf86vm\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9959 if ${ac_cv_lib_soname_Xxf86vm:+false} :; then :
9960 ac_cv_lib_soname_Xxf86vm=`$LDD conftest$ac_exeext | grep "libXxf86vm\\.$LIBEXT" | sed -e "s/^.*\(libXxf86vm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9961 fi ;;
9962 esac
9964 rm -f core conftest.err conftest.$ac_objext \
9965 conftest$ac_exeext conftest.$ac_ext
9966 LIBS=$ac_check_soname_save_LIBS
9968 if ${ac_cv_lib_soname_Xxf86vm:+false} :; then :
9969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9970 $as_echo "not found" >&6; }
9972 else
9973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xxf86vm" >&5
9974 $as_echo "$ac_cv_lib_soname_Xxf86vm" >&6; }
9976 cat >>confdefs.h <<_ACEOF
9977 #define SONAME_LIBXXF86VM "$ac_cv_lib_soname_Xxf86vm"
9978 _ACEOF
9983 if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
9984 case "x$with_xxf86vm" in
9985 x) as_fn_append wine_notices "|libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported." ;;
9986 xno) ;;
9987 *) as_fn_error $? "libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported.
9988 This is an error since --with-xxf86vm was requested." "$LINENO" 5 ;;
9989 esac
9992 if test "$ac_cv_header_X11_extensions_Xrender_h" = "yes" -a "x$ac_cv_lib_soname_X11" != "x"
9993 then
9994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrender" >&5
9995 $as_echo_n "checking for -lXrender... " >&6; }
9996 if ${ac_cv_lib_soname_Xrender+:} false; then :
9997 $as_echo_n "(cached) " >&6
9998 else
9999 ac_check_soname_save_LIBS=$LIBS
10000 LIBS="-lXrender $X_LIBS $X_EXTRA_LIBS $LIBS"
10001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10002 /* end confdefs.h. */
10004 /* Override any GCC internal prototype to avoid an error.
10005 Use char because int might match the return type of a GCC
10006 builtin and then its argument prototype would still apply. */
10007 #ifdef __cplusplus
10008 extern "C"
10009 #endif
10010 char XRenderQueryExtension ();
10012 main ()
10014 return XRenderQueryExtension ();
10016 return 0;
10018 _ACEOF
10019 if ac_fn_c_try_link "$LINENO"; then :
10020 case "$LIBEXT" in
10021 dll) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest.exe | grep "Xrender" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10022 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'` ;;
10023 *) ac_cv_lib_soname_Xrender=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXrender\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXrender\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10024 if ${ac_cv_lib_soname_Xrender:+false} :; then :
10025 ac_cv_lib_soname_Xrender=`$LDD conftest$ac_exeext | grep "libXrender\\.$LIBEXT" | sed -e "s/^.*\(libXrender\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10026 fi ;;
10027 esac
10029 rm -f core conftest.err conftest.$ac_objext \
10030 conftest$ac_exeext conftest.$ac_ext
10031 LIBS=$ac_check_soname_save_LIBS
10033 if ${ac_cv_lib_soname_Xrender:+false} :; then :
10034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10035 $as_echo "not found" >&6; }
10037 else
10038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrender" >&5
10039 $as_echo "$ac_cv_lib_soname_Xrender" >&6; }
10041 cat >>confdefs.h <<_ACEOF
10042 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
10043 _ACEOF
10045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderSetPictureTransform in -lXrender" >&5
10046 $as_echo_n "checking for XRenderSetPictureTransform in -lXrender... " >&6; }
10047 if ${ac_cv_lib_Xrender_XRenderSetPictureTransform+:} false; then :
10048 $as_echo_n "(cached) " >&6
10049 else
10050 ac_check_lib_save_LIBS=$LIBS
10051 LIBS="-lXrender $X_LIBS $X_EXTRA_LIBS $LIBS"
10052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10053 /* end confdefs.h. */
10055 /* Override any GCC internal prototype to avoid an error.
10056 Use char because int might match the return type of a GCC
10057 builtin and then its argument prototype would still apply. */
10058 #ifdef __cplusplus
10059 extern "C"
10060 #endif
10061 char XRenderSetPictureTransform ();
10063 main ()
10065 return XRenderSetPictureTransform ();
10067 return 0;
10069 _ACEOF
10070 if ac_fn_c_try_link "$LINENO"; then :
10071 ac_cv_lib_Xrender_XRenderSetPictureTransform=yes
10072 else
10073 ac_cv_lib_Xrender_XRenderSetPictureTransform=no
10075 rm -f core conftest.err conftest.$ac_objext \
10076 conftest$ac_exeext conftest.$ac_ext
10077 LIBS=$ac_check_lib_save_LIBS
10079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5
10080 $as_echo "$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6; }
10081 if test "x$ac_cv_lib_Xrender_XRenderSetPictureTransform" = xyes; then :
10083 $as_echo "#define HAVE_XRENDERSETPICTURETRANSFORM 1" >>confdefs.h
10087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderCreateLinearGradient in -lXrender" >&5
10088 $as_echo_n "checking for XRenderCreateLinearGradient in -lXrender... " >&6; }
10089 if ${ac_cv_lib_Xrender_XRenderCreateLinearGradient+:} false; then :
10090 $as_echo_n "(cached) " >&6
10091 else
10092 ac_check_lib_save_LIBS=$LIBS
10093 LIBS="-lXrender $X_LIBS $X_EXTRA_LIBS $LIBS"
10094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10095 /* end confdefs.h. */
10097 /* Override any GCC internal prototype to avoid an error.
10098 Use char because int might match the return type of a GCC
10099 builtin and then its argument prototype would still apply. */
10100 #ifdef __cplusplus
10101 extern "C"
10102 #endif
10103 char XRenderCreateLinearGradient ();
10105 main ()
10107 return XRenderCreateLinearGradient ();
10109 return 0;
10111 _ACEOF
10112 if ac_fn_c_try_link "$LINENO"; then :
10113 ac_cv_lib_Xrender_XRenderCreateLinearGradient=yes
10114 else
10115 ac_cv_lib_Xrender_XRenderCreateLinearGradient=no
10117 rm -f core conftest.err conftest.$ac_objext \
10118 conftest$ac_exeext conftest.$ac_ext
10119 LIBS=$ac_check_lib_save_LIBS
10121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderCreateLinearGradient" >&5
10122 $as_echo "$ac_cv_lib_Xrender_XRenderCreateLinearGradient" >&6; }
10123 if test "x$ac_cv_lib_Xrender_XRenderCreateLinearGradient" = xyes; then :
10125 $as_echo "#define HAVE_XRENDERCREATELINEARGRADIENT 1" >>confdefs.h
10132 if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
10133 case "x$with_xrender" in
10134 x) as_fn_append wine_warnings "|libxrender ${notice_platform}development files not found, XRender won't be supported." ;;
10135 xno) ;;
10136 *) as_fn_error $? "libxrender ${notice_platform}development files not found, XRender won't be supported.
10137 This is an error since --with-xrender was requested." "$LINENO" 5 ;;
10138 esac
10141 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes" -a "x$ac_cv_lib_soname_Xrender" != "x"
10142 then
10143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10144 /* end confdefs.h. */
10145 #include <X11/Xlib.h>
10146 #include <X11/extensions/Xrandr.h>
10148 main ()
10150 static typeof(XRRSetScreenConfigAndRate) * func; if (func) return 0;
10152 return 0;
10154 _ACEOF
10155 if ac_fn_c_try_compile "$LINENO"; then :
10156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrandr" >&5
10157 $as_echo_n "checking for -lXrandr... " >&6; }
10158 if ${ac_cv_lib_soname_Xrandr+:} false; then :
10159 $as_echo_n "(cached) " >&6
10160 else
10161 ac_check_soname_save_LIBS=$LIBS
10162 LIBS="-lXrandr $X_LIBS $X_EXTRA_LIBS $LIBS"
10163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10164 /* end confdefs.h. */
10166 /* Override any GCC internal prototype to avoid an error.
10167 Use char because int might match the return type of a GCC
10168 builtin and then its argument prototype would still apply. */
10169 #ifdef __cplusplus
10170 extern "C"
10171 #endif
10172 char XRRQueryExtension ();
10174 main ()
10176 return XRRQueryExtension ();
10178 return 0;
10180 _ACEOF
10181 if ac_fn_c_try_link "$LINENO"; then :
10182 case "$LIBEXT" in
10183 dll) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest.exe | grep "Xrandr" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10184 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'` ;;
10185 *) ac_cv_lib_soname_Xrandr=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXrandr\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXrandr\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10186 if ${ac_cv_lib_soname_Xrandr:+false} :; then :
10187 ac_cv_lib_soname_Xrandr=`$LDD conftest$ac_exeext | grep "libXrandr\\.$LIBEXT" | sed -e "s/^.*\(libXrandr\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10188 fi ;;
10189 esac
10191 rm -f core conftest.err conftest.$ac_objext \
10192 conftest$ac_exeext conftest.$ac_ext
10193 LIBS=$ac_check_soname_save_LIBS
10195 if ${ac_cv_lib_soname_Xrandr:+false} :; then :
10196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10197 $as_echo "not found" >&6; }
10199 else
10200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrandr" >&5
10201 $as_echo "$ac_cv_lib_soname_Xrandr" >&6; }
10203 cat >>confdefs.h <<_ACEOF
10204 #define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
10205 _ACEOF
10207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10208 /* end confdefs.h. */
10209 #include <X11/Xlib.h>
10210 #include <X11/extensions/Xrandr.h>
10212 main ()
10214 static typeof(XRRGetScreenResources) *f; if (f) return 0;
10216 return 0;
10218 _ACEOF
10219 if ac_fn_c_try_compile "$LINENO"; then :
10221 $as_echo "#define HAVE_XRRGETSCREENRESOURCES 1" >>confdefs.h
10224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10229 if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
10230 case "x$with_xrandr" in
10231 x) as_fn_append wine_notices "|libxrandr ${notice_platform}development files not found, XRandr won't be supported." ;;
10232 xno) ;;
10233 *) as_fn_error $? "libxrandr ${notice_platform}development files not found, XRandr won't be supported.
10234 This is an error since --with-xrandr was requested." "$LINENO" 5 ;;
10235 esac
10238 if test "$ac_cv_header_X11_extensions_Xinerama_h" = "yes"
10239 then
10240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10241 /* end confdefs.h. */
10242 #include <X11/Xlib.h>
10243 #include <X11/extensions/Xinerama.h>
10245 main ()
10247 static typeof(XineramaQueryScreens) * func; if (func) return 0;
10249 return 0;
10251 _ACEOF
10252 if ac_fn_c_try_compile "$LINENO"; then :
10253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXinerama" >&5
10254 $as_echo_n "checking for -lXinerama... " >&6; }
10255 if ${ac_cv_lib_soname_Xinerama+:} false; then :
10256 $as_echo_n "(cached) " >&6
10257 else
10258 ac_check_soname_save_LIBS=$LIBS
10259 LIBS="-lXinerama $X_LIBS $X_EXTRA_LIBS $LIBS"
10260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10261 /* end confdefs.h. */
10263 /* Override any GCC internal prototype to avoid an error.
10264 Use char because int might match the return type of a GCC
10265 builtin and then its argument prototype would still apply. */
10266 #ifdef __cplusplus
10267 extern "C"
10268 #endif
10269 char XineramaQueryScreens ();
10271 main ()
10273 return XineramaQueryScreens ();
10275 return 0;
10277 _ACEOF
10278 if ac_fn_c_try_link "$LINENO"; then :
10279 case "$LIBEXT" in
10280 dll) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest.exe | grep "Xinerama" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10281 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'` ;;
10282 *) ac_cv_lib_soname_Xinerama=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXinerama\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXinerama\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10283 if ${ac_cv_lib_soname_Xinerama:+false} :; then :
10284 ac_cv_lib_soname_Xinerama=`$LDD conftest$ac_exeext | grep "libXinerama\\.$LIBEXT" | sed -e "s/^.*\(libXinerama\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10285 fi ;;
10286 esac
10288 rm -f core conftest.err conftest.$ac_objext \
10289 conftest$ac_exeext conftest.$ac_ext
10290 LIBS=$ac_check_soname_save_LIBS
10292 if ${ac_cv_lib_soname_Xinerama:+false} :; then :
10293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10294 $as_echo "not found" >&6; }
10296 else
10297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xinerama" >&5
10298 $as_echo "$ac_cv_lib_soname_Xinerama" >&6; }
10300 cat >>confdefs.h <<_ACEOF
10301 #define SONAME_LIBXINERAMA "$ac_cv_lib_soname_Xinerama"
10302 _ACEOF
10307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10309 if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
10310 case "x$with_xinerama" in
10311 x) as_fn_append wine_notices "|libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported." ;;
10312 xno) ;;
10313 *) as_fn_error $? "libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported.
10314 This is an error since --with-xinerama was requested." "$LINENO" 5 ;;
10315 esac
10318 if test "$ac_cv_header_X11_extensions_Xcomposite_h" = "yes"
10319 then
10320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcomposite" >&5
10321 $as_echo_n "checking for -lXcomposite... " >&6; }
10322 if ${ac_cv_lib_soname_Xcomposite+:} false; then :
10323 $as_echo_n "(cached) " >&6
10324 else
10325 ac_check_soname_save_LIBS=$LIBS
10326 LIBS="-lXcomposite $X_LIBS $X_EXTRA_LIBS $LIBS"
10327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10328 /* end confdefs.h. */
10330 /* Override any GCC internal prototype to avoid an error.
10331 Use char because int might match the return type of a GCC
10332 builtin and then its argument prototype would still apply. */
10333 #ifdef __cplusplus
10334 extern "C"
10335 #endif
10336 char XCompositeRedirectWindow ();
10338 main ()
10340 return XCompositeRedirectWindow ();
10342 return 0;
10344 _ACEOF
10345 if ac_fn_c_try_link "$LINENO"; then :
10346 case "$LIBEXT" in
10347 dll) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest.exe | grep "Xcomposite" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10348 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'` ;;
10349 *) ac_cv_lib_soname_Xcomposite=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXcomposite\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXcomposite\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10350 if ${ac_cv_lib_soname_Xcomposite:+false} :; then :
10351 ac_cv_lib_soname_Xcomposite=`$LDD conftest$ac_exeext | grep "libXcomposite\\.$LIBEXT" | sed -e "s/^.*\(libXcomposite\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10352 fi ;;
10353 esac
10355 rm -f core conftest.err conftest.$ac_objext \
10356 conftest$ac_exeext conftest.$ac_ext
10357 LIBS=$ac_check_soname_save_LIBS
10359 if ${ac_cv_lib_soname_Xcomposite:+false} :; then :
10360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10361 $as_echo "not found" >&6; }
10363 else
10364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcomposite" >&5
10365 $as_echo "$ac_cv_lib_soname_Xcomposite" >&6; }
10367 cat >>confdefs.h <<_ACEOF
10368 #define SONAME_LIBXCOMPOSITE "$ac_cv_lib_soname_Xcomposite"
10369 _ACEOF
10374 if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
10375 case "x$with_xcomposite" in
10376 x) as_fn_append wine_notices "|libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported." ;;
10377 xno) ;;
10378 *) as_fn_error $? "libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported.
10379 This is an error since --with-xcomposite was requested." "$LINENO" 5 ;;
10380 esac
10383 ac_fn_c_check_member "$LINENO" "XICCallback" "callback" "ac_cv_member_XICCallback_callback" "#ifdef HAVE_X11_XLIB_H
10384 #include <X11/Xlib.h>
10385 #endif
10387 if test "x$ac_cv_member_XICCallback_callback" = xyes; then :
10389 cat >>confdefs.h <<_ACEOF
10390 #define HAVE_XICCALLBACK_CALLBACK 1
10391 _ACEOF
10395 ac_fn_c_check_member "$LINENO" "XEvent" "xcookie" "ac_cv_member_XEvent_xcookie" "#ifdef HAVE_X11_XLIB_H
10396 #include <X11/Xlib.h>
10397 #endif
10399 if test "x$ac_cv_member_XEvent_xcookie" = xyes; then :
10401 cat >>confdefs.h <<_ACEOF
10402 #define HAVE_XEVENT_XCOOKIE 1
10403 _ACEOF
10410 opengl_msg=""
10411 if test "x$with_opengl" != "xno"
10412 then
10413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
10414 $as_echo_n "checking for -lGL... " >&6; }
10415 if ${ac_cv_lib_soname_GL+:} false; then :
10416 $as_echo_n "(cached) " >&6
10417 else
10418 ac_check_soname_save_LIBS=$LIBS
10419 LIBS="-lGL $X_LIBS -lm $X_EXTRA_LIBS $LIBS"
10420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10421 /* end confdefs.h. */
10423 /* Override any GCC internal prototype to avoid an error.
10424 Use char because int might match the return type of a GCC
10425 builtin and then its argument prototype would still apply. */
10426 #ifdef __cplusplus
10427 extern "C"
10428 #endif
10429 char glXCreateContext ();
10431 main ()
10433 return glXCreateContext ();
10435 return 0;
10437 _ACEOF
10438 if ac_fn_c_try_link "$LINENO"; then :
10439 case "$LIBEXT" in
10440 dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10441 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'` ;;
10442 *) ac_cv_lib_soname_GL=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libGL\\.$LIBEXT" | sed -e "s/^.*\\[\\(libGL\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10443 if ${ac_cv_lib_soname_GL:+false} :; then :
10444 ac_cv_lib_soname_GL=`$LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10445 fi ;;
10446 esac
10448 rm -f core conftest.err conftest.$ac_objext \
10449 conftest$ac_exeext conftest.$ac_ext
10450 LIBS=$ac_check_soname_save_LIBS
10452 if ${ac_cv_lib_soname_GL:+false} :; then :
10453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10454 $as_echo "not found" >&6; }
10455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
10456 $as_echo_n "checking for -lGL... " >&6; }
10457 if ${ac_cv_lib_soname_GL+:} false; then :
10458 $as_echo_n "(cached) " >&6
10459 else
10460 ac_check_soname_save_LIBS=$LIBS
10461 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"
10462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10463 /* end confdefs.h. */
10465 /* Override any GCC internal prototype to avoid an error.
10466 Use char because int might match the return type of a GCC
10467 builtin and then its argument prototype would still apply. */
10468 #ifdef __cplusplus
10469 extern "C"
10470 #endif
10471 char glXCreateContext ();
10473 main ()
10475 return glXCreateContext ();
10477 return 0;
10479 _ACEOF
10480 if ac_fn_c_try_link "$LINENO"; then :
10481 case "$LIBEXT" in
10482 dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10483 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'` ;;
10484 *) ac_cv_lib_soname_GL=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libGL\\.$LIBEXT" | sed -e "s/^.*\\[\\(libGL\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10485 if ${ac_cv_lib_soname_GL:+false} :; then :
10486 ac_cv_lib_soname_GL=`$LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10487 fi ;;
10488 esac
10490 rm -f core conftest.err conftest.$ac_objext \
10491 conftest$ac_exeext conftest.$ac_ext
10492 LIBS=$ac_check_soname_save_LIBS
10494 if ${ac_cv_lib_soname_GL:+false} :; then :
10495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10496 $as_echo "not found" >&6; }
10497 if test -f /usr/X11R6/lib/libGL.a
10498 then
10499 opengl_msg="/usr/X11R6/lib/libGL.a is present on your system.
10500 This probably prevents linking to OpenGL. Try deleting the file and restarting configure."
10501 else
10502 opengl_msg="No OpenGL library found on this system."
10504 else
10505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
10506 $as_echo "$ac_cv_lib_soname_GL" >&6; }
10508 cat >>confdefs.h <<_ACEOF
10509 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
10510 _ACEOF
10512 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"
10514 else
10515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
10516 $as_echo "$ac_cv_lib_soname_GL" >&6; }
10518 cat >>confdefs.h <<_ACEOF
10519 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
10520 _ACEOF
10522 OPENGL_LIBS="-lGL"
10524 if test "x$with_glu" != "xno"
10525 then
10526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gluLookAt in -lGLU" >&5
10527 $as_echo_n "checking for gluLookAt in -lGLU... " >&6; }
10528 if ${ac_cv_lib_GLU_gluLookAt+:} false; then :
10529 $as_echo_n "(cached) " >&6
10530 else
10531 ac_check_lib_save_LIBS=$LIBS
10532 LIBS="-lGLU $OPENGL_LIBS $X_LIBS -lm $X_EXTRA_LIBS $LIBS"
10533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10534 /* end confdefs.h. */
10536 /* Override any GCC internal prototype to avoid an error.
10537 Use char because int might match the return type of a GCC
10538 builtin and then its argument prototype would still apply. */
10539 #ifdef __cplusplus
10540 extern "C"
10541 #endif
10542 char gluLookAt ();
10544 main ()
10546 return gluLookAt ();
10548 return 0;
10550 _ACEOF
10551 if ac_fn_c_try_link "$LINENO"; then :
10552 ac_cv_lib_GLU_gluLookAt=yes
10553 else
10554 ac_cv_lib_GLU_gluLookAt=no
10556 rm -f core conftest.err conftest.$ac_objext \
10557 conftest$ac_exeext conftest.$ac_ext
10558 LIBS=$ac_check_lib_save_LIBS
10560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GLU_gluLookAt" >&5
10561 $as_echo "$ac_cv_lib_GLU_gluLookAt" >&6; }
10562 if test "x$ac_cv_lib_GLU_gluLookAt" = xyes; then :
10566 if test "x$ac_cv_lib_GLU_gluLookAt" != xyes; then :
10567 case "x$with_glu" in
10568 x) as_fn_append wine_notices "|libGLU ${notice_platform}development files not found, GLU won't be supported." ;;
10569 xno) ;;
10570 *) as_fn_error $? "libGLU ${notice_platform}development files not found, GLU won't be supported.
10571 This is an error since --with-glu was requested." "$LINENO" 5 ;;
10572 esac
10576 if test "x$with_osmesa" != "xno"
10577 then
10578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lOSMesa" >&5
10579 $as_echo_n "checking for -lOSMesa... " >&6; }
10580 if ${ac_cv_lib_soname_OSMesa+:} false; then :
10581 $as_echo_n "(cached) " >&6
10582 else
10583 ac_check_soname_save_LIBS=$LIBS
10584 LIBS="-lOSMesa $X_LIBS -lm $X_EXTRA_LIBS $LIBS"
10585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10586 /* end confdefs.h. */
10588 /* Override any GCC internal prototype to avoid an error.
10589 Use char because int might match the return type of a GCC
10590 builtin and then its argument prototype would still apply. */
10591 #ifdef __cplusplus
10592 extern "C"
10593 #endif
10594 char glAccum ();
10596 main ()
10598 return glAccum ();
10600 return 0;
10602 _ACEOF
10603 if ac_fn_c_try_link "$LINENO"; then :
10604 case "$LIBEXT" in
10605 dll) ac_cv_lib_soname_OSMesa=`$ac_cv_path_LDD conftest.exe | grep "OSMesa" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10606 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'` ;;
10607 *) ac_cv_lib_soname_OSMesa=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libOSMesa\\.$LIBEXT" | sed -e "s/^.*\\[\\(libOSMesa\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10608 if ${ac_cv_lib_soname_OSMesa:+false} :; then :
10609 ac_cv_lib_soname_OSMesa=`$LDD conftest$ac_exeext | grep "libOSMesa\\.$LIBEXT" | sed -e "s/^.*\(libOSMesa\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10610 fi ;;
10611 esac
10613 rm -f core conftest.err conftest.$ac_objext \
10614 conftest$ac_exeext conftest.$ac_ext
10615 LIBS=$ac_check_soname_save_LIBS
10617 if ${ac_cv_lib_soname_OSMesa:+false} :; then :
10618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10619 $as_echo "not found" >&6; }
10621 else
10622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_OSMesa" >&5
10623 $as_echo "$ac_cv_lib_soname_OSMesa" >&6; }
10625 cat >>confdefs.h <<_ACEOF
10626 #define SONAME_LIBOSMESA "$ac_cv_lib_soname_OSMesa"
10627 _ACEOF
10631 if test "x$ac_cv_lib_soname_OSMesa" = "x"; then :
10632 case "x$with_osmesa" in
10633 x) as_fn_append wine_notices "|libOSMesa ${notice_platform}development files not found (or too old), OpenGL rendering in bitmaps won't be supported." ;;
10634 xno) ;;
10635 *) as_fn_error $? "libOSMesa ${notice_platform}development files not found (or too old), OpenGL rendering in bitmaps won't be supported.
10636 This is an error since --with-osmesa was requested." "$LINENO" 5 ;;
10637 esac
10641 if test -n "$opengl_msg"; then :
10642 case "x$with_opengl" in
10643 x) as_fn_append wine_warnings "|$opengl_msg
10644 OpenGL and Direct3D won't be supported." ;;
10645 xno) ;;
10646 *) as_fn_error $? "$opengl_msg
10647 OpenGL and Direct3D won't be supported.
10648 This is an error since --with-opengl was requested." "$LINENO" 5 ;;
10649 esac
10652 CPPFLAGS="$ac_save_CPPFLAGS"
10653 else
10654 X_CFLAGS=""
10655 X_LIBS=""
10656 enable_winex11_drv=${enable_winex11_drv:-no}
10658 if test "x$X_LIBS" = "x"; then :
10659 case "x$with_x" in
10660 xno) ;;
10661 *) as_fn_error $? "X ${notice_platform}development files not found. Wine will be built
10662 without X support, which probably isn't what you want. You will need
10663 to install ${notice_platform}development packages of Xlib/Xfree86 at the very least.
10664 Use the --without-x option if you really want this." "$LINENO" 5 ;;
10665 esac
10668 test "x$ac_cv_lib_GLU_gluLookAt" != xyes && enable_glu32=${enable_glu32:-no}
10670 if test "$ac_cv_header_CL_cl_h" = "yes"
10671 then
10672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clGetPlatformInfo in -lOpenCL" >&5
10673 $as_echo_n "checking for clGetPlatformInfo in -lOpenCL... " >&6; }
10674 if ${ac_cv_lib_OpenCL_clGetPlatformInfo+:} false; then :
10675 $as_echo_n "(cached) " >&6
10676 else
10677 ac_check_lib_save_LIBS=$LIBS
10678 LIBS="-lOpenCL $LIBS"
10679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10680 /* end confdefs.h. */
10682 /* Override any GCC internal prototype to avoid an error.
10683 Use char because int might match the return type of a GCC
10684 builtin and then its argument prototype would still apply. */
10685 #ifdef __cplusplus
10686 extern "C"
10687 #endif
10688 char clGetPlatformInfo ();
10690 main ()
10692 return clGetPlatformInfo ();
10694 return 0;
10696 _ACEOF
10697 if ac_fn_c_try_link "$LINENO"; then :
10698 ac_cv_lib_OpenCL_clGetPlatformInfo=yes
10699 else
10700 ac_cv_lib_OpenCL_clGetPlatformInfo=no
10702 rm -f core conftest.err conftest.$ac_objext \
10703 conftest$ac_exeext conftest.$ac_ext
10704 LIBS=$ac_check_lib_save_LIBS
10706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_OpenCL_clGetPlatformInfo" >&5
10707 $as_echo "$ac_cv_lib_OpenCL_clGetPlatformInfo" >&6; }
10708 if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" = xyes; then :
10709 OPENCL_LIBS="-lOpenCL"
10714 if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes; then :
10715 case "x$with_opencl" in
10716 x) as_fn_append wine_notices "|OpenCL ${notice_platform}development files not found, OpenCL won't be supported." ;;
10717 xno) ;;
10718 *) as_fn_error $? "OpenCL ${notice_platform}development files not found, OpenCL won't be supported.
10719 This is an error since --with-opencl was requested." "$LINENO" 5 ;;
10720 esac
10722 test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes && enable_opencl=${enable_opencl:-no}
10724 if test "$ac_cv_header_pcap_pcap_h" = "yes"
10725 then
10726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_create in -lpcap" >&5
10727 $as_echo_n "checking for pcap_create in -lpcap... " >&6; }
10728 if ${ac_cv_lib_pcap_pcap_create+:} false; then :
10729 $as_echo_n "(cached) " >&6
10730 else
10731 ac_check_lib_save_LIBS=$LIBS
10732 LIBS="-lpcap $LIBS"
10733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10734 /* end confdefs.h. */
10736 /* Override any GCC internal prototype to avoid an error.
10737 Use char because int might match the return type of a GCC
10738 builtin and then its argument prototype would still apply. */
10739 #ifdef __cplusplus
10740 extern "C"
10741 #endif
10742 char pcap_create ();
10744 main ()
10746 return pcap_create ();
10748 return 0;
10750 _ACEOF
10751 if ac_fn_c_try_link "$LINENO"; then :
10752 ac_cv_lib_pcap_pcap_create=yes
10753 else
10754 ac_cv_lib_pcap_pcap_create=no
10756 rm -f core conftest.err conftest.$ac_objext \
10757 conftest$ac_exeext conftest.$ac_ext
10758 LIBS=$ac_check_lib_save_LIBS
10760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_create" >&5
10761 $as_echo "$ac_cv_lib_pcap_pcap_create" >&6; }
10762 if test "x$ac_cv_lib_pcap_pcap_create" = xyes; then :
10763 LIBPCAP="-lpcap"
10768 if test "x$ac_cv_lib_pcap_pcap_create" != xyes; then :
10769 case "x$with_pcap" in
10770 x) as_fn_append wine_notices "|pcap ${notice_platform}development files not found, wpcap won't be supported." ;;
10771 xno) ;;
10772 *) as_fn_error $? "pcap ${notice_platform}development files not found, wpcap won't be supported.
10773 This is an error since --with-pcap was requested." "$LINENO" 5 ;;
10774 esac
10776 test "x$ac_cv_lib_pcap_pcap_create" != xyes && enable_wpcap=${enable_wpcap:-no}
10779 if test "x$with_xml" != "xno"
10780 then
10781 if ${XML2_CFLAGS:+false} :; then :
10782 if ${PKG_CONFIG+:} false; then :
10783 XML2_CFLAGS=`$PKG_CONFIG --cflags libxml-2.0 2>/dev/null`
10786 test "$cross_compiling" = yes || XML2_CFLAGS=${XML2_CFLAGS:-`xml2-config --cflags 2>/dev/null`}
10787 if ${XML2_LIBS:+false} :; then :
10788 if ${PKG_CONFIG+:} false; then :
10789 XML2_LIBS=`$PKG_CONFIG --libs libxml-2.0 2>/dev/null`
10792 test "$cross_compiling" = yes || XML2_LIBS=${XML2_LIBS:-`xml2-config --libs 2>/dev/null`}
10793 XML2_LIBS=${XML2_LIBS:-"-lxml2"}
10794 $as_echo "$as_me:${as_lineno-$LINENO}: libxml-2.0 cflags: $XML2_CFLAGS" >&5
10795 $as_echo "$as_me:${as_lineno-$LINENO}: libxml-2.0 libs: $XML2_LIBS" >&5
10796 ac_save_CPPFLAGS=$CPPFLAGS
10797 CPPFLAGS="$CPPFLAGS $XML2_CFLAGS"
10798 for ac_header in libxml/parser.h libxml/xmlsave.h libxml/SAX2.h
10799 do :
10800 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10801 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10802 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10803 cat >>confdefs.h <<_ACEOF
10804 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10805 _ACEOF
10809 done
10811 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"
10812 then
10813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseMemory in -lxml2" >&5
10814 $as_echo_n "checking for xmlParseMemory in -lxml2... " >&6; }
10815 if ${ac_cv_lib_xml2_xmlParseMemory+:} false; then :
10816 $as_echo_n "(cached) " >&6
10817 else
10818 ac_check_lib_save_LIBS=$LIBS
10819 LIBS="-lxml2 $XML2_LIBS $LIBS"
10820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10821 /* end confdefs.h. */
10823 /* Override any GCC internal prototype to avoid an error.
10824 Use char because int might match the return type of a GCC
10825 builtin and then its argument prototype would still apply. */
10826 #ifdef __cplusplus
10827 extern "C"
10828 #endif
10829 char xmlParseMemory ();
10831 main ()
10833 return xmlParseMemory ();
10835 return 0;
10837 _ACEOF
10838 if ac_fn_c_try_link "$LINENO"; then :
10839 ac_cv_lib_xml2_xmlParseMemory=yes
10840 else
10841 ac_cv_lib_xml2_xmlParseMemory=no
10843 rm -f core conftest.err conftest.$ac_objext \
10844 conftest$ac_exeext conftest.$ac_ext
10845 LIBS=$ac_check_lib_save_LIBS
10847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseMemory" >&5
10848 $as_echo "$ac_cv_lib_xml2_xmlParseMemory" >&6; }
10849 if test "x$ac_cv_lib_xml2_xmlParseMemory" = xyes; then :
10851 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
10853 else
10854 XML2_LIBS=""
10857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlReadMemory in -lxml2" >&5
10858 $as_echo_n "checking for xmlReadMemory in -lxml2... " >&6; }
10859 if ${ac_cv_lib_xml2_xmlReadMemory+:} false; then :
10860 $as_echo_n "(cached) " >&6
10861 else
10862 ac_check_lib_save_LIBS=$LIBS
10863 LIBS="-lxml2 $XML2_LIBS $LIBS"
10864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10865 /* end confdefs.h. */
10867 /* Override any GCC internal prototype to avoid an error.
10868 Use char because int might match the return type of a GCC
10869 builtin and then its argument prototype would still apply. */
10870 #ifdef __cplusplus
10871 extern "C"
10872 #endif
10873 char xmlReadMemory ();
10875 main ()
10877 return xmlReadMemory ();
10879 return 0;
10881 _ACEOF
10882 if ac_fn_c_try_link "$LINENO"; then :
10883 ac_cv_lib_xml2_xmlReadMemory=yes
10884 else
10885 ac_cv_lib_xml2_xmlReadMemory=no
10887 rm -f core conftest.err conftest.$ac_objext \
10888 conftest$ac_exeext conftest.$ac_ext
10889 LIBS=$ac_check_lib_save_LIBS
10891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlReadMemory" >&5
10892 $as_echo "$ac_cv_lib_xml2_xmlReadMemory" >&6; }
10893 if test "x$ac_cv_lib_xml2_xmlReadMemory" = xyes; then :
10895 $as_echo "#define HAVE_XMLREADMEMORY 1" >>confdefs.h
10899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlNewDocPI in -lxml2" >&5
10900 $as_echo_n "checking for xmlNewDocPI in -lxml2... " >&6; }
10901 if ${ac_cv_lib_xml2_xmlNewDocPI+:} false; then :
10902 $as_echo_n "(cached) " >&6
10903 else
10904 ac_check_lib_save_LIBS=$LIBS
10905 LIBS="-lxml2 $XML2_LIBS $LIBS"
10906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10907 /* end confdefs.h. */
10909 /* Override any GCC internal prototype to avoid an error.
10910 Use char because int might match the return type of a GCC
10911 builtin and then its argument prototype would still apply. */
10912 #ifdef __cplusplus
10913 extern "C"
10914 #endif
10915 char xmlNewDocPI ();
10917 main ()
10919 return xmlNewDocPI ();
10921 return 0;
10923 _ACEOF
10924 if ac_fn_c_try_link "$LINENO"; then :
10925 ac_cv_lib_xml2_xmlNewDocPI=yes
10926 else
10927 ac_cv_lib_xml2_xmlNewDocPI=no
10929 rm -f core conftest.err conftest.$ac_objext \
10930 conftest$ac_exeext conftest.$ac_ext
10931 LIBS=$ac_check_lib_save_LIBS
10933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlNewDocPI" >&5
10934 $as_echo "$ac_cv_lib_xml2_xmlNewDocPI" >&6; }
10935 if test "x$ac_cv_lib_xml2_xmlNewDocPI" = xyes; then :
10937 $as_echo "#define HAVE_XMLNEWDOCPI 1" >>confdefs.h
10941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetParserStructuredErrors in -lxml2" >&5
10942 $as_echo_n "checking for xmlSchemaSetParserStructuredErrors in -lxml2... " >&6; }
10943 if ${ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors+:} false; then :
10944 $as_echo_n "(cached) " >&6
10945 else
10946 ac_check_lib_save_LIBS=$LIBS
10947 LIBS="-lxml2 $XML2_LIBS $LIBS"
10948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10949 /* end confdefs.h. */
10951 /* Override any GCC internal prototype to avoid an error.
10952 Use char because int might match the return type of a GCC
10953 builtin and then its argument prototype would still apply. */
10954 #ifdef __cplusplus
10955 extern "C"
10956 #endif
10957 char xmlSchemaSetParserStructuredErrors ();
10959 main ()
10961 return xmlSchemaSetParserStructuredErrors ();
10963 return 0;
10965 _ACEOF
10966 if ac_fn_c_try_link "$LINENO"; then :
10967 ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=yes
10968 else
10969 ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=no
10971 rm -f core conftest.err conftest.$ac_objext \
10972 conftest$ac_exeext conftest.$ac_ext
10973 LIBS=$ac_check_lib_save_LIBS
10975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&5
10976 $as_echo "$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&6; }
10977 if test "x$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" = xyes; then :
10979 $as_echo "#define HAVE_XMLSCHEMASSETPARSERSTRUCTUREDERRORS 1" >>confdefs.h
10983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetValidStructuredErrors in -lxml2" >&5
10984 $as_echo_n "checking for xmlSchemaSetValidStructuredErrors in -lxml2... " >&6; }
10985 if ${ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors+:} false; then :
10986 $as_echo_n "(cached) " >&6
10987 else
10988 ac_check_lib_save_LIBS=$LIBS
10989 LIBS="-lxml2 $XML2_LIBS $LIBS"
10990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10991 /* end confdefs.h. */
10993 /* Override any GCC internal prototype to avoid an error.
10994 Use char because int might match the return type of a GCC
10995 builtin and then its argument prototype would still apply. */
10996 #ifdef __cplusplus
10997 extern "C"
10998 #endif
10999 char xmlSchemaSetValidStructuredErrors ();
11001 main ()
11003 return xmlSchemaSetValidStructuredErrors ();
11005 return 0;
11007 _ACEOF
11008 if ac_fn_c_try_link "$LINENO"; then :
11009 ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=yes
11010 else
11011 ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=no
11013 rm -f core conftest.err conftest.$ac_objext \
11014 conftest$ac_exeext conftest.$ac_ext
11015 LIBS=$ac_check_lib_save_LIBS
11017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&5
11018 $as_echo "$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&6; }
11019 if test "x$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" = xyes; then :
11021 $as_echo "#define HAVE_XMLSCHEMASSETVALIDSTRUCTUREDERRORS 1" >>confdefs.h
11025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlFirstElementChild in -lxml2" >&5
11026 $as_echo_n "checking for xmlFirstElementChild in -lxml2... " >&6; }
11027 if ${ac_cv_lib_xml2_xmlFirstElementChild+:} false; then :
11028 $as_echo_n "(cached) " >&6
11029 else
11030 ac_check_lib_save_LIBS=$LIBS
11031 LIBS="-lxml2 $XML2_LIBS $LIBS"
11032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11033 /* end confdefs.h. */
11035 /* Override any GCC internal prototype to avoid an error.
11036 Use char because int might match the return type of a GCC
11037 builtin and then its argument prototype would still apply. */
11038 #ifdef __cplusplus
11039 extern "C"
11040 #endif
11041 char xmlFirstElementChild ();
11043 main ()
11045 return xmlFirstElementChild ();
11047 return 0;
11049 _ACEOF
11050 if ac_fn_c_try_link "$LINENO"; then :
11051 ac_cv_lib_xml2_xmlFirstElementChild=yes
11052 else
11053 ac_cv_lib_xml2_xmlFirstElementChild=no
11055 rm -f core conftest.err conftest.$ac_objext \
11056 conftest$ac_exeext conftest.$ac_ext
11057 LIBS=$ac_check_lib_save_LIBS
11059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlFirstElementChild" >&5
11060 $as_echo "$ac_cv_lib_xml2_xmlFirstElementChild" >&6; }
11061 if test "x$ac_cv_lib_xml2_xmlFirstElementChild" = xyes; then :
11063 $as_echo "#define HAVE_XMLFIRSTELEMENTCHILD 1" >>confdefs.h
11067 ac_fn_c_check_type "$LINENO" "xmlDocProperties" "ac_cv_type_xmlDocProperties" "#include <libxml/tree.h>
11069 if test "x$ac_cv_type_xmlDocProperties" = xyes; then :
11071 $as_echo "#define HAVE_XMLDOC_PROPERTIES 1" >>confdefs.h
11075 else
11076 XML2_CFLAGS=""
11077 XML2_LIBS=""
11079 CPPFLAGS=$ac_save_CPPFLAGS
11080 test -z "$XML2_CFLAGS" || XML2_CFLAGS=`echo " $XML2_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
11081 test -z "$XML2_LIBS" || XML2_LIBS=`echo " $XML2_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
11084 if test "$ac_cv_lib_xml2_xmlParseMemory" != "yes"; then :
11085 case "x$with_xml" in
11086 x) as_fn_append wine_warnings "|libxml2 ${notice_platform}development files not found (or too old), XML won't be supported." ;;
11087 xno) ;;
11088 *) as_fn_error $? "libxml2 ${notice_platform}development files not found (or too old), XML won't be supported.
11089 This is an error since --with-xml was requested." "$LINENO" 5 ;;
11090 esac
11093 if test "x$with_xslt" != "xno"
11094 then
11095 if ${XSLT_CFLAGS:+false} :; then :
11096 if ${PKG_CONFIG+:} false; then :
11097 XSLT_CFLAGS=`$PKG_CONFIG --cflags libxslt 2>/dev/null`
11100 test "$cross_compiling" = yes || XSLT_CFLAGS=${XSLT_CFLAGS:-`xslt-config --cflags 2>/dev/null`}
11101 if ${XSLT_LIBS:+false} :; then :
11102 if ${PKG_CONFIG+:} false; then :
11103 XSLT_LIBS=`$PKG_CONFIG --libs libxslt 2>/dev/null`
11106 test "$cross_compiling" = yes || XSLT_LIBS=${XSLT_LIBS:-`xslt-config --libs 2>/dev/null`}
11107 XSLT_LIBS=${XSLT_LIBS:-"-lxml2"}
11108 $as_echo "$as_me:${as_lineno-$LINENO}: libxslt cflags: $XSLT_CFLAGS" >&5
11109 $as_echo "$as_me:${as_lineno-$LINENO}: libxslt libs: $XSLT_LIBS" >&5
11110 ac_save_CPPFLAGS=$CPPFLAGS
11111 CPPFLAGS="$CPPFLAGS $XSLT_CFLAGS"
11112 for ac_header in libxslt/pattern.h libxslt/transform.h
11113 do :
11114 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11115 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_LIBXSLT_PATTERN_H
11116 # include <libxslt/pattern.h>
11117 #endif
11119 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11120 cat >>confdefs.h <<_ACEOF
11121 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11122 _ACEOF
11126 done
11128 if test "$ac_cv_header_libxslt_transform_h" = "yes"
11129 then
11130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lxslt" >&5
11131 $as_echo_n "checking for -lxslt... " >&6; }
11132 if ${ac_cv_lib_soname_xslt+:} false; then :
11133 $as_echo_n "(cached) " >&6
11134 else
11135 ac_check_soname_save_LIBS=$LIBS
11136 LIBS="-lxslt $XSLT_LIBS $LIBS"
11137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11138 /* end confdefs.h. */
11140 /* Override any GCC internal prototype to avoid an error.
11141 Use char because int might match the return type of a GCC
11142 builtin and then its argument prototype would still apply. */
11143 #ifdef __cplusplus
11144 extern "C"
11145 #endif
11146 char xsltCompilePattern ();
11148 main ()
11150 return xsltCompilePattern ();
11152 return 0;
11154 _ACEOF
11155 if ac_fn_c_try_link "$LINENO"; then :
11156 case "$LIBEXT" in
11157 dll) ac_cv_lib_soname_xslt=`$ac_cv_path_LDD conftest.exe | grep "xslt" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11158 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'` ;;
11159 *) ac_cv_lib_soname_xslt=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libxslt\\.$LIBEXT" | sed -e "s/^.*\\[\\(libxslt\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11160 if ${ac_cv_lib_soname_xslt:+false} :; then :
11161 ac_cv_lib_soname_xslt=`$LDD conftest$ac_exeext | grep "libxslt\\.$LIBEXT" | sed -e "s/^.*\(libxslt\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11162 fi ;;
11163 esac
11165 rm -f core conftest.err conftest.$ac_objext \
11166 conftest$ac_exeext conftest.$ac_ext
11167 LIBS=$ac_check_soname_save_LIBS
11169 if ${ac_cv_lib_soname_xslt:+false} :; then :
11170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11171 $as_echo "not found" >&6; }
11173 else
11174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_xslt" >&5
11175 $as_echo "$ac_cv_lib_soname_xslt" >&6; }
11177 cat >>confdefs.h <<_ACEOF
11178 #define SONAME_LIBXSLT "$ac_cv_lib_soname_xslt"
11179 _ACEOF
11183 else
11184 XSLT_CFLAGS=""
11186 CPPFLAGS=$ac_save_CPPFLAGS
11187 test -z "$XSLT_CFLAGS" || XSLT_CFLAGS=`echo " $XSLT_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
11188 test -z "$XSLT_LIBS" || XSLT_LIBS=`echo " $XSLT_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
11191 if test "x$ac_cv_lib_soname_xslt" = "x"; then :
11192 case "x$with_xslt" in
11193 x) as_fn_append wine_warnings "|libxslt ${notice_platform}development files not found, xslt won't be supported." ;;
11194 xno) ;;
11195 *) as_fn_error $? "libxslt ${notice_platform}development files not found, xslt won't be supported.
11196 This is an error since --with-xslt was requested." "$LINENO" 5 ;;
11197 esac
11200 if test "x$with_dbus" != "xno"
11201 then
11202 if ${DBUS_CFLAGS:+false} :; then :
11203 if ${PKG_CONFIG+:} false; then :
11204 DBUS_CFLAGS=`$PKG_CONFIG --cflags dbus-1 2>/dev/null`
11208 if ${DBUS_LIBS:+false} :; then :
11209 if ${PKG_CONFIG+:} false; then :
11210 DBUS_LIBS=`$PKG_CONFIG --libs dbus-1 2>/dev/null`
11215 $as_echo "$as_me:${as_lineno-$LINENO}: dbus-1 cflags: $DBUS_CFLAGS" >&5
11216 $as_echo "$as_me:${as_lineno-$LINENO}: dbus-1 libs: $DBUS_LIBS" >&5
11217 ac_save_CPPFLAGS=$CPPFLAGS
11218 CPPFLAGS="$CPPFLAGS $DBUS_CFLAGS"
11219 ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
11220 if test "x$ac_cv_header_dbus_dbus_h" = xyes; then :
11221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ldbus-1" >&5
11222 $as_echo_n "checking for -ldbus-1... " >&6; }
11223 if ${ac_cv_lib_soname_dbus_1+:} false; then :
11224 $as_echo_n "(cached) " >&6
11225 else
11226 ac_check_soname_save_LIBS=$LIBS
11227 LIBS="-ldbus-1 $DBUS_LIBS $LIBS"
11228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11229 /* end confdefs.h. */
11231 /* Override any GCC internal prototype to avoid an error.
11232 Use char because int might match the return type of a GCC
11233 builtin and then its argument prototype would still apply. */
11234 #ifdef __cplusplus
11235 extern "C"
11236 #endif
11237 char dbus_connection_close ();
11239 main ()
11241 return dbus_connection_close ();
11243 return 0;
11245 _ACEOF
11246 if ac_fn_c_try_link "$LINENO"; then :
11247 case "$LIBEXT" in
11248 dll) ac_cv_lib_soname_dbus_1=`$ac_cv_path_LDD conftest.exe | grep "dbus-1" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11249 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'` ;;
11250 *) 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'`
11251 if ${ac_cv_lib_soname_dbus_1:+false} :; then :
11252 ac_cv_lib_soname_dbus_1=`$LDD conftest$ac_exeext | grep "libdbus-1\\.$LIBEXT" | sed -e "s/^.*\(libdbus-1\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11253 fi ;;
11254 esac
11256 rm -f core conftest.err conftest.$ac_objext \
11257 conftest$ac_exeext conftest.$ac_ext
11258 LIBS=$ac_check_soname_save_LIBS
11260 if ${ac_cv_lib_soname_dbus_1:+false} :; then :
11261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11262 $as_echo "not found" >&6; }
11263 DBUS_CFLAGS=""
11264 else
11265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_dbus_1" >&5
11266 $as_echo "$ac_cv_lib_soname_dbus_1" >&6; }
11268 cat >>confdefs.h <<_ACEOF
11269 #define SONAME_LIBDBUS_1 "$ac_cv_lib_soname_dbus_1"
11270 _ACEOF
11274 else
11275 DBUS_CFLAGS=""
11279 CPPFLAGS=$ac_save_CPPFLAGS
11280 test -z "$DBUS_CFLAGS" || DBUS_CFLAGS=`echo " $DBUS_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
11281 test -z "$DBUS_LIBS" || DBUS_LIBS=`echo " $DBUS_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
11284 if test "x$ac_cv_lib_soname_dbus_1" = "x" -a \
11285 "x$ac_cv_header_DiskArbitration_DiskArbitration_h" != "xyes"; then :
11286 case "x$with_dbus" in
11287 x) as_fn_append wine_notices "|libdbus ${notice_platform}development files not found, no dynamic device support." ;;
11288 xno) ;;
11289 *) as_fn_error $? "libdbus ${notice_platform}development files not found, no dynamic device support.
11290 This is an error since --with-dbus was requested." "$LINENO" 5 ;;
11291 esac
11294 if test "x$with_hal" != "xno" -a "x$ac_cv_lib_soname_dbus_1" != x
11295 then
11296 if ${HAL_CFLAGS:+false} :; then :
11297 if ${PKG_CONFIG+:} false; then :
11298 HAL_CFLAGS=`$PKG_CONFIG --cflags hal 2>/dev/null`
11302 if ${HAL_LIBS:+false} :; then :
11303 if ${PKG_CONFIG+:} false; then :
11304 HAL_LIBS=`$PKG_CONFIG --libs hal 2>/dev/null`
11308 HAL_LIBS=${HAL_LIBS:-"-ldbus-1"}
11309 $as_echo "$as_me:${as_lineno-$LINENO}: hal cflags: $HAL_CFLAGS" >&5
11310 $as_echo "$as_me:${as_lineno-$LINENO}: hal libs: $HAL_LIBS" >&5
11311 ac_save_CPPFLAGS=$CPPFLAGS
11312 CPPFLAGS="$CPPFLAGS $HAL_CFLAGS"
11313 ac_fn_c_check_header_mongrel "$LINENO" "hal/libhal.h" "ac_cv_header_hal_libhal_h" "$ac_includes_default"
11314 if test "x$ac_cv_header_hal_libhal_h" = xyes; then :
11315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lhal" >&5
11316 $as_echo_n "checking for -lhal... " >&6; }
11317 if ${ac_cv_lib_soname_hal+:} false; then :
11318 $as_echo_n "(cached) " >&6
11319 else
11320 ac_check_soname_save_LIBS=$LIBS
11321 LIBS="-lhal $HAL_LIBS $LIBS"
11322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11323 /* end confdefs.h. */
11325 /* Override any GCC internal prototype to avoid an error.
11326 Use char because int might match the return type of a GCC
11327 builtin and then its argument prototype would still apply. */
11328 #ifdef __cplusplus
11329 extern "C"
11330 #endif
11331 char libhal_ctx_new ();
11333 main ()
11335 return libhal_ctx_new ();
11337 return 0;
11339 _ACEOF
11340 if ac_fn_c_try_link "$LINENO"; then :
11341 case "$LIBEXT" in
11342 dll) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest.exe | grep "hal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11343 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'` ;;
11344 *) ac_cv_lib_soname_hal=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libhal\\.$LIBEXT" | sed -e "s/^.*\\[\\(libhal\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11345 if ${ac_cv_lib_soname_hal:+false} :; then :
11346 ac_cv_lib_soname_hal=`$LDD conftest$ac_exeext | grep "libhal\\.$LIBEXT" | sed -e "s/^.*\(libhal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11347 fi ;;
11348 esac
11350 rm -f core conftest.err conftest.$ac_objext \
11351 conftest$ac_exeext conftest.$ac_ext
11352 LIBS=$ac_check_soname_save_LIBS
11354 if ${ac_cv_lib_soname_hal:+false} :; then :
11355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11356 $as_echo "not found" >&6; }
11357 HAL_CFLAGS=""
11358 else
11359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_hal" >&5
11360 $as_echo "$ac_cv_lib_soname_hal" >&6; }
11362 cat >>confdefs.h <<_ACEOF
11363 #define SONAME_LIBHAL "$ac_cv_lib_soname_hal"
11364 _ACEOF
11368 else
11369 HAL_CFLAGS=""
11373 CPPFLAGS=$ac_save_CPPFLAGS
11374 test -z "$HAL_CFLAGS" || HAL_CFLAGS=`echo " $HAL_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
11375 test -z "$HAL_LIBS" || HAL_LIBS=`echo " $HAL_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
11377 if test "x$ac_cv_lib_soname_hal" = "x" -a \
11378 "x$ac_cv_header_DiskArbitration_DiskArbitration_h" != "xyes"; then :
11379 case "x$with_hal" in
11380 x) as_fn_append wine_notices "|libhal ${notice_platform}development files not found, no legacy dynamic device support." ;;
11381 xno) ;;
11382 *) as_fn_error $? "libhal ${notice_platform}development files not found, no legacy dynamic device support.
11383 This is an error since --with-hal was requested." "$LINENO" 5 ;;
11384 esac
11388 if test "x$with_gnutls" != "xno"
11389 then
11390 if ${GNUTLS_CFLAGS:+false} :; then :
11391 if ${PKG_CONFIG+:} false; then :
11392 GNUTLS_CFLAGS=`$PKG_CONFIG --cflags gnutls 2>/dev/null`
11396 if ${GNUTLS_LIBS:+false} :; then :
11397 if ${PKG_CONFIG+:} false; then :
11398 GNUTLS_LIBS=`$PKG_CONFIG --libs gnutls 2>/dev/null`
11403 $as_echo "$as_me:${as_lineno-$LINENO}: gnutls cflags: $GNUTLS_CFLAGS" >&5
11404 $as_echo "$as_me:${as_lineno-$LINENO}: gnutls libs: $GNUTLS_LIBS" >&5
11405 ac_save_CPPFLAGS=$CPPFLAGS
11406 CPPFLAGS="$CPPFLAGS $GNUTLS_CFLAGS"
11407 ac_fn_c_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default"
11408 if test "x$ac_cv_header_gnutls_gnutls_h" = xyes; then :
11409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11410 /* end confdefs.h. */
11411 #include <gnutls/gnutls.h>
11412 #include <gnutls/crypto.h>
11414 main ()
11416 static typeof(gnutls_mac_get_key_size) *func; if (func) return 0;
11418 return 0;
11420 _ACEOF
11421 if ac_fn_c_try_compile "$LINENO"; then :
11422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgnutls" >&5
11423 $as_echo_n "checking for -lgnutls... " >&6; }
11424 if ${ac_cv_lib_soname_gnutls+:} false; then :
11425 $as_echo_n "(cached) " >&6
11426 else
11427 ac_check_soname_save_LIBS=$LIBS
11428 LIBS="-lgnutls $GNUTLS_LIBS $LIBS"
11429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11430 /* end confdefs.h. */
11432 /* Override any GCC internal prototype to avoid an error.
11433 Use char because int might match the return type of a GCC
11434 builtin and then its argument prototype would still apply. */
11435 #ifdef __cplusplus
11436 extern "C"
11437 #endif
11438 char gnutls_global_init ();
11440 main ()
11442 return gnutls_global_init ();
11444 return 0;
11446 _ACEOF
11447 if ac_fn_c_try_link "$LINENO"; then :
11448 case "$LIBEXT" in
11449 dll) ac_cv_lib_soname_gnutls=`$ac_cv_path_LDD conftest.exe | grep "gnutls" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11450 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'` ;;
11451 *) 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'`
11452 if ${ac_cv_lib_soname_gnutls:+false} :; then :
11453 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'`
11454 fi ;;
11455 esac
11457 rm -f core conftest.err conftest.$ac_objext \
11458 conftest$ac_exeext conftest.$ac_ext
11459 LIBS=$ac_check_soname_save_LIBS
11461 if ${ac_cv_lib_soname_gnutls:+false} :; then :
11462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11463 $as_echo "not found" >&6; }
11464 GNUTLS_CFLAGS=""
11465 else
11466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gnutls" >&5
11467 $as_echo "$ac_cv_lib_soname_gnutls" >&6; }
11469 cat >>confdefs.h <<_ACEOF
11470 #define SONAME_LIBGNUTLS "$ac_cv_lib_soname_gnutls"
11471 _ACEOF
11476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11477 else
11478 GNUTLS_CFLAGS=""
11482 CPPFLAGS=$ac_save_CPPFLAGS
11483 test -z "$GNUTLS_CFLAGS" || GNUTLS_CFLAGS=`echo " $GNUTLS_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
11484 test -z "$GNUTLS_LIBS" || GNUTLS_LIBS=`echo " $GNUTLS_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
11487 if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
11488 case "x$with_gnutls" in
11489 x) as_fn_append wine_warnings "|libgnutls ${notice_platform}development files not found, no schannel support." ;;
11490 xno) ;;
11491 *) as_fn_error $? "libgnutls ${notice_platform}development files not found, no schannel support.
11492 This is an error since --with-gnutls was requested." "$LINENO" 5 ;;
11493 esac
11496 CURSES_LIBS=""
11497 if test "$ac_cv_header_ncurses_h" = "yes"
11498 then
11499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lncurses" >&5
11500 $as_echo_n "checking for -lncurses... " >&6; }
11501 if ${ac_cv_lib_soname_ncurses+:} false; then :
11502 $as_echo_n "(cached) " >&6
11503 else
11504 ac_check_soname_save_LIBS=$LIBS
11505 LIBS="-lncurses $LIBS"
11506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11507 /* end confdefs.h. */
11509 /* Override any GCC internal prototype to avoid an error.
11510 Use char because int might match the return type of a GCC
11511 builtin and then its argument prototype would still apply. */
11512 #ifdef __cplusplus
11513 extern "C"
11514 #endif
11515 char waddch ();
11517 main ()
11519 return waddch ();
11521 return 0;
11523 _ACEOF
11524 if ac_fn_c_try_link "$LINENO"; then :
11525 case "$LIBEXT" in
11526 dll) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest.exe | grep "ncurses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11527 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'` ;;
11528 *) 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'`
11529 if ${ac_cv_lib_soname_ncurses:+false} :; then :
11530 ac_cv_lib_soname_ncurses=`$LDD conftest$ac_exeext | grep "libncursesw\\{0,1\\}\\.$LIBEXT" | sed -e "s/^.*\(libncursesw\\{0,1\\}\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11531 fi ;;
11532 esac
11534 rm -f core conftest.err conftest.$ac_objext \
11535 conftest$ac_exeext conftest.$ac_ext
11536 LIBS=$ac_check_soname_save_LIBS
11538 if ${ac_cv_lib_soname_ncurses:+false} :; then :
11539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11540 $as_echo "not found" >&6; }
11542 else
11543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ncurses" >&5
11544 $as_echo "$ac_cv_lib_soname_ncurses" >&6; }
11546 cat >>confdefs.h <<_ACEOF
11547 #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
11548 _ACEOF
11550 CURSES_LIBS="-lncurses"
11552 elif test "$ac_cv_header_curses_h" = "yes"
11553 then
11554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcurses" >&5
11555 $as_echo_n "checking for -lcurses... " >&6; }
11556 if ${ac_cv_lib_soname_curses+:} false; then :
11557 $as_echo_n "(cached) " >&6
11558 else
11559 ac_check_soname_save_LIBS=$LIBS
11560 LIBS="-lcurses $LIBS"
11561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11562 /* end confdefs.h. */
11564 /* Override any GCC internal prototype to avoid an error.
11565 Use char because int might match the return type of a GCC
11566 builtin and then its argument prototype would still apply. */
11567 #ifdef __cplusplus
11568 extern "C"
11569 #endif
11570 char waddch ();
11572 main ()
11574 return waddch ();
11576 return 0;
11578 _ACEOF
11579 if ac_fn_c_try_link "$LINENO"; then :
11580 case "$LIBEXT" in
11581 dll) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest.exe | grep "curses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11582 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'` ;;
11583 *) ac_cv_lib_soname_curses=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libcurses\\.$LIBEXT" | sed -e "s/^.*\\[\\(libcurses\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11584 if ${ac_cv_lib_soname_curses:+false} :; then :
11585 ac_cv_lib_soname_curses=`$LDD conftest$ac_exeext | grep "libcurses\\.$LIBEXT" | sed -e "s/^.*\(libcurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11586 fi ;;
11587 esac
11589 rm -f core conftest.err conftest.$ac_objext \
11590 conftest$ac_exeext conftest.$ac_ext
11591 LIBS=$ac_check_soname_save_LIBS
11593 if ${ac_cv_lib_soname_curses:+false} :; then :
11594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11595 $as_echo "not found" >&6; }
11597 else
11598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_curses" >&5
11599 $as_echo "$ac_cv_lib_soname_curses" >&6; }
11601 cat >>confdefs.h <<_ACEOF
11602 #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
11603 _ACEOF
11605 CURSES_LIBS="-lcurses"
11608 ac_save_LIBS="$LIBS"
11609 LIBS="$LIBS $CURSES_LIBS"
11610 for ac_func in mousemask
11611 do :
11612 ac_fn_c_check_func "$LINENO" "mousemask" "ac_cv_func_mousemask"
11613 if test "x$ac_cv_func_mousemask" = xyes; then :
11614 cat >>confdefs.h <<_ACEOF
11615 #define HAVE_MOUSEMASK 1
11616 _ACEOF
11619 done
11621 LIBS="$ac_save_LIBS"
11622 if test "x$ac_cv_lib_soname_curses$ac_cv_lib_soname_ncurses" = "x"; then :
11623 case "x$with_curses" in
11624 x) as_fn_append wine_notices "|lib(n)curses ${notice_platform}development files not found, curses won't be supported." ;;
11625 xno) ;;
11626 *) as_fn_error $? "lib(n)curses ${notice_platform}development files not found, curses won't be supported.
11627 This is an error since --with-curses was requested." "$LINENO" 5 ;;
11628 esac
11631 if test "x$with_sane" != "xno"
11632 then
11633 if ${SANE_CFLAGS:+false} :; then :
11634 if ${PKG_CONFIG+:} false; then :
11635 SANE_CFLAGS=`$PKG_CONFIG --cflags libsane 2>/dev/null`
11638 test "$cross_compiling" = yes || SANE_CFLAGS=${SANE_CFLAGS:-`sane-config --cflags 2>/dev/null`}
11639 if ${SANE_LIBS:+false} :; then :
11640 if ${PKG_CONFIG+:} false; then :
11641 SANE_LIBS=`$PKG_CONFIG --libs libsane 2>/dev/null`
11644 test "$cross_compiling" = yes || SANE_LIBS=${SANE_LIBS:-`sane-config --ldflags 2>/dev/null`}
11646 $as_echo "$as_me:${as_lineno-$LINENO}: libsane cflags: $SANE_CFLAGS" >&5
11647 $as_echo "$as_me:${as_lineno-$LINENO}: libsane libs: $SANE_LIBS" >&5
11648 ac_save_CPPFLAGS=$CPPFLAGS
11649 CPPFLAGS="$CPPFLAGS $SANE_CFLAGS"
11650 ac_fn_c_check_header_mongrel "$LINENO" "sane/sane.h" "ac_cv_header_sane_sane_h" "$ac_includes_default"
11651 if test "x$ac_cv_header_sane_sane_h" = xyes; then :
11652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lsane" >&5
11653 $as_echo_n "checking for -lsane... " >&6; }
11654 if ${ac_cv_lib_soname_sane+:} false; then :
11655 $as_echo_n "(cached) " >&6
11656 else
11657 ac_check_soname_save_LIBS=$LIBS
11658 LIBS="-lsane $SANE_LIBS $LIBS"
11659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11660 /* end confdefs.h. */
11662 /* Override any GCC internal prototype to avoid an error.
11663 Use char because int might match the return type of a GCC
11664 builtin and then its argument prototype would still apply. */
11665 #ifdef __cplusplus
11666 extern "C"
11667 #endif
11668 char sane_init ();
11670 main ()
11672 return sane_init ();
11674 return 0;
11676 _ACEOF
11677 if ac_fn_c_try_link "$LINENO"; then :
11678 case "$LIBEXT" in
11679 dll) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest.exe | grep "sane" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11680 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'` ;;
11681 *) ac_cv_lib_soname_sane=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libsane\\.$LIBEXT" | sed -e "s/^.*\\[\\(libsane\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11682 if ${ac_cv_lib_soname_sane:+false} :; then :
11683 ac_cv_lib_soname_sane=`$LDD conftest$ac_exeext | grep "libsane\\.$LIBEXT" | sed -e "s/^.*\(libsane\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11684 fi ;;
11685 esac
11687 rm -f core conftest.err conftest.$ac_objext \
11688 conftest$ac_exeext conftest.$ac_ext
11689 LIBS=$ac_check_soname_save_LIBS
11691 if ${ac_cv_lib_soname_sane:+false} :; then :
11692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11693 $as_echo "not found" >&6; }
11694 SANE_CFLAGS=""
11695 else
11696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_sane" >&5
11697 $as_echo "$ac_cv_lib_soname_sane" >&6; }
11699 cat >>confdefs.h <<_ACEOF
11700 #define SONAME_LIBSANE "$ac_cv_lib_soname_sane"
11701 _ACEOF
11705 else
11706 SANE_CFLAGS=""
11710 CPPFLAGS=$ac_save_CPPFLAGS
11711 test -z "$SANE_CFLAGS" || SANE_CFLAGS=`echo " $SANE_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
11712 test -z "$SANE_LIBS" || SANE_LIBS=`echo " $SANE_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
11715 if test "x$ac_cv_lib_soname_sane" = "x"; then :
11716 case "x$with_sane" in
11717 x) as_fn_append wine_notices "|libsane ${notice_platform}development files not found, scanners won't be supported." ;;
11718 xno) ;;
11719 *) as_fn_error $? "libsane ${notice_platform}development files not found, scanners won't be supported.
11720 This is an error since --with-sane was requested." "$LINENO" 5 ;;
11721 esac
11724 if test "x$with_v4l" != "xno"
11725 then
11726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lv4l1" >&5
11727 $as_echo_n "checking for -lv4l1... " >&6; }
11728 if ${ac_cv_lib_soname_v4l1+:} false; then :
11729 $as_echo_n "(cached) " >&6
11730 else
11731 ac_check_soname_save_LIBS=$LIBS
11732 LIBS="-lv4l1 $LIBS"
11733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11734 /* end confdefs.h. */
11736 /* Override any GCC internal prototype to avoid an error.
11737 Use char because int might match the return type of a GCC
11738 builtin and then its argument prototype would still apply. */
11739 #ifdef __cplusplus
11740 extern "C"
11741 #endif
11742 char v4l1_open ();
11744 main ()
11746 return v4l1_open ();
11748 return 0;
11750 _ACEOF
11751 if ac_fn_c_try_link "$LINENO"; then :
11752 case "$LIBEXT" in
11753 dll) ac_cv_lib_soname_v4l1=`$ac_cv_path_LDD conftest.exe | grep "v4l1" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11754 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'` ;;
11755 *) ac_cv_lib_soname_v4l1=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libv4l1\\.$LIBEXT" | sed -e "s/^.*\\[\\(libv4l1\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11756 if ${ac_cv_lib_soname_v4l1:+false} :; then :
11757 ac_cv_lib_soname_v4l1=`$LDD conftest$ac_exeext | grep "libv4l1\\.$LIBEXT" | sed -e "s/^.*\(libv4l1\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11758 fi ;;
11759 esac
11761 rm -f core conftest.err conftest.$ac_objext \
11762 conftest$ac_exeext conftest.$ac_ext
11763 LIBS=$ac_check_soname_save_LIBS
11765 if ${ac_cv_lib_soname_v4l1:+false} :; then :
11766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11767 $as_echo "not found" >&6; }
11769 else
11770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_v4l1" >&5
11771 $as_echo "$ac_cv_lib_soname_v4l1" >&6; }
11773 cat >>confdefs.h <<_ACEOF
11774 #define SONAME_LIBV4L1 "$ac_cv_lib_soname_v4l1"
11775 _ACEOF
11780 if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
11781 case "x$with_v4l" in
11782 x) as_fn_append wine_notices "|libv4l ${notice_platform}development files not found." ;;
11783 xno) ;;
11784 *) as_fn_error $? "libv4l ${notice_platform}development files not found.
11785 This is an error since --with-v4l was requested." "$LINENO" 5 ;;
11786 esac
11789 if test "x$with_gphoto" != "xno"
11790 then
11791 if ${GPHOTO2_CFLAGS:+false} :; then :
11792 if ${PKG_CONFIG+:} false; then :
11793 GPHOTO2_CFLAGS=`$PKG_CONFIG --cflags libgphoto2 2>/dev/null`
11796 test "$cross_compiling" = yes || GPHOTO2_CFLAGS=${GPHOTO2_CFLAGS:-`gphoto2-config --cflags 2>/dev/null`}
11797 if ${GPHOTO2_LIBS:+false} :; then :
11798 if ${PKG_CONFIG+:} false; then :
11799 GPHOTO2_LIBS=`$PKG_CONFIG --libs libgphoto2 2>/dev/null`
11802 test "$cross_compiling" = yes || GPHOTO2_LIBS=${GPHOTO2_LIBS:-`gphoto2-config --libs 2>/dev/null`}
11803 GPHOTO2_LIBS=${GPHOTO2_LIBS:-"-lgphoto2"}
11804 $as_echo "$as_me:${as_lineno-$LINENO}: libgphoto2 cflags: $GPHOTO2_CFLAGS" >&5
11805 $as_echo "$as_me:${as_lineno-$LINENO}: libgphoto2 libs: $GPHOTO2_LIBS" >&5
11806 ac_save_CPPFLAGS=$CPPFLAGS
11807 CPPFLAGS="$CPPFLAGS $GPHOTO2_CFLAGS"
11808 ac_fn_c_check_header_mongrel "$LINENO" "gphoto2-camera.h" "ac_cv_header_gphoto2_camera_h" "$ac_includes_default"
11809 if test "x$ac_cv_header_gphoto2_camera_h" = xyes; then :
11810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gp_camera_new in -lgphoto2" >&5
11811 $as_echo_n "checking for gp_camera_new in -lgphoto2... " >&6; }
11812 if ${ac_cv_lib_gphoto2_gp_camera_new+:} false; then :
11813 $as_echo_n "(cached) " >&6
11814 else
11815 ac_check_lib_save_LIBS=$LIBS
11816 LIBS="-lgphoto2 $GPHOTO2_LIBS $LIBS"
11817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11818 /* end confdefs.h. */
11820 /* Override any GCC internal prototype to avoid an error.
11821 Use char because int might match the return type of a GCC
11822 builtin and then its argument prototype would still apply. */
11823 #ifdef __cplusplus
11824 extern "C"
11825 #endif
11826 char gp_camera_new ();
11828 main ()
11830 return gp_camera_new ();
11832 return 0;
11834 _ACEOF
11835 if ac_fn_c_try_link "$LINENO"; then :
11836 ac_cv_lib_gphoto2_gp_camera_new=yes
11837 else
11838 ac_cv_lib_gphoto2_gp_camera_new=no
11840 rm -f core conftest.err conftest.$ac_objext \
11841 conftest$ac_exeext conftest.$ac_ext
11842 LIBS=$ac_check_lib_save_LIBS
11844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gphoto2_gp_camera_new" >&5
11845 $as_echo "$ac_cv_lib_gphoto2_gp_camera_new" >&6; }
11846 if test "x$ac_cv_lib_gphoto2_gp_camera_new" = xyes; then :
11848 $as_echo "#define HAVE_GPHOTO2 1" >>confdefs.h
11850 else
11851 GPHOTO2_LIBS=""; GPHOTO2_CFLAGS=""
11854 else
11855 GPHOTO2_LIBS=""; GPHOTO2_CFLAGS=""
11859 CPPFLAGS=$ac_save_CPPFLAGS
11860 test -z "$GPHOTO2_CFLAGS" || GPHOTO2_CFLAGS=`echo " $GPHOTO2_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
11861 test -z "$GPHOTO2_LIBS" || GPHOTO2_LIBS=`echo " $GPHOTO2_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
11863 if ${GPHOTO2_PORT_CFLAGS:+false} :; then :
11864 if ${PKG_CONFIG+:} false; then :
11865 GPHOTO2_PORT_CFLAGS=`$PKG_CONFIG --cflags libgphoto2_port 2>/dev/null`
11868 test "$cross_compiling" = yes || GPHOTO2_PORT_CFLAGS=${GPHOTO2_PORT_CFLAGS:-`gphoto2-port-config --cflags 2>/dev/null`}
11869 if ${GPHOTO2_PORT_LIBS:+false} :; then :
11870 if ${PKG_CONFIG+:} false; then :
11871 GPHOTO2_PORT_LIBS=`$PKG_CONFIG --libs libgphoto2_port 2>/dev/null`
11874 test "$cross_compiling" = yes || GPHOTO2_PORT_LIBS=${GPHOTO2_PORT_LIBS:-`gphoto2-port-config --libs 2>/dev/null`}
11875 GPHOTO2_PORT_LIBS=${GPHOTO2_PORT_LIBS:-"-lgphoto2_port"}
11876 $as_echo "$as_me:${as_lineno-$LINENO}: libgphoto2_port cflags: $GPHOTO2_PORT_CFLAGS" >&5
11877 $as_echo "$as_me:${as_lineno-$LINENO}: libgphoto2_port libs: $GPHOTO2_PORT_LIBS" >&5
11878 ac_save_CPPFLAGS=$CPPFLAGS
11879 CPPFLAGS="$CPPFLAGS $GPHOTO2_PORT_CFLAGS"
11880 ac_fn_c_check_header_mongrel "$LINENO" "gphoto2-port.h" "ac_cv_header_gphoto2_port_h" "$ac_includes_default"
11881 if test "x$ac_cv_header_gphoto2_port_h" = xyes; then :
11882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gp_port_info_list_new in -lgphoto2_port" >&5
11883 $as_echo_n "checking for gp_port_info_list_new in -lgphoto2_port... " >&6; }
11884 if ${ac_cv_lib_gphoto2_port_gp_port_info_list_new+:} false; then :
11885 $as_echo_n "(cached) " >&6
11886 else
11887 ac_check_lib_save_LIBS=$LIBS
11888 LIBS="-lgphoto2_port $GPHOTO2_PORT_LIBS $LIBS"
11889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11890 /* end confdefs.h. */
11892 /* Override any GCC internal prototype to avoid an error.
11893 Use char because int might match the return type of a GCC
11894 builtin and then its argument prototype would still apply. */
11895 #ifdef __cplusplus
11896 extern "C"
11897 #endif
11898 char gp_port_info_list_new ();
11900 main ()
11902 return gp_port_info_list_new ();
11904 return 0;
11906 _ACEOF
11907 if ac_fn_c_try_link "$LINENO"; then :
11908 ac_cv_lib_gphoto2_port_gp_port_info_list_new=yes
11909 else
11910 ac_cv_lib_gphoto2_port_gp_port_info_list_new=no
11912 rm -f core conftest.err conftest.$ac_objext \
11913 conftest$ac_exeext conftest.$ac_ext
11914 LIBS=$ac_check_lib_save_LIBS
11916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gphoto2_port_gp_port_info_list_new" >&5
11917 $as_echo "$ac_cv_lib_gphoto2_port_gp_port_info_list_new" >&6; }
11918 if test "x$ac_cv_lib_gphoto2_port_gp_port_info_list_new" = xyes; then :
11920 $as_echo "#define HAVE_GPHOTO2_PORT 1" >>confdefs.h
11922 else
11923 GPHOTO2_PORT_LIBS=""; GPHOTO2_PORT_CFLAGS=""
11926 else
11927 GPHOTO2_PORT_LIBS=""; GPHOTO2_PORT_CFLAGS=""
11931 CPPFLAGS=$ac_save_CPPFLAGS
11932 test -z "$GPHOTO2_PORT_CFLAGS" || GPHOTO2_PORT_CFLAGS=`echo " $GPHOTO2_PORT_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
11933 test -z "$GPHOTO2_PORT_LIBS" || GPHOTO2_PORT_LIBS=`echo " $GPHOTO2_PORT_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
11936 if test "$ac_cv_lib_gphoto2_gp_camera_new" != "yes"; then :
11937 case "x$with_gphoto" in
11938 x) as_fn_append wine_notices "|libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported." ;;
11939 xno) ;;
11940 *) as_fn_error $? "libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported.
11941 This is an error since --with-gphoto was requested." "$LINENO" 5 ;;
11942 esac
11944 if test "$ac_cv_lib_gphoto2_port_gp_port_info_list_new" != "yes"; then :
11945 case "x$with_gphoto" in
11946 x) as_fn_append wine_notices "|libgphoto2_port ${notice_platform}development files not found, digital cameras won't be auto-detected." ;;
11947 xno) ;;
11948 *) as_fn_error $? "libgphoto2_port ${notice_platform}development files not found, digital cameras won't be auto-detected.
11949 This is an error since --with-gphoto was requested." "$LINENO" 5 ;;
11950 esac
11954 if test "$ac_cv_header_resolv_h" = "yes"
11955 then
11956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resolver library" >&5
11957 $as_echo_n "checking for resolver library... " >&6; }
11958 if ${ac_cv_have_resolv+:} false; then :
11959 $as_echo_n "(cached) " >&6
11960 else
11961 ac_save_LIBS="$LIBS"
11962 for lib in '' -lresolv
11964 LIBS="$lib $ac_save_LIBS"
11965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11966 /* end confdefs.h. */
11967 #ifdef HAVE_NETINET_IN_H
11968 #include <netinet/in.h>
11969 #endif
11970 #include <resolv.h>
11972 main ()
11974 if (!(_res.options & RES_INIT)) res_init(); res_query("foo",ns_c_in,0,0,0)
11976 return 0;
11978 _ACEOF
11979 if ac_fn_c_try_link "$LINENO"; then :
11980 ac_cv_have_resolv=${lib:-"none required"}
11981 else
11982 ac_cv_have_resolv="not found"
11984 rm -f core conftest.err conftest.$ac_objext \
11985 conftest$ac_exeext conftest.$ac_ext
11986 test "x$ac_cv_have_resolv" = "xnot found" || break
11987 done
11988 LIBS="$ac_save_LIBS"
11990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_resolv" >&5
11991 $as_echo "$ac_cv_have_resolv" >&6; }
11993 case "$ac_cv_have_resolv" in
11994 "not found") ;;
11995 "none required")
11997 $as_echo "#define HAVE_RESOLV 1" >>confdefs.h
12000 $as_echo "#define HAVE_RESOLV 1" >>confdefs.h
12002 RESOLV_LIBS=$ac_cv_have_resolv
12004 esac
12007 if test "x$with_cms" != "xno"
12008 then
12009 if ${LCMS2_CFLAGS:+false} :; then :
12010 if ${PKG_CONFIG+:} false; then :
12011 LCMS2_CFLAGS=`$PKG_CONFIG --cflags lcms2 2>/dev/null`
12015 if ${LCMS2_LIBS:+false} :; then :
12016 if ${PKG_CONFIG+:} false; then :
12017 LCMS2_LIBS=`$PKG_CONFIG --libs lcms2 2>/dev/null`
12021 LCMS2_LIBS=${LCMS2_LIBS:-"-llcms2"}
12022 $as_echo "$as_me:${as_lineno-$LINENO}: lcms2 cflags: $LCMS2_CFLAGS" >&5
12023 $as_echo "$as_me:${as_lineno-$LINENO}: lcms2 libs: $LCMS2_LIBS" >&5
12024 ac_save_CPPFLAGS=$CPPFLAGS
12025 CPPFLAGS="$CPPFLAGS $LCMS2_CFLAGS"
12026 for ac_header in lcms2.h
12027 do :
12028 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
12029 if test "x$ac_cv_header_lcms2_h" = xyes; then :
12030 cat >>confdefs.h <<_ACEOF
12031 #define HAVE_LCMS2_H 1
12032 _ACEOF
12036 done
12038 if test "$ac_cv_header_lcms2_h" = "yes"
12039 then
12040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromFile in -llcms2" >&5
12041 $as_echo_n "checking for cmsOpenProfileFromFile in -llcms2... " >&6; }
12042 if ${ac_cv_lib_lcms2_cmsOpenProfileFromFile+:} false; then :
12043 $as_echo_n "(cached) " >&6
12044 else
12045 ac_check_lib_save_LIBS=$LIBS
12046 LIBS="-llcms2 $LCMS2_LIBS $LIBS"
12047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12048 /* end confdefs.h. */
12050 /* Override any GCC internal prototype to avoid an error.
12051 Use char because int might match the return type of a GCC
12052 builtin and then its argument prototype would still apply. */
12053 #ifdef __cplusplus
12054 extern "C"
12055 #endif
12056 char cmsOpenProfileFromFile ();
12058 main ()
12060 return cmsOpenProfileFromFile ();
12062 return 0;
12064 _ACEOF
12065 if ac_fn_c_try_link "$LINENO"; then :
12066 ac_cv_lib_lcms2_cmsOpenProfileFromFile=yes
12067 else
12068 ac_cv_lib_lcms2_cmsOpenProfileFromFile=no
12070 rm -f core conftest.err conftest.$ac_objext \
12071 conftest$ac_exeext conftest.$ac_ext
12072 LIBS=$ac_check_lib_save_LIBS
12074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsOpenProfileFromFile" >&5
12075 $as_echo "$ac_cv_lib_lcms2_cmsOpenProfileFromFile" >&6; }
12076 if test "x$ac_cv_lib_lcms2_cmsOpenProfileFromFile" = xyes; then :
12078 $as_echo "#define HAVE_LCMS2 1" >>confdefs.h
12080 else
12081 LCMS2_LIBS=""
12084 else
12085 LCMS2_CFLAGS=""
12086 LCMS2_LIBS=""
12088 CPPFLAGS=$ac_save_CPPFLAGS
12089 test -z "$LCMS2_CFLAGS" || LCMS2_CFLAGS=`echo " $LCMS2_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
12090 test -z "$LCMS2_LIBS" || LCMS2_LIBS=`echo " $LCMS2_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
12093 if test "$ac_cv_lib_lcms2_cmsOpenProfileFromFile" != "yes"; then :
12094 case "x$with_cms" in
12095 x) as_fn_append wine_notices "|liblcms2 ${notice_platform}development files not found, Color Management won't be supported." ;;
12096 xno) ;;
12097 *) as_fn_error $? "liblcms2 ${notice_platform}development files not found, Color Management won't be supported.
12098 This is an error since --with-cms was requested." "$LINENO" 5 ;;
12099 esac
12102 if test "x$with_freetype" != "xno"
12103 then
12104 if ${FREETYPE_CFLAGS:+false} :; then :
12105 if ${PKG_CONFIG+:} false; then :
12106 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags freetype2 2>/dev/null`
12109 test "$cross_compiling" = yes || FREETYPE_CFLAGS=${FREETYPE_CFLAGS:-`(freetype-config --cflags || freetype2-config --cflags) 2>/dev/null`}
12110 if ${FREETYPE_LIBS:+false} :; then :
12111 if ${PKG_CONFIG+:} false; then :
12112 FREETYPE_LIBS=`$PKG_CONFIG --libs freetype2 2>/dev/null`
12115 test "$cross_compiling" = yes || FREETYPE_LIBS=${FREETYPE_LIBS:-`(freetype-config --libs || freetype2-config --libs) 2>/dev/null`}
12116 FREETYPE_LIBS=${FREETYPE_LIBS:-"-lfreetype"}
12117 $as_echo "$as_me:${as_lineno-$LINENO}: freetype2 cflags: $FREETYPE_CFLAGS" >&5
12118 $as_echo "$as_me:${as_lineno-$LINENO}: freetype2 libs: $FREETYPE_LIBS" >&5
12119 ac_save_CPPFLAGS=$CPPFLAGS
12120 CPPFLAGS="$CPPFLAGS $FREETYPE_CFLAGS"
12121 for ac_header in ft2build.h
12122 do :
12123 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
12124 if test "x$ac_cv_header_ft2build_h" = xyes; then :
12125 cat >>confdefs.h <<_ACEOF
12126 #define HAVE_FT2BUILD_H 1
12127 _ACEOF
12131 done
12133 if test "$ac_cv_header_ft2build_h" = "yes"
12134 then
12135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfreetype" >&5
12136 $as_echo_n "checking for -lfreetype... " >&6; }
12137 if ${ac_cv_lib_soname_freetype+:} false; then :
12138 $as_echo_n "(cached) " >&6
12139 else
12140 ac_check_soname_save_LIBS=$LIBS
12141 LIBS="-lfreetype $FREETYPE_LIBS $LIBS"
12142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12143 /* end confdefs.h. */
12145 /* Override any GCC internal prototype to avoid an error.
12146 Use char because int might match the return type of a GCC
12147 builtin and then its argument prototype would still apply. */
12148 #ifdef __cplusplus
12149 extern "C"
12150 #endif
12151 char FT_Init_FreeType ();
12153 main ()
12155 return FT_Init_FreeType ();
12157 return 0;
12159 _ACEOF
12160 if ac_fn_c_try_link "$LINENO"; then :
12161 case "$LIBEXT" in
12162 dll) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest.exe | grep "freetype" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12163 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'` ;;
12164 *) ac_cv_lib_soname_freetype=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libfreetype\\.$LIBEXT" | sed -e "s/^.*\\[\\(libfreetype\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
12165 if ${ac_cv_lib_soname_freetype:+false} :; then :
12166 ac_cv_lib_soname_freetype=`$LDD conftest$ac_exeext | grep "libfreetype\\.$LIBEXT" | sed -e "s/^.*\(libfreetype\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12167 fi ;;
12168 esac
12170 rm -f core conftest.err conftest.$ac_objext \
12171 conftest$ac_exeext conftest.$ac_ext
12172 LIBS=$ac_check_soname_save_LIBS
12174 if ${ac_cv_lib_soname_freetype:+false} :; then :
12175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12176 $as_echo "not found" >&6; }
12177 FREETYPE_LIBS=""
12178 else
12179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_freetype" >&5
12180 $as_echo "$ac_cv_lib_soname_freetype" >&6; }
12182 cat >>confdefs.h <<_ACEOF
12183 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
12184 _ACEOF
12187 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
12189 ac_fn_c_check_type "$LINENO" "FT_TrueTypeEngineType" "ac_cv_type_FT_TrueTypeEngineType" "#include <ft2build.h>
12190 #include FT_MODULE_H
12192 if test "x$ac_cv_type_FT_TrueTypeEngineType" = xyes; then :
12194 cat >>confdefs.h <<_ACEOF
12195 #define HAVE_FT_TRUETYPEENGINETYPE 1
12196 _ACEOF
12202 else
12203 FREETYPE_CFLAGS=""
12204 FREETYPE_LIBS=""
12206 CPPFLAGS=$ac_save_CPPFLAGS
12207 test -z "$FREETYPE_CFLAGS" || FREETYPE_CFLAGS=`echo " $FREETYPE_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
12208 test -z "$FREETYPE_LIBS" || FREETYPE_LIBS=`echo " $FREETYPE_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
12211 if test "x$ac_cv_lib_soname_freetype" = x; then :
12212 case "x$with_freetype" in
12213 xno) ;;
12214 *) as_fn_error $? "FreeType ${notice_platform}development files not found. Fonts will not be built.
12215 Use the --without-freetype option if you really want this." "$LINENO" 5 ;;
12216 esac
12218 test "x$ac_cv_lib_soname_freetype" = x && enable_fonts=${enable_fonts:-no}
12220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for parport header/ppdev.h" >&5
12221 $as_echo_n "checking for parport header/ppdev.h... " >&6; }
12222 if ${ac_cv_c_ppdev+:} false; then :
12223 $as_echo_n "(cached) " >&6
12224 else
12225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12226 /* end confdefs.h. */
12227 #ifdef HAVE_SYS_IOCTL_H
12228 # include <sys/ioctl.h>
12229 #endif
12230 #include <linux/ppdev.h>
12232 main ()
12234 ioctl (1,PPCLAIM,0)
12236 return 0;
12238 _ACEOF
12239 if ac_fn_c_try_compile "$LINENO"; then :
12240 ac_cv_c_ppdev="yes"
12241 else
12242 ac_cv_c_ppdev="no"
12244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_ppdev" >&5
12247 $as_echo "$ac_cv_c_ppdev" >&6; }
12248 if test "$ac_cv_c_ppdev" = "yes"
12249 then
12251 $as_echo "#define HAVE_PPDEV 1" >>confdefs.h
12255 ac_wine_check_funcs_save_LIBS="$LIBS"
12256 LIBS="$LIBS $PTHREAD_LIBS"
12257 for ac_func in \
12258 pthread_attr_get_np \
12259 pthread_getattr_np \
12260 pthread_getthreadid_np \
12261 pthread_get_stackaddr_np \
12262 pthread_get_stacksize_np
12263 do :
12264 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12265 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12266 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12267 cat >>confdefs.h <<_ACEOF
12268 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12269 _ACEOF
12272 done
12274 LIBS="$ac_wine_check_funcs_save_LIBS"
12276 if test "$ac_cv_header_zlib_h" = "yes"
12277 then
12278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
12279 $as_echo_n "checking for inflate in -lz... " >&6; }
12280 if ${ac_cv_lib_z_inflate+:} false; then :
12281 $as_echo_n "(cached) " >&6
12282 else
12283 ac_check_lib_save_LIBS=$LIBS
12284 LIBS="-lz $LIBS"
12285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12286 /* end confdefs.h. */
12288 /* Override any GCC internal prototype to avoid an error.
12289 Use char because int might match the return type of a GCC
12290 builtin and then its argument prototype would still apply. */
12291 #ifdef __cplusplus
12292 extern "C"
12293 #endif
12294 char inflate ();
12296 main ()
12298 return inflate ();
12300 return 0;
12302 _ACEOF
12303 if ac_fn_c_try_link "$LINENO"; then :
12304 ac_cv_lib_z_inflate=yes
12305 else
12306 ac_cv_lib_z_inflate=no
12308 rm -f core conftest.err conftest.$ac_objext \
12309 conftest$ac_exeext conftest.$ac_ext
12310 LIBS=$ac_check_lib_save_LIBS
12312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
12313 $as_echo "$ac_cv_lib_z_inflate" >&6; }
12314 if test "x$ac_cv_lib_z_inflate" = xyes; then :
12316 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
12318 Z_LIBS="-lz"
12323 if test "x$Z_LIBS" = "x"; then :
12324 case "x$with_zlib" in
12325 x) as_fn_append wine_notices "|libz ${notice_platform}development files not found, data compression won't be supported." ;;
12326 xno) ;;
12327 *) as_fn_error $? "libz ${notice_platform}development files not found, data compression won't be supported.
12328 This is an error since --with-zlib was requested." "$LINENO" 5 ;;
12329 esac
12332 if test "x$enable_tools" != xno
12333 then
12334 if test "$ac_cv_header_gettext_po_h" = "yes"
12335 then
12336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for po_message_msgctxt in -lgettextpo" >&5
12337 $as_echo_n "checking for po_message_msgctxt in -lgettextpo... " >&6; }
12338 if ${ac_cv_lib_gettextpo_po_message_msgctxt+:} false; then :
12339 $as_echo_n "(cached) " >&6
12340 else
12341 ac_check_lib_save_LIBS=$LIBS
12342 LIBS="-lgettextpo $LIBS"
12343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12344 /* end confdefs.h. */
12346 /* Override any GCC internal prototype to avoid an error.
12347 Use char because int might match the return type of a GCC
12348 builtin and then its argument prototype would still apply. */
12349 #ifdef __cplusplus
12350 extern "C"
12351 #endif
12352 char po_message_msgctxt ();
12354 main ()
12356 return po_message_msgctxt ();
12358 return 0;
12360 _ACEOF
12361 if ac_fn_c_try_link "$LINENO"; then :
12362 ac_cv_lib_gettextpo_po_message_msgctxt=yes
12363 else
12364 ac_cv_lib_gettextpo_po_message_msgctxt=no
12366 rm -f core conftest.err conftest.$ac_objext \
12367 conftest$ac_exeext conftest.$ac_ext
12368 LIBS=$ac_check_lib_save_LIBS
12370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gettextpo_po_message_msgctxt" >&5
12371 $as_echo "$ac_cv_lib_gettextpo_po_message_msgctxt" >&6; }
12372 if test "x$ac_cv_lib_gettextpo_po_message_msgctxt" = xyes; then :
12374 $as_echo "#define HAVE_LIBGETTEXTPO 1" >>confdefs.h
12376 GETTEXTPO_LIBS="-lgettextpo"
12381 test "x$with_gettextpo" != xyes || if test "x$GETTEXTPO_LIBS" = "x"; then :
12382 case "x$with_gettextpo" in
12383 x) as_fn_append wine_notices "|GetText ${notice_platform}development files not found (or too old), po files can't be rebuilt." ;;
12384 xno) ;;
12385 *) as_fn_error $? "GetText ${notice_platform}development files not found (or too old), po files can't be rebuilt.
12386 This is an error since --with-gettextpo was requested." "$LINENO" 5 ;;
12387 esac
12391 if test "x$with_gstreamer" != "xno"
12392 then
12393 if ${GSTREAMER_CFLAGS:+false} :; then :
12394 if ${PKG_CONFIG+:} false; then :
12395 GSTREAMER_CFLAGS=`$PKG_CONFIG --cflags gstreamer-app-0.10 2>/dev/null`
12399 if ${GSTREAMER_LIBS:+false} :; then :
12400 if ${PKG_CONFIG+:} false; then :
12401 GSTREAMER_LIBS=`$PKG_CONFIG --libs gstreamer-app-0.10 2>/dev/null`
12406 $as_echo "$as_me:${as_lineno-$LINENO}: gstreamer-app-0.10 cflags: $GSTREAMER_CFLAGS" >&5
12407 $as_echo "$as_me:${as_lineno-$LINENO}: gstreamer-app-0.10 libs: $GSTREAMER_LIBS" >&5
12408 ac_save_CPPFLAGS=$CPPFLAGS
12409 CPPFLAGS="$CPPFLAGS $GSTREAMER_CFLAGS"
12410 ac_gst_incl=""
12411 for i in $GSTREAMER_CFLAGS
12413 case "$i" in
12414 -I*) ac_gst_incl="$ac_gst_incl $i";;
12415 esac
12416 done
12417 GSTREAMER_CFLAGS=$ac_gst_incl
12418 CPPFLAGS="$ac_save_CPPFLAGS $GSTREAMER_CFLAGS"
12419 ac_fn_c_check_header_mongrel "$LINENO" "gst/gstpad.h" "ac_cv_header_gst_gstpad_h" "$ac_includes_default"
12420 if test "x$ac_cv_header_gst_gstpad_h" = xyes; then :
12421 ac_fn_c_check_header_mongrel "$LINENO" "gst/app/gstappsink.h" "ac_cv_header_gst_app_gstappsink_h" "$ac_includes_default"
12422 if test "x$ac_cv_header_gst_app_gstappsink_h" = xyes; then :
12423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gint64 defined by gst/app/gstappsink.h is indeed 64-bit" >&5
12424 $as_echo_n "checking whether gint64 defined by gst/app/gstappsink.h is indeed 64-bit... " >&6; }
12425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12426 /* end confdefs.h. */
12427 #include <gst/app/gstappsink.h>
12429 main ()
12431 static int a[sizeof(gint64) > 4 ? 1 : -1]; if (a[0]) return 0;
12433 return 0;
12435 _ACEOF
12436 if ac_fn_c_try_compile "$LINENO"; then :
12437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12438 $as_echo "yes" >&6; }
12439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_pad_get_caps_reffed in -lgstreamer-0.10" >&5
12440 $as_echo_n "checking for gst_pad_get_caps_reffed in -lgstreamer-0.10... " >&6; }
12441 if ${ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed+:} false; then :
12442 $as_echo_n "(cached) " >&6
12443 else
12444 ac_check_lib_save_LIBS=$LIBS
12445 LIBS="-lgstreamer-0.10 $LIBS"
12446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12447 /* end confdefs.h. */
12449 /* Override any GCC internal prototype to avoid an error.
12450 Use char because int might match the return type of a GCC
12451 builtin and then its argument prototype would still apply. */
12452 #ifdef __cplusplus
12453 extern "C"
12454 #endif
12455 char gst_pad_get_caps_reffed ();
12457 main ()
12459 return gst_pad_get_caps_reffed ();
12461 return 0;
12463 _ACEOF
12464 if ac_fn_c_try_link "$LINENO"; then :
12465 ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=yes
12466 else
12467 ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=no
12469 rm -f core conftest.err conftest.$ac_objext \
12470 conftest$ac_exeext conftest.$ac_ext
12471 LIBS=$ac_check_lib_save_LIBS
12473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&5
12474 $as_echo "$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&6; }
12475 if test "x$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" = xyes; then :
12476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_app_buffer_new in -lgstapp-0.10" >&5
12477 $as_echo_n "checking for gst_app_buffer_new in -lgstapp-0.10... " >&6; }
12478 if ${ac_cv_lib_gstapp_0_10_gst_app_buffer_new+:} false; then :
12479 $as_echo_n "(cached) " >&6
12480 else
12481 ac_check_lib_save_LIBS=$LIBS
12482 LIBS="-lgstapp-0.10 $GSTREAMER_LIBS $LIBS"
12483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12484 /* end confdefs.h. */
12486 /* Override any GCC internal prototype to avoid an error.
12487 Use char because int might match the return type of a GCC
12488 builtin and then its argument prototype would still apply. */
12489 #ifdef __cplusplus
12490 extern "C"
12491 #endif
12492 char gst_app_buffer_new ();
12494 main ()
12496 return gst_app_buffer_new ();
12498 return 0;
12500 _ACEOF
12501 if ac_fn_c_try_link "$LINENO"; then :
12502 ac_cv_lib_gstapp_0_10_gst_app_buffer_new=yes
12503 else
12504 ac_cv_lib_gstapp_0_10_gst_app_buffer_new=no
12506 rm -f core conftest.err conftest.$ac_objext \
12507 conftest$ac_exeext conftest.$ac_ext
12508 LIBS=$ac_check_lib_save_LIBS
12510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&5
12511 $as_echo "$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&6; }
12512 if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = xyes; then :
12518 else
12519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12520 $as_echo "no" >&6; }
12522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12526 else
12527 GSTREAMER_CFLAGS=""
12531 CPPFLAGS=$ac_save_CPPFLAGS
12532 test -z "$GSTREAMER_CFLAGS" || GSTREAMER_CFLAGS=`echo " $GSTREAMER_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
12533 test -z "$GSTREAMER_LIBS" || GSTREAMER_LIBS=`echo " $GSTREAMER_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
12536 if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" != xyes -a "x$ac_cv_header_QuickTime_ImageCompression_h" != xyes; then :
12537 case "x$with_gstreamer" in
12538 x) as_fn_append wine_notices "|gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled" ;;
12539 xno) ;;
12540 *) as_fn_error $? "gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled
12541 This is an error since --with-gstreamer was requested." "$LINENO" 5 ;;
12542 esac
12544 test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = xyes || enable_winegstreamer=${enable_winegstreamer:-no}
12546 ALSA_LIBS=""
12548 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
12549 then
12550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_hw_params_get_access_mask in -lasound" >&5
12551 $as_echo_n "checking for snd_pcm_hw_params_get_access_mask in -lasound... " >&6; }
12552 if ${ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask+:} false; then :
12553 $as_echo_n "(cached) " >&6
12554 else
12555 ac_check_lib_save_LIBS=$LIBS
12556 LIBS="-lasound $LIBS"
12557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12558 /* end confdefs.h. */
12560 /* Override any GCC internal prototype to avoid an error.
12561 Use char because int might match the return type of a GCC
12562 builtin and then its argument prototype would still apply. */
12563 #ifdef __cplusplus
12564 extern "C"
12565 #endif
12566 char snd_pcm_hw_params_get_access_mask ();
12568 main ()
12570 return snd_pcm_hw_params_get_access_mask ();
12572 return 0;
12574 _ACEOF
12575 if ac_fn_c_try_link "$LINENO"; then :
12576 ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=yes
12577 else
12578 ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=no
12580 rm -f core conftest.err conftest.$ac_objext \
12581 conftest$ac_exeext conftest.$ac_ext
12582 LIBS=$ac_check_lib_save_LIBS
12584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&5
12585 $as_echo "$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&6; }
12586 if test "x$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" = xyes; then :
12587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12588 /* end confdefs.h. */
12589 #ifdef HAVE_ALSA_ASOUNDLIB_H
12590 #include <alsa/asoundlib.h>
12591 #elif defined(HAVE_SYS_ASOUNDLIB_H)
12592 #include <sys/asoundlib.h>
12593 #endif
12595 main ()
12597 snd_pcm_hw_params_get_access_mask(NULL, NULL)
12599 return 0;
12601 _ACEOF
12602 if ac_fn_c_try_compile "$LINENO"; then :
12603 ALSA_LIBS="-lasound"
12605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12610 if test "x$with_oss" != xno
12611 then
12612 ac_save_CPPFLAGS="$CPPFLAGS"
12613 if test -f /etc/oss.conf
12614 then
12615 . /etc/oss.conf
12617 ac_oss_incl="-I${OSSLIBDIR:-/usr/lib/oss}/include"
12618 CPPFLAGS="$CPPFLAGS $ac_oss_incl"
12619 ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
12620 if test "x$ac_cv_header_sys_soundcard_h" = xyes; then :
12621 ac_fn_c_check_member "$LINENO" "oss_sysinfo" "numaudioengines" "ac_cv_member_oss_sysinfo_numaudioengines" "#include <sys/soundcard.h>
12623 if test "x$ac_cv_member_oss_sysinfo_numaudioengines" = xyes; then :
12625 cat >>confdefs.h <<_ACEOF
12626 #define HAVE_OSS_SYSINFO_NUMAUDIOENGINES 1
12627 _ACEOF
12629 OSS4_CFLAGS="$ac_oss_incl"
12636 CPPFLAGS="$ac_save_CPPFLAGS"
12637 if test "x$ac_cv_member_oss_sysinfo_numaudioengines" != xyes
12638 then
12639 as_fn_append wine_notices "|OSS sound system found but too old (OSSv4 needed), OSS won't be supported."
12643 if test "x$with_capi" != "xno"
12644 then
12645 if ${CAPI20_CFLAGS:+false} :; then :
12646 if ${PKG_CONFIG+:} false; then :
12647 CAPI20_CFLAGS=`$PKG_CONFIG --cflags capi20 2>/dev/null`
12651 if ${CAPI20_LIBS:+false} :; then :
12652 if ${PKG_CONFIG+:} false; then :
12653 CAPI20_LIBS=`$PKG_CONFIG --libs capi20 2>/dev/null`
12658 $as_echo "$as_me:${as_lineno-$LINENO}: capi20 cflags: $CAPI20_CFLAGS" >&5
12659 $as_echo "$as_me:${as_lineno-$LINENO}: capi20 libs: $CAPI20_LIBS" >&5
12660 ac_save_CPPFLAGS=$CPPFLAGS
12661 CPPFLAGS="$CPPFLAGS $CAPI20_CFLAGS"
12662 for ac_header in capi20.h linux/capi.h
12663 do :
12664 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12665 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define __user
12667 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12668 cat >>confdefs.h <<_ACEOF
12669 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12670 _ACEOF
12674 done
12676 if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes"
12677 then
12678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcapi20" >&5
12679 $as_echo_n "checking for -lcapi20... " >&6; }
12680 if ${ac_cv_lib_soname_capi20+:} false; then :
12681 $as_echo_n "(cached) " >&6
12682 else
12683 ac_check_soname_save_LIBS=$LIBS
12684 LIBS="-lcapi20 $CAPI20_LIBS $LIBS"
12685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12686 /* end confdefs.h. */
12688 /* Override any GCC internal prototype to avoid an error.
12689 Use char because int might match the return type of a GCC
12690 builtin and then its argument prototype would still apply. */
12691 #ifdef __cplusplus
12692 extern "C"
12693 #endif
12694 char capi20_register ();
12696 main ()
12698 return capi20_register ();
12700 return 0;
12702 _ACEOF
12703 if ac_fn_c_try_link "$LINENO"; then :
12704 case "$LIBEXT" in
12705 dll) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest.exe | grep "capi20" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12706 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'` ;;
12707 *) ac_cv_lib_soname_capi20=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libcapi20\\.$LIBEXT" | sed -e "s/^.*\\[\\(libcapi20\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
12708 if ${ac_cv_lib_soname_capi20:+false} :; then :
12709 ac_cv_lib_soname_capi20=`$LDD conftest$ac_exeext | grep "libcapi20\\.$LIBEXT" | sed -e "s/^.*\(libcapi20\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12710 fi ;;
12711 esac
12713 rm -f core conftest.err conftest.$ac_objext \
12714 conftest$ac_exeext conftest.$ac_ext
12715 LIBS=$ac_check_soname_save_LIBS
12717 if ${ac_cv_lib_soname_capi20:+false} :; then :
12718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12719 $as_echo "not found" >&6; }
12721 else
12722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_capi20" >&5
12723 $as_echo "$ac_cv_lib_soname_capi20" >&6; }
12725 cat >>confdefs.h <<_ACEOF
12726 #define SONAME_LIBCAPI20 "$ac_cv_lib_soname_capi20"
12727 _ACEOF
12732 CPPFLAGS=$ac_save_CPPFLAGS
12733 test -z "$CAPI20_CFLAGS" || CAPI20_CFLAGS=`echo " $CAPI20_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
12734 test -z "$CAPI20_LIBS" || CAPI20_LIBS=`echo " $CAPI20_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
12737 if test "x$ac_cv_lib_soname_capi20" = "x"; then :
12738 case "x$with_capi" in
12739 x) as_fn_append wine_notices "|libcapi20 ${notice_platform}development files not found, ISDN won't be supported." ;;
12740 xno) ;;
12741 *) as_fn_error $? "libcapi20 ${notice_platform}development files not found, ISDN won't be supported.
12742 This is an error since --with-capi was requested." "$LINENO" 5 ;;
12743 esac
12746 CUPS_CFLAGS=""
12748 if test "x$with_cups" != "xno"
12749 then
12750 ac_save_CPPFLAGS="$CPPFLAGS"
12751 ac_cups_cflags=`cups-config --cflags 2>/dev/null`
12752 ac_cups_libs=`cups-config --ldflags 2>/dev/null`
12753 CPPFLAGS="$CPPFLAGS $ac_cups_cflags"
12754 for ac_header in cups/cups.h
12755 do :
12756 ac_fn_c_check_header_mongrel "$LINENO" "cups/cups.h" "ac_cv_header_cups_cups_h" "$ac_includes_default"
12757 if test "x$ac_cv_header_cups_cups_h" = xyes; then :
12758 cat >>confdefs.h <<_ACEOF
12759 #define HAVE_CUPS_CUPS_H 1
12760 _ACEOF
12761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcups" >&5
12762 $as_echo_n "checking for -lcups... " >&6; }
12763 if ${ac_cv_lib_soname_cups+:} false; then :
12764 $as_echo_n "(cached) " >&6
12765 else
12766 ac_check_soname_save_LIBS=$LIBS
12767 LIBS="-lcups $ac_cups_libs $LIBS"
12768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12769 /* end confdefs.h. */
12771 /* Override any GCC internal prototype to avoid an error.
12772 Use char because int might match the return type of a GCC
12773 builtin and then its argument prototype would still apply. */
12774 #ifdef __cplusplus
12775 extern "C"
12776 #endif
12777 char cupsGetDefault ();
12779 main ()
12781 return cupsGetDefault ();
12783 return 0;
12785 _ACEOF
12786 if ac_fn_c_try_link "$LINENO"; then :
12787 case "$LIBEXT" in
12788 dll) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest.exe | grep "cups" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12789 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'` ;;
12790 *) ac_cv_lib_soname_cups=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libcups\\.$LIBEXT" | sed -e "s/^.*\\[\\(libcups\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
12791 if ${ac_cv_lib_soname_cups:+false} :; then :
12792 ac_cv_lib_soname_cups=`$LDD conftest$ac_exeext | grep "libcups\\.$LIBEXT" | sed -e "s/^.*\(libcups\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12793 fi ;;
12794 esac
12796 rm -f core conftest.err conftest.$ac_objext \
12797 conftest$ac_exeext conftest.$ac_ext
12798 LIBS=$ac_check_soname_save_LIBS
12800 if ${ac_cv_lib_soname_cups:+false} :; then :
12801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12802 $as_echo "not found" >&6; }
12804 else
12805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_cups" >&5
12806 $as_echo "$ac_cv_lib_soname_cups" >&6; }
12808 cat >>confdefs.h <<_ACEOF
12809 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
12810 _ACEOF
12812 CUPS_CFLAGS="$ac_cups_cflags"
12816 done
12818 CPPFLAGS="$ac_save_CPPFLAGS"
12820 if test "x$ac_cv_lib_soname_cups" = "x"; then :
12821 case "x$with_cups" in
12822 x) as_fn_append wine_notices "|libcups ${notice_platform}development files not found, CUPS won't be supported." ;;
12823 xno) ;;
12824 *) as_fn_error $? "libcups ${notice_platform}development files not found, CUPS won't be supported.
12825 This is an error since --with-cups was requested." "$LINENO" 5 ;;
12826 esac
12829 if test "x$with_fontconfig" != "xno"
12830 then
12831 if ${FONTCONFIG_CFLAGS:+false} :; then :
12832 if ${PKG_CONFIG+:} false; then :
12833 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags fontconfig 2>/dev/null`
12836 test "$cross_compiling" = yes || FONTCONFIG_CFLAGS=${FONTCONFIG_CFLAGS:-$X_CFLAGS}
12837 if ${FONTCONFIG_LIBS:+false} :; then :
12838 if ${PKG_CONFIG+:} false; then :
12839 FONTCONFIG_LIBS=`$PKG_CONFIG --libs fontconfig 2>/dev/null`
12842 test "$cross_compiling" = yes || FONTCONFIG_LIBS=${FONTCONFIG_LIBS:-$X_LIBS}
12844 $as_echo "$as_me:${as_lineno-$LINENO}: fontconfig cflags: $FONTCONFIG_CFLAGS" >&5
12845 $as_echo "$as_me:${as_lineno-$LINENO}: fontconfig libs: $FONTCONFIG_LIBS" >&5
12846 ac_save_CPPFLAGS=$CPPFLAGS
12847 CPPFLAGS="$CPPFLAGS $FONTCONFIG_CFLAGS"
12848 for ac_header in fontconfig/fontconfig.h
12849 do :
12850 ac_fn_c_check_header_mongrel "$LINENO" "fontconfig/fontconfig.h" "ac_cv_header_fontconfig_fontconfig_h" "$ac_includes_default"
12851 if test "x$ac_cv_header_fontconfig_fontconfig_h" = xyes; then :
12852 cat >>confdefs.h <<_ACEOF
12853 #define HAVE_FONTCONFIG_FONTCONFIG_H 1
12854 _ACEOF
12858 done
12860 if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
12861 then
12862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
12863 $as_echo_n "checking for -lfontconfig... " >&6; }
12864 if ${ac_cv_lib_soname_fontconfig+:} false; then :
12865 $as_echo_n "(cached) " >&6
12866 else
12867 ac_check_soname_save_LIBS=$LIBS
12868 LIBS="-lfontconfig $FONTCONFIG_LIBS $LIBS"
12869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12870 /* end confdefs.h. */
12872 /* Override any GCC internal prototype to avoid an error.
12873 Use char because int might match the return type of a GCC
12874 builtin and then its argument prototype would still apply. */
12875 #ifdef __cplusplus
12876 extern "C"
12877 #endif
12878 char FcInit ();
12880 main ()
12882 return FcInit ();
12884 return 0;
12886 _ACEOF
12887 if ac_fn_c_try_link "$LINENO"; then :
12888 case "$LIBEXT" in
12889 dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12890 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'` ;;
12891 *) ac_cv_lib_soname_fontconfig=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libfontconfig\\.$LIBEXT" | sed -e "s/^.*\\[\\(libfontconfig\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
12892 if ${ac_cv_lib_soname_fontconfig:+false} :; then :
12893 ac_cv_lib_soname_fontconfig=`$LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12894 fi ;;
12895 esac
12897 rm -f core conftest.err conftest.$ac_objext \
12898 conftest$ac_exeext conftest.$ac_ext
12899 LIBS=$ac_check_soname_save_LIBS
12901 if ${ac_cv_lib_soname_fontconfig:+false} :; then :
12902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12903 $as_echo "not found" >&6; }
12904 FONTCONFIG_CFLAGS=""
12905 else
12906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
12907 $as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
12909 cat >>confdefs.h <<_ACEOF
12910 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
12911 _ACEOF
12915 else
12916 FONTCONFIG_CFLAGS=""
12918 CPPFLAGS=$ac_save_CPPFLAGS
12919 test -z "$FONTCONFIG_CFLAGS" || FONTCONFIG_CFLAGS=`echo " $FONTCONFIG_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
12920 test -z "$FONTCONFIG_LIBS" || FONTCONFIG_LIBS=`echo " $FONTCONFIG_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
12923 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
12924 case "x$with_fontconfig" in
12925 x) as_fn_append wine_notices "|fontconfig ${notice_platform}development files not found, fontconfig won't be supported." ;;
12926 xno) ;;
12927 *) as_fn_error $? "fontconfig ${notice_platform}development files not found, fontconfig won't be supported.
12928 This is an error since --with-fontconfig was requested." "$LINENO" 5 ;;
12929 esac
12932 if test "$ac_cv_header_gsm_h" = "yes" -o "$ac_cv_header_gsm_gsm_h" = "yes"
12933 then
12934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgsm" >&5
12935 $as_echo_n "checking for -lgsm... " >&6; }
12936 if ${ac_cv_lib_soname_gsm+:} false; then :
12937 $as_echo_n "(cached) " >&6
12938 else
12939 ac_check_soname_save_LIBS=$LIBS
12940 LIBS="-lgsm $LIBS"
12941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12942 /* end confdefs.h. */
12944 /* Override any GCC internal prototype to avoid an error.
12945 Use char because int might match the return type of a GCC
12946 builtin and then its argument prototype would still apply. */
12947 #ifdef __cplusplus
12948 extern "C"
12949 #endif
12950 char gsm_create ();
12952 main ()
12954 return gsm_create ();
12956 return 0;
12958 _ACEOF
12959 if ac_fn_c_try_link "$LINENO"; then :
12960 case "$LIBEXT" in
12961 dll) ac_cv_lib_soname_gsm=`$ac_cv_path_LDD conftest.exe | grep "gsm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12962 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'` ;;
12963 *) ac_cv_lib_soname_gsm=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libgsm\\.$LIBEXT" | sed -e "s/^.*\\[\\(libgsm\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
12964 if ${ac_cv_lib_soname_gsm:+false} :; then :
12965 ac_cv_lib_soname_gsm=`$LDD conftest$ac_exeext | grep "libgsm\\.$LIBEXT" | sed -e "s/^.*\(libgsm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12966 fi ;;
12967 esac
12969 rm -f core conftest.err conftest.$ac_objext \
12970 conftest$ac_exeext conftest.$ac_ext
12971 LIBS=$ac_check_soname_save_LIBS
12973 if ${ac_cv_lib_soname_gsm:+false} :; then :
12974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12975 $as_echo "not found" >&6; }
12977 else
12978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gsm" >&5
12979 $as_echo "$ac_cv_lib_soname_gsm" >&6; }
12981 cat >>confdefs.h <<_ACEOF
12982 #define SONAME_LIBGSM "$ac_cv_lib_soname_gsm"
12983 _ACEOF
12988 if test "x$ac_cv_lib_soname_gsm" = "x"; then :
12989 case "x$with_gsm" in
12990 x) as_fn_append wine_notices "|libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported." ;;
12991 xno) ;;
12992 *) as_fn_error $? "libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported.
12993 This is an error since --with-gsm was requested." "$LINENO" 5 ;;
12994 esac
12997 if test "x$with_jpeg" != "xno"
12998 then
12999 if ${JPEG_CFLAGS:+false} :; then :
13000 if ${PKG_CONFIG+:} false; then :
13001 JPEG_CFLAGS=`$PKG_CONFIG --cflags libjpeg 2>/dev/null`
13005 if ${JPEG_LIBS:+false} :; then :
13006 if ${PKG_CONFIG+:} false; then :
13007 JPEG_LIBS=`$PKG_CONFIG --libs libjpeg 2>/dev/null`
13012 $as_echo "$as_me:${as_lineno-$LINENO}: libjpeg cflags: $JPEG_CFLAGS" >&5
13013 $as_echo "$as_me:${as_lineno-$LINENO}: libjpeg libs: $JPEG_LIBS" >&5
13014 ac_save_CPPFLAGS=$CPPFLAGS
13015 CPPFLAGS="$CPPFLAGS $JPEG_CFLAGS"
13016 for ac_header in jpeglib.h
13017 do :
13018 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
13019 if test "x$ac_cv_header_jpeglib_h" = xyes; then :
13020 cat >>confdefs.h <<_ACEOF
13021 #define HAVE_JPEGLIB_H 1
13022 _ACEOF
13026 done
13028 if test "$ac_cv_header_jpeglib_h" = "yes"
13029 then
13030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ljpeg" >&5
13031 $as_echo_n "checking for -ljpeg... " >&6; }
13032 if ${ac_cv_lib_soname_jpeg+:} false; then :
13033 $as_echo_n "(cached) " >&6
13034 else
13035 ac_check_soname_save_LIBS=$LIBS
13036 LIBS="-ljpeg $JPEG_LIBS $LIBS"
13037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13038 /* end confdefs.h. */
13040 /* Override any GCC internal prototype to avoid an error.
13041 Use char because int might match the return type of a GCC
13042 builtin and then its argument prototype would still apply. */
13043 #ifdef __cplusplus
13044 extern "C"
13045 #endif
13046 char jpeg_start_decompress ();
13048 main ()
13050 return jpeg_start_decompress ();
13052 return 0;
13054 _ACEOF
13055 if ac_fn_c_try_link "$LINENO"; then :
13056 case "$LIBEXT" in
13057 dll) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest.exe | grep "jpeg" | sed -e "s/dll.*/dll/"';2,$d'` ;;
13058 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'` ;;
13059 *) ac_cv_lib_soname_jpeg=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libjpeg\\.$LIBEXT" | sed -e "s/^.*\\[\\(libjpeg\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
13060 if ${ac_cv_lib_soname_jpeg:+false} :; then :
13061 ac_cv_lib_soname_jpeg=`$LDD conftest$ac_exeext | grep "libjpeg\\.$LIBEXT" | sed -e "s/^.*\(libjpeg\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
13062 fi ;;
13063 esac
13065 rm -f core conftest.err conftest.$ac_objext \
13066 conftest$ac_exeext conftest.$ac_ext
13067 LIBS=$ac_check_soname_save_LIBS
13069 if ${ac_cv_lib_soname_jpeg:+false} :; then :
13070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13071 $as_echo "not found" >&6; }
13072 JPEG_CFLAGS=""
13073 else
13074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_jpeg" >&5
13075 $as_echo "$ac_cv_lib_soname_jpeg" >&6; }
13077 cat >>confdefs.h <<_ACEOF
13078 #define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg"
13079 _ACEOF
13083 else
13084 JPEG_CFLAGS=""
13086 CPPFLAGS=$ac_save_CPPFLAGS
13087 test -z "$JPEG_CFLAGS" || JPEG_CFLAGS=`echo " $JPEG_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
13088 test -z "$JPEG_LIBS" || JPEG_LIBS=`echo " $JPEG_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
13091 if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
13092 case "x$with_jpeg" in
13093 x) as_fn_append wine_warnings "|libjpeg ${notice_platform}development files not found, JPEG won't be supported." ;;
13094 xno) ;;
13095 *) as_fn_error $? "libjpeg ${notice_platform}development files not found, JPEG won't be supported.
13096 This is an error since --with-jpeg was requested." "$LINENO" 5 ;;
13097 esac
13100 if test "x$with_png" != "xno"
13101 then
13102 if ${PNG_CFLAGS:+false} :; then :
13103 if ${PKG_CONFIG+:} false; then :
13104 PNG_CFLAGS=`$PKG_CONFIG --cflags libpng 2>/dev/null`
13107 test "$cross_compiling" = yes || PNG_CFLAGS=${PNG_CFLAGS:-$X_CFLAGS}
13108 if ${PNG_LIBS:+false} :; then :
13109 if ${PKG_CONFIG+:} false; then :
13110 PNG_LIBS=`$PKG_CONFIG --libs libpng 2>/dev/null`
13113 test "$cross_compiling" = yes || PNG_LIBS=${PNG_LIBS:-$X_LIBS}
13115 $as_echo "$as_me:${as_lineno-$LINENO}: libpng cflags: $PNG_CFLAGS" >&5
13116 $as_echo "$as_me:${as_lineno-$LINENO}: libpng libs: $PNG_LIBS" >&5
13117 ac_save_CPPFLAGS=$CPPFLAGS
13118 CPPFLAGS="$CPPFLAGS $PNG_CFLAGS"
13119 for ac_header in png.h
13120 do :
13121 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
13122 if test "x$ac_cv_header_png_h" = xyes; then :
13123 cat >>confdefs.h <<_ACEOF
13124 #define HAVE_PNG_H 1
13125 _ACEOF
13129 done
13131 if test "$ac_cv_header_png_h" = "yes"
13132 then
13133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
13134 $as_echo_n "checking for -lpng... " >&6; }
13135 if ${ac_cv_lib_soname_png+:} false; then :
13136 $as_echo_n "(cached) " >&6
13137 else
13138 ac_check_soname_save_LIBS=$LIBS
13139 LIBS="-lpng $PNG_LIBS -lm -lz $LIBS"
13140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13141 /* end confdefs.h. */
13143 /* Override any GCC internal prototype to avoid an error.
13144 Use char because int might match the return type of a GCC
13145 builtin and then its argument prototype would still apply. */
13146 #ifdef __cplusplus
13147 extern "C"
13148 #endif
13149 char png_create_read_struct ();
13151 main ()
13153 return png_create_read_struct ();
13155 return 0;
13157 _ACEOF
13158 if ac_fn_c_try_link "$LINENO"; then :
13159 case "$LIBEXT" in
13160 dll) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest.exe | grep "png" | sed -e "s/dll.*/dll/"';2,$d'` ;;
13161 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'` ;;
13162 *) 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'`
13163 if ${ac_cv_lib_soname_png:+false} :; then :
13164 ac_cv_lib_soname_png=`$LDD conftest$ac_exeext | grep "libpng[0-9]*\\.$LIBEXT" | sed -e "s/^.*\(libpng[0-9]*\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
13165 fi ;;
13166 esac
13168 rm -f core conftest.err conftest.$ac_objext \
13169 conftest$ac_exeext conftest.$ac_ext
13170 LIBS=$ac_check_soname_save_LIBS
13172 if ${ac_cv_lib_soname_png:+false} :; then :
13173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13174 $as_echo "not found" >&6; }
13175 PNG_CFLAGS=""
13176 else
13177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
13178 $as_echo "$ac_cv_lib_soname_png" >&6; }
13180 cat >>confdefs.h <<_ACEOF
13181 #define SONAME_LIBPNG "$ac_cv_lib_soname_png"
13182 _ACEOF
13184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13185 /* end confdefs.h. */
13186 #include <png.h>
13188 main ()
13190 typeof(png_set_expand_gray_1_2_4_to_8) *p
13192 return 0;
13194 _ACEOF
13195 if ac_fn_c_try_compile "$LINENO"; then :
13197 $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
13200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13202 else
13203 PNG_CFLAGS=""
13205 CPPFLAGS=$ac_save_CPPFLAGS
13206 test -z "$PNG_CFLAGS" || PNG_CFLAGS=`echo " $PNG_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
13207 test -z "$PNG_LIBS" || PNG_LIBS=`echo " $PNG_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
13210 if test "x$ac_cv_lib_soname_png" = "x"; then :
13211 case "x$with_png" in
13212 x) as_fn_append wine_warnings "|libpng ${notice_platform}development files not found, PNG won't be supported." ;;
13213 xno) ;;
13214 *) as_fn_error $? "libpng ${notice_platform}development files not found, PNG won't be supported.
13215 This is an error since --with-png was requested." "$LINENO" 5 ;;
13216 esac
13219 if test "x$with_tiff" != "xno"
13220 then
13221 if ${TIFF_CFLAGS:+false} :; then :
13222 if ${PKG_CONFIG+:} false; then :
13223 TIFF_CFLAGS=`$PKG_CONFIG --cflags libtiff 2>/dev/null`
13227 if ${TIFF_LIBS:+false} :; then :
13228 if ${PKG_CONFIG+:} false; then :
13229 TIFF_LIBS=`$PKG_CONFIG --libs libtiff 2>/dev/null`
13234 $as_echo "$as_me:${as_lineno-$LINENO}: libtiff cflags: $TIFF_CFLAGS" >&5
13235 $as_echo "$as_me:${as_lineno-$LINENO}: libtiff libs: $TIFF_LIBS" >&5
13236 ac_save_CPPFLAGS=$CPPFLAGS
13237 CPPFLAGS="$CPPFLAGS $TIFF_CFLAGS"
13238 for ac_header in tiffio.h
13239 do :
13240 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
13241 if test "x$ac_cv_header_tiffio_h" = xyes; then :
13242 cat >>confdefs.h <<_ACEOF
13243 #define HAVE_TIFFIO_H 1
13244 _ACEOF
13248 done
13250 if test "$ac_cv_header_tiffio_h" = "yes"
13251 then
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ltiff" >&5
13253 $as_echo_n "checking for -ltiff... " >&6; }
13254 if ${ac_cv_lib_soname_tiff+:} false; then :
13255 $as_echo_n "(cached) " >&6
13256 else
13257 ac_check_soname_save_LIBS=$LIBS
13258 LIBS="-ltiff $TIFF_LIBS $LIBS"
13259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13260 /* end confdefs.h. */
13262 /* Override any GCC internal prototype to avoid an error.
13263 Use char because int might match the return type of a GCC
13264 builtin and then its argument prototype would still apply. */
13265 #ifdef __cplusplus
13266 extern "C"
13267 #endif
13268 char TIFFClientOpen ();
13270 main ()
13272 return TIFFClientOpen ();
13274 return 0;
13276 _ACEOF
13277 if ac_fn_c_try_link "$LINENO"; then :
13278 case "$LIBEXT" in
13279 dll) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest.exe | grep "tiff" | sed -e "s/dll.*/dll/"';2,$d'` ;;
13280 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'` ;;
13281 *) ac_cv_lib_soname_tiff=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libtiff\\.$LIBEXT" | sed -e "s/^.*\\[\\(libtiff\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
13282 if ${ac_cv_lib_soname_tiff:+false} :; then :
13283 ac_cv_lib_soname_tiff=`$LDD conftest$ac_exeext | grep "libtiff\\.$LIBEXT" | sed -e "s/^.*\(libtiff\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
13284 fi ;;
13285 esac
13287 rm -f core conftest.err conftest.$ac_objext \
13288 conftest$ac_exeext conftest.$ac_ext
13289 LIBS=$ac_check_soname_save_LIBS
13291 if ${ac_cv_lib_soname_tiff:+false} :; then :
13292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13293 $as_echo "not found" >&6; }
13295 else
13296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_tiff" >&5
13297 $as_echo "$ac_cv_lib_soname_tiff" >&6; }
13299 cat >>confdefs.h <<_ACEOF
13300 #define SONAME_LIBTIFF "$ac_cv_lib_soname_tiff"
13301 _ACEOF
13306 CPPFLAGS=$ac_save_CPPFLAGS
13307 test -z "$TIFF_CFLAGS" || TIFF_CFLAGS=`echo " $TIFF_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
13308 test -z "$TIFF_LIBS" || TIFF_LIBS=`echo " $TIFF_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
13311 if test "x$ac_cv_lib_soname_tiff" = "x"; then :
13312 case "x$with_tiff" in
13313 x) as_fn_append wine_notices "|libtiff ${notice_platform}development files not found, TIFF won't be supported." ;;
13314 xno) ;;
13315 *) as_fn_error $? "libtiff ${notice_platform}development files not found, TIFF won't be supported.
13316 This is an error since --with-tiff was requested." "$LINENO" 5 ;;
13317 esac
13320 if test "x$with_mpg123" != "xno"
13321 then
13322 if ${MPG123_CFLAGS:+false} :; then :
13323 if ${PKG_CONFIG+:} false; then :
13324 MPG123_CFLAGS=`$PKG_CONFIG --cflags libmpg123 2>/dev/null`
13328 if ${MPG123_LIBS:+false} :; then :
13329 if ${PKG_CONFIG+:} false; then :
13330 MPG123_LIBS=`$PKG_CONFIG --libs libmpg123 2>/dev/null`
13334 MPG123_LIBS=${MPG123_LIBS:-"-lmpg123"}
13335 $as_echo "$as_me:${as_lineno-$LINENO}: libmpg123 cflags: $MPG123_CFLAGS" >&5
13336 $as_echo "$as_me:${as_lineno-$LINENO}: libmpg123 libs: $MPG123_LIBS" >&5
13337 ac_save_CPPFLAGS=$CPPFLAGS
13338 CPPFLAGS="$CPPFLAGS $MPG123_CFLAGS"
13339 for ac_header in mpg123.h
13340 do :
13341 ac_fn_c_check_header_mongrel "$LINENO" "mpg123.h" "ac_cv_header_mpg123_h" "$ac_includes_default"
13342 if test "x$ac_cv_header_mpg123_h" = xyes; then :
13343 cat >>confdefs.h <<_ACEOF
13344 #define HAVE_MPG123_H 1
13345 _ACEOF
13349 done
13351 if test "$ac_cv_header_mpg123_h" = "yes"
13352 then
13353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpg123_feed in -lmpg123" >&5
13354 $as_echo_n "checking for mpg123_feed in -lmpg123... " >&6; }
13355 if ${ac_cv_lib_mpg123_mpg123_feed+:} false; then :
13356 $as_echo_n "(cached) " >&6
13357 else
13358 ac_check_lib_save_LIBS=$LIBS
13359 LIBS="-lmpg123 $MPG123_LIBS $LIBS"
13360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13361 /* end confdefs.h. */
13363 /* Override any GCC internal prototype to avoid an error.
13364 Use char because int might match the return type of a GCC
13365 builtin and then its argument prototype would still apply. */
13366 #ifdef __cplusplus
13367 extern "C"
13368 #endif
13369 char mpg123_feed ();
13371 main ()
13373 return mpg123_feed ();
13375 return 0;
13377 _ACEOF
13378 if ac_fn_c_try_link "$LINENO"; then :
13379 ac_cv_lib_mpg123_mpg123_feed=yes
13380 else
13381 ac_cv_lib_mpg123_mpg123_feed=no
13383 rm -f core conftest.err conftest.$ac_objext \
13384 conftest$ac_exeext conftest.$ac_ext
13385 LIBS=$ac_check_lib_save_LIBS
13387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpg123_mpg123_feed" >&5
13388 $as_echo "$ac_cv_lib_mpg123_mpg123_feed" >&6; }
13389 if test "x$ac_cv_lib_mpg123_mpg123_feed" = xyes; then :
13391 else
13392 MPG123_LIBS=""
13395 else
13396 MPG123_CFLAGS=""
13397 MPG123_LIBS=""
13399 CPPFLAGS=$ac_save_CPPFLAGS
13400 test -z "$MPG123_CFLAGS" || MPG123_CFLAGS=`echo " $MPG123_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
13401 test -z "$MPG123_LIBS" || MPG123_LIBS=`echo " $MPG123_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
13404 if test "x$ac_cv_lib_mpg123_mpg123_feed" != xyes -a x"$ac_cv_header_CoreAudio_CoreAudio_h" != xyes; then :
13405 case "x$with_mpg123" in
13406 x) as_fn_append wine_notices "|libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported." ;;
13407 xno) ;;
13408 *) as_fn_error $? "libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported.
13409 This is an error since --with-mpg123 was requested." "$LINENO" 5 ;;
13410 esac
13412 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}
13414 if test "$ac_cv_header_AL_al_h" = "yes"
13415 then
13416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lopenal" >&5
13417 $as_echo_n "checking for -lopenal... " >&6; }
13418 if ${ac_cv_lib_soname_openal+:} false; then :
13419 $as_echo_n "(cached) " >&6
13420 else
13421 ac_check_soname_save_LIBS=$LIBS
13422 LIBS="-lopenal $LIBS"
13423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13424 /* end confdefs.h. */
13426 /* Override any GCC internal prototype to avoid an error.
13427 Use char because int might match the return type of a GCC
13428 builtin and then its argument prototype would still apply. */
13429 #ifdef __cplusplus
13430 extern "C"
13431 #endif
13432 char alGetSource3i ();
13434 main ()
13436 return alGetSource3i ();
13438 return 0;
13440 _ACEOF
13441 if ac_fn_c_try_link "$LINENO"; then :
13442 case "$LIBEXT" in
13443 dll) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest.exe | grep "openal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
13444 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'` ;;
13445 *) ac_cv_lib_soname_openal=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libopenal\\.$LIBEXT" | sed -e "s/^.*\\[\\(libopenal\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
13446 if ${ac_cv_lib_soname_openal:+false} :; then :
13447 ac_cv_lib_soname_openal=`$LDD conftest$ac_exeext | grep "libopenal\\.$LIBEXT" | sed -e "s/^.*\(libopenal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
13448 fi ;;
13449 esac
13451 rm -f core conftest.err conftest.$ac_objext \
13452 conftest$ac_exeext conftest.$ac_ext
13453 LIBS=$ac_check_soname_save_LIBS
13455 if ${ac_cv_lib_soname_openal:+false} :; then :
13456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13457 $as_echo "not found" >&6; }
13459 else
13460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_openal" >&5
13461 $as_echo "$ac_cv_lib_soname_openal" >&6; }
13463 cat >>confdefs.h <<_ACEOF
13464 #define SONAME_LIBOPENAL "$ac_cv_lib_soname_openal"
13465 _ACEOF
13467 OPENAL_LIBS="-lopenal"
13469 ac_cv_lib_openal=yes
13471 cat >>confdefs.h <<_ACEOF
13472 #define HAVE_OPENAL 1
13473 _ACEOF
13477 if test "x$ac_cv_lib_openal" != xyes; then :
13478 case "x$with_openal" in
13479 x) as_fn_append wine_notices "|libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported." ;;
13480 xno) ;;
13481 *) as_fn_error $? "libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported.
13482 This is an error since --with-openal was requested." "$LINENO" 5 ;;
13483 esac
13485 test "x$ac_cv_lib_openal" = xyes || enable_openal32=${enable_openal32:-no}
13487 if test "$ac_cv_header_kstat_h" = "yes"
13488 then
13489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
13490 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
13491 if ${ac_cv_lib_kstat_kstat_open+:} false; then :
13492 $as_echo_n "(cached) " >&6
13493 else
13494 ac_check_lib_save_LIBS=$LIBS
13495 LIBS="-lkstat $LIBS"
13496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13497 /* end confdefs.h. */
13499 /* Override any GCC internal prototype to avoid an error.
13500 Use char because int might match the return type of a GCC
13501 builtin and then its argument prototype would still apply. */
13502 #ifdef __cplusplus
13503 extern "C"
13504 #endif
13505 char kstat_open ();
13507 main ()
13509 return kstat_open ();
13511 return 0;
13513 _ACEOF
13514 if ac_fn_c_try_link "$LINENO"; then :
13515 ac_cv_lib_kstat_kstat_open=yes
13516 else
13517 ac_cv_lib_kstat_kstat_open=no
13519 rm -f core conftest.err conftest.$ac_objext \
13520 conftest$ac_exeext conftest.$ac_ext
13521 LIBS=$ac_check_lib_save_LIBS
13523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
13524 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
13525 if test "x$ac_cv_lib_kstat_kstat_open" = xyes; then :
13527 $as_echo "#define HAVE_LIBKSTAT 1" >>confdefs.h
13529 KSTAT_LIBS="-lkstat"
13535 if test "$ac_cv_header_libprocstat_h" = "yes"
13536 then
13537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for procstat_open_sysctl in -lprocstat" >&5
13538 $as_echo_n "checking for procstat_open_sysctl in -lprocstat... " >&6; }
13539 if ${ac_cv_lib_procstat_procstat_open_sysctl+:} false; then :
13540 $as_echo_n "(cached) " >&6
13541 else
13542 ac_check_lib_save_LIBS=$LIBS
13543 LIBS="-lprocstat $LIBS"
13544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13545 /* end confdefs.h. */
13547 /* Override any GCC internal prototype to avoid an error.
13548 Use char because int might match the return type of a GCC
13549 builtin and then its argument prototype would still apply. */
13550 #ifdef __cplusplus
13551 extern "C"
13552 #endif
13553 char procstat_open_sysctl ();
13555 main ()
13557 return procstat_open_sysctl ();
13559 return 0;
13561 _ACEOF
13562 if ac_fn_c_try_link "$LINENO"; then :
13563 ac_cv_lib_procstat_procstat_open_sysctl=yes
13564 else
13565 ac_cv_lib_procstat_procstat_open_sysctl=no
13567 rm -f core conftest.err conftest.$ac_objext \
13568 conftest$ac_exeext conftest.$ac_ext
13569 LIBS=$ac_check_lib_save_LIBS
13571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_procstat_procstat_open_sysctl" >&5
13572 $as_echo "$ac_cv_lib_procstat_procstat_open_sysctl" >&6; }
13573 if test "x$ac_cv_lib_procstat_procstat_open_sysctl" = xyes; then :
13575 $as_echo "#define HAVE_LIBPROCSTAT 1" >>confdefs.h
13577 PROCSTAT_LIBS="-lprocstat"
13583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lodbc" >&5
13584 $as_echo_n "checking for -lodbc... " >&6; }
13585 if ${ac_cv_lib_soname_odbc+:} false; then :
13586 $as_echo_n "(cached) " >&6
13587 else
13588 ac_check_soname_save_LIBS=$LIBS
13589 LIBS="-lodbc $LIBS"
13590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13591 /* end confdefs.h. */
13593 /* Override any GCC internal prototype to avoid an error.
13594 Use char because int might match the return type of a GCC
13595 builtin and then its argument prototype would still apply. */
13596 #ifdef __cplusplus
13597 extern "C"
13598 #endif
13599 char SQLConnect ();
13601 main ()
13603 return SQLConnect ();
13605 return 0;
13607 _ACEOF
13608 if ac_fn_c_try_link "$LINENO"; then :
13609 case "$LIBEXT" in
13610 dll) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest.exe | grep "odbc" | sed -e "s/dll.*/dll/"';2,$d'` ;;
13611 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'` ;;
13612 *) ac_cv_lib_soname_odbc=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libodbc\\.$LIBEXT" | sed -e "s/^.*\\[\\(libodbc\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
13613 if ${ac_cv_lib_soname_odbc:+false} :; then :
13614 ac_cv_lib_soname_odbc=`$LDD conftest$ac_exeext | grep "libodbc\\.$LIBEXT" | sed -e "s/^.*\(libodbc\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
13615 fi ;;
13616 esac
13618 rm -f core conftest.err conftest.$ac_objext \
13619 conftest$ac_exeext conftest.$ac_ext
13620 LIBS=$ac_check_soname_save_LIBS
13622 if ${ac_cv_lib_soname_odbc:+false} :; then :
13623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13624 $as_echo "not found" >&6; }
13625 cat >>confdefs.h <<_ACEOF
13626 #define SONAME_LIBODBC "libodbc.$LIBEXT"
13627 _ACEOF
13629 else
13630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_odbc" >&5
13631 $as_echo "$ac_cv_lib_soname_odbc" >&6; }
13633 cat >>confdefs.h <<_ACEOF
13634 #define SONAME_LIBODBC "$ac_cv_lib_soname_odbc"
13635 _ACEOF
13640 if test "x$with_netapi" != "xno"
13641 then
13642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lnetapi" >&5
13643 $as_echo_n "checking for -lnetapi... " >&6; }
13644 if ${ac_cv_lib_soname_netapi+:} false; then :
13645 $as_echo_n "(cached) " >&6
13646 else
13647 ac_check_soname_save_LIBS=$LIBS
13648 LIBS="-lnetapi $LIBS"
13649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13650 /* end confdefs.h. */
13652 /* Override any GCC internal prototype to avoid an error.
13653 Use char because int might match the return type of a GCC
13654 builtin and then its argument prototype would still apply. */
13655 #ifdef __cplusplus
13656 extern "C"
13657 #endif
13658 char libnetapi_init ();
13660 main ()
13662 return libnetapi_init ();
13664 return 0;
13666 _ACEOF
13667 if ac_fn_c_try_link "$LINENO"; then :
13668 case "$LIBEXT" in
13669 dll) ac_cv_lib_soname_netapi=`$ac_cv_path_LDD conftest.exe | grep "netapi" | sed -e "s/dll.*/dll/"';2,$d'` ;;
13670 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'` ;;
13671 *) ac_cv_lib_soname_netapi=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libnetapi\\.$LIBEXT" | sed -e "s/^.*\\[\\(libnetapi\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
13672 if ${ac_cv_lib_soname_netapi:+false} :; then :
13673 ac_cv_lib_soname_netapi=`$LDD conftest$ac_exeext | grep "libnetapi\\.$LIBEXT" | sed -e "s/^.*\(libnetapi\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
13674 fi ;;
13675 esac
13677 rm -f core conftest.err conftest.$ac_objext \
13678 conftest$ac_exeext conftest.$ac_ext
13679 LIBS=$ac_check_soname_save_LIBS
13681 if ${ac_cv_lib_soname_netapi:+false} :; then :
13682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13683 $as_echo "not found" >&6; }
13684 cat >>confdefs.h <<_ACEOF
13685 #define SONAME_LIBNETAPI "libnetapi.$LIBEXT"
13686 _ACEOF
13688 else
13689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_netapi" >&5
13690 $as_echo "$ac_cv_lib_soname_netapi" >&6; }
13692 cat >>confdefs.h <<_ACEOF
13693 #define SONAME_LIBNETAPI "$ac_cv_lib_soname_netapi"
13694 _ACEOF
13700 test -n "$ALSA_LIBS" || enable_winealsa_drv=${enable_winealsa_drv:-no}
13701 test -n "$COREAUDIO_LIBS" || enable_winecoreaudio_drv=${enable_winecoreaudio_drv:-no}
13702 test "x$ac_cv_member_oss_sysinfo_numaudioengines" = xyes || enable_wineoss_drv=${enable_wineoss_drv:-no}
13703 test "$ac_cv_header_linux_joystick_h" = "yes" -o "$ac_cv_header_IOKit_hid_IOHIDLib_h" = "yes" || enable_winejoystick_drv=${enable_winejoystick_drv:-no}
13705 if test "x$ALSA_LIBS$COREAUDIO_LIBS" = "x" -a \
13706 "x$ac_cv_member_oss_sysinfo_numaudioengines" != xyes -a \
13707 "x$with_alsa$with_coreaudio$with_oss" != xnonono
13708 then
13709 as_fn_append wine_warnings "|No sound system was found. Windows applications will be silent."
13713 EXTRACFLAGS=""
13715 if test "x${GCC}" = "xyes"
13716 then
13717 EXTRACFLAGS="-Wall -pipe"
13719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc strength-reduce bug" >&5
13720 $as_echo_n "checking for gcc strength-reduce bug... " >&6; }
13721 if ${ac_cv_c_gcc_strength_bug+:} false; then :
13722 $as_echo_n "(cached) " >&6
13723 else
13724 if test "$cross_compiling" = yes; then :
13725 ac_cv_c_gcc_strength_bug="yes"
13726 else
13727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13728 /* end confdefs.h. */
13729 int L[4] = {0,1,2,3};
13731 main ()
13733 static int Array[3];
13734 unsigned int B = 3;
13735 int i;
13736 for(i=0; i<B; i++) Array[i] = i - 3;
13737 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
13738 L[i] = 4;
13739 return (Array[1] != -2 || L[2] != 3)
13741 return 0;
13743 _ACEOF
13744 if ac_fn_c_try_run "$LINENO"; then :
13745 ac_cv_c_gcc_strength_bug="no"
13746 else
13747 ac_cv_c_gcc_strength_bug="yes"
13749 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13750 conftest.$ac_objext conftest.beam conftest.$ac_ext
13754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gcc_strength_bug" >&5
13755 $as_echo "$ac_cv_c_gcc_strength_bug" >&6; }
13756 if test "$ac_cv_c_gcc_strength_bug" = "yes"
13757 then
13758 EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
13761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-builtin" >&5
13762 $as_echo_n "checking whether the compiler supports -fno-builtin... " >&6; }
13763 if ${ac_cv_cflags__fno_builtin+:} false; then :
13764 $as_echo_n "(cached) " >&6
13765 else
13766 ac_wine_try_cflags_saved=$CFLAGS
13767 CFLAGS="$CFLAGS -fno-builtin"
13768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13769 /* end confdefs.h. */
13770 int main(int argc, char **argv) { return 0; }
13771 _ACEOF
13772 if ac_fn_c_try_link "$LINENO"; then :
13773 ac_cv_cflags__fno_builtin=yes
13774 else
13775 ac_cv_cflags__fno_builtin=no
13777 rm -f core conftest.err conftest.$ac_objext \
13778 conftest$ac_exeext conftest.$ac_ext
13779 CFLAGS=$ac_wine_try_cflags_saved
13781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_builtin" >&5
13782 $as_echo "$ac_cv_cflags__fno_builtin" >&6; }
13783 if test "x$ac_cv_cflags__fno_builtin" = xyes; then :
13784 BUILTINFLAG="-fno-builtin"
13787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-strict-aliasing" >&5
13788 $as_echo_n "checking whether the compiler supports -fno-strict-aliasing... " >&6; }
13789 if ${ac_cv_cflags__fno_strict_aliasing+:} false; then :
13790 $as_echo_n "(cached) " >&6
13791 else
13792 ac_wine_try_cflags_saved=$CFLAGS
13793 CFLAGS="$CFLAGS -fno-strict-aliasing"
13794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13795 /* end confdefs.h. */
13796 int main(int argc, char **argv) { return 0; }
13797 _ACEOF
13798 if ac_fn_c_try_link "$LINENO"; then :
13799 ac_cv_cflags__fno_strict_aliasing=yes
13800 else
13801 ac_cv_cflags__fno_strict_aliasing=no
13803 rm -f core conftest.err conftest.$ac_objext \
13804 conftest$ac_exeext conftest.$ac_ext
13805 CFLAGS=$ac_wine_try_cflags_saved
13807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_strict_aliasing" >&5
13808 $as_echo "$ac_cv_cflags__fno_strict_aliasing" >&6; }
13809 if test "x$ac_cv_cflags__fno_strict_aliasing" = xyes; then :
13810 EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
13812 saved_CFLAGS=$CFLAGS
13813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Werror=unknown-warning-option" >&5
13814 $as_echo_n "checking whether the compiler supports -Werror=unknown-warning-option... " >&6; }
13815 if ${ac_cv_cflags__Werror_unknown_warning_option+:} false; then :
13816 $as_echo_n "(cached) " >&6
13817 else
13818 ac_wine_try_cflags_saved=$CFLAGS
13819 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13821 /* end confdefs.h. */
13822 int main(int argc, char **argv) { return 0; }
13823 _ACEOF
13824 if ac_fn_c_try_link "$LINENO"; then :
13825 ac_cv_cflags__Werror_unknown_warning_option=yes
13826 else
13827 ac_cv_cflags__Werror_unknown_warning_option=no
13829 rm -f core conftest.err conftest.$ac_objext \
13830 conftest$ac_exeext conftest.$ac_ext
13831 CFLAGS=$ac_wine_try_cflags_saved
13833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Werror_unknown_warning_option" >&5
13834 $as_echo "$ac_cv_cflags__Werror_unknown_warning_option" >&6; }
13835 if test "x$ac_cv_cflags__Werror_unknown_warning_option" = xyes; then :
13836 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wdeclaration-after-statement" >&5
13839 $as_echo_n "checking whether the compiler supports -Wdeclaration-after-statement... " >&6; }
13840 if ${ac_cv_cflags__Wdeclaration_after_statement+:} false; then :
13841 $as_echo_n "(cached) " >&6
13842 else
13843 ac_wine_try_cflags_saved=$CFLAGS
13844 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
13845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13846 /* end confdefs.h. */
13847 int main(int argc, char **argv) { return 0; }
13848 _ACEOF
13849 if ac_fn_c_try_link "$LINENO"; then :
13850 ac_cv_cflags__Wdeclaration_after_statement=yes
13851 else
13852 ac_cv_cflags__Wdeclaration_after_statement=no
13854 rm -f core conftest.err conftest.$ac_objext \
13855 conftest$ac_exeext conftest.$ac_ext
13856 CFLAGS=$ac_wine_try_cflags_saved
13858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wdeclaration_after_statement" >&5
13859 $as_echo "$ac_cv_cflags__Wdeclaration_after_statement" >&6; }
13860 if test "x$ac_cv_cflags__Wdeclaration_after_statement" = xyes; then :
13861 EXTRACFLAGS="$EXTRACFLAGS -Wdeclaration-after-statement"
13863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wempty-body" >&5
13864 $as_echo_n "checking whether the compiler supports -Wempty-body... " >&6; }
13865 if ${ac_cv_cflags__Wempty_body+:} false; then :
13866 $as_echo_n "(cached) " >&6
13867 else
13868 ac_wine_try_cflags_saved=$CFLAGS
13869 CFLAGS="$CFLAGS -Wempty-body"
13870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13871 /* end confdefs.h. */
13872 int main(int argc, char **argv) { return 0; }
13873 _ACEOF
13874 if ac_fn_c_try_link "$LINENO"; then :
13875 ac_cv_cflags__Wempty_body=yes
13876 else
13877 ac_cv_cflags__Wempty_body=no
13879 rm -f core conftest.err conftest.$ac_objext \
13880 conftest$ac_exeext conftest.$ac_ext
13881 CFLAGS=$ac_wine_try_cflags_saved
13883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wempty_body" >&5
13884 $as_echo "$ac_cv_cflags__Wempty_body" >&6; }
13885 if test "x$ac_cv_cflags__Wempty_body" = xyes; then :
13886 EXTRACFLAGS="$EXTRACFLAGS -Wempty-body"
13888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wignored-qualifiers" >&5
13889 $as_echo_n "checking whether the compiler supports -Wignored-qualifiers... " >&6; }
13890 if ${ac_cv_cflags__Wignored_qualifiers+:} false; then :
13891 $as_echo_n "(cached) " >&6
13892 else
13893 ac_wine_try_cflags_saved=$CFLAGS
13894 CFLAGS="$CFLAGS -Wignored-qualifiers"
13895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13896 /* end confdefs.h. */
13897 int main(int argc, char **argv) { return 0; }
13898 _ACEOF
13899 if ac_fn_c_try_link "$LINENO"; then :
13900 ac_cv_cflags__Wignored_qualifiers=yes
13901 else
13902 ac_cv_cflags__Wignored_qualifiers=no
13904 rm -f core conftest.err conftest.$ac_objext \
13905 conftest$ac_exeext conftest.$ac_ext
13906 CFLAGS=$ac_wine_try_cflags_saved
13908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wignored_qualifiers" >&5
13909 $as_echo "$ac_cv_cflags__Wignored_qualifiers" >&6; }
13910 if test "x$ac_cv_cflags__Wignored_qualifiers" = xyes; then :
13911 EXTRACFLAGS="$EXTRACFLAGS -Wignored-qualifiers"
13913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wstrict-prototypes" >&5
13914 $as_echo_n "checking whether the compiler supports -Wstrict-prototypes... " >&6; }
13915 if ${ac_cv_cflags__Wstrict_prototypes+:} false; then :
13916 $as_echo_n "(cached) " >&6
13917 else
13918 ac_wine_try_cflags_saved=$CFLAGS
13919 CFLAGS="$CFLAGS -Wstrict-prototypes"
13920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13921 /* end confdefs.h. */
13922 int main(int argc, char **argv) { return 0; }
13923 _ACEOF
13924 if ac_fn_c_try_link "$LINENO"; then :
13925 ac_cv_cflags__Wstrict_prototypes=yes
13926 else
13927 ac_cv_cflags__Wstrict_prototypes=no
13929 rm -f core conftest.err conftest.$ac_objext \
13930 conftest$ac_exeext conftest.$ac_ext
13931 CFLAGS=$ac_wine_try_cflags_saved
13933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wstrict_prototypes" >&5
13934 $as_echo "$ac_cv_cflags__Wstrict_prototypes" >&6; }
13935 if test "x$ac_cv_cflags__Wstrict_prototypes" = xyes; then :
13936 EXTRACFLAGS="$EXTRACFLAGS -Wstrict-prototypes"
13938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wtype-limits" >&5
13939 $as_echo_n "checking whether the compiler supports -Wtype-limits... " >&6; }
13940 if ${ac_cv_cflags__Wtype_limits+:} false; then :
13941 $as_echo_n "(cached) " >&6
13942 else
13943 ac_wine_try_cflags_saved=$CFLAGS
13944 CFLAGS="$CFLAGS -Wtype-limits"
13945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13946 /* end confdefs.h. */
13947 int main(int argc, char **argv) { return 0; }
13948 _ACEOF
13949 if ac_fn_c_try_link "$LINENO"; then :
13950 ac_cv_cflags__Wtype_limits=yes
13951 else
13952 ac_cv_cflags__Wtype_limits=no
13954 rm -f core conftest.err conftest.$ac_objext \
13955 conftest$ac_exeext conftest.$ac_ext
13956 CFLAGS=$ac_wine_try_cflags_saved
13958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wtype_limits" >&5
13959 $as_echo "$ac_cv_cflags__Wtype_limits" >&6; }
13960 if test "x$ac_cv_cflags__Wtype_limits" = xyes; then :
13961 EXTRACFLAGS="$EXTRACFLAGS -Wtype-limits"
13963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wunused-but-set-parameter" >&5
13964 $as_echo_n "checking whether the compiler supports -Wunused-but-set-parameter... " >&6; }
13965 if ${ac_cv_cflags__Wunused_but_set_parameter+:} false; then :
13966 $as_echo_n "(cached) " >&6
13967 else
13968 ac_wine_try_cflags_saved=$CFLAGS
13969 CFLAGS="$CFLAGS -Wunused-but-set-parameter"
13970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13971 /* end confdefs.h. */
13972 int main(int argc, char **argv) { return 0; }
13973 _ACEOF
13974 if ac_fn_c_try_link "$LINENO"; then :
13975 ac_cv_cflags__Wunused_but_set_parameter=yes
13976 else
13977 ac_cv_cflags__Wunused_but_set_parameter=no
13979 rm -f core conftest.err conftest.$ac_objext \
13980 conftest$ac_exeext conftest.$ac_ext
13981 CFLAGS=$ac_wine_try_cflags_saved
13983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wunused_but_set_parameter" >&5
13984 $as_echo "$ac_cv_cflags__Wunused_but_set_parameter" >&6; }
13985 if test "x$ac_cv_cflags__Wunused_but_set_parameter" = xyes; then :
13986 EXTRACFLAGS="$EXTRACFLAGS -Wunused-but-set-parameter"
13988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wvla" >&5
13989 $as_echo_n "checking whether the compiler supports -Wvla... " >&6; }
13990 if ${ac_cv_cflags__Wvla+:} false; then :
13991 $as_echo_n "(cached) " >&6
13992 else
13993 ac_wine_try_cflags_saved=$CFLAGS
13994 CFLAGS="$CFLAGS -Wvla"
13995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13996 /* end confdefs.h. */
13997 int main(int argc, char **argv) { return 0; }
13998 _ACEOF
13999 if ac_fn_c_try_link "$LINENO"; then :
14000 ac_cv_cflags__Wvla=yes
14001 else
14002 ac_cv_cflags__Wvla=no
14004 rm -f core conftest.err conftest.$ac_objext \
14005 conftest$ac_exeext conftest.$ac_ext
14006 CFLAGS=$ac_wine_try_cflags_saved
14008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wvla" >&5
14009 $as_echo "$ac_cv_cflags__Wvla" >&6; }
14010 if test "x$ac_cv_cflags__Wvla" = xyes; then :
14011 EXTRACFLAGS="$EXTRACFLAGS -Wvla"
14013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wwrite-strings" >&5
14014 $as_echo_n "checking whether the compiler supports -Wwrite-strings... " >&6; }
14015 if ${ac_cv_cflags__Wwrite_strings+:} false; then :
14016 $as_echo_n "(cached) " >&6
14017 else
14018 ac_wine_try_cflags_saved=$CFLAGS
14019 CFLAGS="$CFLAGS -Wwrite-strings"
14020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14021 /* end confdefs.h. */
14022 int main(int argc, char **argv) { return 0; }
14023 _ACEOF
14024 if ac_fn_c_try_link "$LINENO"; then :
14025 ac_cv_cflags__Wwrite_strings=yes
14026 else
14027 ac_cv_cflags__Wwrite_strings=no
14029 rm -f core conftest.err conftest.$ac_objext \
14030 conftest$ac_exeext conftest.$ac_ext
14031 CFLAGS=$ac_wine_try_cflags_saved
14033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wwrite_strings" >&5
14034 $as_echo "$ac_cv_cflags__Wwrite_strings" >&6; }
14035 if test "x$ac_cv_cflags__Wwrite_strings" = xyes; then :
14036 EXTRACFLAGS="$EXTRACFLAGS -Wwrite-strings"
14039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wpointer-arith" >&5
14040 $as_echo_n "checking whether the compiler supports -Wpointer-arith... " >&6; }
14041 if ${ac_cv_cflags__Wpointer_arith+:} false; then :
14042 $as_echo_n "(cached) " >&6
14043 else
14044 ac_wine_try_cflags_saved=$CFLAGS
14045 CFLAGS="$CFLAGS -Wpointer-arith"
14046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14047 /* end confdefs.h. */
14048 int main(int argc, char **argv) { return 0; }
14049 _ACEOF
14050 if ac_fn_c_try_link "$LINENO"; then :
14051 ac_cv_cflags__Wpointer_arith=yes
14052 else
14053 ac_cv_cflags__Wpointer_arith=no
14055 rm -f core conftest.err conftest.$ac_objext \
14056 conftest$ac_exeext conftest.$ac_ext
14057 CFLAGS=$ac_wine_try_cflags_saved
14059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wpointer_arith" >&5
14060 $as_echo "$ac_cv_cflags__Wpointer_arith" >&6; }
14061 if test "x$ac_cv_cflags__Wpointer_arith" = xyes; then :
14062 saved_string_h_CFLAGS=$CFLAGS
14063 CFLAGS="$CFLAGS -Wpointer-arith -Werror"
14064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wpointer-arith" >&5
14065 $as_echo_n "checking for broken string.h that generates warnings with -Wpointer-arith... " >&6; }
14066 if ${ac_cv_c_string_h_warnings+:} false; then :
14067 $as_echo_n "(cached) " >&6
14068 else
14069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14070 /* end confdefs.h. */
14071 #include <string.h>
14073 main ()
14077 return 0;
14079 _ACEOF
14080 if ac_fn_c_try_compile "$LINENO"; then :
14081 ac_cv_c_string_h_warnings=no
14082 else
14083 ac_cv_c_string_h_warnings=yes
14085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_string_h_warnings" >&5
14088 $as_echo "$ac_cv_c_string_h_warnings" >&6; }
14089 test "$ac_cv_c_string_h_warnings" = yes || EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
14090 CFLAGS=$saved_string_h_CFLAGS
14093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wlogical-op" >&5
14094 $as_echo_n "checking whether the compiler supports -Wlogical-op... " >&6; }
14095 if ${ac_cv_cflags__Wlogical_op+:} false; then :
14096 $as_echo_n "(cached) " >&6
14097 else
14098 ac_wine_try_cflags_saved=$CFLAGS
14099 CFLAGS="$CFLAGS -Wlogical-op"
14100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14101 /* end confdefs.h. */
14102 int main(int argc, char **argv) { return 0; }
14103 _ACEOF
14104 if ac_fn_c_try_link "$LINENO"; then :
14105 ac_cv_cflags__Wlogical_op=yes
14106 else
14107 ac_cv_cflags__Wlogical_op=no
14109 rm -f core conftest.err conftest.$ac_objext \
14110 conftest$ac_exeext conftest.$ac_ext
14111 CFLAGS=$ac_wine_try_cflags_saved
14113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wlogical_op" >&5
14114 $as_echo "$ac_cv_cflags__Wlogical_op" >&6; }
14115 if test "x$ac_cv_cflags__Wlogical_op" = xyes; then :
14116 saved_string_h_CFLAGS=$CFLAGS
14117 CFLAGS="$CFLAGS -Wlogical-op -Werror"
14118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wlogical-op" >&5
14119 $as_echo_n "checking for broken string.h that generates warnings with -Wlogical-op... " >&6; }
14120 if ${ac_cv_c_logicalop_noisy+:} false; then :
14121 $as_echo_n "(cached) " >&6
14122 else
14123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14124 /* end confdefs.h. */
14125 #include <string.h>
14126 char*f(const char *h,char n) {return strchr(h,n);}
14128 main ()
14132 return 0;
14134 _ACEOF
14135 if ac_fn_c_try_compile "$LINENO"; then :
14136 ac_cv_c_logicalop_noisy=no
14137 else
14138 ac_cv_c_logicalop_noisy=yes
14140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_logicalop_noisy" >&5
14143 $as_echo "$ac_cv_c_logicalop_noisy" >&6; }
14144 CFLAGS=$saved_string_h_CFLAGS
14145 test "$ac_cv_c_logicalop_noisy" = yes || EXTRACFLAGS="$EXTRACFLAGS -Wlogical-op"
14148 CFLAGS=$saved_CFLAGS
14150 for ac_flag in $CFLAGS; do
14151 case $ac_flag in
14152 -g) case $host_os in
14153 darwin*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -gstabs+" >&5
14154 $as_echo_n "checking whether the compiler supports -gstabs+... " >&6; }
14155 if ${ac_cv_cflags__gstabsp+:} false; then :
14156 $as_echo_n "(cached) " >&6
14157 else
14158 ac_wine_try_cflags_saved=$CFLAGS
14159 CFLAGS="$CFLAGS -gstabs+"
14160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14161 /* end confdefs.h. */
14162 int main(int argc, char **argv) { return 0; }
14163 _ACEOF
14164 if ac_fn_c_try_link "$LINENO"; then :
14165 ac_cv_cflags__gstabsp=yes
14166 else
14167 ac_cv_cflags__gstabsp=no
14169 rm -f core conftest.err conftest.$ac_objext \
14170 conftest$ac_exeext conftest.$ac_ext
14171 CFLAGS=$ac_wine_try_cflags_saved
14173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__gstabsp" >&5
14174 $as_echo "$ac_cv_cflags__gstabsp" >&6; }
14175 if test "x$ac_cv_cflags__gstabsp" = xyes; then :
14176 EXTRACFLAGS="$EXTRACFLAGS -gstabs+"
14177 fi ;;
14178 *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -gdwarf-2" >&5
14179 $as_echo_n "checking whether the compiler supports -gdwarf-2... " >&6; }
14180 if ${ac_cv_cflags__gdwarf_2+:} false; then :
14181 $as_echo_n "(cached) " >&6
14182 else
14183 ac_wine_try_cflags_saved=$CFLAGS
14184 CFLAGS="$CFLAGS -gdwarf-2"
14185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14186 /* end confdefs.h. */
14187 int main(int argc, char **argv) { return 0; }
14188 _ACEOF
14189 if ac_fn_c_try_link "$LINENO"; then :
14190 ac_cv_cflags__gdwarf_2=yes
14191 else
14192 ac_cv_cflags__gdwarf_2=no
14194 rm -f core conftest.err conftest.$ac_objext \
14195 conftest$ac_exeext conftest.$ac_ext
14196 CFLAGS=$ac_wine_try_cflags_saved
14198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__gdwarf_2" >&5
14199 $as_echo "$ac_cv_cflags__gdwarf_2" >&6; }
14200 if test "x$ac_cv_cflags__gdwarf_2" = xyes; then :
14201 EXTRACFLAGS="$EXTRACFLAGS -gdwarf-2"
14203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -gstrict-dwarf" >&5
14204 $as_echo_n "checking whether the compiler supports -gstrict-dwarf... " >&6; }
14205 if ${ac_cv_cflags__gstrict_dwarf+:} false; then :
14206 $as_echo_n "(cached) " >&6
14207 else
14208 ac_wine_try_cflags_saved=$CFLAGS
14209 CFLAGS="$CFLAGS -gstrict-dwarf"
14210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14211 /* end confdefs.h. */
14212 int main(int argc, char **argv) { return 0; }
14213 _ACEOF
14214 if ac_fn_c_try_link "$LINENO"; then :
14215 ac_cv_cflags__gstrict_dwarf=yes
14216 else
14217 ac_cv_cflags__gstrict_dwarf=no
14219 rm -f core conftest.err conftest.$ac_objext \
14220 conftest$ac_exeext conftest.$ac_ext
14221 CFLAGS=$ac_wine_try_cflags_saved
14223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__gstrict_dwarf" >&5
14224 $as_echo "$ac_cv_cflags__gstrict_dwarf" >&6; }
14225 if test "x$ac_cv_cflags__gstrict_dwarf" = xyes; then :
14226 EXTRACFLAGS="$EXTRACFLAGS -gstrict-dwarf"
14227 fi ;;
14228 esac ;;
14229 esac
14230 done
14232 case $host_cpu in
14233 *i[3456789]86*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-omit-frame-pointer" >&5
14234 $as_echo_n "checking whether the compiler supports -fno-omit-frame-pointer... " >&6; }
14235 if ${ac_cv_cflags__fno_omit_frame_pointer+:} false; then :
14236 $as_echo_n "(cached) " >&6
14237 else
14238 ac_wine_try_cflags_saved=$CFLAGS
14239 CFLAGS="$CFLAGS -fno-omit-frame-pointer"
14240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14241 /* end confdefs.h. */
14242 int main(int argc, char **argv) { return 0; }
14243 _ACEOF
14244 if ac_fn_c_try_link "$LINENO"; then :
14245 ac_cv_cflags__fno_omit_frame_pointer=yes
14246 else
14247 ac_cv_cflags__fno_omit_frame_pointer=no
14249 rm -f core conftest.err conftest.$ac_objext \
14250 conftest$ac_exeext conftest.$ac_ext
14251 CFLAGS=$ac_wine_try_cflags_saved
14253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_omit_frame_pointer" >&5
14254 $as_echo "$ac_cv_cflags__fno_omit_frame_pointer" >&6; }
14255 if test "x$ac_cv_cflags__fno_omit_frame_pointer" = xyes; then :
14256 EXTRACFLAGS="$EXTRACFLAGS -fno-omit-frame-pointer"
14257 fi ;;
14258 esac
14260 case $host in
14261 x86_64-*mingw32*|x86_64-*cygwin*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wno-format" >&5
14262 $as_echo_n "checking whether the compiler supports -Wno-format... " >&6; }
14263 if ${ac_cv_cflags__Wno_format+:} false; then :
14264 $as_echo_n "(cached) " >&6
14265 else
14266 ac_wine_try_cflags_saved=$CFLAGS
14267 CFLAGS="$CFLAGS -Wno-format"
14268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14269 /* end confdefs.h. */
14270 int main(int argc, char **argv) { return 0; }
14271 _ACEOF
14272 if ac_fn_c_try_link "$LINENO"; then :
14273 ac_cv_cflags__Wno_format=yes
14274 else
14275 ac_cv_cflags__Wno_format=no
14277 rm -f core conftest.err conftest.$ac_objext \
14278 conftest$ac_exeext conftest.$ac_ext
14279 CFLAGS=$ac_wine_try_cflags_saved
14281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wno_format" >&5
14282 $as_echo "$ac_cv_cflags__Wno_format" >&6; }
14283 if test "x$ac_cv_cflags__Wno_format" = xyes; then :
14284 EXTRACFLAGS="$EXTRACFLAGS -Wno-format"
14285 fi ;;
14286 esac
14288 if test "x$enable_maintainer_mode" = "xyes"
14289 then
14290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Werror" >&5
14291 $as_echo_n "checking whether the compiler supports -Werror... " >&6; }
14292 if ${ac_cv_cflags__Werror+:} false; then :
14293 $as_echo_n "(cached) " >&6
14294 else
14295 ac_wine_try_cflags_saved=$CFLAGS
14296 CFLAGS="$CFLAGS -Werror"
14297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14298 /* end confdefs.h. */
14299 int main(int argc, char **argv) { return 0; }
14300 _ACEOF
14301 if ac_fn_c_try_link "$LINENO"; then :
14302 ac_cv_cflags__Werror=yes
14303 else
14304 ac_cv_cflags__Werror=no
14306 rm -f core conftest.err conftest.$ac_objext \
14307 conftest$ac_exeext conftest.$ac_ext
14308 CFLAGS=$ac_wine_try_cflags_saved
14310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Werror" >&5
14311 $as_echo "$ac_cv_cflags__Werror" >&6; }
14312 if test "x$ac_cv_cflags__Werror" = xyes; then :
14313 EXTRACFLAGS="$EXTRACFLAGS -Werror"
14317 saved_CFLAGS="$CFLAGS"
14318 CFLAGS="$CFLAGS -Werror"
14319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ms_hook_prologue attribute" >&5
14320 $as_echo_n "checking for ms_hook_prologue attribute... " >&6; }
14321 if ${ac_cv_have_ms_hook_prologue+:} false; then :
14322 $as_echo_n "(cached) " >&6
14323 else
14324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14325 /* end confdefs.h. */
14326 int __attribute__((__ms_hook_prologue__)) test(void) { return 0; }
14328 main ()
14332 return 0;
14334 _ACEOF
14335 if ac_fn_c_try_compile "$LINENO"; then :
14336 ac_cv_have_ms_hook_prologue="yes"
14337 else
14338 ac_cv_have_ms_hook_prologue="no"
14340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ms_hook_prologue" >&5
14343 $as_echo "$ac_cv_have_ms_hook_prologue" >&6; }
14344 CFLAGS="$saved_CFLAGS"
14345 if test "$ac_cv_have_ms_hook_prologue" = "yes"
14346 then
14348 $as_echo "#define DECLSPEC_HOTPATCH __attribute__((__ms_hook_prologue__))" >>confdefs.h
14350 else
14351 $as_echo "#define DECLSPEC_HOTPATCH /* */" >>confdefs.h
14357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the need to disable Fortify" >&5
14358 $as_echo_n "checking for the need to disable Fortify... " >&6; }
14359 if ${ac_cv_c_fortify_enabled+:} false; then :
14360 $as_echo_n "(cached) " >&6
14361 else
14362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14363 /* end confdefs.h. */
14364 #include <string.h>
14366 main ()
14368 #if defined(__USE_FORTIFY_LEVEL) && __USE_FORTIFY_LEVEL > 0
14369 #error Fortify enabled
14370 #endif
14372 return 0;
14374 _ACEOF
14375 if ac_fn_c_try_compile "$LINENO"; then :
14376 ac_cv_c_fortify_enabled=no
14377 else
14378 ac_cv_c_fortify_enabled=yes
14380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_fortify_enabled" >&5
14383 $as_echo "$ac_cv_c_fortify_enabled" >&6; }
14384 if test "$ac_cv_c_fortify_enabled" = yes
14385 then
14386 CFLAGS="$CFLAGS -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0"
14390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need an underscore prefix" >&5
14391 $as_echo_n "checking whether external symbols need an underscore prefix... " >&6; }
14392 if ${ac_cv_c_extern_prefix+:} false; then :
14393 $as_echo_n "(cached) " >&6
14394 else
14395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14396 /* end confdefs.h. */
14397 extern int ac_test;
14399 main ()
14401 asm(".globl _ac_test\n_ac_test:\t.long 0"); if (ac_test) return 1
14403 return 0;
14405 _ACEOF
14406 if ac_fn_c_try_link "$LINENO"; then :
14407 ac_cv_c_extern_prefix="yes"
14408 else
14409 ac_cv_c_extern_prefix="no"
14411 rm -f core conftest.err conftest.$ac_objext \
14412 conftest$ac_exeext conftest.$ac_ext
14414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_extern_prefix" >&5
14415 $as_echo "$ac_cv_c_extern_prefix" >&6; }
14417 case $host_cpu in
14418 *i[3456789]86*)
14419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need stdcall decoration" >&5
14420 $as_echo_n "checking whether external symbols need stdcall decoration... " >&6; }
14421 if ${ac_cv_c_stdcall_suffix+:} false; then :
14422 $as_echo_n "(cached) " >&6
14423 else
14424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14425 /* end confdefs.h. */
14426 #ifndef _MSC_VER
14427 #define __stdcall __attribute__((__stdcall__))
14428 #endif
14429 int __stdcall ac_test(int i) { return i; }
14431 main ()
14433 asm("jmp _ac_test@4"); if (ac_test(1)) return 1
14435 return 0;
14437 _ACEOF
14438 if ac_fn_c_try_link "$LINENO"; then :
14439 ac_cv_c_stdcall_suffix="yes"
14440 else
14441 ac_cv_c_stdcall_suffix="no"
14443 rm -f core conftest.err conftest.$ac_objext \
14444 conftest$ac_exeext conftest.$ac_ext
14446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stdcall_suffix" >&5
14447 $as_echo "$ac_cv_c_stdcall_suffix" >&6; } ;;
14448 *) ac_cv_c_stdcall_suffix="no" ;;
14449 esac
14452 if test "$ac_cv_c_extern_prefix" = "yes"
14453 then
14454 $as_echo "#define __ASM_NAME(name) \"_\" name" >>confdefs.h
14456 asm_name_prefix="_"
14457 else
14458 $as_echo "#define __ASM_NAME(name) name" >>confdefs.h
14460 asm_name_prefix=""
14464 if test "$ac_cv_c_stdcall_suffix" = "yes"
14465 then
14466 $as_echo "#define __ASM_STDCALL(args) \"@\" #args" >>confdefs.h
14468 else
14469 $as_echo "#define __ASM_STDCALL(args) \"\"" >>confdefs.h
14474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to define a function in assembly code" >&5
14475 $as_echo_n "checking how to define a function in assembly code... " >&6; }
14476 if ${ac_cv_asm_func_def+:} false; then :
14477 $as_echo_n "(cached) " >&6
14478 else
14479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14480 /* end confdefs.h. */
14483 main ()
14485 asm("\t.globl _ac_test\n\t.def _ac_test; .scl 2; .type 32; .endef\n_ac_test:\t.long 0");
14487 return 0;
14489 _ACEOF
14490 if ac_fn_c_try_link "$LINENO"; then :
14491 ac_cv_asm_func_def=".def"
14492 else
14493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14494 /* end confdefs.h. */
14497 main ()
14499 asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0");
14501 return 0;
14503 _ACEOF
14504 if ac_fn_c_try_link "$LINENO"; then :
14505 ac_cv_asm_func_def=".type @function"
14506 else
14507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14508 /* end confdefs.h. */
14511 main ()
14513 asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0");
14515 return 0;
14517 _ACEOF
14518 if ac_fn_c_try_link "$LINENO"; then :
14519 ac_cv_asm_func_def=".type 2"
14520 else
14521 ac_cv_asm_func_def="unknown"
14523 rm -f core conftest.err conftest.$ac_objext \
14524 conftest$ac_exeext conftest.$ac_ext
14526 rm -f core conftest.err conftest.$ac_objext \
14527 conftest$ac_exeext conftest.$ac_ext
14529 rm -f core conftest.err conftest.$ac_objext \
14530 conftest$ac_exeext conftest.$ac_ext
14532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_asm_func_def" >&5
14533 $as_echo "$ac_cv_asm_func_def" >&6; }
14536 case "$ac_cv_asm_func_def" in
14537 ".def")
14538 $as_echo "#define __ASM_FUNC(name) \".def \" __ASM_NAME(name) \"; .scl 2; .type 32; .endef\"" >>confdefs.h
14540 asm_func_header=".def $asm_name_prefix\" #name suffix \"; .scl 2; .type 32; .endef" ;;
14541 ".type @function")
14542 $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",@function\"" >>confdefs.h
14544 asm_func_header=".type $asm_name_prefix\" #name suffix \",@function" ;;
14545 ".type 2")
14546 $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",2\"" >>confdefs.h
14548 asm_func_header=".type $asm_name_prefix\" #name suffix \",2" ;;
14550 $as_echo "#define __ASM_FUNC(name) \"\"" >>confdefs.h
14552 asm_func_header="" ;;
14553 esac
14555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether asm() works outside of functions" >&5
14556 $as_echo_n "checking whether asm() works outside of functions... " >&6; }
14557 if ${ac_cv_c_asm_outside_funcs+:} false; then :
14558 $as_echo_n "(cached) " >&6
14559 else
14560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14561 /* end confdefs.h. */
14562 asm(".text\n\t.long 0");
14564 main ()
14568 return 0;
14570 _ACEOF
14571 if ac_fn_c_try_compile "$LINENO"; then :
14572 ac_cv_c_asm_outside_funcs="yes"
14573 else
14574 ac_cv_c_asm_outside_funcs="no"
14576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_asm_outside_funcs" >&5
14579 $as_echo "$ac_cv_c_asm_outside_funcs" >&6; }
14581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .previous is supported in assembly code" >&5
14582 $as_echo_n "checking whether .previous is supported in assembly code... " >&6; }
14583 if ${ac_cv_c_dot_previous+:} false; then :
14584 $as_echo_n "(cached) " >&6
14585 else
14586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14587 /* end confdefs.h. */
14590 main ()
14592 asm(".text\nac_test:\t.long 0\n\t.previous");
14594 return 0;
14596 _ACEOF
14597 if ac_fn_c_try_link "$LINENO"; then :
14598 ac_cv_c_dot_previous="yes"
14599 else
14600 ac_cv_c_dot_previous="no"
14602 rm -f core conftest.err conftest.$ac_objext \
14603 conftest$ac_exeext conftest.$ac_ext
14605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dot_previous" >&5
14606 $as_echo "$ac_cv_c_dot_previous" >&6; }
14608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CFI directives are supported in assembly code" >&5
14609 $as_echo_n "checking whether CFI directives are supported in assembly code... " >&6; }
14610 if ${ac_cv_c_cfi_support+:} false; then :
14611 $as_echo_n "(cached) " >&6
14612 else
14613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14614 /* end confdefs.h. */
14615 asm(".text\nac_test:\t.cfi_startproc\n\t.long 0\n\t.cfi_endproc");
14617 main ()
14621 return 0;
14623 _ACEOF
14624 if ac_fn_c_try_compile "$LINENO"; then :
14625 ac_cv_c_cfi_support="yes"
14626 else
14627 ac_cv_c_cfi_support="no"
14629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_cfi_support" >&5
14632 $as_echo "$ac_cv_c_cfi_support" >&6; }
14634 asm_func_header=".globl $asm_name_prefix\" #name suffix \"\\n\\t$asm_func_header\\n$asm_name_prefix\" #name suffix \":\\n\\t"
14635 asm_func_trailer=""
14636 if test "$ac_cv_c_dot_previous" = "yes"
14637 then
14638 asm_func_trailer="\\n\\t.previous"
14640 if test "$ac_cv_c_cfi_support" = "yes"
14641 then
14642 asm_func_header="$asm_func_header.cfi_startproc\\n\\t"
14643 asm_func_trailer="\\n\\t.cfi_endproc$asm_func_trailer"
14645 $as_echo "#define __ASM_CFI(str) str" >>confdefs.h
14647 UNWINDFLAGS=-fasynchronous-unwind-tables
14649 else
14650 $as_echo "#define __ASM_CFI(str) \"\"" >>confdefs.h
14654 asm_func_code="$asm_func_header\" code \"$asm_func_trailer"
14657 if test "$ac_cv_c_asm_outside_funcs" = "yes"
14658 then
14659 cat >>confdefs.h <<_ACEOF
14660 #define __ASM_DEFINE_FUNC(name,suffix,code) asm(".text\n\t.align 4\n\t$asm_func_code");
14661 _ACEOF
14663 else
14664 cat >>confdefs.h <<_ACEOF
14665 #define __ASM_DEFINE_FUNC(name,suffix,code) void __asm_dummy_##name(void) { asm(".text\n\t.align 4\n\t$asm_func_code"); }
14666 _ACEOF
14670 $as_echo "#define __ASM_GLOBAL_FUNC(name,code) __ASM_DEFINE_FUNC(name,\"\",code)" >>confdefs.h
14673 $as_echo "#define __ASM_STDCALL_FUNC(name,args,code) __ASM_DEFINE_FUNC(name,__ASM_STDCALL(args),code)" >>confdefs.h
14677 case $build_os in
14678 cygwin*|mingw32*) TOOLSEXT=".exe"
14680 esac
14682 case $host_os in
14683 linux*)
14684 case $host_cpu in
14685 *i[3456789]86*|x86_64*)
14686 test "$wine_binary" = wine || wine_fn_ignore_file "loader/wine-preloader"
14687 loader_programs="$loader_programs $wine_binary-preloader"
14688 as_fn_append LOADER_RULES "
14689 $wine_binary-preloader: preloader.o
14690 \$(CC) -o \$@ -static -nostartfiles -nodefaultlibs -Wl,-Ttext=0x7c400000 preloader.o \$(LIBPORT) \$(LDFLAGS)
14692 install install-lib:: $wine_binary-preloader
14693 \$(INSTALL_PROGRAM) $wine_binary-preloader \$(DESTDIR)\$(bindir)/$wine_binary-preloader
14695 uninstall::
14696 \$(RM) \$(DESTDIR)\$(bindir)/$wine_binary-preloader
14698 preloader_EXTRADEFS = $BUILTINFLAG
14699 " ;;
14700 esac
14702 esac
14703 as_fn_append LOADER_RULES "
14704 PROGRAMS = $loader_programs
14708 ac_save_CFLAGS="$CFLAGS"
14709 CFLAGS="$CFLAGS $BUILTINFLAG"
14710 for ac_func in \
14711 __res_get_state \
14712 __res_getservers \
14713 _finite \
14714 _isnan \
14715 _pclose \
14716 _popen \
14717 _snprintf \
14718 _spawnvp \
14719 _strdup \
14720 _stricmp \
14721 _strnicmp \
14722 _strtoi64 \
14723 _strtoui64 \
14724 _vsnprintf \
14725 asctime_r \
14726 chsize \
14727 dlopen \
14728 epoll_create \
14729 ffs \
14730 finitef \
14731 fnmatch \
14732 fork \
14733 fpclass \
14734 fstatfs \
14735 fstatvfs \
14736 ftruncate \
14737 futimens \
14738 futimes \
14739 futimesat \
14740 getattrlist \
14741 getdirentries \
14742 getopt_long_only \
14743 getpwuid \
14744 gettimeofday \
14745 getuid \
14746 if_nameindex \
14747 isnanf \
14748 kqueue \
14749 lstat \
14750 memmove \
14751 mmap \
14752 pclose \
14753 pipe2 \
14754 poll \
14755 popen \
14756 port_create \
14757 prctl \
14758 pread \
14759 proc_pidinfo \
14760 pwrite \
14761 readdir \
14762 readlink \
14763 sched_yield \
14764 select \
14765 setproctitle \
14766 setrlimit \
14767 settimeofday \
14768 sigaltstack \
14769 sigprocmask \
14770 snprintf \
14771 statfs \
14772 statvfs \
14773 strcasecmp \
14774 strdup \
14775 strerror \
14776 strncasecmp \
14777 strtold \
14778 strtoll \
14779 strtoull \
14780 symlink \
14781 tcdrain \
14782 thr_kill2 \
14783 timegm \
14784 usleep \
14785 vsnprintf
14787 do :
14788 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14789 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14790 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14791 cat >>confdefs.h <<_ACEOF
14792 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14793 _ACEOF
14796 done
14798 CFLAGS="$ac_save_CFLAGS"
14800 if test "$ac_cv_func_dlopen" = no
14801 then
14802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14803 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14804 if ${ac_cv_lib_dl_dlopen+:} false; then :
14805 $as_echo_n "(cached) " >&6
14806 else
14807 ac_check_lib_save_LIBS=$LIBS
14808 LIBS="-ldl $LIBS"
14809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14810 /* end confdefs.h. */
14812 /* Override any GCC internal prototype to avoid an error.
14813 Use char because int might match the return type of a GCC
14814 builtin and then its argument prototype would still apply. */
14815 #ifdef __cplusplus
14816 extern "C"
14817 #endif
14818 char dlopen ();
14820 main ()
14822 return dlopen ();
14824 return 0;
14826 _ACEOF
14827 if ac_fn_c_try_link "$LINENO"; then :
14828 ac_cv_lib_dl_dlopen=yes
14829 else
14830 ac_cv_lib_dl_dlopen=no
14832 rm -f core conftest.err conftest.$ac_objext \
14833 conftest$ac_exeext conftest.$ac_ext
14834 LIBS=$ac_check_lib_save_LIBS
14836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14837 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14838 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14839 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
14840 DL_LIBS="-ldl"
14845 ac_wine_check_funcs_save_LIBS="$LIBS"
14846 LIBS="$LIBS $DL_LIBS"
14847 for ac_func in dladdr
14848 do :
14849 ac_fn_c_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr"
14850 if test "x$ac_cv_func_dladdr" = xyes; then :
14851 cat >>confdefs.h <<_ACEOF
14852 #define HAVE_DLADDR 1
14853 _ACEOF
14856 done
14858 LIBS="$ac_wine_check_funcs_save_LIBS"
14860 if test "$ac_cv_func_poll" = no
14861 then
14862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for poll in -lpoll" >&5
14863 $as_echo_n "checking for poll in -lpoll... " >&6; }
14864 if ${ac_cv_lib_poll_poll+:} false; then :
14865 $as_echo_n "(cached) " >&6
14866 else
14867 ac_check_lib_save_LIBS=$LIBS
14868 LIBS="-lpoll $LIBS"
14869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14870 /* end confdefs.h. */
14872 /* Override any GCC internal prototype to avoid an error.
14873 Use char because int might match the return type of a GCC
14874 builtin and then its argument prototype would still apply. */
14875 #ifdef __cplusplus
14876 extern "C"
14877 #endif
14878 char poll ();
14880 main ()
14882 return poll ();
14884 return 0;
14886 _ACEOF
14887 if ac_fn_c_try_link "$LINENO"; then :
14888 ac_cv_lib_poll_poll=yes
14889 else
14890 ac_cv_lib_poll_poll=no
14892 rm -f core conftest.err conftest.$ac_objext \
14893 conftest$ac_exeext conftest.$ac_ext
14894 LIBS=$ac_check_lib_save_LIBS
14896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_poll_poll" >&5
14897 $as_echo "$ac_cv_lib_poll_poll" >&6; }
14898 if test "x$ac_cv_lib_poll_poll" = xyes; then :
14899 $as_echo "#define HAVE_POLL 1" >>confdefs.h
14900 POLL_LIBS="-lpoll"
14906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
14907 $as_echo_n "checking for library containing gethostbyname... " >&6; }
14908 if ${ac_cv_search_gethostbyname+:} false; then :
14909 $as_echo_n "(cached) " >&6
14910 else
14911 ac_func_search_save_LIBS=$LIBS
14912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14913 /* end confdefs.h. */
14915 /* Override any GCC internal prototype to avoid an error.
14916 Use char because int might match the return type of a GCC
14917 builtin and then its argument prototype would still apply. */
14918 #ifdef __cplusplus
14919 extern "C"
14920 #endif
14921 char gethostbyname ();
14923 main ()
14925 return gethostbyname ();
14927 return 0;
14929 _ACEOF
14930 for ac_lib in '' nsl; do
14931 if test -z "$ac_lib"; then
14932 ac_res="none required"
14933 else
14934 ac_res=-l$ac_lib
14935 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14937 if ac_fn_c_try_link "$LINENO"; then :
14938 ac_cv_search_gethostbyname=$ac_res
14940 rm -f core conftest.err conftest.$ac_objext \
14941 conftest$ac_exeext
14942 if ${ac_cv_search_gethostbyname+:} false; then :
14943 break
14945 done
14946 if ${ac_cv_search_gethostbyname+:} false; then :
14948 else
14949 ac_cv_search_gethostbyname=no
14951 rm conftest.$ac_ext
14952 LIBS=$ac_func_search_save_LIBS
14954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
14955 $as_echo "$ac_cv_search_gethostbyname" >&6; }
14956 ac_res=$ac_cv_search_gethostbyname
14957 if test "$ac_res" != no; then :
14958 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5
14964 $as_echo_n "checking for library containing connect... " >&6; }
14965 if ${ac_cv_search_connect+:} false; then :
14966 $as_echo_n "(cached) " >&6
14967 else
14968 ac_func_search_save_LIBS=$LIBS
14969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14970 /* end confdefs.h. */
14972 /* Override any GCC internal prototype to avoid an error.
14973 Use char because int might match the return type of a GCC
14974 builtin and then its argument prototype would still apply. */
14975 #ifdef __cplusplus
14976 extern "C"
14977 #endif
14978 char connect ();
14980 main ()
14982 return connect ();
14984 return 0;
14986 _ACEOF
14987 for ac_lib in '' socket; do
14988 if test -z "$ac_lib"; then
14989 ac_res="none required"
14990 else
14991 ac_res=-l$ac_lib
14992 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14994 if ac_fn_c_try_link "$LINENO"; then :
14995 ac_cv_search_connect=$ac_res
14997 rm -f core conftest.err conftest.$ac_objext \
14998 conftest$ac_exeext
14999 if ${ac_cv_search_connect+:} false; then :
15000 break
15002 done
15003 if ${ac_cv_search_connect+:} false; then :
15005 else
15006 ac_cv_search_connect=no
15008 rm conftest.$ac_ext
15009 LIBS=$ac_func_search_save_LIBS
15011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5
15012 $as_echo "$ac_cv_search_connect" >&6; }
15013 ac_res=$ac_cv_search_connect
15014 if test "$ac_res" != no; then :
15015 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
15021 $as_echo_n "checking for library containing inet_aton... " >&6; }
15022 if ${ac_cv_search_inet_aton+:} false; then :
15023 $as_echo_n "(cached) " >&6
15024 else
15025 ac_func_search_save_LIBS=$LIBS
15026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15027 /* end confdefs.h. */
15029 /* Override any GCC internal prototype to avoid an error.
15030 Use char because int might match the return type of a GCC
15031 builtin and then its argument prototype would still apply. */
15032 #ifdef __cplusplus
15033 extern "C"
15034 #endif
15035 char inet_aton ();
15037 main ()
15039 return inet_aton ();
15041 return 0;
15043 _ACEOF
15044 for ac_lib in '' resolv; do
15045 if test -z "$ac_lib"; then
15046 ac_res="none required"
15047 else
15048 ac_res=-l$ac_lib
15049 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15051 if ac_fn_c_try_link "$LINENO"; then :
15052 ac_cv_search_inet_aton=$ac_res
15054 rm -f core conftest.err conftest.$ac_objext \
15055 conftest$ac_exeext
15056 if ${ac_cv_search_inet_aton+:} false; then :
15057 break
15059 done
15060 if ${ac_cv_search_inet_aton+:} false; then :
15062 else
15063 ac_cv_search_inet_aton=no
15065 rm conftest.$ac_ext
15066 LIBS=$ac_func_search_save_LIBS
15068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
15069 $as_echo "$ac_cv_search_inet_aton" >&6; }
15070 ac_res=$ac_cv_search_inet_aton
15071 if test "$ac_res" != no; then :
15072 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15077 for ac_func in \
15078 getaddrinfo \
15079 getnameinfo \
15080 getnetbyname \
15081 getprotobyname \
15082 getprotobynumber \
15083 getservbyport \
15084 inet_addr \
15085 inet_network \
15086 inet_ntop \
15087 inet_pton \
15088 sendmsg \
15089 socketpair \
15091 do :
15092 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15093 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15094 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15095 cat >>confdefs.h <<_ACEOF
15096 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15097 _ACEOF
15100 done
15103 ac_save_LIBS=$LIBS
15104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
15105 $as_echo_n "checking for library containing clock_gettime... " >&6; }
15106 if ${ac_cv_search_clock_gettime+:} false; then :
15107 $as_echo_n "(cached) " >&6
15108 else
15109 ac_func_search_save_LIBS=$LIBS
15110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15111 /* end confdefs.h. */
15113 /* Override any GCC internal prototype to avoid an error.
15114 Use char because int might match the return type of a GCC
15115 builtin and then its argument prototype would still apply. */
15116 #ifdef __cplusplus
15117 extern "C"
15118 #endif
15119 char clock_gettime ();
15121 main ()
15123 return clock_gettime ();
15125 return 0;
15127 _ACEOF
15128 for ac_lib in '' rt; do
15129 if test -z "$ac_lib"; then
15130 ac_res="none required"
15131 else
15132 ac_res=-l$ac_lib
15133 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15135 if ac_fn_c_try_link "$LINENO"; then :
15136 ac_cv_search_clock_gettime=$ac_res
15138 rm -f core conftest.err conftest.$ac_objext \
15139 conftest$ac_exeext
15140 if ${ac_cv_search_clock_gettime+:} false; then :
15141 break
15143 done
15144 if ${ac_cv_search_clock_gettime+:} false; then :
15146 else
15147 ac_cv_search_clock_gettime=no
15149 rm conftest.$ac_ext
15150 LIBS=$ac_func_search_save_LIBS
15152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
15153 $as_echo "$ac_cv_search_clock_gettime" >&6; }
15154 ac_res=$ac_cv_search_clock_gettime
15155 if test "$ac_res" != no; then :
15156 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15158 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
15160 test "$ac_res" = "none required" || RT_LIBS="$ac_res"
15164 LIBS=$ac_save_LIBS
15166 LDAP_LIBS=""
15168 if test "$ac_cv_header_ldap_h" = "yes" -a "$ac_cv_header_lber_h" = "yes"
15169 then
15170 ac_fn_c_check_type "$LINENO" "LDAPSortKey" "ac_cv_type_LDAPSortKey" "#include <ldap.h>
15172 if test "x$ac_cv_type_LDAPSortKey" = xyes; then :
15173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap_r" >&5
15174 $as_echo_n "checking for ldap_initialize in -lldap_r... " >&6; }
15175 if ${ac_cv_lib_ldap_r_ldap_initialize+:} false; then :
15176 $as_echo_n "(cached) " >&6
15177 else
15178 ac_check_lib_save_LIBS=$LIBS
15179 LIBS="-lldap_r $PTHREAD_LIBS $LIBS"
15180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15181 /* end confdefs.h. */
15183 /* Override any GCC internal prototype to avoid an error.
15184 Use char because int might match the return type of a GCC
15185 builtin and then its argument prototype would still apply. */
15186 #ifdef __cplusplus
15187 extern "C"
15188 #endif
15189 char ldap_initialize ();
15191 main ()
15193 return ldap_initialize ();
15195 return 0;
15197 _ACEOF
15198 if ac_fn_c_try_link "$LINENO"; then :
15199 ac_cv_lib_ldap_r_ldap_initialize=yes
15200 else
15201 ac_cv_lib_ldap_r_ldap_initialize=no
15203 rm -f core conftest.err conftest.$ac_objext \
15204 conftest$ac_exeext conftest.$ac_ext
15205 LIBS=$ac_check_lib_save_LIBS
15207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_r_ldap_initialize" >&5
15208 $as_echo "$ac_cv_lib_ldap_r_ldap_initialize" >&6; }
15209 if test "x$ac_cv_lib_ldap_r_ldap_initialize" = xyes; then :
15210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_init in -llber" >&5
15211 $as_echo_n "checking for ber_init in -llber... " >&6; }
15212 if ${ac_cv_lib_lber_ber_init+:} false; then :
15213 $as_echo_n "(cached) " >&6
15214 else
15215 ac_check_lib_save_LIBS=$LIBS
15216 LIBS="-llber $PTHREAD_LIBS $LIBS"
15217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15218 /* end confdefs.h. */
15220 /* Override any GCC internal prototype to avoid an error.
15221 Use char because int might match the return type of a GCC
15222 builtin and then its argument prototype would still apply. */
15223 #ifdef __cplusplus
15224 extern "C"
15225 #endif
15226 char ber_init ();
15228 main ()
15230 return ber_init ();
15232 return 0;
15234 _ACEOF
15235 if ac_fn_c_try_link "$LINENO"; then :
15236 ac_cv_lib_lber_ber_init=yes
15237 else
15238 ac_cv_lib_lber_ber_init=no
15240 rm -f core conftest.err conftest.$ac_objext \
15241 conftest$ac_exeext conftest.$ac_ext
15242 LIBS=$ac_check_lib_save_LIBS
15244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_init" >&5
15245 $as_echo "$ac_cv_lib_lber_ber_init" >&6; }
15246 if test "x$ac_cv_lib_lber_ber_init" = xyes; then :
15248 $as_echo "#define HAVE_LDAP 1" >>confdefs.h
15250 LDAP_LIBS="-lldap_r -llber"
15257 ac_wine_check_funcs_save_LIBS="$LIBS"
15258 LIBS="$LIBS $LDAP_LIBS $PTHREAD_LIBS"
15259 for ac_func in \
15260 ldap_count_references \
15261 ldap_first_reference \
15262 ldap_next_reference \
15263 ldap_parse_reference \
15264 ldap_parse_sort_control \
15265 ldap_parse_sortresponse_control \
15266 ldap_parse_vlv_control \
15267 ldap_parse_vlvresponse_control
15268 do :
15269 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15270 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15271 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15272 cat >>confdefs.h <<_ACEOF
15273 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15274 _ACEOF
15277 done
15279 LIBS="$ac_wine_check_funcs_save_LIBS"
15281 if test "x$LDAP_LIBS" = "x"; then :
15282 case "x$with_ldap" in
15283 x) as_fn_append wine_notices "|libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported." ;;
15284 xno) ;;
15285 *) as_fn_error $? "libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported.
15286 This is an error since --with-ldap was requested." "$LINENO" 5 ;;
15287 esac
15290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir takes only one argument" >&5
15291 $as_echo_n "checking whether mkdir takes only one argument... " >&6; }
15292 if ${wine_cv_one_arg_mkdir+:} false; then :
15293 $as_echo_n "(cached) " >&6
15294 else
15295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15296 /* end confdefs.h. */
15297 #include <sys/stat.h>
15299 main ()
15301 mkdir("foo");
15303 return 0;
15305 _ACEOF
15306 if ac_fn_c_try_compile "$LINENO"; then :
15307 wine_cv_one_arg_mkdir=yes
15308 else
15309 wine_cv_one_arg_mkdir=no
15311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_one_arg_mkdir" >&5
15314 $as_echo "$wine_cv_one_arg_mkdir" >&6; }
15315 if test "$wine_cv_one_arg_mkdir" = "yes"
15316 then
15318 $as_echo "#define HAVE_ONE_ARG_MKDIR 1" >>confdefs.h
15322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_setaffinity" >&5
15323 $as_echo_n "checking for sched_setaffinity... " >&6; }
15324 if ${wine_cv_have_sched_setaffinity+:} false; then :
15325 $as_echo_n "(cached) " >&6
15326 else
15327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15328 /* end confdefs.h. */
15329 #define _GNU_SOURCE
15330 #include <sched.h>
15332 main ()
15334 sched_setaffinity(0, 0, 0);
15336 return 0;
15338 _ACEOF
15339 if ac_fn_c_try_link "$LINENO"; then :
15340 wine_cv_have_sched_setaffinity=yes
15341 else
15342 wine_cv_have_sched_setaffinity=no
15344 rm -f core conftest.err conftest.$ac_objext \
15345 conftest$ac_exeext conftest.$ac_ext
15347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sched_setaffinity" >&5
15348 $as_echo "$wine_cv_have_sched_setaffinity" >&6; }
15349 if test "$wine_cv_have_sched_setaffinity" = "yes"
15350 then
15352 $as_echo "#define HAVE_SCHED_SETAFFINITY 1" >>confdefs.h
15356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fallocate" >&5
15357 $as_echo_n "checking for fallocate... " >&6; }
15358 if ${wine_cv_have_fallocate+:} false; then :
15359 $as_echo_n "(cached) " >&6
15360 else
15361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15362 /* end confdefs.h. */
15363 #define _GNU_SOURCE
15364 #include <fcntl.h>
15366 main ()
15368 fallocate(-1, 0, 0, 0);
15370 return 0;
15372 _ACEOF
15373 if ac_fn_c_try_link "$LINENO"; then :
15374 wine_cv_have_fallocate=yes
15375 else
15376 wine_cv_have_fallocate=no
15378 rm -f core conftest.err conftest.$ac_objext \
15379 conftest$ac_exeext conftest.$ac_ext
15381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_fallocate" >&5
15382 $as_echo "$wine_cv_have_fallocate" >&6; }
15383 if test "$wine_cv_have_fallocate" = "yes"
15384 then
15386 $as_echo "#define HAVE_FALLOCATE 1" >>confdefs.h
15391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
15392 $as_echo_n "checking for inline... " >&6; }
15393 if ${ac_cv_c_inline+:} false; then :
15394 $as_echo_n "(cached) " >&6
15395 else
15396 ac_cv_c_inline=no
15397 for ac_kw in inline __inline__ __inline; do
15398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15399 /* end confdefs.h. */
15400 #ifndef __cplusplus
15401 typedef int foo_t;
15402 static $ac_kw foo_t static_foo () {return 0; }
15403 $ac_kw foo_t foo () {return 0; }
15404 #endif
15406 _ACEOF
15407 if ac_fn_c_try_compile "$LINENO"; then :
15408 ac_cv_c_inline=$ac_kw
15410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15411 test "$ac_cv_c_inline" != no && break
15412 done
15415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
15416 $as_echo "$ac_cv_c_inline" >&6; }
15418 case $ac_cv_c_inline in
15419 inline | yes) ;;
15421 case $ac_cv_c_inline in
15422 no) ac_val=;;
15423 *) ac_val=$ac_cv_c_inline;;
15424 esac
15425 cat >>confdefs.h <<_ACEOF
15426 #ifndef __cplusplus
15427 #define inline $ac_val
15428 #endif
15429 _ACEOF
15431 esac
15433 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
15434 if test "x$ac_cv_type_mode_t" = xyes; then :
15436 cat >>confdefs.h <<_ACEOF
15437 #define HAVE_MODE_T 1
15438 _ACEOF
15442 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
15443 if test "x$ac_cv_type_off_t" = xyes; then :
15445 cat >>confdefs.h <<_ACEOF
15446 #define HAVE_OFF_T 1
15447 _ACEOF
15451 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
15452 if test "x$ac_cv_type_pid_t" = xyes; then :
15454 cat >>confdefs.h <<_ACEOF
15455 #define HAVE_PID_T 1
15456 _ACEOF
15460 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15461 if test "x$ac_cv_type_size_t" = xyes; then :
15463 cat >>confdefs.h <<_ACEOF
15464 #define HAVE_SIZE_T 1
15465 _ACEOF
15469 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
15470 if test "x$ac_cv_type_ssize_t" = xyes; then :
15472 cat >>confdefs.h <<_ACEOF
15473 #define HAVE_SSIZE_T 1
15474 _ACEOF
15478 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
15479 if test "x$ac_cv_type_long_long" = xyes; then :
15481 cat >>confdefs.h <<_ACEOF
15482 #define HAVE_LONG_LONG 1
15483 _ACEOF
15487 ac_fn_c_check_type "$LINENO" "fsblkcnt_t" "ac_cv_type_fsblkcnt_t" "$ac_includes_default"
15488 if test "x$ac_cv_type_fsblkcnt_t" = xyes; then :
15490 cat >>confdefs.h <<_ACEOF
15491 #define HAVE_FSBLKCNT_T 1
15492 _ACEOF
15496 ac_fn_c_check_type "$LINENO" "fsfilcnt_t" "ac_cv_type_fsfilcnt_t" "$ac_includes_default"
15497 if test "x$ac_cv_type_fsfilcnt_t" = xyes; then :
15499 cat >>confdefs.h <<_ACEOF
15500 #define HAVE_FSFILCNT_T 1
15501 _ACEOF
15506 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "#include <sys/types.h>
15507 #include <signal.h>
15509 if test "x$ac_cv_type_sigset_t" = xyes; then :
15511 cat >>confdefs.h <<_ACEOF
15512 #define HAVE_SIGSET_T 1
15513 _ACEOF
15518 ac_fn_c_check_type "$LINENO" "request_sense" "ac_cv_type_request_sense" "#include <linux/cdrom.h>
15520 if test "x$ac_cv_type_request_sense" = xyes; then :
15522 cat >>confdefs.h <<_ACEOF
15523 #define HAVE_REQUEST_SENSE 1
15524 _ACEOF
15530 ac_fn_c_check_type "$LINENO" "struct xinpgen" "ac_cv_type_struct_xinpgen" "#include <sys/types.h>
15531 #ifdef HAVE_SYS_SOCKET_H
15532 #include <sys/socket.h>
15533 #endif
15534 #ifdef HAVE_SYS_SOCKETVAR_H
15535 #include <sys/socketvar.h>
15536 #endif
15537 #ifdef HAVE_NET_ROUTE_H
15538 #include <net/route.h>
15539 #endif
15540 #ifdef HAVE_NETINET_IN_H
15541 #include <netinet/in.h>
15542 #endif
15543 #ifdef HAVE_NETINET_IN_SYSTM_H
15544 #include <netinet/in_systm.h>
15545 #endif
15546 #ifdef HAVE_NETINET_IP_H
15547 #include <netinet/ip.h>
15548 #endif
15549 #ifdef HAVE_NETINET_IN_PCB_H
15550 #include <netinet/in_pcb.h>
15551 #endif
15553 if test "x$ac_cv_type_struct_xinpgen" = xyes; then :
15555 cat >>confdefs.h <<_ACEOF
15556 #define HAVE_STRUCT_XINPGEN 1
15557 _ACEOF
15563 ac_fn_c_check_type "$LINENO" "struct r_debug" "ac_cv_type_struct_r_debug" "#ifdef HAVE_LINK_H
15564 #include <link.h>
15565 #endif
15566 #ifdef HAVE_SYS_LINK_H
15567 #include <sys/link.h>
15568 #endif
15570 if test "x$ac_cv_type_struct_r_debug" = xyes; then :
15572 cat >>confdefs.h <<_ACEOF
15573 #define HAVE_STRUCT_R_DEBUG 1
15574 _ACEOF
15578 ac_fn_c_check_type "$LINENO" "struct link_map" "ac_cv_type_struct_link_map" "#ifdef HAVE_LINK_H
15579 #include <link.h>
15580 #endif
15581 #ifdef HAVE_SYS_LINK_H
15582 #include <sys/link.h>
15583 #endif
15585 if test "x$ac_cv_type_struct_link_map" = xyes; then :
15587 cat >>confdefs.h <<_ACEOF
15588 #define HAVE_STRUCT_LINK_MAP 1
15589 _ACEOF
15595 ac_fn_c_check_member "$LINENO" "struct ff_effect" "direction" "ac_cv_member_struct_ff_effect_direction" "#ifdef HAVE_LINUX_INPUT_H
15596 #include <linux/input.h>
15597 #endif
15599 if test "x$ac_cv_member_struct_ff_effect_direction" = xyes; then :
15601 cat >>confdefs.h <<_ACEOF
15602 #define HAVE_STRUCT_FF_EFFECT_DIRECTION 1
15603 _ACEOF
15609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigaddset" >&5
15610 $as_echo_n "checking for sigaddset... " >&6; }
15611 if ${wine_cv_have_sigaddset+:} false; then :
15612 $as_echo_n "(cached) " >&6
15613 else
15614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15615 /* end confdefs.h. */
15616 #include <signal.h>
15618 main ()
15620 sigset_t set; sigaddset(&set,SIGTERM);
15622 return 0;
15624 _ACEOF
15625 if ac_fn_c_try_link "$LINENO"; then :
15626 wine_cv_have_sigaddset=yes
15627 else
15628 wine_cv_have_sigaddset=no
15630 rm -f core conftest.err conftest.$ac_objext \
15631 conftest$ac_exeext conftest.$ac_ext
15633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sigaddset" >&5
15634 $as_echo "$wine_cv_have_sigaddset" >&6; }
15635 if test "$wine_cv_have_sigaddset" = "yes"
15636 then
15638 $as_echo "#define HAVE_SIGADDSET 1" >>confdefs.h
15643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
15644 $as_echo_n "checking whether we can use re-entrant gethostbyname_r Linux style... " >&6; }
15645 if ${wine_cv_linux_gethostbyname_r_6+:} false; then :
15646 $as_echo_n "(cached) " >&6
15647 else
15648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15649 /* end confdefs.h. */
15650 #include <netdb.h>
15652 main ()
15655 char *name=0;
15656 struct hostent he;
15657 struct hostent *result;
15658 char *buf=0;
15659 int bufsize=0;
15660 int errnr;
15661 char *addr=0;
15662 int addrlen=0;
15663 int addrtype=0;
15664 gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
15665 gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
15668 return 0;
15670 _ACEOF
15671 if ac_fn_c_try_link "$LINENO"; then :
15672 wine_cv_linux_gethostbyname_r_6=yes
15673 else
15674 wine_cv_linux_gethostbyname_r_6=no
15677 rm -f core conftest.err conftest.$ac_objext \
15678 conftest$ac_exeext conftest.$ac_ext
15681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_gethostbyname_r_6" >&5
15682 $as_echo "$wine_cv_linux_gethostbyname_r_6" >&6; }
15683 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
15684 then
15686 $as_echo "#define HAVE_LINUX_GETHOSTBYNAME_R_6 1" >>confdefs.h
15690 if test "$ac_cv_header_linux_joystick_h" = "yes"
15691 then
15692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
15693 $as_echo_n "checking whether linux/joystick.h uses the Linux 2.2+ API... " >&6; }
15694 if ${wine_cv_linux_joystick_22_api+:} false; then :
15695 $as_echo_n "(cached) " >&6
15696 else
15697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15698 /* end confdefs.h. */
15700 #include <sys/ioctl.h>
15701 #include <sys/types.h>
15702 #include <linux/joystick.h>
15704 struct js_event blub;
15705 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
15706 #error "no 2.2 header"
15707 #endif
15710 main ()
15712 /*empty*/
15714 return 0;
15716 _ACEOF
15717 if ac_fn_c_try_compile "$LINENO"; then :
15718 wine_cv_linux_joystick_22_api=yes
15719 else
15720 wine_cv_linux_joystick_22_api=no
15722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_joystick_22_api" >&5
15726 $as_echo "$wine_cv_linux_joystick_22_api" >&6; }
15727 if test "$wine_cv_linux_joystick_22_api" = "yes"
15728 then
15730 $as_echo "#define HAVE_LINUX_22_JOYSTICK_API 1" >>confdefs.h
15736 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bfree" "ac_cv_member_struct_statfs_f_bfree" "#include <sys/types.h>
15737 #ifdef HAVE_SYS_PARAM_H
15738 # include <sys/param.h>
15739 #endif
15740 #ifdef HAVE_SYS_MOUNT_H
15741 # include <sys/mount.h>
15742 #endif
15743 #ifdef HAVE_SYS_VFS_H
15744 # include <sys/vfs.h>
15745 #endif
15746 #ifdef HAVE_SYS_STATFS_H
15747 # include <sys/statfs.h>
15748 #endif
15750 if test "x$ac_cv_member_struct_statfs_f_bfree" = xyes; then :
15752 cat >>confdefs.h <<_ACEOF
15753 #define HAVE_STRUCT_STATFS_F_BFREE 1
15754 _ACEOF
15758 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bavail" "ac_cv_member_struct_statfs_f_bavail" "#include <sys/types.h>
15759 #ifdef HAVE_SYS_PARAM_H
15760 # include <sys/param.h>
15761 #endif
15762 #ifdef HAVE_SYS_MOUNT_H
15763 # include <sys/mount.h>
15764 #endif
15765 #ifdef HAVE_SYS_VFS_H
15766 # include <sys/vfs.h>
15767 #endif
15768 #ifdef HAVE_SYS_STATFS_H
15769 # include <sys/statfs.h>
15770 #endif
15772 if test "x$ac_cv_member_struct_statfs_f_bavail" = xyes; then :
15774 cat >>confdefs.h <<_ACEOF
15775 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
15776 _ACEOF
15780 ac_fn_c_check_member "$LINENO" "struct statfs" "f_frsize" "ac_cv_member_struct_statfs_f_frsize" "#include <sys/types.h>
15781 #ifdef HAVE_SYS_PARAM_H
15782 # include <sys/param.h>
15783 #endif
15784 #ifdef HAVE_SYS_MOUNT_H
15785 # include <sys/mount.h>
15786 #endif
15787 #ifdef HAVE_SYS_VFS_H
15788 # include <sys/vfs.h>
15789 #endif
15790 #ifdef HAVE_SYS_STATFS_H
15791 # include <sys/statfs.h>
15792 #endif
15794 if test "x$ac_cv_member_struct_statfs_f_frsize" = xyes; then :
15796 cat >>confdefs.h <<_ACEOF
15797 #define HAVE_STRUCT_STATFS_F_FRSIZE 1
15798 _ACEOF
15802 ac_fn_c_check_member "$LINENO" "struct statfs" "f_ffree" "ac_cv_member_struct_statfs_f_ffree" "#include <sys/types.h>
15803 #ifdef HAVE_SYS_PARAM_H
15804 # include <sys/param.h>
15805 #endif
15806 #ifdef HAVE_SYS_MOUNT_H
15807 # include <sys/mount.h>
15808 #endif
15809 #ifdef HAVE_SYS_VFS_H
15810 # include <sys/vfs.h>
15811 #endif
15812 #ifdef HAVE_SYS_STATFS_H
15813 # include <sys/statfs.h>
15814 #endif
15816 if test "x$ac_cv_member_struct_statfs_f_ffree" = xyes; then :
15818 cat >>confdefs.h <<_ACEOF
15819 #define HAVE_STRUCT_STATFS_F_FFREE 1
15820 _ACEOF
15824 ac_fn_c_check_member "$LINENO" "struct statfs" "f_favail" "ac_cv_member_struct_statfs_f_favail" "#include <sys/types.h>
15825 #ifdef HAVE_SYS_PARAM_H
15826 # include <sys/param.h>
15827 #endif
15828 #ifdef HAVE_SYS_MOUNT_H
15829 # include <sys/mount.h>
15830 #endif
15831 #ifdef HAVE_SYS_VFS_H
15832 # include <sys/vfs.h>
15833 #endif
15834 #ifdef HAVE_SYS_STATFS_H
15835 # include <sys/statfs.h>
15836 #endif
15838 if test "x$ac_cv_member_struct_statfs_f_favail" = xyes; then :
15840 cat >>confdefs.h <<_ACEOF
15841 #define HAVE_STRUCT_STATFS_F_FAVAIL 1
15842 _ACEOF
15846 ac_fn_c_check_member "$LINENO" "struct statfs" "f_namelen" "ac_cv_member_struct_statfs_f_namelen" "#include <sys/types.h>
15847 #ifdef HAVE_SYS_PARAM_H
15848 # include <sys/param.h>
15849 #endif
15850 #ifdef HAVE_SYS_MOUNT_H
15851 # include <sys/mount.h>
15852 #endif
15853 #ifdef HAVE_SYS_VFS_H
15854 # include <sys/vfs.h>
15855 #endif
15856 #ifdef HAVE_SYS_STATFS_H
15857 # include <sys/statfs.h>
15858 #endif
15860 if test "x$ac_cv_member_struct_statfs_f_namelen" = xyes; then :
15862 cat >>confdefs.h <<_ACEOF
15863 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
15864 _ACEOF
15870 ac_fn_c_check_member "$LINENO" "struct statvfs" "f_blocks" "ac_cv_member_struct_statvfs_f_blocks" "#ifdef HAVE_SYS_STATVFS_H
15871 #include <sys/statvfs.h>
15872 #endif
15874 if test "x$ac_cv_member_struct_statvfs_f_blocks" = xyes; then :
15876 cat >>confdefs.h <<_ACEOF
15877 #define HAVE_STRUCT_STATVFS_F_BLOCKS 1
15878 _ACEOF
15884 ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#ifdef HAVE_DIRENT_H
15885 #include <dirent.h>
15886 #endif
15888 if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then :
15890 cat >>confdefs.h <<_ACEOF
15891 #define HAVE_STRUCT_DIRENT_D_RECLEN 1
15892 _ACEOF
15898 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_accrights" "ac_cv_member_struct_msghdr_msg_accrights" "#include <sys/types.h>
15899 #ifdef HAVE_SYS_SOCKET_H
15900 # include <sys/socket.h>
15901 #endif
15902 #ifdef HAVE_SYS_UN_H
15903 # include <sys/un.h>
15904 #endif
15906 if test "x$ac_cv_member_struct_msghdr_msg_accrights" = xyes; then :
15908 cat >>confdefs.h <<_ACEOF
15909 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
15910 _ACEOF
15914 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
15915 #ifdef HAVE_SYS_SOCKET_H
15916 # include <sys/socket.h>
15917 #endif
15918 #ifdef HAVE_SYS_UN_H
15919 # include <sys/un.h>
15920 #endif
15922 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
15924 cat >>confdefs.h <<_ACEOF
15925 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
15926 _ACEOF
15930 ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" "#include <sys/types.h>
15931 #ifdef HAVE_SYS_SOCKET_H
15932 # include <sys/socket.h>
15933 #endif
15934 #ifdef HAVE_SYS_UN_H
15935 # include <sys/un.h>
15936 #endif
15938 if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes; then :
15940 cat >>confdefs.h <<_ACEOF
15941 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
15942 _ACEOF
15948 ac_fn_c_check_member "$LINENO" "scsireq_t" "cmd" "ac_cv_member_scsireq_t_cmd" "#include <sys/types.h>
15949 #ifdef HAVE_SCSI_SG_H
15950 #include <scsi/sg.h>
15951 #endif
15953 if test "x$ac_cv_member_scsireq_t_cmd" = xyes; then :
15955 cat >>confdefs.h <<_ACEOF
15956 #define HAVE_SCSIREQ_T_CMD 1
15957 _ACEOF
15961 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>
15962 #ifdef HAVE_SCSI_SG_H
15963 #include <scsi/sg.h>
15964 #endif
15966 if test "x$ac_cv_member_sg_io_hdr_t_interface_id" = xyes; then :
15968 cat >>confdefs.h <<_ACEOF
15969 #define HAVE_SG_IO_HDR_T_INTERFACE_ID 1
15970 _ACEOF
15976 ac_fn_c_check_member "$LINENO" "siginfo_t" "si_fd" "ac_cv_member_siginfo_t_si_fd" "#include <signal.h>
15978 if test "x$ac_cv_member_siginfo_t_si_fd" = xyes; then :
15980 cat >>confdefs.h <<_ACEOF
15981 #define HAVE_SIGINFO_T_SI_FD 1
15982 _ACEOF
15988 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blksiz" "ac_cv_member_struct_mtget_mt_blksiz" "#include <sys/types.h>
15989 #ifdef HAVE_SYS_MTIO_H
15990 #include <sys/mtio.h>
15991 #endif
15993 if test "x$ac_cv_member_struct_mtget_mt_blksiz" = xyes; then :
15995 cat >>confdefs.h <<_ACEOF
15996 #define HAVE_STRUCT_MTGET_MT_BLKSIZ 1
15997 _ACEOF
16001 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_gstat" "ac_cv_member_struct_mtget_mt_gstat" "#include <sys/types.h>
16002 #ifdef HAVE_SYS_MTIO_H
16003 #include <sys/mtio.h>
16004 #endif
16006 if test "x$ac_cv_member_struct_mtget_mt_gstat" = xyes; then :
16008 cat >>confdefs.h <<_ACEOF
16009 #define HAVE_STRUCT_MTGET_MT_GSTAT 1
16010 _ACEOF
16014 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blkno" "ac_cv_member_struct_mtget_mt_blkno" "#include <sys/types.h>
16015 #ifdef HAVE_SYS_MTIO_H
16016 #include <sys/mtio.h>
16017 #endif
16019 if test "x$ac_cv_member_struct_mtget_mt_blkno" = xyes; then :
16021 cat >>confdefs.h <<_ACEOF
16022 #define HAVE_STRUCT_MTGET_MT_BLKNO 1
16023 _ACEOF
16029 ac_fn_c_check_member "$LINENO" "struct option" "name" "ac_cv_member_struct_option_name" "#ifdef HAVE_GETOPT_H
16030 #include <getopt.h>
16031 #endif
16033 if test "x$ac_cv_member_struct_option_name" = xyes; then :
16035 cat >>confdefs.h <<_ACEOF
16036 #define HAVE_STRUCT_OPTION_NAME 1
16037 _ACEOF
16043 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
16044 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
16046 cat >>confdefs.h <<_ACEOF
16047 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
16048 _ACEOF
16052 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
16053 if test "x$ac_cv_member_struct_stat_st_mtim" = xyes; then :
16055 cat >>confdefs.h <<_ACEOF
16056 #define HAVE_STRUCT_STAT_ST_MTIM 1
16057 _ACEOF
16061 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimespec" "ac_cv_member_struct_stat_st_mtimespec" "$ac_includes_default"
16062 if test "x$ac_cv_member_struct_stat_st_mtimespec" = xyes; then :
16064 cat >>confdefs.h <<_ACEOF
16065 #define HAVE_STRUCT_STAT_ST_MTIMESPEC 1
16066 _ACEOF
16070 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctim" "ac_cv_member_struct_stat_st_ctim" "$ac_includes_default"
16071 if test "x$ac_cv_member_struct_stat_st_ctim" = xyes; then :
16073 cat >>confdefs.h <<_ACEOF
16074 #define HAVE_STRUCT_STAT_ST_CTIM 1
16075 _ACEOF
16079 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctimespec" "ac_cv_member_struct_stat_st_ctimespec" "$ac_includes_default"
16080 if test "x$ac_cv_member_struct_stat_st_ctimespec" = xyes; then :
16082 cat >>confdefs.h <<_ACEOF
16083 #define HAVE_STRUCT_STAT_ST_CTIMESPEC 1
16084 _ACEOF
16088 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
16089 if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
16091 cat >>confdefs.h <<_ACEOF
16092 #define HAVE_STRUCT_STAT_ST_ATIM 1
16093 _ACEOF
16097 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimespec" "ac_cv_member_struct_stat_st_atimespec" "$ac_includes_default"
16098 if test "x$ac_cv_member_struct_stat_st_atimespec" = xyes; then :
16100 cat >>confdefs.h <<_ACEOF
16101 #define HAVE_STRUCT_STAT_ST_ATIMESPEC 1
16102 _ACEOF
16106 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtime" "ac_cv_member_struct_stat_st_birthtime" "$ac_includes_default"
16107 if test "x$ac_cv_member_struct_stat_st_birthtime" = xyes; then :
16109 cat >>confdefs.h <<_ACEOF
16110 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
16111 _ACEOF
16115 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtim" "ac_cv_member_struct_stat_st_birthtim" "$ac_includes_default"
16116 if test "x$ac_cv_member_struct_stat_st_birthtim" = xyes; then :
16118 cat >>confdefs.h <<_ACEOF
16119 #define HAVE_STRUCT_STAT_ST_BIRTHTIM 1
16120 _ACEOF
16124 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimespec" "ac_cv_member_struct_stat_st_birthtimespec" "$ac_includes_default"
16125 if test "x$ac_cv_member_struct_stat_st_birthtimespec" = xyes; then :
16127 cat >>confdefs.h <<_ACEOF
16128 #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC 1
16129 _ACEOF
16133 ac_fn_c_check_member "$LINENO" "struct stat" "__st_birthtime" "ac_cv_member_struct_stat___st_birthtime" "$ac_includes_default"
16134 if test "x$ac_cv_member_struct_stat___st_birthtime" = xyes; then :
16136 cat >>confdefs.h <<_ACEOF
16137 #define HAVE_STRUCT_STAT___ST_BIRTHTIME 1
16138 _ACEOF
16142 ac_fn_c_check_member "$LINENO" "struct stat" "__st_birthtim" "ac_cv_member_struct_stat___st_birthtim" "$ac_includes_default"
16143 if test "x$ac_cv_member_struct_stat___st_birthtim" = xyes; then :
16145 cat >>confdefs.h <<_ACEOF
16146 #define HAVE_STRUCT_STAT___ST_BIRTHTIM 1
16147 _ACEOF
16153 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
16154 #include <sys/types.h>
16155 #endif
16156 #ifdef HAVE_NETINET_IN_H
16157 #include <netinet/in.h>
16158 #endif
16160 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = xyes; then :
16162 cat >>confdefs.h <<_ACEOF
16163 #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
16164 _ACEOF
16170 ac_fn_c_check_type "$LINENO" "struct __res_state" "ac_cv_type_struct___res_state" "#ifdef HAVE_RESOLV_H
16171 #include <resolv.h>
16172 #endif
16174 if test "x$ac_cv_type_struct___res_state" = xyes; then :
16176 cat >>confdefs.h <<_ACEOF
16177 #define HAVE_STRUCT___RES_STATE 1
16178 _ACEOF
16184 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
16185 #include <resolv.h>
16186 #endif
16188 if test "x$ac_cv_member_struct___res_state__u__ext_nscount6" = xyes; then :
16190 cat >>confdefs.h <<_ACEOF
16191 #define HAVE_STRUCT___RES_STATE__U__EXT_NSCOUNT6 1
16192 _ACEOF
16198 ac_fn_c_check_member "$LINENO" "ns_msg" "_msg_ptr" "ac_cv_member_ns_msg__msg_ptr" "#ifdef HAVE_SYS_TYPES_H
16199 #include <sys/types.h>
16200 #endif
16201 #ifdef HAVE_NETINET_IN_H
16202 # include <netinet/in.h>
16203 #endif
16204 #ifdef HAVE_ARPA_NAMESER_H
16205 # include <arpa/nameser.h>
16206 #endif
16208 if test "x$ac_cv_member_ns_msg__msg_ptr" = xyes; then :
16210 cat >>confdefs.h <<_ACEOF
16211 #define HAVE_NS_MSG__MSG_PTR 1
16212 _ACEOF
16218 ac_fn_c_check_member "$LINENO" "struct icmpstat" "icps_inhist" "ac_cv_member_struct_icmpstat_icps_inhist" "#ifdef HAVE_SYS_TYPES_H
16219 #include <sys/types.h>
16220 #endif
16221 #ifdef HAVE_NETINET_IP_H
16222 #include <netinet/ip.h>
16223 #endif
16224 #ifdef HAVE_NETINET_IP_ICMP_H
16225 #include <netinet/ip_icmp.h>
16226 #endif
16227 #ifdef HAVE_NETINET_ICMP_VAR_H
16228 #include <netinet/icmp_var.h>
16229 #endif
16231 if test "x$ac_cv_member_struct_icmpstat_icps_inhist" = xyes; then :
16233 cat >>confdefs.h <<_ACEOF
16234 #define HAVE_STRUCT_ICMPSTAT_ICPS_INHIST 1
16235 _ACEOF
16241 ac_fn_c_check_member "$LINENO" "struct icmpstat" "icps_outhist" "ac_cv_member_struct_icmpstat_icps_outhist" "#ifdef HAVE_SYS_TYPES_H
16242 #include <sys/types.h>
16243 #endif
16244 #ifdef HAVE_ALIAS_H
16245 #include <alias.h>
16246 #endif
16247 #ifdef HAVE_SYS_SOCKET_H
16248 #include <sys/socket.h>
16249 #endif
16250 #ifdef HAVE_SYS_SOCKETVAR_H
16251 #include <sys/socketvar.h>
16252 #endif
16253 #ifdef HAVE_SYS_TIMEOUT_H
16254 #include <sys/timeout.h>
16255 #endif
16256 #ifdef HAVE_NETINET_IN_H
16257 #include <netinet/in.h>
16258 #endif
16259 #ifdef HAVE_NETINET_IN_SYSTM_H
16260 #include <netinet/in_systm.h>
16261 #endif
16262 #ifdef HAVE_NETINET_IP_H
16263 #include <netinet/ip.h>
16264 #endif
16265 #ifdef HAVE_NETINET_IP_VAR_H
16266 #include <netinet/ip_var.h>
16267 #endif
16268 #ifdef HAVE_NETINET_IP_ICMP_H
16269 #include <netinet/ip_icmp.h>
16270 #endif
16271 #ifdef HAVE_NETINET_ICMP_VAR_H
16272 #include <netinet/icmp_var.h>
16273 #endif
16275 if test "x$ac_cv_member_struct_icmpstat_icps_outhist" = xyes; then :
16277 cat >>confdefs.h <<_ACEOF
16278 #define HAVE_STRUCT_ICMPSTAT_ICPS_OUTHIST 1
16279 _ACEOF
16285 ac_fn_c_check_member "$LINENO" "struct ipstat" "ips_total" "ac_cv_member_struct_ipstat_ips_total" "#ifdef HAVE_SYS_TYPES_H
16286 #include <sys/types.h>
16287 #endif
16288 #ifdef HAVE_SYS_SOCKETVAR_H
16289 #include <sys/socketvar.h>
16290 #endif
16291 #ifdef HAVE_NETINET_IN_H
16292 #include <netinet/in.h>
16293 #endif
16294 #ifdef HAVE_NETINET_IP_VAR_H
16295 #include <netinet/ip_var.h>
16296 #endif
16298 if test "x$ac_cv_member_struct_ipstat_ips_total" = xyes; then :
16300 cat >>confdefs.h <<_ACEOF
16301 #define HAVE_STRUCT_IPSTAT_IPS_TOTAL 1
16302 _ACEOF
16308 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
16309 #include <netinet/ip_var.h>
16310 #endif
16312 if test "x$ac_cv_member_struct_ip_stats_ips_total" = xyes; then :
16314 cat >>confdefs.h <<_ACEOF
16315 #define HAVE_STRUCT_IP_STATS_IPS_TOTAL 1
16316 _ACEOF
16322 ac_fn_c_check_member "$LINENO" "struct tcpstat" "tcps_connattempt" "ac_cv_member_struct_tcpstat_tcps_connattempt" "#ifdef HAVE_SYS_TYPES_H
16323 #include <sys/types.h>
16324 #endif
16325 #ifdef HAVE_SYS_SOCKETVAR_H
16326 #include <sys/socketvar.h>
16327 #endif
16328 #ifdef HAVE_NETINET_IN_H
16329 #include <netinet/in.h>
16330 #endif
16331 #ifdef HAVE_NETINET_TCP_H
16332 #include <netinet/tcp.h>
16333 #endif
16334 #ifdef HAVE_NETINET_TCP_VAR_H
16335 #include <netinet/tcp_var.h>
16336 #endif
16338 if test "x$ac_cv_member_struct_tcpstat_tcps_connattempt" = xyes; then :
16340 cat >>confdefs.h <<_ACEOF
16341 #define HAVE_STRUCT_TCPSTAT_TCPS_CONNATTEMPT 1
16342 _ACEOF
16348 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
16349 #include <netinet/tcp_var.h>
16350 #endif
16352 if test "x$ac_cv_member_struct_tcp_stats_tcps_connattempt" = xyes; then :
16354 cat >>confdefs.h <<_ACEOF
16355 #define HAVE_STRUCT_TCP_STATS_TCPS_CONNATTEMPT 1
16356 _ACEOF
16362 ac_fn_c_check_member "$LINENO" "struct udpstat" "udps_ipackets" "ac_cv_member_struct_udpstat_udps_ipackets" "#ifdef HAVE_SYS_TYPES_H
16363 #include <sys/types.h>
16364 #endif
16365 #ifdef HAVE_NETINET_IN_H
16366 #include <netinet/in.h>
16367 #endif
16368 #ifdef HAVE_NETINET_IP_VAR_H
16369 #include <netinet/ip_var.h>
16370 #endif
16371 #ifdef HAVE_NETINET_UDP_H
16372 #include <netinet/udp.h>
16373 #endif
16374 #ifdef HAVE_NETINET_UDP_VAR_H
16375 #include <netinet/udp_var.h>
16376 #endif
16378 if test "x$ac_cv_member_struct_udpstat_udps_ipackets" = xyes; then :
16380 cat >>confdefs.h <<_ACEOF
16381 #define HAVE_STRUCT_UDPSTAT_UDPS_IPACKETS 1
16382 _ACEOF
16388 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "#ifdef HAVE_SYS_TYPES_H
16389 #include <sys/types.h>
16390 #endif
16391 #ifdef HAVE_NET_IF_H
16392 # include <net/if.h>
16393 #endif
16395 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = xyes; then :
16397 cat >>confdefs.h <<_ACEOF
16398 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
16399 _ACEOF
16405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone variable" >&5
16406 $as_echo_n "checking for timezone variable... " >&6; }
16407 if ${ac_cv_have_timezone+:} false; then :
16408 $as_echo_n "(cached) " >&6
16409 else
16410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16411 /* end confdefs.h. */
16412 #include <time.h>
16414 main ()
16416 timezone = 1
16418 return 0;
16420 _ACEOF
16421 if ac_fn_c_try_link "$LINENO"; then :
16422 ac_cv_have_timezone="yes"
16423 else
16424 ac_cv_have_timezone="no"
16426 rm -f core conftest.err conftest.$ac_objext \
16427 conftest$ac_exeext conftest.$ac_ext
16429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_timezone" >&5
16430 $as_echo "$ac_cv_have_timezone" >&6; }
16431 if test "$ac_cv_have_timezone" = "yes"
16432 then
16434 $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
16437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daylight variable" >&5
16438 $as_echo_n "checking for daylight variable... " >&6; }
16439 if ${ac_cv_have_daylight+:} false; then :
16440 $as_echo_n "(cached) " >&6
16441 else
16442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16443 /* end confdefs.h. */
16444 #include <time.h>
16446 main ()
16448 daylight = 1
16450 return 0;
16452 _ACEOF
16453 if ac_fn_c_try_link "$LINENO"; then :
16454 ac_cv_have_daylight="yes"
16455 else
16456 ac_cv_have_daylight="no"
16458 rm -f core conftest.err conftest.$ac_objext \
16459 conftest$ac_exeext conftest.$ac_ext
16461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_daylight" >&5
16462 $as_echo "$ac_cv_have_daylight" >&6; }
16463 if test "$ac_cv_have_daylight" = "yes"
16464 then
16466 $as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h
16470 ac_save_LIBS="$LIBS"
16471 LIBS="$LIBS -lm"
16472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isfinite" >&5
16473 $as_echo_n "checking for isfinite... " >&6; }
16474 if ${ac_cv_have_isfinite+:} false; then :
16475 $as_echo_n "(cached) " >&6
16476 else
16477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16478 /* end confdefs.h. */
16479 #define _GNU_SOURCE
16480 #include <math.h>
16482 main ()
16484 float f = 0.0; return isfinite(f)
16486 return 0;
16488 _ACEOF
16489 if ac_fn_c_try_link "$LINENO"; then :
16490 ac_cv_have_isfinite="yes"
16491 else
16492 ac_cv_have_isfinite="no"
16494 rm -f core conftest.err conftest.$ac_objext \
16495 conftest$ac_exeext conftest.$ac_ext
16497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isfinite" >&5
16498 $as_echo "$ac_cv_have_isfinite" >&6; }
16499 if test "$ac_cv_have_isfinite" = "yes"
16500 then
16502 $as_echo "#define HAVE_ISFINITE 1" >>confdefs.h
16506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf" >&5
16507 $as_echo_n "checking for isinf... " >&6; }
16508 if ${ac_cv_have_isinf+:} false; then :
16509 $as_echo_n "(cached) " >&6
16510 else
16511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16512 /* end confdefs.h. */
16513 #include <math.h>
16515 main ()
16517 float f = 0.0; return isinf(f)
16519 return 0;
16521 _ACEOF
16522 if ac_fn_c_try_link "$LINENO"; then :
16523 ac_cv_have_isinf="yes"
16524 else
16525 ac_cv_have_isinf="no"
16527 rm -f core conftest.err conftest.$ac_objext \
16528 conftest$ac_exeext conftest.$ac_ext
16530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isinf" >&5
16531 $as_echo "$ac_cv_have_isinf" >&6; }
16532 if test "$ac_cv_have_isinf" = "yes"
16533 then
16535 $as_echo "#define HAVE_ISINF 1" >>confdefs.h
16539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan" >&5
16540 $as_echo_n "checking for isnan... " >&6; }
16541 if ${ac_cv_have_isnan+:} false; then :
16542 $as_echo_n "(cached) " >&6
16543 else
16544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16545 /* end confdefs.h. */
16546 #include <math.h>
16548 main ()
16550 float f = 0.0; return isnan(f)
16552 return 0;
16554 _ACEOF
16555 if ac_fn_c_try_link "$LINENO"; then :
16556 ac_cv_have_isnan="yes"
16557 else
16558 ac_cv_have_isnan="no"
16560 rm -f core conftest.err conftest.$ac_objext \
16561 conftest$ac_exeext conftest.$ac_ext
16563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isnan" >&5
16564 $as_echo "$ac_cv_have_isnan" >&6; }
16565 if test "$ac_cv_have_isnan" = "yes"
16566 then
16568 $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
16572 for ac_func in \
16573 cbrt \
16574 cbrtf \
16575 erf \
16576 erff \
16577 exp2 \
16578 exp2f \
16579 llrint \
16580 llrintf \
16581 llround \
16582 llroundf \
16583 log2 \
16584 log2f \
16585 lrint \
16586 lrintf \
16587 lround \
16588 lroundf \
16589 rint \
16590 rintf \
16591 round \
16592 roundf \
16593 trunc \
16594 truncf
16596 do :
16597 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16598 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16599 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16600 cat >>confdefs.h <<_ACEOF
16601 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16602 _ACEOF
16605 done
16607 LIBS="$ac_save_LIBS"
16609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_clz" >&5
16610 $as_echo_n "checking for __builtin_clz... " >&6; }
16611 if ${ac_cv_have___builtin_clz+:} false; then :
16612 $as_echo_n "(cached) " >&6
16613 else
16614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16615 /* end confdefs.h. */
16618 main ()
16620 return __builtin_clz(1)
16622 return 0;
16624 _ACEOF
16625 if ac_fn_c_try_link "$LINENO"; then :
16626 ac_cv_have___builtin_clz="yes"
16627 else
16628 ac_cv_have___builtin_clz="no"
16630 rm -f core conftest.err conftest.$ac_objext \
16631 conftest$ac_exeext conftest.$ac_ext
16633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___builtin_clz" >&5
16634 $as_echo "$ac_cv_have___builtin_clz" >&6; }
16635 if test "$ac_cv_have___builtin_clz" = "yes"
16636 then
16638 $as_echo "#define HAVE___BUILTIN_CLZ 1" >>confdefs.h
16643 case $host_cpu in
16644 *i[3456789]86*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __i386__" >&5
16645 $as_echo_n "checking whether we need to define __i386__... " >&6; }
16646 if ${ac_cv_cpp_def___i386__+:} false; then :
16647 $as_echo_n "(cached) " >&6
16648 else
16649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16650 /* end confdefs.h. */
16651 #ifndef __i386__
16653 #endif
16654 _ACEOF
16655 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16656 $EGREP "yes" >/dev/null 2>&1; then :
16657 ac_cv_cpp_def___i386__=yes
16658 else
16659 ac_cv_cpp_def___i386__=no
16661 rm -f conftest*
16664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___i386__" >&5
16665 $as_echo "$ac_cv_cpp_def___i386__" >&6; }
16666 if test "x$ac_cv_cpp_def___i386__" = xyes; then :
16667 CFLAGS="$CFLAGS -D__i386__"
16668 LINTFLAGS="$LINTFLAGS -D__i386__"
16669 fi ;;
16670 *x86_64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __x86_64__" >&5
16671 $as_echo_n "checking whether we need to define __x86_64__... " >&6; }
16672 if ${ac_cv_cpp_def___x86_64__+:} false; then :
16673 $as_echo_n "(cached) " >&6
16674 else
16675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16676 /* end confdefs.h. */
16677 #ifndef __x86_64__
16679 #endif
16680 _ACEOF
16681 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16682 $EGREP "yes" >/dev/null 2>&1; then :
16683 ac_cv_cpp_def___x86_64__=yes
16684 else
16685 ac_cv_cpp_def___x86_64__=no
16687 rm -f conftest*
16690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___x86_64__" >&5
16691 $as_echo "$ac_cv_cpp_def___x86_64__" >&6; }
16692 if test "x$ac_cv_cpp_def___x86_64__" = xyes; then :
16693 CFLAGS="$CFLAGS -D__x86_64__"
16694 LINTFLAGS="$LINTFLAGS -D__x86_64__"
16695 fi ;;
16696 *sparc64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sparc64__" >&5
16697 $as_echo_n "checking whether we need to define __sparc64__... " >&6; }
16698 if ${ac_cv_cpp_def___sparc64__+:} false; then :
16699 $as_echo_n "(cached) " >&6
16700 else
16701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16702 /* end confdefs.h. */
16703 #ifndef __sparc64__
16705 #endif
16706 _ACEOF
16707 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16708 $EGREP "yes" >/dev/null 2>&1; then :
16709 ac_cv_cpp_def___sparc64__=yes
16710 else
16711 ac_cv_cpp_def___sparc64__=no
16713 rm -f conftest*
16716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sparc64__" >&5
16717 $as_echo "$ac_cv_cpp_def___sparc64__" >&6; }
16718 if test "x$ac_cv_cpp_def___sparc64__" = xyes; then :
16719 CFLAGS="$CFLAGS -D__sparc64__"
16720 LINTFLAGS="$LINTFLAGS -D__sparc64__"
16721 fi ;;
16722 *sparc*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sparc__" >&5
16723 $as_echo_n "checking whether we need to define __sparc__... " >&6; }
16724 if ${ac_cv_cpp_def___sparc__+:} false; then :
16725 $as_echo_n "(cached) " >&6
16726 else
16727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16728 /* end confdefs.h. */
16729 #ifndef __sparc__
16731 #endif
16732 _ACEOF
16733 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16734 $EGREP "yes" >/dev/null 2>&1; then :
16735 ac_cv_cpp_def___sparc__=yes
16736 else
16737 ac_cv_cpp_def___sparc__=no
16739 rm -f conftest*
16742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sparc__" >&5
16743 $as_echo "$ac_cv_cpp_def___sparc__" >&6; }
16744 if test "x$ac_cv_cpp_def___sparc__" = xyes; then :
16745 CFLAGS="$CFLAGS -D__sparc__"
16746 LINTFLAGS="$LINTFLAGS -D__sparc__"
16747 fi ;;
16748 *powerpc64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __powerpc64__" >&5
16749 $as_echo_n "checking whether we need to define __powerpc64__... " >&6; }
16750 if ${ac_cv_cpp_def___powerpc64__+:} false; then :
16751 $as_echo_n "(cached) " >&6
16752 else
16753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16754 /* end confdefs.h. */
16755 #ifndef __powerpc64__
16757 #endif
16758 _ACEOF
16759 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16760 $EGREP "yes" >/dev/null 2>&1; then :
16761 ac_cv_cpp_def___powerpc64__=yes
16762 else
16763 ac_cv_cpp_def___powerpc64__=no
16765 rm -f conftest*
16768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___powerpc64__" >&5
16769 $as_echo "$ac_cv_cpp_def___powerpc64__" >&6; }
16770 if test "x$ac_cv_cpp_def___powerpc64__" = xyes; then :
16771 CFLAGS="$CFLAGS -D__powerpc64__"
16772 LINTFLAGS="$LINTFLAGS -D__powerpc64__"
16773 fi ;;
16774 *powerpc*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __powerpc__" >&5
16775 $as_echo_n "checking whether we need to define __powerpc__... " >&6; }
16776 if ${ac_cv_cpp_def___powerpc__+:} false; then :
16777 $as_echo_n "(cached) " >&6
16778 else
16779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16780 /* end confdefs.h. */
16781 #ifndef __powerpc__
16783 #endif
16784 _ACEOF
16785 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16786 $EGREP "yes" >/dev/null 2>&1; then :
16787 ac_cv_cpp_def___powerpc__=yes
16788 else
16789 ac_cv_cpp_def___powerpc__=no
16791 rm -f conftest*
16794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___powerpc__" >&5
16795 $as_echo "$ac_cv_cpp_def___powerpc__" >&6; }
16796 if test "x$ac_cv_cpp_def___powerpc__" = xyes; then :
16797 CFLAGS="$CFLAGS -D__powerpc__"
16798 LINTFLAGS="$LINTFLAGS -D__powerpc__"
16799 fi ;;
16800 *aarch64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __aarch64__" >&5
16801 $as_echo_n "checking whether we need to define __aarch64__... " >&6; }
16802 if ${ac_cv_cpp_def___aarch64__+:} false; then :
16803 $as_echo_n "(cached) " >&6
16804 else
16805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16806 /* end confdefs.h. */
16807 #ifndef __aarch64__
16809 #endif
16810 _ACEOF
16811 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16812 $EGREP "yes" >/dev/null 2>&1; then :
16813 ac_cv_cpp_def___aarch64__=yes
16814 else
16815 ac_cv_cpp_def___aarch64__=no
16817 rm -f conftest*
16820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___aarch64__" >&5
16821 $as_echo "$ac_cv_cpp_def___aarch64__" >&6; }
16822 if test "x$ac_cv_cpp_def___aarch64__" = xyes; then :
16823 CFLAGS="$CFLAGS -D__aarch64__"
16824 LINTFLAGS="$LINTFLAGS -D__aarch64__"
16825 fi ;;
16826 *arm*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __arm__" >&5
16827 $as_echo_n "checking whether we need to define __arm__... " >&6; }
16828 if ${ac_cv_cpp_def___arm__+:} false; then :
16829 $as_echo_n "(cached) " >&6
16830 else
16831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16832 /* end confdefs.h. */
16833 #ifndef __arm__
16835 #endif
16836 _ACEOF
16837 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16838 $EGREP "yes" >/dev/null 2>&1; then :
16839 ac_cv_cpp_def___arm__=yes
16840 else
16841 ac_cv_cpp_def___arm__=no
16843 rm -f conftest*
16846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___arm__" >&5
16847 $as_echo "$ac_cv_cpp_def___arm__" >&6; }
16848 if test "x$ac_cv_cpp_def___arm__" = xyes; then :
16849 CFLAGS="$CFLAGS -D__arm__"
16850 LINTFLAGS="$LINTFLAGS -D__arm__"
16851 fi ;;
16852 esac
16854 case $host_vendor in
16855 *sun*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sun__" >&5
16856 $as_echo_n "checking whether we need to define __sun__... " >&6; }
16857 if ${ac_cv_cpp_def___sun__+:} false; then :
16858 $as_echo_n "(cached) " >&6
16859 else
16860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16861 /* end confdefs.h. */
16862 #ifndef __sun__
16864 #endif
16865 _ACEOF
16866 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16867 $EGREP "yes" >/dev/null 2>&1; then :
16868 ac_cv_cpp_def___sun__=yes
16869 else
16870 ac_cv_cpp_def___sun__=no
16872 rm -f conftest*
16875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sun__" >&5
16876 $as_echo "$ac_cv_cpp_def___sun__" >&6; }
16877 if test "x$ac_cv_cpp_def___sun__" = xyes; then :
16878 CFLAGS="$CFLAGS -D__sun__"
16879 LINTFLAGS="$LINTFLAGS -D__sun__"
16880 fi ;;
16881 esac
16887 ac_config_commands="$ac_config_commands include/stamp-h"
16889 $as_echo_n "creating Makefile rules..." >&6
16891 ALL_VARS_RULES="OPENGL_LIBS = $OPENGL_LIBS
16892 SOCKET_LIBS = $SOCKET_LIBS
16893 COREFOUNDATION_LIBS = $COREFOUNDATION_LIBS
16894 IOKIT_LIBS = $IOKIT_LIBS
16895 FORCEFEEDBACK_LIBS = $FORCEFEEDBACK_LIBS
16896 APPLICATIONSERVICES_LIBS = $APPLICATIONSERVICES_LIBS
16897 CORESERVICES_LIBS = $CORESERVICES_LIBS
16898 APPKIT_LIBS = $APPKIT_LIBS
16899 DISKARBITRATION_LIBS = $DISKARBITRATION_LIBS
16900 SECURITY_LIBS = $SECURITY_LIBS
16901 COREAUDIO_LIBS = $COREAUDIO_LIBS
16902 OPENAL_LIBS = $OPENAL_LIBS
16903 OPENCL_LIBS = $OPENCL_LIBS
16904 QUICKTIME_LIBS = $QUICKTIME_LIBS
16905 CARBON_LIBS = $CARBON_LIBS
16906 PTHREAD_LIBS = $PTHREAD_LIBS
16907 X_CFLAGS = $X_CFLAGS
16908 X_PRE_LIBS = $X_PRE_LIBS
16909 X_LIBS = $X_LIBS
16910 X_EXTRA_LIBS = $X_EXTRA_LIBS
16911 XML2_CFLAGS = $XML2_CFLAGS
16912 XML2_LIBS = $XML2_LIBS
16913 XSLT_CFLAGS = $XSLT_CFLAGS
16914 XSLT_LIBS = $XSLT_LIBS
16915 DBUS_CFLAGS = $DBUS_CFLAGS
16916 DBUS_LIBS = $DBUS_LIBS
16917 HAL_CFLAGS = $HAL_CFLAGS
16918 HAL_LIBS = $HAL_LIBS
16919 GNUTLS_CFLAGS = $GNUTLS_CFLAGS
16920 GNUTLS_LIBS = $GNUTLS_LIBS
16921 SANE_CFLAGS = $SANE_CFLAGS
16922 SANE_LIBS = $SANE_LIBS
16923 GPHOTO2_CFLAGS = $GPHOTO2_CFLAGS
16924 GPHOTO2_LIBS = $GPHOTO2_LIBS
16925 GPHOTO2_PORT_CFLAGS = $GPHOTO2_PORT_CFLAGS
16926 GPHOTO2_PORT_LIBS = $GPHOTO2_PORT_LIBS
16927 RESOLV_LIBS = $RESOLV_LIBS
16928 LCMS2_CFLAGS = $LCMS2_CFLAGS
16929 LCMS2_LIBS = $LCMS2_LIBS
16930 FREETYPE_CFLAGS = $FREETYPE_CFLAGS
16931 FREETYPE_LIBS = $FREETYPE_LIBS
16932 Z_LIBS = $Z_LIBS
16933 GETTEXTPO_LIBS = $GETTEXTPO_LIBS
16934 GSTREAMER_CFLAGS = $GSTREAMER_CFLAGS
16935 GSTREAMER_LIBS = $GSTREAMER_LIBS
16936 ALSA_LIBS = $ALSA_LIBS
16937 OSS4_CFLAGS = $OSS4_CFLAGS
16938 CAPI20_CFLAGS = $CAPI20_CFLAGS
16939 CAPI20_LIBS = $CAPI20_LIBS
16940 CUPS_CFLAGS = $CUPS_CFLAGS
16941 FONTCONFIG_CFLAGS = $FONTCONFIG_CFLAGS
16942 FONTCONFIG_LIBS = $FONTCONFIG_LIBS
16943 JPEG_CFLAGS = $JPEG_CFLAGS
16944 JPEG_LIBS = $JPEG_LIBS
16945 PNG_CFLAGS = $PNG_CFLAGS
16946 PNG_LIBS = $PNG_LIBS
16947 TIFF_CFLAGS = $TIFF_CFLAGS
16948 TIFF_LIBS = $TIFF_LIBS
16949 MPG123_CFLAGS = $MPG123_CFLAGS
16950 MPG123_LIBS = $MPG123_LIBS
16951 KSTAT_LIBS = $KSTAT_LIBS
16952 PROCSTAT_LIBS = $PROCSTAT_LIBS
16953 DL_LIBS = $DL_LIBS
16954 POLL_LIBS = $POLL_LIBS
16955 RT_LIBS = $RT_LIBS
16956 LDAP_LIBS = $LDAP_LIBS
16961 wine_fn_append_rule "
16962 # Rules automatically generated by configure
16964 CLEAN_FILES = *.o *.a *.so *.res *.fake *.ok *.tab.[ch] *.yy.c
16966 .INIT: Makefile
16967 .MAKEFILEDEPS:
16968 all: Makefile
16969 Makefile: $srcdir/Makefile.in $srcdir/Make.vars.in config.status \$(MAKEDEP)
16970 @./config.status Make.tmp Makefile"
16972 test "$srcdir" = . && wine_fn_append_rule "all: .gitignore
16973 .gitignore: config.status
16974 @./config.status .gitignore"
16976 test -n "$CROSSTARGET" || wine_fn_append_rule "crosstest:
16977 @echo \"crosstest is not supported (mingw not installed?)\" && false"
16979 if test "x$enable_fonts" != xno; then
16980 ac_config_links="$ac_config_links fonts/marlett.ttf:fonts/marlett.ttf"
16981 ac_config_links="$ac_config_links fonts/symbol.ttf:fonts/symbol.ttf"
16982 ac_config_links="$ac_config_links fonts/tahoma.ttf:fonts/tahoma.ttf"
16983 ac_config_links="$ac_config_links fonts/tahomabd.ttf:fonts/tahomabd.ttf"
16984 test "$srcdir" = "." || wine_fn_config_symlink fonts/marlett.ttf fonts/symbol.ttf fonts/tahoma.ttf fonts/tahomabd.ttf
16986 ac_config_links="$ac_config_links loader/l_intl.nls:loader/l_intl.nls"
16987 test "$srcdir" = "." || wine_fn_config_symlink loader/l_intl.nls
16988 ac_config_links="$ac_config_links po/LINGUAS:po/LINGUAS"
16989 test "$srcdir" = "." || wine_fn_config_symlink po/LINGUAS
16990 ac_config_links="$ac_config_links wine:tools/winewrapper"
16991 wine_fn_config_symlink wine
16992 if test "x$enable_win64" != xno; then
16993 ac_config_links="$ac_config_links wine64:tools/winewrapper"
16994 wine_fn_config_symlink wine64
16997 wine_fn_config_dll acledit enable_acledit
16998 wine_fn_config_dll aclui enable_aclui implib
16999 wine_fn_config_dll activeds enable_activeds implib
17000 wine_fn_config_dll actxprxy enable_actxprxy clean
17001 wine_fn_config_lib adsiid
17002 wine_fn_config_dll advapi32 enable_advapi32 clean,implib
17003 wine_fn_config_test dlls/advapi32/tests advapi32_test
17004 wine_fn_config_dll advpack enable_advpack implib
17005 wine_fn_config_test dlls/advpack/tests advpack_test
17006 wine_fn_config_dll amstream enable_amstream clean
17007 wine_fn_config_test dlls/amstream/tests amstream_test
17008 wine_fn_config_dll api-ms-win-core-com-l1-1-0 enable_api_ms_win_core_com_l1_1_0
17009 wine_fn_config_dll api-ms-win-core-console-l1-1-0 enable_api_ms_win_core_console_l1_1_0
17010 wine_fn_config_dll api-ms-win-core-datetime-l1-1-0 enable_api_ms_win_core_datetime_l1_1_0
17011 wine_fn_config_dll api-ms-win-core-datetime-l1-1-1 enable_api_ms_win_core_datetime_l1_1_1
17012 wine_fn_config_dll api-ms-win-core-debug-l1-1-0 enable_api_ms_win_core_debug_l1_1_0
17013 wine_fn_config_dll api-ms-win-core-debug-l1-1-1 enable_api_ms_win_core_debug_l1_1_1
17014 wine_fn_config_dll api-ms-win-core-errorhandling-l1-1-0 enable_api_ms_win_core_errorhandling_l1_1_0
17015 wine_fn_config_dll api-ms-win-core-errorhandling-l1-1-1 enable_api_ms_win_core_errorhandling_l1_1_1
17016 wine_fn_config_dll api-ms-win-core-errorhandling-l1-1-2 enable_api_ms_win_core_errorhandling_l1_1_2
17017 wine_fn_config_dll api-ms-win-core-fibers-l1-1-0 enable_api_ms_win_core_fibers_l1_1_0
17018 wine_fn_config_dll api-ms-win-core-fibers-l1-1-1 enable_api_ms_win_core_fibers_l1_1_1
17019 wine_fn_config_dll api-ms-win-core-file-l1-1-0 enable_api_ms_win_core_file_l1_1_0
17020 wine_fn_config_dll api-ms-win-core-file-l1-2-0 enable_api_ms_win_core_file_l1_2_0
17021 wine_fn_config_dll api-ms-win-core-file-l2-1-0 enable_api_ms_win_core_file_l2_1_0
17022 wine_fn_config_dll api-ms-win-core-file-l2-1-1 enable_api_ms_win_core_file_l2_1_1
17023 wine_fn_config_dll api-ms-win-core-handle-l1-1-0 enable_api_ms_win_core_handle_l1_1_0
17024 wine_fn_config_dll api-ms-win-core-heap-l1-1-0 enable_api_ms_win_core_heap_l1_1_0
17025 wine_fn_config_dll api-ms-win-core-heap-l1-2-0 enable_api_ms_win_core_heap_l1_2_0
17026 wine_fn_config_dll api-ms-win-core-heap-obsolete-l1-1-0 enable_api_ms_win_core_heap_obsolete_l1_1_0
17027 wine_fn_config_dll api-ms-win-core-interlocked-l1-1-0 enable_api_ms_win_core_interlocked_l1_1_0
17028 wine_fn_config_dll api-ms-win-core-interlocked-l1-2-0 enable_api_ms_win_core_interlocked_l1_2_0
17029 wine_fn_config_dll api-ms-win-core-io-l1-1-1 enable_api_ms_win_core_io_l1_1_1
17030 wine_fn_config_dll api-ms-win-core-kernel32-legacy-l1-1-0 enable_api_ms_win_core_kernel32_legacy_l1_1_0
17031 wine_fn_config_dll api-ms-win-core-libraryloader-l1-1-0 enable_api_ms_win_core_libraryloader_l1_1_0
17032 wine_fn_config_dll api-ms-win-core-libraryloader-l1-1-1 enable_api_ms_win_core_libraryloader_l1_1_1
17033 wine_fn_config_dll api-ms-win-core-localization-l1-2-0 enable_api_ms_win_core_localization_l1_2_0
17034 wine_fn_config_dll api-ms-win-core-localization-l1-2-1 enable_api_ms_win_core_localization_l1_2_1
17035 wine_fn_config_dll api-ms-win-core-localization-obsolete-l1-1-0 enable_api_ms_win_core_localization_obsolete_l1_1_0
17036 wine_fn_config_dll api-ms-win-core-localregistry-l1-1-0 enable_api_ms_win_core_localregistry_l1_1_0
17037 wine_fn_config_dll api-ms-win-core-memory-l1-1-0 enable_api_ms_win_core_memory_l1_1_0
17038 wine_fn_config_dll api-ms-win-core-memory-l1-1-1 enable_api_ms_win_core_memory_l1_1_1
17039 wine_fn_config_dll api-ms-win-core-misc-l1-1-0 enable_api_ms_win_core_misc_l1_1_0
17040 wine_fn_config_dll api-ms-win-core-namedpipe-l1-1-0 enable_api_ms_win_core_namedpipe_l1_1_0
17041 wine_fn_config_dll api-ms-win-core-namedpipe-l1-2-0 enable_api_ms_win_core_namedpipe_l1_2_0
17042 wine_fn_config_dll api-ms-win-core-processenvironment-l1-1-0 enable_api_ms_win_core_processenvironment_l1_1_0
17043 wine_fn_config_dll api-ms-win-core-processenvironment-l1-2-0 enable_api_ms_win_core_processenvironment_l1_2_0
17044 wine_fn_config_dll api-ms-win-core-processthreads-l1-1-0 enable_api_ms_win_core_processthreads_l1_1_0
17045 wine_fn_config_dll api-ms-win-core-processthreads-l1-1-1 enable_api_ms_win_core_processthreads_l1_1_1
17046 wine_fn_config_dll api-ms-win-core-processthreads-l1-1-2 enable_api_ms_win_core_processthreads_l1_1_2
17047 wine_fn_config_dll api-ms-win-core-profile-l1-1-0 enable_api_ms_win_core_profile_l1_1_0
17048 wine_fn_config_dll api-ms-win-core-psapi-l1-1-0 enable_api_ms_win_core_psapi_l1_1_0
17049 wine_fn_config_dll api-ms-win-core-registry-l1-1-0 enable_api_ms_win_core_registry_l1_1_0
17050 wine_fn_config_dll api-ms-win-core-rtlsupport-l1-1-0 enable_api_ms_win_core_rtlsupport_l1_1_0
17051 wine_fn_config_dll api-ms-win-core-rtlsupport-l1-2-0 enable_api_ms_win_core_rtlsupport_l1_2_0
17052 wine_fn_config_dll api-ms-win-core-shlwapi-legacy-l1-1-0 enable_api_ms_win_core_shlwapi_legacy_l1_1_0
17053 wine_fn_config_dll api-ms-win-core-string-l1-1-0 enable_api_ms_win_core_string_l1_1_0
17054 wine_fn_config_dll api-ms-win-core-synch-l1-1-0 enable_api_ms_win_core_synch_l1_1_0
17055 wine_fn_config_dll api-ms-win-core-synch-l1-2-0 enable_api_ms_win_core_synch_l1_2_0
17056 wine_fn_config_dll api-ms-win-core-sysinfo-l1-1-0 enable_api_ms_win_core_sysinfo_l1_1_0
17057 wine_fn_config_dll api-ms-win-core-sysinfo-l1-2-0 enable_api_ms_win_core_sysinfo_l1_2_0
17058 wine_fn_config_dll api-ms-win-core-sysinfo-l1-2-1 enable_api_ms_win_core_sysinfo_l1_2_1
17059 wine_fn_config_dll api-ms-win-core-threadpool-legacy-l1-1-0 enable_api_ms_win_core_threadpool_legacy_l1_1_0
17060 wine_fn_config_dll api-ms-win-core-timezone-l1-1-0 enable_api_ms_win_core_timezone_l1_1_0
17061 wine_fn_config_dll api-ms-win-core-url-l1-1-0 enable_api_ms_win_core_url_l1_1_0
17062 wine_fn_config_dll api-ms-win-core-util-l1-1-0 enable_api_ms_win_core_util_l1_1_0
17063 wine_fn_config_dll api-ms-win-core-winrt-error-l1-1-0 enable_api_ms_win_core_winrt_error_l1_1_0
17064 wine_fn_config_dll api-ms-win-core-winrt-error-l1-1-1 enable_api_ms_win_core_winrt_error_l1_1_1
17065 wine_fn_config_dll api-ms-win-core-winrt-l1-1-0 enable_api_ms_win_core_winrt_l1_1_0
17066 wine_fn_config_dll api-ms-win-core-winrt-string-l1-1-0 enable_api_ms_win_core_winrt_string_l1_1_0
17067 wine_fn_config_dll api-ms-win-core-xstate-l2-1-0 enable_api_ms_win_core_xstate_l2_1_0
17068 wine_fn_config_dll api-ms-win-downlevel-advapi32-l1-1-0 enable_api_ms_win_downlevel_advapi32_l1_1_0
17069 wine_fn_config_dll api-ms-win-downlevel-advapi32-l2-1-0 enable_api_ms_win_downlevel_advapi32_l2_1_0
17070 wine_fn_config_dll api-ms-win-downlevel-normaliz-l1-1-0 enable_api_ms_win_downlevel_normaliz_l1_1_0
17071 wine_fn_config_dll api-ms-win-downlevel-ole32-l1-1-0 enable_api_ms_win_downlevel_ole32_l1_1_0
17072 wine_fn_config_dll api-ms-win-downlevel-shell32-l1-1-0 enable_api_ms_win_downlevel_shell32_l1_1_0
17073 wine_fn_config_dll api-ms-win-downlevel-shlwapi-l1-1-0 enable_api_ms_win_downlevel_shlwapi_l1_1_0
17074 wine_fn_config_dll api-ms-win-downlevel-shlwapi-l2-1-0 enable_api_ms_win_downlevel_shlwapi_l2_1_0
17075 wine_fn_config_dll api-ms-win-downlevel-user32-l1-1-0 enable_api_ms_win_downlevel_user32_l1_1_0
17076 wine_fn_config_dll api-ms-win-downlevel-version-l1-1-0 enable_api_ms_win_downlevel_version_l1_1_0
17077 wine_fn_config_dll api-ms-win-eventing-provider-l1-1-0 enable_api_ms_win_eventing_provider_l1_1_0
17078 wine_fn_config_dll api-ms-win-ntuser-dc-access-l1-1-0 enable_api_ms_win_ntuser_dc_access_l1_1_0
17079 wine_fn_config_dll api-ms-win-security-base-l1-1-0 enable_api_ms_win_security_base_l1_1_0
17080 wine_fn_config_dll api-ms-win-security-base-l1-2-0 enable_api_ms_win_security_base_l1_2_0
17081 wine_fn_config_dll api-ms-win-security-sddl-l1-1-0 enable_api_ms_win_security_sddl_l1_1_0
17082 wine_fn_config_dll api-ms-win-service-core-l1-1-1 enable_api_ms_win_service_core_l1_1_1
17083 wine_fn_config_dll api-ms-win-service-management-l1-1-0 enable_api_ms_win_service_management_l1_1_0
17084 wine_fn_config_dll api-ms-win-service-winsvc-l1-2-0 enable_api_ms_win_service_winsvc_l1_2_0
17085 wine_fn_config_dll apphelp enable_apphelp
17086 wine_fn_config_test dlls/apphelp/tests apphelp_test
17087 wine_fn_config_dll appwiz.cpl enable_appwiz_cpl po
17088 wine_fn_config_dll atl enable_atl clean,implib
17089 wine_fn_config_test dlls/atl/tests atl_test
17090 wine_fn_config_dll atl100 enable_atl100 clean,implib
17091 wine_fn_config_test dlls/atl100/tests atl100_test
17092 wine_fn_config_dll atl110 enable_atl110 clean
17093 wine_fn_config_dll atl80 enable_atl80 clean,implib
17094 wine_fn_config_test dlls/atl80/tests atl80_test
17095 wine_fn_config_dll atl90 enable_atl90 clean
17096 wine_fn_config_dll authz enable_authz
17097 wine_fn_config_dll avicap32 enable_avicap32 implib
17098 wine_fn_config_dll avifil32 enable_avifil32 clean,implib,po
17099 wine_fn_config_test dlls/avifil32/tests avifil32_test
17100 wine_fn_config_dll avifile.dll16 enable_win16
17101 wine_fn_config_dll avrt enable_avrt implib
17102 wine_fn_config_dll bcrypt enable_bcrypt
17103 wine_fn_config_test dlls/bcrypt/tests bcrypt_test
17104 wine_fn_config_dll browseui enable_browseui clean,po
17105 wine_fn_config_test dlls/browseui/tests browseui_test
17106 wine_fn_config_dll cabinet enable_cabinet implib
17107 wine_fn_config_test dlls/cabinet/tests cabinet_test
17108 wine_fn_config_dll capi2032 enable_capi2032 implib
17109 wine_fn_config_dll cards enable_cards implib
17110 wine_fn_config_dll cfgmgr32 enable_cfgmgr32 implib
17111 wine_fn_config_dll clusapi enable_clusapi implib
17112 wine_fn_config_dll combase enable_combase
17113 wine_fn_config_test dlls/combase/tests combase_test
17114 wine_fn_config_dll comcat enable_comcat
17115 wine_fn_config_test dlls/comcat/tests comcat_test
17116 wine_fn_config_dll comctl32 enable_comctl32 implib,po
17117 wine_fn_config_test dlls/comctl32/tests comctl32_test
17118 wine_fn_config_dll comdlg32 enable_comdlg32 clean,implib,po
17119 wine_fn_config_test dlls/comdlg32/tests comdlg32_test
17120 wine_fn_config_dll comm.drv16 enable_win16
17121 wine_fn_config_dll commdlg.dll16 enable_win16
17122 wine_fn_config_dll compobj.dll16 enable_win16
17123 wine_fn_config_dll compstui enable_compstui implib
17124 wine_fn_config_dll comsvcs enable_comsvcs implib
17125 wine_fn_config_dll connect enable_connect
17126 wine_fn_config_dll credui enable_credui implib,po
17127 wine_fn_config_test dlls/credui/tests credui_test
17128 wine_fn_config_dll crtdll enable_crtdll implib
17129 wine_fn_config_dll crypt32 enable_crypt32 implib,po
17130 wine_fn_config_test dlls/crypt32/tests crypt32_test
17131 wine_fn_config_dll cryptdlg enable_cryptdlg po
17132 wine_fn_config_dll cryptdll enable_cryptdll implib
17133 wine_fn_config_dll cryptext enable_cryptext
17134 wine_fn_config_dll cryptnet enable_cryptnet implib
17135 wine_fn_config_test dlls/cryptnet/tests cryptnet_test
17136 wine_fn_config_dll cryptui enable_cryptui implib,po
17137 wine_fn_config_test dlls/cryptui/tests cryptui_test
17138 wine_fn_config_dll ctapi32 enable_ctapi32
17139 wine_fn_config_dll ctl3d.dll16 enable_win16
17140 wine_fn_config_dll ctl3d32 enable_ctl3d32 implib
17141 wine_fn_config_dll ctl3dv2.dll16 enable_win16
17142 wine_fn_config_dll d2d1 enable_d2d1 implib
17143 wine_fn_config_test dlls/d2d1/tests d2d1_test
17144 wine_fn_config_dll d3d10 enable_d3d10 implib
17145 wine_fn_config_test dlls/d3d10/tests d3d10_test
17146 wine_fn_config_dll d3d10_1 enable_d3d10_1 implib
17147 wine_fn_config_dll d3d10core enable_d3d10core implib
17148 wine_fn_config_test dlls/d3d10core/tests d3d10core_test
17149 wine_fn_config_dll d3d11 enable_d3d11
17150 wine_fn_config_dll d3d8 enable_d3d8 implib
17151 wine_fn_config_test dlls/d3d8/tests d3d8_test
17152 wine_fn_config_dll d3d9 enable_d3d9 implib
17153 wine_fn_config_test dlls/d3d9/tests d3d9_test
17154 wine_fn_config_dll d3dcompiler_33 enable_d3dcompiler_33
17155 wine_fn_config_dll d3dcompiler_34 enable_d3dcompiler_34
17156 wine_fn_config_dll d3dcompiler_35 enable_d3dcompiler_35
17157 wine_fn_config_dll d3dcompiler_36 enable_d3dcompiler_36
17158 wine_fn_config_dll d3dcompiler_37 enable_d3dcompiler_37
17159 wine_fn_config_dll d3dcompiler_38 enable_d3dcompiler_38
17160 wine_fn_config_dll d3dcompiler_39 enable_d3dcompiler_39
17161 wine_fn_config_dll d3dcompiler_40 enable_d3dcompiler_40
17162 wine_fn_config_dll d3dcompiler_41 enable_d3dcompiler_41
17163 wine_fn_config_dll d3dcompiler_42 enable_d3dcompiler_42
17164 wine_fn_config_dll d3dcompiler_43 enable_d3dcompiler_43 implib d3dcompiler
17165 wine_fn_config_test dlls/d3dcompiler_43/tests d3dcompiler_43_test
17166 wine_fn_config_dll d3dim enable_d3dim implib
17167 wine_fn_config_dll d3drm enable_d3drm implib
17168 wine_fn_config_test dlls/d3drm/tests d3drm_test
17169 wine_fn_config_dll d3dx10_33 enable_d3dx10_33
17170 wine_fn_config_dll d3dx10_34 enable_d3dx10_34
17171 wine_fn_config_dll d3dx10_35 enable_d3dx10_35
17172 wine_fn_config_dll d3dx10_36 enable_d3dx10_36
17173 wine_fn_config_dll d3dx10_37 enable_d3dx10_37
17174 wine_fn_config_dll d3dx10_38 enable_d3dx10_38
17175 wine_fn_config_dll d3dx10_39 enable_d3dx10_39
17176 wine_fn_config_dll d3dx10_40 enable_d3dx10_40
17177 wine_fn_config_dll d3dx10_41 enable_d3dx10_41
17178 wine_fn_config_dll d3dx10_42 enable_d3dx10_42
17179 wine_fn_config_dll d3dx10_43 enable_d3dx10_43
17180 wine_fn_config_dll d3dx11_42 enable_d3dx11_42
17181 wine_fn_config_dll d3dx11_43 enable_d3dx11_43
17182 wine_fn_config_dll d3dx9_24 enable_d3dx9_24
17183 wine_fn_config_dll d3dx9_25 enable_d3dx9_25
17184 wine_fn_config_dll d3dx9_26 enable_d3dx9_26
17185 wine_fn_config_dll d3dx9_27 enable_d3dx9_27
17186 wine_fn_config_dll d3dx9_28 enable_d3dx9_28
17187 wine_fn_config_dll d3dx9_29 enable_d3dx9_29
17188 wine_fn_config_dll d3dx9_30 enable_d3dx9_30
17189 wine_fn_config_dll d3dx9_31 enable_d3dx9_31
17190 wine_fn_config_dll d3dx9_32 enable_d3dx9_32
17191 wine_fn_config_dll d3dx9_33 enable_d3dx9_33
17192 wine_fn_config_dll d3dx9_34 enable_d3dx9_34
17193 wine_fn_config_dll d3dx9_35 enable_d3dx9_35
17194 wine_fn_config_dll d3dx9_36 enable_d3dx9_36 implib d3dx9
17195 wine_fn_config_test dlls/d3dx9_36/tests d3dx9_36_test
17196 wine_fn_config_dll d3dx9_37 enable_d3dx9_37
17197 wine_fn_config_dll d3dx9_38 enable_d3dx9_38
17198 wine_fn_config_dll d3dx9_39 enable_d3dx9_39
17199 wine_fn_config_dll d3dx9_40 enable_d3dx9_40
17200 wine_fn_config_dll d3dx9_41 enable_d3dx9_41
17201 wine_fn_config_dll d3dx9_42 enable_d3dx9_42
17202 wine_fn_config_dll d3dx9_43 enable_d3dx9_43
17203 wine_fn_config_dll d3dxof enable_d3dxof clean,implib
17204 wine_fn_config_test dlls/d3dxof/tests d3dxof_test
17205 wine_fn_config_dll dbgeng enable_dbgeng implib
17206 wine_fn_config_dll dbghelp enable_dbghelp implib
17207 wine_fn_config_dll dciman32 enable_dciman32 implib
17208 wine_fn_config_dll ddeml.dll16 enable_win16
17209 wine_fn_config_dll ddraw enable_ddraw clean,implib
17210 wine_fn_config_test dlls/ddraw/tests ddraw_test
17211 wine_fn_config_dll ddrawex enable_ddrawex clean
17212 wine_fn_config_test dlls/ddrawex/tests ddrawex_test
17213 wine_fn_config_dll devenum enable_devenum clean,po
17214 wine_fn_config_test dlls/devenum/tests devenum_test
17215 wine_fn_config_dll dhcpcsvc enable_dhcpcsvc
17216 wine_fn_config_dll difxapi enable_difxapi
17217 wine_fn_config_dll dinput enable_dinput clean,implib,po,staticimplib
17218 wine_fn_config_test dlls/dinput/tests dinput_test
17219 wine_fn_config_dll dinput8 enable_dinput8 clean,implib
17220 wine_fn_config_test dlls/dinput8/tests dinput8_test
17221 wine_fn_config_dll dispdib.dll16 enable_win16
17222 wine_fn_config_dll dispex enable_dispex clean
17223 wine_fn_config_test dlls/dispex/tests dispex_test
17224 wine_fn_config_dll display.drv16 enable_win16
17225 wine_fn_config_dll dmband enable_dmband clean
17226 wine_fn_config_test dlls/dmband/tests dmband_test
17227 wine_fn_config_dll dmcompos enable_dmcompos clean
17228 wine_fn_config_test dlls/dmcompos/tests dmcompos_test
17229 wine_fn_config_dll dmime enable_dmime clean
17230 wine_fn_config_test dlls/dmime/tests dmime_test
17231 wine_fn_config_dll dmloader enable_dmloader clean
17232 wine_fn_config_test dlls/dmloader/tests dmloader_test
17233 wine_fn_config_dll dmscript enable_dmscript clean
17234 wine_fn_config_test dlls/dmscript/tests dmscript_test
17235 wine_fn_config_dll dmstyle enable_dmstyle clean
17236 wine_fn_config_test dlls/dmstyle/tests dmstyle_test
17237 wine_fn_config_dll dmsynth enable_dmsynth clean
17238 wine_fn_config_test dlls/dmsynth/tests dmsynth_test
17239 wine_fn_config_dll dmusic enable_dmusic clean
17240 wine_fn_config_test dlls/dmusic/tests dmusic_test
17241 wine_fn_config_dll dmusic32 enable_dmusic32 implib
17242 wine_fn_config_dll dnsapi enable_dnsapi implib
17243 wine_fn_config_test dlls/dnsapi/tests dnsapi_test
17244 wine_fn_config_dll dplay enable_dplay implib
17245 wine_fn_config_dll dplayx enable_dplayx clean,implib
17246 wine_fn_config_test dlls/dplayx/tests dplayx_test
17247 wine_fn_config_dll dpnaddr enable_dpnaddr
17248 wine_fn_config_dll dpnet enable_dpnet clean,implib
17249 wine_fn_config_test dlls/dpnet/tests dpnet_test
17250 wine_fn_config_dll dpnhpast enable_dpnhpast
17251 wine_fn_config_dll dpnlobby enable_dpnlobby
17252 wine_fn_config_dll dpvoice enable_dpvoice clean
17253 wine_fn_config_test dlls/dpvoice/tests dpvoice_test
17254 wine_fn_config_dll dpwsockx enable_dpwsockx
17255 wine_fn_config_dll drmclien enable_drmclien
17256 wine_fn_config_dll dsound enable_dsound clean,implib
17257 wine_fn_config_test dlls/dsound/tests dsound_test
17258 wine_fn_config_dll dssenh enable_dssenh
17259 wine_fn_config_test dlls/dssenh/tests dssenh_test
17260 wine_fn_config_dll dswave enable_dswave clean
17261 wine_fn_config_test dlls/dswave/tests dswave_test
17262 wine_fn_config_dll dwmapi enable_dwmapi implib
17263 wine_fn_config_dll dwrite enable_dwrite implib
17264 wine_fn_config_test dlls/dwrite/tests dwrite_test
17265 wine_fn_config_dll dxdiagn enable_dxdiagn clean,po
17266 wine_fn_config_test dlls/dxdiagn/tests dxdiagn_test
17267 wine_fn_config_lib dxerr8
17268 wine_fn_config_lib dxerr9
17269 wine_fn_config_dll dxgi enable_dxgi implib
17270 wine_fn_config_test dlls/dxgi/tests dxgi_test
17271 wine_fn_config_lib dxguid
17272 wine_fn_config_dll dxva2 enable_dxva2
17273 wine_fn_config_dll evr enable_evr
17274 wine_fn_config_dll explorerframe enable_explorerframe clean
17275 wine_fn_config_test dlls/explorerframe/tests explorerframe_test
17276 wine_fn_config_dll ext-ms-win-gdi-devcaps-l1-1-0 enable_ext_ms_win_gdi_devcaps_l1_1_0
17277 wine_fn_config_dll faultrep enable_faultrep implib
17278 wine_fn_config_test dlls/faultrep/tests faultrep_test
17279 wine_fn_config_dll fltlib enable_fltlib
17280 wine_fn_config_dll fntcache enable_fntcache
17281 wine_fn_config_dll fontsub enable_fontsub
17282 wine_fn_config_dll fusion enable_fusion
17283 wine_fn_config_test dlls/fusion/tests fusion_test
17284 wine_fn_config_dll fwpuclnt enable_fwpuclnt
17285 wine_fn_config_dll gameux enable_gameux clean
17286 wine_fn_config_test dlls/gameux/tests gameux_test
17287 wine_fn_config_dll gdi.exe16 enable_win16
17288 wine_fn_config_dll gdi32 enable_gdi32 clean,implib,po
17289 wine_fn_config_test dlls/gdi32/tests gdi32_test
17290 wine_fn_config_dll gdiplus enable_gdiplus implib
17291 wine_fn_config_test dlls/gdiplus/tests gdiplus_test
17292 wine_fn_config_dll glu32 enable_glu32 implib
17293 wine_fn_config_dll gphoto2.ds enable_gphoto2_ds po
17294 wine_fn_config_dll gpkcsp enable_gpkcsp
17295 wine_fn_config_dll hal enable_hal
17296 wine_fn_config_dll hhctrl.ocx enable_hhctrl_ocx clean,implib,po htmlhelp
17297 wine_fn_config_dll hid enable_hid implib
17298 wine_fn_config_dll hlink enable_hlink clean,implib
17299 wine_fn_config_test dlls/hlink/tests hlink_test
17300 wine_fn_config_dll hnetcfg enable_hnetcfg clean
17301 wine_fn_config_dll httpapi enable_httpapi
17302 wine_fn_config_dll iccvid enable_iccvid po
17303 wine_fn_config_dll icmp enable_icmp
17304 wine_fn_config_dll ieframe enable_ieframe clean,implib,po
17305 wine_fn_config_test dlls/ieframe/tests ieframe_test
17306 wine_fn_config_dll ifsmgr.vxd enable_win16
17307 wine_fn_config_dll imaadp32.acm enable_imaadp32_acm
17308 wine_fn_config_dll imagehlp enable_imagehlp implib
17309 wine_fn_config_test dlls/imagehlp/tests imagehlp_test
17310 wine_fn_config_dll imm.dll16 enable_win16
17311 wine_fn_config_dll imm32 enable_imm32 implib
17312 wine_fn_config_test dlls/imm32/tests imm32_test
17313 wine_fn_config_dll inetcomm enable_inetcomm clean,implib
17314 wine_fn_config_test dlls/inetcomm/tests inetcomm_test
17315 wine_fn_config_dll inetcpl.cpl enable_inetcpl_cpl po
17316 wine_fn_config_dll inetmib1 enable_inetmib1
17317 wine_fn_config_test dlls/inetmib1/tests inetmib1_test
17318 wine_fn_config_dll infosoft enable_infosoft clean
17319 wine_fn_config_test dlls/infosoft/tests infosoft_test
17320 wine_fn_config_dll initpki enable_initpki
17321 wine_fn_config_dll inkobj enable_inkobj
17322 wine_fn_config_dll inseng enable_inseng clean
17323 wine_fn_config_dll iphlpapi enable_iphlpapi implib
17324 wine_fn_config_test dlls/iphlpapi/tests iphlpapi_test
17325 wine_fn_config_dll itircl enable_itircl
17326 wine_fn_config_dll itss enable_itss clean
17327 wine_fn_config_test dlls/itss/tests itss_test
17328 wine_fn_config_dll joy.cpl enable_joy_cpl po
17329 wine_fn_config_dll jscript enable_jscript clean,po
17330 wine_fn_config_test dlls/jscript/tests jscript_test
17331 wine_fn_config_dll jsproxy enable_jsproxy implib
17332 wine_fn_config_dll kernel32 enable_kernel32 clean,implib,mc
17333 wine_fn_config_test dlls/kernel32/tests kernel32_test
17334 wine_fn_config_dll keyboard.drv16 enable_win16
17335 wine_fn_config_dll krnl386.exe16 enable_win16 implib kernel
17336 wine_fn_config_dll ksuser enable_ksuser
17337 wine_fn_config_dll ktmw32 enable_ktmw32
17338 wine_fn_config_dll loadperf enable_loadperf implib
17339 wine_fn_config_dll localspl enable_localspl po
17340 wine_fn_config_test dlls/localspl/tests localspl_test
17341 wine_fn_config_dll localui enable_localui po
17342 wine_fn_config_test dlls/localui/tests localui_test
17343 wine_fn_config_dll lz32 enable_lz32 implib
17344 wine_fn_config_test dlls/lz32/tests lz32_test
17345 wine_fn_config_dll lzexpand.dll16 enable_win16
17346 wine_fn_config_dll mapi32 enable_mapi32 implib,po
17347 wine_fn_config_test dlls/mapi32/tests mapi32_test
17348 wine_fn_config_dll mapistub enable_mapistub
17349 wine_fn_config_dll mciavi32 enable_mciavi32
17350 wine_fn_config_dll mcicda enable_mcicda
17351 wine_fn_config_dll mciqtz32 enable_mciqtz32
17352 wine_fn_config_dll mciseq enable_mciseq
17353 wine_fn_config_dll mciwave enable_mciwave
17354 wine_fn_config_dll mf enable_mf
17355 wine_fn_config_dll mfplat enable_mfplat
17356 wine_fn_config_dll mfreadwrite enable_mfreadwrite
17357 wine_fn_config_dll mgmtapi enable_mgmtapi
17358 wine_fn_config_dll midimap enable_midimap
17359 wine_fn_config_dll mlang enable_mlang clean,implib
17360 wine_fn_config_test dlls/mlang/tests mlang_test
17361 wine_fn_config_dll mmcndmgr enable_mmcndmgr clean
17362 wine_fn_config_test dlls/mmcndmgr/tests mmcndmgr_test
17363 wine_fn_config_dll mmdevapi enable_mmdevapi clean
17364 wine_fn_config_test dlls/mmdevapi/tests mmdevapi_test
17365 wine_fn_config_dll mmdevldr.vxd enable_win16
17366 wine_fn_config_dll mmsystem.dll16 enable_win16
17367 wine_fn_config_dll monodebg.vxd enable_win16
17368 wine_fn_config_dll mountmgr.sys enable_mountmgr_sys
17369 wine_fn_config_dll mouse.drv16 enable_win16
17370 wine_fn_config_dll mpr enable_mpr implib,po
17371 wine_fn_config_test dlls/mpr/tests mpr_test
17372 wine_fn_config_dll mprapi enable_mprapi implib
17373 wine_fn_config_dll msacm.dll16 enable_win16
17374 wine_fn_config_dll msacm32.drv enable_msacm32_drv
17375 wine_fn_config_dll msacm32 enable_msacm32 implib,po
17376 wine_fn_config_test dlls/msacm32/tests msacm32_test
17377 wine_fn_config_dll msadp32.acm enable_msadp32_acm
17378 wine_fn_config_dll msasn1 enable_msasn1 implib
17379 wine_fn_config_dll mscat32 enable_mscat32
17380 wine_fn_config_dll mscms enable_mscms implib
17381 wine_fn_config_test dlls/mscms/tests mscms_test
17382 wine_fn_config_dll mscoree enable_mscoree clean
17383 wine_fn_config_test dlls/mscoree/tests mscoree_test
17384 wine_fn_config_dll msctf enable_msctf clean
17385 wine_fn_config_test dlls/msctf/tests msctf_test
17386 wine_fn_config_dll msctfp enable_msctfp clean
17387 wine_fn_config_dll msdaps enable_msdaps clean
17388 wine_fn_config_dll msdmo enable_msdmo implib
17389 wine_fn_config_test dlls/msdmo/tests msdmo_test
17390 wine_fn_config_dll msftedit enable_msftedit
17391 wine_fn_config_dll msg711.acm enable_msg711_acm
17392 wine_fn_config_dll msgsm32.acm enable_msgsm32_acm
17393 wine_fn_config_dll mshtml.tlb enable_mshtml_tlb clean
17394 wine_fn_config_dll mshtml enable_mshtml clean,implib,po
17395 wine_fn_config_test dlls/mshtml/tests mshtml_test clean
17396 wine_fn_config_dll msi enable_msi clean,implib,po
17397 wine_fn_config_test dlls/msi/tests msi_test
17398 wine_fn_config_dll msident enable_msident clean
17399 wine_fn_config_dll msimg32 enable_msimg32 implib
17400 wine_fn_config_dll msimsg enable_msimsg
17401 wine_fn_config_dll msimtf enable_msimtf clean
17402 wine_fn_config_dll msisip enable_msisip
17403 wine_fn_config_dll msisys.ocx enable_msisys_ocx
17404 wine_fn_config_dll msls31 enable_msls31
17405 wine_fn_config_dll msnet32 enable_msnet32
17406 wine_fn_config_dll mspatcha enable_mspatcha implib
17407 wine_fn_config_dll msrle32 enable_msrle32 po
17408 wine_fn_config_test dlls/msrle32/tests msrle32_test
17409 wine_fn_config_dll mssign32 enable_mssign32
17410 wine_fn_config_dll mssip32 enable_mssip32
17411 wine_fn_config_dll mstask enable_mstask clean
17412 wine_fn_config_test dlls/mstask/tests mstask_test
17413 wine_fn_config_dll msvcirt enable_msvcirt
17414 wine_fn_config_dll msvcm80 enable_msvcm80
17415 wine_fn_config_dll msvcm90 enable_msvcm90
17416 wine_fn_config_dll msvcp100 enable_msvcp100
17417 wine_fn_config_test dlls/msvcp100/tests msvcp100_test
17418 wine_fn_config_dll msvcp110 enable_msvcp110
17419 wine_fn_config_dll msvcp120 enable_msvcp120
17420 wine_fn_config_test dlls/msvcp120/tests msvcp120_test
17421 wine_fn_config_dll msvcp120_app enable_msvcp120_app
17422 wine_fn_config_dll msvcp60 enable_msvcp60
17423 wine_fn_config_test dlls/msvcp60/tests msvcp60_test
17424 wine_fn_config_dll msvcp70 enable_msvcp70
17425 wine_fn_config_dll msvcp71 enable_msvcp71
17426 wine_fn_config_dll msvcp80 enable_msvcp80
17427 wine_fn_config_dll msvcp90 enable_msvcp90
17428 wine_fn_config_test dlls/msvcp90/tests msvcp90_test
17429 wine_fn_config_dll msvcr100 enable_msvcr100 implib
17430 wine_fn_config_test dlls/msvcr100/tests msvcr100_test
17431 wine_fn_config_dll msvcr110 enable_msvcr110 implib
17432 wine_fn_config_dll msvcr120 enable_msvcr120 implib
17433 wine_fn_config_test dlls/msvcr120/tests msvcr120_test
17434 wine_fn_config_dll msvcr120_app enable_msvcr120_app
17435 wine_fn_config_dll msvcr70 enable_msvcr70 implib
17436 wine_fn_config_dll msvcr71 enable_msvcr71 implib
17437 wine_fn_config_dll msvcr80 enable_msvcr80 implib
17438 wine_fn_config_dll msvcr90 enable_msvcr90 implib
17439 wine_fn_config_test dlls/msvcr90/tests msvcr90_test
17440 wine_fn_config_dll msvcrt enable_msvcrt implib
17441 wine_fn_config_test dlls/msvcrt/tests msvcrt_test
17442 wine_fn_config_dll msvcrt20 enable_msvcrt20 implib
17443 wine_fn_config_dll msvcrt40 enable_msvcrt40 implib
17444 wine_fn_config_dll msvcrtd enable_msvcrtd implib
17445 wine_fn_config_test dlls/msvcrtd/tests msvcrtd_test
17446 wine_fn_config_dll msvfw32 enable_msvfw32 implib,po
17447 wine_fn_config_test dlls/msvfw32/tests msvfw32_test
17448 wine_fn_config_dll msvidc32 enable_msvidc32 po
17449 wine_fn_config_dll msvideo.dll16 enable_win16
17450 wine_fn_config_dll mswsock enable_mswsock implib
17451 wine_fn_config_dll msxml enable_msxml clean
17452 wine_fn_config_dll msxml2 enable_msxml2 clean
17453 wine_fn_config_dll msxml3 enable_msxml3 clean
17454 wine_fn_config_test dlls/msxml3/tests msxml3_test clean
17455 wine_fn_config_dll msxml4 enable_msxml4 clean
17456 wine_fn_config_dll msxml6 enable_msxml6 clean
17457 wine_fn_config_dll nddeapi enable_nddeapi implib
17458 wine_fn_config_dll ndis.sys enable_ndis_sys
17459 wine_fn_config_dll netapi32 enable_netapi32 implib
17460 wine_fn_config_test dlls/netapi32/tests netapi32_test
17461 wine_fn_config_dll netcfgx enable_netcfgx clean
17462 wine_fn_config_test dlls/netcfgx/tests netcfgx_test
17463 wine_fn_config_dll netprofm enable_netprofm clean
17464 wine_fn_config_test dlls/netprofm/tests netprofm_test
17465 wine_fn_config_dll newdev enable_newdev implib
17466 wine_fn_config_dll normaliz enable_normaliz implib
17467 wine_fn_config_dll npmshtml enable_npmshtml
17468 wine_fn_config_dll npptools enable_npptools
17469 wine_fn_config_dll ntdll enable_ntdll implib
17470 wine_fn_config_test dlls/ntdll/tests ntdll_test
17471 wine_fn_config_dll ntdsapi enable_ntdsapi implib
17472 wine_fn_config_test dlls/ntdsapi/tests ntdsapi_test
17473 wine_fn_config_dll ntoskrnl.exe enable_ntoskrnl_exe implib
17474 wine_fn_config_dll ntprint enable_ntprint
17475 wine_fn_config_test dlls/ntprint/tests ntprint_test
17476 wine_fn_config_dll objsel enable_objsel clean
17477 wine_fn_config_dll odbc32 enable_odbc32 implib
17478 wine_fn_config_dll odbccp32 enable_odbccp32 implib
17479 wine_fn_config_test dlls/odbccp32/tests odbccp32_test
17480 wine_fn_config_dll odbccu32 enable_odbccu32
17481 wine_fn_config_dll ole2.dll16 enable_win16
17482 wine_fn_config_dll ole2conv.dll16 enable_win16
17483 wine_fn_config_dll ole2disp.dll16 enable_win16
17484 wine_fn_config_dll ole2nls.dll16 enable_win16
17485 wine_fn_config_dll ole2prox.dll16 enable_win16
17486 wine_fn_config_dll ole2thk.dll16 enable_win16
17487 wine_fn_config_dll ole32 enable_ole32 clean,implib
17488 wine_fn_config_test dlls/ole32/tests ole32_test
17489 wine_fn_config_dll oleacc enable_oleacc clean,implib,po
17490 wine_fn_config_test dlls/oleacc/tests oleacc_test
17491 wine_fn_config_dll oleaut32 enable_oleaut32 clean,implib,po
17492 wine_fn_config_test dlls/oleaut32/tests oleaut32_test clean
17493 wine_fn_config_dll olecli.dll16 enable_win16
17494 wine_fn_config_dll olecli32 enable_olecli32 implib
17495 wine_fn_config_dll oledb32 enable_oledb32 clean
17496 wine_fn_config_test dlls/oledb32/tests oledb32_test clean
17497 wine_fn_config_dll oledlg enable_oledlg implib,po
17498 wine_fn_config_test dlls/oledlg/tests oledlg_test
17499 wine_fn_config_dll olepro32 enable_olepro32 implib
17500 wine_fn_config_dll olesvr.dll16 enable_win16
17501 wine_fn_config_dll olesvr32 enable_olesvr32 implib
17502 wine_fn_config_dll olethk32 enable_olethk32
17503 wine_fn_config_dll openal32 enable_openal32
17504 wine_fn_config_dll opencl enable_opencl
17505 wine_fn_config_dll opengl32 enable_opengl32 implib
17506 wine_fn_config_test dlls/opengl32/tests opengl32_test
17507 wine_fn_config_dll packager enable_packager clean
17508 wine_fn_config_test dlls/packager/tests packager_test
17509 wine_fn_config_dll pdh enable_pdh implib
17510 wine_fn_config_test dlls/pdh/tests pdh_test
17511 wine_fn_config_dll photometadatahandler enable_photometadatahandler
17512 wine_fn_config_dll pidgen enable_pidgen
17513 wine_fn_config_dll powrprof enable_powrprof implib
17514 wine_fn_config_dll printui enable_printui
17515 wine_fn_config_dll prntvpt enable_prntvpt
17516 wine_fn_config_dll propsys enable_propsys clean,implib
17517 wine_fn_config_test dlls/propsys/tests propsys_test
17518 wine_fn_config_dll psapi enable_psapi implib
17519 wine_fn_config_test dlls/psapi/tests psapi_test
17520 wine_fn_config_dll pstorec enable_pstorec clean
17521 wine_fn_config_dll qcap enable_qcap
17522 wine_fn_config_test dlls/qcap/tests qcap_test
17523 wine_fn_config_dll qedit enable_qedit clean
17524 wine_fn_config_test dlls/qedit/tests qedit_test
17525 wine_fn_config_dll qmgr enable_qmgr clean
17526 wine_fn_config_test dlls/qmgr/tests qmgr_test
17527 wine_fn_config_dll qmgrprxy enable_qmgrprxy clean
17528 wine_fn_config_dll quartz enable_quartz clean,implib
17529 wine_fn_config_test dlls/quartz/tests quartz_test clean
17530 wine_fn_config_dll query enable_query
17531 wine_fn_config_dll rasapi16.dll16 enable_win16
17532 wine_fn_config_dll rasapi32 enable_rasapi32 implib
17533 wine_fn_config_test dlls/rasapi32/tests rasapi32_test
17534 wine_fn_config_dll rasdlg enable_rasdlg implib
17535 wine_fn_config_dll regapi enable_regapi
17536 wine_fn_config_dll resutils enable_resutils implib
17537 wine_fn_config_dll riched20 enable_riched20 clean,implib
17538 wine_fn_config_test dlls/riched20/tests riched20_test
17539 wine_fn_config_dll riched32 enable_riched32
17540 wine_fn_config_test dlls/riched32/tests riched32_test
17541 wine_fn_config_dll rpcrt4 enable_rpcrt4 clean,implib
17542 wine_fn_config_test dlls/rpcrt4/tests rpcrt4_test clean
17543 wine_fn_config_dll rsabase enable_rsabase
17544 wine_fn_config_dll rsaenh enable_rsaenh implib
17545 wine_fn_config_test dlls/rsaenh/tests rsaenh_test
17546 wine_fn_config_dll rstrtmgr enable_rstrtmgr
17547 wine_fn_config_dll rtutils enable_rtutils implib
17548 wine_fn_config_dll samlib enable_samlib
17549 wine_fn_config_dll sane.ds enable_sane_ds po
17550 wine_fn_config_dll scarddlg enable_scarddlg
17551 wine_fn_config_dll sccbase enable_sccbase
17552 wine_fn_config_dll schannel enable_schannel
17553 wine_fn_config_test dlls/schannel/tests schannel_test
17554 wine_fn_config_dll schedsvc enable_schedsvc clean
17555 wine_fn_config_test dlls/schedsvc/tests schedsvc_test clean
17556 wine_fn_config_dll scrrun enable_scrrun clean
17557 wine_fn_config_test dlls/scrrun/tests scrrun_test clean
17558 wine_fn_config_dll scsiport.sys enable_scsiport_sys
17559 wine_fn_config_dll secur32 enable_secur32 implib
17560 wine_fn_config_test dlls/secur32/tests secur32_test
17561 wine_fn_config_dll security enable_security
17562 wine_fn_config_dll sensapi enable_sensapi implib
17563 wine_fn_config_dll serialui enable_serialui implib,po
17564 wine_fn_config_test dlls/serialui/tests serialui_test
17565 wine_fn_config_dll setupapi enable_setupapi implib,po
17566 wine_fn_config_test dlls/setupapi/tests setupapi_test
17567 wine_fn_config_dll setupx.dll16 enable_win16
17568 wine_fn_config_dll sfc enable_sfc implib
17569 wine_fn_config_dll sfc_os enable_sfc_os implib
17570 wine_fn_config_dll shdoclc enable_shdoclc po
17571 wine_fn_config_dll shdocvw enable_shdocvw clean,implib
17572 wine_fn_config_test dlls/shdocvw/tests shdocvw_test
17573 wine_fn_config_dll shell.dll16 enable_win16
17574 wine_fn_config_dll shell32 enable_shell32 clean,implib,po
17575 wine_fn_config_test dlls/shell32/tests shell32_test
17576 wine_fn_config_dll shfolder enable_shfolder implib
17577 wine_fn_config_dll shlwapi enable_shlwapi implib,po
17578 wine_fn_config_test dlls/shlwapi/tests shlwapi_test
17579 wine_fn_config_dll slbcsp enable_slbcsp
17580 wine_fn_config_dll slc enable_slc implib
17581 wine_fn_config_test dlls/slc/tests slc_test
17582 wine_fn_config_dll snmpapi enable_snmpapi implib
17583 wine_fn_config_test dlls/snmpapi/tests snmpapi_test
17584 wine_fn_config_dll softpub enable_softpub
17585 wine_fn_config_dll sound.drv16 enable_win16
17586 wine_fn_config_dll spoolss enable_spoolss implib
17587 wine_fn_config_test dlls/spoolss/tests spoolss_test
17588 wine_fn_config_dll stdole2.tlb enable_stdole2_tlb clean
17589 wine_fn_config_dll stdole32.tlb enable_stdole32_tlb clean
17590 wine_fn_config_dll sti enable_sti clean,implib
17591 wine_fn_config_test dlls/sti/tests sti_test
17592 wine_fn_config_dll storage.dll16 enable_win16
17593 wine_fn_config_dll stress.dll16 enable_win16
17594 wine_fn_config_lib strmbase
17595 wine_fn_config_lib strmiids
17596 wine_fn_config_dll svrapi enable_svrapi
17597 wine_fn_config_dll sxs enable_sxs implib
17598 wine_fn_config_test dlls/sxs/tests sxs_test
17599 wine_fn_config_dll system.drv16 enable_win16
17600 wine_fn_config_dll t2embed enable_t2embed
17601 wine_fn_config_dll tapi32 enable_tapi32 implib
17602 wine_fn_config_dll taskschd enable_taskschd clean
17603 wine_fn_config_test dlls/taskschd/tests taskschd_test
17604 wine_fn_config_dll toolhelp.dll16 enable_win16
17605 wine_fn_config_dll traffic enable_traffic
17606 wine_fn_config_dll twain.dll16 enable_win16
17607 wine_fn_config_dll twain_32 enable_twain_32
17608 wine_fn_config_test dlls/twain_32/tests twain_32_test
17609 wine_fn_config_dll typelib.dll16 enable_win16
17610 wine_fn_config_dll unicows enable_unicows implib
17611 wine_fn_config_dll updspapi enable_updspapi
17612 wine_fn_config_dll url enable_url implib
17613 wine_fn_config_dll urlmon enable_urlmon clean,implib,po
17614 wine_fn_config_test dlls/urlmon/tests urlmon_test
17615 wine_fn_config_dll usbd.sys enable_usbd_sys implib
17616 wine_fn_config_dll user.exe16 enable_win16
17617 wine_fn_config_dll user32 enable_user32 clean,implib,po
17618 wine_fn_config_test dlls/user32/tests user32_test
17619 wine_fn_config_dll userenv enable_userenv implib
17620 wine_fn_config_test dlls/userenv/tests userenv_test
17621 wine_fn_config_dll usp10 enable_usp10 implib
17622 wine_fn_config_test dlls/usp10/tests usp10_test
17623 wine_fn_config_lib uuid
17624 wine_fn_config_dll uxtheme enable_uxtheme implib
17625 wine_fn_config_test dlls/uxtheme/tests uxtheme_test
17626 wine_fn_config_dll vbscript enable_vbscript clean
17627 wine_fn_config_test dlls/vbscript/tests vbscript_test clean
17628 wine_fn_config_dll vcomp enable_vcomp
17629 wine_fn_config_dll vcomp100 enable_vcomp100
17630 wine_fn_config_dll vcomp90 enable_vcomp90
17631 wine_fn_config_dll vdhcp.vxd enable_win16
17632 wine_fn_config_dll vdmdbg enable_vdmdbg implib
17633 wine_fn_config_dll ver.dll16 enable_win16
17634 wine_fn_config_dll version enable_version implib
17635 wine_fn_config_test dlls/version/tests version_test
17636 wine_fn_config_dll vmm.vxd enable_win16
17637 wine_fn_config_dll vnbt.vxd enable_win16
17638 wine_fn_config_dll vnetbios.vxd enable_win16
17639 wine_fn_config_dll vssapi enable_vssapi
17640 wine_fn_config_dll vtdapi.vxd enable_win16
17641 wine_fn_config_dll vwin32.vxd enable_win16
17642 wine_fn_config_dll w32skrnl enable_win16
17643 wine_fn_config_dll w32sys.dll16 enable_win16
17644 wine_fn_config_dll wbemdisp enable_wbemdisp clean
17645 wine_fn_config_test dlls/wbemdisp/tests wbemdisp_test
17646 wine_fn_config_dll wbemprox enable_wbemprox clean
17647 wine_fn_config_test dlls/wbemprox/tests wbemprox_test
17648 wine_fn_config_dll webservices enable_webservices implib
17649 wine_fn_config_dll wer enable_wer implib
17650 wine_fn_config_test dlls/wer/tests wer_test
17651 wine_fn_config_dll wevtapi enable_wevtapi
17652 wine_fn_config_dll wiaservc enable_wiaservc clean
17653 wine_fn_config_dll win32s16.dll16 enable_win16
17654 wine_fn_config_dll win87em.dll16 enable_win16
17655 wine_fn_config_dll winaspi.dll16 enable_win16
17656 wine_fn_config_dll windebug.dll16 enable_win16
17657 wine_fn_config_dll windowscodecs enable_windowscodecs clean,implib
17658 wine_fn_config_test dlls/windowscodecs/tests windowscodecs_test
17659 wine_fn_config_dll windowscodecsext enable_windowscodecsext implib
17660 wine_fn_config_test dlls/windowscodecsext/tests windowscodecsext_test
17661 wine_fn_config_dll winealsa.drv enable_winealsa_drv
17662 wine_fn_config_dll winecoreaudio.drv enable_winecoreaudio_drv
17663 wine_fn_config_lib winecrt0
17664 wine_fn_config_dll wined3d enable_wined3d implib
17665 wine_fn_config_dll winegstreamer enable_winegstreamer
17666 wine_fn_config_dll winejoystick.drv enable_winejoystick_drv
17667 wine_fn_config_dll winemac.drv enable_winemac_drv
17668 wine_fn_config_dll winemapi enable_winemapi
17669 wine_fn_config_dll winemp3.acm enable_winemp3_acm
17670 wine_fn_config_dll wineoss.drv enable_wineoss_drv
17671 wine_fn_config_dll wineps.drv enable_wineps_drv clean,po
17672 wine_fn_config_dll wineps16.drv16 enable_win16
17673 wine_fn_config_dll wineqtdecoder enable_wineqtdecoder
17674 wine_fn_config_dll winex11.drv enable_winex11_drv
17675 wine_fn_config_dll wing.dll16 enable_win16
17676 wine_fn_config_dll wing32 enable_wing32
17677 wine_fn_config_dll winhttp enable_winhttp clean,implib
17678 wine_fn_config_test dlls/winhttp/tests winhttp_test
17679 wine_fn_config_dll wininet enable_wininet implib,po
17680 wine_fn_config_test dlls/wininet/tests wininet_test
17681 wine_fn_config_dll winmm enable_winmm implib,po
17682 wine_fn_config_test dlls/winmm/tests winmm_test
17683 wine_fn_config_dll winnls.dll16 enable_win16
17684 wine_fn_config_dll winnls32 enable_winnls32 implib
17685 wine_fn_config_dll winscard enable_winscard implib
17686 wine_fn_config_dll winsock.dll16 enable_win16
17687 wine_fn_config_dll winspool.drv enable_winspool_drv implib,po winspool
17688 wine_fn_config_test dlls/winspool.drv/tests winspool.drv_test
17689 wine_fn_config_dll winsta enable_winsta
17690 wine_fn_config_dll wintab.dll16 enable_win16
17691 wine_fn_config_dll wintab32 enable_wintab32 implib
17692 wine_fn_config_test dlls/wintab32/tests wintab32_test
17693 wine_fn_config_dll wintrust enable_wintrust implib
17694 wine_fn_config_test dlls/wintrust/tests wintrust_test
17695 wine_fn_config_dll wlanapi enable_wlanapi
17696 wine_fn_config_dll wldap32 enable_wldap32 implib,po
17697 wine_fn_config_test dlls/wldap32/tests wldap32_test
17698 wine_fn_config_dll wmi enable_wmi
17699 wine_fn_config_dll wmiutils enable_wmiutils clean
17700 wine_fn_config_test dlls/wmiutils/tests wmiutils_test
17701 wine_fn_config_dll wmp enable_wmp clean
17702 wine_fn_config_test dlls/wmp/tests wmp_test
17703 wine_fn_config_dll wmvcore enable_wmvcore
17704 wine_fn_config_dll wnaspi32 enable_wnaspi32 implib
17705 wine_fn_config_dll wow32 enable_win16 implib
17706 wine_fn_config_dll wpcap enable_wpcap
17707 wine_fn_config_dll ws2_32 enable_ws2_32 implib
17708 wine_fn_config_test dlls/ws2_32/tests ws2_32_test
17709 wine_fn_config_dll wshom.ocx enable_wshom_ocx clean
17710 wine_fn_config_test dlls/wshom.ocx/tests wshom.ocx_test clean
17711 wine_fn_config_dll wsnmp32 enable_wsnmp32 implib
17712 wine_fn_config_test dlls/wsnmp32/tests wsnmp32_test
17713 wine_fn_config_dll wsock32 enable_wsock32 implib
17714 wine_fn_config_dll wtsapi32 enable_wtsapi32 implib
17715 wine_fn_config_test dlls/wtsapi32/tests wtsapi32_test
17716 wine_fn_config_dll wuapi enable_wuapi clean
17717 wine_fn_config_dll wuaueng enable_wuaueng
17718 wine_fn_config_dll x3daudio1_1 enable_x3daudio1_1
17719 wine_fn_config_dll x3daudio1_2 enable_x3daudio1_2
17720 wine_fn_config_dll x3daudio1_3 enable_x3daudio1_3
17721 wine_fn_config_dll x3daudio1_4 enable_x3daudio1_4
17722 wine_fn_config_dll x3daudio1_5 enable_x3daudio1_5
17723 wine_fn_config_dll x3daudio1_6 enable_x3daudio1_6
17724 wine_fn_config_dll x3daudio1_7 enable_x3daudio1_7
17725 wine_fn_config_dll xapofx1_1 enable_xapofx1_1
17726 wine_fn_config_dll xapofx1_3 enable_xapofx1_3
17727 wine_fn_config_dll xapofx1_4 enable_xapofx1_4
17728 wine_fn_config_dll xapofx1_5 enable_xapofx1_5
17729 wine_fn_config_dll xaudio2_7 enable_xaudio2_7
17730 wine_fn_config_dll xinput1_1 enable_xinput1_1
17731 wine_fn_config_dll xinput1_2 enable_xinput1_2
17732 wine_fn_config_dll xinput1_3 enable_xinput1_3 implib xinput
17733 wine_fn_config_test dlls/xinput1_3/tests xinput1_3_test
17734 wine_fn_config_dll xinput1_4 enable_xinput1_4
17735 wine_fn_config_dll xinput9_1_0 enable_xinput9_1_0
17736 wine_fn_config_dll xmllite enable_xmllite implib
17737 wine_fn_config_test dlls/xmllite/tests xmllite_test
17738 wine_fn_config_dll xolehlp enable_xolehlp
17739 wine_fn_config_dll xpsprint enable_xpsprint
17740 wine_fn_config_dll xpssvcs enable_xpssvcs
17741 wine_fn_config_makefile documentation enable_documentation clean
17742 wine_fn_config_makefile fonts enable_fonts clean,install-lib
17743 wine_fn_config_makefile include enable_include clean,install-dev
17744 wine_fn_config_makefile libs/port enable_libs_port
17745 wine_fn_config_makefile libs/wine enable_libs_wine clean,install-dev,install-lib
17746 wine_fn_config_makefile libs/wpp enable_libs_wpp
17747 wine_fn_config_makefile loader enable_loader clean,install-lib,manpage
17748 wine_fn_config_program arp enable_arp install
17749 wine_fn_config_program aspnet_regiis enable_aspnet_regiis install
17750 wine_fn_config_program attrib enable_attrib install,po
17751 wine_fn_config_program cabarc enable_cabarc install
17752 wine_fn_config_program cacls enable_cacls install
17753 wine_fn_config_program clock enable_clock install,po
17754 wine_fn_config_program cmd enable_cmd install,po
17755 wine_fn_config_test programs/cmd/tests cmd.exe_test
17756 wine_fn_config_program conhost enable_conhost install
17757 wine_fn_config_program control enable_control install
17758 wine_fn_config_program cscript enable_cscript clean,install
17759 wine_fn_config_program dpnsvr enable_dpnsvr install
17760 wine_fn_config_program dxdiag enable_dxdiag install,po
17761 wine_fn_config_program eject enable_eject install
17762 wine_fn_config_program expand enable_expand install
17763 wine_fn_config_program explorer enable_explorer install,po
17764 wine_fn_config_program extrac32 enable_extrac32 install
17765 wine_fn_config_program findstr enable_findstr install
17766 wine_fn_config_program hh enable_hh install
17767 wine_fn_config_program hostname enable_hostname install,po
17768 wine_fn_config_program icinfo enable_icinfo install
17769 wine_fn_config_program iexplore enable_iexplore install
17770 wine_fn_config_program ipconfig enable_ipconfig install,po
17771 wine_fn_config_program lodctr enable_lodctr install
17772 wine_fn_config_program mofcomp enable_mofcomp install
17773 wine_fn_config_program mshta enable_mshta install
17774 wine_fn_config_program msiexec enable_msiexec install,installbin,manpage
17775 wine_fn_config_program net enable_net install,po
17776 wine_fn_config_program netsh enable_netsh install
17777 wine_fn_config_program netstat enable_netstat install,po
17778 wine_fn_config_program ngen enable_ngen install
17779 wine_fn_config_program notepad enable_notepad install,installbin,manpage,po
17780 wine_fn_config_program oleview enable_oleview install,po
17781 wine_fn_config_program ping enable_ping install
17782 wine_fn_config_program plugplay enable_plugplay install
17783 wine_fn_config_program presentationfontcache enable_presentationfontcache install
17784 wine_fn_config_program progman enable_progman install,po
17785 wine_fn_config_program reg enable_reg install,po
17786 wine_fn_config_test programs/reg/tests reg.exe_test
17787 wine_fn_config_program regasm enable_regasm install
17788 wine_fn_config_program regedit enable_regedit install,installbin,manpage,po
17789 wine_fn_config_test programs/regedit/tests regedit.exe_test
17790 wine_fn_config_program regsvcs enable_regsvcs install
17791 wine_fn_config_program regsvr32 enable_regsvr32 install,installbin,manpage,po
17792 wine_fn_config_program rpcss enable_rpcss clean,install
17793 wine_fn_config_program rundll.exe16 enable_win16 install
17794 wine_fn_config_program rundll32 enable_rundll32 install
17795 wine_fn_config_program sc enable_sc install
17796 wine_fn_config_program schtasks enable_schtasks install
17797 wine_fn_config_program sdbinst enable_sdbinst install
17798 wine_fn_config_program secedit enable_secedit install
17799 wine_fn_config_program servicemodelreg enable_servicemodelreg install
17800 wine_fn_config_program services enable_services clean,install
17801 wine_fn_config_test programs/services/tests services.exe_test
17802 wine_fn_config_program spoolsv enable_spoolsv install
17803 wine_fn_config_program start enable_start install,po
17804 wine_fn_config_program svchost enable_svchost install
17805 wine_fn_config_program systeminfo enable_systeminfo install
17806 wine_fn_config_program taskkill enable_taskkill install,po
17807 wine_fn_config_program tasklist enable_tasklist install
17808 wine_fn_config_program taskmgr enable_taskmgr install,po
17809 wine_fn_config_program termsv enable_termsv install
17810 wine_fn_config_program uninstaller enable_uninstaller install,po
17811 wine_fn_config_program unlodctr enable_unlodctr install
17812 wine_fn_config_program view enable_view install,po
17813 wine_fn_config_program wevtutil enable_wevtutil install
17814 wine_fn_config_program wineboot enable_wineboot install,installbin,manpage,po
17815 wine_fn_config_program winebrowser enable_winebrowser install
17816 wine_fn_config_program winecfg enable_winecfg install,installbin,manpage,po
17817 wine_fn_config_program wineconsole enable_wineconsole install,installbin,manpage,po
17818 wine_fn_config_program winedbg enable_winedbg install,installbin,manpage,po
17819 wine_fn_config_program winedevice enable_winedevice install
17820 wine_fn_config_program winefile enable_winefile install,installbin,manpage,po
17821 wine_fn_config_program winemenubuilder enable_winemenubuilder install
17822 wine_fn_config_program winemine enable_winemine install,installbin,manpage,po
17823 wine_fn_config_program winemsibuilder enable_winemsibuilder install
17824 wine_fn_config_program winepath enable_winepath install,installbin,manpage
17825 wine_fn_config_program winetest enable_winetest clean
17826 wine_fn_config_program winevdm enable_win16 install
17827 wine_fn_config_program winhelp.exe16 enable_win16 install
17828 wine_fn_config_program winhlp32 enable_winhlp32 install,po
17829 wine_fn_config_program winoldap.mod16 enable_win16 install
17830 wine_fn_config_program winver enable_winver install
17831 wine_fn_config_program wmic enable_wmic install,po
17832 wine_fn_config_program wordpad enable_wordpad install,po
17833 wine_fn_config_program write enable_write install,po
17834 wine_fn_config_program wscript enable_wscript clean,install
17835 wine_fn_config_test programs/wscript/tests wscript.exe_test
17836 wine_fn_config_program wusa enable_wusa install
17837 wine_fn_config_program xcopy enable_xcopy install,po
17838 wine_fn_config_test programs/xcopy/tests xcopy.exe_test
17839 wine_fn_config_makefile server enable_server clean,install-lib,manpage
17840 wine_fn_config_tool tools clean,install-dev,install-lib,manpage
17841 wine_fn_config_tool tools/sfnt2fon clean
17842 wine_fn_config_tool tools/widl clean,install-dev,manpage
17843 wine_fn_config_tool tools/winebuild clean,install-dev,manpage
17844 wine_fn_config_tool tools/winedump clean,install-dev,manpage
17845 wine_fn_config_tool tools/winegcc clean,install-dev,manpage
17846 wine_fn_config_tool tools/wmc clean,install-dev,manpage
17847 wine_fn_config_tool tools/wrc clean,install-dev,manpage
17849 LINGUAS="\
17850 ar \
17851 bg \
17852 ca \
17853 cs \
17854 da \
17855 de \
17856 el \
17857 en \
17858 en_US \
17859 eo \
17860 es \
17861 fa \
17862 fi \
17863 fr \
17864 he \
17865 hi \
17866 hr \
17867 hu \
17868 it \
17869 ja \
17870 ko \
17871 lt \
17872 ml \
17873 nb_NO \
17874 nl \
17875 or \
17876 pa \
17877 pl \
17878 pt_BR \
17879 pt_PT \
17880 rm \
17881 ro \
17882 ru \
17883 sk \
17884 sl \
17885 sr_RS@cyrillic \
17886 sr_RS@latin \
17887 sv \
17888 te \
17889 th \
17890 tr \
17891 uk \
17892 wa \
17893 zh_CN \
17894 zh_TW"
17899 wine_fn_ignore_file ".gitignore"
17900 wine_fn_ignore_file "Makefile"
17901 wine_fn_ignore_file "TAGS"
17902 wine_fn_ignore_file "tags"
17903 wine_fn_ignore_file "autom4te.cache"
17904 wine_fn_ignore_file "config.cache"
17905 wine_fn_ignore_file "config.log"
17906 wine_fn_ignore_file "config.status"
17907 wine_fn_ignore_file "configure.lineno"
17908 wine_fn_ignore_file "include/config.h"
17909 wine_fn_ignore_file "include/stamp-h"
17910 test "$wine_binary" = wine || wine_fn_ignore_file "loader/wine"
17912 if test "x$enable_tools" != xno
17913 then
17914 wine_fn_ignore_file "tools/makedep$ac_exeext"
17915 ac_config_commands="$ac_config_commands tools/makedep"
17919 ac_config_commands="$ac_config_commands Makefile"
17922 ac_config_files="$ac_config_files Make.tmp:Make.vars.in:Makefile.in"
17926 if test "x$enable_maintainer_mode" = xyes
17927 then
17928 wine_fn_append_rule "configure: configure.ac aclocal.m4
17929 autoconf --warnings=all
17930 include/config.h.in: include/stamp-h.in
17931 include/stamp-h.in: configure.ac aclocal.m4
17932 autoheader --warnings=all
17933 @echo timestamp > \$@"
17936 if test "x$with_gettextpo" = xyes
17937 then
17938 test "$srcdir" = . || as_fn_error $? "Rebuilding po files is not supported for out of tree builds." "$LINENO" 5
17939 wine_fn_append_rule "ALL_POT_FILES =$ALL_POT_FILES
17940 \$(LINGUAS:%=po/%.po): po/wine.pot
17941 msgmerge --previous -q \$@ po/wine.pot | msgattrib --no-obsolete -o \$@.new && mv \$@.new \$@
17942 po/wine.pot: \$(ALL_POT_FILES)
17943 msgcat -o \$@ \$(ALL_POT_FILES)"
17946 if test "$MSGFMT" != false
17947 then
17948 wine_fn_append_rule "__builddeps__: \$(LINGUAS:%=po/%.mo)
17949 clean::
17950 \$(RM) \$(LINGUAS:%=po/%.mo)"
17952 posrc="po"
17953 test "$srcdir" = . || posrc="$srcdir/po"
17954 for i in $LINGUAS
17956 wine_fn_ignore_file "po/$i.mo"
17957 wine_fn_append_rule "po/$i.mo: $posrc/$i.po
17958 \$(MSGFMT) -o \$@ $posrc/$i.po"
17959 done
17960 else
17961 LINGUAS=
17964 if test "x$enable_tools" != xno
17965 then
17966 wine_fn_append_rule "tools/makedep$ac_exeext: $srcdir/tools/makedep.c include/config.h config.status
17967 @./config.status tools/makedep
17968 Makefile: tools/makedep$ac_exeext
17969 distclean:: clean
17970 \$(RM) tools/makedep$ac_exeext"
17971 else
17972 wine_fn_append_rule "\$(MAKEDEP):
17973 @echo \"You need to run make in $TOOLSDIR first\" && false"
17976 if test -n "$with_wine64"
17977 then
17978 wine_fn_append_rule "all: fonts server tools $with_wine64/loader/wine $with_wine64/loader/wine-preloader
17979 fonts server tools:
17980 \$(RM) \$@ && \$(LN_S) $with_wine64/\$@ \$@
17981 $with_wine64/loader/wine:
17982 \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine \$@
17983 $with_wine64/loader/wine-preloader:
17984 \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine-preloader \$@
17985 clean::
17986 \$(RM) fonts server tools $with_wine64/loader/wine $with_wine64/loader/wine-preloader"
17987 else
17988 as_fn_append LOADER_RULES "
17989 install install-lib:: wine.inf install-man-pages
17990 \$(INSTALL_DATA) wine.inf \$(DESTDIR)\$(datadir)/wine/wine.inf
17991 \$(INSTALL_DATA) \$(srcdir)/l_intl.nls \$(DESTDIR)\$(datadir)/wine/l_intl.nls
17993 uninstall::
17994 \$(RM) \$(DESTDIR)\$(datadir)/wine/wine.inf \$(DESTDIR)\$(datadir)/wine/l_intl.nls
17998 if test "$srcdir" = .
17999 then
18000 ac_config_commands="$ac_config_commands .gitignore"
18004 $as_echo " done" >&6
18005 cat >confcache <<\_ACEOF
18006 # This file is a shell script that caches the results of configure
18007 # tests run on this system so they can be shared between configure
18008 # scripts and configure runs, see configure's option --config-cache.
18009 # It is not useful on other systems. If it contains results you don't
18010 # want to keep, you may remove or edit it.
18012 # config.status only pays attention to the cache file if you give it
18013 # the --recheck option to rerun configure.
18015 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18016 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18017 # following values.
18019 _ACEOF
18021 # The following way of writing the cache mishandles newlines in values,
18022 # but we know of no workaround that is simple, portable, and efficient.
18023 # So, we kill variables containing newlines.
18024 # Ultrix sh set writes to stderr and can't be redirected directly,
18025 # and sets the high bit in the cache file unless we assign to the vars.
18027 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18028 eval ac_val=\$$ac_var
18029 case $ac_val in #(
18030 *${as_nl}*)
18031 case $ac_var in #(
18032 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18033 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18034 esac
18035 case $ac_var in #(
18036 _ | IFS | as_nl) ;; #(
18037 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18038 *) { eval $ac_var=; unset $ac_var;} ;;
18039 esac ;;
18040 esac
18041 done
18043 (set) 2>&1 |
18044 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18045 *${as_nl}ac_space=\ *)
18046 # `set' does not quote correctly, so add quotes: double-quote
18047 # substitution turns \\\\ into \\, and sed turns \\ into \.
18048 sed -n \
18049 "s/'/'\\\\''/g;
18050 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18051 ;; #(
18053 # `set' quotes correctly as required by POSIX, so do not add quotes.
18054 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18056 esac |
18057 sort
18059 sed '
18060 /^ac_cv_env_/b end
18061 t clear
18062 :clear
18063 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18064 t end
18065 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18066 :end' >>confcache
18067 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18068 if test -w "$cache_file"; then
18069 if test "x$cache_file" != "x/dev/null"; then
18070 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18071 $as_echo "$as_me: updating cache $cache_file" >&6;}
18072 if test ! -f "$cache_file" || test -h "$cache_file"; then
18073 cat confcache >"$cache_file"
18074 else
18075 case $cache_file in #(
18076 */* | ?:*)
18077 mv -f confcache "$cache_file"$$ &&
18078 mv -f "$cache_file"$$ "$cache_file" ;; #(
18080 mv -f confcache "$cache_file" ;;
18081 esac
18084 else
18085 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18086 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18089 rm -f confcache
18091 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18092 # Let make expand exec_prefix.
18093 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18095 DEFS=-DHAVE_CONFIG_H
18097 ac_libobjs=
18098 ac_ltlibobjs=
18100 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18101 # 1. Remove the extension, and $U if already installed.
18102 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18103 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18104 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18105 # will be set to the directory where LIBOBJS objects are built.
18106 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18107 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18108 done
18109 LIBOBJS=$ac_libobjs
18111 LTLIBOBJS=$ac_ltlibobjs
18115 : "${CONFIG_STATUS=./config.status}"
18116 ac_write_fail=0
18117 ac_clean_files_save=$ac_clean_files
18118 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18119 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18120 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18121 as_write_fail=0
18122 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18123 #! $SHELL
18124 # Generated by $as_me.
18125 # Run this file to recreate the current configuration.
18126 # Compiler output produced by configure, useful for debugging
18127 # configure, is in config.log if it exists.
18129 debug=false
18130 ac_cs_recheck=false
18131 ac_cs_silent=false
18133 SHELL=\${CONFIG_SHELL-$SHELL}
18134 export SHELL
18135 _ASEOF
18136 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18137 ## -------------------- ##
18138 ## M4sh Initialization. ##
18139 ## -------------------- ##
18141 # Be more Bourne compatible
18142 DUALCASE=1; export DUALCASE # for MKS sh
18143 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18144 emulate sh
18145 NULLCMD=:
18146 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18147 # is contrary to our usage. Disable this feature.
18148 alias -g '${1+"$@"}'='"$@"'
18149 setopt NO_GLOB_SUBST
18150 else
18151 case `(set -o) 2>/dev/null` in #(
18152 *posix*) :
18153 set -o posix ;; #(
18154 *) :
18156 esac
18160 as_nl='
18162 export as_nl
18163 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18164 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18165 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18166 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18167 # Prefer a ksh shell builtin over an external printf program on Solaris,
18168 # but without wasting forks for bash or zsh.
18169 if test -z "$BASH_VERSION$ZSH_VERSION" \
18170 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18171 as_echo='print -r --'
18172 as_echo_n='print -rn --'
18173 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18174 as_echo='printf %s\n'
18175 as_echo_n='printf %s'
18176 else
18177 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18178 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18179 as_echo_n='/usr/ucb/echo -n'
18180 else
18181 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18182 as_echo_n_body='eval
18183 arg=$1;
18184 case $arg in #(
18185 *"$as_nl"*)
18186 expr "X$arg" : "X\\(.*\\)$as_nl";
18187 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18188 esac;
18189 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18191 export as_echo_n_body
18192 as_echo_n='sh -c $as_echo_n_body as_echo'
18194 export as_echo_body
18195 as_echo='sh -c $as_echo_body as_echo'
18198 # The user is always right.
18199 if test "${PATH_SEPARATOR+set}" != set; then
18200 PATH_SEPARATOR=:
18201 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18202 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18203 PATH_SEPARATOR=';'
18208 # IFS
18209 # We need space, tab and new line, in precisely that order. Quoting is
18210 # there to prevent editors from complaining about space-tab.
18211 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18212 # splitting by setting IFS to empty value.)
18213 IFS=" "" $as_nl"
18215 # Find who we are. Look in the path if we contain no directory separator.
18216 as_myself=
18217 case $0 in #((
18218 *[\\/]* ) as_myself=$0 ;;
18219 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18220 for as_dir in $PATH
18222 IFS=$as_save_IFS
18223 test -z "$as_dir" && as_dir=.
18224 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18225 done
18226 IFS=$as_save_IFS
18229 esac
18230 # We did not find ourselves, most probably we were run as `sh COMMAND'
18231 # in which case we are not to be found in the path.
18232 if test "x$as_myself" = x; then
18233 as_myself=$0
18235 if test ! -f "$as_myself"; then
18236 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18237 exit 1
18240 # Unset variables that we do not need and which cause bugs (e.g. in
18241 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18242 # suppresses any "Segmentation fault" message there. '((' could
18243 # trigger a bug in pdksh 5.2.14.
18244 for as_var in BASH_ENV ENV MAIL MAILPATH
18245 do eval test x\${$as_var+set} = xset \
18246 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18247 done
18248 PS1='$ '
18249 PS2='> '
18250 PS4='+ '
18252 # NLS nuisances.
18253 LC_ALL=C
18254 export LC_ALL
18255 LANGUAGE=C
18256 export LANGUAGE
18258 # CDPATH.
18259 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18262 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18263 # ----------------------------------------
18264 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18265 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18266 # script with STATUS, using 1 if that was 0.
18267 as_fn_error ()
18269 as_status=$1; test $as_status -eq 0 && as_status=1
18270 if test "$4"; then
18271 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18272 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18274 $as_echo "$as_me: error: $2" >&2
18275 as_fn_exit $as_status
18276 } # as_fn_error
18279 # as_fn_set_status STATUS
18280 # -----------------------
18281 # Set $? to STATUS, without forking.
18282 as_fn_set_status ()
18284 return $1
18285 } # as_fn_set_status
18287 # as_fn_exit STATUS
18288 # -----------------
18289 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18290 as_fn_exit ()
18292 set +e
18293 as_fn_set_status $1
18294 exit $1
18295 } # as_fn_exit
18297 # as_fn_unset VAR
18298 # ---------------
18299 # Portably unset VAR.
18300 as_fn_unset ()
18302 { eval $1=; unset $1;}
18304 as_unset=as_fn_unset
18305 # as_fn_append VAR VALUE
18306 # ----------------------
18307 # Append the text in VALUE to the end of the definition contained in VAR. Take
18308 # advantage of any shell optimizations that allow amortized linear growth over
18309 # repeated appends, instead of the typical quadratic growth present in naive
18310 # implementations.
18311 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18312 eval 'as_fn_append ()
18314 eval $1+=\$2
18316 else
18317 as_fn_append ()
18319 eval $1=\$$1\$2
18321 fi # as_fn_append
18323 # as_fn_arith ARG...
18324 # ------------------
18325 # Perform arithmetic evaluation on the ARGs, and store the result in the
18326 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18327 # must be portable across $(()) and expr.
18328 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18329 eval 'as_fn_arith ()
18331 as_val=$(( $* ))
18333 else
18334 as_fn_arith ()
18336 as_val=`expr "$@" || test $? -eq 1`
18338 fi # as_fn_arith
18341 if expr a : '\(a\)' >/dev/null 2>&1 &&
18342 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18343 as_expr=expr
18344 else
18345 as_expr=false
18348 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18349 as_basename=basename
18350 else
18351 as_basename=false
18354 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18355 as_dirname=dirname
18356 else
18357 as_dirname=false
18360 as_me=`$as_basename -- "$0" ||
18361 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18362 X"$0" : 'X\(//\)$' \| \
18363 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18364 $as_echo X/"$0" |
18365 sed '/^.*\/\([^/][^/]*\)\/*$/{
18366 s//\1/
18369 /^X\/\(\/\/\)$/{
18370 s//\1/
18373 /^X\/\(\/\).*/{
18374 s//\1/
18377 s/.*/./; q'`
18379 # Avoid depending upon Character Ranges.
18380 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18381 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18382 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18383 as_cr_digits='0123456789'
18384 as_cr_alnum=$as_cr_Letters$as_cr_digits
18386 ECHO_C= ECHO_N= ECHO_T=
18387 case `echo -n x` in #(((((
18388 -n*)
18389 case `echo 'xy\c'` in
18390 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18391 xy) ECHO_C='\c';;
18392 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18393 ECHO_T=' ';;
18394 esac;;
18396 ECHO_N='-n';;
18397 esac
18399 rm -f conf$$ conf$$.exe conf$$.file
18400 if test -d conf$$.dir; then
18401 rm -f conf$$.dir/conf$$.file
18402 else
18403 rm -f conf$$.dir
18404 mkdir conf$$.dir 2>/dev/null
18406 if (echo >conf$$.file) 2>/dev/null; then
18407 if ln -s conf$$.file conf$$ 2>/dev/null; then
18408 as_ln_s='ln -s'
18409 # ... but there are two gotchas:
18410 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18411 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18412 # In both cases, we have to default to `cp -pR'.
18413 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18414 as_ln_s='cp -pR'
18415 elif ln conf$$.file conf$$ 2>/dev/null; then
18416 as_ln_s=ln
18417 else
18418 as_ln_s='cp -pR'
18420 else
18421 as_ln_s='cp -pR'
18423 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18424 rmdir conf$$.dir 2>/dev/null
18427 # as_fn_mkdir_p
18428 # -------------
18429 # Create "$as_dir" as a directory, including parents if necessary.
18430 as_fn_mkdir_p ()
18433 case $as_dir in #(
18434 -*) as_dir=./$as_dir;;
18435 esac
18436 test -d "$as_dir" || eval $as_mkdir_p || {
18437 as_dirs=
18438 while :; do
18439 case $as_dir in #(
18440 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18441 *) as_qdir=$as_dir;;
18442 esac
18443 as_dirs="'$as_qdir' $as_dirs"
18444 as_dir=`$as_dirname -- "$as_dir" ||
18445 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18446 X"$as_dir" : 'X\(//\)[^/]' \| \
18447 X"$as_dir" : 'X\(//\)$' \| \
18448 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18449 $as_echo X"$as_dir" |
18450 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18451 s//\1/
18454 /^X\(\/\/\)[^/].*/{
18455 s//\1/
18458 /^X\(\/\/\)$/{
18459 s//\1/
18462 /^X\(\/\).*/{
18463 s//\1/
18466 s/.*/./; q'`
18467 test -d "$as_dir" && break
18468 done
18469 test -z "$as_dirs" || eval "mkdir $as_dirs"
18470 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18473 } # as_fn_mkdir_p
18474 if mkdir -p . 2>/dev/null; then
18475 as_mkdir_p='mkdir -p "$as_dir"'
18476 else
18477 test -d ./-p && rmdir ./-p
18478 as_mkdir_p=false
18482 # as_fn_executable_p FILE
18483 # -----------------------
18484 # Test if FILE is an executable regular file.
18485 as_fn_executable_p ()
18487 test -f "$1" && test -x "$1"
18488 } # as_fn_executable_p
18489 as_test_x='test -x'
18490 as_executable_p=as_fn_executable_p
18492 # Sed expression to map a string onto a valid CPP name.
18493 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18495 # Sed expression to map a string onto a valid variable name.
18496 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18499 exec 6>&1
18500 ## ----------------------------------- ##
18501 ## Main body of $CONFIG_STATUS script. ##
18502 ## ----------------------------------- ##
18503 _ASEOF
18504 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18506 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18507 # Save the log message, to keep $0 and so on meaningful, and to
18508 # report actual input values of CONFIG_FILES etc. instead of their
18509 # values after options handling.
18510 ac_log="
18511 This file was extended by Wine $as_me 1.7.44, which was
18512 generated by GNU Autoconf 2.69. Invocation command line was
18514 CONFIG_FILES = $CONFIG_FILES
18515 CONFIG_HEADERS = $CONFIG_HEADERS
18516 CONFIG_LINKS = $CONFIG_LINKS
18517 CONFIG_COMMANDS = $CONFIG_COMMANDS
18518 $ $0 $@
18520 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18523 _ACEOF
18525 case $ac_config_files in *"
18526 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18527 esac
18529 case $ac_config_headers in *"
18530 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18531 esac
18534 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18535 # Files that config.status was made for.
18536 config_files="$ac_config_files"
18537 config_headers="$ac_config_headers"
18538 config_links="$ac_config_links"
18539 config_commands="$ac_config_commands"
18541 _ACEOF
18543 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18544 ac_cs_usage="\
18545 \`$as_me' instantiates files and other configuration actions
18546 from templates according to the current configuration. Unless the files
18547 and actions are specified as TAGs, all are instantiated by default.
18549 Usage: $0 [OPTION]... [TAG]...
18551 -h, --help print this help, then exit
18552 -V, --version print version number and configuration settings, then exit
18553 --config print configuration, then exit
18554 -q, --quiet, --silent
18555 do not print progress messages
18556 -d, --debug don't remove temporary files
18557 --recheck update $as_me by reconfiguring in the same conditions
18558 --file=FILE[:TEMPLATE]
18559 instantiate the configuration file FILE
18560 --header=FILE[:TEMPLATE]
18561 instantiate the configuration header FILE
18563 Configuration files:
18564 $config_files
18566 Configuration headers:
18567 $config_headers
18569 Configuration links:
18570 $config_links
18572 Configuration commands:
18573 $config_commands
18575 Report bugs to <wine-devel@winehq.org>.
18576 Wine home page: <http://www.winehq.org>."
18578 _ACEOF
18579 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18580 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18581 ac_cs_version="\\
18582 Wine config.status 1.7.44
18583 configured by $0, generated by GNU Autoconf 2.69,
18584 with options \\"\$ac_cs_config\\"
18586 Copyright (C) 2012 Free Software Foundation, Inc.
18587 This config.status script is free software; the Free Software Foundation
18588 gives unlimited permission to copy, distribute and modify it."
18590 ac_pwd='$ac_pwd'
18591 srcdir='$srcdir'
18592 test -n "\$AWK" || AWK=awk
18593 _ACEOF
18595 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18596 # The default lists apply if the user does not specify any file.
18597 ac_need_defaults=:
18598 while test $# != 0
18600 case $1 in
18601 --*=?*)
18602 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18603 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18604 ac_shift=:
18606 --*=)
18607 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18608 ac_optarg=
18609 ac_shift=:
18612 ac_option=$1
18613 ac_optarg=$2
18614 ac_shift=shift
18616 esac
18618 case $ac_option in
18619 # Handling of the options.
18620 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18621 ac_cs_recheck=: ;;
18622 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18623 $as_echo "$ac_cs_version"; exit ;;
18624 --config | --confi | --conf | --con | --co | --c )
18625 $as_echo "$ac_cs_config"; exit ;;
18626 --debug | --debu | --deb | --de | --d | -d )
18627 debug=: ;;
18628 --file | --fil | --fi | --f )
18629 $ac_shift
18630 case $ac_optarg in
18631 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18632 '') as_fn_error $? "missing file argument" ;;
18633 esac
18634 as_fn_append CONFIG_FILES " '$ac_optarg'"
18635 ac_need_defaults=false;;
18636 --header | --heade | --head | --hea )
18637 $ac_shift
18638 case $ac_optarg in
18639 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18640 esac
18641 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18642 ac_need_defaults=false;;
18643 --he | --h)
18644 # Conflict between --help and --header
18645 as_fn_error $? "ambiguous option: \`$1'
18646 Try \`$0 --help' for more information.";;
18647 --help | --hel | -h )
18648 $as_echo "$ac_cs_usage"; exit ;;
18649 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18650 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18651 ac_cs_silent=: ;;
18653 # This is an error.
18654 -*) as_fn_error $? "unrecognized option: \`$1'
18655 Try \`$0 --help' for more information." ;;
18657 *) as_fn_append ac_config_targets " $1"
18658 ac_need_defaults=false ;;
18660 esac
18661 shift
18662 done
18664 ac_configure_extra_args=
18666 if $ac_cs_silent; then
18667 exec 6>/dev/null
18668 ac_configure_extra_args="$ac_configure_extra_args --silent"
18671 _ACEOF
18672 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18673 if \$ac_cs_recheck; then
18674 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18675 shift
18676 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18677 CONFIG_SHELL='$SHELL'
18678 export CONFIG_SHELL
18679 exec "\$@"
18682 _ACEOF
18683 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18684 exec 5>>config.log
18686 echo
18687 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18688 ## Running $as_me. ##
18689 _ASBOX
18690 $as_echo "$ac_log"
18691 } >&5
18693 _ACEOF
18694 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18696 # INIT-COMMANDS
18698 wine_fn_output_makedep ()
18700 as_dir=tools; as_fn_mkdir_p
18701 $CC -Iinclude -I$srcdir/include -D__WINESRC__ $EXTRACFLAGS $CPPFLAGS $CFLAGS -o tools/makedep$ac_exeext $srcdir/tools/makedep.c $LDFLAGS
18703 wine_fn_output_makefile ()
18705 cat Make.tmp - <<\_WINE_EOF >\$tmp/makefile && mv -f \$tmp/makefile \$1 && rm -f Make.tmp && "$wine_makedep" . && return
18706 `cat $wine_rules_file`
18707 _WINE_EOF
18708 as_fn_error $? "could not create Makefile" "$LINENO" 5
18710 wine_fn_output_gitignore ()
18712 sort <<\_WINE_EOF >\$tmp/gitignore && mv -f \$tmp/gitignore \$1 && return
18713 $GITIGNORE
18714 _WINE_EOF
18715 as_fn_error $? "could not create .gitignore" "$LINENO" 5
18718 _ACEOF
18720 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18722 # Handling of arguments.
18723 for ac_config_target in $ac_config_targets
18725 case $ac_config_target in
18726 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
18727 "include/stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/stamp-h" ;;
18728 "fonts/marlett.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/marlett.ttf:fonts/marlett.ttf" ;;
18729 "fonts/symbol.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/symbol.ttf:fonts/symbol.ttf" ;;
18730 "fonts/tahoma.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahoma.ttf:fonts/tahoma.ttf" ;;
18731 "fonts/tahomabd.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahomabd.ttf:fonts/tahomabd.ttf" ;;
18732 "loader/l_intl.nls") CONFIG_LINKS="$CONFIG_LINKS loader/l_intl.nls:loader/l_intl.nls" ;;
18733 "po/LINGUAS") CONFIG_LINKS="$CONFIG_LINKS po/LINGUAS:po/LINGUAS" ;;
18734 "wine") CONFIG_LINKS="$CONFIG_LINKS wine:tools/winewrapper" ;;
18735 "wine64") CONFIG_LINKS="$CONFIG_LINKS wine64:tools/winewrapper" ;;
18736 "tools/makedep") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/makedep" ;;
18737 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
18738 "Make.tmp") CONFIG_FILES="$CONFIG_FILES Make.tmp:Make.vars.in:Makefile.in" ;;
18739 ".gitignore") CONFIG_COMMANDS="$CONFIG_COMMANDS .gitignore" ;;
18741 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18742 esac
18743 done
18746 # If the user did not use the arguments to specify the items to instantiate,
18747 # then the envvar interface is used. Set only those that are not.
18748 # We use the long form for the default assignment because of an extremely
18749 # bizarre bug on SunOS 4.1.3.
18750 if $ac_need_defaults; then
18751 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18752 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18753 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
18754 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18757 # Have a temporary directory for convenience. Make it in the build tree
18758 # simply because there is no reason against having it here, and in addition,
18759 # creating and moving files from /tmp can sometimes cause problems.
18760 # Hook for its removal unless debugging.
18761 # Note that there is a small window in which the directory will not be cleaned:
18762 # after its creation but before its name has been assigned to `$tmp'.
18763 $debug ||
18765 tmp= ac_tmp=
18766 trap 'exit_status=$?
18767 : "${ac_tmp:=$tmp}"
18768 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18770 trap 'as_fn_exit 1' 1 2 13 15
18772 # Create a (secure) tmp directory for tmp files.
18775 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18776 test -d "$tmp"
18777 } ||
18779 tmp=./conf$$-$RANDOM
18780 (umask 077 && mkdir "$tmp")
18781 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18782 ac_tmp=$tmp
18784 # Set up the scripts for CONFIG_FILES section.
18785 # No need to generate them if there are no CONFIG_FILES.
18786 # This happens for instance with `./config.status config.h'.
18787 if test -n "$CONFIG_FILES"; then
18790 ac_cr=`echo X | tr X '\015'`
18791 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18792 # But we know of no other shell where ac_cr would be empty at this
18793 # point, so we can use a bashism as a fallback.
18794 if test "x$ac_cr" = x; then
18795 eval ac_cr=\$\'\\r\'
18797 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18798 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18799 ac_cs_awk_cr='\\r'
18800 else
18801 ac_cs_awk_cr=$ac_cr
18804 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18805 _ACEOF
18809 echo "cat >conf$$subs.awk <<_ACEOF" &&
18810 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18811 echo "_ACEOF"
18812 } >conf$$subs.sh ||
18813 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18814 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18815 ac_delim='%!_!# '
18816 for ac_last_try in false false false false false :; do
18817 . ./conf$$subs.sh ||
18818 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18820 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18821 if test $ac_delim_n = $ac_delim_num; then
18822 break
18823 elif $ac_last_try; then
18824 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18825 else
18826 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18828 done
18829 rm -f conf$$subs.sh
18831 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18832 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18833 _ACEOF
18834 sed -n '
18836 s/^/S["/; s/!.*/"]=/
18839 s/^[^!]*!//
18840 :repl
18841 t repl
18842 s/'"$ac_delim"'$//
18843 t delim
18846 s/\(.\{148\}\)..*/\1/
18847 t more1
18848 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18851 b repl
18852 :more1
18853 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18856 s/.\{148\}//
18857 t nl
18858 :delim
18860 s/\(.\{148\}\)..*/\1/
18861 t more2
18862 s/["\\]/\\&/g; s/^/"/; s/$/"/
18865 :more2
18866 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18869 s/.\{148\}//
18870 t delim
18871 ' <conf$$subs.awk | sed '
18872 /^[^""]/{
18874 s/\n//
18876 ' >>$CONFIG_STATUS || ac_write_fail=1
18877 rm -f conf$$subs.awk
18878 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18879 _ACAWK
18880 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18881 for (key in S) S_is_set[key] = 1
18882 FS = "\a"
18886 line = $ 0
18887 nfields = split(line, field, "@")
18888 substed = 0
18889 len = length(field[1])
18890 for (i = 2; i < nfields; i++) {
18891 key = field[i]
18892 keylen = length(key)
18893 if (S_is_set[key]) {
18894 value = S[key]
18895 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18896 len += length(value) + length(field[++i])
18897 substed = 1
18898 } else
18899 len += 1 + keylen
18902 print line
18905 _ACAWK
18906 _ACEOF
18907 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18908 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18909 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18910 else
18912 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18913 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18914 _ACEOF
18916 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18917 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18918 # trailing colons and then remove the whole line if VPATH becomes empty
18919 # (actually we leave an empty line to preserve line numbers).
18920 if test "x$srcdir" = x.; then
18921 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18923 s///
18924 s/^/:/
18925 s/[ ]*$/:/
18926 s/:\$(srcdir):/:/g
18927 s/:\${srcdir}:/:/g
18928 s/:@srcdir@:/:/g
18929 s/^:*//
18930 s/:*$//
18932 s/\(=[ ]*\).*/\1/
18934 s/\n//
18935 s/^[^=]*=[ ]*$//
18939 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18940 fi # test -n "$CONFIG_FILES"
18942 # Set up the scripts for CONFIG_HEADERS section.
18943 # No need to generate them if there are no CONFIG_HEADERS.
18944 # This happens for instance with `./config.status Makefile'.
18945 if test -n "$CONFIG_HEADERS"; then
18946 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18947 BEGIN {
18948 _ACEOF
18950 # Transform confdefs.h into an awk script `defines.awk', embedded as
18951 # here-document in config.status, that substitutes the proper values into
18952 # config.h.in to produce config.h.
18954 # Create a delimiter string that does not exist in confdefs.h, to ease
18955 # handling of long lines.
18956 ac_delim='%!_!# '
18957 for ac_last_try in false false :; do
18958 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18959 if test -z "$ac_tt"; then
18960 break
18961 elif $ac_last_try; then
18962 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18963 else
18964 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18966 done
18968 # For the awk script, D is an array of macro values keyed by name,
18969 # likewise P contains macro parameters if any. Preserve backslash
18970 # newline sequences.
18972 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18973 sed -n '
18974 s/.\{148\}/&'"$ac_delim"'/g
18975 t rset
18976 :rset
18977 s/^[ ]*#[ ]*define[ ][ ]*/ /
18978 t def
18980 :def
18981 s/\\$//
18982 t bsnl
18983 s/["\\]/\\&/g
18984 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18985 D["\1"]=" \3"/p
18986 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18988 :bsnl
18989 s/["\\]/\\&/g
18990 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18991 D["\1"]=" \3\\\\\\n"\\/p
18992 t cont
18993 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18994 t cont
18996 :cont
18998 s/.\{148\}/&'"$ac_delim"'/g
18999 t clear
19000 :clear
19001 s/\\$//
19002 t bsnlc
19003 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19005 :bsnlc
19006 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19007 b cont
19008 ' <confdefs.h | sed '
19009 s/'"$ac_delim"'/"\\\
19010 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19012 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19013 for (key in D) D_is_set[key] = 1
19014 FS = "\a"
19016 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19017 line = \$ 0
19018 split(line, arg, " ")
19019 if (arg[1] == "#") {
19020 defundef = arg[2]
19021 mac1 = arg[3]
19022 } else {
19023 defundef = substr(arg[1], 2)
19024 mac1 = arg[2]
19026 split(mac1, mac2, "(") #)
19027 macro = mac2[1]
19028 prefix = substr(line, 1, index(line, defundef) - 1)
19029 if (D_is_set[macro]) {
19030 # Preserve the white space surrounding the "#".
19031 print prefix "define", macro P[macro] D[macro]
19032 next
19033 } else {
19034 # Replace #undef with comments. This is necessary, for example,
19035 # in the case of _POSIX_SOURCE, which is predefined and required
19036 # on some systems where configure will not decide to define it.
19037 if (defundef == "undef") {
19038 print "/*", prefix defundef, macro, "*/"
19039 next
19043 { print }
19044 _ACAWK
19045 _ACEOF
19046 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19047 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19048 fi # test -n "$CONFIG_HEADERS"
19051 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
19052 shift
19053 for ac_tag
19055 case $ac_tag in
19056 :[FHLC]) ac_mode=$ac_tag; continue;;
19057 esac
19058 case $ac_mode$ac_tag in
19059 :[FHL]*:*);;
19060 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19061 :[FH]-) ac_tag=-:-;;
19062 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19063 esac
19064 ac_save_IFS=$IFS
19065 IFS=:
19066 set x $ac_tag
19067 IFS=$ac_save_IFS
19068 shift
19069 ac_file=$1
19070 shift
19072 case $ac_mode in
19073 :L) ac_source=$1;;
19074 :[FH])
19075 ac_file_inputs=
19076 for ac_f
19078 case $ac_f in
19079 -) ac_f="$ac_tmp/stdin";;
19080 *) # Look for the file first in the build tree, then in the source tree
19081 # (if the path is not absolute). The absolute path cannot be DOS-style,
19082 # because $ac_f cannot contain `:'.
19083 test -f "$ac_f" ||
19084 case $ac_f in
19085 [\\/$]*) false;;
19086 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19087 esac ||
19088 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19089 esac
19090 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19091 as_fn_append ac_file_inputs " '$ac_f'"
19092 done
19094 # Let's still pretend it is `configure' which instantiates (i.e., don't
19095 # use $as_me), people would be surprised to read:
19096 # /* config.h. Generated by config.status. */
19097 configure_input='Generated from '`
19098 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19099 `' by configure.'
19100 if test x"$ac_file" != x-; then
19101 configure_input="$ac_file. $configure_input"
19102 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19103 $as_echo "$as_me: creating $ac_file" >&6;}
19105 # Neutralize special characters interpreted by sed in replacement strings.
19106 case $configure_input in #(
19107 *\&* | *\|* | *\\* )
19108 ac_sed_conf_input=`$as_echo "$configure_input" |
19109 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19110 *) ac_sed_conf_input=$configure_input;;
19111 esac
19113 case $ac_tag in
19114 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19115 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19116 esac
19118 esac
19120 ac_dir=`$as_dirname -- "$ac_file" ||
19121 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19122 X"$ac_file" : 'X\(//\)[^/]' \| \
19123 X"$ac_file" : 'X\(//\)$' \| \
19124 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19125 $as_echo X"$ac_file" |
19126 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19127 s//\1/
19130 /^X\(\/\/\)[^/].*/{
19131 s//\1/
19134 /^X\(\/\/\)$/{
19135 s//\1/
19138 /^X\(\/\).*/{
19139 s//\1/
19142 s/.*/./; q'`
19143 as_dir="$ac_dir"; as_fn_mkdir_p
19144 ac_builddir=.
19146 case "$ac_dir" in
19147 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19149 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19150 # A ".." for each directory in $ac_dir_suffix.
19151 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19152 case $ac_top_builddir_sub in
19153 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19154 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19155 esac ;;
19156 esac
19157 ac_abs_top_builddir=$ac_pwd
19158 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19159 # for backward compatibility:
19160 ac_top_builddir=$ac_top_build_prefix
19162 case $srcdir in
19163 .) # We are building in place.
19164 ac_srcdir=.
19165 ac_top_srcdir=$ac_top_builddir_sub
19166 ac_abs_top_srcdir=$ac_pwd ;;
19167 [\\/]* | ?:[\\/]* ) # Absolute name.
19168 ac_srcdir=$srcdir$ac_dir_suffix;
19169 ac_top_srcdir=$srcdir
19170 ac_abs_top_srcdir=$srcdir ;;
19171 *) # Relative name.
19172 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19173 ac_top_srcdir=$ac_top_build_prefix$srcdir
19174 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19175 esac
19176 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19179 case $ac_mode in
19182 # CONFIG_FILE
19185 _ACEOF
19187 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19188 # If the template does not know about datarootdir, expand it.
19189 # FIXME: This hack should be removed a few years after 2.60.
19190 ac_datarootdir_hack=; ac_datarootdir_seen=
19191 ac_sed_dataroot='
19192 /datarootdir/ {
19196 /@datadir@/p
19197 /@docdir@/p
19198 /@infodir@/p
19199 /@localedir@/p
19200 /@mandir@/p'
19201 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19202 *datarootdir*) ac_datarootdir_seen=yes;;
19203 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19204 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19205 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19206 _ACEOF
19207 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19208 ac_datarootdir_hack='
19209 s&@datadir@&$datadir&g
19210 s&@docdir@&$docdir&g
19211 s&@infodir@&$infodir&g
19212 s&@localedir@&$localedir&g
19213 s&@mandir@&$mandir&g
19214 s&\\\${datarootdir}&$datarootdir&g' ;;
19215 esac
19216 _ACEOF
19218 # Neutralize VPATH when `$srcdir' = `.'.
19219 # Shell code in configure.ac might set extrasub.
19220 # FIXME: do we really want to maintain this feature?
19221 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19222 ac_sed_extra="$ac_vpsub
19223 $extrasub
19224 _ACEOF
19225 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19227 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19228 s|@configure_input@|$ac_sed_conf_input|;t t
19229 s&@top_builddir@&$ac_top_builddir_sub&;t t
19230 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19231 s&@srcdir@&$ac_srcdir&;t t
19232 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19233 s&@top_srcdir@&$ac_top_srcdir&;t t
19234 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19235 s&@builddir@&$ac_builddir&;t t
19236 s&@abs_builddir@&$ac_abs_builddir&;t t
19237 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19238 $ac_datarootdir_hack
19240 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19241 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19243 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19244 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19245 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19246 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19247 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19248 which seems to be undefined. Please make sure it is defined" >&5
19249 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19250 which seems to be undefined. Please make sure it is defined" >&2;}
19252 rm -f "$ac_tmp/stdin"
19253 case $ac_file in
19254 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19255 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19256 esac \
19257 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19261 # CONFIG_HEADER
19263 if test x"$ac_file" != x-; then
19265 $as_echo "/* $configure_input */" \
19266 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19267 } >"$ac_tmp/config.h" \
19268 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19269 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19270 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19271 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19272 else
19273 rm -f "$ac_file"
19274 mv "$ac_tmp/config.h" "$ac_file" \
19275 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19277 else
19278 $as_echo "/* $configure_input */" \
19279 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19280 || as_fn_error $? "could not create -" "$LINENO" 5
19285 # CONFIG_LINK
19288 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
19290 else
19291 # Prefer the file from the source tree if names are identical.
19292 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
19293 ac_source=$srcdir/$ac_source
19296 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
19297 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
19299 if test ! -r "$ac_source"; then
19300 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
19302 rm -f "$ac_file"
19304 # Try a relative symlink, then a hard link, then a copy.
19305 case $ac_source in
19306 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
19307 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
19308 esac
19309 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
19310 ln "$ac_source" "$ac_file" 2>/dev/null ||
19311 cp -p "$ac_source" "$ac_file" ||
19312 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
19315 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19316 $as_echo "$as_me: executing $ac_file commands" >&6;}
19318 esac
19321 case $ac_file$ac_mode in
19322 "include/stamp-h":C) echo timestamp > include/stamp-h ;;
19323 "tools/makedep":C) wine_fn_output_makedep || as_fn_exit $? ;;
19324 "Makefile":C) wine_fn_output_makefile Makefile ;;
19325 ".gitignore":C) wine_fn_output_gitignore .gitignore ;;
19327 esac
19328 done # for ac_tag
19331 as_fn_exit 0
19332 _ACEOF
19333 ac_clean_files=$ac_clean_files_save
19335 test $ac_write_fail = 0 ||
19336 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19339 # configure is writing to config.log, and then calls config.status.
19340 # config.status does its own redirection, appending to config.log.
19341 # Unfortunately, on DOS this fails, as config.log is still kept open
19342 # by configure, so config.status won't be able to write to it; its
19343 # output is simply discarded. So we exec the FD to /dev/null,
19344 # effectively closing config.log, so it can be properly (re)opened and
19345 # appended to by config.status. When coming back to configure, we
19346 # need to make the FD available again.
19347 if test "$no_create" != yes; then
19348 ac_cs_success=:
19349 ac_config_status_args=
19350 test "$silent" = yes &&
19351 ac_config_status_args="$ac_config_status_args --quiet"
19352 exec 5>/dev/null
19353 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19354 exec 5>>config.log
19355 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19356 # would make configure fail if this is the last instruction.
19357 $ac_cs_success || as_fn_exit 1
19359 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19360 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19361 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19365 if test "$no_create" = "yes"
19366 then
19367 exit 0
19370 ac_save_IFS="$IFS"
19371 if test "x$wine_notices != "x; then
19372 echo >&6
19373 IFS="|"
19374 for msg in $wine_notices; do
19375 IFS="$ac_save_IFS"
19376 if ${msg:+false} :; then :
19378 else
19379 { $as_echo "$as_me:${as_lineno-$LINENO}: $msg" >&5
19380 $as_echo "$as_me: $msg" >&6;}
19382 done
19384 IFS="|"
19385 for msg in $wine_warnings; do
19386 IFS="$ac_save_IFS"
19387 if ${msg:+false} :; then :
19389 else
19390 echo >&2
19391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $msg" >&5
19392 $as_echo "$as_me: WARNING: $msg" >&2;}
19394 done
19395 IFS="$ac_save_IFS"
19397 $as_echo "
19398 $as_me: Finished. Do '${ac_make}' to compile Wine.
19399 " >&6